Mgmt 3830 Final Exam December 10, 2001

advertisement
Mgmt 3830
Final Exam
December 10, 2001
All questions must be answered in the exam booklets, not on this copy. If you write rough drafts
of answers, or decide to rewrite an answer, be sure you clearly indicate which answer you wish
to have marked. Please note that for all questions, full marks will only be given to answers that
are correct, complete, and clearly written.
1. The Hair Shoppe (50 marks)
The Hair Shoppe is a chain of about 20 “hair studios” headquartered in Lethbridge, Alberta.
They need a database to track customers, employees and sales and have prepared the following
description of their business. They want to grow into a national chain and believe this database is
critical to their strategy. For this question, you are only responsible for what they have described
here.
The Hair Shoppe offers a variety of services to all types of clientele, men, women and children.
Each customer visit can involve one or more of these services. Each service has a fixed price and
is subject to GST, but not PST (Provincial Sales Tax). However, because customers are different,
services are sometimes divided into categories based on the work involved. For example, a
permanent has three costs depending on whether the client has long, medium or short hair. These
categories are not precisely defined and employees have some flexibility when determining
which fee to charge. Personal service is important to the Hair Shoppe, so stylists should be able
to record notes about customers for future reference.
Some services require specific products, such as a particular colour of hair dye. This must be
tracked in case the customer wants the same product again. Product costs are already included in
the service cost. Hair Shoppes do not sell any product to customers for home use.
All employees within each Shoppe, including the manager, are licenced stylists and can provide
all the services offered. Some have preferences for some types of work and try to avoid others.
The manager should be able to record this. Established stylists with regular clients are able to
arrange their work quite well, but new employees have less choice.
While some customers walk in and wait for a stylist, many phone ahead to arrange an
appointment. Some have regular appointments (e.g., every Tuesday at 9 AM). Each appointment
has a start date and time and one or more services. An estimate of the completion time is also
entered. If the customer wants a particular stylist, this is also recorded. Because some services do
not require the stylist to be with the customer all the time, some double booking is possible and
the system must allow that. Sometimes, different stylists will provide different services to the
same customer during one visit.
Stylists work different shifts, depending on their availability, expected workloads, and
willingness to work. Hair Shoppes are usually open evenings during the week, but not weekends.
But there are a few mall locations that keep must keep mall hours, which can involve Saturday
nights. Schedules are usually set up a week or so ahead of time, and some stylists have worked
the same hours for years. When a day is unexpectedly busy or a scheduled stylist is unable to
work, the Shoppe manager will call other employees or even prospective employees to try to
handle the workload. Again, it is usually the new employees who get the least popular hours.
1
Mgmt 3830
Final Exam
December 10, 2001
Customers pay for services when the appointment is finished. A variety of payment options is
supported including cash, cheque, Interac and credit cards (e.g., Visa, American Express and
Master Card).
The day usually begins with a float of about $100. The store manager and one stylist count the
closing cash until they agree and this amount is recorded in the database. (It may or may not be
consistent with the amount of cash that was supposed to have been received as payment.)
Build a data model that matches the description given here and what you can learn from the
pamphlet. If you happen to know something about this business, be careful to use my description
and not the way it really operates. The description in this case is hypothetical and not directly
based on a real organization.
2. Feed Wrangler Query (10 marks)
Chuck would like to be able to see which trucking firm delivered the most goods (by weight)
during certain periods of time. (A copy of the data model and the Access query format are
provided on the final page of the exam.) Create query that allows him to enter the beginning and
end date and will display the name of the firm and the amount delivered. This question should be
answered using a single Access query, if possible. However, a correct answer using two or more
queries is better than an incorrect answer using only one. You do not need to draw the full
relationship diagram, but you should indicate which tables or queries are involved. If you are not
using the standard relationships, indicate that as well.
3. Normalization (20 marks)
Unfortunately, Chuck did not make it to the normalization class. But a friend of his has told him
that normalization is very important and Chuck wants to know whether this is true or not, what
normalization means, and whether the attached data model (not your database) is normalized or
not. Can you find any examples where the model may not be normalized? Your answer should
be understandable by Chuck, in other words, by someone who has taken 3830 but did not attend
the normalization class or read the notes.
2
Mgmt 3830
Final Exam
December 10, 2001
4. GST (20 marks)
The attached data model shows the GST rate as an attribute in the Business entity. There are
several alternative approaches that could have been taken, including:
A separate GST table (with one record)
A separate GST table with a record for every working day (all with the same rate so far)
Putting the GST rate with the Product, instead of just showing whether it is taxable
Putting the GST rate with every Purchase
In retrospect, which one of these choices (including the one in the model) would you favour if
you had to build a full working version of this system? This is a physical design question, not a
modeling question, so you should consider the implications for building the system in Access.
Briefly indicate why, including providing the advantages and/or disadvantages of the others. If
you think two or more are equally good, you can take that perspective as well. There are
probably some others as well, maybe even better than those identified here, but you should limit
your response to considering only the choices you have been given.
Would your answer change if the federal government had just announced that the GST was
going to be phased out by reducing the rate by 1% per year over the next seven years?
3
Mgmt 3830
Final Exam
December 10, 2001
PURCHASE
CLIENT
*PONo
PODate
PODiscount
SuppInvoiceNo
SuppInvoiceDate
CustInvoiceDate
DISCOUNT
*DiscPeriod
*DiscPercentage
PAYABLE
PAY AMOUNT
*PayID
PayDate
PayAmount
PayChequeNo
ClientPayAmount
*ClientID
ClientBusinessName
ClientAddress
ClientTown
ClientProv
ClientPostalCode
ClientContactFirstName
ClientContactLastName
ClientPhone
ClientFax
ClientEmail
ClientBalance
ClientInactiveDate
SUPPLIER
*SuppID
SuppName
SuppAddress
SuppTown
SuppProv
SuppPostalCode
SuppContactFirst
SuppContactLast
SuppContactPhoto
SuppPhone
SuppFax
SuppEmail
PURCHASE
LINE
*POLineNo
POLineQtyOrder
POLinePrice
POLineQtyDeliver
POLineDelPrice
CLIENT
PAYMENT
*ClientPayID
ClientPayDate
ClientPayChequeNo
PRODUCT
*ProdID
ProdDescription
ProdTaxable
PRODUCT
QUOTE
QuoteDate
QuoteQuantity
QuotePrice
BUSINESS
TRUCKER
SHIPMENT
*ShipmentID
ShipDate
ShipInvoiceDate
ShipInvoiceNo
ShipCost
*TruckerID
TrkName
TrkAddress
TrkTown
TrkProv
TrkPostalCode
TrkContact
TrkPhone
TrkFax
TrkEmail
*BusinessID
BizName
BizAddress
BizTown
BizProv
BizPostalCode
BizPhone
BizFax
BizEmail
BizURL
BizLogo
BizGSTRate
BizCommission
4
Mgmt 3830
Final Exam
December 10, 2001
This Access Query format is provided as a guide only. Please put any answers you want marked
into the exam booklet. Do not submit this sheet with your exam.
Field:
Table:
Total:
Sort:
Show:





Criteria:
or:
5
Download