On 04/06/2011 08:54 AM, Christine Penner wrote:
I have to add a number of years to a date field. The years come from another field in the table.Assuming that the field is an int, multiply the value in your years column by a 1-year interval: select ii_purchased + your_interval_field * '1 year'::date as date from inventory_item; Cheers, Steve |