I have two tables in Access that I want to compare each of the two columns in both tables and if they match output the third column in the 2nd table. I am trying to do the below but it complains of syntax error
, IIF(A.col1=B.col2, (A.col2=B.col2, B.col3,"No match"),"No match") as Final_val
from A, B;
Also, B is a lookup table so not sure if I have better options than a cartesian join.