how to make a parameter optional in the query?

Answers were Sorted based on User's Feedback



how to make a parameter optional in the query?..

Answer / ashok

Through NVL function.

select * from FND_User a
where user_name = nvl(:User_Name, a.user_name)

Is This Answer Correct ?    29 Yes 3 No

how to make a parameter optional in the query?..

Answer / ahmed mazen

select * from fnd_user a
where (a.user_name = :user_name or :user_name is null)

Is This Answer Correct ?    1 Yes 5 No

Post New Answer

More Oracle Apps Technical Interview Questions

Where we can write a PL/SQL code in report triggers?

2 Answers   IBM,


In a table their 20 records.I had update 6 records???How can see and retrieve particular 6 records.i.e.,Latest updated.

10 Answers   HCL, TCS,


What is ment by Global Templates in Oracle.

1 Answers   IBM,


differentiate between intra & inter UOM class conversion with examples.

1 Answers   Scan Steel,


In 11i we didn't have AP_Invoice_Lines Table, but in R12 this table is available, what is reason, advantage?

1 Answers   Accenture,


what is flexfield qualifier?

3 Answers  


What is responsibility?

5 Answers  


what is the difference between procedure and function

3 Answers   Wipro,


what are the difference between oracle discoverer and report6i

1 Answers  


what is organization id

3 Answers  


HOW CAN U KNOW THE STAUS OF PO?

1 Answers   TCS,


What is oracle soa suite and what are its different components?

0 Answers  


Categories
  • Oracle Apps Technical Interview Questions Oracle Apps Technical (547)
  • Oracle Apps Financial Interview Questions Oracle Apps Financial (793)
  • Oracle Apps Manufacturing Interview Questions Oracle Apps Manufacturing (53)
  • Oracle Apps HRMS Interview Questions Oracle Apps HRMS (169)
  • Oracle Apps CRM Interview Questions Oracle Apps CRM (9)
  • Oracle Apps SCM Interview Questions Oracle Apps SCM (141)
  • Oracle Install Base Interview Questions Oracle Install Base (62)
  • Oracle Service Contracts Interview Questions Oracle Service Contracts (101)
  • Oracle Apps AllOther Interview Questions Oracle Apps AllOther (114)