I want a sql query to insert the available slots into a table (avail) from booked slots table.
I have two tables .I have a book table with bookstarttime and bookendtime columns .these are timestamp objects.I have another table with availstarttime and availendtime.these are also timestamp columns.I have to get the available slots left between these booked slots.I will enter the starttime and endtime from a form .Then I want a sql query to get the availble slots between the values of starttime and endtime
I am using database:apache derby