in column y record
abc.v
abc.s
xyz.j
abc.h
i wan only abc columns
how to retrieve thi records

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is db2 and what is the use of db2 optimizer?

654


What is a db2 schema?

764


What is netezza database?

573


What is the difference between cursor and select statement?

615


How do you simulate the explain of an embedded sql statement in spufi/qmf?

637






What is the use of dclgen in db2?

588


List out the three types of page locks that can be held.

689


How does db2 sample database connect?

572


What is the maximum size of a char data type in db2?

588


What are the bind parameters ibm db2?

624


How can the firstname and the lastname from the emp table be concatenated to generate complete names?

748


What action db2 takes when a program aborts in the middle of a transaction?

659


What is precompiler in db2?

587


What is iseries database?

597


What is the difference between nvl and coalesce?

604