Validating a Selection Query

Once a selection query has been created it can then be validated. The validation performed checks that the SQL query is valid and that the statement is only attempting to read data. Note, database integrity must be maintained so the SQL statement should not modify or remove data. To minimize this risk, the SELECT and INTO clauses are defaulted. As validation errors can be quite complex please ensure that the SQL query provided adheres to these guidelines.