Normally LIKE statement is used to check the pattern like data.
LIKE
example:
select * from table1 where name like \'ar%\'
SQL SERVER
WHERE ColumnName LIKE '%'+ColumnName+'%'