509,760 views
17 votes
17 votes
You are working with a database table that contains invoice data. The table includes columns about billing location such as billing_city, billing_state, and billing_country. You want to retrieve the first 4 letters of each city name. You decide to use the SUBSTR function to retrieve the first 4 letters of each city name, and use the AS command to store the result in a new column called new_city. You write the SQL query below. Add a statement to your SQL query that will retrieve the first 4 letters of each city name and store the result in a new column as new_city.

NOTE: The three dots (...) indicate where to add the statement.
SELECT
billing_country,
...
FROM
invoice
WHERE
billing_country = "India"

User Deepak Ror
by
2.6k points

1 Answer

10 votes
10 votes

Answer:

I don't really know about this.

Step-by-step explanation:

Because It's all confusing.

User Jaro Dunajsky
by
3.2k points