Introduction |
|
xv | |
1 Relational Databases and SQL |
|
1 | (10) |
|
|
2 | (1) |
|
Microsoft SQL Server, MySQL, and Oracle |
|
|
3 | (1) |
|
|
4 | (2) |
|
|
6 | (1) |
|
|
6 | (2) |
|
|
8 | (1) |
|
A Brief History of Databases |
|
|
8 | (1) |
|
|
9 | (2) |
2 Basic Data Retrieval |
|
11 | (8) |
|
|
11 | (1) |
|
|
12 | (1) |
|
|
13 | (1) |
|
|
14 | (1) |
|
Column Names with Embedded Spaces |
|
|
15 | (1) |
|
Preview of the Full SELECT |
|
|
16 | (1) |
|
|
17 | (2) |
3 Calculated Fields and Aliases |
|
19 | (8) |
|
|
20 | (1) |
|
|
21 | (1) |
|
|
22 | (1) |
|
|
23 | (2) |
|
|
25 | (1) |
|
|
25 | (2) |
4 Using Functions |
|
27 | (16) |
|
|
27 | (1) |
|
|
28 | (3) |
|
|
31 | (1) |
|
|
32 | (3) |
|
|
35 | (1) |
|
|
36 | (5) |
|
|
41 | (2) |
5 Sorting Data |
|
43 | (8) |
|
Sorting in Ascending Order |
|
|
43 | (2) |
|
Sorting in Descending Order |
|
|
45 | (1) |
|
Sorting by Multiple Columns |
|
|
45 | (1) |
|
Sorting by a Calculated Field |
|
|
46 | (1) |
|
|
47 | (2) |
|
|
49 | (2) |
6 Selection Criteria |
|
51 | (14) |
|
Applying Selection Criteria |
|
|
51 | (1) |
|
|
52 | (1) |
|
|
53 | (2) |
|
Limiting Rows with a Sort |
|
|
55 | (1) |
|
|
56 | (5) |
|
|
61 | (2) |
|
|
63 | (2) |
7 Boolean Logic |
|
65 | (12) |
|
Complex Logical Conditions |
|
|
65 | (1) |
|
|
66 | (1) |
|
|
66 | (1) |
|
|
67 | (1) |
|
Multiple Sets of Parentheses |
|
|
68 | (1) |
|
|
69 | (3) |
|
|
72 | (1) |
|
|
73 | (1) |
|
Boolean Logic and NULL Values |
|
|
74 | (1) |
|
|
75 | (2) |
8 Conditional Logic |
|
77 | (8) |
|
|
77 | (1) |
|
|
78 | (2) |
|
|
80 | (2) |
|
Conditional Logic in ORDER BY Clauses |
|
|
82 | (1) |
|
Conditional Logic in WHERE Clauses |
|
|
83 | (1) |
|
|
84 | (1) |
9 Summarizing Data |
|
85 | (26) |
|
|
85 | (2) |
|
|
87 | (1) |
|
|
88 | (2) |
|
|
90 | (2) |
|
Multiple Columns and Sorting |
|
|
92 | (2) |
|
Selection Criteria on Aggregates |
|
|
94 | (2) |
|
Conditional Logic in GROUP BY Clauses |
|
|
96 | (1) |
|
Conditional Logic in HAVING Clauses |
|
|
97 | (1) |
|
|
98 | (5) |
|
|
103 | (2) |
|
|
105 | (4) |
|
|
109 | (2) |
10 Subtotals and Crosstabs |
|
111 | (16) |
|
Adding Subtotals with ROLLUP |
|
|
112 | (4) |
|
Adding Subtotals with CUBE |
|
|
116 | (4) |
|
Creating Crosstab Layouts |
|
|
120 | (5) |
|
|
125 | (2) |
11 Inner Joins |
|
127 | (8) |
|
|
128 | (2) |
|
|
130 | (1) |
|
Table Order in Inner Joins |
|
|
131 | (1) |
|
|
131 | (1) |
|
|
132 | (1) |
|
|
133 | (2) |
12 Outer Joins |
|
135 | (12) |
|
|
135 | (2) |
|
|
137 | (2) |
|
|
139 | (1) |
|
|
140 | (1) |
|
Table Order in Outer Joins |
|
|
140 | (1) |
|
|
141 | (2) |
|
|
143 | (3) |
|
|
146 | (1) |
13 Self Joins and Views |
|
147 | (8) |
|
|
147 | (3) |
|
|
150 | (1) |
|
|
151 | (1) |
|
|
152 | (1) |
|
Modifying and Deleting Views |
|
|
153 | (1) |
|
|
154 | (1) |
14 Subqueries |
|
155 | (12) |
|
|
155 | (1) |
|
Subqueries as a Data Source |
|
|
156 | (3) |
|
Subqueries as Selection Criteria |
|
|
159 | (1) |
|
|
160 | (3) |
|
|
163 | (1) |
|
Subqueries as a Calculated Column |
|
|
164 | (1) |
|
|
165 | (1) |
|
|
166 | (1) |
15 Set Logic |
|
167 | (8) |
|
|
168 | (2) |
|
Distinct and Non-Distinct Unions |
|
|
170 | (1) |
|
|
171 | (2) |
|
|
173 | (2) |
16 Stored Procedures and Parameters |
|
175 | (8) |
|
Creating Stored Procedures |
|
|
176 | (1) |
|
Parameters in Stored Procedures |
|
|
177 | (1) |
|
Executing Stored Procedures |
|
|
178 | (1) |
|
Modifying and Deleting Stored Procedures |
|
|
179 | (1) |
|
|
180 | (1) |
|
|
181 | (2) |
17 Modifying Data |
|
183 | (10) |
|
|
183 | (1) |
|
|
184 | (3) |
|
|
187 | (1) |
|
|
188 | (1) |
|
Correlated Subquery Updates |
|
|
189 | (2) |
|
|
191 | (2) |
18 Maintaining Tables |
|
193 | (8) |
|
|
193 | (1) |
|
|
194 | (1) |
|
|
195 | (1) |
|
|
195 | (1) |
|
|
196 | (1) |
|
|
197 | (3) |
|
|
200 | (1) |
|
|
200 | (1) |
19 Principles of Database Design |
|
201 | (10) |
|
|
202 | (1) |
|
|
203 | (4) |
|
The Art of Database Design |
|
|
207 | (1) |
|
Alternatives to Normalization |
|
|
207 | (2) |
|
|
209 | (2) |
20 Strategies for Using Excel |
|
211 | (20) |
|
Crosstab Layouts Revisited |
|
|
211 | (1) |
|
External Data and Power Query |
|
|
212 | (4) |
|
|
216 | (5) |
|
|
221 | (6) |
|
|
227 | (2) |
|
|
229 | (2) |
A Getting Started with Microsoft SQL Server |
|
231 | (2) |
|
Installing Microsoft SQL Server 2019 Express |
|
|
231 | (1) |
|
Installing Microsoft SQL Server Management Studio 18 |
|
|
232 | (1) |
|
Using Microsoft SQL Server Management Studio 18 |
|
|
232 | (1) |
|
|
232 | (1) |
B Getting Started with MySQL |
|
233 | (2) |
|
Installing MySQL Community Server and Workbench |
|
|
233 | (1) |
|
|
234 | (1) |
|
|
234 | (1) |
C Getting Started with Oracle |
|
235 | (2) |
|
Installing Oracle Database Express Edition |
|
|
235 | (1) |
|
Installing Oracle SQL Developer |
|
|
236 | (1) |
|
Using Oracle SQL Developer |
|
|
236 | (1) |
|
|
236 | (1) |
Index |
|
237 | |