CSc 8710 Spring 2007
Homework 2: (Due: January 31, 2007 - Wednesday)

  1. Consider the following MAILORDER relational schema describing the data for a mail order company:
    parts(pno,pname,qoh,price,olevel)
    customers(cno,cname,street,zip,phone)
    employees(eno,ename,zip,hdate)
    zipcodes(zip,city)
    orders(ono,cno,eno,received,shipped)
    odetails(ono,pno,qty)
    
    The attribute names are self-explanatory. "qoh" stands for quantity on hand. Specify and execute the following queries using Datalog and SQL:
Datalog in Prolog
For SQL, Use Oracle 10g accounts on tinman.cs.gsu.edu