| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> comp.databases.theory -> Re: A Logical Model for Lists as Relations
Jay Dee wrote:
> Marshall Spight wrote:
>
>> I am interested in the question of how best to handle lists in a >> relation-oriented world. I have considered various approaches, >> usually oriented around adding a list collection type.
>> But a list can be described as a relation. Most simply, an infinite >> list is a relation from the natural numbers to the target set, >> and a finite list is a relation from some finite contiguous subset >> [0..n] of the naturals to the target set. Generalizing, we could >> describe an n-ary list as a relation with an index attribute and >> zero or more other attributes.
Since it is relatively easy to write a query that extends a relation with a rank per any explicit order, I am not even sure the ordinal attribute is required. Received on Wed May 10 2006 - 11:35:58 CDT
![]() |
![]() |