Php SQL我想从时间表中选择时间,但检查其他表中未选择的所有时间值

Php SQL我想从时间表中选择时间,但检查其他表中未选择的所有时间值,php,html,sql,web,time,Php,Html,Sql,Web,Time,这是我使用的时间表 time "table" --------------- 1 | 07:00:00 2 | 08:00:00 3 | 09:00:00 4 | 10:00:00 5 | 11:00:00 6 | 12:00:00 7 | 13:00:00 8 | 14:00:00 这些表是我检查时间的表,不能选择 sched_daytime "table" --------------- Day Start_time

这是我使用的时间表


time "table"
---------------
1   |  07:00:00
2   |  08:00:00
3   |  09:00:00
4   |  10:00:00
5   |  11:00:00
6   |  12:00:00
7   |  13:00:00
8   |  14:00:00


这些表是我检查时间的表,不能选择


sched_daytime "table"
---------------
Day          Start_time   End_time
-------------------------------------
Monday    |  07:00:00  | 08:00:00
Wednesday |  08:00:00  | 10:00:00
Monday    |  09:00:00  | 11:00:00


这是我的sql查询

select time.* 
from time,sched_daytime 
where time not between sched_daytime.s_time and sched_daytime.e_time 
AND sched_daytime.day = 'Monday' 
group by time.time
但结果是它仍然在时间表中显示所有假设的时间值 7:00至8:00和9:00至11:00之间的时间不可用

它选择了时间表中的所有值。请帮助,对不起,我仍然没有。请尝试以下操作: 选择时间 从时间上看,是白天 where day=‘星期一’ 时间不在开始时间和结束时间之间
按时间分组

您使用的是什么RDBMS???重复您几个小时前提出的问题wampserver mysql localhost。。。对不起,请帮我是的,这是一个重复但更准确的问题,对吗???对不起,这些表之间的引用列是什么?如何定义这两列之间的关系????