Sei sulla pagina 1di 73

DWDS ASSIGNMENT | Asian Pacific University

Contents
1.

Introduction.......................................................................................................... 4
1.1.

Opening structure.......................................................................................... 4

1.2.

Problem Statement........................................................................................ 4

2.

ER Modelling........................................................................................................ 5

3.

Business Rules..................................................................................................... 7

4.

Normalisation Process.......................................................................................... 8
4.1.

For Rental....................................................................................................... 8

4.1.1.

UNF.......................................................................................................... 8

4.1.2.

1NF.......................................................................................................... 8

4.1.3.

2NF.......................................................................................................... 8

4.1.4.

3NF.......................................................................................................... 9

4.2.

For Enquery.................................................................................................. 10

4.2.1.

UNF........................................................................................................ 10

4.2.2.

1NF........................................................................................................ 10

4.2.3.

2NF........................................................................................................ 10

4.2.4.

3NF........................................................................................................ 11

4.3.

For Order...................................................................................................... 11

4.3.1.

UNF........................................................................................................ 11

4.3.2.

1NF........................................................................................................ 12

4.3.3.

2NF........................................................................................................ 12

4.3.4.

3NF........................................................................................................ 12

5.

Data Schema...................................................................................................... 14

6.

Data Dictionary.................................................................................................. 15

7.

SQL Dictionary................................................................................................... 23

8.

7.1.

DDL.............................................................................................................. 23

7.2.

DML.............................................................................................................. 26

7.2.1.

Sample Data Uploading.........................................................................26

7.2.2.

Webpage Queries..................................................................................28

System Screen Shots with brief explanations....................................................37


8.1.

STAFF MENU................................................................................................. 37

8.2.

SUPPLIER MENU........................................................................................... 40

8.3.

MEMBER MENU............................................................................................ 43

8.4.

DVD MASTER MENU..................................................................................... 46

DVD COPY MENU................................................................................................... 49


ASIAN PACIFIC UNIVERSITY

DWDS ASSIGNMENT | Asian Pacific University


8.5.

Rental........................................................................................................... 52

8.6.

Login Screen................................................................................................ 56

8.7.

Branch......................................................................................................... 58

8.8.

Enquiries...................................................................................................... 64

8.9.

Customer Browser Screen............................................................................66

9.
10.

Workload Matrix................................................................................................. 68
References...................................................................................................... 69

ASIAN PACIFIC UNIVERSITY

DWDS ASSIGNMENT | Asian Pacific University

1. Introduction
1.1.

Opening structure

A.P.U DVD & Movies is an entertainment facility that provides DVD &
Movies rentals to customers. The company was founded in the year 2000 in
Damansara. The company has been growing, where it now has many
branches which is located around Selangor and Kuala Lumpur.
A.P.U DVD & Movies have over 50 branches that are comprised of 2000
staff and 100,000 active members. For each and every branch, there is a
manager and a few supervisors. The job of the manager is to be responsible
in maintaining the branch according to the rules and regulation that are set
by the company and the supervisors are the ones with the responsibility of
supervising groups of staff that are assigned by the managers of the branch.

1.2.

Problem Statement

The A.P.U DVD & Movies Company is currently maintaining all of the data
mentioned below in a spreadsheet system that is giving difficulties to the
company.
Datas maintained
Customer Information
Available DVD stock
Returning and Rented Date of the DVDs
Supplier details
Staff details
Branch information
The A.P.U DVD & Movies Company is currently using a spreadsheet based
system to manage data. The data tends to be inaccurate and is normally

ASIAN PACIFIC UNIVERSITY

DWDS ASSIGNMENT | Asian Pacific University

caused by human errors and deliberately altered data by a disloyal


employee.
By searching the DVDs, it is limited to its movies name whereby it lacks
the information that can be maintained in the system.
There arent any accurate data when it comes to the stock information of
the DVDs. This is also caused by human errors, whereby the staff members
have mistakenly deducted the stock value of the wrong DVDs.
Another difficulty that is faced by the company occurs when generating
reports on the requirements from other branches due to the limitations of the
current system whereby it has no centralized system.
It is also difficult to backup the data to other branches due to the amount
of files.
2. ER Modelling

ASIAN PACIFIC UNIVERSITY

DWDS ASSIGNMENT | Asian Pacific University

ASIAN PACIFIC UNIVERSITY

DWDS ASSIGNMENT | Asian Pacific University

1 Staff can have 1 Position


1 Position can have many staffs
1 staff supervises many staffs
1 staff is supervised by 1 staff (Supervisor)
1 staff can have many or 0 orders
1 order can have 1 staff
1 staff replys to 0 or many enquiry
1 enquiry is replied by 1 staff
1 staff Manages 1 Branch
1 Branch Have 1 Manager
1 Staff Exist in 1 Branch
1 Branch have many staffs
1 staff have many rents
1 rents have 1 staff
1 Enquiry have 1 member
1 member have 1 or 0 enquiry
1 order have many order details
1 order detail have 1 order
1 order have 1 supplier
1 supplier have 1 or many orders
1 Order Detail have 1 or many DVDCopy
1 DVDCopy have 0 or many OrderDetails.
1 branch can have 1 more many DVD copies
1 DVD copy can have 1 branch
1 DVD Copy have 1 DVD master
1 DVD master have many DVD copies
1 DVD Copy have 1 or 0 Rental
1 Rental have many or 1 DVD Copies
1 DVD Copy have 1 or 0 Reserve Details
1 Reserve Details have 1 many DVD Copy

ASIAN PACIFIC UNIVERSITY

DWDS ASSIGNMENT | Asian Pacific University

1 Reserve can have 1 or more DVDCopy


1 DVDCopy have 1 Reserve
1 rent includes 1 member
1 member can have many rent
3. Business Rules

The rules below are implemented into the APU Online Movie Rental
System.
2 main users of the system:
a) Staff
b) Customer
Staff Registration
-

Each of the staff members has a unique staff ID to access the


system.

Staff ID cannot be duplicated.

Staff ID can reply enquiries to members.

Staff ID cannot be changed when it is set.

Member Registration
-

Each of every member has a unique member ID to access the


system.

Member ID cannot be duplicated.

Member ID can book movies through the system.

Member ID can also make enquiries.

Member ID has the privilege to rent up to 10 DVDs at a time.

Member needs to ask the staff to edit their personal information if


needed.

ASIAN PACIFIC UNIVERSITY

DWDS ASSIGNMENT | Asian Pacific University

DVD Registration
-

The system keeps track of every DVDs copy.

DVD names will be registered separately as DVD master.

DVD master might have identical copies that will be registered


separately as DVD copy.

Each DVD copy is kept tracked.

4. Normalisation Process
4.1.

For Rental

1.1.1.

UNF

RentID, RentDate, ReturnDate, MemID, Member_Name, Member_NIC,


Member_DOB,

Member_Sex,

Member_Phone,

Member_Password,

Staff_DOB,

Staff_Sex,

Member_Address,
Staff_ID,

Staff_Address,

Member_RegDate,

Staff_Name,

Staff_RegDate,

Staff_NIC,
Staff_Phone,

