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
How many Key we can define in remove duplicate stage?
what is stage is used for below Input columns: dept|mgr|employee|salary Output columns: mgr|count of employee per mgr|avg salary per dept note: each dept has one mgr and each mgr has many employees
what is the custome stage in datastage? how can we impliment that one? plz tell me
What is a merge?
Highlight the main features of datastage?
Field,NVL,INDEX,REPLACE,TRANSLATE,COLESC
Describe the architecture of datastage?
Differentiate between hash file and sequential file?
What is the process of killing a job in datastage?
i have a job with 3 possibiliies finish with ststus ok abbort warning how do you handle these 3 in job sequence? explain the situation where you have appiled scd in your project? chandu
What is the project in datastage?
What is the difference between informatica and datastage?
What are the main differences you have observed between 7.x and 8.x version of datastage?
What is "fatal error/rdbms code 3996" error?
What is difference between join, merge and lookup stage?