Hi there,
I am getting this strange behaviour and was wondering if somebody can explain this?
I want to create an activity for when NETPR in CDPOS changed to 0 but when I look for 0s the table is empty.
Query 1: My first entry happens to be a case that I am looking for.
SELECT DISTINCT FNAME,VALUE_NEW from CDPOS
WHERE FNAME = 'NETPR'
ORDER BY VALUE_NEW
LIMIT 1
FNAME VALUE_NEW
NETPR 0.00
Query 2: But I get an empty table when I use these conditions.
SELECT DISTINCT FNAME,VALUE_NEW
FROM CDPOS
WHERE FNAME = 'NETPR' AND VALUE_NEW = '0.00'
FNAME VALUE_NEW
-
Next I wanted to see if my VALUE_NEW = '0.00' might be wrong somehow.
Why do I get different smallest values '0.000' and '0.00' from query 3 and query 4 respectively?
Query 3
SELECT DISTINCT VALUE_NEW from CDPOS
ORDER BY VALUE_NEW
VALUE_NEW
0.000
1.000
Query 4
SELECT DISTINCT FNAME, VALUE_NEW
FROM CDPOS
WHERE FNAME = 'NETPR'
ORDER BY VALUE_NEW
FNAME VALUE_NEW
NETPR 0.00
NETPR 0.01
NETPR 0.01-
Query 5: Looking for multiple strings with 0 get's me an empty table again.
SELECT DISTINCT FNAME,VALUE_NEW
FROM CDPOS
WHERE FNAME = 'NETPR' AND VALUE_NEW IN ('0','0.0','0.00','0.000')
ORDER BY VALUE_NEW
FNAME VALUE_NEW
-