Wrox Programmer Forums
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old June 5th, 2005, 03:37 PM
Friend of Wrox
Join Date: Oct 2004
Posts: 198
Thanks: 2
Thanked 0 Times in 0 Posts
Send a message via MSN to itHighway
Default Sql Query Expert!


I need to implement "GROUP BY" sql statement on Date. The date stored in database is in '6/2/2005 4:42:36 PM' format and I want to implement "GROUP BY" only on '6/2/2005' part of date.

Any idea..
Any Help...

Will really be appriciated

Thank you,
Zeeshan Ahmed


Old June 5th, 2005, 11:00 PM
Friend of Wrox
Join Date: May 2004
Posts: 642
Thanks: 0
Thanked 43 Times in 42 Posts


 One possible solution could be to convert date to varchar and then use group by.


select convert(varchar(10),date_created,101) from table_name group by convert(varchar(10),date_created,101)

This will give u data group by date, excluding time.

Om Prakash

Similar Threads
Thread Thread Starter Forum Replies Last Post
The expert programmers take a look ojbrowser Visual Studio 2005 0 August 12th, 2008 07:04 AM
Output Query to txt file from SQL Query everest SQL Server 2005 4 November 22nd, 2007 01:49 AM
Anyone Expert in SQL Queries? itHighway HTML Code Clinic 3 June 3rd, 2005 09:57 AM
Anyone Expert in SQL Queries itHighway Classic ASP Basics 2 May 24th, 2005 03:37 AM
is there any expert who can help me surya221 Classic ASP Databases 1 March 24th, 2005 10:46 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.