I have two tables shown below
BidID CreatedDate BidVersionNumber
2 2018-05-17 04:35:40.320 AB25443/01-01
3 2018-06-11 03:36:59.977 AB25443/01-01
Second Table
BidVersionNumber CreatedDate BidId
AB25443/01-01 5/17/2018 4:35:40
AB25443/01-01 5/17/2018 4:41:10
I want to update the BidId of the second table by joining with the first table on BidVersionNumber but since the BidVersionNumber is the same I also want to match on CreatedDate joining just on the 4:35:40 part of the time. Can someone please tell me how to join on two columns.
Desired output
BidVersionNumber CreatedDate BidId
AB25443/01-01 5/17/2018 4:35:40 2
AB25443/01-01 5/17/2018 4:41:10 3