The new value for the discountpercent column

Assignment Help Basic Computer Science
Reference no: EM13706777

Create a trigger named Products_UPDATE that checks the new value for the DiscountPercent column of the Products table. This trigger should raise an appropriate error if the discount percent is greater than 100 or less than 0.
If the new discount percent is between 0 and 1, this trigger should modify the new discount percent by multiplying it by 100. That way, a discount percent of .2 becomes 20. Test this trigger with an appropriate UPDATE statement.

2. Create a trigger named Products_INSERT that inserts the current date for the DateAdded column of the Products table if the value for that column is null.
Test this trigger with an appropriate INSERT statement.
3. Create a table named ProductsAudit. This table should have all columns of the Products table, except the Description column. Also, it should have an AuditID column for its primary key, and the DateAdded column should be changed to DateUpdated.
Create a trigger named Products_UPDATE. This trigger should insert the old data about the product into the ProductsAudit table after the row is updated. Then, test this trigger with an appropriate UPDATE statement.

Reference no: EM13706777

Questions Cloud

Calculate the resistance : Calculate the resistance in the following 100 km transmission line with the given parameters. -The power that needs to be transmitted is 1,000 MW - the power that is lost is 40 MW - the voltage is 345 kV
Create the stress tensor : Write a MATLAB program that takes an input of the stress state in 3D. The program should Create the stress tensor. Calculate the principal normal and shear stresses by solving the eigen value problem.
Compare and contrast the benefits of sharing digital : Research both sides of the argument. Compare and contrast the benefits of sharing digital content and the desire to protect it. Which side do you believe has the more valid position? Why?
Determine the poisons ratio and modulus of elasticity : A 1.5in diameter rod 20ft long elongates .48in under a load of 53 kips. the diameter of the rod increases .001in during loading. Determine the poisons ratio, modulus of elasticity, and shear modulus
The new value for the discountpercent column : Create a trigger named Products_UPDATE that checks the new value for the DiscountPercent column of the Products table. This trigger should raise an appropriate error if the discount percent is greater than 100 or less than 0.
Determine the percent error in using the ideal gas model : Determine the percent error in using the ideal gas model to determine the specific volume of:
Calculate the adiabatic flame temperature attained : Calculate the adiabatic flame temperature attained when methane at 298k, is combusted (a) with oxygen in the molar ratio air/CH4 = 9.524. Assume that CO2 and H2O are the products of the combustion. The adiabatic flame temperature is that temperature ..
Market a product of their choice using the marketing plan : Market a product or a service of their choice using the Marketing Plan - The team will present the plan
Corporate budgeting in terms of paying for it : 1. Define the terms allocation, chargeback and corporate budgeting in terms of paying for IT. Give a business advantage and a disadvantage of each. 2.. Briefly define TCO as a way to cost an IT purchase. What are TCO's benefits?

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Write an essay on turing machine explain with examples

Write an essay on turing machine explain with examples

  Design concept in terms of the usability of the design

A justification for the design concept in terms of the usability of the design. You should explain why your decisions make sense and why your interface concept works for the application. Any preliminary designs can be included as an Appendix to th..

  What are the differences between a struct and a class

What are the differences between a struct and a class?

  In an overview, describe the multics operating system

In an overview, describe the Multics operating system project which was under taken at MIT in the 1960's. Identify any impacts and influences Multics has had on modern day trends in developing secure and trusted software.

  Confidentiality and integrity for transaction to secure

Make a list of at least 10 confidentiality, integrity, and availability requirements which should be met for transaction to be secure.

  Write dissolve method for three color components

It does this by incrementing (by 1) all three color components (using the above accessor and mutator methods) as well as the alpha component value. Write down dissolve method.

  Write a jsp page that implements a page hit counter

Write a JSP Page that implements a page hit counter. Every time user loads this page a counter is incremented and displayed. a.Use JSP declaration tag to declare the counter variable.

  Show at least the state of machine and state of any memory

Consider two machines, a classical von Neumann architecture as well as a more modern machine with two buses.

  Select three 3 software testing techniques explain the

choose three 3 software testing techniques. describe the purpose and capabilities of each being sure to explain their

  Swing gui to translate test this is input in english

Design and code a SWING GUI to translate test this is input in English into Pig Latin.You can assume that the sentence contains no punctuation. The rules for Pig Latin are

  Compare five technologies for in-home internet access

Compare and contrast at least five technologies which are readily available for in-home internet access. You must consider practical as well as technical differences in your comparison.

  Elway business services

You have been asked by Elway Business Services Inc. to evaluate the possible financial loss that could be accrued by threats to its servers. You decide to use the ALE equation to estimate this cost. As a starting point, EBS provides the follow..

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