SQL |使用内部连接将一个月最后一天不同的桌子组合在一起
我在这里遇到了一些麻烦,将来自两个表的数据(通过一个联接)组合在一起,因为一个表正在使用一个月的最后一天,而另一个表则使用了本月的最后一个工作日。
我该怎么做?我正在考虑使用每个月可用的最后一天,但我不确定该怎么做。
**LEFT JOIN Database.SIT_DAILLY SIT
ON A.NUC=SIT.NUC
AND A.DAY=SIT.DAY
WHERE A.DAY = '2022-04-30'**
提前致谢!
I'm having a bit of trouble here combining data from two tables (via a join) because one table is using the last day of the month whereas the other is using the last working day of the month.
How can I do this? I was thinking about using the last day available of each month but I'm unsure how to do that.
**LEFT JOIN Database.SIT_DAILLY SIT
ON A.NUC=SIT.NUC
AND A.DAY=SIT.DAY
WHERE A.DAY = '2022-04-30'**
Thanks in advance!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论