SyntaxFix
Write A Post
Hire A Developer
Questions
You can use UNION ALL instead.
SELECT mt.ID, mt.ParentID, ot.MasterID FROM dbo.MainTable AS mt Union ALL SELECT mt.ID, mt.ParentID, ot.MasterID FROM dbo.OtherTable AS ot