I have a date= 2016-12-25 at hand, and i want to find all the records of this particular date. The records in the database are stored as a range of startDate and endDate. Example
|_____Name___|___Class_____|___StartDate_____|___EndDate______|
|_____Maths___|____Lecture___|___2016-12-10____|___2016-12-30____|
so now using the sql query i want to display this class with the user selected date 2016-12-25 where I am unaware os StartDate and EndDate (All i have in hand in the user specified date, the StartDate and EndDate could differ for each subjects). Can anybody please help me out?
will it be something like this? query: select all records where 2016-12-25 between all StartDate and endDate