Staff_Password, Staff_Position, Staff_Supervisor, BranchID, BranchName,


Branch_Address, Branch_PhoneNo, DVDName, DVD_Category, DVD_Year,
CopyID
1.1.2.

1NF

Rent_TBL
RentID, RentDate, ReturnDate, MemID, Member_Name, Member_NIC,
Member_DOB,

Member_Sex,

Member_Phone,
Staff_DOB,

Member_Address,

Member_Password,

Staff_Sex,

Staff_Address,

Member_RegDate,

Staff_ID,Staff_Name,
Staff_RegDate,

Staff_Password, Staff_Position, Staff_Supervisor,

Staff_NIC,
Staff_Phone,

BranchID, BranchName,

Branch_Address, Branch_PhoneNo
RentDetail
RentID, CopyID, DVDID, DVDName, DVD_Category, DVD_Year

ASIAN PACIFIC UNIVERSITY

DWDS ASSIGNMENT | Asian Pacific University

1.1.3.

2NF

Rent_TBL
RentID, RentDate, ReturnDate, MemID, Member_Name, Member_NIC,
Member_DOB,

Member_Sex,

Member_Phone,

Member_Password,

Staff_DOB,Staff_Sex,

Member_Address,
Staff_ID,

Staff_Address,

Member_RegDate,

Staff_Name,

Staff_RegDate,

Staff_Password, Staff_Position, Staff_Supervisor,

Staff_NIC,
Staff_Phone,

BranchID, BranchName,

Branch_Address, Branch_PhoneNo
RentDetail_TBL
RentID, CopyID
DVDCopy
DVDCopy_TBL
CopyID, DVDID, DVDName, DVD_Category, DVD_Year
1.1.4.

3NF

Rent_TBL
RentID, RentDate, ReturnDate, MemID, Staff_ID,
Member_TBL
MemID,

Member_Name,

Member_NIC,

Member_DOB,

Member_Sex,

Member_Address, Member_RegDate, Member_Phone, Member_Password,


Staff_TBL
Staff_ID, Staff_Name, Staff_NIC, Staff_DOB, Staff_Sex, Staff_Address,
Staff_RegDate, Staff_Phone, Staff_Password, Position_ID, BranchID,

ASIAN PACIFIC UNIVERSITY

10

DWDS ASSIGNMENT | Asian Pacific University

Position_TBL
Position_ID, Description, Salary,
Branch_TBL
BranchID, BranchName, Branch_Address, Branch_PhoneNo,
RentDetail_TBL
No, RentID, copyID,
DVDCopy_TBL
No, CopyID, DVDID, BranchID,
DVDMaster_TBL
DVDID, DVDName, DVD_Category, DVD_Year
4.2.

For Enquery

1.1.5.

UNF

EnqueryID,Enquery,Feedback,Staff_ID,Staff_Name,Staff_NIC,Staff_DOB,Sta
ff_Sex,Staff_Address,Staff_RegDate,Staff_Phone,Staff_Password,Staff_Position,
Staff_Supervisor,BranchID,BranchName,Branch_Address,Branch_PhoneNo,Me
mID,Member_Name,Member_NIC,Member_DOB,Member_Sex,Member_Addres
s,Member_Address,Member_Phone,Member_Password
1.1.6.

1NF

Enquery_TBL
EnqueryID,Enquery,Feedback,Staff_ID,Staff_Name,Staff_NIC,Staff_DOB,Sta
ff_Sex,Staff_Address,Staff_RegDate,Staff_Phone,Staff_Password,Staff_Position,

ASIAN PACIFIC UNIVERSITY

11

DWDS ASSIGNMENT | Asian Pacific University

Staff_Supervisor,BranchID,BranchName,Branch_Address,Branch_PhoneNo,Me
mID
Member_TBL
MemID,Member_Name,Member_NIC,Member_DOB,Member_Sex,Member_
Address,Member_Address,Member_Phone,Member_Password
1.1.7.

2NF

Enquery_TBL
EnqueryID,Enquery,Feedback,Staff_ID,Staff_Name,Staff_NIC,Staff_DOB,Sta
ff_Sex,Staff_Address,Staff_RegDate,Staff_Phone,Staff_Password,Staff_Position,
Staff_Supervisor,BranchID,BranchName,Branch_Address,Branch_PhoneNo,Me
mID

Member_TBL
MemID,Member_Name,Member_NIC,Member_DOB,Member_Sex,Member_
Address,Member_Address,Member_Phone,Member_Password
1.1.8.

3NF

Enquery_TBL
EnqueryID,Enquery,Feedback,Staff_ID,MemID
Staff_TBL
Staff_ID, Staff_Name, Staff_NIC, Staff_DOB, Staff_Sex, Staff_Address,
Staff_RegDate,

Staff_Phone,

Staff_Password,

Position_ID,

BranchID,

Staff_Supervisor

ASIAN PACIFIC UNIVERSITY

12

DWDS ASSIGNMENT | Asian Pacific University

Position_TBL
Position_ID, Description, Salary,
Branch_TBL
BranchID,BranchName,Branch_Address,Branch_PhoneNo
Member_TBL
MemID,Member_Name,Member_NIC,Member_DOB,Member_Sex,Member_
Address,Member_Address,Member_Phone,Member_Password
4.3.

For Order

1.1.9.
OrderID,

UNF
OrderDate,

Staff_DOB,

OrderStatus,

Staff_Sex,

Staff_ID,

Staff_Address,

Staff_Name,

Staff_RegDate,

Staff_NIC,

Staff_Phone,

Staff_Password, Staff_Position, Staff_Supervisor, BranchID, BranchName,


Branch_Address,
SupRegDate,

Branch_PhoneNo,

SupPhoneNo,

SupplierID,

CopyID,

DVDID,

SupName,

DVDName,

SupAddress,

DVD_Category,

DVD_Year, Qty
1.1.10.

1NF

Order_TBL
OrderID,
Staff_DOB,

OrderDate,
Staff_Sex,

OrderStatus,

Staff_ID,

Staff_Address,

Staff_Name,

Staff_RegDate,

Staff_NIC,

Staff_Phone,

Staff_Password, Staff_Position, Staff_Supervisor, BranchID, BranchName,


Branch_Address,

Branch_PhoneNo,

SupplierID,

SupName,

SupAddress,

SupRegDate, SupPhoneNo
OrderDetail_TBL

ASIAN PACIFIC UNIVERSITY

13

DWDS ASSIGNMENT | Asian Pacific University

OrderID, CopyID, DVDID, DVDName, DVD_Category, DVD_Year, BranchID,


Qty
1.1.11.

2NF

Order_TBL
OrderID,

OrderDate,

Staff_DOB,

Staff_Sex,

OrderStatus,

Staff_ID,

Staff_Address,

Staff_Name,

Staff_RegDate,

Staff_NIC,

Staff_Phone,

Staff_Password, Staff_Position, Staff_Supervisor, BranchID, BranchName,


Branch_Address,

Branch_PhoneNo,

SupplierID,

SupName,

SupAddress,

