Ayati: A Broad Perspective on Database. 1 2 3 4 5 8 7 6 A general System model of a Production or an...

12
Ayat i: A Broad Perspective on Database
  • date post

    21-Dec-2015
  • Category

    Documents

  • view

    214
  • download

    0

Transcript of Ayati: A Broad Perspective on Database. 1 2 3 4 5 8 7 6 A general System model of a Production or an...

Ayati:

A Broad Perspective on

Database

xxxxxxx xxxxxxx xxxxxxx xxxxxxx

xxxxxxx xxxxxxx xxxxxxx xxxxxxx xxxxxxx xxxxxxx xxxxxxx xxxxxxx

xxxxxxx xxxxxxx xxxxxxx xxxxxxx

xxxxxxx xxxxxxx xxxxxxx xxxxxxx

1 2

3 4 58

76

A general System model of a Production or an Information System,

Figure 1.1-i,

Figure 10.1, Database vs. Database Management System (DBMS)

Data Information

Program (Instruction Codes)

(a report,a screen)

Reports &Forms

Generating Facilities

Database Management Systems (DBMS), the Database Management Systems (DBMS), the machinemachine

DataManipulation

LanguageDML

DataRetrievalDML

DataEntry Forms

DataLoading

DML

xxxxxxx xxxxxxx xxxxxxx xxxxxxx

xxxxxxx xxxxxxx xxxxxxx xxxxxxx xxxxxxx xxxxxxx xxxxxxx xxxxxxx

xxxxxxx xxxxxxx xxxxxxx xxxxxxx

xxxxxxx xxxxxxx xxxxxxx xxxxxxx

Database

Data Definitio

n Languag

eDDL

Figure 10.2, A typical Automated Storage & Retrieval Systems

Oviatt Library ASRS,

California State University, Northridge (CSUN):

