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



Now, just to take this a little further, you can get subtotals by date,
and a grand total. And, you can do that with only one select statement.


....+....1....+....2....+....3....+....4....+....5....+
Object Change COUNT OBJECT DATE_GROUP
Date
DELETEME2 010209 1 0 0
NODDSPF 010209 1 0 0
- 010209 2 1 0
AAAKEYL1 010509 1 0 0
ROB2 010509 1 0 0
- 010509 2 1 0
QHTML 011209 1 0 0
- 011209 1 1 0
CHAMARA1 011309 1 0 0
CHAMARA2 011309 1 0 0
- 011309 2 1 0
...
...
...
- - 556 1 1


SELECT odobnm, odldat, count(odobnm) as count,
Grouping(odobnm) as object,
grouping(odldat) as date_group
FROM routines/dskdtl
where odlbnm='ROB' and odobtp='*FILE'
group by cube(odobnm, odldat)
order by odldat, odobnm

Study CUBE and ROLLUP.


Rob Berendt

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

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.