For some reason my sql statement isn't return the three tables is there something wrong with my sql statement?
SELECT user.FirstName, user.LastName, user.Profilepix, userinterest.UserId, userinterest.InterestId
FROM user
INNER JOIN userinterest ON user.UserId = userinterest.UserId
INNER JOIN interest ON userinterest.InterestId = interest.InterestId
userinterest maps both user and interest together.
EDIT** To add more detail no error is being thrown. The interest
table is integer indexed so the userinterest
contains the userId
and interestId
and I am trying to map all three and return the record