Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MIN MAX Alternatives for Optimization
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
MIN MAX Alternatives for Optimization
Miscellaneous
Thread ID:
00575075
Message ID:
00575075
Views:
49
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
Next
Reply
Map
View

Click here to load this message in the networking platform