I have created a view which has a simple query
create or replace view temp(EFTSLOAD, UOC, CODE) as
select eftsload, uoc,code from subjects where
cast (eftsload as numeric(5,3)) != cast((uoc/48) as numeric(5,3));
But my query select * from temp; gives me rows like
eftsload | uoc | code
0.125 6 ECONXXXX
0.5 24 HISTXXXX
The condition says eftsload != uoc/48 but I get rows where efts = 0.125 and uoc =6 which a violation as 6/48=0.125 and many other instances where the relation eftsload != uoc/48 is clearly not true
Why does this happen?