Thread: SQL masters:
View Single Post
Old 02-09-2006, 06:04 AM  
everestcash
Confirmed User
 
Join Date: Apr 2002
Posts: 2,194
i was thinking, is there a way to rewrite that query using 'order by id' or 'date' instead, without using a sub query. That'll be a simpler approach.

like

select from `records` where status = 'published' order by id desc limit 0, 25;
everestcash is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote