Welcome to Scribd!
Interview Questions
SELECT * FROM( SELECT retailer, brand FROM online_shop)PIVOT( count(brand) FOR brand IN ('ONPLUS','REALME','NOKIA','MI'))