I have the following query which returns 9000 records:
SELECT Table1.id
, Table1.value
, Table2.client_id
, Table1.id_key
, Table3.id
, Table3.title
FROM Table1
LEFT JOIN Table2 ON Table2.id = Table1.Table2_id
LEFT JOIN Table3 ON Table1.id_key = Table3.id
WHERE Table2.orderType = "Grace"
AND Table2.id IN (7364)
From that I need to create a report that will have heading title of Table1.value and then it will show all the Table3.id, Table3.title
I have tried:
SELECT Table1.id
, Table1.value
, Table2.client_id
, Table1.id_key
, Table3.id
, Table3.title
FROM
Table1
LEFT JOIN Table2 ON Table2.id = Table1.Table2_id
LEFT JOIN Table3 ON Table1.id_key = Table3.id
WHERE Table2.orderType = "Grace"
AND Table2.id IN (7364)
GROUP BY Table1.value
But that reduces the results to 74 which is ok but I cant see anything else under those heading..what can I do.