Oracle Sql Loop Through Array Matlab Help