Hi,
I have a table with store #, item # and the sales with billions of records. I need to rank by the sales to find out the top 100 selling items. I can use the RANK function and find it out. However, the issue is, user wants top 100 items without skipping a rank.
For example, if item A and B both sale $100 then teradata would give same rank to them, say rank 5. Say item C does sale of $99.99, it would be rank 7. There won't be rank 6 as there are 2 entries with rank 5. They don't want that. They want item C to be rank 6.
↧