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

Welcome to IWETHEY!

New Can we get our stories straight :-) ?
After digging through 2+ page long dense queries with multiple layers of subselects, stupid naming conventions, and capitalization schemes adopted from ransom notes, I've concluded that database technology should be restricted to those who can pass basic competency tests.

Anyhow, any details on what made it different?




.....To the future or to the past, to a time when thought is free, when men are different from one another and do not live alone -- to a time when truth exists and what is done cannot be undone:
.....From the age of uniformity, from the age of solitude, from the age of Big Brother, from the age of doublethink -- greetings!

     -- George Orwell, 1984
New I don't remember the exact bug
But we did open a ticket with Oracle about it. And I think that it turned out to have been fixed in the next version.

Incidentally on queries, ever had the fun yet of writing a query which is supposed to have output documenting the reasons for the decision that it made?

Cheers,
Ben
"good ideas and bad code build communities, the other three combinations do not"
- [link|http://archives.real-time.com/pipermail/cocoon-devel/2000-October/003023.html|Stefano Mazzocchi]
New Incidentally, yes
Multiple left join to the same table, and a big case statement in the field list that will return a flag indicating which of the joins actually had a match. Would have been so much easier with a subselct or stored procedure, but hey, we're a MySQL shop here.
===

Implicitly condoning stupidity since 2001.
New A real pain, innit?
I have a couple of "disaster queries" with that requirement. I build them up with lots of interpolation so that as conditions change, I am sure that they change the same way in the WHERE, a CASE statement in the SELECT, and the corresponding CASE statement in the GROUP BY. :-(

Cheers,
Ben
"good ideas and bad code build communities, the other three combinations do not"
- [link|http://archives.real-time.com/pipermail/cocoon-devel/2000-October/003023.html|Stefano Mazzocchi]
New Nah, the *real* pain is ...
The one with a table left joined to itself multiple times, and a triple-nested CASE in the field list. Don't even ask why.
===

Implicitly condoning stupidity since 2001.
New I won't...
I'll just comment that with a sane table design, there should be no reason to ever go there. (Of course I know how the real world works...)

Cheers,
Ben
"good ideas and bad code build communities, the other three combinations do not"
- [link|http://archives.real-time.com/pipermail/cocoon-devel/2000-October/003023.html|Stefano Mazzocchi]
     select unique in oracle same as select distinct in postgres? -NT - (tuberculosis) - (9)
         Yes. - (admin) - (1)
             I didn't even know there WAS a "SELECT UNIQUE" in Oracle... -NT - (CRConrad)
         No - (ben_tilly) - (6)
             Can we get our stories straight :-) ? - (tuberculosis) - (5)
                 I don't remember the exact bug - (ben_tilly) - (4)
                     Incidentally, yes - (drewk) - (3)
                         A real pain, innit? - (ben_tilly) - (2)
                             Nah, the *real* pain is ... - (drewk) - (1)
                                 I won't... - (ben_tilly)

If the answer to your question starts with, "Well ... ", you're not going to like what comes next.
88 ms