I have a table called jobs with a column called job_num. How do i return the maximum value of the integers in that column?
I have tried
result = Job.select(max(Job.job_num))
I have also tried a few different combinations such as
result = Job.select(Job.job_num).max()
I have also checked the peewee docs. Can anyone help please.