formatting updates
This commit is contained in:
parent
8afcf013bd
commit
d24bf9e82b
@ -1,17 +1,19 @@
|
|||||||
-- Generate Non-Duplicated PARENT FOLDER List
|
-- Generate Non-Duplicated PARENT FOLDER List
|
||||||
DROP TABLE DataInventory;
|
DROP TABLE DataInventory;
|
||||||
CREATE TABLE DataInventory AS
|
CREATE TABLE DataInventory AS
|
||||||
SELECT SERVER,
|
SELECT SERVER,
|
||||||
REPLACE(Parent,"X:\","\\mpe.ca\datadrive\") AS UNCPath,
|
REPLACE(
|
||||||
REPLACE(REPLACE(Parent,("X:\" || Server),"/Shared/N-Data"),"\","/") AS EgnytePath,
|
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
|
sum(FileCount), Sum(FileSize), 'Parent' as Source from FolderData
|
||||||
Where Parent not in (
|
Where Parent not in (
|
||||||
SELECT Parent FROM DuplicateList
|
SELECT Parent FROM DuplicateList
|
||||||
)
|
)
|
||||||
UNION
|
UNION
|
||||||
SELECT SERVER,
|
SELECT SERVER,
|
||||||
REPLACE(PATH,"X:\","\\mpe.ca\datadrive\") AS UNCPath,
|
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,
|
||||||
sum(FileCount), Sum(FileSize), 'Project' as Source from FolderData
|
sum(FileCount), Sum(FileSize), 'Project' as Source from FolderData
|
||||||
Where Project not in (
|
Where Project not in (
|
||||||
SELECT A.Project FROM NonDupProject as A)
|
SELECT A.Project FROM NonDupProject as A)
|
||||||
@ -19,4 +21,4 @@ AND Parent not in (
|
|||||||
Select B.Parent FROM NonDupParent as B
|
Select B.Parent FROM NonDupParent as B
|
||||||
)
|
)
|
||||||
group by Server
|
group by Server
|
||||||
ORDER BY Server;
|
ORDER BY Server;
|
Loading…
Reference in New Issue
Block a user