Hello,
I am a newbie at write SQL statements :-(
I get from logparser import at one SQL Table the field EntryTime with this value: 2012-11-19 17:15:35.000
How did i get the date and Hour from this string?
I hope somebody can help me,
Horst
The query from logparser look like this but this is not working for me at sql query window :-(((
SELECT
TO_LOCALTIME
(
QUANTIZE
(
TO_TIMESTAMP
(date, time), 3600))
AS [DateTime], COUNT(*) AS [Requests]
INTO
HourlyDayReport.txt
FROM
ex0902*.
log
GROUP
BY
[DateTime]
ORDER
BY
[DateTime]"
"SELECT
TO_STRING
(
TO_LOCALTIME
(
TO_TIMESTAMP
(date, time)),
'yyyy-MM-dd') AS [Day], COUNT(*) AS [Requests]
INTO
DayReport.txt
FROM
ex1003*.
log
GROUP
BY
[Day]
ORDER
BY
[Day]"