Harnessing the Strategic Power of SQL: CTE vs. Subquery Implementation