Use SQL to get the data you need in no time at all! Learn to read and write basic queries, troubleshoot common problems,
180 21 10MB
English Pages 304 Year 2025
Table of contents :
1 Before you begin
2 Your first SQL query
3 Querying data
4 Sorting, skipping, and commenting data
5 Filtering on specific values
6 Filtering with multiple values, ranges, and exclusions
7 Filtering with wildcards and null values
8 Querying multiple tables
9 Using different kinds of joins
10 Combining queries with set operators
11 Using subqueries and logical operators
12 Grouping data
13 Using variables
14 Querying with functions
15 Combining or calculating values with functions
16 Inserting data
17 Updating and deleting data
18 Storing data in tables
19 Creating constraints and indexes
20 Reusing queries with views and stored procedures
21 Making decisions in queries
22 Using cursors
23 Using someone else’s script
24 Never the end