The IF statement is part of QlikView Engine. So using the Preceding Loading feature is really transparent what Database Server you use.
LOAD code, IF (flag="Y","YES","NO") as FLAGGED;
SQL SELECT code,flag from SybaseTable;
Note above that the preceding loading means the LOAD is just before the SQL statement and terminated with semicolon ; just before the SQL keyword.