Body Language

You might also like

You are on page 1of 35

SQL*Plus: Release 11.2.0.1.

0 Production on Sat Oct 28 00:43:45 2017

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

Enter user-name: system

Enter password:

ERROR:

ORA-01017: invalid username/password; logon denied

Enter user-name: system

Enter password:

Connected to:

Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production

With the Partitioning, OLAP, Data Mining and Real Application Testing options

SQL> create public synonym cust2 for customer;

Synonym created.

SQL> alter table customer add(phone_no varchar(10));

Table altered.

SQL> select* from customer;

CUST_NAME CUST_STREE CUST_CITY PHONE_NO


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

shubham s.t, road pune

swap s.n, road pune

SQL> alter table customer remove(phone_no);

alter table customer remove(phone_no)

ERROR at line 1:

ORA-01735: invalid ALTER TABLE option

SQL> alter table customer delet(phone_no);

alter table customer delet(phone_no)

ERROR at line 1:

ORA-01735: invalid ALTER TABLE option

SQL> alter table customer delete(phone_no);

alter table customer delete(phone_no)

ERROR at line 1:

ORA-01735: invalid ALTER TABLE option

SQL> alter table customer drop(phone_no);

Table altered.
SQL> select* from customer;

CUST_NAME CUST_STREE CUST_CITY

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

shubham s.t, road pune

swap s.n, road pune

SQL>

SQL> select branch_name from branch;

BRANCH_NAM

----------

akurdi

nigdi

SQL> select* from b.cust_name,b.loan_no,amount from borrower b inner join loan l on


b.loan_no=l.loan_no;

select* from b.cust_name,b.loan_no,amount from borrower b inner join loan l on b.loan_no=l.loan_no

ERROR at line 1:

ORA-00933: SQL command not properly ended

SQL> select from b.cust_name,b.loan_no,amount from borrower b inner join loan l on


b.loan_no=l.loan_no;

select from b.cust_name,b.loan_no,amount from borrower b inner join loan l on b.loan_no=l.loan_no

ERROR at line 1:

ORA-00936: missing expression


SQL> select b.cust_name,b.loan_no,amount from borrower b inner join loan l on b.loan_no=l.loan_no;

CUST_NAME LOAN_NO AMOUNT

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

burad 110 1000

shubham 112 4000

SQL> select b.cust_name,b.loan_no,amount from borrower b outer join loan l on b.loan_no=l.loan_no;

select b.cust_name,b.loan_no,amount from borrower b outer join loan l on b.loan_no=l.loan_no

ERROR at line 1:

ORA-00933: SQL command not properly ended

SQL> select b.cust_namr,b.loan_no,branch_name from borrower b inner join loan l on


b.loan_no=l.loan_no weher l.branch_name='akurdi'ordered by b.cust_name;

select b.cust_namr,b.loan_no,branch_name from borrower b inner join loan l on b.loan_no=l.loan_no


weher l.branch_name='akurdi'ordered by b.cust_name

ERROR at line 1:

ORA-00933: SQL command not properly ended

SQL> select b.cust_namr,b.loan_no,branch_name from borrower b inner join loan l on


b.loan_no=l.loan_no weher l.branch_name='akurdi' ordered by b.cust_name;

select b.cust_namr,b.loan_no,branch_name from borrower b inner join loan l on b.loan_no=l.loan_no


weher l.branch_name='akurdi' ordered by b.cust_name

*
ERROR at line 1:

ORA-00933: SQL command not properly ended

SQL> select b.cust_namr,b.loan_no,branch_name from borrower b inner join loan l on


b.loan_no=l.loan_no where l.branch_name='akurdi' ordered by b.cust_name;

select b.cust_namr,b.loan_no,branch_name from borrower b inner join loan l on b.loan_no=l.loan_no


where l.branch_name='akurdi' ordered by b.cust_name

ERROR at line 1:

ORA-00933: SQL command not properly ended

SQL> select b.cust_namr,b.loan_no,branch_name from borrower b inner join loan l on


b.loan_no=l.loan_no where l.branch_name='akurdi' order by b.cust_name;

select b.cust_namr,b.loan_no,branch_name from borrower b inner join loan l on b.loan_no=l.loan_no


where l.branch_name='akurdi' order by b.cust_name

ERROR at line 1:

ORA-00904: "B"."CUST_NAMR": invalid identifier

