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;
Oppure puoi farlo usando not exists
come mostrato in altre risposte.
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;
Oppure puoi farlo usando not exists
come mostrato in altre risposte.