Consider the relational database of Figure. Using SQL, define a view consisting of manager-name and the average
Question:
Consider the relational database of Figure. Using SQL, define a view consisting of manager-name and the average salary of all employees who work for that manager. Explain why the database system should not allow updates to be expressed in terms of this view.
Transcribed Image Text:
employee (employee-name, street, city) works (employee-name, company-name, salary) соmpany (compaу-пате, сity) manages (employee-name, manager-name)
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Answer rating: 75% (16 reviews)
Create view salinfo as select managername avgsalary from ...View the full answer
Answered By
Vijay kumar
Currently, I am pursuing my Bachelor of Engineering in Mechanical Engineering from INSTITUTE OF ENGINEERING AND SCIENCE IPS ACADEMY INDORE.
I am not professionally related to any educational institute neither I worked for them, apart from that I use to teach my brother and my juniors and I did it for like 4 to 5 years, I use to solve their doubts related to their subjects.
0.00
0 Reviews
10+ Question Solved
Related Book For
Question Posted:
Students also viewed these Computer Sciences questions
-
Consider the relational database of Figure. Give an expression in the relational algebra for each request: a. Modify the database so that Jones now lives in Newtown. b. Give all employees of First...
-
Consider the relational database of Figure. Write a Datalog program for each of the following queries: a. Find all employees who work (directly or indirectly) under the manager Jones. b. Find all...
-
Consider the relational database of Figure. Give an expression in SQL for each of the following queries. a. Modify the database so that Jones now lives in Newtown. b. Give all employees of First Bank...
-
Bookstores International, a bookstore chain, has been quite successful over the past few decades and is now in expansion mode. It typically approaches opening a new bookstore by first determining the...
-
Sunflower Company manufactures and sells a single product. The company's sales and expenses for last year follow: Requirements 1. Fill in the missing numbers in the preceding table. Use the following...
-
Kimberly Manufacturing uses a process-costing system to manufacture Dust Density Sensors for the mining industry. The following information pertains to operations for the month of May, Year 5. Units...
-
Describe how the use of technology in the selection process is adding value to organizations.
-
Suppose that in court, Durbin argues that because the school closed down before he could finish his education, there was a failure of consideration: he did not get something of value in exchange for...
-
There is a debt of $9,000 payable in 3 installments of $3,000 at 60, 180 and 300 days. This debt will be paid in 3 quarterly payments: one of $1,000 and the other of $2,000. If the agreed rate is 60%...
-
Babu Baradwaj is saving for his sons college tuition. His son is currently 11 years old and will begin college in seven years. Babu has an index fund investment worth $7,500 that is earning 9.5...
-
Show that, in SQL, < > all is identical to not in.
-
Consider the SQL query select p.a1 from p, r1, r2 where p.a1 = r1.a1 or p.a1 = r2.a1. Under what conditions does the preceding query select values of p.a1 that are either in r1 or in r2? Examine...
-
The following information are supplied at the inlet and exit of an adiabatic nozzle operating at steady state: Inlet: V = 30 m/s, h = 976.2 kJ/kg, s = 6.149 kJ/kg-K; Exit: h = 825.5 kJ/kg. Determine...
-
Which of the following statements is true considering the code below? interface A { void firstMethod(); } class AAA implements A { public void firstMethod() {System.out.print("AAA"); } } interface B...
-
A spray can containing a propellant gas at twice atmospheric pressure (202 kPa) and having a volume of 126.00 cm is at 28C. It is then tossed into an open fire. (Warning: Do not do this experiment;...
-
An auto repair shop borrowed $14000 to be repaid by semi dash annual payments over 8 years. Interest on the loan is 9 % compounded semi dash annually.(a) What is the size of the periodic payment?(b)...
-
What should be done when the information life cycle of the data collected by an organization ends? Group of answer choices Mask the data Tokenize the data Destroy the data Protect the data
-
What value will the following program print out? Show all your computations step by step. #include int main(void) { int x=2, y=17, z=11, result=5; result -= 2 * z % 13+y/3+x; \\"result - something"...
-
Improve the content of these passages from job cover letters. You may need to add content. 1. I am a very hard worker. In fact, I am known for finishing the jobs of my co-workers. 2. I have always...
-
Explain the term "Equivalent Units". Why are they calculated in process costing? [4 Marks] [minimum 350 words]
-
If disposal of industrial liquid wastes by incineration is to be a feasible process, it is important that the toxic chemicals be completely decomposed into harmless substances. One study carried out...
-
Consider the issue of interesting orders in optimization. Suppose you are given a query that computes the natural join of a set of relations S. Given a subset S1 of S, what are the interesting orders...
-
Consider the query: select * from r, s where upper(r.A) = upper(s.A) where upper is a function that returns its input argument with all lowercase letters replaced by the corresponding uppercase...
-
Show that, with n relations, there are (2(n1))!(n1)! different join orders. A complete binary tree is one where every internal node has exactly two children. Use the fact that the number of different...
-
What effect does an antagonist drug have over the receptors ?
-
Read this article on the differences and Comparisons between UNIX and LINUX http://www.diffen.com/difference/Linux_vs_Unix, then do some research and post your thoughts on each of the systems. Based...
-
Assume that in 2023, Bobby had a vacant lot that was given to him as a gift from his father that had an FMV of $40,000 and an adjusted basis of $15,000.
Study smarter with the SolutionInn App