How to add substring in SQL ?
DECLARE @ssn varchar(11)
SELECT @ssn = '123456789'
Actually, i have the value in my database as 123-45-6789
I want to do it one query to get the output as 12-456789
Expected output is 12-3456789
How to add substring in SQL ?
DECLARE @ssn varchar(11)
SELECT @ssn = '123456789'
Actually, i have the value in my database as 123-45-6789
I want to do it one query to get the output as 12-456789
Expected output is 12-3456789