From c57c79a36f1e4d2b66ef7f01bc0a82ef7d5996e8 Mon Sep 17 00:00:00 2001
From: Joey Hagedorn <hagedorn@mcs.anl.gov>
Date: Wed, 22 Nov 2006 21:18:05 +0000
Subject: finishing move

git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@2521 ce84e21b-d406-0410-9b95-82705330c041
---
 src/lib/Server/Reports/reports/sql/client.sql | 1 +
 1 file changed, 1 insertion(+)
 create mode 100644 src/lib/Server/Reports/reports/sql/client.sql

(limited to 'src/lib/Server/Reports/reports/sql/client.sql')

diff --git a/src/lib/Server/Reports/reports/sql/client.sql b/src/lib/Server/Reports/reports/sql/client.sql
new file mode 100644
index 000000000..6ef37a27f
--- /dev/null
+++ b/src/lib/Server/Reports/reports/sql/client.sql
@@ -0,0 +1 @@
+CREATE VIEW reports_current_interactions AS SELECT x.client_id AS client_id, reports_interaction.id AS interaction_id FROM (select client_id, MAX(timestamp) as timer FROM reports_interaction GROUP BY client_id) x, reports_interaction WHERE reports_interaction.client_id = x.client_id AND reports_interaction.timestamp = x.timer
\ No newline at end of file
-- 
cgit v1.2.3-1-g7c22

