Re: [GENERAL] Pass age function to extract function

2011-05-02 Thread Rick Genter
Try removing the keyword "interval" (i.e., EXTRACT(MINUTE FROM TestRunTime)). Since TestRunTime is a column name, I think if you wanted to cast it as an INTERVAL you'd specify EXTRACT(MINUTE FROM TestRunTime::INTERVAL), but since TestRunTime is already an INTERVAL, the cast is redundant. On Mon, M

[GENERAL] Pass age function to extract function

2011-05-02 Thread Adam Bruss
Hello, How can one pass a non string literal interval to the extract function? For example: SELECT starttime, extract(minute from interval testruntime) as runtime from ( select age(endtime, starttime) as testruntime, ref_testnames_serial, starttime, endtime, dense_rank() over (order by startti