Sample Table
Emp Id Emp Name Manger Id
1001 arun 1004
1002 Bharath 1004
1003 Chitra 1004
1004 Devi 1005
1005 Eli 1006
1006 Fatima 1007
1007 Ganesh 1008
when i select manager id 1004 it should display three names arun,bharath,chitra and if i select 1005 it should display devi,arun,bharath,chitra
FYI - ManagerId is same as the EMPId.
How can I prepare the sql with out using functions?