GeekInterview.com
Series: Subject: Topic:
Question: 4 of 47

What is a lexical parameter in reports 6i

Asked by: Interview Candidate | Asked on: May 23rd, 2008
Showing Answers 1 - 2 of 2 Answers
poonamyadav

Answered On : May 31st, 2008

View all answers by poonamyadav

Lexical Parameter is denoted by a symbol &(Amphersend) and is used in WHERE_CLAUSE.
with the help of this parameter we can pass strings.

Yes  3 Users have rated as useful.
  
Login to rate this answer.
mailsudhirn

Answered On : Jun 4th, 2008

View all answers by mailsudhirn

Lexical parameters are used to substitute multiple values at runtime. It can be used in FROM TABLE NAME and in WHERE clause. Usually the lexical parameters are defined in After Parameter Report or in Before Report.  For example:

IF :P_DATE_FROM IS NOT NULL AND :P_DATE_TO IS NOT NULL THEN
      :P_DATE := 'AND  trunc(ccchv.transaction_costed_date) BETWEEN :P_DATE_FROM AND :P_DATE_TO';
ELSE IF
      :P_DATE_FROM IS NOT NULL AND :P_DATE_TO IS NULL THEN
      :P_DATE := 'AND  trunc(ccchv.transaction_costed_date) BETWEEN :P_DATE_FROM AND SYSDATE';
ELSE
      :P_DATE := 'AND 1=1';
END IF;

  
Login to rate this answer.

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

Related Open Questions

Ads

Connect

twitter fb Linkedin GPlus RSS

Ads

Interview Question

 Ask Interview Question?

 

Latest Questions

Interview & Career Tips

Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.