Received: from oxmail.ox.ac.uk (oxmail2.ox.ac.uk [163.1.2.1]) by hub.org (8.9.3/8.9.3) with ESMTP id EAA51191 for ; Wed, 12 Apr 2000 04:47:09 -0400 (EDT) (envelope-from moray.mcconnachie@computing-services.oxford.ac.uk) Received: from ermine.ox.ac.uk ([163.1.2.13]) by oxmail.ox.ac.uk with esmtp (Exim 3.12 #1) id 12fInf-0004OU-00; Wed, 12 Apr 2000 09:47:03 +0100 Received: from ermine.ox.ac.uk ([163.1.2.13] helo=moraypc ident=root) by ermine.ox.ac.uk with smtp (Exim 3.13 #1) id 12fInf-0004G0-00; Wed, 12 Apr 2000 09:47:03 +0100 Message-ID: <008501bfa45b$8162d3a0$760e01a3@oucs.ox.ac.uk> From: "Moray McConnachie" To: "Ingram, Bryan" , Cc: References: <9B7D4396307CD311809A00500415EB405FE256@BKMAIL> Subject: Re: Threaded Records in SQL: Advice Needed Date: Wed, 12 Apr 2000 09:45:50 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2919.6700 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 X-Archive-Number: 200004/119 ----- Original Message ----- From: "Ingram, Bryan" To: "Ingram, Bryan" ; Cc: Sent: Tuesday, April 11, 2000 9:57 PM Subject: RE: [SQL] Threaded Records in SQL: Advice Needed > In reference to the ascii/numeric ordering problem .. > > But first let me say ..if someone knows of a way to get ascii values to > order as if they were numerics ..please let me in on the secret .. > > Instead of using numbers, if letters were used the ordering would be > correct. > > The id string would become something like: A/A/A for the 1st reply to the > 1st reply of the 1st root message. > > This will work fine for threads with relatively few replies on the same > level. For instance, the number 100 would take only 4 characters to encode, > however, the number 1000 would need 39 characters to encode. More efficient to use letters as numbers in base 26? Then for up to 676 replies per level you need only 2 letters. If you allowed 3, you'd have some headroom. ---------------------------------------------------------------- Moray.McConnachie@computing-services.oxford.ac.uk