You are on page 1of 4

DATABASE MANAGEMENT SYSTEM

(CSE-301)
Term Paper
On
“LABORATORY MANAGEMENT”

SUBMITTED TO: - MR. DALWINDER SINGH SALARIA


SUBMITTED BY:
NAME: - GAURAV SANADHYA

-:ACKNOLEDGEMENT:-
I AM VERY THNKFUL TO MY SUBJECT
TEACHER MR. DALWINDER SINGH SALARIA
WHO HELPED ME
AND GUIDES ME TO
COMPLETE THIS PROJECT ON
“LABORATORY MANAGEMENT”
I AM ALSO THANKFUL TO
MY CLASSMATES
( Gaurav,Chillu,bablu.)
WHO PRPOVIDES ME VERY
IMPORTANT INFORMATION IN COMPLETING THIS
PROJECT.

GAURAV SANADNHY
A
-: CONTENT:-
• ATTRIBUTES LIST
• MASTER TABLE
• NORMALIZATION
• SUB TABLES
• SQL QUREYS FOR SUB TABLES
• REFERENCES
ATTRIBUTES WHICH ARE USE TO MAKE OUR DATABASE:-
1. Exp_id
2. Exp_name
3. Chemical_req
4. Apparatus_reqd
5. Che_quantity
6. App_quantity
7. Course_id
8. Course_name
9. Lab_no
10. Lab_asstnt
11. Lab_timings
12. lab_day
13. Chemi_name
14. Chem_Availability
15. Chem_Needed
16. Needed_chem
17. Ordered_chem
18. App_name
19. App_avaialable
20. App_needed
21. App_damaged
22. App_ordered
MASTER TABLE:-
CREATE TABLE MASTER (Exp_id varchar(20),Exp_name char(100),Chemical_req varchar
(20),Apparatus_reqd varchar (20),Che_Quantity varchar (10),App_quantiy varchar (
10),Course_id varchar (20),Course_name char (100),Lab_no number (20),lab_asstnt
char(30),lab_timing varchar(10),lab_day char (10),Chemi_Name varchar (20),Chem_A
vailability varchar (10),Chem_Needed varchar (20),Ordered_Chem varchar (20),App_
name varchar (20),App_avaialable number(10),App_needed number (10),App_damded nu
mber (10),App_ordered number (10));
Exp_id Exp_name Chemical_req Apparatus_req Che_quntity App_quan
tity Course_id Course_name Lab_no Lab_asstnt Lab_timing
Lab_Day Chem_name Chem_availabity Chem_needed Needed_chem Order_Ch
em App_name App_avaialable App_neede App_damaged App_orde
red
NORMALIZATION:-
It is a technique which is use to design a good database.It mean to remove the
inconsistence and anomalies from our database.
On the base of Functional Dependency we divide our database in four different Ta
ble which are given below:-
1. Table for storing details of expirement
Table name:- EXP
Attributes with data type
• Exp_id varchar(20),
• Exp_name char(100),
• Chem_req varchar(20),
• App_req varchar(20),
• Che_quantity varchar (10),
• App_quantity varchar (10)
TO Create a table EXP:-
CREATE TABLE exp(exp_id varchar(20), exp_name char(100),chem_req varchar(20),app
_req varchar(20),che_quantity varchar(10),app_quantity number(10));
To insert the Data in table EXP:-
INSERT INTO exp(exp_id,exp_name,chem_req,app_req,che_quantity,app_quantity) val
ues('A1A','TO find Co2','H2O','testtube',2ml,5);
INSERT INTO exp (exp_id,exp_name,chem_req,app_req,che_quantity,app_quantity) va
lues('A2A','to Find Hcl','HNO3','Testtube',2ml,1);
Exp_id Exp_name Chem_req App_req Che_quantity App_quantity
A1A To find Co2 H2o testtube 2ml 3
A2A TO Find Hcl HNO3 testtube 2ml 3

2. Table for storing details of course


Table name:- COURSE1
Attributes with data type
• Course_id varchar(20),
• Course_name char(100),
• Lab_no number(20),
• Lab_asstnt char(30),
• Lab_day char(10);
TO Create a talbe COURSE1:-
CREATE TABLE course1(course_id varchar(20),course_name char(100),lab_no number(2
0),lab_asstnt char(30),lab_day char(10));
To insert the Data in table COURSE1:-
INSERT INTO course1(course_id ,course_name ,lab_no ,lab_asstnt ,lab_day )values(
'CSE301','B-tech-IT',B10,'gaurav','wednesday');
INSERT INTO course1(course_id ,course_name ,lab_no ,lab_asstnt ,lab_day )values(
'CSE501','B-tech-CSE',B13,'Vivek','monday');
Select * from course1;
Course_id Course_name Lab_no Lab_asstnt Lab_day
CSE301 B.tech-IT B10 gaurav Wednesday
CSE501 B.tech-CSE B13 Vivek Monday

3. Table for storing details of chemical stock


Table name:- CHE_DETAILS
Attributes with data type
• Chem_name varchar(20),
• Chem_availability varchar(10),
• Chem_Needed varchar(20),
• Ordered_chem varchar(20);
TO Create a table CHE_DETAILS:-
CREATE TABLE che_details(chem_name varchar(20),chem_availability varchar(10),che
m_Needed varchar(20),Ordered_chem varchar(20));
To insert the Data in table CHE_DETAILS:-
INSERT INTO che_details(chem_name,chem_availability,chem_Needed,Ordered_chem) va
lues('H2O','10 L','50 L','25 L');
INSERT INTO che_details(chem_name,chem_availability,chem_Needed,Ordered_chem) va
lues('HNO3','17 kg','25 kg ','4 kg');

Select * from che_details;

4. Table for storing details of apparatus stock


Table name:- APP_DETAILS:-
Attributes with data type
• App_name varchar(20),
• App_avaialable number(10),
• App_needed number(10),
• App_damaged number(10),
• App_ordered number(10);
TO Create a table APP_DETAILS:-
CREATE TABLE app_details(app_name varchar(20),app_avaialable number(10),app_need
ed number(10),app_damaged number(10),app_ordered number(10));
To insert the Data in table APP_DETAILS:-
INSERT INTO app_details(app_name,app_avaialable,app_needed,app_damaged,app_order
ed) values('test tube',500,1000,250,500);
INSERT INTO app_details(app_name,app_avaialable,app_needed,app_damaged,app_order
ed) values('beaker',250,700,50,500);
Select * from App_details;

REFERENCES:-
• Database Management System by Dalwinder Singh Salaria
• Database Management Concepte by Korth

You might also like