SQL scalar functions Flashcards

1
Q

What scalar functions.

A

SQL scalar functions return a single value, based on the input value

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Converts to upper case?

A

UCASE() - Converts a field to upper case

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What function converts to lower case?

A

LCASE() - Converts a field to lower case

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What extracts characters from a text field?

A

MID() - Extract characters from a text field

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What returns the length of a text field?

A

LEN() - Returns the length of a text field

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What rounds a numeric field to the number of decimals specified?

A

ROUND() - Rounds a numeric field to the number of decimals specified

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What function returns the current system date and time?

A

NOW() - Returns the current system date and time

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What formats how a field is to be displayed?

A

FORMAT() - Formats how a field is to be displayed

How well did you know this?
1
Not at all
2
3
4
5
Perfectly