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;
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;
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;