I made this select that returns me the amount of records in the last 24h
select count(*) from registros
where registry_date >= NOW() - interval '24 hours'
I need a select that compares the value that is returned in this first query with the value of the same date in the previous month.
Example: Today (10/10/2018) there were 90 records. I need to compare these 90 records with the amount of records on 09/10/2018