Answer to Question #223639 in Databases | SQL | Oracle | MS Access for Siva

Question #223639

Get the distinct ids of videos that belong to the following genres.


genre_id genre

201 Comedy

202 Action

203 Thriller

211 Scifi

Note:

Sort the output in the descending order of

video_id

Expected Output Format

video_id contains 14 rows

...

genre_id genre_type

201 ACTION

202 COMEDY

203 THRILLER

204 ROMANTIC

205 TECHNICAL

206 HEALTH CARE

207 GAMING

208 MUSIC VIDEOS

209 TEASER

210 INSPIRATIONAL

211 SCI-FI


1
Expert's answer
2021-08-05T17:51:54-0400
SELECT DISTINCT(genre_id),genre
FROM Video
WHERE genre="Comedy" or genre="Action" or genre="Thriller" or genre="scifi";

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS