Informatics College Pokhara: Information Systems CC4002NP
Informatics College Pokhara: Information Systems CC4002NP
Information Systems
CC4002NP
Coursework 3
Introduction
This proposal explains the purpose, audience, problems, aims and objectives of
the project. The project is about a database management system. The database is
about a kennel club known as “Pokhara Kennel Club”. The kennel club is all about
selling dogs and its accessories. So, the database is made to store the data about the
dogs, customer, suppliers, employees etc. The program is written on the Xampp control
panel and MySQL which provides a good way of data storage.
Purpose
In a paper based management system an organization can face many
problems regarding recording and storage of data. Pokhara kennel club
requires to store a lot of data about dogs, customers, suppliers and many
more. So a database is needed to be developed in order to avoid
problems from paper based management system and storing data with
more accuracy and systematic way.
Problem Statement
An organization can face many problems developing database in improper
way in paper management system. It may consume more time. There may
be mistakes while managing the data unknowingly. Once made mistakes
are almost impossible to find in paper management system. So, the
project has the aim to solve the problem by replacing paper based
management system with computer based management system bringing
simplicity, efficiency and accuracy in data management by saving more
time.
Aims and objectives
The important aim of this project is to focus on the database management
system of the kennel club and solve each and every problems of it. The
problems that we face in database management of kennel club like time
are needed to be solved. This project has the aim to solve different
problems of the kennel club and provide efficiency and simplicity to record
the data about everything creating a database regarding the kennel club.
Hence, we need to create a data model for the kennel club named
“Pokhara Kennel Club”.
Proposed approach
To solve each and every problems and complete the project or
coursework in time following approaches will be taken:
Deep research on database will be done.
Datas and information about the Kennel club will be taken.
I will develop the suitable data model for the organization
The Relational diagram and Entity-Relation diagram will be drawn for the
data model.
Data dictionary for all tables of database will be prepared.
Database will be created using MySQL.
Different queries will be applied in the created database.
Target audience
The target audience of this project is any kennel club or any other small or
good organization wanting to implement computer based database
management system. This project would also help the students studying
about the database management system.
Hardware and software requirements
Well there are no special hardware requirements as we only need a laptop
to run the software required for database management and creating
database. But we need many softwares for the project. XAMPP PHP must
be installed in our operating system which works as local Apache web
server bundled with MySQL and PHP. We need Microsoft Word and
Microsoft Visio to prepare the report.
Activity description and timeline
Mar 2019
ID Task Name Start Finish Duration
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
XAMPP .................................................................................................................. 3
Normalization ........................................................................................................ 5
Table creation...................................................................................................... 16
6. Query ...................................................................................................................... 23
7. Research ................................................................................................................ 29
8. Conclusion .............................................................................................................. 39
9. Bibliography ............................................................................................................ 40
Table of Figures
1. Introduction
Pokhara Kennel Club is a business related organization that handles the
trading of dogs and its accessories. There should be proper records of the
stock or dogs, customers, orders and suppliers in the organization. Kennel
club needs to record the information about the dogs and materials they
imported and sold. This might get difficult in a paper management system.
My project of creating database of kennel club helps in the database
management of the following related organization.
“Pokhara kennel club” is situated in Newroad, Pokhara. It was established
in 2015 A.D. with a goal to provide proper dog services to people. It is a
profit oriented business organization dealing with selling and buying
different breeds of dogs. The price of dogs here ranges from 3000 rupees
to 25000 rupees. It provides the best quality dogs to pet in Pokhara.
Established with the investment of about 10 lakhs the business has grown
now and become worth around 30 lakhs. Kennel club being a good
organization I chose it for my project.
The project is to develop the database for the kennel club which could
keep the records about different information in table. It would help to gain
about any records or data in accurate and efficient way. A deep research
on the organization and database related to the organization was done
before starting this project. This project would be helpful to provide idea
about database of the kennel club and the organizations similar to this.
Pokhara Kennel Club is one of the biggest kennel club which needs to
handle their data properly. So a computer based database management
system is best suited to them.
The project would help the “Pokhara Kennel Club” in various ways. For
any organization which requires handling lots of customer, products,
orders and supplier may think as computerized database management
system as best for them. Also in the database can handle the data or
information about every employees too. Every information regarding the
Rohit Shrestha 1
CC4002NP Information Systems
kennel club like customers, orders, dogs, employees, etc. can be stored in
the created database. The database makes the data easier to handle.
They can be retrieved, updated and deleted when needed with a lot more
accuracy, efficiency and easily consuming less time. Hence, a good
organization having a lot of data can accept the database management
system.
So, our project would give the basic idea about the computerized
database management system about the kennel club or any other
organization and would provide the faster and easier way.
Rohit Shrestha 2
CC4002NP Information Systems
XAMPP
Microsoft Word
Rohit Shrestha 3
CC4002NP Information Systems
Microsoft Visio
Rohit Shrestha 4
CC4002NP Information Systems
3. Data Model
Data models define how the logical structure of a database is modeled.
Data Models are fundamental entities to introduce abstraction in a DBMS.
Data models define how data is connected to each other and how they are
processed and stored inside the system. (Tutorialspoint, 2018) Data
models are fundamental entities to introduce abstraction in DBMS. It
describes the relationships between the various parts of the data.
In the database I created known as “Pokhara_Kennel” there are five
tables. They are Dogs, Employees, Customer, Order and Suppliers. The
relationship, data and entities of the tables are described by the data
model.
Normalization
Rohit Shrestha 5
CC4002NP Information Systems
Entity-Relationship Diagram
Name EmployeeID
Post
Salary
Contact
Employees
Breed Gender
Price
PetID
AgeInMnths
Dogs
deals
CustomerID ContactNo
PetID
provides
Address
SupplierID
gives PetId
Suppliers
OrderID PetNo
Name PhoneNo
Date
Orders
CustomerNo
ContactNo
Rohit Shrestha 6
CC4002NP Information Systems
Rohit Shrestha 7
CC4002NP Information Systems
Relational diagram
Employees
PK EmployeeID
Dogs
Name
PK PetID
Post
Breed
Contact
Orders Gender
Salary
PK OrderID AgeInMnths
FK CustomerNO Price
Customer
FK PetNo
PK CustomerID
Date
ContactNo FK PetID
Suppliers
Name
PK SupplierID
Address
Name
ContactNo
FK PetId
PhoneNo
Rohit Shrestha 8
CC4002NP Information Systems
The following relational model describes the relation between the table as
following relationships:
One to one Relationship: Any two tables are said to have one to
one relationship if a single record in the first table is related to only
one record in the second table, and a single record in the second
table is related to only one record in the first table.
One to many Relationship: Any two tables are said to have one to
many relationship if a single record in the first table can be related
to one or more records in the second table, but a single record in
the second table can be related to only one record in the first table.
Many to many Relationship: Any two tables are said to have
many to many relationship if a single record in the first table can be
related to one or more records in the second table and a single
record in the second table can be related to one or more records in
the first table.
In above relational model, Employees and Customer has one to
one relation as one Employee deals with only one customer.
Customer has one to many relationship with Orders as one
customer can give many orders. Customer has one to many
relationship with Dogs as one customer can buy many dogs.
Suppliers has one to many relationship with dogs as one supplier
can supply many dogs to the organization.
Rohit Shrestha 9
CC4002NP Information Systems
4. Data dictionary
A data dictionary is a file or a set of files that contains a database's
metadata. The data dictionary contains records about other objects in the
database, such as data ownership, data relationships to other objects, and other
data.The data dictionary is a crucial component of any relational database.
Ironically, because of its importance, it is invisible to most database users.
Typically, only database administrators interact with the data dictionary.
(Techopedia, 2018) It is the set of information which is responsible to describe
the contents, formats and structure of a database and the relationship between
its elements.
Rohit Shrestha 10
CC4002NP Information Systems
The data dictionary of each and every table of the database “Pokhara_Kennel”
are described below:
PetID: It has the data type of integer with field size 11. It is the primary key
of the table Dogs.
Breed: It has the data type varchar and has the field size 30. It can‟t be
null and represents the breed of the dogs.
Gender: It has the data type varchar with field size 10. It can‟t be left
empty and represents the gender of the dog.
AgeInMnths: It has the data type float which represents the age of dogs in
months.
Rohit Shrestha 11
CC4002NP Information Systems
Price: It has the data type integer with the field size 11. It shows the price
of the dogs.
Name: It has the data type of varchar with field size 60. It shows the name
of the customer.
CustomerID: Name: It has the data type of integer with field size 11. It is
the primary key in the table.
PetID: Name: It has the data type of integer with field size 11. It is the
foreign key in the table
Rohit Shrestha 12
CC4002NP Information Systems
Address: Name: It has the data type of varchar with field size 60. It shows
the address of the customer.
ContactNo: Name: It has the data type of varchar with field size 10. It
shows the contact number of the customer.
Name: It has the data type varchar with field size 60. It shows the name of
the employee.
EmployeeID: It has the data type integer with field size 11. It is the primary
key for the table.
Post: It has the data type varchar with field size 30. It shows the post or
position of the employee.
Rohit Shrestha 13
CC4002NP Information Systems
Contact: It has the data type varchar with field size 10. It shows the
contact number of the employee and is the unique key of the table.
Salary: It has the data type integer with field size 11. It shows the salary of
the employee.
SupplierID: It has the data type integer and field size 11. It is the primary
key for the table Suppliers.
Name: It has the data type varchar and field size 60. It shows the name of
the supplier in the table.
PetId: It has the data type integer and field size 11. It is the foreign key for
the table Suppliers.
PhoneNo: It has the data type varchar and field size 10. It is the unique
key for the table Suppliers and shows the contact number of the suppliers.
Rohit Shrestha 14
CC4002NP Information Systems
OrderID: It has the data type integer and field size 11. It is the primary key
in the table.
PetNo: It has the data type integer and field size 11. It is the foreign key in
the table and refers to the ID of dog ordered.
CustomerNo: It has the data type integer and field size 11. It is the foreign
key in the table and shows the ID of the customer.
Date: It is the date of order given and can‟t be null.
ConactNo: It has the data type varchar and field size 10. It shows the
contact number of the orderer.
Rohit Shrestha 15
CC4002NP Information Systems
5. Database design
Table creation
Rohit Shrestha 16
CC4002NP Information Systems
Rohit Shrestha 17
CC4002NP Information Systems
Rohit Shrestha 18
CC4002NP Information Systems
Rohit Shrestha 19
CC4002NP Information Systems
Rohit Shrestha 20
CC4002NP Information Systems
Rohit Shrestha 21
CC4002NP Information Systems
6. Query
Rohit Shrestha 23
CC4002NP Information Systems
Max query: The max query in mysql is used to find the maximum value of
certain column or expression. This query is useful to determine the largest
of all selected values of a column.
Order by query: The order by query is used to sort the data in descending
order or ascending order based on one or more columns.
Rohit Shrestha 24
CC4002NP Information Systems
Like query: Like query is used with where clause to search for a specified
pattern in a column. The like operators are % and _.
Sum query: The sum query is used to sum the set of all values. It ignores
the null value.
Rohit Shrestha 25
CC4002NP Information Systems
Between query: Between query is used to select the values within a given
range. The values can be numbers, text or dates.
Rohit Shrestha 26
CC4002NP Information Systems
Inner Join: The inner join selects all the rows from the tables as long as
there is a match between the columns of two tables.
Limit query: Limit query is useful to limit the number of rows that are
returned from any SQL query.
Rohit Shrestha 27
CC4002NP Information Systems
Rohit Shrestha 28
CC4002NP Information Systems
7. Research
Various researches were done in order from different sites, books and
journals in order to finish the project with success and time. Some of the
researches that I did to complete this coursework are given below:
https://en.wikipedia.org/wiki/XAMPP
Rohit Shrestha 29
CC4002NP Information Systems
https://www.tutorialspoint.com/dbms/dbms_data_models.htm
Rohit Shrestha 30
CC4002NP Information Systems
https://beginnersbook.com/2015/04/e-r-model-in-dbms/
Rohit Shrestha 31
CC4002NP Information Systems
https://www.geeksforgeeks.org/database-normalization-normal-
forms/
https://www.techopedia.com/definition/27752/data-dictionary
Rohit Shrestha 32
CC4002NP Information Systems
Rohit Shrestha 33
CC4002NP Information Systems
the database designs, keys and many key terms used in making
and implementing the database.
Rohit Shrestha 34
CC4002NP Information Systems
Rohit Shrestha 35
CC4002NP Information Systems
Database Journal
Hasi‟s Journal
Rohit Shrestha 36
CC4002NP Information Systems
The Hasi‟s Journal helped me to get the ideas about the Xampp
control panel. It also had a lot of information about the database
Rohit Shrestha 37
CC4002NP Information Systems
The above journal had each and every information about the
database system. It also helped with data modeling in the
coursework.
Rohit Shrestha 38
CC4002NP Information Systems
8. Conclusion
Our coursework was completely related to database management system.
We were given to choose an organization for the management of their database.
So, I chose a kennel club known as „Pokhara Kennel Club‟. The organization was
about trading the dogs as pet. The organization was a profit oriented medium
scale organization. Hence I chose this organization as it was perfect for our
database project. So the aim of the project was to create a database for the
Pokhara Kennel Club that could store the data and information related to it.
I faced many problems when doing the project. Lack of research and lack
of knowledge was the main problem in the beginning of the coursework. I took
help from my classmates, module leader and did a great research about
database to come over those problems. Database is the record of all the data
and information stored properly. The management of those data is called the
database management system. Computerized database system is very important
as every information in organization is important and it‟s difficult to keep records
in data. MySQL is one of the best languages to use for the database
management. The ease of using it was making the coursework a little easier.
From the coursework we learned about the database, data mode, database
designing and the relationship which should be between the data in the
database.
Rohit Shrestha 39
CC4002NP Information Systems
9. Bibliography
BeginnersBook. (2018). https://beginnersbook.com/2015/04/e-r-model-in-dbms/
https://www.techopedia.com/definition/5736/query
https://www.techopedia.com/definition/3840/microsoft-word
https://en.wikipedia.org/wiki/Microsoft_Visio
https://en.wikipedia.org/wiki/Relational_model
Rohit Shrestha 40