Scenario: Your team is going to going to troubleshoot queries between different tables in the following...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Scenario: Your team is going to going to troubleshoot queries between different tables in the following database (all columns for each table are listed below): Table A: Primary Key: PKA No foreign keys and no other columns. Table B: Primary Key: PKA and PKC (a composite key) Foreign Key: PKA (references primary key PKA from Table A) Foreign Key: PKC (references primary key PKC from Table C) No other columns. Table C: Primary Key: PKC No foreign keys and no other columns. Table D: Primary Key: PKC and PKE (a composite key) Foreign Key: PKC (references primary key PKC from Table C) Foreign Key PKE (references primary key PKE from Table E) PKAA (just an ordinary column -not part of any keys) Table E: Primary Key: PKE No foreign keys and no other columns. Activity I-Relationship Types (5 points total) #1 Assuming there are no 1:1 (one to one) relationships and no additional tables in the database -identify the many side of each relationship (which table would have the "crows foot" symbol on it in an ERD diagram) between the two tables specified in each scenario: a) The relationship between Table A and Table B -is it Table A or Table B? (1 point) Answer (enter in red): b) The relationship between Table B and Table C -is it Table B or Table C? (1 point) Answer (enter in red): c) The relationship between Table C and Table D-is it Table C or Table D? (1 point) Answer (enter in red): d) The relationship between Table D and Table E-is it Table D or Table E? (1 point) Answer (enter in red): #2 Are there any Intersection tables here? If so which ones? Are there an Association tables here? If so which ones? (1 point) Answer (enter in red): Activity II -Joins (5 points total) #1 If you wanted to create a query that showed related data from Table A and Table E, how many tables would have to be included in the query? (1 point) Answer (enter in red): #2 Identify all of the join condition(s) necessary to make sure the query in #1 does not create a cross-join. Use qualified column names using "dot" notation. (4 points) For example, suppose instead of Tables A, B, C, D, and E suppose you had just two tables X and Y: Table X: Primary Key: PKX No foreign keys. Table Y: Primary Key: PKY Foreign Key: PKX (references primary key PKX from Table X) In order to get related records from Table X and Table Y you would need the following join condition (using qualified column names and "dot" notation): X.PKX = Y.PKX Put your answer for Tables A, B, C, D, and E here... Answer (enter in red): Scenario: Your team is going to going to troubleshoot queries between different tables in the following database (all columns for each table are listed below): Table A: Primary Key: PKA No foreign keys and no other columns. Table B: Primary Key: PKA and PKC (a composite key) Foreign Key: PKA (references primary key PKA from Table A) Foreign Key: PKC (references primary key PKC from Table C) No other columns. Table C: Primary Key: PKC No foreign keys and no other columns. Table D: Primary Key: PKC and PKE (a composite key) Foreign Key: PKC (references primary key PKC from Table C) Foreign Key PKE (references primary key PKE from Table E) PKAA (just an ordinary column -not part of any keys) Table E: Primary Key: PKE No foreign keys and no other columns. Activity I-Relationship Types (5 points total) #1 Assuming there are no 1:1 (one to one) relationships and no additional tables in the database -identify the many side of each relationship (which table would have the "crows foot" symbol on it in an ERD diagram) between the two tables specified in each scenario: a) The relationship between Table A and Table B -is it Table A or Table B? (1 point) Answer (enter in red): b) The relationship between Table B and Table C -is it Table B or Table C? (1 point) Answer (enter in red): c) The relationship between Table C and Table D-is it Table C or Table D? (1 point) Answer (enter in red): d) The relationship between Table D and Table E-is it Table D or Table E? (1 point) Answer (enter in red): #2 Are there any Intersection tables here? If so which ones? Are there an Association tables here? If so which ones? (1 point) Answer (enter in red): Activity II -Joins (5 points total) #1 If you wanted to create a query that showed related data from Table A and Table E, how many tables would have to be included in the query? (1 point) Answer (enter in red): #2 Identify all of the join condition(s) necessary to make sure the query in #1 does not create a cross-join. Use qualified column names using "dot" notation. (4 points) For example, suppose instead of Tables A, B, C, D, and E suppose you had just two tables X and Y: Table X: Primary Key: PKX No foreign keys. Table Y: Primary Key: PKY Foreign Key: PKX (references primary key PKX from Table X) In order to get related records from Table X and Table Y you would need the following join condition (using qualified column names and "dot" notation): X.PKX = Y.PKX Put your answer for Tables A, B, C, D, and E here... Answer (enter in red):
Expert Answer:
Answer rating: 100% (QA)
The primary key will be placed on the One sided table while the foreign key will be placed on the Ma... View the full answer
Related Book For
Modern Systems Analysis And Design
ISBN: 9781292351629
9th Global Edition
Authors: Joe Valacich, Joey George
Posted Date:
Students also viewed these databases questions
-
Manage communication barriers between employees to ensure effective communication, which is crucial for a harmonious and productive workplace. Recognize and reward employees who make an effort to...
-
The Crazy Eddie fraud may appear smaller and gentler than the massive billion-dollar frauds exposed in recent times, such as Bernie Madoffs Ponzi scheme, frauds in the subprime mortgage market, the...
-
The following additional information is available for the Dr. Ivan and Irene Incisor family from Chapters 1-5. Ivan's grandfather died and left a portfolio of municipal bonds. In 2012, they pay Ivan...
-
Write a check (Figure 4 - 42) dated June 13, 20XX, to Byron Johnson in the amount of $296.83 for a washing machine, Complete the check stub. Figure 4 - 42 456 456 Amount To For KRA, INC 2596 Jason...
-
An electromagnetic wave emitted by an elementary dipole propagates in vacuum so that in the far field zone the mean value of the energy flow density is equal to so at the point removed from the...
-
2. What is Hohner's average contribution per unit for its harmonicas in Germany?
-
When can we, or should we, start implementation?
-
On December 9 of a particular year, a January Swiss franc call option with an exercise price of 46 had a price of 1.63. The January 46 put was at 0.14. The spot rate was 47.28. All prices are in...
-
Problem 3.1 (5 pts) Consider a 2-layer fully-connected NN, where we have input x = R1, hidden feature x2 = Rmx1, output x3 E Rkx1 and weights and bias W = Rmxn, W2 Rkxm, b = Rmx1, b2 E Rkx1 of the...
-
Fourth-Sixth-Twelfth Bank currently pays an annuall dividend of $1.40 per share. After extensive analysis, you forecast that the Bank's stock will continue to pay the $1.40 dividend for four years....
-
How did the teacher aide alter or modify her/his style of communication to ensure it was effective and appropriate to the context and audience? Give an example for each of the below factors: Culture...
-
Because nonresidents benefit from local government public safety services, suppose that the federal government offers localities a matching, categorical grant equal to $1 for $1 of local tax money...
-
The evidence about interstate investment decisions seems to show that state incentives have very different effects for different industries. In some industries, investment is greatly influenced by...
-
Suppose that the apartment building you live in at college has only one water meter for the entire building. The landlord receives a water bill from the city each quarter based on the gallons of...
-
Your local government is considering how to finance solid waste collection service. The government has acquired automated waste collection trucks that use an automated arm to empty specific trash...
-
Suppose that all types of property are assessed equally in a given state with taxable value equal to market value. Now suppose that a change is made to assess industrial property at 0 percent of...
-
Which of the following are functions of bearings? a. Transmit the force of the shaft to the frame O b. A and C O c. Holding shaft in a correct position O d. Ensure free rotation of shaft with minimum...
-
What did Lennox gain by integrating their WMS, TMS, and labor management systems?
-
Match each of the key terms above with the definition that best fits it. Composite attribute ____A detailed model that captures the overall structure of organizational data and is independent of any...
-
Methodology, techniques, and tools form a relationship and work together to create an organizational approach to systems analysis and design. How does this relationship work? What do the three terms...
-
What are the advantages and disadvantages of the bottom up planning approach?
-
Explain the properties of the restricted least squares estimator. In particular, how do its bias and variance compare with those of the unrestricted, ordinary, least squares estimator?
-
Explain the issues that need to be considered when choosing a regression model.
-
Identify collinearity and explain its consequences for least squares estimation.
Study smarter with the SolutionInn App