Hi,
I have a table in SQL Server.
If the following explanation does not solve your need, then please instead of stories (description), provide queries to create the tables and to insert sample data (several tows). This will allow us to reproduce the scenario. Please describe the expected result SET which you want to get from that sample data.
I am trying to upload some spreadsheet data from a table I created to the data table.
The format of the query which you use is wrong. In order to INSERT data from a SELECT query you should use the format
INSERT Table_Name(column list comes here)
SELECT ...<any select query which you want and returns the exact same structure of columns which you want to INSERT>
Here you have a demo:
use tempdb
GO
create table A (id int)
insert A(id) values (4),(345),(2),(56)
create table B (id int)
GO
INSERT A(id) SELECT id from B
GO