When i do call this in console prompt I get the correct value, but when it comes to inserting it, it inserts a null value? What do you guys think of that?


Code:
INSERT INTO clist2 SELECT CEIL((o + m + p)/6)* Cost) as FinalCost ...