SQL Select in a Module

P

Paul Dennis

Problem: I have a Table called PROBLEMS which list all helpdesk problem
tickets by an ITEM category. What I need to do for a given month is list the
ITEMs and then work out the total time the ITEM has been available.

I can work out the tickets raised in the month, and I can work out the
difference between the raised and resolved times. My problem is bringing back
the correct tickets to use to calculate the times since ticket B might of
started after ticket A but finished before ticket A finished hence would not
be used in the calc.

The only way I can think of to do this is to use a query to find the first
item and then to call a module which will use SQL with the where clause =
ITEM, but I don't know how to define the SQL to what I need and then loop to
select each row.

Any Ideas?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top