Tuesday, September 18, 2018

How to use Like in SQL different ways.

How to use Like in SQL different ways

select * from employee
where account_number like '%'||nvl(:p_cust_no,account_number)||'%'
  and location like'%'||nvl(:p_loc,location)||'%'

No comments:

Post a Comment

SQL Important Queries

  How to delete rows with no where clause The following example deletes  all rows  from the  Person.Person  the table in the AdventureWork...