Quantcast
Channel: Forum Getting started with SQL Server
Viewing all articles
Browse latest Browse all 7129

Format Output Data

$
0
0

Hi,

How can I format date as mm-dd-yyyy and minutes as 999.99?

Here is my code:

SELECT A.Employee 
      ,Min(A.Work_Date) As [Start]
      ,Max(A.Work_Date) AS [End]
      ,Sum(A.Regular_Minutes)/60 As [Reg Hrs]
      ,Sum(A.OT_Minutes)/60 as [OT Hrs] 
  FROM [PRODUCTION].[dbo].[Attendance] As A
  where Work_Date between '2013-12-14' and '2013-12-20'
  Group By A.Employee
  Order By A.Employee






SWProduction


Viewing all articles
Browse latest Browse all 7129

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>