Documente Academic
Documente Profesional
Documente Cultură
The following are the inputs for the faculty for project allocation and evaluation:
The project should be allocated to individual students by the end of the
Retrieving and Maintaining Data submodule.
The student can start the project earliest after the Experiment session of
Managing Databases is over.
During allocation, explain the students the scope of the project by referring to
the topic Project Activities and Project Timelines.
Ask the students to refer to the sample case study and its solution given in the
sample project documentation.
Ask the students to refer to the topic Project Standards and Guidelines before
starting the project documentation.
Before project evaluation day, ask the students to verify their projects according
to the standards and guidelines given in the topic Project Standards and
Guidelines.
Evaluate the students according to the guidelines given in the topic Project
Evaluation Guidelines.
Background
Shop Here is a leading departmental store in New York. The store is known for quality
products, affordable price range, timely services, and home delivery facility. The store
has customers from all sections of the society and procures goods from various
countries.
Existing System
Shop Here maintains an optimum inventory of various categories of items. The details
of the various categories are stored in the Categories file. This file contains data
about the item category numbers and the corresponding categories. The details of the
items are stored in a file named Items. The Items file contains records such as item
number, item description, item category number, serial number of the item, unit price
of each item, and reorder level of each item.
The store has several regular suppliers for the various items. The suppliers are spread
over various geographical locations. A detailed record is maintained for each supplier.
The supplier record consists of supplier code, supplier’s name, address, phone
number, country of origin, and shipment mode number and shipment mode for
outstation suppliers. All records are maintained in the Suppliers file.
Whenever the employee of a store places a purchase order, a purchase order form
needs to be filled out. The format of a purchase order form is as follows:
A complete transaction takes place when the purchase is made and the payment is
done.
Envisioned System
Shop Here requires a computerized system that provides an effective method of
storing transaction details. The inventory-in-charge, Chris Symonds, realizes that with
growth in business, it becomes difficult to manually maintain the inventory. Shop Here
The various steps involved in creation of the relationship diagram are as follows:
Identifying Entities
The entities for the Shop Here database management system are:
1. Employees
2. Items
3. Purchase Orders
4. Suppliers
5. Categories
Identifying Attributes
The attributes of the entities listed above are as follows:
1. Employees: Employee ID, First Name, Last Name, Title, Phone
2. Items: Item ID, Item Name, Item Description, Category ID, Unit Price,
Reorder Level, Quantity On Hand
3. Purchase Orders: Purchase Order ID, Supplier ID, Employee ID, Order Date,
Shipping Date, Shipping Method, Freight Charge
4. Suppliers: Supplier ID, First Name, Last Name, Address, City, State, Zip,
Country, Phone
5. Categories: Category ID, Category Description
1 m m m
EMPLOYEES PLACE PURCHASE ORDERS FOR ITEMS
m m
MADE HAS
FROM
1 1
SUPPLIERS CATEGORIES
Normalizing tables
The tables that will be created in the database are as follows:
Freight Charge
Address Transaction
Description
Phone
Address Transaction
Description
Phone
Shipment Method ID
To create a computerized transaction system for Shop Here using SQL Server 2000,
the project team needs to perform the following tasks:
1. Create a database, ShopHere.
2. Create the tables as per the relationship diagram ensuring minimum disk
space utilization.
3. The validations to be performed on the tables are as follows:
Table: Items
a. Item ID must be unique.
b. Item ID must be auto generated.
c. Item name should not be left blank.
d. Item description should not be left blank.
e. The record should not be inserted or modified if QOH is 0.
f. Unit Price should be greater than 0.
g. ROQ should be greater than 0.
Table: Categories
a. Category ID must be unique.
b. Category ID must be auto generated.
c. Category description should not be left blank.
Table: ShippingMethods
a. Shipping Method ID must be unique.
b. Shipping Method ID must be auto generated.
c. Method description should not be left blank.
Table: Suppliers
a. Supplier ID must be unique.
b. Supplier ID must be auto generated.
c. First Name, Last Name, City, and Phone should not be left blank.
d. The Phone number must be in the following format:
‘[0-9][0-9][0-9][0-9]-[0-9][0-9][0-9]-[0-9][0-9][0-9]’
Example: 4356-555-555
Background
Showman House is a large event management company of New York. The company
organizes various types of events throughout the year. The events types include
fashion shows, celebrity shows, chat shows, musical extravaganza, exhibitions, fairs,
and charity shows.
Existing System
Showman House organizes events of different types. The details of the various event
types are stored in the Event Types file. This file contains data about the event type
codes and the corresponding event types. Any attendee who wishes to organize an
event needs to provide details about the nature of the event he wants to organize.
Along with providing event details, he also makes the payment for the event. The
payment for an event is made in instalments, according to the fee plan, which is
stored in the Fee Schedules file. The Fee Schedules file maintains details such as fee
schedule id, event id, fee description, and fee amount. An attendee needs to pay all
the instalments of the payment, on or before the start date of the event.
All details related to an event such as event code, event name, event type code,
location of the event, start date, end date, event description, number of people, and
the staffing required for the event are stored in the Events file. The payment details
that include payment amount, payment date, payment method id, and payment
method description are also stored in the Events file. The details of an attendee such
as attendee id, attendee name, and address are stored in the Attendees file.
Any event at Showman House is managed by an employee. The employee details such
as employee id, first name, last name, title, and phone are stored in the Employees
file.
Envisioned System
The management of Showman House realize that it is difficult to maintain so much
data manually. Therefore, they have decided to computerize the entire system of
event management.
Blue Moon Computers have been assigned the task to computerize the system. The
project team of Blue Moon have:
1. Identified the various entities involved.
2. Identified the attributes of the various entities. The attributes should
completely define the entities.
3. Drawn an E/R diagram to demonstrate the relationship between the various
entities.
The various steps involved in creation of the relationship diagram are as follows:
Identifying Entities
The entities for the Showman House database management system are:
1. Attendees
2. Events
3. Fee Schedules
4. Employees
5. Event Types
Identifying Attributes
The attributes of the entities listed above are as follows:
1. Attendees: Attendee ID, First Name, Last Name, Address, City, State, Zip,
Country, Phone
2. Events: Event ID, Event Name, Event Type ID, Event Description, Location,
Start Date, End Date, Staffing Required, Employee ID, Attendee ID, No Of
People, Payment Date, Payment Amount, Payment Method ID, Payment
Method, Credit Card No, Card Holder Name, Expiry Date, Fee Schedule ID
3. Fee Schedules: Fee Schedule ID, Event ID, Fee Description, Fee
4. Employees: Employee ID, First Name, Last Name, Title, Phone
5. Event Types: Event Type ID, Event Type Description
1
HAS EVENT TYPES
m
1 PAY m 1 1
ATTENDEES EVENTS HAS FEE SCHEDULES
FOR
1
MANAGED
BY
1
EMPLOYEES
Normalizing Tables
The tables that will be created in the database are as follows:
City Location
Phone Employee ID
Attendee ID
No Of People
Payment Date
Payment Amount
Payment Method ID
Payment Method
Credit Card No
Expiry Date
Fee Schedule ID
Last Name
Address
City
State
Country
Zip
Phone
City Location
Phone Employee ID
Attendee ID
No Of People
Event ID
City Location
Phone Employee ID
Attendee ID
No Of People
Event ID
Payment Methods
Payment Method ID
To create the computerized event management system for Showman House, the
project team at Blue Moon Computers needs to perform the following tasks:
1. Create a database, ShowmanHouse.
2. Create the table designs as per the relationship diagram ensuring minimum
disk space utilization.
3. The validations to be performed on the tables are as follows:
Table: Employees
a. Employee ID should be unique.
b. The FirstName, LastName, City, and Phone should not be left blank.
Background
New Project Ltd is a company that provides staff on contract for various project
assignments. The company is known for providing qualified and skilled staff that can
fulfill the project requirements efficiently. New Project employs professionals from
various fields that match the requirement of clients.
Existing System
New Project has a system of time cards. Time cards are issued to its employees for
working at the client site until the completion of the project. The employees use their
time cards for all work processes and expenses during the contract period. The time
card data enables New Project to prepare the final billing that needs to be submitted
to the clients for release of payment in lieu of work.
When a work agreement is signed, a project form needs to be filled out. The format of
this form is as follows:
PROJECT FORM
CLIENT SECTION
Address: Country:
PROJECT SECTION
EMPLOYEE SECTION
Address: Country:
EXPENSES DETAILS
WORK DETAILS
Project code:
BILL SECTION
All employees fill the time card details on a daily basis. These details include Time
Card ID, Employee ID, Date Issued, Date Worked, Project ID, Work Description,
Billable Hours, and Work Code ID. The staffing-in-charge of New Project stores these
details in the Time Cards file. The work code Id defines the category of the task
performed by the employee in the project. The details related to the work codes are
stored in the Work Codes file which includes details such as work code id and work
code description.
During the project life cycle, employees might also incur expenses due to conveyance,
food etc. The details of the expenses incurred by an employee in a project are stored
in the Time Card Expenses file. These details include time card expense id, time
card id, expense date, expense amount, expense description, project id, expense code
id, and expense code. After every project, the company calculates its payment due
from the client and raises an invoice. On realization of the payment, all related data is
stored in the Payments file. This file contains data about payment code, payment
mode ID, payment mode name, corresponding project code, payment amount,
payment date, and credit card details if the client pays through credit card. Credit card
details consist of card number, cardholder’s name, and expiry date of the credit card.
INSTRUCTOR NOTES
The various steps involved in creation of the relationship diagram are as follows:
Identifying Entities
The entities for the New Project database management system are:
1. Employees
2. Projects
3. Clients
PAYMENTS
EMPLOYEES
1 m
1
WORKS
ON
MADE
FILLS FOR
m 1
1
m 1
TIME CARDS PROJECTS GIVES CLIENTS
1 1
m m
RECORDED EXPENSES FOR
IN
Normalizing tables
The tables that will be created in the database are as follows:
Phone
Total Cost
Payments
Payment ID
Payment Date
Payment Amount
Project ID
Credit Card No
Expiry Date
Payment Method ID
Payment Method
Phone
Expense Amount
Expense Code ID
Expense Code
Project ID
Expense Description
Payment Method
Phone
Expense Amount
Expense Code ID
Expense Code
Project ID
Expense Description
Payment Method
To create the computerized time card management system for New Project Ltd., the
development team needs to perform the following tasks:
1. Create a database, TimeCard.
2. Create the table designs as per the relationship diagram ensuring minimum
disk space utilization.
3. The validations to be performed on the tables are as follows:
Table: Clients
a. Client-ID must be auto generated.
b. Client-ID must be unique.
c. CompanyName, Contact Person, Address, City, and Phone should be
mandatory.
d. The phone number must be in the following format, (000)-(000)-(0000).
Table: Employees
a. Employee ID must be auto generated.
b. Employee ID must be unique.
8. The entire database should be created using SQL scripts. This will help to
ensure that the database and its objects can be recreated in minimum possible
time in event of a database crash.
This book contains three case studies. These case studies will be allocated to
individual students.
Project Activities
The students will get 16 hours to complete the project. The activities to be performed
during this period are:
a. Analyze the case study to identify the system processes.
b. Create the design of the database objects.
c. Test the tables with three or four records.
d. Debug the tables, stored procedures, triggers, and transactions in case of
any errors.
e. Document the project by using the formats given in the later section.
f. Submit the documentation to the faculty.
g. After submitting the documentation, the student will present the project to
the faculty. The faculty will assign marks to the student based on the
evaluation criterions specified in this section.
Project Timelines
The students should follow the given timelines to complete the project on time:
Background
Pay Junction is a company that performs order processing and manages payment
realizations for other organizations.
Existing System
Pay junction maintains separate files for storing customer details and order details.
The Customer Details file consists of records such as customer code, customer
name, company name, address, country, phone number, and billing address.
When an order is processed, various parameters that affect the order are filled in a
form and then analyzed. The format of the Order Processing form is shown below:
ORDER PROCESSING
Discount:
SHIPMENT DETAILS
Tax:
Total Amount:
The data related to the order and shipment is transferred from the Order Processing
form to the Orders file. The data related to the products ordered is stored in the
Products file.
Envisioned System
Pay Junction has decided to stop manual data storage and start computerized
database management and order processing. It would also enable the company to
have quicker communication with the clients.
A small group of database designers have been deployed by Pay Junction to develop a
computerized system of order processing and database management. Pay Junction
also wants to include the information about an employee who processes an order. This
information will include the employee code, name, title, and phone number.
The development team has:
1. Identified the various entities involved.
2. Identified the attributes of the various entities. The attributes should
completely define the entities.
3. Drawn an E/R diagram to demonstrate the relationship between the various
entities.
4. Mapped the E/R diagram to tables.
5. Normalized the tables to 3 NF. The normalized tables should have:
a. Table names
b. Field names, datatypes, and size of fields
c. Primary and foreign key identification and integrity
6. Drawn a diagram to show the relationships between various tables.
The final relationship diagram created by the project team is as follows:
To create the computerized system, the team needs to perform the following tasks:
1. Create a database, PayJunction.
2. Create the table designs as per the relationship diagram ensuring minimum
disk space utilization.
3. The validations to be performed on the tables are as follows:
Table: Customers
a. Cust_Id must be unique.
b. Cust_Id must be auto generated.
c. The FirstName, LastName, Address, City, State, and Phone should not be
left blank.
d. The phone number should be entered in the format, 0000-000-000.
Table: Employees
a. Emp_Id must be unique.
To create the PayJunction database and its objects, you need to make use of the SQL
Scripts provided in the TIRM CD.
1. CreatePayJunctionDatabase.sql: The script contains the code for creating a
database. It removes the database if it already exists in SQL Server.
2. CreatePayJunctionObjects.sql: The script contains the statements required
to create the tables of the database. It also contains statements used to insert
sample records into the tables.
3. CreatePayJunctionConstraints.sql: The script contains the SQL statements
used for creation of constraints, rules, and defaults as per the validations
required.
4. CreatePayJunctionProcedures.sql: The script contains the batch
statements that create the generic procedures and triggers in the database.
5. CreatePayJunctionIndexes.sql: The script contains the SQL statements
used to create indexes to speed up the execution of the frequently used
queries.
6. CreatePayJunctionForBCPandDTS.sql: The script contains the SQL queries
used to retrieve the data to be transferred to external applications using BCP
and DTS.
7. ErrorDetectionForProceduresandTriggers.sql: The script contains
statements which test the database objects for validity.
PROJECT ON
Pay Junction Database Management System
Developed by
Coordinator:
Alex Norton
PaymentMethods
Products
Employees
PaymentMethods
The description should not be left NOT NULL clause in the CREATE
blank. TABLE statement
The description should not be left NOT NULL clause in the CREATE
blank. TABLE statement
Orders
OrderDetails
The quantity and discount should NOT NULL clause in the CREATE
not be left blank. TABLE statement
The payment date should be greater than Trigger and batch programming
the order date.
The payment amount and payment date NOT NULL clause in the CREATE
fields should not be left blank. TABLE statement
PROJECT ON
Developed by
Name:
Reg. No.:
Batch Code :
Start Date :
End Date :
Name of the Coordinator :
Name of Developer :
Date of Submission :
Coordinator:
System Summary:
Database Name:
No of Tables:
Name of Tables:
Database Name:
Schematic diagram for the database depicting the primary and
foreign key relationships.
Database Name:
Table Name:
Hardware:
Operating System:
Software: