You are working with a database table that contains employee data. The table includes columns about employee location such as city, state, country, and postal_code. You want to retrieve the first 3 characters of each postal code. You decide to use the SUBSTR function to retrieve the first 3 characters of each postal code, and use the AS command to store the result in a new column called new_postal_code. You write the SQL query below. Add a statement to your SQL query that will retrieve the first 3 characters of each postal code and store the result in a new column as new_postal_code. NOTE: The three dots (...) indicate where to add the statement. 1 2 3 4 5 6 7 SELECT employee_id, ... FROM employee ORDER BY postal_code RunReset What employee ID number appears in row 5 of your query result?
You are working with a
You write the SQL query below. Add a statement to your SQL query that will retrieve the first 3 characters of each postal code and store the result in a new column as new_postal_code.
NOTE: The three dots (...) indicate where to add the statement.
What employee ID number appears in row 5 of your query result?
Trending now
This is a popular solution!
Step by step
Solved in 2 steps