Instruction
Good job! Let's now do some mathematic!
Exercise
Show:
- distinctive
amount_worthvalues of giftcards, - count of the number of giftcards with this value that were ever purchased (shown as
count_1), - count of all giftcards ever purchased (shown as
count_2), - show the percentage that the respective giftcard type constitutes in relation to all gift cards. Show the last column rounded to integer values and name it
percentage.
Stuck? Here's a hint!
The last column is the most tricky one. Use ROUND(...). Inside, apply division. To avoid integer division, use CAST(column AS numeric).



