How can I combine the following SQL queries so that I get one output table containing the name of the state, city, and postal code in 3 separate columns on the same row? I have little experience with SQL, but making 3 separate queries if I could make just one seems a bit better to me.
SELECT City_tx FROM City WHERE City_id = 11
SELECT StateProv_tx FROM StateProv WHERE StateProv_id = 12
SELECT PostalCode_tx FROM PostalCode WHERE PostalCode_id = 13
If you don’t have any relations between tables. Simply declare 3 variables & set them (just another method other than above answers);