GeekInterview.com
Answered Questions

$ & $$ in mapping or parameter file

Asked By: SayanSaha | Asked On: Sep 9th, 2008

What is the difference between $ & $$ in mapping or parameter file? In which cases they are generally used?

Star Read Best Answer

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

Answered by: SEHAJ on: Aug 18th, 2011

$-This is d symbol for server o inbuilt variable.

$$-this is the symbol for the variables o parameters which v create

Answered by: sweetmann27 on: Aug 10th, 2011

Hi,

$ is session parameter e.g $DBConnection
$$ is mapping parameter/variable e.g $$LASTRunDate

Thanks

When we create a target as flat file and source as Oracle.. How can I specify first rows as column names in flat files...

Asked By: cholleti | Asked On: Jul 24th, 2006

Answered by: Sumanth on: Aug 3rd, 2011

In session properties use the header option and select header output field name

Answered by: Rakesh on: Jul 28th, 2011

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

Asked By: Interview Candidate | Asked On: Aug 29th, 2004

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

Answered by: bhavikgore on: Oct 27th, 2012

This will work for only highest salary n=1 but not work for 2nd and rest nth salary...
Did you have tried this?

Answered by: rohitosu on: Jul 30th, 2012

Code
  1.  SELECT * FROM  (SELECT employee_id, salary, dense_rank() OVER ( ORDER BY salary DESC)  r
  2.   FROM employees) a
  3.   WHERE a.r =3 ;

Interview Question

 Ask Interview Question?

 

Career Counselling

 Have Career Question?

 Ask Chandra

 Ask Only Career questions.

Follow us: