vcujackson
Technical User
Is there such a thing as multiple having clause in sql 2005
Here is my code
select count(id),batch, class, date
from Gifts
group by batch,class,date
having count(batch)>1
my desired output is
batch class
2322 m
2322 b
In other word I want the gift batch to show only if there is more than one class. is there such a thing as
having count(batch)>1 and having count(class)>1?
Here is my code
select count(id),batch, class, date
from Gifts
group by batch,class,date
having count(batch)>1
my desired output is
batch class
2322 m
2322 b
In other word I want the gift batch to show only if there is more than one class. is there such a thing as
having count(batch)>1 and having count(class)>1?