Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Need help with SQL and Oracle 8i
Using Oracle 8i
We have a report server which runs a bunch of reports for a bunch of clients. The reports and various info about each report are listed in a "jobs" table, There is a client_expectation table that list each project (client) and it's report deadline time.
I wrote the sql below to give me times for an on-time report on the reports I am doing daily.
What I would like to do is have the sql run through each client ("program" in the jobs table) and output just one result for each client showing the latest report completion time (from last_complete_time in the jobs table).
Right now I have it listing all the reports ran for each program, sorted so that the latest is on the bottom of each group.. Good, but would like to streamline it further.
Any help on looping through the tables programs would be appreciated. I'm still pretty much a newbie, so type slowly :)
Tony! Received on Mon Jan 13 2003 - 17:01:30 CST