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

  Describe a database and its various elements

Describe a database and its various elements. Define Primary Key, foreign key, and metadata.

  Determine airports with late flights to toronto-database

Determine airports with late flights to Toronto on a big plane. "Late" means departing after 9:00pm; "big" means with capacity 150 passengers or more

  Develop new user and new role for assistant dba

You need to develop new user named ASSOCDBA1 and new ROLE named JRDBA1 which can be used for assistant DBA. You wish the new role to contain DBA role that the SYSTEM user ha

  Transform the table into one or more tables in bcnf

Transform this table into one or more tables in BCNF. State the primary keys, candidate keys, foreign keys, and referential integrity constraints.

  Analyse a set of data and write a memo

To analyse a set of data, and write a memo, identifying and explaining your insights into the operation of Todd Restaurants.

  Business development activity cost pool

How much cost, in total, would be allocated to the Working On Engagements activity cost pool and how much cost, in total, would be allocated to the Business Development activity cost pool?

  Draw an initial entity-relationship model

Normalise the Project Allocation form (Fig 1) to arrive at third normal form entities. Show all the steps of normalisation clearly.

  Define the relationships between the tables

Using Microsoft Access create the tables and relationships defined in your data model. Your Microsoft Access Database at this point should include the following: The Tables as defined in your Entity Relationship Diagram. The Relationships between t..

  Sketch dfsa for identifiers-contain only letters and digits

Sketch a DFSA for identifiers which contain only letters and digits, where identifier should have at least one letter, but it need not be first character.

  Formulas within table cells always begin withend of exam

Which of the following allows you to view and access important information about your document all in one location

  Query using a literal character string

query specifying specific columns query using a column alias query using the concatenation operator query using a literal character string

  Comprise a justifiable argument for use of data warehouse

Comprise a justifiable argument for the use of data warehouses, data centers, and data marts in order to support for business intelligence (BI) within the organizational structure.

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