sql - Find Rows whose date range contain a given date -


I'm looking at the following problem:

My group table has two fields: Arrival and departure Date

Now I want to find all those groups that exist on a certain date.

The example SQL query is passed a date, and I want to find every group where this date range is from arrival to department date.

Thanks a lot! Choose between

  ... . Arrival and Y.DepartureDate  

Replace Curdate with your actual date value.


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -