When working with the Table1 and the Table2 or Table3 tables, I’m getting the following error
Microsoft SQL: Cannot resolve collation conflict between "SQL_Latin1_General_CP1_CI_AS" and "Latin1_General_CI_AS" in UNION ALL operator for DISTINCT operation.
DataBase Collation is SQL_Latin1_General_CP1_CI_AS
Table1 Collation is SQL_Latin1_General_CP1_CI_AS
Table2 Collation is SQL_Latin1_General_CP1_CI_AS
Table3 Collation is SQL_Latin1_General_CP1_CI_AS
SELECT
b.[BudgetID]
,b.[Budget]
,b.[BudgetType]
,b.[BudgetStatus]
,b.[BudgetStartDate]
,b.[BudgetEndDate]
,b.[ActualStartDate]
,b.[ActualEndDate]
,b.[PlannedBudget]
,b.[ActualSpend]
,b.[ProductLineName]
,b.[ProductLineKey]
,b.[ProductName]
,b.[ProductKey]
,b.[PlannedLeads]
,b.[ActualLeads]
FROM [dbo].[Table1]b
inner join [dbo].[Table2] c on c.budgetName = b.productlinename
inner join [dbo].[Table3] p on p.productline = b.productlinename
Cannot resolve the collation conflict between "SQL_Latin1_General_CP1_CI_AS" and "Latin1_General_CI_AS" in the equal to operation.