如果道布在所显示的日期内,我想返回引号中的值,但数据返回时只显示其他值。有什么想法吗?WHEN [Date of Birth] between 01/01/1945 and 31/12/1964 then 'Baby Boomer'WHEN [Date of Birth] between 01/01/1982 and 31/12/1994 then 'Millenial / Gen Y'
WHEN
我有下面的问题。为什么invoice_dt设置在1/1/2021 -5/31/2021之间...输出将显示所有日期范围。如何将其设置为在日期范围内基于pay_cte查找dups?select vendor_id,invoice_id, pay_amt,count(*)where invoice_dt between '01-Jan-2021' and '31-May-2021'
group by vendor_