Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Given the below table definitions write a query to list the film title and langu

ID: 3868214 • Letter: G

Question

Given the below table definitions write a query to list the film title and langue of all films in which Ryan Smith is an actor If there are multiple actors named Ryan Smith in the same movie, it should be listen once for each Ryan Smith acting in the film. CREATE TABLE actor (Id int primary key, Fnamevarchar(255), Lname varchar(255)): CREATE TABLE language (Id int primary key, Language varchar(255)): CREATE TABLE film (Id int primary key, Title varchar (255) language id int, FOREIGN KEY (language id) REFNERECES language(id).): CREATE TABLE film actoc (Fid int_ Aid int_ PRIMARY KEY (fid, aid) FOREIGN KEY (hd) REFERENCES film(id) FOREIGN KEY (aid) REFERENCES actors(id));

Explanation / Answer

The query for the above is as follows:

SELECT f.title,f.language AS 'Films featuring Ryan Smith'
FROM film,language f
INNER JOIN film_actor fa ON fa.film_id = f.film_id
INNER JOIN actor a ON a.actor_id = fa.actor_id
WHERE a.actor_id = (
SELECT actor_id FROM actor WHERE first_name='Ryan' && last_name='Smith'
)
GROUP BY f.title,f.language
ORDER BY f.title DESC;

Rate the answer an upvote......Thankyou

Hope this helps.....

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote