IWETHEY v. 0.3.0 | TODO
1,095 registered users | 0 active users | 1 LpH | Statistics
Login | Create New User
IWETHEY Banner

Welcome to IWETHEY!

New Ahh, ok
In the misty recesses of my memory I seem to recall seeing that if you deined the calculation twice in the same query it had to execute the query twice, and that aliasing it and referring to the alias was better. But now I'm thinking that involved HAVING clauses.

[Edit]: And BTW I was reading the code closely, the explanation not so much. So I missed that. Though since you didn't notice until you went back a third time, I'll say it wasn't that obvious anyway. :-P
===

Implicitly condoning stupidity since 2001.
Collapse Edited by drewk Sept. 25, 2003, 12:02:00 PM EDT
Ahh, ok
In the misty recesses of my memory I seem to recall seeing that if you deined the calculation twice in the same query it had to execute the query twice, and that aliasing it and referring to the alias was better. But now I'm thinking that involved HAVING clauses.
===

Implicitly condoning stupidity since 2001.
     group-by on calculated columns not direct - (tablizer) - (17)
         The other way to do it... - (ChrisR) - (16)
             Another way to put it, is... - (CRConrad) - (4)
                 Don't think that was the problem - (drewk) - (2)
                     Same thing; a calculation IS a "virtual column". - (CRConrad) - (1)
                         Ahh, ok - (drewk)
                 I got wrong alias format - (ChrisR)
             Hmmmm. Thot I tried that - (tablizer) - (10)
                 The proviso being.... - (ChrisR) - (9)
                     That is less of a pain if you build the query dynamically - (ben_tilly) - (8)
                         Or, if you do it manually, good ol' copy-and-paste. -NT - (CRConrad)
                         That would presume Dynamic SQL - (ChrisR) - (6)
                             I think Ben meant, and Bryce would use, a programming... - (CRConrad) - (5)
                                 Right, that or... - (ben_tilly) - (4)
                                     Or, get rid of SQL - (tablizer) - (3)
                                         update - (tablizer) - (2)
                                             The other alternative is... - (ChrisR) - (1)
                                                 I asked for a view to be created, but was immed. rejected - (tablizer)

Debian is Sex.
47 ms