Dbms Lab 4
Dbms Lab 4
Table created.
1 row created.
SQL> /
Enter value for name: B
Enter value for city: Thane
Enter value for assets: 6000000
old 1: insert into branch values('&name','&city',&assets)
new 1: insert into branch values('B ','Thane',6000000)
1 row created.
SQL> /
Enter value for name: C
Enter value for city: Mumbai
Enter value for assets: 7000000
old 1: insert into branch values('&name','&city',&assets)
new 1: insert into branch values('C','Mumbai',7000000)
1 row created.
SQL> /
Enter value for name: D
Enter value for city: Ghatkopar
Enter value for assets: 10000000r
old 1: insert into branch values('&name','&city',&assets)
new 1: insert into branch values('D','Ghatkopar',10000000r)
insert into branch values('D','Ghatkopar',10000000r)
*
ERROR at line 1:
ORA-00917: missing comma
SQL> /
Enter value for name: D
Enter value for city: Ghatkopar
Enter value for assets: 10000000
old 1: insert into branch values('&name','&city',&assets)
new 1: insert into branch values('D','Ghatkopar',10000000)
1 row created.
SQL> /
Enter value for name: E
Enter value for city: Dadar
Enter value for assets: 2000000000
old 1: insert into branch values('&name','&city',&assets)
new 1: insert into branch values('E','Dadar',2000000000)
1 row created.
1 row updated.
Table created.
Table altered.
1 row created.
1 row created.
6 rows selected.
0 rows deleted.
0 rows deleted.
1 row deleted.
1 row deleted.
1 row updated.
SQL> update branch set Assets=50000 where name='B';
1 row updated.
COUNT(NAME)
-----------
1
COUNT(NAME)
-----------
3
ASSETS
----------
2000000000
10000000
7000000
5000000
50000
Table created.
Table created.
Table altered.
1 row created.
AVG(ASSETS)
-----------
5000000
50000
10000000
7000000
2000000000