I'm working on finding a way to get all the max values from all the columns from multiple tables in the database. So far i have done this query:
SELECT
source,
max(column1),
max(column2),
max(column3),
max(column4),
max(column5),
FROM database.table
WHERE date_recent = '2019-01-01'
GROUP BY source;
Ofcourse this works for one table and is a bit tedious as i had to select each column manually, how could i approach this?
Please bear with me as I'm new to SQL, any help would be appreciated, thank you.