1 answer

Please provide the relation algebra, the oracle SQL code and the output tuples for the following (Answer #6 only the

Question:

Please provide the relation algebra, the oracle SQL code and the output tuples for the following (Answer #6 only the BONUS question). I have the others actually I have the BONUS, but I want to compare with your solution to make sure I did it correctly. Thank you very much!
LAB exercises 2 Write the Oracle DML query codes for the following questions and take the screen shot of the output. 1. Retri
Figure 5.6 One possible database state for the COMPANY relational database schema EMPLOYEE Ssn Fname Minit Lname Sex Dno B Sm
LAB exercises 2 Write the Oracle DML query codes for the following questions and take the screen shot of the output. 1. Retrieve the name and address of all employees who work for the Research' department. 2. For every project located in "Stafford", list the project number, the controlling department number, and the department manager's last name, address, and Bdate 3. List the names of all employees with two or more dependents 4. Retrieve the names of employees who have no dependents. 5. List the names of managers who have at least one dependent 6. (Bonus submit it on the day of final exam) Find the names of the employee who works on ALL projects controlled by department 4 Figure 5.7 Referential integrity constraints displayed on the COMPANY relational database schema. EMPLOYEE Fname Minit Lname Ssn Bdate Address Sex Super ssn Dno DEPARTMENT Dname Dnumber Mgr.ssn Mgr.start date DEPT LOCATIONS PROJECT Pname PumberPlocation Dnum WORKS ON Hours DEPENDENT ame Sex Bdate Relationship
Figure 5.6 One possible database state for the COMPANY relational database schema EMPLOYEE Ssn Fname Minit Lname Sex Dno B Smith 123456789 1965-01-09 731 Fondren, Houston, TX M 30000 333445555 5 33445555 1955-12-08 638 Voss, Houston, TX M 40000 8886655555 JZelaya 999887777 1968-01-19 3321 Castle, Spring. TX F 25000 98765432 4 JenniferS Wallace 987654321 1941-06-20 291 Berry, Bellaire, TX 43000 8886655554 Ramesh | K | Narayan | 666884444 | 1962-09-15 | 975 Fire Oak, Humble, TX | M | 38000 | 333445555 | 5 A English 453453453 1972-07-31 5631 Rice, Houston, TX F 25000 3334455555 AhmadV Jabbar 987987987 1969-03-29 980 Dallas, Houston, TX M25000 987654321 4 AliciaJ James Borg 888665555 1937-11-10 450 Stone, Houston, TX M 55000 NULL DEPARTMENT DEPT LOCATIONS 333445555 987654321 888665555 1988-05-22 1995-01-01 1981-06-19 WORKS ON Hours Pname 123456789 123456789 666884444340.0 453453453 4534534532 20.0 333445555 333445555 333445555 333445555 999887777 DEPENDENT 333445555 F 1986-04-05 Daughter M 1983-10-25 Son 987987987 10 987987987 987654321 987654321 888665555 987654321 Abn 123456789 123456789 123456789 Elizabeth M 1942-02-28 Spouse M 1988-01-04 Son F 1988-12-30 Daughter Alice

Answers

Please find the below Query:

Select Concat(Fname,',',Minit,',',Lname) AS FullName from Employee e,Works_on w,project p where e.Ssn=w.Essn and w.Pno=p.Pnumber where p.Dnum=4;

As the works_on table and Project table has project number so we can join them.Also Works_on table has Essn which is same as Ssn in Employee table.so we can join them using that.

Output Tuples are below:

FullName

---------------

Franklin,T,Wong
Alicia,J,Zelaya
Ahmed,V,Jabbar
Jennifer,S,Wallace

I have not run the query in any compiler. So there may be some compilation error.

Please let me know if you have any doubt;

.

Similar Solved Questions

1 answer
Please give solutions with detailed explanations. I appreciate neat hand writing. Thanks a lot. 3. (a)...
Please give solutions with detailed explanations. I appreciate neat hand writing. Thanks a lot. 3. (a) Show that [e-21/a (1 + 2r/a + 2r2/a?)] = -4r²e-20/a. (b) Use this result to show that the ground state wavefunction of the hydrogen atom is properly normalized: S• P(r) dr = 1. In astrono...
1 answer
4. The future earnings, dividends, and common stock price of Barstool Inc. are expected to grow...
4. The future earnings, dividends, and common stock price of Barstool Inc. are expected to grow 2% per year. Barstool’s common stock currently sells for $18.00 per share. Its last dividend was $1.50 and it will pay $1.53 dividend at the end of the current year. a. Using the DCF approach, what...
1 answer
Abbreviations (8 points) On the line provided, give meanings for the following abbreviations, then write each...
Abbreviations (8 points) On the line provided, give meanings for the following abbreviations, then write each abbreviation next to its explanation below 1. ABCDE 2. bx. 3. Derm 4. DLE 5.PPD 6.PUVA 7.5C 8. SLE Treatment for psoriasis and other skin conditions Photo-sensitive scaling, plaque-like, sup...
1 answer
In auditing accounts receivable, the “negative” form of confirmation request most likely       would be used...
In auditing accounts receivable, the “negative” form of confirmation request most likely       would be used when      a. Accounts receivable consist of a number of accounts with large customer balances.      b. Control Ris...
1 answer
Last guy got it wrong please only answer if you're 100% sure. Constants | Periodic Table...
last guy got it wrong please only answer if you're 100% sure. Constants | Periodic Table Part A Coulomb's law for the magnitude of the force F between two particles with charges Q and Q separated by a distance d is What is the net force exerted by these two charges on a third charge ga 54 5 ...
1 answer
Eor the Quarter Ended March 31 Month January February March 90,000 95,000 98,000 1st Quarter Units...
Eor the Quarter Ended March 31 Month January February March 90,000 95,000 98,000 1st Quarter Units to be produced 1.5 Multiply by: Quantity of DM needed per unit Quantity needed for production Plus: Desired end inventory of DM Total quantity needed Less: Beginning inventory of DM Quantity to purchas...
1 answer
Consider the following information about three stocks: State of Economy Probability of State Rate of Return...
Consider the following information about three stocks: State of Economy Probability of State Rate of Return if State Occurs Stock A Stock B 0.24 0.36 0.17 0.13 0.00 -0.28 Boom Normal Bust 0.35 0.50 0.15 Stock C 0.55 0.09 -0.45 a. What is the expected return of Stock A? The standard deviation? (6 poi...
1 answer
32. A neon sign transformer has 450 W AC output with an rms voltage of 15...
32. A neon sign transformer has 450 W AC output with an rms voltage of 15 KV when connected to normal household outlet (120 V). There are 500 turns of wire in the primary coil. (a) How many turns of wire does the secondary coil have? (b) When the transformer is running at full power, what are the cu...
1 answer
A jet airplane reaches 872 km/h on a certain flight. What distance does it cover in...
A jet airplane reaches 872 km/h on a certain flight. What distance does it cover in 10.0 min? Set the math up. But don't do any of it. Just leave your answer as a math expression. Also, be sure your answer includes all the correct unit symbols. X 5 ?...
1 answer
27. Display item number, item name, and amount on hand for the items that have less...
27. Display item number, item name, and amount on hand for the items that have less than data by the on hand value. 28. Display the total on hand value for each category in the Item table. Order the results by category. 29. Display item number, item name, and amount on hand for the items that have l...
1 answer
Luthor Corp. is expected to generate a free cash flow (FCF) of $14,950.00 million this year...
Luthor Corp. is expected to generate a free cash flow (FCF) of $14,950.00 million this year (FCF, - $14,950.00 million), and the FCF is expected to grow at a rate of 23.80% over the following two years (FCF, and FCF). After the third year, however, the FCF is expected to grow at a constant rate of 3...
1 answer
.... Let n an entl divergent ? a) an True os false b) an TS Convergent...
.... Let n an entl divergent ? a) an True os false b) an TS Convergent , divergent of con't be conch n=0...
1 answer
Question 12 7 pts What is the final concentration of a solution prepared by taking 30.0...
Question 12 7 pts What is the final concentration of a solution prepared by taking 30.0 mL of 3.0 M potassium sulfite, K2SO3, and diluting it by adding 84.3 mL of water? HINT: What is the final volume of solution? Question 13 7 pts What is the pH of a 0.71 M HCl solution? Hint: Remember, for a stron...
1 answer
What is the primary aim of the Reserve Bank of Australia's development and implementation of monetary...
What is the primary aim of the Reserve Bank of Australia's development and implementation of monetary policy? A. To achieve an inflation rate of zero B. To achieve low and stable inflation C. To be the lender of last resort to failing companies D. To stabilise the financial system...
1 answer
Problem 1. A Monthly Mortgage.Please fill in the cells highlighted in GREEN Your local bank has...
Problem 1. A Monthly Mortgage.Please fill in the cells highlighted in GREEN Your local bank has offered you a mortgage of $100,000. There are no points, no origination fees, and no extra costs (meaning: you ge the full $100,000) The mortgage is to be paid back over 10 years in monthly payments, and ...
1 answer
Signify TRUE or FALSE as applicable for each of the following items as they pertain to...
Signify TRUE or FALSE as applicable for each of the following items as they pertain to depreciation. [T/F] a. Accelerated deprecation is better suited for situations where assets become worn based on usage rather than passable of time. b. Accelerated depreciation means that the asset is depreciated ...
1 answer
Parker Plastic, Inc., manufactures plastic mats to use with rolling office chairs. Its standard cost information...
Parker Plastic, Inc., manufactures plastic mats to use with rolling office chairs. Its standard cost information for last year follows: Standard Quantity Standard Price (Rate) Standard Unit Cost Direct materials (plastic) 12 sq ft. $ 0.83 per sq. ft. $ 9.96 Direct labor 0.25 hr. $ 10.50 per ...