SQL> select b.cust_name,b.loan_no,branch_name from borrower b inner join loan l on


b.loan_no=l.loan_no where l.branch_name='akurdi' order by b.cust_name;

CUST_NAME LOAN_NO BRANCH_NAM

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

burad 110 akurdi

SQL> select cust_name from depositer union select cust_name from borrower;
CUST_NAME

----------

burad

shubh

shubham

swap

SQL> select cust_name from depositer intersect select cust_name from borrower;

CUST_NAME

----------

shubham

SQL> select avg(balance) from account where branch_name='akurdi';

AVG(BALANCE)

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

1066.66667

SQL> select count(cust_name),branch from branch order by branch;

select count(cust_name),branch from branch order by branch

ERROR at line 1:

ORA-00904: "BRANCH": invalid identifier

SQL> select branch_name,count(branch_name) from account a inner join depositer on


a.aa_no=a.acc_no ordered by branch_name;
select branch_name,count(branch_name) from account a inner join depositer on a.aa_no=a.acc_no
ordered by branch_name

ERROR at line 1:

ORA-00933: SQL command not properly ended

SQL> select branch_name,count(branch_name) from account a inner join depositer on


a.aa_no=a.acc_no order by branch_name;

select branch_name,count(branch_name) from account a inner join depositer on a.aa_no=a.acc_no


order by branch_name

ERROR at line 1:

ORA-00904: "A"."AA_NO": invalid identifier

SQL> select branch_name,count(branch_name) from account a inner join depositer on


a.acc_no=a.acc_no order by branch_name;

select branch_name,count(branch_name) from account a inner join depositer on a.acc_no=a.acc_no


order by branch_name

ERROR at line 1:

ORA-00937: not a single-group group function

SQL> select branch_name,count(branch_name),acc_no, from account a inner join depositer on


a.acc_no=a.acc_no order by branch_name;

select branch_name,count(branch_name),acc_no, from account a inner join depositer on


a.acc_no=a.acc_no order by branch_name

ERROR at line 1:
ORA-00936: missing expression

SQL> select branch_name,count(branch_name),acc_no from account a inner join depositer on


a.acc_no=a.acc_no order by branch_name;

select branch_name,count(branch_name),acc_no from account a inner join depositer on


a.acc_no=a.acc_no order by branch_name

ERROR at line 1:

ORA-00918: column ambiguously defined

SQL> select branch_name,count(branch_name) from account a inner join depositer on


a.acc_no=a.acc_no order by branch_name;

select branch_name,count(branch_name) from account a inner join depositer on a.acc_no=a.acc_no


order by branch_name

ERROR at line 1:

ORA-00937: not a single-group group function

SQL> delete from branch where branch_name='nigdi';

1 row deleted.

SQL> alter table branch modify(assects);

alter table branch modify(assects)

ERROR at line 1:

ORA-00904: "ASSECTS": invalid identifier


SQL> alter table branch modify(assets);

alter table branch modify(assets)

ERROR at line 1:

ORA-00904: "ASSETS": invalid identifier

SQL> select loan_no from loan where branch_name='akurdi' and amount>1200;

LOAN_NO

----------

111

SQL> select cust_name from depositer union select cust_name from borrower;

CUST_NAME

----------

burad

shubh

shubham

swap

SQL> select cust_name from depositer intersect select cust_name from borrower;

CUST_NAME

----------

shubham
SQL> select avg(balance),branch_name from account order by branch_name;

select avg(balance),branch_name from account order by branch_name

ERROR at line 1:

ORA-00937: not a single-group group function

SQL> select avg(balance) from account order by branch_name;

AVG(BALANCE)

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

1300

SQL> group by

SP2-0042: unknown command "group by" - rest of line ignored.

SQL>

SQL> select avg(balance),branch_name from account group by branch_name;

AVG(BALANCE) BRANCH_NAM

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

2000 nigdi

1066.66667 akurdi

SQL> select avg(balance),branch_name from account where avg(balance)>1200;

select avg(balance),branch_name from account where avg(balance)>1200

ERROR at line 1:

ORA-00934: group function is not allowed here


SQL> select avg(balance),branch_name from account group by branch_name where avg(balance)>1200

2 :

SQL> select avg(balance),branch_name from account group by branch_name where avg(balance)>1200;

select avg(balance),branch_name from account group by branch_name where avg(balance)>1200

ERROR at line 1:

ORA-00933: SQL command not properly ended

