You are on page 1of 24

A

Micro project

On

“VEHICLE SHOWROOM MANAGEMENT


SYSTEM USING DATABASE”

Submitted By

Dhruvil Rupareliya (57)


Rushikesh Chikorde (62)
Omkar Devkatte (70)

Under Guidance By

Ms. S. A. Kshirsagar

Diploma Course in Computer Technology

(As per directives of I Scheme, MSBTE)

Sinhgad Institutes

Sinhgad Technical Education Society’s

SOU.VENUTAI CHAVAN POLYTECHNIC

PUNE - 411041
ACADEMIC YEAR 2023-2024
Maharashtra State Board of
Technical Education
Certificate
This is to certify that Ms. Dhruvil Rupareliya with Roll No. 57 of Semester III
of Diploma in Computer Technology of Institute Sou. Venutai Chavan
Polytechnic (Code: 0040) has successfully completed the Micro-Project in
Database Management System (22319) for the academic year 2023-2024 as
prescribed in the curriculum.

Program Code: CM

Course Code:CM/3/I

Place: Pune Enrolment No: 2200400430

Date: Exam Seat No: 167554

Ms.S.A.Kshirsagar Mrs A.V.Kurkute Dr.(Mrs.)M.S.Jadhav

Course Teacher Head of Department Principal


Maharashtra State Board of
Technical Education
Certificate
This is to certify that Mr. Rushikesh Chikorde with Roll No. 62 of Semester III
of Diploma in Computer Technology of Institute Sou. Venutai Chavan
Polytechnic (Code: 0040) has successfully completed the Micro-Project in
Database Management System (22319) for the academic year 2023-2024 as
prescribed in the curriculum.

Program Code: CM

Course Code: CM/3/I

Place: Pune Enrolment No: 2200400441

Date: Exam Seat No: 167563

Ms.S.A.Kshirsagar Mrs A.V.Kurkute Dr.(Mrs.)M.S.Jadhav

Course Teacher Head of Department Principal


Maharashtra State Board of
Technical Education

Certificate
This is to certify that Mr. omkar devkatte with Roll No. 70 of Semester III of
Diploma in Computer Technology of Institute Sou. Venutai Chavan
Polytechnic (Code: 0040) has successfully completed the Micro-Project in
Database Management System (22319) for the academic year 2023-2024 as
prescribed in the curriculum.

Program Code: CM

Course Code: CM/3/I

Place: Pune Enrolment No: 23210930348

Date: Exam Seat No: 167578

Ms.S.A.Kshirsagar Mrs A.V.Kurkute Dr.(Mrs.)M.S.Jadhav

Course Teacher Head of Department Principal


INDEX

Sr. CONTENT PAGE


No NO.

1 Rationale 1

2 Aim of the Micro – Project 1

3 Course Outcomes Addressed 1

4 Literature Review 4

5 Actual Methodology Followed 4

6 Resources Required 4

7 Outputs of Micro – Project 4

7.1 E-R Diagram 6

7.2 Source Code 7-26

8 Skills Developed 26

9 Applications of this Project 26

10 Conclusion 26
Database Management System 22319 Vehicle management system

Annexure - I
Micro-Project Proposal

1.0 Aim of the Micro-Project:


The aim of the Micro-project is to develop an Vehicle Management System using
Database.

2.0 Intended Course Outcomes:


a. Design a Normalized Database using the given data
b. Create and Manage Database using SQL commands
c. Design E-R diagram
d. Apply security and confidentiality on given data

3.0 Proposed methodology:


The project aims at developing an Vehicle management system
I. Study all the concepts of Database Management System
II. Identify the requirements of project
III. Design the structure of project
IV. Debug code and eliminate errors occurred during compilation and execution
V. Test the working of project.
VI. Prepare the final project

Department of Computer Technology Academic Year 2023-24 1


Database Management System 22319 Vehicle management system

4.0 Action Plan:


Name of
Sr. Planned Start Planned
Details of Activity responsible Team
No. Date Finish Date
members

1 Identify the requirements of the Rushikesh chikorde


15/8/2023 16/8/2023
project

2 Design the structure of the project 22/8/2023 23/8/2023 omkar devkatte

3 Develop a program using SQL Dhruvil Rupareliya


