6. Consider the following two tables TableA aid atext 1 ab 3 TableB bid aid 111...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
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. 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.
Expert Answer:
Related Book For
Posted Date:
Students also viewed these programming questions
-
answer all questions as instructed below. attend all questions. 4 Computer Vision (a) Explain why such a tiny number of 2D Gabor wavelets as shown in this sequence are so efficient at representing...
-
answer the question clearly You are building a flight-control system for which a convincing safety case must be made. Would you assign the tasks of safety requirements engineering, test case...
-
4. In cells B4:B15, type a yearly salary for each staff member. Format these values as Currency with no decimal places. 5. Calculate the new salary with a 10% increase in column C. 6. Calculate the...
-
Why have different types of hardness tests been developed? How would you measure the hardness of a very large object?
-
Presented below are comparative statements of financial position for Ozturk Ltd. Instructions (Round to two decimal places.) a. Prepare a comparative statement of financial position of Ozturk Ltd....
-
Patty Hayes owned four Personal Seat Licenses (PSLs) at the Cleveland Browns Stadium. Hayess PSLs reserved four seats on the 50-yard line, at the railing, on the north side of the stadium. As the...
-
Ratio Computations and Effect of Transactions Presented below is information related to Leland Inc. (a) Compute the following ratios or relationships of Leland Inc. Assume that the ending account...
-
Recent events have once again shaken and stirred the memory of the nation. Almost immediately after the Civil War, a myth arose painting the conflict with a brush that attempted to blur the lines...
-
Jackie Wengler, owner of Wengler Home Decorating Service, has requested that you prepare from the following balances (a) An income statement for June 201X, (b) A statement of owner?s equity for June,...
-
Actuarial loss on change in assumptions, arising during 20X1 115,000 Actual return on plan assets for 20X1 12,000 Fair value of plan assets, January 1, 20X1 344,000 Current service cost for 20X1...
-
In August 2010, the Federal Reserve announced that as the mortgage-backed securities it owns matured, it would reinvest the funds by buying U.S. Treasury securities. How would these actions affect...
-
An article in the Wall Street Journal discussed put options on Facebooks stock. One put option had a strike price of $25. The article observed: Puts are contracts that give the buyer the right to...
-
In the fall of 2012, an article in the New York Times speculated that the Federal Reserve could announce a new round of asset purchases, expanding its balance sheet for the third time since 2008. a....
-
Suppose that Bank of America lends $100,000 to Jills Jerseys. Using T-accounts, show how this transaction is recorded on the banks balance sheet. If Jills spends the money to buy materials from Zachs...
-
Suppose that the Dow Jones Industrial Average is above the 13,000 level. If the Dow were to fall to 10,000, who would gain the most: investors who had bought call options, investors who had sold call...
-
An activity to improve the well-being of some impoverished people will provide benefits of $1 million right now, but will obliterate the Earth in 200 years. The worlds value in 200 years is projected...
-
Q:1 Take any product or service offered in Pakistan and apply all determinents of customer Perceived value ?
-
A computer that is in screensaver mode uses the same amount of power as one in regular mode. Computers that are in sleep mode, however, use much less power, say 6 watts per hour. Reflect on computer...
-
Prepare a 1-minute statement of what you have learned from this exercise that you could use for a job interview to illustrate your ability to innovate the use of technology in business.
-
Using the knowledge of this chapter and the intuition of the members of your team, summarize threats that cloud services present to such ISVs.
-
What were Aristotles two main classifications of motion?
-
One kg weighs 10 N on Earth. Would it weigh more or less on the Moon?
-
Which has the greater density1 kg of water or 10 kg of water?
Study smarter with the SolutionInn App