From e830742918195e9dc3c17f6315e46d5081f951b0 Mon Sep 17 00:00:00 2001 From: eeckert Date: Mon, 2 Oct 2023 16:44:07 -0600 Subject: [PATCH] I am not proud... --- Generate Egnyte Export.sql | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/Generate Egnyte Export.sql b/Generate Egnyte Export.sql index c4a0f39..cff1604 100644 --- a/Generate Egnyte Export.sql +++ b/Generate Egnyte Export.sql @@ -1 +1,12 @@ -DROP TABLE IF EXISTS DataInventory; \ No newline at end of file +DROP TABLE IF EXISTS DataInventory; +Select * from ( + SELECT SERVER, + REPLACE( + Parent, + "X:\","\\mpe.ca\datadrive\") AS UNCPath, + REPLACE(REPLACE(REPLACE(Parent,("\\mpe.ca\datadrive\" || Server),REPLACE("/Shared/N-Data/" || Server || "_/","_/","_")),"\","/"),"_/","_") AS EgnytePath, + sum(FileCount) as FileCount, Sum(FileSize) as FileSize, Status from FolderData + WHERE FolderData.fld_MigrationID IS NULL +GROUP by UNCPath +ORDER by UNCPath +);