MehrfachverbindungHey, ich versuche, mehrere Tabellen zu verknüpfen und habe das SQL-Skript aus dem JMP Query Builder in ein Skript kopiert und am Anfang einige Befehle hinzugefügt. Wahrscheinlich funktioniert es nicht, da es sich um SQL und nicht um JSL handelt?
Mein Problem ist, dass ich im JMP Query Builder nicht entscheiden kann, welche Spalten für den Abgleich der Zeilen ausgewählt werden sollen. Wer kann mir hier weiterhelfen?
Das ist das Skript, das ich jetzt habe. (die Kombination aus JSL und SQL)
dt=CurrentDataTable ();
dt<< SELECT *
FROM "mon_trend Abs._OF 420nm 5cm" t1
LEFT OUTER JOIN "mon_trend TOC mg l" t20
ON ( ( t20.Site = t1.Site ) AND ( t20.Season = t1.Season ) )
LEFT OUTER JOIN "mon_trend Syrgashalt mg l" t19
ON ( ( t19.Site = t1.Site ) AND ( t19.Season = t1.Season ) )
LEFT OUTER JOIN "mon_trend Si mg l" t18
ON ( ( t18.Site = t1.Site ) AND ( t18.Season = t1.Season ) )
LEFT OUTER JOIN "mon_trend PO4-P µg l" t17
ON ( ( t17.Site = t1.Site ) AND ( t17.Season = t1.Season ) )
LEFT OUTER JOIN "mon_trend pH" t16
ON ( ( t16.Site = t1.Site ) AND ( t16.Season = t1.Season ) )
LEFT OUTER JOIN "mon_trend NO2-N µg l" t15
ON ( ( t15.Site = t1.Site ) AND ( t15.Season = t1.Season ) )
LEFT OUTER JOIN "mon_trend NO2+NO3-N µg l" t14
ON ( ( t14.Site = t1.Site ) AND ( t14.Season = t1.Season ) )
LEFT OUTER JOIN "mon_trend NH4-N µg l" t13
ON ( ( t13.Site = t1.Site ) AND ( t13.Season = t1.Season ) )
LEFT OUTER JOIN "mon_trend Na mekv l" t12
ON ( ( t12.Site = t1.Site ) AND ( t12.Season = t1.Season ) )
LEFT OUTER JOIN "mon_trend Mn µg l" t11
ON ( ( t11.Site = t1.Site ) AND ( t11.Season = t1.Season ) )
LEFT OUTER JOIN "mon_trend Mg mekv l" t10
ON ( ( t10.Site = t1.Site ) AND ( t10.Season = t1.Season ) )
LEFT OUTER JOIN "mon_trend Kond_25 mS m25" t9
ON ( ( t9.Site = t1.Site ) AND ( t9.Season = t1.Season ) )
LEFT OUTER JOIN "mon_trend K mekv l" t8
ON ( ( t8.Site = t1.Site ) AND ( t8.Season = t1.Season ) )
LEFT OUTER JOIN "mon_trend Fe µg l" t7
ON ( ( t7.Site = t1.Site ) AND ( t7.Season = t1.Season ) )
LEFT OUTER JOIN "mon_trend F mg l" t6
ON ( ( t6.Site = t1.Site ) AND ( t6.Season = t1.Season ) )
LEFT OUTER JOIN "mon_trend Cl mekv l" t5
ON ( ( t5.Site = t1.Site ) AND ( t5.Season = t1.Season ) )
LEFT OUTER JOIN "mon_trend Ca mekv l" t4
ON ( ( t4.Site = t1.Site ) AND ( t4.Season = t1.Season ) )
LEFT OUTER JOIN "mon_trend Alk. Acid mekv l" t3
ON ( ( t3.Site = t1.Site ) AND ( t3.Season = t1.Season ) )
LEFT OUTER JOIN "mon_trend Abs._F 420nm 5cm" t2
ON ( ( t1.Site = t2.Site ) AND ( t1.Season = t2.Season ) ) ;
Betreff: MehrfachbeitrittSuchen Sie nach der JMP-Funktion Abfrage()
Query(<, ..., >, , , sqlStatement )
Beschreibung
Führt eine SQL-Abfrage für ausgewählte Datentabellen durch.
Natürlich können Sie JMP Query Builder in einem Ascript verwenden. Wenn Sie das JMP Query Builder-Skript ausgeführt haben und es ausgeführt wurde, sollte der resultierenden Tabelle ein Run Query-Skript angehängt sein. Dies ist das JSL-Skript zum Ausführen derselben Abfrage.
Hoffentlich hilft das.