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
Why do we use exception activity in Datastage?
i WANTED TO USE THE RANGE LOOKUP SCENARIO IN DATASTAGE 7.5.2 SRVER JOB.i HAVE A DATE FIELD IN SOURCE AND I SHOULD MATCH IT WITH A FIELD IN LOOKUP FILE.BUT,THE FIELDS SHOULD MATCH EVEN THOUGH THERE IS SOME RANGE.CAN SOMEONE TELL ME HOW CAN I DO THAT. THANKS
how many rows sorted in sort stage by default in server jobs
What is the difference between server job and parallel jobs?
How to implement complex jobs in data stage?
Difference between ‘validated ok’ and ‘compiled’ in data stage?
What are the differences between datastage and informatica?
Demonstrate experience in maintaining quality process standards?
If we take 2 tables(like emp and dept),we use join stage and how to improve the performance?
Name the command line functions to import and export the DS jobs?
What are the types of containers?
What are stage variables and constants?
Define Job control?
What is usage analysis in datastage?
Define repository tables in datastage?