sql mathematical query [closed]

Asked at 2017-01-11 11:20:27Z
  • 5 Subscribers
  • 114 Views
-4

I have some matrix 3x3 (from 1 to 9)

1 2 3
4 5 6
7 8 9

how to calculate the sum of the diagonal elements (and size of matrix can be different 4x4,5x5 etc. )?

I using SqlServer 2008 R2


0 answers in total

Answer this questsion