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

How to generate OIDS

2254


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

1077


Explain the role of indexing in databases?

1132


What is database design and development?

1017


How you can make a parameterized view?

1012


Explain what a database is?

1047


How to use timestamp datatypes

2039


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

1015


How long can an error message be in raiseerror function?

1002


Write short notes on manual refreshes.

2734


What is a database development?

964


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

977


To convert IDMS to DB2, how to deal with IDMS occurs and redefined clause?

4008


The count() function always returns a int value type what should you do if you need to count rows from a query which you know will return a value that is too large for an int value type?

997


Why does this query return 0?

1015