Code an oracle database trigger

Assignment Help Database Management System
Reference no: EM1389983

1. Code an Oracle Database trigger to enforce the constraint that an employee can never change his or her department.

2. Code an Oracle Database trigger to allow the deletion of a department if it only has one employee. Assign the last employee to the Human Resources department.

3. Design a system of triggers to enforce the M-M relationship.

4. as an example, but assume that departments with only one employee can be deleted. Assign the last employee in a department to Human Resources.

Reference no: EM1389983

Questions Cloud

Explain the direction of blood flow : Describe the direction of blood flow and the type of blood oxygenated or deoxygenated for each vessel in the pulmonary and systemic circuits.
Describe how forecasting and planning will fit in your hr : Describe how forecasting and planning will fit in your HR plan. Be sure to link all of your HR plan components to a business strategy.
Diagnostic test for the situation : Eric is a twenty-one-year-old, sexually active college student who presents to the infirmary complaining of dysuria and pyuria.
Sophisticated score-keeping system is an important function : a sophisticated score-keeping system is an important function for all types of organizations and to remain effective it must be viewed not as a tool but as an end in itself
Code an oracle database trigger : Code an Oracle Database trigger to enforce the constraint that an employee can never change his or her department.
Synthesize the enzymes coded by trpe, trpd, trpc and trpb : Think about the trp operon. For each condition below, indicate whether the cell will synthesize the enzymes coded by trpE, trpD, trpC, trpB, and trpA and be able to synthesize trypophan.
Model the state of system as a ctmc : A shock can cause the failure of component 1 alone with probability p, component 2 alone with probability q, both components with probability r, or have no effects with probability 1-p-q-r. Suppose no repairs are possible and the system fails when..
Final tax legislation involves compromising divergent points : Final tax legislation involves compromising divergent points of views and therefore it is easy searching for a consistent economic rationale within prevailing tax codes
Construct a frequency distribution : Construct a frequency distribution (class, tally and frequency) for the data set using the indicated number of classes. In the table, include the midpoint, relative frequencies and cumulative frequencies.

Reviews

Write a Review

Database Management System Questions & Answers

  Creating database structure using sql

creating database structure using SQL

  What is the two-phase locking protocol

What is the two-phase locking protocol and what is the strict two-phase locking protocol? What is the rigorous two-phase locking protocol? What benefit does strict two-phase locking protocol provide? What benefit does rigorous two-phase locking pr..

  Find average number of books borrowed from database table

Find the average number of books borrowed per member. Take into account that if a member does not borrow any books, then that member does not appear in the borrowed relation at all.

  Explaining views for protecting access by unauthorized users

Why do you believe that views by themselves are insufficient for protecting access by unauthorized users?

  Sketch dfsa for identifiers-contain only letters and digits

Sketch a DFSA for identifiers which contain only letters and digits, where identifier should have at least one letter, but it need not be first character.

  Design update trigger on part table which raises error

Design the Update trigger on Part table which raises an error string if Count field of updated row has a higher value than value prior to Update.

  Design database for keeping information of actors

Design a database for Ray. For each director, list his or her number and name and the year he or she was born. If the director is deceased, list the year of death.

  Analyzing hard-to-obtain data from two separate databases

You are interested in analyzing some hard-to-obtain data from two separate databases. Each database contains n numerical values.

  Explain why it is important to record information

You have just received a new computer at work. it runs fast and works great. thinking about the future and the day something might break explain why it is important to record this information.

  Pharmacy designating database

Pharmacy systems today are more efficient and user friendly when compared to the systems 20 years ago.

  Design data file grades with records of form

Input names of students from user, terminated by ZZZ, and design the data file GRADES with records of form: student (string), test1 (integer), test2 (integer), test3 (integer).

  What is recovering database via rollforward

What is Recovering a database via rollforward? What is aim of transaction log? What is contained in transaction log?

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