r/SQL • • May 29 '26

Discussion Data prep vs. writing queries?

When you're building a new database project, do you find yourself spending more time cleaning and preparing the data, or writing the actual complex queries? 🛠️

14 Upvotes

16 comments sorted by

View all comments

Show parent comment

3

u/alinroc SQL Server DBA May 30 '26 edited May 30 '26

I worked for a company which took the position of "just give us your data in whatever format, we'll figure out how to make it work" when it first started, just to close the deals.

Flash-forward 25 years and data ingestion is a massive pile of hacked-together code with hundreds if not thousands of branches, special cases, and escape valves. And even with that, the data processing team was still having to contact clients for fixes or reformatting because there's still nothing in the contracts about data formats, nor are there any repercussions for changing formats without warning or sending broken data.

1

u/GeauxCup May 30 '26

That sounds like an absolute nightmare. It would be job security for eternity, but not sure the cost is worth it. What a disaster. That must cost a ton in ongoing maintenance.