Give an SQL schema definition for the employee database of Figure 3.19. Choose an appropriate domain for
Question:
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 foreign-key constraints that might be appropriate
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: 75% (16 reviews)
CREATE TABLE employee ID INT NOT NULL personname VARC...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
-
Give an SQL schema definition for the employee database of Figure. Choose an appropriate domain for each attribute and an appropriate primary key for each relationschema. employee (employee-name,...
-
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...
-
Consider the employee database of Figure, where the primary keys are underlined. Give an expression in SQL for each of the following queries. a. Find the names of all employees who work for First...
-
Below is list of ethical principles that a business might follow. Think of a situation where following each might not necessarily be the right thing. a. Follow contracts to the letter. b. Never...
-
Base your answers to the following questions on the 2009 financial statements for Michelin Group in Exhibit 1-8. This international French company manufactures and sells tires. In Exhibit 1-8...
-
Define Transaction Processing System?
-
Understand the importance of good communications on projects and the need to develop soft skills, especially for IT project managers and their teams? LO.1
-
Global Reach, Inc., is considering opening a new warehouse to serve the Southwest region. Darnell Moore, controller for Global Reach, has been reading about the advantages of foreign trade zones. He...
-
Tamarisk Discount Wholesale Company has a $ 1 4 6 5 0 0 balance in Accounts Receivable and a $ 3 0 0 debit balance in Allowance for Doubtful Accounts at year - end just prior to recording adjusting...
-
Allie has bought a new apple orchard. The orchard has a single file of trees, numbered from 1 to N. Each tree has a certail number of ripe apples. Allie has a rule she wants to follow. She wants to...
-
Show that, in SQL, all is identical to not in.
-
Rewrite the where clause where unique (select title from the course) without using the unique construct.
-
What factors will constrain the growth potential of Dyson and Center Parcs now that they are well-established enterprises in their respective sectors? How appropriately are their strategies...
-
X 18. State the amplitude and period of: y = -4cos Graph one cycle of the function. 4 1 19. State the amplitude and period of: y = -sin(4x) Graph one cycle of the function. 4
-
Explain ways in which an organisation may overcome security vulnerabilities and issues?
-
A nonpipelined system takes 300ns to process a task. The same task can be processed in a 4-stage pipeline with a clock cycle of 50ns. Determine the speedup ratio of the pipeline for 400 tasks. What...
-
Within an orthodontic practice that I work in, insufficient patient care and poor time management are the most significant issues in the office. Beginning with the receptionists, scheduling...
-
How has the decision been improved with more of a focus on financial information? Why would it have been a better decision? How could you have included more financial information and where might it...
-
Use the confidence interval to find the margin of error and the sample mean. (20.75, 24.10)
-
Which property determines whether a control is available to the user during run time? a. Available b. Enabled c. Unavailable d. Disabled
-
SQL allows a foreign-key dependency to refer to the same relation, as in the following example: create table manager (employee-name char (20), manager-name char(20), primary key employee-name,...
-
Suppose there are two relations r and s, such that the foreign key B of r references the primary key A of s. Describe how the trigger mechanism can be used to implement the on delete cascade option,...
-
Write an assertion for the bank database to ensure that the assets value for the Perryridge branch is equal to the sum of all the amounts lent by the Perryridge branch.
-
Al preparar el estado de resultados pro forma, cules de las siguientes partidas se deducen de las utilidades brutas para llegar a las ganancias despus de impuestos? Pregunta de seleccin mltiple....
-
Lawson Inc. is expanding its manufacturing plant, which requires an investment of $4 million in new equipment and plant modifications. Lawson's sales are expected to increase by $3 million per year...
-
20 On January 1, Year 1, X Company purchased equipment for $80,000. The company estimates that the equipment will have a useful life of 10 years and a residual value of $5,000. X Company depreciates...
Study smarter with the SolutionInn App