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

What are the advantages of user-defined functions over stored procedures in sql server?

472


What is the federation in sql azure?

79


What are the advantages of user defined function?

504


Why would you call update statistics?

597


What is page-level compression?

568






How you can add messages to the nt event log from within a stored procedure?

581


What are the disadvantages of indexes?

542


What is rank function?

614


Explain about remote stored procedure?

595


What Are the Main Features of SQL Azure?

95


What is mean by clustered index and non clustered index, give syntax of creation? : sql server database administration

600


Do you know what is a with(nolock)?

619


What is an execution plan? When would you use it?

587


Explain following error properties?

566


How to receive output values from stored procedures?

489