LEFT
RIGHT
LEN
Returns the rightmost n characters.
RIGHT(str, n)
Enter values below to update the example in real time.
account_no
last4
bank_accounts
SELECT RIGHT(account_no, 4) AS last4 FROM bank_accounts;