by executing the sql code below I get this result, a row is made for each day, what I want to get instead is the following result:
Desired result sql code:
11/12/2018,7:58,12:46,14:4
10/12/2018,7:57,12:21,13:33,18:8
how do I change the query to get the desired result?
Current result of sql Code:
11/12/2018,7:58
11/12/2018,12:46
11/12/2018,14:4
11/10/2018,7:57
11/10/2018,12:21
11/10/2018,13:33
11/10/2018,18:8
Sql Code:
select FORMAT(DataCreazione, 'dd/MM/yyyy', 'it-IT') as Data,CONCAT(DATEPART(HOUR, DataCreazione), ':', DATEPART(MINUTE,
DataCreazione)) as Ore from Marcatura where IdUtente = '3'
and(CONVERT(VARCHAR(10), DataCreazione, 103) between '11-12-2018' and '11-07-2019' )order by FORMAT(DataCreazione, 'dd/MM/yyyy', 'it-IT') desc