interval to int 
Author Message
 interval to int

Hi all,

THis should be obvious but I can't find the answer:

how do you convert an interval to an integer ... as in:

select noofweeksvacation from vacation_table where
        yearsservice <= interval (today - startdate) year to year

the column yearsservice is a smallint

i keep getting an error when doing this ...


H. Marc Kneppers                             System Administrator

<a href=" http://www.***.com/ :8001/~knepperm">Marc's temporary Home</a>
        "My mom says I'm cool" - Milhouse
                        "Kiss my Royal Canadian!!"
                                "Power to the people! Stick it to the man!"

Wed, 18 Jun 1902 08:00:00 GMT
 [ 1 post ] 

 Relevant Pages 

1. select Year from Int where Int.Year >= p_From and Int.Year <= p_To

2. Interval query with missing intervals

3. don't get the decimal value when dividing int by int

4. Converting Bytes(?) to Int / Int to Bytes

5. getValueAt(int row, int column)

6. bug in interval/extract or am I abusing interval()?

7. Commit Interval

8. Deleting records AUTOMATICALLY at specified time intervals

9. Checkpoint Interval

10. Reading in Informix INTERVAL columns

11. The Official Catholic Catechism after an interval of 400-years

12. Group by time dimension, ie 15 minute intervals

Powered by phpBB® Forum Software