Mysql
 sql >> Base de Dados >  >> RDS >> Mysql

junção interna com resultado vazio da tabela direita

select r.*
from restaurant r
left join orders o on r.id = o.restaurant_id and o.date between '...' and '...'
where o.id is null;

Ou você pode fazer isso usando not exists como mostrado em outras respostas.