User table
user_id username thumb_id fullimage_id 1 jprescott 14 15 2 lpausch 18 19
Image table
image_id path 14 jprescott/small.jpg 15 jprescott/big.jpg 16 msamuels/small.jpg 17 msamuels/big.jpg 18 lpausch/small.jpg 19 lpausch/big.jpg
Now, how to write a SELECT statement to retrieve a user with your finger and full paths? The problem is having two foreign keys on the same table.
sql mysql
Hydera
source share