Solved

Informix and DATE function.

Posted on 2001-07-29
3
3,977 Views
Last Modified: 2008-02-01
I stored a date as string in sqlserver datable. Later i change my database to INFORMIX using same data. Now the same string is stored informix.  Now i need to retrive records for a perticural period of time till current date.

i dont know much about sql syntax in informix....and functions...can anyone send me a query for this.....

A similiar sql syntax is here:-
-----------------------------

Select * ABC where name = "vinay" and  Convert(datetime,tdate) between dateadd("mm","3",getdate()) and getdate() order by tdate";



0
Comment
Question by:vinaykn
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 

Author Comment

by:vinaykn
ID: 6336565
Can anyone give someattention to it?
0
 

Author Comment

by:vinaykn
ID: 6339578
Nobody answered it...
0
 

Accepted Solution

by:
earthman1968 earned 50 total points
ID: 6785475
Not sure of what your trying to do on SQLSERVER. But you need to use the DATE() function in Informix. You may also need to use the INTERVAL functions if you are wanting data for a date range.

Check out the manuals on the informix web-site (www.informix.com)
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Creating and Managing Databases with phpMyAdmin in cPanel.
When it comes to protecting Oracle Database servers and systems, there are a ton of myths out there. Here are the most common.
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

732 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question