select product_id,product_name,type,price from (select product_id,product_name,type,price,DENSE_RANK()over(partition by type order by price desc) as rk2 from (select product_id,product_name,DENSE_RANK()over(partition by type order by price desc) as rk1,type,price from product_info) as temp1 where rk...