Professional Documents
Culture Documents
PROJECT REPORT
Submitted by
1
1 Introduction
A Computer store needs a management system to manage it’s inventory. So, we are proposing a computer store
management system using pl/sql.
• Dhanmondi Branch.
3.2 Tables
• Product: product(pid, name, catagory, branch).
2
4 Database Links
In order to create the database links we’ve used the following code:
3
2. Delete pid=12 from site link:
4
4. Insert product into product table from site link:
5
• Package product package
∗ Function insert product()
· Parameter: name,brand,category.
· Description: Insert product in to product tables.
· Exceptions: Throws exception when not successfully inserted.
· Return: 0 error,1 successfully inserted,2 already exist.
∗ Function insert product new()
· Parameter: name,brand,category,product code,supplier id,buy price,sell price,branch.
· Description: Insert product in to product tables.
· Exceptions: Throws exception when not successfully inserted.
· Return: 0 error,1 successfully inserted,2 already exist.
∗ Function insert product old()
· Parameter: name,brand,category,product code,customer id,buy price,sell price,branch.
· Description: Insert product in to product tables.
· Exceptions: Throws exception when not successfully inserted.
· Return: 0 error,1 successfully inserted,2 already exist.
6
• Package customer employee package
∗ Procedure add employee
· Parameter: name,number,password.
· Description: Add employee.
∗ Procedure add customer
· Parameter: name,number.
· Description: Add customer.
7
• Package transfer package
∗ Procedure show request
· Parameter: no parameter.
· Description: Shows the request table.
∗ Function add request()
· Parameter: product code, send to branch,employee id.
· Description: Request products from other branches.
∗ Function transfer()
· Parameter: request id, employee id.
· Description: Transfer products from the requested branch.
6 Triggers
• product id
– Description: Sets the product id of the product table when a new data is inserted.
• supplier id
– Description: Sets the supplier id of the product table when a new data is inserted.
• customer id
– Description: Sets the customer id of the product table when a new data is inserted.
• employee id
– Description: Sets the employee id of the product table when a new data is inserted.
• purchase id
– Description: Sets the purchase id of the product table when a new data is inserted.
• request id
– Description: Sets the request id of the product table when a new data is inserted.