CREATE TABLE Employee-Work (age INTEGER, ssn CHAR(10), name CHAR(50), pid CHAR(10) Not Null, PRIMARY KEY (ssn),...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
CREATE TABLE Employee-Work (age INTEGER, ssn CHAR(10), name CHAR(50), pid CHAR(10) Not Null, PRIMARY KEY (ssn), FOREIGN KEY (pid) REFERENCES Project ON Delete CASCADE) CREATE TABLE Project( pid CHAR(10), Project pid 100 102 200 101 budget 500K 400K 700K 100K budget CHAR(10), PRIMARY KEY (pid)) Employee-work Ssn name 5380 Joe 5381 Ali 5382 Jill pid 102 101 100 What will be the new instances of the tables Employee-work and Project after running the following query? DELETE FROM Project P WHERE P.pid=100 or P.pid-200 CREATE TABLE Employee-Work (age INTEGER, ssn CHAR(10), name CHAR(50), pid CHAR(10) Not Null, PRIMARY KEY (ssn), FOREIGN KEY (pid) REFERENCES Project ON Delete CASCADE) CREATE TABLE Project( pid CHAR(10), Project pid 100 102 200 101 budget 500K 400K 700K 100K budget CHAR(10), PRIMARY KEY (pid)) Employee-work Ssn name 5380 Joe 5381 Ali 5382 Jill pid 102 101 100 What will be the new instances of the tables Employee-work and Project after running the following query? DELETE FROM Project P WHERE P.pid=100 or P.pid-200
Expert Answer:
Related Book For
Fundamentals Of Database Systems
ISBN: 9780133970777
7th Edition
Authors: Ramez Elmasri, Shamkant Navathe
Posted Date:
Students also viewed these databases questions
-
7 3 What is the least common denominator of and 12'8 55 17 15 The answer is type your answer...
-
A boatman goes 2 km against the current of the stream in 1 hour and goes 1 km along the current in 10 minutes. How long will it take to go 5 km in stationary water? A)1.30hrs B)3.209hrs C)2.15hrs...
-
Lord of Chips seeks your advice in measuring its overall cost of capital. The firm is in the 30% tax bracket. You have collected the following information. Sources of Capital Market price New issue...
-
Following procedures similar to those for the homogeneous problem (see Section 8.4.1), develop the following stress field for a pressurized hole in an infinite nonhomogeneous medium with moduli...
-
An injection-molded part is equally likely to be obtained from any one of the eight cavities on a mold. (a) What is the sample space? (b) What is the probability a part is from cavity 1 or 2? (c)...
-
While reviewing the long-term debt work papers, neither Madison nor Alanis discovered the critical error Blackwell had made when testing Le Prix's compliance with its debt covenants. What auditing...
-
Estimate the energy that a runner expends to overcome aerodynamic drag while running a complete marathon race. This expenditure of energy is equivalent to climbing a hill of what height? List all...
-
Each of the following situations describes an organizational unit. Identify the type of responsibility centre of each item in italics (cost, revenue, profit, or investment centre). a. The Goodyear...
-
Discuss the relationship between sustainability and corporate social responsibility (CSR), addressing how companies can integrate sustainability goals into their business strategies, stakeholder...
-
Exhibit 4 in the case shows the average cost per passenger for British Airways. Classify the listed operating expenses per passenger as fixed or variable. (Note: Assume aircraft capacity is fixed....
-
A company finances it operations with 50 percent debt and the rest using equity. The annual yield on the company's debt is 3.2% and the required rate of return on the stock is 10.4%. What is the...
-
A pair of 80-N forces is applied to the handles of the small eyelet squeezer. The block at A slides with negligible friction in a slot machined in the lower part of the tool. Neglect the small force...
-
Precision Machinists makes two grades of gears for industrial machinery: standard and heavy duty. The process requires two steps. Step-1 takes 8 minutes for the standard gear and 10 minutes for the...
-
The information below is relevant for both projects: All sales are expected to be cash sales, and all costs are expected to be paid for in cash as and when incurred. Depreciation is charged on a...
-
The channel shape cross-section and the rectangular cross-section shown in the Figure are made of materials with elastic-perfectly plastic behaviour. The yield stress of the material used for the...
-
Which portfolio is most sensitive and which portfolio is least sensitive to the change from the CAPM to FF3 model? Why? r-squared alpha Market beta Smb beta Hml beta Expected return per month Small...
-
The density of a 0.438 M solution of potassium chromate at 298 K is 1.063 g cm. Calculate the vapour pressure of water above this solution. Given: P (water) = 23.79 mm Hg.
-
Imagine a sound wave with a frequency of 1.10 kHz propagating with a speed of 330 m/s. Determine the phase difference in radians between any two points on the wave separated by 10.0 cm.
-
What are digital libraries? What types of data are typically found in them?
-
What is the downward closure property? How does it aid in developing an efficient algorithm for finding association rules; that is, with regard to finding large itemsets?
-
What are the four major characteristics of big data? Provide examples drawn from current practice of each characteristic.
-
Two small pith balls, initially separated by a large distance, are each given a positive charge of \(5.0 \mathrm{nC}\). By how much does the electric potential energy of the two-ball system change if...
-
The negative terminal of a \(9-\mathrm{V}\) battery is connected to ground via a wire. (a) What is the potential of the negative terminal? (b) What is the potential of the positive terminal? (c) What...
-
Two metallic spheres A and B are placed on nonconducting stands. Sphere A carries a positive charge, and sphere B is electrically neutral. The two spheres are connected to each other via a wire, and...
Study smarter with the SolutionInn App