Back to questions

SQL LIKE _ Practice Exercise SQL Interview Question

SQL LIKE _ Practice Exercise

SQL Interview Question

You have a table of 1000 customer records from a small-business based in Australia.

Find all customers where the 2nd and 3rd letter in their name is "e".

Example: "Reece Smith"

Schema:

Column NameType
customer_idinteger
customer_namestring
genderstring
ageinteger
zip_codeinteger
citystring
statestring

Sample Input:

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

Example Output

customer_idcustomer_namegenderagezip_codecitystate
549Bee AndrieuxFemale501919GleasonburghNorthern Territory
620Reena HudlessFemale35902JettstadAustralian Capital Territory
898Keelia BaverstockFemale413377AngelinaportNew South Wales

Difficulty

Easy

Input

Output