Question: Using DB Browser for SQlite queries that will retrieve the relevant information from the database, e . g . SELECT A 2 . actor _
Using DB Browser for SQlite queries that will retrieve the relevant information from the database, eg
SELECT Aactorid Afirstname, Alastname, COUNT AS tot FROM actor A actor A filmactor FA filmactor FA
WHERE Afirstname 'STAN' AND Alastname 'LAUREL' AND Aactorid FAactorid
AND FAfilmid FAfilmid AND FAactorid Aactorid AND Aactorid Aactorid
GROUP BY Aactorid Afirstname, Alastname ORDER BY tot DESC;
Table : The film table provides information about a film. A film is related to language. There are two relationships in the ER diagram, one for an original language the film was recorded in and the other one for the language it is available in Both relationships are modelled in the table below by means of the corresponding foreign keys.
Table : The category table describes different categories of films.
Table : Each film may belong to multiple categories. This relationship is represented by the
filmcategory table. Each row of this table links a film to a category.
Questions
What is the first name of the customer who lives in the same city as MATTIE HOFFMAN?
To find the median, you need to order numbers and find the middle value. What is the median of film cast size?
What category of films is most expensive to replace on average? Provide the name of such category.
Which country from the ones listed in the country table has no customers?
How much money was earned by renting the film HOBBIT ALIEN?
Find all customers who rented a film whose title contains the name of the country they live in Out of these customers, what is the last name of the customer who returned such movie most recently.
What is the title of the most frequently rented Sports movie in Russian Federation?
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
