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

How to group boxplot outliers in gnuplot -

cakephp - simple blog with croogo -