Hi, I want to create a stored procedure where you pass a start number and an end number. For example 1 as your start number and 1000 as your end number, then the output should be the sum of 1-1000.
We can do it easily using loops. But my requirement is to do it without using loops.
Can any one please give me that logic ?