Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Table without PK - do I need one for View?
Message
 
 
À
25/10/2001 15:39:32
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00573010
Message ID:
00573376
Vues:
39
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform