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

i tried to copy some records from microsoft excel to as-400 physical file through "Bosanova" emulation. Out of 14000 records only 12000 records copies and subsequently programe started to hang. Then, i closed the program forcefully. I did' under stand the problem. Also when i try to compile the physical file it is showing as "The file in use". How to overcome this problem?

0 Answers   TATA,


How to resolve -818 sql code in DB2?

2 Answers   Cap Gemini,


What is dbrm library?

0 Answers  


what is the role of the cursor in db2?

0 Answers  


Which one allows duplicate values Union or Union All ?

3 Answers  






In terms of DB2 indexing, what is the root page?

1 Answers  


What is the difference between TYPE 1 index & TYPE 2 index

1 Answers   IBM,


What does db2 plan contain?

0 Answers  


Hi All, In a Cobol-DB2 program, I am fetching rows from 4 tables using cursor and then based on the a field present in that table, It processes the information accordingly..for example stat-c is one digit field..if stat-c is 'D' then the a row is deleted from table and written those details in to a file. If the stat-c is 'U' then a row is updated (hardcoded what to update)in a table and written those details in to a file. If the stat-c is 'I' then a row is inserted in a table and written those details in to two files. The issue is i have to include the intermediate commits. When an abend occurs, due to commit statement db2 tables will be saved, But there will be lose of file contents. When we resubmitting the job associated with this program there will be insert ,update and delete anomolies to avoid that what measures could be taken?. The intermediate commit is nothing but issuing commit after massive inserts, updates and deletes(sum of 500actions)

1 Answers  


How do I copy a table in db2?

0 Answers  


What is meant by a unit of recovery?

1 Answers  


Explain about rct.

0 Answers  


Categories