Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
MIN MAX Alternatives for Optimization
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
MIN MAX Alternatives for Optimization
Divers
Thread ID:
00575075
Message ID:
00575075
Vues:
48
It looks like MIN and MAX are not Rushmore optimizable, so this query is dragging along (1.1 million rows, indexes on all columns). Can anyone recommend any alternatives? I was thinking that I could nest something and use TOP 1 or something. Any ideas?
	SELECT cPolicySymbol, cPolicyNumber , ;
	    MIN(tPolicyEffectiveDate) AS tPolicyEffectiveDate , ;
	    MAX(tPolicyExpirationDate) AS tPolicyExpirationDate ;
	FROM PremPolicyXref ;
	WHERE iPremApplicationID = 1 ;
	GROUP BY cPolicySymbol , cPolicyNumber
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform