C
carl
My data looks as so:
day product qtysold
2-Mar A 1
2-Mar B 5
2-Mar A 4
2-Mar A 2
3-Mar A 2
3-Mar C 2
3-Mar B 5
3-Mar B 1
3-Mar D 2
3-Mar D 6
Is it possible for a query to take as input a product (eg A, B, or C) and
produce a result that shows the rank (based on qty sold) of the product
against all other products for each day that the product was sold ?
For example.
Qry for product A
day rank
2-Mar 1
3-Mar 3
or
Qry for product D
day rank
3-Mar 1
Thank you in advance.
day product qtysold
2-Mar A 1
2-Mar B 5
2-Mar A 4
2-Mar A 2
3-Mar A 2
3-Mar C 2
3-Mar B 5
3-Mar B 1
3-Mar D 2
3-Mar D 6
Is it possible for a query to take as input a product (eg A, B, or C) and
produce a result that shows the rank (based on qty sold) of the product
against all other products for each day that the product was sold ?
For example.
Qry for product A
day rank
2-Mar 1
3-Mar 3
or
Qry for product D
day rank
3-Mar 1
Thank you in advance.