SlideShare a Scribd company logo
1 of 20
Common Field Types Primary Key Descriptive Fields Foreign Key
Referential Integrity CUSTOMER ( Customer ID , LastName, FirstName, Address, City, State, Zipcode) ORDER ( Order ID , Customer ID, OrderDate)
Field Sequencing WRONG RIGHT
Fixed Length Record with Provision for Multiple Vendors Potentially Wasted Storage Space
Variable Length Record with Provision for Multiple Vendors Indicator for number  of Vendor Fields
Blocking Factor Record 1 Sector Without Blocking Unused Storage Space Record 5 Record 4 Record 3 Record 2 Record 1 512 bytes Sector With Blocking
Record Spanning Sector 1 Unused Storage Space 512 bytes Sector 2 Record 5 Record 4 Record 3 Record 2 Record 1 Record 6 Part 1 Record 10 Record 9 Record 8 Record 7 Record 6 Part 2 Record 11 Part 1
Sequential File Organization Physical Record Position in File Record Primary Key
Indexed File Organization 1500 2501 3317 500 1000 1500 1800 2200 2501 2873 3161 3317 127 275 500 583 729 1000 1179 1320 1500 661 703 717 719 722 723 726 727 729 Master Index Cylinder Index Track Index Track 2 Track 1 Track 3
Division Remainder Hashing Algorithm The general computation for determining a relative storage address slot for a particular record is: Relative slot address = 1 + Remainder of  Primary Key Value  _ Total Number of Reserved Address Slots Assume a PRODUCT file with 4, 500 unique records. The storage allocation for this file is equal to the number of records, therefore 4,500 storage slots will be needed on the media. The primary key for records in this file is the PRODUCT_ID field. The location for PRODUCT_ID 734171 can be computed as follows: Relative slot address = 1 + Remainder of  734171  _   = 1 + 671 = 672 4500
Network Database Architecture CUSTOMER FILE ORDER FILE ORDERED_ITEM FILE PRODUCT FILE
Hierarchical Database Architecture STUDENT FILE ACADEMIC ACTIVITY FILE FINANCIAL ACTIVITY FILE CURRENT COURSE FILE
Relational Database Architecture RELATION  A ( Primary Key , Attribute 1, Attribute 2, Attribute 3, …) RELATION B ( Primary Key ,  Foreign Key , Attribute 2, Attribute 3, …)
Object-Oriented Database Architecture Methods Object Class A Object Attributes Methods Object Class C Object Attributes Object Class B Object Attributes Methods
Common Data Type Definitions Data Type Description CHAR( n ) Alphanumeric character array with a maximum length of  n. DECIMAL( m,n ) Signed numerical data with a total number of digits,  m , and  n  number of digits to the right of the decimal point. VARCHAR Alphanumeric character array of variable length. INTEGER Signed whole number typically up to 11 digits in length SMALLINT Signed whole number up to 5 or 6 digits in length. DATE Date and time including appropriate validity checks (i.e. 4-31 not allowed). NUMBER Real number FLOAT( m,n ) Numerical data represented in scientific notation with a total number of digits,  m , and  n  number of digits to the right of the decimal point. LOGICAL Binary data (i.e. TRUE/FALSE, YES/NO) LONG Variable length alphanumeric character array up to 2Gb LONGRAW Binary large object (BLOB) – no assumptions are made about format or content.
Common Field-Level Data Specifications Field Specification Description Field Name Formal name for the field that uniquely identifies it from all others. Data Type Data type associated with this field. Units The unit of measure associated with this field (if applicable). Maintenance Rules for update, change, or deletion once data is entered (i.e. accounting transaction data cannot be changed once entered). Missing Data Procedure for handling missing data during multiple record processing (i.e. IGNORE, USE AVERAGE OF OTHER RECORDS). Check Digit Algorithm for calculate and verifying any check digits used in this field. Formula Algorithm for computing the value of this field (if calculated). Coding Coding conventions or acceptable abbreviations (i.e. 2-character abbreviation for State). Domain/Range Specification of range limits or default values for the field. Referential Integrity Specification for any referential integrity constraints for the field. Data Owner Identification of the responsible party for identifying the source and meaning of data contained in this field.
Common Domain Controls Domain Control Description Default Value Automatic entry of a value commonly found for this field unless other data is entered. Range Control Imposition of acceptable or relevant limits on either alphanumeric or numerical data. Picture Control Imposition of a specific pattern for the data being entered (i.e. DATE= mm/dd/yy or dd-mm-yyyy) Null Value Control Specification of whether a value in a particular field is required or optional.
Examples of Referential Integrity Deletion Rules Deletion Rule Explanation NO RESTRICTION Any record in the file may be deleted without regard to any other record or file. DELETE:CASCADE A deletion of a record must be automatically followed by the deletion of any matching records in any related files. DELETE:RESTRICT A deletion of a record in a table must be disallowed until any matching records are deleted from any related files. DELETE:SET NULL A deletion of a record must be automatically followed by setting any matching keys in a related file to NULL.
Common File Types File Type Description   Master File   Contains records related to business data that is relatively permanent. Once a record is entered, it tends to remain indefinitely. Data values may change (i.e. CUSTOMERS, PRODUCTS, INVOICES, SUPPLIERS).     Transaction File   Contains records that describe business events which can occur on a day-to-day basis. Data tends to have a limited useful life and are usually moved to an archival file after a predetermined period.     Document File   Contains stored copies of historical data in document form such that the overhead associated with recreated or reprocessing the document is eliminated.     Table Look-Up File   Contains reference data used to validate field values and to maintain consistency throughout the database (INCOME TAX TABLES, POSTAL CODE TABLES).     Audit File Contains records of updates to other files in the database in case production files are damaged and require reconstruction. Data can be used with records in archival files to recover or restore damaged files or lost data.     Archive File   Contains records that have been deleted from active transaction files but require retention for an indefinite period.     Work File   Contains records stored temporarily or records containing intermediate results in a calculation process. Work files are usually created when needed and deleted upon completion of the task.  
Volumetric Analysis     FIELD   SIZE (bytes) Invoice_ID 7 Invoice_Date   8 Customer_ID   6 Product_ID 9 Quantity 3 Unit_Price 6 Salesman_ID     4    Record Size   43 Record Overhead 25% Total Record Size 53.75   Total Annual Record Volume   67,000 Expected Table Volume   3,601,250   Expected Annual Growth Rate   16% Projected Table Volume – 4 years   5,621,176  

