I am trying to convert the following Access Query to SQL. It doesn't like the term Format. I am using an asp program that was designed for Access but will work with SQL Server.
Can anyone give me some advice on how to do it? Thanks in advance.
SELECT Format([stats].[Time],'h') AS [Hour], Stats.IP, Stats.Date
FROM Stats
GROUP BY Format([stats].[Time],'h'), Stats.IP, Stats.Date
ORDER BY Format([stats].[Time],'h');
Can anyone give me some advice on how to do it? Thanks in advance.
SELECT Format([stats].[Time],'h') AS [Hour], Stats.IP, Stats.Date
FROM Stats
GROUP BY Format([stats].[Time],'h'), Stats.IP, Stats.Date
ORDER BY Format([stats].[Time],'h');