Search the GP Tables
Search by TABLE NAME
Search by FIELD NAME
These are our SOP scripts. All of our scripts for Dynamics GP can be found here
DynDeveloper.com

DynDeveloper.com

Table Edits Forum Articles
Table Edits 0 Table Edits 0 Table Edits 0
Sign Up Now!Log In
paulchacko 1/24/2018 11:35:34 AM

Need help converting seconds into hours in SQL

Hi,

I need some help converting seconds into hours in the SQL query below.

select i.itemid as "TicketID",
i.Status,
i.SubmitDate,
i.ClosedDateTime as "Closed",
i.totaltime as "Effort", --in seconds, needs to be converted to days, minutes, hours
i.Summary,
u.fullname as "Requester",
s.fullname as "Assigned To",
i.ItemOwnerName as "Team",
i.fullincidentrequesttype as "IT Categorization",
i.closetypename as "Resolution Type",
i.divisionname as "Division"

from VCG_IncidentRequest_Grid_View i

inner join VCG_Users u on u.OID=i.requester
inner join vcg_users s on s.OID=i.assignedto

Could someone with SQL skills help please?

Thanks

Paul Chacko

Version: Unknown or N/A
Section: SQL Scripts








Table Definition Quick Links
All Tables
SOP Tables
RM Tables
GL Tables
POP Tables
HR Tables
PM Tables
UPR Tables
IV Tables
Olympic Tables