title: Performing binary comparison of MySQL field values with SQL
body: <p>Trying to figure out the best way of handling this:</p>
  
  <p>given a table with 2 fields: id and data 
  I would like to select 2 records from this table and perform a binary comparison on the value of the data field for each record using SQL. Any suggestions on how best to do this?</p>
  
  <p>Database being used is MySQL</p>