New User Special Price Expires in

Let's log you in.

Sign in with Facebook


Don't have a StudySoup account? Create one here!


Create a StudySoup account

Be part of our community, it's free to join!

Sign up with Facebook


Create your account
By creating an account you agree to StudySoup's terms and conditions and privacy policy

Already have a StudySoup account? Login here

Database Programming for WWW

by: Hazle Turcotte

Database Programming for WWW INFS 740

Marketplace > George Mason University > Science > INFS 740 > Database Programming for WWW
Hazle Turcotte
GPA 3.95

Alexander Brodsky

Almost Ready


These notes were just uploaded, and will be ready to view shortly.

Purchase these notes here, or revisit this page.

Either way, we'll remind you when they're ready :)

Preview These Notes for FREE

Get a free preview of these Notes, just enter your email below.

Unlock Preview
Unlock Preview

Preview these materials now for free

Why put in your email? Get access to more of this material and other relevant free materials for your school

View Preview

About this Document

Alexander Brodsky
Class Notes
25 ?




Popular in Course

Popular in Science

This 5 page Class Notes was uploaded by Hazle Turcotte on Monday September 28, 2015. The Class Notes belongs to INFS 740 at George Mason University taught by Alexander Brodsky in Fall. Since its upload, it has received 69 views. For similar materials see /class/215081/infs-740-george-mason-university in Science at George Mason University.


Reviews for Database Programming for WWW


Report this Material


What is Karma?


Karma is the currency of StudySoup.

You can buy or earn more Karma at anytime and redeem it for class notes, study guides, flashcards, and more!

Date Created: 09/28/15
Sample Midterm Examination INFS 740 Database Programming for the WWW Prof A Brodsky Student ID Student Name Signature Under the honor code I will not discuss the content of this exam with any person who has not taken it INFS 740 Prof Brodsky Midterm Examination Provide all your answers in the space provided use back of pages if necessary You have 1 hour 45 minutes You MAY use any books or notes but NOT computers You are not allowed to receive help from any other person Be brief and neat in your answers Good luck Consider the following OrdersItem sPayments relational schema Orderid integercustomerName string customerNum integer ltemorderlD integerdescription stringcost real PaymentorderlD integerdueDate stringamount real Consider also the following hierarchical orders XML document ltorler id 17 gt ltcustomei39Namegt GMU ltcust0merNamegt ltcustometNumgt 12345 ltcustomerNumgt ltitemsgt lt1te1n descnpl ion notebook gt ltcostgt200ltcostgt ltitemgt ltitem lescnp on wl teboard gt ltcostgt 450ltcostgt lt1temgt ltitemsgt ltpa3m1entsgt ltpayment due l1001 gt ltamountgt 3000 ltamountgt ltpaymentgt ltpayment due 61001 gt ltamountgt 1700 ltamountgt ltordergt Problem 1 Write an XML schema to describe the hierarchical orders XML document above as accurately as possible Problem 2 Write an XML schema to describe the default XML representation of the relational tables above ie each relational table will be represented as an element and each raw in a table will be represented as an element etc Problem 3 Write an Xquery that given a hierarchical orders XML document will create the default XML representation of the relational tables representing the same information Problem 4 Write XQueries that given a hierarchical orders XML document a For every order creates an element total items with the number of items in that order b For every item of 50000 or more creates an element customers that lists all customer elements for those customers who have an order with that item c Find all customers who have an order with both the most expensive item ie no item is more expensive and the least expensive item ie no item is less expensive d Find all customers Whose balance is 1000 or more on 10152004 The balance for a customer is defined as the total price of ordered items minus all the payments that are due before 10152004


Buy Material

Are you sure you want to buy this material for

25 Karma

Buy Material

BOOM! Enjoy Your Free Notes!

We've added these Notes to your profile, click here to view them now.


You're already Subscribed!

Looks like you've already subscribed to StudySoup, you won't need to purchase another subscription to get this material. To access this material simply click 'View Full Document'

Why people love StudySoup

Steve Martinelli UC Los Angeles

"There's no way I would have passed my Organic Chemistry class this semester without the notes and study guides I got from StudySoup."

Janice Dongeun University of Washington

"I used the money I made selling my notes & study guides to pay for spring break in Olympia, Washington...which was Sweet!"

Jim McGreen Ohio University

"Knowing I can count on the Elite Notetaker in my class allows me to focus on what the professor is saying instead of just scribbling notes the whole time and falling behind."

Parker Thompson 500 Startups

"It's a great way for students to improve their educational experience and it seemed like a product that everybody wants, so all the people participating are winning."

Become an Elite Notetaker and start selling your notes online!

Refund Policy


All subscriptions to StudySoup are paid in full at the time of subscribing. To change your credit card information or to cancel your subscription, go to "Edit Settings". All credit card information will be available there. If you should decide to cancel your subscription, it will continue to be valid until the next payment period, as all payments for the current period were made in advance. For special circumstances, please email


StudySoup has more than 1 million course-specific study resources to help students study smarter. If you’re having trouble finding what you’re looking for, our customer support team can help you find what you need! Feel free to contact them here:

Recurring Subscriptions: If you have canceled your recurring subscription on the day of renewal and have not downloaded any documents, you may request a refund by submitting an email to

Satisfaction Guarantee: If you’re not satisfied with your subscription, you can contact us for further help. Contact must be made within 3 business days of your subscription purchase and your refund request will be subject for review.

Please Note: Refunds can never be provided more than 30 days after the initial purchase date regardless of your activity on the site.