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


Please login or register to vote for this query.

(click on this box to dismiss)

Open Source Meta

Q&A about the site for people organizing, marketing or licensing open source development projects

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

INSERT INTO #table_name 
VALUES ('12162003'), ('5072004');

select RIGHT('0000000000' + birthdate_new, 10)
from #table_name

Enter Parameters

Switch to main site
loading Hold tight while we fetch your results