Practical 1 Chinmayi
Practical 1 Chinmayi
Practical 1 Chinmayi
following questions.
I)TABLE:SCHOOLBUS
RNO AREA CAP NO DIST TRAVEL CHARGES
1 VASANT KUNJ 100 120 10 SHIVAM TRAVELS 100000
2 HAUZ KHAS 80 80 10 ANAND TRAVELS 85000
3 PITUMPURA 60 55 30 ANAND TRAVELS 60000
4 ROHINI 100 90 35 ANAND TRAVELS 100000
5 YAMUNA VIHAR 50 60 20 BHALLA CO. 55000
6 KRISHNA VIHAR 70 80 30 YADAV CO. 80000
7 VASUNDHRA 100 110 20 YADAV CO. 100000
8 PASCHIM VIHAR 40 40 20 SPEED TRAVELS 55000
9 SAKET 120 120 10 SPEED TRAVELS 100000
10 JANAKPURI 100 100 20 KISAN TOURS 95000
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 3
Server version: 5.5.15 MySQL Community Server (GPL)
Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights
reserved.
Type 'help;' or '\h' for help. Type '\c' to clear the current input
statement.
mysql> INSERT INTO SCHOOLBUS VALUES(2, "HAUZ KHAS", 80, 80, 10,
"ANAND TRAVELS", 85000);
Query OK, 1 row affected (0.07 sec)
mysql> INSERT INTO SCHOOLBUS VALUES(4, "ROHINI", 100, 90, 35, "ANAND
TRAVELS", 100000);
Query OK, 1 row affected (0.08 sec)
mysql> INSERT INTO SCHOOLBUS VALUES(5, "YAMUNA VIHAR", 50, 60, 20,
"BHALA CO.", 55000);
Query OK, 1 row affected (0.08 sec)
mysql> INSERT INTO SCHOOLBUS VALUES(6, "KRISHNA VIHAR", 70, 80, 30,
"YADAV CO.", 80000);
Query OK, 1 row affected (0.09 sec)
mysql> INSERT INTO SCHOOLBUS VALUES(8, "PASCHIM VIHAR", 40, 40, 20,
"SPEED TRAVELS", 55000);
Query OK, 1 row affected (0.04 sec)
mysql> INSERT INTO SCHOOLBUS VALUES(9, "SAKET", 120, 120, 10, "SPEED
TRAVELS", 100000);
Query OK, 1 row affected (0.10 sec)
mysql> INSERT INTO SCHOOLBUS VALUES(10, "JANAKPURI", 100, 100, 20,
"KISAN TOURS", 95000);
Query OK, 1 row affected (0.08 sec)
+-----+---------------+------+------+------+----------------+--------+
+-----+---------------+------+------+------+----------------+--------+