If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > General > Database Concepts & Design > how to index for different things?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-16-04, 10:45
AndrewKT AndrewKT is offline
Registered User
 
Join Date: Jan 2004
Location: North Carolina
Posts: 6
Question how to index for different things?

Say you have a table that looks like:

lotsodata(client int not null, recorddate datetime, usefulgrouping varchar(20), datum1 int, datum2 int, datum3 char(10), datum4 int);

Normally we search this table by: client, recorddate, usefulgrouping

That would lead us to a logical clustered index of the same.

For different reasons, we sometimes look up data like: client, recorddate, datum2

What would be the best way to index for that situation? (running SQL2K if it makes a big difference)
Reply With Quote
  #2 (permalink)  
Old 01-16-04, 20:24
certus certus is offline
Registered User
 
Join Date: Dec 2003
Location: Canada
Posts: 710
Take this question to the SQL Server forum. They can help you specifically with these indexing issues in SQL2K.
__________________
visit: relationary
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On