Hi all,
There is the following query in Oracle fetching 11 rows. In Teradata this sql gives error with the message ' SELECT Failed: 3706: Syntax error: expected something between '+' and ')'.
How this query could be translated into Teradata syntax please. In Oracle (+)= is used for kind of outer join. I searched and tried some but not successful. Will appreciate your help.
SELECT DISTINCT C.CLASS2ID , C.DESCRIPTION
FROM CLASS2 C, PRODUCT P, PRODUCT_LOCATION PDL
WHERE
P.CLASS1ID = C.CLASS1ID
AND C.CLASS1ID = '00009'
AND PDL.LOCATIONTYPE (+) = 'S00002'
AND PDL.LOCATIONID (+) = 'S00002'
AND PDL.PRODUCTNUMBER (+) = P.PRODUCTNUMBER
AND NVL(PDL.STATUS(+), P.STATUS) = 2
ORDER BY C.Description
thanks
saj
There is the following query in Oracle fetching 11 rows. In Teradata this sql gives error with the message ' SELECT Failed: 3706: Syntax error: expected something between '+' and ')'.
How this query could be translated into Teradata syntax please. In Oracle (+)= is used for kind of outer join. I searched and tried some but not successful. Will appreciate your help.
SELECT DISTINCT C.CLASS2ID , C.DESCRIPTION
FROM CLASS2 C, PRODUCT P, PRODUCT_LOCATION PDL
WHERE
P.CLASS1ID = C.CLASS1ID
AND C.CLASS1ID = '00009'
AND PDL.LOCATIONTYPE (+) = 'S00002'
AND PDL.LOCATIONID (+) = 'S00002'
AND PDL.PRODUCTNUMBER (+) = P.PRODUCTNUMBER
AND NVL(PDL.STATUS(+), P.STATUS) = 2
ORDER BY C.Description
thanks
saj