-2
我有兩張表。第一招:加入歷史日期的兩張表
col1 | col2 | ColumnOfInterest | DateOfInterest
--------------------------------------------------------
abc | def | ghi | 2013-02-24 17:48:32.548
.
.
.
第二個:
ColumnOfInterest | DateChanged | col3 | col4
--------------------------------------------------------
ghi | 2012-08-13 06:28:11.092 | jkl | mno
ghi | 2012-10-16 23:54:07.613 | pqr | stu
ghi | 2013-01-29 14:13:18.502 | vwx | yz1
ghi | 2013-10-01 14:17:32.992 | 234 | 567
.
.
.
我試圖做的是做一個1:1的ColumnOfInterest並使得DateOfInterest反映了這兩個表之間的連接第二張表格的日期。
也就是說,第一個表中的行將被連接到第二個表的第三行。
你有什麼想法嗎?
感謝
所以你試圖讓從DateChanged列最大日期爲每個不同的ColumnOfInterest? – hines
嗯,不是最大日期......因爲你可以看到第二個表是一種歷史表,所以我需要一個與第一個表的DateOfInterest相關的行......希望它有意義 –
什麼是你的期望的輸出? – Stephan