I have a column of bigint
type containing date & time information (like 1353056515
, 1353067040
, 1360839600
etc.)
My requirement is to get time difference in HOURS format between column which I mentioned above and current datetime.
I tried to find the solution, but those were so confusing. I'm new to SQL Server.
Please help.
Please try this.
The data difference operation:
or
Create Function
Hope that helps.