Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Pls can any one help me out to use in Statement in Sql i have script like bellow ie:
where
thx in adavance
ReviewStatus in ('N','R','RED','YELLOW') ;hi thx its working without Error.
But No date retrived
Its simlary to SqlServer IN Statement ? or exactely replacing my OR Condtion?
Thx Michale oncce agian.
but how can achive this .i dont want to considred case sensetive value.?how can i use wildcards?same sa wildmatch.i wll check my end too for wildcards
srini
Hi,
U cane use Wildmatch(FieldName,'*ABC')>0
will match the end string with ABC and starting with any.
'ABC*' will start with ABC and end with any.
Correct Manesh,
I only can add that the ">0" part is optional, it is implied. There is no difference between
Wildmatch(FieldName,'*ABC')>0
and
Wildmatch(FieldName,'*ABC')
Hi
I think its not working for me is im doing something wrong in script as bellow.
where
ReviewStatus ='N' OR ReviewStatus='R' OR ReviewStatus='RED' OR ReviewStatus='YELLOW' and ConsolidationFlag='NO';Vs
where Wildmatch(ReviewStatus,'N','R','RED','YELLOW') and ConsolidationFlag='NO';
Obviously you'll get diferent results. The first one should be:
(ReviewStatus ='N' OR ReviewStatus='R' OR ReviewStatus='RED' OR ReviewStatus='YELLOW') and ConsolidationFlag='NO'