Your Perfect Assignment is Just a Click Away

We Write Custom Academic Papers

100% Original, Plagiarism Free, Customized to your instructions!

glass
pen
clip
papers
heaphones

CPT 310 Ashford Week 5 Implementation of Triggers using PHPMyAdmin Paper

CPT 310 Ashford Week 5 Implementation of Triggers using PHPMyAdmin Paper

Prior to beginning work on this assignment, review Chapter 8: Advanced SQL from the course text and the Using Triggers (Links to an external site.) presentation. This week you will develop the fourth task for the Online Food Ordering Database Project due this week.

For this assignment, you will continue to use PHPMyAdmin to

  • Add a new table to your database. The table should be called tbl_employee_audit and should contain two fields (id, audit_data).
  • Add “for insert”and “delete triggers” to the “tbl_employee” table.

The insert trigger is triggered when a new employee is added to the “tbl_employee” table. The trigger then takes the employee_id as a parameter and adds the following data as a new record to the tbl_employee_audit.

id

audit_data

1

New employee with ID = 1221 was added on Sep 21, 2016

The delete trigger is triggered when a row in the “tbl_employee” table is deleted. The trigger then takes employee_id as a parameter and adds the following data as a new record to the tbl_employee_audit.

id

audit_data

6

Employee with ID = 1221 was deleted on Sep 25, 2016

In your initial post,

  • Attach a screen shot of the SQL query used to create the tbl_employee_audit, updated ER diagram, and SQL queries you used to generate the “for insert” and “for delete” triggers.
  • Attach all the SQL queries you created for this assignment.
  • Provide a short description of the use and different type of triggers in MySQL.

Order Solution Now

Our Service Charter

1. Professional & Expert Writers: Studymonk only hires the best. Our writers are specially selected and recruited, after which they undergo further training to perfect their skills for specialization purposes. Moreover, our writers are holders of masters and Ph.D. degrees. They have impressive academic records, besides being native English speakers.

2. Top Quality Papers: Our customers are always guaranteed papers that exceed their expectations. All our writers have +5 years of experience. This implies that all papers are written by individuals who are experts in their fields. In addition, the quality team reviews all the papers before sending them to the customers.

3. Plagiarism-Free Papers: All papers provided by Studymonk are written from scratch. Appropriate referencing and citation of key information are followed. Plagiarism checkers are used by the Quality assurance team and our editors just to double-check that there are no instances of plagiarism.

4. Timely Delivery: Time wasted is equivalent to a failed dedication and commitment. Studymonk is known for timely delivery of any pending customer orders. Customers are well informed of the progress of their papers to ensure they keep track of what the writer is providing before the final draft is sent for grading.

5. Affordable Prices: Our prices are fairly structured to fit all groups. Any customer willing to place their assignments with us can do so at very affordable prices. In addition, our customers enjoy regular discounts and bonuses.

6. 24/7 Customer Support: At Studymonk, we have put in place a team of experts who answer all customer inquiries promptly. The best part is the ever-availability of the team. Customers can make inquiries anytime.