Chapter 8 Application Flashcards

1
Q

Use FORMAT(number,decimal) in a select statement to return Department rows with salary appearing as an integer.

A

Select dName, format(salary,0) from department;

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

Use CAST(expression AS castType*) in a select statement to return Department rows with salary appearing as an integer.

A

Select dName, cast(salary as signed) from department;

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

Use CONVERT(expression, castType) in a select statement to return Department rows with salary appearing as an integer.

A

Select dName, convert(salary, signed) from department;

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