View Single Post
Old 22-Oct-2007, 12:38 AM   #2 (permalink)
Anilrgowda
Administrator
 
Anilrgowda's Avatar

Posts: 18,715
Join Date: Jan 2006
Rep Power: 10 Anilrgowda is on a distinguished road

IM:
Default Re: SQL Query when inserting data from one database to another.

INSERT INTO DataSocial_DW.dbo.DimReason(ReasonNameTemp,ReasonName)
SELECT Distinct Reason as ReasonNameTemp, isnull(Reason,'Not Supplied') as ReasonName
FROM [SalesForce].[dbo].[Case]
ORDER BY isnull(Reason,'Not Supplied')


------------------


Anilrgowda is offline   Reply With Quote