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: 77% (18 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...
-
Mark and Joan Rosa aged 30 and 28, respectively, have been married for 2 years. They have no children but they are planning to have two kids in 3 years time. Their financial data is as follows:...
-
What are the advantages of using telephone interviews of the type described in the box? For what types of job would you use this approach to selection?
-
In 2010, its first year of operations, Kimble Corp. has a $900,000 net operating loss when the tax rate is 30%. In 2011, Kimble has $360,000 taxable income and the tax rate remains 30%. Instructions...
-
A prestigious investment bank designed a new security that pays a quarterly dividend of $2.75 in perpetuity. The first dividend occurs one quarter from today. What is the price of the security if the...
-
Managing Scope Changes Case Study Scope changes on a project can occur regardless of how well the project is planned or executed. Scope changes can be the result of something that was omitted during...
-
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 small 2-lb collar starting from rest at A slides down along the smooth rod. During the motion, the collar is acted upon by force F = {10i + 6yj + 2zk} lb, where x, y, z are in feet. Determine the...
-
Toro Corp. reports the following two years of balance sheets and some additional information. 2019 2018 Cash S 92,915 $ 31,355 Accounts receivable 94,000 80,850 Inventory 179,000 157,600 Prepaid...
-
The Westchester Chamber of Commerce periodically sponsors public service seminars and programs. Currently, promotional plans are under way for this year's program. Advertising alternatives include...
-
Mastery Problem: Differential Analysis and Product Pricing WoolCorp WoolCorp buys sheep's wool from farmers. The company began operations in January of this year, and is making decisions on product...
-
Ross Co. is an oil and gas company located in the Western United States. Ross follows U.S. GAAP in recording and reporting its financial transactions and has a year-end of 12/31. During the fiscal...
-
The following unadjusted trial balance is for ACE CONSTRUCTION CO. as of the end of its 2017 fiscal year. The June 30, 2016, credit balance of the owners capital account was $57,000, and the owner...
-
W e are pleased to inform you that we have selected you for an interview for the sales associate position.
-
What types of inventory issues Starbucks might reflect upon at the end of each year? The mission of Starbucks is to inspire and nurture the human spiritone person, one cup, and one neighborhood at a...
-
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...
-
Be prepared to explain the texts comprehensive To illustrate the issues related to interest capitalization, assume that on November 1, 2016, Shalla Company contracted Pfeifer Construction Co. to...
-
On April 1, 2020. Indigo Company received a condemnation award of $473,000 cash as compensation for the forced sale of the company's land and building, which stood in the path of a new state highway....
-
The market price of a stock is $24.55 and it is expected to pay a dividend of $1.44 next year. The required rate of return is 11.23%. What is the expected growth rate of the dividend? Submit Answer...
Study smarter with the SolutionInn App