数仓面试 寻找更好地解决方案, huan迎大家来提供各种各样的解决思路

表结构


CREATE TABLE `computer_promotion`(

  `brand` string COMMENT '用户主键', 

  `start_date` string COMMENT '开始日期', 

  `end_date` string COMMENT '结束日期')
  

表数据


brand    start_date    end_date

lenovo    2022-02-03    2022-02-07

lenovo    2022-02-10    2022-02-23

asus    2022-02-08    2022-02-24

asus    2022-02-13    2022-02-17

asus    2022-02-15    2022-02-28

dell    2022-02-04    2022-02-17

dell    2022-02-07    2022-02-21

hp    2022-02-06    2022-02-26

hp    2022-02-08    2022-02-19

hp    2022-02-15    2022-02-23

需求: 根据表数据求出每种电脑品牌促销的天数

我的想法已经放在
https://blog.csdn.net/weixin_39282730/article/details/124063856

有更好的小伙伴可以来提供思路
先试试效果,如果效果良好,争取每周都开放一个 悬赏 来和大家探讨哦