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 a plan and package in db2?
ther r 2 tables OTTABLE & SALTABLE, add the otamt from OTTABLE to empsal of SALTABLE if eid is matched else add the unmatched from OTTABLE to SALTABLE
What is a buffer pool?
Cursors can be declared in both working-storage & procedure division, agreed. But is there any difference? If could you please suggest what is the difference
How do u achieve record level locking in DB2 versions when record level locking is not allowed?
Explain the function of data manager.
Can SQL statements/queries be included in a copybook?
How can we read records for specific member in CL? AND rpg?
Which DB2 catalog tables are used to produce a list of table column by table for all tables in a database?
Compare a subselect to a join?
What is universal database?
What are the uses of db2 optimizer?