5. Getting More Than Simple Columns
“Facts are stubborn things.”
—Tobias SmollettGil Blas de Santillane
Topics Covered in This Chapter
What Type of Data Are You Trying to Express?
Changing Data Types: The CAST Function
Using Expressions in a SELECT Clause
In Chapter 4, “Creating a Simple Query,” you learned how to use a SELECT statement to retrieve information from one or more columns in a table. This technique is useful if you’re posing only simple requests to the database for some basic facts. However, you’ll need to expand your SQL vocabulary when you begin working with complex requests. In this ...
Get SQL Queries for Mere Mortals®: A Hands-On Guide to Data Manipulation in SQL, Third Edition 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.