what operator performs pattern matching?

Answer Posted / rajendra prasad reddy penumall

'Like' operator is a pattren matching operator.

Eg;
select name from class where name like 'a%'

selecting names starting with letter 'a' and any length

select name from class where name like '_a%'
selecting names starting with second with letter 'a' and
any length.
select name from class where name like '[abc]%'
selecting names starting with first letter 'a'or 'b'
or 'c' and any length.

select name from class where name like '[^abc]%'
selecting names except starting with first letter with
letter 'a'or 'b' or 'c' and any length.

Is This Answer Correct ?    8 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain iaas, paas and saas?

86


Define cross join in sql server joins?

752


What new changes are being made in SQL Server?

776


What is db stored procedure?

616


How to enter comments in transact-sql statements?

713






How do I change my passwords (database, LDAP, and so on) without causing an outage?

785


What is hierarchy, what are its types and difference between them? : sql server analysis services, ssas

919


Suppose you want to implement the many-to-many relationships while designing tables. How would you do it?

718


Differentiate between delete and truncate.

749


What are the new features of sql server 2012 reporting service?

99


How do you start single user mode in clustered installations?

709


Why should you use or avoid select * statements?

735


What is user defined datatypes and when you should go for them?

769


What are the advantages of using stored procedures in sql server?

699


What is cursors?

810