Or do you just do one SELECT with a really complex WHERE clause?
Thanks.
Or do you just do one SELECT with a really complex WHERE clause?
Thanks.
What do you mean by this? Did you want to combine all this in PHP or in the WHERE clause.
Jeremy | jfein.net
I guess I am blurring the line between php and mySQL. Just want to know the "best practices" way to do this:
and display all results in one sorted list.Code:SELECT * FROM event WHERE startdate = $today; SELECT * FROM event WHERE event_id IN (SELECT event_id FROM recur WHERE dayofwk = whatever the day of the week is) SELECT * FROM event WHERE event_id IN (SELECT event_id FROM recur WHERE something else) SELECT * FROM event WHERE event_id IN (SELECT event_id FROM recur WHERE something else)
Last edited by kuau; 07-26-2008 at 08:23 PM. Reason: forgot code tags
Bookmarks