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
  -
Â