I am a complete beginner in SQL server and I have no idea how to proceed. I have made a table and I want to calculate the frequency of spending in the last 7 days and 30 day