Hello stackoverflowers,
I have a straightforward question.
I am doing a web application that uses MySQL, and I am currently designing it. I just have a small question about performance.
I would like to know what is more efficient:
Scenario #1:
Table: Restaurant
-Name
-City
-Province
-Country
-Continent
sql =~ select * from restaurant where id = something.
or
Scenario #2:
Table: Restaurant
-Name
-City
Table: City
-Name
-Province
Table: Province
-Name
-Country
Table: Country
-Name
-Continent
Table: Continent
-Name
sql =~ [insert multiple sql queries that will output the name and the city,
with the corresponding province, country, and continent]
Logically, I think Scenario #1 is better (less query), but some people swore to me otherwise.
Thank you.