r/SQL • u/CaseyFoster_8542 • 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? 🛠️
15
Upvotes
9
u/bobchin_c May 29 '26 edited May 30 '26
I'm in healthcare BI, We get most of our data from external sources that are pretty clean. Yes we occasionally receive data that isn't ours and we should not have received, and some data that is poorly formatted.
One issue we run into is when a change is made to the file format without the source sending it to us telling us beforehand that there's changes. then our ETL jobs break and we have to scramble to fix them and get the data imported. Sadly this happens more than I want to admit
11
u/GeauxCup May 29 '26
The amount of time we spend cleaning customer data is ABSURD, but that's because our sales teams don't hold new client's feet to the fire, and old clients are "grandfathered in" with their old ass data requirements.
Our inbound data processing team is probably 5-6 times the size of our reporting team.
Don't be like us.
2
u/Beg18girl May 30 '26
Data prep is 90 percent of the job because you spend most of your time fixing inconsistent formats or dealing with someone else's questionable schema design. The queries are just the victory lap once the tables actually make sense.
1
u/hermitcrab May 31 '26
As a rule of thumb, data work is 80% cleaning data and 20% complaining about having to clean data.
1
u/Mountain-Yoghurt-657 Jun 02 '26
For me it’s usually not the SQL itself.
It’s understanding why two datasets that should match suddenly don’t. Especially once historized tables and temporal joins enter the picture.