Answered step by step
Verified Expert Solution
Question
1 Approved Answer
1 . Show the movie release countries for all of the movies in the movies table except for the USA. 2 . Show the director
Show the movie release countries for all of the movies in the movies table except for the USA.
Show the directors name, movie title and movie release country for all movies whose release country is NOT the USA. Use the query from # as a subquery to select all movies with a release country not in the USA.
Show the reviewer and the directors name for the movies with the highest review ratings in the s order by the reviewer.
Hint: Subquery is needed.
Show the movies that are the only movie in their genre In other words, show the movies that are in a genre with only one movie
Hint: Subquery is needed
Select the movie title, duration, genre, and average rating for movies that had a run time of hours and minutes or more. Order the results in ascending order with the shortest movie at the top.
Hint: Do not use a subquery.
What question does this correlated query answer? Begin your answer with "This query answers the question: who are the employees..."
SELECT employeeid firstname, lastname
FROM employees e
WHERE NOT EXISTS
SELECT
FROM dependents d
WHERE demployeeid eemployeeid
ORDER BY firstname lastname;
What question does this correlated query answer? Begin your answer with "This query answers the question: who are the employees..."
SELECT employeeid firstname, lastname, salary, departmentid
FROM employees e
WHERE salary
SELECT AVGsalary
FROM employees e
WHERE edepartmentid edepartmentid
group by departmentid;
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started