MySQL
MySQL
FLUSH PRIVILEGES;
CREATE DATABASE IF NOT EXISTS `myflixdb` /*!40100 DEFAULT CHARACTER SET latin1
*/;
USE `myflixdb`;
-- MySQL dump 10.13 Distrib 5.5.16, for Win32 (x86)
--
-- Host: localhost Database: myflixdb
-- ------------------------------------------------------
-- Server version 5.5.25a
--
-- Table structure for table `movies`
--
--
-- Dumping data for table `movies`
--
--
-- Table structure for table `payments`
--
--
-- Dumping data for table `payments`
--
--
-- Table structure for table `members`
--
--
-- Dumping data for table `members`
--
--
-- Temporary table structure for view `accounts_v_members`
--
--
-- Temporary table structure for view `general_v_movie_rentals`
--
--
-- Table structure for table `categories`
--
--
-- Dumping data for table `categories`
--
--
-- Table structure for table `movierentals`
--
--
-- Final view structure for view `accounts_v_members`
--
--
-- Final view structure for view `general_v_movie_rentals`
--
INSERT INTO `movies` VALUES (100,'Pirates of the Caribean 40',' Rob Marshall',2022,1);
INSERT INTO `movies` VALUES (101,'Pirates of the Caribean 41',' Rob Marshall',2022,1);
INSERT INTO `movies` VALUES (103,'Pirates of the Caribean 42',' Rob Marshall',2022,1);
INSERT INTO `movies` VALUES (104,'Pirates of the Caribean 43',' Rob Marshall',2022,1);
INSERT INTO `movies` VALUES (105,'Pirates of the Caribean 44',' Rob Marshall',2022,1);
INSERT INTO `movies` VALUES (107,'Fast & Furious 30',' Rob Marshall',2018,7);
INSERT INTO `movies` VALUES (108,'Fast & Furious 31',' Rob Marshall',2019,7);
INSERT INTO `movies` VALUES (109,'Fast & Furious 32',' Rob Marshall',2020,7);
INSERT INTO `movies` VALUES (110,'Fast & Furious 33',' Rob Marshall',2021,7);
INSERT INTO `movies` VALUES (111,'Fast & Furious 34',' Rob Marshall',2022,7);
INSERT INTO `movies` VALUES (112,'Fast & Furious 34',' Rob Marshall',2023,7);
INSERT INTO `movies` VALUES (113,'Fast & Furious 36',' Rob Marshall',2024,7);