Search the web
Sign In
New User? Sign Up
qodbc · QODBC ODBC Driver for QuickBooks
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want your group to be featured on the Yahoo! Groups website? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Using Date Fields on where clause   Message List  
Reply | Forward Message #1341 of 1354 |
Re: [qodbc] Re: Using Date Fields on where clause

the date format can vary depending on the tool you are using, it
should be listed in the SQL/ODBC syntax of your product
documentation.

or as i said last time, export the data and view the date format, and
copy this as an example.

brad

On Thu, Dec 25, 2008 at 3:47 AM, Robert <rob_jurado@...> wrote:
> Oh... my mistake on my copy-paste.
>
> Actaully it is like this
>
> "SELECT Top 10* FROM Customer where ModifiedTiem > '2008-12-22'"
>
> but it still gives me the same error.
>
> Any ideas
>
> --- In qodbc@yahoogroups.com, Brad <bradwww@...> wrote:
>>
>> you need something on the left side of the comparison, like this:
>>
>> "SELECT Top 10* FROM Customer where customer.date > '2008-12-22'"
>>
>> to see the date format, run a select * from customer
>>
>> brad
>>
>> On Wed, Dec 24, 2008 at 11:53 PM, Robert <rob_jurado@...> wrote:
>> > Does anyone know the syntax for date fields on the where clause?
>> >
>> > I am trying to query this:
>> >
>> > "SELECT Top 10* FROM Customer where > '2008-12-22'"
>> >
>> > but it is giving me the following error:
>> > ERROR [S0000] [QODBCPOS] Invalid operand for operator: >
>> >
>> > Thank you.
>> >
>> >
>>
>>
>>
>> --
>> Brad Waddell, Managing Director
>> FLEXquarters.com Limited
>> Skype: bradwww
>>
>
>



--
Brad Waddell, Managing Director
FLEXquarters.com Limited
Skype: bradwww



Wed Dec 24, 2008 7:51 pm

flexq
Offline Offline
Send Email Send Email

Forward
Message #1341 of 1354 |
Expand Messages Author Sort by Date

Does anyone know the syntax for date fields on the where clause? I am trying to query this: "SELECT Top 10* FROM Customer where > '2008-12-22'" but it is...
Robert
rob_jurado
Offline Send Email
Dec 24, 2008
6:57 pm

you need something on the left side of the comparison, like this: "SELECT Top 10* FROM Customer where customer.date > '2008-12-22'" to see the date format,...
Brad
flexq
Offline Send Email
Dec 24, 2008
7:12 pm

Oh... my mistake on my copy-paste. Actaully it is like this "SELECT Top 10* FROM Customer where ModifiedTiem > '2008-12-22'" but it still gives me the same...
Robert
rob_jurado
Offline Send Email
Dec 24, 2008
7:50 pm

the date format can vary depending on the tool you are using, it should be listed in the SQL/ODBC syntax of your product documentation. or as i said last...
Brad
flexq
Offline Send Email
Dec 24, 2008
7:51 pm

and again, I misspelled it.... it is "ModifiedTime". The problem still is cause by the operant ">" (or any) so I am thinking that the format is different....
Robert
rob_jurado
Offline Send Email
Dec 24, 2008
7:54 pm

the most common date format is this one: DateFrom = {d'2007-01-01'}, DateTo= {d'2008-01-01'} i found this by doing a search of our web support system from ...
Brad
flexq
Offline Send Email
Dec 24, 2008
7:57 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help