Solved

Informix and DATE function.

Posted on 2001-07-29
3
3,884 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
  • 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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

In today’s complex data management environments, it is not unusual for UNIX servers to be dedicated to a particular department, purpose, or database.  As a result, a SAS® data analyst often works with multiple servers, each with its own data storage…
Many companies are looking to get out of the datacenter business and to services like Microsoft Azure to provide Infrastructure as a Service (IaaS) solutions for legacy client server workloads, rather than continuing to make capital investments in h…
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…

708 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now