I have a table with 2 primary keys, one is a foreign key, the other is
produced by a sequence.
I want to SELECT query for one record that has a list of the
sequence-produced values for all records with a given foreign-key
value, essentially:
Create table table1 {
fk_id number,
seq_id number
}
SELECT fk_id, LIST(seq_id)
FROM table1
WHERE fk_id = 1
GROUP BY fk_id
Is there a way to do this?
produced by a sequence.
I want to SELECT query for one record that has a list of the
sequence-produced values for all records with a given foreign-key
value, essentially:
Create table table1 {
fk_id number,
seq_id number
}
SELECT fk_id, LIST(seq_id)
FROM table1
WHERE fk_id = 1
GROUP BY fk_id
Is there a way to do this?
Comment