Sunteți pe pagina 1din 20

CERTIFICATE

This is to certify that the micro project

“Online gas agency”

Is done by

Vishal jagdale

Santos gonkar

Ashish bhoir

Is submitted for

“data management system”

For

The diploma in Computer Engineering to the

Maharashtra State Board of Technical Education, Mumbai


(Autonomous) (ISO-9001-2008) (ISO/IEC 27001:2013)

Subject Incharge: H.O.D: Principal:

(Mrs. Manisha Patil) (Mrs. Manisha Patil ) (Prof.D.R.Suroshe)


Online gas agency
Submitted in fulfillment of the requirements
Of micro project of
Database management system
By
Name of the student:- Roll no :- Enrollment no :-
Vishal jagdale 11 1909640080

Santosh gonkar 12 1909640083

Ashish bhoir 14 1909640084

Department of Computer Engineering

Academic Year : - 2019 -20

2
CERTIFICATE
This is to certify that

Mr. /Miss. / Mrs.________________________________________________

Class______________________________ Roll no. ______________

has completed the microproject work satisfactorily in the course of

_____________________________________________________________

as prescribed by the Maharashtra State Board of Technical Education

in the academic year 2019-2020 in the program of

_________________________________________________ of the institute


_____________________________________________________________________________________

Date ______________

Teacher__________ In charge Dep. __________Principal________

3
ACKNOWLEDGEMENT

I take this opportunity to express deep sense of gratitude and sincere thanks for the invaluable

guidance that I have received at the worthy hands of my Mrs. Manisha Patil

I express my sincere thanks to our H.O.D. Mrs. Manisha Patil for permitting me to do this

project and also to the entire staff member who have helped me directly or indirectly.

I also express my thanks to my friends for their underlying support shown during the

preparation of this project.

_______________________

4
INDEX

REPORT (PART A)

Sr No. Topic Page No.

1. Introduction of Online gas agency 5

2. Application of Database Management System 6

3. Advantages and Disadvantages of Database Management 7


System

REPORT (PART B)
4. Content 8

5. About SQL 9

6. Entity and attributes 10-11

7. E-R Diagram 12-13

8. SQL Code 14-28

9. Conclusion 29

10. References 30

11. Weekly Report 31

12. Evaluation Sheet 32-33

5
INTRODUCTION

● A database management system (DBMS) is system software.


● Creating and managing databases.
● In which files are integrated to each other
● The DBMS facilitates the user to create retrieve, update and manage data.

6
APPLICATION OF DATABASE MANAGEMENT SYSTEM

1. Analyze user environment


2. Develop logical model
3. Choose DBMS
4. Map Logical Model DBMS
5. Develop physical design
6. Evaluate Physical Model

7
ADVANTAGES AND DISADVANTAGES

Advantages:

1. Improved data sharing:

The DBMS helps create an environment in which end users have better access to more and better-
managed data.

Such access makes it possible for end users to respond quickly to changes in their environment.

2. Improved data security:

The more users access the data, the greater the risks of data security breaches. Corporations invest
considerable amounts of time, effort, and money to ensure that corporate data are used properly.

A DBMS provides a framework for better enforcement of data privacy and security policies.

Disadvantages:

1. Increased costs:

Database systems require sophisticated hardware and software and highly skilled personnel.

The cost of maintaining the hardware, software, and personnel required to operate and manage a
database system can be substantial. Training, licensing, and regulation compliance costs are often
overlooked when database systems are implemented.

2. Management complexity:

Database systems interface with many different technologies and have a significant impact on a
company’s resources and culture.

The changes introduced by the adoption of a database system must be properly managed to
ensure that they help advance the company’s objectives. Given the fact that database systems hold
crucial company data that are accessed from multiple sources, security issues must be assessed
constantly.

8
CONTENT
The system shows us the work of the gas agency. It provides the connection of new gas refill. And it also
exchanges the full refill instead of empty refill. For that it has the customer all information. It can also
provide different tools related to the gas department. Like regulators, hotplate, lighters, tubes etc.

