| List: | General Discussion | « Previous MessageNext Message » | |
| From: | Jay Blanchard | Date: | April 16 2007 1:53pm |
| Subject: | RE: how to tell if something hasn't happened yet - SOLVED | ||
| View as plain text | |||
[snip]
[snip]
select s.* from store s
where s.id not in
(select t.storeid from trans t where t.created=date(now()));
[/snip]
This is close, but it does not exclude previous days. I only want to see
those that have not logged in today.
[/snip]
select store.storeid, store.stname
from store
where store.storeid not in (
select transaction.storeid
from transaction
where substring(transaction.created, 1, 10) >
date_sub(current_date(),
interval 1 day)
)
| Thread | ||
|---|---|---|
| • how to tell if something hasn't happened yet | Jay Blanchard | 14 Apr |
| • RE: how to tell if something hasn't happened yet | Andrey Dmitriev | 14 Apr |
| • Re: how to tell if something hasn't happened yet | Mogens Melander | 14 Apr |
| • RE: how to tell if something hasn't happened yet | Jay Blanchard | 16 Apr |
| • RE: how to tell if something hasn't happened yet - SOLVED | Jay Blanchard | 16 Apr |
| • RE: how to tell if something hasn't happened yet | Mogens Melander | 17 Apr |
| • RE: how to tell if something hasn't happened yet | Mogens Melander | 17 Apr |
