SELECT * FROM users WHERE user_id = 1;
SELECT * FROM film WHERE film_id = 1;
SELECT film.name FROM film INNER JOIN film_genre ON film.film_id = film_genre.film_id INNER JOIN genre ON film_genre.genre_id = genre.genre_id WHERE genre.description = 'action';
SELECT film.name FROM film INNER JOIN film_likes ON film.film_id = film_likes.film_id INNER JOIN users ON film_likes.user_id = users.user_id WHERE users.user_id = 1;
SELECT users.name,
users.login,
users.email
FROM film_likes
LEFT OUTER JOIN users ON film.user_id = users.user_id
WHERE film.film_id = 1;
DELETE FROM film_likes WHERE film_id = 1 AND user_id = 2;
SELECT users.name,
users.login,
users.email
FROM friends
LEFT OUTER JOIN users ON friends.friends_id = users.user_id
WHERE friends.user_id = 1;
SELECT accepted
FROM friends
WHERE user_id = 1 AND friend_id = 2;