I have a table called Entrega
where all the deliveries made with their respective dates are stored, how can I only deliver deliveries from the last 15 days? Doing so I can deliver from 10 October, for example:
SELECT * FROM public.entrega where data >= '2017-10-10' order by data desc;
But how can I determine the last 15 days for something more dynamic?