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

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

mediawiki - How do I insert tables inside infoboxes on Wikia pages? -

Local Service User Logged into Windows -