Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

6. Consider the following two tables TableA aid atext 1 ab 3 TableB bid aid 111 1 123 2 a) (10 points) Assume that

 

6. Consider the following two tables TableA aid atext 1 ab 3 TableB bid aid 111 1 123 2 a) (10 points) Assume that aid is the primary key of Table A. Could aid in TableB be used as foreign key, referencing aid in Table A? If not, what changes would be necessary to allow introducing this constraint? b) (5 points) Could bid be made the primary key of TableB? What constraints would have to hold? Do they hold? c) (10 points) If there were a record with bid 222 and aid null in TableB, would this affect questions a) or b)? d) (10 points) What is the result of an inner join of TableA and TableB? e) (10 points) What type of join would represent all records from both tables? Show the result of that type of join.

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_2

Step: 3

blur-text-image_3

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

MIS Essentials

Authors: David M. Kroenke

4th edition

978-0133546590, 133546594, 978-0133807479

More Books

Students also viewed these Programming questions

Question

Compare and contrast LJI and Fenway.

Answered: 1 week ago