Geeks Talk

Prepare for your Next Interview




Reg:Joins

This is a discussion on Reg:Joins within the DB2 forums, part of the Databases category; Can anyone explain me diference between left/right joins ........?...


Go Back   Geeks Talk > Databases > DB2

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 07-30-2008
Junior Member
 
Join Date: Jul 2008
Location: Coimbatore
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Upendrapcu is on a distinguished road
Reg:Joins

Can anyone explain me diference between left/right joins ........?
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 07-30-2008
Junior Member
 
Join Date: Jul 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
sailajabetha is on a distinguished road
Re: Reg:Joins

When you begin building queries using OUTER JOIN, the SQL Standard considers the first table you name as the one on the "left," and the second table as the one on the "right." So, if you want all the rows from the first table and any matching rows from the second table, you'll use a LEFT OUTER JOIN. Conversely, if you want all the rows from the second table and any matching rows from the first table, you'll specify a RIGHT OUTER JOIN.
Since OUTER is an optional keywork here it is also called as Left/Right Joins.
Reply With Quote
Reply

  Geeks Talk > Databases > DB2


Thread Tools
Display Modes


Similar Threads

Thread Thread Starter Forum Replies Last Post
Types of Joins in SQL Adarsh B SQL Server 5 07-24-2008 03:21 AM
How the joins work in SQL savitha_shankar Database General 11 07-15-2008 11:06 AM
Joins udaykumarn Oracle 1 07-01-2008 11:15 PM
Types of Joins jyoti_02 SQL 1 05-10-2008 07:53 AM
tell me the query using joins and count! ramesh_vwk SQL 3 08-20-2007 05:42 AM


All times are GMT -4. The time now is 07:26 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Copyright © 2008 GeekInterview.com. All Rights Reserved