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 |
Hi Can any one help regarding below INPUT NAME LOC Ram hyd Ram ban Raj chn Raj Pun Sam del OUPUT NAME LOC Ram Hyd ban Raj chn pun sam del
how to find no.of records in sequntial file itself?
i have source data like empno,enmae 11 ,aa 12 ,bb i want output like empno,ename 11 ,aa 12 ,bb 11 ,aa 12 ,bb
hi.... am facing typical problem in every interview " I need some critical scenarios faced in real time" plz help me guys
How complex jobs are implemented in datstage to improve performance?
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
How can we perform 2nd time extraction of client database without accepting the data which is already loaded in first time extraction?
which is the most complex job in your career? Please tell me answer?
What is the diff between sort performed at sort stage and the stream sort performed at the input of few stages in DS Enterprise edition?
What is the Difference Between DataStage 7.5 version and 8.1 Version?
how will u design file watch jobs?
What steps should be taken to improve Datastage jobs?