SQL & SQL Queries Flashcards

1
Q

When would you use a CASE statement?

A

When you want your query to return records that meet certain conditions using an if/then statement.

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

Why would you use a CAST function?

A

Converts one datatype to another.

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

Why would you use a COALESCE function?

A

To return non-null values in a list.

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

What function would you use to add strings together to create a unique identifier?

A

CONCAT

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