Compare two result sets. They can be returned from a stored procedure or from a cursor (even dynamic statement) of a table, view or join.
Check the following:
Empty result or non-empty result set (first fetch is empty)
quantity of elements? (fetch several times until not-found)
A temporary table with the structure of the table can be created, and insert the data there. Once the two tables (expected, and actual) are created, the content can be compared.
Compare two result sets. They can be returned from a stored procedure or from a cursor (even dynamic statement) of a table, view or join.
Check the following:
A temporary table with the structure of the table can be created, and insert the data there. Once the two tables (expected, and actual) are created, the content can be compared.