SQL> select avg(balance),branch_name from account group by branch_name and avg(balance)>1200;

select avg(balance),branch_name from account group by branch_name and avg(balance)>1200

ERROR at line 1:

ORA-00933: SQL command not properly ended

SQL> select barnch_name from accountgroup by branch_name having avg(balance)>1200;

select barnch_name from accountgroup by branch_name having avg(balance)>1200

ERROR at line 1:

ORA-00933: SQL command not properly ended

SQL> select barnch_name from account group by branch_name having avg(balance)>1200;

select barnch_name from account group by branch_name having avg(balance)>1200

*
ERROR at line 1:

ORA-00904: "BARNCH_NAME": invalid identifier

SQL> select branch_name from account group by branch_name having avg(balance)>1200;

BRANCH_NAM

----------

nigdi

SQL>

SQL> select count(cust_name) no from customer;

NO

----------

SQL>

SQL> select count(cust_name) from customer;

COUNT(CUST_NAME)

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

SQL> select sun(amount) total from loan;

select sun(amount) total from loan

ERROR at line 1:

ORA-00904: "SUN": invalid identifier


SQL> select sum(amount) total from loan;

TOTAL

----------

7000

SQL>

SQL>

SQL> select * from account;

ACC_NO BRANCH_NAM BALANCE

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

100 akurdi 100

101 akurdi 100

102 nigdi 2000

103 akurdi 3000

SQL> select * from account acc_no=(select acc_no from account where branch_name='akurdi' and
balance=100);

select * from account acc_no=(select acc_no from account where branch_name='akurdi' and
balance=100)

ERROR at line 1:

ORA-00933: SQL command not properly ended

SQL> select* from account acc_no =(select acc_no from account where branch_name='akurdi' and
balance=100);
select* from account acc_no =(select acc_no from account where branch_name='akurdi' and
balance=100)

ERROR at line 1:

ORA-00933: SQL command not properly ended

SQL> select* from account acc_no =(select acc_no from account where branch_name='akurdi' and
balance='100');

select* from account acc_no =(select acc_no from account where branch_name='akurdi' and
balance='100')

ERROR at line 1:

ORA-00933: SQL command not properly ended

SQL> select* from account acc_no =(select acc_o from account where branch_name='akurdi' and
balance='100');

select* from account acc_no =(select acc_o from account where branch_name='akurdi' and
balance='100')

ERROR at line 1:

ORA-00933: SQL command not properly ended

SQL> select max(balance) from account;

