tab1 tab2
1,a 1,d
2,b 3,c
perfoms outerjoin what is the o/p?
write sql query for outerjoin?
Answer Posted / subhash
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 |
Post New Answer View All Answers
What is usage analysis in datastage?
What is the difference between in process and inter process?
What are the functionalities of link collector?
What is the difference between an operational datastage and a data warehouse?
table actions available in oracle connector?
What is the roundrobin collector?
what is ds administrator used for?
Can you define merge?
Different ways a project can be moved to production ?...example ….export-import and Version control.
How will you move hashed file from one location to another location?
What is the precedence of stage variables,derivations, and constraints?
What are sequencers?
What is the use of datastage director?
What is quality stage?
Have you have ever worked in unix environment and why it is useful in datastage?