Knowledge Walls
Gopal Rao
Mumbai, Maharashtra, India
Passcode:
Like in sql server in Queries of SQL Queries
2228 Views
Hints 
"like" used in where condition with column and values.Opposite to this "not like" also available.

In following example, select emp_no and emp_name where the employee first name contain tt.
If you use like and not like read about wildcards in sql. Example %,_ for different purpose different wilcards are available.
Syntax
select columnName from tableName where columnName like 'value';
Example
Get the employee numbers and last names of all employees whose first names contain two letter t’s.

select emp_no,emp_lname from Empolyee where emp_fname like '%tt%';
  Copyright © 2014 Knowledge walls, All rights reserved
KnowledgeWalls
keep your tutorials and learnings with KnowledgeWalls. Don't lose your learnings hereafter. Save and revise it whenever required.
Click here for more details