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

  Find out the internal schema of the above database

Find out the internal schema of the above database

  Design an entity-relationship model of the problem

Design an entity-relationship model of the problem, convert the model into a relational model, and assess the normal form of each schema.

  Explain the control procedures and security strategies

With specific reference to the company's accounting information system, critically evaluate the type and nature of both the risks and the security threats such a company faces in today's business environment and explain the control procedures and ..

  Draw the er diagram above scenario by illustrating the

Consider the following requirements for an airline ticketsbooking system. The system is composed of manyairlines. Each airline is identified by a code, name and headquarter’s address. An airline has different mileprograms, identified by a type- code,..

  Create an employee database

Create a report that contains the above data - be sure to include a Hampton University logo in your report.

  To find the balance in account number x

The Account table has information about the balance and the account holder and where he is having a account(which branch).

  Define the digital divide and the impact of the olpc

The Digital Divide and the impact of the OLPC initiative. Write a 1 page summary for each article and include the proper citations.

  Summarize the difference between on-line transaction

your database has been a hit. you have been called back to the customers headquarters and they want a detailed report

  How healthcare data sets are used in healthcare settings

For each data set, your analysis should include the purpose of the data, type of setting, secondary data sources classification, reporting process and frequency (i.e., quarterly, annually), and other important components. Utilize this unit's readi..

  Create a data table to show how market share affect profit

Create a two-way data table to show how market share and unit price affect total profit. Let you market share change from 20% to 50% with an increment of 1%.

  Write a two-page executive summary for your boss explaining

write a two-page executive summary for your boss explaining how a relational data solution can be applied to a current

  Systematic understanding of the current trends

Display a detailed knowledge and systematic understanding of the current trends in data warehousing, business intelligence and data mining.

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