sql - Join two tables and compare two columns to see if they are equal -


i have 2 tables in access db, can join tables based on primary key, grant number, both tables contain expiry date column , want see if expiry dates match.

first table: "everything2013"      columns: claim name, grant number, expiry date  second table: "yukon claims govt"      columns: claim name, claim owner, grant number, stakingdate, expirydate 

i want join tables based on grant number, primary key, want see if expiry dates same each grant number both tables. basically, i'm checking expiry dates 1 table see if match expiry date same grant number in table.

select e.claim_name, e.grant_number, y.stakingdate \ everything2013 e inner join yukon_claims_govt  y on e.[grant_number]=y.[grant_number] e.expiry_date=y.claimexpirydate; 

Comments

Popular posts from this blog

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

html - How to style widget with post count different than without post count -

url rewriting - How to redirect a http POST with urlrewritefilter -