Thread: Simple Query
View Single Post

   
  #1 (permalink)  
Old 02-27-2008, 06:29 AM
rAinDeEr
 
Posts: n/a
Default Simple Query

Hi,
Need a query which satisfies the following condition ::

I have a table with fields

emp_no emp_name supervisor
111 harry 222
222 potter null


When I give an emp_no( For eg 111) the output should be

emp_name Supervisor
harry potter

When I give an emp_no( 222) the output should be

emp_name Supervisor
potter null


Thanks in advance

Reply With Quote