Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

Automated Testing for rowcounts

$
0
0

I need to come up with some automated testing tool, where when the sql query is given , it breaks it down to each table and the join conditions and find the rows at each level.
 
for e.g
Select *
From table A
Inner Join table B on A.id = b.id
Inner join table C on B.id = C.id

output :
Count - Table A = x rows
Count - Table A Join Table B on A.id = B.iD = y rows 
Count - Table A JOin Table B on A.id = B.iD Join Table C on B.id = C.id = z rows

Any ideas to start with ?

 


Sridhar


Viewing all articles
Browse latest Browse all 23857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>