on 05-17-2017 8:42 AM
Hi,
What is the formula to get the last 3 characters of a field?
Sorry... just Substring(F_XXX, F_YYY) where F_XXX is the source field & F_YYY is Length(F_XXX) - 3
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
For example, in the CardName
SELECT right(T0.[CardName],3) FROM OCRD T0
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I tried this, it truncate last 3 characters. But, what i need is to display last 3 characters.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Try: Substring(F_XXX,0,Length(F_XXX)-3)
Regards,
H.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
98 | |
12 | |
11 | |
6 | |
6 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.