29/8/2023 31/8/2023
commands

4 Debug code and


12/9/2023 14/9/2023 Dhruvil Rupareliya
eliminateerrors
occurred during
compilation and
execution
Rushikesh
5 Test the project 26/9/2023 28/9/2023 chikorde
and

omkar devkatte
6 Prepare the final report 24/10/2023 26/10/2023 Dhruvil Rupareliya

5.0 Resources Required:

S. No. Resources required Specifications


1 Computer system Intel(R) Pentium CPU, RAM 8 GB

2 Operating System Windows 11, 64 Bit Operating System


3 Software’s Oracle 10g XE

Department of Computer Technology Academic Year 2023-24 2


Database Management System 22319 Vehicle management system

6.0 Team members:

S. No. Roll. number Name of Student


1 57 Dhruvil Rupareliya
2 62 Rushikesh Chikorde
3 70 Omkar devkatte

Department of Computer Technology Academic Year 2023-24 3


Database Management System 22319 Vehicle management system

Annexure - II
Micro-Project Report

1.0 Rationale:

The system is based on vehical management system. Vehical management


system primarily deals with management of cars, companies and models. The
system provides broad overview of underlying operational factors that
influence the vehical management.
The database system has the data of all commercial
vehicals

2.0 Aim of the Micro-Project:


The aim of the Micro-project is to develop an vehical management System using Database.

3.0 Course Outcomes Achieved:


a. Design a Normalized Database using the given data
b. Create and Manage Database using SQL commands
c. Design E-R diagram
d. Apply security and confidentiality on given data

4.0 Literature Review:


This application demonstrates the principles of Database Management System. In
particular, the project considers various components of Structures Query Language
(SQL): DDL, DML, DCL and DQL commands. It also aims at designing SQL queries to
implement VIEWS on the given tables.

Department of Computer Technology Academic Year 2023-24 4


Database Management System 22319 Vehicle management system

5.0 Actual Methodology Followed:


The project aims at developing an Vehical management System

I. Study all the concepts of Database Management System


II. Identify the requirements of project
III. Design the structure of project
IV. Debug code and eliminate errors occurred during compilation and execution
V. Test the working of project.
VI. Prepare the final project

6.0 Actual Resources Used:

S. No. Resources required Specifications


1 Computer system Intel(R) Pentium CPU, RAM 8 GB

2 Operating System Windows 11, 64 Bit Operating System


3 Software’s Oracle 10g XE

Department of Computer Technology Academic Year 2023-24 5


Database Management System 22319 Vehicle management system

7.1 E-R Diagram:

Department of Computer Technology Academic Year 2023-24 6


Database Management System 22319 Vehicle management system
Systemd

7.2 Source Code:

SQL*Plus: Release 21.0.0.0.0 - Production on Sat Nov 4 16:28:18 2023


Version 21.3.0.0.0

Copyright (c) 1982, 2021, Oracle. All rights reserved.

Enter user-name: system


Enter password:
Last Successful login time: Sat Nov 04 2023 16:09:40 +05:30

Connected to:
Oracle Database 21c Express Edition Release 21.0.0.0.0 - Production
Version 21.3.0.0.0

SQL> CREATE TABLE vehicless (


2 vehicle INT PRIMARY KEY,
3 name VARCHAR (255),
4 type VARCHAR (50),
5 manufacture_year INT,
6 price DECIMAL (10, 2)
7 );

Table created.

SQL> INSERT INTO vehicless (vehicle, name, type, manufacture_year,price)


2 VALUES (1, 'Sedan A', 'Sedan', 2022, 25000.00);

1 row created.

SQL> INSERT INTO vehicless (vehicle, name, type, manufacture_year,price)


2 values (3, 'Truck B', 'Truck', 2020, 40000.00);

1 row created.

SQL> desc vehicless


Name Null? Type
----------------------------------------- -------- ----------------------------
VEHICLE NOT NULL NUMBER(38)
NAME VARCHAR2(255)
TYPE VARCHAR2(50)
MANUFACTURE_YEAR NUMBER(38)
PRICE NUMBER(10,2)

SQL> select * from vehicless;

Department of Computer Technology Academic Year 2023-24 7


Database Management System 22319 Vehicle management system
VEHICLE Systemd
----------
NAME
--------------------------------------------------------------------------------
TYPE MANUFACTURE_YEAR PRICE
-------------------------------------------------- ---------------- ----------
1
Sedan A
Sedan 2022 25000

3
Truck B
Truck 2020 40000

VEHICLE
----------
NAME
--------------------------------------------------------------------------------
TYPE MANUFACTURE_YEAR PRICE
-------------------------------------------------- ---------------- ----------

SQL> INSERT INTO vehicless (vehicle, name, type, manufacture_year,price)


2 values (2, 'SUV X', 'SUV', 2021, 35000.00);

1 row created.

SQL> UPDATE vehicles


2 SET price = 28000.00
3 WHERE vehicle = 1;

0 rows updated.

SQL> UPDATE vehicles


2 SET price = 28000.00
3 WHERE vehicle = 2;

0 rows updated.

SQL> UPDATE vehicless


2 SET price = 28000.00
3 WHERE vehicle = 1;

1 row updated.

SQL> select * from vehicless;

VEHICLE
----------
NAME
--------------------------------------------------------------------------------
TYPE MANUFACTURE_YEAR PRICE
-------------------------------------------------- ---------------- ----------
Department of Computer Technology Academic Year 2023-24 7
Database Management System 22319 Vehicle management system
1 Systemd
Sedan A
Sedan 2022 28000

3
Truck B
Truck 2020 40000

VEHICLE
----------
NAME
--------------------------------------------------------------------------------
TYPE MANUFACTURE_YEAR PRICE
-------------------------------------------------- ---------------- ----------

2
SUV X
SUV 2021 35000

SQL> update vehicless


2 set name = 'mercedies'
3 where vehicle = 1;

1 row updated.

SQL> update vehicless


2 set name = 'bmw'
3 where vehicle = 2;

1 row updated.

SQL> update vehicless


2 set name = 'tata'
3 where vehicle = 3;

1 row updated.

SQL> select * from vehicless ;

VEHICLE
----------
NAME
--------------------------------------------------------------------------------
TYPE MANUFACTURE_YEAR PRICE
-------------------------------------------------- ---------------- ----------
1
mercedies
Sedan 2022 28000
Department of Computer Technology Academic Year 2023-24 7
Database Management System 22319 Vehicle management system
Systemd
3
tata
Truck 2020 40000

VEHICLE
----------
NAME
--------------------------------------------------------------------------------
TYPE MANUFACTURE_YEAR PRICE

3
tata
Truck 2020 40000

VEHICLE
----------
NAME
--------------------------------------------------------------------------------
TYPE MANUFACTURE_YEAR PRICE
-------------------------------------------------- ---------------- ----------

SQL> savepoint my_savepoint;

Savepoint created.

SQL> rollback to my_savepoint;

Rollback complete.

SQL> commit ;

Commit complete.

SQL> select vehicle+1 from vehicless ;

VEHICLE+1
----------
2
4

SQL> select vehicle-1 from vehicless ;

VEHICLE-1
----------
0
2

SQL> select vehicle*1.5 from vehicless ;

VEHICLE*1.5
Department of Computer Technology Academic Year 2023-24 7
Database Management System 22319 Vehicle management system
----------- Systemd
1.5
4.5

SQL> select vehicle/2 from vehicless ;

VEHICLE/2
----------
.5
1.5

SQL> select * from vehicless ;

VEHICLE
----------
NAME
--------------------------------------------------------------------------------
TYPE MANUFACTURE_YEAR PRICE
-------------------------------------------------- ---------------- ----------
1
mercedies
Sedan 2022 28000

3
tata
Truck 2020 40000

VEHICLE
----------
NAME
--------------------------------------------------------------------------------
TYPE MANUFACTURE_YEAR PRICE
-------------------------------------------------- ---------------- ----------

SQL> create view view1 as select * from vehicless ;

View created.

SQL> desc view;


ERROR:
ORA-00931: missing identifier

SQL> select * from view1 ;

VEHICLE
----------
NAME
--------------------------------------------------------------------------------
TYPE MANUFACTURE_YEAR PRICE
Department of Computer Technology Academic Year 2023-24 7
Database Management System 22319 Vehicle management system
-------------------------------------------------- ---------------- ---------- Systemd
1
mercedies
Sedan 2022 28000

