I have this table: CREATE TABLE avail_apps( idint(11) NOT NULL AUTO_INCREMENT, date_avdate NOT NULL, time_av time DEFAULT NULL, PRIMARY KEY (id,date_av) ) ENGINE=InnoDB AUTO_INCREMENT=8192 DEFAULT CHARSET=utf8
If I am given the date and the time I can find the id with this statement(and for the example date time shown here):
select id from avail_apps where date_av='2015-11-17' and time_av='10:00:00';
What if I am given two date times though…meaning I want to find 2 IDs from the table…