Sql dml for data modification in tables

Assignment Help Basic Computer Science
Reference no: EM13829351

Problem:

Write SQL DML statements that will modify data from within a database.

Using the Northwind database, write a SQL DML statement that will modify the data. Base it on the following requirements:

1. Using the Northwind database, write a script to insert the following data:

  • 1 new Category
  • Category Name = Fast Food
  • Category Description = Quick and Easy Meals
  • Provide a SELECT statement to show that the data was inserted.

2. Add the following products for your new Fast-Food category.

  • Product Name = French Fries
  • Supplier Name = Ma Maison
  • Category Name = Fast Food
  • QuantityPerUnit = 20 Sticks
  • UnitPrice = 4.99
  • UnitsInStock = 10
  • UnitsOnOrder = 25
  • ReorderLevel = 10
  • Disabled = 0
  • Product Name = Hamburger
  • Supplier Name = Grandma Kelly's Homestead
  • Category Name = Fast Food
  • QuantityPerUnit = 1 Patty
  • Unit Price 6.99
  • UnitsInStock = 0
  • UnitsOnOrder = 50
  • ReorderLevel = 5
  • Disabled = 0
  • Provide a SELECT statement to show that the data was inserted.

3. In an attempt to liquidate some products, provide a script to set all products in the Confections category that have more than 50 units in stock to a price of $10, and disable them.

  • 2 records should be affected.

4. Change the discount in the Order Details table on all orders of products of an ordered quantity of more than 50 to that of the largest discount ever given on any product.

  • 159 records should be affected

5. You have decided against the new Fast-Food category. Provide a SQL statement to delete the Fast-Food category as well as any products assigned to that category.

Additional Information:

The question is from Computer Science and it explains about writing SQL DML statement which can modify data in tables.

Total Word Limit: 397 Words

Reference no: EM13829351

Questions Cloud

History and implementation of object oriented databases : Write a 3-4 page paper that describes any one of the topics in detail. Include a discussion on the following subject areas and include any graphs.
Create one method that the server takes a piece of code : Create one method that the server takes a piece of code or data from the user client-side, manipulates it server side after post back, and then provides the manipulated data back to the user.
What is the principal source of legislative guidance : 1.  What is the principal source of legislative guidance that provides "Special Rules for Long-Term Contracts"? 2.  ­What are the three terms that the IRS uses to define "long-term contract" and what do they mean?  3.  What two categories does Sectio..
What is the difference between prejudice and bias : What is the difference between prejudice and bias? What is the difference between prejudice and discrimination? Is Shelly showing prejudice, bias, or discrimination in the scenario above
Sql dml for data modification in tables : Write SQL DML statements that will modify data from within a database. Using the Northwind database, write a SQL DML statement that will modify the data. Base it on the following requirements:
Write queries to retrieve data for tsql : Write SQL statements that will retrieve the following data from a database, using Subqueries and Joins. Using the Northwind database, write a SQL SELECT statement that will retrieve the data for the following questions:
Operating system provides a mechanism for configuring : Operating system provides a mechanism for configuring the behavior of the keyboard attached to the computer. Outline the behavior of the following sets of keys after they have been configured correctly
Draft paper highlighting the nonfunctional requirements : draft paper highlighting the nonfunctional requirements and the steps to achieve these requirements. The draft should have some rationalization steps in how technologies are chosen.
Determine the type of muscle tissues : The image below shows a longitudinal view of a type of muscle.  Note the multiple nuclei that lie at the periphery of the muscle fibers as well as the striations (thin lines) formed by the arrangement of the thick and thin myofilaments.

Reviews

Write a Review

Basic Computer Science Questions & Answers

  What are the advantages of using variables in a data type

What are the advantages of using variables in a data type? Substantiate your response with suitable examples. Justify your answers using examples and reasoning. Comment on the postings of at least two classmates with regard to whether you agree or..

  Logging in to omnymbus

STEP 1: Logging in to Omnymbus Back to Top •Look at your email account to obtain the MySQL/Omnymbus account and password that your Professor has emailed to you. •To help you log into MySQL Omnymbus environment, download the tutorial Login MySQL ..

  Explain what his type of error message

Regards to a computer error. In Linux Lubuntu 15.04, there is a common error message that appears as "Reboot: System Halted" wondering if anyone can explain what his type of error message is and what it means.

  How to design appropriate cover page gallery

To insert a cover sheet, choose an appropriate design from the Cover Page gallery

  Write a scheme funtion that takes a list

Write a Scheme funtion that takes a list and an atom as parameters and returns a list identical to its parameter list except with all top level instances of the given atom deleted

  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..

  Evaluates and makes recommendations to address

Evaluates and makes recommendations to address differences in ethical codes of information technology conduct in different cultures in a very clear and detailed way.

  The goods are substitutes

(Substitutes and Complements) For each of the following pair of goods, determine whether the goods are substitutes, complements, or unrelated: Peanut butter and jelly, Private and public transportation, coke and pepsi, alarm clocks and automobiles, g..

  Develop a candidate architecture to meet the functional

Analyse the Case Study documents and develop a candidate architecture to meet the functional and non-functional requirements you have identified in Assignment 1 and Part A of Assignment 2. Document this candidate architecture with:i. An Archite..

  Linear programming problem using branch and bound

Solve this linear programming problem using Branch and Bound

  The current network diagram infrastructure

1. Determine which devices you will use for both the current network diagram infrastructure consisting of firewalls, routers, and workstations as well as the device you need to incorporate.

  Implementing erp systems

What do vendors seem to know and not know about implementing ERP systems? and How much influence should vendors have in an organization's ERP decision?

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