Apply inner join and full join between two tables and show intersection and union of contacts and address tables
Apply inner join and full join between two tables and show intersection and union of contacts and address tables
Chapter3: Creating Tables
Section: Chapter Questions
Problem 4CAT
Related questions
Question
//Using SQL, please make sure your code is working
create two tables with one common column
example:
contacts table -> fields - id, name, phone
address table -> fields - id, street_address, city, state, zip
insert 10 records in each table (use insert statement) make sure id (first field) are common between two tables' data
Apply inner join and full join between two tables and show intersection and union of contacts and address tables
Please provide me with all sql statements for creating tables, inserting data, and join sql statments.
example:
INSERT INTO addresses (id, street_address, city, zip, state)
VALUES (1, '1234 John Street', 'Fremont', '94539', 'California');
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 6 steps with 4 images
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
A Guide to SQL
Computer Science
ISBN:
9781111527273
Author:
Philip J. Pratt
Publisher:
Course Technology Ptr
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781285196145
Author:
Steven, Steven Morris, Carlos Coronel, Carlos, Coronel, Carlos; Morris, Carlos Coronel and Steven Morris, Carlos Coronel; Steven Morris, Steven Morris; Carlos Coronel
Publisher:
Cengage Learning
A Guide to SQL
Computer Science
ISBN:
9781111527273
Author:
Philip J. Pratt
Publisher:
Course Technology Ptr
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781285196145
Author:
Steven, Steven Morris, Carlos Coronel, Carlos, Coronel, Carlos; Morris, Carlos Coronel and Steven Morris, Carlos Coronel; Steven Morris, Steven Morris; Carlos Coronel
Publisher:
Cengage Learning
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781305627482
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning