July 25, 2023, 6:12 a.m. | Dakota Smith

Towards Data Science - Medium towardsdatascience.com

Making up for one of MySQL’s lesser-known shortcomings

Photo by Azamat E on Unsplash. Thanks, Azamat!

Introduction

Let’s imagine that we’re members on the Data team at a subscription box company. In a MySQL database, transaction records of purchases are written to table named subscriptions. Metadata excluded, the table contains a customer_id and subscription field, and looks something like this:

The subscriptions table

Note that in this example scenario, a customer can have multiple subscriptions. The uniqueness of each …

box data data aggregation database data modeling data science dynamic function hacking json making metadata mysql records subscription subscriptions table team value

Data Architect

@ University of Texas at Austin | Austin, TX

Data ETL Engineer

@ University of Texas at Austin | Austin, TX

Lead GNSS Data Scientist

@ Lurra Systems | Melbourne

Senior Machine Learning Engineer (MLOps)

@ Promaton | Remote, Europe

Principal Machine Learning Engineer (AI, NLP, LLM, Generative AI)

@ Palo Alto Networks | Santa Clara, CA, United States

Consultant Senior Data Engineer F/H

@ Devoteam | Nantes, France