3
tata
Truck 2020 40000

VEHICLE
----------
NAME
--------------------------------------------------------------------------------
TYPE MANUFACTURE_YEAR PRICE
-------------------------------------------------- ---------------- ----------

SQL> commit ;

Commit complete.

SQL>

SQL*Plus: Release 21.0.0.0.0 - Production on Sun Nov 5 16:14:52 2023


Version 21.3.0.0.0

Copyright (c) 1982, 2021, Oracle. All rights reserved.

Enter user-name: system


Enter password:
Last Successful login time: Sun Nov 05 2023 16:11:45 +05:30

Connected to:
Oracle Database 21c Express Edition Release 21.0.0.0.0 - Production
Version 21.3.0.0.0

SQL> create table customer (


2 name varchar(25),
3 id int,
4 c_mail varchar (30),
5 c_number int );

Table created.

SQL> select * from customer ;

no rows selected

Department of Computer Technology Academic Year 2023-24 7


Database Management System 22319 Vehicle management system
SQL> desc customer ; Systemd
Name Null? Type
----------------------------------------- -------- ----------------------------
NAME VARCHAR2(25)
ID NUMBER(38)
C_MAIL VARCHAR2(30)
C_NUMBER NUMBER(38)

SQL> insert into customer ( name,id,c_mail,c_number)


2 values ('amit',1,'amil@123gmail',9822075757);

1 row created.

SQL> insert into customer ( name,id,c_mail,c_number)


2 values ('rahul',2,'rahul@1123gmail',9822098787);

1 row created.

SQL> insert into customer ( name,id,c_mail,c_number)


2 values ('rakesh',3,'rakesh@123gmail',9822045455);

1 row created.

SQL> insert into customer ( name,id,c_mail,c_number)


2 values ('modi',4,'modi@123gmail',982204540);

1 row created.

SQL> select * from customer ;

NAME ID C_MAIL C_NUMBER


------------------------- ---------- ------------------------------ ----------
amit 1 amil@123gmail 9822075757

rahul 2 rahul@1123gmail 9822098787


rakesh 3 rakesh@123gmail 9822045455
modi 4 modi@123gmail 982204540

SQL> update customer


2 set c_number = 6786576486
3 where id = 3 ;

1 row updated.

SQL> delete from customer


2 b;

4 rows deleted.

SQL> select * from customer ;

no rows selected

Department of Computer Technology Academic Year 2023-24 7


Database Management System 22319 Vehicle management system
Systemd
SQL> insert into customer ( name,id,c_mail,c_number)
2 values ('amit',1,'amil@123gmail',9822075757);

1 row created.

SQL> insert into customer ( name,id,c_mail,c_number)


2 values ('rahul',2,'rahul@1123gmail',9822098787);

1 row created.

SQL> insert into customer ( name,id,c_mail,c_number)


2 values ('rakesh',3,'rakesh@123gmail',9822045455);

1 row created.

SQL> insert into customer ( name,id,c_mail,c_number)


2 values ('modi',4,'modi@123gmail',982204540);

1 row created.

SQL> update customer


2 set c_number = 6786576486
3 where id = 3 ;

1 row updated.

SQL> select * from customer ;

NAME ID C_MAIL C_NUMBER


------------------------- ---------- ------------------------------ ----------
amit 1 amil@123gmail 9822075757
rahul 2 rahul@1123gmail 9822098787
rakesh 3 rakesh@123gmail 6786576486
modi 4 modi@123gmail 982204540

SQL> delete from customer


2 where id = 3 ;

1 row deleted.

SQL> select * from customer ;

NAME ID C_MAIL C_NUMBER


------------------------- ---------- ------------------------------ ----------
amit 1 amil@123gmail 9822075757
rahul 2 rahul@1123gmail 9822098787
modi 4 modi@123gmail 982204540

Department of Computer Technology Academic Year 2023-24 7


Database Management System 22319 Vehicle management system
SQL> savepoint c_savepoint ; Systemd

Savepoint created.

SQL> rollback to c_savepoint ;

Rollback complete.

SQL> create view c_view as select * from customer ;

View created.

SQL> select * from c_view ;

NAME ID C_MAIL C_NUMBER


