From 3a8d1e0adf2de782bbd4f21d2e066942e68a2c9a Mon Sep 17 00:00:00 2001 From: eeckert Date: Wed, 27 Sep 2023 16:25:40 -0600 Subject: [PATCH] update for UNC PAth --- Generate Egnyte Export.sql | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Generate Egnyte Export.sql b/Generate Egnyte Export.sql index 2516d28..e30d735 100644 --- a/Generate Egnyte Export.sql +++ b/Generate Egnyte Export.sql @@ -7,8 +7,8 @@ from ( REPLACE( Parent, "X:\","\\mpe.ca\datadrive\") AS UNCPath, - REPLACE(REPLACE(Parent,("X:\" || Server),"/Shared/N-Data"),"\","/") AS EgnytePath, - sum(FileCount) as FileCount, Sum(FileSize) as FileSize, 'Parent' as Source from FolderData + REPLACE(REPLACE(Parent,("\\mpe.ca\datadrive\" || Server),"/Shared/N-Data"),"\","/") AS EgnytePath, + sum(FileCount) as FileCount, Sum(FileSize) as FileSize, 'Parent' as Source, Status from FolderData Where Parent in ( SELECT Parent FROM NonDupParent ) @@ -18,8 +18,8 @@ GROUP by UNCPath union SELECT SERVER, REPLACE(PATH,"X:\","\\mpe.ca\datadrive\") AS UNCPath, - REPLACE(REPLACE(PATH,("X:\" || Server),"/Shared/N-Data"),"\","/") AS EgnytePath, - FileCount, FileSize, 'Project' as Source from FolderData + REPLACE(REPLACE(PATH,("\\mpe.ca\datadrive\" || Server),"/Shared/N-Data"),"\","/") AS EgnytePath, + FileCount, FileSize, 'Project' as Source, Status from FolderData Where FolderData.Project in ( SELECT Project FROM NonDupProject) -- AND FolderData.Parent in (