Using Analytic Functions in an ODI Interface
Let’s assume we have an insert statement like the one below and want to move this operation into an ODI Interface,
INSERT INTO PERSONEL_SIRALI ( SICIL_NO, AD, SOYAD, UNVAN, SIRA ) SELECT SICIL_NO, AD, SOYAD, UNVAN, ROW_NUMBER() OVER (PARTITION BY P.SICIL_NO ORDER BY P.GUNCELLEMETARIHI DESC) SIRA FROM PERSONEL_UNVAN P
In such cases, the syntax for writing analytic functions in the ODI mapping stage is slightly different.
If the following is written as the mapping for the SIRA column: <?out.print(“ROW_NUMBER”);?>() OVER (PARTITION BY P.SICIL_NO ORDER BY P.GUNCELLEMETARIHI DESC)
the desired result can be obtained. (It is assumed that the alias of the PERSONEL_UNVAN table is defined as P.)

