Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Index question

Status
Not open for further replies.

stevejbr

Programmer
Aug 28, 2002
1
0
0
US
We're using UDB 7.2. I've tried and failed to build an index on a table that used a function as part of the index. ie CREATE INDEX INSTANCE1.IDX0001 ON INSTANCE1.DETAILTBL (PPLINX ASC, YEAR(DOB) ASC) PCTFREE 10 MINPCTUSED 10

It didn't like the YEAR function on the DOB field. Am I formatting it wrong or is this just not possible.
Thanks
 
I don't think you can do that! I think the only way round this is for you to add a year column to your table and index that (pretty poor really!)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top