Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Records and calculations !!

Status
Not open for further replies.

Monkeyboy126

IS-IT--Management
Dec 9, 2002
47
GB
Hi

CR8.5

Background:

Helpdesk call logging software. Complex SQL database. Report displays a call ref number and all activities for that call (DateTime logged, DateTime of a logged comment, DateTime of escalation etc). All activities are produced from the same table (different fields).

Problem:

I am looking to at two DateTime's in particular, the DateTime Logged and the DateTime of the next entry (whatever it might be), and I then need to calculate the elapsed time between the two. This bit I can work out but the report obviously displays all records (events)from the table and I only need the first two.

Also I then need to work out how I perform the date difference calculation on two records from the same table.

I hope this explains my problem... Help!!

Many thanks
 
Group by the event and in the group header use a formula like:

datediff("m",{table.datetime},next({table.datetime}))

This will provide a comparison between the first and second row of each event only.

-k kai@informeddatadecisions.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top