Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> SQL: getting data for a null value column ??
Hello Oracle DBA's
I need the output like step 8.
What SQl statement is reqired without using any intemediate views..
bla..bla
i am execuiting one dynamic SQL in PL/SQL and this is my sample scripts
for simplification
(Please just scan the setps 1 to 8 to undestand my requirement)
the requirement is written in the follwoing way.
create table tabB(
bbankcode varchar(10), bbankname varchar(15));
3.Insert data into tabA(Transaction table)
insert into tabA(bankcode,bankname) values ('001','firstbank'); insert into tabA(bankcode,bankname) values ('002','secondbank'); insert into tabA(bankcode,bankname) values ('003','thirdbank'); insert into tabA(bankcode,bankname) values ('004','fourthbank'); insert into tabA(bankcode,bankname) values ('004','Firstunionbank'); 4.Insert data into tabB(Master table)
5.disply the current data from from tabA SQL> select * from tabA;
BANKCODE BANKNAME
-------------------- ------------------------------
001 firstbank 002 secondbank 003 thirdbank 004 fourthbank 004 Firstunionbank
6.disply the current data from from tabB SQL> select * from tabB;
BBANKCODE BBANKNAME
-------------------- ------------------------------
001 firstbank 003 thirdbank
7.Disply data using join
SQL> select a.BANKCODE,b.BBANKNAME from tabA a,tabB b where
a.BANKCODE=b.BBANKCODE(+);
BANKCODE BBANKNAME
-------------------- ------------------------------
001 firstbank 002 003 thirdbank
8.To get the below out put what SQL,I should write
SQL>??????????????????????????????????????? BANKCODE BBANKNAMEReceived on Tue Aug 02 2005 - 20:20:58 CDT
-------------------- ------------------------------
001 firstbank 002 secondbank 003 thirdbank 004 fourthbank 004 Firstunionbank
![]() |
![]() |