Modification of Records
How to handle the following operations
- n the record level?
- 1. Insertion
- 2. Deletion
- 3. Update
1
Modification of Records How to handle the following operations on - - PowerPoint PPT Presentation
Modification of Records How to handle the following operations on the record level? 1. Insertion 2. Deletion 3. Update 1 1. Insertion Easy case: records not in sequence Insert new record at end of file If records are fixed-length,
1
2
3
4
5
6
7
8
9
10
11
12
10 20 30 40 50 60 70 80 90 100 110 120
13
10 30 50 70 90 110 130 150 170 190 210 230
10 90 170 250 330 410 490 570
14
10 30 50 70 90 110 130 150
15
10 30 50 70 90 110 130 150
10 40 50 70 90 110 130 150
16
10 30 50 70 90 110 130 150
10 50 70 90 110 130 150
17
10 30 50 70 90 110 130 150
18
10 30 50 70 90 110 130 150
19
20
10 10 20 20 20 30 40 50 50 60
10 20 50
21
10 20 30 40 50 60
10 50
22
23
24
25
26
27
28
3 6 9 23 31 37 11 15 17 64 85 42 57 64 11 23 42
29
30
31
11 23 42 64 11 15 17 64 85
32
33
3 6 9 11 17 23 31 37 42 57 11 23 42 42 57 85
34
3 6 9 11 17 23 31 37 11 23 42 42 57 85 11 15 17
35
3 6 9 23 31 37 11 23 42 42 57 85 11 15 17 64 85 42 57 64 11 23 42 42
36
37
3 6 9 23 31 37 11 15 17 64 85 42 57 64 11 23 42 3 6 9 3 6
38
3 6 23 31 37 11 15 17 64 85 42 57 64 11 23 42 3 6 6 6 11 15 17 15 23
39
6 11 23 31 37 15 17 64 85 42 57 64 15 23 42 6 11 6 6 15 17 23
40
23 31 37 64 85 42 57 64 42 6 15 17 23 6 15 23 31
41
64 85 42 57 64 42 23 6 15 23 31 23 6 15 23 6 15 23 42 64
42
43
44