<?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 Cross database foreign key (playground, cm_storage) in Active IQ Unified Manager Discussions</title>
    <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Cross-database-foreign-key-playground-cm-storage/m-p/126860#M22797</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I made a custom playground table with the rows vserver_id, volume_id and info.&lt;/P&gt;&lt;P&gt;I want to use this table to save specific info for every volume, which I can later use to filter the volumes.&lt;/P&gt;&lt;P&gt;Is there any way I can link the rows vserver_id and volume_id with the tabels in cm_storage? So I can make SQL statements with JOIN between the tables to get the information.&lt;/P&gt;&lt;P&gt;I tried it with foreign keys but it didn't work (my SQL knowledge is not the best).&lt;/P&gt;&lt;P&gt;I'm running WFA 4.0 on Linux&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Simon&lt;/P&gt;</description>
    <pubDate>Wed, 04 Jun 2025 15:34:57 GMT</pubDate>
    <dc:creator>paeddy</dc:creator>
    <dc:date>2025-06-04T15:34:57Z</dc:date>
    <item>
      <title>Cross database foreign key (playground, cm_storage)</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Cross-database-foreign-key-playground-cm-storage/m-p/126860#M22797</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I made a custom playground table with the rows vserver_id, volume_id and info.&lt;/P&gt;&lt;P&gt;I want to use this table to save specific info for every volume, which I can later use to filter the volumes.&lt;/P&gt;&lt;P&gt;Is there any way I can link the rows vserver_id and volume_id with the tabels in cm_storage? So I can make SQL statements with JOIN between the tables to get the information.&lt;/P&gt;&lt;P&gt;I tried it with foreign keys but it didn't work (my SQL knowledge is not the best).&lt;/P&gt;&lt;P&gt;I'm running WFA 4.0 on Linux&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Simon&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 15:34:57 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Cross-database-foreign-key-playground-cm-storage/m-p/126860#M22797</guid>
      <dc:creator>paeddy</dc:creator>
      <dc:date>2025-06-04T15:34:57Z</dc:date>
    </item>
    <item>
      <title>Re: Cross database foreign key (playground, cm_storage)</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Cross-database-foreign-key-playground-cm-storage/m-p/128847#M23144</link>
      <description>&lt;P&gt;Hi Simon,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As per my understanding, I have written query for connecting cm-storage scheme from playground scheme to collect vserver and volume details.&lt;/P&gt;&lt;P&gt;Hope it will resolve your issue. If not please explain complete details.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;insert&lt;/STRONG&gt; &lt;STRONG&gt;into&amp;nbsp;playground.&lt;/STRONG&gt;test (VolumeID,VserverID,VolumeInfo) &lt;STRONG&gt;VALUES&lt;/STRONG&gt; (&lt;/P&gt;&lt;P&gt;(&lt;STRONG&gt;SELECT&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;volume.id &lt;STRONG&gt;AS&lt;/STRONG&gt; 'vollume id'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;cm_storage.cluster,&lt;/P&gt;&lt;P&gt;cm_storage.vserver,&lt;/P&gt;&lt;P&gt;cm_storage.volume&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;WHERE&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;vserver.cluster_id = cluster.id&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;AND&lt;/STRONG&gt; volume.vserver_id = vserver.id&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;AND&lt;/STRONG&gt; volume.name = 'TEST_VOLUME'&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;AND&lt;/STRONG&gt; cluster.primary_address = '10.140.110.165'&lt;/P&gt;&lt;P&gt;),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(&lt;STRONG&gt;SELECT&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;vserver.id &lt;STRONG&gt;AS&lt;/STRONG&gt; 'vserver id'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;cm_storage.cluster,&lt;/P&gt;&lt;P&gt;cm_storage.vserver&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;WHERE&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;vserver.cluster_id = cluster.id&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;AND&lt;/STRONG&gt; vserver.name = 'VS1'&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;AND&lt;/STRONG&gt; cluster.primary_address = '10.140.110.165'&lt;/P&gt;&lt;P&gt;),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"volcode"&lt;/P&gt;&lt;P&gt;&amp;nbsp; )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Shiva&lt;/P&gt;</description>
      <pubDate>Thu, 09 Mar 2017 12:16:47 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Cross-database-foreign-key-playground-cm-storage/m-p/128847#M23144</guid>
      <dc:creator>sivakumar_sekar</dc:creator>
      <dc:date>2017-03-09T12:16:47Z</dc:date>
    </item>
  </channel>
</rss>

