Muutke küpsiste eelistusi

Language of SQL, The 3rd edition [Pehme köide]

  • Formaat: Paperback / softback, 272 pages, kõrgus x laius x paksus: 100x100x100 mm, kaal: 420 g
  • Ilmumisaeg: 07-Dec-2021
  • Kirjastus: Addison Wesley
  • ISBN-10: 013763269X
  • ISBN-13: 9780137632695
Teised raamatud teemal:
  • Formaat: Paperback / softback, 272 pages, kõrgus x laius x paksus: 100x100x100 mm, kaal: 420 g
  • Ilmumisaeg: 07-Dec-2021
  • Kirjastus: Addison Wesley
  • ISBN-10: 013763269X
  • ISBN-13: 9780137632695
Teised raamatud teemal:

Get Started Fast with SQL!

The only book you need to gain a quick working knowledge of SQL and relational databases. 


Many SQL texts attempt to serve as an encyclopedic reference on SQL syntax—an approach that is often counterproductive because that information is readily available in online references published by the major database vendors.

For SQL beginners, it’s more important for a book to focus on general concepts and to offer clear explanations and examples of what various SQL statements can accomplish. This is that book.

 

Several features make The Language of SQL unique among introductory SQL books.

 

First, you will not be required to download software or sit with a computer as you read the text. The intent of this book is to provide examples of SQL usage that can be understood simply by reading.

 

Second, topics are organized in an intuitive and logical sequence. SQL keywords are introduced one at a time, allowing you to grow your understanding as you encounter new terms and concepts.

 

Finally, this book covers the syntax of the latest releases of three widely used databases: Microsoft SQL Server 2019, MySQL 8.0, and Oracle 18c. Special “Database Differences” sidebars clearly show you any differences in syntax among these three databases, and instructions are included on how to obtain and install free versions of the databases. 

 

  • Use SQL to retrieve data from relational databases
  • Apply functions and calculations to data
  • Group and summarize data in a variety of useful ways
  • Use complex logic to retrieve only the data you need
  • Design relational databases so that data retrieval is easy and intuitive
  • Update data and create new tables
  • Use spreadsheets to transform your data into meaningful displays
  • Retrieve data from multiple tables via joins, subqueries, views, and set logic
  • Create, modify, and execute stored procedures
  • Install Microsoft SQL Server, MySQL, or Oracle

