Home Page Icon
Home Page
Table of Contents for
SQL All-In-One For Dummies®
Close
SQL All-In-One For Dummies®
by Allen G. Taylor
SQL All-In-One For Dummies, 3rd Edition
Cover
Introduction
About This Book
Foolish Assumptions
Conventions Used in This Book
What You Don’t Have to Read
How This Book Is Organized
Icons Used in This Book
Where to Go from Here
Book 1: SQL Concepts
Chapter 1: Understanding Relational Databases
Understanding Why Today’s Databases Are Better than Early Databases
Databases, Queries, and Database Applications
Examining Competing Database Models
Why the Relational Model Won
Chapter 2: Modeling a System
Capturing the Users’ Data Model
Translating the Users’ Data Model to a Formal Entity-Relationship Model
Chapter 3: Getting to Know SQL
Where SQL Came From
Knowing What SQL Does
The ISO/IEC SQL Standard
Knowing What SQL Does Not Do
Choosing and Using an Available DBMS Implementation
Chapter 4: SQL and the Relational Model
Sets, Relations, Multisets, and Tables
Functional Dependencies
Keys
Views
Users
Privileges
Schemas
Catalogs
Connections, Sessions, and Transactions
Routines
Paths
Chapter 5: Knowing the Major Components of SQL
Creating a Database with the Data Definition Language
Operating on Data with the Data Manipulation Language (DML)
Maintaining Security in the Data Control Language (DCL)
Chapter 6: Drilling Down to the SQL Nitty-Gritty
Executing SQL Statements
Using Reserved Words Correctly
SQL’s Data Types
Handling Null Values
Applying Constraints
Book 2: Relational Database Development
Chapter 1: System Development Overview
The Components of a Database System
The System Development Life Cycle
Chapter 2: Building a Database Model
Finding and Listening to Interested Parties
Building Consensus
Building a Relational Model
Being Aware of the Danger of Anomalies
The Database Integrity versus Performance Tradeoff
Chapter 3: Balancing Performance and Correctness
Designing a Sample Database
Maintaining Integrity
Avoiding Data Corruption
Speeding Data Retrievals
Working with Indexes
Reading SQL Server Execution Plans
Chapter 4: Creating a Database with SQL
First Things First: Planning Your Database
Building Tables
Setting Constraints
Keys and Indexes
Ensuring Data Validity with Domains
Establishing Relationships between Tables
Altering Table Structure
Deleting Tables
Book 3: SQL Queries
Chapter 1: Values, Variables, Functions, and Expressions
Entering Data Values
Working with Functions
Using Expressions
Chapter 2: SELECT Statements and Modifying Clauses
Finding Needles in Haystacks with the SELECT Statement
Modifying Clauses
Tuning Queries
Chapter 3: Querying Multiple Tables with Subqueries
What Is a Subquery?
What Subqueries Do
Using Subqueries in INSERT, DELETE, and UPDATE Statements
Tuning Considerations for Statements Containing Nested Queries
Tuning Correlated Subqueries
Chapter 4: Querying Multiple Tables with Relational Operators
UNION
INTERSECT
EXCEPT
JOINS
ON versus WHERE
Join Conditions and Clustering Indexes
Chapter 5: Cursors
Declaring a Cursor
Opening a Cursor
Operating on a Single Row
Closing a Cursor
Book 4: Data Security
Chapter 1: Protecting Against Hardware Failure and External Threats
What Could Possibly Go Wrong?
Taking Advantage of RAID
Backing Up Your System
Coping with Internet Threats
Installing Layers of Protection
Chapter 2: Protecting Against User Errors and Conflicts
Reducing Data-Entry Errors
Coping with Errors in Database Design
Handling Programming Errors
Solving Concurrent-Operation Conflicts
Passing the ACID Test: Atomicity, Consistency, Isolation, and Durability
Operating with Transactions
Getting Familiar with Locking
Tuning Locks
Enforcing Serializability with Timestamps
Tuning the Recovery System
Chapter 3: Assigning Access Privileges
Working with the SQL Data Control Language
Identifying Authorized Users
Classifying Users
Granting Privileges
Revoking Privileges
Granting Roles
Revoking Roles
Chapter 4: Error Handling
Identifying Error Conditions
Getting to Know SQLSTATE
Handling Conditions
Dealing with Execution Exceptions: The WHENEVER Clause
Getting More Information: The Diagnostics Area
Examining an Example Constraint Violation
Adding Constraints to an Existing Table
Interpreting SQLSTATE Information
Handling Exceptions
Book 5: SQL and Programming
Chapter 1: Database Development Environments
Microsoft Access
Microsoft SQL Server
IBM Db2
Oracle 18c
SQL Anywhere
PostgreSQL
MySQL
Chapter 2: Interfacing SQL to a Procedural Language
Building an Application with SQL and a Procedural Language
Chapter 3: Using SQL in an Application Program
Comparing SQL with Procedural Languages
Difficulties in Combining SQL with a Procedural Language
Embedding SQL in an Application
Using SQL Modules with an Application
Chapter 4: Designing a Sample Application
Understanding the Client’s Problem
Approaching the Problem
Determining the Deliverables
Building an Entity-Relationship Model
Transforming the Model
Creating Tables
Changing Table Structure
Removing Tables
Designing the User Interface
Chapter 5: Building an Application
Designing from the Top Down
Coding from the Bottom Up
Testing, Testing, Testing
Chapter 6: Understanding SQL’s Procedural Capabilities
Embedding SQL Statements in Your Code
Introducing Compound Statements
Following the Flow of Control Statements
Using Stored Procedures
Working with Triggers
Using Stored Functions
Passing Out Privileges
Using Stored Modules
Chapter 7: Connecting SQL to a Remote Database
Native Drivers
ODBC and Its Major Components
What Happens When the Application Makes a Request
Book 6: SQL, XML, and JSON
Chapter 1: Using XML with SQL
Introducing XML
Knowing the Parts of an XML Document
Using XML Schema
Relating SQL to XML
Using the XML Data Type
Mapping SQL to XML
Operating on XML Data with SQL Functions
Working with XML Predicates
Chapter 2: Storing XML Data in SQL Tables
Inserting XML Data into an SQL Pseudotable
Creating a Table to Hold XML Data
Updating XML Documents
Discovering Oracle’s Tools for Updating XML Data in a Table
Introducing Microsoft’s Tools for Updating XML Data in a Table
Chapter 3: Retrieving Data from XML Documents
XQuery
FLWOR Expressions
XQuery versus SQL
Chapter 4: Using JSON with SQL
Using JSON with SQL
The SQL/JSON Data Model
SQL/JSON Functions
SQL/JSON Path Language
Book 7: Database Tuning Overview
Chapter 1: Tuning the Database
Analyzing the Workload
Considering the Physical Design
Choosing the Right Indexes
Tuning Indexes
Tuning Queries
Tuning Transactions
Separating User Interactions from Transactions
Minimizing Traffic between Application and Server
Precompiling Frequently Used Queries
Chapter 2: Tuning the Environment
Surviving Failures with Minimum Data Loss
Tuning the Recovery System
Tuning the Operating System
Maximizing the Hardware You Have
Adding Hardware
Working in Multiprocessor Environments
Chapter 3: Finding and Eliminating Bottlenecks
Pinpointing the Problem
Determining the Possible Causes of Trouble
Implementing General Principles: A First Step Toward Improving Performance
Tracking Down Bottlenecks
Analyzing Query Efficiency
Managing Resources Wisely
Book 8: Appendices
Appendix A: SQL: 2016 Reserved Words
Appendix B: Glossary
Index
About the Author
Advertisement Page
Connect with Dummies
End User License Agreement
Search in book...
Toggle Font Controls
Playlists
Add To
Create new playlist
Name your new playlist
Playlist description (optional)
Cancel
Create playlist
Sign In
Email address
Password
Forgot Password?
Create account
Login
or
Continue with Facebook
Continue with Google
Sign Up
Full Name
Email address
Confirm Email Address
Password
Login
Create account
or
Continue with Facebook
Continue with Google
Prev
Previous Chapter
Title Page
Next
Next Chapter
Introduction
SQL All-In-One For Dummies®
To view this book's Cheat Sheet, simply go to
www.dummies.com
and search for “SQL All-In-One For Dummies Cheat Sheet” in the Search box.
Table of Contents
Cover
Introduction
About This Book
Foolish Assumptions
Conventions Used in This Book
What You Don’t Have to Read
How This Book Is Organized
Icons Used in This Book
Where to Go from Here
Book 1: SQL Concepts
Chapter 1: Understanding Relational Databases
Understanding Why Today’s Databases Are Better than Early Databases
Databases, Queries, and Database Applications
Examining Competing Database Models
Why the Relational Model Won
Chapter 2: Modeling a System
Capturing the Users’ Data Model
Translating the Users’ Data Model to a Formal Entity-Relationship Model
Chapter 3: Getting to Know SQL
Where SQL Came From
Knowing What SQL Does
The ISO/IEC SQL Standard
Knowing What SQL Does Not Do
Choosing and Using an Available DBMS Implementation
Chapter 4: SQL and the Relational Model
Sets, Relations, Multisets, and Tables
Functional Dependencies
Keys
Views
Users
Privileges
Schemas
Catalogs
Connections, Sessions, and Transactions
Routines
Paths
Chapter 5: Knowing the Major Components of SQL
Creating a Database with the Data Definition Language
Operating on Data with the Data Manipulation Language (DML)
Maintaining Security in the Data Control Language (DCL)
Chapter 6: Drilling Down to the SQL Nitty-Gritty
Executing SQL Statements
Using Reserved Words Correctly
SQL’s Data Types
Handling Null Values
Applying Constraints
Book 2: Relational Database Development
Chapter 1: System Development Overview
The Components of a Database System
The System Development Life Cycle
Chapter 2: Building a Database Model
Finding and Listening to Interested Parties
Building Consensus
Building a Relational Model
Being Aware of the Danger of Anomalies
The Database Integrity versus Performance Tradeoff
Chapter 3: Balancing Performance and Correctness
Designing a Sample Database
Maintaining Integrity
Avoiding Data Corruption
Speeding Data Retrievals
Working with Indexes
Reading SQL Server Execution Plans
Chapter 4: Creating a Database with SQL
First Things First: Planning Your Database
Building Tables
Setting Constraints
Keys and Indexes
Ensuring Data Validity with Domains
Establishing Relationships between Tables
Altering Table Structure
Deleting Tables
Book 3: SQL Queries
Chapter 1: Values, Variables, Functions, and Expressions
Entering Data Values
Working with Functions
Using Expressions
Chapter 2: SELECT Statements and Modifying Clauses
Finding Needles in Haystacks with the SELECT Statement
Modifying Clauses
Tuning Queries
Chapter 3: Querying Multiple Tables with Subqueries
What Is a Subquery?
What Subqueries Do
Using Subqueries in INSERT, DELETE, and UPDATE Statements
Tuning Considerations for Statements Containing Nested Queries
Tuning Correlated Subqueries
Chapter 4: Querying Multiple Tables with Relational Operators
UNION
INTERSECT
EXCEPT
JOINS
ON versus WHERE
Join Conditions and Clustering Indexes
Chapter 5: Cursors
Declaring a Cursor
Opening a Cursor
Operating on a Single Row
Closing a Cursor
Book 4: Data Security
Chapter 1: Protecting Against Hardware Failure and External Threats
What Could Possibly Go Wrong?
Taking Advantage of RAID
Backing Up Your System
Coping with Internet Threats
Installing Layers of Protection
Chapter 2: Protecting Against User Errors and Conflicts
Reducing Data-Entry Errors
Coping with Errors in Database Design
Handling Programming Errors
Solving Concurrent-Operation Conflicts
Passing the ACID Test: Atomicity, Consistency, Isolation, and Durability
Operating with Transactions
Getting Familiar with Locking
Tuning Locks
Enforcing Serializability with Timestamps
Tuning the Recovery System
Chapter 3: Assigning Access Privileges
Working with the SQL Data Control Language
Identifying Authorized Users
Classifying Users
Granting Privileges
Revoking Privileges
Granting Roles
Revoking Roles
Chapter 4: Error Handling
Identifying Error Conditions
Getting to Know SQLSTATE
Handling Conditions
Dealing with Execution Exceptions: The WHENEVER Clause
Getting More Information: The Diagnostics Area
Examining an Example Constraint Violation
Adding Constraints to an Existing Table
Interpreting SQLSTATE Information
Handling Exceptions
Book 5: SQL and Programming
Chapter 1: Database Development Environments
Microsoft Access
Microsoft SQL Server
IBM Db2
Oracle 18c
SQL Anywhere
PostgreSQL
MySQL
Chapter 2: Interfacing SQL to a Procedural Language
Building an Application with SQL and a Procedural Language
Chapter 3: Using SQL in an Application Program
Comparing SQL with Procedural Languages
Difficulties in Combining SQL with a Procedural Language
Embedding SQL in an Application
Using SQL Modules with an Application
Chapter 4: Designing a Sample Application
Understanding the Client’s Problem
Approaching the Problem
Determining the Deliverables
Building an Entity-Relationship Model
Transforming the Model
Creating Tables
Changing Table Structure
Removing Tables
Designing the User Interface
Chapter 5: Building an Application
Designing from the Top Down
Coding from the Bottom Up
Testing, Testing, Testing
Chapter 6: Understanding SQL’s Procedural Capabilities
Embedding SQL Statements in Your Code
Introducing Compound Statements
Following the Flow of Control Statements
Using Stored Procedures
Working with Triggers
Using Stored Functions
Passing Out Privileges
Using Stored Modules
Chapter 7: Connecting SQL to a Remote Database
Native Drivers
ODBC and Its Major Components
What Happens When the Application Makes a Request
Book 6: SQL, XML, and JSON
Chapter 1: Using XML with SQL
Introducing XML
Knowing the Parts of an XML Document
Using XML Schema
Relating SQL to XML
Using the XML Data Type
Mapping SQL to XML
Operating on XML Data with SQL Functions
Working with XML Predicates
Chapter 2: Storing XML Data in SQL Tables
Inserting XML Data into an SQL Pseudotable
Creating a Table to Hold XML Data
Updating XML Documents
Discovering Oracle’s Tools for Updating XML Data in a Table
Introducing Microsoft’s Tools for Updating XML Data in a Table
Chapter 3: Retrieving Data from XML Documents
XQuery
FLWOR Expressions
XQuery versus SQL
Chapter 4: Using JSON with SQL
Using JSON with SQL
The SQL/JSON Data Model
SQL/JSON Functions
SQL/JSON Path Language
Book 7: Database Tuning Overview
Chapter 1: Tuning the Database
Analyzing the Workload
Considering the Physical Design
Choosing the Right Indexes
Tuning Indexes
Tuning Queries
Tuning Transactions
Separating User Interactions from Transactions
Minimizing Traffic between Application and Server
Precompiling Frequently Used Queries
Chapter 2: Tuning the Environment
Surviving Failures with Minimum Data Loss
Tuning the Recovery System
Tuning the Operating System
Maximizing the Hardware You Have
Adding Hardware
Working in Multiprocessor Environments
Chapter 3: Finding and Eliminating Bottlenecks
Pinpointing the Problem
Determining the Possible Causes of Trouble
Implementing General Principles: A First Step Toward Improving Performance
Tracking Down Bottlenecks
Analyzing Query Efficiency
Managing Resources Wisely
Book 8: Appendices
Appendix A: SQL: 2016 Reserved Words
Appendix B: Glossary
Index
About the Author
Advertisement Page
Connect with Dummies
End User License Agreement
List of Tables
Book 1 Chapter 4
TABLE 4-1 PROJECT Relation
TABLE 4-2 PROJECTS Relation
Book 1 Chapter 5
TABLE 5-1 PRODUCT Table
TABLE 5-2 PRODUCT Table
TABLE 5-3 PRODUCT Table
TABLE 5-4 PRODUCT Table
TABLE 5-5 PRODUCT Table
Book 1 Chapter 6
TABLE 6-1 Data Types
Book 2 Chapter 2
TABLE 2-1 Describing the Elements of a Database
Book 2 Chapter 3
TABLE 3-1 Primary Keys for Sample Relations
Book 2 Chapter 4
TABLE 4-1 Tables for Honest Abe
Book 3 Chapter 1
TABLE 1-1 Sample Literals of Various Data Types
TABLE 1-2 Photographic Paper Price List per 20 Sheets
TABLE 1-3 Sample Uses of the POSITION Statement
TABLE 1-4 Examples of String Value Expressions
Book 3 Chapter 2
TABLE 2-1 SQL’s Comparison Predicates
TABLE 2-2 SQL’s
LIKE
Predicate
Book 3 Chapter 3
TABLE 3-1 Ford Small-Block V-8s, 1960–1980
TABLE 3-2 Chevy Small-Block V-8s, 1960–1980
Book 3 Chapter 4
TABLE 4-1 LOCATION
TABLE 4-2 DEPT
TABLE 4-3 EMPLOYEE
Book 4 Chapter 1
TABLE 1-1 RAID Level Comparison
Book 4 Chapter 2
TABLE 2-1 Isolation Levels and Problems Solved
Book 4 Chapter 4
TABLE 4-1 SQLSTATE Class Values
TABLE 4-2 Conditions That May Be Specified in a Condition Handler
TABLE 4-3 Diagnostics Header Area
TABLE 4-4 Diagnostics Detail Area
Book 6 Chapter 3
TABLE 3-1 USERS
TABLE 3-2 ITEMS
TABLE 3-3 BIDS
TABLE 3-4 XQuery 1.0 Data Types and Corresponding SQL Data Types
List of Illustrations
Book 1 Chapter 1
FIGURE 1-1: A hierarchical model of the Saturn V moon rocket.
FIGURE 1-2: A hierarchical model of a sales database for a retail business.
FIGURE 1-3: A network model of transactions at an online store.
FIGURE 1-4: A relational model of transactions at an online store.
Book 1 Chapter 2
FIGURE 2-1: EMPLOYEE, an example of an entity class.
FIGURE 2-2: Duke Kahanamoku, an example of an instance of the EMPLOYEE entity cl...
FIGURE 2-3: An EMPLOYEE: TRANSACTION relationship.
FIGURE 2-4: A one-to-one relationship between PERSON and LICENSE.
FIGURE 2-5: A one-to-many relationship between PERSON and TICKET.
FIGURE 2-6: A many-to-many relationship between STUDENT and COURSE.
FIGURE 2-7: The COMPOSER: SONG: LYRICIST relationship.
FIGURE 2-8: ER diagram showing minimum cardinality, where a person must exist, b...
FIGURE 2-9: ER diagram showing minimum cardinality, where a license must exist, ...
FIGURE 2-10: The ER model for a retail transaction database.
FIGURE 2-11: A PERSON: LICENSE relationship, showing LICENSE as a weak entity.
FIGURE 2-12: The SEAT is ID-dependent on FLIGHT via the FLIGHT: SEAT relationshi...
FIGURE 2-13: The COMMUNITY supertype entity with STUDENT, FACULTY, and STAFF sub...
FIGURE 2-14: An ER diagram of a small, web-based retail business.
FIGURE 2-15: The ER diagram for Clear Creek Medical Clinic.
Book 1 Chapter 3
FIGURE 3-1: A Microsoft Access 2016 database window.
FIGURE 3-2: Menu of possible actions for the query selected.
FIGURE 3-3: Result of Team Membership of Paper Authors query.
FIGURE 3-4: The Views menu has been pulled down.
FIGURE 3-5: The SQL Editor window, showing SQL for the Team Membership of Paper ...
FIGURE 3-6: The query to select everything in the PAPERS table.
FIGURE 3-7: The result of the query to select everything in the PAPERS table.
Book 1 Chapter 5
FIGURE 5-1: The relational database containment hierarchy.
FIGURE 5-2: The ER diagram of the database for an order entry system.
FIGURE 5-3: Creating a multitable view using joins.
Book 2 Chapter 1
FIGURE 1-1: Information flow in a database system.
Book 2 Chapter 2
FIGURE 2-1: The BOOK relation.
FIGURE 2-2: The MECHANICS relation.
FIGURE 2-3: The modified MECHANICS relation.
FIGURE 2-4: The MECHANICS relation has been broken into two relations, MECH-SPEC...
FIGURE 2-5: The LIPIDLEVEL relation.
FIGURE 2-6: The ITEM-TYPE relation and the TYPE-CHOL relation.
Book 2 Chapter 3
FIGURE 3-1: The ER model for Honest Abe’s Fleet Auto Repair.
FIGURE 3-2: The CUSTOMER entity and the CUSTOMER relation.
FIGURE 3-3: The ER model of PART: INVOICE_LINE relationship.
FIGURE 3-4: A relational model representation of the one-to-one relationship in ...
FIGURE 3-5: An ER diagram of a one-to-many relationship.
FIGURE 3-6: A relational model representation of the one-to-many relationship in...
FIGURE 3-7: The ER diagram of a many-to-many relationship.
FIGURE 3-8: The relational model representation of the decomposition of the many...
FIGURE 3-9: The ER diagram for Honest Abe’s Fleet Auto Repair.
FIGURE 3-10: The relational model representation of the Honest Abe’s model in Fi...
FIGURE 3-11: Revised ER model for Honest Abe’s Fleet Auto Repair.
FIGURE 3-12: Tables and relationships in the AdventureWorks database.
FIGURE 3-13: SQL Server 2008 Management Studio execution of an SQL query.
FIGURE 3-14: The execution plan for the delivery time query.
FIGURE 3-15: The recommendations of the Database Engine Tuning Advisor.
Book 3 Chapter 2
FIGURE 2-1: The result set for retrieval of sales for May 2011.
FIGURE 2-2: Average sales for each salesperson.
FIGURE 2-3: Total sales for each salesperson.
FIGURE 2-4: Total sales for all salespeople except Saraiva.
FIGURE 2-5: Customers who have placed at least one order.
FIGURE 2-6: The SELECT DISTINCT query execution plan.
FIGURE 2-7: SELECT DISTINCT query client statistics.
FIGURE 2-8: Retrieve all employees named Janice from the Person table.
FIGURE 2-9: SELECT query execution plan using a temporary table.
FIGURE 2-10: SELECT query execution client statistics using a temporary table.
FIGURE 2-11: SELECT query result with a compound condition.
FIGURE 2-12: SELECT query execution plan with a compound condition.
FIGURE 2-13: SELECT query client statistics, with a compound condition.
FIGURE 2-14: Execution plan, minimizing occurrence of ORDER BY clauses.
FIGURE 2-15: Client statistics, minimizing occurrence of ORDER BY clauses.
FIGURE 2-16: Execution plan, queries with separate ORDER BY clauses.
FIGURE 2-17: Client statistics, queries with separate ORDER BY clauses.
FIGURE 2-18: Retrieval with a HAVING clause.
FIGURE 2-19: Retrieval with a HAVING clause execution plan.
FIGURE 2-20: Retrieval with a HAVING clause client statistics.
FIGURE 2-21: Retrieval without a HAVING clause.
FIGURE 2-22: Retrieval without a HAVING clause execution plan.
FIGURE 2-23: Retrieval without a HAVING clause client statistics.
FIGURE 2-24: Query with an OR logical connective.
Book 3 Chapter 3
FIGURE 3-1: Chevy muscle cars with horsepower to displacement ratios higher than...
FIGURE 3-2: Orders that contain products that are out of stock.
FIGURE 3-3: An execution plan for a query showing orders for out-of-stock produc...
FIGURE 3-4: Client statistics for a query showing orders for out-of-stock produc...
FIGURE 3-5: A nested query showing orders that contain products that are almost ...
FIGURE 3-6: An execution plan for a nested query showing orders for almost out-o...
FIGURE 3-7: Client statistics for a nested query showing orders for almost out-o...
FIGURE 3-8: A relational query showing orders that contain products that are alm...
FIGURE 3-9: The execution plan for a relational query showing orders for almost ...
FIGURE 3-10: Client statistics for a relational query showing orders for almost ...
FIGURE 3-11: A correlated subquery showing orders that contain products at least...
FIGURE 3-12: An execution plan for a correlated subquery showing orders at least...
FIGURE 3-13: Client statistics for a correlated subquery showing orders at least...
FIGURE 3-14: Relational query showing orders that contain products at least twic...
FIGURE 3-15: An execution plan for a relational query showing orders for almost ...
FIGURE 3-16: Client statistics for a relational query showing orders for almost ...
Book 4 Chapter 1
FIGURE 1-1: RAID striping.
FIGURE 1-2: HP WebInspect scan result.
FIGURE 1-3: IBM Security AppScan scan result.
Book 5 Chapter 2
FIGURE 2-1: Visual Basic for Applications References dialog box enables you to s...
Book 5 Chapter 4
FIGURE 4-1: An ER diagram of OLS research.
FIGURE 4-2: An ER model representation of the OLS system in Figure 4-1.
FIGURE 4-3: The MEMBERS entity (top) and the MEMBERS relation.
Book 5 Chapter 5
FIGURE 5-1: The OLS application main screen with command buttons.
FIGURE 5-2: The OLS application menu hierarchy.
FIGURE 5-3: The OLS forms menu.
FIGURE 5-4: The OLS Members form.
Book 5 Chapter 7
FIGURE 7-1: A database system using an Oracle 18c native driver.
FIGURE 7-2: A database system using ODBC API.
FIGURE 7-3: The architecture of a two-tier driver system.
FIGURE 7-4: Handles establish the connection between an application and a data s...
Book 7 Chapter 1
FIGURE 1-1: The cost of retrievals with and without an index.
Book 7 Chapter 3
FIGURE 3-1: Microsoft SQL Server Management Studio.
FIGURE 3-2: The Microsoft SQL Server Management Studio SQL editor pane.
FIGURE 3-3: A sample query.
FIGURE 3-4: The query result.
FIGURE 3-5: The Database Engine Tuning Advisor window.
FIGURE 3-6: The Tuning Advisor window, ready to tune a query.
FIGURE 3-7: The Tuning Options pane.
FIGURE 3-8: Advanced tuning options.
FIGURE 3-9: The Progress tab after a successful run.
FIGURE 3-10: The Recommendations tab after a successful run.
FIGURE 3-11: The Reports tab after a successful run.
FIGURE 3-12: The Trace Properties dialog box.
FIGURE 3-13: The Events Selection tab of the Trace Properties dialog box.
FIGURE 3-14: Trace for a simple query.
FIGURE 3-15: An Optimize Drives display of a computer’s disk drives.
Guide
Cover
Table of Contents
Begin Reading
Pages
iii
iv
1
2
3
4
5
6
7
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
55
56
57
58
59
60
61
62
63
64
65
67
68
69
70
71
72
73
74
75
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
595
596
597
598
599
600
601
602
603
604
605
606
607
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
739
740
741
742
743
744
745
746
747
Add Highlight
No Comment
..................Content has been hidden....................
You can't read the all page of ebook, please click
here
login for view all page.
Day Mode
Cloud Mode
Night Mode
Reset