dbTalk Databases Forums  

Help : D3 SQL and DATE datatype

comp.databases.pick comp.databases.pick


Discuss Help : D3 SQL and DATE datatype in the comp.databases.pick forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
skypirate
 
Posts: n/a

Default Help : D3 SQL and DATE datatype - 02-24-2006 , 11:47 PM






Hi,

I have tried many different ways but is still not able to extract the
data by date range.. >.<

What should I need to define in the Dictionary and what SQL syntax
should I use?

Many Thx.

Rgds,


Reply With Quote
  #2  
Old   
Mark Brown
 
Posts: n/a

Default Re: Help : D3 SQL and DATE datatype - 02-25-2006 , 02:06 AM






SQL-CREATE-TABLE test order.date=DATE

SELECT * FROM test WHERE order.date >= #01/01/06# and order.date <=
#03/01/06#

IIRC, the syntax #date# internalizes the date whereas "date" does a string
compare

Make sure the D3 dictionary has a D conversion in attr 7, not attr 8.

The D3 SQL engine should internalize date comparisons (pick internal, not
windows).

You can test by running D3ODBCSV in a foreground window. (D3ODBCSRV for
*nix)
You should see the SQL query and see just what's being passed as a
parameter.

Mark Brown

"skypirate" <singdad (AT) singdad (DOT) no-ip.com> wrote

Quote:
Hi,

I have tried many different ways but is still not able to extract the
data by date range.. >.

What should I need to define in the Dictionary and what SQL syntax
should I use?

Many Thx.

Rgds,




Reply With Quote
  #3  
Old   
Cliff
 
Posts: n/a

Default Re: Help : D3 SQL and DATE datatype - 02-25-2006 , 05:35 PM



I am not sure what you are using by WinSQL is an excellent tool for
testing SQL statements with D3


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.