Postgresql – Writing query. I need to split the period of the subscription into periods before and after the another subscription, which contained in the first one
I have a table with data on activated subscriptions in PosgreSQL database. The table has the following columns: User ID, Start Date of Subscription, End Date of Subscription, and Type of Subscription. If a subscription is currently active, then the…