More Related Content

What's hot

Revision booklet 6957 2016
Revision booklet 6957 2016Revision booklet 6957 2016
Revision booklet 6957 2016jom1987
 
Data indexing presentation
Data indexing presentationData indexing presentation
Data indexing presentationgmbmanikandan
 
File organization 1
File organization 1File organization 1
File organization 1Rupali Rana
 
Redis project : Relational Databases to Key-Value systems
Redis project : Relational Databases to Key-Value systemsRedis project : Relational Databases to Key-Value systems
Redis project : Relational Databases to Key-Value systemsLamprini Koutsokera
 
Chapter 02 abap dictionary objects1
Chapter 02 abap dictionary objects1Chapter 02 abap dictionary objects1
Chapter 02 abap dictionary objects1Kranthi Kumar
 
File Structures(Part 2)
File Structures(Part 2)File Structures(Part 2)
File Structures(Part 2)SURBHI SAROHA
 
12. Indexing and Hashing in DBMS
12. Indexing and Hashing in DBMS12. Indexing and Hashing in DBMS
12. Indexing and Hashing in DBMSkoolkampus
 
Data Warehousing and Bitmap Indexes - More than just some bits
Data Warehousing and Bitmap Indexes  - More than just some bitsData Warehousing and Bitmap Indexes  - More than just some bits
Data Warehousing and Bitmap Indexes - More than just some bitsTrivadis
 
PubLayNet: Largest Dataset ever for Document Layout Analysis
PubLayNet: Largest Dataset ever for Document Layout AnalysisPubLayNet: Largest Dataset ever for Document Layout Analysis
PubLayNet: Largest Dataset ever for Document Layout AnalysisShivam Sood
 
Data Processing Using Quantum
Data Processing Using QuantumData Processing Using Quantum
Data Processing Using Quantumnibraspk
 
ABAP Programming Overview
ABAP Programming OverviewABAP Programming Overview
ABAP Programming Overviewsapdocs. info
 
Sap abap-data structures and internal tables
Sap abap-data structures and internal tablesSap abap-data structures and internal tables
Sap abap-data structures and internal tablesMustafa Nadim
 
