I would like to calculate the MAX () value for a column. What is the correct way to do this in sqlalchemy while maintaining database independence?
You can find aggregate functions in:
from sqlalchemy import func func.avg(...) func.sum(...) func.max(...)
At 0.5, you can use an ORM query, for example select:
session.query(func.max(Table.column))
Source: https://habr.com/ru/post/1734937/More articles:WPF definition for FontSize - c #Grails: checking a string containing a list of delimited email addresses - commandHow to find the path to ImageMagick configuration files - imagemagickIs there: disable_with equivalent for link_to_remote? - ajaxbook for intermediate and advanced Mercurial - mercurialEmulate a break statement in a ForEach function - c #jQuery AJAX - Returned HTML vanishes - jqueryUnable to import numpy into IronPhthon built-in engine - pythonConsume ado.net data service from android 2.1 - javaHow can I iterate over files in javascript - javascriptAll Articles