What is a self join ?
Answers were Sorted based on User's Feedback
Answer / anil_abbireddy
A table is joined itself is called self join or Self
referential integrity.
| Is This Answer Correct ? | 12 Yes | 0 No |
Answer / rupesh.dbms@gmail.com
It is the join in which result is obtained by equating two
coloumns with same values of one table for example
emp(eno,ename,mgrno) eno is primary key and mgrno is
recursive foreign key
select e.eno,e.ename,m.mgrno,m.ename mgrname
from emp e, emp m
where m.eno=e.mgrno;
note : one table emp is replicated as m , e and then
result is obtained.
| Is This Answer Correct ? | 9 Yes | 1 No |
Answer / anbu
Self join is defined as a table is viewd by two different
ways and then the join can be done with the same table.
By another way the definition is 'A table can be joined
with itself using sel join'.
| Is This Answer Correct ? | 7 Yes | 1 No |
Answer / ram
Normally we joins for retrieve data from more than 1 table
In some cases we need to join 1 table itself to join itself
condition is table having two column with same data type &
size but name are different
In emp table empno & mgrno are two columns example for this
select ename,job,sal,e.empno,m.mgrno from emp e inner join
emp m on m.mgrno=e.empno
| Is This Answer Correct ? | 2 Yes | 2 No |
What are the advantages of pl sql?
Is primary key clustered index?
What are the dml statements?
How do I view a view in sql?
What is a database? Explain
What is bind reference and how can it be created?
How can you load multi line records? : aql loader
Is primary key is clustered index?
what is overloading procedure or overloading function ?
What is meant by temporal data?
What is pl/sql table? Why it is used?
What is character functions?
Oracle (3259)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)