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

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

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