mysql table structure with multiple variables

前端 未结 2 1301
无人共我
无人共我 2021-01-25 14:59

I am writing a script which will counts the number of ticket as per as different conditions and store the count in a summary table. I am unable to understand how to structure my

2条回答
  •  隐瞒了意图╮
    2021-01-25 15:30

    Have columns Date Service Count.

    Like so.

    Date            Service      Count
    16 May 2016     Service1     35
    

    Then when you go to display them in the report pivot them as you want. Probably better to make date an INT and either an auto number PK or composite PK of Date and Service.

提交回复
热议问题