I have a table where I have the following fields:
start | end | field A | field B | field C | id
I want to get rid of the end field.
In my application, the user provides a single date, and I find the data for the entry that has that date in between start and end. I want to make it so I just make it that I find the entry that is after the start date and before the next start date.
How do I put together that SQL query??
Right now its:
Select * from table where $date between start and end
I imagine I have to do a join of that table on itself