Instruction
Good job! Let's do some math with our query.
Exercise
In the GiftCard table, show the:
- distinct
AmountWorthvalues for all gift cards, - number of gift cards purchased of that amount (column
CountValueGiftCards), - total number of gift cards purchased (column
CountGiftCards), - ratio of the number of gift cards of that specific
AmountWorthtowards the number of all gift cards (asRatio), expressed as a percentage. Round this column to an integer.
Stuck? Here's a hint!
The last column is the trickiest one. Use ROUND(value, precision). Inside, apply division. To avoid integer division, use CAST(Column AS NUMERIC).



