<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: OCI query for historical data in General Discussion</title>
    <link>https://community.netapp.com/t5/General-Discussion/OCI-query-for-historical-data/m-p/146687#M311</link>
    <description>&lt;P&gt;For others visibility. This query works for me.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;SELECT DISTINCT STORAGE.name, STORAGE.dataCenter AS DC, STORAGE.family, DATEDIM.fullDate AS Date,sum(STORAGE_FACT.CapacityMB) AS CapacityMB, sum(STORAGE_FACT.usedCapacityMB) AS usedCapacityMB 
FROM storage_dimension STORAGE, date_dimension DATEDIM, storage_and_storage_pool_capacity_fact STORAGE_FACT
WHERE 
STORAGE_FACT.storageTk=STORAGE.tk AND 
STORAGE.dataCenter IN('DC1','DC2','DC3') AND 
DATEDIM.tk=STORAGE_FACT.dateTk AND 
DATEDIM.fullDate&amp;gt;(DATE_ADD(CURDATE(),INTERVAL -30 DAY)) AND
GROUP BY STORAGE.name, DATEDIM.fullDate&lt;/PRE&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Tue, 19 Feb 2019 17:56:24 GMT</pubDate>
    <dc:creator>gaurav_verma</dc:creator>
    <dc:date>2019-02-19T17:56:24Z</dc:date>
    <item>
      <title>OCI query for historical data</title>
      <link>https://community.netapp.com/t5/General-Discussion/OCI-query-for-historical-data/m-p/146258#M304</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am looking to build SQL query to see Cluster's Used, Unused and Allocated capacity from past 7 weeks. One pointer for each week.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am able to generate for current date from view "&lt;SPAN&gt;report_storage_summary_aux&lt;/SPAN&gt;" but dont know how to use fact tables.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;SELECT storage_name, storage_pool_used_capacity 

FROM report_storage_summary_aux

WHERE storage_name LIKE 'Cluster1' AND storage_pool_used_capacity &amp;lt;&amp;gt; 0  OR

storage_name LIKE 'Cluster2' AND storage_pool_used_capacity &amp;lt;&amp;gt; 0 &lt;/PRE&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;Gaurav&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 12:54:49 GMT</pubDate>
      <guid>https://community.netapp.com/t5/General-Discussion/OCI-query-for-historical-data/m-p/146258#M304</guid>
      <dc:creator>gaurav_verma</dc:creator>
      <dc:date>2025-06-04T12:54:49Z</dc:date>
    </item>
    <item>
      <title>Re: OCI query for historical data</title>
      <link>https://community.netapp.com/t5/General-Discussion/OCI-query-for-historical-data/m-p/146687#M311</link>
      <description>&lt;P&gt;For others visibility. This query works for me.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;SELECT DISTINCT STORAGE.name, STORAGE.dataCenter AS DC, STORAGE.family, DATEDIM.fullDate AS Date,sum(STORAGE_FACT.CapacityMB) AS CapacityMB, sum(STORAGE_FACT.usedCapacityMB) AS usedCapacityMB 
FROM storage_dimension STORAGE, date_dimension DATEDIM, storage_and_storage_pool_capacity_fact STORAGE_FACT
WHERE 
STORAGE_FACT.storageTk=STORAGE.tk AND 
STORAGE.dataCenter IN('DC1','DC2','DC3') AND 
DATEDIM.tk=STORAGE_FACT.dateTk AND 
DATEDIM.fullDate&amp;gt;(DATE_ADD(CURDATE(),INTERVAL -30 DAY)) AND
GROUP BY STORAGE.name, DATEDIM.fullDate&lt;/PRE&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 19 Feb 2019 17:56:24 GMT</pubDate>
      <guid>https://community.netapp.com/t5/General-Discussion/OCI-query-for-historical-data/m-p/146687#M311</guid>
      <dc:creator>gaurav_verma</dc:creator>
      <dc:date>2019-02-19T17:56:24Z</dc:date>
    </item>
  </channel>
</rss>