SupRegDate, SupPhoneNo
OrderDetail_TBL
OrderID, copyID, Qty
DVDCopy_TBL
CopyID, DVDID, DVDName, DVD_Category, DVD_Year, BranchID, Status
1.1.12.

3NF

Order_TBL
OrderID, OrderDate, OrderStatus, Staff_ID, SupplierID

Supplier_TBL
SupplierID, SupName, SupAddress, SupRegDate, SupPhoneNo,
Staff_TBL

ASIAN PACIFIC UNIVERSITY

14

DWDS ASSIGNMENT | Asian Pacific University

Staff_ID, Staff_Name, Staff_NIC, Staff_DOB, Staff_Sex, Staff_Address,


Staff_RegDate,

Staff_Phone,

Staff_Password,

Position_ID,

BranchID,

Staff_Supervisor
Position_TBL
Position_ID, Description, Salary,
Branch_TBL
BranchID, BranchName, Branch_Address, Branch_PhoneNo
OrderDetail_TBL
No, OrderID, copyID, Qty
DVDCopy_TBL
CopyID, DVDID, BranchID, Status
DVDMaster_TBL
DVDID, DVDName, DVD_Category, DVD_Year

5. Data Schema

ASIAN PACIFIC UNIVERSITY

15

DWDS ASSIGNMENT | Asian Pacific University

6. Data Dictionary

ASIAN PACIFIC UNIVERSITY

16

DWDS ASSIGNMENT | Asian Pacific University

Branch Table
Table Name (Branch)
Fields
Data Type

Descriptio
n

Auto
Generate

Allow
Null
Values

