Chapter 7. Selecting the Data You Need

After completing this chapter, you will be able to:

  • Select data from single and multiple tables

  • Design and use scalar user-defined functions

  • Use system functions

  • Design and use stored procedures that return scalar values

  • Use the XML datatype

Databases store information. This chapter will show you how to build sentences to retrieve data from databases. The chapter starts by presenting simple Transact-SQL (T-SQL) SELECT statements. Next will follow information about using inner and outer joins for retrieving data from multiple tables. The chapter ends by examining XPATH and XQUERY statements for handling data in XML format. Since it is important to know how to obtain the right data in the most efficient manner, the ...

Get Microsoft® SQL Server™ 2005: Database Essentials Step by Step now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.