Project Phase 2

In this phase you will be in groups of 3 students, one from each domain of Phase 1. Together, each group forms an ecommerce company. Your company will provide a web shopping interface to clients, and a decision support workbench to managers in the company.

Through this phase of the project you will learn:

Project Groups

Rules and Restrictions

Tips

By tips I mean advice. If you give me the other type of tips, it will not effect your grade. =)

Part A

Due: Monday November 7th 2005 @ 11:59PM

Working Example
Starter Code
CheckOut Starter

Tasks for Phase 2A are:

You will be expected to turn in:

Details

Most of you have web-shopping experiences, so it's easy to understand what needs to be done. In this part, you'll generate your own web-shopping site. First, however, you need to make your data consistent between your databases.

Data Cleanup

Because each member of your group added arbitrary example data to his or her database, it is inevitable that some things in your databases don't match up. For example there may be a package in the shipping database that shipped from warehouse 12 when the inventory database only has 8 warehouses! You must find a way to eliminate the inconsistencies in your data. I'm not going to put any restrictions on how you accomplish this. You could remove all data and insert new consistent data, fix the existing data, or, for an additional challenge, add tables that map between the different data.

Store Components

Part B

Due: Tuesday November 15th 2005 @ 11:59PM

Tasks for Phase 2B are:

You will be expected to turn in:

Details

Data Import

In addition, you are expected to import some data that we will provide. This data is data on real books and music. There will be few hundred books and several thousand pieces of music.

The data was extracted from an amazon.com web service. It is in pages, ten products per page, in a database on iisqlsrv. Each record in the database is a page of ten products. The database is nbales_xmldata and each group has permission on a view which exposes a subset of the data. To access the data, you can select from this view. (Look for the view in Management Studio.)

Your task is to use XPath, XQuery and the built in function for XML in SQL Server 2005 to masauge the data from your view into your relational schema. <clairfied>There will be some attributes in the XML that do not have corrisponding columns in your relational schema. Import all elements/attributes that make since. (See the next paragraph for details on how wer are dealing with mainting the other elements.)</clairfied> Do this using only the database tools to parse the XML. Do not use C# to parse any of the data. Make sure you save your SQL and XQuery code because you will need to turn this in! There is a good overview of the XML specific features HERE.

You will also add a single column to your product table(s). This new column will be XML type, and it will hold the raw XML fragment from the amazon web service data. As part of this phase you need to modify your product description page to display at least two of the attributes found in the XML fragment that are not represented in your relational schema. To do this, you are going to have to use the XML in SQL tools yet again.

I recomend starting out by figgureing out what each of "CROSS APPLY" and .nodes() do.

Management Information Querys

You will also build some pages that help the manager get certian information for further business analysis and decision making. I am not going to make any starter code or working example for these pages, you are on your own this time. (It's only three pages) You must include the following queries: