What keyword does an SQL SELECT statement use for a string
search?

Answers were Sorted based on User's Feedback



What keyword does an SQL SELECT statement use for a string search?..

Answer / sunil1405

SELECT FNAME WHERE FNAME LIKE 'S%';

Is This Answer Correct ?    6 Yes 0 No

What keyword does an SQL SELECT statement use for a string search?..

Answer / kirtish srivastava

Like is used with where clause to search,update, and delete a record using wild cards.

Example:-
To Search;-

select * from Employee where Name like 'a%'

Note;- Search all records whose employee name is stared from a character.

To Update:-

update Employee set Name='amit' where Name like 'a%'

update all records with name amit whose employee name is started from a character.

To Delete:-

delete from Employee where Name like 'a%'

Delete all records whose employee name is started from a Character.

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More DB2 Interview Questions

How does one bind 2 versions of a CICS transaction with the same module name in two different CICS regions that share the same DB2 subsystem?

2 Answers  


What is db2 command?

0 Answers  


what is + sign and -ve sign for sql code ?

1 Answers   TCS,


What is db2 isolation?

2 Answers  


What is null indicator in cobol db2?

0 Answers  






Give a brief description of db2 isolation levels?

0 Answers  


Is the primary key a clustered index?

0 Answers  


Can a unique index have more than one null value? If not, what error code is given if an attempt is made to insert more than one null value?

3 Answers  


What is the physical storage length of the data types: date, time, timestamp in the db2 database?

0 Answers  


What are types of indexes?

0 Answers  


What is commit in db2?

0 Answers  


What is the STOSPACE Utility used for?

1 Answers  


Categories