We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7f648ec commit 74ea0f1Copy full SHA for 74ea0f1
src/useful-queries/download-summary.sql
@@ -0,0 +1,14 @@
1
+select
2
+ CAST(timestamp as date) as roundedDate,
3
+ submissionIds,
4
+ left (submissionSearch,
5
+ 10) + '...' as truncatedSubmissionSearch,
6
+ emailAddress
7
+from
8
+ DownloadLog d
9
+ join Users u on u.id = d.userId
10
+where
11
+ name != 'Zach Smith'
12
+order by
13
+ timestamp desc;
14
+
src/useful-queries/login-summary.sql
@@ -0,0 +1,16 @@
+ name,
+ emailAddress,
+ COUNT(*) as loginCount
+ logins l
+ join users u on u.id = l.userId
+group by
+ CAST(timestamp as date),
+ roundedDate desc,
15
+ name;
16
0 commit comments