Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

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

1070


Explain about post-relational databases?

1074


How to use online Backups?

2256


Write short notes on manual refreshes.

2781


Explain the role of indexing in databases?

1184


Who are naive users?

1046


What is DB Development software?

2114


There is a trigger defined for INSERT operations on a table, in an OLTP system. The trigger is written to instantiate a COM object and pass the newly insterted rows to it for some custom processing. What do you think of this implementation? Can this be implemented better?

2466


Write the fastest query to find out how many rows exist in a table?

1168


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?

1111


What is the physical representation for a many-to-many relationship?

1133


What is dbms explain in brief?

1076


Explain about a primary key?

1037


Explain the rollup operator?

1136


Explain about network model?

1047