Click here to Skip to main content
15,895,557 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
if i have name column in that

anthoni_IND
sam_USA
Raj_IND
jay_IND

i need
all IND rows.
Posted
Updated 21-Apr-13 10:14am
v2
Comments
sharat naik 21-Apr-13 16:19pm    
my english is too weak.. i have 2 improve that..

1 solution

This question is nonsense. The row has no last 3 characters. Only a character field can have characters. For that you can use the RIGHT[^] function.
 
Share this answer
 
v3
Comments
sharat naik 21-Apr-13 16:16pm    
can u send the full query
Zoltán Zörgő 21-Apr-13 16:25pm    
select
RIGHT(anthoni_IND, 3),
RIGHT(sam_USA, 3),
RIGHT(Raj_IND, 3),
RIGHT(jay_IND, 3),
FROM
YourTableName
sharat naik 21-Apr-13 16:38pm    
This answear is nonsense. i tried use substring,3,1 is the ryt answear
[no name] 21-Apr-13 16:39pm    
The quality of the answer you get is directly proportional to the quality of the question. You want better answers, then ask better questions.
Zoltán Zörgő 21-Apr-13 16:44pm    
No. Your question is nonsense. How can you imagine that we could answer based on something only you know. So, please improve your question to get the answer you hope to get.
You said "last 3 characters". Substring 3,1 wil return the 3th character. That is totally different.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900