Page 2 of 2 FirstFirst 12
Results 11 to 13 of 13
  1. #11

    you have IDENTICAL TABLES with different contents.
    You may use NOT IN (subquery)

  2. #12

    Thumbs up matching two table(s) with the same fields but different contents by sql

    Quote Originally Posted by junmar View Post
    A simpler query would be
    "select * from table1 except select * from table2 ".
    This is an assumption that you are using an SQL Server Database. In this case, you can compare one or more fields between two tables.
    But the above code is not that accurate when you are really to find the difference between two tables. It would take a higher step than just using "outer join" or "except" operator. "Left Outer Join" or "except" only checks one direction from Table1 to Table2. How about the differences between Table2 to Table1?
    If you are interested on how to check and compare two tables you may follow this link:SQL Server 2005: Using EXCEPT and INTERSECT to compare tables
    hello ug maayong adlaw ilabi ninyo junmar, cold_fusion, zengatsu, snaxnacu, ug dodie (sa tanan pud).

    salamat kaayo nga nalamdagan ug nadungagan akong nahibaw-an nga naa pud diay ni nga technique o pwede sab ing-anion paagi.

    dako kaayo ning tabang sa akong mga learning ug understanding mahitungod sa sql. ug i'm sure daghan pud ang nakakuha o nakapupo sa maayong tubag ani.

    by the way, sorry sab diay nga it takes time for me to answer ky unsaon ... nanginabuhi pa man sab ko.

    sa maka-usa pa, daghan gyud kaayong salamat sa tanan.


    cheers!

  3. #13
    gud luck!

  4.    Advertisement

Page 2 of 2 FirstFirst 12

Similar Threads

 
  1. Replies: 172
    Last Post: 03-22-2013, 08:56 PM
  2. Canon DSLR, are they the same stuff? but with different names?
    By dhaxkz in forum Gizmos & Gadgets (Old)
    Replies: 7
    Last Post: 01-27-2011, 05:00 PM
  3. Replies: 5
    Last Post: 10-18-2010, 09:46 AM
  4. Replies: 0
    Last Post: 04-22-2010, 01:02 PM
  5. Replies: 0
    Last Post: 03-23-2008, 06:26 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
about us
We are the first Cebu Online Media.

iSTORYA.NET is Cebu's Biggest, Southern Philippines' Most Active, and the Philippines' Strongest Online Community!
follow us
#top