Forum Discussion
You can add an output view to the Execute snap and use the following in your SQL Statement:
select sysdate as “P_SNAP_DATE” from dual
This will product an output field from the snap as “P_SNAP_DATE” with the current timestamp.
Or, you could do the same thing in a Mapper snap and use Date.now() as the expression.
- dipanjan_pan5 years agoNew Contributor
Thanks a lot @viktor_n …it works
Hi Dipanjan,
You can use the string method charCodeAt
e,g
($Column1.toLowerCase().charCodeAt(0) - 97) + 1
I’m not understanding your example. If Column 2 is supposed to be your rownum() value, why wouldn’t the values be 1, 2, 3, 4, 5 instead of 1, 1, 1, 2, 3?
- dipanjan_pan5 years agoNew Contributor
rownum based on some partition by column. In this case I want the output based on column 1. thats why it is 1,1,1,2,3
Related Content
- 3 years ago
- 8 years ago
- 2 years ago