For that it has to provide some information. The existing system is work like that. It provides some
information as a written data. It collect customer, stock, booking information. The information is very useful
for the system to work on it. The customer information having such information like customer name,
customer address, phone no or the other connect no and it also give one id as a customer id . By that the
data can enter. In that we refer that customer have how many refill, when it issue, etc. The other
information is stock information in which we have the information of the stock related item. By that we can
know how many things we have? How many given? Etc. The stock is also very important. The last
information that we collect is the booking. In that we collect the information of the booking statements.
That customer name, when it orders for another refill, etc.

9
ABOUT SQL

● S.Q.L stands for structured Query language.


● It is used to interact with the database.
● SQL was developed by IBM.
● It is standard language for RDBMS.
● Using SQL statements we can perform task such as retrieving or updating data from the
database.
● Select statement.
● Create table.
● Delete table.

❖ BASIC STATEMENTS

▪ Data definition language


1. Select statement.
2. Create statements.
3. Alter statements.
4. Adding a column.
5. Renaming a column.
6. Drop statement.

Description of Online gas agency System Database :

For that it have to provide some information. The existing system is work like that. It provide some
information as a written data. It collect customer, stock, booking information. The information is very useful
for the system to work on it. The customer information having such information like customer name,
customer address, phone no or the other connect no and it also give one id as a customer id . By that the
data can enter. In that we refer that customer have how many refill, when it issue, etc. The other
information is a stock information in which we have the information of the stock related item. By that we
can know how many things we have?, How many given?, etc. The stock is also very important. The last
information that we collect is the booking. In that we collect the information of the booking statements.
That customer name, when it order for another refill, etc.

10
Entity and attributes

⮚ price_details Entity : Attributes of price_details are cyln_type , price.

⮚ billing_details Entity : Attributes of billing_details are bl_id integer , cons_no integer ,


cyline_type , bk_date , del_date ,amt float.

⮚ customer_details Entity : Attributes of customer_details are cons_no , pass,


cylin_type , dt_of_conn , c_name , c_add , city , phone , pincode.

⮚ stock_details Entity : Attributes of stock_details are s_dt , sto_re_com , sto_re_dom ,


def_dom , def_com , c_sto_com , c_sto_dom.

⮚ transction_details Entity : Attributes of transction_details are t_id ,cons_no , cylntype


, bk_dt , del_dt , status .

11
E R Diagram

12
SQL CODE
////////////////////////////////////////price_details///////////////////////////////////////////////

create table price_details(cyln_type varchar (10),

price float (4));

Table created.

SQL> insert into price_details values ('nbuten',1600);

1 row created.

SQL> insert into price_details values ('ibuten',1500);

1 row created.

SQL> select * from price_details ;

CYLN_TYPE PRICE

---------- ----------

nbuten 1600

ibuten 1500

13
/////////////////////////////////////////// billing_details //////////////////////////////////////////

SQL> create table billing_details(bl_id integer ,

2 cons_no integer ,

3 cyline_type varchar (10),

4 bk_date date ,

5 del_date date ,

6 amt float (4));

Table created.

SQL> insert into billing_details values (2174,101,'nbuten','02-apr-19','07-apr-19',1600);

1 row created.

SQL> insert into billing_details values (2175,103,'ibuten','03-apr-19','08-apr-19',1500);

1 row created.

SQL> insert into billing_details values (2176,102,'ibuten','08-apr-19','13-apr-19',1500);

1 row created.

SQL> select * from billing_details ;

BL_ID CONS_NO CYLINE_TYP BK_DATE DEL_DATE AMT

14
---------- ---------- ---------- --------- --------- ----------

2174 101 nbuten 02-APR-19 07-APR-19 1600

2175 103 ibuten 03-APR-19 08-APR-19 1500

2176 102 ibuten 08-APR-19 13-APR-19 1500

//////////////////////////////////////// customer_details ///////////////////////////////////////////

SQL> create table customer_details(cons_no integer ,

2 pass varchar (8),

3 cylin_type varchar (10),

4 dt_of_conn date ,

5 c_name varchar(25),

6 c_add varchar (50) ,

7 city varchar (15) ,

8 phone number(10),

9 pincode number(6) );

Table created.

