How to bring all records

To discuss Oracle Forms & Reports related technical issues.
Post Reply
AIMAM
Posts: 139
Joined: Thu May 17, 2007 6:04 am
Location: Egypt

How to bring all records

Post by AIMAM »

hello,

i have the following line in a query:

AND (mmt.ATTRIBUTE1)= NVL(:P _Subject,mmt.ATTRIBUTE1)

It gives me only the not null "mmt.ATTRIBUTE1" records when the parameter is not entered.

How can i modify this in order to bring all the records even where the column mmt.ATTRIBUTE1 is NULL

Thank you..
crom
Posts: 4
Joined: Thu Mar 08, 2007 9:11 am
Location: Croatia
Contact:

Post by crom »

Hello,

try this:

and nvl(mmt.attribute,'!!') =
nvl(:p_subject,nvl(mmt.attribute,'!!'))

I hope it helps !
Post Reply

Who is online

Users browsing this forum: No registered users and 11 guests