|
|
Archives of the TeradataForum
Message Posted: Thu, 07 Jun 2001 @ 11:39:12 GMT
Subj: | | Re: Subquery |
|
From: | | Cornelius Meade |
Mats,
I think this query problem is essentially in the same problem domain as the "query conundrum" example I posted to the list yesterday and
I believe you will find that a derived table based solution could also be used for this, as well as for more complex problems of this type.
However the example here does not seem to really need a subquery as I believe a simple join solution could be coded as follows. This seems
overly simple (although I know we've all not seen the forest for the trees from time to time)...Is there something more to this problem that
I am not seeing in your example?
ex:
select ta.a,
tb.b c
from ta,
tb
where ta.a = tb.a ;
| |