×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Interbase data type: DATE

Interbase data type: DATE

Interbase data type: DATE

(OP)
I'm new with InterBase database. I'm try to write ASP to get data from InterBase 5.x.

When I used this command in ASP, IBAdmin, IBAccess and IBView, it wouldn't show data but I know for fact that that data is in the database:

SELECT *
FROM PATIENT INNER JOIN VISIT ON PATIENT.PATIENTID=VISIT.PATIENTID
WHERE VISIT.LASTMODIFIED = '4/10/2002'

I read in the book, it sound like correct but I do not know why the data not show up.

Please help,

CM

RE: Interbase data type: DATE

What about "10/4/2002" - this is IB5, right? Do understand that the DATE field holds a time piece as well. Filter that off with an UDF.

Martijn Tonies
InterBase Workbench - the developer tool for InterBase and Firebird
http://www.interbaseworkbench.com

RE: Interbase data type: DATE

(OP)
It's suppose to be April 10, 2002. Will IB5 date format be difference? That field is TIMESTAMP type.

I actually want to use that query on ASP. I don't know much about Interbase. What's UDF anyway? Can I use it on ASP?

Please advice

RE: Interbase data type: DATE

An UDF is a User Defined Function. You can write a DLL in your favourite language and make it available to InterBase. Then, you can do things like:

select F_StripTime(MyDateColumn)
from mytable

etc - you might want to check out www.ibphoenix.com for more information and some links to a couple of free-ware UDF libraries.

Martijn Tonies
InterBase Workbench - the developer tool for InterBase and Firebird
http://www.interbaseworkbench.com

RE: Interbase data type: DATE

(OP)
I finally used command:
WHERE VISIT.LASTMODIFIED >= '4/10/2002' AND VISIT.LASTMODIFIED < '4/11/2002'

Then it's work. But thank you anyway.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close