<?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>Thema "Having im Enterprise Guide" in CoDe SAS German</title>
    <link>https://communities.sas.com/t5/CoDe-SAS-German/Having-im-Enterprise-Guide/m-p/394679#M2287</link>
    <description>&lt;P&gt;Hallo!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ich habe eine Tabelle mit verschiedenen Snapshots für einen Kunden. Ich brauche immer den letzten Snapshot und wollte das mit einem Having lösen.&lt;/P&gt;
&lt;P&gt;Allerdings weiss ich nicht wo bei der Abfrage im Enterprise Guide. Im Data Integrations Studio klappt's, kenne mich mit dem EG nicht so gut aus&lt;/P&gt;
&lt;P&gt;Kann mir jemand helfen?&lt;/P&gt;</description>
    <pubDate>Mon, 11 Sep 2017 13:44:20 GMT</pubDate>
    <dc:creator>Fay123</dc:creator>
    <dc:date>2017-09-11T13:44:20Z</dc:date>
    <item>
      <title>Having im Enterprise Guide</title>
      <link>https://communities.sas.com/t5/CoDe-SAS-German/Having-im-Enterprise-Guide/m-p/394679#M2287</link>
      <description>&lt;P&gt;Hallo!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ich habe eine Tabelle mit verschiedenen Snapshots für einen Kunden. Ich brauche immer den letzten Snapshot und wollte das mit einem Having lösen.&lt;/P&gt;
&lt;P&gt;Allerdings weiss ich nicht wo bei der Abfrage im Enterprise Guide. Im Data Integrations Studio klappt's, kenne mich mit dem EG nicht so gut aus&lt;/P&gt;
&lt;P&gt;Kann mir jemand helfen?&lt;/P&gt;</description>
      <pubDate>Mon, 11 Sep 2017 13:44:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/CoDe-SAS-German/Having-im-Enterprise-Guide/m-p/394679#M2287</guid>
      <dc:creator>Fay123</dc:creator>
      <dc:date>2017-09-11T13:44:20Z</dc:date>
    </item>
    <item>
      <title>Betreff: Having im Enterprise Guide</title>
      <link>https://communities.sas.com/t5/CoDe-SAS-German/Having-im-Enterprise-Guide/m-p/394681#M2288</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Dieser &lt;A href="http://blogs.sas.com/content/sasdummy/2012/09/18/having-clause-fun-with-sas-enterprise-guide/" target="_blank"&gt;Blog-Eintrag&lt;/A&gt; von Chris Hemedinger könnte Dich zur Lösung führen.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Sep 2017 13:54:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/CoDe-SAS-German/Having-im-Enterprise-Guide/m-p/394681#M2288</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-09-11T13:54:41Z</dc:date>
    </item>
    <item>
      <title>Betreff: Having im Enterprise Guide</title>
      <link>https://communities.sas.com/t5/CoDe-SAS-German/Having-im-Enterprise-Guide/m-p/394688#M2289</link>
      <description>&lt;P&gt;Danke, mir ist allerdings schon nicht klar, wie ich das Having in die Abfrage reinklicken kann - EG für Dummies sozusagen&lt;/P&gt;</description>
      <pubDate>Mon, 11 Sep 2017 14:09:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/CoDe-SAS-German/Having-im-Enterprise-Guide/m-p/394688#M2289</guid>
      <dc:creator>Fay123</dc:creator>
      <dc:date>2017-09-11T14:09:06Z</dc:date>
    </item>
    <item>
      <title>Betreff: Having im Enterprise Guide</title>
      <link>https://communities.sas.com/t5/CoDe-SAS-German/Having-im-Enterprise-Guide/m-p/394692#M2290</link>
      <description>&lt;P&gt;HAVING bracuht man nur, wenn man mit Summationsfunktionen arbeitet. Sobald man eine damit erzeugte Spalte im Select hat, bietet der Abfrage-Assistent im "Daten filtern" die Option "Zusammengefasste Daten filtern" an.&lt;/P&gt;
&lt;P&gt;zB&lt;/P&gt;
&lt;P&gt;ich beginne mit SASHELP.CLASS, und ziehe Name und Age in "Daten auswählen". Dann wähle ich MAX als Zusammenfassung für Age, worauf ich MAX_of_Age als Spaltenname erhalte.&lt;/P&gt;
&lt;P&gt;Jetzt kann ich in "Daten filtern" die genannte Option nutzen, MAX_of_Age dort hineinziehen, und im Pop-Up statt einem Wert (Drop-Down benutzen) die Spalte t1.Age zum Vergleich heranziehen.&lt;/P&gt;
&lt;P&gt;Danach noch im "Daten auswählen" das "Gruppen automatisch auswählen" wegklicken und t1.Sex als Gruppe verwenden, und man bekommt diesen Code:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC SQL;
   CREATE TABLE WORK.QUERY_FOR_CLASS AS 
   SELECT t1.Name, 
          /* MAX_of_Age */
            (MAX(t1.Age)) AS MAX_of_Age
      FROM SASHELP.CLASS t1
      GROUP BY t1.Sex
      HAVING (CALCULATED MAX_of_Age) = t1.Age;
QUIT;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Das Ergebnis sieht dann so aus:&lt;/P&gt;
&lt;PRE&gt;           MAX_
 Name     of_Age

Mary        15  
Janet       15  
Philip      16  
&lt;/PRE&gt;</description>
      <pubDate>Mon, 11 Sep 2017 14:33:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/CoDe-SAS-German/Having-im-Enterprise-Guide/m-p/394692#M2290</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-09-11T14:33:51Z</dc:date>
    </item>
    <item>
      <title>Betreff: Having im Enterprise Guide</title>
      <link>https://communities.sas.com/t5/CoDe-SAS-German/Having-im-Enterprise-Guide/m-p/394699#M2291</link>
      <description>&lt;P&gt;Vielen Dank, ich probiere es mal aus.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Sep 2017 14:48:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/CoDe-SAS-German/Having-im-Enterprise-Guide/m-p/394699#M2291</guid>
      <dc:creator>Fay123</dc:creator>
      <dc:date>2017-09-11T14:48:11Z</dc:date>
    </item>
  </channel>
</rss>

