‎2008 Aug 25 7:43 PM
Hi All,
I need to specify 2 conditions for BTRTL in select statement like btrtl should only be equal to both '1000' and '1001'.
How can we do this in a select statement.
thanks
‎2008 Aug 25 7:45 PM
Hi
u can use BTRTL NE 1000 and BTRTL NE 1001
or
Not BTRTL in ('1000', '1001')
‎2008 Aug 25 7:45 PM
Hi
u can use BTRTL NE 1000 and BTRTL NE 1001
or
Not BTRTL in ('1000', '1001')
‎2008 Aug 25 7:52 PM
Hi,
Thanks for the reply.
In my case btrtl equals to 1000 and 1001.
How can we do for this?
Thanks
‎2008 Aug 25 7:55 PM
WHERE BTRTL in ('1000','1001') OR Where (BTRTL EQ 1000 OR BTRTL EQ 1001)
u can use this, it acts union - pick all the values where BTRTL is equal to 1000 or BTRTL is equal to 1001.
At same time single record cannot hold both values 1000 & 1001 in BTRTL rite
‎2008 Aug 26 12:17 AM
‎2008 Aug 25 7:50 PM
> I need to specify 2 conditions for BTRTL in select statement like btrtl should only be equal to both '1000' and '1001'.
where ( BTRTL = '1000' or
BTRTL = '1001' ).
SOME THING LIKE THIS..
SELECT * FROM SFLIGHT
INTO FLIGHT
UP TO 1 ROWS
WHERE ( CARRID = 'AS' OR CARRID = 'BB' ).
ENDSELECT.
‎2008 Aug 25 7:50 PM