title: How do I write this database comparison in Oracle PL/SQL?
body: <p>Given databases x, y with matching schemas:</p>
  
  <pre><code>//for all entries in x.MY_TABLE
  //        if PRIMARY_KEY of entry exists in y.MY_TABLE
  //            if {data of entry in x} doesn't match {data of matching entry in y}
  //                print PRIMARY_KEY
  //        else
  //            print PRIMARY_KEY
  </code></pre>
  
  <p>Assume that the table is a simple system with at most a 2-column primary key.</p>