Today, our team worked on developing a Marathon Dashboard (using global marathon mock data), using GitHub to coordinate our SQL scripts before connecting our data to Tableau. While we successfully built out our database, the process highlighted some important lessons about GitHub, particularly the importance of communication, managing merge conflicts, and making smaller commits.
The Challenges of Working on a Shared Repository
One of the biggest challenges we encountered was resolving merge conflicts. When multiple team members modified the same SQL scripts, Git couldn't always determine which changes to retain, requiring us to manually review and resolve conflicts.
We explored VS Code's conflict-resolution controls, which allowed us to compare current changes against incoming changes and decide whether to accept one version or incorporate elements of both. We also learned about file locking as a potential way to prevent overlapping edits.
Another difficulty was coordinating the order in which changes were merged into the main branch. Some of our SQL tables relied on keys defined in other tables, such as LOCATION_ID. This meant we needed to consider not only when scripts were merged, but also the order in which database objects were created and executed.
We also had to ensure consistency in how unique identifiers were generated. For example, when creating RESULTS_ID, we explored using the ROW_NUMBER window function with a defined ordering to assign identifiers consistently within our dataset.
The Importance of Small Commits
One of the biggest takeaways was understanding why smaller, more frequent commits are important.
Initially, working on several changes before committing made it more difficult to identify which modifications had introduced conflicts.
By breaking our work into smaller commits, we could more easily track changes, identify potential issues, and review each other's contributions.
Smaller commits don't necessarily prevent merge conflicts, but they make changes easier to understand, review, and reverse when something goes wrong.
From GitHub to Tableau
Our development process involved writing both DDL and DML SQL scripts in VS Code. DDL allowed us to define our database structure, while DML was used to populate and manipulate the data.
Once our database was established in Snowflake, we connected to the data using the ODBC driver, allowing us to bring it into Tableau and begin developing our Marathon Dashboard.
Despite the challenges, we successfully brought together our individual contributions into a shared database.
Key Takeaways
Perhaps the most valuable outcome was the improvement in team communication. We became more conscious of who was modifying which scripts, how our changes affected other tables, and when to integrate our work.
This also reflected aspects of Agile development, where continuous collaboration, incremental improvements, and adapting to challenges are fundamental to delivering a successful project.
Ultimately, GitHub taught us that effective version control isn't just about understanding commands. It's about establishing good development practices that allow a team to work together efficiently.

