db2HelpNeeded
Technical User
Hello,
looking for help in trying to run an inline view and then doing a select * off of that inline view. Something like this... but this gives me an error
SELECT * FROM (SELECT D.OID, A.DATEVALUEX AS SortValue
FROM DOCUMENTS D LEFT OUTER JOIN ATTRIBUTES A ON D.OID=A.DocumentOID AND A.AttributeDefOID=955
WHERE STATUSX=0 ORDER BY SortValue DESC)
fetch first 100 rows only
looking for help in trying to run an inline view and then doing a select * off of that inline view. Something like this... but this gives me an error
SELECT * FROM (SELECT D.OID, A.DATEVALUEX AS SortValue
FROM DOCUMENTS D LEFT OUTER JOIN ATTRIBUTES A ON D.OID=A.DocumentOID AND A.AttributeDefOID=955
WHERE STATUSX=0 ORDER BY SortValue DESC)
fetch first 100 rows only