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


Please Help Members By Posting Answers For Below Questions

Explaine the implimentation of scd's in ds indetail, please send me step by step procedure to perform scd's 1,2,3. Please replay for this, Thanks in advance

1745


What is the flow of loading data into fact & dimensional tables?

593


Hi everyone,I have kept a project Sales And Distribution for a pharmaceutical company.can anybody explain one complex business rule that we had in our project and how did you accomplish it using DS?

1757


how to use self join using datastage ? can u tell me using stage how can we implemnet the self join

4558


What is the difference between informatica and datastage?

652






Define oconv () and iconv () functions in datastage?

877


What are stage variables and constants?

701


What is the command line function to import and export the ds jobs?

681


What are the steps required to kill the job in Datastage?

683


What are the components of ascential data stage?

648


What is the difference between account and directory options ?

620


Explain the situation where you have applied SCD in your project?

1558


for example You have One Table with 4 Columns (Mgr ID, Department ID, Salary, Employee ID). Can you find out the Average Salary and Number of Employee present per Department and Mgr

772


How many types of hash files are there?

610


Explain usage analysis in datastage?

652