I need to manage some data and retrieve a result I’m not able to do.
Table1
id int
idcat int (related to the table2)
tt varchar
dt datetime
Table2
idcat int
days int
what I need is to retrieve ALL table1 record that are not older than days related to each category (idcat).
Thanks,
A.
should give you all records that are not older than days in each category