![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi All, I've been shown some code which demonstrates how the usage of aggregate functions on tables prepared by inline selects may produce E_OP03A6. Interestingly in the example I've got, if the inline view is turned into an explicit view and then that view used in the query the problem persists. If the min(difference) is removed then the query is OK. Do this… sql bowtest < load_stuff.sql | \ egrep -e'\<E_[A-Z]{2}[0-9A-F]{4}' | grep -v -e'E_US0AC1' sql bowtest << SQL_END SELECT studyid, MIN(difference) FROM (SELECT a.studyid, SUM(day(a.candidate_date)) difference FROM all_dates a INNER JOIN all_dates a2 ON a.studyid = a2.studyid INNER JOIN extra_data ON a.studyid = extra_data.studyid GROUP BY a.studyid, a.candidate_date) differences GROUP BY studyid; \p\g \q SQL_END _______________________________________________ Info-Ingres mailing list Info-Ingres (AT) kettleriverconsulting (DOT) com http://www.kettleriverconsulting.com...fo/info-ingres |
#3
| |||
| |||
|
#4
| |||
| |||
|
|
Hi Jean-Piere, ** Recommendation: ** Please report this error to technical support. */ I've raised the issue with IngresCorp. Marty ------------------------------------------------------------------------ _______________________________________________ Info-Ingres mailing list Info-Ingres (AT) kettleriverconsulting (DOT) com http://www.kettleriverconsulting.com...fo/info-ingres |
![]() |
| Thread Tools | |
| Display Modes | |
| |