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.)

Using Analytic Functions in an ODI Interface | image - 1
Adnan Ersöz22 August 2013
The source of this content is https://aersoz.wordpress.com.
© 2026 KDS Data. All rights reserved.