String FUNCTIONS Flashcards

(30 cards)

1
Q

ASCII

A

Returns the ASCII value for the specific character

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

CHAR

A

Returns the character based on the ASCII code

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

CHARINDEX

A

Returns the position of a sub string in a string

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

CONCAT

A

Adds two or more strings together

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

Concat with +

A

Adds two or more strings together

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

CONCAT_WS

A

Adds two or more strings together with a separator

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

DATALENGTH

A

Returns the number of bytes used to represent an expression

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

DIFFERENCE

A

Compares two SOUNDEX values, and returns an integer value

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

FORMAT

A

formats a value with the specified format

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

LEFT

A

extracts a number of characters from a string (starting at the left)

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

LEN

A

Returns the length of the string

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

LOWER

A

converts a string to lower-case

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

LTRIM

A

removes leading spaces from a string

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

NCHAR

A

returns the Unicode character based on the number code

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

PATINDEX

A

returns the position of a pattern in a string

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

QUOTENAME

A

returns a Unicode string with delimiters added to make the string a valid SQL server delimited identifier

17
Q

REPLACE

A

Replaces all occurrences of a sub string within a string, with a new sub string

18
Q

REPLICATE

A

repeats a string a specified number of times

19
Q

REVERSE

A

reverses a string and returns the result

20
Q

RIGHT

A

Extracts a number of characters from a string (starting from right)

21
Q

RTRIM

A

removes trailing spaces from a string

22
Q

SOUNDEX

A

returns a four-character code to evaluate the similarity of two strings

23
Q

SPACE

A

Returns a string of the specified number of space characters

24
Q

STR

A

Returns a number as string

25
STUFF
deletes a part of a string and then inserts another part into the string, starting at a specified position
26
SUBSTRING
extracts some characters from a string
27
TANSLATE
returns the string from the first argument after the characters specified in the second argument are translated into the characters specified in the third argument
28
TRIM
removes leading and trailing spaces (or other specified characters) from a string
29
UNICODE
returns the Unicode value for the first character of the input expression
30
UPPER
converts a string to upper-case