Answered step by step
Verified Expert Solution
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.
Creates 3 tables using Inner Join
and using flag case
I need query for a flag primary address and flag primary number
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 3 tables
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started