What is a self join? Explain it with an example?
Answer Posted / dhivya
lets take a table A which is joined to itself with its
alias is said to be self join.Most familiar example is
finding the manager of the employee..
select e1.emp_id manager_id,e2.emp_id employee_id from
employee e1,employee e2
where e1.emp_id=e2.emp_id
| Is This Answer Correct ? | 66 Yes | 37 No |
Post New Answer View All Answers
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
Who are naive users?
What is the physical representation for a many-to-many relationship?
What is an application role and explain a scenario when you would use one?
How can you fix a poorly performing query?
Explain about network model?
What are the types of database model?
You have two tables with a one to many join based on a field named id. You need to find records in the parent table that are not represented in the child table. how would you accomplish this?
What is the maximum length of an extended property?
What is dbms and its application?
Explain what a database is?
I have a few records all are same structures data, I want to store data in multiple targets how
Which data type cannot be used as a parameter in a udf?
What are the constraints on severity level in raiseerror?
How can you log an error to the server event log from a stored procedure?