diff --git a/Generate Egnyte Export.sql b/Generate Egnyte Export.sql index b7f198c..5bd1ec8 100644 --- a/Generate Egnyte Export.sql +++ b/Generate Egnyte Export.sql @@ -8,8 +8,8 @@ from ( REPLACE( Parent, "X:\","\\mpe.ca\datadrive\") AS UNCPath, - REPLACE(REPLACE(Parent,("X:\" || Server),"/Shared/N-Data")," \ "," / ") AS EgnytePath, - sum(FileCount), Sum(FileSize), 'Parent' as Source from FolderData + REPLACE(REPLACE(Parent,("X:\" || Server),"/Shared/N-Data"),"\","/") AS EgnytePath, + sum(FileCount) as FileCount, Sum(FileSize) as FileSize, 'Parent' as Source from FolderData Where Parent != ( SELECT Parent FROM DuplicateList ) @@ -18,7 +18,7 @@ GROUP by UNCPath UNION SELECT SERVER, Parent, REPLACE(PATH,"X:\","\\mpe.ca\datadrive\") AS UNCPath, - REPLACE(REPLACE(PATH,("X:\" || Server),"/Shared/N-Data")," \ "," / ") AS EgnytePath, + REPLACE(REPLACE(PATH,("X:\" || Server),"/Shared/N-Data"),"\","/") AS EgnytePath, FileCount, FileSize, 'Project' as Source from FolderData Where FolderData.Project NOT in ( SELECT A.Project FROM DuplicateList as A)