Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Write a query to retrive partial string.

Answer Posted / ignatius pradeep

A Sample Query:

SELECT SUBSTR(DESC_T,1,4)
FROM PRODUCT
WHERE PROD_I = 123456;

DESC_T is a column in the table PRODUCT

The first four characters of the DESC_T will be displayed.

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do I optimize a query in db2?

1054


Why do chiropractors use drop table?

1059


What is cloudant database?

1055


What does db2 stand for?

969


What is null indicator in db2?

1061


Outputs of explain are with matchcols = 0. What does this signify?

1011


What is package in db2 mainframe?

940


What is the physical storage length of timestamp data type?

1039


Which command is used to connect to a database in DB2 ? Give the Syntax.

1053


Is ibm db2 free?

972


What is db2 stogroup?

1118


How to check sequence on a table in db2?

1017


How do you concatenate the firstname and lastname from emp table to give a complete name?

1037


I HAVE 500 ROW TO UPDATE I WOULD LIKE TO USE ROLLBACK ALONG WITH COMMIT.WHAT IS THE SYNTAX TO CODE COMMIT AND ROLLBACK FOR EVERY 100 ROWS.AND HOW THE CURSOR ROLLBACK TO THE LAST COMMITTING POINT.

3161


How to rename a table in DB2 ?

1047