<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.us.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>22 Jul 2015 14:26:00 Z</lastBuildDate><pubDate>22 Jul 2015 00:23:00 Z</pubDate><description>Hi all -&#13;
&#13;
I'm not very good at SQL, so rather than spend hours trying to figure this one out on my own, I figured I'd ask for help first.&#13;
&#13;
I have 2 files, both have a ContactID field in them. I want to create a single list of ContactID's - without any duplicates in them. So basically if a contact shows up in either of these files, I want to work with them.&#13;
&#13;
Any have some code to get me started? I don't know anything about inner / outer joins (other than they exist)</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53172-webdev19-how-code-sql-2-files-only-bring/read.awp</link><title>WEBDEV19 - How to Code SQL, 2 files, only bring back Unique</title><managingEditor>moderateur@pcsoft.fr (El moderador)</managingEditor><webMaster>webmaster@pcsoft.fr (El webmaster)</webMaster><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53172-webdev19-how-code-sql-2-files-only-bring-53186/read.awp</comments><pubDate>22 Jul 2015 14:26:00 Z</pubDate><description>Thanks guys!</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53172-webdev19-how-code-sql-2-files-only-bring-53186/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53172-webdev19-how-code-sql-2-files-only-bring-53186/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53172-webdev19-how-code-sql-2-files-only-bring/read.awp">WEBDEV19 - How to Code SQL, 2 files, only bring back Unique</source><title>Re: WEBDEV19 - How to Code SQL, 2 files, only bring back Unique</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53172-webdev19-how-code-sql-2-files-only-bring-53179/read.awp</comments><pubDate>22 Jul 2015 11:11:00 Z</pubDate><description>Hi Joel,&#13;
&#13;
No the ContactID wouldn't show up twice. This is the difference between UNION and UNION ALL.&#13;
&#13;
UNION - removes dupl…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53172-webdev19-how-code-sql-2-files-only-bring-53179/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53172-webdev19-how-code-sql-2-files-only-bring-53179/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53172-webdev19-how-code-sql-2-files-only-bring/read.awp">WEBDEV19 - How to Code SQL, 2 files, only bring back Unique</source><title>Re: WEBDEV19 - How to Code SQL, 2 files, only bring back Unique</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53172-webdev19-how-code-sql-2-files-only-bring-53177/read.awp</comments><pubDate>22 Jul 2015 02:59:00 Z</pubDate><description>But if the same ContactID is in both files, after you do the union, wouldn't it show up twice in the final file?</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53172-webdev19-how-code-sql-2-files-only-bring-53177/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53172-webdev19-how-code-sql-2-files-only-bring-53177/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53172-webdev19-how-code-sql-2-files-only-bring/read.awp">WEBDEV19 - How to Code SQL, 2 files, only bring back Unique</source><title>Re: WEBDEV19 - How to Code SQL, 2 files, only bring back Unique</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53172-webdev19-how-code-sql-2-files-only-bring-53176/read.awp</comments><pubDate>22 Jul 2015 02:26:00 Z</pubDate><description>I'd suggest a slight change...&#13;
&#13;
SELECT DISTINCT table1.customerID from table1&#13;
UNION&#13;
SELECT DISTINCT table2.customerID from t…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53172-webdev19-how-code-sql-2-files-only-bring-53176/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53172-webdev19-how-code-sql-2-files-only-bring-53176/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53172-webdev19-how-code-sql-2-files-only-bring/read.awp">WEBDEV19 - How to Code SQL, 2 files, only bring back Unique</source><title>Re: WEBDEV19 - How to Code SQL, 2 files, only bring back Unique</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53172-webdev19-how-code-sql-2-files-only-bring-53175/read.awp</comments><pubDate>22 Jul 2015 01:17:00 Z</pubDate><description>Correction:&#13;
&#13;
Select table1.customerID from table1&#13;
UNION&#13;
Select table2.customerID from table2</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53172-webdev19-how-code-sql-2-files-only-bring-53175/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53172-webdev19-how-code-sql-2-files-only-bring-53175/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53172-webdev19-how-code-sql-2-files-only-bring/read.awp">WEBDEV19 - How to Code SQL, 2 files, only bring back Unique</source><title>Re: WEBDEV19 - How to Code SQL, 2 files, only bring back Unique</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53172-webdev19-how-code-sql-2-files-only-bring-53174/read.awp</comments><pubDate>22 Jul 2015 01:16:00 Z</pubDate><description>Out of the mind and not tested:&#13;
&#13;
Select table1.customerID&#13;
UNION&#13;
Select table2.customerID&#13;
&#13;
should do a distinct select&#13;
&#13;
S…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53172-webdev19-how-code-sql-2-files-only-bring-53174/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53172-webdev19-how-code-sql-2-files-only-bring-53174/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/53172-webdev19-how-code-sql-2-files-only-bring/read.awp">WEBDEV19 - How to Code SQL, 2 files, only bring back Unique</source><title>Re: WEBDEV19 - How to Code SQL, 2 files, only bring back Unique</title></item></channel></rss>
