title: extracting data from a sql query
body: <p>IF I have a query like:</p>
  
  <p>Then while doing it, should I write each entry from the table to get the output. like</p>
  
  <p>Now How I get all the entries of my table flight. I have 2 columns in it..</p>