title: Get distinct record from table using zend functions?
body: <p>I am getting all records like this in Zend:</p>
  
  <pre><code>$table = new Model_Student_Object();
  $select = $table-&gt;select();
  echo $select-&gt;assemble();die();
  </code></pre>
  
  <p>Result of above code is following query:</p>
  
  <pre><code>SELECT `student`.* FROM `student`
  </code></pre>
  
  <p>Now I want to get distinct records by Zip code. So query should be:</p>
  
  <pre><code>SELECT DISTINCT `student`.zip FROM `student` WHERE `student`.zip != '' 
  </code></pre>
  
  <p>How will I right above query with zend functions ??</p>
  
  <p>Thanks</p>