CREATE TABLE #table_name(birthdate_new VARCHAR(8)); CREAT...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Ask Ubuntu

Q&A for Ubuntu users and developers

CREATE TABLE #table_name(birthdate_new VARCHAR(8));
CREATE TABLE #Suresh(birthdate_new VARCHAR(7));

INSERT INTO #Suresh 
VALUES ('678'),('89'),('1234567'),('1');

select RIGHT('00000000' + birthdate_new, 8)
from #table_name

Enter Parameters

Options:
Switch to meta site
loading Hold tight while we fetch your results