﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / SQL Server 2012 / SQL 2012 - General  / SQL COMPARE HELP!!! / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Thu, 23 May 2013 12:45:19 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: SQL COMPARE HELP!!!</title><link>http://www.sqlservercentral.com/Forums/Topic1421182-2799-1.aspx</link><description>Thank you very much. This is amazing!!!</description><pubDate>Tue, 19 Feb 2013 03:51:01 GMT</pubDate><dc:creator>gh449</dc:creator></item><item><title>RE: SQL COMPARE HELP!!!</title><link>http://www.sqlservercentral.com/Forums/Topic1421182-2799-1.aspx</link><description>[code="sql"]-- Collect the matchesSELECT l.ID ; FROM LARGE l ;INNER JOIN small s ;	ON s.ID &amp;lt;&amp;gt; l.ID ; 	AND LARGE.Z5 = small.z5 and Large.ln = small.ln and Large.fn = small.fn ;INTO TABLE SuppressedRows.DBF ; -- Then use the ID's to restrict table LARGE SELECT l.ID ; FROM LARGE l ;WHERE l.ID NOT IN (SELECT ID FROM SuppressedRows) ;INTO TABLE SuppressedRows.DBF ;-- You might be able to do this in one step (it's a while since I've used Foxpro SQL)SELECT l.ID ; FROM LARGE l ;WHERE l.ID NOT IN ( ;	SELECT l.ID ; 	FROM LARGE l ;	INNER JOIN small s ;		ON s.ID &amp;lt;&amp;gt; l.ID ; 		AND LARGE.Z5 = small.z5 and Large.ln = small.ln and Large.fn = small.fn) ;INTO TABLE SuppressedRows.DBF ;[/code]</description><pubDate>Tue, 19 Feb 2013 00:57:52 GMT</pubDate><dc:creator>ChrisM@Work</dc:creator></item><item><title>RE: SQL COMPARE HELP!!!</title><link>http://www.sqlservercentral.com/Forums/Topic1421182-2799-1.aspx</link><description>[quote][b]gh449 (2/18/2013)[/b][hr]I tried that getting dozens on duplicates on the output file? Thank you!!!![/quote]Confused.  Did it help or not?If not, what is the problem.  I am not a Foxpro developer but this does appear to be basic SQL.  The only thing I see missing in the query is a join between the data in the tables.Not being able to see what you see makes it even harder.</description><pubDate>Mon, 18 Feb 2013 09:19:20 GMT</pubDate><dc:creator>Lynn Pettis</dc:creator></item><item><title>RE: SQL COMPARE HELP!!!</title><link>http://www.sqlservercentral.com/Forums/Topic1421182-2799-1.aspx</link><description>I tried that getting dozens on duplicates on the output file? Thank you!!!!</description><pubDate>Mon, 18 Feb 2013 08:52:33 GMT</pubDate><dc:creator>gh449</dc:creator></item><item><title>RE: SQL COMPARE HELP!!!</title><link>http://www.sqlservercentral.com/Forums/Topic1421182-2799-1.aspx</link><description>[quote][b]gh449 (2/18/2013)[/b][hr]Hello,I need to write a few lines of SQL that will suppress one file from another. I work in foxpro 2.6 for DOS (i know its old but it works for us) we have name and address files. We want to suppress one .dbf from another .dbf.  Here is what i have but it wont work. HELP!!Thanks!!&amp;&amp;&amp;&amp;   A prg to supress two files based on Z5, LN , AD - FEB 2013 GH&amp;&amp;&amp;&amp;  "FEBSUP.PRG"   all standard filesSELECT * ;	FROM LARGE, small ;	WHERE LARGE.Z5 &amp;lt;&amp;gt; small.z5 and Large.ln &amp;lt;&amp;gt; small.ln and Large.fn &amp;lt;&amp;gt; small fn ;	ORDER BY LARGE.Z5 ;	INTO TABLE SUPP.DBF	[/quote]Try changing the ANDs to ORs in the WHERE clause.</description><pubDate>Mon, 18 Feb 2013 08:19:26 GMT</pubDate><dc:creator>Lynn Pettis</dc:creator></item><item><title>RE: SQL COMPARE HELP!!!</title><link>http://www.sqlservercentral.com/Forums/Topic1421182-2799-1.aspx</link><description>You might be best asking that in a dedicated FoxPro forum not a Microsoft SQL Server forum.Someone who knows FoxPro may stumble across the post and help, but I am not aware of many FoxPro people here.</description><pubDate>Mon, 18 Feb 2013 06:52:28 GMT</pubDate><dc:creator>anthony.green</dc:creator></item><item><title>SQL COMPARE HELP!!!</title><link>http://www.sqlservercentral.com/Forums/Topic1421182-2799-1.aspx</link><description>Hello,I need to write a few lines of SQL that will suppress one file from another. I work in foxpro 2.6 for DOS (i know its old but it works for us) we have name and address files. We want to suppress one .dbf from another .dbf.  Here is what i have but it wont work. HELP!!Thanks!!&amp;&amp;&amp;&amp;   A prg to supress two files based on Z5, LN , AD - FEB 2013 GH&amp;&amp;&amp;&amp;  "FEBSUP.PRG"   all standard filesSELECT * ;	FROM LARGE, small ;	WHERE LARGE.Z5 &amp;lt;&amp;gt; small.z5 and Large.ln &amp;lt;&amp;gt; small.ln and Large.fn &amp;lt;&amp;gt; small fn ;	ORDER BY LARGE.Z5 ;	INTO TABLE SUPP.DBF	</description><pubDate>Mon, 18 Feb 2013 06:35:11 GMT</pubDate><dc:creator>gh449</dc:creator></item></channel></rss>