Create Array Using Range Python Function Vs Procedure In Sql