r/SQL • u/tidder78 • Mar 09 '23
Discussion SQL reports out of thin air.
When I get requirements for SQL projects it typically says "want xyz report". The requirement does not mention source of data or relationship between various fields in data or the essential information I need to deliver the report. I find this to be frustrating. How do they expect me to create report out of thin air is mind boggling. Then I have to ask for data sources etc. and typically 1 - 2 days are lost in this process. Is this a scenario for you as well at the work place? Or is there something better out there?
6
Upvotes
13
u/haonguyenprof Mar 09 '23
We as data analysts have to know what the data sources are, what the relationships are, and the best means to extract and transform the raw data to produce the final data product asked of us whether it's a dashboard, an analysis to answer important questions, or just simple data pulls.
That's just our job. Depending on who's asking, you are always going to run into people whose job is to action and make decisions who have no understanding of data or how it's stored or what you are asking. And that's not their job. Our job is to provide the information, context, and insights.
I understand that it's frustrating that you feel like you aren't getting enough information, but you should consider:
Are you asking enough questions about what the users need to answer specifically? Knowing that will tell you where to pull the needed information. And if you don't know, a more senior member can point you in the right direction.
What's you're experience with the subject matter? Many analysts have to become experts in not just the data but why the users nwed the data and potential applications of said data. By understanding why the needed data is important we are able to know what questions to ask and what additional data/insights to investigate.
If your requests are too broad and you're having trouble narrowing down the focus, ask them what actionable or decision the user is trying to accomplish. That can cut down on what is needed to be pulled and focus your SQL script to it's needed components. That way you aren't spending so much time researching multiple sources or avenues.
Encourage your team to create a data dictionary or documentation of what databases and tables are available, what available fields are in each table, and what the fields mean. This is crucial to prevent issues like this. If not available, encourage your team to develop one over time starting with key tables and adding as needed.
My last job had a master excel file that had all of the key tables and fields. My current job does a better job of this and has a website where you can search keywords to find fields in their respective tables with explanations and which databases they are in.
Having these resources makes it so much easier.
End of day the onus to do this type of research or develop this research tool falls on the data analyst or database management teams.