i got two columns in mysql 2005
Grade and Remarks
i need to do is.. when i input integers in grade column
1,1.25,1.50,1.75,2,2.25,2.50,2.75,3
then Remarks will show PASSED
and when Grade is 4 up
remarks will show FAILED
(OPTIONAL)----------------------
if Grade is null -
then Remarks will show UNKNOWN -
--------------------------------
this is my code but it doesnt works on sql computed column formula
IIF(Grade >=4, 'Failed', IIF(Grade IN (1,1.25,1.50,1.75,2,2.25,2.50,2.75,3), 'PASSED','UNKNOWN'))
can anyone revise my code into.. sql formula code?? thanks
Grade and Remarks
i need to do is.. when i input integers in grade column
1,1.25,1.50,1.75,2,2.25,2.50,2.75,3
then Remarks will show PASSED
and when Grade is 4 up
remarks will show FAILED
(OPTIONAL)----------------------
if Grade is null -
then Remarks will show UNKNOWN -
--------------------------------
this is my code but it doesnt works on sql computed column formula
IIF(Grade >=4, 'Failed', IIF(Grade IN (1,1.25,1.50,1.75,2,2.25,2.50,2.75,3), 'PASSED','UNKNOWN'))
can anyone revise my code into.. sql formula code?? thanks