2. Consider the two relations and their schemas as listed below: Employee(name, emplD, birthDate, gender, address,...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
2. Consider the two relations and their schemas as listed below: Employee(name, emplD, birthDate, gender, address, phone) TaxAccount(name, SSN, empID, federalDeductionAmt, stateDeductionAmt, ficaDeductionAmt) Constraint: The relation TaxAccount must contain information related to all current employees only. a) (10 points) Express the foreign key constraint in SQL. b) (7 points) What are the appropriate policies for update and delete operations? Why? 2. Consider the two relations and their schemas as listed below: Employee(name, emplD, birthDate, gender, address, phone) TaxAccount(name, SSN, empID, federalDeductionAmt, stateDeductionAmt, ficaDeductionAmt) Constraint: The relation TaxAccount must contain information related to all current employees only. a) (10 points) Express the foreign key constraint in SQL. b) (7 points) What are the appropriate policies for update and delete operations? Why?
Expert Answer:
Answer rating: 100% (QA)
a Expressing the foreign key constraint in SQL SQL statement SQL ALTER TABLE TaxAccount ADD CONSTRAINT FKTaxAccountEmployee FOREIGN KEY empID REFERENCES EmployeeempID ON DELETE CASCADE ON UPDATE CASCA... View the full answer
Related Book For
Posted Date:
Students also viewed these programming questions
-
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...
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
A semicircular plate of radius r, oriented as in the figure, is submerged in fluid of density 68 lb/ft 3 so that its diameter is located at a depth of m feet. Calculate the force on one side of the...
-
The financial records of Dunbar Inc. were destroyed by fire at the end of 2019. Fortunately, the controller had kept the following statistical data related to the income statement. 1. The beginning...
-
Explain the relationship between an organizations budget and its vision, core competencies, risk preferences, strategies, and operating plans.
-
What are the advantages and disadvantages of judgmental sampling?
-
The Leaning Tower of Pisa is 55m tall and about 7.0 m in diameter. The top is 4.5 m off center. Is the tower in stable equilibrium? If so, how much farther can it lean before it becomes unstable?...
-
Hide Assignment Information Instructions Week 2 Assignment: Applying Water Balance Water balance is a very important concept in water resource management, since determining the water balance (also...
-
The irreversible, first-order reaction of gaseous A B occurs in spherical catalyst pellets with a radius of 2 mm. For this problem, the molecular diffusivity of A is 1.2 X 10 1 cm 2 /s and the...
-
You have just created a retirement savings account for your newborn baby with an initial investment of $1,000. You expect it to exhibit an average expected return of 7% per year (compounded yearly)....
-
True or False: If your time value of money is 10% annually, then you will be indifferent between receiving \($1000\) today and receiving \($1100\) one year from today.
-
Four proposals (A, B, C, and D) are available for investment. Proposals A and C cannot both be accepted; Proposal B is contingent upon the acceptance of either Proposal C or D; and Proposal A is...
-
Five proposals (V, W, X, Y, and Z) are available for investment. At least two and no more than four must be chosen. Proposals X and Y are mutually exclusive. Proposal Z is contingent on either...
-
You borrow \($5\),000 at 10 percent per year and will pay off the loan in three equal annual payments starting 1 year after the loan is made. The end-of-year payments are \($2\),010.57. Which of the...
-
A study made in the assembly department of a small electronics manufacturing firm revealed that workers typically produce 100 to 150 assemblies in an 8-hour workday. For simplicity, assume the...
-
Kimberly Moss 04/02/22 3:34 PM Homework: Section 7.2 HW Score: 83.06%, 14.95 of 18 points Points: 0.25 of 1 Question 1, 7.2.1-T E Sampling Distribution of the Mean Home Part 2 of 4 Save Co Given a...
-
In muscle tissue, the ratio of phosphorylase a to phosphorylase b determines the rate of conversion of glycogen to glucose 1phosphate. Classify how each event affects the rate of glycogen breakdown...
-
Using the functional dependencies of Exercise 7.11, compute the canonical cover Fc.
-
When is it preferable to use a dense index rather than a sparse index? Explain your answer. Discuss.
-
Define the concept of aggregation. Give two examples of where this concept is useful.
-
What stimulates the heart to beat?
-
Oxygen moves from the alveoli in the lungs into the bloodstream through the process of (a) active transport. (b) endocytosis. (c) diffusion. (d) exocytosis.
-
The cells that carry oxygen to body tissues are (a) red blood cells. (b) white blood cells. (c) platelets. (d) hemoglobin.
Study smarter with the SolutionInn App