tab1 tab2
1,a 1,d
2,b 3,c
perfoms outerjoin what is the o/p?
write sql query for outerjoin?
Answers were Sorted based on User's Feedback
OUTPUT:
1, a, d
2, b, NULL
3, NULL, c
SQL Query:
SELECT * FROM TAB1 FULL OUTER JOIN TAB2 ON
TAB1.key_column=TAB2.key_column;
or
SELECT * FROM TAB1,TAB2 WHERE
TAB1.key_column=TAB2.key_column(+)
UNION
SELECT * FROM TAB1,TAB2 WHERE
TAB1.key_column(+)=TAB2.key_column;
| Is This Answer Correct ? | 7 Yes | 0 No |
Answer / karthi
select * from tab1 full outer join tab2 on
tab1.key_column=tab2.key_column;
or
select * from tab1,tab2 where tab1.key_column(+)=tab2.key_column
union
select * from tab1,tab2 where
tab1.key_column=tab2.key_column(+);
| Is This Answer Correct ? | 4 Yes | 2 No |
How can we read latest records in a text file named file1.txt using seq file stage only? file1 having 100 records in that 5 record sare latest records.How can we read that latest records?
explain unit testing,systemtesting,integrated testing
what is the new version in Datastage ? what is the diff b/t New vesion & 7.5 version?
How To find the location of APT_confid file
In my project source data comes from MAINFRAME in files.so,This time data is coming as a binary file...I know for binary data we use Complex flat file stage..I have used it also..but on 'view data' data is not coming correctly..as it in MAINFRAME.give me some ideas..
Why do we use exception activity in Datastage?
How do you load dimension data and fact data? Which is first
What is the use of Row generator stage?
IS FILE SET CAN SUPPORT I/P AND O/P LINK AT A TIME?
what is meant by port ? what is the use of port ? what are the different type of ports and its usage
HOW CAN WE ABORT THE JOB IF THE RECORDS OF SOURCE FILE CONTAINS VALUE AS 'VIJAY'?
explain about completely flow of sequencers technicaly,without using example??explain about lookup,nullhandling?