










Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!











Web Enabled Stock Management System is an information system developed to enhance the functionalities of the store i.e. issue, return or exchange of an item that user demands. User can easily perform these actions. Beside user the management of the store is also improved. All the details of the item are easily available to the user as well as to the store employees.
This part of the report gives the details about the database design of the Web Enabled Stock Management System. It includes the Relational model of the Web Enabled Stock Management System.
Due to the nature and timescale of this project it is necessary to manage the project effectively. As objectives and deliverables have been documented, the project can be broken down into a set of manageable tasks, allowing the project to be completed in a given time. The distribution of the work is as follow:
Table 2-1 Work Division Activity Semester Overlapped Activity Back ground study Semester 6
Progress Reporting
SRS document and Project Plan Getting required information for the future needs
Summer Vacations
Design documents Semester 7 Normalization of database Implementation of database Web application development Semester 8 Integration of web application & database
Waterfall life cycle is used in the project. Design and Architecture phase is under progress. In this phase mainly work is to build a design of the information system.
Figure 4-1 Waterfall Life Cycle [1]
In the previous midterm report the details about the database design of the Web Enabled Stock Management System is provided. It includes the Use Cases along with their detail, Activity Diagrams that shows the action performed in the system, Logical database design and ERD model. The ER model was
Employee
Employee_Id
Employee_Name
Employee_Email
Employee_Job_Title
Employee_Password
User
User_Id
User_Name
User_CNo User_Desig
User_Dept
Item
Issues
Quantity_Prev
Quantity_Added
Quantity_New
Category_Name
Category_Type
Item_Id Item_Des Item_Name
Voucher
Voucher_Id
VoucherStatus Employee_Id
User_Id
Qty_Issue (^) Remarks
Receives Submitts
Quantity Has Has Category
Item_Id
Quantity_Id
Category_Id
Category_Id
VoucherType
User_ Email
5-1 ER Diagram
The relational model used the basic concept of a relation or table. The table is consists of rows that represent records, and column represents attribute or field. A row contains all the data of a single instance of the table.
The requirements for a table to qualify as a relation are
It must have a unique name. Every attribute value must be atomic (not multivalued, not composite)
7.1.1 User Relation
There is no multivalued or composite attribute in the user entity. Here Primary key is User_Id. So the relation formed from User the entity is
Table 7-1 User User_Id User_Name User_CNo User_Dept User_Designation User_Email
7.1.2 Employee Relation
There is no multivalued or composite attribute in the user entity.. Here Primary key is Employee_Id. So the relation formed from the Employee entity is
Table 7-2 Employee Employee_Id Employee_Name Employee_CNo Employee_Job_Title Employee_Email
7.1.3 Item Relation
There is no multivalued or composite attribute in the user entity.. Here Primary key is Item_Id and Foreign key is Quantity_Id. So the relation formed from the Item entity is
Table 7-3 Item Item_Id Item_Name Item_Description
7.1.4 Category Relation
There is no multivalued or composite attribute in the user entity.. Here Primary key is Category_Id and Foreign key is Item_Id. So the relation formed from the Category entity is
Table 7-4 Category Category_Id Category_Name Category_Type Item_Id
7.1.5 Quantity Relation
There is no multivalued or composite attribute in the user entity.. Here Primary key is Quantity_Id. So the relation formed from the Quantity entity is
Table 7-5 Quantity Quantity_Id Quantity_New Quantity_Prev Quantity_Added Item_Id
7.1.6 Voucher Relation
There is no multivalued or composite attribute in the user entity.. Here Primary key is Voucher_Id and Foreign key is User_Id and Quantity_Id. So the relation formed from the Voucher entity is
Table 7-6 Voucher Voucher_Id Qty_Issue VoucherType Remarks User__Id Employee_Id
Relationships are transformed in to relations. And it depends upon the cardinality i.e. 1:1, 1: M or M: M of the relationship and their types i.e. unary or Binary.
7.2.1 User-Voucher Relationship User submits Voucher is a binary relationship and cardinality is one to many. When it is mapped to the relation Primary key on the one side becomes a foreign key on the many side.
Table 7-9 Item-Quantity Relation Item_Id Item_Name Item_Des
Quantity_Id Quantity_New Quantity_Prev Quantity_Added Item_Id
7.2.4 User-Item Relationship
User issues items. This is a binary relationship and many to much cardinality. It is mapped to relational model by creating a new relation with the primary keys of the two entities as its primary key. The new relation that is formed is issue.
Table 7-10 User-Item Relation User_Id User_Name User_CNo User_Dept User_Desig
Item_Id User_Id Date
Item_Id Item_Name Item_Des Quantity_Id
7.2.5 Item-Category Relationship
Item belongs to a category is a one to one relation ship. In order to change it in the relation Primary key on the mandatory side becomes a foreign key on the optional side.
Table 7-11 Item-Category Relation Item_Id Item_Name Item_Des
Category_Id Category_Name Category_Type Item_Id
Normalization is a process for insuring well structured relations (tables.) It is the process used to assign attributes to entities. These attributes will transform into column names and the entities will transform into relations. Normalization reduces data redundancies and helps eliminate data anomalies. There are levels of normalization that are referred to as first normal form (1NF), second normal form (2NF) and third normal form (3NF) and higher normal forms but the first three are generally that are applied.
All the key attributes are defined There are no repeating groups in the entity. In other words, each row/column intersection can contain one and only one value, not a set of values. All attributes are dependent on the primary key All the other relations are in the 1NF except the Quantity relation. The attribute in the Quantity table Quantity_New and Quantity_Prev are changes into Total_Quantity, because here values are repeated. New relation is
Quantity_Id Total_Quantity Quantity_Added Item_Id
The main features of the 2NF is
Employee
Employee_Id
Employee_Name
Employee_Email
Employee_Job_Title
Employee_Password
User
User_Id
User_Name
User_CNo User_Desig
User_Dept
Item
Issues
TotalQuantity
Quantity_Added
Category_Name
Category_Type
Item_Id Item_Des Item_Name
Voucher
Voucher_Id Employee_Id
User_Id
Qty_Issue Remarks
Receives Submits
Quantity Has Has Category
Item_Id
Quantity_Id
Category_Id
Category_Id
VoucherType
User_ Email
Figure 9-1 Revised ERD
Since an ERD represents a relational model schema, normalization improves the modeling effort thereby facilitating a better fit with organizational working. It removes the repetitions and other anomalies from the database. Normalization is a data analysis methodology that organizes data attributes such that they are grouped together to form simple, non redundant, flexible, and adaptive entities. After the normalization next step is to implement the database using a tool.
The implementation of the database will be carried using SQL. Then graphical user interfaces are formed and linked with the database. Afterwards development of the project will start.