Professional Documents
Culture Documents
Database Technologies Semester Vi of Beit
Database Technologies Semester Vi of Beit
DataBase Technologies
Semester VI of BEIT
Project Report of
BUS DEPOT SYSTEM
UNDER THE GUIDANCE OF
Submitted to:
Submitted By
ACKNOWLEDGEMENT
We sincerely acknowledge our deep sense of gratitude to our project guide professor
Ms.Bhavna Dakhare for her expert guidance as well as help, suggestion and constant encouragement
during the preparation of the project work, without which the completion of this useful project would
have been a difficult task.
We are extremely grateful to our guide Ms.Bhavna to give us a chance to develop such
useful project for making the bus depot database very easy to handle.
We are thankful to them for their constant constructive criticism and invaluable suggestions,
which benefited us a lot while developing the project on “BUS DEPOT SYSTEM”. She has been a constant
source of inspiration and motivation for hard work. She has been very co-operative throughout this
project work. Through this column, it would be our utmost pleasure to express our warm thanks to her
for their encouragement, co-operation and consent without which we might not be able to accomplish
this project.
We also express our gratitude to Ms.Bhavna for providing us the infrastructure to carry
out the project and to all staff members who were directly and indirectly instrument in enabling us to
stay committed for the project.
BUS DEPOT SYSTEM INFORMATION TECHNOLOGY
ER Diagram
BUS DEPOT SYSTEM INFORMATION TECHNOLOGY
BDEPOTS TABLE:-
mysql>
mysql> insert into BDEPOTS values(101,'DEONAR DEPOT','1000','AMEYA');
Query OK, 1 row affected (0.05 sec)
mysql>
mysql> insert into BDEPOTS values(102,'GHATKOPAR DEPOT','500','TEJAS');
Query OK, 1 row affected (0.03 sec)
mysql>
mysql> insert into BDEPOTS values(103,'MULUND DEPOT','300','ATUL');
Query OK, 1 row affected (0.03 sec)
mysql>
mysql> insert into BDEPOTS values(104,'BORIVALI DEPOT','2000','SAHIL');
Query OK, 1 row affected (0.02 sec)
BUSES TABLE:-
CONDUCTING_STAFF TABLE:-
mysql>
mysql> insert into CONDUCTING_STAFF values
-> ('A1002','Niraj','A','5-Mar-2006',022-28896455,'B77884');
Query OK, 1 row affected (0.03 sec)
mysql>
mysql> insert into CONDUCTING_STAFF values
-> ('A1003','Raja','B','4-Mar-2006',022-22214561,'A22425');
Query OK, 1 row affected (0.02 sec)
mysql>
mysql> insert into CONDUCTING_STAFF values
-> ('A1004','Mohan','A','5-Mar-2006',022-25588558,'A33625');
Query OK, 1 row affected (0.01 sec)
mysql>
mysql> insert into CONDUCTING_STAFF values
-> ('A1005','Prasad','B','6-Mar-2006',022-25533669,'A87225');
Query OK, 1 row affected (0.03 sec)
MAINTAINANCE_STAFF TABLE:-
mysql>
mysql> insert into MAINTAINENCE_STAFF values
-> ('A1007','Salman','B','5-Mar-2006',29988774,'Watchman');
Query OK, 1 row affected (0.02 sec)
mysql>
mysql> insert into MAINTAINENCE_STAFF values
-> ('A1008','Aamir','B','4-Mar-2006',27788941,'Sweeper');
Query OK, 1 row affected (0.02 sec)
mysql>
mysql> insert into MAINTAINENCE_STAFF values
-> ('A1009','Suresh','A','5-Mar-2006',23314564,'Cleaner');
Query OK, 1 row affected (0.03 sec)
mysql>
mysql> insert into MAINTAINENCE_STAFF values
-> ('A1010','Ramesh','B','6-Mar-2006',28899644,'Cleaner');
Query OK, 1 row affected (0.02 sec)
REPAIRS TABLE:-
mysql>
mysql> insert into REPAIRS values ('C2002','Rs.120','Brake','-');
Query OK, 1 row affected (0.02 sec)
mysql>
mysql> insert into REPAIRS values ('C2003','Rs.350','Seats','Cushion');
Query OK, 1 row affected (0.00 sec)
mysql>
mysql> insert into REPAIRS values ('C2004','Rs.150','Seats','-');
Query OK, 1 row affected (0.03 sec)
mysql>
mysql> insert into REPAIRS values ('C2005','Rs.330','Handles','Nut-Bolts');
Query OK, 1 row affected (0.02 sec)
ROUTES TABLE:-
mysql>
mysql> insert into ROUTES values (513,'Gawanpada','Vashi Station','45 Mins');
Query OK, 1 row affected (0.09 sec)
mysql>
mysql> insert into ROUTES values (524,'Borivali Station(E)','A.P.M.C
'> Vashi','105 Mins');
Query OK, 1 row affected (0.03 sec)
mysql>
mysql> insert into ROUTES values (396,'Mulund Station(W)','Andheri
'> Station','115 Mins');
Query OK, 1 row affected (0.02 sec)
mysql>
mysql> insert into ROUTES values (521,'Shivaji Park','Koparkhairne Extn','85
'> Mins');
Query OK, 1 row affected (0.01 sec)
mysql>
mysql> select * from ROUTES;
+----------+---------------------+-------------------+------------+
| ROUTE_NO | STARTING_S | DESTINATION_S | TIME_TAKEN |
+----------+---------------------+-------------------+------------+
| 513 | Gawanpada | Vashi Station | 45 Mins |
| 524 | Borivali Station(E) | A.P.M.C Vashi | 105 Mins |
| 396 | Mulund Station(W) | Andheri Station | 115 Mins |
| 521 | Shivaji Park | Koparkhairne Extn | 85 Mins |
+----------+---------------------+-------------------+------------+
4 rows in set (0.19 sec)
BUS DEPOT SYSTEM INFORMATION TECHNOLOGY
WORK_FOR TABLE:-
mysql>
mysql> insert into WORK_FOR values ('101','A1001');
Query OK, 1 row affected (0.03 sec)
mysql>
mysql> insert into WORK_FOR values ('101','A1002');
Query OK, 1 row affected (0.01 sec)
mysql>
mysql> insert into WORK_FOR values ('102','A1003');
Query OK, 1 row affected (0.03 sec)
mysql>
mysql> insert into WORK_FOR values ('102','A1004');
Query OK, 1 row affected (0.03 sec)
mysql>
mysql> insert into WORK_FOR values ('103','A1005');
Query OK, 1 row affected (0.03 sec)
mysql>
mysql> insert into WORK_FOR values ('103','A1006');
Query OK, 1 row affected (0.03 sec)
mysql>
mysql> insert into WORK_FOR values ('104','A1007');
Query OK, 1 row affected (0.01 sec)
mysql>
mysql> insert into WORK_FOR values ('104','A1008');
Query OK, 1 row affected (0.03 sec)
mysql>
mysql>
mysql> select * from WORK_FOR;
+-----------+----------+
| AREA_CODE | STAFF_ID |
+-----------+----------+
| 101 | A1001 |
| 101 | A1002 |
| 102 | A1003 |
| 102 | A1004 |
| 103 | A1005 |
| 103 | A1006 |
| 104 | A1007 |
| 104 | A1008 |
+-----------+----------+
BUS DEPOT SYSTEM INFORMATION TECHNOLOGY
+----------+
| STAFF_ID |
+----------+
| A1002 |
| A1001 |
| A1005 |
+----------+
3 rows in set (0.05 sec)
+----------+-------------------+
| ROUTE_NO | STARTING_S |
+----------+-------------------+
| 513 | Gawanpada |
| 396 | Mulund Station(W) |
| 521 | Shivaji Park |
+----------+-------------------+
3 rows in set (0.05 sec)
+--------------+-------------+---------------+---------------+
| COMPLAINT_NO | AMOUNT_REQD | PART_REPAIRED | PART_REPLACED |
+--------------+-------------+---------------+---------------+
| C2001 | Rs.250 | Clutch | Clutch Plate |
| C2003 | Rs.350 | Seats | Cushion |
| C2004 | Rs.150 | Seats | - |
| C2001 | Rs.250 | Clutch | Clutch Plate |
| C2003 | Rs.350 | Seats | Cushion |
| C2004 | Rs.150 | Seats | - |
+--------------+-------------+---------------+---------------+
6 rows in set (0.03 sec)
BUS DEPOT SYSTEM INFORMATION TECHNOLOGY
+-----------------+
| N_DEPT |
+-----------------+
| DEONAR DEPOT |
| GHATKOPAR DEPOT |
| BORIVALI DEPOT |
+-----------------+
3 rows in set (0.09 sec)
+--------------------+
| MODEL_NUMBER |
+--------------------+
| BHARAT-1 DIESEL |
| BHARAT-1 DIESEL |
| BHARAT-3 CNG |
| BHARAT-3 CNG |
| BHARAT-3 CNG |
| BHARAT-1 DIESEL |
+--------------------+
6 rows in set (0.03 sec)
+----------+
| ROUTE_NO |
+----------+
| 513 |
| 524 |
| 396 |
| 521 |
+----------+
4 rows in set (0.00 sec)
BUS DEPOT SYSTEM INFORMATION TECHNOLOGY
+----------+
| EMP_NAME |
+----------+
| Niraj |
| Harish |
| Mohan |
+----------+
3 rows in set (0.00 sec)
+-------------------+
| length (EMP_NAME) |
+-------------------+
| 5 |
| 6 |
| 5 |
| 6 |
| 4 |
+-------------------+
5 rows in set (0.02 sec)
+-------------+
| POWER (5,3) |
+-------------+
| 125 |
+-------------+
1 row in set (0.03 sec)
+--------------------+-------------------+
| sin(5) | cos(6) |
+--------------------+-------------------+
| -0.958924274663138 | 0.960170286650366 |
BUS DEPOT SYSTEM INFORMATION TECHNOLOGY
+--------------------+-------------------+
1 row in set (0.00 sec)
+-------------------+
| AVG(BUS_CAPACITY) |
+-------------------+
| 81.3333 |
+-------------------+
1 row in set (0.03 sec)
+-----------------+
| AVG(D_CAPACITY) |
+-----------------+
| 950 |
+-----------------+
1 row in set (0.00 sec)
+-----------------+
| AVG(D_CAPACITY) |
+-----------------+
| 300 |
| 500 |
| 1000 |
| 2000 |
+-----------------+
4 rows in set (0.05 sec)
BUS DEPOT SYSTEM INFORMATION TECHNOLOGY
14)
mysql> SELECT BUS_LICENSE ,MIN(BUS_CAPACITY) FROM BUSES WHERE
MODEL_NUMBER='BHARAT-1 DIESEL'OR MODEL_NUMBER='BHARAT-3 CNG' GROUP BY
BUS_LICENSE ;
+---------------+-------------------+
| BUS_LICENSE | MIN(BUS_CAPACITY) |
+---------------+-------------------+
| MH-43-CX-2135 | 72 |
| MH-43-DF-1087 | 72 |
| MH-43-SA-8546 | 72 |
| MH-43-ST-5478 | 72 |
| MH-43-ST-9876 | 72 |
| MH-43-VB-0987 | 72 |
+---------------+-------------------+
6 rows in set (0.00 sec)
+-----------------+-------------------+
| MODEL_NUMBER | MIN(BUS_CAPACITY) |
+-----------------+-------------------+
| BHARAT-1 DIESEL | 72 |
| BHARAT-2 PETROL | 100 |
| BHARAT-3 CNG | 72 |
+-----------------+-------------------+
3 rows in set (0.00 sec)
16) Give name and id of all the employees who worked on shift A and
on date 4-mar-06
17) Give staff_id and name from the staff of depots who had shift A or
B
+------------------------+
| STAFF_ID EMP_NAME |
+------------------------+
| A1006 Sajid |
| A1007 Salman |
| A1008 Aamir |
| A1009 Suresh |
| A1010 Ramesh |
| A1001 Harish |
| A1002 Niraj |
| A1003 Raja |
| A1004 Mohan |
| A1005 Prasad |
+------------------------+
+--------------+
| COMPLAINT_NO |
+--------------+
| C2001 |
| C2003 |
| C2004 |
| C2001 |
| C2003 |
| C2004 |
+--------------+
+-----------------+---------------+
| MODEL_NUMBER | BUS_LICENSE |
+-----------------+---------------+
+-----------------+---------------+
BUS DEPOT SYSTEM INFORMATION TECHNOLOGY
CONCLUSION
AS we have completed the project we are sure the problems in the existing system or the
problems in current databases of the Result would definitely overcome.
The “BUS DEPOT SYSTEM” process made computerized to reduce human errors and to
increase the efficiency of performing operation on the databases. The main focus of this project
is to reduce the problems being faced by the Administrator and lessen human efforts. The
maintenance of the records is made efficient, as all the records are stored in the SQL++ database,
through which data can be retrieved easily.
If the numbers of records are very large then user has to just type in the Query string and use
gets the results immediately. The editing is also made simpler.
BUS DEPOT SYSTEM INFORMATION TECHNOLOGY
BIBLIOGRAPHY
Oracle University Oracle 9i book