Вы находитесь на странице: 1из 390

.

Microsoft Press

Rebecca M. Riordan

DESIGNING

Relational
Database
Systems

Microsoft Press

2001

. 1111) 11

004
32.973.26-018.2
45

.
45
/, . .: - , 2001. 384 .: .
ISBN 5-7502-0150-3
, . , . , .
, .
Microsoft.
,
, , ,
.
18 , . - , , , .
004
32.973.26-018.2

Microsoft Corporation, , , .
ActiveX, Microsoft, Microsoft Press, Outlook, PowerPoint, Visual Basic,
Visual SourceSafe, Visual Studio Windows
Microsoft /
. .
, , ,
, , , .
,
, 1999
, Microsoft Corporation,
ISBN 0-7356-0634- ()
ISBN 5-7502-0150-3

2001

, - , 200!

-,

XIII
XVI
XVII
XIX

I.

1.

3
5
6
7
8
9
11

13

13
16
21
23
25
.....27

2.

29



-





-

35
35
36
38
40
43
44
46
46
49

3.

50
52

53

53
56
59
61
64
65
66
67
70
72

4.

73

73
74
76
77
79
80
81
82
82
85
86
86
87
92
94
94

5.
Null ( )

95
...96
98
99
99
99
100
101

102
104
105
105
106
107
108
109
110

110

TRANSFORM
ROLLUP
CUBE

111
111
112
113
114

II.

115

117

118

118
123
123
123
123
123
123
124

7.

125



,
,

125
132
133
134
136
137


...

138
..142

143

144
144
145
149
151
153
154

155









,

-

155
160
163
163
163
164
164
164
165
166
166
166
168
169
169
171
171

171

10.

173
173
173
174
176
180
183
184
188
190
191

193
193
194
194
195
196
198
199
201
202

11.

205

205
206
206
208
209
210
210
211
211
212
213
213
214

III.

215

12.

216

216
218
220
220
221
221
222
225

227
230

13.

231





, Microsoft Outlook

MDI

231
234
234
235
236
237
238
240
..241
243
244

14.

245

246
249
251
255
257
26J

15.

263

265
267
267
270
273
275
277

16.

279



,
,
,
Null

280
282
283
283
283
...285

,

-
,

286
287
291
...292
293
296

17.

297

,




Microsoft English Query


,







298
299
299
301
302
303
304
304
305
306
306
308
310
311
312
312
318
319

18.

321






,





...

323
323
324
326
327
328
329
331
331
332
333
334

335
341
343
353

, . ,

-
, .
, , .
, SQL.
.
-? ,
, , ? , ,
. , , .
,
.
, , ? ,
, ,

. , ,
, , .

, ,
, , , .
.
, , , . ,

.

, , HCBOEI . , .
, , .
, . , , , . , ,

Microsoft Windows, , . 16, , , - . , , ,
, .
, , ,
, -


. , ,
. ,
.
(Michael )

.
. .

, : , , , ,

.
,
.
, ,
.
,

: , , .
, , ,
. ,
. , .

, , .
,
. , ...

.databases.ms-access, .

.
, : ,
,
,
(Rebecca Riordan)

. , ,
- . , . , ,
, .
. Windows Desktop
, ,
.

, .
, , ,
.
, . ,
, ,
...
, .
: , . , , , , . . , , ; , -

, .
.
, , , .
,
. .
. , . ,
, .
: ,
. ,
.
,
, . , ,
, ,
, . , , Northwind, Microsoft Access. ( Northwind, SQL Server 7.0, ).
, , . ,
, ,
,
. , , .

-,

-
, Microsoft, Microsoft Knowledge Base, . , Microsoft Word , . ,
,

Microsoft
Microsoft Knowledge Base
MSDN, Microsoft TechNet Microsoft Knowledge Base , . -, , .
Readme.txt.

- , . Word.

Word
, ,
.

- . Forms. Microsoft

-,

Word 97 Microsoft Word 2000. Microsoft Word, Microsoft Word Viewer. Readme.txt.

Word
Word -
Word, . Word Forms -.
Readme.txt.
Word Templates
, .
File New, . , , .

,
Access 97 Database Access 2000 Database , Microsoft Access 97 Microsoft
Access 2000
.
, , : ,
. , ,

- .
(, ) , , .


.
, , , , ,
. ,
.
SQL
, .
.

-,


, . , .
,
. Access
Database Splitter Wizard.

, .
, , .



, , (
)
, , , -

, .

AutoNumber. . , , , .
. ,
, , ProjectID, . . , Reference
Tables ( ) Projects () , .
,
.
. , .


, -,
.

-,
, ( ).
,
.


Access 97 Access 2000.
Word , Word 97 Word 2000.
Microsoft Word Viewer.


, . , , Microsoft Press, :
hltp://mspress. microsofl.com/supporS
, ,
-, .
Microsoft Press:
Attn: Designing Relational Database Systems Editor
One Microsoft Way
Redmond, WA 98052-6399
: msinput@microsoft.com
, Microsoft
. -, ,
Microsoft Access 97 Microsoft Access 2000.
Microsoft Access : htip://support.microsoft, com/support/.

, ? , . , , ( .
) , ,
,
. ().
(),
300 , , , .
: Microsoft Access Microsoft SQL Server.

( ) , : . ,

, ,
.
, . . (, OrderTotal) ,
, . ,
.


, , , , ,
- .
(,
), (.
SQL Server).
, ,
, , SQL Server, ,
.
.
. 1-1
, .
, . ,
, ,
.

, ,
.

, ,
.

.
. : , Customer ()
Name () Address (). : , CustomerName .
, ,
: , , ,

.
.


. 1-1. ,

, .
, , , . , ,
. ,
, (database engine) , . . ,
; , - .
, Microsoft Access, ,
, , . , , , . ,
. , , , , , .
, ,
, , ,
, - (,
Microsoft Transaction Server).
, . , Access
.mdb , a Microsoft Jet
. .mdb, , (, . .), ,
.
: , ,
, , . , , .


, , ,
; , , .

, Microsoft. , .
(. 1-2). , , , , .
.

Microsoft Access


Microsoft Query
SQL Enterprise Manager



Microsoft Access
Visual Basic
HTML
ASP

ADO
DAO/Jet
DAO/ODBCDirect
RDO

Microsoft Jet;

SQL Server;

. 1-2.


. , ,
, 10.
, :

. ,
Microsoft Jet SQL
Server. , Microsoft Access? . Access Microsoft Jet , .mdb,
ODBC ,
, SQL Server. Microsoft Jet
Access, Microsoft Microsoft Visual Basic 3.
Access 97 ODBCDirect, a Access
2000 SQLServer, Microsoft Access Microsoft Jet. ,
; .
Microsoft Jet SQL Server
, .
Microsoft Jet , . SQL Server - ,
.
, (Microsoft Jet
.)
. 10.


Access, Visual Basic .
. , ,
.

.

. , , .
Microsoft :

Data Access Objects (DAO) : DAO/Jet


DAO/ODBCDirect;
Remote Data Objects (RDO) ODBC;
Microsoft ActiveX Data Objects (ADO) DAO RDO.
DAO , Microsoft Jet. RDO
DAO, ODBC,
SQL Server Oracle. , ADO , ,
,
(disconnected recordsets) , .
,
,
. , , ( W i l l i a m Vaughn) Hitchhiker's
Guide to Visual Basic and SQL Server, , Web- Microsoft. ,
, V i s u a l Basic Library SQLServer
(VBSQL) OLE DB.


Microsoft Jet SQL Server
, ,
. Microsoft
,
: Access Microsoft Visual Database Tools. , . Access Microsoft Visual Database
Tools, , .

,
. , , . , ,

.
,
.
,
, . : Access Visual Basic. 10 Web, HTML .


,
. 60- . .. , IBM, 1970 . 1
( ),
( ), , ( ).
. : , , .
.
,
, . . , Microsoft
Jet Microsoft SQL Server.
,
,
.
. ,

.
1

. F. Codd. A Relational Model of Data for Large Shared Data Banks. Communications of
the ACM. Vol. 13. No. 6 (June. 1970).

, .
.
Microsoft Access,
, , , , SQL Server, . ,
(relation), (
, , ). : , . , .
;
, . ; 30

.
, .
. , , , . ,
, .
.
, ,
.
. , Microsoft Jet, SQL Server
.
,
.

, FullNameQuery,
FullName.
, FullNameQuery
. FullName , . , , .
, , .

. ,

, (, , ,
). , ;
.

,

. 1-3
. , , ,
. ,
,
.

|
Leka Trading
Cooperative de Quesos 'Las Cabras'
Fprrnaggi Fortini s.r.l.
G'day. Male
Mayutrii's
New England Seafood Cannery
New Orleans Cajun Delights
G'day, Mate
New Orleans Cajun Delighls
PB Knackebcbd AB
Pasta Buttini s 1

PiHUMRHMCia*e

: Singaporean Hokkien Fried Mee


'Qjesc Cab'sles
IMozzarella di Giovanni
iManjirnijp Dried Apples
JTofu
Jack's New England Clam Chowder
: Louisiana Fiery Hot Pepper Sauce
jManjimup Dried Apples
Louisiana Fiery Hot Pepper Sauce
Gustafs Knackebrod
Ravioli Angelo

. 1-3.

