Calculating dates

Meeting place for R&R customers and clients to share tips and ideas. Post your questions, messages or problems here.
Post Reply
FRED_EMMERICH_(Guest)
Posts: 170
Joined: Tue Oct 10, 2017 12:44 pm

Calculating dates

Post by FRED_EMMERICH_(Guest) » Mon Feb 28, 2005 7:02 pm

I have a master table linked to a detail table, which contains date-oriented records. How would I calculate the difference between the earliest detail record, and the latest one, for a given master record?____thanks__Fred__

kfleming
Posts: 5795
Joined: Tue Oct 10, 2017 12:44 pm

=> RE: Calculating dates

Post by kfleming » Tue Mar 01, 2005 9:30 am

You would need to create two totals that take the min and the max of the date and then place them on a detail footer band.____Kathleen__R&R Support

FRED_EMMERICH_(Guest)
Posts: 170
Joined: Tue Oct 10, 2017 12:44 pm

==> RE: Calculating dates

Post by FRED_EMMERICH_(Guest) » Tue Mar 01, 2005 6:42 pm

I tried that but only the MIN() worked, it gave me a date. The MAX() gave me a zero.____I am using SQL 8.1

kfleming
Posts: 5795
Joined: Tue Oct 10, 2017 12:44 pm

===> RE: Calculating dates

Post by kfleming » Tue Mar 01, 2005 8:28 pm

Do you have records where the date field is blank?____Kathleen__R&R Support

Post Reply