Design of database systems

Assignment Help Database Management System
Reference no: EM13703117

Design of Database Systems

1. Create the database for following relational schema with Employee, Department, and Works tables:

Employee (eid: integer, ename: string, age: integer, salary: real)

Works(eid: integer, did: integer, hours: integer)

Department(did: integer, dname: string, budget: real, managerid: integer)

2. Define a table constraint on Department that will ensure that managerid is always positive and less than 1000.

3. Insert the following records in the database:

Employee

eld

ename

age

salary

101

Jones

23

60000

105

Adams

44

55000

110

Rivera

 

43000

120

Tanaka

 

60000

122

Lee

57

45000

Works

eld

did

hours

101

10

15

105

10

20

101

12

25

122

20

20

122

22

20

105

20

10

120

12

40

105

12

10

Department

did

dname

budget

managerid

10

Accounting

250000

234

12

Research

100000

453

20

Sales

 

678

22

IT

400000

324

4. Get the sorted list of name and budget of each department in which employee Jones works.

5. Get the name and id of youngest employee in Research department.

6. Create a view that shows the eids and managerids in Sales department.

7. Add a column called numHours to the Employee table. Use the UPDATE command to insert values into this new column to correspond to the current information in the Works table.

8. Write a trigger that will increment the new field numHours in the Employee table automatically whenever a record is inserted in the Works table.

9. Write a trigger that will decrement the new field numHours in the Employee table automatically whenever a record is deleted from the Works table.

Reference no: EM13703117

Questions Cloud

About minimum effective radius of insulation : What can you say about minimum effective radius of insulation? A node is located at the external corner with one side exposed to convection, and the other side insulated. if implicent method is use to dicaribe this node, what is the correct stability..
Imagine a hypothetical organism : Imagine a hypothetical organism (critter). A DIPLOID cell from this organism has 20 chromosomes. How many chromosomes would be found in a GERM CELL of this organism?
Many globular proteins contain a segment of amino acids : Many globular proteins contain a segment of amino acids that is extended (stretched out) and after making a U-turn binds with itself. This is one kind of Beta pleated sheet known as antiparallel. Instead of H bonds assisting in forming a spiral (a..
Determine the amount of heat transfer to the air : Air at 14.7 psia, 50°F (DB), and 60% relative humidity is first heated to 110°F (DB) and then humidified by introducing water using an “air washer.” The air leaves the humidifying section at 70°F (DB).
Design of database systems : Write a trigger that will increment the new field numHours in the Employee table automatically whenever a record is inserted in the Works table - Create a view that shows the eids and managerids in Sales department.
Example of benefit or harm to life that hinges on an enzyme : An example of benefit or harm to life that hinges on an enzyme. For example, some diseases are the result of an underproduction or overproduction of a vital enzyme. Also, some substances that are considered poisons or pollutants do their harm..
Find the flux per pole required to generate this voltage : A simplex DC generator is driven by a diesel engine. The generator is lap wound, with 8 coils, 100 turns per coil and 2 poles and generates 200V at a speed of 1000rpm. Find the flux per pole required to generate this voltage.
Compute the force suported by the pin : The uniform slender bar AB has a mass of 8 kg and swings in a vertical plane about the pivot at A. If thett^ = 2 rad/s when theta = 30 degrees, compute the force suported by the pin at A at that instant
Defend an ethical position on the topic of genetic technolog : Editorial letter is designed to have you state and defend an ethical position on the topic of genetic technology. You will write a clear introduction that includes a thesis statement, several body paragraphs and a thoughtful conclusion.

Reviews

Write a Review

Database Management System Questions & Answers

  Yrace history of the development of databases

In 500 words or less, trace the history of the development of databases beginning with pre-computer days to the present.

  Is there a polynomial algorithm for testing whether a

Prove that, if R is in 3NF and every key is simple, then R is in BCNF.

  Explain the statement that relational algebra operators can

Explain the statement that relational algebra operators can be com-posed. Why is the ability to compose operators important?

  Task 1 create 3 rows of data for each table ensuring that

task 1 create 3 rows of data for each table ensuring that the referential integrity is valid.task 2 add the 30 rows of

  A multinational tour operator agency has gained new

a multinational tour operator agency has gained new business growth in the north american market through the use of

  Database containing student info

Create a database containing student info (name, age, ect.).Find a way to allow the user to search the database using a students name and allowing them to delete that students information.Use binary input/output to take the input from the user for th..

  Transform the tables into one or more tables in bcnf

Transform the tables into one or more tables in BCNF. State the primary keys, candidate keys, and referential integrity constraints.

  Make a spreadsheet to compare e-commerce sites

create a spreadsheet to compare the three identified e-commerce hosting sites and the e-commerce hosting site that you find • prepare a PowerPoint presentation that represents the presentation you would give to management explaining your selection..

  Write problems and issues related with internet databases

Write down some of problems and issues related with internet databases? Consider security, performance, architecture issues.

  Describe the features of a database management system

Describe the features of a Database Management System (DBMS) and its use within an organization.

  How the knowledge and skills taught on the module and course

Each student should submit his or her own critical assessment of the coursework. The evaluation should include a discussion on how the coursework has reinforced (or otherwise) his or her appreciation of the techniques and processes employed in undert..

  After a lengthy description he further challenged you to

you are the new chief information officer for acme widgets. the president of the company recently asked you what you

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd