Use the Following Query To Find The File Version in Oracle ERP
SELECT
AF.APP_SHORT_NAME,
AF.SUBDIR,
AF.FILENAME,
(
SELECT
VERSION
FROM
AD_FILE_VERSIONS AFV
WHERE
AFV.FILE_ID = AF.FILE_ID
AND AFV.FILE_VERSION_ID = (SELECT MAX(AV.FILE_VERSION_ID) FROM AD_FILE_VERSIONS AV WHERE AV.FILE_ID = AF.FILE_ID)
) VERSION_NUMBER
FROM
AD_FILES AF
WHERE
AF.FILENAME IN (
'xlagdf.pkb' ,
'xlagdf.pkh'
)
SELECT
AF.APP_SHORT_NAME,
AF.SUBDIR,
AF.FILENAME,
(
SELECT
VERSION
FROM
AD_FILE_VERSIONS AFV
WHERE
AFV.FILE_ID = AF.FILE_ID
AND AFV.FILE_VERSION_ID = (SELECT MAX(AV.FILE_VERSION_ID) FROM AD_FILE_VERSIONS AV WHERE AV.FILE_ID = AF.FILE_ID)
) VERSION_NUMBER
FROM
AD_FILES AF
WHERE
AF.FILENAME IN (
'xlagdf.pkb' ,
'xlagdf.pkh'
)
No comments:
Post a Comment
Thanks for making a comment.