[thelist] Tricky Transact SQL Query

Paul Cowan evolt at funkwit.com
Tue May 25 18:08:15 CDT 2004


Oops.. just realised a problem with my own query. That should read:
> 	WHERE
> 		(Issue.ReleaseDate IN (SELECT TOP 5 ReleaseDate FROM
> 		Issue WHERE Issue.pubFK = Publication.pubID
>		ORDER BY ReleaseDate DESC))

(note addition of ORDER BY)

Cheers,

Paul.



More information about the thelist mailing list