Hi @Arthur Felipe do Lago Montenegro
Try using TRY_CAST() or TRY_CONVERT() to convert the nvarchar value to data type int. If the conversion fails, it returns NULL.
FROM [dim].[ServiceOrder] AS SO
INNER JOIN [dim].[Turbine] AS TB ON Try_Cast(SO.[Room] As int) = TB.[Unitid]
Best regards,
Cosmog Hong
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".