in column y record
abc.v
abc.s
xyz.j
abc.h
i wan only abc columns
how to retrieve thi records
Answers were Sorted based on User's Feedback
Answer / madhu t
select Y from <table> where substr(y,1,3) = 'abc'
we can achieve this by using substring function in sql.
SUBSTR(column-name,starting-position,length)
Is This Answer Correct ? | 12 Yes | 0 No |
what is the syntax for FOR UPDATE CLAUSE in cursor declaration and how can u update using cursor? is it possible to update multiple rows at a time.
Where is the access path logic created by the DB2 Optimizer stored?
Do we have any optinon to search part of integer in DB2 as we have for character Like,SUBSTR optins?
How does a cursor work?
How will you delete duplicate records from a table?
On the create tablespace, what does the CLOSE parameter do?
What is db2 isolation?
How is deadlock resolved?
What are the contents of a DCLGEN?
How do you simulate the EXPLAIN of an embedded SQL statement in SPUFI/QMF? Give an example with a host variable in WHERE clause)
what is the use of bind parameter, Replace?
what is the process of precompiler?