MySQL Forums
Forum List  »  Stored Procedures

selecting a date not in the range
Posted by: tan tan
Date: January 27, 2012 08:10AM

Hi, i think this is fairly simple, i tried one or two commands but to no avail.

i have two tables,

table 1
Checkin-------Check Out
2012-01-01----2012-01-15


table 2
date
2012-01-01
2012-01-03
2012-01-06
2012-01-07
2012-01-10
2012-01-12


my goal is to show what dates where not in table 2 from the given range in table1, example:

result:
2012-01-02
2012-01-04
2012-01-05
2012-01-08

and so on..

any pointers to the right direction will be a life saver.

thanks!

Options: ReplyQuote


Subject
Views
Written By
Posted
selecting a date not in the range
1399
January 27, 2012 08:10AM
867
January 27, 2012 06:58PM
1038
January 27, 2012 09:24PM
790
January 28, 2012 06:36PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.