?
Solved

Informix and DATE function.

Posted on 2001-07-29
3
Medium Priority
?
4,025 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 200 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

Prepare for your VMware VCP6-DCV exam.

Josh Coen and Jason Langer have prepared the latest edition of VCP study guide. Both authors have been working in the IT field for more than a decade, and both hold VMware certifications. This 163-page guide covers all 10 of the exam blueprint sections.

Question has a verified solution.

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

In this blog post, we’ll look at how ClickHouse performs in a general analytical workload using the star schema benchmark test.
In this article, we’ll look at how to deploy ProxySQL.
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…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses

764 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