In which situation you use Self joins?

Answer Posted / arun anoop m

We use Self Join, if we have a table that references itself.


For example, In the Employee Table below MANAGERID column
references EMPLOYEEID column. So the table is said to
referencing itself.This is the right scenario where we can
use Self Join.

Is This Answer Correct ?    8 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you run a trace?

690


When setting replication, is it possible to have a publisher as 64 bit sql server and distributor or subscribers as a 32 bit sql server?

703


Explain different forms of normalization?

687


What are the different sql server versions?

682


Tell me what do you mean by an execution plan? Why is it used? How would you view it?

666






What is difference between unique and primary key?

651


How to set database to be read_only in ms sql server?

721


Can another user execute your local temporary stored procedures?

735


How to get the definition of a trigger back?

734


Explain external key management in sql server 2008

674


What is an active database?

762


what information is maintained within the msdb database? : Sql server administration

700


What is wide table?

698


Can sql server 2016 run on windows 7?

678


Explain about unique identifier data type in sql server?

683