Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Consider two relation instances below, with the following schemas: Country (country name, continent), City (city name, country name isCapital, population) First write your own script

image text in transcribedimage text in transcribed

Consider two relation instances below, with the following schemas: Country (country name, continent), City (city name, country name isCapital, population) First write your own script to create these two tables and insert the tuples showed in the instances below (similar to the content in script provided in Part 1), and then based on which, for each question (a)-(d) below, write a SQL query and show (copy and paste) its result when the query is executed with the given instances. Country Country Name Continent US North America Canada North America England Europe Germany Europe France Europe Africa Ma City City Name Country Name isCapital Population New York, NY US 8,000,000 no Washington, DC US 600,000 yes Philadelphia, PA US 1,500,000 no Ottawa Canada 800,000 yes Toronto Canada 2,500,000 no Berlin Germany 3,500,000 es Hamburg Germany 2,000,000 no Bonn Germany 300,000 no Paris France 2,000,000 yes Lyon France 700,000 no Bamako Ma 2,000,000 yes 50,000 Timbuktu Ma no 100,000 Mopt Ma no

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Filing And Computer Database Projects

Authors: Jeffrey Stewart

2nd Edition

007822781X, 9780078227813

More Books

Students also viewed these Databases questions

Question

6. Be able to choose and prepare a training site.

Answered: 1 week ago