Thread: SQL masters:
View Single Post
Old 02-09-2006, 04:56 AM  
Zester
Confirmed User
 
Zester's Avatar
 
Industry Role:
Join Date: Jul 2003
Posts: 5,344
SQL masters:

What is wrong with this Sub Query:
Code:
SELECT date 
FROM  `records` 
WHERE  STATUS  =  'published' 
AND date = ( select max(date) FROM `records` )
LIMIT = 25;
it's suppose to spit out the date of the latest 25 articles in 'published' status and nothing more.
__________________
* Mainstream ? $65 per sale
* new male contraception

Last edited by Zester; 02-09-2006 at 04:58 AM..
Zester is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote