Consider the example of CUSTOMER records shown in Figure H-33. The primary key is AccountNumber, and there is a secondary key on CreditLimit. Possible CreditLimit values are 500, 700, and 1000. Thus, there will be a set of records for the limit of 500, a set for 700, and a set for 1000.
To represent this key using linked lists, we add a link field to the CUSTOMER records. Inside this link field, we create a linked list for each set of records. Figure H-34 shows a database of 11 customers; but, for brevity, only AccountNumber and CreditLimit are shown. A link field has been attached to the rec-ords. Assume that one database record occupies one physical record on a direct file using relative record addressing.
Figure H-33: CUSTOMER Record
Figure H-