G
Grant
I think I need to format the date in the table when I use GROUP by to group
the dates. The table has date and time stamp but I need it to group by the
date alone without the time stamp. How do I format the date field in the SQL
statement using SQL Server? I was able to do it in MS ACCESS but it is
different in SQL Server then MS ACCESS or .net then VB6.
The old way was "Select sum(tot) as total, dte from tblName group by
format(dte, 'mm/dd/yyyy') "
Thanks
the dates. The table has date and time stamp but I need it to group by the
date alone without the time stamp. How do I format the date field in the SQL
statement using SQL Server? I was able to do it in MS ACCESS but it is
different in SQL Server then MS ACCESS or .net then VB6.
The old way was "Select sum(tot) as total, dte from tblName group by
format(dte, 'mm/dd/yyyy') "
Thanks