What are the all different types of Joins in SQL Server
2000, Anybody can explain each join with definition..Thanks
in advance....

Answer Posted / j.jyothy

There are 1.equijoins 2.self joins,3.Crossjoins.
4.Outerjoins->Leftouterjoin,Rightouterjoin,Fullouterjoin.
1.EquiJoins:They are also called innerjoins,In this only
matched rows are displayed to the user.
Example:
select eno,ename,sal,e.deptno,d.deptno,dname,loc from emp e
innerjoin dept d on e.deptno=d.deptno
2.Selfjoin:if the table is joined with table itself.
select distinct (e1.empno),e1.ename,e1.sal from emp e1 join
emp e2 on e1.sal=2* e2.sal(It dispalys emp deatails salary
exactly 2 times with any other emp salary)

Is This Answer Correct ?    35 Yes 11 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

List the various tools available for performance tuning?

472


Can we use having clause without group by?

539


What is indexing and its types?

510


What is the security principal at the server level that represents your session?

545


What specific conditions database should meet, before you can bulk copy data into it using bcp?

521






how many bits ip address consist of? : Sql server database administration

443


what is a schema in sql server 2005? Explain how to create a new schema in a database? : Sql server database administration

518


What is checkpoint in sql server?

604


What are the difficulties faced in cube development? : sql server analysis services, ssas

595


Explain temporary table vs table variable by using cursor alternative?

510


How to delete a login name in ms sql server?

520


How is sql server used?

537


Explain the stored procedure?

620


What are the acid properties?

545


How does clustered and non clustered index work?

507