Database and Web Database Systems - Call Center Management System
Database and Web Database Systems - Call Center Management System
First of all, I owe my deepest gratitude to my database and web database systems
lecturer Mr.Thangavel Saravanan, whose encouragement, guidance and support from
the beginning to the final stages enabled me to develop an understating of the database
systems and web programming.
Finally I thank you for all who supported during the completion of the project.
1
Table of contents
Assumptions......................................................................................................................3
ER Diagram.......................................................................................................................4
Database functions............................................................................................................7
Rules...............................................................................................................................7
Stored Procedures.........................................................................................................8
Triggers........................................................................................................................11
Views............................................................................................................................12
Screen Design.................................................................................................................13
DDL Statements..............................................................................................................21
References.......................................................................................................................27
2
Assumptions
Specialist does not need any caller’s information to solve the problem only problem
details and equipment details are required. (Caller information is encapsulated from
the specialist).
Every equipment is belongs to an equipment type and that equipment type has a
specified problem category.
One problem belongs to only one problem type and there can be more than one
solution for that problem type
3
ER Diagram
4
Normalization
Un Normalized form
Problem
(ProblemID,CalllogID,Date,Time,CallerID,DepID,ProblemCatogory,ProblemType,Assign
ed_Specalist_ID,Comments,Solution Description )
Calllog(Call_ID,Caller_ID,Name,Department,Problem_ID,Operator_ID,Date,Time,Probl
em_count)
Problem
(ProblemID,CalllogID,Date,Time,CallerID,DepID,Problem_Catogory,Problem_Type,Assi
gned_Specalist_ID,Comments,Solution Description )
Department(Department_ID,Name,Number_of_emp)
Equiment_Type(Equipment_Type_ID,Desc)
Manufacturer(Manifactuer_ID,Name)
5
Calllog(Call_ID,Caller_ID,Name,
DepartmentID,Problem_ID,Operator_ID,Date,Time,Problem_count)
Problem_Catogory(Catolory_ID,Desc,Equipement_Type)
Problem_Type(Problem_Type,Desc, Catolory_ID)
,Problem_Catogory,Problem_Type,Assigned_Specalist_ID,Comments,)
Department(Department_ID,Name,Number_of_emp)
Equiment_Type(Equipment_Type_ID,Desc)
Manufacturer(Manifactuer_ID,Name)
Calllog(Call_ID,Caller_ID,Name,DepartmentID,Problem_ID,Operator_ID,Date,Time,Pro
blem_count)
Caller(Caller_ID,Name,DepartmentID)
6
Problem_Catogory(Catolory_ID,Desc,Equipement_Type)
Problem_Type(Problem_Type,Desc, Catolory_ID)
Database functions
Rules
SQL rules are created to restrict the user input values to selected columns for example
the operator ID should start with ‘OP’ if not data cannot be inserted. The following table
shows the rules which are used in this database.
Name Purpose
Adminstrator’s ID always starts with
AdministratorID
ADMIN and increment the numeric value
Operator ID always start with OP and
OperatorID
increment the numeric value
SpecialistID Specialist ID always start with SP and
7
increment the numeric value
Table 2 – SQL user defined data types
Stored Procedures
Parameters
Name Purpose
IN OUT
Assign_Specialist Assign a Problem ID Assigned
specific specialist
specialist to a ID
problem
fowardProblem Forward the Problem ID Newly
problem to a assigned
another specialist
specialist ID
getCalllogBYID Get the calllog Calllog ID CallLog
by calllog ID
8
geteqibyID Get equipment Equipment ID Equipment
information by details
ID
9
details which
belongs to a
equipment
getSpecalistByID Get specialist Specialist ID
details by
specialist ID
newCaller Create a new Caller details
caller
10
Triggers
Table 4– Triggers
11
Views
12
Screen Design
Login Screen
13
Operator Main Screen
14
New Troubleshooting
15
Common Solutions
16
Troubleshooting Status
17
Assigned specialist
18
Specialist problem view
19
New Solution
20
DDL Statements
Stored procedures
Stored
varchar(50)
AS
21
ALTER proc [dbo].[newsolution] @solution varchar(50),@problem_id
int,@specalist varchar(10)
AS
SELECT * FROM
ALTER procDepartment WHERE depID=(SELECT
[dbo].[getinfoByProblemID] depID
@problem_id int FROM
as
Gerinfo
22
23
Triggers
FOR INSERT,UPDATE,DELETE
AS
SELECT @caller_id=DepIDTable
FROM inserted
5– DDL for triggers
References
24