sql server - Find out unique of variable with two dimension -


i have table "production" that:

|company | product | model|             printer   1200 b          lap       1100 c          pc        1500 c          lap       1300          printer   1800 

i want find out company produce 1 type product, , number of models exceeds 1.

i try much. select company product 1 type.

pls me.

select company production group company  having count(distinct model)>1 , count(distinct product)=1 

Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -