home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / database / theory / 469 < prev    next >
Encoding:
Internet Message Format  |  1992-09-10  |  1.6 KB

  1. Path: sparky!uunet!cimshop!davidm
  2. From: davidm@consilium.com (David S. Masterson)
  3. Newsgroups: comp.databases.theory
  4. Subject: Re: ordered collections
  5. Message-ID: <DAVIDM.92Sep10100820@consilium.com>
  6. Date: 10 Sep 92 17:08:20 GMT
  7. References: <cdk.715362552@neptune> <DAVIDM.92Sep2112813@consilium.com>
  8.     <cdk.716057364@neptune>
  9. Sender: root@cimshop.UUCP
  10. Organization: Consilium Inc., Mountain View, California
  11. Lines: 26
  12. In-reply-to: cdk@neptune.dsc.com's message of 9 Sep 92 16:49:24 GMT
  13. X-Posting-Software: GNUS 3.13  [ NNTP-based News Reader for GNU Emacs ]
  14.  
  15. >>>>> On 9 Sep 92 16:49:24 GMT, cdk@neptune.dsc.com (Colin Kelley) said:
  16.  
  17. > davidm@consilium.com (David S. Masterson) writes:
  18.  
  19. >>>>>>> On 1 Sep 92 15:49:12 GMT, cdk@neptune.dsc.com (Colin Kelley) said:
  20.  
  21. >>> Is there a standard way to implement ordered collections in a relational
  22. >>> database that would allow for random insertion?
  23.  
  24. >>Well, I don't think there is a standard, but here's one way.
  25.  
  26. >>1. Make the primary key be (sequence_number, current_date).
  27. >>2. Generate a new sequence_number for additions to the end of the collection.
  28. >>3. Insertion anywhere else uses the sequence_number of preceding item.
  29.  
  30. > I'm confused.
  31.  
  32. You're right -- I realized later that this didn't make sense... :-(
  33. --
  34. ====================================================================
  35. David Masterson                    Consilium, Inc.
  36. (415) 691-6311                    640 Clyde Ct.
  37. davidm@consilium.com                Mtn. View, CA  94043
  38. ====================================================================
  39. "When the government attempts to regulate everything, all is lost."
  40. -- Thibaudeau
  41.