• Is there any other way to achieve this without CTE.