MAX(BALANC

----------

3000
SQL> select branch_name from account where branch_name like 'a%';

BRANCH_NAM

----------

akurdi

akurdi

akurdi

SQL> create viev aa as select acc_no,balance from account;

create viev aa as select acc_no,balance from account

ERROR at line 1:

ORA-00901: invalid CREATE command

SQL> create view aa as select acc_no,balance from account;

View created.

SQL> select* from aa;

ACC_NO BALANCE

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

100 100

101 100

102 2000

103 3000
SQL> update account set(acc_no)='1111'where (acc_no='100');

1 row updated.

SQL> select * from account;

ACC_NO BRANCH_NAM BALANCE

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

1111 akurdi 100

101 akurdi 100

102 nigdi 2000

103 akurdi 3000

SQL> update account set(acc_no)='100' where (acc_no='1111');

1 row updated.

SQL> select * from account;

ACC_NO BRANCH_NAM BALANCE

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

100 akurdi 100

101 akurdi 100

102 nigdi 2000

103 akurdi 3000

SQL> select* from account acc_no =(select acc_no from account where branch_name='akurdi' and
balance=100);
select* from account acc_no =(select acc_no from account where branch_name='akurdi' and
balance=100)

ERROR at line 1:

ORA-00933: SQL command not properly ended

SQL> alter table account modify column balance varchar(20);

alter table account modify column balance varchar(20)

ERROR at line 1:

ORA-00905: missing keyword

SQL> alter table account modify column acc_no varchar(20);

alter table account modify column acc_no varchar(20)

ERROR at line 1:

ORA-00905: missing keyword

SQL> alter table account modify column balance to bal varchar(10);

alter table account modify column balance to bal varchar(10)

ERROR at line 1:

ORA-00905: missing keyword

SQL> alter table account modify column balance varchar(10);


alter table account modify column balance varchar(10)

ERROR at line 1:

ORA-00905: missing keyword

SQL>

SQL*Plus: Release 11.2.0.1.0 Production on Sat Oct 28 00:43:45 2017

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

Enter user-name: system

Enter password:

ERROR:

ORA-01017: invalid username/password; logon denied

Enter user-name: system

Enter password:

Connected to:

Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production

With the Partitioning, OLAP, Data Mining and Real Application Testing options

SQL> create public synonym cust2 for customer;

Synonym created.

SQL> alter table customer add(phone_no varchar(10));


Table altered.

SQL> select* from customer;

CUST_NAME CUST_STREE CUST_CITY PHONE_NO

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

shubham s.t, road pune

swap s.n, road pune

SQL> alter table customer remove(phone_no);

alter table customer remove(phone_no)

ERROR at line 1:

ORA-01735: invalid ALTER TABLE option

SQL> alter table customer delet(phone_no);

alter table customer delet(phone_no)

ERROR at line 1:

ORA-01735: invalid ALTER TABLE option

SQL> alter table customer delete(phone_no);

alter table customer delete(phone_no)

ERROR at line 1:

ORA-01735: invalid ALTER TABLE option


SQL> alter table customer drop(phone_no);

Table altered.

SQL> select* from customer;

CUST_NAME CUST_STREE CUST_CITY

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

shubham s.t, road pune

swap s.n, road pune

SQL>

SQL> select branch_name from branch;

BRANCH_NAM

----------

akurdi

nigdi

SQL> select* from b.cust_name,b.loan_no,amount from borrower b inner join loan l on


b.loan_no=l.loan_no;

select* from b.cust_name,b.loan_no,amount from borrower b inner join loan l on b.loan_no=l.loan_no

ERROR at line 1:

ORA-00933: SQL command not properly ended


SQL> select from b.cust_name,b.loan_no,amount from borrower b inner join loan l on
b.loan_no=l.loan_no;

select from b.cust_name,b.loan_no,amount from borrower b inner join loan l on b.loan_no=l.loan_no

ERROR at line 1:

ORA-00936: missing expression

SQL> select b.cust_name,b.loan_no,amount from borrower b inner join loan l on b.loan_no=l.loan_no;

CUST_NAME LOAN_NO AMOUNT

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

burad 110 1000

shubham 112 4000

SQL> select b.cust_name,b.loan_no,amount from borrower b outer join loan l on b.loan_no=l.loan_no;

select b.cust_name,b.loan_no,amount from borrower b outer join loan l on b.loan_no=l.loan_no

ERROR at line 1:

ORA-00933: SQL command not properly ended

SQL> select b.cust_namr,b.loan_no,branch_name from borrower b inner join loan l on


b.loan_no=l.loan_no weher l.branch_name='akurdi'ordered by b.cust_name;

select b.cust_namr,b.loan_no,branch_name from borrower b inner join loan l on b.loan_no=l.loan_no


weher l.branch_name='akurdi'ordered by b.cust_name

ERROR at line 1:

ORA-00933: SQL command not properly ended


SQL> select b.cust_namr,b.loan_no,branch_name from borrower b inner join loan l on
b.loan_no=l.loan_no weher l.branch_name='akurdi' ordered by b.cust_name;

select b.cust_namr,b.loan_no,branch_name from borrower b inner join loan l on b.loan_no=l.loan_no


weher l.branch_name='akurdi' ordered by b.cust_name

ERROR at line 1:

ORA-00933: SQL command not properly ended

SQL> select b.cust_namr,b.loan_no,branch_name from borrower b inner join loan l on


b.loan_no=l.loan_no where l.branch_name='akurdi' ordered by b.cust_name;

select b.cust_namr,b.loan_no,branch_name from borrower b inner join loan l on b.loan_no=l.loan_no


where l.branch_name='akurdi' ordered by b.cust_name

ERROR at line 1:

ORA-00933: SQL command not properly ended

SQL> select b.cust_namr,b.loan_no,branch_name from borrower b inner join loan l on


b.loan_no=l.loan_no where l.branch_name='akurdi' order by b.cust_name;

select b.cust_namr,b.loan_no,branch_name from borrower b inner join loan l on b.loan_no=l.loan_no


where l.branch_name='akurdi' order by b.cust_name

ERROR at line 1:

ORA-00904: "B"."CUST_NAMR": invalid identifier

SQL> select b.cust_name,b.loan_no,branch_name from borrower b inner join loan l on


b.loan_no=l.loan_no where l.branch_name='akurdi' order by b.cust_name;
CUST_NAME LOAN_NO BRANCH_NAM

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

burad 110 akurdi

SQL> select cust_name from depositer union select cust_name from borrower;

CUST_NAME

----------

burad

shubh

shubham

swap

SQL> select cust_name from depositer intersect select cust_name from borrower;

CUST_NAME

----------

shubham

SQL> select avg(balance) from account where branch_name='akurdi';

AVG(BALANCE)

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

1066.66667

SQL> select count(cust_name),branch from branch order by branch;

select count(cust_name),branch from branch order by branch

ERROR at line 1:
ORA-00904: "BRANCH": invalid identifier

SQL> select branch_name,count(branch_name) from account a inner join depositer on


a.aa_no=a.acc_no ordered by branch_name;

select branch_name,count(branch_name) from account a inner join depositer on a.aa_no=a.acc_no


ordered by branch_name

ERROR at line 1:

ORA-00933: SQL command not properly ended

SQL> select branch_name,count(branch_name) from account a inner join depositer on


a.aa_no=a.acc_no order by branch_name;

select branch_name,count(branch_name) from account a inner join depositer on a.aa_no=a.acc_no


order by branch_name

ERROR at line 1:

ORA-00904: "A"."AA_NO": invalid identifier

SQL> select branch_name,count(branch_name) from account a inner join depositer on


a.acc_no=a.acc_no order by branch_name;

select branch_name,count(branch_name) from account a inner join depositer on a.acc_no=a.acc_no


order by branch_name

ERROR at line 1:

ORA-00937: not a single-group group function


SQL> select branch_name,count(branch_name),acc_no, from account a inner join depositer on
a.acc_no=a.acc_no order by branch_name;

select branch_name,count(branch_name),acc_no, from account a inner join depositer on


a.acc_no=a.acc_no order by branch_name

ERROR at line 1:

ORA-00936: missing expression

SQL> select branch_name,count(branch_name),acc_no from account a inner join depositer on


a.acc_no=a.acc_no order by branch_name;

select branch_name,count(branch_name),acc_no from account a inner join depositer on


a.acc_no=a.acc_no order by branch_name

ERROR at line 1:

ORA-00918: column ambiguously defined

SQL> select branch_name,count(branch_name) from account a inner join depositer on


a.acc_no=a.acc_no order by branch_name;

select branch_name,count(branch_name) from account a inner join depositer on a.acc_no=a.acc_no


order by branch_name

ERROR at line 1:

ORA-00937: not a single-group group function

SQL> delete from branch where branch_name='nigdi';

1 row deleted.
SQL> alter table branch modify(assects);

alter table branch modify(assects)

ERROR at line 1:

ORA-00904: "ASSECTS": invalid identifier

SQL> alter table branch modify(assets);

alter table branch modify(assets)

ERROR at line 1:

ORA-00904: "ASSETS": invalid identifier

SQL> select loan_no from loan where branch_name='akurdi' and amount>1200;

LOAN_NO

----------

111

SQL> select cust_name from depositer union select cust_name from borrower;

CUST_NAME

----------

burad

shubh

shubham

swap
SQL> select cust_name from depositer intersect select cust_name from borrower;

CUST_NAME

----------

shubham

SQL> select avg(balance),branch_name from account order by branch_name;

select avg(balance),branch_name from account order by branch_name

ERROR at line 1:

ORA-00937: not a single-group group function

SQL> select avg(balance) from account order by branch_name;

AVG(BALANCE)

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

1300

SQL> group by

SP2-0042: unknown command "group by" - rest of line ignored.

SQL>

SQL> select avg(balance),branch_name from account group by branch_name;

AVG(BALANCE) BRANCH_NAM

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

2000 nigdi

1066.66667 akurdi
SQL> select avg(balance),branch_name from account where avg(balance)>1200;

select avg(balance),branch_name from account where avg(balance)>1200

ERROR at line 1:

ORA-00934: group function is not allowed here

SQL> select avg(balance),branch_name from account group by branch_name where avg(balance)>1200

2 :

SQL> select avg(balance),branch_name from account group by branch_name where avg(balance)>1200;

select avg(balance),branch_name from account group by branch_name where avg(balance)>1200

ERROR at line 1:

ORA-00933: SQL command not properly ended

SQL> select avg(balance),branch_name from account group by branch_name and avg(balance)>1200;

select avg(balance),branch_name from account group by branch_name and avg(balance)>1200

ERROR at line 1:

ORA-00933: SQL command not properly ended

SQL> select barnch_name from accountgroup by branch_name having avg(balance)>1200;

select barnch_name from accountgroup by branch_name having avg(balance)>1200

ERROR at line 1:

ORA-00933: SQL command not properly ended


SQL> select barnch_name from account group by branch_name having avg(balance)>1200;

select barnch_name from account group by branch_name having avg(balance)>1200

ERROR at line 1:

ORA-00904: "BARNCH_NAME": invalid identifier

SQL> select branch_name from account group by branch_name having avg(balance)>1200;

BRANCH_NAM

----------

nigdi

SQL>

SQL> select count(cust_name) no from customer;

NO

----------

SQL>

SQL> select count(cust_name) from customer;

COUNT(CUST_NAME)

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

2
SQL> select sun(amount) total from loan;

select sun(amount) total from loan

ERROR at line 1:

ORA-00904: "SUN": invalid identifier

SQL> select sum(amount) total from loan;

TOTAL

----------

7000

SQL>

SQL>

SQL> select * from account;

ACC_NO BRANCH_NAM BALANCE

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

100 akurdi 100

101 akurdi 100

102 nigdi 2000

103 akurdi 3000

SQL> select * from account acc_no=(select acc_no from account where branch_name='akurdi' and
balance=100);

select * from account acc_no=(select acc_no from account where branch_name='akurdi' and
balance=100)

*
ERROR at line 1:

ORA-00933: SQL command not properly ended

SQL> select* from account acc_no =(select acc_no from account where branch_name='akurdi' and
balance=100);

select* from account acc_no =(select acc_no from account where branch_name='akurdi' and
balance=100)

ERROR at line 1:

ORA-00933: SQL command not properly ended

SQL> select* from account acc_no =(select acc_no from account where branch_name='akurdi' and
balance='100');

select* from account acc_no =(select acc_no from account where branch_name='akurdi' and
balance='100')

ERROR at line 1:

ORA-00933: SQL command not properly ended

SQL> select* from account acc_no =(select acc_o from account where branch_name='akurdi' and
balance='100');

select* from account acc_no =(select acc_o from account where branch_name='akurdi' and
balance='100')

ERROR at line 1:

ORA-00933: SQL command not properly ended


SQL> select max(balance) from account;

MAX(BALANC

----------

3000

SQL> select branch_name from account where branch_name like 'a%';

BRANCH_NAM

----------

akurdi

akurdi

akurdi

SQL> create viev aa as select acc_no,balance from account;

create viev aa as select acc_no,balance from account

ERROR at line 1:

ORA-00901: invalid CREATE command

SQL> create view aa as select acc_no,balance from account;

View created.

SQL> select* from aa;

ACC_NO BALANCE

---------- ----------
100 100

101 100

102 2000

103 3000

SQL> update account set(acc_no)='1111'where (acc_no='100');

1 row updated.

SQL> select * from account;

ACC_NO BRANCH_NAM BALANCE

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

1111 akurdi 100

101 akurdi 100

102 nigdi 2000

103 akurdi 3000

SQL> update account set(acc_no)='100' where (acc_no='1111');

1 row updated.

SQL> select * from account;

ACC_NO BRANCH_NAM BALANCE

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

100 akurdi 100

101 akurdi 100

102 nigdi 2000


103 akurdi 3000

SQL> select* from account acc_no =(select acc_no from account where branch_name='akurdi' and
balance=100);

select* from account acc_no =(select acc_no from account where branch_name='akurdi' and
balance=100)

ERROR at line 1:

ORA-00933: SQL command not properly ended

SQL> alter table account modify column balance varchar(20);

alter table account modify column balance varchar(20)

ERROR at line 1:

ORA-00905: missing keyword

SQL> alter table account modify column acc_no varchar(20);

alter table account modify column acc_no varchar(20)

ERROR at line 1:

ORA-00905: missing keyword

SQL> alter table account modify column balance to bal varchar(10);

alter table account modify column balance to bal varchar(10)

ERROR at line 1:
ORA-00905: missing keyword

SQL> alter table account modify column balance varchar(10);

alter table account modify column balance varchar(10)

ERROR at line 1:

ORA-00905: missing keyword

SQL>

You might also like