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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

More help with complex query

Status
Not open for further replies.

dhaveedh

Programmer
Joined
Aug 13, 2003
Messages
112
Location
GB
Hi,

I have two time fields in a table as Start Time and End Time. They are both in the format 00:00:00.

I want to subtract the End Time from the Start time for each record in the table and return the value in minutes.

i.e Select StartTime - EndTime As Timevalue(in secs)

Can anyone help?

Much appreciated.

KISS - Keep It Simple Sugar!
 
select datediff("n",StartTime,EndTime ) as minutes

rudy
SQL Consulting
 
Muchos gracias

KISS - Keep It Simple Sugar!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top