我正在运行这个查询:
select member, customerinfo.customerid -- ...other irrelevant columns...
from customerinfo, addressinfo
where customerinfo.customerid = addressinfo.customerid
and MEMBER = (Date(GetDate()-1))
and addressinfo.addresstype = 's'
如果成员 = 昨天,我显然给了我数据。
我的问题是,如果 Member = 最近 2 天(昨天和前一天),我如何构建查询以提供数据?