Summary

The keywords SELECT and FROM enable the query to retrieve data. You can make a broad statement and include all columns with a SELECT * statement, or you can rearrange or retrieve specific columns. The keyword DISTINCT limits the output so that you do not see duplicate values in a column. Tomorrow you learn how to make your queries even more selective.

Get Sams Teach Yourself SQL in 21 Days, Fourth 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.