• Can you add a cross join to the dynamic sql? Or maybe this:

    SELECT * FROM (@SQL) qry

    CROSS JOIN (SELECT @a a, @b-2 b) x