SQL> insert into customer_details values (101,'xybz','nbuten','05-aug-


2019','raj','aatamasadan_nivas','vashi',8291800000,421201);

1 row created.

SQL> insert into customer_details values (103,'abxz','ibuten','19-feb-


2019','ram','samathkrupa_baganla','vashi',8129123459,421201);

15
1 row created.

SQL> insert into customer_details values (102,'mnaj','ibuten','24-mar-


2019','vishal','sampada_house','palava',8234688811,421201);

1 row created.

SQL> select * from customer_details ;

CONS_NO PASS CYLIN_TYPE DT_OF_CON C_NAME

---------- -------- ---------- --------- -------------------------

C_ADD CITY PHONE

-------------------------------------------------- --------------- ----------

PINCODE

----------

101 xybz nbuten 05-AUG-19 raj

aatamasadan_nivas vashi 8291800000

421201

103 abxz ibuten 19-FEB-19 ram

samathkrupa_baganla vashi 8129123459

421201

CONS_NO PASS CYLIN_TYPE DT_OF_CON C_NAME

---------- -------- ---------- --------- -------------------------

C_ADD CITY PHONE

-------------------------------------------------- --------------- ----------

16
PINCODE

----------

102 mnaj ibuten 24-MAR-19 vishal

sampada_house palava 8234688811

421201

/////////////////////////////////////////////stock_details///////////////////////////////////////////

SQL> create table stock_details(s_dt date ,

2 sto_re_com integer ,

3 sto_re_dom integer ,

4 def_dom integer ,

5 def_com integer,

6 c_sto_com integer,

7 c_sto_dom integer );

Table created.

SQL> insert into stock_details values('18-sep-19',10,10,1,2,6,5);

1 row created.

17
SQL> insert into stock_details values('19-sep-19',5,5,2,1,4,6);

1 row created.

SQL> insert into stock_details values('20-sep-19',10,10,2,2,6,4);

1 row created.

SQL> select * from stock_details;

S_DT STO_RE_COM STO_RE_DOM DEF_DOM DEF_COM C_STO_COM C_STO_DOM

--------- ---------- ---------- ---------- ---------- ---------- ----------

18-SEP-19 10 10 1 2 6 5

19-SEP-19 5 5 2 1 4 6

20-SEP-19 10 10 2 2 6 4

/////////////////////////////////////////transction_details//////////////////////////////////////////

SQL> create table transction_details (t_id integer ,

2 cons_no integer ,

3 cylntype varchar(10) ,

4 bk_dt date ,

5 del_dt date ,

6 status varchar(15));

18
Table created.

SQL> insert into transction_details values(1104,101,'nbuten','02-apr-19','07-apr-19','successfull');

1 row created.

SQL> insert into transction_details values(1105,102,'ibuten','03-apr-19','08-apr-19','fail');

1 row created.

SQL> insert into transction_details values(1106,102,'ibuten','03-apr-19','08-apr-19','successfull');

1 row created.

SQL> insert into transction_details values(1107,103,'ibuten','04-apr-19','05-apr-19','successfull');

1 row created.

SQL> select * from transction_details;

T_ID CONS_NO CYLNTYPE BK_DT DEL_DT STATUS

---------- ---------- ---------- --------- --------- ---------------

1104 101 nbuten 02-APR-19 07-APR-19 successfull

1105 102 ibuten 03-APR-19 08-APR-19 fail

1106 102 ibuten 03-APR-19 08-APR-19 successfull

1107 103 ibuten 04-APR-19 05-APR-19 successfull

19
CONCLUSION
The Blood Bank Management system is to provide blood to the people who are in need of blood.
Using this system user can search blood group available in the city and he can also get contact
number of the donor who has the same blood grounded. This blood bank management system is
an online website so it is easily available to everyone. Using this blood bank system people can
search blood group available which they are needed. They check it ousting our blood bank
management System. If in case blood group is not available in blood bank they can also contact
numbers of the persons who has the same blood group he is need. The database of the hospital
and blood bank must be checked for consistency on regular basis for smooth working of the
system.

REFERENCES

1. www.planet-source-code.com/vb/scripts

2. www.Codeguru.com/csharp/.net/net_data

3. www.Codeguru.com/csharp/csharp/cs_syntax

4. www.c-sharpcorner.com/asp.net/

20

S-ar putea să vă placă și