Even better: 
Select distinct(plan), count(*) from the_file

Optionally: ... order by 2 desc

Loyd Goodbar
Senior programmer/analyst
BorgWarner
E/TS Water Valley
662-473-5713
-----Original Message-----
From: midrange-l-bounces+lgoodbar=borgwarner.com@xxxxxxxxxxxx
[mailto:midrange-l-bounces+lgoodbar=borgwarner.com@xxxxxxxxxxxx] On Behalf
Of fkany@xxxxxxxxxxxxxxxxxx
Sent: Friday, October 14, 2005 16:49
To: Midrange Systems Technical Discussion
Subject: RE: SQL Optimizer Issue



SELECT COUNT(*) FROM the_FILE

SELECT COUNT(*) FROM the_FILE WHERE PLAN = 'C'

SELECT COUNT(*) FROM the_FILE WHERE PLAN = 'B'

Would the above select statements help figure out the stats of the file?





This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2026 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.