Solved

Informix and DATE function.

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

Enroll in June's Course of the Month

June’s Course of the Month is now available! Experts Exchange’s Premium Members, Team Accounts, and Qualified Experts have access to a complimentary course each month as part of their membership—an extra way to sharpen your skills and increase training.

Question has a verified solution.

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

This article shows the steps required to install WordPress on Azure. Web Apps, Mobile Apps, API Apps, or Functions, in Azure all these run in an App Service plan. WordPress is no exception and requires an App Service Plan and Database to install
A Stored Procedure in Microsoft SQL Server is a powerful feature that it can be used to execute the Data Manipulation Language (DML) or Data Definition Language (DDL). Depending on business requirements, a single Stored Procedure can return differe…
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…
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…

691 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