Posted By

geekzspot on 01/11/13


Tagged


Versions (?)

Oracle SQL IF


 / Published in: SQL
 

This approximates an "IF" Statement using SQL

  1. SELECT DECODE('if this', 'matches this', 'then use this', 'and, optionally, otherwise use this') FROM DUAL;

Report this snippet  

You need to login to post a comment.