Internal tables
Internal tables Internal tables
Internal tables Jibu Jose
 
Internal tables
Internal tablesInternal tables
Internal tableswaseem27
 

What's hot (20)

CIS 245 Final Review
CIS 245 Final ReviewCIS 245 Final Review
CIS 245 Final Review
 
indexing and hashing
indexing and hashingindexing and hashing
indexing and hashing
 
Chap13 scr
Chap13 scrChap13 scr
Chap13 scr
 
Revision booklet 6957 2016
Revision booklet 6957 2016Revision booklet 6957 2016
Revision booklet 6957 2016
 
Data indexing presentation
Data indexing presentationData indexing presentation
Data indexing presentation
 
File organization 1
File organization 1File organization 1
File organization 1
 
Redis project : Relational Databases to Key-Value systems
Redis project : Relational Databases to Key-Value systemsRedis project : Relational Databases to Key-Value systems
Redis project : Relational Databases to Key-Value systems
 
Chapter 02 abap dictionary objects1
Chapter 02 abap dictionary objects1Chapter 02 abap dictionary objects1
Chapter 02 abap dictionary objects1
 
Isam
IsamIsam
Isam
 
File Structures(Part 2)
File Structures(Part 2)File Structures(Part 2)
File Structures(Part 2)
 
12. Indexing and Hashing in DBMS
12. Indexing and Hashing in DBMS12. Indexing and Hashing in DBMS
12. Indexing and Hashing in DBMS
 
Sap abap
Sap abapSap abap
Sap abap
 
Data Warehousing and Bitmap Indexes - More than just some bits
Data Warehousing and Bitmap Indexes  - More than just some bitsData Warehousing and Bitmap Indexes  - More than just some bits
Data Warehousing and Bitmap Indexes - More than just some bits
 
PubLayNet: Largest Dataset ever for Document Layout Analysis
PubLayNet: Largest Dataset ever for Document Layout AnalysisPubLayNet: Largest Dataset ever for Document Layout Analysis
PubLayNet: Largest Dataset ever for Document Layout Analysis
 
Data Processing Using Quantum
Data Processing Using QuantumData Processing Using Quantum
Data Processing Using Quantum
 
ABAP Programming Overview
ABAP Programming OverviewABAP Programming Overview
ABAP Programming Overview
 
Sap abap-data structures and internal tables
Sap abap-data structures and internal tablesSap abap-data structures and internal tables
Sap abap-data structures and internal tables
 
Internal tables
Internal tables Internal tables
Internal tables
 
Memory management
Memory managementMemory management
Memory management
 
Internal tables
Internal tablesInternal tables
Internal tables
 

Viewers also liked (7)

Ch13
Ch13Ch13
Ch13
 
Business IT Alignment Heuristic
Business IT Alignment HeuristicBusiness IT Alignment Heuristic
Business IT Alignment Heuristic
 
BIS03 Data Modelling - I
BIS03 Data Modelling - IBIS03 Data Modelling - I
BIS03 Data Modelling - I
 
BIS06 Physical Database Models
BIS06 Physical Database ModelsBIS06 Physical Database Models
BIS06 Physical Database Models
 
Togaf 9 template business footprint diagram
Togaf 9 template   business footprint diagramTogaf 9 template   business footprint diagram
Togaf 9 template business footprint diagram
 
Togaf 9 template business services and information diagram
Togaf 9 template   business services and information diagramTogaf 9 template   business services and information diagram
Togaf 9 template business services and information diagram
 
D I T211 Chapter 3
D I T211    Chapter 3D I T211    Chapter 3
D I T211 Chapter 3
 

Similar to Ch10

Lecture10 ie321 dr_atifshahzad
Lecture10 ie321 dr_atifshahzadLecture10 ie321 dr_atifshahzad
Lecture10 ie321 dr_atifshahzadAtif Shahzad
 
05. Physical Data Specification Template
05. Physical Data Specification Template05. Physical Data Specification Template
05. Physical Data Specification TemplateAlan D. Duncan
 
Systems Analyst and Design - Data Dictionary
Systems Analyst and Design -  Data DictionarySystems Analyst and Design -  Data Dictionary
Systems Analyst and Design - Data DictionaryKimberly Coquilla
 
