Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Table without PK - do I need one for View?
Message
 
 
To
25/10/2001 15:39:32
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00573010
Message ID:
00573376
Views:
41
>Expensive or expansive?
>
>>C(10) is more expansive than Integer. I currently decided to use composite key.

Here is SQL:
SELECT Filingdate.rcode, Filingdate.town, Filingdate.record_fm, ;
  Filingdate.record_to, Filingdate.landct_fm, Filingdate.landct_to,  ;
Filingdate.calmnth, Filingdate.mdflag, Filingdate.nodata,  ;
Filingdate.notes, Filingdate.ddflag, Filingdate.dsid, Filingdate.state, ;
 Filingdate.extryear, Filingdate.extrweek, Filingdate.ccode ;
FROM support!filingdate ;
WHERE Filingdate.dsid BETWEEN ?lnIdLow AND ?lnIDHigh  ;
 AND state+extryear+extrweek BETWEEN ?lcStWkLow AND ?lcStWkHIgh ;
ORDER BY Filingdate.extryear DESC, Filingdate.extrweek DESC,  Filingdate.rcode, Filingdate.town
Show plan shows:
Using index tag Deleted to rushmore optimize table filingdate
Rushmore optimization level for table filingdate: partial

Why StateWeek and DsID indexes are not used? I have StateWeek index with State+ExtrYear+ExtrWeek and DsID indexes...

Also how can I change BETWEEN command to BETWEEN function?
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform