What is a self join? Explain it with an example?
Answer Posted / mike
You lost one Anju as Employee , because Anju does not have a
manager.
You should use left outer join in this case.
select e1.emp_name 'manager',e2.emp_name 'employee'
from employees e1 left outer join employees e2
on e1.emp_id=e2.emp_manager_id
| Is This Answer Correct ? | 0 Yes | 2 No |
Post New Answer View All Answers
Explain about relational database management systems?
Write short notes on manual refreshes.
What is database design and development?
Write the fastest query to find out how many rows exist in a table?
Does QTP Support the Propjects which are running in Dot Net? As we are starting with new project in Dot net need to use automation tool?Please advice & let me know what would be the best.
What is dbms and its application?
Explain about a primary key?
How would you design a database for an online site, which would average a million hits a day?
How to use timestamp datatypes
fact table and dimension table containg one to many relationship or many to one relastionship
Explain the cube operator?
How long can an error message be in raiseerror function?
What is normalization? Explain different levels of normalization?
What are the constraints on severity level in raiseerror?
What are the main phases of database development?