Chapter 3. The Select Statement: Finding Your Information

Image

Finders keepers? When it comes to databases, chances are you’ll need to retrieve your data more often than you’ll need to insert it. In this chapter, you’ll get an up-close look the powerful SELECT statement and learn how to gain access to that important information you’ve been putting in your tables. You’ll even meet the WHERE clause, which will help you selectively get the data you need and avoid displaying the rows you don’t need. So what do you say, let’s get going and find some SQL data.

Searching for a destination

Image

Abby needs to find places that can be reached by car, so she tries the SELECT statement from Chapter 2 to view her table.

Get Head First SQL, 2nd 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.