|
|
Archives of the TeradataForum
Message Posted: Thu, 06 Mar 2008 @ 23:24:37 GMT
Subj: | | Re: Teradata Query with Subselect |
|
From: | | Michael Larkins |
Kishore:
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.
Regards,
Michael Larkins
Certified Teradata Master
Certified Teradata SQL Instructor
| |