‎2010 Jan 29 5:22 AM
hi friends i am using OR in a select statement like this :
select single KAWRT from KONV into var2 where KNUMV = var1 and STUNR = 65 or STUNR = 60 .but what i want is that the result for this should be calculated as
KNUMV =var1 and (STUNR = 65 or STUNR =60)means result of STUNR = 65 or STUNR =60 should be AND with KNUMV =var1
when i tried like following :
select single KAWRT from KONV into var2 where KNUMV = var1 and STUNR =( 65 , 60)it is giving error.is there something wrong.
‎2010 Jan 29 5:28 AM
‎2010 Jan 29 5:28 AM
‎2010 Jan 29 5:29 AM
Hi Achal,
Have you tried this ?
SELECT SINGLE kawrt
FROM konv
INTO var2
WHERE knumv = var1 AND
( stunr = '65' OR stunr = '60' ) .
‎2010 Jan 29 5:30 AM
Hello
Try this:
select single KAWRT from KONV into var2 where
KNUMV = var1 and ( STUNR = '65' OR STUNR = '60' ).
‎2010 Jan 29 5:33 AM
Hi Anchal,
select single KAWRT from KONV into var2 where KNUMV = var1 and ( STUNR = 65 or STUNR = 60 ).
Manas M.
‎2010 Jan 29 5:37 AM