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 pricerank, name
Assume Item table has:
itemid name category price
A m&ms candy
$
A nut barssnack bars
$
A reeces candy
$
A truffles candy
$
B oat barssnack bars
$
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
