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

  Produce budget reports for department at university

Consider system which produces budget reports for department at university. For whichever system you select, answer the following design questions. Who will use output?

  Give an example of an update that is definitely slowed

The title of the ?rst record in the previous set, and the primary key of the ?rst record in the previous set.

  Create a form based on the reservations table

Open the data file Reservations17 19. Create a form based on the Reservations table. Use the form to Own folder, and then copy the navigate to the record with Reservations table

  What a query execution plan

What a query execution plan? Discuss the reasons for converting SQL queries into relational algebra queries before optimization is done

  Describe how you created the conceptual and process

Describe how you created the conceptual and process view for all four (4) diagrams. In the description, be sure to provide a justification for each key decision in the design.

  Create an initial erd for the new system

Create an initial ERD for the new system that contains at least eight entities. Analyze each relationship to determine if it is 1:1, 1:M, or M:N

  Create one table representing normalized design

Create one table representing normalized design (3NF) for the important objects and their attributes in a textbook catalogue and accounting office at a university book store

  Construct relational database for new yorks fire department

The state wants to record fire department for which each fire fighter currently works and each fire fighter's supervisor. Supervisors are always higher-ranking certified fire fighters - Construct relational database for New York's fire departments..

  Implement a transaction-level consistency

Implement a transaction-level consistency in relational database management system

  The current database section found through the office button

In the Current Database section found through the Office Button, add Add Messages-Operator's Version as the application title. Make the start-up form Unread Messages open automatically when the application starts.

  Drawing active directory hierarchy in terms of forests

Draw Active Directory hierarchy in terms of forests, trees, domains, organizational units, and sites which are most suitable for this company and their security concerns.

  Briefly how to make use of indexes such as b+ tree

Summarize briefly how to make use of indexes such as B+ tree or a hash indexes in selection, projection, and join operations?

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