sql - Select from table under circumstances -


There is a table with manufacturer, model and type. I should select all those manufacturers who have more than 1 model, but All are the same type of my attempt

  Select the manufacturer, type from the product ((Select the product number (model)) = (select the product from the model where type = 'Printer')) or (Selection count by product) = (Select the type of product from the count (model) where = 'PC')) or (from the selection count) = (Select the type of product from (model) where type = 'laptop'))   

but this is the correct answer Does not anyone help me?

P.S. Type can be only printer, PC or laptop

The following questions will probably get the desired result: Choose from product productive product. Maker, product. Manufacturer Manufacturer Manufacturer on Type Manufacturer by Type (Product Type), Product Inner (Selection Maker, Counting Model (different model), count_count (different type), type_count product group by manufacturer Hover calculation (different model) & gt; 1 and count (different type) = 1). Maker = Selected_ Creator Manufacturer ORDER;

Inline view Selected_maker first selects manufacturers that have multiple models but only one type. After this, the details of these manufacturers are derived from the products .

Comments

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -