in reply to Re: Code refactoring challenge
in thread Code refactoring challenge
Ah, but you missed the entire point there, the SQL isnt actually needed at all, it's just using the database engine as a caculator, so I removed it completely.
If you look, you'll see I did change that to a for-loop. (Although admittedly it could have been better still), the index is needed because it grabs the next line after the one we are looking at, too.
C.
|
|---|