Question: Based on the same schema, what will the following statement produce: select * , rank ( ) over ( partition by category orders by price

Based on the same schema, what will the following statement produce:
select *, rank() over (partition by category orders by price desc) as price _rank
from item
order by price_rank, name
Assume Item table has:
itemid name category price
A2523 m&ms candy
$1.60
A2533 nut barssnack bars
$3.00
A3223 reeces candy
$1.00
A3003 truffles candy
$1.60
B3066 oat barssnack bars
$4.00

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!