GeekInterview.com
Series: Subject: Topic:
Question: 196 of 206

Explain an outer join?

An outer join includes rows from tables when there are no matching values in the tables.
Asked by: Interview Candidate | Asked on: Oct 13th, 2004
Showing Answers 1 - 3 of 3 Answers
Guest

Answered On : Aug 11th, 2006

suppose i have two tables emp(emp id, sal, isn) and stud(stud id, isn,total_mark).

now i join the two tables using outer join.

if i take sal from emp and total_mark from stud ,then after the join

all the rows from the stud table will be there where as only selected rows from emp as per the condition will be there.

  
Login to rate this answer.

3 types.

Left outer Join----left table unmatched valyes are included.
Right Outer Join---right table unmatched values are included.
Full outer Join----Both table unmatched values are selected.

Yes  1 User has rated as useful.
  
Login to rate this answer.
lrsantosh

Answered On : Aug 18th, 2011

View all answers by lrsantosh

Outer Join is a type of join where the matching rows from the given tables are selected for sure and it follows following criteria to select unmatched rows.
1. LEFT OUTER JOIN it will give All Matching + Unmatching rows of Left table in SQL.
2. RIGHT OUTER JOIN it will give All Matching + Unmatching rows of Right table in SQL.
3. FULL OUTER JOIN it will give All Matching + Unmatching rows of Both tables in SQL.

Hope this helps.

  
Login to rate this answer.

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

Related Open Questions

Ads

Connect

twitter fb Linkedin GPlus RSS

Ads

Interview Question

 Ask Interview Question?

 

Latest Questions

Interview & Career Tips

Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.