sql Flashcards

1
Q

turning str uppercase

A

Ucase()/Upper()

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

length of a str

A

Length()

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

concatenates/joins multiple str

A

concat()

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

removes extra spaces from right/left/both

A

ltrim(),rtrim(),trim()

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

extracts certain no of char from any part of string

A

substr()/mid()

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

searches for one str inside another and returns position

A

instr()

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

extracts char from left/right

A

left()/right()

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

extracts parts of date

A

month(), year()

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

extracts date from date and time

A

date()

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

What does Dayname() return?

A

It returns the name of the weekday.

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

What does Now() return?

A

It returns the current date and time.

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

What does MONTHNAME() return?

A

It returns the name of the month for a given date.

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

What does DAY() return?

A

It returns an integer value which represents the day of a month (1-31) of a specified date.

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