------------------------- ---------- ------------------------------ ----------
amit 1 amil@123gmail 9822075757
rahul 2 rahul@1123gmail 9822098787
modi 4 modi@123gmail 982204540

SQL> commit ;

Commit complete.

SQL>

SQL> create table sales (


2 salesman_name varchar(25),
3 id int,
4 s_mail varchar (30),
5 s_number int );

Table created.

SQL> desc sales ;


Name Null? Type
----------------------------------------- -------- ----------------------------
SALESMAN_NAME VARCHAR2(25)
ID NUMBER(38)
S_MAIL VARCHAR2(30)
S_NUMBER NUMBER(38)

SQL> insert into sales ( salesman_name,id,s_mail,s_number)


2 values ('angad',1,'angad@546gmail',9867564587);

1 row created.

SQL> insert into sales ( salesman_name,id,s_mail,s_number)


2 values ('vansh',2,'vansh@546gmail',98645982300);

1 row created.

SQL> insert into sales ( salesman_name,id,s_mail,s_number)


Department of Computer Technology Academic Year 2023-24 7
Database Management System 22319 Vehicle management system
2 values ('aryan',3,'aryan@897gmail',986459823545); Systemd

1 row created.

SQL> insert into sales ( salesman_name,id,s_mail,s_number)


2 values ('naman',3,'naman@897gmail',98645983454);

1 row created.

SQL> select * from sales ;

SALESMAN_NAME ID S_MAIL S_NUMBER


------------------------- ---------- ------------------------------ ----------
angad 1 angad@546gmail 9867564587
vansh 2 vansh@546gmail 9.8646E+10
aryan 3 aryan@897gmail 9.8646E+11
naman 3 naman@897gmail 9.8646E+10

SQL> update sales


2 set s_number = 9822054563
3 where id = 2;

1 row updated.

SQL> delete from sales


2 where s_number = 9.8646E+10 ;

0 rows deleted.

SQL> delete from sales


2 where id = 3 ;

2 rows deleted.

SQL> savepoint s_savepoint ;

Savepoint created.

SQL> rollback to s_savepoint ;

Rollback complete.

SQL> desc sales ;


Name Null? Type
----------------------------------------- -------- ----------------------------
SALESMAN_NAME VARCHAR2(25)
ID NUMBER(38)
S_MAIL VARCHAR2(30)
S_NUMBER NUMBER(38)

SQL> select * from sales ;


Department of Computer Technology Academic Year 2023-24 7
Database Management System 22319 Vehicle management system
Systemd
SALESMAN_NAME ID S_MAIL S_NUMBER
------------------------- ---------- ------------------------------ ----------
angad 1 angad@546gmail 9867564587
vansh 2 vansh@546gmail 9822054563

SQL> commit ;

Commit complete.

SQL>

SQL> select count(id),


2 c_number
3 from customer
4 group by c_number ;

COUNT(ID) C_NUMBER
---------- ----------
1 9822075757
1 9822098787
1 982204540

SQL> create synonym cus for customer ;

Synonym created.

SQL> create sequence cusseq ;

Sequence created.

SQL> select initcap ('string')from dual ;

INITCA
------
String

SQL> select lower ('


2 select lower ('DBMS') from dual ;
ERROR:
ORA-01756: quoted string not properly terminated

SQL> select lower ('DBMS') from dual ;

LOWE
----
dbms

SQL> select upper ('dbms') from dual ;


Department of Computer Technology Academic Year 2023-24 7
Database Management System 22319 Vehicle management system
Systemd
UPPE
----
DBMS

SQL> select length ('dbms') from dual ;

LENGTH('DBMS')
--------------
4

Department of Computer Technology Academic Year 2023-24 7


Database Management System 22319 Vehicle management system
Systemd

8.0 Skills Developed:


• During developing the Micro-Project, we learnt many practically applied
concepts of Database Management System and theory as well.
• We learned to develop a database using SQL commands.
• We also learned how to execute SQL queries.

9.0 Applications of this Micro-project:

To Manage Details of Vehicle.


To Manage Details of Brand.
To Manage Details of model.
To Manage details of user .

10.0 Conclusion:

Thus, we developed an Vehicle management system using databases.

Department of Computer Technology Academic Year 2023-24 7

You might also like