SELECT * FROM entries
WHERE entry_date < '2009-04-01'
AND entry_date >= '2009-01-01'
ORDER BY RAND()
LIMIT 3
This would return 3 random entries from the result set.
SELECT * FROM entries
WHERE entry_date < '2009-04-01'
AND entry_date >= '2009-01-01'
ORDER BY RAND()
LIMIT 3
No comments:
Post a Comment