Docsity

Web Enabled Stock Management System-Computer Sciences Applications-Project Report, Study Guides, Projects, Research of Applications of Computer Sciences

Toggle sidebar
bg1
Contents
Certificate of Approval .................................................................................................................................. 2
List of Tables ................................................................................................................................................. 5
List of Figures ................................................................................................................................................ 6
1 Introduction .......................................................................................................................................... 7
2 Division of Work .................................................................................................................................... 7
3 Project Schedule ................................................................................................................................... 8
4 Life Cycle ............................................................................................................................................... 9
5 Previous Work ....................................................................................................................................... 9
6 Relational Model ................................................................................................................................. 10
6.1 Properties of Relational Table ..................................................................................................... 10
6.2 Features of Relational Table ....................................................................................................... 11
7 Transforming ER Diagram into Relations ............................................................................................ 11
7.1 Mapping Entities to Relations ................................................................................................... 11
7.1.1 User Relation ....................................................................................................................... 12
7.1.2 Employee Relation .............................................................................................................. 12
7.1.3 Item Relation ....................................................................................................................... 12
7.1.4 Category Relation ................................................................................................................ 12
7.1.5 Quantity Relation ................................................................................................................ 13
7.1.6 Voucher Relation ................................................................................................................. 13
7.2 Transforming Relationships ........................................................................................................ 13
7.2.1 User-Voucher Relationship ................................................................................................. 13
7.2.2 Employee-Voucher Relationship ......................................................................................... 14
7.2.3 Item-Quantity Relationship ................................................................................................. 14
7.2.4 User-Item Relationship ....................................................................................................... 15
7.2.5 Item-Category Relationship ................................................................................................ 15
8 Normalization ...................................................................................................................................... 16
8.1 First Normal Form ....................................................................................................................... 16
8.2 Second Normal Form .................................................................................................................. 16
8.3 Third Normal Form ...................................................................................................................... 17
9 Revised ERD......................................................................................................................................... 17
10 Conclusion ....................................................................................................................................... 19
docsity.com
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12

Partial preview of the text

Download Web Enabled Stock Management System-Computer Sciences Applications-Project Report and more Study Guides, Projects, Research Applications of Computer Sciences in PDF only on Docsity!

Contents

  • Certificate of Approval
  • List of Tables
  • List of Figures
  • 1 Introduction
  • 2 Division of Work
  • 3 Project Schedule
  • 4 Life Cycle
  • 5 Previous Work
  • 6 Relational Model
    • 6.1 Properties of Relational Table.....................................................................................................
    • 6.2 Features of Relational Table
  • 7 Transforming ER Diagram into Relations
    • 7.1 Mapping Entities to Relations
      • 7.1.1 User Relation
      • 7.1.2 Employee Relation
      • 7.1.3 Item Relation
      • 7.1.4 Category Relation
      • 7.1.5 Quantity Relation
      • 7.1.6 Voucher Relation.................................................................................................................
    • 7.2 Transforming Relationships
      • 7.2.1 User-Voucher Relationship
      • 7.2.2 Employee-Voucher Relationship
      • 7.2.3 Item-Quantity Relationship.................................................................................................
      • 7.2.4 User-Item Relationship
      • 7.2.5 Item-Category Relationship
  • 8 Normalization......................................................................................................................................
    • 8.1 First Normal Form
    • 8.2 Second Normal Form
    • 8.3 Third Normal Form
  • 9 Revised ERD.........................................................................................................................................
  • 10 Conclusion
  • 11 Future Work
  • References
  • Table 2-1 Work Division List of Tables
  • Table 7-1 User
  • Table 7-2 Employee.....................................................................................................................................
  • Table 7-3 Item
  • Table 7-4 Category
  • Table 7-5 Quantity
  • Table 7-6 Voucher
  • Table 7-7 User-Voucher Relation
  • Table 7-8 Employee-Voucher Relation
  • Table 7-9 Item-Quantity Relation
  • Table 7-10 User-Item Relation
  • Table 7-11 Item-Category Relation
  • Figure 3-1 Gantt chart List of Figures
  • Figure 4-1 Waterfall Life Cycle [1]
  • 5-1 ER Diagram............................................................................................................................................
  • Figure 9-1 Revised ERD

1 Introduction

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.

2 Division of Work

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

4 Life Cycle

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]

5 Previous Work

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

6 Relational Model

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.

6.1 Properties of Relational 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

7.2 Transforming Relationships

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

8 Normalization

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.

8.1 First Normal Form

 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

8.2 Second Normal Form

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

10 Conclusion

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.

11 Future Work

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.