CSC513 X2: Store, retrieve, and query business messages

Announcement

Description

Business related information such as product orders, invoices, and customer relations are often stored in XML format. For the ease of management, XMLs are usually stored in XML DB. In this project, students have the chance to store XML(s) into XML DB and retrieve relevant information with SQL/XML from the XML DB.

First, follow instructions at http://www.csc.ncsu.edu/techsupport/technotes/oracle.php to access Oralce 10g database. The initial oracle account password is your nine digit student ID number.

The XML you are required to manipulate in this project is from Business Message Standards message packages and similar to the messages from X1. The Business Message Standards (BMS) provides the necessary information to implement XML message and extensions as part of the GS1 System. The Order business message specifies the sender, the receiver and detailed order information.

Requirement

  1. Write SQL script to create a table named BusinessMessages with two columns: MessageID of Integer type, and Message of XML type.
  2. Write SQL query to insert a BMS XML message "Order" (xml format, html representation) into the table BusinessMessages column Message with MessageID 1.
  3. Write SQL/XML query to retrieve shipping to address from Order.
  4. Write SQL/XML query to calculate the total tax paid in this order (sum of dutyFeeTaxAmount).
  5. Write SQL/XML query to return the orderLineItems elements ordered by netAmount in descending order.

Deliverable

Contact

Any questions about this project should be sent to xgao2@ncsu.edu

Links