C# Corner
Tech
News
Videos
Forums
Trainings
Books
Events
More
Interviews
Jobs
Live
Learn
Career
Members
Blogs
Challenges
Certifications
Bounties
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Refer
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
.NET
ADO.NET
Android
ASP.NET
C#
Databases & DBA
Design Patterns & Practices
Java
Learn iOS Programming
OOP/OOD
SharePoint
Software Testing
Web Development
WPF
View All
1
Reply
What is the basic rule to join 2 tables ?
Ravi Kumar
12y
3.2k
0
Reply
Delete Row
Delete Column
Insert Link
×
Insert
Cancel
Embed YouTube Video
×
Width (%)
Height (%)
Insert
Cancel
Table Options
×
Rows
Columns
First row as header
Create Table
Insert Image
×
Selected file:
Alignment
Left
Center
Right
Select an image from your device to upload
Upload to Server
Cancel
Submit
Joining more than two tablesJoins are not limited to two tables. You can join more than two tables in a single SQL statement.Inner joinsAn inner join is a method of combining two tables that discards rows of either table that do not match any row of the other table. The matching is based on the join condition.Outer joinsAn outer join is a method of combining two or more tables so that the result includes unmatched rows of one of the tables, or of both tables. The matching is based on the join condition.Full outer joinAn full outer join is a method of combining tables so that the result includes unmatched rows of both tables.Left outer joinA left outer join is a method of combining tables. The result includes unmatched rows from only the table that is specified before the LEFT OUTER JOIN clause.Right outer joinA right outer join is a method of combining tables. The result includes unmatched rows from only the table that is specified after the RIGHT OUTER JOIN clause.SQL rules for statements that contain join operationsTypically, DB2 performs a join operation first, before it evaluates the other clauses of the SELECT statement.Sample data for joinsYou can use the sample PARTS table and the PRODUCTS table to practice various types of joins.
Abhay Shanker
12y
0
Role of Assemably in .NET?
how to implement security in webservice in asp.net
Message