| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> comp.databases.theory -> Re: PIZZA time again :-)
VC wrote:
> mAsterdam wrote:
>>VC wrote:
[snip]
>>merge_in_its_own_right merges a list of lists into a list. It >> >> - should not have assumptions about an >> intrinsic order of the listed values. >> - should preserve the order of the values >> and fail if it can't.
Yep.
>>Should it also respect the order /of/ (as opposed to /in/) the lists?
L1 = [a, c, d]
L2 = [a, b, d]
If the order /of/ the lists matters, the result is
M = [a, c, b, d]
If it doesn't, the result is
M = [a, c, b, d]
M = [a, b, c, d]
>>order_preserving_merge would, I guess - but there are two different >>orders, and assumption 1 (in the original post) only declares the order >>/in/ the lists to be of consequence. Also declaring the order /of/ the >>list of consequence makes order_preserving_merge(+, -) determististic. >>I suspect that is an advantage - but is it a good enough reason?
![]() |
![]() |