Home » SQL & PL/SQL » SQL & PL/SQL » condition in WHERE clause
condition in WHERE clause [message #20320] Mon, 13 May 2002 10:58 Go to next message
Parag dave
Messages: 8
Registered: February 2002
Junior Member
Hi,
I am trying to do a report where the user types
the manager's name ( if he wants only for that perticular manager's report) or he types 0 (character
zero) and ZZZZ for all managers.
my code looks like this.
select
---
,----
from
----
, ----
where
----
and replace(substr(t4.member_name,1,8),',','') >= upper(nvl('&&4','0')
and replace(substr(t4.member_name,1,8),',','') <= upper(nvl('&&5','ZZZZ')

I substrim the name because the longest name is 8 char.
and replace comma between lastname and name.
this gives no rows. if i do like insted of >= or <=
it gives me rows.
Please help.
Thanks.
Re: condition in WHERE clause [message #20368 is a reply to message #20320] Fri, 17 May 2002 05:13 Go to previous message
LI810
Messages: 25
Registered: February 2002
Junior Member
My guess '&&4' is wild char . you cna use it only in like clause
upper(nvl('&&4','0')
Previous Topic: Using Wild charchters in where clause sentence
Next Topic: Please help me "NO LISTNER ERROR"
Goto Forum:
  


Current Time: Fri Apr 19 05:28:18 CDT 2024