Click here to Skip to main content
15,910,118 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi,
I Have Created Two table namely "A" and "B".My query is I need to retive the data from table "A" first column to table "B" first column.How to do this process i was so confused.

Regards
Balamurugan
Posted
Comments
Kuthuparakkal 2-Nov-12 4:15am    
Not clear need more info
MT_ 2-Nov-12 5:57am    
Why you have posted the question again, your other question is already answered http://www.codeproject.com/Questions/487791/GettingplusDatasplusfromplusDifferentplusTable

1 solution

Hi Friend,


SQL
INSERT INTO TestTable (FirstName, LastName)
SELECT FirstName, LastName
FROM OriginalTable
WHERE Condition....


Try above query.

Regards,
Prasad
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900