"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

In which phase of the Active Data Warehouse evolution do you use data to determine what will happen?

2 Answers   IBM, Wipro,


Did you write stored procedures in teradata?

0 Answers  


how can we analyze the locks ?

0 Answers   HP,


What is teradata? Also, list out some of the primary characteristics of teradata.

0 Answers  


Suppose i have data like 2009/12/31 555555534 ' ' Generally last 2 records are wrong format it is going to error table but i don't want load error table if any wrong format in Date column Pass "NULL" how can we do it fast load

4 Answers  


What is the command in bteq to check for session settings ?

0 Answers  


What are the frequently used data types in teradata?

0 Answers  


How does hashing happens in teradata?

0 Answers  


How to find duplicates in a table?

0 Answers  


What is a sparse index?

0 Answers  


What is inner join and outer join?

0 Answers  


What is FILLER command in Teradata?

9 Answers   CTS, IBM,


Categories