nba-sql: A Relational NBA Database

This page summarizes the projects mentioned and recommended in the original post on /r/nba

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • nba-sql

    :basketball: An application to build an NBA database backed by MySQL, Postgres, or SQLite

  • There is an image of the ER Diagram here. The arrows show foreign key constraints. The model definitions can be found in stats/models.

  • superset

    Apache Superset is a Data Visualization and Data Exploration Platform

  • I've been working on an relational NBA database and thought it might be time to share. This is completely free and will always be free. Instructions on how to use it, schema, and a small example query can be found here: https://github.com/mpope9/nba-sql. The main motivation for this was an easy way to do some analysis on teams and players. The API provided by the NBA duplicates data quite a bit and one of the goals of this is to minimize that. Two databases are supported: Postgres and MySQL. It is a bit bare bones right now, but it can be pretty easily used to query for player career and seasonal stats. I've been hooking it up to Apache Superset and built some graphs and it is not too hard to get started with that as an analytics platform. My next plans for this are to integrate more of the NBA APIs into it to add more tables related around teams. Within the next week I will make a 'release', which will basically be a dump of the database to easily load into Postgres. Right now you have to run the application to fill the database, which isn't super convenient.

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts