Download free for 30 days
Sign in
Upload
Language (EN)
Support
Business
Mobile
Social Media
Marketing
Technology
Art & Photos
Career
Design
Education
Presentations & Public Speaking
Government & Nonprofit
Healthcare
Internet
Law
Leadership & Management
Automotive
Engineering
Software
Recruiting & HR
Retail
Sales
Services
Science
Small Business & Entrepreneurship
Food
Environment
Economy & Finance
Data & Analytics
Investor Relations
Sports
Spiritual
News & Politics
Travel
Self Improvement
Real Estate
Entertainment & Humor
Health & Medicine
Devices & Hardware
Lifestyle
Change Language
Language
English
Español
Português
Français
Deutsche
Cancel
Save
EN
Uploaded by
OcheriCyril2
PPT, PDF
25 views
Network Model for Biomedical Engineering Students
Network Model for Engineering Students
Engineering
◦
Related topics:
Biomedical Engineering
•
Read more
0
Save
Share
Embed
Embed presentation
Download
Download to read offline
1
/ 59
2
/ 59
3
/ 59
4
/ 59
5
/ 59
6
/ 59
7
/ 59
8
/ 59
9
/ 59
10
/ 59
11
/ 59
12
/ 59
13
/ 59
14
/ 59
15
/ 59
16
/ 59
17
/ 59
18
/ 59
19
/ 59
20
/ 59
21
/ 59
22
/ 59
23
/ 59
24
/ 59
25
/ 59
26
/ 59
27
/ 59
28
/ 59
29
/ 59
30
/ 59
31
/ 59
32
/ 59
33
/ 59
34
/ 59
35
/ 59
36
/ 59
37
/ 59
38
/ 59
39
/ 59
40
/ 59
41
/ 59
42
/ 59
43
/ 59
44
/ 59
45
/ 59
46
/ 59
47
/ 59
48
/ 59
49
/ 59
50
/ 59
51
/ 59
52
/ 59
53
/ 59
54
/ 59
55
/ 59
56
/ 59
57
/ 59
58
/ 59
59
/ 59
More Related Content
PPT
Network model.ppt
by
ManoRanjani30
PPT
App a
by
Welly Dian Astika
PPT
App A
by
cpu3mhz
PPT
App A
by
guest5c197d5
PPTX
Lesson 2 network database system
by
GiO Friginal
PPT
VNSISPL_DBMS_Concepts_appA
by
sriprasoon
PPT
Relational Model
by
alifmuhammad35
PPT
This is an introduction to Database Relational Model
by
ssuserb53446
Network model.ppt
by
ManoRanjani30
App a
by
Welly Dian Astika
App A
by
cpu3mhz
App A
by
guest5c197d5
Lesson 2 network database system
by
GiO Friginal
VNSISPL_DBMS_Concepts_appA
by
sriprasoon
Relational Model
by
alifmuhammad35
This is an introduction to Database Relational Model
by
ssuserb53446
Similar to Network Model for Biomedical Engineering Students
PPT
check 11
by
Architha Ch
PPT
03 Relational Databases.ppt
by
Amitpatil226799
PPT
Relational database concept
by
fikirabc
PPT
chxnxx introduction to relational model.ppt
by
ratnababum
PPT
introduction to database systems ch2.ppt
by
ssuserb53446
PPT
Introduction to Database System Concepts
by
SDivya19
PPT
ch2.ppt
by
MsYTresaCommerce
PPT
jhbuhbhujnhyubhbuybuybuybbuhyybuybuybuybybyubyubybybb
by
WrushabhShirsat3
PPTX
Chapter 1
by
sugandhi23
PPT
DATABASE MANAGEMENT SYSTEM POLYTECHNICch2.ppt
by
dhanajimirajkar1
PPT
Presentation on DBMS systems for IT Professionals
by
Tushar Agarwal
PPT
chapter3 of DBMS includes relational algebra.ppt
by
juhishrivastava25
PDF
213954625-DataBase-Systems-5th-Edition-Silberschatz-Korth-and-Sudarshan-Chapt...
by
SriMsd1
PPT
database_database_database applications.ppt
by
santhan13
PPT
Database management system INTRODUCTION.ppt
by
YashShirude1
PPT
Database System Concepts Chapter 1: Introduction to Databases
by
ssuserb53446
PPT
sql-plsql-dbms-database-management-systen.ppt
by
ultron0000000000
PPT
relational algebra and calculus queries .ppt
by
ShahidSultan24
PDF
ch1.pdf
by
SajaShanti
PDF
Database Introduction _ Database Management System
by
nooruzzaman4
check 11
by
Architha Ch
03 Relational Databases.ppt
by
Amitpatil226799
Relational database concept
by
fikirabc
chxnxx introduction to relational model.ppt
by
ratnababum
introduction to database systems ch2.ppt
by
ssuserb53446
Introduction to Database System Concepts
by
SDivya19
ch2.ppt
by
MsYTresaCommerce
jhbuhbhujnhyubhbuybuybuybbuhyybuybuybuybybyubyubybybb
by
WrushabhShirsat3
Chapter 1
by
sugandhi23
DATABASE MANAGEMENT SYSTEM POLYTECHNICch2.ppt
by
dhanajimirajkar1
Presentation on DBMS systems for IT Professionals
by
Tushar Agarwal
chapter3 of DBMS includes relational algebra.ppt
by
juhishrivastava25
213954625-DataBase-Systems-5th-Edition-Silberschatz-Korth-and-Sudarshan-Chapt...
by
SriMsd1
database_database_database applications.ppt
by
santhan13
Database management system INTRODUCTION.ppt
by
YashShirude1
Database System Concepts Chapter 1: Introduction to Databases
by
ssuserb53446
sql-plsql-dbms-database-management-systen.ppt
by
ultron0000000000
relational algebra and calculus queries .ppt
by
ShahidSultan24
ch1.pdf
by
SajaShanti
Database Introduction _ Database Management System
by
nooruzzaman4
More from OcheriCyril2
PPTX
Lecture note on BME 421 Definitions and functions of Public Health correction...
by
OcheriCyril2
PPT
Lecture Note 4 on BME 421. -Engr. Dr. Ocheri C. ppt.ppt
by
OcheriCyril2
PPTX
Lecture Note One on BME 531- Genetic & Tissue Engineering- Engr. Dr. Ocheri ...
by
OcheriCyril2
PPT
Physical Metallurgy Lecture note 4 for Metallurgical & Materials Engineering PPT
by
OcheriCyril2
PPTX
Physical Metallurgy Lecture note 3..pptx
by
OcheriCyril2
PPTX
Physical Metallurgy Lecture note 2..pptx
by
OcheriCyril2
PPTX
Lecture note 3 on Engineering Management. MME 591 pptx.pptx
by
OcheriCyril2
PPTX
Lecture note 2 on Engineering Management. MME 591 pptx.pptx
by
OcheriCyril2
PPTX
Lecture Note 2 on BME 421 for Biomedical Engineering Students UNN.pptx
by
OcheriCyril2
PPT
Lecture Note on Forming process for MME 213 2025-2026 Academic session.ppt 2.ppt
by
OcheriCyril2
PPTX
Lecture Note Two on MME 213 Heat treatment.pptx
by
OcheriCyril2
PPTX
Lecture note 2 on BME 543 - molecular-genetics 5 Feb 2026.pptx
by
OcheriCyril2
PPT
Integer , Goal and Non linear Programming Model
by
OcheriCyril2
PPTX
Monitoring Evaluation on Health for Students
by
OcheriCyril2
PPTX
Lecture Note on Network for Engineeirng Students.pptx
by
OcheriCyril2
PPT
Lecture Note on M-E-Plans-and-Frameworks for Biomedical Engineering.ppt
by
OcheriCyril2
PPT
Lecture Note on Goal Programming and Multiple Objective LP.ppt
by
OcheriCyril2
PPTX
Lecture note on Public Health and Wellness for Biomedical students.pptx
by
OcheriCyril2
PPT
Lecture note 2 on the Understanding of Health.ppt
by
OcheriCyril2
PPT
Lecture note 2 on the Understanding of Health.ppt
by
OcheriCyril2
Lecture note on BME 421 Definitions and functions of Public Health correction...
by
OcheriCyril2
Lecture Note 4 on BME 421. -Engr. Dr. Ocheri C. ppt.ppt
by
OcheriCyril2
Lecture Note One on BME 531- Genetic & Tissue Engineering- Engr. Dr. Ocheri ...
by
OcheriCyril2
Physical Metallurgy Lecture note 4 for Metallurgical & Materials Engineering PPT
by
OcheriCyril2
Physical Metallurgy Lecture note 3..pptx
by
OcheriCyril2
Physical Metallurgy Lecture note 2..pptx
by
OcheriCyril2
Lecture note 3 on Engineering Management. MME 591 pptx.pptx
by
OcheriCyril2
Lecture note 2 on Engineering Management. MME 591 pptx.pptx
by
OcheriCyril2
Lecture Note 2 on BME 421 for Biomedical Engineering Students UNN.pptx
by
OcheriCyril2
Lecture Note on Forming process for MME 213 2025-2026 Academic session.ppt 2.ppt
by
OcheriCyril2
Lecture Note Two on MME 213 Heat treatment.pptx
by
OcheriCyril2
Lecture note 2 on BME 543 - molecular-genetics 5 Feb 2026.pptx
by
OcheriCyril2
Integer , Goal and Non linear Programming Model
by
OcheriCyril2
Monitoring Evaluation on Health for Students
by
OcheriCyril2
Lecture Note on Network for Engineeirng Students.pptx
by
OcheriCyril2
Lecture Note on M-E-Plans-and-Frameworks for Biomedical Engineering.ppt
by
OcheriCyril2
Lecture Note on Goal Programming and Multiple Objective LP.ppt
by
OcheriCyril2
Lecture note on Public Health and Wellness for Biomedical students.pptx
by
OcheriCyril2
Lecture note 2 on the Understanding of Health.ppt
by
OcheriCyril2
Lecture note 2 on the Understanding of Health.ppt
by
OcheriCyril2
Recently uploaded
PPTX
Why TPM Succeeds in Some Plants and Struggles in Others | MaintWiz
by
MaintWiz Technologies Private Limited
PDF
Unit-I Process Management 1.9 Scheduling Criteria, Scheduling Algorithms
by
Sanjay Gunjal
PPTX
Batch-1(End Semester) Student Of Shree Durga Tech. PPT.pptx
by
rashesw1122s
PDF
Role of Training and Development in Enhancing Safety Performance in Opencast ...
by
Rathin Biswas
PPT
Oracle Advanced subquery and types of subquery
by
tejaswinikulkarni549
PDF
Computer Network Lab Manual ssit -kavya r.pdf or Computer Network Lab Manual ...
by
kavya R
PDF
Enhancing optical fiber communication systems using repetition coding for imp...
by
MouweffeqBouregaa
PPTX
How Does LNG Regasification Work | INOXCVA
by
INOXCVA
PDF
Ericsson 6230 Training Module Document.pdf
by
Md Bellal Hossain
PDF
Highway Curves in Transportation Engineering.pdf
by
MahmoodKhalid11
PDF
Basics of Electronics Task by Vivaan Jo Varghese.pdf
by
Vivaan Jo Varghese
PDF
Industrial Tools Manufacturers In India : Torso Tools
by
torsotools8
PDF
Weak Incentives (WINK): The Agent Definition Layer
by
Andrei Savu
PDF
Shear Strength of Soil/Mohr Coulomb Failure Criteria-1.pdf
by
MahmoodKhalid11
PDF
PROBLEM SLOVING AND PYTHON PROGRAMMING UNIT 3.pdf
by
A R SIVANESH M.E., QIP-PG (Cyber Security)., (Ph.D)
PPTX
DIFFERENT TYPES OF SRTUCTURAL SYSTEM ANALYSIS
by
noshin231202
PDF
Applications of AI in Civil Engineering - Dr. Rohan Dasgupta
by
Rohan Dasgupta
PPTX
This Bearing Didn’t Fail Suddenly — How Vibration Data Predicts Failure Month...
by
MaintWiz Technologies Private Limited
PPTX
Fuel Injection Pump Test Bench – Precision Testing & Calibration for Diesel E...
by
Neometrix_Engineering_Pvt_Ltd
PDF
Computer Graphics Fundamentals (v0p1) - DannyJiang
by
Danny Jiang
Why TPM Succeeds in Some Plants and Struggles in Others | MaintWiz
by
MaintWiz Technologies Private Limited
Unit-I Process Management 1.9 Scheduling Criteria, Scheduling Algorithms
by
Sanjay Gunjal
Batch-1(End Semester) Student Of Shree Durga Tech. PPT.pptx
by
rashesw1122s
Role of Training and Development in Enhancing Safety Performance in Opencast ...
by
Rathin Biswas
Oracle Advanced subquery and types of subquery
by
tejaswinikulkarni549
Computer Network Lab Manual ssit -kavya r.pdf or Computer Network Lab Manual ...
by
kavya R
Enhancing optical fiber communication systems using repetition coding for imp...
by
MouweffeqBouregaa
How Does LNG Regasification Work | INOXCVA
by
INOXCVA
Ericsson 6230 Training Module Document.pdf
by
Md Bellal Hossain
Highway Curves in Transportation Engineering.pdf
by
MahmoodKhalid11
Basics of Electronics Task by Vivaan Jo Varghese.pdf
by
Vivaan Jo Varghese
Industrial Tools Manufacturers In India : Torso Tools
by
torsotools8
Weak Incentives (WINK): The Agent Definition Layer
by
Andrei Savu
Shear Strength of Soil/Mohr Coulomb Failure Criteria-1.pdf
by
MahmoodKhalid11
PROBLEM SLOVING AND PYTHON PROGRAMMING UNIT 3.pdf
by
A R SIVANESH M.E., QIP-PG (Cyber Security)., (Ph.D)
DIFFERENT TYPES OF SRTUCTURAL SYSTEM ANALYSIS
by
noshin231202
Applications of AI in Civil Engineering - Dr. Rohan Dasgupta
by
Rohan Dasgupta
This Bearing Didn’t Fail Suddenly — How Vibration Data Predicts Failure Month...
by
MaintWiz Technologies Private Limited
Fuel Injection Pump Test Bench – Precision Testing & Calibration for Diesel E...
by
Neometrix_Engineering_Pvt_Ltd
Computer Graphics Fundamentals (v0p1) - DannyJiang
by
Danny Jiang
Network Model for Biomedical Engineering Students
1.
©Silberschatz, Korth and
Sudarshan A.1 Database System Concepts, 5th Ed. Chapter A: Network Model Chapter A: Network Model Basic Concepts Data-Structure Diagrams The DBTG CODASYL Model DBTG Data-Retrieval Facility DBTG Update Facility DBTG Set-Processing Facility Mapping of Networks to Files
2.
©Silberschatz, Korth and
Sudarshan A.2 Database System Concepts, 5th Ed. Basic Concepts Basic Concepts Data are represented by collections of records. similar to an entity in the E-R model Records and their fields are represented as record type type customer = record type account = record customer-name: string; account-number: integer; customer-street: string; balance: integer; customer-city: string; end end Relationships among data are represented by links similar to a restricted (binary) form of an E-R relationship restrictions on links depend on whether the relationship is many- many, many-to-one, or one-to-one.
3.
©Silberschatz, Korth and
Sudarshan A.3 Database System Concepts, 5th Ed. Data-Structure Diagrams Data-Structure Diagrams Schema representing the design of a network database. A data-structure diagram consists of two basic components: Boxes, which correspond to record types. Lines, which correspond to links. Specifies the overall logical structure of the database.
4.
©Silberschatz, Korth and
Sudarshan A.4 Database System Concepts, 5th Ed. Data-Structure Diagrams (Cont.) Data-Structure Diagrams (Cont.) For every E-R diagram, there is a corresponding data-structure diagram.
5.
©Silberschatz, Korth and
Sudarshan A.5 Database System Concepts, 5th Ed. Data-Structure Diagrams (Cont.) Data-Structure Diagrams (Cont.) Since a link cannot contain any data value, represent an E-R relationship with attributes with a new record type and links.
6.
©Silberschatz, Korth and
Sudarshan A.6 Database System Concepts, 5th Ed. General Relationships General Relationships To represent an E-R relationship of degree 3 or higher, connect the participating record types through a new record type that is linked directly to each of the original record types. 1. Replace entity sets account, customer, and branch with record types account, customer, and branch, respectively. 2. Create a new record type Rlink (referred to as a dummy record type). 3. Create the following many-to-one links: CustRlink from Rlink record type to customer record type AcctRlnk from Rlink record type to account record type BrncRlnk from Rlink record type to branch record type
7.
©Silberschatz, Korth and
Sudarshan A.7 Database System Concepts, 5th Ed. Network Representation of Ternary Relationship Network Representation of Ternary Relationship
8.
©Silberschatz, Korth and
Sudarshan A.8 Database System Concepts, 5th Ed. The DBTG CODASYL Model The DBTG CODASYL Model All links are treated as many-to-one relationships. To model many-to-many relationships, a record type is defined to represent the relationship and two links are used.
9.
©Silberschatz, Korth and
Sudarshan A.9 Database System Concepts, 5th Ed. DBTG Sets DBTG Sets The structure consisting of two record types that are linked together is referred to in the DBTG model as a DBTG set In each DBTG set, one record type is designated as the owner, and the other is designated as the member, of the set. Each DBTG set can have any number of set occurrences (actual instances of linked records). Since many-to-many links are disallowed, each set occurrence has precisely one owner, and has zero or more member records. No member record of a set can participate in more than one occurrence of the set at any point. A member record can participate simultaneously in several set occurrences of different DBTG sets.
10.
©Silberschatz, Korth and
Sudarshan A.10 Database System Concepts, 5th Ed. Repeating Groups Repeating Groups Provide a mechanism for a field to have a set of values rather than a single value. Alternative representation of weak entities from the E-R model Example: Two sets. customer (customer-name) customer-address (customer-street, customer-city) The following diagrams represent these sets without the repeating- group construct.
11.
©Silberschatz, Korth and
Sudarshan A.11 Database System Concepts, 5th Ed. Repeating Groups (Cont.) Repeating Groups (Cont.) With the repeating-group construct, the data-structure diagram consists of the single record type customer.
12.
©Silberschatz, Korth and
Sudarshan A.12 Database System Concepts, 5th Ed. DBTG Data-Retrieval Facility DBTG Data-Retrieval Facility The DBTG data manipulation language consists of a number of commands that are embedded in a host language. Run unit — system application program consisting of a sequence of host language and DBTG command statements. Statements access and manipulate database items as well as locally declared variables. Program work-area (or user work area) — a buffer storage area the system maintains for each application program
13.
©Silberschatz, Korth and
Sudarshan A.13 Database System Concepts, 5th Ed. DBTG Variables DBTG Variables Record Templates Currency pointers Current of record type Current of set type Current of run unit Status flags DB-status is most frequently used Additional variables: DB-set-name, DB-record-name, and DB-data-name
14.
©Silberschatz, Korth and
Sudarshan A.14 Database System Concepts, 5th Ed. Example Schema Example Schema
15.
©Silberschatz, Korth and
Sudarshan A.15 Database System Concepts, 5th Ed. Example Program Work Area Example Program Work Area Templates for three record types: customer, account, and branch. Six currency pointers Three pointers for record types: one each tot he most recently accessed customer, account, and branch record Two pointers for set types: one to the most recently accessed record in an occurrence of the set depositor, one to the most recently accessed record in an occurrence of the set account- branch One run-unit pointer. Status flags: four variables defined previously Following diagram shows an example program work area state.
16.
©Silberschatz, Korth and
Sudarshan A.16 Database System Concepts, 5th Ed.
17.
©Silberschatz, Korth and
Sudarshan A.17 Database System Concepts, 5th Ed. The Find and Get Commands The Find and Get Commands find locates a record in the database and sets the appropriate currency pointers get copies of the record to which the current of run-unit points from the database to the appropriate program work area template Example: Executing a find command to locate the customer record belonging to Johnson causes the following changes to occur in the state of the program work area. The current of the record type customer now points to the record of Johnson. The current of set type depositor now points to the set owned by Johnson The current of run unit now points to customer record Johnson.
18.
©Silberschatz, Korth and
Sudarshan A.18 Database System Concepts, 5th Ed. Access of Individual Records Access of Individual Records find any <record type> using <record-field> Locates a record of type <record type> whose <record-field> value is the same as the value of <record-field> in the <record type> template in the program work area. Once such a record is found, the following currency pointers are set to point to that record: The current of run-unit pointer The record-type currency pointer for <record type> For each set in which that record belongs, the appropriate set currency pointer find duplicate <record type> using <record-field> Locates (according to a system-dependent ordering) the next record that matches the <record-field>
19.
©Silberschatz, Korth and
Sudarshan A.19 Database System Concepts, 5th Ed. Access of Records Within a Set Access of Records Within a Set Other find commands locate records in the DBTG set that is pointed to by the <set-type> currency pointer. find first <record type> within <set-type> Locates the first database record of type <record type> belonging to the current <set-type>. To locate the other members of a set,k we use find next <record type> within <set-type> which finds the next element in the set <set-type>. find owner within <set-type> Locates the owner of a particular DBTG set
20.
©Silberschatz, Korth and
Sudarshan A.20 Database System Concepts, 5th Ed. Predicates Predicates For queries in which a field value must be matched with a specified range of values, rather than to only one, we need to: get the appropriate records into memory examine each one separately for a match determine whether each is the; target of our find statement
21.
©Silberschatz, Korth and
Sudarshan A.21 Database System Concepts, 5th Ed. Example DBTG Query Example DBTG Query Print the total number of accounts in the Perryridge branch with a balance greater than $10,000. count := 0; branch.branch-name := “Perryridge”; find any branch using branch-name; find first account within account-branch; while DB-status = 0 do begin get account if account.balance > 10000 then count := count + 1; find next account within account-branch; end print (count);
22.
©Silberschatz, Korth and
Sudarshan A.22 Database System Concepts, 5th Ed. DBTG Update Facility DBTG Update Facility DBTG mechanisms are available to update information in the database. To create a new record of type <record type> insert the appropriate values in the corresponding <record type> template add this new record to the database by executing store <record type> Can create and add new records only one at a time
23.
©Silberschatz, Korth and
Sudarshan A.23 Database System Concepts, 5th Ed. DBTG Update Facility (Cont.) DBTG Update Facility (Cont.) To modify an existing record of type <record type> find that record in the database get that record into memory change the desired fields in the template of <record type> reflect the changes to the record to which the currency point of <record type> points by executing modify <record type>
24.
©Silberschatz, Korth and
Sudarshan A.24 Database System Concepts, 5th Ed. DBTG Update Facility (Cont.) DBTG Update Facility (Cont.) To delete an existing record of type <record type> make the currency pointer of that type point to the record in the database to be deleted delete that record by executing erase <record type> Delete an entire set occurrence by finding the owner of the set and executing erase all <record type> Deletes the owner of the set, as well as all the set’s members. If a member of the set is an owner of another set, the members of that second set also will be deleted. erase all is recursive.
25.
©Silberschatz, Korth and
Sudarshan A.25 Database System Concepts, 5th Ed. DBTG Set-Processing Facility DBTG Set-Processing Facility Mechanisms are provided for inserting records into and removing records from a particular set occurrence Insert a new record into a set by executing the connect statement. connect <record type> to <set-type> Remove a record from a set by executing the disconnect statement. disconnect <record type> from <set-type>
26.
©Silberschatz, Korth and
Sudarshan A.26 Database System Concepts, 5th Ed. Example Example disconnect disconnect Query Query Close account A-201, that is, delete the relationship between account A-201 and its customer, but archive the record of account A-201. The following program removes account A-201 from the set occurrence of type depositor. The account will still be accessible in the database for record-keeping purposes. account.account-number := “A-201”; find for update any account using account-number. get account, find owner within depositor, disconnect account from depositor.
27.
©Silberschatz, Korth and
Sudarshan A.27 Database System Concepts, 5th Ed. DBTG Set-Processing Facility (Cont.) DBTG Set-Processing Facility (Cont.) To move a record of type <record type> from one set occurrence to another set occurrence of type <set-type> Find the appropriate record and the owner of the set occurrences to which that record is to be moved. Move the record by executing reconnect <record type> to <set-type> Example: Move all accounts of Hayes that are currently at the Perryridge branch to the Downtown branch.
28.
©Silberschatz, Korth and
Sudarshan A.28 Database System Concepts, 5th Ed. Example Example reconnect Query Query customer.customer-name := “Hayes”; find any customer using customer-name; find first account within depositor; while DB-status = 0 do begin find owner within account-branch; get branch; if branch.branch-name = “Perryridge” then begin branch.branch-name := “Downtown”; find any branch using branch-name; reconnect account to account-branch; end find next account within depositor, end
29.
©Silberschatz, Korth and
Sudarshan A.29 Database System Concepts, 5th Ed. DBTG Set-Processing Facility (Cont.) DBTG Set-Processing Facility (Cont.) A newly created member record of type <record type> of a set type <set-type> can be added to a set occurrence either explicitly (manually) or implicitly (automatically). Specify the insert mode at set-definition time via insertion is <insert mode> manual: connect <record type> to <set-type> automatic: store <record type>
30.
©Silberschatz, Korth and
Sudarshan A.30 Database System Concepts, 5th Ed. Set Insertion Example Set Insertion Example Create account A535 for customer Hayes at the Downtown branch. Set insertion is manual for set type depositor and is automatic for set type account-branch. branch.branch-name := “Downtown”; find any branch using branch-name; account.account-number := “A-535”; account.balance := 0; store account; customer.customer-name := “Hayes”; find any customer using customer-name; connect account to depositor;
31.
©Silberschatz, Korth and
Sudarshan A.31 Database System Concepts, 5th Ed. DBTG Set-Processing Facility (Cont.) DBTG Set-Processing Facility (Cont.) Restrictions on how and when a member record can be removed from a set occurrence are specified at set-definition time via retention is <retention-mode> <retention-mode> can take one of the three forms: 1. fixed — a member record cannot be removed. To reconnect a record to another set, we must erase that record, recreate it, and then insert it into the new set occurrence. 2. mandatory — a member record of a particular set occurrence can be reconnected to another set occurrence of only type <set-type>. 3. optional — no restrictions on how and when a member record can be removed from a set occurrence.
32.
©Silberschatz, Korth and
Sudarshan A.32 Database System Concepts, 5th Ed. DBTG Set-Processing Facility (Cont.) DBTG Set-Processing Facility (Cont.) The best way to delete a record that is the owner of set occurrence of type <set-type> depends on the specification of the set retention of <set-type>. optional — the record will be deleted and every member of the set that it owns will be disconnected. These records, however, will be in the database. fixed — the record and all its owned members will be deleted; a member record cannot be removed from the set occurrence without being deleted. mandatory — the record cannot be erased, because the mandatory status indicates that a member record must belong to a set occurrence. The record cannot be disconnected from that set.
33.
©Silberschatz, Korth and
Sudarshan A.33 Database System Concepts, 5th Ed. Set Ordering Set Ordering order is <order-mode> first. A new record is inserted in the first position; the set is in reverse chronological ordering. last. A new record is inserted in the final position; the set is in chronological ordering. next. Suppose that the currency pointer or <set-type> points to record X. If X is a member type, a new record is inserted in the next position following X. If X is an owner type, a new record is inserted in the first position. Set ordering is specified by a programmer when the set is defined:
34.
©Silberschatz, Korth and
Sudarshan A.34 Database System Concepts, 5th Ed. Set Ordering (Cont.) Set Ordering (Cont.) prior. If X is a member type, a new record is inserted in the position just prior to X. If X is an owner type, a new record is inserted in the last position. system default. A new record is inserted in an arbitrary position determined by the system. sorted. A new record is inserted in a position that ensures that the set will remain sorted. The sorting order is specified by a particular key value when a programmer defines the set. Example: Consider the set occurrence of type depositor with the owner-record customer Turner and member-record accounts A-305, A-402, and A-408 ordered as indicated in our example schema (page A.14).
35.
©Silberschatz, Korth and
Sudarshan A.35 Database System Concepts, 5th Ed. Set Ordering Example Set Ordering Example Add a new account A-125. For each <order-mode> option, the new set ordering is as follows: first: {A-125,A-305,A-402,A-408} last: {A-305,A-402,A-408,A-125} next: Suppose that the currency pointer points to record “Turner”; then the new set order is {A-125,A-305,A-402,A-408} prior: Suppose that the currency pointer points to record A-402; then the new set order is {A-305,A-125,A-402,A-408} system default: Any arbitrary order is acceptable; thus, {A-305,A-402,A-125,A-408} is a valid set ordering sorted: The set must be ordered in ascending order with account number being the key; thus, the ordering must be {A-125,A-305,A-402,A-408}
36.
©Silberschatz, Korth and
Sudarshan A.36 Database System Concepts, 5th Ed. Mapping of Networks to Files Mapping of Networks to Files We implement links by adding pointer fields to records that are associated via a link Each record must have one pointer field for each link with which it is associated. Example data-structure diagram and corresponding database. Figure missing
37.
©Silberschatz, Korth and
Sudarshan A.37 Database System Concepts, 5th Ed. Mapping of Networks to Files (Cont.) Mapping of Networks to Files (Cont.) Diagram showing the sample instance with pointer fields to represent the links. Each link is replaced by two pointers.
38.
©Silberschatz, Korth and
Sudarshan A.38 Database System Concepts, 5th Ed. Mapping of Networks to Files (Cont.) Mapping of Networks to Files (Cont.) Since the depositor link is many to many, each record can be associated with an arbitrary number of records (e.g., the account record would have a pointer to the customer record for each customer who has that account). Direct implementation of many-to-many relationships requires the use of variable length records. The DBTG model restricts links to be either one to one or one to many; the number of pointers needed is reduced, and it is possible to retain fixed-length records.
39.
©Silberschatz, Korth and
Sudarshan A.39 Database System Concepts, 5th Ed. Mapping of Networks to Files (Cont.) Mapping of Networks to Files (Cont.) Assume that the depositor link is one to many and is represented by the DBTG set depositor and this corresponding sample database. set name is depositor owner is customer member is account
40.
©Silberschatz, Korth and
Sudarshan A.40 Database System Concepts, 5th Ed. Mapping of Networks to Files (Cont.) Mapping of Networks to Files (Cont.) Because an account record can be associated with only one customer record, we need only one pointer in the account record to represent the depositor relationship. A customer record can be associated with many account records. Rather ant using multiple pointers in the customer record, we can use a ring structure to represent the entire occurrence of the DBTG set depositor. In a ring structure, the records of both the owner an member types for a set occurrence are organized into a circular list. There is one circular list for each set occurrence (that is, for each record of the owner type).
41.
©Silberschatz, Korth and
Sudarshan A.41 Database System Concepts, 5th Ed. Example Ring Structure Example Ring Structure
42.
©Silberschatz, Korth and
Sudarshan A.42 Database System Concepts, 5th Ed. Modified Ring Structures Modified Ring Structures Execute find owner via a ring structure in which every member-type record contains a second pointer which points to the owner record.
43.
©Silberschatz, Korth and
Sudarshan A.43 Database System Concepts, 5th Ed. Physical Placement of Records Physical Placement of Records To specify the storage strategy for DBTG set, add a placement clause to the definition of the member record type. The clause placement clustered via depositor will store members of each set occurrence close to one another physically on disk, if possible, in the same block. Store owner and member records close to one another physically on disk by adding the clause near owner. placement clustered via depositor near owner
44.
©Silberschatz, Korth and
Sudarshan A.44 Database System Concepts, 5th Ed. Physical Placement of Records (Cont.) Physical Placement of Records (Cont.) Storing member records in the same block as the owner reduces the number of block accesses required to read an entire set occurrence.
45.
©Silberschatz, Korth and
Sudarshan A.45 Database System Concepts, 5th Ed. Sample Database Sample Database
46.
©Silberschatz, Korth and
Sudarshan A.46 Database System Concepts, 5th Ed. Two Data-Structure Diagrams Two Data-Structure Diagrams
47.
©Silberschatz, Korth and
Sudarshan A.47 Database System Concepts, 5th Ed. Sample Database Corresponding to Sample Database Corresponding to Diagram of Figure A.3b Diagram of Figure A.3b
48.
©Silberschatz, Korth and
Sudarshan A.48 Database System Concepts, 5th Ed. Sample Database Corresponding to Sample Database Corresponding to Diagram of Figure A.6b Diagram of Figure A.6b
49.
©Silberschatz, Korth and
Sudarshan A.49 Database System Concepts, 5th Ed. Sample Database Corresponding to Sample Database Corresponding to Diagram of Figure A.8b Diagram of Figure A.8b
50.
©Silberschatz, Korth and
Sudarshan A.50 Database System Concepts, 5th Ed. Two Data-Structure Diagrams Two Data-Structure Diagrams
51.
©Silberschatz, Korth and
Sudarshan A.51 Database System Concepts, 5th Ed. Sample Database Corresponding to the Sample Database Corresponding to the Diagram of Figure A.11 Diagram of Figure A.11
52.
©Silberschatz, Korth and
Sudarshan A.52 Database System Concepts, 5th Ed. DBTG Set DBTG Set
53.
©Silberschatz, Korth and
Sudarshan A.53 Database System Concepts, 5th Ed. Three Set Occurrences Three Set Occurrences
54.
©Silberschatz, Korth and
Sudarshan A.54 Database System Concepts, 5th Ed. Data-Structure and E-R Diagram Data-Structure and E-R Diagram
55.
©Silberschatz, Korth and
Sudarshan A.55 Database System Concepts, 5th Ed. A A customer customer Record Record
56.
©Silberschatz, Korth and
Sudarshan A.56 Database System Concepts, 5th Ed. Clustered Record Placement for Clustered Record Placement for Instance for Figure A.1 Instance for Figure A.1
57.
©Silberschatz, Korth and
Sudarshan A.57 Database System Concepts, 5th Ed. Class Enrollment E-R Diagram Class Enrollment E-R Diagram
58.
©Silberschatz, Korth and
Sudarshan A.58 Database System Concepts, 5th Ed. Parent—Child E-R Diagram Parent—Child E-R Diagram
59.
©Silberschatz, Korth and
Sudarshan A.59 Database System Concepts, 5th Ed. Car-Insurance E-R Diagram Car-Insurance E-R Diagram
Download