找到大于另一个日期的最短日期 [英] Find least date greater than another date

查看:65
本文介绍了找到大于另一个日期的最短日期的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一张交易表,另一张价格报价表。交易几乎是每天;报价是定期的,大约每周一次。在查询中,我想提取其日期大于或等于交易日期的最早(或最短日期)报价(试图找到最接近的报价以与实际支付的价格进行比较)。我有价格报价日期的标准为> = Trans Date,并尝试将该字段设置为min或last,但这些都没有做任何事情。有人可以填写缺失的部分吗?谢谢。

I have one table of transactions, another table of price quotes. Transactions are nearly daily; quotes are periodic, roughly once per week. In a query, I want to pull the oldest (or least date) price quote whose date is greater or equal to the transaction date (trying to find the nearest price quote to compare to actual price paid). I have criteria for the price quote date as >=Trans Date, and tried setting the field to min or last, but these don''t do anything. Can someone fill in the missing piece? Thanks.

推荐答案

Bump。


您能否为我们提供表格元数据(请两个表格)。 />

这是一个如何发布表MetaData的示例。请在帖子中使用以下格式:
Can you provide table metadata for us to work with (both tables please).

Here is an example of how to post table MetaData. Please use this format in your post :
展开 | 选择 | Wrap | 行号


展开 | 选择 | Wrap | 行号


这篇关于找到大于另一个日期的最短日期的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