What is a self join? Explain it with an example?

Answer Posted / mona

A table join to itself is known as self join.

select emp.ename,mngr.ename from emp.empl,emp.mngr where
emp.mngrno=mngr.empno

Is This Answer Correct ?    15 Yes 16 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Hi , any one can help me on the same,this is regarding the Informatica Function doc,i want to know how developer is will develop the mapping. pl forwar the any function doc .just for my references. svlc75@yahoo.co.in

1796


What you can do to remove data from the cache and query plans from memory for testing the performance of a query repeatedly?

779


In which table collections errors are stored.

2150


When installing the datastage7.5x2 edtion iam getting aproblem i.e the cpu count is 2 but the cpu count in installation is one . how can i install in my p.c (system is dual core).

2007


Which data type cannot be used as a parameter in a udf?

753


What is an application role and explain a scenario when you would use one?

767


In which database can extended stored procedures be added?

703


Explain about a primary key?

753


Can an extended stored procedure be called from inside a user-defined function?

831


Explain about relational operator join?

802


Pgm A calls Pgm B and pgm B uses cursor, when pgm B is called second time, the program is abending saying the cursor is opened? Why?

2222


Explain about xml databases?

826


How can you log an error to the server event log from a stored procedure?

801


You are testing the performance of a query the first time you run the query, the performance is slow. the second time you run the query, the performance is fast. why is this?

718


Explain about query and reporting.

1859