Quantcast
Channel: Symantec Connect
Viewing all articles
Browse latest Browse all 13407

Opscenter -SQL Query to list the directories

$
0
0
I need a solution

Hi ,

Please help me in getting the directories list ,client name and their pre-post de-duplication from opscenter using the SQL query.

I was trying with the below query (tried myself using other forums) and not aware how to get output from two tables and results in one column 

Can you help me in getting ouput in below format please.

Client Name    DirectoryList   Pre-Dedup   Post-De-Dup

Query :

********

SELECT domain_JobArchive.clientname as 'Client',nb_JobFiles.fileinfo as 'FileList'

COALESCE(CAST(SUM(preSISSize)/1024.0/1024.0/1024.0 AS NUMERIC (20,2)), 0) AS 'Pre Dedup Size (GiB)', 
COALESCE(CAST(SUM(bytesWritten)/1024.0/1024.0/1024.0 AS NUMERIC(20,2)), 0) AS 'Post Dedup Size (GiB)', 
COALESCE(CAST((SUM(preSisSize) - SUM(bytesWritten))/1024.0/1024.0/1024.0 AS NUMERIC(20,2)), 0) AS 'Total Savings (GiB)'
FROM 
domain_JobArchive,nb_JobFiles
WHERE domain_JobArchive.clientname = nb_JobFiles.fileinfo
presisSize != bytesWritten and 
presissize !=32768
ORDER BY 
clientName
FileList


Viewing all articles
Browse latest Browse all 13407

Trending Articles