Count() by date range

  • a. tblMen

    i. ManId (Int) – Primary Key

    ii. TestDate (Datetime) – The date that the person has taken the test.

    iii. Score (int) – The test score

    b. tblWomen

    i. WomanId (Int) – Primary Key

    ii. TestDate (Datetime) – The date that the person has taken the test.

    iii. Score (int) – The test score

    Write a SQL query that returns two columns:

    a. Week Starting Date, starting from the first Sunday of 2010 in the format MM/DD/YYYY

    b. Total count of men and women that took the test that week.

  • Sound straight forward enough if you use a calendar table.

    Can you show us your code so far ?



    Clear Sky SQL
    My Blog[/url]

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

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