Create the following tables in your database with the following schema: Table: Countries | Column Name | Туре | country_id I country_name +---- | int | varcharI -----+---------+ country_id is the primary key for this table. Each row of this table contains the ID and the name of one country. Table: Weather ------ | Column Name 1 Туре I ---- I country_id | weather state | int I day | int | date | +- +------+ (country_id, day) is the primary key for this table. Each row of this table indicates the weather state in a country for one day. Add the following data to your tables: Input: Countries table: +------------ I country_id | country_name | | USA | Australia | Peru I China | Morocco | Spain | 2 Weather table: +---------- | country_id | weather_state | day | 2019-11-01 | | 2019-10-28 | | 2019-10-27 | | 2019-11-10 | | 2019-11-11 | | 2019-11-12 | | 2019-11-07 I | 2019-11-09 | | 2019-11-23 | | 2019-11-28 | | 2019-12-01 | | 2019-12-02 | | 2019-11-05 | | 2019-11-15 | | 2019-11-25 | | 2019-10-23 | | 2019-12-23 | | 2 | 2 | 2 | 15 | 12 | 12 | -2 | 3 | 16 | 18 | 21 | 25 | 22 | 20 | 25 | 27 | 31 | 7 1 3
Create the following tables in your database with the following schema: Table: Countries | Column Name | Туре | country_id I country_name +---- | int | varcharI -----+---------+ country_id is the primary key for this table. Each row of this table contains the ID and the name of one country. Table: Weather ------ | Column Name 1 Туре I ---- I country_id | weather state | int I day | int | date | +- +------+ (country_id, day) is the primary key for this table. Each row of this table indicates the weather state in a country for one day. Add the following data to your tables: Input: Countries table: +------------ I country_id | country_name | | USA | Australia | Peru I China | Morocco | Spain | 2 Weather table: +---------- | country_id | weather_state | day | 2019-11-01 | | 2019-10-28 | | 2019-10-27 | | 2019-11-10 | | 2019-11-11 | | 2019-11-12 | | 2019-11-07 I | 2019-11-09 | | 2019-11-23 | | 2019-11-28 | | 2019-12-01 | | 2019-12-02 | | 2019-11-05 | | 2019-11-15 | | 2019-11-25 | | 2019-10-23 | | 2019-12-23 | | 2 | 2 | 2 | 15 | 12 | 12 | -2 | 3 | 16 | 18 | 21 | 25 | 22 | 20 | 25 | 27 | 31 | 7 1 3
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 4E
Related questions
Question
code of create table and insert table only please
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 2 steps
Knowledge Booster
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.Recommended textbooks for you
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage
A Guide to SQL
Computer Science
ISBN:
9781111527273
Author:
Philip J. Pratt
Publisher:
Course Technology Ptr