what operator performs pattern matching?

Answers were Sorted based on User's Feedback



what operator performs pattern matching?..

Answer / 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

what operator performs pattern matching?..

Answer / deepak

Pattern matching is used to get the information without
mentioning the full name and by just using the LIKE operator
and just mention the starting letter.

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More SQL Server Interview Questions

Define outer join in sql server joins?

0 Answers  


Define full outer join?

0 Answers  


UPDATE statement can on a single table or on the multiple table?

7 Answers   iGate, TCS,


What are magic tables in sql server?

0 Answers  


What stored procedure would you use to view lock information?

0 Answers  






Write an SQL query if u want to select the data from one block which intern reflects in another block ? thanx,do reply

1 Answers   Covansys,


hi. suppose one person goal is strong knowledge on SQL.... suggest me ...if he learns SQL SERVER or ORACLE? which is best?

7 Answers   Google, TCS, Unisys,


what is nonclustered index

0 Answers  


What is the use of MOVE keyword in restore command

3 Answers   IBM,


system date format is "yy-mm-dd" "select getdate()" ----> 2009-01-24 20:03:28.513 if i write "select dateadd(dd,2,getdate()) ".it returns "2009-01-26 19:59:38.340"...my question is dat could it be possible to retrive da date in da format "26 jan 2009 ...."??

8 Answers  


How to convert a unicode strings to non-unicode strings?

0 Answers  


How to create Clustered Primary Key to table?

2 Answers  


Categories