Advertisement
MichaelBM

Group 10 SQL Code

Dec 6th, 2023
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PL/SQL 38.68 KB | None | 0 0
  1. -- Drop existing tables with CASCADE CONSTRAINTS
  2. DROP TABLE TvShow CASCADE CONSTRAINTS;
  3. DROP TABLE Movie CASCADE CONSTRAINTS;
  4. DROP TABLE VideoGames CASCADE CONSTRAINTS;
  5. DROP TABLE Actor CASCADE CONSTRAINTS;
  6. DROP TABLE Director CASCADE CONSTRAINTS;
  7. DROP TABLE Writer CASCADE CONSTRAINTS;
  8. DROP TABLE TvReviews CASCADE CONSTRAINTS;
  9. DROP TABLE MovieReviews CASCADE CONSTRAINTS;
  10. DROP TABLE GameReviews CASCADE CONSTRAINTS;
  11. DROP TABLE TvShowWriters CASCADE CONSTRAINTS;
  12. DROP TABLE TvShowActors CASCADE CONSTRAINTS;
  13. DROP TABLE TvShowDirectors CASCADE CONSTRAINTS;
  14. DROP TABLE MovieWriters CASCADE CONSTRAINTS;
  15. DROP TABLE MovieActors CASCADE CONSTRAINTS;
  16. DROP TABLE MovieDirectors CASCADE CONSTRAINTS;
  17. DROP TABLE GameDirectors CASCADE CONSTRAINTS;
  18. DROP TABLE GameActors CASCADE CONSTRAINTS;
  19. DROP TABLE GameWriters CASCADE CONSTRAINTS;
  20. DROP TABLE TV_GENRE CASCADE CONSTRAINTS;
  21. DROP TABLE TV_AWARDS CASCADE CONSTRAINTS;
  22. DROP TABLE MOVIE_GENRE CASCADE CONSTRAINTS;
  23. DROP TABLE MOVIE_AWARDS CASCADE CONSTRAINTS;
  24. DROP TABLE VIDEO_GAME_GENRE CASCADE CONSTRAINTS;
  25. DROP TABLE VIDEO_GAME_AWARDS CASCADE CONSTRAINTS;
  26. DROP TABLE ACTOR_GENRE CASCADE CONSTRAINTS;
  27. DROP TABLE ACTOR_AWARDS CASCADE CONSTRAINTS;
  28. DROP TABLE DIRECTOR_GENRE CASCADE CONSTRAINTS;
  29. DROP TABLE DIRECTOR_AWARDS CASCADE CONSTRAINTS;
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37. -- Create TvShow Table
  38. CREATE TABLE TvShow (
  39.     TvShowID NUMBER CONSTRAINT TvShow_tvShowId_pk PRIMARY KEY, -- Unique identifier for TV shows
  40.     TvEpisodes NUMBER, -- Number of episodes
  41.     TvDescription VARCHAR2(255), -- Description of the TV show
  42.     TvShowTitle VARCHAR2(50),
  43.     TvTrailer_Runtime NUMBER, -- Trailer runtime in seconds
  44.     TvTrailer_URL VARCHAR2(255), -- URL link to the TV show trailer
  45.     TvTrailer_ReleaseDate DATE -- Release date of the TV show trailer
  46.     -- Other columns might include genre, release date, etc.
  47. );
  48.  
  49. -- Create Movie Table
  50. CREATE TABLE Movie (
  51.     MovieID NUMBER CONSTRAINT Movie_MovieId_pk PRIMARY KEY, -- Unique identifier for movies
  52.     MovieRuntime NUMBER, -- Movie runtime in minutes
  53.     MovieDescription VARCHAR2(255), -- Description of the movie
  54.     MovieTitle VARCHAR2(50), -- Title of the movie
  55.     MovieTrailer_Runtime NUMBER, -- Trailer runtime in seconds
  56.     MovieTrailer_URL VARCHAR2(255), -- URL link to the movie trailer
  57.     MovieTrailer_ReleaseDate DATE -- Release date of the movie trailer
  58.     -- Other columns might include genre, release date, etc.
  59. );
  60.  
  61. -- Create Video Games Table
  62. CREATE TABLE VideoGames (
  63.     GameID NUMBER CONSTRAINT VideoGames_gameId_pk PRIMARY KEY, -- Unique identifier for video games
  64.     GameTitle VARCHAR2(50), -- Title of the video game
  65.     GameDescription VARCHAR2(255), -- Description of the video game
  66.     GameTrailer_Runtime NUMBER, -- Trailer runtime in seconds
  67.     GameTrailer_URL VARCHAR2(255), -- URL link to the video game trailer
  68.     GameTrailer_ReleaseDate DATE -- Release date of the video game trailer
  69.     -- Other columns might include genre, release date, etc.
  70. );
  71.  
  72. -- Create Actor Table
  73. CREATE TABLE Actor (
  74.     ActorID NUMBER CONSTRAINT Actor_actorId_pk PRIMARY KEY, -- Unique identifier for actors
  75.     ActorDOB DATE, -- Actor's date of birth
  76.     ActorAge NUMBER, -- Actor's age
  77.     ActorHeight NUMBER, -- Actor's height
  78.     ActorFirstName VARCHAR2(15), -- Actor's first name
  79.     ActorMiddleInitial CHAR(1), -- Actor's middle initial
  80.     ActorLastName VARCHAR2(15) -- Actor's last name
  81.     -- Other columns might include gender, nationality, etc.
  82. );
  83.  
  84. -- Create Director Table (similar structure to Actor)
  85. CREATE TABLE Director (
  86.     DirectorID NUMBER CONSTRAINT Director_DirectorID_pk PRIMARY KEY, -- Unique identifier for directors
  87.     DirectorDOB DATE, -- Director's date of birth
  88.     DirectorAge NUMBER, -- Director's age
  89.     DirectorHeight NUMBER, -- Director's height
  90.     DirectorFirstName VARCHAR2(15), -- Director's first name
  91.     DirectorMiddleInitial CHAR(1), -- Director's middle initial
  92.     DirectorLastName VARCHAR2(15) -- Director's last name
  93.     -- Other columns might include gender, nationality, etc.
  94. );
  95.  
  96. -- Create Writer Table (similar structure to Actor)
  97. CREATE TABLE Writer (
  98.     WriterID NUMBER CONSTRAINT Writer_writerID_pk PRIMARY KEY, -- Unique identifier for writers
  99.     WriterDOB DATE, -- Writer's date of birth
  100.     WriterAge NUMBER, -- Writer's age
  101.     WriterHeight NUMBER, -- Writer's height
  102.     WriterFirstName VARCHAR2(15), -- Writer's first name
  103.     WriterMiddleInitial CHAR(1), -- Writer's middle initial
  104.     WriterLastName VARCHAR2(15) -- Writer's last name
  105.     -- Other columns might include gender, nationality, etc.
  106. );
  107.  
  108. -- Create Review Tables (for TvShow, Movie, VideoGames)
  109. CREATE TABLE TvReviews (
  110.     TvShowID NUMBER, -- ID of the TV show being reviewed
  111.     StarRating NUMBER, -- Rating given to the TV show
  112.     UserName VARCHAR2(50), -- Name of the user who reviewed the TV show
  113.     ReviewContents VARCHAR2(255), -- Contents of the review
  114.     CONSTRAINT TvR_TvID_pk PRIMARY KEY (TvShowID, UserName), -- Primary key constraint
  115.     CONSTRAINT TvR_TvID_fk FOREIGN KEY (TvShowID) REFERENCES TvShow(TvShowID) -- Foreign key constraint
  116. );
  117.  
  118. CREATE TABLE MovieReviews (
  119.     MovieID NUMBER, -- ID of the movie being reviewed
  120.     StarRating NUMBER, -- Rating given to the movie
  121.     UserName VARCHAR2(50), -- Name of the user who reviewed the movie
  122.     ReviewContents VARCHAR2(255), -- Contents of the review
  123.     CONSTRAINT MovieR_MovieID_pk PRIMARY KEY (MovieID, UserName), -- Primary key constraint
  124.     CONSTRAINT Movie_MovieID_fk FOREIGN KEY (MovieID) REFERENCES Movie(MovieID) -- Foreign key constraint
  125. );
  126.  
  127. CREATE TABLE GameReviews (
  128.     GameID NUMBER, -- ID of the video game being reviewed
  129.     StarRating NUMBER, -- Rating given to the video game
  130.     UserName VARCHAR2(50), -- Name of the user who reviewed the video game
  131.     ReviewContents VARCHAR2(255), -- Contents of the review
  132.     CONSTRAINT GameR_GameID_pk PRIMARY KEY (GameID, UserName), -- Primary key constraint
  133.     CONSTRAINT GameR_GameID_fk FOREIGN KEY (GameID) REFERENCES VideoGames(GameID) -- Foreign key constraint
  134. );
  135.  
  136. -- Create M:N Relationship Tables (for Movie, TvShow, VideoGames with Actors, Writers, Directors)
  137. CREATE TABLE MovieActors (
  138.     MovieID NUMBER, -- ID of the movie
  139.     ActorID NUMBER, -- ID of the actor
  140.     CONSTRAINT MovieAct_MovieID__ActID_pk PRIMARY KEY (MovieID, ActorID), -- Primary key constraint
  141.     CONSTRAINT MovieAct_MovieID_fk FOREIGN KEY (MovieID) REFERENCES Movie(MovieID), -- Foreign key constraint
  142.     CONSTRAINT MovieAct_ActID_fk FOREIGN KEY (ActorID) REFERENCES Actor(ActorID) -- Foreign key constraint
  143. );
  144.  
  145. CREATE TABLE MovieWriters (
  146.     MovieID NUMBER, -- ID of the movie
  147.     WriterID NUMBER, -- ID of the writer
  148.     CONSTRAINT MovieWri_MovieID_WriID_pk PRIMARY KEY (MovieID, WriterID), -- Primary key constraint
  149.     CONSTRAINT MovieWri_MovieID_MovieID_fk FOREIGN KEY (MovieID) REFERENCES Movie(MovieID), -- Foreign key constraint
  150.     CONSTRAINT MovieWri_WriID_WriID_fk FOREIGN KEY (WriterID) REFERENCES Writer(WriterID) -- Foreign key constraint
  151. );
  152.  
  153. CREATE TABLE MovieDirectors (
  154.     MovieID NUMBER, -- ID of the movie
  155.     DirectorID NUMBER, -- ID of the director
  156.     CONSTRAINT MovieDir_MovieID_DirID_pk PRIMARY KEY (MovieID, DirectorID), -- Primary key constraint
  157.     CONSTRAINT MovieDir_MovieID_MovieID_fk
  158. FOREIGN KEY (MovieID) REFERENCES Movie(MovieID), -- Foreign key constraint
  159.     CONSTRAINT MovieDir_DirID_DirID_fk FOREIGN KEY (DirectorID) REFERENCES Director(DirectorID) -- Foreign key constraint
  160. );
  161.  
  162. CREATE TABLE TvShowActors (
  163.     TvShowID NUMBER, -- ID of the TV show
  164.     ActorID NUMBER, -- ID of the actor
  165.     CONSTRAINT TvAct_TvID_ActID_pk PRIMARY KEY (TvShowID, ActorID), -- Primary key constraint
  166.     CONSTRAINT TvAct_TvID_TvID_fk FOREIGN KEY (TvShowID) REFERENCES TvShow(TvShowID), -- Foreign key constraint
  167.     CONSTRAINT Tv_ActID_ActID FOREIGN KEY (ActorID) REFERENCES Actor(ActorID) -- Foreign key constraint
  168. );
  169.  
  170. CREATE TABLE TvShowWriters (
  171.     TvShowID NUMBER, -- ID of the TV show
  172.     WriterID NUMBER, -- ID of the writer
  173.     CONSTRAINT TvWri_TvID_WriID_pk PRIMARY KEY (TvShowID, WriterID), -- Primary key constraint
  174.     CONSTRAINT TvWri_TvID_TvID_fk FOREIGN KEY (TvShowID) REFERENCES TvShow(TvShowID), -- Foreign key constraint
  175.     CONSTRAINT TvWri_WriID_WriID_fk FOREIGN KEY (WriterID) REFERENCES Writer(WriterID) -- Foreign key constraint
  176. );
  177.  
  178. CREATE TABLE TvShowDirectors (
  179.     TvShowID NUMBER, -- ID of the TV show
  180.     DirectorID NUMBER, -- ID of the director
  181.     CONSTRAINT TvDir_TvSID_dID_pk PRIMARY KEY (TvShowID, DirectorID), -- Primary key constraint
  182.     CONSTRAINT TvDir_TvID_TvID_fk FOREIGN KEY (TvShowID) REFERENCES TvShow(TvShowID), -- Foreign key constraint
  183.     CONSTRAINT TvDir_DirID_DirID_fk FOREIGN KEY (DirectorID) REFERENCES Director(DirectorID) -- Foreign key constraint
  184. );
  185.  
  186. CREATE TABLE GameActors (
  187.     GameID NUMBER, -- ID of the video game
  188.     ActorID NUMBER, -- ID of the actor
  189.     CONSTRAINT GameAct_GameID_ActID_pk PRIMARY KEY (GameID, ActorID), -- Primary key constraint
  190.     CONSTRAINT GameAct_GameID_GameID_fk FOREIGN KEY (GameID) REFERENCES VideoGames(GameID), -- Foreign key constraint
  191.     CONSTRAINT GameAct_ActID_ActID_fk FOREIGN KEY (ActorID) REFERENCES Actor(ActorID) -- Foreign key constraint
  192. );
  193.  
  194. CREATE TABLE GameWriters (
  195.     GameID NUMBER, -- ID of the video game
  196.     WriterID NUMBER, -- ID of the writer
  197.     CONSTRAINT gWri_gID_WriID_pk PRIMARY KEY (GameID, WriterID), -- Primary key constraint
  198.     CONSTRAINT gWri_gID_gID_fk FOREIGN KEY (GameID) REFERENCES VideoGames(GameID), -- Foreign key constraint
  199.     CONSTRAINT gWri_WriID_WriID_fk FOREIGN KEY (WriterID) REFERENCES Writer(WriterID) -- Foreign key constraint
  200. );
  201.  
  202. CREATE TABLE GameDirectors (
  203.     GameID NUMBER, -- ID of the video game
  204.     DirectorID NUMBER, -- ID of the director
  205.     CONSTRAINT gD_gID_DirID_pk PRIMARY KEY (GameID, DirectorID), -- Primary key constraint
  206.     CONSTRAINT gD_gID_gID_fk FOREIGN KEY (GameID) REFERENCES VideoGames(GameID), -- Foreign key constraint
  207.     CONSTRAINT gD_dirID_DirID_fk FOREIGN KEY (DirectorID) REFERENCES Director(DirectorID) -- Foreign key constraint
  208. );
  209.  
  210.  
  211. --The Weak Entities
  212. CREATE TABLE TV_GENRE (
  213.   TVShowID NUMBER REFERENCES TvShow(TVShowID), -- Creates a table named TV_GENRE with columns TVShowID and TVGenre. TVShowID column references the TVShow table's TVShowID column.
  214.   TVGenre VARCHAR2(50) -- Defines TVGenre column as a VARCHAR2 datatype with a maximum length of 50 characters.
  215. );
  216.  
  217.  
  218. CREATE TABLE TV_AWARDS (
  219.   TVShowID NUMBER(10) REFERENCES TvShow(TVShowID), -- Creates a table named TV_AWARDS with columns TVShowID and TVAwards. TVShowID column references the TVShow table's TVShowID column.
  220.   TVAwards VARCHAR2(50) -- Defines TVAwards column as a VARCHAR2 datatype with a maximum length of 50 characters.
  221. );
  222.  
  223.  
  224. CREATE TABLE MOVIE_GENRE (
  225.   MovieID NUMBER(10) REFERENCES Movie(MovieID), -- Creates a table named MOVIE_GENRE with columns MovieID and MovieGenre. MovieID column references the Movie table's MovieID column.
  226.   MovieGenre VARCHAR2(50) -- Defines MovieGenre column as a VARCHAR2 datatype with a maximum length of 50 characters.
  227. );
  228.  
  229.  
  230. CREATE TABLE MOVIE_AWARDS (
  231.   MovieID NUMBER(10) REFERENCES Movie(MovieID), -- Creates a table named MOVIE_AWARDS with columns MovieID and MovieAwards. MovieID column references the Movie table's MovieID column.
  232.   MovieAwards VARCHAR2(50) -- Defines MovieAwards column as a VARCHAR2 datatype with a maximum length of 50 characters.
  233. );
  234.  
  235.  
  236. CREATE TABLE VIDEO_GAME_GENRE (
  237.   GameID NUMBER(10) REFERENCES VideoGames(GameID), -- Creates a table named VIDEO_GAME_GENRE with columns GameID and GameGenre. GameID column references the VideoGames table's GameID column.
  238.   GameGenre VARCHAR2(50) -- Defines GameGenre column as a VARCHAR2 datatype with a maximum length of 50 characters.
  239. );
  240.  
  241.  
  242. CREATE TABLE VIDEO_GAME_AWARDS (
  243.   GameID NUMBER(10) REFERENCES VideoGames(GameID), -- Creates a table named VIDEO_GAME_AWARDS with columns GameID and GameAwards. GameID column references the VideoGames table's GameID column.
  244.   GameAwards VARCHAR2(50) -- Defines GameAwards column as a VARCHAR2 datatype with a maximum length of 50 characters.
  245. );
  246.  
  247.  
  248. CREATE TABLE ACTOR_GENRE (
  249.   ActorID NUMBER(10) REFERENCES ACTOR(ActorID), -- Creates a table named ACTOR_GENRE with columns ActorID and ActorGenre. ActorID column references the ACTOR table's ActorID column.
  250.   ActorGenre VARCHAR2(50) -- Defines ActorGenre column as a VARCHAR2 datatype with a maximum length of 50 characters.
  251. );
  252.  
  253.  
  254. CREATE TABLE ACTOR_AWARDS (
  255.   ActorID NUMBER(10) REFERENCES ACTOR(ActorID), -- Creates a table named ACTOR_AWARDS with columns ActorID and ActorAwards. ActorID column references the ACTOR table's ActorID column.
  256.   ActorAwards VARCHAR2(50) -- Defines ActorAwards column as a VARCHAR2 datatype with a maximum length of 50 characters.
  257. );
  258.  
  259.  
  260. CREATE TABLE DIRECTOR_GENRE (
  261.   DirectorID NUMBER(10) REFERENCES DIRECTOR(DirectorID), -- Creates a table named DIRECTOR_GENRE with columns DirectorID and DirectorGenre. DirectorID column references the DIRECTOR table's DirectorID column.
  262.   DirectorGenre VARCHAR2(50) -- Defines DirectorGenre column as a VARCHAR2 datatype with a maximum length of 50 characters.
  263. );
  264.  
  265.  
  266. CREATE TABLE DIRECTOR_AWARDS (
  267.   DirectorID NUMBER(10) REFERENCES DIRECTOR(DirectorID), -- Creates a table named DIRECTOR_AWARDS with columns DirectorID and DirectorAwards. DirectorID column references the DIRECTOR table's DirectorID column.
  268.   DirectorAwards VARCHAR2(50) -- Defines DirectorAwards column as a VARCHAR2 datatype with a maximum length of 50 characters.
  269. );
  270.  
  271.  
  272.  
  273.  
  274. -- -- For MySQL
  275. -- DESCRIBE TV_GENRE;
  276. -- DESCRIBE TV_AWARDS;
  277. -- DESCRIBE MOVIE_GENRE;
  278. -- DESCRIBE MOVIE_AWARDS;
  279. -- DESCRIBE VIDEO_GAME_GENRE;
  280. -- DESCRIBE VIDEO_GAME_AWARDS;
  281. -- DESCRIBE ACTOR_GENRE;
  282. -- DESCRIBE ACTOR_AWARDS;
  283. -- DESCRIBE DIRECTOR_GENRE;
  284. -- DESCRIBE DIRECTOR_AWARDS;
  285.  
  286.  
  287. --Populating the Tables
  288. -- Spider-Man: Into the Spider-Verse
  289. INSERT INTO Movie (MovieID, MovieRuntime, MovieDescription, MovieTitle, MovieTrailer_Runtime, MovieTrailer_URL, MovieTrailer_ReleaseDate)
  290. VALUES
  291.   (1, 117, 'Teen Miles Morales becomes the Spider-Man of his universe and must join with five spider-powered individuals from other dimensions to stop a threat for all realities.', 'Spider-Man: Into the Spider-Verse', 2.67, 'https://www.youtube.com/watch?v=g4Hbz2jLxvQ', TO_DATE('2018-12-14', 'YYYY-MM-DD'));
  292.  
  293. -- Spider-Man: Across the Spider-Verse
  294. INSERT INTO Movie (MovieID, MovieRuntime, MovieDescription, MovieTitle, MovieTrailer_Runtime, MovieTrailer_URL, MovieTrailer_ReleaseDate)
  295. VALUES
  296.   (2, 140, 'Miles Morales catapults across the Multiverse, where he encounters a team of Spider-People charged with protecting its very existence.', 'Spider-Man: Across the Spider-Verse', 2.82, 'https://www.youtube.com/watch?v=shW9i6k8cB0', TO_DATE('2023-06-02', 'YYYY-MM-DD'));
  297.  
  298. -- Spider-Man: Homecoming
  299. INSERT INTO Movie (MovieID, MovieRuntime, MovieDescription, MovieTitle, MovieTrailer_Runtime, MovieTrailer_URL, MovieTrailer_ReleaseDate)
  300. VALUES
  301.   (3, 133, 'Peter Parker balances his life as an ordinary high school student in Queens with his superhero alter-ego Spider-Man.', 'Spider-Man: Homecoming', 2.42, 'https://www.youtube.com/watch?v=rk-dF1lIbIg', TO_DATE('2017-07-07', 'YYYY-MM-DD'));
  302.  
  303. -- Spider-Man: Far From Home
  304. INSERT INTO Movie (MovieID, MovieRuntime, MovieDescription, MovieTitle, MovieTrailer_Runtime, MovieTrailer_URL, MovieTrailer_ReleaseDate)
  305. VALUES
  306.   (4, 129, 'Following the events of Avengers: Endgame, Spider-Man must step up to take on new threats in a world that has changed forever.', 'Spider-Man: Far From Home', 2.77, 'https://www.youtube.com/watch?v=DYYtuKyMtY8', TO_DATE('2019-06-26', 'YYYY-MM-DD'));
  307.  
  308. -- Spider-Man: No Way Home
  309. INSERT INTO Movie (MovieID, MovieRuntime, MovieDescription, MovieTitle, MovieTrailer_Runtime, MovieTrailer_URL, MovieTrailer_ReleaseDate)
  310. VALUES
  311.   (5, 148, 'With Spider-Mans identity now revealed, Peter asks Doctor Strange for help. When a spell goes wrong, dangerous foes from other worlds start to appear.', 'Spider-Man: No Way Home', 3.05, 'https://www.youtube.com/watch?v=rt-2cxAiPJk', TO_DATE('2021-12-13', 'YYYY-MM-DD'));
  312.  
  313. -- Captain America: Civil War (2016)
  314. INSERT INTO Movie (MovieID, MovieRuntime, MovieDescription, MovieTitle, MovieTrailer_Runtime, MovieTrailer_URL, MovieTrailer_ReleaseDate)
  315. VALUES
  316.   (6, 144, 'Political involvement in the Avengers'' affairs causes a rift between Captain America and Iron Man.', 'Captain America: Civil War', 2.4, 'https://www.youtube.com/watch?v=dKrVegVI0Us', TO_DATE('2016-05-06', 'YYYY-MM-DD'));
  317.  
  318. -- Spider-Man (2002)
  319. INSERT INTO Movie (MovieID, MovieRuntime, MovieDescription, MovieTitle, MovieTrailer_Runtime, MovieTrailer_URL, MovieTrailer_ReleaseDate)
  320. VALUES
  321.   (7, 146, 'After being bitten by a genetically-modified spider, a shy teenager gains spider-like abilities that he uses to fight injustice as a masked superhero and face a vengeful enemy.', 'Spider-Man', 2.43, 'https://www.youtube.com/watch?v=t06RUxPbp_c', TO_DATE('2002-05-03', 'YYYY-MM-DD'));
  322.  
  323. -- Spider-Man 2 (2004)
  324. INSERT INTO Movie (MovieID, MovieRuntime, MovieDescription, MovieTitle, MovieTrailer_Runtime, MovieTrailer_URL, MovieTrailer_ReleaseDate)
  325. VALUES
  326.   (8, 150, 'Peter Parker is beset with troubles in his failing personal life as he battles a former brilliant scientist named Otto Octavius.', 'Spider-Man 2', 2.5, 'https://www.youtube.com/watch?v=CA5vsCnLm34', TO_DATE('2004-10-20', 'YYYY-MM-DD'));
  327.  
  328. -- Spider-Man 3 (2007)
  329. INSERT INTO Movie (MovieID, MovieRuntime, MovieDescription, MovieTitle, MovieTrailer_Runtime, MovieTrailer_URL, MovieTrailer_ReleaseDate)
  330. VALUES
  331.   (9, 147, 'A strange black entity from another world bonds with Peter Parker and causes inner turmoil as he contends with new villains, temptations, and revenge.', 'Spider-Man 3', 2.46, 'https://www.youtube.com/watch?v=e5wUilOeOmg', TO_DATE('2007-05-04', 'YYYY-MM-DD'));
  332.  
  333. -- The Amazing Spider-Man (2012)
  334. INSERT INTO Movie (MovieID, MovieRuntime, MovieDescription, MovieTitle, MovieTrailer_Runtime, MovieTrailer_URL, MovieTrailer_ReleaseDate)
  335. VALUES
  336.   (10, 153, 'After Peter Parker is bitten by a genetically altered spider, he gains newfound, spider-like powers and ventures out to save the city from the machinations of a mysterious reptilian foe.', 'The Amazing Spider-Man', 3.55, 'https://www.youtube.com/watch?v=-tnxzJ0SSOw', TO_DATE('2012-07-03', 'YYYY-MM-DD'));
  337.  
  338.  
  339.  
  340. --Directors
  341. INSERT INTO Director (DirectorID, DirectorDOB, DirectorAge, DirectorHeight, DirectorFirstName, DirectorMiddleInitial, DirectorLastName)
  342. VALUES
  343.   (1, TO_DATE('1972-10-29', 'YYYY-MM-DD'), 51, 178, 'Bob', NULL, 'Persichetti');
  344.  
  345. INSERT INTO Director (DirectorID, DirectorDOB, DirectorAge, DirectorHeight, DirectorFirstName, DirectorMiddleInitial, DirectorLastName)
  346. VALUES
  347.   (2, TO_DATE('1971-08-28', 'YYYY-MM-DD'), 52, 185, 'Peter', NULL, 'Ramsey');
  348.  
  349. INSERT INTO Director (DirectorID, DirectorDOB, DirectorAge, DirectorHeight, DirectorFirstName, DirectorMiddleInitial, DirectorLastName)
  350. VALUES
  351.   (3, TO_DATE('1973-09-01', 'YYYY-MM-DD'), 49, 178, 'Rodney', NULL, 'Rothman');
  352.  
  353. INSERT INTO Director (DirectorID, DirectorDOB, DirectorAge, DirectorHeight, DirectorFirstName, DirectorMiddleInitial, DirectorLastName)
  354. VALUES
  355.   (4, TO_DATE('1969-06-02', 'YYYY-MM-DD'), 54, 42, 'Joaquim', 'D', 'Santos');
  356.  
  357. INSERT INTO Director (DirectorID, DirectorDOB, DirectorAge, DirectorHeight, DirectorFirstName, DirectorMiddleInitial, DirectorLastName)
  358. VALUES
  359.   (5, TO_DATE('1973-01-25', 'YYYY-MM-DD'), 49, 185, 'Kemp', NULL, 'Powers');
  360.  
  361. INSERT INTO Director (DirectorID, DirectorDOB, DirectorAge, DirectorHeight, DirectorFirstName, DirectorMiddleInitial, DirectorLastName)
  362. VALUES
  363.   (6, TO_DATE('1973-09-15', 'YYYY-MM-DD'), 49, 178, 'Justin', 'K', 'Thompson');
  364.  
  365. INSERT INTO Director (DirectorID, DirectorDOB, DirectorAge, DirectorHeight, DirectorFirstName, DirectorMiddleInitial, DirectorLastName)
  366. VALUES
  367.   (7, TO_DATE('1975-07-12', 'YYYY-MM-DD'), 48, 183, 'Jon', NULL, 'Watts');
  368.  
  369.  
  370. --Writers
  371. INSERT INTO Writer (WriterID, WriterDOB, WriterAge, WriterHeight, WriterFirstName, WriterMiddleInitial, WriterLastName)
  372. VALUES
  373.   (1, TO_DATE('1975-02-21', 'YYYY-MM-DD'), 47, 175, 'Phil', NULL, 'Lord');
  374.  
  375. INSERT INTO Writer (WriterID, WriterDOB, WriterAge, WriterHeight, WriterFirstName, WriterMiddleInitial, WriterLastName)
  376. VALUES
  377.   (2, TO_DATE('1973-09-01', 'YYYY-MM-DD'), 49, 178, 'Rodney', NULL, 'Rothman');
  378.  
  379. INSERT INTO Writer (WriterID, WriterDOB, WriterAge, WriterHeight, WriterFirstName, WriterMiddleInitial, WriterLastName)
  380. VALUES
  381.   (3, TO_DATE('1975-02-21', 'YYYY-MM-DD'), 47, 175, 'Christopher', NULL, 'Miller');
  382.  
  383. INSERT INTO Writer (WriterID, WriterDOB, WriterAge, WriterHeight, WriterFirstName, WriterMiddleInitial, WriterLastName)
  384. VALUES
  385.   (4, TO_DATE('1977-04-16', 'YYYY-MM-DD'), 45, 185, 'Dave', NULL, 'Callaham');
  386.  
  387. INSERT INTO Writer (WriterID, WriterDOB, WriterAge, WriterHeight, WriterFirstName, WriterMiddleInitial, WriterLastName)
  388. VALUES
  389.   (5, TO_DATE('1975-10-20', 'YYYY-MM-DD'), 47, 178, 'Jonathan', NULL, 'Goldstein');
  390.  
  391. INSERT INTO Writer (WriterID, WriterDOB, WriterAge, WriterHeight, WriterFirstName, WriterMiddleInitial, WriterLastName)
  392. VALUES
  393.   (6, TO_DATE('1985-07-05', 'YYYY-MM-DD'), 36, 178, 'John Francis', NULL, 'Daley');
  394.  
  395. INSERT INTO Writer (WriterID, WriterDOB, WriterAge, WriterHeight, WriterFirstName, WriterMiddleInitial, WriterLastName)
  396. VALUES
  397.   (7, TO_DATE('1975-02-21', 'YYYY-MM-DD'), 47, 175, 'Stan', NULL, 'Lee');
  398.  
  399. INSERT INTO Writer (WriterID, WriterDOB, WriterAge, WriterHeight, WriterFirstName, WriterMiddleInitial, WriterLastName)
  400. VALUES
  401.   (8, TO_DATE('1977-04-16', 'YYYY-MM-DD'), 45, 185, 'Erik', NULL, 'Sommers');
  402.  
  403.  
  404. --Actors
  405. INSERT INTO Actor (ActorID, ActorDOB, ActorAge, ActorHeight, ActorFirstName, ActorMiddleInitial, ActorLastName)
  406. VALUES
  407.   (1, TO_DATE('1995-05-04', 'YYYY-MM-DD'), 28, 180, 'Shameik', NULL, 'Moore');
  408.  
  409. INSERT INTO Actor (ActorID, ActorDOB, ActorAge, ActorHeight, ActorFirstName, ActorMiddleInitial, ActorLastName)
  410. VALUES
  411.   (2, TO_DATE('1978-05-28', 'YYYY-MM-DD'), 43, 178, 'Jake', NULL, 'Johnson');
  412.  
  413. INSERT INTO Actor (ActorID, ActorDOB, ActorAge, ActorHeight, ActorFirstName, ActorMiddleInitial, ActorLastName)
  414. VALUES
  415.   (3, TO_DATE('1996-12-11', 'YYYY-MM-DD'), 25, 172, 'Hailee', NULL, 'Steinfield');
  416.  
  417. INSERT INTO Actor (ActorID, ActorDOB, ActorAge, ActorHeight, ActorFirstName, ActorMiddleInitial, ActorLastName)
  418. VALUES
  419.   (4, TO_DATE('1974-02-16', 'YYYY-MM-DD'), 48, 187, 'Mahershala', NULL, 'Ali');
  420.  
  421. INSERT INTO Actor (ActorID, ActorDOB, ActorAge, ActorHeight, ActorFirstName, ActorMiddleInitial, ActorLastName)
  422. VALUES
  423.   (5, TO_DATE('1939-09-01', 'YYYY-MM-DD'), 83, 160, 'Lily', NULL, 'Tomlin');
  424.  
  425. INSERT INTO Actor (ActorID, ActorDOB, ActorAge, ActorHeight, ActorFirstName, ActorMiddleInitial, ActorLastName)
  426. VALUES
  427.   (6, TO_DATE('1988-12-01', 'YYYY-MM-DD'), 34, 157, 'Zoe', NULL, 'Kravitz');
  428.  
  429. INSERT INTO Actor (ActorID, ActorDOB, ActorAge, ActorHeight, ActorFirstName, ActorMiddleInitial, ActorLastName)
  430. VALUES
  431.   (7, TO_DATE('1988-11-27', 'YYYY-MM-DD'), 34, 160, 'Kimiko', NULL, 'Glenn');
  432.  
  433. INSERT INTO Actor (ActorID, ActorDOB, ActorAge, ActorHeight, ActorFirstName, ActorMiddleInitial, ActorLastName)
  434. VALUES
  435.   (8, TO_DATE('1973-07-23', 'YYYY-MM-DD'), 48, 160, 'Kathryn', 'H', 'Hahn');
  436.  
  437. INSERT INTO Actor (ActorID, ActorDOB, ActorAge, ActorHeight, ActorFirstName, ActorMiddleInitial, ActorLastName)
  438. VALUES
  439.   (9, TO_DATE('1980-10-26', 'YYYY-MM-DD'), 41, 183, 'Chris', NULL, 'Pine');
  440.  
  441. INSERT INTO Actor (ActorID, ActorDOB, ActorAge, ActorHeight, ActorFirstName, ActorMiddleInitial, ActorLastName)
  442. VALUES
  443.   (10, TO_DATE('1990-08-22', 'YYYY-MM-DD'), 33, 175, 'Edwin R.', NULL, 'Habacon');
  444.  
  445. INSERT INTO Actor (ActorID, ActorDOB, ActorAge, ActorHeight, ActorFirstName, ActorMiddleInitial, ActorLastName)
  446. VALUES
  447.   (11, TO_DATE('1983-07-27', 'YYYY-MM-DD'), 38, 168, 'Greta', NULL, 'Lee');
  448.  
  449. INSERT INTO Actor (ActorID, ActorDOB, ActorAge, ActorHeight, ActorFirstName, ActorMiddleInitial, ActorLastName)
  450. VALUES
  451.   (12, TO_DATE('1990-02-21', 'YYYY-MM-DD'), 32, 160, 'Brian', 'T', 'Henry');
  452.  
  453. INSERT INTO Actor (ActorID, ActorDOB, ActorAge, ActorHeight, ActorFirstName, ActorMiddleInitial, ActorLastName)
  454. VALUES
  455.   (13, TO_DATE('1991-06-05', 'YYYY-MM-DD'), 30, 174, 'Luna Lauren', NULL, 'Velez');
  456.  
  457. INSERT INTO Actor (ActorID, ActorDOB, ActorAge, ActorHeight, ActorFirstName, ActorMiddleInitial, ActorLastName)
  458. VALUES
  459.   (14, TO_DATE('1972-08-26', 'YYYY-MM-DD'), 49, 188, 'John', NULL, 'Mulaney');
  460.  
  461. INSERT INTO Actor (ActorID, ActorDOB, ActorAge, ActorHeight, ActorFirstName, ActorMiddleInitial, ActorLastName)
  462. VALUES
  463.   (15, TO_DATE('1964-01-07', 'YYYY-MM-DD'), 58, 185, 'Nicolas', NULL, 'Cage');
  464.  
  465. INSERT INTO Actor (ActorID, ActorDOB, ActorAge, ActorHeight, ActorFirstName, ActorMiddleInitial, ActorLastName)
  466. VALUES
  467.   (16, TO_DATE('1967-09-11', 'YYYY-MM-DD'), 54, 183, 'Liev', NULL, 'Schreiber');
  468.  
  469. INSERT INTO Actor (ActorID, ActorDOB, ActorAge, ActorHeight, ActorFirstName, ActorMiddleInitial, ActorLastName)
  470. VALUES
  471.   (17, TO_DATE('1985-06-02', 'YYYY-MM-DD'), 38, 170, 'Natalie', NULL, 'Morales');
  472.  
  473. INSERT INTO Actor (ActorID, ActorDOB, ActorAge, ActorHeight, ActorFirstName, ActorMiddleInitial, ActorLastName)
  474. VALUES
  475.   (18, TO_DATE('1979-12-30', 'YYYY-MM-DD'), 43, 175, 'Oscar', NULL, 'Isaac');
  476.  
  477.  
  478.  
  479. --Combining Tables
  480. INSERT INTO MovieDirectors (MovieID, DirectorID)
  481. VALUES
  482.   (1, 1);
  483.  
  484. INSERT INTO MovieDirectors (MovieID, DirectorID)
  485. VALUES
  486.   (2, 4);
  487.  
  488. INSERT INTO MovieDirectors (MovieID, DirectorID)
  489. VALUES
  490.   (3, 7);
  491.  
  492. INSERT INTO MovieDirectors (MovieID, DirectorID)
  493. VALUES
  494.   (4, 7);
  495.  
  496. INSERT INTO MovieDirectors (MovieID, DirectorID)
  497. VALUES
  498.   (5, 7);
  499.  
  500.  
  501. INSERT INTO MovieWriters (MovieID, WriterID)
  502. VALUES
  503.   (1, 1);
  504.  
  505. INSERT INTO MovieWriters (MovieID, WriterID)
  506. VALUES
  507.   (1, 2);
  508.  
  509. INSERT INTO MovieWriters (MovieID, WriterID)
  510. VALUES
  511.   (2, 1);
  512.  
  513. INSERT INTO MovieWriters (MovieID, WriterID)
  514. VALUES
  515.   (2, 3);
  516.  
  517. INSERT INTO MovieWriters (MovieID, WriterID)
  518. VALUES
  519.   (3, 5);
  520.  
  521. INSERT INTO MovieWriters (MovieID, WriterID)
  522. VALUES
  523.   (3, 6);
  524.  
  525. INSERT INTO MovieWriters (MovieID, WriterID)
  526. VALUES
  527.   (3, 7);
  528.  
  529. INSERT INTO MovieWriters (MovieID, WriterID)
  530. VALUES
  531.   (4, 5);
  532.  
  533. INSERT INTO MovieWriters (MovieID, WriterID)
  534. VALUES
  535.   (4, 6);
  536.  
  537. INSERT INTO MovieWriters (MovieID, WriterID)
  538. VALUES
  539.   (4, 7);
  540.  
  541. INSERT INTO MovieWriters (MovieID, WriterID)
  542. VALUES
  543.   (5, 5);
  544.  
  545. INSERT INTO MovieWriters (MovieID, WriterID)
  546. VALUES
  547.   (5, 6);
  548.  
  549. INSERT INTO MovieWriters (MovieID, WriterID)
  550. VALUES
  551.   (5, 7);
  552.  
  553.  
  554. INSERT INTO MovieActors (MovieID, ActorID)
  555. VALUES
  556.   (1, 1);
  557.  
  558. INSERT INTO MovieActors (MovieID, ActorID)
  559. VALUES
  560.   (1, 2);
  561.  
  562. INSERT INTO MovieActors (MovieID, ActorID)
  563. VALUES
  564.   (1, 3);
  565.  
  566. INSERT INTO MovieActors (MovieID, ActorID)
  567. VALUES
  568.   (1, 4);
  569.  
  570. INSERT INTO MovieActors (MovieID, ActorID)
  571. VALUES
  572.   (1, 5);
  573.  
  574. INSERT INTO MovieActors (MovieID, ActorID)
  575. VALUES
  576.   (1, 6);
  577.  
  578. INSERT INTO MovieActors (MovieID, ActorID)
  579. VALUES
  580.   (1, 7);
  581.  
  582. INSERT INTO MovieActors (MovieID, ActorID)
  583. VALUES
  584.   (1, 8);
  585.  
  586. INSERT INTO MovieActors (MovieID, ActorID)
  587. VALUES
  588.   (1, 9);
  589.  
  590. INSERT INTO MovieActors (MovieID, ActorID)
  591. VALUES
  592.   (1, 10);
  593.  
  594. INSERT INTO MovieActors (MovieID, ActorID)
  595. VALUES
  596.   (1, 11);
  597.  
  598. INSERT INTO MovieActors (MovieID, ActorID)
  599. VALUES
  600.   (1, 12);
  601.  
  602. INSERT INTO MovieActors (MovieID, ActorID)
  603. VALUES
  604.   (1, 13);
  605.  
  606. INSERT INTO MovieActors (MovieID, ActorID)
  607. VALUES
  608.   (1, 14);
  609.  
  610. INSERT INTO MovieActors (MovieID, ActorID)
  611. VALUES
  612.   (1, 15);
  613.  
  614. INSERT INTO MovieActors (MovieID, ActorID)
  615. VALUES
  616.   (1, 16);
  617.  
  618. INSERT INTO MovieActors (MovieID, ActorID)
  619. VALUES
  620.   (1, 17);
  621.  
  622. INSERT INTO MovieActors (MovieID, ActorID)
  623. VALUES
  624.   (2, 1);
  625.  
  626. INSERT INTO MovieActors (MovieID, ActorID)
  627. VALUES
  628.   (2, 3);
  629.  
  630. INSERT INTO MovieActors (MovieID, ActorID)
  631. VALUES
  632.   (2, 8);
  633.  
  634. INSERT INTO MovieActors (MovieID, ActorID)
  635. VALUES
  636.   (2, 13);
  637.  
  638. INSERT INTO MovieActors (MovieID, ActorID)
  639. VALUES
  640.   (2, 2);
  641.  
  642. INSERT INTO MovieActors (MovieID, ActorID)
  643. VALUES
  644.   (2, 17);
  645.  
  646. INSERT INTO MovieActors (MovieID, ActorID)
  647. VALUES
  648.   (2, 16);
  649.  
  650. INSERT INTO MovieActors (MovieID, ActorID)
  651. VALUES
  652.   (2, 9);
  653.  
  654. INSERT INTO MovieActors (MovieID, ActorID)
  655. VALUES
  656.   (2, 10);
  657.  
  658. INSERT INTO MovieActors (MovieID, ActorID)
  659. VALUES
  660.   (2, 11);
  661.  
  662. INSERT INTO MovieActors (MovieID, ActorID)
  663. VALUES
  664.   (2, 18);
  665.  
  666. INSERT INTO MovieActors (MovieID, ActorID)
  667. VALUES
  668.   (2, 12);
  669.  
  670. INSERT INTO MovieActors (MovieID, ActorID)
  671. VALUES
  672.   (2, 6);
  673.  
  674. INSERT INTO MovieActors (MovieID, ActorID)
  675. VALUES
  676.   (2, 5);
  677.  
  678. INSERT INTO MovieActors (MovieID, ActorID)
  679. VALUES
  680.   (2, 14);
  681.  
  682. INSERT INTO MovieActors (MovieID, ActorID)
  683. VALUES
  684.   (2, 7);
  685.  
  686. INSERT INTO MovieActors (MovieID, ActorID)
  687. VALUES
  688.   (2, 15);
  689.  
  690.  
  691. --Video Games
  692. INSERT INTO VideoGames (GameID, GameTitle, GameDescription, GameTrailer_Runtime, GameTrailer_URL, GameTrailer_ReleaseDate)
  693. VALUES
  694.   (1, 'Spider-Man (2018)', 'When a new villain threatens New York City, Peter Parker and Spider-Man''s worlds collide. To save the city and those he loves, he must rise up and be greater.', 1.4, ' https://www.youtube.com/watch?v=q4GdJVvdxss', TO_DATE('2018-09-07', 'YYYY-MM-DD'));
  695.  
  696. INSERT INTO VideoGames (GameID, GameTitle, GameDescription, GameTrailer_Runtime, GameTrailer_URL, GameTrailer_ReleaseDate)
  697. VALUES
  698.   (2, 'Spider-Man 2 (2023)', 'Spider-Men, Peter Parker and Miles Morales, return for an exciting new adventure in the critically acclaimed Marvel''s Spider-Man franchise.', 1.1, ' https://www.youtube.com/watch?v=nq1M_Wc4FIc', TO_DATE('2023-10-20', 'YYYY-MM-DD'));
  699.  
  700. INSERT INTO VideoGames (GameID, GameTitle, GameDescription, GameTrailer_Runtime, GameTrailer_URL, GameTrailer_ReleaseDate)
  701. VALUES
  702.   (3, 'Spider-Man: Miles Morales (2020)', 'Description for Spider-Man: Miles Morales (2020)', 2.03, 'https://www.youtube.com/watch?v=NTunTURbyUU', TO_DATE('2020-12-01', 'YYYY-MM-DD'));
  703.  
  704. INSERT INTO GameDirectors (GameID, DirectorID)
  705. VALUES
  706.   (1, 7);
  707.  
  708. INSERT INTO GameDirectors (GameID, DirectorID)
  709. VALUES
  710.   (2, 7);
  711.  
  712. INSERT INTO GameDirectors (GameID, DirectorID)
  713. VALUES
  714.   (3, 7);
  715.  
  716.  
  717. INSERT INTO GameWriters (GameID, WriterID)
  718. VALUES
  719.   (1, 5);
  720.  
  721. INSERT INTO GameWriters (GameID, WriterID)
  722. VALUES
  723.   (1, 6);
  724.  
  725. INSERT INTO GameWriters (GameID, WriterID)
  726. VALUES
  727.   (1, 7);
  728.  
  729. INSERT INTO GameWriters (GameID, WriterID)
  730. VALUES
  731.   (2, 7);
  732.  
  733. INSERT INTO GameWriters (GameID, WriterID)
  734. VALUES
  735.   (2, 8);
  736.  
  737. INSERT INTO GameWriters (GameID, WriterID)
  738. VALUES
  739.   (3, 8);
  740.  
  741.  
  742. INSERT INTO GameActors (GameID, ActorID)
  743. VALUES
  744.   (1, 1);
  745.  
  746. INSERT INTO GameActors (GameID, ActorID)
  747. VALUES
  748.   (1, 2);
  749.  
  750. INSERT INTO GameActors (GameID, ActorID)
  751. VALUES
  752.   (1, 3);
  753.  
  754. INSERT INTO GameActors (GameID, ActorID)
  755. VALUES
  756.   (1, 4);
  757.  
  758. INSERT INTO GameActors (GameID, ActorID)
  759. VALUES
  760.   (1, 5);
  761.  
  762. INSERT INTO GameActors (GameID, ActorID)
  763. VALUES
  764.   (1, 6);
  765.  
  766. INSERT INTO GameActors (GameID, ActorID)
  767. VALUES
  768.   (1, 7);
  769.  
  770. INSERT INTO GameActors (GameID, ActorID)
  771. VALUES
  772.   (1, 8);
  773.  
  774. INSERT INTO GameActors (GameID, ActorID)
  775. VALUES
  776.   (1, 9);
  777.  
  778. INSERT INTO GameActors (GameID, ActorID)
  779. VALUES
  780.   (1, 10);
  781.  
  782. INSERT INTO GameActors (GameID, ActorID)
  783. VALUES
  784.   (1, 11);
  785.  
  786. INSERT INTO GameActors (GameID, ActorID)
  787. VALUES
  788.   (1, 12);
  789.  
  790. INSERT INTO GameActors (GameID, ActorID)
  791. VALUES
  792.   (1, 13);
  793.  
  794.  
  795. --TV Shows
  796. -- Spider-Man: The Animated Series
  797. INSERT INTO TvShow (TvShowID, TvEpisodes, TvDescription, TvShowTitle, TvTrailer_Runtime, TvTrailer_URL, TvTrailer_ReleaseDate)
  798. VALUES
  799.   (1, 65, 'A young man with spider-like abilities fights crime as a superhero in New York City while trying to have a normal personal life.', 'Spider-Man: The Animated Series', 25, 'https://www.imdb.com/video/vi1030274585/?ref_=tt_vi_i_1', TO_DATE('1994-01-01', 'YYYY-MM-DD'));
  800.  
  801. -- The Spectacular Spider-Man
  802. INSERT INTO TvShow (TvShowID, TvEpisodes, TvDescription, TvShowTitle, TvTrailer_Runtime, TvTrailer_URL, TvTrailer_ReleaseDate)
  803. VALUES
  804.   (2, 26, 'An animated television show that focuses on a sixteen-year-old Peter Parker, and the origins of Spider-Man.', 'The Spectacular Spider-Man', 10, 'https://www.imdb.com/video/vi2936603417/?ref_=tt_vi_i_1', TO_DATE('2008-01-01', 'YYYY-MM-DD'));
  805.  
  806. -- Ultimate Spider-Man
  807. INSERT INTO TvShow (TvShowID, TvEpisodes, TvDescription, TvShowTitle, TvTrailer_Runtime, TvTrailer_URL, TvTrailer_ReleaseDate)
  808. VALUES
  809.   (3, 104, 'Spider-Man battles evil with a new team of teen colleagues and training from S.H.I.E.L.D.', 'Ultimate Spider-Man', 40, 'https://www.imdb.com/video/vi2567939865/?ref_=tt_vi_i_1', TO_DATE('2012-01-01', 'YYYY-MM-DD'));
  810.  
  811. -- Spider-Man
  812. INSERT INTO TvShow (TvShowID, TvEpisodes, TvDescription, TvShowTitle, TvTrailer_Runtime, TvTrailer_URL, TvTrailer_ReleaseDate)
  813. VALUES
  814.   (4, 58, 'Peter Parker, a new student at the famous Horizon High, fights evil supervillains as the costumed superhero, Spider-Man.', 'Spider-Man', 29, 'https://www.imdb.com/video/vi671661593/?ref_=tt_vi_i_1', TO_DATE('2017-01-01', 'YYYY-MM-DD'));
  815.  
  816. -- Spider-Man and His Amazing Friends
  817. INSERT INTO TvShow (TvShowID, TvEpisodes, TvDescription, TvShowTitle, TvTrailer_Runtime, TvTrailer_URL, TvTrailer_ReleaseDate)
  818. VALUES
  819.   (5, 24, 'Spider-Man battles crime in New York City with the help of Iceman and Firestar.', 'Spider-Man and His Amazing Friends', 24, 'https://www.imdb.com/video/vi174233881/?ref_=tt_vi_i_2', TO_DATE('1981-01-01', 'YYYY-MM-DD'));
  820.  
  821. -- TvShowDirectors
  822.  
  823. -- Spider-Man: The Animated Series
  824. INSERT INTO TvShowDirectors (TvShowID, DirectorID) VALUES (1, 1);
  825. INSERT INTO TvShowDirectors (TvShowID, DirectorID) VALUES (1, 2);
  826. INSERT INTO TvShowDirectors (TvShowID, DirectorID) VALUES (1, 3);
  827.  
  828. -- The Spectacular Spider-Man
  829. INSERT INTO TvShowDirectors (TvShowID, DirectorID) VALUES (2, 4);
  830. INSERT INTO TvShowDirectors (TvShowID, DirectorID) VALUES (2, 5);
  831. INSERT INTO TvShowDirectors (TvShowID, DirectorID) VALUES (2, 6);
  832.  
  833. -- Ultimate Spider-Man
  834. INSERT INTO TvShowDirectors (TvShowID, DirectorID) VALUES (3, 7);
  835. INSERT INTO TvShowDirectors (TvShowID, DirectorID) VALUES (3, 6);
  836.  
  837.  
  838. -- TvShowWriters
  839.  
  840. -- Spider-Man: The Animated Series
  841. INSERT INTO TvShowWriters (TvShowID, WriterID) VALUES (1, 1);
  842. INSERT INTO TvShowWriters (TvShowID, WriterID) VALUES (1, 2);
  843. INSERT INTO TvShowWriters (TvShowID, WriterID) VALUES (1, 3);
  844.  
  845. -- The Spectacular Spider-Man
  846. INSERT INTO TvShowWriters (TvShowID, WriterID) VALUES (2, 4);
  847. INSERT INTO TvShowWriters (TvShowID, WriterID) VALUES (2, 5);
  848. INSERT INTO TvShowWriters (TvShowID, WriterID) VALUES (2, 6);
  849.  
  850. -- Ultimate Spider-Man
  851. INSERT INTO TvShowWriters (TvShowID, WriterID) VALUES (3, 7);
  852. INSERT INTO TvShowWriters (TvShowID, WriterID) VALUES (3, 8);
  853.  
  854.  
  855. -- TvShowActors
  856.  
  857. -- Spider-Man: The Animated Series
  858. INSERT INTO TvShowActors (TvShowID, ActorID) VALUES (1, 1);
  859. INSERT INTO TvShowActors (TvShowID, ActorID) VALUES (1, 2);
  860. INSERT INTO TvShowActors (TvShowID, ActorID) VALUES (1, 3);
  861.  
  862. -- The Spectacular Spider-Man
  863. INSERT INTO TvShowActors (TvShowID, ActorID) VALUES (2, 4);
  864. INSERT INTO TvShowActors (TvShowID, ActorID) VALUES (2, 5);
  865. INSERT INTO TvShowActors (TvShowID, ActorID) VALUES (2, 6);
  866.  
  867. -- Ultimate Spider-Man
  868. INSERT INTO TvShowActors (TvShowID, ActorID) VALUES (3, 7);
  869. INSERT INTO TvShowActors (TvShowID, ActorID) VALUES (3, 8);
  870.  
  871. -- Spider-Man (2017-2020)
  872. INSERT INTO TvShowActors (TvShowID, ActorID) VALUES (4, 1);
  873. INSERT INTO TvShowActors (TvShowID, ActorID) VALUES (4, 2);
  874. INSERT INTO TvShowActors (TvShowID, ActorID) VALUES (4, 3);
  875. INSERT INTO TvShowActors (TvShowID, ActorID) VALUES (4, 4);
  876.  
  877. -- Spider-Man and His Amazing Friends
  878. INSERT INTO TvShowActors (TvShowID, ActorID) VALUES (5, 5);
  879. INSERT INTO TvShowActors (TvShowID, ActorID) VALUES (5, 6);
  880. INSERT INTO TvShowActors (TvShowID, ActorID) VALUES (5, 7);
  881.  
  882.  
  883. -- Movie Reviews
  884. INSERT INTO MovieReviews (MovieID, StarRating, UserName, ReviewContents)
  885. VALUES (1, 8.4, 'ReviewUser1', 'Teen Miles Morales becomes the Spider-Man of his universe and must join with five spider-powered individuals from other dimensions to stop a threat for all realities.');
  886.  
  887. INSERT INTO MovieReviews (MovieID, StarRating, UserName, ReviewContents)
  888. VALUES (2, 8.7, 'ReviewUser2', 'Miles Morales encounters a team of Spider-People charged with protecting its existence, leading to a clash on handling a new threat.');
  889.  
  890. INSERT INTO MovieReviews (MovieID, StarRating, UserName, ReviewContents)
  891. VALUES(3, 7.4, 'ReviewUser3', 'Peter Parker balances life as a high school student with his superhero alter-ego Spider-Man, facing a new menace in New York City.');
  892.  
  893.  
  894. -- Game Reviews
  895. INSERT INTO GameReviews (GameID, StarRating, UserName, ReviewContents)
  896. VALUES (1, 9.2, 'ReviewUser4', 'An immersive game where Peter Parker and Spider-Man face a new villain threatening New York City.');
  897.  
  898. INSERT INTO GameReviews (GameID, StarRating, UserName, ReviewContents)
  899. VALUES(2, 9.4, 'ReviewUser5', 'Exciting new adventure featuring Peter Parker and Miles Morales in the Marvel\''s Spider-Man franchise.');
  900.  
  901. INSERT INTO GameReviews (GameID, StarRating, UserName, ReviewContents)
  902. VALUES (3, 8.4, 'ReviewUser6', 'Sequel featuring Miles Morales learning about his will TO fight crime.');
  903.  
  904.  
  905. -- TV Show Reviews
  906. INSERT INTO TvReviews (TvShowID, StarRating, UserName, ReviewContents)
  907. VALUES(1, 8.4, 'ReviewUser7', 'A young man WITH spider-LIKE abilities fights crime AS Spider-Man IN NEW York City.');
  908.  
  909. INSERT INTO TvReviews (TvShowID, StarRating, UserName, ReviewContents)
  910. VALUES(2, 8.4, 'ReviewUser8', 'Focuses ON a sixteen-year-old Peter Parker AND the origins OF Spider-Man.');
  911.  
  912. INSERT INTO TvReviews (TvShowID, StarRating, UserName, ReviewContents)
  913. VALUES  (3, 7.2, 'ReviewUser9', 'Spider-Man battles evil WITH a team OF teen colleagues AND training FROM S.H.I.E.L.D.');
  914.  
  915. -- TV Genre
  916. INSERT INTO TV_GENRE (TVShowID, TVGenre)
  917. VALUES (1, 'Action, Adventure, Animation');
  918.  
  919. -- TV Awards
  920. INSERT INTO TV_AWARDS (TVShowID, TVAwards)
  921. VALUES (1, 'N/A (4 nominations)');
  922.  
  923. -- Movie Genre
  924. INSERT INTO MOVIE_GENRE (MovieID, MovieGenre)
  925. VALUES (1, 'Animation, Action, Adventure');
  926.  
  927. -- Movie Awards
  928. INSERT INTO MOVIE_AWARDS (MovieID, MovieAwards)
  929. VALUES (1, '1 Oscar (81 wins AND 57 nominations total)');
  930.  
  931. -- Video Game Genre
  932. INSERT INTO VIDEO_GAME_GENRE (GameID, GameGenre)
  933. VALUES (1, 'Action, Adventure, Fantasy');
  934.  
  935. -- Video Game Awards
  936. INSERT INTO VIDEO_GAME_AWARDS (GameID, GameAwards)
  937. VALUES (1, '3 BAFTA Awards (4 wins 41 total nominations)');
  938.  
  939. -- Actor Genre
  940. INSERT INTO ACTOR_GENRE (ActorID, ActorGenre)
  941. VALUES (1, 'Animation, Action, Adventure');
  942.  
  943. -- Actor Awards
  944. INSERT INTO ACTOR_AWARDS (ActorID, ActorAwards)
  945. VALUES (1, 'N/A (17 wins AND 65 nominations total)');
  946.  
  947. -- Director Genre
  948. INSERT INTO DIRECTOR_GENRE (DirectorID, DirectorGenre)
  949. VALUES (1, 'Animation, Action, Adventure');
  950.  
  951. -- Director Awards
  952. INSERT INTO DIRECTOR_AWARDS (DirectorID, DirectorAwards)
  953. VALUES (1, 'N/A (Won 1 Oscar, 25 wins AND 60 nominations)');
  954.  
  955.  
  956.  
  957.  
  958.  
  959. -- For MySQL again
  960. DESCRIBE TV_GENRE;
  961. DESCRIBE TV_AWARDS;
  962. DESCRIBE MOVIE_GENRE;
  963. DESCRIBE MOVIE_AWARDS;
  964. DESCRIBE VIDEO_GAME_GENRE;
  965. DESCRIBE VIDEO_GAME_AWARDS;
  966. DESCRIBE ACTOR_GENRE;
  967. DESCRIBE ACTOR_AWARDS;
  968. DESCRIBE DIRECTOR_GENRE;
  969. DESCRIBE DIRECTOR_AWARDS;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement