GoldCoast_Nerd
01-21-2007, 05:10 PM
I use this query to select the results out of a table depending on the latest date as submitted by a unique user. (data inserted into table automatically as a user fails to contact another, then the user can access the data in another page to view the contacts he/she has missed) query works fine, but plz advice if there's another way to write it so as to make it faster.
FROM x INNER JOIN y ON x.ID = y.ID
WHERE aID = 'passed string'
AND yID IN (SELECT MAX(yID) AS yID
FROM y AS IM2
WHERE aID = 'passed string' GROUP BY CONVERT(varchar,Date,101),aID,bID)
plzzzz help!
FROM x INNER JOIN y ON x.ID = y.ID
WHERE aID = 'passed string'
AND yID IN (SELECT MAX(yID) AS yID
FROM y AS IM2
WHERE aID = 'passed string' GROUP BY CONVERT(varchar,Date,101),aID,bID)
plzzzz help!