🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: bit.listserv.sqlinfo
Article #252

Re: query for today .. and after

#252
From: Bruce
Date: Wed, 22 May 2002 20:03
37 lines
2820 bytes
I dont know cold fusion but guess it is choking on the convert/format
see if it have a format function or datepart function

On Mon, 20 May 2002 16:56:24 GMT, "Diamondback"
<diamondback@hotmail.com> wrote:

>I'm running this through ColdFusion, and keep getting an error referencing a
>syntax problem in the query.  Any ideas?
>
>"Bruce" <bruce@Lovingscents.com> wrote in message
>news:j80ieucb04jlrs52lv0dkht6jh56gunqvc@4ax.com...
>> your problem is NOW returns date and time.
>> not sure in MySQL (datepart or convert?) but in  Access:
>> Where event_date >= format(now(),"mm/dd/yyyy")
>>
>> On Fri, 17 May 2002 19:38:39 GMT, "Diamondback"
>> <diamondback@hotmail.com> wrote:
>>
>> >I've got an event database that is starting out in Access, but eventually
>> >will make its way to MySQL. My query (below) performs a simple find for
>all
>> >upcoming events.  My problem is that it leaves out events occuring today.
>I
>> >need a query that will include events occuring for the current day, as
>well
>> >as future events.  Can someone help here?
>> >
>> >SELECT        event_id, event_name, event_date,
>> >                       description, event_time, event_location,
>> >                        city, state, contact, contact_email,
>> >                       contact_phone
>> >FROM            events
>> >WHERE          event_date >= Now()
>> >ORDER BY     event_date, event_name
>> >
>>
>
Technical Details
Message-ID: <fbuneug7uh9c1u9h39jtgf1lucm5k3jk5c@4ax.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!paloalto-snf1.gtei.net!chcgil2-snh1.gtei.net!cpk-news-hub1.bbnplanet.com!news.gtei.net!newsfeed1.cidera.com!Cidera!netnews.com!newsfeed.nyc.globix.net!newsfeed.sjc.globix.net!cyclone-sf.pbi.net!64.245.249.51!sfo2-feed1.news.algx.net!allegiance!news-out.spamkiller.net!propagator2-la!propagator-la!news-in.superfeed.net!uni00nw.unity.ncsu.edu!news!not-for-mail
References: <3%cF8.13668$ek5.8047@nwrddc02.gnilink.net> <j80ieucb04jlrs52lv0dkht6jh56gunqvc@4ax.com> <YU9G8.9864$Ou5.8492@nwrddc03.gnilink.net>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11355a,e97c83419e3d415c
X-Google-Attributes: gid11355a,public
X-Google-ArrivalTime: 2002-05-22 13:20:25 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!paloalto-snf1.gtei.net!chcgil2-snh1.gtei.net!cpk-news-hub1.bbnplanet.com!news.gtei.net!newsfeed1.cidera.com!Cidera!netnews.com!newsfeed.nyc.globix.net!newsfeed.sjc.globix.net!cyclone-sf.pbi.net!64.245.249.51!sfo2-feed1.news.algx.net!allegiance!news-out.spamkiller.net!propagator2-la!propagator-la!news-in.superfeed.net!uni00nw.unity.ncsu.edu!news!not-for-mail
From: Bruce <bruce@Lovingscents.com>
Newsgroups: bit.listserv.sqlinfo
Subject: Re: query for today .. and after
Date: Wed, 22 May 2002 16:03:53 -0400
Organization: University of North Carolina at Greensboro
Lines: 38
Message-ID: <fbuneug7uh9c1u9h39jtgf1lucm5k3jk5c@4ax.com>
References: <3%cF8.13668$ek5.8047@nwrddc02.gnilink.net> <j80ieucb04jlrs52lv0dkht6jh56gunqvc@4ax.com> <YU9G8.9864$Ou5.8492@nwrddc03.gnilink.net>
NNTP-Posting-Host: b-loving2.uncg.edu
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Trace: hypatia.uncg.edu 1022097832 21279 152.13.180.14 (22 May 2002 20:03:52 GMT)
X-Complaints-To: postmaster@uncg.edu
NNTP-Posting-Date: Wed, 22 May 2002 20:03:52 +0000 (UTC)
X-Newsreader: Forte Agent 1.91/32.564 trialware