@Override
    public PreparedStatement getStatement() throws SQLException
    {
        Connection connection = getConnection();

        if (connection != null)
            return connection.prepareStatement("select QuestionId, ParentId, Number, TypeNum, Question, Answer, " +
                    "PassCriteria, Authors, Sources, Comments from Questions where TypeNum=? order by rand() limit ?");
        else
            return null;
    }