I am looking for a way to compare a data from my table in SQL server to get the list of records from a date
SELECT * FROM asistencias where fecha >= (CURRENT_TIMESTAMP-15)
(shows the current results of the current date -15 days)
my real query is:
SELECT * FROM asistencia where id_usuario=$Id_usuario and fecha > '2018-07-25' and fecha < '2018-08-25' and asistencia = '0'
as the current period has to be automatic the dates have to be generated logically