SQL for Microsoft Access

by ;
Edition: 2nd
Format: Paperback
Pub. Date: 2008-07-04
Publisher(s): Jones & Bartlett Learning
List Price: $41.95

Buy New

Usually Ships in 8 - 10 Business Days.
$41.91

Rent Textbook

Select for Price
There was a problem. Please try again later.

Rent Digital

Rent Digital Options
Online:60 Days access
Downloadable:60 Days
$22.66
Online:90 Days access
Downloadable:90 Days
$25.18
Online:180 Days access
Downloadable:180 Days
$27.70
Online:1825 Days access
Downloadable:Lifetime Access
$32.72
*To support the delivery of the digital material to you, a digital delivery fee of $3.99 will be charged on each digital item.
$27.70*

Used Textbook

We're Sorry
Sold Out

How Marketplace Works:

  • This item is offered by an independent seller and not shipped from our warehouse
  • Item details like edition and cover design may differ from our description; see seller's comments before ordering.
  • Sellers much confirm and ship within two business days; otherwise, the order will be cancelled and refunded.
  • Marketplace purchases cannot be returned to eCampus.com. Contact the seller directly for inquiries; if no response within two days, contact customer service.
  • Additional shipping costs apply to Marketplace purchases. Review shipping costs at checkout.

Summary

This book unlocks the power of Structured Query Language (SQL) in Microsoft Access. It guides the reader through step-by-step examples that use SQL script in Microsoft Access to create tables, add records to tables, and retrieve and manage records using simple to advanced data manipulation techniques including combined queries, joined queries, nested queries, views, and temporary tables. The reader also discovers how SQL script can be implemented within VBA and ASP code. Beginners learn about early forms of data storage, the structure of a relational database, and how to plan the design of a database. The reader will learn how to use a database design technique called normalisation, and will also encounter the ERD data model, which is used to demonstrate how to organise and document data that will be stored in the database. Examples of the one-to-one relationship, many-to-one relationship, and the many-to-many relationship are also discussed. Intermediate Microsoft Access users will learn to use the SQL View interface within Microsoft Access to create simple to advanced SQL queries. They will learn to use SQL script to create a table from the ground up that includes columns with data types, constraints, field sizes, indexes, and default values. They will also learn to use SQL script to insert records into a table and to create customized queries that retrieve records from a single table or multiple tables simultaneously. Other topics include using SQL script to create calculated fields, manipulate strings, compute dates, create temporary tables, create views, and create parameter queries that prompt the user to enter data. The advanced reader will discover how SQL script can be integrated into VBA and ASP code.

Author Biography

Cecelia L. Allison is an author and on-line professor, She is offered through hundreds of educational facilities, and also teaches on-line technical courses for ITT Technical Institute and Park University Neal A. Berkowitz is a consultant, author, web designer, and system analyst and architect, with more than 25 years of experience covering all aspects of computers

Table of Contents

