title: get one result at a time from database (when more than one result exists)
body: <p>I have a database in which more than one row has the same value.
  Eg,</p>
  <blockquote>
  <p>Column1 Column2</p>
  <pre><code>A       X
  A       Y
  A       Z
  </code></pre>
  </blockquote>
  <p>A resultset gets all the values of column 2  as a single string.
  How to get each unique value from database (or from result set)?</p>
  <p>(I use java)</p>
  <p>Thanks in advance.</p>