Write a sql dml statement

Assignment Help Database Management System
Reference no: EM13812683

You are hired by Northwind as a Database administrator. You are required to integrate some Database script solutions into their existing database (Northwind) to modify data from within the database.

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

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

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.

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.

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.

Reference no: EM13812683

Questions Cloud

Common approach to developing a workcenter layout : What is a company trying to optimize in the most common approach to developing a workcenter layout? What happens to production efficiency as the customer exerts more influence on the system?
Explain risk maps and risk analysis matrices : Risk maps and risk analysis matrices, help workers and managers better understand safety and health issues in their workplaces
Coleen colombo joined the concord : Normal 0 false false false EN-US X-NONE X-NONE Coleen Colombo joined the Conc..
Write a sql dml statement : Using the Northwind database, write a script to insert the following data: new Category
Describe the three major buddhist traditions : Describe the three major Buddhist traditions-Theravada, Mahayana, and Vajrayana-and how each tradition developed from the early teachings.
How would you advise gordon and doucette regarding : How would you advise Gordon & Doucette regarding (a) whether the Ban Bordom Strategy is worth pursing, and (b) how to enhance the strategic implementation?
Write a paper about the black vernacular revisited : Write a paper about The Black Vernacular Revisited.
What is the definition of management of change : What is the definition of Management of Change

Reviews

Write a Review

Database Management System Questions & Answers

  Knowledge and data warehousing

Design a dimensional model for analysing Purchases for Adventure Works Cycles and implement it as cubes using SQL Server Analysis Services. The AdventureWorks OLTP sample database is the data source for you BI analysis.

  Design a database schema

Design a Database schema

  Entity-relationship diagram

Create an entity-relationship diagram and design accompanying table layout using sound relational modeling practices and concepts.

  Implement a database of courses and students for a school

Implement a database of courses and students for a school.

  Prepare the e-r diagram for the movie database

Energy in the home, personal energy use and home energy efficiency and Efficient use of ‘waste' heat and renewable heat sources

  Design relation schemas for the entire database

Design relation schemas for the entire database.

  Prepare the relational schema for database

Prepare the relational schema for database

  Data modeling and normalization

Data Modeling and Normalization

  Use cases perform a requirements analysis for the case study

Use Cases Perform a requirements analysis for the Case Study

  Knowledge and data warehousing

Knowledge and Data Warehousing

  Stack and queue data structure

Identify and explain the differences between a stack and a queue data structure

  Practice on topic of normalization

Practice on topic of Normalization

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