rs = stmt.executeQuery("SELECT COUNT(*) FROM Customers");
rs.next();
int noc = rs.getInt(1);
SimpleResultSet srs = new SimpleResultSet();
srs.addColumn("averageCreditLimit", Types.DOUBLE, 20, 0);
srs.addRow(new Object[] { (sum / noc) });
return srs;
}
public static ResultSet getCustomerPhoneNumber(Connection conn,
int customerNumber) throws SQLException {