1\#rke:c;urri'rii;y
J14.0Q
121.00
134. BO
153.00
(23.25

SS!K

(21.05
(53.00
(21.05
$21.00
$19.50

,
. , , . , w-, -, , .
- . 1-3 . .
, .

. ,
.
, (, UnitPrice:Currency). , .
,
( ). .
.
.

( , 0 ).
. -, . . . -, (
, , , ).
, . .
, , .
, Access SQL Server,
, , ,
. , , ; ,
Microsoft, . (
, ,
-, , n- ).
, .
,
( Microsoft Jet) (

SQL Server). Microsoft Jet, SQL Server , , .


; , ,
.


, . , , , .

,
:
, .
. , , , .
: .
.
. , ,
, , .
, *,
; , . , :
.
,
, .
:
(
) ,
.
, , . ,
, ,
.
, , N N

,
N . ( N )
, ( ) . ,
.
, ,
.
, . , , , . . ,
-. , ,
, ,
. ,
- . , ,
. .
, . , , ,
, ,
, . :

N , . ,

.
, ,
(
}. , ( )
.
(, )
(,
,
).

,
. Typed/Sale
( ), Type Of Customer ( ) . . , . , ,
. . , :
, TypeOfSafe.
,
. , , ,
. : , , , .
, ,
. . , ,
, .
, , ,
. .
.
, : , ,
, ,
, ( , ). , , , , ( ).
, , , , .
, , , ,
.

,
, .


. . ,
, Customer (), , ,
, , .
,
, , ,
, .
, . ,
,
. .
(Address) (HouseNumber - , Street - , City - , ZipCode - )?
( )
. , ,
.
, -.
,
.
, , , .
.
- , ? , , , . ,
-, ,
:
.
() .
, , ?
,

.
.
, : HouseNumber ( ), Street ( ), City (), State
(), ZipCode ( ), .
, .
? ,
, , ,
?
.
,
. ,
.
, . , ,
4/32 Griffen Avenue, Bondi Beach, Australia 4/32 (4) (32)?
, , , :
, . , ,
, -.
, , , . . ? ? , .
, , .
, - , ,
.
, ,
. : -

, .
? - : ?, , , .
, , , : ?,
.

, , ,
, . - ,

, .
, ,
, , . , , , . ,
, : 4 ., , 1900 . ,
, .
.
, .
, ,
. ! , .
, . ,
.
,
-

, . ,
, , .
, : , .
: -, , -,
( ,
, ). , .
, , , ,
, , , , .
,
. . , Ms. Jane Q. Public
(Ms.), (Jane), (Q) (Public). ,
Title (), First Name
(), Middle Initial ( ) LastName (), ?
, . -, , .
GivenName (, )
Surname ( ). -,
, ,
, {Sir James Peddington Smythe, Lord
Dunstable)! , (Peddington Smythe) ? , , (Peddington)
- ? , , : (Lord Dunstable)"? (Sting)! GivenName (,
) Surname ( )? ,
, The Artist Formerly Known as Prince
(------)? ?

. ,
, (Sir James
Peddington Smythe), , .
', . ,
, . . , -, ,
,
, . 1-4.
Menibei Details

. 1-4. .
, , , , , . ,
,
: ?
, , - .

, ,
, . , ,

, .
, .
.
, .
, ,
,
. ,
. , . 1-4,
. ( , ), , .

,
, _:_.
, ,
. ,
,
.
. .
, . ,
, . .
StreetName ( ) Surname ()
; ,
,
.
, ,
. : Degree Awarded, , . ,
(Text[3f). , , ; {, BS, MA, MS, PhD, LLD, MD}.

, ,
. , Age () , , . , , ,
. , PersonAge ( )
0 120, a ExhibitAge ( )
, 0.
, , ? .
: , . , , , State,
ZipCode ( ) , .
, , ,
( ),
, .
, ,
.
varchar(30) ( , , 30) Long Integer ( ), .
varchar(30), Long Integer ,
.

,, , , ,
( 5). ,
, (type-compatible}.
, . 1-5,
, EmployeelD = Salesperson!!)
(, ).
EmployeelD Salesperson ID . EmployeefD = OrderDate,
,
.

Orders
Ontario]

rwtomei

10243 Vms et alcocls Chevalier


10249 Toms Spezialttaten
10250 Hanari Carres
10251 Victuailles en stock
10252 Suprernes dehces

'.[ipi-Di.m isnli-H>-i(i5
04-Aug-94
" 05-AU0-94
4
OS-Aug-94
3
08-Aug-94
41 Q9-Aijg-94

Employees
IjDavplm
Nancy
...Sales Represent alive
2 Fuller
Andrew
Vice President, Sales
3'Leveriing ...Janet
Sales Representative
4 Peacock
Margaret
Sales Representative
5: Buchanan Steven
Sales Manager
G Su^arna
I V I i c h a e l S a l e s Representative

Pttc.1-5. Employees Orders


, Microsoft Jet SQL Server ,
. , ,
.
. ,
Northwind, Microsoft Access .
EmptoyeelD Employees ,
InvoiceTotal invoices currency (), ,
WHERE EmployeeW = InvoiceTotal. Microsoft Jet
, (EmployeelD) ,
(InvoiceTotal). ,
, Microsoft Jet,
, ? : , .
, ,
. :
?*
, ,
?. .


. -

. , * ,
Customers () Products () , . . ,
.
, . Customers () Products (). , , . , , .
.
,
. .
:
.
:
, .
, ,
. , , ,
.
. ,
,
, , , . ,
,
. ,
.

, ( 3).

. , ,
.
, ,
, , . : , -
,
. , . , Employee () , Salesperson ( ) .


.
. , ,
. Products ()
,
- , .

-
1976 . (Peter Pin Shan Chen) , ,
, 2.

(Entity Relationship diagrams,
E/R diagrams), .
, , (. 1-6).

1' Pin Shati Chen. The Entity Relationship ModelToward a Unified View of Data? ACM
TODS I. . I (March. L976).

. 1-6.

( ,
)
-. I
I ; . ,
. . 1-6.

, .
, , .

, ,
.

, .

, , , , .
,
. , , .
, , .

.


.
, , . , .
,
,
, . , . 2-1 - (, , ,
- ).

10361 .-*,, \ai\-,


10773 Oavcl.0 Naio
lOdiS Davdiu Nine10773 Osralio Harcy
IOP32 Dayolia Naiuy
10916 DavQlio Nancy
10727 Fuller ^drew
10727 Fuller Andrew
157 . Robert
1C642I Kmq Robert
10523 Kinc Robert
56 Leitmq Ja-iet
10356' Lenerlmq Jane!

. 2-1.

, HireDate Telephone Extension


, .
.
-,
HireDate
Telephone Extension, (,
). , . 2-2, ,
(Steven Buchanan)
1989 1998.?
,
, . , - ,
.
1036 Buchanan Steven
1(W Buchanan Steven
10.4 Buchanan Steven"

1D/179:3453
10/17545
10/1753 "

La maiscn d'Asie
Save-a-lot Markets
" " SaWlol Markets

SasqualchAI
Moi2arella di Giovanni
Zaanse koekert

12
50

Puc. 2-2.

.
, , .
. 2-3 ( ,
). Around the Horn , Customer
Invoice,
.
,
. ,
, .
, , ,
,
, ?
.

2
Customers
Alfreds Futterkiste
030-0074321
Ana Trujillo Ernparedados helados [5) 555-4729
Antonio Moreno Taquerfa
I [5) 555-3932
Around 1he Horn
1(171) 555-7786
Jjgrglunds snabbkop
'21-12 34 65

Invoices
10952! Alfreds Futterkiste
030-0074321
10952 Alfreds Futterkisle
Q3Q:OQ74321
10625 Ana Trujiljo Emparedadcs helados (5) 555-4729
10525 Ana Trujillo Emparedados helados (5) 555-4729
10625! Ana Jrujilip Emparedados helados !(|5) 555-4729
10856! Antonio.Moreno Taqueria
.(5)555-3932
10558! Around the Horn
! [171] 555-7788
10568! Around the Horn
(171 j 555-7788
:
10558E Around the Horn
(171) 555-7788
10558 Around the Horn
.(17j ) 55S77SB
10572 Bergiunds snabbkop
^H? 3-i 65
10875 Bergiuncts snabbkop
!092i-123465
10875 Bergiunds snabbkop
10921-123465
10875 Bergiunds snabbkop
J092;l:12 34 65

Puc. 2-3.

, , , . , , ,
.
. 2-4. , UnitPrice . ,
.
UnitPrice Products
. UnitPrice Orders ,
. 7/, , Orders , t/mY/V/cepaBHo$18,60, Products
-, UnitPrice $23,25. , / $23,25, ,
$18,60.
, .

Products
11 Queso Cabrales
UiTofu.
22 Guslarfe Knackebrbd
41 Jack's New England Ctarn Chowder
42 Singaporean Hokkien Fried Mee
51 Manjimup Dried Apples
57; Ravioli Angelo
65' Louisiana Fiery Hot Pepper Sauce
66 Louisiana Hoi Spiced Okra
72 Mozzarella di Giovanni

S21 00
J2325
121.00
$9.55
114.00
(53.00
(19.50
121.05
S17.00

Orders
10248;Singaporean Hokkien Fried Mee
1C04B|Queso Cables
1024BijVlqzzarel|9 di Giovanni
102491 TpiT"]
10249 Manjimup Dried Apples
10250: Manjimup Dried Apples
10250] Loujsiana.Fiery Hot Pepper Sauce
10250; Jack's New England Clam Chowder
10251 Ravioli Angeio
10251 Louisiana Fiery Hot Pepper Sauce
10251^Guslafs Kneckebrod

114 DI
(34 BO
42.40
"$42.40"
$16.80
(7.70
$15.60

$16.80

10, 04-Aug-94
12 04-Aug-94
5; 04-Aug-94
9; 05-Aug-94
40; 05-Aug-94
35^" 08-Aug-94
"l5|"D8-Aug-94
10] --94
15! Oa-Aug-94
20! 08-Aug-94

$1680

. 2-4. , ,


( , ), . , , .
,
,

(. 2-5).
1,
, . 2-5. : :

TitleOfCourtesy &
", " & Title

FirstName S " " LastName

1 Ms.
2 Dr.
3;Ms.
4 Mrs.
5; Mr.

'Nancy
^Andrew
!
Margaret
: Steven

[Davolio
..Sales Representative
iFuller
Vice President, Sales
Leveling
Sales Representative
[Peacock
Sales Representative
Buchanan Sales Manager

1 Ms. Nancy Davolio. Sales Representative


2:O. Andrew Fuller, Vice President, Sales
3 Ms. Janet Levelling. Sales Representative
Mrs. Margaret Peacock, Sales Representative
5 Mr Sleven Buchanan, Sales Manager

. 2~5.
,
, FullName , :
Function GetLastname (FullName as String) as String
Dim lastname as String
1

lastname - LefttFullNarne, InStr(FullHame,
1

lastname - Right(lastnarne. Len(lastnane)
InStr(lastname, " "))
1

lastname = Right(lastname, Len(lastname)
InStr(lastname, " " ) )

End Function
FullName; , .
Billy Rae Jones Rae Jones; , ,
Jones. ,
(LastName, FirstName}, .
, ,
,

(. 2-6 2-7),

Enrollments

jerm.j

Pllr ic-sl F'ii,-a Biqlogy

rtenth

. 2-6,

Enrollments
1 Nancy
2 Andrew
3 Janet
4 Margaret
5 Steven
6 Michael
7: Robert
11 Nancy
2. Andrew
3|Janet
A Margaret
5 Steven
6 Michael
7 Robert
1 . Nancy
2. Andrew

""'"'I

Davolio
Fuller
Levelling
Peacock
^Buchanan
iSuyama
King
.Davolio
duller
jleyerling
i Peacock
Buchanan
Suyarna
King
DavoNo
Fuller

i
i
:
'

<-fa*
1 Biology
1i Physical Education
1 Physical Education
1 French
1 Biology
1 French
1 History
2 French
2 Biology
2. Biology
2. Physical Education
2: French
2 Physical Education
2 French
English
3 French

Puc. 2- 7. ,


? ,
Biology . SELECT SQL :
SELECT
OR
OR
OR

StudentID FROM Enrollments WHERE Periodl = "Biology"


Per:.od2 = "Biology" OR Periods - "Biology"
Penod4 = "Biology" OR Periocl5 = "Biology"
Periods = "Biology"

, . 2-7, Class:
SELECT StudentID FROM Enrollments WHERE Class - "Biology"

,
, ,
, .

,

.
. - (
) , , , . :
,
.


, ,
, , . ,
.
. , .
,
.
,

, .
, ( , )
.
, , , .


, .
. , ,
. ,


. . , (. 2-8), (. 2-9).

1024 04 Aug-94
1024 QS-A'.'i|-Si
1.0250' "te-Au(|-S4
1C2E.1.'|" pe-Auij-94

D1-SBp-94;Vins el alcoole Cheya|ier


ie-Sep-94 Tos 5pi;.llalfn
Os-Sefi-94 HaranCarnas
IK-Sep-SiViciiisiiiese^stock
femes delices

59 rue de I'Abbaye i^eims


_usensf4S
. .\t*u-i$\v
'Kua do Pai.6?
"Si: de Janeiro
2V wsdii Commerce Lym
Boulevard Tirou, 255 Chsrleroi

51100
i4CB?
[I54S4-8T6
^...

. 2-&
Customers
ALFK1
ANATR
ANTON
AROUT
BERGS

Alfreds Fullerkiete
Ana Trujillo Emparadados j helados
Antrjiiig Moreno Taquena ....
ArauridlheHorn
Bertilunds snabbkop

pbtre Sir 57
Avda. de Conatilucitn
Malatferos 2312
120 Haiio-erSnRiiaunsvagan El

1220
05021
05023
WAI 1DP
S-956 22

Invoices
10248 VINET
1024
10250 HANAR
10251 viCTE 1 "

8/4/94
'3/54

. 2-9. . 2-8

,
, Customers Invoices CustomerlD.

-
1
, 0 , , . , .
-.
, - , , . , :
-,
. , - . , ,
.

-. :
,
.
Invoices (. 2-9). Customer ID , ,
! ,
, -.
,
, , -
, . -
( } ( }. , : , , -. , . 2-10, Category ) -, (CategoryID, CategoryName}
, , CategoryName .
Beverages
Soft drinks, coffees, teas, beers, and ales
2 Condiments
Sweet arid savory sauces, relishes, spreads, and seasonings
SjCpnfeclmns
Desserts, candies, and sweet breads
4 Daiiy Products Cheeses
5 Grains/Cereals Breads, crackers,pasta, and cereaj
6 Meat/Poultry
Prepared meats
_7._ProducB
, Dried fruit and bean curd
8: Seafood
Seaweed and fish

I'nc. 2-10. - ,
CategoryW, {CategorylD,
CategoryName}
, ,
-.
- , -
. . (, ). ,

- .
-
(, ), ,
Microsoft Jet Microsoft SQL Server
.
, . AutoNumber Microsoft Jet Identity SQL Server,
. , -
.
. , , . - , ,
1.
- ,
, , ,
-. ; , , ,
.
, , -, . , .
, - -.; ,
, , -. -
, , , ,
Auto Number Identify. : - !



. -

{1,...,} {Yl,...,Yn} ( X
Y ) , Y
X,
X Y.
, . 2-10,
\CategoryID} (~
tegoryName, Description}. , tegory/D {CategoryName, Description}. ,
: {CategoryName, Description}, Category/D.
, . 2-11.
X -^ Y,
X Y.

. 2-11.

-,
. , , , .
,
,
, , ,
.
{X} -, {Y} {X}: -. {X} -,
( {Y}
{X}), .

- , , . 2-11, -.


, ,
, .
. :
.
? , . 2-12, Items

.
.
0|

| ;CsteieTffi | ; GtdetDate j

1 CACTU
2 BSBEV

SUPRD

"

Items

1/1/99 3 Zaanse koeke , 1 Tarte au sucre


1/5/98 4 Mczzarella di Siovanm
5/2/99 3 Ravioli Angelo GTofu

OnterT&tal |
189.70 ;
S13920 '

"

. 2-12. Items
,
, 1.
. , ,:
, . : ? , , . , .
.
(, , :
, ).
, , .
,

DafeTime,
. , ,
, . ,
, . -

, DateCreated , Now (VBA): , ,


. , DateO,
( ). , , 1/1/1999 12:30:19 AM 1/
1/1999 .
, ,
. , , REF0010398.
, ,
1998 . ,
-,
.

: (Ref#, Case#, Month, Year).
,
.
, , -.
-,
.
,
.
,
, .
, Windows API . ,
.
, Jet, SQL SQL Server . ,
, Mic-

rosoft Access (Microsoft Visual Basic , ).


.
, : , . .. - ,
.
,
.
,
,
: . . 2-13
Invoices. - - , . (
, , - ). , , .
, .
1 ANTON
2 BLAUS

Quaso Cabrales
I Louisiana Fiery Hot Pepper Sauce

Tofu
2

3!Rjioli Angela
OJ

Puc. 2-13. ,

. 2-14. , .
,
. 2-13, . ,
,
10% I .
Aniseed Syrup
Chai

. 2-14.


, , ,
-. ,
. 2-15, {ProductName, SupplierName}, Supplier Phone Number
SupplierName, .

ments
marts.
merits'

(171) 555-2222
(171) 555-3222
(171)555-2222
(100) 556-<822
flrJO) S5S-ffl2.

2- 75.

,
, , , .
, . 2-16.
Products
1
2
3
4
5

Chai
\ Beverages
Chang
_ _ _ _ i Beverages
Aniseed Syrup
_ J Condiments..
Chef Anton's Cajun Seasoning : Condiments
:
Chef Anton's Gumbo Mix
Condiments

Suppliers
!

i
-i: .,m '
^-,^.^i!... W .*n - !
IIHP(leW!iE"'"^?l?=iSi3:'sll!iHl*fPe*j
1 Exotic Liquids
2 New Orleans Cajun Delights
3| Grandma Kelly's Homestead
4 : Takyo Traders
5 Cooperative de Quesos 'Las Cabras'
6 Mayumi's
7. Pavlova. Ltd.
8 Specialty Biscuits, Ltd.
9 PB KnackebrodAB
4

! (171)555-2222
1(100)555-4822
1(313)555-5735
(03)3555-5011
(9B) 598 76 54
t
:jD6) 431 -7877
(03) 444-2343
(161)556-4448
031-9876543

Puc. 2-16.

: Products Suppliers.
,
,

- .
, .
,
. ,
, . ,
. 2-17 , . ,
- , .

Puc. 2-17..


, , ,
. , ,
,
. , . 2-18, Region Salesperson,
- .

OrrteclBJ
CqmpanyNami!
10389: Bottom- Dollar Markets
10290:Comercio Mmeiro
10347 FarniliaArquibaldo
10386 Familia Arquibaldo
10423: Gourmet Lanchonetes
11D61. Great Lakes Food Market
10528. Great Lakes Food Market
10785 GROSELUV-Restaurante _
10266 GROSELLA-Restaurante
10253^Hanari Carnes
10925 Hanari Carnes
10931:Hanan Games
11052:Hanan Carnes
10415 Hungry Coyote Import Store
175 Hungry Coyote Import Store
104 Hungry Coyote Import Store

Retlk ni
Salesperson
BC
Margaret Peacock
SP
Laura Callahan
SP
Laura Call ati an
SP
..Laura Callahan
1
SP
Laura Callahan
OR
Michael Suyama
OR
Michael Suyama
DF
.. = Nancy Davolio
DF
i Nancy Davolio
RJ
-Janet Leverling
RJ
Janet Leverling
RJ
-Nancy Davolio
RJ
iJanet Leverling
OR
iMichael Suyama
OR
Michael Suyama
OR
iMichael Suyama

Puc. 2-IS. Region, Salesperson


-,
. ,
PosalalCode ( ),
City () Region (), ,
. 2-19, .
\
Js FullerkialB
Ana Trujilln Lrnpaieiados hi
Antonio Mutf nn Taquena
Jtind the Horn
nj'unss snabbkop
Blondelpere'etfils.
Bolide Comi'J-Ji pr^paradas
Bon app' '
Souorr-Dollar ManVels

S70DO
"2023

Puc. 2-19.
. 2-20
, , . 2-19.
,
, , .
, , , .

CempariyN^Bottom- Do liar Markels


Mineiro
Fsmiha Arquibaldo
Gourmet Lanchonfles
Great Lake; Fco: MjrM
GROSELLA-Restaurante '
Carnas
HILARlb'N-Abastosi
Hungry Coyote Import Store
rsianfl T.sdins

.
| AdHFi-
'23 Tiawassen Blvd
A drs Lijsiadas, 25
;RuaOi6s,92
"Xv 1,2
2732 Baker Blyd
EJ*Ave Los Palo s Grandes
Ruado Pafo,67
Carreia 22 con Ave Carlo!: Soublelle *B-35
City Center Plaza
Gardenhoose

/ '
Tsawassen
SSo Paulo
.SSq_Paulp

;&1;;;

BC
SP
SP

SP

OR
OF
Rio de Janeiro fll

.Eugene

San Cristobal
Elgin

Tachirs

OR
Isle of Wight

T2FBM4
"i62-[M3
i&M2-030
Q4EP6-786
'97403'

'ipej
Rio de Janeiro RJ
Sin Cnsttoal Tichirs
E

JS<"

11
sI.?..of Wight

054Si-876
'SD22
9?~327
_P031 7PJ
f

Puc. 2-20.

, , (,
). ,
, - ,

. ,
; , .



, , . , : ,
, !
-, ,
, .
-

- . , --

. , -, :
-;
- ;
- .
, .
-, , , - 1 . , , , . 2-21.
( ,
), .
SappllerlDl
5
14
20
6
24

Supplififftame
Cooperativa de Quesos 'Las Cabras'
Fotmaggj Fortini s r I
Leka Trading
Mayumi's
G'day, Mate

i.ii,H-l!h" =

11
72
42
14
51

-<.,l.l, '

12
5
10
9
40

UnltPfM
$14.00
$34.80

1980
$1660
S424Q

Puc. 2-2L ,
-
- {SupplierlD, ProductlD] (Supplier Name, Product ID], . 2-22 2 .

, .
: R -
, (X) a {Y)
R (| ( ) - -.
{Y[ . -
- - -.
. .

.
- , SupplierlD SupplierName. , : {SupplierlD} -> {SupplierName} (SupplierName} -> {SupplierlD}.
,., ,
-. . .

. 2-22. ,
. 2-21
,
{SupplierlD} > {SupplierName},
-. . 2-23.
Suppliers
20= Leka Trading
6'Copperativa de Quesos 'Las Cabras1
14: Formaggi Fortim s.r.l
& Majfumi's
24 G'day, Male

Products

20
5
U
k
J

:\

10

11

12' " si 4 oo

14
51

5 .. $34.80
9
$16.60
40" (42.40

Puc. 2-23. ,
. 2-21
- ,
.
. 2-21
,
(, ).


:
. , Northwind Traders
,
,
.
Products ,
. 2-24.
''

Chai
; Exotic Liquids
8 oz, IB oz,32 oz
Chef Anton's Cajun Seasoning New Orleans Cajun Delights 8 oz, 16 o z , 32 oz
Pavlova
Pavlova. Ltd
8 oz, 16 oz.32 oz

. 2-24.
PackSize, ,
. 2-25.
Chai
Exotic Liquids
jIGoz
Chai
.Exotic Liquids
J21 oz
Chai
...Exotic Liquids
,..,.?.?.?.
Chef Anton's Cajun Seasoning | New Orleans Cajun Delights ;16 oz
Chef Anton's Cajun Seasoning New Orleans Cajun Delighls 2 oz
Chef Anton's Cajun Seasoning New Orleans_ Cajun Delights 8 oz
Pavlova
Pavlova, Ltd.
16
Pavlova
Pavlova, Ltd.
12 oz
Pavlova
Pavlova, Ltd
3oz

Puc. 2-25. , . 2-24,


-
, . 2-25
-,
. ,
,
. .

. . 2-24 {ProductName} -S> {PackSize} | {SupplierName}, :
. -

, (. 2-26).
,
-, ,

-.
, .
,
,
. ,
, ,
.

Chai
.
Chai
12
Chai
. .9....
Chef Anton's Cajun Seasoning 16 pi
Chef Anton's Cajun Seasoning 12 pz
Chef Anton's Cajun Seasoning IB cz
Pavlova
.

.
8
Pavlova

Chai
j Exertic Liqutds
Chai
j Eolic Liquids
Chai
;E*otic Liquids
Chef Anton's Caiun Seasoning : New Orleans Cajun Delights
Chef Anton's Cajun Seasoning New Orleans Cajun Delights
Chef Anton's Cajun Seasoning NewOrleans Cajun Delights
Pavlova
Pavlova, Ltd.
Pavlova
Pavlova, Ltd.
Pavlova
: Pavlova, Ltd.

Puc. 2-26, , ,


.
: i
2, 2 3, 3
1, .

, :
, ( - ), ,
,
. , .
, , . :
, ,
, .
[Supplier, Product, Customer] (,
, ), , . , , . 2-27 , , {Ma Maison, Aniseed Syrup, Berglunds
snabk..op} {Exotic Liquids,
Aniseed Syrup, Berglunds snabk,.op}. , Berglunds
snabk..op , Aniseed Syrup ( ). Ma Maison ( ). Exotic
Liquids ( ). , , Berglunds snabk..op .
Exotic Liquids Aniseed Syrup
Afreds Fullerkisle
Exotic Liquids Chef Anton's Cajun Seasoning Berglunds snabbkpp

. 2-27.
: Supplier Product, ProductCustomer SupplierCustomer ( , ) , .
, . -

, .
, .
, ,
. ,
,
( , ).
, , .
, ,
- . , , .

. , ,
, . . , , ,
, .
.
,
, .

2
. , .
. , . .
, . ,
. .


, . ,
, (participants), (degree) .
,
, . ( )
( ). , , .
, .
,
, , . , Customer () Order (), Customer , ,
. Order- Customer Order ,
- .


( , ) ( ).

,
.
, (Chen).
,
: , , .
.
, . , ,
, . 3-1.

. 3-1.
IsA
(<' ) ffasA ( ).
, : IsA , HasA . , Employee
() BasketballTeam ( ) Employee IsA BasketballTeam (
); Employee Address () Employee HasA(n) Address. , Is Has . , Employee SalesOrder
(-) Employee HasA SalesOrder,
, . , Employee SalesOrder Employee IsA SalesOrder
.
, :
. , -

,
, .
, ,
4.
, , . ( , *
, ,)
: ,
.
, . 3-2. ,
(
1)
,
. , , , , .


,
,


( )

: ,

1-^

. 3-2.


, , , ( , primary relation) ( , foreign relation), . 3-3.

. 3-3. (Orders)
(OrderDetails)
, , * . 1-6. -, . , .
, .
. , , (: ). , ,
. , , , -,
, .
,
. , Visio Professional Micrografx Flowcharter
7. Microsoft Access, Microsoft SQL Server Microsoft Visual
Basic ,
.
:
Access ( .mdb Microsoft Jet) ( ,
SQL Server). -

()

()
() () ()

. 3-5. :


, , , . -
, 1953
1972 ., 1975
1986 ., .


, , .
X Y ,
X Y. IsA
, .
, , , . ,
, .
(. 3-6).
Building

>

Office

Employee

. 3-6. Office () Employee ()


Office () Employee
() . , . ( , ).
, . 3-6, , . ,

. , . , , . , (Jane
Doe), ,
, .
, ,
, , ,
.
, ,
, ,
.
: Microsoft Jet 255, SQL Server 250.
,
. (
),
255 .
,
.
,
. , ,
(. 3-7).
;
. Answer () , , . . 3-8 .

. 3- 7. ,
,
Categories
Category! D
CategoryName
Description
Picture

. 3-8. , ,

-

- .
- .
-, .
Northwind, Microsoft
Access, (. 3-9).

. 3-9. Northwind

Categories
, , .
, . 3-9,

, .
, Products, , .
, , ,
.
, Northwind, . 3-10.
, , . ,
.

2.

Beverages

Condiments

Dairy Products

Meat/Poultry

4
Confections

s.

Grains/
Cereas

I
Seafood

4
Produce

. 3-. ,

, , ,
. : %
, .... , , 2. ,
, . , UnitsPerPackage ( ) ,

Beverages (), DairyProducts ( )


. ? ? ,
?
Product () - .
, , , . ,
, ,
, . 3-11
, .

Beverages

Condiments

Meat/Poultry

DairyProducts

Confections

Grains/
Cereals

Seafood

4
Produce

. 3-11. , ,
,
. 3-9 3-10
, - . . :
, , , , -. , , ,
.

, .
, .

, , -. , . 3-9, .
,
,
, .
-, (generic entity)
, - .
, -, -, - .
, ( , ),
, . , , .
(
, ), . , ,
, , , , .


,
, . , 2, ,
.
, .

, . ,
, , . 3-12 ,
.
CustomerServiceRep

. 3-12,
Client CustomerServiceRep . , CustomerServiceRep ,
. CustomerServiceRep, , CustomerServiceRep. ,
, .
4 14, , , ,
.
, ,
, , , .
, , , - ,
, .
, ,

. - ,
.


, , , . ,
. .

(. 3-13).
Ounction table);
, , , , .

2

:
1

'.

f4!
-*

. 3-13.

, ,
, .
, ,
, . ,
, ,
, ,
,
. - - , .
.
,
. , .


, ,
, .
,
. Employee
Manager. , , - , , , , .

-
. , , . ,
Employee - EmployeelD ( ), EmployeelD,
ManagerlD ( ), Employee/ . 3-14.
Employees

EmployeelD

-of

LastName
FirstName
Title
TitleOf Courtesy
BirthDate
Hire Date
Address
City
Region
PostalCode
Country
HomePhone
Extension
Photo
Notes
ManagerlD

Puc. 3-14. ,

.
. , Employee-Manager. ,
, .

(. 3-14). , (
).


, X Z. , -

. ,
.
. 3-15. Mozzarelia di Giovanni,
Vins et alcools Chevalier*,
Formaggi Fortini s.r.l. ForeTs d'erables. , Vins et alcools Chevalier. , . ,
.
VINET

VINET
VINET
VINET

'ins el alcools Chevalier

1024B'QuesoCabrales
10248 Singaporean Hokkien Fried Mee
10246! Moizaralla di Giovanni

Moizarella di Giovanni Formaggi Fortini s.r.l.


Moz7arella di Giovanni Forets d'erables

. 3-15. ,
Vins et alcools Chevalier
,
(. 3-16). , . , .
Suppliers

Products
OrderDetails
Orders
Customers

. 3-16. ,

. 3-17: , .

, 3-17.
. ,
, , *. ,
OrderDelails (. 3-16)
, Orders ; Orders, Customers.
:
OrderDetails, ,
.
, , , , . . 3-17.
OrderDetails , .
, , SupplierProducts , , ,
.
:

. . 3-16 , OrderDetails.
. 3-17
OrderDetails, Supplier Products.
, Products
(. 3-18).

. 3-18.

OrderDetails, . Products ,
, ( Products), ( SupplierProducts),
Products
.
, ,
. ,

(, ).
, . 3-18
. 3-17. .


,
, : -

, . ,
, 200 ,
,
, -
(. 3-19). , , .
';.

Eiology

iPhysicai Education

Fiei-.n
;Binloj;

- *:;'.-! I."1*'

hijii.i

Hi Dry

Franch

English

-79.
( )
. 3-19 ,
ClassPeriod.
,
,
.
, , ,
, . ,
;
, . ,
.
,
, .
, ,
,
. ?
? , , , ? , ,
, , ?
, ,

. ,

, , (
16).

.
: , . ,
: ,
- ,
.
,
.
: , .
4 , .

. , ,
, .
, .

. , , , ,
17 15 1999 . ,
, , 15
1999 . ,
, 17 . , , 17 ,
, , .
, : , 17 , ,
, , ,
.
, , , . ,
.


-. , - : , -

. , ( , , , ) , . ,
-. 8.
. , . .
, ,


, (. 1). , ,
. , , .
, . ,
, ,
, 255 ( 255).
, ,
.
date (), string (), image (). ,
date. TransactionDateTun DateTime, . , date,
,
.
,
. -

, . , , , ,
30 char(30). ,
, , .
,

. . .
: , (
) .
. (,
.) .
. , .
, , , . TransactionDate: , , . , ,
, .
, . ,
. , , , ,
- .
,
, . ,
.
, Name ,
GivenName (), MiddieName ( ), SurName (),
CompanyName ( ) . -

; ( ) .
, , ,
. ,
.
, , . , TransactionDate
, , .
, , , .
,
. ,
{, }.
,
, TransactionDate.
, . .


, . - , (. 4-1).
, ,
, .
.
.
.
, .

. 4-1. ,

, Normal
() Preferred (),

. , Customers.
, ,
Orders.


(entity constraints)
.

,
.
, , . , , , , .
.
.

, . , -

, , , OrderDate, Transaction Date, , ,



.
OrderDate
, .
CompanyName,
Name, ,
Name .
.

, . , . ,
. .
,
. , (ShippingDate) (OrderDate). , , . , , , DiscounlRate ( Customer) TotalSales ( Orderltems), , , ( ).
,
: , .
, , . , Preferred (-

), .
: ,
,
Preferred (), .


3 ,
, ,
.
, ,
.
(referential integrity constraints) .

: . ,
, , , ,
, ,
- ,
. :
, ,
, - ;
- ;
, , .
, . , , . , , , , .

-
. - ,
, : - .
-, -

, . .
Microsoft Jet, Microsoft SQL Server .
. , -
Customer,
? -, . , . , , , . ,
.
, ,
. , . . ,
. , . , ,
.
, 3.

.


-
. : Preferred (), , , .
.
,
. '
, , .
- ,
[, . - , .

, , , ,
.
, (,
8).
, - *
, - . .
:
, .
- ,
. ,
, .
,
-
, , .
( )
.


-
.
. , , , .
. ,
,
, . ,
( ), - ( OrderDetails).
, .
, ,
, . ;
.
,
.

. ,
, . ,
,
, (rolling hack).
,
, . , , . ,
.
Microsoft Jet, SQL Server BEGIN TRANSACTION, COMMIT TRANSACTION ROLLBACK TRANSACTION. ,
SQL Server , - . ,
, .

,
,


, . ,
,
. , . ,
, , .


, ,

, , . , , , .

, . ,
- ( , , ),
( )? , Microsoft Jet, SQL Server, Null
.
, , Null
, .
Null. . . , Null ,
, *//-
. Null-
: !
. .
, , Null , ,
, , ( ).
(conventional value approach).
, . -,
. 9/9/1900 , , ,
.
^//-. , Null ,
,
.
, , .
, ,
(CSR): CSR,
, CSR.
, , CSR, , , , CSR
(. 4-2).

Customers
ALFKI.
ANA7R
AN TUN
ARQUT
BE5GS

BLAUS'
BQJD

BONAP

BSBEV
CACTU
CENTC
CHOCS
CCMMI
COMSH
DRACO
DUMO\
E.ASTC

Blauer See Delicatessen


Blondel pare e! f\\s
861 ido Coroidas praparadis
1
"Bon app
Bottom-Dollar Markets
Bs Beverages
Cactus Comidas para llerar
Centra comercial Mode; urn a
-Chop-suey Chinese
C.o jo Minerro
. Cons olid ated Holdings
Ora:henDlir De'i.alessen
Ou montfe entier

fva-cy Dayplio
^Andrew Fuller
Anne O:d5:rtri .
Steven Buchanan
Margaret Peacock
U4ASSIGNED
Steve" b, c"anan
' Nancj Da.oho
JN^SSIGNED
Robert King
UNASSIGNED
Robert King
Laura 9II ah an
Janet Levarling
1
Michse Suysma
An drew Fuller^
Slpven Buchanan
LrJ.-..S3!GNEn
Laura Caliartan "

CSRs
Nancy
Andrew
Janet
Margarel
Steven
Michael
Robert
Laura
Anne
10 UNASSIGNED

Puc. 4-2,

,
(CSRs) . , CSRs, .
, CSR?
Customer , UNASSIGNED CSR, , CSR 1.
, , . , Unknown ()
AW/ Not Applicable ( ) . , , , ,
.

, Null , , , .
/, ,
Null , .
, Null, : , Null ( ),
Null . ,
DateTime, , Null. , ,
Null, , Null . ,
, a Null
.
.
( ) , Null
. , , Null. , , . , Product () Weight (), Service Call ( ), , , ,
(
).
Null
. ,
.
5.
Null ,
,
. , . , Null .


,
, ,

. , ,
-,
.
. : , , .
3.


: . ()
. Microsoft Jet, SQL
Server .
. ,
.
SQL Server , ,
, . Microsoft
Jet - . , .

, , .


SQL Server
(UDDTs). , UDDTs, , UDDT.
, SQL Server , UDDTs, UDDTs .
, CityName ( ) CompanyName
( ) char(30), SQL Server CityName = CompanyName .
, CityName =
CONVERT(char(30), CompanyName). -

, ,
(
).
UDDT SQL Server Enterprise Manager,
sp_addlype. UDDT , ,
Null. UDDT , .
SQL Server , , UDDT ( , , UDDT). (
, , ).
UDDT
. , UDDT ( ). ,
, : , - . , . , SQL Server CHECK . ( CHECK
, ). , UDDT ,
*. , Microsoft
SQL Server
CHECK UDDTs.

. Microsoft Jet, SQL Server.
USStates. ,
50 . , Microsoft Jet,
, . USStates , ,
.



, . -

1
Microsoft Jet, SQL Server , . SQL Server
( ), , .
, , .
Microsoft Jet SQL Server (. 4-1).
. 4-1. Microsoft Jet SQL Server


SQL Server


Microsoft Jet

Integer

Int

Long integer


-2 147 483 648
2 147 483 647

Smallint

He


-32 768 32 767

Tinyint

Integer


0 255

(exact
numeric)

Decimal

Number
(
)



-10 38 ~' 103*~'

2- 1 7

Float ( 15

PoubJe

8
-1,79
1.79308;
2,23-308 1.79308;

-2,23'3()8
-1.79308

Real

Single

4
-3.4018
3,4038;
1,18' 38 ,40 38 ;

-1.18'38
-3.403*

4
()
255 - 1
Microsoft
Jet; 8000
SQL Server 7.0
(255 )

Char

He

Varchar

Text

255 Microsoft
Jet, 8000
SQL Server 7.0
(255
)

Currency

8



-922 337 208 685
477,5808 922 337
208 685 477,5807

Money

Smallmoney He

4



-214 748, 3648
214748,3647

Datefime

Date/Time

1 1753 . 8
31 9999 .
SQL Server;
1 100 .
31 9999.
Microsoft Jet

Smalldatetime

1 1900 . 4
6 2079 .

Binary

Varbinary

8000

4

8000

()


SQL Server


Microsoft Jet

Text

Memo


2
SQL Server 1 1 6
Microsoft Jet

Yes/No

0 1

Bit

1 ,
SQL Server

, SQL Server
, UDDT UDDT
Null, , , .
LJDDT, SQL Server
UDDT , .
Null , UDDT, ,
.
SQL Server Microsoft Jet , Null.
SQL Server, NULL NOT
NULL
Enterprise Manager.
Microsoft Jet
Null Null
Required. , Microsoft Jet AllowZeroLength, ,
Text Memo (*). SQL Server
.

Microsoft Jet. SQL Server Default
, ,
Default, UDDT.
,
.

, Microsoft Jet, SQL Server . Microsoft Jet


Validation Rule ValidationText. SQL Server
CHECK , .
, Microsoft Jet
CHECK SQL Server ,
. ,
. Microsoft Jet True . CHECK
SQL Server False. : True,
Null CHECK ,
Microsoft Jet True.
, CHECK. , CHECK SQL Server,
Microsoft Jet Validation Rule. , ValidationTexl Microsoft
Jet
. Microsoft Access ,
Microsoft Visual Basic
Errors.
, , Microsoft Jet
CHECK SQL Server. ,
,
, .
, . , ; ,
. Microsoft Jet SQL Server , . , , SQL Server . (Microsoft Jet)
(SQL Server) .

Microsoft Jet, SQL Server


. , , .
,
. .

: Null, a
. - Null . Microsoft Jet IgnoreNulls,
, Null , . , . SQL Server.
, SQL Server
, Null .
, , Null,
, , , . Null
, Null.
, Microsoft Jet, SQL Server . ,
, (
, ). ,
, .
SQL Server , Microsoft Jet. (triggers) ( Transact-SQL
SQL Server), , . INSERT, UPDATE,
DELETE ,
.


Microsoft Jet SQL Server
, .
SQL Server . , . , SQL

Server , ,
.
/// , , . SQL Server ,
.
Microsoft Jet ,
Relation . Microsoft
Relation Microsoft Jet
.
Relation , .
Relation,
Access ( Relationships
Tools), . Table Foreign Table Relation Data Access
Object (DAO) , , Fields ,
.
, Microsoft Jet , Attributes :
dbRelationUnique ;
dbRelationDontEnforce (
);
dbRelationlnherited , ;
dbRelationUpdateCascade ;
dbRelationDeleteCascade .
dbRelationUpdateCascade dbRelation Delete Cascade.
, Microsoft Jet .
,
. SQL Server , .


: , . . , ,
, .
SQL Server . Microsoft Jet , .

. : , ,
, ^- ,
, , .
. .
.
, ,
, .
5 , .

. , .
(derived relation) ,
, . .
.
(views)
Microsoft SQL Server (queries) Microsoft
Jet.
,
, * ( ,
).
,
. Microsoft Access SQL Server Enterprise
Manager . SQL SELECT.
SQL ( ) (Structured Query Language), ' . Microsoft Jet SQL Server , , SQL. , , .
, , SQL , .
SELECT , , .


, . SELECT:
SELECT <_>
FROM <__>
<_> JOIN <_>
WHERE <_>
GROUP BY <___6>
HAVING <_>
ORDER BY <___!>

<_> SELECT - ,
, , . . <__> FROM , , ,
, , SELECT. SELECT FROM SQL- SELECT, .
JOIN , <__>. JOIN . WHERE
<>, ,
. WHERE .
GROUP BY , . HAVING
,
GROUP BY. ORDER BY ,
<___!>.

Null ( )
, , ,
, True False. , , Null,
, .
Null , . True, False

Null. . . 5-1.
. 5-1. And, Or XOr

AND
True
False
Null
True

True

False

False

False

False-

Null

Null

Null

Null

Null

OR

True

False

Null

True

True

True

Null

False

True

False

Null

Null

Null

Null

Null

XOR

True

False

Null

True

False

True

Null

False

True

False

Null

Null

Null

Null

Null

Null

. 5-1, , Null (True, False Null) Null. : Null OP _ = Null, OP . (. 5-2).


. 5-2. (= # ?)

True
False
Nail
True

True

False

Null

False

False

True

Null

Null

Null

Null

Null

True

False

Null

True

False

True

Null

False

True

False

Null

Null

Null

Null

Null

SQL Server . ,

.
(ANSI_
NULLS) (SET ANSI_NULLS OFF), Null'- Null True, Null = <_>, <_> , Null, False. (, ,
SQL Server
Null).
Null SQL IS NULL IS NOT NULL.
. 5-3.
, <_> , Null.
. 5-3. IS NULL IS NOT NULL
Is Null
Is Not Null
<_>}

False

True

True

False

True

False

False

True

Null

True

False


: (restriction), (projection), (join) (divide).

, , , (, ,
).
, .
, , , , ,

SQL- SELECT.
, .

, . WHERE SELECT, :
SELECT * FROM Employees WHERE LasiName = "Davolio";

Northwind , (Nancy Davolio),


( *,
SELECT, *).
, WHERE,
. AND OR . . , W H E R E True.
, WHERE False Null, .

, . , ,
.
SQL
<_> SELECT. , . ,
,
:
SELECT LastName, First, Extension
FROM Employees
ORDER BY LastName, FirstName;

ORDER BY . :
LastName, FirstName.

, , . , ,

-

, . :
, . .
JOLN SELECT. ,
, , , . .

, , (equbjom). ,
.
,
. OrderlD Orders Order Details (. 5-1).
Orders
OrderlD
CustomerlD
Employee ID
OrderDate
Required Date
ShippedDate
ShipVia
Freight
ShipName
ShipAddress
ShipCity
ShipRegion
ShipPostalCode
ShipCountry
. 5-1, , JOIN

( , ) ,
SELECT:
SELECT Orders. OrderlD, Orders.CustonerlD, [Order Details]. Product-ID
FROM Orders
INNER JOIN [Order Details] ON Orders.GrderlD = [Order Details].OrderlD
WHERE (((Orders.QrderID)=10248:

II]

,
. 5-2.
102481VINET
10243: VINET

. 5-2.
Orders Order Details
NorthwindB
Access 2000, , (CustomerlD). Access
, , ,
(lookup control). , ,
Access, , - .

(natural joins) ; , :
;
;
.

, .
, .
Microsoft Jet.
,
, ,
, Microsoft Jet (Row FixUp AutoLookup). , , Microsoft Jet , .

-
-..
, . , ,
(<>, >, >=. <. <=e) -.
- , . . ,
, , , .
, ! ,
(. 5-3). " ,
. , .
ProductCategqryAverages
Beverages
Condiments
nfe ct ions
Dairy Product;;
Q rain 8/C greats!
Meat/Poultry _
Produce
Seafood

915
562
7QD

ProductTotials
I.Chai ...................
2; Chang
.3| Aniseed Syrup 4 Chef^rrton'sCajtin Seasoning
5 Chef Anlon's Gurntiu Mix
6_ Grandma's Soyaenberry J3pread
7 Uncje Bob's Organic Dried I. Pears t
8 Northwoqds Crarrberry
" Sauce

1 1;:Queso Cabrales
_12;_Queso Manchego ta Paslora
13Konbu '

828
1057
328
453
296
301
56
?*?
706
3.44
89l'
404

. -3, ,
-

SELECT, >,
,
:
SELECT DISTINCTROW ProductCategoryAverages,CategoryName, ProductTotals.ProductName
-ROM ProductCategoryAverages .? '
INNER JOIN ProductTotals
ON ProductCategoryAverages. Catep'CjrylQ = ProductTotals-, CategorylD
AND ProductTotals.TotalSolcl > [Prod.uctCategoryAveragesJ.[AverageSold];

. 5-4.
CategwsSa* ]
Beverages
Beverages
Beverages
Beverages
Beverages
Beverages
Beverages
Condiments
Condiments
Condiments
Condiments
Condiments
Condiments
Confections

^^^

Chai
Chang
Guarana Fantastica
Steeleye Stout
Outback Lager
Rhonbrau Klosterbier
Lakkalikoon
Chef Anton's Cajun Seasoning
Guls Malacca
Simp durable
Vegie- spread
Louisiana Fiery Hot Pepper Sauce
Original Frankfurter grune Soi3e
Pavlova

Puc. 5-4. -
, WHERE . Access
SQL-, :
SELECT DISTINCTROW PrDductCategoryAver.ages.CategoryName,
ProductTotais.ProductName
FROM

ProductCategoryAverages

INNER JOIN ProductTotals


ON ProductCategoryAverages,CategorylD = ProductTotals.CategorylD
WHERE
(({ProductTotals.TotalSold)>[ProductCategoryAverages].[AverageSold]));

, , , ,
SELECT . (
, -
}. -, -

,
,

, , , ( True).
, , . :
, ,
,
.
(outer joins). , ,
,
. (, ) Null.
: ,
, . (left outer
join) ,
, (right
outer join) ,
. Microsoft Jet SQL Server
, SELECT, . ,
X, Y, <> True:
SELECT . FROM X LEFT OUTER JOIN Y ON <>
SELECT - FROM Y RIGHT CUTER JOIN X ON <>

(full outer join)


, ,
. SQL Server
:
SELECT * FROM X FULL OUTEP JOIN Y ON <>

Microsoft Jet , ,
, . .
.

. ( ,
)
, .
, , . ,
.
, , SQL- SELECT . , . .
,
*, SQL, ; ,

. , . , , , , ,
, , (correlated
queries). . , .


,
. , , ,
, .

(relational union) . (, ).
.
, ,
, .
Norihwind Customers Employees , ,
, , , .
U N I O N :
SELECT CompanyName AS Name, Address, City, PostalCode
FROM Customers
UNION SELECT [FirstName] ft " " & [LastName] AS Name,
Address, City, PostalCode
FROM Employees
ORDER BY name;

CompanyName Name,
FirstName LastName Employees . , , Name. , ,
, <_> SELECT . ,
( ). Access . 5-5.
. II 11 il

-l-l:".."":! yj -

AlldiOH*

Obere Sir 57
Alfreds Futterkisle
Ana Trujillo ErnparBdados h adi Avda de la Cor':tituci6n 2222
Andre Fuller
908 W Capital Way
Anne Dodswortli
7 Hourrfgioolh F'd
Anlonio Moreno Taqueria
Mataderas 2311!
Around the Horn
120 Hanover Sq
Berglunds snabbkop
Berguvsvage-:
gia^e'SeeDellkalssser
Forsterstr 57
F.i'inrl, I peie 1 1 ill
;2, place KleBei.
BuMo ComiddS preparadas
C/Araquil,B7
1
Bon app
-12, rue des Bothers
BottorrvDollar Marnels
23 Taawassen Eilvd
B's Beverages
.FauntleravCircLS

,.4

Berim
MencoD.F
Lond^
Ve.iioD.F
.Lulea
Mannheim
Strasbiiurg
Madrid
Marseille
Tsawasser1
London

i
12209
05021
SB401
WG2 VLT
05023
WA1 IDP
S-958 22
6S306
E700D
28023
13008
'T2F6M4
-eC25rff

Puc. 5-5. UNION

(intersection operator) ,
. ,
, . ,
. ,
(. 5-6). , .
DuplicateCustomersI
^

ALFKI
ANATR
ANTON
AROUT
BERGS
BLAUS
BLONP
BOUD

erffi

'
Alfreds Futterkiste
Ana Trujilio Emparedados helados
Antonio Moreno Taquerfa
Around the Horn
Berglunds snabbkop
Blauer See Delikatessen
Blondel pere el fils
Bofido Comidas preparadas

DuplicateCustomers2

ANTON
AROUT
FAMIA
FISSA
FOLIO'
FOLKO
FRANK

Com I
Alfreds Futterkiste
Ana TrujJllo Emparedadps helados
Antonio Moreno Taqueria
Around the Horn
Famijia Arquibaltlo
; FISSA Fabrica Inter. Salchiehas S.A.
iFplies gourmanties
iFplk ochfaHB
Frankenversand

Puc. 5-6.

SELECT :
SELECT DuplicateCustomersI *
FROM DuplicateCustomersI
LEFT JOIN DuplicateCustomers2
ON (DuplicateCustomersI. Customer-ID = DuplicateCustorners2.CustomerID)
AND (DuplicateCustomersl.CompanyName = OuplicateCusto(ners2.CompanyName)
WHERE (((DupIicateCustomers2.CustomerID) IS NOT NULL});

. 5-7.
CampanyName
Gusto merlD igti
Alfreds FutterkJsle
ANATR
Ana Trujillo Emparedados helados
ANTON
Antonio Moreno Taqueria
AROUT "
Around the Horn
4 ! ! I

Puc, 5-7, IS NOT NULL


, , () . (relational difference) ,
, .
, . 5-6 SELECT ,
:
SELECT DuplicateCijstomersi. *
FROM DuplicateCustomersI
LEFT JOIN DuplicateCustorners2
ON (DuplicateCustornersI .CistornerlD = DuplicateCustomers2, Customer-Id)
AND (DuplicateCustornersI. CompanyName = DuplicateCustomers2.CompanyName)
MERE (DuplicateCustomers2.Customer-ID IS NULL);


. ,
Null ,
.
WHERE IS NULL, , .
, ;
, ,
WHERE (. 5-8).

1.
ALFKI
ANATR
ANTON
AROUT
BERGS
BLAUS
BLONP
BOLD

Alfreds Futterkisle
Ana Trujillo Ernpsredados helados
Anj.P^P Moreno Taqueria
AmimdlheHom
-Berglundssnabbkqp
jBiauer See peiikat8ssen
eiondel pere et fiis
Bqlido Comidas jjreparadas

Select DuplicateCustomersl.*
FflOU DuplicateCustoniersI
LEFT JOIN DuplicateCustomersS
ON (DuplicateCustomersl.CustonerlD = DuplicateCustomers.CustomerlD)
2. , Null CustomerlD
Berglurds snabbkop
Blauer See Delikatessen
Blondel pere et fils
Bolido Comidas preparadas
Select DuplicateCustomersl.
FROM DuplicateCustomersl
LEFT JOIN DuplicateCustomers2
ON (DuplicateCustoniersI.CustomerlD = DuplicateCustomers.CustomerlO)
WHERE (DuplicateCustouiers2, CustomerlD) IS NULL

Pttc. 5-8.


. ,
.
( ) , SELECT
JOIN. , , , :

,
, .
; , , Access, -

, _ 1

SQL- . ,
,
.


, , . ,
. ,
: (summarize), (extend) (rename). ,
,
Microsoft: TRANSFORM, ROLLUP CUBE.

, , .
,
, ,
.

GROUP BY SELECT.
.
, . :
SELECT Categories.CategoryNane, Products.ProductName,
SUM([Order Details],Quantity) AS SumOfQuantity
FROM (Categories INNER JOIN Products ON Categories,CategorylD =
Products.CategorylD)
INNER JOIN [Order Details:
ON Products.ProductID = [Order Details].ProductID
GROUP BY Categories.CategoryName, Products.ProductName;


Northwind,
: CategoryName, ProductName, SumOfQuantity (
), . 5-9.
, <__> SELECT,
<___>,
SQL.
SQL (SQL aggregate functions)

.
AVERAGE, COUNT, SUM, MAXIMUM MINIMUM.

Beverages
Beverages
Beverages
Beverages
Beverages
Beverages
Beverages
Beverages
Beverages
Beverages
Beverages
Beverages
Condiments

. != 11;&&11

IChai
! Chang
: Chartreuse verte
Cflte de Blaye
"Guarana Fantastica
Ipoh Coffee
Lakkalikcion
Laughing Lumberjack Lager
Outback Lager
Rhonbrau Kloslerbier
Sasquatch Ale
Steeleye Stout
Aniseed Syrup

828
i ...
6
15
1 1 25
5BO
1
184
817
1155
50
883
313

Puc. 5-9. GROUP BY


, Null .
Null . / . , , ,
<__>
.

(extend) ,
,
, , .
,
<_> SELECT, :
SELECT [UnitPrice]*[Qty] AS ExtendedPrice
FROM [Order Details];

,
, , . ,
,
.

,
(rename). <__-

>, <_>. Microsoft Jet


:
SELECT <_> AS <_>
FROM <_> A3 <_>

SELECT <_> <_> FROM <_ >


<__>

, ,
, ;
SELECT Manager.Name, Employee.Name
FROM Employees AS Employee

INNER JOIN Employees AS Manager


ON Employee.EmployeelD = Manager.EmployeelD;

TRANSFORM
TRANSFORM ,
Microsoft . TRANSFORM
90" (GROUP BY). - (crosstab query),
Microsoft Jet, SQL Server .
TRANSFORM:
TRANSFORM <_>
SELECT <_>
FROM <__>
GROUP BY <___6>
PIVOT <_> [IN (<_>)]

TRANSFORM <_> , . SELECT GROUP BY, HAVING. <___>


. ( TRANSFORM <-

_> <___>, ,
).
PIVOT ,
.
Microsoft Jet , . IN , <_
> ,
IN.
TRANSFORM (. 5-9), , .
TRANSFORM Coi;nt(Products.ProductID) AS Co untOf Product ID
SELECT Suppliers.CompatiyName
FROM Suppliers
INNER JOIN (Categories INNER JOIN Products
ON Categories.CategorylD = Products.CategorylD)
ON Suppliers. SupplierlD = Products. Supplier-ID
GROUP BY Suppliers.CompanyNane
PIVOT Categories.CategoryName;

. 5-10.

. 5-10. TRANSFORM
90"

ROLLUP
,
GROUP BY, ,
. ROLLUP

GROUP BY, . SQL Server:


SELECT Categories.CategoryName, Products.ProductName,
SUM([Order Details].Quantity) AS SumOfQuantity
FROM {Categories INNER JOIN Products
ON Categories.CategorylD = Products.CategorylD)
INNER JOIN [Order Details]
ON Products.ProductID = [Order Details].ProductID
GROUP BY Categories.CategoryName, Products.ProductName WITH ROLLUP;

. 5-11 ,
.
Cha.i.
Chancy

1057
.. ..

Chartreuse verte
Beverages
Beverages
Beverages

Cote de Blaye
Guarana Fantaslica
:lpoh Coffee
iLakkalikoon
i Laughing Lumberjack Lager
i Outback Lager

Beverages

iRhanbrau Klosterbier

Beverages
eye rages

Sasquatch Ale
[Steeleye Slpul

8 eye rages
Condiments

15

1125
5SQ
961
184

1155
506
"883
8137

i Aniseed Syrup

Condiments

Puc. 5-11. ROLLUP

, . 5-11 ,
. 5-9, . ,
Null ( . 5-11),
. , 8137 .

CUBE
CUBE, ROLLUP, SQL Server
GROUP BY. CUBE <___> . CUBE ROLLUP,
, , , <___>.

, <____>
, , . CUBE
:
;
, ;
, ;
, ;
, ;
, ;
, .

,
, SQL.
,
,
Null.
, , . , , , ,
. ( ) SQL- SELECT.
SELECT,
.
, . , .
, .
TRANSFORM, ROLLUP CUBE SQL, Microsoft. .
,
. , ,

. : ,
.

.

.
, - .
.
,
, . , .
, ,

. .



, . , . 6-1.
,
, . .
. , , , .

. 6-1.

.
, .
, . ,
, , .
, , ,
. ,
, - .
, , ( , , ).
. , ,
- , . ,

, ,
.
, , . , . ,
: ,
.
. ,
(. 6-2).

. 6-2.
, ,
, ,
. -

. ,
, , .
, , (. 6-3).

. |
/ [!

[
. 6-3.
,
, , . . ,
,
.
,
. ,
.

. , , . , . ,
, , , , .
, ,
.
. , : Microsoft ActiveX,
,
. ActiveX . , . .
, , ActiveX
: ,
, . ,
. , .
, , (
). , , ( , ). ,
, ,
, .
.
, .
, . ,
. ,
.


,
.
,
, ,
.


, : ,
. . ,
, ,
. , . : , , , 7.


,
.

. , , . 8.


, , , . , ,
. 9.


, ,
. , ,
. 10.


, , ,
, . -

,
. 3.

. - , .
,
, , .
,
. - . -, , , .

, , .
11 . , , (. -, ).

,
. (Robert Hall), North American Aviation.
, , ,
. ( , , , ).
,
. - , . , , .
, , , :
, ,
;
(
) ;
, .


, . , :- .

.
, ,
.
, ,

. , . ,
- , , , , .
. , ,
. , ,
, , , .
.
, .
,
. , , . .
? ?
? ? ? ,
? ,
, .
, ,
: , , , . . , , ,
, . , , ,
, . : ,
10 2 .
, ,
,
, , -

. , .
, .
. , , ,
, , . ,
.
,
, , . . , ,

, .
,
,
. , , , .

. . , Web-, . , , , . , ,
. , , , ,
. .


. , ,
* , . : , ?* .
- , , . (,
,
,
). : , , .
, . ,

, ! ,
, .
,
.
. , ? ? .
, ?
. , ,
, . , , 10 3 , . ,
, .

.
. ,
, ( ) , , .
, 50 . , ,
2,5 .
,
, , -

. - , , .
, -
, . : , ,
25 . ,
.
,
. , : ,

.
, , .
, , , ? , , , .
, 25%, ,
,
. .

, , .
, , .
, , , . , ,
, , , .
.
, . , .

_ 2

: ,
, , , , .
,
. ,
, ,
- . , , , (, ,
). , , . , . , : ; -
-. ?
,
. , ( ) . , , , , .
,
, - , . , , , - , . (
, ).
, , , , . , .
.
,
. 9, .
, ,

, , , - .
- , , .
,
.
, . ,
,
. , , , . - ,
, , -.
, ,
, .
, , .
,
, -
.
: , , , , . , ,
.
, ,
, , ,
. , , . ,
. , , . . , .


,
. ,
, , . , , ,
,
.
,
.
. , , , - .
. , , . , , .
, .

, , ,
.
, ,
.
,
- .


. , , . . , , .

, , , . , . . ,
. , , 10 . -

, , 9 , , . .
, ,
.
, , .
, , .
, ,
10 , .
, , .
, ,
, .
. , , Microsoft Transaction Server , ,
. ,
.
- , ,
, Microsoft Transaction Server? , , ,
, Microsoft Transaction
Server. ,
: , , ? , , ,
.

,
, , . , . , , 10 , ,

:
, 5 .
, , , . , - . , , , . ,
,
, , ,
, , , - .

, . , , , 1 , , 10
. , ,
, ,
, , .

,
, , ,
. , , . ,
, , .
.
, ,
, . .
,
Microsoft Access 2.0,
. ,
,
, 500 -

, , Microsoft Access 2.0. , ,



. , ,
.

.
, . , , . , ,
. .
,
,
. ,
.
, , , ,
. .
, , , 10%
, .
10%
. 2025% .
, , , . - 10., 100 .
.
, Access, , , , , , .
, .
, , -

, .
, ,
, ? * ,
, ,
,
. , ,
.
, , , , , , , Microsoft Jet 255 ,
,
255 . ,
255 .



. , << , . , .
, : , ,
. , :
, , ,
, , . : ,
.
, , ,

. ,
, , . : -

,
, .
.
, ,
, .
.

, Windows Interface Guidelines
for Software Design (
Windows-) , . , , .
, .


, , ,
, ,
, . ,
, , .
, . , ,
.
, . , ,
, ,
.
:
, , . -
,
. - , .
, ,
.
. -

, ,
, . ,
: ,
- -?.
, , ,
, , ,
. , , , ,
. , .
, , , . , , .
, ,
, , .

. , ,
,
. ,
, , ,
, .

, , . ,
. , .
, ,
.
, , ,
, .

.
.
,
,
-.
, , . , ,

, .
, ,
. , , , . , , , .
, . , ,
.
.
, .
, . , , .
, .
.
,
, , .

,
-.
, ,
( , - . .)
(, ). ,
.
, .
,
. ,
.
. , ,
20% 50%.
., , , . ,
, . , . , .

, ,
. ,
: *, .

.
, , ,
. ,
: , 3/6/2 , 6/2/3.
, ,
.

. , . , -

, , .
, , . ,
, .
, .
, ,
.
,
, , , . . , ,
,
, ,
, . 1 , 2 , 4 .
. 7-1.
. 7-1.
, $ -

(
4) (( 1)
2)
1
2

11

22

3.6

7.3

12

1.6

L0.6


. , X .
, ,
, Y, Y Z .
Y, .

. . -

, , , ,
.
, X 12, Y 2, Y
, X .

, ,
, . , ,
. , . ,
, .
,
.

,
.
, , . , . , , .
.
, , . : , .

, ,

. , , ,
.
,
.
,
. ,
: ,
, .
: , .
. , , , . ,
, . , .
.
, ,
,
. -

. .


-. ,
, .
.
- ( ), , ,
, , ,
, ,
.


,
, , . , ,
. -,
: , ,
.
, , ... .
,
, .
, .
, . *. , , .
, , , . ,
, ,
.
, ( , ), ,
, . -

, . ,
, , . ,
,
, .

. , :
. , ,
, . ,
, : ? ,
. ,
, , ,
.
, . ? ? ? , ?
, .
. , . , .
,
. , ,
, ,
, . ,
.
: -
, , ,
, . (,
!) , ,
.


,
, . ,

.
- .
. , :
, - .
.
- ,
, , , , .
36 -,
. (, , .)
, - (,
, ). , , . , ,
-.
- ; , ( - . , ,
, -
-
, - . , :
, , ?
. , . -, .
. ,
.
1. , .
2. ( ).
3. .
4. .
5. .

6. .
7. , .
8. .
9. .
10. .
, ? ,
.
, ,
.
, . .
, . 1: , , . , , , . , - , ,
-,
. , , - . 1 .
. 2 -
*. , . ,
, , . , ,
, , - -.
, .
. 3 (
) . 5 ( ).
, . , . 25 . . 4 . , . ; , , .
,
. , , , . . , ,
. 7 ( ,

), ,
. ,
, , ,
-. . 7
.
, . 6 ( )
. ,
, ,
, ,
.
, , ,
. , .
.
, ,
. , ,
,
, .
: -
, , . , , -, ,
, ,
,
, .

.
: 8, 9, 10,
. , .
,

.
, ,
-, . ,
, ,

.
, .
, .
1. , ,
2. .
I, .
2. .
3, .
4, .
5. , .
3. .
4. .
1. .
2. .
3. .
, ,
, , .
,
. ,
,
.


,
, , , . , . , . .

,
. :
,
, , , ,
.
,
.
. , , ,

. . , , .
.
, : , .
, , , ,
, . . .
1. , .
2. .
1. .
2. .
3. .
3. , .
1. .
2. .
3. .
4. ,
1. .
2. .
3 ,
, .
, : . , ,
, . . ,
, ,
, ( ).
,
, .
, , .
,
, . ,
. ,


.
,
. ,
, .
.
,
.


, .


.
,
.
, , .
, . , .
.
, .
.
. , - . .
.
, , , .
. , : , , , ,

2 6as

(, ). . 8-1.

( )

8-1.
,
.
,
. , (, , ), .
(, ) ().
, ,
.
, ,
. , ,
.
, (
), . , , ,
. , , ,
(. 8-2).
, ,
, , .
.

. 8-2.


(user scenarios)
.
: (user profiles),
, (usage scenarios) . ,
, .

, , , . ,
.
- ,
, . , ,
.
, :
,
,
, , , , , .
.
, .
,
,

. ,
,
, .

, ,
.
, ,
.
9
, .

,
. ,
, . .
, , . , .
.
, .


. ( , . .), .
, .
. , ,
- ,
. , ,
( 8).
, ,
(. 9-1).

SALES ORDER

-Ms 99

A lire els Futterkibla

Mrteda FultertoM

ObereSIr 57

OUereEIr 57
Bert- 13J09

560

II

FnigM:

. 9-1. ,
, . ,
, .
. , , , ,
. (. 9-2).

"&
"&


g "
J UjaHa
J ^ &
\ j

. 9-2.

, . ,
. , (. 9-3).

&

Jh.

&

.

Jb. &
*\
-

&

. 9-3.

Bill To ( ) Ship To () Customer (). ,
, Customer, Sales Order ( ) . , , ,
Unit Price ( ) Order Detail ( ). , ,
,
- .

Customer, , .
Customer , . Customer .
(, ), , ,
.
Customer, ,
. ,
. ,
.
, ,
.
, Customer, .
, , , , .
Salesperson (
) , Employee ().
, ,
. ,
. , .
, Salesperson Sales Order.
: .
Sales Order,
Employee.
Product () ,
: Product (),
Unit Price ( ), Quantity () Discount ().
Order Details ( ). Product
, ,
Supplier (-

) Category ( ), .
,
, Extended Price ( )
Order Detail Units In Stock ( ) Product ()
. ,
.
Ship Via ( ). : , Parcel Post () 2nd Day Air (). ? ( , ?). ?
,
.
? , .
?
? , ? .
, . , , . , .
, , , . .
Special Instruction ( ),
.
. , , . ,
Shipping Method. ( ) Special Instructions (
) ,
.

, Shipping Method , .
, ?
,
(, ),

.

.

. ,
( ).
, , ,
?
, ,
, -
: ? . , - . ,
-, ,
. , ?
, ,
. , .
, . ,
.
, .
- , - .
, ,
.


, ,
.

, . , ,
.
, ,
*. . 12, . ,
.

. ,
, .
, . (
, , ) , . ,
, .

. 9-4. , . , , Salesperson Sales Order .
, , .
, .

.
:
;
;
;
.
, (. 9-5).

. 9-4.

. 9-5.


, (. 9-4).

.
, , ( ).
Supplier () Product () , , Product-Supplier. Sales Order ( ) Product () , Order Detail ( ).


, , . Customer () Shipping Method
( ) ,
( ),
.
Product Category ( ) Produce () .
,
.
Sales Order ( ) Shipping Method
( ) .
, Sales Order
. Shipping Method, , ,
. , .


, ,
, , .
: , . , .

,
.
(Preferred
Supplier). Product () Supplier (), Preferred
Supplier . , .


, ,
. ? ,
, ? , ?
, Sales Order ( )
Shipping Method ( ) , . , ,
. .
, , . , ,
, .


, , . :
;
, ,
;
,
;
-;
.


. Customer
() , . , ,
. Employees () -

.
,
,
. : , , Product-Supplier (-)
, ,
.
( )
. .
Sales
Order ( ) Order Detail ( ).
.
: Sales Order Order Detail , . Sales Order , Order Detail *.

,
,
, .
, , ,
, .
,
, , , . ,
, Special Bonus
( ) ,
, . ,
,
.
, ,
. ( ) ( ),
, ,

,
.
. , ,
.


* ,
. , .
.
,
,
, . , .
, ,
Mr., Mrs., Dr.*, Ms., .
, ,
, .

-
,
. , , .
, : , Shipping Method ( ) Special Instructions ( ) *, .

, . . , .

-. , . ,
Null -

, , .
Customer () , -, . , , , . 9-6.

CompanyName
( ),
IndividuatName
( ),

,
Null

Customer
CompanyName: Name
individualName:Name
Address! :StreetAddress
Address2:StreetAddress
Suburb:Suburb
State: State
Country: Country
PostalCode:PostalCode
CreditRatingiCreditRating

. 9-6. Customer ()
,
. , Company Name ( ) Null.
, Null
Individual Name ( ). Null. - , ( ).

Customer (). .
, , . , ,
- , -, 18, ,
-, .
, - (John Smith Sr.) (John Smith Jr.) ,
. , , . , ,

- ? , , , ? ... - , ?
, Customer Number
( ).
, Microsoft Jet Microsoft SQL
Server,
( AutoNumberw Identity, ).
, .
,
? ,
? ,
, .
Customer () , .
, ,
. ,
, . , .


. 9-6
:. ,
. ,
.
. , ,
.
.
: CompanyName
( ) Individual Name ( )
. 9-6 Name ().
Name : , ,

75 . , (.) (,).
,
. , , ?
, ,
.
.
CompanyName
Individual Name
. .
, . ,
? , :
; , ;
( ).


, .
.
.
,
Quantity . , . .
. , , ,
, 1 1900 .,
. Event Date ( )
, 23 1982 . ( ).


, . , : Quantity () .

, _ 2

. ; -. -, , . . , ,
, .

. , , Answer (),
True False. . , , .
, ,
, State ().
,
.
, New South Wales ( ) , Alabama () . ,
Country () State ().

. , .
,
, .
,
, . , .
.
.
, .
.
, . .

Event Dale ( ),
.
. ,
: Order Dale ( ) Shipping Date ( ), Event Date. Shipping Dale
, Order Date. , .
( )
, .
, , .
- , .


,
. ,
DD-MM-YYYY, .

, ? , ,
, , .
, . ,
, ,

. , .
, .

.

,
.
, . . .
, .


, . ,
,
, . , : (code architecture) (data architecture). , .


, ,
-: , , . . , , ,
. , , , -

. .
: , .
, (
) , , .
- , , : , .

- . -
, , , .
, , .
. . : .

: (User Services), - (Business Services) (Data Services). Microsoft Visual Modeler , Microsoft Visual Studio 6.0, (. 10-1).
, ,
, . . -
.
. , , .

: ! | I t ' l l

V I H

I-

Ire i ram

TOW
system Is divided
nto the Wee
of services U
Seivice
Busina
Services

Puc. 10-1. Visual Modeler


, Visual Modeler , .
.
, , , , . : ,
. , , ,
, 999-99-9999. ?
, . :
- ? - .
, ,
, ;
,
: ,

,
-,
, ,
.

, . (. IO-2J,
, , : (User Interface layer),
(Data Interface layer), (Transaction
Interface layer) (External Access
Interface layer).
- - . / \ /\ S ~^
/
. - /

- /

\ ' /

\ /

. 19-2.
.
, : , -

10

(, ), .

(

). ,
,
. , , ,
. (
,
,
.)
, . (. 10-2). ,
Customer Maintenance,
Customer Summary\
.
Customer (),
CustomerNumber ( ) , .
,
, Microsoft Visual Basic Microsoft
Access, .
, , , .
, - . ,
,
CustomerNumber ~
. , - -
(,
, ) .

<

.
,
, -,
, .
, .
Visual Basic
Access. , Customer Update, .
:
(
, ), .
, :
MyCustomer. Update CustomerNuniDer. Customer Name , .

Update UPDATE, , : ,
.
.
. ( ) .

, . , , Microsoft Jet, SQL Server .
.
, , . SQL, ,

10

. : ,
TRANSFORM SQL, Microsoft Jet. ,
SQL, SQL
Server.
, ,
, . .
, , (Jones) (Smith).
Jones Smith .
, ,
. ,
, : . (
, , . , , -
, .)
, , ,
, :
theEngine = myData.EngineName
Select Case theEngine
Case "SQLServer' 1
1
build a SOL Server flavored query
Case "Jet"
1
build a Microsoft Jet query
Case Else
1
return an "unknown engine" error to the Data Interface layer
End Select
,
, . . , ,
,
.

, ,
SQL Server 7.0 ADO 2.0,
, .
,
.


:
( .
), . ,
. . ,
, .
, .
] 6. ,
, .

.
, , - ,
.
. -,
. , Microsoft Jet , , . ,
SQL Server,
.
-, ,
, .
. , , .

10

(, , ) ,
.
: , , ,
Desired Delivery Date ( ),
, OrderDaie ( ).
,
( , ),
.
(
), ,
,
.

, . , - . ,
, .
, , ,
.
, , , ,
,
. . .
,
,
, . , ,
, Microsoft Access SQL Server
Enterprise Manager. ,
,
, .
.

2
*

mm

\*

vmni i m i.rn mm

-.

, , . Microsoft Access .
,
, .
Microsoft Access , Access 2000,
. ,
, ,
. Microsoft
Access 2000 , Visual Basic
, . ,
(, , ,
). ,
.
, .
,
- , .

, ,
. .
, , , .
, , ,
.
, .
,
, .
.
,
, (-

10

,
). ,
. ,
, ,
.

,
. 1 ,
: , (. 1-1)- , (. 10-3).

. 10-3.

, ,
. , ( ) ,
. :
,
. , , .
.


. ,
,
. ,
( ).

,
.
, .
, , . ,
, .

Microsoft Jet. , SQL Server, ,
. Microsoft Data Engine (MSDE), Access 2000.
SQL Server, .

, .
, ,
.
, ,
. ,

. , , , .

10

, ,
. ( ,
, Microsoft Jet). , , 255. ,
, . ,
20 ,
, , 50 ,
.

. ;
, , ,
. : , .
, , .
.
, , ,
,
, .
,
, -, .

: .
, ,
. ,
, .
, ,
. Products ()
( , 1 ~ ),
.
,

,
.
,
: * , . , ,
. , ] . , ,
; , , , . , , .
, ,
.
,
.
,
. ,
, . ,
, , (. 10-4).

Carnarvon Tigers
Louisiana Fiery Hot Peppef Sauce
=>erth Pasties
Quest) Manchego La Past or a

Product
65
53
60
19
12

Louisiana Fiery Hot Pepper Sauce New Orleans Cajun Delights


Perth Pasties
G'dsy, Mate
Camembeti Pierrot
Gaipaiurage
Carnarvon Tigers
Payjova. Ltd.
Queso Manchego La Pasjqra
p e ratiyajje Q uss s 'Las abfas'

. 10-4.
,

10

, ,
. (
). .
,
, .
Microsoft Jet Database Engine Programmer's Guide*
Microsoft Jet.

, , , . Microsoft Jet . , , .
SQL Server , . .
. Microsoft Jet
, , . , , , . , ,
, .
. Customers ()
100 000 , 1500 .
, , , (Jones Construction), CustomerlD, JONSCON. :
SELECT - FROM Customers WHERE CustomerlD = "JONSCON"

,
: Microsoft Jet , -

. , 150 . CuslomerlD , , :^ Microsoft Jet , .


.
, , . , Microsoft Jet .
, , . , , . ,
, , , , .

.
. ;
, . SQL Server , Oracle.
Microsoft Jet .
, * , , .
, , Microsoft Jet SQL Server ? ,

,
, .
, , . SQL
Server . - (client/
server systems).

10

,
, , ,
SQL-, , , ;
SELECT - FROM Customers WHERE CustomerlD = "JONSCON"

( )
Microsoft Jet (,
), , , . ( ) SQL Server, , (, ,
.)
,
,
, - .
, - .
- , , , , , ,
.
- , . , , , . , - ( ),
. SQL Server
, , Microsoft Jet. , , .
- , , . ,
, -

, -
.
SQL Server
Access, SQL-, . , SELECT, , Access,
SQL Server, SQL Server
SELECT. ( Microsoft Jet;
, ,
Visual Basic, .mdb.)
- .
,



.
. ,
.
(. 10-3), ,
, .
,
. - , , .
, (, Microsoft Transaction Server). ,
. (,
: , ).
, .
. ,
. ,

10

, .
-

- -
.
HTTP,
Access, Internet
Explorer .
.
, ,
- (state). - SQL Server. , ,
,
, , , . , , ,
,
.
, ,
,
. ,
.
, ,
, .
, , , , .
, ,
, . ,
, ;
, .
,

, . , .
, -, , ,
, . ,
, (
) . .
ActiveX Data Objects (ADO) , .
.
. PageSize
Recordset. 15,
() 15
. Absolute Page ,
, PageCount
. N
, N
SQL- SELECT.
ActiveX N , N .
,
, . , , .
,
.
,
, , ,
, !
,
, . , ,
, . , , .

10

, , ,
; , , . , , , .
, , -,
-, Microsoft Distributed Networked Architecture. ; .
, . , ,
, , ,
.


,
.
, . ,
, .
, Access,
, , , ,
.mdb.
SQL Server, , , .


.
, .
. , .

, . , ,
. ,

- ,

. ,
. 4, .
, ,
( Access , , ).
SQL,
DAG Access,
CHECK, Access, SQL Server.
,
, CHECK SQL.
,
, ,
.
SQL Server Microsoft Jet, , , ,
. SQL Server .
Microsoft Jet , .


3 9. . ,
.

, , , . : , . ,
, . ,
, ^ ,
.

, .
;
, . ,
, . , ,
, , ,
, , , . , , , , ,
.
, ,
, ,
, .
, Orderltems ( )
, OrderlD, ItemlD. , ,
Orders ( ,
, ),
Orderltems
OrderlD.
,
.
, , .
.

, .
. , ,
, , . , ,
, . SQL- ORDER BY, .
,
, , , Orders (), , 10 15 ,
, , . Products ()
, , . , , , .


Access SQL Server SQL- SELECT.
SQL Server
Access. , ,
,
.
, . , ,
, .
, ,

(, ,
, ).
, ,
. ,

10

*, Orders Orderltems.
,
*;
.
, : , , , , , . , , . , , , .
. , , ( OrderDate), ,
( CustotnerlD), ( OrderlD).
.
, , . , ,
, , ,
, . ,

.
, , . (, ) .
,
. ,
, .
, , ( SQL Server),
.
, , , , .

2 *

, , , . ,

, .
.
,
. . , .


,
.
. ,
-,
.
,
, , ,
. :
. , ,
:
24
,
,
. .
, , .
.
Access, Micrisoft Jet SQL Server, .
, ,
. .

10


, , . , . Access Visual Basic
.

- . . , , .
, , ,
- , .
, , .
.

(share-level security).
, , ,
. , : ,
. .
(User-level security),
, . .
, ,
. : Joe () Customers,
Orders ,
()
Customers Orders. Joe,
.

, .
, , , , . ,
,
, ,
.
, : , , , . . ,
, , .
, , , ,
. , , , Customers, ,
. ,
, . , -
, .
, ,
. , ,
Name () Extension (
) Employees ()
, , Salary ( ) .
, ,
, , . , , .

10 ^



, , , . . ,
.
, .
.
, , .
. , , , UserName ( ), LogOn ( ) LogOff ( ) .
,
.
,
, : CreatedBy (, ) CreatedOn ( ).
,
. . ,
Deleted ()
. , , , DeletedBy (, )
DeletedOn ( ). ,
,
, , .
,

. , , . , ,
.

, , ,
,
. , , .

Microsoft Jet,
,
. SQL Server
, , .
, , , . , , , .

. ,
.
?
?
,

, , ,
. , ,
Access
SQL Server Enterprise Manager .


.
, . , .
. ,
, .

10

. ,
. , Microsoft Jet, ,
, ,
.
, -, SQL Server. .
, . , , ,
, , , .
, . , ,
, ,
, .
, ,
,
.


, .

, ,
. :
, .
, .
, ?
, .
, .
, .


, . ? ? ?
.
,
, , .
, , , . .
, .

. ,
, .

, .
.
.

. ,
.


, , , ,
. . , , , .

, , , ,

. , .
, .

. , ,
, , , .
.
. , . .
?
?
?
?

11

?
?
,
. . ,
,
. , .
,
. , ,
, , . , , , , .
.
, . , , . , ,
. ,
,
.
- : , .
d , - -...... , .
,
. .
. , : , ? ? ? , , .
. ,
? -

, ,
-
.
. , -
, ,
. , .
, . , , , .
, , , .


.
, .
!!
, ,
. ,
.
,

. . , .
, ,
.
,
( , ).
, .
,
( ). . . , , .
.
,

11

, . , , , .


,
. ,
. , . , ,
, , .
, , . ,
. ,
.
, , . , ,
- ,
, . , ,
. ,
- , ,
, .
. , : , .
, . , . , .
, .
,
.
, , . , ,
.

.
Find -

. 2

. : - ,
, .


- , . .
.
. , ,
. , .
-, .
, -, . , , ,
, . ,
(
!). :
, (, ),
(, ), , . , , .
, ,
, . , , . , . , , , .
,
. , . , , .


,
.

11

,
.
, , . , .
, ,
.


, ( ),

, , .

. :
(,
: , ). , .
,
. ,
, . ,
, :
, .
.
,
. : .
, , .


, (

).

. , . , . , : - -. .
, . , , , . . .
,
. ,
. , , ,
.

. , , ? . ,
,
, -.
, Microsoft Access Visual Basic. ,
. . Microsoft
PowerPoint. , ,
, .


,
.
.
.
:
.

11

, ,
. :
,
, .
, .
, , , ( ) . , , .

,
.
.


, . :
, ( , ). , .
. , . ,
, , .
, . , , Microsoft Word,
. , , , .
,
.


; Microsoft Visual
SourceSafe Microsoft Visual Component Manager. Visual SourceSafe -

,
.
Visual SourceSafe , .
,
, ,
.
Visual Component Manager Microsoft Repository.
Enterprise Edition Microsoft Visual Studio , ( ). Visual Component Manager
.
, .
Visual Studio,
. Visual Component Manager Microsoft Access,
Repository .

. , .
,
.

.

,
, ,
. .
, . ,
. , , , .


. ,
, . .
, , ,
. -

12

, , .
, , , ,
.
.
, , . ,
( ,
), , , , .
, ,
? , . , , . , - . .
, , . , , , , . ,

, .
,
, .

, , , , ,
, , ,
--, .
.
, , ?
,
, .
,
,

3 -

. ;
. , , .
.
, .


About Face: The Essentials of User Interface Design (
: ) (Alan Cooper)
( , ). , .
.
(mental model) , . ,

, , . ( .)
, ,
,
.
, .
(implementation model), , , , ,
. .

(manifest model), , . , () .
. -

12

,

. ,
, .
, , ,
. , :
, ASCII . ,
, .
, , . ,
. ,
, ,
, .
. ,
, ,
. ,
. , , , , . ,
, . , , , .
.
, , .
. ,
( , )
. , ? ,
? , . ,
, . , - -

, . .


,
. -
. ,
, ,
,
. , , .
, ,
, . , , , ,
. , .


- , , - .

, . , , , . : , , .
, . , , . .
, . (, ). , , .

12


.
. ,
, , Help.
,
, .
: , *,
, -.



. , , ,
, , ,
.
. Microsoft Windows ,
.
,
, .
.
, .
,
.

, , , , ,
.
. ,
, ,
-.

. . ,
.
, .
, , . -
,
, . , .



: , , . , , . ,
- ,
, .
. - , ,
, . :
,
. , ,
, . . ,
, - !
,
, ,
. . , ,

12

, :
, . , .
-
, ,
! . ,
.
, .
16,
.
, .
(modes), , . , . ,
, ,
, .
,
, .
,
20 , Add, Edit View . Windows, . ,
. - , , . , , .
, ,
.

, Microsoft Access
Microsoft Visual Basic. , , ,
, .

,
: .
, . , . , , , ,
, .
,

, .
, ,
.
, . . .
, , , , ,
, ,
, , ,
. , ,
, .
. , , , . ,
. 12-1 , .
F-eu Change

. 12-1.

12

. 12-2 .
, , ,
Cancel.
Cuslomei Natnr Changed

e k* rit* update

Puc. 72-2.

!
, , . , , . , ( ), . , , , ,
.
, .
, Windows, Windows Interface Guidelines for Software
Design (
Windows). .
Microsoft Office ( , Access) - . , .
; , .
. , , Microsoft Office,
, Access. Access , -

, , . .
?
, jy|| Access . ,
, , .
,
Windows, , ,
.
, .
, , . .
, ,
.
.
, , , .
, , ,
, . ,
(John Doe),
,
John Doe, J. Doe J.C. Doe. : , . , 65 . , . , .
,
.
, , (John Smith)
, , (Johnny
Smith) .
Microsoft Access , -

12 si

. Visual Basic , .
, , Microsoft Access, Visual Basic:
, .
: . , , ,
. .
, ,
. . , , , .
(,
, ),
.
, . .

.
: ,
, .
, / . , ,

, /.

!

, File Edit,
, . -

: ,

.
,
: , Customers (),
Products () Sales Orders (-). , .
,
.
Access Visual Basic
.
, - . , , , , .
, .
. 12-3 , Access Developer Solutions .
Edit Products.

Uroi Prints
t{.|!l;. !n Sins*

'"

. 12-3.
, . ,

12

, ,
. ,
, Customers () ; Sales
Order (-)
Find Order ( ); Products () .
.
, , , .
, .
, .
,
( Sales Order),
,
.
, , , , ,
.
, ,
. , , , , .
, . .
, , ,
.
, (, Edit ) .
,
. , -

, ,
,
. , ; , , .
, , .
,
.
:
,
( ),
.
, , .
, , .

,
.
: (
, ),
(, )
(, ).
: , .
,
, .
, : , , ;
.

,
.



, .
,
The Windows Interface
Guidelines for Software Design ( Windows-). .
,
, . , ,
, .



, ,
, . , .
, .
. Customers (), , .

Orders (), Customers, .


*,
.
, Customers. To , Northwind (. 13-1).

. 13-1. Orders Northwind


,
. ,
, . Orders, , , , . ,
- , . Orders
, Customers
(), Shift+F9 ( - ), . .
,
( ) ,
. NotlnList
.
, Customers.

,
. :

13

?<

(
) ( ).
, . , : ,
, ;
, , . : ,
. ,
, ,
Orders ,
, - , .
, , -
.
.
, , . ,.. ,
, .
,
,
,
. , ,
Orders, , ,
, ? , , -
? , , ,
, .
, -

, ,
- .
, , ,
, .
,
, Customers, , Orders.
,
, ,
Orders.

(single document interface, SDI),


, , (multiple document
interface, MDI), .
,
, .
. , .

, SDI , . .
SDI , (
). , SDI
, .
SDI .
. , ,
Microsoft.

13

SDI Microsoft
Visual Basic. Microsoft Access , Access.
SDI ,
Access, ,
, ,
, . Access 2000
. , ,
, Access, , SDI.

SDI,
,
.
Microsoft Excel.
SDI ,
. ,
, .

, .
,
:
, , , , .
, , , . - .

,
. , , , , , ,
, . -

,
.
, ,
, , , . , , ,
, .
, Microsoft Outlook
- , , Outlook, , . ,
, (. 13-2),
!<'

'

>-

''

i s 6
U 10 11 1213 14

- I E , IT \

1 2 3 4
'-

?<. 29

",

S H

<J

910 II

L42D !

S M
4

1213 IS 16 17 1

1
8

I W
'

J -I

9 1011 12 13

1011 12 131415 1.)


|71 19 20212223

24 2S 26 27282930
31
(

1 ---

"i V""T"V.'" -*F


1 2 3
S 7 10
1213 14 IS 1617

',
4
II
IK

910 II 1! 1314 IS
16 16 19 2021 22
2324 ;5 ;6 2728 29

. 13-2. , Outlook,

, Microsoft Outlook,
, .

13

, ,
.
,
, .
, Access, Visual Basic ,
Microsoft Access 2000 Database,
(. 13-3). ,
, ActiveX, . .

Create form by using wizard

Orders 5ubForm

Categories

Product List

Customer Labels Dialog

Products

Customer Orders

Quarterly Orders

Customer Orders Subforml

quarterly Orders Subforrn

Customer Orders SubformZ

5ales Analysis

Customer Phone List

EH

Sales by Year Dialog

Customer?

Sales Reports Dialog

Employees

Employees (page break)

Suppliers

Puc. 13-3. Microsoft Access 2000 Database


Outlook
, , , Outlook. ,
, .


. MDI-

.
: , ,
. , : , , , . : ,
, .
SDI-, MDI-, . . , , .
MDI
MDI- ,
. Microsoft Word,
. , ,
.
MDI- ,
, . MDI-, , ,
, SDI-:
File New, , . , .
Word , /. .
MDI- , , Orders
() .

, ,
, . , ,
-

,
.
, MDI-
.
, , ;
, , . , , Microsoft Word . , . , ,
, , ,
. , , .
:
, - , (. 13-4).

. 13-4. MDI-'.

, File ()
Save ()? , Suppliers (). , , , -

. ? , Access,
, North-wind,
North-wind, ,
.
The
Windows Interface Guidelines for Software Design. File
Save All ( ) , . , ,
. MDI- ,
.
,
. , ,
. ,
, .
, Word, , .
, MDI- . ,
.


. (. 13-5).
.

Access. , , .
Visual Basic.
, . , DOS:
/ / ,
.

13

; Main Switch bo aid

i -i' i i n ' 1.1

: ' i ,

Puc. 13-5.

,
, ,
, Outlook. ,
. ,
, , , .
,
, , , ,
. ,
;
.


.
, ,
.
SDI- Visual Basic
(. 13-6).

. 13-6. Visual Basic SD1 ,



. . , .
, .
, , MDI, , .
:
, ; ,
, , . , ,
. , , .

, Database
Access. ,
, ,
,
. Database MDI-.

13

, , .
, ,
(. 13-7).

!' ' -<>-. .' <

I i!i>
1

13 of tabte

. 13~ 7. Microsoft Access 2000


,
, . , ,
, .
. ,
, . , , , (: ,
3, 4; ,
6).
,
, . , .
,
-

. , .
, , , .
, , Cancel:
, , , .
. , , .
,
,
.
,
. , , :
, ,
, .


.
: SDl-, , MDI-, .
SDl-: , Microsoft Outlook.
. MDI- : MDI, ,
Access, ,
Visual Basic. , ,
,
.
,
.

,
. . ,
,
. , , , ,
.
, ,
.
; , ; , ;
? ? . , , 13,
,
, .


, , ,
. ,
,
.
Customers (), . 14-1, ,
Orders (). , - ,
. ( , ,
, ,
). , Orders Customers. ,
, Orders, , , .

. 14-1.
, Customers ()
, , ,
.

14

: (grids).
,
Customers ( , , ) .
, , , , The Windows Interface Guidelines for Software Design ( Windows-). 7 ;

4 ; .
,
( , , ).
,
, . Microsoft Access
Microsoft Visual Basic ,
, . Microsoft Access 754, , , .
Microsoft Visual Basic 254 ( , ,
).
, , , 2530 . (: , , , ,
)- , ,
75 ?
, .
- .
, .
: , -, , , .

Customers () ,
, , , , , ,
, , . Products ()
ProductCategory ( ), Name () Description ().
: ,
.
,
. Customers
; , ( , ) ;
, ( ,
, . .)
. Products ,
, ,
.
, ,
.
. :
,
. ,
- .
, (subsidiary forms),
, . , , . .
. ,
, , 33 .
.
, , .

14

,
. ,
, . ,
, .
:
. , , , . ,
, .
, , ,
.
,
(subforms) ( Visual Basic
). ,
. , ,
.
,
, . ,
.
-
. , ?


,
, ,
, . ,
, ,
,

, ,
, ,
.

, .
, ,
. - ,
.
: , Product (), Beverage () Cheese (). ,
, . ,
.
, , ,
. , ,
, .
-
, , , .
. ,
, ,
.
( )
, .
,
, . ,
, . , -

14

, , .


,
. , , , :
,
.

, .
, ,
*, , , , .
: , , .
, , ,
, . ,
, . :
.
, :

, .
,
. . 14-2 , , , . ,
. Northwind,
,
, , . , .
.

. 14-2, , ,

,
, .
, , .
, ,
(. 14-3). :
, ,
,
.

. 14-3. , ,

,
, -

14

^^

Microsoft Access.
:
,
, , . , ,
, .
,
. . ,
. 14-3 , ,
. , . .
, : ,
. , ,
.
. , .
, : , , , Forward Back Microsoft Internet Explorer, , , Microsoft Access.
, ,
. ,
, ,
,
Forward Back.
, ,
, . , , -

. , ,
, .
, ,
,
. , , , , .
, ,
, . -,
, -,
. , , , , .
, , ,
, ,
. . 14-4 . , , Company Name, , Contacts.
iR: Company
111: :

':
;--.

Cascade Coffee Roasters

. .i,r,[.pr.5'f. ;'IK-

507- 20th A v e E .
Apt 2A
Seattle

|wA

jV:i,j;.

USA
:

,-.-,-

:.';'

II Steven Buchanan
Nancy Dav olio
Andiew Fufef
J anet Leveling
Maigaret Peacock

,.,
(20E) 555-9462
[2061555-3412
(2061555-8122

-.:-,,] !

If

Puc. 14-4.

14


, ,
, , , ,
. , (. 14-5).

Customers

-^

Orders

Order
Details

. 14-5. Customers (),


Orders () Order Details ( )

,
: Customers () (
). ,
Orders Order Details,
Orders (). Orders Customers, Orders Order Details. ,
: Customers, Orders Order Details, .
,
. , , , , ; , . , , ,
,
. , Orders
( ) , Order Details
~ . Customers, ,
, . 14-2.

, Customers ,
Orders, . , , , . . , Customers,
, .
,
, Orders, Customers .
Customers ,
Orders, . , .
,
, , , ,
. Orders
Customers
, ,
, .
, .
, , ,
, ,
,
. - , , : ?
, Access 2000 Visual Basic 6
,
.
(subdatasheets) Access 2000 , (. 14-6).

(, ),
.
,
. ,

14

, Addresses () Orders ()
. Hierarchical
Flexgrid Visual Basic 6
, Microsoft
Access. .

10692.Peacock. Margaret
10702'Peacock, Margaret
10635 Davolia, Nancy
10952.Davolirj. Nancy
1101! Leverling. Janet
:o Numb erf

31-OU-1997
24-NOV-I997
t2-FetJ-19E6
27-Apr-1996
07-M3J-1996

13 Oct-1997 Uriiled Package


21 Ocl-1997 Speedj Epress
21-Jn-1998 Federal Shipping
2J-Mai-l996 Speed) Eipress
13-996 Speedy E.press

16102
94
$69.53

11.21
(000

, 14-6. Microsoft Access 2000



, Hierarchical Flexgrid
; ,
. ,
, . , ,

, .
, , ,
: , ,
,
, .


, , *,
.


(. 14-7).

Customers

Orders

Order
Details

,.

Products

. 14- 7. Customers Products


, Orders Order Details


, ( Customers )
, ( Products ).
, .
, .

, *. , 3, ,
(. 14-7).
, .
, ( Customers
), , Orders, ,

14

, . , ,
: X Y 15
, Z 18 . , Products *.
,
, : X 15
, Z 18 . Customers ,

.
, , , ,
( , ) . , .
, , , , , :
, , ;
, ,
, ( , ) .
, , .
27 , (, ).
, , ; , .

, .
, . , , , - , -

3
111

IIIII

II

14 I III11 Hill IIIIIIHIU III I | 41I III I4III 111111 11IIIII111IIIIIIIIIIIIII

III III

11II111 I 11 I Tl TTI rrrilllll niHnilini

, ,
.


. , . ,
, , . , , ,
, . ; ,
, ,
, , ?
,
, , . , , ,
.
, , , , - : , , . , , ,
, . ,
, ?
. , ,
, ,

. ,
, ,
( )

14

. , ,
, , . , , .

13 , .
,
, , , ,
.
, ,
( ). , . ,
, , 25-30.
15

.

34 ,
. , . , , .
.
. ,
, , , . , , . , , ,
, .
, , . . , Microsoft Access.
Microsoft Access
(. 15-1). CusiomerName
text. Customer Number

3 -&

AutoNumber, DateOfFirstOrder date/time, Credit Limit


currency, Preferred Customer
(Yes/No).

Antonio Moreno Tai)uer


AroumMneHqw
Serglunds siaobKop
Blauer See Delika1e;se
Blondel pdra ftls
Bolido Comidas prepar;
Son '
Bottom-DDlarMaMs

. 15-1.

, , . , , , ,
, .
, ,
: , (text
boxes). :
, .
.
, ,
,
, Date/Time,
.
,
.
, . ,
, : ! ,
Smith ( ) : Jary Smith.
, J .
, , :
. (, -

15

, , ),
.
.

( ).
, , ; , -.

(,
) .
. , : , , , . .

:
, . ,
, , , ActiveX.
Microsoft Visual Basic Access. , ,
, Web-
Microsoft, Web- . , .


, ,
. : Customer
CreditApproved, ( Microsoft
Access Yes/No),
. ,
CreditApproved Customer, ,
. ,

:
Yes No Access, True False -~
. , ,
,
. , , , . . , . , Access, Visual Basic - (. 15-2).

. 15-2,
-
,
. - .
, (, ) , ,
. : , , .
, , - Credit Approved. , ,
, , . - , (radio buttons), .

15

. . Microsoft
Windows , ,

. , .
, ( , )
, - :
, , ,

.
,
.


,
.
,
(,
) ,


, -
, .
, Customer/dumber ( ) Orders () , Customers ().
,

.

, ,
, . , , .
,


, .
Visual Basic (.
15-3), ( ). Access .
, Visual Basic
, Access .
Combo Bones rtnd I ist BOHCS

Puc. 15-3. Visual Basic


The Windows Interface Guidelines for Software Design
( Windows-)
, .
, , .
, ,
. , Orders
, , ,
.

,
: , -
. , . , , .
. -

15

, , ,
,
,
.
Visual Basic, Microsoft Access , ,
. , Customers Identify,
Orders, , , . Orders Orders ( Customers),
.
Visual Basic ,
DataField ListField. Access :
, . Orders,
, ,
.

, Microsoft Access,
, , Visual Basic .
, ,

: , , .
Visual Basic
, , ; , ListField. , , , .
, , ,
, .
, ,
.
( , , , ),

, , , .
- , , , , - , ,
(. 15-4).
S-j flption Bullon <nd Toggle Bullun Gioups

, 15-4. -
, Visual Basic, ,
. , ,
. - ,
( , ).
. , .


, , ,
.
14, ,
, .
Access, ,
. LinkChildFields n LinkMasterFields
Access

15

. Visual Basic, , . , ,
,
,
.
,
. , Access (. 14-2), Microsoft Hierarchical FlexGrid, Visual Basic. Microsoft
Access , . , . (grids)
Visual Basic ,
,
.
, Access Visual Basic , , . , Access , ,
. 6 Visual Basic
DataRepeater, , Access, -. ,
,
(, ). : , Data Repeater,

.
, . , , , . , , Microsoft

Windows Explorer,
, , .
, , , . . Microsoft Access 2000: Sample Fields Fields in my new
table (. 15-5). ,
, .

. /5-5. Access 2000


,

. , . , , ,
. , , ,
.
, , .
, , , .
, . , , -

15

.
, , . , ,

, .


. . ,
, , .
, ,
Microsoft Access MaskedData Visual Basic , . Access , . , , , ,
.
Visual Basic 6 MonthVieww DateTime Picker (. 15-6). Access
2000 , Month View
Visual Basic.

1 :Angus!
' 2001

:4J

2
.

3 SD 5 6
I
11 12 13
13 1 20
: 25 27
31

<DToday: 08/04/2001

jf
. si

'

'

ab11 "512
13

1
CD Today:

?001

19

25 'E;

20

08/04/ 2001

Puc. 15-6. MonthVlew DateTime Picker


, ,
: DateTime Picker

,
, , MonthView . ,
MonthView, DaieTime Picker ,
.
, Date/
Time, . , .
Visual Basic, Microsoft Access UpDown, . Date/
Time Windows, (. 15-7). UpDown , : ,
. : , .
Dale/Time Piopeities

( 1 5 6 7
11

12

13 14

15

16

17

18 19 20 21 22 23 24
25 @S

27 2 29 30

V-/ Fur.ips DajAghf Ifi


I

Puc. 15- 7. Windows


UpDown
, , Visual Basic, (slider
controls) (scroll bars), . 15-8.

15

'. Sliders and Scroll Bars

Puc, 15-8.

, . , ,
.
, ,
, .
: ,
, (, ).
. ,
, . , , : , 100- ( ) 50- (
).


, , ,
.
, -

, ,
. ,
.
, , ,
.

.
, ,
: ,
.
.
Microsoft Access
( Input Mask
), Visual Basic MaskedData. ,
. ,

###-##-#### ( ,
, , , ).
, ,
. ,
.
, . , , ,
. , , , ,
. , . , , :
. ,
, , .
, .
,

15
.!

, .
Access Visual Basic Microsoft Rich Textbox,
,
. , , , , , , .
Rich Textbox
, .
, , ,
. , , .
, , Microsoft Rich Textbox, , .
, , . , .

, .
. .
, , ,
.

: , , .
, : 48 .
, , ,
, , , , .
? , , . ,
, ,
(, , ) , .
*, .
*,
, .
, . , , ,
, : .

, : .
, , . . , , , ,
.
: ? . , , , .
,
, ,
,
, , , .
, , . , - , . ,
, . , .
,
, , ,
.


4 , . , :
(intrinsic constraints) , , (business rules).
. , ,

16

Customers (),
Orders () ,
,
.
, , ,
. ,
, , , ,
. ,
, .
,
. , ,
, ,
, Orders
Customers. , ,
, Customers^ Orders. Orders,
Customers, , , .
Orders , Customers Orders, , , . Orders^ Products,
. , ?
, . , , .
, -
. , ,
Orders ,
, ,
, , -

, -. - , , . , , - , . ,
.
, . ,
.
, , ,
. ,
, , , . , ,
, , , . - , .

, ,
.
-
.
,
, ,
,
. Customers Orders ,
.
- -
. , . -
.
.


,
,

16

. , , ,
, Null, :
, .

,

, , ,
.
Amount Due ( ), , ,
.
, (, Amount Due 11).
.

,
,
, ,
, ( Microsoft Access , ). , . ,
. , , ,
.
, , ,
. , , , . , ,
9-9999-99999-99, , .

,
, ( ,
)
.
, ,
. , , , , , Character.

, ,
255 , , ,
, , . SQL Server VARCHAR
. SQL Server, Microsoft Jet.
, ,
. ,
.
. -, , . , .
, ,
, , . .
, SQL Server , ,
, . ,
, ,
,
, . ( ,
,
.)
, ,
, ,
. ; ,
. ,
, , . ,
, .
, . , , .
, :
., Company Inc., Incorporated,

16

,
. , :
Company,
., , , . ,
The Really, Really Long Name Company, Incorporated Really, Really Long
Name Co., Really, Really Long, Inc..
, .

Null
, .
,
Null , -
. ,
, . Null , ,
, ,
, , .
,
. , -
,
. , , ,
, .
. , , ,
. , ,
,
, . ,

,
? ,

, , - .

, : , . , .
( ), , , .
, , .
, .
, Null, ? , ,
.
.
.
,
.

, Unknown (), Not Applicable (He ) Yef To ( ). .

,

. Null, .
.

, 255. , , ,
, .

16

, , , , , , ,
.
,

.

CHECK , , , , ,
, -. . - .



,
,
, , .
,
,
.
, , , . , , .
, ,
, .
, .
,
, , . , (. 16-1).

if! Duplicale Data


tlMffe^wd you have entered appears ti duplicate-an eKMing record to the
iMabaJt Wtif it would you like to do?
i wtnjn>A'dismay st^T* tfcjplcatB record. Nefife at'the
#;trtered^ibefest.aftsf ^miningthe

edsSng ^', (bti to fces^p <N recwiJ vw have

|
i

JUSt tnt'J'fdo' I .1-1--.-.,; -.,;((!, ..,,!!;?.o>'fluht|if

f tilth? rsojrJ j-ou ha-,r vat sifceres! .'.ithu


a*i rigwm d. Both recaps if be added to the

: : !,

. 76-/. , ,
,
,
. ,
. , , ,
,
,
. :
:
.
; . 16-1
,
, .
, ,
, .

.
, , . AutoNumber Access
Identity SQL Server
, , ,
. -
AutoNumber Identity
, , .

16

,
. , ,
. ,
AuloNumber? ,
.

, .
, . , ,
, , ,
? . 16-2 .
:
;
,
;
;
.
Unknown Reference

. 16-2. , ,

,
:
.


,
, ,
.
SQL- LI KE

SOUND EX.
, . , . , ,
, ,
, . ,
.
, ,
. , , . , , , .
, ,
. ,
, , , Product 10
, Orderltems.
Microsoft Jet , ,
, . SQL Server .
. ,
(, ). , , ,
.

16

. 16-3 ,
( )
,
. ;
, ( -). (, -) .
! Dependenl Recwds
The customer you hijve those*) to delete ha* outers in $K* database. What
would you Kkt> to do?
s wihdc-w,

siii!k.'<k*f.*L.x>. =1 :eiisttomer's ofsteS> F'W(JeR;ie=tedeltieitl ^ *


:>>^--!1-4<4*1*=*iM*

* , Review

i' - ;.:, . ) , . - . . ! .

--.. I ^just>:-:nfrr you dice

. /6-5.

, ,
.
, .

-
, , .
,
, ,
. , ,

,
. , -
.
, - ,
. ,
, .
, .
, . .
, , , .
.
-
. , .


, , ,
. , , . , . ,
: ,
, (. 16-4).
, ,
.
, ,
, , , .
. 16-4 , Delivery Date (
). ,
, Help. , -

16

, 18.
Unknown Date
The Delivery Date specifies when the customer would libe the goods to be
delivered: to the idress specified inBeivery Address. Unfortunately, the
system is unable to interpret the date you have entere*'31 /01/ML What
would you Hkc to da?
9, th

| Operithe wincoBj> which wl Display more irfpimaSon


I about the Ostvety ?ate field .md entering oetavdues.

. 76-4.



. , , ,
- .
, ,
, -. , , ,
, ,
- , , . , .
,
- ,
. . 16-5 ,
,
, Delivery Date, ,
OrderDate ( ).
OrderDate , -

; .
Deliveiy Dd)e el ure Ih.Ji-i Dale

'',.>- i l " in

i !

. 16-5.

- ( ) ,
. -
,
, . : , , . -, , , ,
(. 16-6).
,
, -. , , (,
) ,
, -. , , , , ,
. , .

16

' Maximum Number ol Employees Exceeded


By default, only fivf empfoyeES can report to a manager. The employee you
Just entered would eHE**ftthat number, and you do not have the authority to

. . .! i .- '... --.-< i,..;.i i

> / i .'....'., i .

. 16-6, ,
-
-
, .
Employees ()
.
,
.
Employees , , , . , ( ,
, ), .
, .
: , , ,
. . , , , .
,
.
,
, . -

, , . , ?
, ,
, , ,
, , . , - : ,
.
( ,
) , , , , .
, , , . ?
, - , ,
, , ,
, , ,
. , : , .

, . : ,
, -,
.
, . - , ,
, .
, , -,

.

, ,
, . ,
, ,
. ,
, , .

, . , :
, , .
, , .
,
, , , :

. ,
,
, . - , Customer, , ,
, .

. , . ,
- ,
...*, , , , . , . . , , ?
, , , . , ,

(standard reports). ,
,
(ad hoc reports).
, .
, , .

,
SQL , ,
WHERE ORDER BY SELECT. ,
. ,
SQL, ,
.
SQL-.
. ,
. ,
,
. SELECT SQL W H E R E , ,
: W H E R E State = Wyoming OR State =
Florida. , OR

17
**4^> *

(), AND (). !


, SQL
. , , . , ,
, , .
, , . Microsoft Access
, SQL. ,
, ,
. Microsoft Visual Basic ,
.


Access ,
. Sort Ascending (
) Sort Descending ( ). ,
, Records () .


Access :
Filter By Selection ( ) Filter Excluding Selection ( ). ,
Sort Ascending Sort
Descending.

Filter By Selection, Access ,
, . SQL WHERE,

, : WHERE <_> =
<_>.

, Access , . Northwind, Access.
Chartreuse verte
Product Name, SQL WHERE, , : WHERE [Product Name]
LIKE Cha*.
: Chartreuse
verte, Chai Chang.

, - ,
Access ,
. , Chartreuse verte, WHERE SQL
: WHERE fProduct Name] LIKE *arV North-wind (. 17-1).
S Products: I..W.
19 Carnarvon Tigers
39 Chartreuse verle
5B| Esc argots de Boulogne
l>4:Guarana Fantastica
32 Mascarpone Fabioli
72 Mozzsrella di Giovanni
73 Rod Kaar
20 Sir Rodney's Marmalade
62jTarte au sucre
T, Uncle Bob's Organic pried Pears
\utcNumber1

Puc. 17-1.
Product Name
SQL, ,
SQL- , . ,
, Filter By Selection
Access SQL- SELECT

17

- . ,
, Access.


Filter By Selection
, . , Filter By Selection ,
,
. ,
, .
, , Access Filter By Form (
). . 17-2 Customers
Northwind Records .
B-i Custnmeis. FiHei by Form

. 17-2. Filter By Form


no
, Filter By Form,
, . , .
, Look For (), (AND), , Or (), -

(OR). , , . , , ,
.
, Filter
By Form, .
, , . , ,
. , , Filter Lookup ( ) Never ().
,
, , . (
Filter Lookup Never), , ,
, :
LIKE ** IS NOT NULL. , , , (,
100 . ), .


Filter By Form , , , . Access,
, ,
.
Records Advanced Filter/Sort ( )
(. J7-3).

17

nil CuslomersFMterl

Filtet

Puc. 17-3. ,
Advanced Filter/Sort Customers
Northwind

, . , , WHERE ORDER BY SELECT.
: ,
.
Access
, Visual
Basic .
Access
, .

Microsoft English Query



Access, a SQL Server, .
, Microsoft English Query. , , English Query , .
English Query
, , . ,
English Query (application file).

, ,
. : ,
.
English Query
. , ,
English Query,
SQL.
,
. ,
, , , , , .
Microsoft English Query ,
. ,
, , ,
.


,
, ,
. , . ,
.


.
( , ), .

. ,
, . , ,
, ;
; ,
. , -

17

, (, ),

, .
, , ,
,
, .

. (
) , .
, , ,
.
, .
.
,
, . .
, ,
Microsoft Word,
.
: , .
, , , , .

,
.
, ;
, ,
. ,
,
.
, ,
. Microsoft Graph . -


.
, ,
(, Microsoft Excel)
.


,
.
. , ,
, ,
, , .
, .
, ,
, ,
. , ,
,
. ,
, , .
,
. : ,
, ( ),
.


. Print Report ( ), :
,
. ,
,
. , , ,
.
.
Reports ()- -

17

.
.
,
, .
, Print Customer
Listing ( ) , Customer Listing ( ). , , . , Customer
Listing Reports .
,
Windows.
, ;
. , ,
. , , . , . ,

,
. ,
,
.
- , ,
,
, .
, . , .
, . , , , .
, , ,
(, )
, , . , -

,
,
, ,
, , , . . , . ,
, .



, . , ,
, .
, , ,
, , .
, ,
(, ),
, , : , * . , , , . , . ,
,
,
. ,
, .
, ,
, . ,
, ,
. , , , Yes/
No .
-

17

, .
, , , , - .
.
, ,
.
, . - , , , , (// . , Null, . ,
, ,
.
? .
, , ,
, ,
( ). , .
- . , .
, , , ,
. .
,
.
, (-

, , ).
,
, , , , , .

, . , ,
, .
. ,
, .



:
, .
. ,
, , - .
, (, -) , . , ,
.
, , , . ,
, . ,
( ) , .

,
, . , -

17

,
.
.
,
. , , ; ,
, - .

( ), , .
: ,
,
, , , ,
Print Weekly Reports ( ), . , .
, ,
.
, , , ,
.
, - . ,
,
. , .



, ,
, . , , .
-

.
, , . .
,
, .


Access , -,
. Microsoft Data
Reports, Visual Basic 6,
, :.
. , . -,
. , ,
Access , , Access .
, . . ,
, , ,
, . , . , , .



, . -

17

, ,
. ,
, Access, . .
. , .
Access , - . , ,
. ,
Access.
, , . ,
. ,
,
.
,
Access,
. ,
, ,
( , , ). ; ,
, Access, Visual Basic Data Report,
( ,
). , , , ( ). ,
.


, ,

(. 17-4). , , ,
.
Report
Monlh-Eiid Report!
5*1 Reports
Ptttamanee t

Wcyan
NcnltianFUgwn
Soul-sasl RegBn
SaittnwHl

. 17-4.
.
, . . , , . .
, , , . , , , . .

. , . , Region
() Southwest (-),
Southwest Region Sales ( - ). ,
, .
. 17-4 . ,

17

, ,
. , , .
,
. , , , .
. 17-4 . Print (),
, , , . .

,
Print Print Preview ( ), .
.
Save Or Restore Criteria ( ),
(. 17-5). , .

. 17-4. , (. 17-5),
.
,
.
Save As ( ),
,
. Restore
.

.
, . ,
, , -

, , , .
, , ( ,
Microsoft Access, ).
Category 1 - Save or Restore Criteria

, 17-5. ,

.
, ,
, .
, , , , ,
UNION
. , ,
, .
, . , (, ).
(. 17-4). .
( ,

17

) ,
(. 17-6).

. 17-6. ,

Report Categories ( ) Category Table Name ( ). , , . , . , Report Formats.
, (. 17-6), . FormatName ( ) PhysicalName (
) Report Formats .
(, Access) (
), ,

.
, , Report Formats,
.
, ,
( Access , )
Report Formats.
, . FormatName , , PhysicalName (
).
,

. , .
, ,
, . , ,
.


.
,
. , , , , .

: , ,
, .

, , . ,
,
,
, , ,
, . .
, . , , .
, , Microsoft Word, .
. Microsoft Office
MailMerge, Access
. Visual Basic for Applications (VBA)

17


.
, .

,
. ,
.
,
(. 17-7).
LetterParagraphs
LetterlD
ParagraphID

. 17-7. ,
,
, , Access, Microsoft SQL Server . . ,

, , . , -
.


, . ,
,
.
,
.
, Microsoft Access.
Access , -

3
, .
,
, , ,
.
,
, .
,
. ,
, ,
, , .
, . ,
.

. ,
, .
. , , 16,
.
, .
12 , , , . , .
, ,
- .
. , ,
.

,
. , .
,
- ,
Don't show me again (He ). ,
.
,
.

.

,

. , , Save () File (), Ctrl-S.
,
. , , , , . , .
. 18-1 File Microsoft Access 2000,
, , Save
. Alt-F-S
, S Save
< F File ). Ctrl-S.
,
.

. 18-L File Access 2000


Save

18

Microsoft Visual Basic , ActiveX , . Access 2000


,
,
Button Editor . Visual Basic, Access .
, .
,
,
( ), , .
.


, , ,
. , - .
, . ,
.
, , .


.
. - Microsoft Windows Alt
.
. , . -

, . :
;
;
.
Access, Visual Basic : (&)
, . . ( &
,
: Nuts & Bolts
Nuts _Bolts, Nuts && Bolts
Nuts & Bolts).



, (. 18-2).

. 18-2. Save ()
Access Form View
, , . , ,
.

. - ,
,
. Save ()
Microsoft Office. Open Customer Form,

?
,
Employees () Vendors ()? .
, .
.
Microsoft Access
Customers (). (,
?) , ,
, . , .
Access Visual Basic,

.
- . , , .
.
, . ,
.
,
, , Customers, Suppliers
Employees.
, , Open Customer Form (
) Maintain Customers ( ) , Print Customers ( )
.

,
. ,
, .
,
, , *
(. 18-3).

. 18-3.


. ,
, ,
Num Lock Caps Lock.
.
, Categories ,

.
Access (. 18-4).

. 18-4,

Access . StatusBarText . , - , Description (
, Design
view). , Access
StatusBarText , -

18

.
Visual Basic
, Text StatusBar.
, Access, . ,
, , ,
, , Visual Basic . , ,
.
, , , . , . , Access ( Visual Basic, ) .
Visual Basic , .
,
,
, .
, , , , . ,
,


, ,
.
, ,
, , .
, .
.
, : . ,

, .

,
, , , ( ,
). ,
. ,
.
. , .
, , .
, -, , .
.
,
,
F1, . , . ,
,
. ,
.
: . , , , , , - , - (, Print) (, CustomerlD
). ,
, , . ,
. -

>^-
^ "

''V

18
: i:

, . Fl
.


,
,
, . , ,
.
, - . ,
, - , .
- ,
, , .
, , .
, . , , ,
, , - .
, , , . ,
, .

,
IOO ,
.


,
, , , . , ,
. , , ,
, - . , , , .
.
, .
, :

, ;
;
,
;
, .
,
.
, , , ,

.
, ,
, .
,
. , . ,
,
. , .
.
, , . , .



, . , , , .
:

, , Office Assistant ( Microsoft Office)
.
, . ,
. Web- : * , .
-

18

, Access, , .
, .
, .
, , .
, , . ,
.

, .

, . , Access,
(, Mid$).

, . ,
: ,
.
, , , .
, Desired Delivery Date
( ),
F1, . .
? ,
, ,
, . , .
.


, . , , (. 18-5).

taskQarforeacn open database object or window. To


use this feature, you mus! install Microsofl Interne!
Explorer Active Desktop.
l-.l '- '!

Puc. 18-5.
.

, - , F1. , , .

? . ,
, , , , . ,
. F1 .
, . ?
Desired Delivery Date :
, .
, : , . , -

18

, . F1
.


,
,
, . , ,
.
, - . ,
, - , .
- ,
, , .
, , .
, . , , ,
, , - .
, , , . ,
, .

,
100 ,
.


,
, , , . , ,
. , , ,
, - . , , , .
.
, .
, ;

, ;
;
,
;
, .
,
.
, , , .

.
, ,
, .
,
. , . : ,
,
. , .
.
, , . , .



, . , , , .
:

. , Office Assistant ( Microsoft Office)
,
, . ,
. Web- : , .
-

18

Web-. ,
, : , .
Microsoft
Microsoft Office Assistant Microsoft Agent.
Microsoft Office Assistant, , Office Assistant . Office
Assistant Microsoft Office Microsoft Access.
Access ( , Microsoft ActiveX, Visual
Basic), Microsoft Agent SDK Web- Microsoft.
, Office
Assistant.
Microsoft Agent .
- SDK. Microsoft Agent .
Microsoft SQL Server 7.0 Microsoft Agent - .
Microsoft English Query SQL-. ,
Microsoft Agent ?
Office Assistant, Microsoft Agent
.
,

.



, . .

, , . , , , .
, .
.
, .

,
, .
, . , .

. , .

: ,
, ,
, .
:
, . , . , ,
.


(abstract entity) ,
.
(aggregate
function) SQL, .

(proactive user assistance) ,

,
.
(alternate key)
- - ,
.
(update anomaly) ,
.
(attribute) .
(database)
.
(base relation)
, .
- (business constraint) , .

- (business rule) , ,

,
(Boolean expression) ,
True, False.
(command vector)

: ,
.
(foreign relation) ,
.
(outer join)
,
, ,
,

.
(intrinsic
constraint) ,
.
(inner join)
- ,
,


True.
(primary relation) ,

.
(binary relationship)
, .
(Cartesian
product) ,

.
(declarative integrity) ,


.
(lossless
decomposition)

,


.
(domain) ,
.
(typecompatible domains) -- ,
.
(natural
join) ;
,
-

.
(relation
heading)
,
.
(task)
.
(closure) ,
,

,
.
(record)
-
.
(query) Microsoft Access.
(cascading
update)
.
- (candidate key) ,

.
(tuple) .
(left
outer join) ,


SELECT.
(data model)
.

(cardinality
of a relation) .
(cardinality of a relationship)
,
.
(recordset) Microsoft Access .
(regular entity)
- , .
(domain constraint)
,
.

(entity constraint)
, , .
(integrity
constraint) , .
,
(database constraint)
,
.
(orphan
entity) ,
.
(relation)
,


.

(passive user assistance) . ,
.
(primary key) - , .
(field) .
(full
outer join) ,
.
(ad hoc
report) ,
.
(right
outer join) , , SELECT.
(problem
space) ,

.
(view) Microsoft SQL
Server.

(database application)
-
, .
(derived
relation) -

,
.

(junction
table) , .

(relational union)
.

(simple key) -- ,
.

(relational intersection) , , . .

(work process) , .
(degree of
a relation) .
(degree of a relationship) --
.

(reactive user assistance) , - :
,
.

(concrete
entity) , .
(relational
difference) , , .
(relational
divide) , ,

(relationship) ,
.

(database
system) , .
(scalar value)
,
.
(weak entity) , ,
.
(composite
entity)
,
.
(composite key!
-,
.
(referential
integrity) , .

(standard
report) ,
.

(entity)
, .
(schema) .
(database
schema) .
(table)
-
.
(relation body) , .
- (theta-join) : ,
; , , , .
(three-valued
logic) ,
:
True, False Null,
(ternary relationship)
, .

(unary relationship)
.
(participant) ,
,
(data integrity)
- ,
, ,
,
,
.
(transaction integrity) ,
.
, , (procedural integrity)
,

, , .
(equi-join) ,

.

I.
Date . J. An Introduction to Database Systems. 7th ed. Reading. Mass.:
Addison-Wesley Publishing Company. 1999.
Date C. J, and Danven Huge. Foundation for Object/Relational Databases: The
Third Manifesto. Reading. Mass.: Addison-Wesley Publishing Company. 1998.
Fleming Candace C. and von Halle Barbara. Handbook of Relational Database
Design. Reading. Mass.: Addison-Wesley Publishing Company. 1989.
Teorey Toby J. Database Modeling & Design. 3rd ed. San Francisco:
Morgan Kaufmann Publishers, 1999.

II.

Gilb and Susanna Finzi. Principles of Software Engineering Management.
Reading. Mass.: Addison-Wesley Publishing Company. 1988.
Haught Dan and Ferguson Jim. Microsoft Jet Database Engine Programmer's
Guide. 2nd ed. Redmond-Wash.: Microsoft Press. 1997.
McConnell Steve. Rapid Development. Redmond-Wash.: Microsoft Press.
1996.
Pressman Roger S. Software Engineering: A Practitioner's Approach. 3rd ed.
New York: McGraw-Hill. 1992.
Sommerville fan. Software Engineering. 6th ed. Reading, Mass.: AddisonWesley Publishing Company. 1996.
Soukup Ron. Inside Microsoft SQL Server 6.5. Redmond-Wash.: Microsoft
Press. 19971.
1

: . Microsoft SQL Server 6.5.


.; *. 1998. , .

III.

Cooper Alan. About Face: The Essentials of User Interface Design. Foster
City, Cal.: IDG Books Worldwide. 1995.
Heckel Paul. The Elements of Friendly Software Design. New York: Warner
Books. 1991.
Mandel Paul. The Elements of User Interface Design. New York: John
Wiley & Sons. 1997.
Microsoft Corporation. The Windows Interface Guidelines for Software
Design. Redmond-Wash.: Microsoft Press. 1998.
Shneiderman Ben. Designing the User Interface: Strategies for Effective
Human-Computer Interaction. Reading. Mass.: Addison-Wesley Publishing
Company. 1980.

Data Access Objects (DAO)


. ,
, DAO

Microsoft Access 25, 194


Microsoft ActiveX 121, 261
Microsoft ActiveX Data Objects
(ADO) . ,
, ADO
Microsoft Jet 7-10, 55, 81-89,
91-93, 178; .
Microsoft SQL Server
2-3, 8-10,
55,81-97, 113-114, 178, 194;
,
Remote Data Objects (RDO)
, ,
, RDO
Structured Query Language (SQL)
33, 94-99

109-, 257,
300-301
94

-CUBE 109,113-114
ROLLUP 109-113

TRANSFORM 109-112
9798

109-110

108-109
104
104
105
109 111
106-108
98
107-108
109-110
98104

. ,
137141

- 171, 181-188
186-188
171,
188-189
182 185
171-172
172
172-174
174178
- 236
12-25, 34, 165-168,
245-255
156-159
76, 160
2122

ADO 8
.25
117

275-276
5556
9
7
28-33
34
154161
10
122124, 142
23; .


7-8
34

- 3-5, 81,94, 122, 171,


178-192,207-208
3, 5
7
- 72-73, , 86,
145-148, 163-165, 172-180,
261,276-277, 286-291

287-291
- 129, 143
- 118,
130-132

154
257
181 182

85. , ,

190
82
78

- 8
-ODBC 8
-OLEDB 8
-RDO 8
- 196-200

48
4950
- Null 82-84, 95,
109-110, 280-281

91
84
- 2-3, 13-14, 23-24,
31-34, 52-57, 93, 154,242
9
9
171,
191-192, 207
2-3, 9-10. 57
9
84
- 2, 196-200

197-198

287-288
199-200
196

197
89

252-254
28-30, 34, 42,
48, 78
171
7-9, 80

272273
40- 41,
74-75, 129-130, 155
31, 122, 242

74-78, 81-83
170
210

168,
261
272273

247, 251, 256-258,267
263264
-
74-75, 81-83
279

178-180, 192-193
261
262
85
- 193,294
238
- 21-23, 39-41,75,
259-261
- 269-270
2223, 39
269272
269
-
122,
171,275
293298
- 170, 260-261

37-38, 46-47
- 79
- 48, 7273, 81.
178-181, 275
79-80,93

8586
85
7576
76-78, 86-90
80
275
93
93

108-109
34, 42, 50, 78

206,
.
2527,
53-56, 165, 207, 228, 243

55-56

. ,


203-204

210-211
210
13, 21-23, 39-41, 73-75,
165-168
167-170

. ,
. ,

.
142143, 240, .

227
79
94, 194-196, 298
195
[04
Microsoft
English Query 298-299
. ,


. ,
184-187, 193-196
184-186, 194-196
185
91
- 189191
189
191
208,
213-215
228241

234-239
231232,
239
238239
232233
Microsoft Outlook.
233-234
317

237-238
* 217,
229-231
240241
240-241


241
208
215216

215-216, 237,259
215216
250251

244245
-
242-243
- 308-310

245246
316328
228
224226

259
246-248
214215,
219-224
226-227
208209
209210
216

245246,
249
246
237238
248-250, 267


244-247, 259, 262
262
267-268
267
266

266

263-265

264

267
263, 265266
263
271

264-265

268-269
273
26364
- 189-191

. ,
. -,
- 5,
186188; . ,

. ,
35-38, 193
3637
78-79, 193
37
35-46, 63, 66, 78.
244

91

3637, 43, 91.


178, 185-186, 193, 283-284
42
36
36, 42, 46
224
257
12

, 9596
9697

5-7, 55,
179-180
-Microsoft Jet 7, 182-185
Microsoft SQL Server 7

. ,
,

. , ,

. ,

7-8, 190
-ADO 8, 190
- 8
-RDO 8
117
1 1 8
1 1 9

120-121
23, 910. 34,
82, 94, 275, . ,

. ,

12
54,69-70

1012
3439, 4552,
170; .

. ,

. ,
,
98, 163-165, 192,
277-286
-CHECK 192
91-92
275-279

168, 281-282
278279
192
7375,
192, . ,
,
192,
282-286
7576
80

7879, . ,
278
278
7274, 27.x
. ,

275276
275276

79-80
7475

. ,
,
231238,
240-241
236-237
235-236
234239

-CUBE 109, 113-114


-ROLLUP 109. 112-113
-TRANSFORM 109-112

40
10
9--13
5758
12
94
32
3536
67
2933, 52.
65-68
12
68, 252
94
12
5557, 63, 66,
192-193
5657, 63. 66,
192-193
12
5455

301



303-306
- 299-301
293,
306-307
31 j
307313

302-303
300301
292-293,
301-302, 307
294
293-298
293, 299301
300

190
. ,

.

316-317
327328

327-328

318-322

319-320
318319
321322

322-327
326

323-324


326-327

143144,
150-152
217
328329
218
218

,
3, 1314,
28, 163-164
194195

5,89

171
5, 186188; .
, ,
5, 236
171
5

85
5
89
1011,
. ,


. ,

. ,
98

. ,
85

7980, 122,
143-152, 154-155, 163-165,
195, 206, 228, 232, 238, 242, 254
- 143-144, 148-152
150-152
142152

12
24, 52
. ,


. ,

. ,
204
. ,

23-25, 50-52, 72, 92,


191-193, 243, 247, 259
163
24, 52
2427,
64-65, 242, 255-257
55-70,
156-163
- 54,69-70, 160-162
6869
5354
24
5354, 160162
2427,
58-63,92, 195, 242,247
2427,
248-250
163
246-253

53
24, 52
- 53-55, 58
- 24, 52, 67-69
52, 6566
24, 52, 160
53
24
2-5
171172

124-130, 136-137,204
202205
124, 131-135
136137

135-136

136
2,
.
- 124-130, 135,204
() .

171172,
192; .
9-1.1, 39
172

. , ;
, ,
98-99, 100-109
103
103
103-104
103
100
51; . ,
99

- 101104

. ,
. ;


. ,

, ,

. ,

. ,

. ,

.
. ,

13-20, 72, 245-247


15
1419

163-165
57-58
163
15
13-23, 5964,
156-159,243
24
53
163
1415, 24
247
243, 247
- 23,52-54,72

163-164

54
24
53


164-165
24, 52-53
90
.
,

152-153
10, 190-191, 243
190
253254, 267
65, 255-257,
311
92
51, 193
19 3
78
78
. ,
. ,
2123,3941,
87-89, 168-369, 279;
. ,
73, 261262
262

85-86, 89
2223, 39
260261
74
261
. ,


. ,

80-81
81
81
. ,


. , ,

85,91, 178, 191


. ,

293-298

294-295
296-297
297-298

34
- 4549
4243,49
39-40
45,4951
4345, 170
45, 4849
. ,


. ,

191196

; . ,

79
- 72-86, 85, 93
- 85
76
79-80 ,
7577,
85-86
75-76
7678,
86-90
8485
72-75, 86-90,
178, 277-286
85
81
-78-79, 82-83, 86,
91-92, 193,282-285
73-75
122, 124, 204

. , ,

. ,

-
.
.
, . 1998 .
Microsoft MVP -.

(). : rebeccar@ibm.net

MICROSOFT
( -)
- . ( ") , ( ) Microsoft Corporation ( Microsoft) Microsoft,
, ( ). , , , ,
, . , .
, , .

,
.
1,

. :
a) . . ,
,
.
b) . , ,
,
.
.
c) License Pak. Microsoft License Pak, ,
, , . , , .
d) . , ( ),
.
i) . Microsoft (d)(iii)
. , .

ii) . (d)(iii) Microsoft


, (
), Readme,
, .
) . ,
, , : )

; ) , Microsoft
; )
; )
Microsoft , ,
; ) . Microsoft.

, .
,
, , (
, ) , .
.
. .
. ,
.
. Microsoft ( )
(
).
Microsoft, ,
/ , Microsoft. , ,
. , Microsoft , Microsoft
, . , Microsoft .
.
, , ,
, ( , , -

, , ) .
. Microsoft
, . .
3.

. ( , , , ,
, , , , , ) Microsoft . . , ,
, , ,
, .
, , .


( ) - . MICROSOFT
, .
.
MICROSOFT. ,
, , , -
( , , . ,
) , MICROSOFT ,
,
.

(),
( , ) , .
- , ,
Microsoft no , , Microsoft : Microsoft Sales
Information Center, One Microsoft Way, Redmond, WA 98052-6399.

. .

. ,

. .

. .

-
Adobe PageMaker 6.0

TypeMarketFonfli&rarv

(-)

. .

.
066422 19.03.99 .
18.09.01 .
! 60 90'/| . . . 24.
3000 . 190.
- 6.
193144, -, . , 10.
271-35-42.

: / R

Windows 2000
Magazine/RE

, Windows 2000
Professional Windows 2000 Server
.
,

Windows 2000 ,
Windows 2000 Professional
Windows 2000 Server
,
, .
,


" Windows
NT/2000" "SQL Server Magazine
ONLINE".


Windows 2000 ,
.

Jf

www.wJn2QQOmag,ru .--Iettergfwin2000mag.ru
-79741, - 38185

117036 . ,
. , , 4

.: (095) 232-0023
W W W . S 0 f t

e-mail: info@softline.ru



SoftLlne?
8 , .. .
.
i Soft Line-direct
www.softline.ru.
SoftLine .

, SoftLlne?
(Microsoft, CA/Platinum,
Rational, SilverRun, Quest).
(Centura, Merant, Microsoft).
(PlanisWare, PlanView, Microsoft).
1 ( Allaire, Borland, IBM,
Microsoft, Allround Automation, ComponentOne,
Crystal Decisions, Janus, Sitraka, Stingray).
(Compaq, Fuji, Intel, MainSoft, Sun,
Sybase, Tenberry).
(NuMega, Intuitive Systems, Segue).
(InstallShield, Wise Solutions).
(Remedy, RoyalBlue, CA,
Network Associates).
(Adobe, Allen Communications,
click2learn.corn, eHelp, Macromedia, Quest, Ulead).

SoftLine
SoftLine,
. ,

( ),
- RAD -
.
- , , Microsoft
Developer Network, Sun Developer Essentials
- - SoftLine Support Subscription, - .
SoftLine .

Microsoft

Borland

COMPAQ.
macromedia*

sitraka <allaire>

GA

InstallShield.

SYBASE

IIIIIIIIIIIIIIIIIIIIIIH

,
.
- ,

.
,
,
,

,

"" - 80467,
" " - 45775.
: . www.programme.ru '
info@pfogramme.ru

:
*
*



* ,

*
* CD-

: HARDNSOFT - 73140, HARD N SOFT * CD - 26067

Microsoft Press

.
,
.

I -:
, : (312) 247-1183

:
.(- . , 6, : (0951 926-3557
- . . 15| 290-4507
' -. 40, : {95| 137-6019
- - . , 25 .; (5| 238-5001
" 1 . , 78, (095) 152-4511
1

- - 2- -, 54. . (() 978-5047


", , 8, (095] 229-6463
* . .
-, 1106. .. (095) 53-69
"
, , 38, .: (095) 778-7269

:
000 "- . (38311 36-1026
:
000 ---. .: (552] 58-8013
- (eta):
. : 8-327-290-191-5, (3272| 26-1404
():
DOQ , : (044) 269-0423
" , (0441 461-6895
():
000 W / 3-10-375-17-2225726
...- 3-10-375-17-2366716

.: (095) 112-05/1; ./: (095) 145-4519


'e-mail: mfo@ruseilit.ru: Wtp:// www.rused't.ru



.


,
.


.
,
,
.


-:
Microsoft Word,

;

,
,
;
,

Microsoft
Access, Microsoft SQL Server,

Microsoft Visual Basic
,
;

,

;


;


Microsoft Microsoft Knowledge Base.

ISBN 5-7502-0150-;

9 785750 201501

: www.rusedit.ru
-: www.ITbook.ru

Вам также может понравиться