SQL IF ELSE Condition
SELECT CASE WHEN WVTProduct.standardAmount = 'test' THEN '0' ELSE '1' END AS FieldName, * FROM Table_Name