Setting Variables

Row Number and Group By using variables in Select Statement