Copy records into a a table from the same table changing only one value

I have a table that has 6 fields , here is the query:

insert into [GSDR].[d2l].[d2l_reporting_SchoolPopulation]('2014-08-11',
      [Schoolcode],
      [School],
     [Cluster],
     [StudentCount],
      [IntructorCount])
     
 Select
        [Schoolcode],
      [School],
      [Cluster],
      [StudentCount]
       [IntructorCount]
 from [GSDR].[d2l].[d2l_reporting_SchoolPopulation]

I want to put in a population date of 2014-08, but basically copy all the other values.

here is my table

PopulationDate      Schoolcode       School                                             Cluster      StudentCount          IntructorCount
8/18/2014                978           ALCOVA ELEMENTARY SCHOOL             DACULA                    1133      71
8/18/2014                155            ALFORD ELEMENTARY SCHOOL       BERKMAR                   1021      62

This is want I want

PopulationDate      Schoolcode       School                                             Cluster      StudentCount          IntructorCount
8/18/2014                978           ALCOVA ELEMENTARY SCHOOL             DACULA                    1133      71
8/18/2014                155            ALFORD ELEMENTARY SCHOOL       BERKMAR                   1021      62
8/11/2014         978           ALCOVA ELEMENTARY SCHOOL             DACULA                    1133      71
8/11/2014                155            ALFORD ELEMENTARY SCHOOL       BERKMAR                   1021      62
Butterfly2Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Deepak SubburajanDB DeveloperCommented:
INSERT INTO [GSDR].[d2l].[d2l_reporting_SchoolPopulation]
SELECT
   ('2014-08-11',
   [Schoolcode],
   [School],
   [Cluster],
   [StudentCount],
   [IntructorCount])
FROM
   [GSDR].[d2l].[d2l_reporting_SchoolPopulation]

Open in new window

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Butterfly2Author Commented:
i am geting a syntax error on on the comma after the  '2014-08-11'.

Msg 102, Level 15, State 1, Line 3
Incorrect syntax near ','.
0
Butterfly2Author Commented:
disregard, i removed the parenthesis and it works, thanks.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SQL Server

From novice to tech pro — start learning today.