dbTalk Databases Forums  

Multiple index BTREES

comp.databases.pick comp.databases.pick


Discuss Multiple index BTREES in the comp.databases.pick forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
keith@calidore.com
 
Posts: n/a

Default Multiple index BTREES - 05-25-2007 , 10:03 AM






I have a BTREE index on an invoice file that indexes all invoices for
all customers by date.

The index is CUSTOMER.DATE and the definition is BY-AL 1 BY-AR 5 where
1 is the customer attribute and 5 is the invoice date attribute.

I want to select all invoices for a range of customers and for a range
of dates.

Does anybody know how to specify the start and end keys for the KEY-
SELECT statement for this multiple range?


Reply With Quote
  #2  
Old   
bob marik
 
Posts: n/a

Default Re: Multiple index BTREES - 05-28-2007 , 08:30 AM






On May 25, 9:03 am, k... (AT) calidore (DOT) com wrote:
Quote:
I have a BTREE index on an invoice file that indexes all invoices for
all customers by date.

The index is CUSTOMER.DATE and the definition is BY-AL 1 BY-AR 5 where
1 is the customer attribute and 5 is the invoice date attribute.

I want to select all invoices for a range of customers and for a range
of dates.

Does anybody know how to specify the start and end keys for the KEY-
SELECT statement for this multiple range?
You don't indicate which multivalue database you are using but in the
case of D3 I don't believe the system B-Tree Indexing handles ranges.
What I have done to select a range of dates was to write a short
program do do the Selects one day at a time using the index and adding
the daily Selects together.
Bob Marik



Reply With Quote
  #3  
Old   
keith@calidore.com
 
Posts: n/a

Default Re: Multiple index BTREES - 05-29-2007 , 03:16 AM



On May 28, 2:30 pm, bob marik <rma... (AT) mcbaincamera (DOT) com> wrote:
Quote:
On May 25, 9:03 am, k... (AT) calidore (DOT) com wrote:

I have a BTREE index on an invoice file that indexes all invoices for
all customers by date.

The index is CUSTOMER.DATE and the definition is BY-AL 1 BY-AR 5 where
1 is the customer attribute and 5 is the invoice date attribute.

I want to select all invoices for a range of customers and for a range
of dates.

Does anybody know how to specify the start and end keys for the KEY-
SELECT statement for this multiple range?

You don't indicate which multivalue database you are using but in the
case of D3 I don't believe the system B-Tree Indexing handles ranges.
What I have done to select a range of dates was to write a short
program do do the Selects one day at a time using the index and adding
the daily Selects together.
Bob Marik
Hi Bob

I Should have mentioned that we use mvbase which does allow index
ranges but the manual doesn't specify how to create and access
multiple key indexes.

Thanks for your input.



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.