"pravalli nagireddy" record is there in address column but i
want display only 'nagireddy' from the main string what is
query for that pls tell me

Answers were Sorted based on User's Feedback



"pravalli nagireddy" record is there in address column but i want display only 'nag..

Answer / yuvaevergreen

sel substr(address,index(address,' ')+1) from db.emp;
will give you the string after the first space in the string.

Is This Answer Correct ?    12 Yes 0 No

"pravalli nagireddy" record is there in address column but i want display only 'nag..

Answer / babu

Hi All,


SELECT SUBSTR('PRAVALLI NAGIREDDY',POSITION('' IN 'PRAVALLI
NAGIREDDY')+1) FROM TABLE_NAME

THIS IS THE CORRECT ANSWER.

IN TERADATA THE FUNCTION INSTR IS NOT WORK.

Is This Answer Correct ?    6 Yes 0 No

"pravalli nagireddy" record is there in address column but i want display only 'nag..

Answer / chandu

select substr("pravalli nagireddy",10,9) from <table_name>

Is This Answer Correct ?    11 Yes 6 No

"pravalli nagireddy" record is there in address column but i want display only 'nag..

Answer / tdguy

Use substr function to handle character manipulations.

Is This Answer Correct ?    2 Yes 0 No

"pravalli nagireddy" record is there in address column but i want display only 'nag..

Answer / kiran kumar

Sel address,index(address,' ') as r,substr(address,r+1) from tablename;

Is This Answer Correct ?    2 Yes 0 No

"pravalli nagireddy" record is there in address column but i want display only 'nag..

Answer / nani

select substr(address,position('n'in address))as first_name
from t1;

Is This Answer Correct ?    1 Yes 0 No

"pravalli nagireddy" record is there in address column but i want display only 'nag..

Answer / ankal

sel substr('pravalli nagireddy', index('pravalli nagireddy','n'));

Is This Answer Correct ?    2 Yes 3 No

"pravalli nagireddy" record is there in address column but i want display only 'nag..

Answer / nani

SELECT ARRDESS COLUMN FROM TABLE NAME WHERE ADDRESSCOLUMN='%
NAGIREDDY'

Is This Answer Correct ?    0 Yes 5 No

"pravalli nagireddy" record is there in address column but i want display only 'nag..

Answer / gvk

select substr("pravalli nagireddy",instr("pravalli
nagireddy",' '),10)from <tablename>

Is This Answer Correct ?    1 Yes 7 No

Post New Answer

More Teradata Interview Questions

how to delete duplicate records in multi set table without using any tables

2 Answers   Accenture, Nest, South Nests Software Solution, Spiro Solutions,


Explain teradata architecture in detail with a diagram.

0 Answers  


Why managing the data is important?

0 Answers  


1)WHAT IS THE EXACT DIFFERENCE BETWEEN TERADATA AND ORACLE? 2)MOST OF THE COMPANIES ARE USING TARA DATA FOR "DWH PROJECTS" ONLY? WHY?

6 Answers   Bank Of America, Wipro,


What is the maximum number of dml can be coded in a multiload script?

0 Answers  






What are the steps involved in the process flow of the sql statement through channel attached system?

0 Answers  


any one answer me how they can analyzing the project using data ware housing?

0 Answers  


What are the newly developed features of Teradata?

0 Answers  


can we have an unconnected lkp to lookup a DB2 record against a Teradata record?

3 Answers  


Hi Frnds this que is recently asked at IBM there are two rows like aa6588fhfhf,gru282vbvv. Question is howcan we retrive the first number from two rows. Can any one help thanks in advance

5 Answers   IBM,


What is the syntax for case when statement?

0 Answers  


What is a three-tier data warehouse?

0 Answers  


Categories