|
-
Mar 22nd, 2009, 02:35 PM
#5
Re: SQL SELECT queries question
10) Show the names of actors who have worked in movies with a rank in the top 10 inclusive.
Show the movie titles worked in and rank. Sort in descending order of rank.
SELECT TOP 10 actors.*, movies.title
FROM actors
INNER JOIN movies on movies.movieid=actors.movieid
INNER JOIN ratings on movies.movieid=ratings.movieid
ORDER BY ratings.rank DESC
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|