how can i make monthid column values appear as example: 201901, not 20191.
INSERT INTO [dbo].[table2](accountno, monthid, active)
SELECT accountno, CONCAT(YEAR(InsertionDate), month(insertiondate)), active
FROM [dbo].[table1]
querysql server
how can i make monthid column values appear as example: 201901, not 20191.
INSERT INTO [dbo].[table2](accountno, monthid, active)
SELECT accountno, CONCAT(YEAR(InsertionDate), month(insertiondate)), active
FROM [dbo].[table1]
Best Answer
Result: