‎2007 Sep 27 11:57 AM
I would like to query a data specify the field is not empty, like
Select ... from bseg where
augdt <> ''.
if i use <>'', the query seems is not my expected. how can i do that. Thanks!
‎2007 Sep 27 11:58 AM
‎2007 Sep 27 11:58 AM
use <b>INITIAL or NULL</b> instead of ''.
Also use <b>NE</b> instead of <>.
Please reward if useful.
‎2007 Sep 27 11:59 AM
Hi ,
You can use
Select ... from bseg where
augdt ne space.
Regards
Arun
‎2007 Sep 27 12:00 PM
This being a date fields Use <b>AUGDT NE '00000000'</b>. This will do
Message was edited by:
Mohammed Jaleel
Message was edited by:
Mohammed Jaleel
‎2007 Sep 27 12:01 PM
Hi,
Try to use this :
Select ... from bseg.
if audgt is not initial.
do the processingt
endif.
Regards,
Hemant
‎2007 Sep 27 12:05 PM
Hi ..
You can write like this...
SELECT <FIELDS> FROM BSEG
WHERE AUGDT IS NOT INITIAL.
or
SELECT <FIELDS> FROM BSEG
WHERE AUGDT ne SPACE.
<b>Note: </b>BSEG is a Cluster table . so the Where condition is allowed only on the Primary key.
REWARD IF HELPFUL.