Basically i have a set of fields that user can search by. so i write a query of the form:
SELECT *
FROM my_addr_vw
WHERE fname LIKE :l_fname
AND mname LIKE :l_mname
AND lname LIKE :l_lname;
When user does not pass any value to any of the criteria, i assume a '%'.
What that does is, if a record had NULL or no value in say, mname - then the record drops off.... What is a good solution to this problem of NULL matches nothing!!