Score:0

Aggregation group by date for datetime field

sh flag

I have a view that outpus like below. Here the "Date" is actuallly a datetime field. (It stores the datetime as "2022-10-31T05:00:00" in the database)

Username Date Distance
Krishna 2022-10-23 23
Krishna 2022-10-23 25

I need to display the result, group by username, date and "sum" of Distance (as shown below).

Username Date Distance
Krishna 2022-10-23 48

I did use aggregation, but since the date field is actually a datetime field, it's considering the time while grouping and doesn't group the result by date.

How can I achieve this?

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.