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

Popular posts from this blog

html - Firefox flex bug applied to buttons? -

html - Missing border-right in select on Firefox -

c# - two queries in same method -