Introduction xv
1 Relational Databases and SQL 1(10)
What Is SQL?
2(1)
Microsoft SQL Server, MySQL, and Oracle
3(1)
Relational Databases
4(2)
Primary and Foreign Keys
6(1)
Data Types
6(2)
NULL Values
8(1)
A Brief History of Databases
8(1)
Looking Ahead
9(2)
2 Basic Data Retrieval 11(8)
A Simple SELECT
11(1)
Syntax Notes
12(1)
Comments
13(1)
Specifying Columns
14(1)
Column Names with Embedded Spaces
15(1)
Preview of the Full SELECT
16(1)
Looking Ahead
17(2)
3 Calculated Fields and Aliases 19(8)
Literal Values
20(1)
Arithmetic Calculations
21(1)
Concatenating Fields
22(1)
Column Aliases
23(2)
Table Aliases
25(1)
Looking Ahead
25(2)
4 Using Functions 27(16)
What Is a Function?
27(1)
Character Functions
28(3)
Composite Functions
31(1)
Date/Time Functions
32(3)
Numeric Functions
35(1)
Miscellaneous Functions
36(5)
Looking Ahead
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)
Sort Sequences
47(2)
Looking Ahead
49(2)
6 Selection Criteria 51(14)
Applying Selection Criteria
51(1)
WHERE Clause Operators
52(1)
Limiting Rows
53(2)
Limiting Rows with a Sort
55(1)
Pattern Matching
56(5)
Matching by Sound
61(2)
Looking Ahead
63(2)
7 Boolean Logic 65(12)
Complex Logical Conditions
65(1)
The AND Operator
66(1)
The OR Operator
66(1)
Using Parentheses
67(1)
Multiple Sets of Parentheses
68(1)
The NOT Operator
69(3)
The BETWEEN Operator
72(1)
The IN Operator
73(1)
Boolean Logic and NULL Values
74(1)
Looking Ahead
75(2)
8 Conditional Logic 77(8)
The CASE Expression
77(1)
The Simple CASE Format
78(2)
The Searched CASE Format
80(2)
Conditional Logic in ORDER BY Clauses
82(1)
Conditional Logic in WHERE Clauses
83(1)
Looking Ahead
84(1)
9 Summarizing Data 85(26)
Eliminating Duplicates
85(2)
Aggregate Functions
87(1)
The COUNT Function
88(2)
Grouping Data
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)
Ranking Functions
98(5)
Partitions
103(2)
Analytic Functions
105(4)
Looking Ahead
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)
Looking Ahead
125(2)
11 Inner Joins 127(8)
Joining Two Tables
128(2)
The Inner Join
130(1)
Table Order in Inner Joins
131(1)
Implicit Inner Joins
131(1)
Table Aliases Revisited
132(1)
Looking Ahead
133(2)
12 Outer Joins 135(12)
The Outer Join
135(2)
Left Joins
137(2)
Testing for NULL Values
139(1)
Right Joins
140(1)
Table Order in Outer Joins
140(1)
Full Joins
141(2)
Cross Joins
143(3)
Looking Ahead
146(1)
13 Self Joins and Views 147(8)
Self Joins
147(3)
Creating Views
150(1)
Referencing Views
151(1)
Benefits of Views
152(1)
Modifying and Deleting Views
153(1)
Looking Ahead
154(1)
14 Subqueries 155(12)
Types of Subqueries
155(1)
Subqueries as a Data Source
156(3)
Subqueries as Selection Criteria
159(1)
Correlated Subqueries
160(3)
The EXISTS Operator
163(1)
Subqueries as a Calculated Column
164(1)
Common Table Expressions
165(1)
Looking Ahead
166(1)
15 Set Logic 167(8)
The UNION Operator
168(2)
Distinct and Non-Distinct Unions
170(1)
Intersecting Queries
171(2)
Looking Ahead
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)
Functions Revisited
180(1)
Looking Ahead
181(2)
17 Modifying Data 183(10)
Modification Strategies
183(1)
Inserting Data
184(3)
Deleting Data
187(1)
Updating Data
188(1)
Correlated Subquery Updates
189(2)
Looking Ahead
191(2)
18 Maintaining Tables 193(8)
Data Definition Language
193(1)
Table Attributes
194(1)
Table Columns
195(1)
Primary Keys and Indexes
195(1)
Foreign Keys
196(1)
Creating Tables
197(3)
Creating Indexes
200(1)
Looking Ahead
200(1)
19 Principles of Database Design 201(10)
Goals of Normalization
202(1)
How to Normalize Data
203(4)
The Art of Database Design
207(1)
Alternatives to Normalization
207(2)
Looking Ahead
209(2)
20 Strategies for Using Excel 211(20)
Crosstab Layouts Revisited
211(1)
External Data and Power Query
212(4)
Excel Pivot Tables
216(5)
Excel Pivot Charts
221(6)
Excel Standard Charts
227(2)
Looking Ahead
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)
Online Reference
232(1)
B Getting Started with MySQL 233(2)
Installing MySQL Community Server and Workbench
233(1)
Using MySQL Workbench
234(1)
Online Reference
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)
Online Reference
236(1)
Index 237
Larry Rockoff has been involved with SQL and business intelligence development for many

years. His main area of interest is in using reporting tools to explore and analyze data in

complex databases. He holds an MBA from the University of Chicago and a BFA from the

University of Illinois.

 

In addition to writing about SQL, he has also published books on Microsoft Excel and Access.

His latest editions of those texts are Exploring Data with Excel 2019 and Exploring Data with

Access 2019.

 

He also maintains a website that features book reviews on technology topics, as well as broader

issues regarding technology and society: larryrockoff.com

 

Please feel free to visit that site to contact the author with any comments or questions.