Fetching the minimum value in SQL in Python
To select one minimum value from all records, the function MIN should be applied.
Let's select a user with the minimum id:
pythonquery = "SELECT MIN(id) FROM users"
The result of the executed code:
python{'MIN(id)': 1}
Задание 1
Select the youngest user from the table.
Задание 2
Among users whose age is greater than 25, select the one with the lowest salary.