Hi guys i'm having trouble running the below code on an Oracle DB not too sure why - getting ORA-905 error - missing keyword
This works fine on MSSQL and MYSQL.
Any indication as to how to fix will be much appreciated.
Cheers.
SELECT product.productId, product.version
FROM product
INNER JOIN (SELECT productId,
MAX(version) AS MaxVersion
FROM product
GROUP BY productId) AS vTbl ON product.productId= vTbl.productId
AND product.version= vTbl.MaxVersion