Skip to content

Instantly share code, notes, and snippets.

@kissmygritts
Created May 12, 2015 19:59
Show Gist options
  • Save kissmygritts/9cf08fc76e7193d86334 to your computer and use it in GitHub Desktop.
Save kissmygritts/9cf08fc76e7193d86334 to your computer and use it in GitHub Desktop.
Join two tables on a concatenated field using Microsoft Access SQL
SELECT [dc].[WHno] & "." & [dc].[CapDate] AS j1, [lw].[WHno] & "." & [lw].[CapDate] AS j2
FROM data_Capture AS dc INNER JOIN lab_Waddl AS lw ON ([dc].[WHno] & "." & [dc].[CapDate]) = ([lw].[WHno] & "." & [lw].[CapDate]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment