Upload
prateek-pandey
View
106
Download
0
Tags:
Embed Size (px)
Citation preview
• A database is a collection of information that is organized so that it can easily be accessed, managed, and updated.
INTRODUCTION
• A database management system (DBMS) is the software that allows a computer to perform database functions of storing, retrieving, adding, deleting and modifying data.
ADVANTAGE OF DBMS IN GARAGE
1. Controlling Data Redundancy
2. Data Consistency
3. Data Sharing
4. Data Integration
5. Data Security
6. Data Atomicity
7. Data Independence
• In the project garage management system it defines and manages each operational event in a details of purchased,stock of goods,services and other important inventory facility.
• Project support hundered of concurrent users requesting maintainance job offers for car maintenance and garage management system and minimize total time to maintenance job offer request with completion .
• Estimate cost of Jobs for external customers.
• Complete service history and repair tracking.
• Complete Material/ Spare Parts management including.
• Purchase Orders, bill Issues and Inventory.
INTRODUCTION TO PROJECT
employee
E_name E_idDate_of_join
address
Ph_no
attended
phno email
serviced
S_price
S_no
qty
charges
billsB_no
C_id Parts_repaired
P_price
parts
P_id P_name
P_price
brandqty
customer
Veh_no
Veh_color
C_name
C_id
works
ER DIAGRAM
Employee
E_ID E_name Salary Address E_mail Ph No Date_of_Joining Age
Service
S_no C_ID Qty E_ID P_ID Total_Price
Parts
P_ID P_name P_qty S_price Brand Date_of_purchase P_price
Bill
C_ID P_ID Date Qty
Customer
C_ID Vehicle_no C_name Vehicle_color Date_of_Entry Date_of_Exit Problem
Employee
E_ID E_name Salary Address E_mail Ph No Date_of_Joining Age
Service
S_no C_ID Qty E_ID P_ID Total_Price
Parts
P_ID P_name P_qty S_price Brand Date_of_purchase P_price
Bill
C_ID P_ID Date Qty
Customer
C_ID Vehicle_no C_name Vehicle_color Date_of_Entry Date_of_Exit Problem
create table employees(emp_id number(5) ,e_namevarchar(20),email varchar(20),phno number(15),address varchar(30),salary number(10),date_of_join date)alter table employees add primary key(emp_id)
QUERY
create table serviced(s_no number(10),s_pricenumber(10),qty number(4),p_id number(10),c_idnumber(10),primary key(s_no))
TABLE FOR SERVICED
create table bills(b_no varchar(5),c_idnumber(10),parts_repaired varchar(20),parts_pricenumber(10),primary key(b_no))
TABLE FOR BILLS
create table customer(c_id number(10),c_namevarchar(20),veh_no number(10),date_of_entrydate,date_of_exit date,veh_color varchar(20),problem varchar(20),primary key(c_id))
TABLE FOR CUSTOMER
create table parts(p_id varchar(10),p_namevarchar(20),qty_received number(5),p_qtynumber(5),p_price number(5),comp_namevarchar(20),date_of_purchase date)alter table parts add primary key(p_id)
TABLE FOR PARTS
E_ID E_name Salary Address E_mail Ph No Date_of_Joining Age
E_ID Ph NoE_ID E_name Salary Address E_mail Date_of_Joinin
gAge
Employee
E1 E21NF 2NF 3NF BCNF2NF 3NF
Normalisation
S_no E_ID
S_no C_ID Qty E_ID P_ID Total_Price
S_NO C_ID Total_Price
S_no P_ID Qty
Service
S1 S3
S2
1NF
BCNF2NF 3NF
P_ID P_name P_qty S_price Brand Date_of_purchase P_price
P_ID Date_of_purchase P_name P_qty P_ID Date_of_purchase Brand S_price P_price
Parts
P1 P21NF BCNF2NF 3NF
C_ID P_ID Date Qty
C_ID Vehicle_no C_name Vehicle_color Date_of_Entry Date_of_Exit Problem
C_ID C_name
C_ID C_name Vehicle_number Vehicle_color Date_of_Entry
Date_of_exit
C_ID Vehicle_no
Problem
C_ID Vehicle_no Date_of_entry
Date_of_exit
Bill
Customer
C1 C2
C1.1 C1.3
BCNF
1NF
Vehicle_no Vehicle_color
C1.2
BCNF2NF 3NF