

0 / 2 embers
0 / 3000 xp
click for more info
Complete a lesson to start your streak
click for more info
Difficulty: 7
click for more info
Not enough gems
Cost: 6 gems
1: AS Clause in SQL
incomplete
2: SQL Functions
incomplete
3: Between
incomplete
4: Distinct
incomplete
5: Logical Operators – AND
incomplete
6: OR
incomplete
7: In
incomplete
8: Like
incomplete
9: Underscore Operator
incomplete
10: Wildcards Quiz
incomplete
11: Query Practice – Discount Program
incomplete
Back
ctrl+,
Next
ctrl+.
This lesson's interactive features are locked, please to keep using them
CashPal has launched two discount programs:
country_code 'CA') qualify for a Canada Day discount.Users who qualify for either discount will get 10% off.
Write a query that returns every user from the users table, including all columns, plus an additional column named discount_percent.
The discount_percent column should have an integer value of 10 or 0, depending on whether the user matches any discount condition listed above.