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

  Calculate and output the following statistics

A player wins by collecting all the cards. If a player runs out of cards while dealing the face-down cards of a war, he may play the last card in his deck as his face-up card and still have a chance to stay in the game. Once a single player holds ..

  Find transfer time for asector-average rotational latency

Disk gets the request to access the random sector on random track. Suppose head starts at track 0. Determine the average seek time? average rotational latency?

  Which method would you prefer when connecting cisco router

Which method would you prefer when connecting to a cisco router and why? Would there be an advantage to using this method over the others?

  Write an excel nested if statement use the value

Write an excel nested if statement that will Use the value in cell A1 to determine which 2 cell values in column c that it falls between and enter the lower amount.

  The human resources server to the payroll server

The human resources server to the payroll server?

  A power level of 100 w is 6 db above what power level

A power level of 100 W is 6 dB above what power level?

  Write a python programs to solve

Write a Python programs to solve the following. Scientist measure an object's mass in kilograms and its weight in newtons. The equation is weight = mass * 9.8.

  Iidentify primary types of media employed

For the network that you have chosen to characterize for this class, identify the primary types of media employed. Be sure to include both how the computers individually connect.

  Find out product stream temperature and volume

Find out the product stream temperature and volume required to carry out reaction in a CSTR at 50 % conversion in adiabatic mode of operation.

  Given two stringsa and bcreate a bigger string made char a

Given two strings, A and B, create a bigger string made of the first char of A, the first char of B, the second char of A, the second char of B, and so on. Any leftover chars go at the end of the result

  What are some factors or requirements

What are some factors or requirements when designing an Active Directory Infrastructure. How do you gather the requirements for the design? Please explain in approximately in two paragraphs.

  Explain how to reasoned access to company resources

Given home computers and access to company resources, employees will work extra hours at home and thereby increase company profits." Explain how well reasoned etc.

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