× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



I did not realize there was a distinct() function, very handy. In case
anyone else out there is trying to run this, to get the query below to
run I needed to do.

Select distinct(plan), count(*) from the_file
Group by plan

Chris

-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Chris Payne
Sent: Monday, October 17, 2005 4:30 PM
To: Midrange Systems Technical Discussion
Subject: RE: SQL Optimizer Issue

Ooooh, nice!

-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Goodbar, Loyd (ETS
- Water Valley)
Sent: Monday, October 17, 2005 4:05 PM
To: Midrange Systems Technical Discussion
Subject: RE: SQL Optimizer Issue

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?





As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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

This mailing list archive is Copyright 1997-2024 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.