Well I'm not really sure on the syntax differences here. The "format" command is the first thing that I've stumbled into.
So here is where I'm starting from
-
SELECT [1_1Employee].Last_First_Name, [1_1Employee].Employee_Number,
-
format((([Timestamp]-(([LoggedIn]/1000)/60))/1440)+1,"mm/dd/yy") AS [Date],
-
format((([Timestamp]-(([LoggedIn]/1000)/60))/1440)+1,"dddd") AS [Day],
-
Sum(([LoggedIn]/1000/60)) AS LogIn, Sum(([OnTime]/1000/60)) AS OnTime1,
-
Format((([Timestamp]-(([LoggedIn]/1000)/60))/1440)+1,"yy/mm/dd") AS Da INTO 1_1ScratchPad
-
-
FROM 1_1Employee INNER JOIN dbo_mOpLogout ON [1_1Employee].Employee_Login = dbo_mOpLogout.Opname
-
-
GROUP BY [1_1Employee].Last_First_Name, [1_1Employee].Employee_Number,
-
Format((([Timestamp]-(([LoggedIn]/1000)/60))/1440)+1,"mm/dd/yy"),
-
Format((([Timestamp]-(([LoggedIn]/1000)/60))/1440)+1,"dddd"),
-
Format((([Timestamp]-(([LoggedIn]/1000)/60))/1440)+1,"yy/mm/dd")
-
-
HAVING (((Format((([Timestamp]-(([LoggedIn]/1000)/60))/1440)+1,"yy/mm/dd"))
-
Between [Start (YY/MM/DD)] And [End (YY/MM/DD)]));
-
and here is the error I have so far:
Server: Msg 195, Level 15, State 10, Line 2
'format' is not a recognized function name.
Server: Msg 170, Level 15, State 1, Line 3
Line 3: Incorrect syntax near 'Timestamp'.
Server: Msg 170, Level 15, State 1, Line 5
Line 5: Incorrect syntax near 'Timestamp'.
Server: Msg 170, Level 15, State 1, Line 10
Line 10: Incorrect syntax near 'Timestamp'.
Server: Msg 170, Level 15, State 1, Line 11
Line 11: Incorrect syntax near 'Timestamp'.
Server: Msg 170, Level 15, State 1, Line 12
Line 12: Incorrect syntax near 'Timestamp'.
Server: Msg 170, Level 15, State 1, Line 14
Line 14: Incorrect syntax near 'Format'.
Server: Msg 170, Level 15, State 1, Line 14
Line 14: Incorrect syntax near 'Timestamp'.
and I know that the incorrect syntax has to be the format command that is in there.