Create trigger on update of chairid that enforces

Assignment Help Database Management System
Reference no: EM132087290

Do only in Oracle SQL.

Make sure to test code before submitting.

Create two tables:

Employee: empID (PK), empFname, empLname, deptID(FK) and

Department: deptID(PK), deptName, chairID

chairID is empID from Employee table

Insert at least 3 rows in the Department table and at least 6 rows in the Employee table.

Create trigger on update of chairID that enforces the following business rules

One employee can chair no more than one department.

Each department has exactly one chair.

Reference no: EM132087290

Questions Cloud

Established with an equilibrium constant value : 1) Among the following equilibrium expressions for the dissolution of calcium fluoride (CaF2) in water... the correct expression is?
The concept of the time value of money : Most techniques used to determine economic feasibility encompass the concept of the time value of money (TVM) and break-even analysis (BEA).
Calculate the rate constant k : In a university laboratory experiment the rate of disappearance of ozone (O3) was measured to be 9 x 10-3 M/s. Simultaneously, the concentration of ozone
List the isbn and title of books published by the publisher : Display the title and publisher of the most expensive book based on the retail price.
Create trigger on update of chairid that enforces : Create trigger on update of chairID that enforces the following business rules One employee can chair no more than one department.
Causes the rate of formation of a : Tripling the initial concentration of X causes the rate of formation of A to be increased by a factor of 9.
Design the appropriate er-schema diagram : Design the appropriate ER-schema diagram for the given data requirements Specify all key attributes and all structural constraints.
Calculate the amount concentration of the original silver : Based on your observations, what substance is the excess reagent? Identify the evidence that supports this.
Determine the unknown voltages for each circuit : Determine the unknown voltages for each circuit - calculate the voltage gain for each stage and the overall voltage gain. Assume the op-amps to be ideal

Reviews

Write a Review

Database Management System Questions & Answers

  Knowledge and data warehousing

Design a dimensional model for analysing Purchases for Adventure Works Cycles and implement it as cubes using SQL Server Analysis Services. The AdventureWorks OLTP sample database is the data source for you BI analysis.

  Design a database schema

Design a Database schema

  Entity-relationship diagram

Create an entity-relationship diagram and design accompanying table layout using sound relational modeling practices and concepts.

  Implement a database of courses and students for a school

Implement a database of courses and students for a school.

  Prepare the e-r diagram for the movie database

Energy in the home, personal energy use and home energy efficiency and Efficient use of ‘waste' heat and renewable heat sources

  Design relation schemas for the entire database

Design relation schemas for the entire database.

  Prepare the relational schema for database

Prepare the relational schema for database

  Data modeling and normalization

Data Modeling and Normalization

  Use cases perform a requirements analysis for the case study

Use Cases Perform a requirements analysis for the Case Study

  Knowledge and data warehousing

Knowledge and Data Warehousing

  Stack and queue data structure

Identify and explain the differences between a stack and a queue data structure

  Practice on topic of normalization

Practice on topic of Normalization

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