CS200-01 Fall 2006 First Exam (Part 2)

CS315 Sample Final Exam Solutions
Use MS Word to answer each question below completely and precisely.
Hand in a hardcopy and E-mail this exam to [email protected].
1. (20%) Use the Premiere Products Database to create the following queries:
1.1 Use QBE: List the rep num, and the number and name of all customers represented by sales rep 65.
Show the screenshots of the dual pane query window and execution result.
1.2 Use SQL commands: List rep first name, rep last name, and the number and name of all customers
represented by Valerie Kaiser.
Show the screenshots of the SQL command line window and execution result.
2. (30%) Use the following sample sales invoice and use the data normalization procedures to create its
initial (un-normalized) form, first normal forms, second normal forms and third normal forms (show step
by step). Show primary keys, candidate keys, secondly keys, and foreign keys (if any) in each table. Then
use Access to draw the E-R diagram (i.e. class diagram) of the database. Hand in the E-R diagram too.
SaleID:
Sale Rep. Name (First Last):
CustomerID
FirstName
LastName
Address
City, State, ZipCode
ItemID
Description
List Price
Date:
Quantity
QOH
Value
Total:
QOH: Quantity On Hand
Initial Form:
Invoice (SalesID, SalesRepID, FirstNameRep, LastNameRep, Date, CustomerID, FirstNameCust,
LastNameCust, Address, City, State, ZipCode, (ItemID, Description, ListPrice, Quantity, QOH))
1NF:
Invoice (SalesID, SalesRepID, FirstNameRep, LastNameRep, Date, CustomerID, FirstNameCust,
LastNameCust, Address, City, State, ZipCode, ItemID, Description, ListPrice, Quantity, QOH)
2NF:
Invoice (SalesID, SalesRepID, FirstNameRep, LastNameRep, Date, CustomerID, FirstNameCust,
LastNameCust, Address, City, State, ZipCode)
InvoiceLine (SalesID, ItemID, Quantity)
FK
SalesID  Invoice
FK
ItemID  Item
Item (ItemID, Description, ListPrice, QOH)
3NF:
Invoice (SalesID, Date, CustomerID, SalesRepID)
FK
CustomerID  Customer
FK
SalesRepID  SalesRep
InvoiceLine (SalesID, ItemID, Quantity)
FK
SalesID  Invoice
FK
ItemID  Item
Item (ItemID, Description, ListPrice, QOH)
SalesRep (SalesRepID, FirstNameRep, LastNameRep)
Customer (CustomerID, FirstNameCust, LastNameCust, Address, City, State, ZipCode)
Note: I assumed that there was a many-to-many relationship with the customer and sales rep since I
assumed that with each sale a customer can have a different rep or a rep can have a different
customer, so they are connected by the Invoice table.
3. (15%) Access 2007 (pages AC289-291).
3.1 Append your own record as below to the “Technician” table in the JMS TechWizards Database.
40 | yourLastName | yourFirstName | 999 Marine Corps | Tumon | GU | 96926 | $49.00 | $7,890.00
3.2 Append your own record as below to the “Client” table in the JMS TechWizards Database.
GU01| yourFullName | 1234 Main | Dededo | GU | 96929 | 671-123-4567 | $400.00 | $300.00 | 23
3.3 Lab 1: Presenting data in the JMS TechWizards Database.
Step 1: Create the Clients by Type report (with your record) as shown in Figure 4-83
Step 2: Create the Clients by Technician report (with your record) as shown in Figure 4-84.
Step 3: Create the Client Financial Form (with your record) as shown in Figure 4-85.
3.4 Hand in Fig 4-83, Fig. 4-84 and Fig 4-85 with your records in them if possible.
Fig 4-83
Fig 4-84
Fig 4-85
4. (15%) Access 2007 (pages AC668-669).
4.1 Keep your records in the Technician and Client tables in the JMS TechWizards Database.
4.2 Lab 1: Administering the JMS TechWizards Database.
Step 1: Create an input mask (refer to Fig. 9-29) for the Technician Number field in both tables.
Step 2: Create an index (refer to Fig. 9-34) on the Last Name and First Name fields in the
Technician Table.
4.3 Hand in results of the input mask and the index in steps 1 and 2 above.
5. (20%) Access 2007 (pages AC694-695).
5.1 Keep your records in the Technician and Client tables in the JMS TechWizards Database.
5.2 Lab 2: Sharing Data in the Hockey Fan Zone Database.
5.3 Do task a and submit the screenshot of the SharePoint Services List.
5.4 Do task b and submit the screenshot of the sorted Supplier table. Sort the Supplier Code in descending
order.
5.5 Do task c and submit the screenshot of the link between Item table and FanShare.
5.6 Do task d and submit the screenshot of the changed cost of ball caps.
5.7 Do task e and submit the screenshot of the Import window.