I have a table in sql, I use this statement to make a select:
SELECT id, name, genre FROM table
Now genre
is id (int) and I have table called Genres and there I have :
id (int)
name (string)
What select will give me in genre the name and not the id.