i have 3 tables
table A with A.id ...
table B with B.id, B.A_id
table C with C.id, C.A_id, C.type
table B and C can contain more records with A_id.
i need list of all record from A (regardless if there are records for A_id in table B or C),
record containing A_id in table B with max from B.id (B.id from the records containing A_id for every A.id),
record containing A_id in table C with type=o and max from C.id (C.id from the records containing A_id for every A.id)









Bookmarks