SQL practice: SELECT: Choosing Columns
Chapter 4 · 8 questions · free to solve
Question 1 · easy
Solve it in your browserShow only customer_name and city from customers.
Question 2 · easy
Solve it in your browserShow every column of branches.
Question 3 · medium
Solve it in your browserList every different region in branches.
Question 4 · medium
Solve it in your browserShow employee_name under the heading staff, and salary under monthly_pay.
Question 5 · medium
Solve it in your browserFor every product, show its name and its profit per unit (unit_price minus cost_price), with the calculated column named profit.
Question 6 · medium
Solve it in your browserList every unique combination of city and customer_type in customers.
Question 7 · hard
Solve it in your browserShow each product's name and what its price would be after a 10% discount, named sale_price.
Question 8 · hard
Solve it in your browserHow many different role values exist in employees? (Get the list — counting comes in Chapter 9.)
These questions are free.
Make a free account to solve them, with instant checking and an AI tutor for hints.
Start free