table_A
id_A name
1 Max
2 Nick
3 John
table_B
id_B id_A idissue_id
1 1 1
2 1 3
3 1 4
4 2 1
5 3 5
6 3 6
table_C
id_C issue_name
1 Jan 2009
2 Mac 2009
3 Jun 2009
4 Aug 2009
5 sep 2009
6 Nov 2009
Hi guys, I'm trying to figure this out. No achievment yet.
table_A is the main data table, table_B is the issued subscribe table and table_C is the issue name table. I'm supposed to link this three table on a search query. Showing only the latest subscribed issue on each person.
Something like:
SELECT table_A.name, table_C.issue_name
FROM table_A
LEFT JOIN table_B ON table_A.id_A = table_B.id_A
LEFT JOIN table_C ON table_B.idissue_id = table_C.id_C
WHERE
table_A.name LIKE '%'
I think I'm supposed to put MAX(idissue_id) somewhere...
Please help.