How to use column value as an operator

How to use column value as an operator

 

  


Hi Gurus,

I have column which has value of some comparison operator. I need to use
this column as a operator for my query.

ex: select * from tabl1 where salary (select opr from tabl1 where b=
1) (select salary from tabl1 where b=1);

let opr be '>' for b=1 then

I need to have the records of all from tabl1 where salary is > than
salary of b=1.

Please let me know as soon as possible.


Regards,
Ashok.



The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments.

WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.

www.wipro.com

Oracle LazyDBA home page