Sql .Print maker producing all the products -


i have table called "product".there 3 columns in table.maker,model , type. model primary used link other tables.the content in table this

model   maker   type 1     laptop 2     pc 3   b   laptop 4   c   laptop 5   b   printer 6   d   printer 7   b   pc 8   d   printer 9   c   pc 10    printer 

i want makers make 3 products.how obtain result?please me.

how about:

select distinct(maker) product  maker in (select maker product type='laptop')   , maker in (select maker product type='pc')   , maker in (select maker product type='printer'); 

Comments

Popular posts from this blog

android - getbluetoothservice() called with no bluetoothmanagercallback -

sql - ASP.NET SqlDataSource, like on SelectCommand -

ios - Undefined symbols for architecture armv7: "_OBJC_CLASS_$_SSZipArchive" -