What is a self join? Explain it with an example?
Answer Posted / madhavi
Joining the table to itself is self join.
Example:
To find the manager name for each employee in the employee
table:
select e1.empno employee_id,e1.ename employee_name,e2.ename
manager_name,e2.empno employee_num from emp e1,emp e2 where
e1.empno=e2.mgr;
| Is This Answer Correct ? | 27 Yes | 17 No |
Post New Answer View All Answers
What are data modelling techniques?
Explain the cube operator?
What is the physical representation for a many-to-many relationship?
Explain the process of the user request and data generating?
How can you log an error to the server event log from a stored procedure?
How to generate OIDS
Write the fastest query to find out how many rows exist in a table?
How is data stored in dbms?
On friday, you issued several insert statements using query analyzer. You then verified the data had been correctly entered with a select statement on monday, your users report that the data is not there what happened?
How to combine two function together?
Explain about query and reporting.
How to read and create .LDC data files which are used by linguatic dictionary.
Hi my program is accesing data from two db2 databases.what is the bind card for this program to genarate plan? how to specify the two owners and two qualifiers in bind card
How can you fix a poorly performing query?
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