Grouping Data by week on a daily basis

  • Hi,

    I want to group the data for last week on a daily basis.

    For example, if I have today's date the result should be the distinct people in the last one week from today.

    If I have tomorrow's date the result should be the distinct people in the last one week from tomorrow.

    Your answer would be of a great help.

    Thanks,

    KV

  • you can make use of datediff(day, -7, yourdate) to get last one week date

  • if you still have problem, post your table structure some sample data and the result that you want.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic. Login to reply