L
lwy
Unregistered / Unconfirmed
GUEST, unregistred user!
SELECT a.id, a.名称, a.型号, a.长度, b.缴费代管日期, b.代管费到期日期, b.费用
FROM test1 a JOIN
test2 b ON (a.id = b.c_id)
WHERE b.缴费代管日期 IN
(SELECT MAX(test2.缴费代管日期)
FROM test1, test2
WHERE test1.id = test2.c_id
GROUP BY test1.id)
FROM test1 a JOIN
test2 b ON (a.id = b.c_id)
WHERE b.缴费代管日期 IN
(SELECT MAX(test2.缴费代管日期)
FROM test1, test2
WHERE test1.id = test2.c_id
GROUP BY test1.id)