Forum Replies Created

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

  • Reply To: Conditional Sum in SQL

    So the lag function that is helping to shave off a day from the count of days to avoid double-counting works when StartDate is used as the beginning date in...

    • This reply was modified 3 years, 5 months ago by agorjest.
    Attachments:
    You must be logged in to view attached files.
  • Reply To: Conditional Sum in SQL

    DateDiff code didn't paste properly in previous post. Here is the correct code:

    Capture

     

     

    • This reply was modified 3 years, 5 months ago by agorjest.
    • This reply was modified 3 years, 5 months ago by agorjest.
    Attachments:
    You must be logged in to view attached files.
  • Reply To: Conditional Sum in SQL

    Jeff, to answer you're question, the StartDate (and the EndDate)  can be one of 3 dates, determined by the datediff code earlier in the query (see query snip below).  StartDate/EndDate...

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