You are on page 1of 16

130 60

1
12

2
24

3
10

5
4

Page 1

CNET Networks Inc. 2002


www.zdnet.com.cn/developer

Lamont Adams
Access

Access Interbase

kg

4 4
3
4
WORK_
_NO _CODE
money
_AMT DATE_

richard

tablequery report

rrydenm
Microsoft Access qryrpt tbl mod
tbl_Employees SQL Server Oracle tbl
sp_company sp_feft_
SQL Server 2000 udf_

Timothy J. Bruce

Page 2

CNET Networks Inc. 2002


www.zdnet.com.cn/developer

3.
80 System 38
2000
Y2K

Y2K 1995
AS/400

generalist

Len SilverstonW. H.
Inmon Kent Graziano

minstrelmike

chrisdk

dhattrem

CASE

chardove

ER
9

rangel

ER

teburlew

Page 3

CNET Networks Inc. 2002


www.zdnet.com.cn/developer


ER
ER

bgumbert
ER
SQL

vanduin.chris.cj

Dana Daigle

peter.marshall

kol

kgilson

Page 4

CNET Networks Inc. 2002


www.zdnet.com.cn/developer

Shropshire Lad

cbo1 txt2txt2_b

Customer_Shipping_Address_Street_Line_1 I

Lamont Adams

FirstName
CusLastName

notoriousDOG

/
/

kol

XML

tduvall

normalization
Third Normal
Form3NF3NF

Page 5

CNET Networks Inc. 2002


www.zdnet.com.cn/developer




3NF
3NF Customer OrderOrder
Customer

3NF

Lamont Adams

40

epepke

Microsoft Access
Customer Name txtCNaM

jwoodruf

theoden

PERSON Title PERSON


PERSON_TYPE John Smith, Engineer John
Smith, Director John Smith, CIO
PERSON PERSON_TYPE /
PERSON_TYPE PERSON Associate
EngineerDirectorCIO CEO
PERSON

Page 6

CNET Networks Inc. 2002


www.zdnet.com.cn/developer

teburlew

PERSONORGANIZATIONADDRESS
PHONE

2 PERSON
EmployeeSpousePatientClientCustomerVendor Teacher
ORGANIZATION MyCompanyMyDepartmentCompetitorHospital
WarehouseGovernment ADDRESS SiteLocationHomeWork
ClientVendorCorporate FieldOffice

teburlew

billh

Alan Rash

dRecordCreationDate VB Now() SQL Server GETDATE()


sRecordCreator SQL Server NOT NULL DEFAULT USER
nRecordVersion null

Peter Ritchie

Address_Line1Address_Line2 Address_Line3

dwnerd

Customer

dhattrem

Page 7

CNET Networks Inc. 2002


www.zdnet.com.cn/developer


name

klempan
Klempan name

damon

CustomerData
Access Oracle
/
CUSTOMER_DATA

bfren

ODBC DESC DESC


DESCENDING SELECT *

Daniel Jordan

agreement_numberref1

setanta

SQL smallint tinyint


smallint$32,767

egermain

kol
Page 8

CNET Networks Inc. 2002


www.zdnet.com.cn/developer

kol

Richard Foster

ID ID
ID 10
12 13
3 1
3MB

tlundin

SQL

Customer OrderCustomer cu_cu_name_id


cu_surnamecu_initials cu_address Order or_
or_order_idor_cust_name_idor_quantity or_description
SQL
Select * from Customer, Order
Where cu_surname = "MYNAME"
and cu_name_id = or_cust_name_id
and or_quantity = 1;

Select * from Customer, Order


Where Customer.surname = "MYNAME"
and Customer.name_id = Order.cust_name_id
and Order.quantity = 1

1 SQL 5

Bryce Stenberg

Page 9

CNET Networks Inc. 2002


www.zdnet.com.cn/developer

3

8

hscovell
ODSDW DW

teburlew

1

teburlew

SQL
SQL LIKE case number
yearserial numbercase type defendant code

rdelval

Peter Ritchie

Page 10

CNET Networks Inc. 2002


www.zdnet.com.cn/developer


95%

tduvall

memo/note

gbrayton

kbpatel

SSN
SSN SSN

teburlew
70 SSN

SSN

generalist

Lamont Adams

Customer CustomerIDOrder
Page 11

CNET Networks Inc. 2002


www.zdnet.com.cn/developer

OrderNo OrderNoCustomerID
Order CustomerID
Customer CustomerID Order

ljboast

state_code

Select count(*)
from address, state_ref
where
address.state_id = state_ref.state_id
and state_ref.state_code = 'TN'

Select count(*)
from address
where
and state_code = 'TN'

Stocker

memo/notes

gbrayton

Page 12

CNET Networks Inc. 2002


www.zdnet.com.cn/developer

4

/

Lamont Adams

Peter Ritchie

5 10

Suhair TechRepublic

kol

CS Data Architect

Gay Howe

Page 13

CNET Networks Inc. 2002


www.zdnet.com.cn/developer

kol

3GL
SELECT Cnt = COUNT (*)
FROM [<Table>]
WHERE [<primary key column>] = <new value>
IF Cnt = 0
BEGIN
INSERT INTO [<Table>]
( [< primary key column>] )
VALUES ( <New value> )
END
ELSE
BEGIN
<indicate duplication error>
END

3GL
INSERT INTO [<Table>]
( [< primary key column>] )
VALUES
( <New value> )
IF @@ERROR = 2627 -- Literal error code for Primary Key Constraint
BEGIN
<indicate duplication error>
END

2
2627

a-smith

CS Data Architect

Page 14

CNET Networks Inc. 2002


www.zdnet.com.cn/developer

nickypendragon

chardove

mrs_helm

9935A 4XF788-Q
5
4XF788-Q

amasa

/
Access
/

Richard Foster

juneebug

jgootee

Page 15

CNET Networks Inc. 2002


www.zdnet.com.cn/developer


Microsoft Access

QC

Dennis Walden

Page 16

CNET Networks Inc. 2002


www.zdnet.com.cn/developer

You might also like