<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[intersezione]]></title><description><![CDATA[<p dir="auto">ciao a tutti,<br />
Ho bisogno di un aiuto.ho necessità di fare l'intersezione tra un attributo di due <a href="http://tabelle.io" rel="nofollow ugc">tabelle.io</a> ho  dentro la tabella costumers gli id dei customers che si sono iscritti al mio sito e nella tabella orders ho gli id dei costumers che hanno fatto gli ordini.<br />
Essendo su aruba il mysql è il 4.07 e non riesco a trovare una query che mi dia tutti i customers che NON hanno fatto ordini.<br />
La cosa ideale sarebbe sottrarre da tutti i customers solo quelli che hanno fatto gli ordini ma ne con i comandi intersect except &lt;&gt;all not in e not exists sono riuscito.</p>
<p dir="auto">Come posso fare?</p>
<p dir="auto">Grazie</p>
]]></description><link>https://dev.connect.gt/topic/50778/intersezione</link><generator>RSS for Node</generator><lastBuildDate>Sat, 28 Nov 2026 14:06:59 GMT</lastBuildDate><atom:link href="https://dev.connect.gt/topic/50778.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 18 Oct 2007 16:44:05 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to intersezione on Mon, 22 Oct 2007 20:26:00 GMT]]></title><description><![CDATA[<p dir="auto">Starting with MySQL 4.1, all subquery forms and operations that the SQL standard requires are supported</p>
<p dir="auto">La tua versione di mysql non supporta le subquery.<br />
Non puoi farlo con solo mysql, devi lavorare anche con il php.</p>
]]></description><link>https://dev.connect.gt/post/621116</link><guid isPermaLink="true">https://dev.connect.gt/post/621116</guid><dc:creator><![CDATA[giacomo79]]></dc:creator><pubDate>Mon, 22 Oct 2007 20:26:00 GMT</pubDate></item><item><title><![CDATA[Reply to intersezione on Mon, 22 Oct 2007 20:20:21 GMT]]></title><description><![CDATA[<p dir="auto">Su aruba faccio la tua query e mi da questo errore<br />
<strong>Errore</strong></p>
<pre><code> **query SQL:** [![](http://mysql.aruba.it/phpMyAdmin/phpMyAdmin/themes/original/img/b_help.png)](http://dev.mysql.com/doc/refman/4.1/en/select.html)    
          SELECT customers_id
</code></pre>
<p dir="auto">FROM customers<br />
WHERE customers_id NOT<br />
IN (<br />
SELECT customer_id<br />
FROM orders<br />
)<br />
LIMIT 0 , 30<br />
<strong>Messaggio di MySQL:</strong> <a href="http://dev.mysql.com/doc/refman/4.1/en/error-messages-server.html" rel="nofollow ugc"><img src="http://mysql.aruba.it/phpMyAdmin/phpMyAdmin/themes/original/img/b_help.png" alt="" class="img-markdown  img-fluid" /></a><br />
#1064 - You have an error in your SQL syntax.  Check the manual that corresponds to your MySQL server version for the right syntax to use near 'SELECT customer_id FROM orders )<br />
LIMIT 0, 30' at line 1</p>
]]></description><link>https://dev.connect.gt/post/621129</link><guid isPermaLink="true">https://dev.connect.gt/post/621129</guid><dc:creator><![CDATA[mattiadj]]></dc:creator><pubDate>Mon, 22 Oct 2007 20:20:21 GMT</pubDate></item><item><title><![CDATA[Reply to intersezione on Mon, 22 Oct 2007 14:27:34 GMT]]></title><description><![CDATA[<p dir="auto">Se puoi utilizzare le subquery (controlla quale versione di mysql le supporta) fai così:</p>
<pre><code>SELECT id FROM customers WHERE id NOT IN (SELECT customer_id FROM orders)
</code></pre>
]]></description><link>https://dev.connect.gt/post/621117</link><guid isPermaLink="true">https://dev.connect.gt/post/621117</guid><dc:creator><![CDATA[giacomo79]]></dc:creator><pubDate>Mon, 22 Oct 2007 14:27:34 GMT</pubDate></item></channel></rss>