[Q] Redundant Calculations
Posted in 1995
Ajay Chitale — — source: Informix-list mailing list archive (1991-1998)
Is informix engine capable of detecting redundant calculations. e.g. I have 3 integer fields f1,f2,f3 in my table schema. My select statement looks something like this - SELECT SUM(f1) + SUM(f2), SUM(f1) + SUM(f2) FROM <table> WHERE ... GROUP BY ... My needs are different but in initial stage i have to do this processing. My question is - Will SUM(f1) + SUM(f2) be done twice or only once. If possible please email me. -- ajay chitale +email: achit@puma.miel.mot.com +voice: 91-80-2278545