Skip to main content

Scalar Functions

The following scalar functions are supported in expressions. They work exactly like the SQL functions with the same name (and in fact call the corresponding SQL function).

Mathematical Functions

FunctionFunctionFunctionFunction
absacosasinatan
atn2ceilingcoscot
degreesexpfloorlog
log10pipowerradians
randroundsignsin
sqrtsquaretan

String Functions

FunctionFunctionFunctionFunction
asciicharcharindexconcat
concat_wsdifferenceformatleft
lenlowerltrimnchar
patindexquotenamereplacereplicate
reverserightrtrimsoundex
spacestrstring_escapestuff
substringtranslatetrimunicode
unistrupper

Conditional Functions

FunctionFunctionFunctionFunction
choosecoalesceiifisnull
isnumericnullifgreatestleast

Bitwise Functions

FunctionFunctionFunctionFunction
bit_countget_bitleft_shiftright_shift
set_bit

Date Functions

FunctionFunctionFunction
datefrompartsdaymonth
year

Other Functions

Function
newid