mquiroz is right, you will need to either upgrade or select teh MAX() first and then feed it into the other query.
SELECT @mymax := Max( c.StartDate ) FROM HW c WHERE c.Network_Name = a.NUMBER;
SELECT a.NUMBER, b.Insertions
FROM network a, HW b
WHERE a.NUMBER = b.Network_Name AND b.StartDate = @mymax
ORDER BY a.NUMBER;
Main Topics
Browse All Topics





by: mquirozPosted on 2003-09-16 at 10:50:36ID: 9372064
yes you can, but subqueries only work on version 4.1.X and I'm not sure if max() would work inside a subquery...