Quantcast
Channel: Need a MySQL query to obtain dates not registered in a table - Stack Overflow
Browsing latest articles
Browse All 3 View Live

Answer by prueba prueba for Need a MySQL query to obtain dates not registered...

As @steven-cheng said, i had to use the combination of mysql and code because creating a temporary table is too messy. Using the code to get the dates that are available is faster.

View Article



Answer by Ian Clelland for Need a MySQL query to obtain dates not registered...

This sort of query is easily handled if you add a table of dates to your database. Fill it with a large number of dates (and add to it when you need to), and just do a right outer join to it to find...

View Article

Need a MySQL query to obtain dates not registered in a table

I have a little problem with a specific functionality. I have a table of reservations for rooms.Table: Reservationsroom (BIGINT), date (DATE) 4, 2012-09-25 4, 2012-09-27 4, 2012-09-30I need to obtain...

View Article
Browsing latest articles
Browse All 3 View Live




Latest Images