Archives of the TeradataForum
Message Posted: Thu, 06 Mar 2008 @ 23:24:37 GMT
You can only put a subselect in a WHERE or a FROM. When it is used in the WHERE as a subquery, it allows for a comparison to determine which rows from the main select to return. When written in the FROM it is a derived table and columns can be selected and joined from it.
However, as other people have indicated, there is no need for you to use a sub-select when writing it as a normal JOIN works just fine.
|Copyright 2016 - All Rights Reserved|
|Last Modified: 28 Jun 2020|