database-reconciliation

Reconciliation Automation Query

醉酒当歌 提交于 2019-12-08 10:06:45
问题 I have one database and time to time i change some part of query as per requirement. i want to keep record of results of both before and after result of these queries in one table and want to show queries which generate difference. For Example, Consider following table emp_id country salary --------------------- 1 usa 1000 2 uk 2500 3 uk 1200 4 usa 3500 5 usa 4000 6 uk 1100 Now, my before query is : Before Query: select count(emp_id) as count,country from table where salary>2000 group by