I have two tables user and location
user has id(primary) and location fields/columns
location has id(primary) and city column
Now i wish to relate the two tables by user.location with location.city How can i do it considring city is not a primary key but is unique. I am using cakephp 1.2.
Also in mysql can i relate/join tables without primary key but a unique key