sql - Add Field to Query -
how add "name" field query
select address, count(*) countof dbo.mydb address not null group address having count(*) > 1
ive tried
select name, address ...
but come error
thanks,
if want add name column, have add group by
or include in aggregate function:
select address, name, count(*) countof dbo.mydb address not null group address, name having count(*)>1
Comments
Post a Comment