By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
(No column name) |
---|
Microsoft SQL Server 2017 (RTM-CU12) (KB4464082) - 14.0.3045.24 (X64) Oct 18 2018 23:11:05 Copyright (C) 2017 Microsoft Corporation Express Edition (64-bit) on Windows Server 2012 R2 Standard 6.3 <X64> (Build 9600: ) (Hypervisor) |
10 rows affected
Name | TOTALActivity_0 | TOTALActivity_1 | LatestActivity_0_Logtime | LatestActivity_1_Logtime |
---|---|---|---|---|
A | 4 | 1 | 17/12/2018 10:16:04 | 15/12/2018 10:16:04 |
B | 1 | 1 | 17/12/2018 10:16:04 | 16/12/2018 10:16:04 |
C | 0 | 3 | null | 18/12/2018 10:16:04 |
Warning: Null value is eliminated by an aggregate or other SET operation.