ABS (), 128
Access database, see Microsoft Access
Access project, see Microsoft Access project
Active Server Pages, see ASP
aggregate functions, 106, 112-115
creating join containing, 165-166
ALTER TABLE, 31, 45-47, 201-203
arithmetic operators, 106, 108-111
CHAR data type, 36
CHECK constraint, 40
client/server database, 11
client/server database system, 1, 11
setting default value for, 205-206
comparison operators, 87, 89-90
concatenation, 61, 82-84, 117-118
COUNT (ColumnName), 112
COUNTER data type, 37
Currency data type, 37
Data Control Language, 18, 32-33
Data Definition Language, 18, 32
Data Manipulation Language, 18, 32
data storage, 3
naming, 22
database management system, 1, 11-12
date and time functions, 106, 122-128
dates, inserting into table, 124-125
DATETIME data type, 37
DBMS, see database management system
DCL, see Data Control Language
DDL, see Data Definition Language
DECIMAL data type, 36
DEFAULT, 205
dialog box, customizing, 233-234
divide, 109
DML, see Data Manipulation Language
DROP, 206
field, 32
field size, 32
flat files, 3
FLOAT data type, 36
FOREIGN KEY constraint, 40
using, 44
FROM keyword, 62
full outer join, 314
functions,
string, 106
HAVING clause, 133
with the GROUP BY clause, 140-141
with the WHERE clause, 142-143
HOUR (), 123
HTML, 275-276, 282-286, 289-291
hyperlink, 352
Hypertext Markup Language, see HTML
IMAGE data type, 37
sorting, 210
INDEX, 201
INSERT INTO keywords, 48
INT (), 128
INTEGER data type, 36
Internet Information Services, see IIS
many-to-many relationship, 8
many-to-one relationship, 8
Memo data type, 37
Microsoft Access, 15, 19, 293-297
enabling blocked query in, 33-34
switching to version SQL-92 in, 17
Microsoft Access project, 293, 298-300
Microsoft Access Query Wizard, 19-20
minus, 109
MINUTE (), 123
modulus, 109
MONEY data type, 37
multiply, 109
negation, 109
non-correlated subquery, 175-176
non-parameter parameter query, 248-250
NOT, 90, 100-102, 176, 179, 181
NOT NULL constraint, 40
using, 41
NOW (), 123
NULL constraint, 40
using, 41
NULL statement, 32
NULL values, inserting into table, 51
Number data type, 37
numeric data types, 36
Nz (), 128
ODBC connection, setting up, 277-281
OLE Object data type, 37
ON, 146
one-to-many relationship, 8
one-to-one relationship, 8
operators,
string, 116
see also sub-query
parameter, see parameter query
union, 167
viewing as SQL statement, 257-258
Query Design view, 20-21, 62-63
Query Wizard, see Microsoft Access
Query Wizard
REAL data type, 36
records,
deleting, 58
filtering through view, 197-198
updating through view, 198-199
recordset, 253
result set, 62
RIGHT (), 116
right outer join, 160-163, 314
ROUND (), 128
RTRIM (), 116
SECOND (), 123
SELECT statement, 32, 62-67, 220
SELF JOIN, 146
SMALLINT data type, 36
SPACE (), 128
SQL, see Structured Query Language
SQL script,
integrating in ASP code, 275-277
integrating in VBA code, 253-276
switching to in Microsoft Access 2003, 25-28
switching to in Microsoft Access 2007, 23-25
STDEV (), 128
STDEVP (), 129
stored procedures, 310-311, 316-317
string operators, 116
Structured Query Language, 15-16
syntax, 18
see also query
deleting, 207
temporary, see temporary tables
tables (database examples)
Activities table, creating, 353-354
Activities table, working with, 124-125
Committee1 table, creating, 354-355
Committee1 table, working with, 167-172
Committee2 table, creating, 355-356
Committee2 table, working with, 80-83, 167-172
Computers table, creating, 356
Computers table, working with, 91-95, 118-121, 192-195, 216-219
Customers table, creating, 356-357
Customers table, working with, 148-152, 155-166, 177-180, 195-196, 256-257, 281-282
Customers2 table, creating, 357-358
Departments table, creating, 359
Employees table, creating, 359-360
Employees table, working with, 71-74, 153-155
Friends table, creating, 360-361
Friends table, working with, 102-103
Manufacturers table, creating, 43, 361-362
Manufacturers table, working with, 44-45, 76-79
Numbers table, creating, 362
Numbers table, working with, 107-108, 110-111, 113-115, 129-130, 203, 205-206
Products table, creating, 363-364
Products table, working with, 156-159, 184-186, 189-190, 209-210, 213
Sales table, creating, 364
Sales table, working with, 56-57, 177-188, 238-239
Tools table, creating, 365-366
Tools table, working with, 96-102, 230-238
Toys table, creating, 40-41, 366
Toys table, working with, 42, 44, 48-51, 54-56, 65-67, 69-70, 72, 75, 83-84
Transactions table, creating, 367
Transactions table, working with, 135-137, 139, 141-143, 148-152, 157-166, 195-196
copying records from, 223
deleting, 224
indexing, 221
updating, 222
TEXT data type, 37
TIMESERIAL (), 123
TINYINT data type, 36
TRUNCATE (), 129
VALUES keyword, 48
VAR (), 129
VARP (), 129
integrating SQL script in, 253-273
filtering record through, 195-196
querying, 199
updating record through, 198-199
virtual table, 191
Visual Basic for Applications, see VBA