Hi,
Is this possible without doing it by hand with pl/sql?
i.e. what I want is to output:
{
"department": 10,
"department_name": "Acme explosives",
"personnel_ids": [1, 2, 3, 4, 5]
}
Instead of
{
"department": 10,
"department_name": "Acme explosives",
"personnel_ids": [{
"personnel_id": 1
}, {
"personnel_id": 2
}, {
"personnel_id": 3
}, {
"personnel_id": 4
}, {
"personnel_id": 5
}]
}
Which is what happens when you wrap a CURSOR around a subquery,
Thank you
Oli