At 13:40 2013-10-08, Stephen Russell <[email protected]> wrote:
On Tue, Oct 8, 2013 at 2:56 PM, Gene Wirchenko <[email protected]> wrote:
> What did end up working was creating a aggregate cursor of catx then
> selecting out only what I wanted. I probably lost a good optimisation
> possibility, but I got my answers.
>
> SQL is not very well designed.
No I'll go with user error first.
I will stick with SQL not being very well-designed. For example,
select joincolumn, othercolumn1, othercolumn2;
from tableone join tabletwo;
on tableone.joincolumn=tabletwo.joincolumn;
order by joincolumn
is incorrect, because joincolumn's table has to be specified! But it
is the same value either way!
Saw this start up and got a help ticket, to find poor sql sub-select of
top 1 not sorted properly.
Did you just do a distinct on what was there without a join to get your
proper starting point? Then compare that rowcount against your lookup
table for the descriptions?
No. You saw my query.
Sincerely,
Gene Wirchenko
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/
** All postings, unless explicitly stated otherwise, are the opinions of the
author, and do not constitute legal or medical advice. This statement is added
to the messages for those lawyers who are too stupid to see the obvious.