What are the all different types of Joins in SQL Server
2000, Anybody can explain each join with definition..Thanks
in advance....
Answer Posted / siva prasad
In SQL Server 2000 we have three types of joins
1. Inner join
2. Outer Join
3. Cross Join
1. Inner Join: Inner Join is the default type of join, it
will producesses the result set, which contains matched
rows only.
syntax: select * from table1<innerjoin>table2
2. Outer Join: Outer join produces the results, which
contains matched rows and unmatched rows.
here we have three types of joins,
1.Left Outer Join 2.Right Outer Join 3.Full Outer Join
Left Outer Join: Left Outer Join producesses the results,
which contains all the rows from Left table and matched
rows from Right Table.
syntax: select * from table1<leftouterjoin>table2
Right Outer Join: Right Outer Join producesses the
resultset, which contains all the rows from right table and
matched rows from left table.
syntax:select * from table1<right outer join>table2
Full Outer Join: Full Outer Join producesses the resultset,
which contains all the rows from left table and all the
rows from right table.
syntax:select * from table1<fullouterjoin>table2
3.Cross Join: A join without having any condition is known
as Cross Join, in cross join every row in first table is
joins with every row in second table.
syntax: select * from table1<cross join>table2
Self Join: A join joins withitself is called self join
working with self joins we use Alias tables.
Is This Answer Correct ? | 154 Yes | 17 No |
Post New Answer View All Answers
What is thr feature of change data capture?
How can we call UDF(User Define Function) using C# code in ASP.net ?
How do you start single user mode in clustered installations?
What is it unwise to create wide clustered index keys?
What is a fan-out query in SQL Azure?
What are the new features of sql server 2012 reporting service?
What is 1nf normalization form?
What is multi-statement table-value user-defined function?
What are the advantages of stored procedure in sql server?
Explain the stored procedure?
What is the minimum and maximum number of partitions required for a measure group? : sql server analysis services, ssas
Please explain that what are the basic functions for master, msdb, model, tempdb and resource databases? : SQL Server Architecture
Explain what is log shipping?
What is the command used to recompile the stored procedure at run time?
Any one plz send me SQL Server Developer/DBA resume for 4 years experience