select customer_id, cust_last_name||', '||cust_first_name name, cust_address from customers where (customer_id=:p_custId and :p_custId is not null) or (customer_id=(select min(customer_id) from customers where upper(cust_last_name) like upper(:p_searchString)) and :p_custId is null)