title: Typeorm select max with specific column
body: <p>I want to select maximum value from a table's column named <code>quotationVersion</code> from table <code>quotation</code>,</p>
  <h2>Code</h2>
  <pre><code>  getOneMaximumQuotationVersion() {
      const query = this.createQueryBuilder(&quot;quotation&quot;);
      query.select(&quot;MAX(quotation.quotationVersion)&quot;, &quot;max&quot;);
      // query.addSelect(&quot;MAX(quotation.quotationVersion)&quot;, &quot;max&quot;);
      return query.getOne();
    }
  </code></pre>