Blog author:
Jvprabhusanthi | Posted on: 5/3/2012 | Category:
SQL Server Blogs | Views: 424 | Status:
[Member] |
Points: 75
|
Alert Moderator
Here is the query to insert other tables data into the existing table in sql serverinsert into AdventureWorksDW2008R2.dbo.SafetyStockLevel(productID,safetystocklevel,OrderDate) (SELECT distinct p.ProductID, SafetyStockLevel,OrderDatefrom dbo.Product p inner join dbo.SalesOrderDetail SOD on sod.ProductID = p.ProductIDinner join dbo.SalesOrderHeader SOHon soh.SalesOrderID=sod.SalesOrderID)Cheers,
Venkatesan Prabu .J
Head, KaaShiv InfoTech.
http://www.kaashivinfotech.com/
Cheers,
Venkatesan Prabu .J
Head, KaaShiv InfoTech
http://kaashivinfotech.com/Ebooks.aspx
Found interesting? Add this to: