Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Creates 3 tables using Inner Join and using flag case I need query for a flag primary address and flag primary number 3 tables 1.

image text in transcribed
Creates 3 tables using Inner Join
and using flag case
I need query for a flag primary address and flag primary number
3 tables
1. Design 3 database tables that represent a person with and addresses and phone numbers. a. The three tables need to be related such that a person can have one or more addresses and a person can have one or more phone numbers. b. The person entity must have first name, last name, age, gender, and a unique ID as a primary key. c. The address entity must have street address, city, state, zip code, country, a primary address flag the person foreign key, and a unique ID as a primary key. d. The phone entity must have country code, phone number, a primary phone number flag, the person foreign key, and a unique ID as a primary key. 2. Populate your tables with 3 people that have a least two addresses and two phone numbers each. Each person must have a primary address and phone number. 3. Insert a person with a phone number but no address. 4. Insert a person with an address but no phone number. 5. Select from each of your tables individually 6. Select from your three tables using a multi-table join to return all records for all people. 7. Select from your three tables using a multi-table join to return all people and only primary addresses and primary phone numbers. 8. Turn in your table structures, insert statements, queries, and all query results

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

Relational Database Design With Microcomputer Applications

Authors: Glenn A. Jackson

1st Edition

0137718411, 978-0137718412

More Books

Students also viewed these Databases questions