while using expr BETWEEN min AND max to get a minimum and maximum price from the database I'm experiencing some strange output.
QUERY: SELECT DISTINCT make, model, calibre, firearm_action, rrp, rrp BETWEEN 0 AND 750 FROM stock WHERE make LIKE '%WINCHESTER%'
which returns:
RRP: 650
RRP: 650
RRP: 0
RRP: 0
RRP: 0
RRP: 1100
RRP: 0
RRP: 0
RRP: 0
although when I slightly change the query to something more like:
QUERY: SELECT DISTINCT make, model, calibre, firearm_action, rrp, rrp BETWEEN 0 AND 1000 FROM stock WHERE make LIKE '%WINCHESTER%'
The results with RRP of 650 are gone, and yet 1100 appears when it should not (in the first query)
does anyone have an explanation for this? What am I missing?