I'm trying to understand this query statement.
write a query to show % of total profit that the top 10% of businesses generated.
1st
: get total profit from all businesses
2nd
: get % of all profits generated by very single business
3rd
: sort that profit % by desc
4th
: get top 10
that's what I've understood.
But somewhere am thinking its not correct what I've thought.
Can anyone please suggest what could be actual ask of this query ?
Note: cant ask back from where I got, because this was in interview :)
Thanks