<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.us.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>28 Oct 2016 00:07:00 Z</lastBuildDate><pubDate>27 Oct 2016 03:18:00 Z</pubDate><description>Hi&#13;
I have to find barcode records which are not linked to a stockcode so I have the following querySELECT STKPLU.plu FROM STKPLU WHERE NOT EXISTS ( SELECT * FROM stkmast m join stkplu p on (p.stkm_linkid = m.sysid) ) This query returns 0 records. The STKPLU file contains 16,335 records which is also what I get if I remove the NOT. If I run the sub-query on its own I get 16,031 records. The difference between the 2 is what I would expect my query to return.&#13;
&#13;
What am i missing?&#13;
&#13;
Thanks&#13;
&#13;
David</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/60133-help-with-sql-query-hfcs/read.awp</link><title>Help with SQL query - HFCS</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/60133-help-with-sql-query-hfcs-60147/read.awp</comments><pubDate>28 Oct 2016 00:07:00 Z</pubDate><description>Well, I didn't know which files was "barcode records" and wich one "stockcode".&#13;
It was just the contrary!</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/60133-help-with-sql-query-hfcs-60147/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/60133-help-with-sql-query-hfcs-60147/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/60133-help-with-sql-query-hfcs/read.awp">Help with SQL query - HFCS</source><title>Re: Help with SQL query - HFCS</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/60133-help-with-sql-query-hfcs-60145/read.awp</comments><pubDate>27 Oct 2016 22:24:00 Z</pubDate><description>Thanks guys&#13;
Arie, that was what I tried originally but that returned 16,335 records so I then started playing around with NOT E…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/60133-help-with-sql-query-hfcs-60145/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/60133-help-with-sql-query-hfcs-60145/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/60133-help-with-sql-query-hfcs/read.awp">Help with SQL query - HFCS</source><title>Re: Help with SQL query - HFCS</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/60133-help-with-sql-query-hfcs-60136/read.awp</comments><pubDate>27 Oct 2016 09:04:00 Z</pubDate><description>I think that you don't need a subquery, but to use the "IS NULL" operator.&#13;
&#13;
Try this:&#13;
&#13;
SELECT * FROM stkmast LEFT OUTER JOIN…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/60133-help-with-sql-query-hfcs-60136/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/60133-help-with-sql-query-hfcs-60136/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/60133-help-with-sql-query-hfcs/read.awp">Help with SQL query - HFCS</source><title>Re: Help with SQL query - HFCS</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/60133-help-with-sql-query-hfcs-60135/read.awp</comments><pubDate>27 Oct 2016 08:39:00 Z</pubDate><description>Hi David,&#13;
&#13;
try this syntax.&#13;
&#13;
SELECT STKPLU.plu&#13;
FROM STKPLU&#13;
WHERE stkplu .sysid NOT IN (SELECT sysid FROM stkmast)</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/60133-help-with-sql-query-hfcs-60135/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/60133-help-with-sql-query-hfcs-60135/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/60133-help-with-sql-query-hfcs/read.awp">Help with SQL query - HFCS</source><title>Re: Help with SQL query - HFCS</title></item></channel></rss>
