formatting updates

This commit is contained in:
Erik Eckert 2023-09-15 09:09:14 -06:00
parent 8afcf013bd
commit d24bf9e82b

View File

@ -2,16 +2,18 @@
DROP TABLE DataInventory;
CREATE TABLE DataInventory AS
SELECT SERVER,
REPLACE(Parent,"X:\","\\mpe.ca\datadrive\") AS UNCPath,
REPLACE(REPLACE(Parent,("X:\" || Server),"/Shared/N-Data"),"\","/") AS EgnytePath,
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
Where Parent not in (
SELECT Parent FROM DuplicateList
)
UNION
SELECT SERVER,
REPLACE(PATH,"X:\","\\mpe.ca\datadrive\") AS UNCPath,
REPLACE(REPLACE(PATH,("X:\" || Server),"/Shared/N-Data"),"\","/") AS EgnytePath,
REPLACE(PATH," X: \ "," \ \ mpe.ca \ datadrive \ ") AS UNCPath,
REPLACE(REPLACE(PATH,(" X: \ " || Server)," / Shared / N - Data ")," \ "," / ") AS EgnytePath,
sum(FileCount), Sum(FileSize), 'Project' as Source from FolderData
Where Project not in (
SELECT A.Project FROM NonDupProject as A)