If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Informix > Hi All Of You! Please Help Me!

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-07-04, 06:14
spandan_kiran spandan_kiran is offline
Registered User
 
Join Date: Aug 2004
Posts: 5
Hi All Of You! Please Help Me!

Nobody is there in these forums to solve my problem... please help me.
Please Give me one example using month function, Using month function Month(some date) will give that month how we can diffretiate that..
My problem is, i had two years of applications(in that i have to fetch below three months pending, more than three months pending, more than six month pending) How can do that please help me....show one example..Data type is DATE
Reply With Quote
  #2 (permalink)  
Old 10-12-04, 02:59
supinformix supinformix is offline
Registered User
 
Join Date: Apr 2004
Location: Brussels
Posts: 57
I didn't very good understand your problem.
Could these examples with month() resolves it ?

export DBDATE=MDY4/
dbaccess sysmaster -
Database selected.
> create table AA (a date );
Table created.
> insert into AA (a) values ('10/12/2004');
1 row(s) inserted.
> insert into AA (a) values ('12/1/2004');
1 row(s) inserted.
> select month(a) from yds1 ;
(expression)
10
12
2 row(s) retrieved.
> select month(a)+3 from AA ;
(expression)
13
15
2 row(s) retrieved.
>select * from AA where month(a)-3=7;
a
10/12/2004
1 row(s) retrieved
>select * from AA where month(a + 3 units month) = 1 ;
a
10/12/2004
1 row(s) retrieved.
__________________
Yves & Willy
Reply With Quote
  #3 (permalink)  
Old 10-13-04, 06:26
supinformix supinformix is offline
Registered User
 
Join Date: Apr 2004
Location: Brussels
Posts: 57
Hi,

for a full and clear and short explanation about date functions with examples look at :
http://gethelp.devx.com/techtips/inf...0min1000-1.asp

(very slow site, but extr. good pages)
__________________
Yves & Willy
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On