SQL Server multiple values in where clause -



SQL Server multiple values in where clause -

how create sql query counts same value in same column?

for illustration client can have multiple invoices same name different id.

so carl has 2 invoices name phone.

how utilize in query?

if want list persons having 2 invoices specific name?

try this,

select invoicenumber, name, count (select invoicenumber, name, count(1) count table1 grouping invoicenumber, name) count = 2;

sql sql-server-2008

Comments

Popular posts from this blog

php - How to pass multiple values from url -

xslt - DocBook 5 to PDF transform failing with error: "fo:flow" is missing child elements. Required content model: marker* -

database - php search bar when I press submit with nothing in the search bar it shows all the data -