Write a query to extract first 5 characters of a name in the column Stud_Name?

Answer Posted / shubham

select substr(Stud_Name,1,5) from Table;

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is page size in db2?

565


What are concurrency issues?

632


How to test SQL -911 error while developing COB-DB2 program

6721


What are the rules for db2 programming?

648


How do you find the maximum value in a column in db2?

652






What is a db2 table?

597


How to find primary key of a table in db2?

617


Describe major components of db2?

642


Hi Everyone... Under the Logical files, when am working on multiple rec format logical file, I have joined two pf's using the multiple record format logical file concept, but when i run queried the LF only the first mentioned pf records are reflecting and I am not able to see any of the field records specified under the second pf. Kindly let me know whats the reason behind this. Below is the str of LF., R rec PFILE(LOGICAA) CUSTNO CUSTNAME BILL K CUSTNO R rec1 PFILE(LOGICAA1) CUSTNO ADD K CUSTNO .....

1899


What is a plan and package in db2?

627


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

659


What is the clustering index in the db2 database?

587


Can you tell me how can you find out the # of rows updated after an update statement?

612


Are view updateable?

631


What is copy pending status in db2?

638