Microsoft SQL Server の別のテーブルから選択された他の 2 つの日付の間にある日付を見つけなければなりません
つまり、次のようなことをしたい
Select A.* from ( select member.key,
case when effective_date between (select month_start and month_end
from sales_month
where month=2 and year=2013) bucket_1
then 1 else 0 from member ) as A
where a.bucket_1 != 0
別の月のケースステートメントを複製する必要があります。アイデア/助けはありますか?
ありがとう
シャンカール。