Posted: Sun Apr 10, 2011 10:20 pm Post subject: ESQL query
Novice
Joined: 22 Mar 2008 Posts: 18
Hi,
I have a requirement like to convert a particular elemtn based on its value. I am using a case function like this
RETURN CASE status
WHEN '1234.56' THEN 'Status1'
WHEN '2200.33' THEN 'Status2'
WHEN '3700.845 THEN 'Status3'
However, I have a case where the value can come in as 3200.*** (wildcard after the decimal) and has to be converted to Status4. Which means, the value may be 3200.123 or 3200.250 or 3200.455 and it needs to be converted to Status4. Could anyone please help me in handling this one?
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum