![]() |
|
Archives of the TeradataForumMessage Posted: Fri, 07 Jun 2002 @ 13:00:45 GMT
How about some thing like this:
SELECT
table1.ID
DERIVED_TABLE.Y
FROM
(
SELECT distinct id,
description FROM table2
) AS DERIVED_TABLE(X, Y)
INNER JOIN table1 ON DERIVED_TABLE.X = table1.id
God Luck!
| ||||||||||||||||||||||||||||||||||||||||||||||||
| | ||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||
|
| ||||||||||||||||||||||||||||||||||||||||||||||||
| Copyright 2016 - All Rights Reserved | ||||||||||||||||||||||||||||||||||||||||||||||||
| Last Modified: 15 Jun 2023 | ||||||||||||||||||||||||||||||||||||||||||||||||