Function expressions - Amazon Redshift
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Function expressions


Any built-in can be used as an expression. The syntax for a function call is the name of a function followed by its argument list in parentheses.

function ( [expression [, expression...]] )



Any built-in function. For some example functions, see SQL functions reference.


Any expression(s) matching the data type and parameter count expected by the function.


abs (variable) select avg (qtysold + 3) from sales; select dateadd (day,30,caldate) as plus30days from date;