I want show data according date wise with geoup by User ID.
The first shows the data stored in database and second table shows how i want to show the data on front end.
This is the table in Database :-
UserID    Date        Working Hrs
1           2021-08-01    10
2           2021-08-01    1
3           2021-08-01    15
1           2021-08-02    11
2           2021-08-02    11
3           2021-08-02    16
1           2021-08-03    9
2           2021-08-03    10
3           2021-08-03    11This is the table i want to create from db table :-
UserID  2021-08-01  2021-08-02  2021-08-03
1        10            11           9
2        1             11           10
3        15            16           11 
    