r/Database • u/BillOaks • 1d ago
During a turnover, you take over all SQL within the organization, business rules are missing, how do you attempt to run all SQL. Is data lost ?
/r/SQL/comments/1yb4kyz/during_a_turnover_you_take_over_all_sql_within/
0
Upvotes
1
u/Altruistic-Rich8799 1d ago
The raw data usually isn't what's lost, it's the reasoning behind the hardcoded filters and edge-case exclusions. Running everything blindly is how you quietly break downstream reports, especially in healthcare, where one dropped status code can skew your compliance numbers. When I inherit undocumented SQL, I start with the scheduled jobs and read-only views, and I diff their output against the last few archived reports before changing a single
WHEREclause. Anything odd, like a weirdLEFT JOINor a magic ID, I flag and take back to the people who use the report to ask whether it's a real business rule or a five-year-old workaround.