SQL scalar functions Flashcards
What scalar functions.
SQL scalar functions return a single value, based on the input value
Converts to upper case?
UCASE() - Converts a field to upper case
What function converts to lower case?
LCASE() - Converts a field to lower case
What extracts characters from a text field?
MID() - Extract characters from a text field
What returns the length of a text field?
LEN() - Returns the length of a text field
What rounds a numeric field to the number of decimals specified?
ROUND() - Rounds a numeric field to the number of decimals specified
What function returns the current system date and time?
NOW() - Returns the current system date and time
What formats how a field is to be displayed?
FORMAT() - Formats how a field is to be displayed