Back to questions

SQL LOWER Practice Exercise SQL Interview Question

SQL LOWER Practice Exercise

SQL Interview Question

Assume you're given the table containing all customer details.

The branch manager is looking for a male customer whose name ends with "son" and he's 20 years old.

Write a SQL query which uses and to find this customer's details.

Schema:

Column NameType
customer_idinteger
customer_namestring
genderstring
ageinteger
zip_codeinteger
citystring
statestring

Example Input:

customer_idcustomer_namegenderagezip_codecitystate
1Ignace WhillockMale305464JohnstonhavenNorthern Territory
2Gray EskrickFemale698223New ZacharyfortSouth Australia
3Ellswerth LaurentMale595661AliburghAustralian Capital Territory

Difficulty

Easy

Input

Output