Recent Posts
Archives

PostHeaderIcon Ternary operator in Oracle PL/SQL

Abstract: we need the max of two dates

Use this:

decode((date1 - date2) - abs(date1 - date2), 0, date2, date1)

Leave a Reply