How to syntactically differentiate values ββin a spreadsheet in an SQL table and use different parsing values ββto search in other tables?
Let's say I have user.nationality, which is varchar as "41-33-11". I have tables of countries, cities, and states associated with these identifiers, 41 (Buffalo), 33 (New York), and 11 (USA).
SELECT users.name, users.email, users.nationality FROM users
nationality = "41-33-11"
How can I create a SELECT statement to get "Buffalo, NY, USA"?
sql mysql
Newy
source share