“The ASRS consists of 13,260 steel bins, each 2' x 4', on a rack structure that occupies an 8000 sq. ft. room forty feet high. The ceiling of the room is at the level of the ceiling of the main floor of the Library. The bins are arranged on both sides of six aisles, each of which a “mini-load computer-controlled crane” has guided by rails at top and bottom.” [ http://library.csun.edu/About/ASRS ]

Figure 10.1’, Database vs. Database Management System (DBMS)?

xxxxxxx xxxxxxx xxxxxxx xxxxxxx

xxxxxxx xxxxxxx xxxxxxx xxxxxxx xxxxxxx xxxxxxx xxxxxxx xxxxxxx

xxxxxxx xxxxxxx xxxxxxx xxxxxxx

xxxxxxx xxxxxxx xxxxxxx xxxxxxx

165

3

2

8

4

7

12

9 11

10

1413

Recalling the useful parallel

Focus on the organization

Many overlapped topics

Focus on the community

Focus on the machine & engineering

Many overlapped topics

Focus on the machine & engineering

Database Design must have an ‘organizational’ focus

Implementation, however, will have a computer

technology focus

Many overlapped topics

Database Design vs . Implementation

Figure ff, Database: Where Business Meets Technology

A

Broad

View of

MIS

Focus on Integration of Business Processes (2000+)

MIS with Multimedia and

Groupware Capabilities (1990’s)

MIS with DSS, ES & AI

Capabilities (1980’s)

MIS with DBMS

Capabilities (1970’s)

MIS Using TPS Capabilities

(1970’s)

EDP, 1960’s

The Growing Capabilities of MIS in the mainstream

business

Structure Structure + Content Collection Content Single RecordTable Structure,

as in:CUSTOMER table includes these columns: ….

File Structure, as in:CUSTOMER file

includes these fields: ….Record Structure,

as in:CUSTOMER recordincludes these fields: ….

Record,as in:CUSTOMER record

Record,as in:CUSTOMER record

Record,as in:CUSTOMER record

Record,as in:Johm Smith's record

File,as in:CUSTOMER file

File,as in:CUSTOMER file

File,as in:CUSTOMER file

Table,as in:CUSTOMER table

Table,as in:CUSTOMER table

Table,as in:CUSTOMER table

Data,as in:CUSTOMER data

Data,as in:Johm Smith's data

Relation,as In: CUTOMER relation

Relation,as In: CUTOMER relation

Relation,as In: CUTOMER relation

Record Occurance,as in:Johm Smith's record

Row,as in: print all the rows of

customers in CA,Tuple,

as in: CA-customer tuples in CUSROMER relation

Potentially confusing synonyms used by IS / IT professionals for files and data content.

The context usually shows the intent and meaning. if in doubt,

always ask.

The context usually shows the intent and ,meaning. if in doubt

always ask.

Order # 2032

Date: 17/2/2004

Ship & Bill to: Adams Inc. 1017 Elm St Anaheim Bavaria Germany NW3-432

Sales Person: Name: Mary ID: 2

Or_Item# Part # Description Qty Price Extended_Price1 p001 Red Marker 100 $2.00 $200.002 p003 Black Marker 120 $1.00 $120.00

Subtotal: $320.00Shipping & Handling: $12

Total: $332.00

Order # 3054

Date: 1/5/2004

Ship & Bill to: Broad Corp. 2043 Lincoln Cerritos CA USA 93456

Sales Person: Name: John ID: 1

Or_Item# Part # Description Qty Price Extended_Price

1 p002 Blue Marker 800 $1.50 $1,200.00

Subtotal: $1,200.00Shipping & Handling: $16

Total: $1,216.00

Order # 3154

Date: 2/4/2005

Sales Person: Name: John ID: 1Or_Item# Part # Description Qty Price Extended_Price

1 p002 Blue Marker 150 $1.50 $225.00

2 p003 Black Marker 400 $1.75 $700.00Subtotal: 925

Shipping & Handling: $16

Total: 941

Order # 3257

Date: 4/7/2005

Sales Person: Name: Mary ID: 2

Or_Item# Part # Description Qty Price Extended_Price1 p001 Red Marker 200 $2.00 $400.00

Subtotal: $400.00Shipping & Handling: $21

Total: $421.00

Order # 3376

Date: 6/8/2005

Sales Person: Name: John ID: 1Or_Item# Part # Description Qty Price Extended_Price

1 p001 Red Marker 150 $2.50 $375.002 p002 Blue Marker 200 $2.00 $400.00

Subtotal: $775.00Shipping & Handling: $25

Total: $800

National Marker Inc. 2316 Washington Blv. Lincoln, GA 9x234Phone: 1-888- 123 444 Fax: 1-888- 123 555

National Marker Inc. 2316 Washington Blv. Lincoln, GX, 9x234, USAPhone: 1-888- 123 444 Fax: 1-888- 123 555

Order # 2032

Date: 17/2/2004

Sales Person: Name: Mary ID: 2

Or_Item# Part # Description Qty Price Extended_Price1 p001 Red Marker 100 $2.00 $200.002 p003 Black Marker 120 $1.00 $120.00

Subtotal: $320.00Shipping & Handling: $12

Total: $332.00

Order # 3054

Date: 1/5/2004

Sales Person: Name: John ID: 1

Or_Item# Part # Description Qty Price Extended_Price

1 p002 Blue Marker 800 $1.50 $1,200.00

Subtotal: $1,200.00Shipping & Handling: $16

Order # 3154

Date: 2/4/2005

Ship & Bill to: Broad Corp. 2043 Lincoln Cerritos CA USA 93456

Sales Person: Name: John ID: 1Or_Item# Part # Description Qty Price Extended_Price

1 p002 Blue Marker 150 $1.50 $225.00

2 p003 Black Marker 400 $1.75 $700.00Subtotal: 925

Shipping & Handling: $16

Total: 941

Order # 3257

Date: 4/7/2005

Sales Person: Name: Mary ID: 2

Or_Item# Part # Description Qty Price Extended_Price1 p001 Red Marker 200 $2.00 $400.00

Subtotal: $400.00Shipping & Handling: $21

Total: $421.00

Order # 3376

Date: 6/8/2005

Sales Person: Name: John ID: 1Or_Item# Part # Description Qty Price Extended_Price

1 p001 Red Marker 150 $2.50 $375.002 p002 Blue Marker 200 $2.00 $400.00

Subtotal: $775.00Shipping & Handling: $25

Total: $800

National Marker Inc. 2316 Washington Blv. Lincoln, GX, 9x234, USAPhone: 1-888- 123 444 Fax: 1-888- 123 555

Order # 2032

Date: 17/2/2004

Sales Person: Name: Mary ID: 2

Or_Item# Part # Description Qty Price Extended_Price1 p001 Red Marker 100 $2.00 $200.002 p003 Black Marker 120 $1.00 $120.00

Subtotal: $320.00Shipping & Handling: $12

Total: $332.00

Order # 3054

Date: 1/5/2004

Sales Person: Name: John ID: 1

Or_Item# Part # Description Qty Price Extended_Price

1 p002 Blue Marker 800 $1.50 $1,200.00

Subtotal: $1,200.00Shipping & Handling: $16

Order # 3154

Date: 2/4/2005

Sales Person: Name: John ID: 1Or_Item# Part # Description Qty Price Extended_Price

1 p002 Blue Marker 150 $1.50 $225.00

2 p003 Black Marker 400 $1.75 $700.00Subtotal: 925

Shipping & Handling: $16

Total: 941

Order # 3257

Date: 4/7/2005

Ship & Bill to: Adams Inc. 1017 Elm St Anaheim Bavaria Germany NW3-432

Sales Person: Name: Mary ID: 2

Or_Item# Part # Description Qty Price Extended_Price1 p001 Red Marker 200 $2.00 $400.00

Subtotal: $400.00Shipping & Handling: $21

Total: $421.00

Order # 3376

Date: 6/8/2005

Sales Person: Name: John ID: 1Or_Item# Part # Description Qty Price Extended_Price

1 p001 Red Marker 150 $2.50 $375.002 p002 Blue Marker 200 $2.00 $400.00

Subtotal: $775.00Shipping & Handling: $25

Total: $800

National Marker Inc. 2316 Washington Blv. Lincoln, GX, 9x234, USAPhone: 1-888- 123 444 Fax: 1-888- 123 555

Order # 2032

Date: 17/2/2004

Sales Person: Name: Mary ID: 2

Or_Item# Part # Description Qty Price Extended_Price1 p001 Red Marker 100 $2.00 $200.002 p003 Black Marker 120 $1.00 $120.00

Subtotal: $320.00Shipping & Handling: $12

Total: $332.00

Order # 3054

Date: 1/5/2004

Sales Person: Name: John ID: 1

Or_Item# Part # Description Qty Price Extended_Price

1 p002 Blue Marker 800 $1.50 $1,200.00

Subtotal: $1,200.00Shipping & Handling: $16

Order # 3154

Date: 2/4/2005

Sales Person: Name: John ID: 1Or_Item# Part # Description Qty Price Extended_Price

1 p002 Blue Marker 150 $1.50 $225.00

2 p003 Black Marker 400 $1.75 $700.00Subtotal: 925

Shipping & Handling: $16

Total: 941

Order # 3257

Date: 4/7/2005

Sales Person: Name: Mary ID: 2

Or_Item# Part # Description Qty Price Extended_Price1 p001 Red Marker 200 $2.00 $400.00

Subtotal: $400.00Shipping & Handling: $21

Total: $421.00

Order # 3376

Date: 6/8/2005

Ship & Bill to: Adams Inc. 1017 Elm St Anaheim Bavaria Germany NW3-432

Sales Person: Name: John ID: 1Or_Item# Part # Description Qty Price Extended_Price

1 p001 Red Marker 150 $2.50 $375.002 p002 Blue Marker 200 $2.00 $400.00

Subtotal: $775.00Shipping & Handling: $25

Total: $800

National Marker Inc. 2316 Washington Blv. Lincoln, GX, 9x234, USAPhone: 1-888- 123 444 Fax: 1-888- 123 555

John AAA

Part #

Order # Or_Item#

Cust-ID

C-Name C-Stree# C-CityC-

StateC-

CountryC-Zip

Order #

Order Date

Sub-Total

SH&H

TotalSales

PersonID

S_NameOr_Item#

Qty PriceExtended

PricePart # Description

1001 Adams Inc. 1017 Elm St AnaheimBavaria Germany NW3-432 2032 17/2/2004 $320 $12 $332 2 Mary 1 100 $2.00 $200.00 p001 Red Marker

1001 Adams Inc. 1017 Elm St AnaheimBavaria Germany NW3-432 2032 17/2/2004 $320 $12 $332 2 Mary 2 120 $1.00 $120.00 p003 Black Marker

1002 Broad Corp. 2043 Lincoln Cerritos CA USA 93456 3054 1/5/2004 $1,200 $16 $1,216 1 John 1 800 $1.50 $1,200.00 p002 Blue Marker

1002 Broad Corp. 2043 Lincoln Cerritos CA USA 93456 3154 2/4/2005 $925 $11 $941 2 Mary 1 150 $1.50 $225.00 p002 Blue Marker

1002 Broad Corp. 2043 Lincoln Cerritos CA USA 93456 3154 2/4/2005 $925 $11 $941 2 Mary 2 400 $1.50 $600.00 p003 Black Marker

1001 Adams Inc. 1017 Elm St AnaheimBavaria Germany NW3-432 3257 4/7/2005 $400 $21 $421 2 Mary 1 200 $2.00 $400.00 p001 Red Marker

1001 Adams Inc. 1017 Elm St AnaheimBavaria Germany NW3-432 3376 6/8/2005 $775 $25 $800 1 John 1 150 $2.50 $375.00 p001 Red Marker

1001 Adams Inc. 1017 Elm St AnaheimBavaria Germany NW3-432 3376 6/8/2005 $775 $25 $800 1 John 2 200 $2.00 $400.00 p002 Blue Marker

Find the duplicated data

SalesPerson

The borders of duplicated data shows where you have to split the data into separate files

Order Data Order-Item Data Part DataCustomer