New fordevelopersinsql server2008
New fordevelopersinsql server2008New fordevelopersinsql server2008
New fordevelopersinsql server2008Aaron Shilo
 
It 302 computerized accounting (week 2) - sharifah
It 302   computerized accounting (week 2) - sharifahIt 302   computerized accounting (week 2) - sharifah
It 302 computerized accounting (week 2) - sharifahalish sha
 
Getting Strated with Amazon Dynamo DB (Jim Scharf) - AWS DB Day
Getting Strated with Amazon Dynamo DB (Jim Scharf) - AWS DB DayGetting Strated with Amazon Dynamo DB (Jim Scharf) - AWS DB Day
Getting Strated with Amazon Dynamo DB (Jim Scharf) - AWS DB DayAmazon Web Services Korea
 
MIS5101 WK10 Outcome Measures
MIS5101 WK10 Outcome MeasuresMIS5101 WK10 Outcome Measures
MIS5101 WK10 Outcome MeasuresSteven Johnson
 
Chapter 6 (information system) answer
Chapter 6 (information system) answerChapter 6 (information system) answer
Chapter 6 (information system) answersmkengkilili2011
 
初探AWS 平台上的 NoSQL 雲端資料庫服務
初探AWS 平台上的 NoSQL 雲端資料庫服務初探AWS 平台上的 NoSQL 雲端資料庫服務
初探AWS 平台上的 NoSQL 雲端資料庫服務Amazon Web Services
 

Similar to Ch10 (20)

New
NewNew
New
 
D.dsgn + dbms
D.dsgn + dbmsD.dsgn + dbms
D.dsgn + dbms
 
Final
FinalFinal
Final
 
Lecture10 ie321 dr_atifshahzad
Lecture10 ie321 dr_atifshahzadLecture10 ie321 dr_atifshahzad
Lecture10 ie321 dr_atifshahzad
 
Databases By ZAK
Databases By ZAKDatabases By ZAK
Databases By ZAK
 
05. Physical Data Specification Template
05. Physical Data Specification Template05. Physical Data Specification Template
05. Physical Data Specification Template
 
Physical Design and Development
Physical Design and DevelopmentPhysical Design and Development
Physical Design and Development
 
Systems Analyst and Design - Data Dictionary
Systems Analyst and Design -  Data DictionarySystems Analyst and Design -  Data Dictionary
Systems Analyst and Design - Data Dictionary
 
Database Basics
Database BasicsDatabase Basics
Database Basics
 
New fordevelopersinsql server2008
New fordevelopersinsql server2008New fordevelopersinsql server2008
New fordevelopersinsql server2008
 
It 302 computerized accounting (week 2) - sharifah
It 302   computerized accounting (week 2) - sharifahIt 302   computerized accounting (week 2) - sharifah
It 302 computerized accounting (week 2) - sharifah
 
Abap faq
Abap faqAbap faq
Abap faq
 
Lecture 3 note.pptx
Lecture 3 note.pptxLecture 3 note.pptx
Lecture 3 note.pptx
 
Chapter 1
Chapter 1Chapter 1
Chapter 1
 
Getting Strated with Amazon Dynamo DB (Jim Scharf) - AWS DB Day
Getting Strated with Amazon Dynamo DB (Jim Scharf) - AWS DB DayGetting Strated with Amazon Dynamo DB (Jim Scharf) - AWS DB Day
Getting Strated with Amazon Dynamo DB (Jim Scharf) - AWS DB Day
 
Ardbms
ArdbmsArdbms
Ardbms
 
MIS5101 WK10 Outcome Measures
MIS5101 WK10 Outcome MeasuresMIS5101 WK10 Outcome Measures
MIS5101 WK10 Outcome Measures
 
Chapter 6 (information system) answer
Chapter 6 (information system) answerChapter 6 (information system) answer
Chapter 6 (information system) answer
 
Description of data
Description of dataDescription of data
Description of data
 
初探AWS 平台上的 NoSQL 雲端資料庫服務
初探AWS 平台上的 NoSQL 雲端資料庫服務初探AWS 平台上的 NoSQL 雲端資料庫服務
初探AWS 平台上的 NoSQL 雲端資料庫服務
 

More from Kodok Ngorex (20)

Business IT Alignment Heuristic
Business IT Alignment HeuristicBusiness IT Alignment Heuristic
Business IT Alignment Heuristic
 
