Noget som:
ORDER BY CASE
WHEN Column1 IS NOT NULL THEN Column1
ELSE Column2
END
Samme som at skrive:
ORDER BY COALESCE(Column1, Column2)
Begge burde fungere i enhver fornuftig RDBMS.
Noget som:
ORDER BY CASE
WHEN Column1 IS NOT NULL THEN Column1
ELSE Column2
END
Samme som at skrive:
ORDER BY COALESCE(Column1, Column2)
Begge burde fungere i enhver fornuftig RDBMS.