I am running a query on production and it is say returning me 500 rows and I have the same copy on my dev and the query is returning only 497 rows.
What approach or steps can be taken to compare the results?
Is there a tool?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Assuming there is a database link between the two databases and that the data being returned matches for most of the rows in question, you could use a MINUS operation. Something like
will show you the rows that are returned by the first query that do not have an identical match in the rows returned from the second query. Ideally, that would show you just the three extra rows. But it may return additional rows if the data returned for some columns is different in the two environments.