I have a table with inventory records and another table with documents describing each inventory records, something like:
inventory (t1)
t1id t1c1
1 desc1
2 desc2
3 desc3
documents (t2)
t2id t2c1 t1id
1 doc1 1
2 doc2 1
3 doc3 2
4 doc4 3
so i try this query an I get an error telling me that there is no such column (t1.t1id) near the sub query =s
SELECT t1c1,(SELECT GROUP_CONCAT(t2c1) FROM t2 WHERE t1.t1id = t2.t1id) FROM t1
any Ideas?