Suppose I have following query:
select e.name, e.city, d.name, d.area
from employee as e
inner join department as d on e.id = d.eid;
I want the query to get an array response with two array objects.
The first array object Employee should contain the following columns: e.name
, e.city
.
The second array object Department should contain the following columns: d.name
, d.area
.
Is there any way to get the data this way? If any so please help me!