Consider the employee database of Figure 3.19. Give an expression in SQL for each of the following
Question:
Consider the employee database of Figure 3.19. Give an expression in SQL for each of the following queries.
a. Give all employees of “First Bank Corporation” a 10 percent raise.
b. Give all managers of “First Bank Corporation” a 10 percent raise.
c. Delete all tuples in the works relation for employees of “Small Bank Corporation”.
Figure 3.19
Transcribed Image Text:
employee (ID, person_name, street, city) works (ID, company_name, salary) company (company_name, city) manages (ID, manager_id)
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Answer rating: 50% (10 reviews)
a UPDATE works SET salary salary 11 WHERE companyna...View the full answer
Answered By
Kenneth Mutia
I have a B.S. in Statistics from the Jomo Kenyatta University of Agriculture and technology. I have been an academic tutor for over 3 years. I have a passion for helping students reach their full potential and am dedicated to helping them succeed. I am patient and adaptable, and I have experience working with students of all ages and abilities, from elementary school to college in their various fields. I have a wide scope of diverse tutoring experience in several courses of study with significant success as a tutor.
0.00
0 Reviews
10+ Question Solved
Related Book For
Database System Concepts
ISBN: 9780078022159
7th Edition
Authors: Abraham Silberschatz, Henry F. Korth, S. Sudarshan
Question Posted:
Students also viewed these Computer science questions
-
Consider the employee database of Figure 2.17. Give an expression in the relational algebra to express each of the following queries: a. Find the ID and name of each employee who works for BigBank....
-
Consider the employee database of Figure 4.12. Give an SQL DDL definition of this database. Identify referential-integrity constraints that should hold, and include them in the DDL definition. Figure...
-
Give an SQL schema definition for the employee database of Figure 3.19. Choose an appropriate domain for each attribute and an appropriate primary key for each relation schema. Include any...
-
Evan participates in an HSA carrying family coverage for himself, his spouse, and two children. In 2018, Evan has $100 per month deducted from his paycheck and contributed to the HSA. In addition,...
-
List and briefly describe the major qualitative characteristics that accounting information should possess, according to the Framework developed by the IASB.
-
Delta One is an integrated technology company with activities in the fields of industry, energy, and healthcare. The Delta One software division was started in 2009. It is a new division of Delta...
-
A 50-mm-diameter nozzle meter is installed at the end of a 80 -mm-diameter pipe through which air flows. A manometer attached to the static pressure tap just upstream from the nozzle indicates a...
-
At the end of February, Gross Company had completed Jobs 60 and 61. Job 60 is for 25,000 units, and Job 61 is for 32,000 units. Using the data from Practice Exercises determine (a) The balance on the...
-
6. Birdman, Inc. is currently considering an eight-year project that has an initial outlay or cost of $80,000. The future cash inflows from its project for years 1 through 8 are the same at $30,000....
-
Open orbits an open orbit in monovalent tetragonal metal connects opposite faces of the boundary of a Brillouin zone. The faces are separated by G = 2 x 10 8 cm 1 . A magnetic field B = 10 3 gauss =...
-
Consider the insurance database of Figure 3.17, where the primary keys are underlined. Construct the following SQL queries for this relational database. a. Find the number of accidents involving a...
-
Show that, in SQL, all is identical to not in.
-
Jacob receives an allowance of $5 per week. He spends all his allowance on ice cream cones and cans of Lemon Fizz soda. a. If the price of ice cream cones is $0.50 per cone and the price of cans of...
-
The management of Brinkley Corporation is interested in using simulation to estimate the profit per unit for a new product. The selling price for the product will be $45 per unit. Probability...
-
The general purpose of producing a trial balance is to ensure that the entries in a company's bookkeeping system are mathematically correct. A trial balance is so called because it provides a test of...
-
Years ago, February Frost Inc. ( FFI ) borrowed $ 6 7 5 , 0 0 0 from Sweetheart Corporation ( Sweet ) in the form of a 1 0 year, 1 0 % note due on December 3 1 , 2 0 2 4 . FFI has had declining sales...
-
Calculate the net income for Green Thumb Company. Then, assuming the company had retained earnings of $ 1 6 2 , 0 0 0 as of January 1 , 2 0 2 0 , and paid out $ 4 6 , 0 0 0 in dividends during the...
-
Suppose the simplified consolidated balance sheet shown below is for the entire commercial banking system. All figures are in billions of rands. The reserve ratio is 9%. Table 2: Simplified...
-
Prove that if A is a n x n matrix and c is a scalar, then det(c A) = cn det A.
-
For all of the following words, if you move the first letter to the end of the word, and then spell the result backwards, you will get the original word: banana dresser grammar potato revive uneven...
-
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...
-
Write an extended relational-algebra view equivalent to the Datalog rule p (A,C,D) : q1 (A,B), q2 (B,C), q3 (4,B), D = B + 1 .
-
Describe how an arbitrary Data log rule can be expressed as an extended relational algebra view.
-
A soft tennis ball is dropped onto a hard floor from a height of 1.55 m and rebounds to a height of 1.12m. (Assume that the positive direction is upward.) (a) Calculate its velocity (in m/s) just...
-
A 200 mm reinforced concrete wall carries a dead load of 140 kN/m including self-weight and a live load of 60 kN/m. It is to be carried by 500 mm thick footing with its bottom 1.5 m below NGL. Soil...
-
Using www.land.vic.gov.au look up your current place of abode to gather planning information that might be useful in assessing its future development potential. 2. Write one-page report in WORD...
Study smarter with the SolutionInn App