When I do a filter in the Datawindow preview mode or in the database
directly using
first_visit BETWEEN '2007-06-30' AND '2009-07-01'
it works OK (Frst_visit is the column name, we are using British date
formats (dd/mm/yy)
but the same if done in Query mode at runtime generates an error ("Cannot
covert '2009-' to a timestamp". Changing the format to any other or even
adding the Function Date ie
BETWEEN Date('30/06/2007') AND date('01/07/2009')
results in a simlar error (cannot convert '01/07/200' to a Timestamp
In both if we notice the complete string is missing
Of course use of >'30/06/07' In one row and <'01/07/09' in the next
retrieves all the rows as the interlinking critieria is taken as OR for the
two rows
What may I be doing wrong??
TIA
You must use the ANSI standard yyyy-mm-dd.
That is how all dates in DBMS are stored internally.
--
Regards ... Chris
ISUG - NA RUG Director
http://chrispollach.pbdjmagazine.com
"S B Gogia" <gog...@gmail.com> wrote in message
news:4a5a9c67$2...@forums-3-dub.sybase.com...
regards
"Chris Pollach" <cpol...@travel-net.com> wrote in message
news:4a5b18fa$1...@forums-3-dub.sybase.com...
BETWEEN '2007-06-30 00:00:00' AND '2009-07-01 23:59:59'
See if that helps your aligning DML processor! :-)
"S B Gogia" <gog...@gmail.com> wrote in message
news:4a5f50db$1...@forums-3-dub.sybase.com...