Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What are the different types of joins in sql?

Answer Posted / hr@tgksolutions.com

• Inner Join: Returns matching rows from both tables.
• Left Join (Left Outer Join): Returns all rows from the left table and matching rows from the right table.
• Right Join (Right Outer Join): Returns all rows from the right table and matching rows from the left table.
• Full Join (Full Outer Join): Returns all rows when there’s a match in one of the tables.
• Cross Join: Returns the Cartesian product of both tables.
• Self Join: A table joins itself.
Example Query:
SELECT e1.name, e2.name AS manager_name
FROM employees e1
JOIN employees e2 ON e1.manager_id = e2.id;

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to order siblings in oracle hierarchy queries?

980


Where the sql database files are stored?

956


What is a relationship and what are they?

1049


tell us something about heap tables. : Sql dba

1048


how to increment dates by 1 in mysql? : Sql dba

925


How delete a row in sql?

926


How do you take the union of two tables in sql?

933


How do I save the results of sql query in a file?

926


What is pl sql script?

976


What is the difference between left outer join and left join?

943


What is varchar example?

973


What is the purpose of using pl/sql?

1075


How to display Row Number with Records in Oracle SQL Plus?

991


How to load data with sql*loader?

995


What problem one might face while writing log information to a data-base table in pl/sql?

1066