Databases · Middle · Question 56 of 75

How would you store a user's changing subscription plans so you can see the history?

Explanation

History tables make questions like 'what plan did they have on March 1?' easy. PostgreSQL range types and exclusion constraints can prevent overlapping periods.

Further reading

Problem with a question

Databases · Middle · question 56

Test yourself

Take the Databases · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz