Hey everyone, it's been a while.
I am hoping for a shortcut on this, but I'm guessing there isn't. We have a
request to pull a years worth of top usage data by due date.
So we have utility bills by customer and due date. We want to pull all
customers that have the top usage by each billing cycle. I know how to pull
that for all records, is there a shortcut way to pull the top x by a group
by?
I am thinking like
SELECT CUSTOMER, DUE_DATE, TOP100(USAGE)
FROM BILLHIST
GROUP BY CUSTOMER, DUE_DATE
If there isn't, I guess I'll have to get creative. I'd build a program, but
we only need it a couple times until May when this software will be done
and we'll be on a .NET platform.
--
Mike Wills
http://mikewills.me
Ph: 507-933-0880
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.