Write a script that inserts a new row into customers table

Assignment Help Database Management System
Reference no: EM131066997

Lab Assignment

Exercise

1. Write a SELECT statement that returns an XML document that contains all of the current shipping addresses for the customers in the database. This document should include one element for each of these columns: FirstName, LastName, Line1, Line2, City, State, and ZipCode. Then, save the XML document that's returned in a file named CustomerAddresses.xml. Finally, generate an XML schema for the file and save it in a file named CustomerAddresses.xsd.

2. Write a script that inserts a new row into the Customers table for each customer stored in the NewCustomers.xml file that's in the Exercise Starts directory.

To accomplish this, begin by storing the contents of the XML file in a variable of the XML type. Then, you can use an INSERT statement to insert the rows into the Customers table.

3. Write a script that returns a result set that contains all of the data stored in the NewCustomers.xml file that's in the Exercise Starts directory.

To accomplish this, begin by storing the contents of the XML file in a variable of the XML type. Then, you can use a SELECT statement to return the data stored in this variable as a result set.

4. Write a script that creates a table named ProductDescriptions. This table should have three columns. The first column should be an identity column named DescriptionsID, the second column should be a foreign key column named ProductID, and the third column should be an xml column named Description.

Then, insert a new row into the ProductDescriptions table that contains the data stored in the ProductDescription.xml file that's in the Exercise Starts directory. This data should be related to the product with an ID of 1.

Finally, select all rows from this table.

Attachment:- Attachments.rar

Reference no: EM131066997

Questions Cloud

Find the value of x such that the volume is a maximum : Find the value of x such that the volume is a maximum.
What is albedo : What is Albedo? How does this characteristic affect the high latitudes as far as global warming is concerned?
Act effectively under pressure in calm way : Courage is the state of mind that enable one to face fear, danger, and difficulty. Some define courage as the ability to act effectively under pressure in calm way. However, I think courage is an act that separate the heroes from cowards.
What effective interest rate is being charged : What effective interest rate is being charged on the instalment plan?
Write a script that inserts a new row into customers table : Write a script that inserts a new row into the Customers table for each customer stored in the NewCustomers.xml file that's in the Exercise Starts directory.
Importance in the planning process for project : There are eight (8) steps in planning a formative evaluation. Select one (1) step and determine its importance in the planning process for your project. Predict the possible impact if you omit the step. Provide two (2) examples to support your sel..
Escalation of delinquency as a retaliatory response : Does punishment deter delinquency or simply provoke escalation of delinquency as a retaliatory response? Defend your cause. Discussion thread 2 pages.
Problems in a process-oriented organization : In this week's Journal, discuss how you can apply your creative and imaginative skills to solve problems in a process-oriented organization.
Create method called left that accepts a array of characters : Create a method called left that accepts an array of characters and the number of characters to return.

Reviews

Write a Review

Database Management System Questions & Answers

  What is an example of a string constant

What is an example of a string constant? What is the assignment operator?  The symbols used to describe the logic of a program are known as _____

  Identify the data analytics tasks

Provide a clear statement of the aims and objectives of the data analytics study and the possible outcomes in terms of discovered knowledge and its potential application towards solution of the problem. In this section you need to discuss the busi..

  Illustrate the relationships between entities and attribute

After identifying the records and their corresponding fields, draw an entity-relationship (ER) diagram using the MS Excel worksheet to illustrate the relationships between entities and attributes

  What are the potential problems with lists vs databases

What are the potential problems with lists vs databases. Why are the reasons for using a database.

  Synchronization between the database and the transaction log

A point of synchronization between the database and the transaction log is called a(n): An ACID transaction is one that is:

  Place the following terms into a logical sequence.

Do not use numbers or other methods to indicate the changed sequence.

  Demodulator circuits and amplitude modulator

Explain how much the modulating signal power is required to generate 100 percent modulation? What is the approximate center frequency of filter required to pass the lower sideband?

  Data collection standards used in the health care industry

Write a 700- to 1,050-word memo to Taylor Ambulance explaining data collection standards used in the health care industry

  Gap is developing its database using object-oriented methods

Assume that GAP is developing its database using object-oriented methods. Assume further that the database designers want to make some changes to the class diagram on next page. Specifically, they want to make ProductItem an abstract parent clas..

  Develop an er model for the data management

Develop an ER model for the data management of The Best Home. You will need to provide the ER model to cover the data and transactions of The Best Home.

  Digitalx has been operating a chain of retail stores

digitalx has been operating a chain of retail stores selling cds dvds and games for a number of years. recently they

  Create an e-r diagram of entities, attributes & relationship

Using the script file below to create an E-R diagram of the entities, attributes and relationship.

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