Optimize your licenses
Optimize your licensesOptimize your licenses
Optimize your licenses
 
I go8 usermanual_eng
I go8 usermanual_engI go8 usermanual_eng
I go8 usermanual_eng
 
Finder m520 user_manual_id
Finder m520 user_manual_idFinder m520 user_manual_id
Finder m520 user_manual_id
 
Gis Tutorial Purnawan
Gis Tutorial PurnawanGis Tutorial Purnawan
Gis Tutorial Purnawan
 
Simplicity in web design
Simplicity in web designSimplicity in web design
Simplicity in web design
 
Ch14
Ch14Ch14
Ch14
 
Ch12
Ch12Ch12
Ch12
 
Ch11
Ch11Ch11
Ch11
 
Ch09
Ch09Ch09
Ch09
 
Ch08
Ch08Ch08
Ch08
 
Ch06
Ch06Ch06
Ch06
 
Ch07
Ch07Ch07
Ch07
 
Ch04
Ch04Ch04
Ch04
 
Ch05
Ch05Ch05
Ch05
 
Ch02
Ch02Ch02
Ch02
 
Ch03
Ch03Ch03
Ch03
 
Ch01
Ch01Ch01
Ch01
 
Lecture Welcome Decision Support Systems
Lecture Welcome Decision Support SystemsLecture Welcome Decision Support Systems
Lecture Welcome Decision Support Systems
 
Lecture Juniper
Lecture JuniperLecture Juniper
Lecture Juniper
 

Recently uploaded

MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsNanddeep Nachan
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingEdi Saputra
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024The Digital Insurer
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyKhushali Kathiriya
 
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUKSpring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUKJago de Vreede
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoffsammart93
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businesspanagenda
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Orbitshub
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FMESafe Software
 
AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024The Digital Insurer
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...Zilliz
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobeapidays
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...apidays
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Zilliz
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...apidays
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAndrey Devyatkin
 

Recently uploaded (20)

MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUKSpring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 

