Create a query that only shows active records based on start date, duration, and true/false

Posted by Chris on Stack Overflow See other posts from Stack Overflow or by Chris
Published on 2010-05-13T06:35:29Z Indexed on 2010/05/13 6:44 UTC
Read the original article Hit count: 139

Filed under:

I'm trying to piece together a dynamic view that will give a list of all emails that are still being rejected.

Table structure:

  • EmailName - varchar(150) - An email address
  • StartRejection - Date - Day to start rejecting email
  • Duration - Small Int - Duration of rejection
  • IsIndefinate - Bit - Is the rejection 'non date range specific' but indefinate

© Stack Overflow or respective owner

Related posts about tsql