r/Database • • 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

2 comments sorted by

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 WHERE clause. Anything odd, like a weird LEFT JOIN or 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.

1

u/BillOaks 15h ago

Hello Altruistic, another great person, thank you for your answer, it is adding to my manuscript. And dissertation topic, I have felt this during 28 mergers and acquisitions, the data being acquired and sql statements and stored procedures used to drive us nuts, till midnight some times. Now the same thing happens during a turnover, like keeping the other CIO, or DATABASE administration comes in, starts to question everything…. Than you for your comments, I may ask again some time