Wrox Programmer Forums
|
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. 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 Databases 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 March 27th, 2007, 10:54 PM
Registered User
 
Join Date: Mar 2007
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to odezzie
Default Select Date

I am trying to select records from a specific month that the user asks for. The dates are entered with the data type date/time...I need lots of help. I think it should look something like this

SELECT * FROM Account WHERE [ColumnName] = @MM/YYYY?

Please Help

Ozie Pela
 
Old March 28th, 2007, 12:02 AM
Friend of Wrox
 
Join Date: Jul 2003
Posts: 128
Thanks: 0
Thanked 1 Time in 1 Post
Default

Ozie,
Try:

SELECT *
FROM Account
WHERE Month([ColumnName]) = 1

hope it works
jm

 
Old March 28th, 2007, 04:11 PM
Registered User
 
Join Date: Mar 2007
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to odezzie
Default

THANKS IT WORKS!!!

Ozie Pela





Similar Threads
Thread Thread Starter Forum Replies Last Post
Select the latest date, then the lowest price. Stuart Stalker SQL Server DTS 2 October 12th, 2006 03:42 AM
XSLT and SELECT with a specfic date range pallone XSLT 15 May 8th, 2006 12:41 PM
SELECT LIKE on DATE fields borami Classic ASP Databases 2 March 16th, 2004 11:43 AM
SELECT LIKE on DATE fields borami Classic ASP Databases 0 March 16th, 2004 08:20 AM
date select c_capo Classic ASP Databases 3 June 5th, 2003 09:25 AM





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