Write a SQL statement to get the imports and the countries that the imports are from. Include the name of the country and the description of the import in the results.

Programming with Microsoft Visual Basic 2017
8th Edition
ISBN:9781337102124
Author:Diane Zak
Publisher:Diane Zak
Chapter12: Database Queries With Sql
Section: Chapter Questions
Problem 9RQ
icon
Related questions
Question

Database introduction based question 

Write a SQL statement to get the imports and the countries that
the imports are from. Include the name of the country and the
description of the import in the results.
Transcribed Image Text:Write a SQL statement to get the imports and the countries that the imports are from. Include the name of the country and the description of the import in the results.
Table: Country
Primary key: CountryID
CountryID
1
2
3
CountryName
China
Botswana
Nigeria
Table: Import
Primary key: ImportID
Foreign key: CountryID
ImportID
1
2
3
Description
Electronics
Electronics
Macinery
Year
2018
2019
2018
Value
150000
180000
80000
CountryID
1
1
2
Transcribed Image Text:Table: Country Primary key: CountryID CountryID 1 2 3 CountryName China Botswana Nigeria Table: Import Primary key: ImportID Foreign key: CountryID ImportID 1 2 3 Description Electronics Electronics Macinery Year 2018 2019 2018 Value 150000 180000 80000 CountryID 1 1 2
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
SQL Query
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
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning