How would you reference table1 columns to 2 columns in table 2
I created a table 'State' with 50 exact rows
trying to relate (weddingState,contactState) in 'Wedding' table
This is the statement that I created but it only joins the top WeddingState correctly - seems not to care about the INNER Join below it...
SELECT *
FROM weddings
INNER JOIN states as s1 ON weddings.WeddingState = s1.StateId //state of marriage
INNER JOIN states as s2 ON weddings.ContactState = s2.StateId //contact state of bride
WHERE weddings.weddingid="094829292"