aggregate functions - SQL Group By where no row has value -


what best way write query:

select id table "no row id has created date > '1/1/2012'" group id

in summary, want see grouped id's every row has created date > '1/1/2012'

use having clause , @ maximum created date:

select id table group id having max(createddate) <= '2012-01-01' 

Comments

Popular posts from this blog

r - Trouble relying on third party package imports in my package -

Payment information shows nothing in one page checkout page magento -