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

mysql - FireDac error 314 - but DLLs are in program directory -

git - How to list all releases of public repository with GitHub API V3 -

c++ - Getting C2512 "no default constructor" for `ClassA` error on the first parentheses of constructor for `ClassB`? -