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

  Discuss some of the emerging trends in information

discuss some of the emerging trends in information technology e.g. computer hardware software data analysis. what

  Explaining it solutions to enhance workflows

The final method to include IT is not to go "looking for IT solutions" just for sake of using IT. But to have IT at the table to truly think about ways to develop workflows.

  Virtual computing and/or cloud computing

Create your own Disaster Recovery and Business Continuity Plan. You need to be sure to include (in detail) how your plan will allow for the necessary Availability, Maintainability, Portability, and Reliability. You also need to address if your plan s..

  Generate dropdown to create example c++ code

Submit your C++ source code that you generated from RAPTOR with comments added to each line or where necessary to explain program flow. Also submit the RAPTOR file (flowchart) of your working program.

  Prepare a list of threat categories

Contingency Planning Paper Address the following items: Assume that you have been hired by a small veterinary practice to help them prepare a contingency planning document. The practice has a small LAN with four computers and Internet access. Prepare..

  The iso network management model helps it managers

The ISO Network Management Model helps IT managers

  Hardware and system software qualify as infrastructure

What is infrastructure? In what was do hardware and system software qualify as infrastructure? What basic strategic planning questions should be addressed with respect to infrastructure?

  Write a java application that inputs three integers

Write a Java application that inputs three integers from the user and displays the sum, average, product, smallest and largest of the numbers.

  Pieces of information is contained within an ip address

What two pieces of information is contained within an IP address? How does the computer tell the difference between these two parts?

  Describe the behavior of the error

Assume you want to evaluate f(x) = (e^(x)-1)/ x for x is near 0. Describe the behavior of the error. Then use Taylor's polynomial for ex and compare your results previously obtained.

  Construct the work breakdown structure

Construct the Work Breakdown Structure, define all of the activities and sequence these, schedule the project and then resource and budget the project using Microsoft Office Project.

  A static data member annual interest rate

A static data member annualInterestRate that stores the annual interest rate for each of the savers.

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