$ & $$ in mapping or parameter file
What is the difference between $ & $$ in mapping or parameter file? In which cases they are generally used?
In session properties use the header option and select header output field name
This is a way in informatica itself, follow the below step
In session level, click Edit - > Mapping - > select the tgt file - > goto Header Option -> select 'Output Filed Names'
We are done... u ll find the header names in the flat file. :)
cheers
Rakesh
Find out nth highest salary from emp table
Select distinct (a.Sal) from emp a where &n = (select count (distinct (b.Sal)) from emp b where a.Sal < = b.Sal);for eg:-enter value for n: 2sal---------3700
This will work for only highest salary n=1 but not work for 2nd and rest nth salary...
Did you have tried this?
Code
SELECT * FROM (SELECT employee_id, salary, dense_rank() OVER ( ORDER BY salary DESC) r FROM employees) a WHERE a.r =3 ;
Editorial / Best Answer
Answered by: anshu.gangwar
View all answers by anshu.gangwar
Member Since Sep-2008 | Answered On : Sep 30th, 2008
$ prefixes are used to denote session Parameter and variables and $$ prefixes are used to denote mapping parameters and variables
$-This is d symbol for server o inbuilt variable.
$$-this is the symbol for the variables o parameters which v create
Hi,
$ is session parameter e.g $DBConnection
$$ is mapping parameter/variable e.g $$LASTRunDate
Thanks