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
What is the physical storage length of the data types: date, time, timestamp in the db2 database?
What are db2 tables?
What is bind in db2?
List down the types of triggers in the db2 database?
What are the various isolation levels possible?
Before you give the explain statement, what are the prerogatives?
What is the difference between db2 and oracle?
How to retrieve rows from a db2 table in embedded sql?
How many databases are there?
How does cobol compile db2 program?
What is syscat in db2?
How to find the number of rows in db2 tables?
What is the clustering index in the db2 database?
I have a subprogram B calling from mainprogram A.I have opened a cursor in A ,Can i fetch the same cursor in subprogram B , If yes , Please explain the reason?
How is a typical db2 batch pgm executed?