select columns from 2 tables with foreign key

Solutions on MaxInterview for select columns from 2 tables with foreign key by the best coders in the world

showing results for - "select columns from 2 tables with foreign key"
Elías
10 Aug 2017
1SELECT user.name, movie.name
2FROM user, movie, list
3WHERE list.user_id  = user.id
4  AND list.movie_id = movie.id
5ORDER BY 1,2;
Dario
04 Oct 2018
1SELECT user.name, movie.name
2FROM user
3JOIN list  ON list.user_id  = user.id
4JOIN movie ON list.movie_id = movie.id
5ORDER BY 1,2;