Exam objectives in this chapter:
Work with Data
Query data by using SELECT statements.
Implement data types.
Work with functions.
The previous chapter provided you with the foundations to T-SQL. This chapter starts by covering two of the principal query clauses—FROM and SELECT. It then continues by covering the data types supported by Microsoft SQL Server and the considerations in choosing the appropriate data types for your columns. This chapter also covers the use of built-in scalar functions, the CASE expression, and variations like ISNULL and COALESCE.
Lessons in this chapter: