How do I compare new data with old data to find differences?

Assume there are two student tables: student1(id char(5),name char(20)); student2(id char(5),name char(20)); You can find students who have the same name but different ids by using the following command:

dmSQL> select student1.id,student2.id,student1.name

    2>   from student1,student2

    3>   where student1.name=student2.name and

    4>         student1.id<student2.id;

      

Copyright 1999-2001 CASEMaker Inc. All rights reserved.
Comments or questions about our web site? Please write the webmaster.
Terms and Conditions | User Privacy Statement