在SQL

我的数据如下:

Employee_ID创建日期状态Time_in_Seconds
1 2019-11-02 1 50
1 2019-11-02 2 10
1 2019-11-01 1 110
1 2019-11-01 2 80
2 2019-11-02 1 280
2 2019-11-02 2 95
2 2019-11-01 1300
2 2019-11-01 2 130

我想对过去7天中每个驱动程序的状态值中的Time_in_Seconds值求和:

结果应如下所示:
Employee_ID状态1状态2
1160 90
2580225

我尝试合并所有查询,但这不起作用。这必须是某种支点,但我不确定如何。

huomiao1122 回答:在SQL

这是数据框

$(document).ready(function() {
  $(".carousel")
    .slick({
      slidesToShow: $(this).find("img").length > 1 ? 2 : 1,slidesToScroll: $(this).find("img").length > 1 ? 2 : 1
    });
});

enter image description here

本文链接:https://www.f2er.com/3155629.html

大家都在问