![]() |
|
Archives of the TeradataForumMessage Posted: Fri, 11 Mar 2011 @ 09:28:34 GMT
Hi, Could anybody of you please let me know the equivalent Teradata query of below ORACLE query-
SELECT distinct max(irs_name) KEEP (DENSE_RANK LAST
ORDER BY YMDTRANS, extraction_date ) OVER (PARTITION BY IRS_NBR,
BUS_UNIT) AS IRS_NAME, TRIM(IRS_NBR) AS IRS_NBR, BUS_UNIT AS BUS_UNIT
from AMI_STAGE_OWN.IRS_M
ORDER BY IRS_NBR,BUS_UNIT,IRS_NAME
Regards, Ashutosh
| ||||||||||||||||||||||||||||||||||||||||||||||||
| | ||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||
|
| ||||||||||||||||||||||||||||||||||||||||||||||||
| Copyright 2016 - All Rights Reserved | ||||||||||||||||||||||||||||||||||||||||||||||||
| Last Modified: 15 Jun 2023 | ||||||||||||||||||||||||||||||||||||||||||||||||