subject

CASE STUDY TRIGGERS: BIIT software house wants to maintain a database of its employees, projects assigned to employees and accounts. Database schema is given below.
1- EMPLOYEE( eid, eName, eAge, eCity, eRank, eDep) 2- PROJECT ( pid, pName, pBonusAmout)
3- Project_Allocation ( eid, pid)
4- ACCOUNTS ( eid, Year, Month, Basic_Salary, Project_Bonus)
5- ACCOUNTS_BACKUP( eid, Year, Month, Basic_Salary, Project_Bonus) 6- LOG( srNo, table_name , Date, Time, event, no_of_rows_effected)

Perform following tasks

a- Whenever a record is inserted or updated from ACCOUNTS table, it must also be inserted / updated in ACCOUNT_BACKUP table as well. Do not allow user to delete any record from ACCOUNTS or ACCOUNTS_BACKUP table. On insertion in ACCOUNTS table, Project_Bonus will be calculated by system on the basis of projects assigned to employee.
b- Make sure primary foreign keys must not violate in any table. You must use triggers to apply any type of constraints. All keys are mentioned at the end.
c- LOG table will maintain every activity of Database. Whenever a record is inserted, updated or deleted in database. All data regarding event will be stored in LOG table.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 08:00
What is the first step in creating a maintenance ?
Answers: 2
question
Computers and Technology, 22.06.2019 12:00
Which of the following “invisible” marks represents an inserted tab?
Answers: 1
question
Computers and Technology, 22.06.2019 19:00
If your accelerator suddenly gets stuck what should you do
Answers: 2
question
Computers and Technology, 22.06.2019 23:30
What are some ways to use a range name in a formula? check all that apply. in the defined names group, click use in formula, and then select the desired name. begin typing the name in the formula, select a name from the autocomplete list, and use the arrow keys and tab key to enter the name in the formula. begin typing the formula, and then click and drag with the mouse to select the cells to include in the formula. right-click one of the cells in the range. click formula options, and use the dialog box to add the name.
Answers: 1
You know the right answer?
CASE STUDY TRIGGERS: BIIT software house wants to maintain a database of its employees, projects as...
Questions
question
Mathematics, 23.03.2021 01:50
question
Biology, 23.03.2021 01:50
question
Mathematics, 23.03.2021 01:50
question
Mathematics, 23.03.2021 01:50
question
Mathematics, 23.03.2021 01:50
question
Mathematics, 23.03.2021 01:50
question
Mathematics, 23.03.2021 01:50
question
Mathematics, 23.03.2021 01:50
question
Biology, 23.03.2021 01:50
Questions on the website: 13722362