Re: [GENERAL] Problem with date calculations

2004-01-10 Thread Cornelia Boenigk
Hi Stephan Thank you > d1 + dur * interval '1 month' works ;-) Regards Conni ---(end of broadcast)--- TIP 8: explain analyze is your friend

Re: [GENERAL] Problem with date calculations

2004-01-10 Thread Stephan Szabo
On Sat, 10 Jan 2004, Cornelia Boenigk wrote: > I have a table with two fields, d1 timestamp and dur smallint. > d1 is the starting date and dur is the duration. From this two fields > I want to generate future dates for the whole table. I'd suggest using something like: d1 + dur * interval '1 m

[GENERAL] Problem with date calculations

2004-01-10 Thread Cornelia Boenigk
Hi alltogether I have a table with two fields, d1 timestamp and dur smallint. d1 is the starting date and dur is the duration. From this two fields I want to generate future dates for the whole table. There is no problem with queries where a number for the duration is given. test=# select d1,dur,