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

  Explain the five activities of systems analysis

In a one-page paper: explain the five activities of systems analysis and offer any additional activities you feel should be added (from your reading or experience).

  Create a function in vb and matlab fncdaysinmonth

define in VB: an array of months; in Matlab: a vector matrix of months, containing the number of days in each month.

  List and describe three guidelines for sound policy

List and describe briefly the three guidelines for sound policy, as stated by Bergeron and Bérubé. Are policies different from standards? In what way? Are policies different from procedures? In what way?

  Write a function prototype for a function

Write a complete function called calcTriArea that will calculate and return the area of a triangle. It takes two float/double values: the base and height as its arguments. The area of a triangle is one-half the base times the height.

  List five addressing modes of the lc

What is an addressing mode? Name three places an instruction's operands might be located. List five addressing modes of the LC-2.

  Developed a blackjack game to read

Developed a Blackjack game to read/print the hint table as it was laid out in the hint text file via console mode.

  Derive boolean equations for the magnitude comparator

Derive boolean equations for the carry lockhead generator for the binary adders of 6-bit numbers.

  Possibly liscense cub or act as a service provider

What is your opinion on whether CenterPoint should possibly liscense CUB or act as a service provider?

  Write a program that reads in an integer

Write a program that reads in an integer and breaks it into a sequence of individual digits in reverse order. For example, the input 16384 is displayed as 4 8 3 6 1 You may assume that the input has no more than five digits and is not negative.

  How many orders invoices were shipped

How many orders (invoices) were shipped by Speedy Express?

  Determine probability that selected cobalt gets more miles

Standard deviation 3.5 miles per gallon. Determine the probability that the randomly selected Cobalt gets more than 34 miles per gallon.

  Determine smallest value of x for which is safe state

System has 4 processes and 5 allocatable resources. The current allocation and maximum needs are as follows: Determine the smallest value of x for which this safe state.

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