title: Calculate the minimum value of a database in python with the min sql query
body: <p>I have a database: my column-name is <code>waarde</code> and my tablename is <code>tblWaarden</code>.</p>
  <p>He doesn't print the minimum value but</p>
  <pre><code>SELECT MIN (waarde) FROM tblWaarden
  </code></pre>
  <p>Is there anyone that can help me?</p>
  <pre><code>def CalculateMin(dbFilename):
       connection = sqlite3.connect(dbFilename)
       cursor = connection.cursor()
       sqlQuery = &quot;SELECT MIN (waarde) FROM tblWaarden&quot;
  
       sqlCommand = sqlQuery.format()
       cursor.execute(sqlCommand)
       print(sqlQuery)
       connection.commit()
       connection.close()
  </code></pre>