Ch10

  • 1. Common Field Types Primary Key Descriptive Fields Foreign Key
  • 2. Referential Integrity CUSTOMER ( Customer ID , LastName, FirstName, Address, City, State, Zipcode) ORDER ( Order ID , Customer ID, OrderDate)
  • 4. Fixed Length Record with Provision for Multiple Vendors Potentially Wasted Storage Space
  • 5. Variable Length Record with Provision for Multiple Vendors Indicator for number of Vendor Fields
  • 6. Blocking Factor Record 1 Sector Without Blocking Unused Storage Space Record 5 Record 4 Record 3 Record 2 Record 1 512 bytes Sector With Blocking
  • 7. Record Spanning Sector 1 Unused Storage Space 512 bytes Sector 2 Record 5 Record 4 Record 3 Record 2 Record 1 Record 6 Part 1 Record 10 Record 9 Record 8 Record 7 Record 6 Part 2 Record 11 Part 1
  • 8. Sequential File Organization Physical Record Position in File Record Primary Key
  • 9. Indexed File Organization 1500 2501 3317 500 1000 1500 1800 2200 2501 2873 3161 3317 127 275 500 583 729 1000 1179 1320 1500 661 703 717 719 722 723 726 727 729 Master Index Cylinder Index Track Index Track 2 Track 1 Track 3
  • 10. Division Remainder Hashing Algorithm The general computation for determining a relative storage address slot for a particular record is: Relative slot address = 1 + Remainder of Primary Key Value _ Total Number of Reserved Address Slots Assume a PRODUCT file with 4, 500 unique records. The storage allocation for this file is equal to the number of records, therefore 4,500 storage slots will be needed on the media. The primary key for records in this file is the PRODUCT_ID field. The location for PRODUCT_ID 734171 can be computed as follows: Relative slot address = 1 + Remainder of 734171 _ = 1 + 671 = 672 4500
  • 11. Network Database Architecture CUSTOMER FILE ORDER FILE ORDERED_ITEM FILE PRODUCT FILE
  • 12. Hierarchical Database Architecture STUDENT FILE ACADEMIC ACTIVITY FILE FINANCIAL ACTIVITY FILE CURRENT COURSE FILE
  • 13. Relational Database Architecture RELATION A ( Primary Key , Attribute 1, Attribute 2, Attribute 3, …) RELATION B ( Primary Key , Foreign Key , Attribute 2, Attribute 3, …)
  • 14. Object-Oriented Database Architecture Methods Object Class A Object Attributes Methods Object Class C Object Attributes Object Class B Object Attributes Methods
  • 15. Common Data Type Definitions Data Type Description CHAR( n ) Alphanumeric character array with a maximum length of n. DECIMAL( m,n ) Signed numerical data with a total number of digits, m , and n number of digits to the right of the decimal point. VARCHAR Alphanumeric character array of variable length. INTEGER Signed whole number typically up to 11 digits in length SMALLINT Signed whole number up to 5 or 6 digits in length. DATE Date and time including appropriate validity checks (i.e. 4-31 not allowed). NUMBER Real number FLOAT( m,n ) Numerical data represented in scientific notation with a total number of digits, m , and n number of digits to the right of the decimal point. LOGICAL Binary data (i.e. TRUE/FALSE, YES/NO) LONG Variable length alphanumeric character array up to 2Gb LONGRAW Binary large object (BLOB) – no assumptions are made about format or content.
  • 16. Common Field-Level Data Specifications Field Specification Description Field Name Formal name for the field that uniquely identifies it from all others. Data Type Data type associated with this field. Units The unit of measure associated with this field (if applicable). Maintenance Rules for update, change, or deletion once data is entered (i.e. accounting transaction data cannot be changed once entered). Missing Data Procedure for handling missing data during multiple record processing (i.e. IGNORE, USE AVERAGE OF OTHER RECORDS). Check Digit Algorithm for calculate and verifying any check digits used in this field. Formula Algorithm for computing the value of this field (if calculated). Coding Coding conventions or acceptable abbreviations (i.e. 2-character abbreviation for State). Domain/Range Specification of range limits or default values for the field. Referential Integrity Specification for any referential integrity constraints for the field. Data Owner Identification of the responsible party for identifying the source and meaning of data contained in this field.
  • 17. Common Domain Controls Domain Control Description Default Value Automatic entry of a value commonly found for this field unless other data is entered. Range Control Imposition of acceptable or relevant limits on either alphanumeric or numerical data. Picture Control Imposition of a specific pattern for the data being entered (i.e. DATE= mm/dd/yy or dd-mm-yyyy) Null Value Control Specification of whether a value in a particular field is required or optional.
  • 18. Examples of Referential Integrity Deletion Rules Deletion Rule Explanation NO RESTRICTION Any record in the file may be deleted without regard to any other record or file. DELETE:CASCADE A deletion of a record must be automatically followed by the deletion of any matching records in any related files. DELETE:RESTRICT A deletion of a record in a table must be disallowed until any matching records are deleted from any related files. DELETE:SET NULL A deletion of a record must be automatically followed by setting any matching keys in a related file to NULL.
  • 19. Common File Types File Type Description   Master File   Contains records related to business data that is relatively permanent. Once a record is entered, it tends to remain indefinitely. Data values may change (i.e. CUSTOMERS, PRODUCTS, INVOICES, SUPPLIERS).     Transaction File   Contains records that describe business events which can occur on a day-to-day basis. Data tends to have a limited useful life and are usually moved to an archival file after a predetermined period.     Document File   Contains stored copies of historical data in document form such that the overhead associated with recreated or reprocessing the document is eliminated.     Table Look-Up File   Contains reference data used to validate field values and to maintain consistency throughout the database (INCOME TAX TABLES, POSTAL CODE TABLES).     Audit File Contains records of updates to other files in the database in case production files are damaged and require reconstruction. Data can be used with records in archival files to recover or restore damaged files or lost data.     Archive File   Contains records that have been deleted from active transaction files but require retention for an indefinite period.     Work File   Contains records stored temporarily or records containing intermediate results in a calculation process. Work files are usually created when needed and deleted upon completion of the task.  
  • 20. Volumetric Analysis     FIELD SIZE (bytes) Invoice_ID 7 Invoice_Date 8 Customer_ID 6 Product_ID 9 Quantity 3 Unit_Price 6 Salesman_ID 4   Record Size 43 Record Overhead 25% Total Record Size 53.75   Total Annual Record Volume 67,000 Expected Table Volume 3,601,250   Expected Annual Growth Rate 16% Projected Table Volume – 4 years 5,621,176