Person(personid, name, address, cityid) City(cityid, cityname) Friend(personid, friendid) Where Friend (a, b) means that Person b is a friend of Person a 2. Which SQL statement will return all Persons in Liverpool? a. select * from Person where cityname="Liverpool"; b. select * from Person natural join City where cityname="Liverpool"; C. select Person where cityname= "Liverpool"; d. select Person where City.cityname = "Liverpool";

Oracle 12c: SQL
3rd Edition
ISBN:9781305251038
Author:Joan Casteel
Publisher:Joan Casteel
Chapter12: Subqueries And Merge Statements
Section: Chapter Questions
Problem 19MC
icon
Related questions
Question
Person(personid, name, address, cityid)
City(cityid, cityname)
Friend(personid, friendid)
Where Friend (a, b) means that Person b is a friend of Person a
2. Which SQL statement will return all Persons in Liverpool?
a. select * from Person where cityname="Liverpool";
b. select * from Person natural join City where cityname="Liverpool";
C. select Person where cityname= "Liverpool";
d. select Person where City.cityname = "Liverpool";
Transcribed Image Text:Person(personid, name, address, cityid) City(cityid, cityname) Friend(personid, friendid) Where Friend (a, b) means that Person b is a friend of Person a 2. Which SQL statement will return all Persons in Liverpool? a. select * from Person where cityname="Liverpool"; b. select * from Person natural join City where cityname="Liverpool"; C. select Person where cityname= "Liverpool"; d. select Person where City.cityname = "Liverpool";
Expert Solution
steps

Step by step

Solved in 4 steps with 5 images

Blurred answer
Knowledge Booster
Intermediate SQL concepts
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Oracle 12c: SQL
Oracle 12c: SQL
Computer Science
ISBN:
9781305251038
Author:
Joan Casteel
Publisher:
Cengage Learning
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
Np Ms Office 365/Excel 2016 I Ntermed
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage