Guest User

Untitled

a guest
Jan 22nd, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.15 KB | None | 0 0
  1.  
  2. QUESTION 1
  3. -----------------------------
  4. Rewrite the query in Question 4.1.2 using the EXISTS operator.
  5.  
  6.  
  7. -----------------------------
  8. QUESTION 2
  9.  
  10. The question below and all other questions are regarding the OMDB database as described in Assignment 2. Write one SQL query for the question below and questions 4.1.2 and 4.1.3.
  11.  
  12. Are there any members who do not have an email address? Return the total count of such members.
  13.  
  14. -----------------------------
  15. QUESTION 3
  16.  
  17. Explain the following query in English.
  18. select *
  19. from Actor A1
  20. where birthplace='Mexico'
  21. and actorID in (select actorID
  22. from Cast
  23. where mvid <> all (select mvid
  24. from MovieInfo
  25. where studio='Paramount Picture'));
  26.  
  27.  
  28. -----------------------------
  29. QUESTION 4
  30.  
  31. Are there any directors with the same name. List the directorID and name of these directors. Your output should not have redundant information. You must write a join query.
  32.  
  33.  
  34. -----------------------------
  35. QUESTION 5
  36.  
  37. Fix the syntax errors in the SQL query below and explain the query in English.
  38. select *
  39. from movieinfo natural join cast
  40. where mvid not in (sleet *
  41. from genre);
Add Comment
Please, Sign In to add comment