× 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.



Try using WITH like so:
WITH Categories as (Select STUNNO, CASE ...end as Category from MYFILE) 
Select Category,<summary functions> from MYFILE a join Categories b on
a.STUNNO = b.STUNNO group by Category

I haven't actually executed this statement, so there may be errors, but I
think this is close. 

Hope that helps. 

Donald R. Fisher, III
Project Manager
RoomStore, Inc.
(804) 784-7600 extension 2124
DFisher@xxxxxxxxxxxxx


<clip>
SELECT Case
                  When STUNNO = 11111 then 'INTERNET'
                  When STUNNO = 22222 then 'CORPORATE'
                  ELSE 'ALL RESTAURANTS'
       end AS Location

from MYFILE
GROUP BY Location

It states that Location doesn't exist.  I understand why I get this
message, but I'm wondering how can I get this to work. If I'm able too.
<clip>

As an Amazon Associate we earn from qualifying purchases.

This thread ...


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.