Yes from
(100 and
Incremente
d by 1
NO

NO

NO

NO

NO

NO

BranchI
D

int

ID For
Branch

Name

varchar(30
)
varchar(80
)
int

Name of
the Branch
Address of
Branch
Phone No
of Branch

Address
PhoneN
O

Primar
y Key
or
Foreign
Key
PK

Referenc
e Table

Referenc
e Field

NO

Position Table
Table Name (Position)
Fields
Data Type

Descriptio
n

Auto Generate

Allow
Null
Values

Yes from (1
and
Incremented
by 1
NO

NO

NO

NO

PositionID

int

ID For
Position

Descriptio
n

varchar(20
)

Salary

int

Descriptio
n of the
staff
position
Salary of
the staff

ASIAN PACIFIC UNIVERSITY

Primary
Key or
Foreign
Key
PK

Referenc
e Table

Referenc
e Field

NO

17

DWDS ASSIGNMENT | Asian Pacific University

Member Table
Table Name (Member)
Fields
Data Type

Descriptio
n

Auto
Generate

Allow
Null
Values

Yes from
(10000 and
Incremente
d by 1
NO

NO

NO

NO

NO

NO

NO

NO

NO

NO

MemID

Int

ID For
member

Name

DOB

varchar(30
)
varchar(15
)
date

Sex

char(1)

Address

varchar(80
)

Name of
member
NIC of
member
Date of
birth of
nember
Gender of
the
member
Address of
member

RegDate

date

Date of
registration

NO

NO

PhoneNo

int

NO

NO

Passwor
d

varchar(16
)

Phone
number of
member
Password
of the
member

NO

NO

NIC

ASIAN PACIFIC UNIVERSITY

Primary
Key or
Foreign
Key
PK

Referenc
e Table

Referenc
e Field

NO

18

DWDS ASSIGNMENT | Asian Pacific University

Staff Table
Table Name (Staff)
Fields
Data Type

Descriptio
n

Auto
Generate

Allow
Null
Values

Yes from
(20000 and
Incremente
d by 1
NO

NO

NO

NO

NO

NO

NO

NO

Primary
Key or
Foreign
Key
PK

Referenc
e Table

Reference
Field

StaffID

int

ID for staff

Name

DOB

varchar(50
)
varchar(15
)
date

Sex

char(1)

Name of
staff
Address of
staff
Date of
birth of
staff
Gender of
the staff

Address

varchar(80
)

Address of
staff

NO

NO

RegDate

date

Date of
registration

NO

NO

PhoneNo

int

NO

NO

BranchID

int

Phone
number of
staff
Branch ID
for staff

NO

NO

FK

Branch

BranchID

PositionID

int

Position ID NO
for staff

NO

FK

Position

PositionI
D

SupervisorI
D

int

Supervisor
ID for staff

NO

YES

FK

Staff

StaffID

Password

varchar(16
)

Password
of the
member

NO

NO

NIC

ASIAN PACIFIC UNIVERSITY

NO

19

DWDS ASSIGNMENT | Asian Pacific University

Enquiry Table
Table Name (Enquery)
Fields
Data Type

Description

Auto Generate

Allow
Null
Values

Yes from
(90000 and
Incremented
by 1
NO
NO

NO

NO

YES

NO

EnqID

int

ID for
enquiries

MemID

int

Enquery

varchar(200
)
varchar(200
)
int

Name of
member
enquiries of
member
Feedback of
member
Staff ID of
the staff

FeedBK
StaffID

Referenc
e Table

Referenc
e Field

NO

Primary
Key or
Foreign
Key
PK

NO

FK

Member

MemID

YES

FK

Staff

StaffID

Referenc
e Table

Referenc
e Field

Member

MemID

Reservation Table
Table Name (Reserve)
Fields

Data Type

Description

Auto Generate

Allow
Null
Values

ResevID

int

ID for
reservation

NO

MemID

int

NO

PK

Status

varchar(10
)

NO

NO

ReserveDat
e

date

ID of
member
Status of
Reservatio
n
Date of
Reservatio
n

Yes from
(30000 and
Incremented
by 1
NO

Primary
Key or
Foreign
Key
PK

NO

NO

ASIAN PACIFIC UNIVERSITY

20

DWDS ASSIGNMENT | Asian Pacific University

Reservation Details
Table Name (ReserveDetail)
Fields

Data Type

Description

Auto
Generate

Allow
Null
Values

Reference
Table

Referenc
e Field

NO

Primary
Key or
Foreign
Key
PK

No

int

ResevID

int

Yes from (1
and
Incremente
d by 1
NO

CopyID

int

ID number
for
reservation
details
Reservatio
n ID
It is a
unique ID
for the
DVD

NO

FK

Reserve

ResevID

NO

NO

FK

DVDCop
y

CopyID

Primary
Key or
Foreign
Key
PK

Reference
Table

DVD Master
Table Name (DVDMaster)
Fields

Data Type

Descriptio
n

Auto
Generate

Allow
Null
Values

DVDID

int

ID for
DVD

NO

Name

varchar(50) Name of
DVD
varchar(10) Category
of DVD
int
Year of
DVD

Yes from
(40000 and
Incremente
d by 1
NO
NO

NO

NO

NO

Category
Year

ASIAN PACIFIC UNIVERSITY

Referenc
e Field

NO

21

DWDS ASSIGNMENT | Asian Pacific University

Rent
Table Name (Rent)
Fields

Data Type

Descriptio
n

Auto
Generate

RentID

int

MemID

int

RentDate

date

ReturnDate

date

StaffID

int

ID for Rent Yes from


(50000 and
Incremente
d by 1
Name of
NO
member
Date of
NO
Rent
Date of
YES
return
Staff ID of NO
the staff

Allow
Null
Values

Referenc
e Table

Referenc
e Field

NO

Primary
Key or
Foreign
Key
PK

NO

FK

Member

MemID

FK

Staff

StaffID

NO
YES
NO

Rent Detail
Table Name (RentDetail)
Fields

Data Type

Descriptio
n

Auto Generate

Allow
Null
Values

No

int

ID number
for rent
details

RentID

int

CopyID

int

Name of
member
ID of DVD
copy

Yes from (1
and
Incremented
by 1
NO
NO

ASIAN PACIFIC UNIVERSITY

Reference
Table

Referenc
e Field

NO

Primary
Key or
Foreign
Key
PK

NO

FK

Rent

RentID

NO

FK

DVDCop
y

CopyID

22

DWDS ASSIGNMENT | Asian Pacific University

Supplier Table
Table Name (Supplier)
Fields

Data Type

Description

Auto
Generate

Allow
Null
Values

SupID

int

ID for
Supplier

NO

Name

varchar(30) Name of
supplier
varchar(80) Supplier
address
date
Registratio
n date
int
Phone
number of
supplier

Yes from
(1000 and
Incremente
d by 1
NO
NO

NO

NO

NO

NO

NO

Address
RegDate
PhoneNo

Primary
Key or
Foreign
Key
PK

Referenc
e Table

Referenc
e Field

Referenc
e Table

Referenc
e Field

NO

Order Table
Table Name (Order)
Fields

Data Type

Descriptio
n

Auto
Generate

Allow
Null
Values

OrderID

int

ID for
order

NO

StaffID

int

Yes from (1
and
Incremente
d by 1
NO

Primary
Key or
Foreign
Key
PK

NO

FK

Staff

StaffID

NO

NO

FK

Supplier

SupID

NO

NO

NO

NO

SupID
Date
Status

Name of
staff
int
ID for
supplier
date
Date of
order
varchar(10) Status of
order

ASIAN PACIFIC UNIVERSITY

23

DWDS ASSIGNMENT | Asian Pacific University

Order Details
Table Name (OrderDetail)
Fields

Data
Type

Description

Auto Generate

Allow
Null
Values

No

int

ID number
for order

OrderID
DVDID

int
int

ID of order
ID of DVD

Yes from (1
and
Incremented
by 1
NO
NO

Qty

int

Quantity of
order details

NO

NO

ASIAN PACIFIC UNIVERSITY

Reference
Table

Referenc
e Field

NO

Primary
Key or
Foreign
Key
PK

NO
NO

FK
FK

Order
DvDMaste
r

OrderID
DVDID

24

DWDS ASSIGNMENT | Asian Pacific University

7. SQL Dictionary
7.1.

DDL

Create Database
CREATE DATABASE APURENT;
Branch Table
CREATE TABLE [dbo].[Branch](
[BranchID] [int] IDENTITY(100,1) NOT NULL PRIMARY KEY,
[Name] [varchar](30) NOT NULL,
[Address] [varchar](80) NOT NULL,
[PhoneNo] [int] NOT NULL,)
Position Table
CREATE TABLE [dbo].[Position](
[PositionID] [int]IDENTITY (1,1) NOT NULL PRIMARY KEY,
[Description] [varchar](20) NOT NULL,
[Salary] [int] NOT NULL,)
Member Table
CREATE TABLE [dbo].[Member](
[MemID] [int] IDENTITY (10000,1) NOT NULL PRIMARY KEY,
[Name] [varchar](30) NOT NULL,
[NIC] [varchar](15) NOT NULL,
[DOB] [date] NOT NULL,
[Sex] [char](1) NOT NULL,
[Address] [varchar](80) NOT NULL,
[RegDate] [date] NOT NULL,
[PhoneNo] [int] NOT NULL,
[Password] [varchar](16) NOT NULL,)

ASIAN PACIFIC UNIVERSITY

25

DWDS ASSIGNMENT | Asian Pacific University

Staff Table
CREATE TABLE [dbo].[Staff](
[StaffID] [int] IDENTITY (20000,1) NOT NULL PRIMARY KEY,
[Name] [varchar](50) NOT NULL,
[NIC] [varchar](15) NOT NULL,
[DOB] [date] NOT NULL,
[Sex] [varchar](1) NOT NULL,
[Address] [varchar](80) NOT NULL,
[RegDate] [date] NOT NULL,
[PhoneNo] [int] NOT NULL,
[BranchID]

[int]

NOT

NULL,

FOREIGN

KEY

REFERENCES

NOT

NULL,

FOREIGN

KEY

REFERENCES

Branch(BranchID),
[PositionID]

[int]

Position(PositionID),
[SupervisorID] [int] FOREIGN KEY REFERENCES Staff(StaffID),
[Password] [varchar](16) NOT NULL,)
Enquiry Table
CREATE TABLE [dbo].[Enquery](
[EnqID] [int] IDENTITY (90000,1) NOT NULL PRIMARY KEY,
[MemID] [int] FOREIGN KEY REFERENCES Member(MemID),
[Enquery] [varchar](200) NOT NULL,
[FeedBK] [varchar](200) NULL,
[StaffID] [int] FOREIGN KEY REFERENCES Staff(StaffID))
Reservation Table
CREATE TABLE [dbo].[Reserve](
[ResevID] [int] IDENTITY (30000,1) NOT NULL PRIMARY KEY,
[MemID] [int] NOT NULL FOREIGN KEY REFERENCES Member(MemID),
[Status] [varchar](10) NOT NULL,

ASIAN PACIFIC UNIVERSITY

26

DWDS ASSIGNMENT | Asian Pacific University

[ReserveDate] [date] NOT NULL,


Reservation Details
CREATE TABLE [dbo].[ReserveDetail](
[No] [int] IDENTITY(1,1) NOT NULL PRIMARY KEY,
[ResevID]

[int]

NOT

NULL

FOREIGN

KEY

REFERENCES

Reserve(ResevID),
[CopyID] [int] NOT NULL FOREIGN KEY REFERENCES DVDCopy(CopyID))
DVD Master
CREATE TABLE [dbo].[DVDMaster](
[DVDID] [int] IDENTITY (40000,1) NOT NULL PRIMARY KEY,
[Name] [varchar](50) NOT NULL,
[Category] [varchar](10) NOT NULL,
[Year] [int] NOT NULL,
DVD Copy
CREATE TABLE [dbo].[DVDCopy](
[CopyID] [int] IDENTITY(1,1) NOT NULL PRIMARY KEY,
[DVDID]

[int]

NOT

NULL

FOREIGN

KEY

REFERENCES

DVDMaster(DVDID),
[BranchID]

[int]

NOT

NULL

FOREIGN

KEY

REFERENCES

Branch(BranchID),
[Status] [varchar](10) NOT NULL,)
Rent
CREATE TABLE [dbo].[Rent](
[RentID] [int] IDENTITY(50000,1) NOT NULL PRIMARY KEY,
[MemID] [int] NOT NULL FOREIGN KEY REFERENCES Member(MemID),
[RentDate] [date] NOT NULL,

ASIAN PACIFIC UNIVERSITY

27

DWDS ASSIGNMENT | Asian Pacific University

[ReturnDate] [date],
[StaffID] [int] NOT NULL FOREIGN KEY REFERENCES Staff(StaffID))
Rent Detail
CREATE TABLE [dbo].[RentDetail](
[No] [int] IDENTITY(1,1) NOT NULL PRIMARY KEY,
[RentID] [int] NOT NULL FOREIGN KEY REFERENCES Rent(RentID),
[CopyID] [int] NOT NULL FOREIGN KEY REFERENCES DVDCopy(CopyID))

Supplier Table
CREATE TABLE [dbo].[Supplier](
[SupID] [int]IDENTITY (1000,1) NOT NULL PRIMARY KEY,
[Name] [varchar](30) NOT NULL,
[Address] [varchar](80) NOT NULL,
[RegDate] [date] NOT NULL,
[PhoneNo] [int] NOT NULL,)
Order Table
CREATE TABLE [dbo].[Order](
[OrderID] [int] IDENTITY (1,1) NOT NULL PRIMARY KEY,
[StaffID] [int] NOT NULL FOREIGN KEY REFERENCES Staff(StaffID),
[SupID] [int] NOT NULL FOREIGN KEY REFERENCES Supplier(SupID),
[Date] [date] NOT NULL,
[Status] [varchar](10) NOT NULL,)
Order Details
CREATE TABLE [dbo].[OrderDetail](
[No] [int] IDENTITY (1,1) NOT NULL PRIMARY KEY,
[OrderID] [int] NOT NULL FOREIGN KEY REFERENCES [Order](OrderID),

ASIAN PACIFIC UNIVERSITY

28

DWDS ASSIGNMENT | Asian Pacific University

[DVDID]

[int]

NOT

NULL

FOREIGN

KEY

REFERENCES

DvDMaster(DVDID),
[Qty] [int] NOT NULL,)
7.2.

DML

1.1.13.

Sample Data Uploading

Branches
INSERT INTO [APURENT].[dbo].[BRANCH] ([Name],[Address],[PhoneNo])
VALUES ('Kuala Lumpur Branch','Kuala Lumpur, Bangunan Bangkok Bank,
50000','322626222')
Staff
INSERT
[Address],

INTO

[APURENT].[dbo].[STAFF]

[RegDate],

[Password])

([Name],[NIC],[DOB],

[SEX],

[PhoneNo],[PositionID],[BranchID],[SupervisorID],
VALUES

','850116071344','01/16/1985','M','Kajang,

('Miles
5

Residency

Rodenberger
IOI

Resort,

43000','11/25/2000','362016088','3','101','NULL','welcome')
Member
INSERT INTO [APURENT].[dbo].[MEMBER] ([Name], [NIC], [DOB], [SEX],
[Address], [RegDate], [PhoneNo], [Password]) VALUES ('Stuart Shumate ',
'880128049836', '1/28/1988', 'M', 'Gopeng,

Desa Lawan Kuda,

31600',

'9/11/2009', '173465426', 'welcome')


Supplier
INSERT INTO [APURENT].[dbo].[SUPPLIER] ([Name], [Address], [RegDate],
[PhoneNo]) VALUES ('Appalshop Film & Video', 'Johor Bahru, Jalan Abdullah
Ibrahim, 80000', '12/6/2004', '174835524')
DVD Master

ASIAN PACIFIC UNIVERSITY

29

DWDS ASSIGNMENT | Asian Pacific University

INSERT INTO [APURENT].[dbo].[DVDMASTER] ([Name], [Category], [Year],


[Thumbnail]) VALUES ('Grown Ups 2', 'Comedy', '2013', '')
DVD Copy ID
INSERT

INTO

[APURENT].[dbo].[DVDCopy]

([DVDID],

[BRANCHID],

[STATUS]) VALUES ('40019', '107', 'Available')


Enquery
INSERT INTO [APURENT].[dbo].[Enquery] ([MemID] , [Enquery] , [FeedBK] ,
[StaffID]) VALUES ('10010', 'Sample Question 8', 'NULL', 'NULL')
INSERT INTO [APURENT].[dbo].[Enquery] ([MemID] , [Enquery] , [FeedBK] ,
[StaffID]) VALUES ('10020', 'Sample Question 9', 'Sample Feedback From Staff
9', '20063')

Order Data
INSERT INTO [APURENT].[dbo].[Order] ([StaffID] , [SupID] , [Date],
[Status]) VALUES ('20065', '1004', '01/04/2011', 'Delivered')
Order Detail
INSERT INTO [APURENT].[dbo].[OrderDetail] ([OrderID] ,[DVDID] ,[Qty])
VALUES ('1','40006','10')
Rent
INSERT

INTO

[APURENT].[dbo].[Rent]

([MemID]

[RentDate]

[ReturnDate], [StaffID]) VALUES ('10007', '3/7/2012', '3/14/2012', '20068')


1.1.14.

Webpage Queries

Staff Search with name including supervisor name

ASIAN PACIFIC UNIVERSITY

30

DWDS ASSIGNMENT | Asian Pacific University

SELECT Staff.StaffID,
Staff.NIC,

Staff.Sex,

Staff.Name,

Position.Description AS Position,

Staff.Address,

Staff.PhoneNo,

Staff_1.Name AS

Supervisor
FROM Staff INNER JOIN
Position ON Staff.PositionID = Position.PositionID LEFT OUTER JOIN
Staff AS Staff_1 ON Staff.SupervisorID = Staff_1.StaffID
WHERE (Staff.Name LIKE '%' + @Name + '%')
Search By Staff ID
SELECT * FROM [Staff] WHERE ([StaffID] = @StaffID)
Update Query for Staff
UPDATE

Staff

SET Name = @Name, NIC = @NIC, DOB = @DOB, Sex = @Sex, Address
= @Address, RegDate = @RegDate, PhoneNo = @PhoneNo, BranchID =
@BranchID,

PositionID = @PositionID,

SupervisorID = @SupervisorID,

Password = @Password
WHERE (StaffID = @original_StaffID) AND (Name = @original_Name) AND
(NIC

@original_NIC)

AND

(DOB

@original_DOB)

AND

(Sex

@original_Sex) AND (Address = @original_Address) AND (RegDate =


@original_RegDate) AND (PhoneNo = @original_PhoneNo) AND (BranchID =
@original_BranchID)
(SupervisorID

@original_Password)

AND

(PositionID

@original_SupervisorID)
OR

(StaffID

@original_PositionID)
AND

@original_StaffID)

AND

(Password

AND

(Name

@original_Name) AND (NIC = @original_NIC) AND (DOB = @original_DOB)


AND (Sex = @original_Sex) AND (Address = @original_Address) AND
(RegDate = @original_RegDate) AND (PhoneNo = @original_PhoneNo) AND
(BranchID = @original_BranchID) AND (PositionID = @original_PositionID)
AND (SupervisorID IS NULL) AND (Password = @original_Password) AND
(@original_SupervisorID IS NULL)

ASIAN PACIFIC UNIVERSITY

31

DWDS ASSIGNMENT | Asian Pacific University

Delete Staff Query for staff


DELETE FROM Staff
WHERE

(StaffID = @original_StaffID) AND (Name = @original_Name)

AND (NIC = @original_NIC) AND (DOB = @original_DOB) AND (Sex =


@original_Sex) AND
(Address = @original_Address) AND (RegDate =
@original_RegDate) AND (PhoneNo = @original_PhoneNo) AND (BranchID =
@original_BranchID) AND
(PositionID = @original_PositionID) AND (SupervisorID =
@original_SupervisorID) AND (Password = @original_Password) OR
(StaffID = @original_StaffID) AND (Name =
@original_Name) AND (NIC = @original_NIC) AND (DOB = @original_DOB)
AND (Sex = @original_Sex) AND
(Address = @original_Address) AND (RegDate =
@original_RegDate) AND (PhoneNo = @original_PhoneNo) AND (BranchID =
@original_BranchID) AND
(PositionID = @original_PositionID) AND (SupervisorID IS
NULL) AND (Password = @original_Password) AND (@original_SupervisorID IS
NULL)
Create New Staff
INSERT INTO Staff
(Name, NIC, DOB, Sex, Address, RegDate, PhoneNo,
BranchID, PositionID, SupervisorID, Password)
VALUES

(@Name, @NIC, @DOB, @Sex, @Address, @RegDate,

@PhoneNo, @BranchID, @PositionID, @SupervisorID, @Password)


Select The Last Staff Record

ASIAN PACIFIC UNIVERSITY

32

DWDS ASSIGNMENT | Asian Pacific University

SELECT

StaffID,

Name,

NIC,

DOB,

Sex,

Address,

RegDate,

PhoneNo, BranchID, PositionID, SupervisorID, Password


FROM
WHERE

Staff
(StaffID =
(SELECT

MAX(StaffID) AS Expr1

FROM

Staff AS Staff_1))

Select All Suppliers


SELECT * FROM [Supplier]
Search All Suppliers
Select Supplier Based on Text Box
SELECT * FROM [Supplier] WHERE ([Name] LIKE '%' + @Name + '%')
Select The last Supplier
SELECT
FROM
WHERE

SupID, Name, Address, RegDate, PhoneNo


Supplier
(SupID =
(SELECT

MAX(SupID) AS Expr1

FROM

Supplier AS Supplier_1))

Select the Last member


SELECT

MemID,

Name,

NIC,

DOB,

Sex,

Address,

RegDate,

PhoneNo, Password
FROM
WHERE

Member
(MemID =
(SELECT
FROM

MAX(MemID) AS Expr1
Member AS Member_1))

Update member
ASIAN PACIFIC UNIVERSITY

33

DWDS ASSIGNMENT | Asian Pacific University

UPDATE

Member

SET

Name = @Name, NIC = @NIC, DOB = @DOB, Sex =

@Sex, Address = @Address, RegDate = @RegDate, PhoneNo = @PhoneNo,


Password = @Password
WHERE

(MemID = @MemID)

Delete member
DELETE FROM Member
WHERE

(MemID = @MemID)

Select Member
SELECT

MemID,

Name,

NIC,

DOB,

Sex,

Address,

RegDate,

PhoneNo, Password
FROM
WHERE

Member
(Name LIKE '%' + @Name + '%')

Max DVD
SELECT
FROM
WHERE

DVDID, Name, Category, Year


DVDMaster
(DVDID =
(SELECT

MAX(DVDID) AS MaxDVD

FROM

DVDMaster AS DVDMaster_1))

Edit DVD
UPDATE
SET
WHERE

DVDMaster
Name = @Name, Category = @Category, Year = @Year
(DVDID = @DVDID)

Insert DVD
ASIAN PACIFIC UNIVERSITY

34

DWDS ASSIGNMENT | Asian Pacific University

INSERT INTO DVDMaster


(Name, Category, Year)
VALUES

(@Name, @Category, @Year)

Delete DVD
DELETE FROM [DVDMaster] WHERE [DVDID] = @DVDID

Max DVD Copy


SELECT
FROM
WHERE

CopyID, DVDID, BranchID, Status


DVDCopy
(CopyID =
(SELECT
FROM

MAX(CopyID) AS MAxCopy
DVDCopy AS DVDCopy_1))

Update DVD Copy


UPDATE

DVDCopy

SET

DVDID = @DVDID, BranchID = @BranchID, Status =

@Status
WHERE

(CopyID = @CopyID)

Insert DVD Copy


INSERT INTO DVDCopy
(DVDID, BranchID, Status)
VALUES

(@DVDID, @BranchID, @Status)

Delete DVD Copy


DELETE FROM DVDCopy
WHERE

(CopyID = @CopyID)

ASIAN PACIFIC UNIVERSITY

35

DWDS ASSIGNMENT | Asian Pacific University

Search DVD Copy


SELECT

DVDCopy.CopyID,

DVDMaster.Name,

Branch.BranchID,

Branch.Name AS [Branch Name]


FROM

DVDMaster INNER JOIN


DVDCopy ON DVDMaster.DVDID = DVDCopy.DVDID INNER

JOIN
Branch ON DVDCopy.BranchID = Branch.BranchID
WHERE

(DVDMaster.Name LIKE '%' + @Name + '%')

Select Enquiry
SELECT Enquery AS [Please State your Question in Breif],

MemID AS

[Member ID], EnqID FROM Enquery


New Enquery Member ID 10000
INSERT INTO Enquery(MemID, Enquery) VALUES (10000, @Enquery)

All Enquery with staff name of member 10000


SELECT

Enquery.EnqID,

Enquery.MemID,

Enquery.Enquery,

Enquery.FeedBK AS [Feed Back], Staff.Name AS [Staff Name] FROM Enquery


LEFT

OUTER

JOIN

Staff

ON

Enquery.StaffID

Staff.StaffID

WHERE

(Enquery.MemID = 10000)

Answered Enquiries
SELECT EnqID, MemID, Enquery, FeedBK, StaffID FROM Enquery WHERE
(FeedBK IS NOT NULL)
Update Enquiries
ASIAN PACIFIC UNIVERSITY

36

DWDS ASSIGNMENT | Asian Pacific University

UPDATE [Enquery] SET [MemID] = @MemID,

[Enquery] = @Enquery,

[FeedBK] = @FeedBK, [StaffID] = @StaffID WHERE [EnqID] = @EnqID


Search Rent Details
SELECT

DVDMaster.Name AS [DVD Name],

[Member Name],

Rent.RentDate,

Rent.ReturnDate,

Member.Name AS

Staff.Name AS [Staff

Name]
FROM

Rent INNER JOIN


RentDetail ON Rent.RentID = RentDetail.RentID INNER

JOIN
DVDCopy ON RentDetail.CopyID = DVDCopy.CopyID INNER
JOIN
DVDMaster ON DVDCopy.DVDID = DVDMaster.DVDID
INNER JOIN
Member ON Rent.MemID = Member.MemID INNER JOIN
Staff ON Rent.StaffID = Staff.StaffID
WHERE

(Rent.RentID = @RentID)

Select Branch Name to List in Dropdown Box


SELECT [Name] FROM [Branch]

Select Contact Information Based on Dropdown Box


SELECT [Name], [Address], [PhoneNo] FROM [Branch] WHERE ([Name] =
@Name)

Search All Branches with Managers

ASIAN PACIFIC UNIVERSITY

37

DWDS ASSIGNMENT | Asian Pacific University

SELECT

Branch.BranchID,

Branch.PhoneNo,

Branch.Name,

Staff.Name AS [Manager Name],

Branch.Address,
Staff.PhoneNo AS

[Manager Phone]
FROM

Branch INNER JOIN


Staff ON Branch.BranchID = Staff.BranchID

WHERE

(Branch.Name LIKE '%' + @Name + '%')

Update Branches
UPDATE [Branch] SET [Name] = @Name,

[Address] = @Address,

[PhoneNo] = @PhoneNo WHERE [BranchID] = @BranchID


Insert Branches
INSERT INTO [Branch] ([Name], [Address], [PhoneNo]) VALUES (@Name,
@Address, @PhoneNo)
Delete Branch
DELETE FROM [Branch] WHERE [BranchID] = @BranchID
Select Last Branch
SELECT
FROM
WHERE

BranchID, Name, Address, PhoneNo


Branch
(BranchID =
(SELECT

MAX(BranchID) AS BRN

FROM

Branch AS Branch_1))

Search Order Detail


SELECT
FROM

DVDMaster.Name AS [DVD Name], OrderDetail.Qty


[Order] INNER JOIN
OrderDetail ON [Order].OrderID = OrderDetail.OrderID

INNER JOIN
ASIAN PACIFIC UNIVERSITY

38

DWDS ASSIGNMENT | Asian Pacific University

Supplier ON [Order].SupID = Supplier.SupID INNER JOIN


DVDMaster ON OrderDetail.DVDID = DVDMaster.DVDID
WHERE

([Order].OrderID = @OrderID)

Search Order Details


SELECT

[Order].OrderID,

Supplier.Name AS [Supplier Name],

[Order].Date, [Order].Status
FROM

[Order] INNER JOIN


OrderDetail ON [Order].OrderID = OrderDetail.OrderID

INNER JOIN
Supplier ON [Order].SupID = Supplier.SupID INNER JOIN
DVDMaster ON OrderDetail.DVDID = DVDMaster.DVDID
WHERE

([Order].OrderID = @OrderID)

Search Oder
SELECT * FROM [Order] WHERE ([OrderID] = @OrderID)
Rent Member
SELECT

Rent.RentID,

Member.Name AS [Member Name],

Rent.RentDate, Rent.ReturnDate
FROM

Rent INNER JOIN


Staff ON Rent.StaffID = Staff.StaffID INNER JOIN
Member ON Rent.MemID = Member.MemID

WHERE

(Rent.RentID = @RentID)

Staff Date of Birth Report


SELECT
Staff.PhoneNo,

Staff.Name AS [Staff Name], Staff.DOB AS [Date Of Birth],


Position.Description AS Position,

Branch.Name AS [Branch

Name]

ASIAN PACIFIC UNIVERSITY

39

DWDS ASSIGNMENT | Asian Pacific University

FROM

Staff INNER JOIN


Position ON Staff.PositionID = Position.PositionID INNER

JOIN
Branch ON Staff.BranchID = Branch.BranchID

ASIAN PACIFIC UNIVERSITY

40

DWDS ASSIGNMENT | Asian Pacific University

8. System Screen Shots with brief explanations

8.1.

STAFF MENU

Figure 1 Staff Menu

This is the staff search menu. There are four buttons at the top, whereby
the user is able to input a new staff, search for a staff, edit the details of a
staff and return to the home page. In this search menu, the user will type in

ASIAN PACIFIC UNIVERSITY

41

DWDS ASSIGNMENT | Asian Pacific University

the name of the staff and click search. The results are displayed in a table at
the bottom of the page.

Figure 2 Edit

This is the staff edit menu. The user is able to edit a staffs detail by
searching the staffs ID. In the edit page, information can also be deleted.
The results will appear in a table at the bottom of the page.

ASIAN PACIFIC UNIVERSITY

42

DWDS ASSIGNMENT | Asian Pacific University

Figure 3 Staff New

This is the staff menu to register new staff members. In this page, the
user is able to update the database with information of a new staff member.

ASIAN PACIFIC UNIVERSITY

43

DWDS ASSIGNMENT | Asian Pacific University

8.2.

SUPPLIER MENU

Figure 4 Supplier

This is the supplier search menu. There are four buttons at the top,
whereby the user is able to input a new supplier, search for a supplier, edit
the details of a supplier and return to the home page. In this search menu,
the user will type in the name of the supplier and click search. The results
are displayed in a table at the bottom of the page.

ASIAN PACIFIC UNIVERSITY

44

DWDS ASSIGNMENT | Asian Pacific University

Figure 5 Edit

This is the supplier edit menu. The user is able to edit a suppliers detail
by searching the suppliers ID. In the edit page, information can also be
deleted. The results will appear in a table at the bottom of the page.

ASIAN PACIFIC UNIVERSITY

45

DWDS ASSIGNMENT | Asian Pacific University

Figure 6 Supplier New

This is the supplier menu to register new suppliers. In this page, the user
is able to update the database with information of a new supplier. Once the
registration is done, the name will be in the system towards all of the
branches.

ASIAN PACIFIC UNIVERSITY

46

DWDS ASSIGNMENT | Asian Pacific University

8.3.

MEMBER MENU

Figure 7 Member Menu

This is the member search menu. There are four buttons at the top,
whereby the user is able to input a new member, search for a member, edit
the details of a member and return to the home page. In this search menu,
the user will type in the ID of the member and click search. The results are
displayed in a table at the bottom of the page.

ASIAN PACIFIC UNIVERSITY

47

DWDS ASSIGNMENT | Asian Pacific University

Figure 8 Member Edit

This is the member edit menu. The staff is able to edit a members detail
by searching the members name. In the edit page, information can also be
deleted. The results will appear in a table at the bottom of the page.

ASIAN PACIFIC UNIVERSITY

48

DWDS ASSIGNMENT | Asian Pacific University

Figure 9 Member New

This is the member menu to register new members. In this page, the user
is able to update the database with information of a new member. Whenever,
there is a new member that is registered, it will save into the system towards
all of the branches.

ASIAN PACIFIC UNIVERSITY

49

DWDS ASSIGNMENT | Asian Pacific University

8.4.

DVD MASTER MENU

Figure 10 DVD Master Search

This is the DVD master search menu. There are four buttons at the top,
whereby the user is able to input a new DVD, search for a DVD, edit the
details of a DVD and return to the home page. In this search menu, the user
will type in the name of the DVD and click search. The results are displayed
in a table at the bottom of the page.

ASIAN PACIFIC UNIVERSITY

50

DWDS ASSIGNMENT | Asian Pacific University

Figure 11 DVD Master Edit

This is the DVD master edit menu. The user is able to edit a DVDs detail
by searching the DVDs ID. In the edit page, information can also be deleted.
The results will appear in a table at the bottom of the page.

ASIAN PACIFIC UNIVERSITY

51

DWDS ASSIGNMENT | Asian Pacific University

Figure 12 DVD Master New

This is the DVD master menu to register new DVDs. In this page, the user
is able to update the database with information of a new DVD.

ASIAN PACIFIC UNIVERSITY

52

DWDS ASSIGNMENT | Asian Pacific University

DVD COPY MENU

Figure 13 DVD New

This is the DVD copy search menu. There are four buttons at the top,
whereby the user is able to input a new duplicate DVD, search for a duplicate
DVD, edit the details of a duplicate DVD and return to the home page. In this
search menu, the user will type in the name of the DVD and click search. The
results of duplicate DVDs are displayed in a table at the bottom of the page.

ASIAN PACIFIC UNIVERSITY

53

DWDS ASSIGNMENT | Asian Pacific University

Figure 14 DVD Edit

This is the DVD copy edit menu. The user is able to edit a duplicate DVDs
detail by searching the duplicate DVDs ID. In the edit page, information can
also be deleted. The results will appear in a table at the bottom of the page.

ASIAN PACIFIC UNIVERSITY

54

DWDS ASSIGNMENT | Asian Pacific University

Figure 15 DVD New

This is the DVD copy menu to register new duplicate DVDs. In this page,
the user is able to update the database with information of a new duplicate
DVD.

ASIAN PACIFIC UNIVERSITY

55

DWDS ASSIGNMENT | Asian Pacific University

8.5.

Rental

Figure 16 Rent New

To Create a new rental key in the reservation ID which is provided by the member
and change the status to Processed so that it will be marked as processed and
rented

ASIAN PACIFIC UNIVERSITY

56

DWDS ASSIGNMENT | Asian Pacific University

Figure 17 Return DVD

This screen is about returning DVD. Enter the Rent ID and key in the Return Date for
the entry.

ASIAN PACIFIC UNIVERSITY

57

DWDS ASSIGNMENT | Asian Pacific University

Figure 18 Search Rent

Search Rent allows to search by rent ID

ASIAN PACIFIC UNIVERSITY

58

DWDS ASSIGNMENT | Asian Pacific University

Figure 19 Edit Rent

To edit a rent key in the rent id and the detail will be displayed below.
Once its displayed edit the entries. But to delete the entry the user will have
to delete all the detail below before delete in the rent.

ASIAN PACIFIC UNIVERSITY

59

DWDS ASSIGNMENT | Asian Pacific University

8.6.

Login Screen

Figure 20 Customer Login

Member default menu

ASIAN PACIFIC UNIVERSITY

60

DWDS ASSIGNMENT | Asian Pacific University

Figure 21 Staff Login

The staff default page for the system.

ASIAN PACIFIC UNIVERSITY

61

DWDS ASSIGNMENT | Asian Pacific University

8.7.

Branch

Figure 22 Branch New

Click new and add the new branch id details.

ASIAN PACIFIC UNIVERSITY

62

DWDS ASSIGNMENT | Asian Pacific University

Figure 23 Search By Name

Search branch by the branch name

ASIAN PACIFIC UNIVERSITY

63

DWDS ASSIGNMENT | Asian Pacific University

Figure 24 Edit Branch

Edit branch detail by the staff

ASIAN PACIFIC UNIVERSITY

64

DWDS ASSIGNMENT | Asian Pacific University

Figure 25 Order Menu

Select new order and add the new order header details and then add the order
details and will be listed below in a grid

ASIAN PACIFIC UNIVERSITY

65

DWDS ASSIGNMENT | Asian Pacific University

Figure 26 Order Search

View Order Search by entering the Order ID

ASIAN PACIFIC UNIVERSITY

66

DWDS ASSIGNMENT | Asian Pacific University

Figure 27 Edit Order

This menu allow to edit the order details.

ASIAN PACIFIC UNIVERSITY

67

DWDS ASSIGNMENT | Asian Pacific University

8.8.

Enquiries

Unanswered question will be displayed at the above grid and once


answered it will be displayed at the bottom grid. To answer click edit and
enter the feedback with staff id

ASIAN PACIFIC UNIVERSITY

68

DWDS ASSIGNMENT | Asian Pacific University

Figure 28 Enter New Question

Customer Enters new question on the above screen and click insert which will be
displayed by the staff and answered. The status can checked for the status button.

Figure 29 Customer Enter Enquiry

Here customer can list all the question which they have asked.

ASIAN PACIFIC UNIVERSITY

69

DWDS ASSIGNMENT | Asian Pacific University

8.9.

Customer Browser Screen

Figure 30 Browser Movies

Customer can browser for the DVD from this screen at the top right is the search
field box.

ASIAN PACIFIC UNIVERSITY

70

DWDS ASSIGNMENT | Asian Pacific University

Figure 31 Add Reservation

To make a reservation member first create a reservation number and add the DVD
which he required to the reservation. Once added it will be displayed in a grid below.

ASIAN PACIFIC UNIVERSITY

71

DWDS ASSIGNMENT | Asian Pacific University

9. Workload Matrix

Workd

BENJAMIN
LEONG KIAN JIN
(TP019597)

IBRAHIM IRUFAN
MERVYN
(TP031779)
HOW KEAN YIP
(TP025423)

Introduction

33.33

33.33

33.33

ER Modeling

33.33

33.33

33.33

Business Rules

33.33

33.33

33.33

Normalization Process

33.33

33.33

33.33

Data Schema

33.33

33.33

33.33

Data Dictionary

33.33

33.33

33.33

SQL Dictionary

33.33

33.33

33.33

System Screen Shots

33.33

33.33

33.33

ASIAN PACIFIC UNIVERSITY

72

DWDS ASSIGNMENT | Asian Pacific University

10.

References

Alohatechsupport.net. 2013. Image Menu with Jquery - Design Tips & Techniques - Maui Blog.
[online] Available at: http://www.alohatechsupport.net/webdesignmaui/maui-web-sitedesign/create_image_menu_with_jquery.html [Accessed: 01 Sep 2013].
Cinemas, G. 2013. Golden Screen Cinemas ::. [online] Available at: http://www.gsc.com.my/
[Accessed: 1 Sep 2013].
Haahr, M. 2013. RANDOM.ORG - List Randomizer. [online] Available at:
http://www.random.org/lists/ [Accessed: 02 Sep 2013].
Imdb.com. 2013. IMDb - Movies, TV and Celebrities. [online] Available at:
http://www.imdb.com/ [Accessed: 15 Aug 2013].
Listofrandomnames.com. 2013. List of Random Names. [online] Available at:
http://listofrandomnames.com/index.cfm?textarea [Accessed: 7 Sep 2013].
Lou, M., Lou, M. and Lou, M. 2010. Awesome Cufonized Fly-out Menu with jQuery and CSS3 |
Codrops. [online] Available at: http://tympanus.net/codrops/2010/06/28/awesomecufonized-fly-out-menu/ [Accessed: 29 Aug 2013].

ASIAN PACIFIC UNIVERSITY

73

Potrebbero piacerti anche