Acknowledgmentsp. xiii
Introductionp. xiv
The Relational Database Structurep. 1
Introductionp. 1
Early Forms of Data Storagep. 3
The Relational Database Structurep. 4
Tablesp. 4
Keysp. 5
The Planning Stagep. 6
Data Modelingp. 7
Entities and Relationshipsp. 7
Normalizationp. 10
Client/Server Databasesp. 11
Database Management Systemsp. 11
Summaryp. 12
Structured Query Language and Microsoft Accessp. 15
Introductionp. 15
Structured Query Languagep. 16
SQL Versionsp. 16
Switching to Version SQL-92 in Microsoft Access 2007p. 17
Switching to Version SQL-92 in Microsoft Access 2003p. 17
SQL Componentsp. 17
SQL Syntaxp. 18
The Power of SQL in Microsoft Accessp. 19
The Query Wizardp. 19
The Query Design Tool and SQL Viewp. 20
Opening Microsoft Access and Switching to SQL Viewp. 21
Opening Microsoft Accessp. 21
Switching to SQL View in Microsoft Access 2007p. 23
Switching to SQL View in Microsoft Access 2003p. 25
Summaryp. 28
Creating Tables and Inserting Recordsp. 31
Introductionp. 31
The Data Definition Language Componentp. 32
CREATE TABLE Syntaxp. 34
Data Typesp. 36
Example 1p. 39
Constraintsp. 40
Example 2p. 40
NULL/NOT NULL Constraintp. 41
PRIMARY KEY Constraintp. 42
Example 3p. 43
FOREIGN KEY Constraintp. 44
UNIQUE Constraintp. 45
Adding Constraints to Existing Tablesp. 45
Example 4p. 46
Example 5p. 46
Constraint Syntaxp. 47
Inserting Recordsp. 48
Example 6p. 48
Inserting Data without Specifying Column Namesp. 50
Example 7p. 50
Inserting NULL Valuesp. 51
Example 8p. 51
Copying Records from One Table to an Existing Tablep. 51
Example 9p. 51
Copying Records from One Table to a New Table Simultaneouslyp. 53
Example 10p. 53
Updating Recordsp. 54
Update a Record with a Text Valuep. 54
Example 11p. 54
Update a Record with a New Calculated Valuep. 55
Example 12p. 55
Update Multiple Columnsp. 55
Example 13p. 55
Update a Column that Contains a Datep. 56
Example 14p. 56
Deleting Recordsp. 58
Example 15p. 58
Summaryp. 59
Retrieving Recordsp. 61
Introductionp. 61
The SELECT Statementp. 62
Example 1p. 65
Example 2p. 66
The ORDER BY Clausep. 68
Sorting in Descending Orderp. 69
Example 3p. 69
Sorting in Ascending Orderp. 70
Example 4p. 70
Sorting Multiple Columnsp. 71
Example 5p. 71
Example 6p. 72
Sorting Using Numbersp. 73
Example 7p. 73
Example 8p. 74
Handling Duplicate Valuesp. 74
The DISTINCT Keywordp. 74
Example 9p. 75
The DISTINCTROW Keywordp. 75
Handling Duplicate Subsets of the Entire Result Collectionp. 76
The TOP Keywordp. 76
Example 10p. 76
Example 11p. 77
The TOP PERCENT Keywordsp. 78
Example 12p. 78
Example 13p. 79
Creating an Aliasp. 80
Example 14p. 80
Create an Alias that Contains a Spacep. 81
Example 15p. 81
Concatenationp. 82
Concatenate Multiple Fields and Charactersp. 82
Example 16p. 82
Concatenate Multiple Fields from Multiple Tablesp. 83
Example 17p. 83
Summaryp. 84
Filtering Retrieved Recordsp. 87
Introductionp. 87
The WHERE Clausep. 88
Comparison Operatorsp. 89
Logical Operatorsp. 90
Operator Precedencep. 91
The AND, OR, =, and < Operatorsp. 91
Example 1p. 91
The LIKE Operatorp. 95
Example 2p. 96
Example 3p. 97
Example 4p. 97
Example 5p. 97
Example 6p. 98
Example 7p. 98
Example 8p. 98
Example 9p. 98
The BETWEEN Operatorp. 99
Example 10p. 99
The IN and NOT Operatorsp. 100
Example 11p. 101
Example 12p. 101
The IS NULL and IS NOT NULL Operatorsp. 102
Example 13p. 102
Summaryp. 103
Creating Calculated Fieldsp. 105
Introductionp. 105
Operators and Functionsp. 106
Arithmetic Operatorsp. 108
Use an Arithmetic Operator with SELECTp. 110
Example 1p. 110
Use an Arithmetic Operator in the WHERE clausep. 111
Example 2p. 111
Aggregate Functionsp. 112
Using the AVG 0, FIRST 0, LAST 0, SUM 0, MAX 0, and MIN 0 Functionsp. 113
Example 3p. 113
Using the COUNT 0 Functionp. 114
Example 4p. 114
String Functions and Operationsp. 115
Use of the + and &p. 117
Example 5p. 118
Using the LEFT 0, UCASE 0, LEN 0, and TRIM 0 Functionsp. 118
Example 6p. 118
Using the MID 0 and INSTR 0 Functionsp. 120
Example 7p. 120
Date and Time Functionsp. 122
Inserting Dates into a Tablep. 124
Example 8p. 124
Using the FORMAT 0 Functionp. 125
Example 9p. 125
Using the DATE 0, TIME 0, MONTH 0, DAY 0, and YEAR 0 Functionsp. 127
Example 10p. 127
Miscellaneous Functionsp. 128
Using the CCUR 0 Functionp. 129
Example 11p. 129
Summaryp. 130
Grouping Datap. 133
Introductionp. 133
The GROUP BY Clausep. 134
Example 1p. 135
Using the GROUP BY Clause with the ORDER BY Clausep. 138
Example 2p. 138
The HAVING Clausep. 140
Example 3p. 140
Using the HAVING Clause with the WHERE Clausep. 142
Example 4p. 142
Summaryp. 144
Creating Table Joins and Unionsp. 145
Introductionp. 145
Table Joins - An Overviewp. 146
Qualificationp. 146
Inner Joinp. 147
Example 1p. 148
Using the DISTINCTROW Keywordp. 152
Example 2p. 152
Self Joinp. 153
Example 3p. 155
Nested Joinp. 156
Example 4p. 156
Outer Joinsp. 159
Right Outer Joinp. 160
Example 5p. 160
Left Outer Joinp. 163
Example 6p. 163
Create a Join that Contains an Aggregate Functionp. 165
Example 7p. 165
UNION and UNION ALL Keywordsp. 167
UNIONp. 167
Example 8p. 167
UNION ALLp. 171
Example 9p. 171
Summaryp. 172
Creating Subqueriesp. 175
Introductionp. 175
Subqueriesp. 176
Correlated and Non-Correlated Subqueriesp. 176
The IN Subqueryp. 176
Example 1p. 177
The EXISTS Subqueryp. 180
Example 2p. 180
The ANY and SOME Subqueriesp. 183
Example 3p. 184
The ALL Subqueryp. 185
Example 4p. 185
Nested Subqueriesp. 186
Example 5p. 186
Using a Subquery to Find the Second Highest Valuep. 189
Example 6p. 189
Summaryp. 190
Creating Viewsp. 191
Introductionp. 191
Creating a Viewp. 192
Example 1p. 192
Creating a View Using the CREATE VIEW Keywords in SQL-92p. 194
Create a View that Contains a Complex Joinp. 195
Example 2p. 195
Query the Customers Total Transactions Viewp. 196
Example 3p. 196
Filtering a Record through a Viewp. 197
Example 4p. 197
Example 5p. 198
Updating a Record through a Viewp. 198
Example 6p. 199
Deleting a Viewp. 199
Example 7p. 200
Summaryp. 200
Table Management and Indexesp. 201
Introductionp. 201
Adding a Column to an Existing Tablep. 202
Example 1p. 203
Changing a Columnp. 204
Example 2p. 204
Setting a Default Value for a Columnp. 205
Example 3p. 205
Removing a Column from a Tablep. 206
Example 4p. 206
Removing a Tablep. 207
Improving Data Retrieval Time Using Indexesp. 207
Index Optionsp. 208
Creating an Indexp. 209
Example 5p. 209
Indexing in Descending Orderp. 210
Example 6p. 210
Viewing and Editing Indexesp. 211
Deleting an Indexp. 212
Example 7p. 213
Summaryp. 213
Temporary Tables vs. Viewsp. 215
Introductionp. 215
Creating a Viewp. 216
Example 1p. 216
Creating a Temporary Tablep. 218
Example 2p. 218
Accessing the Temporary Tablep. 219
Querying a Temporary Tablep. 220
Example 3p. 220
Indexing a Temporary Tablep. 221
Example 4p. 221
Updating a Temporary Tablep. 222
Example 5p. 222
Copying Records from One Temporary Table to a New Temporary Table Simultaneouslyp. 223
Example 6p. 223
Deleting a Temporary Tablep. 224
Example 7p. 224
Why Do We Need Temporary Tables?p. 224
Summaryp. 228
Parameter Queriesp. 229
Introductionp. 229
Parameter Queriesp. 229
Creating a Simple Queryp. 230
Example 1p. 230
Creating a Parameter Queryp. 231
Example 2p. 231
Customizing Your Dialog Boxp. 233
Example 3p. 233
Creating Multiple Promptsp. 234
Example 4p. 234
Example 5p. 236
Using the LIKE Keyword to Prompt the Userp. 237
Example 6p. 237
Prompting the User for Datesp. 238
Example 7p. 238
Creating a Button to Prompt the Userp. 239
Example 8p. 239
View the New Button on the Formp. 244
SQL Syntax for a Parameter Query in SQL Viewp. 246
Example 9p. 246
Example 10p. 247
Non-parameter Parameter Queriesp. 248
Summaryp. 250
Integrating SQL Script in VBA Codep. 253
Introductionp. 253
Fixed Queries vs. "On-the-Fly" Queriesp. 254
Filtered Recordsets for Formsp. 259
Filtered Recordsets for Combo Boxesp. 263
Recordsets for Subformsp. 265
Report Filtersp. 270
Summaryp. 274
Integrating SQL Script into ASP Codep. 275
Introductionp. 275
Basicsp. 276
Building the Componentsp. 277
ODBC Connectionp. 277
Codep. 281
Building SQL Statementsp. 286
Summaryp. 291
Access Projectsp. 293
Introductionp. 293
Overviewp. 293
Differences between Access Projects and Access Databasesp. 298
Project Windowp. 301
Tablesp. 302
Database Diagramsp. 307
Queriesp. 310
Viewsp. 311
Stored Proceduresp. 316
Functionsp. 318
Summaryp. 321
Concluding Thoughtsp. 323
Introductionp. 323
Common Rulesp. 323
Summaryp. 324
Answers to Quizzes and Projectsp. 327
Frequently Used SQL Keywords in Microsoft Accessp. 341
Terms and Definitionsp. 345
Microsoft Access Data Typesp. 351
SQL Script to Create the Tables in This Bookp. 353
Indexp. 369
Table of Contents provided by Ingram. All Rights Reserved.

An electronic version of this book is available through VitalSource.

This book is viewable on PC, Mac, iPhone, iPad, iPod Touch, and most smartphones.

By purchasing, you will be able to view this book online, as well as download it, for the chosen number of days.

Digital License

You are licensing a digital product for a set duration. Durations are set forth in the product description, with "Lifetime" typically meaning five (5) years of online access and permanent download to a supported device. All licenses are non-transferable.

More details can be found here.

A downloadable version of this book is available through the eCampus Reader or compatible Adobe readers.

Applications are available on iOS, Android, PC, Mac, and Windows Mobile platforms.

Please view the compatibility matrix prior to purchase.