The same thing can be done with even less SQL.
WITH CTE AS
SELECT * from TableA
Select * from TableB
select * from CTE
Erik lives in Redmond, Washington. He works as a Senior Software Engineer specializing in C++, COM, ATL and the middle-tier and now .NET. When he isn't coding for work, he can be found trying to extend Internet Explorer with yet another Desk band or simplifying his development process with ATL Object Wizards.
He spends his free time snowboarding, mountain biking, and online gaming.