Hi Guys is there is direct way to format data within sql query to avoid loops. For example : Suppose there 2 tables as following tbl1(id,name,value) tbl2(id,tbl1_id,name) // tbl1_id is primary key of tbl1
Now tbl2 can have multiple records with same tbl1_id. Now how to get formatted data where I can get multiple records for tbl1 and then tbl2 array under id of tbl1 ?