sql stringlengths 6 1.05M |
|---|
LOCK TABLES `utilisateur`, `role` WRITE;
/*!40000 ALTER TABLE `entreprise` DISABLE KEYS */;
INSERT INTO role VALUES (1, 'ADMIN');
INSERT INTO utilisateur VALUES (null, '192.168.0.1', 'Masson', 'Jérémy', NOW(), 'jmasson', '$2a$10$LilZuLjPLnWb20/vgbcwOuzXDv9REDu5WBxFfw0QnxKICInxlfERW', 1, 1);
/*!40000 ALTER TABLE `entreprise` ENABLE KEYS */;
UNLOCK TABLES; |
-- --------------------------------------------------------
-- Servidor: 127.0.0.1
-- Versão do servidor: 5.7.31 - MySQL Community Server (GPL)
-- OS do Servidor: Win64
-- HeidiSQL Versão: 11.3.0.6295
-- --------------------------------------------------------
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET NAMES utf8 */;
/*!50503 SET NAMES utf8mb4 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
-- Copiando estrutura do banco de dados para site-de-venda
CREATE DATABASE IF NOT EXISTS `site-de-venda` /*!40100 DEFAULT CHARACTER SET utf32 */;
USE `site-de-venda`;
-- Copiando estrutura para tabela site-de-venda.admlogin
CREATE TABLE IF NOT EXISTS `admlogin` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`nome` varchar(30) NOT NULL,
`id_acesso` int(11) NOT NULL,
`senha` varchar(50) NOT NULL,
`cnpjcpf` varchar(16) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf32;
-- Copiando dados para a tabela site-de-venda.admlogin: 1 rows
/*!40000 ALTER TABLE `admlogin` DISABLE KEYS */;
INSERT INTO `admlogin` (`id`, `nome`, `id_acesso`, `senha`, `cnpjcpf`) VALUES
(1, 'Rafael', 1, '7392001', '11977173900');
/*!40000 ALTER TABLE `admlogin` ENABLE KEYS */;
-- Copiando estrutura para tabela site-de-venda.failed_jobs
CREATE TABLE IF NOT EXISTS `failed_jobs` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`uuid` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`connection` text COLLATE utf8mb4_unicode_ci NOT NULL,
`queue` text COLLATE utf8mb4_unicode_ci NOT NULL,
`payload` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
`exception` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
`failed_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`),
UNIQUE KEY `failed_jobs_uuid_unique` (`uuid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Copiando dados para a tabela site-de-venda.failed_jobs: 0 rows
/*!40000 ALTER TABLE `failed_jobs` DISABLE KEYS */;
/*!40000 ALTER TABLE `failed_jobs` ENABLE KEYS */;
-- Copiando estrutura para tabela site-de-venda.imagemproduto
CREATE TABLE IF NOT EXISTS `imagemproduto` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`id_produto` int(11) NOT NULL,
`path` varchar(100) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf32;
-- Copiando dados para a tabela site-de-venda.imagemproduto: 3 rows
/*!40000 ALTER TABLE `imagemproduto` DISABLE KEYS */;
INSERT INTO `imagemproduto` (`id`, `id_produto`, `path`) VALUES
(7, 14, 'produtos/gz6WhrtLY4JhyGQvKcAxtd1zbXBwOxmx4WAOYiNL.jpg'),
(5, 8, 'produtos/R9GCSH8cYJC0CIZWsnO0JhR2iT2w5bG8wk4gpXGe.jpg'),
(6, 7, 'produtos/DTCWVyxBlyKz4wkC3jkswn99sAOy3YXGbnwHzH1w.jpg');
/*!40000 ALTER TABLE `imagemproduto` ENABLE KEYS */;
-- Copiando estrutura para tabela site-de-venda.migrations
CREATE TABLE IF NOT EXISTS `migrations` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`migration` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`batch` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Copiando dados para a tabela site-de-venda.migrations: 4 rows
/*!40000 ALTER TABLE `migrations` DISABLE KEYS */;
INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES
(1, '2014_10_12_000000_create_users_table', 1),
(2, '2014_10_12_100000_create_password_resets_table', 1),
(3, '2019_08_19_000000_create_failed_jobs_table', 1),
(4, '2019_12_14_000001_create_personal_access_tokens_table', 1);
/*!40000 ALTER TABLE `migrations` ENABLE KEYS */;
-- Copiando estrutura para tabela site-de-venda.password_resets
CREATE TABLE IF NOT EXISTS `password_resets` (
`email` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`token` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
KEY `password_resets_email_index` (`email`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Copiando dados para a tabela site-de-venda.password_resets: 0 rows
/*!40000 ALTER TABLE `password_resets` DISABLE KEYS */;
/*!40000 ALTER TABLE `password_resets` ENABLE KEYS */;
-- Copiando estrutura para tabela site-de-venda.personal_access_tokens
CREATE TABLE IF NOT EXISTS `personal_access_tokens` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`tokenable_type` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`tokenable_id` bigint(20) unsigned NOT NULL,
`name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`token` varchar(64) COLLATE utf8mb4_unicode_ci NOT NULL,
`abilities` text COLLATE utf8mb4_unicode_ci,
`last_used_at` timestamp NULL DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `personal_access_tokens_token_unique` (`token`),
KEY `personal_access_tokens_tokenable_type_tokenable_id_index` (`tokenable_type`,`tokenable_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Copiando dados para a tabela site-de-venda.personal_access_tokens: 0 rows
/*!40000 ALTER TABLE `personal_access_tokens` DISABLE KEYS */;
/*!40000 ALTER TABLE `personal_access_tokens` ENABLE KEYS */;
-- Copiando estrutura para tabela site-de-venda.produtos
CREATE TABLE IF NOT EXISTS `produtos` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`nome` varchar(50) NOT NULL,
`valor` decimal(11,2) NOT NULL,
`qtde` decimal(11,2) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf32;
-- Copiando dados para a tabela site-de-venda.produtos: 9 rows
/*!40000 ALTER TABLE `produtos` DISABLE KEYS */;
INSERT INTO `produtos` (`id`, `nome`, `valor`, `qtde`) VALUES
(1, 'Monitor', 1500.00, 5.00),
(2, 'Mause', 185.00, 2.00),
(3, 'Teclado', 350.00, 8.00),
(4, 'Placa de video', 1850.00, 4.00),
(5, 'Memoria', 250.00, 6.00),
(6, 'Hd', 480.00, 2.00),
(7, 'Processador', 1280.00, 3.00),
(8, 'Gabinete', 265.00, 2.00),
(14, 'SSD 480GB', 425.00, 3.00);
/*!40000 ALTER TABLE `produtos` ENABLE KEYS */;
-- Copiando estrutura para tabela site-de-venda.users
CREATE TABLE IF NOT EXISTS `users` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`email` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`email_verified_at` timestamp NULL DEFAULT NULL,
`password` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`remember_token` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `users_email_unique` (`email`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Copiando dados para a tabela site-de-venda.users: 1 rows
/*!40000 ALTER TABLE `users` DISABLE KEYS */;
INSERT INTO `users` (`id`, `name`, `email`, `email_verified_at`, `password`, `remember_token`, `created_at`, `updated_at`) VALUES
(1, 'Rafael', '<EMAIL>', NULL, '$2y$10$ij3bhDgO1vLKD0JYDUV34OB/uSDzOW6TLYbGitQ/64M7X9tlODOtK', NULL, '2021-12-14 02:05:48', '2021-12-14 02:05:48');
/*!40000 ALTER TABLE `users` ENABLE KEYS */;
/*!40101 SET SQL_MODE=IFNULL(@OLD_SQL_MODE, '') */;
/*!40014 SET FOREIGN_KEY_CHECKS=IFNULL(@OLD_FOREIGN_KEY_CHECKS, 1) */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40111 SET SQL_NOTES=IFNULL(@OLD_SQL_NOTES, 1) */;
|
select id,group_name from cwd_group group by group_name;
|
CREATE DATABASE IF NOT EXISTS caww;
|
<filename>CreazioneDB.sql
CREATE DATABASE IF NOT EXISTS `tirociniosmart` /*!40100 DEFAULT CHARACTER SET utf8 */;
USE `tirociniosmart`;
-- MySQL dump 10.13 Distrib 5.7.12, for Win64 (x86_64)
--
-- Host: localhost Database: tirociniosmart
-- ------------------------------------------------------
-- Server version 5.7.15-log
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
--
-- Table structure for table `azienda`
--
DROP TABLE IF EXISTS `azienda`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `azienda` (
`Email` char(64) NOT NULL,
`LuogoNascita` char(30) NOT NULL,
`DataNascita` date NOT NULL,
`Denominazione` char(30) NOT NULL,
`Citta` char(30) NOT NULL,
`CAP` char(5) NOT NULL,
`Via` char(30) NOT NULL,
`Telefono` char(10) DEFAULT NULL,
`SitoWeb` char(50) DEFAULT NULL,
`ChiSiamo` varchar(255) DEFAULT NULL,
`ConvenzioneID` int(10) DEFAULT NULL,
`abilitato` tinyint(1) NOT NULL,
PRIMARY KEY (`Email`),
KEY `FKAzienda489468` (`Email`),
KEY `sottostare_idx` (`ConvenzioneID`),
CONSTRAINT `FKAzienda489468` FOREIGN KEY (`Email`) REFERENCES `utente` (`User`) ON DELETE CASCADE,
CONSTRAINT `sottostare` FOREIGN KEY (`ConvenzioneID`) REFERENCES `convenzione` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `azienda`
--
LOCK TABLES `azienda` WRITE;
/*!40000 ALTER TABLE `azienda` DISABLE KEYS */;
INSERT INTO `azienda` VALUES ('<EMAIL>','Firenze','1956-08-04','HS s.r.l.','Bisaccia','83044','Via pioppi, 13','0827488965','www.accasoftware.it','test',7,0),('<EMAIL>','Torino','1957-10-06','C.venzione2','Ischia','81203','Via rai, 45',NULL,NULL,NULL,7,1),('<EMAIL>','Milano','1964-02-14','C.venzione','Capri','82011','Via test, 18','0825124578','www.convenzione.it','nessuno',7,1),('<EMAIL>','Napoli','1957-01-02','C.S.T.P','Ariano','83031','Via caso, 15','0825828485',NULL,NULL,NULL,0);
/*!40000 ALTER TABLE `azienda` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `convenzione`
--
DROP TABLE IF EXISTS `convenzione`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `convenzione` (
`ID` int(10) NOT NULL AUTO_INCREMENT,
`Data` date NOT NULL,
`Specifiche` char(100) DEFAULT NULL,
PRIMARY KEY (`ID`)
) ENGINE=InnoDB AUTO_INCREMENT=176 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `convenzione`
--
LOCK TABLES `convenzione` WRITE;
/*!40000 ALTER TABLE `convenzione` DISABLE KEYS */;
INSERT INTO `convenzione` VALUES (7,'2018-01-30','Serve per il test');
/*!40000 ALTER TABLE `convenzione` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `professore`
--
DROP TABLE IF EXISTS `professore`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `professore` (
`Email` char(64) NOT NULL,
`Autorizzato` tinyint(1) NOT NULL DEFAULT '0',
`Materia` char(64) DEFAULT NULL,
PRIMARY KEY (`Email`),
KEY `FKProfessore321420` (`Email`),
CONSTRAINT `FKProfessore321420` FOREIGN KEY (`Email`) REFERENCES `utente` (`User`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `professore`
--
LOCK TABLES `professore` WRITE;
/*!40000 ALTER TABLE `professore` DISABLE KEYS */;
INSERT INTO `professore` VALUES ('<EMAIL>',1,'IS'),('<EMAIL>',1,'PW'),('<EMAIL>',0,'BD');
/*!40000 ALTER TABLE `professore` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `progettoformativo`
--
DROP TABLE IF EXISTS `progettoformativo`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `progettoformativo` (
`ID` int(10) NOT NULL AUTO_INCREMENT,
`AziendaEmail` char(64) NOT NULL,
`SegreteriaUsername` char(64) NOT NULL,
`StudenteMatricola` char(10) NOT NULL,
`ProfessoreEmail` char(64) NOT NULL,
`Obiettivi` char(255) NOT NULL,
`DataInizio` date DEFAULT NULL,
`DataFine` date DEFAULT NULL,
`convalidaProf` tinyint(1) DEFAULT '0',
`convalidaSegr` tinyint(1) DEFAULT '0',
`sottoscrizioneStu` tinyint(1) DEFAULT '0',
`termine` tinyint(1) DEFAULT NULL,
PRIMARY KEY (`ID`),
KEY `compilare` (`AziendaEmail`),
KEY `sottoscrivere` (`StudenteMatricola`),
KEY `confermare` (`ProfessoreEmail`),
KEY `approvare` (`SegreteriaUsername`),
CONSTRAINT `approvare` FOREIGN KEY (`SegreteriaUsername`) REFERENCES `segreteria` (`Username`),
CONSTRAINT `compilare` FOREIGN KEY (`AziendaEmail`) REFERENCES `azienda` (`Email`),
CONSTRAINT `confermare` FOREIGN KEY (`ProfessoreEmail`) REFERENCES `professore` (`Email`),
CONSTRAINT `sottoscrivere` FOREIGN KEY (`StudenteMatricola`) REFERENCES `studente` (`Matricola`)
) ENGINE=InnoDB AUTO_INCREMENT=74 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `progettoformativo`
--
LOCK TABLES `progettoformativo` WRITE;
/*!40000 ALTER TABLE `progettoformativo` DISABLE KEYS */;
/*!40000 ALTER TABLE `progettoformativo` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `questionarioazienda`
--
DROP TABLE IF EXISTS `questionarioazienda`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `questionarioazienda` (
`AziendaEmail` char(64) NOT NULL,
`ProgettoFormativoID` int(10) NOT NULL,
`Voto` smallint(2) NOT NULL,
PRIMARY KEY (`AziendaEmail`,`ProgettoFormativoID`),
KEY `compiere` (`AziendaEmail`),
KEY `fk545_idx` (`ProgettoFormativoID`),
CONSTRAINT `compiere` FOREIGN KEY (`AziendaEmail`) REFERENCES `azienda` (`Email`),
CONSTRAINT `fk545` FOREIGN KEY (`ProgettoFormativoID`) REFERENCES `progettoformativo` (`ID`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `questionarioazienda`
--
LOCK TABLES `questionarioazienda` WRITE;
/*!40000 ALTER TABLE `questionarioazienda` DISABLE KEYS */;
/*!40000 ALTER TABLE `questionarioazienda` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `questionariostudente`
--
DROP TABLE IF EXISTS `questionariostudente`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `questionariostudente` (
`ProgettoFormativoID` int(10) NOT NULL,
`StudenteMatricola` char(10) NOT NULL,
`Voto` smallint(2) NOT NULL,
`esperienzaUtile` tinyint(1) NOT NULL,
`conoscenzeSuff` tinyint(1) NOT NULL,
`utilita` smallint(2) NOT NULL,
PRIMARY KEY (`ProgettoFormativoID`,`StudenteMatricola`),
KEY `eseguire` (`StudenteMatricola`),
KEY `FKQuestionar242182` (`ProgettoFormativoID`),
CONSTRAINT `eseguire` FOREIGN KEY (`StudenteMatricola`) REFERENCES `studente` (`Matricola`),
CONSTRAINT `frshbdwd45` FOREIGN KEY (`ProgettoFormativoID`) REFERENCES `progettoformativo` (`ID`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `questionariostudente`
--
LOCK TABLES `questionariostudente` WRITE;
/*!40000 ALTER TABLE `questionariostudente` DISABLE KEYS */;
/*!40000 ALTER TABLE `questionariostudente` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `registrotirocinio`
--
DROP TABLE IF EXISTS `registrotirocinio`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `registrotirocinio` (
`ID` int(10) NOT NULL,
`ProgettoFormativoID` int(10) NOT NULL,
`convalidaAzienda` tinyint(1) NOT NULL,
`convalidaProf` tinyint(1) NOT NULL,
`convalidaSegr` tinyint(1) NOT NULL,
PRIMARY KEY (`ID`),
KEY `riferire_idx` (`ProgettoFormativoID`),
CONSTRAINT `riferire` FOREIGN KEY (`ProgettoFormativoID`) REFERENCES `progettoformativo` (`ID`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `registrotirocinio`
--
LOCK TABLES `registrotirocinio` WRITE;
/*!40000 ALTER TABLE `registrotirocinio` DISABLE KEYS */;
/*!40000 ALTER TABLE `registrotirocinio` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `richiestatirocinio`
--
DROP TABLE IF EXISTS `richiestatirocinio`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `richiestatirocinio` (
`ID` int(10) NOT NULL AUTO_INCREMENT,
`AziendaEmail` char(64) NOT NULL,
`ProfessoreEmail` char(64) NOT NULL,
`ConvalidaAzienda` tinyint(1) NOT NULL DEFAULT '0',
`ConvalidaProf` tinyint(1) NOT NULL DEFAULT '0',
PRIMARY KEY (`ID`),
KEY `siglare` (`ProfessoreEmail`),
KEY `autorizzare` (`AziendaEmail`),
CONSTRAINT `autorizzare` FOREIGN KEY (`AziendaEmail`) REFERENCES `azienda` (`Email`),
CONSTRAINT `siglare` FOREIGN KEY (`ProfessoreEmail`) REFERENCES `professore` (`Email`)
) ENGINE=InnoDB AUTO_INCREMENT=78 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `richiestatirocinio`
--
LOCK TABLES `richiestatirocinio` WRITE;
/*!40000 ALTER TABLE `richiestatirocinio` DISABLE KEYS */;
INSERT INTO `richiestatirocinio` VALUES (4,'<EMAIL>','<EMAIL>',0,0);
/*!40000 ALTER TABLE `richiestatirocinio` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `rigaregistro`
--
DROP TABLE IF EXISTS `rigaregistro`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `rigaregistro` (
`numRiga` int(10) NOT NULL,
`RegistroTirocinioID` int(10) NOT NULL,
`Relazione` varchar(255) NOT NULL,
`oraInizio` time(6) NOT NULL,
`oraFine` time(6) NOT NULL,
`Giorno` date NOT NULL,
`StudenteMatricola` char(10) NOT NULL,
PRIMARY KEY (`numRiga`,`RegistroTirocinioID`),
KEY `comporre` (`RegistroTirocinioID`),
KEY `stilare` (`StudenteMatricola`),
CONSTRAINT `comporre` FOREIGN KEY (`RegistroTirocinioID`) REFERENCES `registrotirocinio` (`ID`),
CONSTRAINT `stilare` FOREIGN KEY (`StudenteMatricola`) REFERENCES `studente` (`Matricola`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `rigaregistro`
--
LOCK TABLES `rigaregistro` WRITE;
/*!40000 ALTER TABLE `rigaregistro` DISABLE KEYS */;
/*!40000 ALTER TABLE `rigaregistro` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `segreteria`
--
DROP TABLE IF EXISTS `segreteria`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `segreteria` (
`Username` char(64) NOT NULL,
`Telefono` char(10) DEFAULT NULL,
`Email` char(64) NOT NULL,
PRIMARY KEY (`Username`),
UNIQUE KEY `Email` (`Email`),
KEY `amministra` (`Username`),
CONSTRAINT `amministra` FOREIGN KEY (`Username`) REFERENCES `utente` (`User`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `segreteria`
--
LOCK TABLES `segreteria` WRITE;
/*!40000 ALTER TABLE `segreteria` DISABLE KEYS */;
INSERT INTO `segreteria` VALUES ('segreteriaUnisa','089961111','<EMAIL>');
/*!40000 ALTER TABLE `segreteria` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `studente`
--
DROP TABLE IF EXISTS `studente`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `studente` (
`Matricola` char(10) NOT NULL,
`Email` char(64) NOT NULL,
`DataNascita` date NOT NULL,
`LuogoNascita` char(30) NOT NULL,
`RichiestaTirocinioID` int(10) DEFAULT NULL,
`abilitato` tinyint(1) NOT NULL,
PRIMARY KEY (`Matricola`),
UNIQUE KEY `Email` (`Email`),
KEY `FKStudente132973` (`Email`),
KEY `effettuare_idx` (`RichiestaTirocinioID`),
CONSTRAINT `FKStudente132973` FOREIGN KEY (`Email`) REFERENCES `utente` (`User`) ON DELETE CASCADE,
CONSTRAINT `effettuare` FOREIGN KEY (`RichiestaTirocinioID`) REFERENCES `richiestatirocinio` (`ID`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `studente`
--
LOCK TABLES `studente` WRITE;
/*!40000 ALTER TABLE `studente` DISABLE KEYS */;
INSERT INTO `studente` VALUES ('0512103699','<EMAIL>','1996-08-12','Nola',4,0),('0512105879','<EMAIL>','1995-07-08','Bari',NULL,1);
/*!40000 ALTER TABLE `studente` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `utente`
--
DROP TABLE IF EXISTS `utente`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `utente` (
`User` char(64) NOT NULL,
`Password` char(32) NOT NULL,
`Nome` char(30) NOT NULL,
`Cognome` char(30) NOT NULL,
`Tipo` char(2) NOT NULL,
PRIMARY KEY (`User`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `utente`
--
LOCK TABLES `utente` WRITE;
/*!40000 ALTER TABLE `utente` DISABLE KEYS */;
INSERT INTO `utente` VALUES ('<EMAIL>','3216549870','Pasquale','Michele','AZ'),('<EMAIL>','987654321','Ciccio','Pasticcio','ST'),('<EMAIL>','1234567891','Luca','Verde','AZ'),('<EMAIL>','1234567891','Gian','Carlo','AZ'),('<EMAIL>','1234567891','francesco','grasso','ST'),('<EMAIL>','1234567891','Massimo','Riccio','PR'),('<EMAIL>','9876543210','Pino','Sbirillino','PR'),('<EMAIL>','9874563210','Luca','Rossi','PR'),('segreteriaUnisa','1234567891','Michele','Pasquale','SR'),('<EMAIL>','9876543219','Paolo','Rossi','AZ');
/*!40000 ALTER TABLE `utente` ENABLE KEYS */;
UNLOCK TABLES;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-- Dump completed on 2018-02-17 13:14:15
|
<reponame>stoianov00/Java
SELECT SUM(hw.deposit_amount - gw.deposit_amount) AS 'sum_difference'
FROM wizzard_deposits AS hw, wizzard_deposits AS gw
WHERE gw.id - hw.id = 1; |
<gh_stars>1-10
-- DO KMeans ON RandomBlobs AND WRITE INTO kmc
SELECT * INTO KMC FROM anfun.KMEANS('anfun.random2DimDotsBlobs(100,5,0.6)',5);
-- GET Sillhuette SCORE OF kmc CLUSTERISATION-TABLE
SELECT anfun.Sillhuette('KMC');
-- DO DBScan ON RandomCircles
SELECT * FROM anfun.DBSCAN('anfun.random2DimDotsCircles(50,2,1)',3,0.5);
-- WRITE RandomTimeSeries INTO ts
SELECT * INTO TS FROM anfun.randomTimeSeries(1000,10,10);
-- DO HoltWinters ON ts AND WRITE INTO hwf
SELECT * INTO HWF FROM anfun.holtWintersForecast('TS',0.1,0.1,0.1,100,800,200);
-- GET R2 SCORE OF ts-hwf APPROXIMATION
SELECT R2('TS','HWF');
DROP TABLE KMC;
DROP TABLE TS;
DROP TABLE HWF; |
version https://git-lfs.github.com/spec/v1
oid sha256:329a5949a5770fc01dee481d85d0104d4c0d988547edfd101e19d5cf7fdf7a87
size 190723
|
.mode tabs
.import data/name.basics.tsv qname_basics
.import data/title.akas.tsv title_akas
.import data/title.crew.tsv title_crew
.import data/title.principals.tsv title_principals
.import data/title.basics.tsv title_basics
.import data/title.episode.tsv title_episode
.import data/title.ratings.tsv title_ratings
|
create table One
(
Id int not null identity(1,1),
constraint PK_One primary key clustered (Id),
)
GO
create table Two
(
Id int not null identity(1,1),
constraint PK_Two primary key clustered (Id),
)
GO |
CREATE TABLE "employees" (
"emp_no" int NOT NULL,
"birth_date" date NOT NULL,
"first_name" varchar NOT NULL,
"last_name" varchar NOT NULL,
"gender" varchar NOT NULL,
"hire_date" date NOT NULL,
CONSTRAINT "pk_employees" PRIMARY KEY (
"emp_no"
)
);
CREATE TABLE "departments" (
"dept_no" varchar NOT NULL,
"dept_name" varchar NOT NULL,
CONSTRAINT "pk_departments" PRIMARY KEY (
"dept_no"
)
);
CREATE TABLE "dept_emp" (
"emp_no" int NOT NULL,
"dept_no" varchar NOT NULL,
"from_date" date NOT NULL,
"to_date" date NOT NULL
);
CREATE TABLE "dept_manager" (
"dept_no" varchar NOT NULL,
"emp_no" int NOT NULL,
"from_date" date NOT NULL,
"to_date" date NOT NULL
);
CREATE TABLE "salary" (
"emp_no" int NOT NULL,
"salary" int NOT NULL,
"from_date" date NOT NULL,
"to_date" date NOT NULL
);
CREATE TABLE "titles" (
"emp_no" int NOT NULL,
"title" varchar NOT NULL,
"from_date" date NOT NULL,
"to_date" date NOT NULL
);
ALTER TABLE "dept_emp" ADD CONSTRAINT "fk_dept_emp_emp_no" FOREIGN KEY("emp_no")
REFERENCES "employees" ("emp_no");
ALTER TABLE "dept_emp" ADD CONSTRAINT "fk_dept_emp_dept_no" FOREIGN KEY("dept_no")
REFERENCES "departments" ("dept_no");
ALTER TABLE "dept_manager" ADD CONSTRAINT "fk_dept_manager_dept_no" FOREIGN KEY("dept_no")
REFERENCES "departments" ("dept_no");
ALTER TABLE "salary" ADD CONSTRAINT "fk_salary_emp_no" FOREIGN KEY("emp_no")
REFERENCES "employees" ("emp_no");
ALTER TABLE "titles" ADD CONSTRAINT "fk_titles_emp_no" FOREIGN KEY("emp_no")
REFERENCES "employees" ("emp_no");
select * from employees
select * from departments
select * from dept_emp
select * from dept_manager
select * from salary
select * from titles
|
-- 2021-02-08T20:37:38.520Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Table_Process SET IsActive='N',Updated=TO_TIMESTAMP('2021-02-08 22:37:38','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Table_Process_ID=540342
;
-- 2021-02-08T20:37:41.320Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Process SET IsActive='N',Updated=TO_TIMESTAMP('2021-02-08 22:37:41','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_ID=113
;
|
insert into money_moved(influencer, identified_donees, identified_donors, amount, start_date, end_date, document_url, document_title,notes) values
# -- 2017 end-of-year donations
('GiveWell','Malaria Consortium','Good Ventures/GiveWell top and standout charities',27900000,'2017-02-01','2018-01-31','https://blog.givewell.org/2018/06/29/givewells-money-moved-and-web-traffic-in-2017/','GiveWell’s money moved and web traffic in 2017','All donations are documented; the actual donation url is http://www.goodventures.org/our-portfolio/grants/malaria-consortium-seasonal-malaria-chemoprevention-december-2017 and the recommendation to donate is at https://blog.givewell.org/2017/11/27/our-top-charities-for-giving-season-2017/'),
('GiveWell','Malaria Consortium',NULL,1224571,'2017-02-01','2018-01-31','https://blog.givewell.org/2018/06/29/givewells-money-moved-and-web-traffic-in-2017/','GiveWell’s money moved and web traffic in 2017','Totality of donations excluding those from Good Ventures'),
('GiveWell','Deworm the World Initiative','Good Ventures/GiveWell top and standout charities',15200000,'2017-02-01','2018-01-31','https://blog.givewell.org/2018/06/29/givewells-money-moved-and-web-traffic-in-2017/','GiveWell’s money moved and web traffic in 2017','All donations are documented; the actual donation url is http://www.goodventures.org/our-portfolio/grants/deworm-the-world-initiative-general-support-december-2017 and the recommendation to donate is at https://blog.givewell.org/2017/11/27/our-top-charities-for-giving-season-2017/'),
('GiveWell','Deworm the World Initiative','GiveWell Maximum Impact Fund',3450000,'2017-02-01','2018-01-31','https://www.givewell.org/about/FAQ/discretionary-grantmaking','Discretionary grantmaking','All donations are documented; the full list of discretionary grants (that includes the grants in this time period) is at https://www.givewell.org/about/FAQ/discretionary-grantmaking though note that a grant we are counting as $2.25 million is rounded to $2.3 million on this page'),
('GiveWell','Deworm the World Initiative',NULL,264083,'2017-02-01','2018-01-31','https://blog.givewell.org/2018/06/29/givewells-money-moved-and-web-traffic-in-2017/','GiveWell’s money moved and web traffic in 2017','Totality of donations excluding those from Good Ventures and GiveWell Maximum Impact Fund'),
('GiveWell','No Lean Season','Good Ventures/GiveWell top and standout charities',11500000,'2017-02-01','2018-01-31','https://blog.givewell.org/2018/06/29/givewells-money-moved-and-web-traffic-in-2017/','GiveWell’s money moved and web traffic in 2017','All donations are documented; the actual donation url is http://www.goodventures.org/our-portfolio/grants/evidence-action-no-lean-season-december-2017 and the recommendation to donate is at https://blog.givewell.org/2017/11/27/our-top-charities-for-giving-season-2017/'),
('GiveWell','No Lean Season',NULL,358478,'2017-02-01','2018-01-31','https://blog.givewell.org/2018/06/29/givewells-money-moved-and-web-traffic-in-2017/','GiveWell’s money moved and web traffic in 2017','Totality of donations excluding those from Good Ventures'),
('GiveWell','Helen Keller International','Good Ventures/GiveWell top and standout charities',7200000,'2017-02-01','2018-01-31','https://blog.givewell.org/2018/06/29/givewells-money-moved-and-web-traffic-in-2017/','GiveWell’s money moved and web traffic in 2017','All donations are documented; the actual donation url is http://www.goodventures.org/our-portfolio/grants/helen-keller-international-vitamin-a-supplementation and the recommendation to donate is at https://blog.givewell.org/2017/11/27/our-top-charities-for-giving-season-2017/'),
('GiveWell','Helen Keller International',NULL,476101,'2017-02-01','2018-01-31','https://blog.givewell.org/2018/06/29/givewells-money-moved-and-web-traffic-in-2017/','GiveWell’s money moved and web traffic in 2017','Totality of donations excluding those from Good Ventures'),
('GiveWell','Schistosomiasis Control Initiative','Good Ventures/GiveWell top and standout charities',2500000,'2017-02-01','2018-01-31','https://blog.givewell.org/2018/06/29/givewells-money-moved-and-web-traffic-in-2017/','GiveWell’s money moved and web traffic in 2017','All donations are documented; the actual donation url is http://www.goodventures.org/our-portfolio/grants/schistosomiasis-control-initiative-general-support-2018 (note that though the donation is formally listed as happening in March 2018, the decision was made in November 2017, so it is attributed to the February 2017 to January 2018 time period) and the recommendation to donate is at https://blog.givewell.org/2017/11/27/our-top-charities-for-giving-season-2017/'),
('GiveWell','Schistosomiasis Control Initiative',NULL,9595706,'2017-02-01','2018-01-31','https://blog.givewell.org/2018/06/29/givewells-money-moved-and-web-traffic-in-2017/','GiveWell’s money moved and web traffic in 2017','Totality of donations excluding those from Good Ventures'),
('GiveWell','Sightsavers','Good Ventures/GiveWell top and standout charities',2500000,'2017-02-01','2018-01-31','https://blog.givewell.org/2018/06/29/givewells-money-moved-and-web-traffic-in-2017/','GiveWell’s money moved and web traffic in 2017','All donations are documented; the actual donation url is http://www.goodventures.org/our-portfolio/grants/sightsavers-deworming-programs-january-2018 and the recommendation to donate is at https://blog.givewell.org/2017/11/27/our-top-charities-for-giving-season-2017/'),
('GiveWell','Sightsavers',NULL,160107,'2017-02-01','2018-01-31','https://blog.givewell.org/2018/06/29/givewells-money-moved-and-web-traffic-in-2017/','GiveWell’s money moved and web traffic in 2017','Totality of donations excluding those from Good Ventures'),
('GiveWell','The END Fund','Good Ventures/GiveWell top and standout charities',2500000,'2017-02-01','2018-01-31','https://blog.givewell.org/2018/06/29/givewells-money-moved-and-web-traffic-in-2017/','GiveWell’s money moved and web traffic in 2017','All donations are documented; the actual donation url is http://www.goodventures.org/our-portfolio/grants/the-end-fund-deworming-program and the recommendation to donate is at https://blog.givewell.org/2017/11/27/our-top-charities-for-giving-season-2017/'),
('GiveWell','The END Fund',NULL,342723,'2017-02-01','2018-01-31','https://blog.givewell.org/2018/06/29/givewells-money-moved-and-web-traffic-in-2017/','GiveWell’s money moved and web traffic in 2017','Totality of donations excluding those from Good Ventures'),
('GiveWell','Against Malaria Foundation','Good Ventures/GiveWell top and standout charities',2500000,'2017-02-01','2018-01-31','https://blog.givewell.org/2018/06/29/givewells-money-moved-and-web-traffic-in-2017/','GiveWell’s money moved and web traffic in 2017','All donations are documented; the actual donation url is http://www.goodventures.org/our-portfolio/grants/against-malaria-foundation-general-support3 and the recommendation to donate is at https://blog.givewell.org/2017/11/27/our-top-charities-for-giving-season-2017/'),
('GiveWell','Against Malaria Foundation','GiveWell Maximum Impact Fund',4600000,'2017-02-01','2018-01-31','https://www.givewell.org/about/FAQ/discretionary-grantmaking','Discretionary grantmaking','All donations are documented; the full list of discretionary grants (that includes the grants in this time period) is at https://www.givewell.org/about/FAQ/discretionary-grantmaking'),
('GiveWell','Against Malaria Foundation',NULL,13340328,'2017-02-01','2018-01-31','https://blog.givewell.org/2018/06/29/givewells-money-moved-and-web-traffic-in-2017/','GiveWell’s money moved and web traffic in 2017','Totality of donations excluding those from Good Ventures and GiveWell Maximum Impact Fund'),
('GiveWell','GiveDirectly','Good Ventures/GiveWell top and standout charities',2500000,'2017-02-01','2018-01-31','https://blog.givewell.org/2018/06/29/givewells-money-moved-and-web-traffic-in-2017/','GiveWell’s money moved and web traffic in 2017','All donations are documented; the actual donation url is http://www.goodventures.org/our-portfolio/grants/givedirectly-general-support-december-2017 and the recommendation to donate is at https://blog.givewell.org/2017/11/27/our-top-charities-for-giving-season-2017/'),
('GiveWell','GiveDirectly',NULL,7500198,'2017-02-01','2018-01-31','https://blog.givewell.org/2018/06/29/givewells-money-moved-and-web-traffic-in-2017/','GiveWell’s money moved and web traffic in 2017','Totality of donations excluding those from Good Ventures'),
('GiveWell','Iodine Global Network','Good Ventures/GiveWell top and standout charities',100000,'2017-02-01','2018-01-31','https://blog.givewell.org/2018/06/29/givewells-money-moved-and-web-traffic-in-2017/','GiveWell’s money moved and web traffic in 2017','All donations are documented; the actual donation url is http://www.goodventures.org/our-portfolio/grants/iodine-global-network-general-support-december-2017 and the recommendation to donate is at https://blog.givewell.org/2017/11/27/our-top-charities-for-giving-season-2017/'),
('GiveWell','Iodine Global Network',NULL,471431,'2017-02-01','2018-01-31','https://blog.givewell.org/2018/06/29/givewells-money-moved-and-web-traffic-in-2017/','GiveWell’s money moved and web traffic in 2017','Totality of donations excluding those from Good Ventures'),
('GiveWell','Development Media International','Good Ventures/GiveWell top and standout charities',100000,'2017-02-01','2018-01-31','https://blog.givewell.org/2018/06/29/givewells-money-moved-and-web-traffic-in-2017/','GiveWell’s money moved and web traffic in 2017','All donations are documented; the actual donation url is http://www.goodventures.org/our-portfolio/grants/development-media-international-general-support-december-2017 and the recommendation to donate is at https://blog.givewell.org/2017/11/27/our-top-charities-for-giving-season-2017/'),
('GiveWell','Development Media International',NULL,309303,'2017-02-01','2018-01-31','https://blog.givewell.org/2018/06/29/givewells-money-moved-and-web-traffic-in-2017/','GiveWell’s money moved and web traffic in 2017','Totality of donations excluding those from Good Ventures'),
('GiveWell','Global Alliance for Improved Nutrition','Good Ventures/GiveWell top and standout charities',100000,'2017-02-01','2018-01-31','https://blog.givewell.org/2018/06/29/givewells-money-moved-and-web-traffic-in-2017/','GiveWell’s money moved and web traffic in 2017','All donations are documented; the actual donation url is http://www.goodventures.org/our-portfolio/grants/global-alliance-for-improved-nutrition-universal-salt-iodization and the recommendation to donate is at https://blog.givewell.org/2017/11/27/our-top-charities-for-giving-season-2017/'),
('GiveWell','Global Alliance for Improved Nutrition',NULL,125806,'2017-02-01','2018-01-31','https://blog.givewell.org/2018/06/29/givewells-money-moved-and-web-traffic-in-2017/','GiveWell’s money moved and web traffic in 2017','Totality of donations excluding those from Good Ventures'),
('GiveWell','Food Fortification Initiative','Good Ventures/GiveWell top and standout charities',100000,'2017-02-01','2018-01-31','https://blog.givewell.org/2018/06/29/givewells-money-moved-and-web-traffic-in-2017/','GiveWell’s money moved and web traffic in 2017','All donations are documented; the actual donation url is http://www.goodventures.org/our-portfolio/grants/food-fortification-initiative-general-support-december-2017 and the recommendation to donate is at https://blog.givewell.org/2017/11/27/our-top-charities-for-giving-season-2017/'),
('GiveWell','Food Fortification Initiative',NULL,50242,'2017-02-01','2018-01-31','https://blog.givewell.org/2018/06/29/givewells-money-moved-and-web-traffic-in-2017/','GiveWell’s money moved and web traffic in 2017','Totality of donations excluding those from Good Ventures'),
('GiveWell','Project Healthy Children','Good Ventures/GiveWell top and standout charities',100000,'2017-02-01','2018-01-31','https://blog.givewell.org/2018/06/29/givewells-money-moved-and-web-traffic-in-2017/','GiveWell’s money moved and web traffic in 2017','All donations are documented; the actual donation url is http://www.goodventures.org/our-portfolio/grants/project-healthy-children-general-support-december-2017 and the recommendation to donate is at https://blog.givewell.org/2017/11/27/our-top-charities-for-giving-season-2017/'),
('GiveWell','Project Healthy Children',NULL,40302,'2017-02-01','2018-01-31','https://blog.givewell.org/2018/06/29/givewells-money-moved-and-web-traffic-in-2017/','GiveWell’s money moved and web traffic in 2017','Totality of donations excluding those from Good Ventures'),
('GiveWell','Dispensers for Safe Water','Good Ventures/GiveWell top and standout charities',100000,'2017-02-01','2018-01-31','https://blog.givewell.org/2018/06/29/givewells-money-moved-and-web-traffic-in-2017/','GiveWell’s money moved and web traffic in 2017','All donations are documented; the actual donation url is http://www.goodventures.org/our-portfolio/grants/evidence-action-dispensers-for-safe-water-program and the recommendation to donate is at https://blog.givewell.org/2017/11/27/our-top-charities-for-giving-season-2017/'),
('GiveWell','Dispensers for Safe Water',NULL,35453,'2017-02-01','2018-01-31','https://blog.givewell.org/2018/06/29/givewells-money-moved-and-web-traffic-in-2017/','GiveWell’s money moved and web traffic in 2017','Totality of donations excluding those from Good Ventures'),
('GiveWell','Living Goods','Good Ventures/GiveWell top and standout charities',100000,'2017-02-01','2018-01-31','https://blog.givewell.org/2018/06/29/givewells-money-moved-and-web-traffic-in-2017/','GiveWell’s money moved and web traffic in 2017','All donations are documented; the actual donation url is http://www.goodventures.org/our-portfolio/grants/living-goods-general-support-january-2018 and the recommendation to donate is at https://blog.givewell.org/2017/11/27/our-top-charities-for-giving-season-2017/'),
('GiveWell','Living Goods',NULL,26615,'2017-02-01','2018-01-31','https://blog.givewell.org/2018/06/29/givewells-money-moved-and-web-traffic-in-2017/','GiveWell’s money moved and web traffic in 2017','Totality of donations excluding those from Good Ventures'),
# -- 2016 end-of-year donations
('GiveWell','Against Malaria Foundation','Good Ventures/GiveWell top and standout charities',15080000,'2016-02-01','2017-01-31','https://blog.givewell.org/2017/09/29/interim-update-on-givewells-money-moved-and-web-traffic-in-2016/','Interim update on GiveWell’s money moved and web traffic in 2016','All donations are documented'),
('GiveWell','Against Malaria Foundation','GiveWell Maximum Impact Fund',3600000,'2016-02-01','2017-01-31','https://www.givewell.org/about/FAQ/discretionary-grantmaking','Discretionary grantmaking','All donations are documented; the full list of discretionary grants (that includes the grants in this time period) is at https://www.givewell.org/about/FAQ/discretionary-grantmaking'),
('GiveWell','Against Malaria Foundation',NULL,13898436,'2016-02-01','2017-01-31','https://blog.givewell.org/2017/09/29/interim-update-on-givewells-money-moved-and-web-traffic-in-2016/','Interim update on GiveWell’s money moved and web traffic in 2016','Totality of donations excluding those from Good Ventures'),
('GiveWell','GiveDirectly','Good Ventures/GiveWell top and standout charities',2500000,'2016-02-01','2017-01-31','https://blog.givewell.org/2017/09/29/interim-update-on-givewells-money-moved-and-web-traffic-in-2016/','Interim update on GiveWell’s money moved and web traffic in 2016','All donations are documented'),
('GiveWell','GiveDirectly',NULL,15809418,'2016-02-01','2017-01-31','https://blog.givewell.org/2017/09/29/interim-update-on-givewells-money-moved-and-web-traffic-in-2016/','Interim update on GiveWell’s money moved and web traffic in 2016','Totality of donations excluding those from Good Ventures'),
('GiveWell','Schistosomiasis Control Initiative','Good Ventures/GiveWell top and standout charities',13500000,'2016-02-01','2017-01-31','https://blog.givewell.org/2017/09/29/interim-update-on-givewells-money-moved-and-web-traffic-in-2016/','Interim update on GiveWell’s money moved and web traffic in 2016','All donations are documented'),
('GiveWell','Schistosomiasis Control Initiative',NULL,3068093,'2016-02-01','2017-01-31','https://blog.givewell.org/2017/09/29/interim-update-on-givewells-money-moved-and-web-traffic-in-2016/','Interim update on GiveWell’s money moved and web traffic in 2016','Totality of donations excluding those from Good Ventures'),
('GiveWell','Deworm the World Initiative','Good Ventures/GiveWell top and standout charities',4470000,'2016-02-01','2017-01-31','https://blog.givewell.org/2017/09/29/interim-update-on-givewells-money-moved-and-web-traffic-in-2016/','Interim update on GiveWell’s money moved and web traffic in 2016','All donations are documented'),
('GiveWell','Deworm the World Initiative',NULL,2942621,'2016-02-01','2017-01-31','https://blog.givewell.org/2017/09/29/interim-update-on-givewells-money-moved-and-web-traffic-in-2016/','Interim update on GiveWell’s money moved and web traffic in 2016','Totality of donations excluding those from Good Ventures'),
('GiveWell','The END Fund','Good Ventures/GiveWell top and standout charities',5000000,'2016-02-01','2017-01-31','https://blog.givewell.org/2017/09/29/interim-update-on-givewells-money-moved-and-web-traffic-in-2016/','Interim update on GiveWell’s money moved and web traffic in 2016','All donations are documented'),
('GiveWell','The END Fund',NULL,419274,'2016-02-01','2017-01-31','https://blog.givewell.org/2017/09/29/interim-update-on-givewells-money-moved-and-web-traffic-in-2016/','Interim update on GiveWell’s money moved and web traffic in 2016','Totality of donations excluding those from Good Ventures'),
('GiveWell','Malaria Consortium','Good Ventures/GiveWell top and standout charities',5000000,'2016-02-01','2017-01-31','https://blog.givewell.org/2017/09/29/interim-update-on-givewells-money-moved-and-web-traffic-in-2016/','Interim update on GiveWell’s money moved and web traffic in 2016','All donations are documented'),
('GiveWell','Malaria Consortium',NULL,51379,'2016-02-01','2017-01-31','https://blog.givewell.org/2017/09/29/interim-update-on-givewells-money-moved-and-web-traffic-in-2016/','Interim update on GiveWell’s money moved and web traffic in 2016','Totality of donations excluding those from Good Ventures'),
('GiveWell','Sightsavers','Good Ventures/GiveWell top and standout charities',2950000,'2016-02-01','2017-01-31','https://blog.givewell.org/2017/09/29/interim-update-on-givewells-money-moved-and-web-traffic-in-2016/','Interim update on GiveWell’s money moved and web traffic in 2016','All donations are documented'),
('GiveWell','Sightsavers',NULL,150867,'2016-02-01','2017-01-31','https://blog.givewell.org/2017/09/29/interim-update-on-givewells-money-moved-and-web-traffic-in-2016/','Interim update on GiveWell’s money moved and web traffic in 2016','Totality of donations excluding those from Good Ventures'),
('GiveWell','Iodine Global Network','Good Ventures/GiveWell top and standout charities',250000,'2016-02-01','2017-01-31','https://blog.givewell.org/2017/09/29/interim-update-on-givewells-money-moved-and-web-traffic-in-2016/','Interim update on GiveWell’s money moved and web traffic in 2016','All donations are documented'),
('GiveWell','Iodine Global Network',NULL,389521,'2016-02-01','2017-01-31','https://blog.givewell.org/2017/09/29/interim-update-on-givewells-money-moved-and-web-traffic-in-2016/','Interim update on GiveWell’s money moved and web traffic in 2016','Totality of donations excluding those from Good Ventures'),
('GiveWell','Global Alliance for Improved Nutrition','Good Ventures/GiveWell top and standout charities',250000,'2016-02-01','2017-01-31','https://blog.givewell.org/2017/09/29/interim-update-on-givewells-money-moved-and-web-traffic-in-2016/','Interim update on GiveWell’s money moved and web traffic in 2016','All donations are documented'),
('GiveWell','Global Alliance for Improved Nutrition',NULL,362144,'2016-02-01','2017-01-31','https://blog.givewell.org/2017/09/29/interim-update-on-givewells-money-moved-and-web-traffic-in-2016/','Interim update on GiveWell’s money moved and web traffic in 2016','Totality of donations excluding those from Good Ventures'),
('GiveWell','Living Goods','Good Ventures/GiveWell top and standout charities',250000,'2016-02-01','2017-01-31','https://blog.givewell.org/2017/09/29/interim-update-on-givewells-money-moved-and-web-traffic-in-2016/','Interim update on GiveWell’s money moved and web traffic in 2016','All donations are documented'),
('GiveWell','Living Goods',NULL,142685,'2016-02-01','2017-01-31','https://blog.givewell.org/2017/09/29/interim-update-on-givewells-money-moved-and-web-traffic-in-2016/','Interim update on GiveWell’s money moved and web traffic in 2016','Totality of donations excluding those from Good Ventures'),
('GiveWell','Project Healthy Children','Good Ventures/GiveWell top and standout charities',250000,'2016-02-01','2017-01-31','https://blog.givewell.org/2017/09/29/interim-update-on-givewells-money-moved-and-web-traffic-in-2016/','Interim update on GiveWell’s money moved and web traffic in 2016','All donations are documented'),
('GiveWell','Project Healthy Children',NULL,127360,'2016-02-01','2017-01-31','https://blog.givewell.org/2017/09/29/interim-update-on-givewells-money-moved-and-web-traffic-in-2016/','Interim update on GiveWell’s money moved and web traffic in 2016','Totality of donations excluding those from Good Ventures'),
('GiveWell','Food Fortification Initiative','Good Ventures/GiveWell top and standout charities',250000,'2016-02-01','2017-01-31','https://blog.givewell.org/2017/09/29/interim-update-on-givewells-money-moved-and-web-traffic-in-2016/','Interim update on GiveWell’s money moved and web traffic in 2016','All donations are documented'),
('GiveWell','Food Fortification Initiative',NULL,112678,'2016-02-01','2017-01-31','https://blog.givewell.org/2017/09/29/interim-update-on-givewells-money-moved-and-web-traffic-in-2016/','Interim update on GiveWell’s money moved and web traffic in 2016','Totality of donations excluding those from Good Ventures'),
# -- 2015 end-of-year donations
('GiveWell','GiveDirectly','Good Ventures/GiveWell top and standout charities',34750000,'2015-02-01','2016-01-31','https://drive.google.com/file/d/0B8ompSd8S_anakRyR0p4bkNsRWM/view','GiveWell Metrics Report - 2015 Annual Review','All donations are documented'),
('GiveWell','GiveDirectly','GiveWell Maximum Impact Fund',425600,'2015-02-01','2016-01-31','https://www.givewell.org/about/FAQ/discretionary-grantmaking','Discretionary grantmaking','All donations are documented; the full list of discretionary grants (that includes the grants in this time period) is at https://www.givewell.org/about/FAQ/discretionary-grantmaking'),
('GiveWell','GiveDirectly',NULL,18938785,'2015-02-01','2016-01-31','https://drive.google.com/file/d/0B8ompSd8S_anakRyR0p4bkNsRWM/view','GiveWell Metrics Report - 2015 Annual Review','Totality of donations excluding those from Good Ventures'),
('GiveWell','Against Malaria Foundation','Good Ventures/GiveWell top and standout charities',22845518,'2015-02-01','2016-01-31','https://drive.google.com/file/d/0B8ompSd8S_anakRyR0p4bkNsRWM/view','GiveWell Metrics Report - 2015 Annual Review','All donations are documented'),
('GiveWell','Against Malaria Foundation','GiveWell Maximum Impact Fund',3534400,'2015-02-01','2016-01-31','https://www.givewell.org/about/FAQ/discretionary-grantmaking','Discretionary grantmaking','All donations are documented; the full list of discretionary grants (that includes the grants in this time period) is at https://www.givewell.org/about/FAQ/discretionary-grantmaking'),
('GiveWell','Against Malaria Foundation',NULL,11911209,'2015-02-01','2016-01-31','https://drive.google.com/file/d/0B8ompSd8S_anakRyR0p4bkNsRWM/view','GiveWell Metrics Report - 2015 Annual Review','Totality of donations excluding those from Good Ventures'),
('GiveWell','Deworm the World Initiative','Good Ventures/GiveWell top and standout charities',10800000,'2015-02-01','2016-01-31','https://drive.google.com/file/d/0B8ompSd8S_anakRyR0p4bkNsRWM/view','GiveWell Metrics Report - 2015 Annual Review','All donations are documented'),
('GiveWell','Deworm the World Initiative','GiveWell Maximum Impact Fund',214400,'2015-02-01','2016-01-31','https://www.givewell.org/about/FAQ/discretionary-grantmaking','Discretionary grantmaking','All donations are documented; the full list of discretionary grants (that includes the grants in this time period) is at https://www.givewell.org/about/FAQ/discretionary-grantmaking'),
('GiveWell','Deworm the World Initiative',NULL,865668,'2015-02-01','2016-01-31','https://drive.google.com/file/d/0B8ompSd8S_anakRyR0p4bkNsRWM/view','GiveWell Metrics Report - 2015 Annual Review','Totality of donations excluding those from Good Ventures'),
('GiveWell','Schistosomiasis Control Initiative','Good Ventures/GiveWell top and standout charities',1000000,'2015-02-01','2016-01-31','https://drive.google.com/file/d/0B8ompSd8S_anakRyR0p4bkNsRWM/view','GiveWell Metrics Report - 2015 Annual Review','All donations are documented'),
('GiveWell','Schistosomiasis Control Initiative','GiveWell Maximum Impact Fund',425600,'2015-02-01','2016-01-31','https://www.givewell.org/about/FAQ/discretionary-grantmaking','Discretionary grantmaking','All donations are documented; the full list of discretionary grants (that includes the grants in this time period) is at https://www.givewell.org/about/FAQ/discretionary-grantmaking'),
('GiveWell','Schistosomiasis Control Initiative',NULL,2231789,'2015-02-01','2016-01-31','https://drive.google.com/file/d/0B8ompSd8S_anakRyR0p4bkNsRWM/view','GiveWell Metrics Report - 2015 Annual Review','Totality of donations excluding those from Good Ventures'),
('GiveWell','Iodine Global Network','Good Ventures/GiveWell top and standout charities',250000,'2015-02-01','2016-01-31','https://drive.google.com/file/d/0B8ompSd8S_anakRyR0p4bkNsRWM/view','GiveWell Metrics Report - 2015 Annual Review','All donations are documented'),
('GiveWell','Iodine Global Network',NULL,609685,'2015-02-01','2016-01-31','https://drive.google.com/file/d/0B8ompSd8S_anakRyR0p4bkNsRWM/view','GiveWell Metrics Report - 2015 Annual Review','Totality of donations excluding those from Good Ventures'),
('GiveWell','Development Media International','Good Ventures/GiveWell top and standout charities',250000,'2015-02-01','2016-01-31','https://drive.google.com/file/d/0B8ompSd8S_anakRyR0p4bkNsRWM/view','GiveWell Metrics Report - 2015 Annual Review','All donations are documented'),
('GiveWell','Development Media International',NULL,249920,'2015-02-01','2016-01-31','https://drive.google.com/file/d/0B8ompSd8S_anakRyR0p4bkNsRWM/view','GiveWell Metrics Report - 2015 Annual Review','Totality of donations excluding those from Good Ventures'),
('GiveWell','Global Alliance for Improved Nutrition','Good Ventures/GiveWell top and standout charities',250000,'2015-02-01','2016-01-31','https://drive.google.com/file/d/0B8ompSd8S_anakRyR0p4bkNsRWM/view','GiveWell Metrics Report - 2015 Annual Review','All donations are documented'),
('GiveWell','Global Alliance for Improved Nutrition',NULL,244309,'2015-02-01','2016-01-31','https://drive.google.com/file/d/0B8ompSd8S_anakRyR0p4bkNsRWM/view','GiveWell Metrics Report - 2015 Annual Review','Totality of donations excluding those from Good Ventures'),
('GiveWell','Living Goods','Good Ventures/GiveWell top and standout charities',250000,'2015-02-01','2016-01-31','https://drive.google.com/file/d/0B8ompSd8S_anakRyR0p4bkNsRWM/view','GiveWell Metrics Report - 2015 Annual Review','All donations are documented'),
('GiveWell','Living Goods',NULL,88896,'2015-02-01','2016-01-31','https://drive.google.com/file/d/0B8ompSd8S_anakRyR0p4bkNsRWM/view','GiveWell Metrics Report - 2015 Annual Review','Totality of donations excluding those from Good Ventures'),
# -- 2014 end-of-year donations
('GiveWell','Against Malaria Foundation','Good Ventures/GiveWell top and standout charities',5066667,'2014-02-01','2015-01-31','https://drive.google.com/file/d/0B8ompSd8S_anWWdlanlySzBOeDQ/view','GiveWell Metrics Report - 2014 Annual Review','All donations are documented'),
('GiveWell','Against Malaria Foundation','GiveWell Maximum Impact Fund',66700,'2014-02-01','2015-01-31','https://www.givewell.org/about/FAQ/discretionary-grantmaking','Discretionary grantmaking','All donations are documented; the full list of discretionary grants (that includes the grants in this time period) is at https://www.givewell.org/about/FAQ/discretionary-grantmaking'),
('GiveWell','Against Malaria Foundation',NULL,3967778,'2014-02-01','2015-01-31','https://drive.google.com/file/d/0B8ompSd8S_anWWdlanlySzBOeDQ/view','GiveWell Metrics Report - 2014 Annual Review','Totality of donations excluding those from Good Ventures'),
('GiveWell','GiveDirectly','Good Ventures/GiveWell top and standout charities',5013333,'2014-02-01','2015-01-31','https://drive.google.com/file/d/0B8ompSd8S_anWWdlanlySzBOeDQ/view','GiveWell Metrics Report - 2014 Annual Review','All donations are documented'),
('GiveWell','GiveDirectly','GiveWell Maximum Impact Fund',183300,'2014-02-01','2015-01-31','https://www.givewell.org/about/FAQ/discretionary-grantmaking','Discretionary grantmaking','All donations are documented; the full list of discretionary grants (that includes the grants in this time period) is at https://www.givewell.org/about/FAQ/discretionary-grantmaking'),
('GiveWell','GiveDirectly',NULL,3878187,'2014-02-01','2015-01-31','https://drive.google.com/file/d/0B8ompSd8S_anWWdlanlySzBOeDQ/view','GiveWell Metrics Report - 2014 Annual Review','Totality of donations excluding those from Good Ventures'),
('GiveWell','Schistosomiasis Control Initiative','Good Ventures/GiveWell top and standout charities',3013333,'2014-02-01','2015-01-31','https://drive.google.com/file/d/0B8ompSd8S_anWWdlanlySzBOeDQ/view','GiveWell Metrics Report - 2014 Annual Review','All donations are documented'),
('GiveWell','Schistosomiasis Control Initiative','GiveWell Maximum Impact Fund',113300,'2014-02-01','2015-01-31','https://www.givewell.org/about/FAQ/discretionary-grantmaking','Discretionary grantmaking','All donations are documented; the full list of discretionary grants (that includes the grants in this time period) is at https://www.givewell.org/about/FAQ/discretionary-grantmaking'),
('GiveWell','Schistosomiasis Control Initiative',NULL,3227103,'2014-02-01','2015-01-31','https://drive.google.com/file/d/0B8ompSd8S_anWWdlanlySzBOeDQ/view','GiveWell Metrics Report - 2014 Annual Review','Totality of donations excluding those from Good Ventures'),
('GiveWell','Deworm the World Initiative','Good Ventures/GiveWell top and standout charities',256667,'2014-02-01','2015-01-31','https://drive.google.com/file/d/0B8ompSd8S_anWWdlanlySzBOeDQ/view','GiveWell Metrics Report - 2014 Annual Review','All donations are documented'),
('GiveWell','Deworm the World Initiative','GiveWell Maximum Impact Fund',36700,'2014-02-01','2015-01-31','https://www.givewell.org/about/FAQ/discretionary-grantmaking','Discretionary grantmaking','All donations are documented; the full list of discretionary grants (that includes the grants in this time period) is at https://www.givewell.org/about/FAQ/discretionary-grantmaking'),
('GiveWell','Deworm the World Initiative',NULL,841344,'2014-02-01','2015-01-31','https://drive.google.com/file/d/0B8ompSd8S_anWWdlanlySzBOeDQ/view','GiveWell Metrics Report - 2014 Annual Review','Totality of donations excluding those from Good Ventures'),
('GiveWell','Development Media International','Good Ventures/GiveWell top and standout charities',350000,'2014-02-01','2015-01-31','https://drive.google.com/file/d/0B8ompSd8S_anWWdlanlySzBOeDQ/view','GiveWell Metrics Report - 2014 Annual Review','All donations are documented'),
('GiveWell','Development Media International',NULL,162132,'2014-02-01','2015-01-31','https://drive.google.com/file/d/0B8ompSd8S_anWWdlanlySzBOeDQ/view','GiveWell Metrics Report - 2014 Annual Review','Totality of donations excluding those from Good Ventures'),
('GiveWell','Living Goods','Good Ventures/GiveWell top and standout charities',350000,'2014-02-01','2015-01-31','https://drive.google.com/file/d/0B8ompSd8S_anWWdlanlySzBOeDQ/view','GiveWell Metrics Report - 2014 Annual Review','All donations are documented'),
('GiveWell','Living Goods',NULL,64833,'2014-02-01','2015-01-31','https://drive.google.com/file/d/0B8ompSd8S_anWWdlanlySzBOeDQ/view','GiveWell Metrics Report - 2014 Annual Review','Totality of donations excluding those from Good Ventures'),
('GiveWell','Global Alliance for Improved Nutrition','Good Ventures/GiveWell top and standout charities',350000,'2014-02-01','2015-01-31','https://drive.google.com/file/d/0B8ompSd8S_anWWdlanlySzBOeDQ/view','GiveWell Metrics Report - 2014 Annual Review','All donations are documented'),
('GiveWell','Global Alliance for Improved Nutrition',NULL,34792,'2014-02-01','2015-01-31','https://drive.google.com/file/d/0B8ompSd8S_anWWdlanlySzBOeDQ/view','GiveWell Metrics Report - 2014 Annual Review','Totality of donations excluding those from Good Ventures'),
('GiveWell','Global Alliance for Improved Nutrition','Good Ventures/GiveWell top and standout charities',350000,'2014-02-01','2015-01-31','https://drive.google.com/file/d/0B8ompSd8S_anWWdlanlySzBOeDQ/view','GiveWell Metrics Report - 2014 Annual Review','All donations are documented'),
('GiveWell','Iodine Global Network',NULL,28530,'2014-02-01','2015-01-31','https://drive.google.com/file/d/0B8ompSd8S_anWWdlanlySzBOeDQ/view','GiveWell Metrics Report - 2014 Annual Review','Totality of donations excluding those from Good Ventures'),
# -- 2013 end-of-year donations
('GiveWell','GiveDirectly','Good Ventures/GiveWell top and standout charities',7000000,'2013-02-01','2014-01-31','http://files.givewell.org/files/images/GiveWell%20Metrics%20Report%20%E2%80%93%202013.pdf','GiveWell Metrics Report - 2013 Annual Review','All donations are documented'),
('GiveWell','GiveDirectly',NULL,3482865,'2013-02-01','2014-01-31','http://files.givewell.org/files/images/GiveWell%20Metrics%20Report%20%E2%80%93%202013.pdf','GiveWell Metrics Report - 2013 Annual Review','Totality of donations excluding those from Good Ventures'),
('GiveWell','Against Malaria Foundation',NULL,2490588,'2013-02-01','2014-01-31','http://files.givewell.org/files/images/GiveWell%20Metrics%20Report%20%E2%80%93%202013.pdf','GiveWell Metrics Report - 2013 Annual Review','Totality of donations excluding those from Good Ventures'),
('GiveWell','Schistosomiasis Control Initiative','Good Ventures/GiveWell top and standout charities',750000,'2013-02-01','2014-01-31','http://files.givewell.org/files/images/GiveWell%20Metrics%20Report%20%E2%80%93%202013.pdf','GiveWell Metrics Report - 2013 Annual Review','All donations are documented'),
('GiveWell','Schistosomiasis Control Initiative',NULL,1440184,'2013-02-01','2014-01-31','http://files.givewell.org/files/images/GiveWell%20Metrics%20Report%20%E2%80%93%202013.pdf','GiveWell Metrics Report - 2013 Annual Review','Totality of donations excluding those from Good Ventures'),
('GiveWell','Deworm the World Initiative','Good Ventures/GiveWell top and standout charities',1500000,'2013-02-01','2014-01-31','http://files.givewell.org/files/images/GiveWell%20Metrics%20Report%20%E2%80%93%202013.pdf','GiveWell Metrics Report - 2013 Annual Review','All donations are documented'),
('GiveWell','Deworm the World Initiative',NULL,642836,'2013-02-01','2014-01-31','http://files.givewell.org/files/images/GiveWell%20Metrics%20Report%20%E2%80%93%202013.pdf','GiveWell Metrics Report - 2013 Annual Review','Totality of donations excluding those from Good Ventures');
|
--name: select-uids-emails-by-emails
SELECT user_id, email FROM user_email WHERE verified = 1 AND email IN (:emails);
--name: select-primary-emails-by-uids
SELECT user_id, email FROM user_email WHERE user_id IN (:user_ids) AND primary_address = 1;
--name: insert-pending-badge-for-email!
INSERT INTO pending_factory_badge (assertion_url, email, ctime) VALUES (:assertion_url, :email, UNIX_TIMESTAMP())
--name: select-pending-badges-by-user
SELECT DISTINCT p.assertion_url, p.email FROM pending_factory_badge AS p
INNER JOIN user_email AS ue ON p.email = ue.email
LEFT JOIN user_badge ub ON (ue.user_id = ub.user_id AND p.assertion_url = ub.assertion_url AND ub.deleted = 0)
WHERE p.assertion_url IS NOT NULL AND ue.user_id = :user_id AND ue.verified = 1
AND ub.id IS NULL;
--name: delete-duplicate-pending-badges!
DELETE FROM pending_factory_badge
WHERE email = :email AND assertion_url =
(SELECT assertion_url FROM user_badge WHERE user_id = :user_id AND assertion_url = :assertion_url LIMIT 1)
-- --name: select-badge-updates
-- FIXME (evidence_url)
--SELECT ub.id, ub.user_id, ub.email, ub.assertion_url, ub.mtime, ube.url AS evidence_url, ub.rating FROM user_badge AS ub
-- LEFT JOIN user_badge_evidence AS ube ON (ube.user_badge_id = ub.id)
-- WHERE ub.status = 'accepted' AND ub.deleted = 0 AND ub.user_id = :user_id AND ub.id = :id
--name: select-badge-updates
SELECT ub.id, ub.user_id, ub.email, ub.assertion_url, ub.mtime, ub.rating FROM user_badge AS ub
WHERE ub.status = 'accepted' AND ub.deleted = 0 AND ub.user_id = :user_id AND ub.id = :id
--name: select-user-badge-evidence
SELECT ube.url AS id, ube.name, ube.narrative, ube.description
FROM user_badge_evidence AS ube
JOIN user_badge AS ub ON ub.id = ube.user_badge_id
WHERE ube.user_badge_id = :id
--name: select-user-badge-endorsements
SELECT ube.external_id AS id, ube.issuer_name, ube.issuer_url, ube.content, ube.mtime, ub.assertion_url
FROM user_badge_endorsement AS ube
JOIN user_badge AS ub ON ub.id = ube.user_badge_id
WHERE ube.user_badge_id = :id AND ube.status = 'accepted'
-- name: select-badge-by-assertion
SELECT id FROM user_badge WHERE email = :email AND assertion_url = :url AND deleted = 0 AND status != 'declined'
--name: delete-pending-user-badge!
DELETE FROM user_badge WHERE id = :id AND user_id = 0 AND status = 'pending';
|
<filename>13.-Exam-27.06.2020/Exam-27.06.2020.sql
CREATE DATABASE WMS
USE WMS
--PART 1 - DDL
CREATE TABLE Clients
(
ClientId INT PRIMARY KEY IDENTITY,
FirstName VARCHAR(50),
LastName VARCHAR(50),
Phone CHAR(12)
)
CREATE TABLE Mechanics
(
MechanicId INT PRIMARY KEY IDENTITY,
FirstName VARCHAR(50),
LastName VARCHAR(50),
[Address] CHAR(255)
)
CREATE TABLE Models
(
ModelId INT PRIMARY KEY IDENTITY,
[Name] VARCHAR(50) UNIQUE
)
CREATE TABLE Jobs
(
JobId INT PRIMARY KEY IDENTITY,
ModelId INT NOT NULL REFERENCES Models(ModelId),
[Status] VARCHAR(11) DEFAULT 'Pending' CHECK([Status] IN ('Pending', 'In Progress', 'finished')),
ClientId INT NOT NULL REFERENCES Clients(ClientId),
MechanicId INT REFERENCES Mechanics(MechanicId),
IssueDate DATE NOT NULL,
FinishDate DATE
)
CREATE TABLE Orders
(
OrderId INT PRIMARY KEY IDENTITY,
JobId INT NOT NULL REFERENCES Jobs(JobId),
IssueDate DATE,
Delivered BIT DEFAULT 0
)
CREATE TABLE Vendors
(
VendorId INT PRIMARY KEY IDENTITY,
[Name] VARCHAR(50) UNIQUE
)
CREATE TABLE Parts
(
PartId INT PRIMARY KEY IDENTITY,
SerialNumber VARCHAR(50) UNIQUE,
[Description] VARCHAR(255),
Price DECIMAL(6,2) CHECK(Price > 0 AND Price <= 9999.99),
VendorId INT NOT NULL REFERENCES Vendors(VendorId),
StockQty INT DEFAULT 0 CHECK(StockQty >= 0)
)
CREATE TABLE OrderParts
(
OrderId INT NOT NULL REFERENCES Orders(OrderId),
PartId INT NOT NULL REFERENCES Parts(PartId),
Quantity INT NOT NULL DEFAULT 1 CHECK(Quantity > 0),
PRIMARY KEY(OrderId, PartId)
)
CREATE TABLE PartsNeeded
(
JobId INT NOT NULL REFERENCES Jobs(JobId),
PartId INT NOT NULL REFERENCES Parts(PartId),
Quantity INT NOT NULL DEFAULT 1 CHECK(Quantity > 0),
PRIMARY KEY(JobId, PartId)
)
--Part 2
--Problem 2 INSERT
INSERT INTO Clients(FirstName,LastName,Phone)
VALUES
('Teri', 'Ennaco','570-889-5187'),
('Merlyn', 'Lawler','201-588-7810'),
('Georgene', 'Montezuma','925-615-5185'),
('Jettie', 'Mconnell','908-802-3564'),
('Lemuel', 'Latzke','631-748-6479'),
('Melodie', 'Knipp','805-690-1682'),
('Candida', 'Corbley','908-275-8357')
INSERT INTO Parts(SerialNumber, [Description], Price, VendorId)
VALUES
('WP8182119', 'Door Boot Seal',117.86, 2),
('W10780048', 'Suspension Rod', 42.81, 1),
('W10841140', 'Silicone Adhesive ', 6.77, 4),
('WPY055980', 'High Temperature Adhesive', 13.94, 3)
--Problem 3 - UPDATE
UPDATE Jobs SET [Status] = 'In Progress'
WHERE [Status] = 'Pending' AND MechanicId = 3
--Problem 4
--select * from Orders
--select * from OrderParts
DELETE FROM OrderParts
WHERE OrderId = 19
DELETE FROM Orders
WHERE OrderId = 19
--Problem 5
SELECT CONCAT(FirstName, ' ', LastName) AS [Mechanic], j.[Status], j.IssueDate
FROM Mechanics AS m
LEFT JOIN Jobs AS j ON m.MechanicId = j.MechanicId
ORDER BY j.MechanicId, IssueDate, JobId
--Problem 6
SELECT CONCAT(FirstName, ' ', LastName) AS [Client], DATEDIFF(DAY, J.IssueDate, '2017-04-24') AS [Days going], J.[Status]
FROM Clients AS cl
LEFT JOIN Jobs AS j ON j.ClientId = cl.ClientId
WHERE j.[Status] != 'Finished'
ORDER BY[Days going] DESC, cl.ClientId
--Problem 7
SELECT CONCAT(m.FirstName, ' ', m.LastName) AS [Mechanic], AVG(DATEDIFF(DAY, j.IssueDate, j.FinishDate)) AS [Average Days]
FROM Mechanics AS m
LEFT JOIN Jobs AS j ON j.MechanicId = M.MechanicId
WHERE j.[Status] = 'Finished'
GROUP BY CONCAT(m.FirstName, ' ', m.LastName), m.MechanicId
ORDER BY m.MechanicId
--Problem 8
SELECT CONCAT(m.FirstName, ' ', m.LastName) AS [Available] FROM Mechanics AS m
LEFT JOIN Jobs AS j ON m.MechanicId = j.MechanicId
WHERE j.[Status] = 'Finished' AND j.[FinishDate] IS NULL
GROUP BY CONCAT(m.FirstName, ' ', m.LastName), m.MechanicId, j.FinishDate
ORDER BY m.MechanicId,
--Problem 9
SELECT j.JobId, SUM(p.Price * pn.Quantity) AS [Total]
FROM Jobs AS j
LEFT JOIN PartsNeeded AS pn ON pn.JobId = j.JobId
LEFT JOIN Parts AS p ON p.PartId = pn.PartId
GROUP BY j.JobId
ORDER BY [Total] DESC, j.JobId
SELECT j.JobId, SUM(p.Price * op.Quantity) AS [Total]
FROM Jobs AS j
LEFT JOIN Orders AS o ON j.JobId = o.JobId
LEFT JOIN OrderParts AS op ON op.OrderId = o.OrderId
LEFT JOIN Parts AS p ON p.PartId = op.PartId
WHERE j.[Status] = 'Finished'
GROUP BY j.JobId
ORDER BY [Total] DESC, j.JobId
--Problem 12
go
CREATE FUNCTION udf_GetCost(@JobId INT)
RETURNS DECIMAL(18,2)
AS
BEGIN
DECLARE @Result DECIMAL(18,2) = (select SUM(p.Price * op.Quantity) AS [Total]
from Jobs as j
left join Orders as o on o.JobId = j.JobId
left join OrderParts as op on op.OrderId = o.OrderId
left join Parts as p on p.PartId = op.PartId
where j.JobId = @JobId
group by j.JobId)
IF(@Result IS NULL)
BEGIN
RETURN 0;
END
RETURN @Result;
END
GO
SELECT dbo.udf_GetCost(1)
--Problem 11
go
CREATE PROCEDURE usp_PlaceOrder(@JobId INT, @SerialNumber VARCHAR(50), @Quantity INT)
AS
BEGIN TRANSACTION
DECLARE @JobStatus VARCHAR(25) = (select [Status] from Jobs where JobId = @JobId);
DECLARE @Id INT = (select JobId from Jobs where JobId = @JobId);
if(@JobStatus = 'Finished')
BEGIN
ROLLBACK;
THROW 50011, 'This job is not active!', 1;
END
if(@Quantity <= 0)
BEGIN
ROLLBACK;
THROW 50012, 'Part quantity must be more than zero!', 1;
RETURN;
END
if(@JobId != @Id)
BEGIN
ROLLBACK;
THROW 50013, 'Job not found!', 1;
RETURN
END
DECLARE @PartId INT = (select PartId from Parts where SerialNumber = @SerialNumber)
IF(@PartId IS NULL)
BEGIN
ROLLBACK;
THROW 50014, 'Part not found!', 1;
RETURN
END
DECLARE @OrderId INT = (select OrderId from Orders where JobId = @JobId);
DECLARE @IssueDateOfOrder DATE = (select IssueDate from Orders where JobId = @JobId);
IF(@OrderId != 0 AND @IssueDateOfOrder IS NULL)
BEGIN
IF(@PartId != 0)
BEGIN
UPDATE OrderParts SET Quantity += 1 WHERE OrderId = @OrderId
END
INSERT INTO OrderParts(OrderId, PartId, Quantity) VALUES (@OrderId, @PartId, @Quantity)
INSERT INTO Orders(OrderId, JobId, IssueDate, Delivered) VALUES (@OrderId, @JobId, @IssueDateOfOrder, 0)
END
COMMIT
go
DECLARE @err_msg AS NVARCHAR(MAX);
BEGIN TRY
EXEC usp_PlaceOrder 1, 'ZeroQuantity', 0
END TRY
BEGIN CATCH
SET @err_msg = ERROR_MESSAGE();
SELECT @err_msg
END CATCH
|
-- phpMyAdmin SQL Dump
-- version 4.9.1
-- https://www.phpmyadmin.net/
--
-- Hôte : 127.0.0.1
-- Généré le : Dim 03 mai 2020 à 13:44
-- Version du serveur : 10.4.8-MariaDB
-- Version de PHP : 7.3.11
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- Base de données : `ensaabsence`
--
-- --------------------------------------------------------
--
-- Structure de la table `absences`
--
CREATE TABLE `absences` (
`CNE` varchar(20) NOT NULL,
`DATE_ABS` varchar(200) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Déchargement des données de la table `absences`
--
INSERT INTO `absences` (`CNE`, `DATE_ABS`) VALUES
('A1230', ' . '),
('A1230', ' . 2020-05-01'),
('A1230', ' . 2020-05-03'),
('A1230', ' . 2020-05-04'),
('A1230', ' . 2020-05-05'),
('A1230', ' . 2020-05-08'),
('A1231', ' . '),
('A1231', ' . 2020-05-01'),
('A1231', ' . 2020-05-03'),
('A1231', ' . 2020-05-04'),
('A1231', ' . 2020-05-05'),
('A1232', ' . '),
('A1232', ' . 2020-05-01'),
('A1232', ' . 2020-05-03'),
('A1232', ' . 2020-05-04'),
('A1232', ' . 2020-05-05'),
('A1233', ' . '),
('A1233', ' . 2020-05-01'),
('A1233', ' . 2020-05-04'),
('A1233', ' . 2020-05-08'),
('A1234', ' . '),
('A1234', ' . 2020-05-04'),
('A1235', ' . '),
('A1235', ' . 2020-05-04'),
('A1236', ' . '),
('A1236', ' . 2020-05-03'),
('A1236', ' . 2020-05-04'),
('A1236', ' . 2020-05-08');
-- --------------------------------------------------------
--
-- Structure de la table `eleves`
--
CREATE TABLE `eleves` (
`CNE` varchar(20) NOT NULL,
`NOM` varchar(25) NOT NULL,
`PRENOM` varchar(25) NOT NULL,
`EMAIL` varchar(200) NOT NULL,
`PHOTO` varchar(200) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Déchargement des données de la table `eleves`
--
INSERT INTO `eleves` (`CNE`, `NOM`, `PRENOM`, `EMAIL`, `PHOTO`) VALUES
('A1230', 'jadar', 'mohamed', '<EMAIL>', 'img1'),
('A1231', 'jadar1', 'mohamed1', '<EMAIL>', 'img1'),
('A1232', 'jadar2', 'mohamed2', '<EMAIL>', 'img1'),
('A1233', 'jadar3', 'mohamed3', '<EMAIL>', 'img1'),
('A1234', 'jadar4', 'mohamed4', '<EMAIL>', 'img1'),
('A1235', 'jadar5', 'mohamed5', '<EMAIL>', 'img1'),
('A1236', 'jadar6', 'mohamed6', '<EMAIL>', 'img1');
--
-- Index pour les tables déchargées
--
--
-- Index pour la table `absences`
--
ALTER TABLE `absences`
ADD PRIMARY KEY (`CNE`,`DATE_ABS`);
--
-- Index pour la table `eleves`
--
ALTER TABLE `eleves`
ADD PRIMARY KEY (`CNE`);
--
-- Contraintes pour les tables déchargées
--
--
-- Contraintes pour la table `absences`
--
ALTER TABLE `absences`
ADD CONSTRAINT `FK_ABSENCES_ABSENTER_ELEVES` FOREIGN KEY (`CNE`) REFERENCES `eleves` (`CNE`);
COMMIT;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
<filename>Semester III/Database Management Systems (DBMS) (4639303)/Set/set-3/3.2.26.sql<gh_stars>1-10
select * from employee where dept_no=(select dept_no from department where dept_name='mba'); |
CREATE TYPE job_exec_state AS ENUM (
'pending',
'waiting_on_dependency',
'ready',
'running',
'complete',
'job_failed',
'dependency_failed',
'cancel_pending',
'cancel_complete'
);
CREATE SEQUENCE IF NOT EXISTS job_graph_id_seq;
CREATE TABLE IF NOT EXISTS job_graph (
id BIGINT DEFAULT nextval('job_graph_id_seq') PRIMARY KEY NOT NULL,
group_id BIGINT NOT NULL, -- want FK
project_name TEXT, -- BIGINT NOT NULL, -- want FK
job_id BIGINT, -- want FK
job_state job_exec_state,
manifest_ident TEXT,
as_built_ident TEXT,
dependencies BIGINT[] NOT NULL,
waiting_on_count INTEGER NOT NULL,
target_platform TEXT NOT NULL,
-- may insert some more prioritzation stuff, around groups, etc.
created_at timestamp WITH time zone DEFAULT now() NOT NULL,
updated_at timestamp WITH time zone DEFAULT now() NOT NULL
);
-- Notes on FK constraints
-- We have an ordering problem because the jobsrv migrations happen after this, and so the groups and jobs tables don't exist yet
-- group_id should be FK on the groups table
-- job_id should be FK on the jobs table
-- Probably should set up cascading delete here
-- diesel trigger to manage update
SELECT diesel_manage_updated_at('job_graph');
-- This is required for fast search inside the array
-- It might get large, maybe we should create partial index
-- either filtered on job state or a separate active/archived flag
CREATE EXTENSION intarray;
CREATE INDEX ON job_graph USING GIN(dependencies);
-- This index might be combined with another field (maybe group_id?)
CREATE INDEX state ON job_graph (job_state);
-- TODO Possible index
-- target, job_exec_state for count_ready_by_target
-- group_id, job_exec_state?
----------------------------------------------
--
-- Compute transitively expanded rdeps for id
--
-- Performance note:
-- While it might seem easier to write "re.id = ANY(g.dependencies))" below
-- the gin index doesn't supprt that function, and is hella slow.
-- Using @> is vastly faster. (e.g. 30k entries, 7000 ms becomes 15ms)
--
-- needs gin index on dependencies
CREATE OR REPLACE FUNCTION t_rdeps_for_id(job_graph_id BIGINT)
RETURNS SETOF BIGINT
AS $$
DECLARE
failed_count integer;
BEGIN
-- Recursively expand all things that depend on me
RETURN QUERY (
WITH RECURSIVE re(id) AS (
SELECT g.id FROM job_graph g WHERE g.dependencies @> array[job_graph_id]::bigint[]
UNION
SELECT g.id
FROM job_graph g, re
WHERE g.dependencies @> array[re.id]::bigint[] )
SELECT * FROM re);
END
$$ LANGUAGE PLPGSQL;
----------------------------------------------
--
-- Compute transitively expanded deps for id
--
-- Not super performant (28ms with 30k entries), but
-- not on critical path either.
-- needs gin index on dependencies
CREATE OR REPLACE FUNCTION t_deps_for_id(job_graph_id BIGINT)
RETURNS SETOF BIGINT
AS $$
DECLARE
failed_count integer;
BEGIN
-- Recursively expand all things that depend on me
RETURN QUERY (
WITH RECURSIVE re(id) AS (
SELECT UNNEST(g.dependencies) FROM job_graph g WHERE g.id = job_graph_id
UNION
SELECT UNNEST(g.dependencies)
FROM job_graph g, re
WHERE g.id = re.id)
SELECT * FROM re);
END
$$ LANGUAGE PLPGSQL;
-- as above, but faster (3ms) because group_id filter
-- needs index on group_id
CREATE OR REPLACE FUNCTION t_deps_for_id_group(in_id BIGINT, in_group_id BIGINT)
RETURNS SETOF BIGINT
AS $$
BEGIN
-- Recursively expand all things that depend on me
RETURN QUERY (
WITH RECURSIVE re(id) AS (
SELECT UNNEST(g.dependencies) FROM job_graph g where g.id = in_id
AND g.group_id = in_group_id
UNION
SELECT UNNEST(g2.dependencies)
FROM job_graph g2, re
WHERE g2.id = re.id AND g2.group_id = in_group_id )
SELECT * FROM re);
END
$$ LANGUAGE PLPGSQL;
--
--
-- This is too slow for production use, but is intended as a debugging aid
CREATE OR REPLACE VIEW job_graph_completed AS
SELECT *,
(SELECT array_cat(array[]::BIGINT[], array_agg(d.id)) -- array_agg alone fills things with nulls when no deps
FROM job_graph AS d
WHERE d.id = ANY (j.dependencies)
AND d.job_state = 'complete') AS complete
FROM job_graph AS j;
-- Also very slow, but useful for recovery
-- note doesn't reset state if dependencies aren't complete
CREATE OR REPLACE FUNCTION job_graph_fixup_waiting_on_count() RETURNS integer AS $$
DECLARE
i_count integer;
BEGIN
UPDATE job_graph
SET waiting_on_count = subquery.remaining
FROM (SELECT id, (cardinality(k.dependencies) - complete_count) AS remaining
FROM (
SELECT *,
(
SELECT
count(*)
FROM
job_graph AS d
WHERE
d.group_id = d.group_id
AND j.dependencies @> array[d.id]::bigint[]
AND d.job_state = 'complete')
AS complete_count
FROM job_graph AS j)
AS k) AS subquery
WHERE
job_graph.id = subquery.id
AND waiting_on_count != subquery.remaining;
GET DIAGNOSTICS i_count = ROW_COUNT;
RETURN i_count;
END
$$ LANGUAGE PLPGSQL;
-- Mark a job complete and update the jobs that depend on it
-- If a job has zero dependencies, mark it ready to be run
--
-- We rely on this being atomic (like all functions in postgres)
-- It might be better to write this as a diesel transaction, but it's kinda complex
--
CREATE OR REPLACE FUNCTION job_graph_mark_complete(job_graph_id BIGINT, as_built TEXT) RETURNS integer AS $$
DECLARE
i_count integer;
BEGIN
-- Decrement count of the things that depend on us
-- TODO: Consider limiting this update to jobs 'ready'
UPDATE job_graph
SET waiting_on_count = waiting_on_count - 1
FROM (SELECT id
FROM job_graph AS d
WHERE d.dependencies @> array[job_graph_id]::bigint[]
) as deps
WHERE job_graph.id = deps.id;
UPDATE job_graph
SET job_state = 'ready'
WHERE waiting_on_count = 0
AND job_state = 'waiting_on_dependency';
-- postgres magic to get number of altered rows in prior query
GET DIAGNOSTICS i_count = ROW_COUNT;
-- Mark this job complete
-- TODO: Consider limiting this update to jobs 'Pending'
UPDATE job_graph
SET job_state = 'complete', as_built_ident = as_built
WHERE id = job_graph_id;
RETURN i_count;
END
$$ LANGUAGE PLPGSQL;
-- Mark a job complete and recursively update the jobs that depend on it
--
-- We rely on this being atomic (like all functions in postgres)
-- It might be better to write this as a diesel transaction, but it's kinda complex,
-- we'd probably have to write the recursion as multiple calls, which gets messy
--
CREATE OR REPLACE FUNCTION job_graph_mark_failed(job_graph_id BIGINT) RETURNS integer AS $$
DECLARE
failed_count integer;
BEGIN
-- Recursively expand all things that depend on me
-- this maybe could be DRY with the t_rdeps_for_id call above
WITH RECURSIVE re(id) AS (
SELECT g.id FROM job_graph g where g.dependencies @> array[job_graph_id]::bigint[]
UNION
SELECT g.id
FROM job_graph g, re
WHERE g.dependencies @> array[re.id]::bigint[])
UPDATE job_graph SET job_state = 'dependency_failed'
WHERE id IN (SELECT id from re)
AND (job_state = 'waiting_on_dependency' OR job_state = 'ready');
GET DIAGNOSTICS failed_count = ROW_COUNT;
-- Mark this job complete
-- TODO: Consider limiting this update to jobs 'Pending'
UPDATE job_graph SET job_state = 'job_failed'
WHERE id = job_graph_id;
RETURN failed_count;
END
$$ LANGUAGE PLPGSQL;
-- TODO:
-- add foreign key constraint on group_id
-- is id tied to job.id?
-- is dependencies FK constrained to self?
--
-- Index on group_id probably
-- Index on group_id, job_state, dependencies probably
-- Index on job_state, target_platform (or reverse?)
|
create table t1 (f1 VARCHAR2(10), f2 VARCHAR2(4000), CONSTRAINT t1_json_chk1 CHECK (f2 IS JSON))
;
insert into t1 values ('1', '{"id":1,"name":"ravi"}');
insert into t1 values ('3', '{"id":3,"name":"murthy"}');
create index it1 on t1(f2) indextype is lucene.SolrIndex
parameters('PopulateIndex:false;CommitOnSync:true;SoftCommit:true;LockMasterTable:false;LogLevel:ALL;IncludeMasterColumn:false;ExtraCols:f1 "f1_ti",JSON_VALUE(f2,''$.id'') "id_s",JSON_VALUE(f2,''$.name'') "name_tg"')
;
|
<filename>src/main/resources/liquibase/harness/data/expectedSql/hsqldb/loadUpdateData.sql
INVALID TEST
-- there is Liquibase issue with query generation https://github.com/liquibase/liquibase/issues/2077 |
<filename>models/tmp/stg_zendesk__ticket_tmp.sql
select *
from {{ var('ticket') }}
|
--
-- Test for plpgsql in parallel mode
--
/*--EXPLAIN_QUERY_BEGIN*/
drop table px_plpgsql_table;
create table px_plpgsql_table (a int, b int);
-- query in trigger will not use px
create or replace function px_trigger()
returns trigger language plpgsql as
$$
declare
x integer;
id integer;
begin
select _px_worker_id, count(*) into id, x from px_plpgsql_table group by 1;
if id = -1 then
RAISE NOTICE 'trigger is not parallel';
end if;
return new;
end;
$$;
create trigger px_trig after insert on px_plpgsql_table
for each row execute procedure px_trigger();
insert into px_plpgsql_table values (1,1),(2,2),(3,3),(4,4);
-- IMMUTABLE function will use px
create or replace function count_only() returns int as
$$
declare
x integer;
id integer;
begin
select _px_worker_id, count(*) into id, x from px_plpgsql_table group by 1;
if id <> -1 then
RAISE NOTICE 'IMMUTABLE function is parallel';
end if;
return x;
end
$$
language plpgsql
IMMUTABLE;
select count_only();
select * from px_plpgsql_table where a + count_only() < 6;
-- IMMUTABLE function will use px
create or replace function count2() returns int as
$$
declare
x integer;
id integer;
begin
select _px_worker_id, count(*) into id, x from px_plpgsql_table group by 1;
if id <> -1 then
RAISE NOTICE 'IMMUTABLE function is parallel';
end if;
return x;
end
$$
language plpgsql ;
select count2();
select * from px_plpgsql_table where a + count2() < 6;
-- normal function will not use px
create or replace function both_rw() returns int as
$$
declare
x integer;
id integer;
begin
insert into px_plpgsql_table values (5,5),(6,6);
select _px_worker_id, count(*) into id, x from px_plpgsql_table group by 1;
if id = -1 then
RAISE NOTICE 'NORMAL function is not parallel';
end if;
return x;
end
$$
language plpgsql;
select both_rw();
select * from px_plpgsql_table where a + both_rw() < 6;
create or replace function count3() returns int as
$$
declare
x integer;
id integer;
rec1 record;
begin
for rec1 in select * from px_plpgsql_table loop
select _px_worker_id, count(*) into id, x from px_plpgsql_table group by 1;
if id <> -1 then
RAISE NOTICE 'IMMUTABLE function is parallel';
end if;
end loop;
return x;
end
$$
language plpgsql IMMUTABLE;
select count3();
drop table px_plpgsql_table;
|
<reponame>Verchasve/conductor_test
# no longer need separate index if pk is queue_name, message_id
SET @idx_exists := (SELECT COUNT(INDEX_NAME)
FROM information_schema.STATISTICS
WHERE `TABLE_NAME` = 'queue_message'
AND `INDEX_NAME` = 'unique_queue_name_message_id'
AND TABLE_SCHEMA = database());
SET @idxstmt := IF(@idx_exists > 0, 'ALTER TABLE `queue_message` DROP INDEX `unique_queue_name_message_id`',
'SELECT ''INFO: Index unique_queue_name_message_id does not exist.''');
PREPARE stmt1 FROM @idxstmt;
EXECUTE stmt1;
# remove id column
set @col_exists := (SELECT COUNT(*)
FROM information_schema.COLUMNS
WHERE `TABLE_NAME` = 'queue_message'
AND `COLUMN_NAME` = 'id'
AND TABLE_SCHEMA = database());
SET @colstmt := IF(@col_exists > 0, 'ALTER TABLE `queue_message` DROP COLUMN `id`',
'SELECT ''INFO: Column id does not exist.''') ;
PREPARE stmt2 from @colstmt;
EXECUTE stmt2;
# set primary key to queue_name, message_id
ALTER TABLE queue_message ADD PRIMARY KEY (queue_name, message_id);
|
/*-------------------------------------------------------------------------
*
* geo3D_am.sql
* Access methods for 3D geometries: R-tree and oct-tree
*
* Portions Copyright (c) 2017, <NAME>, Université Libre de Bruxelles
* Portions Copyright (c) 1996-2017, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
*-------------------------------------------------------------------------*/
/******************************************************************************
* Support routines for the GiST access method
*****************************************************************************/
CREATE OR REPLACE FUNCTION gist_box3D_consistent(internal, Box3D, smallint, oid, internal) RETURNS bool AS 'MODULE_PATHNAME', 'gist_box3D_consistent' LANGUAGE C IMMUTABLE STRICT;
CREATE OR REPLACE FUNCTION gist_box3D_union(internal, internal) RETURNS box3D AS 'MODULE_PATHNAME', 'gist_box3D_union' LANGUAGE C IMMUTABLE STRICT;
CREATE OR REPLACE FUNCTION gist_box3D_compress(internal) RETURNS internal AS 'MODULE_PATHNAME', 'gist_box3D_compress' LANGUAGE C IMMUTABLE STRICT;
CREATE OR REPLACE FUNCTION gist_box3D_decompress(internal) RETURNS internal AS 'MODULE_PATHNAME', 'gist_box3D_decompress' LANGUAGE C IMMUTABLE STRICT;
CREATE OR REPLACE FUNCTION gist_box3D_penalty(internal, internal, internal) RETURNS internal AS 'MODULE_PATHNAME', 'gist_box3D_penalty' LANGUAGE C IMMUTABLE STRICT;
CREATE OR REPLACE FUNCTION gist_box3D_picksplit(internal, internal) RETURNS internal AS 'MODULE_PATHNAME', 'gist_box3D_picksplit' LANGUAGE C IMMUTABLE STRICT;
CREATE OR REPLACE FUNCTION gist_box3D_same(Box3D, Box3D, internal) RETURNS internal AS 'MODULE_PATHNAME', 'gist_box3D_same' LANGUAGE C IMMUTABLE STRICT;
CREATE OR REPLACE FUNCTION gist_box3D_distance(internal, Box3D, smallint, oid, internal) RETURNS float8 AS 'MODULE_PATHNAME', 'gist_point3D_distance' LANGUAGE C IMMUTABLE STRICT;
CREATE OR REPLACE FUNCTION gist_box3D_fetch(internal) RETURNS internal AS 'MODULE_PATHNAME', 'gist_box3D_fetch' LANGUAGE C IMMUTABLE STRICT;
CREATE OPERATOR CLASS gist_box3D_ops
DEFAULT FOR TYPE Box3D USING gist AS
-- strictly left
OPERATOR 1 << (Box3D, Point3D),
OPERATOR 41 << (Box3D, Lseg3D),
OPERATOR 81 << (Box3D, Line3D),
OPERATOR 121 << (Box3D, Box3D),
OPERATOR 161 << (Box3D, Path3D),
OPERATOR 201 << (Box3D, Polygon3D),
OPERATOR 241 << (Box3D, Sphere),
-- overlaps or left
OPERATOR 2 <<& (Box3D, Point3D),
OPERATOR 42 <<& (Box3D, Lseg3D),
OPERATOR 82 <<& (Box3D, Line3D),
OPERATOR 122 <<& (Box3D, Box3D),
OPERATOR 162 <<& (Box3D, Path3D),
OPERATOR 202 <<& (Box3D, Polygon3D),
OPERATOR 242 <<& (Box3D, Sphere),
-- overlaps
-- OPERATOR 3 && (Box3D, Point3D),
-- OPERATOR 43 && (Box3D, Lseg3D),
-- OPERATOR 83 && (Box3D, Line3D),
OPERATOR 123 && (Box3D, Box3D),
-- OPERATOR 163 && (Box3D, Path3D),
OPERATOR 203 && (Box3D, Polygon3D),
OPERATOR 243 && (Box3D, Sphere),
-- overlaps or right
OPERATOR 4 &>> (Box3D, Point3D),
OPERATOR 44 &>> (Box3D, Lseg3D),
OPERATOR 84 &>> (Box3D, Line3D),
OPERATOR 124 &>> (Box3D, Box3D),
OPERATOR 164 &>> (Box3D, Path3D),
OPERATOR 204 &>> (Box3D, Polygon3D),
OPERATOR 244 &>> (Box3D, Sphere),
-- strictly right
OPERATOR 5 >> (Box3D, Point3D),
OPERATOR 45 >> (Box3D, Lseg3D),
OPERATOR 85 >> (Box3D, Line3D),
OPERATOR 125 >> (Box3D, Box3D),
OPERATOR 165 >> (Box3D, Path3D),
OPERATOR 205 >> (Box3D, Polygon3D),
OPERATOR 245 >> (Box3D, Sphere),
-- same
OPERATOR 126 ~= (Box3D, Box3D),
-- contains
OPERATOR 7 @> (Box3D, Point3D),
OPERATOR 47 @> (Box3D, Lseg3D),
OPERATOR 127 @> (Box3D, Box3D),
OPERATOR 167 @> (Box3D, Path3D),
OPERATOR 207 @> (Box3D, Polygon3D),
OPERATOR 247 @> (Box3D, Sphere),
-- contained by
OPERATOR 128 <@ (Box3D, Box3D),
OPERATOR 248 <@ (Box3D, Sphere),
-- overlaps or below
OPERATOR 9 <<|& (Box3D, Point3D),
OPERATOR 49 <<|& (Box3D, Lseg3D),
OPERATOR 89 <<|& (Box3D, Line3D),
OPERATOR 129 <<|& (Box3D, Box3D),
OPERATOR 169 <<|& (Box3D, Path3D),
OPERATOR 209 <<|& (Box3D, Polygon3D),
OPERATOR 249 <<|& (Box3D, Sphere),
-- strictly below
OPERATOR 10 <<| (Box3D, Point3D),
OPERATOR 50 <<| (Box3D, Lseg3D),
OPERATOR 90 <<| (Box3D, Line3D),
OPERATOR 130 <<| (Box3D, Box3D),
OPERATOR 170 <<| (Box3D, Path3D),
OPERATOR 210 <<| (Box3D, Polygon3D),
OPERATOR 250 <<| (Box3D, Sphere),
-- strictly above
OPERATOR 11 |>> (Box3D, Point3D),
OPERATOR 51 |>> (Box3D, Lseg3D),
OPERATOR 91 |>> (Box3D, Line3D),
OPERATOR 131 |>> (Box3D, Box3D),
OPERATOR 171 |>> (Box3D, Path3D),
OPERATOR 211 |>> (Box3D, Polygon3D),
OPERATOR 251 |>> (Box3D, Sphere),
-- overlaps or above
OPERATOR 12 &|>> (Box3D, Point3D),
OPERATOR 52 &|>> (Box3D, Lseg3D),
OPERATOR 92 &|>> (Box3D, Line3D),
OPERATOR 132 &|>> (Box3D, Box3D),
OPERATOR 172 &|>> (Box3D, Path3D),
OPERATOR 212 &|>> (Box3D, Polygon3D),
OPERATOR 252 &|>> (Box3D, Sphere),
-- distance
OPERATOR 15 <-> (Box3D, Point3D) FOR ORDER BY pg_catalog.float_ops,
OPERATOR 55 <-> (Box3D, Lseg3D) FOR ORDER BY pg_catalog.float_ops,
OPERATOR 95 <-> (Box3D, Line3D) FOR ORDER BY pg_catalog.float_ops,
OPERATOR 135 <-> (Box3D, Box3D) FOR ORDER BY pg_catalog.float_ops,
OPERATOR 175 <-> (Box3D, Path3D) FOR ORDER BY pg_catalog.float_ops,
OPERATOR 215 <-> (Box3D, Polygon3D) FOR ORDER BY pg_catalog.float_ops,
OPERATOR 255 <-> (Box3D, Sphere) FOR ORDER BY pg_catalog.float_ops,
-- overlaps or front
OPERATOR 28 <</& (Box3D, Point3D),
OPERATOR 68 <</& (Box3D, Lseg3D),
OPERATOR 108 <</& (Box3D, Line3D),
OPERATOR 148 <</& (Box3D, Box3D),
OPERATOR 188 <</& (Box3D, Path3D),
OPERATOR 228 <</& (Box3D, Polygon3D),
OPERATOR 268 <</& (Box3D, Sphere),
-- strictly front
OPERATOR 29 <</ (Box3D, Point3D),
OPERATOR 69 <</ (Box3D, Lseg3D),
OPERATOR 109 <</ (Box3D, Line3D),
OPERATOR 149 <</ (Box3D, Box3D),
OPERATOR 189 <</ (Box3D, Path3D),
OPERATOR 229 <</ (Box3D, Polygon3D),
OPERATOR 269 <</ (Box3D, Sphere),
-- strictly back
OPERATOR 30 />> (Box3D, Point3D),
OPERATOR 70 />> (Box3D, Lseg3D),
OPERATOR 110 />> (Box3D, Line3D),
OPERATOR 150 />> (Box3D, Box3D),
OPERATOR 190 />> (Box3D, Path3D),
OPERATOR 230 />> (Box3D, Polygon3D),
OPERATOR 270 />> (Box3D, Sphere),
-- overlaps or back
OPERATOR 31 &/>> (Box3D, Point3D),
OPERATOR 71 &/>> (Box3D, Lseg3D),
OPERATOR 111 &/>> (Box3D, Line3D),
OPERATOR 151 &/>> (Box3D, Box3D),
OPERATOR 191 &/>> (Box3D, Path3D),
OPERATOR 231 &/>> (Box3D, Polygon3D),
OPERATOR 271 &/>> (Box3D, Sphere),
-- functions
FUNCTION 1 gist_box3D_consistent (internal, Box3D, smallint, oid, internal),
FUNCTION 2 gist_box3D_union (internal, internal),
FUNCTION 3 gist_box3D_compress (internal),
FUNCTION 4 gist_box3D_decompress (internal),
FUNCTION 5 gist_box3D_penalty (internal, internal, internal),
FUNCTION 6 gist_box3D_picksplit (internal, internal),
FUNCTION 7 gist_box3D_same (Box3D, Box3D, internal),
FUNCTION 8 gist_box3D_distance (internal, Box3D, smallint, oid, internal),
FUNCTION 9 gist_box3D_fetch (internal);
CREATE OR REPLACE FUNCTION gist_point3D_consistent(internal, Point3D, smallint, oid, internal) RETURNS bool AS 'MODULE_PATHNAME', 'gist_point3D_consistent' LANGUAGE C IMMUTABLE STRICT;
CREATE OR REPLACE FUNCTION gist_point3D_compress(internal) RETURNS internal AS 'MODULE_PATHNAME', 'gist_point3D_compress' LANGUAGE C IMMUTABLE STRICT;
CREATE OR REPLACE FUNCTION gist_point3D_distance(internal, Point3D, smallint, oid, internal) RETURNS float8 AS 'MODULE_PATHNAME', 'gist_point3D_distance' LANGUAGE C IMMUTABLE STRICT;
CREATE OR REPLACE FUNCTION gist_point3D_fetch(internal) RETURNS internal AS 'MODULE_PATHNAME', 'gist_point3D_fetch' LANGUAGE C IMMUTABLE STRICT;
CREATE OPERATOR CLASS gist_point3D_ops
DEFAULT FOR TYPE point3D USING gist AS
-- strictly left
OPERATOR 1 << (Point3D, Point3D),
OPERATOR 41 << (Point3D, Lseg3D),
OPERATOR 81 << (Point3D, Line3D),
OPERATOR 121 << (Point3D, Box3D),
OPERATOR 161 << (Point3D, Path3D),
OPERATOR 201 << (Point3D, Polygon3D),
OPERATOR 241 << (Point3D, Sphere),
-- overlaps or left
OPERATOR 2 <<& (Point3D, Point3D),
OPERATOR 42 <<& (Point3D, Lseg3D),
OPERATOR 82 <<& (Point3D, Line3D),
OPERATOR 122 <<& (Point3D, Box3D),
OPERATOR 162 <<& (Point3D, Path3D),
OPERATOR 202 <<& (Point3D, Polygon3D),
OPERATOR 242 <<& (Point3D, Sphere),
-- overlaps
-- overlaps or right
OPERATOR 4 &>> (Point3D, Point3D),
OPERATOR 44 &>> (Point3D, Lseg3D),
OPERATOR 84 &>> (Point3D, Line3D),
OPERATOR 124 &>> (Point3D, Box3D),
OPERATOR 164 &>> (Point3D, Path3D),
OPERATOR 204 &>> (Point3D, Polygon3D),
OPERATOR 244 &>> (Point3D, Sphere),
-- strictly right
OPERATOR 5 >> (Point3D, Point3D),
OPERATOR 45 >> (Point3D, Lseg3D),
OPERATOR 85 >> (Point3D, Line3D),
OPERATOR 125 >> (Point3D, Box3D),
OPERATOR 165 >> (Point3D, Path3D),
OPERATOR 205 >> (Point3D, Polygon3D),
OPERATOR 245 >> (Point3D, Sphere),
-- same
OPERATOR 6 ~= (Point3D, Point3D),
-- contains
-- contained by
OPERATOR 48 <@ (Point3D, Lseg3D),
OPERATOR 88 <@ (Point3D, Line3D),
OPERATOR 128 <@ (Point3D, Box3D),
OPERATOR 168 <@ (Point3D, Path3D),
OPERATOR 208 <@ (Point3D, Polygon3D),
OPERATOR 248 <@ (Point3D, Sphere),
-- overlaps or below
OPERATOR 9 <<|& (Point3D, Point3D),
OPERATOR 49 <<|& (Point3D, Lseg3D),
OPERATOR 89 <<|& (Point3D, Line3D),
OPERATOR 129 <<|& (Point3D, Box3D),
OPERATOR 169 <<|& (Point3D, Path3D),
OPERATOR 209 <<|& (Point3D, Polygon3D),
OPERATOR 249 <<|& (Point3D, Sphere),
-- strictly below
OPERATOR 10 <<| (Point3D, Point3D),
OPERATOR 50 <<| (Point3D, Lseg3D),
OPERATOR 90 <<| (Point3D, Line3D),
OPERATOR 130 <<| (Point3D, Box3D),
OPERATOR 170 <<| (Point3D, Path3D),
OPERATOR 210 <<| (Point3D, Polygon3D),
OPERATOR 250 <<| (Point3D, Sphere),
-- strictly above
OPERATOR 11 |>> (Point3D, Point3D),
OPERATOR 51 |>> (Point3D, Lseg3D),
OPERATOR 91 |>> (Point3D, Line3D),
OPERATOR 131 |>> (Point3D, Box3D),
OPERATOR 171 |>> (Point3D, Path3D),
OPERATOR 211 |>> (Point3D, Polygon3D),
OPERATOR 251 |>> (Point3D, Sphere),
-- overlaps or above
OPERATOR 12 &|>> (Point3D, Point3D),
OPERATOR 52 &|>> (Point3D, Lseg3D),
OPERATOR 92 &|>> (Point3D, Line3D),
OPERATOR 132 &|>> (Point3D, Box3D),
OPERATOR 172 &|>> (Point3D, Path3D),
OPERATOR 212 &|>> (Point3D, Polygon3D),
OPERATOR 252 &|>> (Point3D, Sphere),
-- distance
OPERATOR 15 <-> (Point3D, Point3D) FOR ORDER BY pg_catalog.float_ops,
OPERATOR 55 <-> (Point3D, Lseg3D) FOR ORDER BY pg_catalog.float_ops,
OPERATOR 95 <-> (Point3D, Line3D) FOR ORDER BY pg_catalog.float_ops,
OPERATOR 135 <-> (Point3D, Box3D) FOR ORDER BY pg_catalog.float_ops,
OPERATOR 175 <-> (Point3D, Path3D) FOR ORDER BY pg_catalog.float_ops,
OPERATOR 215 <-> (Point3D, Polygon3D) FOR ORDER BY pg_catalog.float_ops,
OPERATOR 255 <-> (Point3D, Sphere) FOR ORDER BY pg_catalog.float_ops,
-- overlaps or front
OPERATOR 28 <</& (Point3D, Point3D),
OPERATOR 68 <</& (Point3D, Lseg3D),
OPERATOR 108 <</& (Point3D, Line3D),
OPERATOR 148 <</& (Point3D, Box3D),
OPERATOR 188 <</& (Point3D, Path3D),
OPERATOR 228 <</& (Point3D, Polygon3D),
OPERATOR 268 <</& (Point3D, Sphere),
-- strictly front
OPERATOR 29 <</ (Point3D, Point3D),
OPERATOR 69 <</ (Point3D, Lseg3D),
OPERATOR 109 <</ (Point3D, Line3D),
OPERATOR 149 <</ (Point3D, Box3D),
OPERATOR 189 <</ (Point3D, Path3D),
OPERATOR 229 <</ (Point3D, Polygon3D),
OPERATOR 269 <</ (Point3D, Sphere),
-- strictly back
OPERATOR 30 />> (Point3D, Point3D),
OPERATOR 70 />> (Point3D, Lseg3D),
OPERATOR 110 />> (Point3D, Line3D),
OPERATOR 150 />> (Point3D, Box3D),
OPERATOR 190 />> (Point3D, Path3D),
OPERATOR 230 />> (Point3D, Polygon3D),
OPERATOR 270 />> (Point3D, Sphere),
-- overlaps or back
OPERATOR 31 &/>> (Point3D, Point3D),
OPERATOR 71 &/>> (Point3D, Lseg3D),
OPERATOR 111 &/>> (Point3D, Line3D),
OPERATOR 151 &/>> (Point3D, Box3D),
OPERATOR 191 &/>> (Point3D, Path3D),
OPERATOR 231 &/>> (Point3D, Polygon3D),
OPERATOR 271 &/>> (Point3D, Sphere),
-- functions
FUNCTION 1 gist_point3D_consistent (internal, Point3D, smallint, oid, internal),
FUNCTION 2 gist_box3D_union (internal, internal),
FUNCTION 3 gist_point3D_compress (internal),
FUNCTION 4 gist_box3D_decompress (internal),
FUNCTION 5 gist_box3D_penalty (internal, internal, internal),
FUNCTION 6 gist_box3D_picksplit (internal, internal),
FUNCTION 7 gist_box3D_same (Box3D, Box3D, internal),
FUNCTION 8 gist_point3D_distance (internal, Point3D, smallint, oid, internal),
FUNCTION 9 gist_point3D_fetch (internal);
CREATE OR REPLACE FUNCTION gist_sphere_consistent(internal, Sphere, smallint, oid, internal) RETURNS bool AS 'MODULE_PATHNAME', 'gist_type3D_consistent' LANGUAGE C IMMUTABLE STRICT;
CREATE OR REPLACE FUNCTION gist_sphere_compress(internal) RETURNS internal AS 'MODULE_PATHNAME', 'gist_sphere_compress' LANGUAGE C IMMUTABLE STRICT;
CREATE OR REPLACE FUNCTION gist_sphere_distance(internal, Sphere, smallint, oid, internal) RETURNS float8 AS 'MODULE_PATHNAME', 'gist_sphere_distance' LANGUAGE C IMMUTABLE STRICT;
CREATE OPERATOR CLASS gist_sphere_ops
DEFAULT FOR TYPE sphere USING gist AS
-- strictly left
OPERATOR 1 << (Sphere, Point3D),
OPERATOR 41 << (Sphere, Lseg3D),
OPERATOR 81 << (Sphere, Line3D),
OPERATOR 121 << (Sphere, Box3D),
OPERATOR 161 << (Sphere, Path3D),
OPERATOR 201 << (Sphere, Polygon3D),
OPERATOR 241 << (Sphere, Sphere),
-- overlaps or left
OPERATOR 2 <<& (Sphere, Point3D),
OPERATOR 42 <<& (Sphere, Lseg3D),
OPERATOR 82 <<& (Sphere, Line3D),
OPERATOR 122 <<& (Sphere, Box3D),
OPERATOR 162 <<& (Sphere, Path3D),
OPERATOR 202 <<& (Sphere, Polygon3D),
OPERATOR 242 <<& (Sphere, Sphere),
-- overlaps
-- OPERATOR 43 && (Sphere, Lseg3D),
-- OPERATOR 83 && (Sphere, Line3D),
OPERATOR 123 && (Sphere, Box3D),
-- OPERATOR 163 && (Sphere, Path3D),
-- OPERATOR 203 && (Sphere, Polygon3D),
OPERATOR 243 && (Sphere, Sphere),
-- overlaps or right
OPERATOR 4 &>> (Sphere, Point3D),
OPERATOR 44 &>> (Sphere, Lseg3D),
OPERATOR 84 &>> (Sphere, Line3D),
OPERATOR 124 &>> (Sphere, Box3D),
OPERATOR 164 &>> (Sphere, Path3D),
OPERATOR 204 &>> (Sphere, Polygon3D),
OPERATOR 244 &>> (Sphere, Sphere),
-- strictly right
OPERATOR 5 >> (Sphere, Point3D),
OPERATOR 45 >> (Sphere, Lseg3D),
OPERATOR 85 >> (Sphere, Line3D),
OPERATOR 125 >> (Sphere, Box3D),
OPERATOR 165 >> (Sphere, Path3D),
OPERATOR 205 >> (Sphere, Polygon3D),
OPERATOR 245 >> (Sphere, Sphere),
-- same
OPERATOR 246 ~= (Sphere, Sphere),
-- contains
OPERATOR 7 @> (Sphere, Point3D),
OPERATOR 47 @> (Sphere, Lseg3D),
OPERATOR 127 @> (Sphere, Box3D),
OPERATOR 167 @> (Sphere, Path3D),
OPERATOR 207 @> (Sphere, Polygon3D),
OPERATOR 247 @> (Sphere, Sphere),
-- contained by
OPERATOR 128 <@ (Sphere, Box3D),
OPERATOR 248 <@ (Sphere, Sphere),
-- overlaps or below
OPERATOR 9 <<|& (Sphere, Point3D),
OPERATOR 49 <<|& (Sphere, Lseg3D),
OPERATOR 89 <<|& (Sphere, Line3D),
OPERATOR 129 <<|& (Sphere, Box3D),
OPERATOR 169 <<|& (Sphere, Path3D),
OPERATOR 209 <<|& (Sphere, Polygon3D),
OPERATOR 249 <<|& (Sphere, Sphere),
-- strictly below
OPERATOR 10 <<| (Sphere, Point3D),
OPERATOR 50 <<| (Sphere, Lseg3D),
OPERATOR 90 <<| (Sphere, Line3D),
OPERATOR 130 <<| (Sphere, Box3D),
OPERATOR 170 <<| (Sphere, Path3D),
OPERATOR 210 <<| (Sphere, Polygon3D),
OPERATOR 250 <<| (Sphere, Sphere),
-- strictly above
OPERATOR 11 |>> (Sphere, Point3D),
OPERATOR 51 |>> (Sphere, Lseg3D),
OPERATOR 91 |>> (Sphere, Line3D),
OPERATOR 131 |>> (Sphere, Box3D),
OPERATOR 171 |>> (Sphere, Path3D),
OPERATOR 211 |>> (Sphere, Polygon3D),
OPERATOR 251 |>> (Sphere, Sphere),
-- overlaps or above
OPERATOR 12 &|>> (Sphere, Point3D),
OPERATOR 52 &|>> (Sphere, Lseg3D),
OPERATOR 92 &|>> (Sphere, Line3D),
OPERATOR 132 &|>> (Sphere, Box3D),
OPERATOR 172 &|>> (Sphere, Path3D),
OPERATOR 212 &|>> (Sphere, Polygon3D),
OPERATOR 252 &|>> (Sphere, Sphere),
-- distance
OPERATOR 15 <-> (Sphere, Point3D) FOR ORDER BY pg_catalog.float_ops,
OPERATOR 55 <-> (Sphere, Lseg3D) FOR ORDER BY pg_catalog.float_ops,
OPERATOR 95 <-> (Sphere, Line3D) FOR ORDER BY pg_catalog.float_ops,
OPERATOR 135 <-> (Sphere, Box3D) FOR ORDER BY pg_catalog.float_ops,
OPERATOR 175 <-> (Sphere, Path3D) FOR ORDER BY pg_catalog.float_ops,
OPERATOR 215 <-> (Sphere, Polygon3D) FOR ORDER BY pg_catalog.float_ops,
OPERATOR 255 <-> (Sphere, Sphere) FOR ORDER BY pg_catalog.float_ops,
-- overlaps or front
OPERATOR 28 <</& (Sphere, Point3D),
OPERATOR 68 <</& (Sphere, Lseg3D),
OPERATOR 108 <</& (Sphere, Line3D),
OPERATOR 148 <</& (Sphere, Box3D),
OPERATOR 188 <</& (Sphere, Path3D),
OPERATOR 228 <</& (Sphere, Polygon3D),
OPERATOR 268 <</& (Sphere, Sphere),
-- strictly front
OPERATOR 29 <</ (Sphere, Point3D),
OPERATOR 69 <</ (Sphere, Lseg3D),
OPERATOR 109 <</ (Sphere, Line3D),
OPERATOR 149 <</ (Sphere, Box3D),
OPERATOR 189 <</ (Sphere, Path3D),
OPERATOR 229 <</ (Sphere, Polygon3D),
OPERATOR 269 <</ (Sphere, Sphere),
-- strictly back
OPERATOR 30 />> (Sphere, Point3D),
OPERATOR 70 />> (Sphere, Lseg3D),
OPERATOR 110 />> (Sphere, Line3D),
OPERATOR 150 />> (Sphere, Box3D),
OPERATOR 190 />> (Sphere, Path3D),
OPERATOR 230 />> (Sphere, Polygon3D),
OPERATOR 270 />> (Sphere, Sphere),
-- overlaps or back
OPERATOR 31 &/>> (Sphere, Point3D),
OPERATOR 71 &/>> (Sphere, Lseg3D),
OPERATOR 111 &/>> (Sphere, Line3D),
OPERATOR 151 &/>> (Sphere, Box3D),
OPERATOR 191 &/>> (Sphere, Path3D),
OPERATOR 231 &/>> (Sphere, Polygon3D),
OPERATOR 271 &/>> (Sphere, Sphere),
-- functions
FUNCTION 1 gist_sphere_consistent (internal, Sphere, smallint, oid, internal),
FUNCTION 2 gist_box3D_union (internal, internal),
FUNCTION 3 gist_sphere_compress (internal),
FUNCTION 4 gist_box3D_decompress (internal),
FUNCTION 5 gist_box3D_penalty (internal, internal, internal),
FUNCTION 6 gist_box3D_picksplit (internal, internal),
FUNCTION 7 gist_box3D_same (Box3D, Box3D, internal),
FUNCTION 8 gist_sphere_distance (internal, Sphere, smallint, oid, internal);
/******************************************************************************
* Support routines for the SP-GiST octree access method
*****************************************************************************/
CREATE OR REPLACE FUNCTION spgist_octree_config(internal, internal) RETURNS void AS 'MODULE_PATHNAME', 'spgist_octree_config' LANGUAGE C IMMUTABLE STRICT;
CREATE OR REPLACE FUNCTION spgist_octree_choose(internal, internal) RETURNS void AS 'MODULE_PATHNAME', 'spgist_octree_choose' LANGUAGE C IMMUTABLE STRICT;
CREATE OR REPLACE FUNCTION spgist_octree_picksplit(internal, internal) RETURNS void AS 'MODULE_PATHNAME', 'spgist_octree_picksplit' LANGUAGE C IMMUTABLE STRICT;
CREATE OR REPLACE FUNCTION spgist_octree_inner_consistent(internal, internal) RETURNS void AS 'MODULE_PATHNAME', 'spgist_octree_inner_consistent' LANGUAGE C IMMUTABLE STRICT;
CREATE OR REPLACE FUNCTION spgist_octree_leaf_consistent(internal, internal) RETURNS boolean AS 'MODULE_PATHNAME', 'spgist_octree_leaf_consistent' LANGUAGE C IMMUTABLE STRICT;
CREATE OPERATOR CLASS spgist_octree_ops
DEFAULT FOR TYPE Point3D
USING SPGiST AS
-- strictly left
OPERATOR 1 << (Point3D, Point3D),
OPERATOR 41 << (Point3D, Lseg3D),
OPERATOR 81 << (Point3D, Line3D),
OPERATOR 121 << (Point3D, Box3D),
OPERATOR 161 << (Point3D, Path3D),
OPERATOR 201 << (Point3D, Polygon3D),
OPERATOR 241 << (Point3D, Sphere),
-- strictly right
OPERATOR 5 >> (Point3D, Point3D),
OPERATOR 45 >> (Point3D, Lseg3D),
OPERATOR 85 >> (Point3D, Line3D),
OPERATOR 125 >> (Point3D, Box3D),
OPERATOR 165 >> (Point3D, Path3D),
OPERATOR 205 >> (Point3D, Polygon3D),
OPERATOR 245 >> (Point3D, Sphere),
-- same
OPERATOR 6 ~= (Point3D, Point3D),
-- contained by
OPERATOR 48 <@ (Point3D, Lseg3D),
OPERATOR 88 <@ (Point3D, Line3D),
OPERATOR 128 <@ (Point3D, Box3D),
OPERATOR 168 <@ (Point3D, Path3D),
OPERATOR 208 <@ (Point3D, Polygon3D),
OPERATOR 248 <@ (Point3D, Sphere),
-- strictly below
OPERATOR 10 <<| (Sphere, Point3D),
OPERATOR 50 <<| (Sphere, Lseg3D),
OPERATOR 90 <<| (Sphere, Line3D),
OPERATOR 130 <<| (Sphere, Box3D),
OPERATOR 170 <<| (Sphere, Path3D),
OPERATOR 210 <<| (Sphere, Polygon3D),
OPERATOR 250 <<| (Sphere, Sphere),
-- strictly above
OPERATOR 11 |>> (Sphere, Point3D),
OPERATOR 51 |>> (Sphere, Lseg3D),
OPERATOR 91 |>> (Sphere, Line3D),
OPERATOR 131 |>> (Sphere, Box3D),
OPERATOR 171 |>> (Sphere, Path3D),
OPERATOR 211 |>> (Sphere, Polygon3D),
OPERATOR 251 |>> (Sphere, Sphere),
-- strictly front
OPERATOR 29 <</ (Point3D, Point3D),
OPERATOR 69 <</ (Point3D, Lseg3D),
OPERATOR 109 <</ (Point3D, Line3D),
OPERATOR 149 <</ (Point3D, Box3D),
OPERATOR 189 <</ (Point3D, Path3D),
OPERATOR 229 <</ (Point3D, Polygon3D),
OPERATOR 269 <</ (Point3D, Sphere),
-- strictly back
OPERATOR 30 />> (Point3D, Point3D),
OPERATOR 70 />> (Point3D, Lseg3D),
OPERATOR 110 />> (Point3D, Line3D),
OPERATOR 150 />> (Point3D, Box3D),
OPERATOR 190 />> (Point3D, Path3D),
OPERATOR 230 />> (Point3D, Polygon3D),
OPERATOR 270 />> (Point3D, Sphere),
-- functions
FUNCTION 1 spgist_octree_config(internal, internal),
FUNCTION 2 spgist_octree_choose(internal, internal),
FUNCTION 3 spgist_octree_picksplit(internal, internal),
FUNCTION 4 spgist_octree_inner_consistent(internal, internal),
FUNCTION 5 spgist_octree_leaf_consistent(internal, internal);
/******************************************************************************/
/*
#define RTLeftStrategyNumber 1 /* for << */
#define RTOverLeftStrategyNumber 2 /* for <<& */
#define RTOverlapStrategyNumber 3 /* for && */
#define RTOverRightStrategyNumber 4 /* for &>> */
#define RTRightStrategyNumber 5 /* for >> */
#define RTSameStrategyNumber 6 /* for ~= */
#define RTContainsStrategyNumber 7 /* for @> */
#define RTContainedByStrategyNumber 8 /* for <@ */
#define RTOverBelowStrategyNumber 9 /* for <<|& */
#define RTBelowStrategyNumber 10 /* for <<| */
#define RTAboveStrategyNumber 11 /* for |>> */
#define RTOverAboveStrategyNumber 12 /* for &|>> */
#define RTOldContainsStrategyNumber 13 /* for old spelling of @> */
#define RTOldContainedByStrategyNumber 14 /* for old spelling of <@ */
#define RTKNNSearchStrategyNumber 15 /* for <-> (distance) */
#define RTContainsElemStrategyNumber 16 /* for range types @> elem */
#define RTAdjacentStrategyNumber 17 /* for -|- */
#define RTEqualStrategyNumber 18 /* for = */
#define RTNotEqualStrategyNumber 19 /* for != */
#define RTLessStrategyNumber 20 /* for < */
#define RTLessEqualStrategyNumber 21 /* for <= */
#define RTGreaterStrategyNumber 22 /* for > */
#define RTGreaterEqualStrategyNumber 23 /* for >= */
#define RTSubStrategyNumber 24 /* for inet >> */
#define RTSubEqualStrategyNumber 25 /* for inet <<= */
#define RTSuperStrategyNumber 26 /* for inet << */
#define RTSuperEqualStrategyNumber 27 /* for inet >>= */
#define RTMaxStrategyNumber 27
*/
/******************************************************************************/
|
--combination with group by ... having clause
create table rn_groupby(
col1 int auto_increment primary key,
col2 smallint,
col3 char(30) default 'abc',
col4 date default SYSDATE,
col5 clob
);
insert into rn_groupby(col2, col3, col4, col5) values(500, 'cubrid', '1990-10-10', '<EMAIL>');
insert into rn_groupby(col2, col3, col4, col5) values(500, 'cubrid', '1990-11-10', '<EMAIL>');
insert into rn_groupby(col2, col3, col4, col5) values(500, 'mysql', '1990-10-11', '<EMAIL>');
insert into rn_groupby(col2, col3, col4, col5) values(500, 'cubrid', '1990-10-10', '<EMAIL>');
insert into rn_groupby(col2, col3, col4, col5) values(500, 'cubrid', '1991-10-10', '<EMAIL>');
insert into rn_groupby(col2, col3, col4, col5) values(501, 'oracle', '1990-10-10', '<EMAIL>');
insert into rn_groupby(col2, col3, col4, col5) values(501, 'cubrid', '1992-10-10', '<EMAIL>');
insert into rn_groupby(col2, col3, col4, col5) values(501, 'oracle', '1990-11-10', '<EMAIL>');
insert into rn_groupby(col2, col3, col4, col5) values(501, 'mysql', '1990-10-10', '<EMAIL>');
insert into rn_groupby(col2, col3, col4, col5) values(501, 'cubrid', '1990-10-10', '<EMAIL>');
insert into rn_groupby(col2, col3, col4, col5) values(501, 'mysql', '1991-11-10', '<EMAIL>');
insert into rn_groupby(col2, col3, col4, col5) values(502, 'cubrid', '1990-10-10', '<EMAIL>');
insert into rn_groupby(col2, col3, col4, col5) values(502, 'mysql', '1990-10-10', '<EMAIL>');
insert into rn_groupby(col2, col3, col4, col5) values(502, 'mysql', '1992-10-10', '<EMAIL>');
insert into rn_groupby(col2, col3, col4, col5) values(503, 'mysql', '1992-10-10', '<EMAIL>');
insert into rn_groupby(col2, col3, col4, col5) values(503, 'cubrid', '1990-10-10', '<EMAIL>');
insert into rn_groupby(col2, col3, col4, col5) values(503, 'cubrid', '1990-10-10', '<EMAIL>');
insert into rn_groupby(col2, col3, col4, col5) values(503, 'oracle', '1993-11-10', '<EMAIL>');
insert into rn_groupby(col2, col3, col4, col5) values(503, 'oracle', '1993-10-10', '<EMAIL>');
insert into rn_groupby(col2, col3, col4, col5) values(503, 'cubrid', '1993-11-10', '<EMAIL>');
insert into rn_groupby(col2, col3, col4, col5) values(503, 'cubrid', '1992-10-10', '<EMAIL>');
insert into rn_groupby(col2, col3, col4, col5) values(504, 'mysql', '1994-10-10', '<EMAIL>');
insert into rn_groupby(col2, col3, col4, col5) values(504, 'mysql', '1990-10-10', null);
insert into rn_groupby(col2, col3, col4, col5) values(504, 'cubrid', '1995-11-10', '<EMAIL>');
insert into rn_groupby(col2, col3, col4, col5) values(505, 'cubrid', '1991-10-10', '');
insert into rn_groupby(col2, col3, col4, col5) values(505, 'cubrid', '1996-10-10', '<EMAIL>');
insert into rn_groupby(col2, col3, col4, col5) values(505, 'mysql', '1990-10-10', '<EMAIL>');
insert into rn_groupby(col2, col3, col4, col5) values(505, 'cubrid', '1995-10-10', null);
insert into rn_groupby(col2, col3, col4, col5) values(505, 'cubrid', '1990-10-10', '<EMAIL>');
--TEST: over() clause + group by
select row_num from (select col1, row_number() over() row_num from rn_groupby group by col1) order by 1;
select row_num from (select col2, row_number() over() row_num from rn_groupby group by col2) order by 1;
select row_num from (select col1, col2, row_number() over() row_num from rn_groupby group by col1) order by 1;
select row_num from (select col1, col2, row_number() over() row_num, col3 from rn_groupby group by col2) order by 1;
select row_num from (select col1, col2, row_number() over() row_num from rn_groupby group by col1, col2) order by 1;
--TEST: over(partition by) clause + group by
select col3, row_number() over(partition by col3) row_num from rn_groupby group by col3;
select col4, row_number() over(partition by col4) row_num from rn_groupby group by col4;
select col3, col4, row_number() over(partition by col4) row_num from rn_groupby group by col4;
select col3, col4, row_number() over(partition by col3) row_num from rn_groupby group by col3, col4;
select col3, col4, clob_to_char(col5), row_number() over(partition by col4) row_num from rn_groupby group by col3, col4;
--TEST: over(order by) clause + group by
select col1, row_number() over(order by col1) row_num from rn_groupby group by col1;
select col2, row_number() over(order by col2) row_num from rn_groupby group by col2;
select col1, col2, row_number() over(order by col1) row_num from rn_groupby group by col1;
select col1, col2, row_number() over(order by col1, col2) row_num, col3 from rn_groupby group by col2;
select col1, col2, row_number() over(order by col2) row_num from rn_groupby group by col1, col2;
--TEST: over(partition by.. order by ..) clause + group by
select col3, row_number() over(partition by col3 order by col3) row_num from rn_groupby group by col3;
select col4, row_number() over(partition by col4 order by col4) row_num from rn_groupby group by col4;
select col3, col4, row_number() over(partition by col4 order by col3) row_num from rn_groupby group by col4;
select col3, col4, row_number() over(partition by col3 order by col4) row_num from rn_groupby group by col3, col4;
select col3, col4, clob_to_char(col5), row_number() over(partition by col4 order by col3) row_num from rn_groupby group by col3, col4;
--TEST: over(partition by.. order by ..) clause + group by ... having ...
select col1, row_number() over(partition by col1 order by col1) row_num from rn_groupby group by col1 having col1 > 500;
select col4, row_number() over(partition by col4 order by col4) row_num from rn_groupby group by col4 having right(clob_to_char(col5), 4) = '.com';
select col1, col2, col3, col4, clob_to_char(col5), row_number() over(partition by col3 order by col1) row_num from rn_groupby group by col1, col2, col3, col4 having col2 in ('cubrid', 'mysql') and right(clob_to_char(col5), 12) = '@domainname.com';
delete from rn_groupby;
drop table rn_groupby;
|
<filename>hasura/migrations/1607997820691_squashed/down.sql
ALTER TABLE "public"."TranscriptionJob" DROP COLUMN "languageCode";
ALTER TABLE "public"."TranscriptionJob" DROP COLUMN "transcriptionS3Url";
DROP TABLE "public"."TranscriptionJob";
|
<filename>database_files/Scripts parciais/scripts segunda xml/Minha Maquina Virtual TRABALHO1~1.sql
create or replace directory XMLDIR as '/home/oracle/xmldir';
/
DECLARE
BEGIN
DBMS_XMLSCHEMA.registerSchema(
SCHEMAURL => 'https://raw.githubusercontent.com/Nagashitw/dw/master/database_files/xml/dishes.xml',
SCHEMADOC => bfilename ('XMLDIR','dishes.xml'),
CSID => nls_charset_id('AL32UTF8'));
END;
/
select * from user_xml_schamas;
|
<gh_stars>0
DROP FUNCTION IF EXISTS geocode
(
house VARCHAR,
category VARCHAR,
near VARCHAR,
house_number VARCHAR,
road VARCHAR,
unit VARCHAR,
level VARCHAR,
staircase VARCHAR,
entrance VARCHAR,
po_box VARCHAR,
postcode VARCHAR,
suburb VARCHAR,
city_district VARCHAR,
city VARCHAR,
island VARCHAR,
state_district VARCHAR,
state VARCHAR,
country_region VARCHAR,
country VARCHAR,
world_region VARCHAR
);
DROP TYPE IF EXISTS geocode_result;
|
--------------------------------------------------------------------------------
-- DOCUMENT --------------------------------------------------------------------
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
-- EventDocumentCreate ---------------------------------------------------------
--------------------------------------------------------------------------------
CREATE OR REPLACE FUNCTION EventDocumentCreate (
pObject uuid DEFAULT context_object()
) RETURNS void
AS $$
BEGIN
PERFORM WriteToEventLog('M', 1000, 'create', 'Документ создан.', pObject);
END;
$$ LANGUAGE plpgsql;
--------------------------------------------------------------------------------
-- EventDocumentOpen -----------------------------------------------------------
--------------------------------------------------------------------------------
CREATE OR REPLACE FUNCTION EventDocumentOpen (
pObject uuid DEFAULT context_object()
) RETURNS void
AS $$
BEGIN
PERFORM WriteToEventLog('M', 1000, 'open', 'Документ открыт.', pObject);
END;
$$ LANGUAGE plpgsql;
--------------------------------------------------------------------------------
-- EventDocumentEdit -----------------------------------------------------------
--------------------------------------------------------------------------------
CREATE OR REPLACE FUNCTION EventDocumentEdit (
pObject uuid DEFAULT context_object()
) RETURNS void
AS $$
-- DECLARE
-- uArea uuid;
-- uAreaType uuid;
BEGIN
-- SELECT area INTO uArea FROM db.document WHERE id = pObject;
-- SELECT type INTO uAreaType FROM db.area WHERE id = uArea;
-- IF uAreaType IS NOT DISTINCT FROM '00000000-0000-4002-a001-000000000000' THEN -- equally default area type
-- IF uAreaType IS DISTINCT FROM current_area_type() THEN
-- PERFORM DefaultAreaDocumentError();
-- END IF;
-- END IF;
PERFORM WriteToEventLog('M', 1000, 'edit', 'Документ изменён.', pObject);
END;
$$ LANGUAGE plpgsql;
--------------------------------------------------------------------------------
-- EventDocumentSave -----------------------------------------------------------
--------------------------------------------------------------------------------
CREATE OR REPLACE FUNCTION EventDocumentSave (
pObject uuid DEFAULT context_object()
) RETURNS void
AS $$
BEGIN
PERFORM WriteToEventLog('M', 1000, 'save', 'Документ сохранён.', pObject);
END;
$$ LANGUAGE plpgsql;
--------------------------------------------------------------------------------
-- EventDocumentEnable ---------------------------------------------------------
--------------------------------------------------------------------------------
CREATE OR REPLACE FUNCTION EventDocumentEnable (
pObject uuid default context_object()
) RETURNS void
AS $$
BEGIN
PERFORM WriteToEventLog('M', 1000, 'enable', 'Документ включен.', pObject);
END;
$$ LANGUAGE plpgsql;
--------------------------------------------------------------------------------
-- EventDocumentDisable --------------------------------------------------------
--------------------------------------------------------------------------------
CREATE OR REPLACE FUNCTION EventDocumentDisable (
pObject uuid default context_object()
) RETURNS void
AS $$
BEGIN
PERFORM WriteToEventLog('M', 1000, 'disable', 'Документ выключен.', pObject);
END;
$$ LANGUAGE plpgsql;
--------------------------------------------------------------------------------
-- EventDocumentDelete ---------------------------------------------------------
--------------------------------------------------------------------------------
CREATE OR REPLACE FUNCTION EventDocumentDelete (
pObject uuid default context_object()
) RETURNS void
AS $$
BEGIN
PERFORM WriteToEventLog('M', 1000, 'delete', 'Документ удалён.', pObject);
END;
$$ LANGUAGE plpgsql;
--------------------------------------------------------------------------------
-- EventDocumentRestore --------------------------------------------------------
--------------------------------------------------------------------------------
CREATE OR REPLACE FUNCTION EventDocumentRestore (
pObject uuid default context_object()
) RETURNS void
AS $$
BEGIN
PERFORM WriteToEventLog('M', 1000, 'restore', 'Документ восстановлен.', pObject);
END;
$$ LANGUAGE plpgsql;
--------------------------------------------------------------------------------
-- EventDocumentDrop -----------------------------------------------------------
--------------------------------------------------------------------------------
CREATE OR REPLACE FUNCTION EventDocumentDrop (
pObject uuid default context_object()
) RETURNS void
AS $$
DECLARE
r record;
BEGIN
SELECT label INTO r FROM db.object_text WHERE object = pObject AND locale = current_locale();
DELETE FROM db.document WHERE id = pObject;
PERFORM WriteToEventLog('W', 1000, 'drop', '[' || pObject || '] [' || coalesce(r.label, '') || '] Документ уничтожен.');
END;
$$ LANGUAGE plpgsql;
|
select dname, count(sex)
from employee, department
where dno = dnumber
and sex = 'M'
and dno in
(select dno from
(select avg(salary) as avs, dno
from employee
group by dno) as depavg
where avs > 30000)
group by dno |
<filename>src/sql/mv_games.sql
-- View: public.mv_all_games
-- DROP MATERIALIZED VIEW public.mv_all_games;
CREATE MATERIALIZED VIEW mv_games
TABLESPACE pg_default
AS
SELECT udata2.compname,
udata2.folder,
udata2.ext
FROM udata2
WHERE (udata2.folder ~~ '%game%'::text OR udata2.folder ~~ '%игры%'::text OR udata2.folder ~~ '%игра%'::text) AND udata2.ext::text ~~ 'exe'::text AND udata2.folder !~~ '%C:\Windows\%'::TEXT
ORDER BY udata2.compname
WITH DATA;
ALTER TABLE mv_games
OWNER TO udatauser2;
CREATE OR REPLACE VIEW v_games AS
select
mv_games.compname,
mv_games.folder,
mv_games.ext
from mv_games
|
<filename>Query/Temporal/initialize temporal.sql<gh_stars>1-10
use demo
go
declare @CurrentDate datetime2(7) = sysutcdatetime();
exec dbo._SetLastChangeDate @tablename = 'dbo.Product', @CurrentDate = @CurrentDate; |
<filename>data/open-source/extracted_sql/gpodder_mygpo.sql<gh_stars>1-10
select reltuples from pg_class where relname='%s';
|
<reponame>navikt/fp-abakus<filename>migreringer/src/main/resources/db/migration/defaultDS/1.0/V1.1_42__overstyrt_periode.sql
CREATE TABLE IAY_OVERSTYRTE_PERIODER
(
ID bigint not null,
FOM DATE NOT NULL,
TOM DATE NOT NULL,
ARBEIDSFORHOLD_ID bigint NOT NULL,
versjon bigint DEFAULT 0 NOT NULL,
opprettet_av VARCHAR(20) default 'VL' not null,
opprettet_tid timestamp(3) default current_timestamp not null,
endret_av VARCHAR(20),
endret_tid timestamp(3),
constraint PK_IAY_OVERSTYRTE_PERIODER primary key (ID),
constraint FK_IAY_OVERSTYRTE_PERIODER FOREIGN KEY (ARBEIDSFORHOLD_ID) REFERENCES IAY_ARBEIDSFORHOLD (id)
);
COMMENT ON TABLE IAY_OVERSTYRTE_PERIODER IS 'En tabell for overstyrte ansettelsesperioder for arbeidsforhold.';
COMMENT ON COLUMN IAY_OVERSTYRTE_PERIODER.FOM IS 'Fra og med dato til perioden for arbeidsforholdet.';
COMMENT ON COLUMN IAY_OVERSTYRTE_PERIODER.TOM IS 'Til og med dato til perioden for arbeidsforholdet.';
COMMENT ON COLUMN IAY_OVERSTYRTE_PERIODER.ARBEIDSFORHOLD_ID IS 'FK til IAY_ARBEIDSFORHOLD sin PK.';
CREATE INDEX IDX_IAY_OVERSTYRTE_PERIODER_1 ON IAY_OVERSTYRTE_PERIODER (ARBEIDSFORHOLD_ID);
|
UPDATE [__InedoDb_DbSchemaChanges]
SET [ErrorResolved_Text] = NULLIF(@ErrorResolved_Text, N''),
[ErrorResolved_Date] = GETUTCDATE()
WHERE [Script_Guid] = @Script_Guid
|
<filename>migreringer/src/main/resources/db/migration/defaultDS/1.0/V1.1_10__Feillogg_DDL.sql<gh_stars>1-10
CREATE TABLE EVENTMOTTAK_FEILLOGG
(
ID BIGINT NOT NULL,
MELDING TEXT NOT NULL,
STATUS VARCHAR(100) NOT NULL,
ANTALL_FEILEDE_FORSOK INT DEFAULT 0,
SISTE_KJORING_TS TIMESTAMP(3),
FEILMELDING_SISTE_KJORING TEXT,
KL_STATUS VARCHAR(100) DEFAULT ('EVENTMOTTAK_STATUS') NOT NULL,
versjon INT DEFAULT 0 NOT NULL,
opprettet_av VARCHAR(20) DEFAULT 'VL' NOT NULL,
opprettet_tid TIMESTAMP(3) DEFAULT localtimestamp NOT NULL,
endret_av VARCHAR(20),
endret_tid TIMESTAMP(3),
CONSTRAINT PK_EVENTMOTTAK_FEILLOGG PRIMARY KEY (ID)
);
CREATE SEQUENCE SEQ_EVENTMOTTAK_FEILLOGG MINVALUE 1000000 MAXVALUE 999999999999999999 INCREMENT BY 50 START WITH 1003000 NO CYCLE;
CREATE INDEX IDX_EVENTMOTTAK_FEILLOGG_1 on EVENTMOTTAK_FEILLOGG (STATUS);
CREATE INDEX IDX_EVENTMOTTAK_FEILLOGG_2 on EVENTMOTTAK_FEILLOGG (SISTE_KJORING_TS);
ALTER TABLE EVENTMOTTAK_FEILLOGG
ADD CONSTRAINT FK_EVENTMOTTAK_FEILLOGG_1
FOREIGN KEY (KL_STATUS, STATUS) REFERENCES KODELISTE (kodeverk, kode);
COMMENT ON TABLE EVENTMOTTAK_FEILLOGG is 'Feillogg for eventer som kommer fra fpsak';
COMMENT ON COLUMN EVENTMOTTAK_FEILLOGG.ID IS 'PK';
COMMENT ON COLUMN EVENTMOTTAK_FEILLOGG.MELDING IS 'Meldingen som kom fra eventkøen';
COMMENT ON COLUMN EVENTMOTTAK_FEILLOGG.STATUS IS 'Status for meldingen';
COMMENT ON COLUMN EVENTMOTTAK_FEILLOGG.ANTALL_FEILEDE_FORSOK IS 'Antallet feilede forsøk';
COMMENT ON COLUMN EVENTMOTTAK_FEILLOGG.SISTE_KJORING_TS IS 'Tidspunkt for siste kjøring';
COMMENT ON COLUMN EVENTMOTTAK_FEILLOGG.FEILMELDING_SISTE_KJORING IS 'Feilmelding for siste kjøring'; |
-- corrupt.test
--
-- execsql { INSERT INTO t1 VALUES(i, text) }
INSERT INTO t1 VALUES(i, text)
|
<filename>resources/db/patches/mysql/0425~releases.sql
#Change categoryids of existing releases to new values.
UPDATE releases SET categoryid = 7999 WHERE categoryid = 7050;
UPDATE releases SET categoryid = 7050 WHERE categoryid = 7010;
UPDATE releases SET categoryid = 7010 WHERE categoryid = 7030;
UPDATE releases SET categoryid = 7030 WHERE categoryid = 7020;
UPDATE releases SET categoryid = 7020 WHERE categoryid = 7050;
|
<gh_stars>10-100
create table headphones
(
id bigint generated by default as identity
constraint headphones_pkey
primary key,
description varchar(255),
name varchar(255),
type varchar(255),
user_id bigint
constraint fkfd63f5wlyo1y7e4c4i746amn0
references user_account
);
alter table if exists audiometry_history
add headphones int8;
alter table if exists audiometry_history
drop constraint ukekiuxjh0lvrl6mdkwifwskq5v;
alter table if exists audiometry_history
add constraint headphones_foreign_keys foreign key (headphones) references headphones;
alter table if exists audiometry_history
add constraint unique_columns unique (user_id, audiometry_task_id, start_time, headphones);
alter table if exists audiometry_history
add constraint not_null_headphones check ( headphones > 0 ) |
<reponame>Joelstraley/Eat-a-Burger
INSERT INTO burgers (burger_name, devoured)
VALUES ("Beyond Burger", FALSE);
INSERT INTO burgers (burger_name, devoured)
VALUES ("Impossible Burger", TRUE);
INSERT INTO burgers (burger_name, devoured)
VALUES ("Baconator", FALSE);
INSERT INTO burgers (burger_name, devoured)
VALUES ("Big Mac", TRUE); |
<reponame>JokerRun/flink-sql-cookbook
CREATE TABLE orders (
id INT,
order_time AS TIMESTAMPADD(DAY, CAST(FLOOR(RAND()*(1-5+1)+5)*(-1) AS INT), CURRENT_TIMESTAMP)
)
WITH (
'connector' = 'datagen',
'rows-per-second'='10',
'fields.id.kind'='sequence',
'fields.id.start'='1',
'fields.id.end'='1000'
);
CREATE TABLE shipments (
id INT,
order_id INT,
shipment_time AS TIMESTAMPADD(DAY, CAST(FLOOR(RAND()*(1-5+1)) AS INT), CURRENT_TIMESTAMP)
)
WITH (
'connector' = 'datagen',
'rows-per-second'='5',
'fields.id.kind'='random',
'fields.id.min'='0',
'fields.order_id.kind'='sequence',
'fields.order_id.start'='1',
'fields.order_id.end'='1000'
);
SELECT
o.id AS order_id,
o.order_time,
s.shipment_time,
TIMESTAMPDIFF(DAY,o.order_time,s.shipment_time) AS day_diff
FROM orders o
JOIN shipments s ON o.id = s.order_id
WHERE
o.order_time BETWEEN s.shipment_time - INTERVAL '3' DAY AND s.shipment_time; |
<reponame>HTiSolutions/ContainerApplication<filename>db_init.sql
CREATE SCHEMA `container_demo` ;
CREATE TABLE `container_demo`.`user` (
`id` INT NOT NULL AUTO_INCREMENT,
`forename` VARCHAR(45) NOT NULL,
`surname` VARCHAR(45) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE INDEX `id_UNIQUE` (`id` ASC));
|
CREATE TABLE QRTZ_JOB_DETAILS
(
SCHED_NAME VARCHAR2(120) NOT NULL,
JOB_NAME VARCHAR2(200) NOT NULL,
JOB_GROUP VARCHAR2(200) NOT NULL,
DESCRIPTION VARCHAR2(250) NULL,
JOB_CLASS_NAME VARCHAR2(250) NOT NULL,
IS_DURABLE VARCHAR2(1) NOT NULL,
IS_NONCONCURRENT VARCHAR2(1) NOT NULL,
IS_UPDATE_DATA VARCHAR2(1) NOT NULL,
REQUESTS_RECOVERY VARCHAR2(1) NOT NULL,
JOB_DATA BLOB NULL,
CONSTRAINT QRTZ_JOB_DETAILS_PK PRIMARY KEY (SCHED_NAME,JOB_NAME,JOB_GROUP)
);
CREATE TABLE QRTZ_TRIGGERS
(
SCHED_NAME VARCHAR2(120) NOT NULL,
TRIGGER_NAME VARCHAR2(200) NOT NULL,
TRIGGER_GROUP VARCHAR2(200) NOT NULL,
JOB_NAME VARCHAR2(200) NOT NULL,
JOB_GROUP VARCHAR2(200) NOT NULL,
DESCRIPTION VARCHAR2(250) NULL,
NEXT_FIRE_TIME NUMBER(19) NULL,
PREV_FIRE_TIME NUMBER(19) NULL,
PRIORITY NUMBER(13) NULL,
TRIGGER_STATE VARCHAR2(16) NOT NULL,
TRIGGER_TYPE VARCHAR2(8) NOT NULL,
START_TIME NUMBER(19) NOT NULL,
END_TIME NUMBER(19) NULL,
CALENDAR_NAME VARCHAR2(200) NULL,
MISFIRE_INSTR NUMBER(2) NULL,
JOB_DATA BLOB NULL,
CONSTRAINT QRTZ_TRIGGERS_PK PRIMARY KEY (SCHED_NAME,TRIGGER_NAME,TRIGGER_GROUP),
CONSTRAINT QRTZ_TRIGGER_TO_JOBS_FK FOREIGN KEY (SCHED_NAME,JOB_NAME,JOB_GROUP)
REFERENCES QRTZ_JOB_DETAILS(SCHED_NAME,JOB_NAME,JOB_GROUP)
);
CREATE TABLE QRTZ_SIMPLE_TRIGGERS
(
SCHED_NAME VARCHAR2(120) NOT NULL,
TRIGGER_NAME VARCHAR2(200) NOT NULL,
TRIGGER_GROUP VARCHAR2(200) NOT NULL,
REPEAT_COUNT NUMBER(7) NOT NULL,
REPEAT_INTERVAL NUMBER(12) NOT NULL,
TIMES_TRIGGERED NUMBER(10) NOT NULL,
CONSTRAINT QRTZ_SIMPLE_TRIG_PK PRIMARY KEY (SCHED_NAME,TRIGGER_NAME,TRIGGER_GROUP),
CONSTRAINT QRTZ_SIMPLE_TRIG_TO_TRIG_FK FOREIGN KEY (SCHED_NAME,TRIGGER_NAME,TRIGGER_GROUP)
REFERENCES QRTZ_TRIGGERS(SCHED_NAME,TRIGGER_NAME,TRIGGER_GROUP)
);
CREATE TABLE QRTZ_CRON_TRIGGERS
(
SCHED_NAME VARCHAR2(120) NOT NULL,
TRIGGER_NAME VARCHAR2(200) NOT NULL,
TRIGGER_GROUP VARCHAR2(200) NOT NULL,
CRON_EXPRESSION VARCHAR2(120) NOT NULL,
TIME_ZONE_ID VARCHAR2(80),
CONSTRAINT QRTZ_CRON_TRIG_PK PRIMARY KEY (SCHED_NAME,TRIGGER_NAME,TRIGGER_GROUP),
CONSTRAINT QRTZ_CRON_TRIG_TO_TRIG_FK FOREIGN KEY (SCHED_NAME,TRIGGER_NAME,TRIGGER_GROUP)
REFERENCES QRTZ_TRIGGERS(SCHED_NAME,TRIGGER_NAME,TRIGGER_GROUP)
);
CREATE TABLE QRTZ_SIMPROP_TRIGGERS
(
SCHED_NAME VARCHAR2(120) NOT NULL,
TRIGGER_NAME VARCHAR2(200) NOT NULL,
TRIGGER_GROUP VARCHAR2(200) NOT NULL,
STR_PROP_1 VARCHAR2(512) NULL,
STR_PROP_2 VARCHAR2(512) NULL,
STR_PROP_3 VARCHAR2(512) NULL,
INT_PROP_1 NUMBER(10) NULL,
INT_PROP_2 NUMBER(10) NULL,
LONG_PROP_1 NUMBER(19) NULL,
LONG_PROP_2 NUMBER(19) NULL,
DEC_PROP_1 NUMERIC(13,4) NULL,
DEC_PROP_2 NUMERIC(13,4) NULL,
BOOL_PROP_1 VARCHAR2(1) NULL,
BOOL_PROP_2 VARCHAR2(1) NULL,
TIME_ZONE_ID VARCHAR2(80) NULL,
CONSTRAINT QRTZ_SIMPROP_TRIG_PK PRIMARY KEY (SCHED_NAME,TRIGGER_NAME,TRIGGER_GROUP),
CONSTRAINT QRTZ_SIMPROP_TRIG_TO_TRIG_FK FOREIGN KEY (SCHED_NAME,TRIGGER_NAME,TRIGGER_GROUP)
REFERENCES QRTZ_TRIGGERS(SCHED_NAME,TRIGGER_NAME,TRIGGER_GROUP)
);
CREATE TABLE QRTZ_BLOB_TRIGGERS
(
SCHED_NAME VARCHAR2(120) NOT NULL,
TRIGGER_NAME VARCHAR2(200) NOT NULL,
TRIGGER_GROUP VARCHAR2(200) NOT NULL,
BLOB_DATA BLOB NULL,
CONSTRAINT QRTZ_BLOB_TRIG_PK PRIMARY KEY (SCHED_NAME,TRIGGER_NAME,TRIGGER_GROUP),
CONSTRAINT QRTZ_BLOB_TRIG_TO_TRIG_FK FOREIGN KEY (SCHED_NAME,TRIGGER_NAME,TRIGGER_GROUP)
REFERENCES QRTZ_TRIGGERS(SCHED_NAME,TRIGGER_NAME,TRIGGER_GROUP)
);
CREATE TABLE QRTZ_PAUSED_TRIGGER_GRPS
(
SCHED_NAME VARCHAR2(120) NOT NULL,
TRIGGER_GROUP VARCHAR2(200) NOT NULL,
CONSTRAINT QRTZ_PAUSED_TRIG_GRPS_PK PRIMARY KEY (SCHED_NAME,TRIGGER_GROUP)
);
CREATE TABLE QRTZ_FIRED_TRIGGERS
(
SCHED_NAME VARCHAR2(120) NOT NULL,
ENTRY_ID VARCHAR2(140) NOT NULL,
TRIGGER_NAME VARCHAR2(200) NOT NULL,
TRIGGER_GROUP VARCHAR2(200) NOT NULL,
INSTANCE_NAME VARCHAR2(200) NOT NULL,
FIRED_TIME NUMBER(19) NOT NULL,
SCHED_TIME NUMBER(19) NOT NULL,
PRIORITY NUMBER(13) NOT NULL,
STATE VARCHAR2(16) NOT NULL,
JOB_NAME VARCHAR2(200) NULL,
JOB_GROUP VARCHAR2(200) NULL,
IS_NONCONCURRENT VARCHAR2(1) NULL,
REQUESTS_RECOVERY VARCHAR2(1) NULL,
CONSTRAINT QRTZ_FIRED_TRIGGER_PK PRIMARY KEY (SCHED_NAME,ENTRY_ID)
);
CREATE TABLE QRTZ_SCHEDULER_STATE
(
SCHED_NAME VARCHAR2(120) NOT NULL,
INSTANCE_NAME VARCHAR2(200) NOT NULL,
LAST_CHECKIN_TIME NUMBER(19) NOT NULL,
CHECKIN_INTERVAL NUMBER(13) NOT NULL,
CONSTRAINT QRTZ_SCHEDULER_STATE_PK PRIMARY KEY (SCHED_NAME,INSTANCE_NAME)
);
CREATE TABLE QRTZ_LOCKS
(
SCHED_NAME VARCHAR2(120) NOT NULL,
LOCK_NAME VARCHAR2(40) NOT NULL,
CONSTRAINT QRTZ_LOCKS_PK PRIMARY KEY (SCHED_NAME,LOCK_NAME)
);
CREATE INDEX IDX_QRTZ_J_REQ_RECOVERY ON QRTZ_JOB_DETAILS(SCHED_NAME,REQUESTS_RECOVERY);
CREATE INDEX IDX_QRTZ_J_GRP ON QRTZ_JOB_DETAILS(SCHED_NAME,JOB_GROUP);
CREATE INDEX IDX_QRTZ_T_J ON QRTZ_TRIGGERS(SCHED_NAME,JOB_NAME,JOB_GROUP);
CREATE INDEX IDX_QRTZ_T_JG ON QRTZ_TRIGGERS(SCHED_NAME,JOB_GROUP);
CREATE INDEX IDX_QRTZ_T_C ON QRTZ_TRIGGERS(SCHED_NAME,CALENDAR_NAME);
CREATE INDEX IDX_QRTZ_T_G ON QRTZ_TRIGGERS(SCHED_NAME,TRIGGER_GROUP);
CREATE INDEX IDX_QRTZ_T_STATE ON QRTZ_TRIGGERS(SCHED_NAME,TRIGGER_STATE);
CREATE INDEX IDX_QRTZ_T_N_STATE ON QRTZ_TRIGGERS(SCHED_NAME,TRIGGER_NAME,TRIGGER_GROUP,TRIGGER_STATE);
CREATE INDEX IDX_QRTZ_T_N_G_STATE ON QRTZ_TRIGGERS(SCHED_NAME,TRIGGER_GROUP,TRIGGER_STATE);
CREATE INDEX IDX_QRTZ_T_NEXT_FIRE_TIME ON QRTZ_TRIGGERS(SCHED_NAME,NEXT_FIRE_TIME);
CREATE INDEX IDX_QRTZ_T_NFT_ST ON QRTZ_TRIGGERS(SCHED_NAME,TRIGGER_STATE,NEXT_FIRE_TIME);
CREATE INDEX IDX_QRTZ_T_NFT_MISFIRE ON QRTZ_TRIGGERS(SCHED_NAME,MISFIRE_INSTR,NEXT_FIRE_TIME);
CREATE INDEX IDX_QRTZ_T_NFT_ST_MISFIRE ON QRTZ_TRIGGERS(SCHED_NAME,MISFIRE_INSTR,NEXT_FIRE_TIME,TRIGGER_STATE);
CREATE INDEX IDX_QRTZ_T_NFT_ST_MISFIRE_GRP ON QRTZ_TRIGGERS(SCHED_NAME,MISFIRE_INSTR,NEXT_FIRE_TIME,TRIGGER_GROUP,TRIGGER_STATE);
CREATE INDEX IDX_QRTZ_FT_TRIG_INST_NAME ON QRTZ_FIRED_TRIGGERS(SCHED_NAME,INSTANCE_NAME);
CREATE INDEX IDX_QRTZ_FT_INST_JOB_REQ_RCVRY ON QRTZ_FIRED_TRIGGERS(SCHED_NAME,INSTANCE_NAME,REQUESTS_RECOVERY);
CREATE INDEX IDX_QRTZ_FT_J_G ON QRTZ_FIRED_TRIGGERS(SCHED_NAME,JOB_NAME,JOB_GROUP);
CREATE INDEX IDX_QRTZ_FT_JG ON QRTZ_FIRED_TRIGGERS(SCHED_NAME,JOB_GROUP);
CREATE INDEX IDX_QRTZ_FT_T_G ON QRTZ_FIRED_TRIGGERS(SCHED_NAME,TRIGGER_NAME,TRIGGER_GROUP);
CREATE INDEX IDX_QRTZ_FT_TG ON QRTZ_FIRED_TRIGGERS(SCHED_NAME,TRIGGER_GROUP); |
-- This file should undo anything in `up.sql`
DROP TABLE IF EXISTS proposals;
DROP TABLE IF EXISTS funds;
DROP TABLE IF EXISTS voteplans;
DROP TABLE IF EXISTS api_tokens;
DROP VIEW IF EXISTS full_proposals_info;
|
<filename>ext_scripts/pg_dbms_stats--1.3.6--1.3.7-9.3.sql
/* pg_dbms_stats/pg_dbms_stats--1.3.6--1.3.7.sql */
-- complain if script is sourced in psql, rather than via CREATE EXTENSION
\echo Use "ALTER EXTENSION pg_dbms_stats UPDATE TO '1.3.7'" to load this file. \quit
/*
* Stuff for manipulating statistics
*/
/* Primitive functions for tweaking statistics */
CREATE FUNCTION dbms_stats.anyarray_basetype(dbms_stats.anyarray)
RETURNS name
AS 'MODULE_PATHNAME', 'dbms_stats_anyarray_basetype'
LANGUAGE C STABLE;
CREATE FUNCTION dbms_stats.type_is_analyzable(oid) returns bool
AS 'MODULE_PATHNAME', 'dbms_stats_type_is_analyzable'
LANGUAGE C STRICT STABLE;
/*
* Create and drop a cast necessary to set column values of dbms_stats.anyarray
* type.
*/
CREATE OR REPLACE FUNCTION dbms_stats.prepare_statstweak(regtype)
RETURNS text AS $$
DECLARE
srctypname varchar;
funcname varchar;
funcdef varchar;
castdef varchar;
BEGIN
srctypname := $1 || '[]';
funcname := 'dbms_stats._' || replace($1::text, ' ', '_') || '_ary_anyarray';
funcdef := funcname || '(' || srctypname || ')';
castdef := '(' || srctypname || ' AS dbms_stats.anyarray)';
IF (NOT dbms_stats.type_is_analyzable($1::regtype)) THEN
RAISE 'the type can not have statistics';
END IF;
EXECUTE 'CREATE FUNCTION ' || funcdef ||
' RETURNS dbms_stats.anyarray ' ||
' AS ''pg_dbms_stats'', ''dbms_stats_anyary_anyary'''||
' LANGUAGE C STRICT IMMUTABLE';
EXECUTE 'CREATE CAST '|| castdef ||
' WITH FUNCTION ' || funcdef ||
' AS ASSIGNMENT';
RETURN '(func ' || funcdef || ', cast ' || castdef || ')';
EXCEPTION
WHEN duplicate_function THEN
RAISE 'run dbms_stats.drop_statstweak() for the type before this';
END;
$$ LANGUAGE plpgsql;
CREATE OR REPLACE FUNCTION dbms_stats.drop_statstweak(regtype)
RETURNS text AS $$
DECLARE
srctypname varchar;
funcname varchar;
funcdef varchar;
castdef varchar;
BEGIN
srctypname := $1 || '[]';
funcname := 'dbms_stats._' || replace($1::text, ' ', '_') || '_ary_anyarray';
funcdef := funcname || '(' || srctypname || ')';
castdef := '(' || srctypname || ' AS dbms_stats.anyarray)';
EXECUTE 'DROP CAST ' || castdef;
EXECUTE 'DROP FUNCTION ' || funcdef;
RETURN '(func ' || funcdef || ', cast ' || castdef || ')';
EXCEPTION
WHEN undefined_function OR undefined_object THEN
RAISE 'function % or cast % does not exist', funcdef, castdef;
END;
$$ LANGUAGE plpgsql;
|
-- create classes,alter class by adding superclass,alter classes by adding attribute,alter class by adding specify column of super class,drop classes
CREATE CLASS ddl_0001;
CREATE CLASS ddl_0002;
CREATE CLASS ddl_0003;
ALTER CLASS ddl_0001 aDD SUPERCLASS ddl_0002,ddl_0003 ;
ALTER CLASS ddl_0001 ADD ATTRIBUTE col1 int unique;
ALTER CLASS ddl_0001 ADD ATTRIBUTE col2 varchar(100) NOT NULL;
ALTER CLASS ddl_0003 ADD ATTRIBUTE col3 int unique;
ALTER CLASS ddl_0003 ADD ATTRIBUTE col4 timestamp NOT NULL;
ALTER CLASS ddl_0003 ADD ATTRIBUTE ddl5 double;
CREATE CLASS ddl_0004;
ALTER CLASS ddl_0004 add superclass ddl_0001,ddl_0002,ddl_0003
inherit col3 of ddl_0001,
col3 of ddl_0003 as col3_modify_1,
col4 of ddl_0001,
col4 of ddl_0003 as col4_modify_3,
ddl5 of ddl_0001,
ddl5 of ddl_0003 as ddl5_modify_5 ;
drop class ddl_0004;
drop class ddl_0003;
drop class ddl_0002;
drop class ddl_0001;
|
alter table "public"."ContentItemPerson" drop constraint "ContentItemPerson_groupId_fkey",
add constraint "ContentItemPerson_itemId_fkey"
foreign key ("groupId")
references "public"."ContentItem"
("id")
on update cascade
on delete cascade;
|
ALTER TABLE dht_metadata RENAME TO dht_settings;
|
insert into state.eg_user (id, tenantid, locale, username, password, pwdexpirydate, mobilenumber, createddate, lastmodifieddate, createdby, lastmodifiedby, active, name, gender, type, version) select nextval('state.seq_eg_user'), 'state', 'en_IN', 'architect', <PASSWORD>', '31-Dec-2099', '1234567891', current_date, current_date, 1, 1, true, 'Architect', 1, 'BUSINESS', 0 where not exists (select id from state.eg_user where username='architect' and tenantid='state');
insert into state.eg_userrole (roleid, userid) select (select id from eg_role where upper(name)='BUSINESS'), (select id from state.eg_user where username='architect' and tenantid='state') where not exists (select roleid,userid from state.eg_userrole where roleid in (select id from eg_role where upper(name)='BUSINESS') and userid in (select id from state.eg_user where username='architect' and tenantid='state'));
INSERT INTO state.eg_address (housenobldgapt, subdistrict, postoffice, landmark, country, userid, type, streetroadline, citytownvillage, arealocalitysector, district, state, pincode, id, version) select '12/2', null, 'Test post', null, 'india', (select id from state.eg_user where username='architect' and tenantid='state'), 'CORRESPONDENCE', 'Dollar street', 'Koramangala', 'Koramangala', 'Bengaluru', 'Karnataka', '560037', nextval('state.seq_eg_address'), 0 where not exists (select id from state.eg_address where housenobldgapt='12/2');
INSERT INTO state.egbpa_mstr_stakeholder (id, stakeholdertype, code, licencenumber, buildinglicenceissuedate, coaenrolmentnumber, coaenrolmentduedate, isenrolwithlocalbody, organizationname, organizationaddress, organizationurl, organizationmobno, isonbehalfoforganization, tinnumber, version, createduser, createdate, lastupdateduser, lastupdateddate, buildinglicenceexpirydate, contactperson, designation, source, comments, status, isaddresssame, nooftimesrejected, nooftimesblocked, demand, cinnumber) select (select id from state.eg_user where username='architect' and tenantid='state'), 1, 'SH07201900123', '123423424', '2019-04-01 00:00:00', null, null, null, null, null, null, null, false, null, 0, 1, now(), 1, now(), '2020-04-09 13:20:49.463', null, null, 3, '', 'APPROVED', true, null, null, null, null where not exists (select id from state.egbpa_mstr_stakeholder where code='SH07201900123');
insert into state.eg_businessuser (id) select id from state.eg_user where username='architect' and tenantid='state' and not exists (select id from state.eg_businessuser where id = (select id from state.eg_user where username='architect' and tenantid='state'));
|
-- -----------------------------------------------------
-- TABLE: user_activity_log
-- ACTION: CREATE OR REPLACE
-- -----------------------------------------------------
-- NOTES:
-- Notes for development
-- -----------------------------------------------------
DROP TABLE IF EXISTS user_activity_log;
CREATE OR REPLACE TABLE user_activity_log (
user_activity_log_id BIGINT UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'PRIMARY KEY for table \'user_activity_log\'',
user_id BIGINT NOT NULL COMMENT 'FOREIGN KEY referencing the table \'user\' on PRIMARY KEY field \'user_id\'',
record_create_date DATE NOT NULL DEFAULT curdate() COMMENT 'DATE timestamp for the tuple create date in the format YYYY-MM-DD',
record_create_time TIME NOT NULL DEFAULT curdate() COMMENT 'TIME timestamp for the tuple create time in the format HH:MM:SS.ffffff',
record_create_datetime DATETIME NOT NULL DEFAULT current_timestamp() COMMENT 'DATETIME timestamp for the tuple create datetime in the format YYYY-MM-DD HH:MM:SS.ffffff',
CONSTRAINT PRIMARY KEY (_id)
)
COMMENT 'CommentHere'
ENGINE = InnoDB;
-- -----------------------------------------------------
|
<filename>Agribusiness.DB/Schema Objects/Schemas/dbo/Tables/Keys/PK_SeminarPeopleXSeminarRoles.pkey.sql
ALTER TABLE [dbo].[SeminarPeopleXSeminarRoles]
ADD CONSTRAINT [PK_SeminarPeopleXSeminarRoles] PRIMARY KEY CLUSTERED ([SeminarPersonId] ASC, [SeminarRoleId] ASC) WITH (ALLOW_PAGE_LOCKS = ON, ALLOW_ROW_LOCKS = ON, PAD_INDEX = OFF, IGNORE_DUP_KEY = OFF, STATISTICS_NORECOMPUTE = OFF);
|
-- MySQL dump 10.13 Distrib 5.7.12, for Linux (x86_64)
--
-- Host: localhost Database: bibliofin
-- ------------------------------------------------------
-- Server version 5.7.12-0ubuntu1
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
--
-- Table structure for table `actividades`
--
DROP TABLE IF EXISTS `actividades`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `actividades` (
`idactividad` varchar(22) NOT NULL,
`nombre` varchar(65) DEFAULT NULL,
`descripcion` mediumtext,
`imagen` varchar(45) DEFAULT NULL,
`fechapublicacion` datetime DEFAULT NULL,
`cuentaempleado` varchar(10) DEFAULT NULL,
`dirigidoa` varchar(2) DEFAULT NULL,
`lugar` varchar(45) DEFAULT NULL,
`horainicio` varchar(10) DEFAULT NULL,
`horafin` varchar(10) DEFAULT NULL,
PRIMARY KEY (`idactividad`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `actividadesdia`
--
DROP TABLE IF EXISTS `actividadesdia`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `actividadesdia` (
`actividad_id` varchar(30) DEFAULT NULL,
`dia` date DEFAULT NULL,
`asistencia` int(11) DEFAULT NULL,
`idactividadesdia` varchar(30) NOT NULL,
`registrado` tinyint(1) DEFAULT '0',
PRIMARY KEY (`idactividadesdia`),
KEY `fk_actividad` (`actividad_id`),
CONSTRAINT `fk_actividad` FOREIGN KEY (`actividad_id`) REFERENCES `actividades` (`idactividad`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `autor`
--
DROP TABLE IF EXISTS `autor`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `autor` (
`idautor` int(11) NOT NULL AUTO_INCREMENT,
`nameautor` varchar(255) NOT NULL,
PRIMARY KEY (`idautor`),
FULLTEXT KEY `ftname` (`nameautor`)
) ENGINE=InnoDB AUTO_INCREMENT=10581 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `autorescribio`
--
DROP TABLE IF EXISTS `autorescribio`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `autorescribio` (
`idescribio` varchar(14) NOT NULL,
`libro_id` int(11) DEFAULT NULL,
`autor_id` int(11) DEFAULT NULL,
PRIMARY KEY (`idescribio`),
KEY `libro_fk_idx` (`libro_id`),
KEY `autor_id_idx` (`autor_id`),
CONSTRAINT `autor_id` FOREIGN KEY (`autor_id`) REFERENCES `autor` (`idautor`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `libro_fk` FOREIGN KEY (`libro_id`) REFERENCES `libros` (`idlibro`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `clasificacion`
--
DROP TABLE IF EXISTS `clasificacion`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `clasificacion` (
`idclasificacion` int(11) NOT NULL AUTO_INCREMENT,
`clasificacion` varchar(100) NOT NULL,
PRIMARY KEY (`idclasificacion`)
) ENGINE=InnoDB AUTO_INCREMENT=20353 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `datosbiblio`
--
DROP TABLE IF EXISTS `datosbiblio`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `datosbiblio` (
`idbiblio` int(11) NOT NULL,
`namebiblio` varchar(100) CHARACTER SET latin1 NOT NULL,
`localidad` varchar(100) CHARACTER SET latin1 NOT NULL,
`municipio` varchar(100) CHARACTER SET latin1 NOT NULL,
`estado` varchar(100) CHARACTER SET latin1 NOT NULL,
`encargado` varchar(100) CHARACTER SET latin1 NOT NULL,
`email` varchar(200) DEFAULT NULL,
`password` varchar(200) DEFAULT NULL,
`permitireservas` tinyint(1) DEFAULT '1',
`permitirbusqpri` tinyint(1) DEFAULT '1',
`busquedaspu` tinyint(1) DEFAULT '1',
`accesousuarios` tinyint(1) DEFAULT '1',
`prestamos` tinyint(1) DEFAULT '1',
`acccesoempl` tinyint(1) DEFAULT '1',
PRIMARY KEY (`idbiblio`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `detalleprestamo`
--
DROP TABLE IF EXISTS `detalleprestamo`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `detalleprestamo` (
`iddetalleprestamo` varchar(27) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
`nadqui` int(11) DEFAULT NULL,
`prestamo_id` varchar(25) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL,
`contreno` int(11) DEFAULT '0',
`fechadev` datetime DEFAULT NULL,
PRIMARY KEY (`iddetalleprestamo`),
KEY `prestamo_fk_idx` (`prestamo_id`),
KEY `dpn_fk_idx` (`nadqui`),
CONSTRAINT `dpn_fk` FOREIGN KEY (`nadqui`) REFERENCES `ejemplar` (`nadqui`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `prestamo_fk` FOREIGN KEY (`prestamo_id`) REFERENCES `prestamos` (`idprestamo`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `editoriales`
--
DROP TABLE IF EXISTS `editoriales`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `editoriales` (
`ideditorial` int(11) NOT NULL AUTO_INCREMENT,
`nameeditorial` varchar(255) DEFAULT NULL,
PRIMARY KEY (`ideditorial`)
) ENGINE=InnoDB AUTO_INCREMENT=41403 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `ejemplar`
--
DROP TABLE IF EXISTS `ejemplar`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ejemplar` (
`nadqui` int(11) NOT NULL,
`created_at` datetime DEFAULT NULL,
`nejemplar` int(11) DEFAULT NULL,
`tomo` int(11) DEFAULT NULL,
`volumen` int(11) DEFAULT NULL,
`nficha` int(11) DEFAULT NULL,
`status` int(1) DEFAULT '1',
PRIMARY KEY (`nadqui`),
KEY `fichafk_idx` (`nficha`),
CONSTRAINT `fichafk` FOREIGN KEY (`nficha`) REFERENCES `libros` (`idlibro`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `ejemplaresdescartados`
--
DROP TABLE IF EXISTS `ejemplaresdescartados`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ejemplaresdescartados` (
`iddescarte` varchar(25) NOT NULL,
`nadqui` int(10) NOT NULL,
`descartadopor` varchar(20) NOT NULL,
`fechadescarte` datetime NOT NULL,
`observaciones` mediumtext,
`criterio` varchar(65) DEFAULT NULL,
PRIMARY KEY (`iddescarte`),
UNIQUE KEY `nadqui_UNIQUE` (`nadqui`),
KEY `fk_nadquides_idx` (`nadqui`),
CONSTRAINT `fk_nadquides` FOREIGN KEY (`nadqui`) REFERENCES `ejemplar` (`nadqui`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB DEFAULT CHARSET=ujis;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `empleados`
--
DROP TABLE IF EXISTS `empleados`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `empleados` (
`curp` varchar(18) NOT NULL,
`cuenta` varchar(20) NOT NULL,
`password_d` varchar(255) NOT NULL,
`nombre` varchar(255) NOT NULL,
`rol` int(11) NOT NULL,
`email` varchar(200) DEFAULT NULL,
`fechaintento` datetime DEFAULT NULL,
`intentos` int(11) DEFAULT '0',
PRIMARY KEY (`curp`),
UNIQUE KEY `email_UNIQUE` (`email`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `escuelas`
--
DROP TABLE IF EXISTS `escuelas`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `escuelas` (
`idescuela` int(11) NOT NULL AUTO_INCREMENT,
`nombre` varchar(255) DEFAULT NULL,
PRIMARY KEY (`idescuela`)
) ENGINE=InnoDB AUTO_INCREMENT=85 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `escuelauser`
--
DROP TABLE IF EXISTS `escuelauser`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `escuelauser` (
`idescuelauser` int(11) NOT NULL AUTO_INCREMENT,
`user_id` varchar(18) NOT NULL,
`escuela_id` int(11) NOT NULL,
PRIMARY KEY (`idescuelauser`),
UNIQUE KEY `user_id_UNIQUE` (`user_id`),
KEY `escuela_id_fk_idx` (`escuela_id`),
CONSTRAINT `escuela_id_fk` FOREIGN KEY (`escuela_id`) REFERENCES `escuelas` (`idescuela`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `fk_user_esc` FOREIGN KEY (`user_id`) REFERENCES `usuariobiblio` (`pcurp`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=17 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `grupos`
--
DROP TABLE IF EXISTS `grupos`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `grupos` (
`idgrupo` int(11) NOT NULL AUTO_INCREMENT,
`namegrupo` varchar(30) NOT NULL,
`montomulta` double NOT NULL DEFAULT '0',
`diasentrega` int(11) NOT NULL DEFAULT '7',
`renovacion` int(11) NOT NULL DEFAULT '2',
`cantlibros` int(11) NOT NULL DEFAULT '3',
`vigencia` int(11) NOT NULL DEFAULT '2',
PRIMARY KEY (`idgrupo`)
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `grupouser`
--
DROP TABLE IF EXISTS `grupouser`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `grupouser` (
`idgrupouser` int(11) NOT NULL AUTO_INCREMENT,
`user_id` varchar(18) NOT NULL,
`grupo_id` int(11) NOT NULL DEFAULT '1',
PRIMARY KEY (`idgrupouser`),
UNIQUE KEY `user_id_UNIQUE` (`user_id`),
KEY `grupo_id_idx` (`grupo_id`),
CONSTRAINT `fk-user_gru` FOREIGN KEY (`user_id`) REFERENCES `personas` (`curp`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `grupo_id` FOREIGN KEY (`grupo_id`) REFERENCES `grupos` (`idgrupo`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=840 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `impbarcode`
--
DROP TABLE IF EXISTS `impbarcode`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `impbarcode` (
`idcodigo` varchar(20) NOT NULL,
`dato` varchar(20) NOT NULL,
`tipo` varchar(1) NOT NULL,
PRIMARY KEY (`idcodigo`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `libros`
--
DROP TABLE IF EXISTS `libros`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `libros` (
`idlibro` int(11) NOT NULL,
`isbn` varchar(255) DEFAULT NULL,
`idioma` varchar(10) DEFAULT NULL,
`clasificacion_id` int(11) DEFAULT NULL,
`titulo` longtext,
`edicion` varchar(10) DEFAULT NULL,
`descfisica` varchar(205) DEFAULT NULL,
`serie` varchar(255) DEFAULT NULL,
`notageneral` varchar(255) DEFAULT NULL,
`contenido` longtext,
`tema` varchar(150) DEFAULT NULL,
PRIMARY KEY (`idlibro`),
FULLTEXT KEY `tituft` (`titulo`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `librosbloqueados`
--
DROP TABLE IF EXISTS `librosbloqueados`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `librosbloqueados` (
`idbloqueado` varchar(25) NOT NULL,
`nadqui` int(11) DEFAULT NULL,
PRIMARY KEY (`idbloqueado`),
UNIQUE KEY `nadqui_UNIQUE` (`nadqui`),
CONSTRAINT `repfk` FOREIGN KEY (`nadqui`) REFERENCES `ejemplar` (`nadqui`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `materialibro`
--
DROP TABLE IF EXISTS `materialibro`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `materialibro` (
`idmaterialibro` varchar(16) NOT NULL,
`materia_id` int(11) DEFAULT NULL,
`libro_id` int(11) DEFAULT NULL,
PRIMARY KEY (`idmaterialibro`),
KEY `fk_materiafk_idx` (`materia_id`),
KEY `fk_lbrom_idx` (`libro_id`),
CONSTRAINT `fk_lbrom` FOREIGN KEY (`libro_id`) REFERENCES `libros` (`idlibro`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `fk_materiafk` FOREIGN KEY (`materia_id`) REFERENCES `materias` (`idmateria`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `materias`
--
DROP TABLE IF EXISTS `materias`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `materias` (
`idmateria` int(11) NOT NULL AUTO_INCREMENT,
`namemateria` longtext NOT NULL,
PRIMARY KEY (`idmateria`)
) ENGINE=InnoDB AUTO_INCREMENT=13864 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `multas`
--
DROP TABLE IF EXISTS `multas`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `multas` (
`idmulta` varchar(25) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
`fechamulta` date DEFAULT NULL,
`dtlleprestamo_id` varchar(27) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL,
`pagado` double DEFAULT NULL,
PRIMARY KEY (`idmulta`),
KEY `dev_fk_idx` (`dtlleprestamo_id`),
CONSTRAINT `fk_dtlle` FOREIGN KEY (`dtlleprestamo_id`) REFERENCES `detalleprestamo` (`iddetalleprestamo`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `novedades`
--
DROP TABLE IF EXISTS `novedades`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `novedades` (
`idnovedad` varchar(15) NOT NULL,
`nadqui` int(11) NOT NULL,
`descripcion` mediumtext NOT NULL,
`imagen` varchar(80) NOT NULL,
PRIMARY KEY (`idnovedad`),
KEY `fknvnad_idx` (`nadqui`),
CONSTRAINT `fknvnad` FOREIGN KEY (`nadqui`) REFERENCES `ejemplar` (`nadqui`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `personas`
--
DROP TABLE IF EXISTS `personas`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `personas` (
`curp` varchar(18) NOT NULL,
`pnombre` varchar(255) DEFAULT NULL,
`apPat` varchar(50) CHARACTER SET latin1 DEFAULT NULL,
`apMat` varchar(50) CHARACTER SET latin1 DEFAULT NULL,
`email` varchar(255) CHARACTER SET latin1 DEFAULT NULL,
`direccion` varchar(255) CHARACTER SET latin1 DEFAULT NULL,
`cp` varchar(8) CHARACTER SET latin1 DEFAULT NULL,
`fechaNaci` date DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime DEFAULT NULL,
`telefono` varchar(20) CHARACTER SET latin1 NOT NULL,
`ocupacion` varchar(30) CHARACTER SET latin1 DEFAULT NULL,
`tel2` varchar(20) CHARACTER SET latin1 DEFAULT NULL,
`nombreaval` varchar(255) DEFAULT NULL,
`emailaval` varchar(200) DEFAULT NULL,
`telefonoaval` varchar(100) DEFAULT NULL,
PRIMARY KEY (`curp`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `prestamos`
--
DROP TABLE IF EXISTS `prestamos`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `prestamos` (
`idprestamo` varchar(25) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
`fechaprestamo` datetime NOT NULL,
`tipo` varchar(4) NOT NULL,
`cuentausuario` int(6) unsigned zerofill DEFAULT NULL,
PRIMARY KEY (`idprestamo`),
KEY `cunta_fk_idx` (`cuentausuario`),
CONSTRAINT `fk_user_prest` FOREIGN KEY (`cuentausuario`) REFERENCES `usuariobiblio` (`cuentausuario`) ON DELETE SET NULL ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `publica`
--
DROP TABLE IF EXISTS `publica`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `publica` (
`idpublica` varchar(13) NOT NULL,
`editorial_id` int(11) DEFAULT NULL,
`libro_id` int(11) DEFAULT NULL,
PRIMARY KEY (`idpublica`),
KEY `fkedi_idx` (`editorial_id`),
KEY `fk_libro_idx` (`libro_id`),
CONSTRAINT `fk_libro` FOREIGN KEY (`libro_id`) REFERENCES `libros` (`idlibro`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `fkedi` FOREIGN KEY (`editorial_id`) REFERENCES `editoriales` (`ideditorial`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `registroactividadte`
--
DROP TABLE IF EXISTS `registroactividadte`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `registroactividadte` (
`idregistroactividadte` varchar(30) CHARACTER SET latin1 NOT NULL,
`adultos` int(11) DEFAULT '0',
`jovenes` int(11) DEFAULT '0',
`ninos` int(11) DEFAULT '0',
`actividadid` varchar(30) DEFAULT NULL,
`dia` date DEFAULT NULL,
PRIMARY KEY (`idregistroactividadte`),
KEY `fk_actividad_id_idx` (`actividadid`),
CONSTRAINT `fk_actividad_id` FOREIGN KEY (`actividadid`) REFERENCES `actividades` (`idactividad`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `reparacion`
--
DROP TABLE IF EXISTS `reparacion`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `reparacion` (
`idrep` varchar(22) NOT NULL,
`nadqui` int(11) DEFAULT NULL,
PRIMARY KEY (`idrep`),
UNIQUE KEY `nadqui_UNIQUE` (`nadqui`),
CONSTRAINT `fk_rn` FOREIGN KEY (`nadqui`) REFERENCES `ejemplar` (`nadqui`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `reservas`
--
DROP TABLE IF EXISTS `reservas`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `reservas` (
`idreserva` varchar(60) CHARACTER SET latin1 NOT NULL,
`fecha` datetime NOT NULL,
`cuentausuario` int(6) unsigned zerofill NOT NULL,
`nadqui` int(11) NOT NULL,
PRIMARY KEY (`idreserva`),
UNIQUE KEY `nadqui_UNIQUE` (`nadqui`),
KEY `fk_user_res_idx` (`cuentausuario`),
CONSTRAINT `ff_res` FOREIGN KEY (`nadqui`) REFERENCES `ejemplar` (`nadqui`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `fk_user_res` FOREIGN KEY (`cuentausuario`) REFERENCES `usuariobiblio` (`cuentausuario`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `userbloqueados`
--
DROP TABLE IF EXISTS `userbloqueados`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `userbloqueados` (
`iduserbloqueado` varchar(17) NOT NULL,
`observaciones` varchar(100) DEFAULT NULL,
`cuentauser` int(6) unsigned zerofill NOT NULL,
PRIMARY KEY (`iduserbloqueado`),
UNIQUE KEY `cuentauser_UNIQUE` (`cuentauser`),
CONSTRAINT `fk_user_bloq` FOREIGN KEY (`cuentauser`) REFERENCES `usuariobiblio` (`cuentausuario`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `users`
--
DROP TABLE IF EXISTS `users`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `users` (
`iduser` varchar(25) NOT NULL,
`idusuario` varchar(25) NOT NULL,
`username` varchar(20) NOT NULL,
`token` varchar(100) NOT NULL,
`creado` datetime NOT NULL,
PRIMARY KEY (`iduser`),
UNIQUE KEY `idusuario_UNIQUE` (`idusuario`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `usuariobiblio`
--
DROP TABLE IF EXISTS `usuariobiblio`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `usuariobiblio` (
`cuentausuario` int(6) unsigned zerofill NOT NULL,
`password_d` varchar(255) CHARACTER SET latin1 NOT NULL,
`pcurp` varchar(18) DEFAULT NULL,
`intentos` int(2) DEFAULT '0',
`fechaintento` datetime DEFAULT NULL,
PRIMARY KEY (`cuentausuario`),
UNIQUE KEY `cuentausuario_UNIQUE` (`cuentausuario`),
UNIQUE KEY `pcurp_UNIQUE` (`pcurp`),
CONSTRAINT `curp_fk` FOREIGN KEY (`pcurp`) REFERENCES `personas` (`curp`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `visitas`
--
DROP TABLE IF EXISTS `visitas`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `visitas` (
`idvisita` varchar(20) CHARACTER SET latin1 NOT NULL,
`fechavisita` datetime DEFAULT NULL,
`edad` varchar(2) CHARACTER SET latin1 DEFAULT NULL,
PRIMARY KEY (`idvisita`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-- Dump completed on 2016-06-10 11:44:54
|
<reponame>TheDigitalPhoenixX/MOOC_DB
USE dbproject;
INSERT INTO Lecturer (name, imageUrl, bio, uniName)
VALUES
("Lecturer 1", "Dummy Url", "Dummy Text Dummy Text Dummy Text Dummy Text", "Ain Shams University"),
("Lecturer 2", "Dummy Url", "Dummy Text Dummy Text Dummy Text Dummy Text", "Ain Shams University"),
("Lecturer 3", "Dummy Url", "Dummy Text Dummy Text Dummy Text Dummy Text", "Harvard University"),
("Lecturer 4", "Dummy Url", "Dummy Text Dummy Text Dummy Text Dummy Text", "Harvard University"),
("Lecturer 5", "Dummy Url", "Dummy Text Dummy Text Dummy Text Dummy Text", "Massachusetts Institute of Technology"),
("Lecturer 6", "Dummy Url", "Dummy Text Dummy Text Dummy Text Dummy Text", "Massachusetts Institute of Technology"),
("Lecturer 7", "Dummy Url", "Dummy Text Dummy Text Dummy Text Dummy Text", "Michigan State University"),
("Lecturer 8", "Dummy Url", "Dummy Text Dummy Text Dummy Text Dummy Text", "Stanford University"); |
-- phpMyAdmin SQL Dump
-- version 4.7.7
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Jun 19, 2018 at 11:51 AM
-- Server version: 10.1.32-MariaDB
-- PHP Version: 7.2.5
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- Database: `sdad`
--
-- --------------------------------------------------------
--
-- Table structure for table `coupons`
--
CREATE TABLE `coupons` (
`id` int(10) UNSIGNED NOT NULL,
`coupon` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`discount` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`used` varchar(190) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '0',
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `coupons`
--
INSERT INTO `coupons` (`id`, `coupon`, `discount`, `used`, `created_at`, `updated_at`) VALUES
(2, '123456', '40', '0', '2018-06-02 18:47:31', '2018-06-07 18:26:29'),
(3, '123123', '20', '1', '2018-06-07 18:24:09', '2018-06-07 19:56:26');
-- --------------------------------------------------------
--
-- Table structure for table `migrations`
--
CREATE TABLE `migrations` (
`id` int(10) UNSIGNED NOT NULL,
`migration` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`batch` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `migrations`
--
INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES
(1, '2014_10_12_000000_create_users_table', 1),
(2, '2014_10_12_100000_create_password_resets_table', 1),
(3, '2018_05_20_233227_create_sliders_table', 1),
(4, '2018_05_21_210117_create_sections_table', 1),
(5, '2018_05_21_220405_create_pages_table', 1),
(6, '2018_05_25_231213_create_ratings_table', 1),
(7, '2018_05_30_233234_create_projects_table', 1),
(8, '2018_06_02_205656_create_coupons_table', 2),
(9, '2018_06_02_220454_create_project_datas_table', 3),
(10, '2018_06_03_200402_create_replies_table', 4),
(11, '2018_06_04_232455_create_transaction_modals_table', 5);
-- --------------------------------------------------------
--
-- Table structure for table `pages`
--
CREATE TABLE `pages` (
`id` int(10) UNSIGNED NOT NULL,
`title` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`content` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `pages`
--
INSERT INTO `pages` (`id`, `title`, `content`, `created_at`, `updated_at`) VALUES
(1, 'a:2:{s:2:\"ar\";s:12:\"الأولى\";s:2:\"en\";s:10:\"First Page\";}', 'a:2:{s:2:\"ar\";s:1054:\"<div class=\"row\"><div class=\"col\"><h3 class=\"second-title mt-4\">about us:</h3><p class=\"paragraph\">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Alias architecto aspernatur consectetur culpa cupiditate dolor et ex illo incidunt maiores natus nulla perferendis quo recusandae rerum, similique, soluta ut voluptatem.</p></div></div><div class=\"row\"><div class=\"col\"><h3 class=\"second-title mt-4\">Our vision:</h3><p class=\"paragraph\">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Alias architecto aspernatur consectetur culpa cupiditate dolor et ex illo incidunt maiores natus nulla perferendis quo recusandae rerum, similique, soluta ut voluptatem.</p></div></div><div class=\"row mb-4\"><div class=\"col\"><h3 class=\"second-title mt-4\">Our goals:</h3><p class=\"paragraph\">Lorem ipsum dolor sit amet</p><ul class=\"list-number\"><li>Lorem ipsum dolor sit amet, consectetur</li><li>Lorem ipsum dolor sit amet, consectetur</li><li>Lorem ipsum dolor sit amet, consectetur</li><li>Lorem ipsum dolor sit amet, consectetur</li></ul></div></div>\";s:2:\"en\";s:1054:\"<div class=\"row\"><div class=\"col\"><h3 class=\"second-title mt-4\">about us:</h3><p class=\"paragraph\">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Alias architecto aspernatur consectetur culpa cupiditate dolor et ex illo incidunt maiores natus nulla perferendis quo recusandae rerum, similique, soluta ut voluptatem.</p></div></div><div class=\"row\"><div class=\"col\"><h3 class=\"second-title mt-4\">Our vision:</h3><p class=\"paragraph\">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Alias architecto aspernatur consectetur culpa cupiditate dolor et ex illo incidunt maiores natus nulla perferendis quo recusandae rerum, similique, soluta ut voluptatem.</p></div></div><div class=\"row mb-4\"><div class=\"col\"><h3 class=\"second-title mt-4\">Our goals:</h3><p class=\"paragraph\">Lorem ipsum dolor sit amet</p><ul class=\"list-number\"><li>Lorem ipsum dolor sit amet, consectetur</li><li>Lorem ipsum dolor sit amet, consectetur</li><li>Lorem ipsum dolor sit amet, consectetur</li><li>Lorem ipsum dolor sit amet, consectetur</li></ul></div></div>\";}', '2018-06-01 21:00:00', '2018-06-01 20:25:11'),
(2, 'a:2:{s:2:\"ar\";s:27:\"الصفحة الثانية\";s:2:\"en\";s:11:\"Second Page\";}', 'a:2:{s:2:\"ar\";s:759:\"<h3>About Us:</h3><p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Alias architecto aspernatur consectetur culpa cupiditate dolor et ex illo incidunt maiores natus nulla perferendis quo recusandae rerum, similique, soluta ut voluptatem.</p><h3>Our Vision:</h3><p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Alias architecto aspernatur consectetur culpa cupiditate dolor et ex illo incidunt maiores natus nulla perferendis quo recusandae rerum, similique, soluta ut voluptatem.</p><h3>Our Goals:</h3><p>Lorem ipsum dolor sit amet</p><ul><li>Lorem ipsum dolor sit amet, consectetur</li><li>Lorem ipsum dolor sit amet, consectetur</li><li>Lorem ipsum dolor sit amet, consectetur</li><li>Lorem ipsum dolor sit amet, consectetur</li></ul>\";s:2:\"en\";s:759:\"<h3>About Us:</h3><p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Alias architecto aspernatur consectetur culpa cupiditate dolor et ex illo incidunt maiores natus nulla perferendis quo recusandae rerum, similique, soluta ut voluptatem.</p><h3>Our Vision:</h3><p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Alias architecto aspernatur consectetur culpa cupiditate dolor et ex illo incidunt maiores natus nulla perferendis quo recusandae rerum, similique, soluta ut voluptatem.</p><h3>Our Goals:</h3><p>Lorem ipsum dolor sit amet</p><ul><li>Lorem ipsum dolor sit amet, consectetur</li><li>Lorem ipsum dolor sit amet, consectetur</li><li>Lorem ipsum dolor sit amet, consectetur</li><li>Lorem ipsum dolor sit amet, consectetur</li></ul>\";}', NULL, '2018-06-01 20:20:53'),
(3, 'a:2:{s:2:\"ar\";s:27:\"الصفحة الثالتة\";s:2:\"en\";s:10:\"Third Page\";}', 'a:2:{s:2:\"ar\";s:759:\"<h3>About Us:</h3><p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Alias architecto aspernatur consectetur culpa cupiditate dolor et ex illo incidunt maiores natus nulla perferendis quo recusandae rerum, similique, soluta ut voluptatem.</p><h3>Our Vision:</h3><p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Alias architecto aspernatur consectetur culpa cupiditate dolor et ex illo incidunt maiores natus nulla perferendis quo recusandae rerum, similique, soluta ut voluptatem.</p><h3>Our Goals:</h3><p>Lorem ipsum dolor sit amet</p><ul><li>Lorem ipsum dolor sit amet, consectetur</li><li>Lorem ipsum dolor sit amet, consectetur</li><li>Lorem ipsum dolor sit amet, consectetur</li><li>Lorem ipsum dolor sit amet, consectetur</li></ul>\";s:2:\"en\";s:759:\"<h3>About Us:</h3><p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Alias architecto aspernatur consectetur culpa cupiditate dolor et ex illo incidunt maiores natus nulla perferendis quo recusandae rerum, similique, soluta ut voluptatem.</p><h3>Our Vision:</h3><p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Alias architecto aspernatur consectetur culpa cupiditate dolor et ex illo incidunt maiores natus nulla perferendis quo recusandae rerum, similique, soluta ut voluptatem.</p><h3>Our Goals:</h3><p>Lorem ipsum dolor sit amet</p><ul><li>Lorem ipsum dolor sit amet, consectetur</li><li>Lorem ipsum dolor sit amet, consectetur</li><li>Lorem ipsum dolor sit amet, consectetur</li><li>Lorem ipsum dolor sit amet, consectetur</li></ul>\";}', NULL, '2018-06-01 20:21:36'),
(4, 'a:2:{s:2:\"ar\";s:27:\"الصفحة الرابعة\";s:2:\"en\";s:10:\"Forth Page\";}', 'a:2:{s:2:\"ar\";s:759:\"<h3>About Us:</h3><p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Alias architecto aspernatur consectetur culpa cupiditate dolor et ex illo incidunt maiores natus nulla perferendis quo recusandae rerum, similique, soluta ut voluptatem.</p><h3>Our Vision:</h3><p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Alias architecto aspernatur consectetur culpa cupiditate dolor et ex illo incidunt maiores natus nulla perferendis quo recusandae rerum, similique, soluta ut voluptatem.</p><h3>Our Goals:</h3><p>Lorem ipsum dolor sit amet</p><ul><li>Lorem ipsum dolor sit amet, consectetur</li><li>Lorem ipsum dolor sit amet, consectetur</li><li>Lorem ipsum dolor sit amet, consectetur</li><li>Lorem ipsum dolor sit amet, consectetur</li></ul>\";s:2:\"en\";s:759:\"<h3>About Us:</h3><p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Alias architecto aspernatur consectetur culpa cupiditate dolor et ex illo incidunt maiores natus nulla perferendis quo recusandae rerum, similique, soluta ut voluptatem.</p><h3>Our Vision:</h3><p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Alias architecto aspernatur consectetur culpa cupiditate dolor et ex illo incidunt maiores natus nulla perferendis quo recusandae rerum, similique, soluta ut voluptatem.</p><h3>Our Goals:</h3><p>Lorem ipsum dolor sit amet</p><ul><li>Lorem ipsum dolor sit amet, consectetur</li><li>Lorem ipsum dolor sit amet, consectetur</li><li>Lorem ipsum dolor sit amet, consectetur</li><li>Lorem ipsum dolor sit amet, consectetur</li></ul>\";}', NULL, '2018-06-01 20:21:52'),
(5, 'a:2:{s:2:\"ar\";s:27:\"الصفحة الخامسة\";s:2:\"en\";s:10:\"Fifth Page\";}', 'a:2:{s:2:\"ar\";s:759:\"<h3>About Us:</h3><p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Alias architecto aspernatur consectetur culpa cupiditate dolor et ex illo incidunt maiores natus nulla perferendis quo recusandae rerum, similique, soluta ut voluptatem.</p><h3>Our Vision:</h3><p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Alias architecto aspernatur consectetur culpa cupiditate dolor et ex illo incidunt maiores natus nulla perferendis quo recusandae rerum, similique, soluta ut voluptatem.</p><h3>Our Goals:</h3><p>Lorem ipsum dolor sit amet</p><ul><li>Lorem ipsum dolor sit amet, consectetur</li><li>Lorem ipsum dolor sit amet, consectetur</li><li>Lorem ipsum dolor sit amet, consectetur</li><li>Lorem ipsum dolor sit amet, consectetur</li></ul>\";s:2:\"en\";s:759:\"<h3>About Us:</h3><p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Alias architecto aspernatur consectetur culpa cupiditate dolor et ex illo incidunt maiores natus nulla perferendis quo recusandae rerum, similique, soluta ut voluptatem.</p><h3>Our Vision:</h3><p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Alias architecto aspernatur consectetur culpa cupiditate dolor et ex illo incidunt maiores natus nulla perferendis quo recusandae rerum, similique, soluta ut voluptatem.</p><h3>Our Goals:</h3><p>Lorem ipsum dolor sit amet</p><ul><li>Lorem ipsum dolor sit amet, consectetur</li><li>Lorem ipsum dolor sit amet, consectetur</li><li>Lorem ipsum dolor sit amet, consectetur</li><li>Lorem ipsum dolor sit amet, consectetur</li></ul>\";}', NULL, '2018-06-01 20:22:15');
-- --------------------------------------------------------
--
-- Table structure for table `password_resets`
--
CREATE TABLE `password_resets` (
`email` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`token` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `password_resets`
--
INSERT INTO `password_resets` (`email`, `token`, `created_at`) VALUES
('<EMAIL>', '$2y$10$3WPgC64Tz5clrLRBMcjZUu3/Q1jkQNHx3cDqZirCFgDx6gR/SW6D2', '2018-06-16 20:04:54');
-- --------------------------------------------------------
--
-- Table structure for table `projects`
--
CREATE TABLE `projects` (
`id` int(10) UNSIGNED NOT NULL,
`title` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`doc_language` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`tran_language` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`doc_content` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`notes` text COLLATE utf8mb4_unicode_ci NOT NULL,
`recivied_date` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`payment_method` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`documents` text COLLATE utf8mb4_unicode_ci NOT NULL,
`coupon` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`user_id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`status` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '1',
`price` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`trans_documents` text COLLATE utf8mb4_unicode_ci,
`payment_convert_number` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`reply_at` datetime DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `projects`
--
INSERT INTO `projects` (`id`, `title`, `doc_language`, `tran_language`, `doc_content`, `notes`, `recivied_date`, `payment_method`, `documents`, `coupon`, `user_id`, `status`, `price`, `trans_documents`, `payment_convert_number`, `reply_at`, `created_at`, `updated_at`) VALUES
(1, 'test', 'العربية', '[\"\\u0627\\u0644\\u0639\\u0631\\u0628\\u064a\\u0629\"]', 'عام', 'test', '2', 'PayPal', '[\"\\/uploads\\/1528743260skysports-lionel-messi-neymar-barcelona_3903309.jpg\"]', NULL, '7', '3', NULL, NULL, NULL, '2018-06-12 12:06:49', '2018-06-11 15:54:20', '2018-06-12 09:06:49'),
(2, 'تطبيق برق الاخباري ، تصميم مميز ومحتوى فريد 6', 'English', '[\"\\u0627\\u0644\\u0639\\u0631\\u0628\\u064a\\u0629\"]', 'عام', 'تطبيق برق الاخباري ، تصميم مميز ومحتوى فريد 6', '4', 'PayPal', '[\"\\/uploads\\/1528813895v1.0.1.docx\"]', NULL, '7', '2', '150', NULL, NULL, '2018-06-16 22:53:50', '2018-06-12 11:31:35', '2018-06-16 19:53:50'),
(3, 'بس', 'يسب', '[\"\\u0627\\u0644\\u0639\\u0631\\u0628\\u064a\\u0629\"]', 'عام', 'بيس', '516', 'PayPal', '[\"\\/uploads\\/1529187161\\u0627\\u0644\\u062a\\u0642\\u0627\\u06372.PNG\"]', NULL, '7', '1', NULL, NULL, NULL, NULL, '2018-06-16 19:12:41', '2018-06-16 19:12:41');
-- --------------------------------------------------------
--
-- Table structure for table `project_datas`
--
CREATE TABLE `project_datas` (
`id` int(10) UNSIGNED NOT NULL,
`title` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`desc` text COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `project_datas`
--
INSERT INTO `project_datas` (`id`, `title`, `desc`, `created_at`, `updated_at`) VALUES
(2, 'a:2:{s:2:\"ar\";s:58:\"كيف تستخدم استمارة طلب الترجمة؟\";s:2:\"en\";s:40:\"How to use the translation request form?\";}', 'a:2:{s:2:\"ar\";s:165:\"أبجد هوز دولور الجلوس امات، إيليت. التشهير، المتهم، أو من الجسم مع عملائنا. ولكن إما اتهاما\";s:2:\"en\";s:117:\"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Accusamus et aut corporis cum elit. Accusamus at aut corpori\";}', '2018-06-02 19:41:39', '2018-06-02 19:41:39'),
(3, 'a:2:{s:2:\"ar\";s:50:\"اللغات التي ترغب في ترجمتها\";s:2:\"en\";s:37:\"Languages you wish to translate\";}', 'a:2:{s:2:\"ar\";s:165:\"أبجد هوز دولور الجلوس امات، إيليت. التشهير، المتهم، أو من الجسم مع عملائنا. ولكن إما اتهاما\";s:2:\"en\";s:118:\"Lorem ipsum dolor sit amet, consectetur adipisicing elit. Accusamus at aut corporis cum elit. Accusamus at aut corpori\";}', '2018-06-02 19:42:20', '2018-06-02 19:42:20'),
(4, 'a:2:{s:2:\"ar\";s:38:\"وثيقة / محتوى الفيديو\";s:2:\"en\";s:24:\"Document / video content\";}', 'a:2:{s:2:\"ar\";s:233:\"وثيقة / محتوى الفيديو وثيقة / محتوى الفيديو وثيقة / محتوى الفيديو وثيقة / محتوى الفيديو وثيقة / محتوى الفيديو وثيقة / محتوى الفيديو\";s:2:\"en\";s:93:\"Lorem ipsum dolor sit amet, consectetur adipisicing elit. Accusamus at aut corporis cum elit.\";}', '2018-06-02 19:42:55', '2018-06-02 19:42:55'),
(5, 'a:2:{s:2:\"ar\";s:36:\"إيضاحات حول الترجمة\";s:2:\"en\";s:23:\"Notes to the translator\";}', 'a:2:{s:2:\"ar\";s:221:\"إيضاحات حول الترجمة إيضاحات حول الترجمة إيضاحات حول الترجمة إيضاحات حول الترجمة إيضاحات حول الترجمة إيضاحات حول الترجمة\";s:2:\"en\";s:95:\"Notes to the translator Notes to the translator Notes to the translator Notes to the translator\";}', '2018-06-02 19:43:19', '2018-06-02 19:43:19');
-- --------------------------------------------------------
--
-- Table structure for table `ratings`
--
CREATE TABLE `ratings` (
`id` int(10) UNSIGNED NOT NULL,
`project_id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`rating` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`review` text COLLATE utf8mb4_unicode_ci NOT NULL,
`user_id` text COLLATE utf8mb4_unicode_ci NOT NULL,
`verified` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '1',
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `ratings`
--
INSERT INTO `ratings` (`id`, `project_id`, `rating`, `review`, `user_id`, `verified`, `created_at`, `updated_at`) VALUES
(1, '1', '4', 'مشروع ممتاز جداً', '7', '1', '2018-06-11 15:55:22', '2018-06-11 15:55:22');
-- --------------------------------------------------------
--
-- Table structure for table `replies`
--
CREATE TABLE `replies` (
`id` int(10) UNSIGNED NOT NULL,
`project_id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`content` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
`files` text COLLATE utf8mb4_unicode_ci,
`user_id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `replies`
--
INSERT INTO `replies` (`id`, `project_id`, `content`, `files`, `user_id`, `created_at`, `updated_at`) VALUES
(1, '3', 'بسم الله الرحمن الرحيم ، نبدا المشروع \r\nفي المرفقات جزء من ملف المشروع', '[]', '1', '2018-06-03 17:19:57', '2018-06-03 17:19:57'),
(2, '3', 'لملفات بالمرفقات', '[\"\\/uploads\\/1528059151NourEldeen_Ziada_cv.docx\"]', '1', '2018-06-03 17:52:31', '2018-06-03 17:52:31'),
(3, '3', 'وهذه مجموعة من الملفات \r\nبالمرفقات', '[\"\\/uploads\\/1528059169Notes_180602_122708_494.pdf\",\"\\/uploads\\/1528059169NourEldeen_Ziada_cv.docx\"]', '1', '2018-06-03 17:52:49', '2018-06-03 17:52:49'),
(4, '4', 'good project , in trans', NULL, '1', '2018-06-03 20:23:37', '2018-06-03 20:23:37'),
(5, '4', 'in trans', NULL, '1', '2018-06-03 20:25:09', '2018-06-03 20:25:09'),
(6, '4', 'in trans', NULL, '1', '2018-06-03 20:26:28', '2018-06-03 20:26:28'),
(7, '8', 'good trans , keep going', NULL, '5', '2018-06-03 21:07:21', '2018-06-03 21:07:21'),
(8, '8', 'ok ,', NULL, '1', '2018-06-03 21:08:52', '2018-06-03 21:08:52'),
(9, '13', 'تم تحويل المبلغ على حساب ، رقم الحوالة هو : 123456789', NULL, '7', '2018-06-08 21:10:38', '2018-06-08 21:10:38'),
(10, '1', 'تم تحويل المبلغ على حساب ، البنك المحمول منه : البنك المحمولالبنك المحول اليه : البنك المحمولتاريخ التحويل : 1651-06-05تاريخ التحويل : 1651-06-05وقت التحويل : 18:51', NULL, '7', '2018-06-12 09:06:49', '2018-06-12 09:06:49'),
(11, '2', 'روابط سريعة ، تعرف المزيد', NULL, '7', '2018-06-12 11:34:50', '2018-06-12 11:34:50'),
(12, '2', 'روابط سريعة ، تعرف المزيد', NULL, '7', '2018-06-12 11:35:13', '2018-06-12 11:35:13'),
(13, '2', 'تم تحويل المبلغ <br>البنك المحمول منه : بنك فلسطين <br> البنك المحول اليه : بنك فلسطين <br> تاريخ التحويل : 2018-06-14 <br> وقت التحويل : 06:31 <br> اسم المحول ثلاثي : نورالدين زيادة <br> ', NULL, '7', '2018-06-14 11:32:47', '2018-06-14 11:32:47'),
(14, '2', 'مشروع جميل', NULL, '7', '2018-06-14 16:39:46', '2018-06-14 16:39:46'),
(15, '2', 'ddddd', NULL, '7', '2018-06-14 16:52:56', '2018-06-14 16:52:56'),
(16, '2', 'ممتاز جداً', NULL, '7', '2018-06-16 19:07:26', '2018-06-16 19:07:26'),
(17, '2', 'تم تحويل المبلغ <br>البنك المحمول منه : بنك فلسطين <br> البنك المحول اليه : بنك الراجحي <br> تاريخ التحويل : 2018-06-16 <br> وقت التحويل : 06:17 <br> اسم المحول ثلاثي : نورالدين زيادة <br> ', NULL, '7', '2018-06-16 19:53:50', '2018-06-16 19:53:50');
-- --------------------------------------------------------
--
-- Table structure for table `sections`
--
CREATE TABLE `sections` (
`id` int(10) UNSIGNED NOT NULL,
`title` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`description` text COLLATE utf8mb4_unicode_ci NOT NULL,
`image` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`link` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `sections`
--
INSERT INTO `sections` (`id`, `title`, `description`, `image`, `link`, `created_at`, `updated_at`) VALUES
(1, 'a:2:{s:2:\"ar\";s:36:\"ترجمة موقع وتطبيقات\";s:2:\"en\";s:19:\"Website Translation\";}', 'a:2:{s:2:\"ar\";s:665:\"ترجمة موقع وتطبيقات ترجمة موقع وتطبيقات ترجمة موقع وتطبيقات ترجمة موقع وتطبيقات ترجمة موقع وتطبيقات ترجمة موقع وتطبيقات ترجمة موقع وتطبيقات ترجمة موقع وتطبيقات ترجمة موقع وتطبيقات ترجمة موقع وتطبيقات ترجمة موقع وتطبيقات ترجمة موقع وتطبيقات ترجمة موقع وتطبيقات ترجمة موقع وتطبيقات ترجمة موقع وتطبيقات ترجمة موقع وتطبيقات ترجمة موقع وتطبيقات ترجمة موقع وتطبيقات\";s:2:\"en\";s:153:\"is based on a professional translation team to ensure the quality of translation and rely on a multinational team of qualified translators and reviewers.\";}', '123', NULL, NULL, '2018-06-01 20:19:09'),
(2, 'a:2:{s:2:\"ar\";s:36:\"ترجمة بريد إلكتروني\";s:2:\"en\";s:17:\"Email Translation\";}', 'a:2:{s:2:\"ar\";s:237:\"تعتمد على فريق عمل متخصص في مجال ترجمة النصوص لضمان جودة الترجمة و تعتمد على فريق متعدد الجنسيات من المترجمين و المراجعين الأكفاء.\";s:2:\"en\";s:178:\"It is based on a team that specializes in the translation of texts to ensure the quality of translation and depends on a multinational team of qualified translators and auditors.\";}', '123', NULL, NULL, '2018-06-01 20:17:19'),
(3, 'a:2:{s:2:\"ar\";s:30:\"ترجمة وثائق سرية\";s:2:\"en\";s:18:\"Trans confidential\";}', 'a:2:{s:2:\"ar\";s:237:\"تعتمد على فريق عمل متخصص في مجال ترجمة النصوص لضمان جودة الترجمة و تعتمد على فريق متعدد الجنسيات من المترجمين و المراجعين الأكفاء.\";s:2:\"en\";s:178:\"It is based on a team that specializes in the translation of texts to ensure the quality of translation and depends on a multinational team of qualified translators and auditors.\";}', '123', NULL, NULL, '2018-06-01 20:18:58'),
(4, 'a:2:{s:2:\"ar\";s:48:\"الخدمات المصرفية والمالية\";s:2:\"en\";s:30:\"Banking and financial services\";}', 'a:2:{s:2:\"ar\";s:48:\"الخدمات المصرفية والمالية\";s:2:\"en\";s:30:\"Banking and financial services\";}', '/uploads/1527895419e-commerce-payment-gateway-rqmnh.png', 'http://127.0.0.1:8000', NULL, '2018-06-01 20:23:39'),
(5, 'a:2:{s:2:\"ar\";s:48:\"الخدمات المصرفية والمالية\";s:2:\"en\";s:30:\"Banking and financial services\";}', 'a:2:{s:2:\"ar\";s:48:\"الخدمات المصرفية والمالية\";s:2:\"en\";s:30:\"Banking and financial services\";}', '/uploads/1527895428e-commerce-shop-rqmnh-com.png', 'http://127.0.0.1:8000', NULL, '2018-06-01 20:23:48'),
(6, 'a:2:{s:2:\"ar\";s:48:\"الخدمات المصرفية والمالية\";s:2:\"en\";s:30:\"Banking and financial services\";}', 'a:2:{s:2:\"ar\";s:48:\"الخدمات المصرفية والمالية\";s:2:\"en\";s:30:\"Banking and financial services\";}', '/uploads/1527895439e-commerce-payment-gateway-rqmnh.png', 'http://127.0.0.1:8000', NULL, '2018-06-01 20:23:59'),
(7, 'a:2:{s:2:\"ar\";s:48:\"الخدمات المصرفية والمالية\";s:2:\"en\";s:30:\"Banking and financial services\";}', 'a:2:{s:2:\"ar\";s:48:\"الخدمات المصرفية والمالية\";s:2:\"en\";s:30:\"Banking and financial services\";}', '123', NULL, NULL, NULL);
-- --------------------------------------------------------
--
-- Table structure for table `sliders`
--
CREATE TABLE `sliders` (
`id` int(10) UNSIGNED NOT NULL,
`title` text COLLATE utf8mb4_unicode_ci NOT NULL,
`desc` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
`link` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`image` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `sliders`
--
INSERT INTO `sliders` (`id`, `title`, `desc`, `link`, `image`, `created_at`, `updated_at`) VALUES
(1, 'a:2:{s:2:\"ar\";s:38:\"الترجمة على الانترنت\";s:2:\"en\";s:18:\"Online Translation\";}', 'a:2:{s:2:\"ar\";s:95:\"إن كنت تحتاج إلى مترجم عبر الانترنت، فقد وجدت الأفضل\";s:2:\"en\";s:55:\"If you need an online translator, I have found the best\";}', 'http://127.0.0.1:8000', '/uploads/1527894856rqmnh-banner-2.png', '2018-06-01 20:14:16', '2018-06-01 20:14:16');
-- --------------------------------------------------------
--
-- Table structure for table `transaction_modals`
--
CREATE TABLE `transaction_modals` (
`id` int(10) UNSIGNED NOT NULL,
`payment_id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`payment_status` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`payment_method` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`payer_email` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`payer_first_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`payer_last_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`payer_phone` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`payment_amount` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`project_id` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `transaction_modals`
--
INSERT INTO `transaction_modals` (`id`, `payment_id`, `payment_status`, `payment_method`, `payer_email`, `payer_first_name`, `payer_last_name`, `payer_phone`, `payment_amount`, `project_id`, `created_at`, `updated_at`) VALUES
(2, 'PAY-30F35102B8544250CLMK47KY', 'approved', 'paypal', '<EMAIL>', 'Nour', 'Ziada', '4082231014', '250.00', '9', '2018-06-04 20:48:36', '2018-06-04 20:48:37'),
(3, '123456', '123456', '123456', '<EMAIL>', '<NAME>', '<NAME>', '123456', '123456', '13', '2018-06-08 21:02:41', '2018-06-08 21:02:41'),
(4, '123456789', '123456789', '123456789', '<EMAIL>', '<NAME>', '<NAME>', '123456789', '123456789', '13', '2018-06-08 21:10:37', '2018-06-08 21:10:37');
-- --------------------------------------------------------
--
-- Table structure for table `users`
--
CREATE TABLE `users` (
`id` int(10) UNSIGNED NOT NULL,
`name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`email` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`password` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`mobile` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`country` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`city` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`verified` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '0',
`image` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`admin` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '0',
`remember_token` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `users`
--
INSERT INTO `users` (`id`, `name`, `email`, `password`, `mobile`, `country`, `city`, `verified`, `image`, `admin`, `remember_token`, `created_at`, `updated_at`) VALUES
(1, 'admin', '<EMAIL>', <PASSWORD>', '123', '123', '123', '1', '123', '1', 'XA8S5UwChOb2EblRq0qVUURIhZd94TTTGe8ig7rerGMaiTksJLq2BVv31Cl4', '2018-06-01 21:00:00', '2018-06-01 21:00:00'),
(2, '<NAME>', '<EMAIL>', <PASSWORD>', '0599691321', 'Palestine', 'gaza', '0', '/uploads/1527896179avatar.png', '0', 'nhD0LBJNguNpHLxWGyw5ihqxV8LQpPlHtklUTfLILd3UNVBOhMpxTC1PY08A', '2018-06-01 20:36:20', '2018-06-01 20:36:20'),
(3, 'نورالدين زيادة', '<EMAIL>', <PASSWORD>', 'text', 'Palestine', 'text', '0', 'text', '2', NULL, '2018-06-03 17:21:36', '2018-06-03 17:21:36'),
(4, 'خالد الأحمد', '<EMAIL>', <PASSWORD>', 'text', 'Palestine', 'text', '0', 'text', '2', 'TWobeoaY5I8xW1yoNY4imF9gWZrmykcu3j4gqzOTnUKdHuU9NwSogLgWbl8Q', '2018-06-03 20:32:51', '2018-06-03 20:32:51'),
(5, '<NAME>', '<EMAIL>', <PASSWORD>', '351651', 'Palestine', 'gaza', '0', '/uploads/1528070510sami.png', '0', NULL, '2018-06-03 21:01:50', '2018-06-03 21:01:50'),
(6, '<NAME>', '<EMAIL>', <PASSWORD>', '1234567', 'Palestine', 'gaza', '0', '/uploads/logo.png', '0', NULL, '2018-06-06 17:55:37', '2018-06-06 17:55:37'),
(7, '<NAME>', '<EMAIL>', <PASSWORD>', '00972599691321', 'Palestine', 'gaza', '0', '/uploads/1528798556team-3.jpg', '0', 'JweDj0MSclNmYdmn7o0maAL51soikevmvQUyBziJJDBXOXOp0a3BxD5Etchu', '2018-06-07 17:16:18', '2018-06-16 20:19:15'),
(8, '<NAME>', '<EMAIL>', '$2y$10$wQ2E3EkiD8PcdirPHzQvhet883LpamN.5CBJt0qOXm2GctVIU4Vw.', 'text', 'Pales', 'text', '0', 'text', '2', NULL, '2018-06-12 11:25:37', '2018-06-12 11:25:37');
--
-- Indexes for dumped tables
--
--
-- Indexes for table `coupons`
--
ALTER TABLE `coupons`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `migrations`
--
ALTER TABLE `migrations`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `pages`
--
ALTER TABLE `pages`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `password_resets`
--
ALTER TABLE `password_resets`
ADD KEY `password_resets_email_index` (`email`);
--
-- Indexes for table `projects`
--
ALTER TABLE `projects`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `project_datas`
--
ALTER TABLE `project_datas`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `ratings`
--
ALTER TABLE `ratings`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `replies`
--
ALTER TABLE `replies`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `sections`
--
ALTER TABLE `sections`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `sliders`
--
ALTER TABLE `sliders`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `transaction_modals`
--
ALTER TABLE `transaction_modals`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `users`
--
ALTER TABLE `users`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `users_email_unique` (`email`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `coupons`
--
ALTER TABLE `coupons`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `migrations`
--
ALTER TABLE `migrations`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=12;
--
-- AUTO_INCREMENT for table `pages`
--
ALTER TABLE `pages`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
--
-- AUTO_INCREMENT for table `projects`
--
ALTER TABLE `projects`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `project_datas`
--
ALTER TABLE `project_datas`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
--
-- AUTO_INCREMENT for table `ratings`
--
ALTER TABLE `ratings`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `replies`
--
ALTER TABLE `replies`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=18;
--
-- AUTO_INCREMENT for table `sections`
--
ALTER TABLE `sections`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;
--
-- AUTO_INCREMENT for table `sliders`
--
ALTER TABLE `sliders`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `transaction_modals`
--
ALTER TABLE `transaction_modals`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT for table `users`
--
ALTER TABLE `users`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;
COMMIT;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
<reponame>tobocop/howhardwoulditbe
-- This will create the catalog to attach the index to
CREATE FULLTEXT CATALOG institutionsFTS
WITH ACCENT_SENSITIVITY = OFF
-- to verify it's there
--SELECT fulltext_catalog_id, name FROM sys.fulltext_catalogs
-- This will return the primary key name on the institutions table
SELECT i.name AS IndexName
FROM sys.indexes AS i INNER JOIN
sys.index_columns AS ic ON i.OBJECT_ID = ic.OBJECT_ID
AND i.index_id = ic.index_id
WHERE i.is_primary_key = 1
AND OBJECT_NAME(ic.OBJECT_ID) = 'institutions'
CREATE FULLTEXT INDEX ON institutions
(institutionName)
KEY INDEX [key_name]
ON institutionsFTS
WITH STOPLIST = SYSTEM
|
<filename>db/migrations/20191030050747295_add_data_to_certificate.sql
-- +micrate Up
ALTER TABLE certificates ADD COLUMN data BYTEA;
ALTER TABLE certificates DROP COLUMN type;
-- +micrate Down
ALTER TABLE certificates DROP COLUMN data;
ALTER TABLE certificates ADD COLUMN type VARCHAR;
|
<reponame>meekah96/sms_system
-- --------------------------------------------------------
-- Host: 127.0.0.1
-- Server version: 10.3.12-MariaDB - mariadb.org binary distribution
-- Server OS: Win64
-- HeidiSQL Version: 9.5.0.5196
-- --------------------------------------------------------
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET NAMES utf8 */;
/*!50503 SET NAMES utf8mb4 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
-- Dumping database structure for sms
CREATE DATABASE IF NOT EXISTS `sms` /*!40100 DEFAULT CHARACTER SET utf8 */;
USE `sms`;
-- Dumping structure for table sms.category_master
CREATE TABLE IF NOT EXISTS `category_master` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(100) NOT NULL DEFAULT '0',
`description` text DEFAULT NULL,
`comment` text DEFAULT NULL,
`updated_by` smallint(6) DEFAULT NULL,
`created_at` datetime DEFAULT NULL,
`updated_at` datetime DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=19 DEFAULT CHARSET=utf8;
-- Data exporting was unselected.
-- Dumping structure for table sms.expenses_limit
CREATE TABLE IF NOT EXISTS `expenses_limit` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`category_id` int(11) NOT NULL,
`user_id` int(11) NOT NULL,
`amount` double NOT NULL,
`from_date` datetime NOT NULL,
`to_date` datetime NOT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=5 DEFAULT CHARSET=utf8;
-- Data exporting was unselected.
-- Dumping structure for table sms.expenses_master
CREATE TABLE IF NOT EXISTS `expenses_master` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) NOT NULL,
`category_id` int(11) NOT NULL,
`description` text DEFAULT NULL,
`comment` text DEFAULT NULL,
`amount` decimal(10,2) DEFAULT NULL,
`generated_at` datetime DEFAULT NULL,
`created_at` datetime DEFAULT NULL,
`updated_at` datetime DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8;
-- Data exporting was unselected.
-- Dumping structure for table sms.migrations
CREATE TABLE IF NOT EXISTS `migrations` (
`migration` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`batch` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- Data exporting was unselected.
-- Dumping structure for table sms.password_resets
CREATE TABLE IF NOT EXISTS `password_resets` (
`email` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`token` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`created_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
KEY `password_resets_email_index` (`email`),
KEY `password_resets_token_index` (`token`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- Data exporting was unselected.
-- Dumping structure for table sms.report_master
CREATE TABLE IF NOT EXISTS `report_master` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(50) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- Data exporting was unselected.
-- Dumping structure for table sms.roles_master
CREATE TABLE IF NOT EXISTS `roles_master` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(100) DEFAULT NULL,
`slug` varchar(50) DEFAULT NULL,
`permission` text DEFAULT NULL,
`is_editable` tinyint(4) DEFAULT NULL,
`rank` smallint(6) DEFAULT NULL,
`created_at` datetime DEFAULT NULL,
`updated_at` datetime DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;
-- Data exporting was unselected.
-- Dumping structure for table sms.users
CREATE TABLE IF NOT EXISTS `users` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`email` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`user_id` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`password` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`remember_token` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `users_email_unique` (`email`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- Data exporting was unselected.
-- Dumping structure for table sms.user_details
CREATE TABLE IF NOT EXISTS `user_details` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) DEFAULT NULL,
`first_name` varchar(50) DEFAULT NULL,
`last_name` varchar(50) DEFAULT NULL,
`address` text DEFAULT NULL,
`city` text DEFAULT NULL,
`zipcode` varchar(50) DEFAULT NULL,
`phone_no` varchar(50) DEFAULT NULL,
`dob` date DEFAULT NULL,
`salary` decimal(10,2) DEFAULT NULL,
`created_at` datetime DEFAULT NULL,
`updated_at` datetime DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;
-- Data exporting was unselected.
/*!40101 SET SQL_MODE=IFNULL(@OLD_SQL_MODE, '') */;
/*!40014 SET FOREIGN_KEY_CHECKS=IF(@OLD_FOREIGN_KEY_CHECKS IS NULL, 1, @OLD_FOREIGN_KEY_CHECKS) */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
|
<filename>src/test/resources/sql/create_trigger/83f6fde2.sql<gh_stars>10-100
-- file:triggers.sql ln:288 expect:true
CREATE TRIGGER modified_any BEFORE UPDATE OF a ON main_table
FOR EACH ROW WHEN (OLD.* IS DISTINCT FROM NEW.*) EXECUTE PROCEDURE trigger_func('modified_any')
|
<reponame>dram/metasfresh
UPDATE ad_column
SET personaldatacategory='NP'
WHERE ad_table_id IN (SELECT ad_table_id FROM ad_table WHERE tablename IN ('C_ConversionType'));
UPDATE ad_column
SET personaldatacategory='NP'
WHERE columnname in ('LineAggregationKey_Suffix', 'HeaderAggregationKey','LineAggregationKey','HeaderAggregationKey_Calc','InvoiceScheduleAmtStatus','SchedulerResult')
and ad_table_id IN (SELECT ad_table_id FROM ad_table WHERE tablename IN ('C_Invoice_Candidate'));
UPDATE ad_column
SET personaldatacategory='NP'
WHERE columnname in ('TransactionIdAPI');
UPDATE ad_column
SET personaldatacategory='NP'
WHERE columnname in ('SinglePriceTag_ID','Status','ProductDescription','POReference')
and ad_table_id IN (SELECT ad_table_id FROM ad_table WHERE tablename IN ('M_ShipmentSchedule'));
UPDATE ad_column
SET personaldatacategory='NP'
WHERE columnname in ('Note')
and ad_table_id IN (SELECT ad_table_id FROM ad_table WHERE tablename IN ('C_Invoice_Line_Alloc'));
UPDATE ad_column
SET personaldatacategory='NP'
WHERE ad_table_id IN (SELECT ad_table_id FROM ad_table WHERE tablename IN ('R_RequestProcessor','R_RequestProcessor_Route','R_RequestType','R_RequestType_Trl','R_StandardResponse','R_StatusCategory','R_Status_Trl'));
UPDATE ad_column
SET personaldatacategory='NP'
WHERE columnname in ('R_RequestType_InternalName')
and ad_table_id IN (SELECT ad_table_id FROM ad_table WHERE tablename IN ('R_Request'));
update ad_table set isview='Y', updated='2021-06-11 08:44', updatedby=99 where tablename='RV_Umsatz_Netto_VP';
UPDATE ad_column
SET personaldatacategory='NP'
WHERE ad_table_id IN (SELECT ad_table_id FROM ad_table WHERE tablename IN ('EXP_Format','EXP_FormatLine'));
UPDATE ad_column
SET personaldatacategory='NP'
WHERE ad_table_id IN (SELECT ad_table_id FROM ad_table WHERE tablename IN ('ES_FTS_Index','ES_FTS_IndexInclude','ES_FTS_Template'));
|
<reponame>dram/metasfresh
select de_metas_procurement.PMM_Balance_Rebuild();
|
<gh_stars>0
-- Author: <NAME>
-- File name gender_sought.sql
-- Date: 2015-10-08
-- Description: -- Creates the table for gender_sought
DROP TABLE IF EXISTS gender_sought;
CREATE TABLE gender_sought(
value SMALLINT PRIMARY KEY,
property VARCHAR(100)
);
INSERT INTO gender_sought(value, property)
VALUES (0, 'Male');
INSERT INTO gender_sought(value, property)
VALUES (1, 'Female');
INSERT INTO gender_sought(value, property)
VALUES (2, 'Both');
|
-- Revert SimpleMed:auditschema from pg
BEGIN;
DROP SCHEMA audit;
COMMIT;
|
<filename>vlib/db/db_init_data_group.sql
/*
* ::718604!
*
* Copyright(C) November 20, 2014 U.S. Food and Drug Administration
* Authors: Dr. <NAME> (1), Dr. <NAME> (2), et al
* Affiliation: Food and Drug Administration (1), George Washington University (2)
*
* All rights Reserved.
*
* The MIT License (MIT)
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
* and/or sell copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included
* in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
* DEALINGS IN THE SOFTWARE.
*/
START TRANSACTION;
TRUNCATE TABLE UPUser;
TRUNCATE TABLE UPGroup;
-- special system group
SET @system_group = '/system/';
SET @system_group_id = NULL;
INSERT INTO UPUser SET
is_admin_fg = TRUE, is_active_fg = TRUE, is_email_valid_fg = FALSE, `type` = 'system',
email = '', pswd = '--not an account--', first_name = @system_group, last_name = 'SYSTEM', createTm = CURRENT_TIMESTAMP;
SET @system_group_id = LAST_INSERT_ID();
INSERT INTO UPGroup SET userID = @system_group_id, flags = -1, is_active_fg = TRUE, groupPath = @system_group, createTm = CURRENT_TIMESTAMP;
SET @system_group_id = LAST_INSERT_ID();
SET @system_membership = CONCAT('( ((g.groupPath in (\'', @system_group, '\')) AND (p.flags & 2)) OR (( groupPath like \'', @system_group, '%\') AND (p.flags & 4)) )');
SET @system_permission = 4294967295; -- all
SET @system_flags = 2; -- down
SET @admins_group = '/system/admins/';
SET @admins_group_id = NULL;
INSERT INTO UPUser SET
is_admin_fg = FALSE, is_active_fg = TRUE, is_email_valid_fg = FALSE, `type` = 'system',
email = '', pswd = '--not an account--', first_name = @admins_group, last_name = 'Administrators', createTm = CURRENT_TIMESTAMP;
SET @admins_group_id = LAST_INSERT_ID();
INSERT INTO UPGroup SET userID = @admins_group_id, flags = -1, is_active_fg = TRUE, groupPath = @admins_group, createTm = CURRENT_TIMESTAMP;
SET @admins_group_id = LAST_INSERT_ID();
SET @admins_membership = CONCAT('( ((g.groupPath in (\'', @system_group, '\',\'', @admins_group, '\')) AND (p.flags & 2)) OR (( groupPath like \'', @admins_group, '%\') AND (p.flags & 4)) )');
SET @admins_permission = 3; -- browse, read
SET @admins_flags = 2; -- down
-- anything accessing the system is automatic member of this group
SET @everyone_group = '/everyone/';
SET @everyone_group_id = NULL;
INSERT INTO UPUser SET
is_admin_fg = FALSE, is_active_fg = TRUE, is_email_valid_fg = FALSE, `type` = 'group',
email = '', pswd = '--not an account--', first_name = @everyone_group, last_name = 'Everyone (world)', createTm = CURRENT_TIMESTAMP;
SET @everyone_group_id = LAST_INSERT_ID();
INSERT INTO UPGroup SET userID = @everyone_group_id, flags = -1, is_active_fg = TRUE, groupPath = @everyone_group, createTm = CURRENT_TIMESTAMP;
SET @everyone_group_id = LAST_INSERT_ID();
SET @everyone_membership = CONCAT('( ((g.groupPath in (\'', @everyone_group, '\')) AND (p.flags & 2)) OR (( groupPath like \'', @everyone_group, '%\') AND (p.flags & 4)) )');
SET @everyone_permission = 3; -- browse, read
SET @everyone_flags = 2; -- down
-- all guest users are automatic members of this group
SET @public_group = '/everyone/public/';
SET @public_group_id = NULL;
INSERT INTO UPUser SET
is_admin_fg = FALSE, is_active_fg = TRUE, is_email_valid_fg = FALSE, `type` = 'group',
email = '', pswd = '--not an account--', first_name = @public_group, last_name = '<NAME> (public)', createTm = CURRENT_TIMESTAMP;
SET @public_group_id = LAST_INSERT_ID();
INSERT INTO UPGroup SET userID = @public_group_id, flags = -1, is_active_fg = TRUE, groupPath = @public_group, createTm = CURRENT_TIMESTAMP;
SET @public_group_id = LAST_INSERT_ID();
SET @public_membership = CONCAT('( ((g.groupPath in (\'', @everyone_group, '\',\'', @public_group, '\')) AND (p.flags & 2)) OR (( groupPath like \'', @public_group, '%\') AND (p.flags & 4)) )');
SET @public_permission = 3; -- browse, read
SET @public_flags = 2; -- down
-- all registred users are automatic members of this group
-- this also provides users with their own individual private group
SET @users_group = '/everyone/users/';
SET @users_group_id = NULL;
INSERT INTO UPUser SET
is_admin_fg = FALSE, is_active_fg = TRUE, is_email_valid_fg = FALSE, `type` = 'group',
email = '', pswd = '--not an account--', first_name = @users_group, last_name = '<NAME>', createTm = CURRENT_TIMESTAMP;
SET @users_group_id = LAST_INSERT_ID();
INSERT INTO UPGroup SET userID = @users_group_id, flags = -1, is_active_fg = TRUE, groupPath = @users_group, createTm = CURRENT_TIMESTAMP;
SET @users_group_id = LAST_INSERT_ID();
SET @users_membership = CONCAT('( ((g.groupPath in (\'', @everyone_group, '\',\'', @users_group, '\')) AND (p.flags & 2)) OR (( groupPath like \'', @users_group, '%\') AND (p.flags & 4)) )');
SET @users_permission = 3; -- read, browse
SET @users_flags = 2; -- down
SET @guest_user = 'guest';
INSERT INTO UPUser SET
is_admin_fg = FALSE, is_active_fg = TRUE, is_email_valid_fg = FALSE, `type` = 'system', logCount = 1,
email = @guest_user, pswd = 'pbkdf2_sha256$100000$WZ98TEaE8jlu$bFXY8FRLCf00YKR7awUUtS88vpiN2jkGr5f85azqrnQ=', first_name = 'Guest', last_name = '', createTm = CURRENT_TIMESTAMP;
SET @guest_id = LAST_INSERT_ID();
INSERT INTO UPGroup SET userID = @guest_id, flags = -1, is_active_fg = TRUE, groupPath = CONCAT(@public_group, @guest_user), createTm = CURRENT_TIMESTAMP;
SET @qpride_user = 'qpride';
INSERT INTO UPUser SET
is_admin_fg = TRUE, is_active_fg = TRUE, is_email_valid_fg = FALSE, `type` = 'service', logCount = 1,
email = @qpride_user, pswd = '--service account--', first_name = 'QPride', last_name = '',
createTm = CURRENT_TIMESTAMP;
SET @qpride_id = LAST_INSERT_ID();
INSERT INTO UPGroup SET userID = @qpride_id, flags = -1, is_active_fg = TRUE, groupPath = CONCAT(@users_group, @qpride_user), createTm = CURRENT_TIMESTAMP;
INSERT INTO UPGroup SET userID = @qpride_id, flags = 0, is_active_fg = TRUE, groupPath = CONCAT(@system_group, @qpride_user), createTm = CURRENT_TIMESTAMP;
-- ----------------------
-- ----------------------
-- ----------------------
COMMIT;
|
begin
execute immediate 'drop table paper';
dbms_output.put_line('Table paper dropped');
exception
when others then dbms_output.put_line('Table paper did not exist');
end;
/
begin
execute immediate 'drop sequence paper_seq';
dbms_output.put_line('Sequence paper_seq dropped');
exception
when others then dbms_output.put_line('Sequence paper_seq did not exist');
end;
/
create table paper
(
id number(19) not null,
body NCLOB not null,
title nvarchar2(100) not null,
current_date DATE not null,
release_date DATE not null,
modify_date DATE not null,
tags varchar2(100) not null,
likes number(10) default 0,
rate number(10) default 0,
description nvarchar2(400),
lock_version number(19) default 1 not null,
constraint paper_pk_id primary key (id)
);
/
create sequence paper_seq
minvalue 10000 maxvalue 99999999999999999 cycle
start with 10000 increment by 10 cache 1000; |
-- Copyright (c) 2022. Harvard University
--
-- Developed by Research Software Engineering,
-- Faculty of Arts and Sciences, Research Computing (FAS RC)
-- Author: <NAME>
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or agreed to in writing, software
-- distributed under the License is distributed on an "AS IS" BASIS,
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-- See the License for the specific language governing permissions and
-- limitations under the License.
--
CREATE OR REPLACE PROCEDURE medicaid.create_eligibility_by_beneficiary()
LANGUAGE plpgsql
AS $$
DECLARE
cur_bene_id VARCHAR;
bene_cursor CURSOR FOR
SELECT bene_id
FROM medicaid.beneficiaries AS b
WHERE NOT EXISTS (
SELECT * FROM medicaid.e2 AS e
WHERE b.bene_id = e.bene_id
)
;
BEGIN
FOR bene_rec in bene_cursor LOOP
cur_bene_id := bene_rec.bene_id;
INSERT INTO medicaid.e2
SELECT * FROM medicaid._eligibility AS _e
WHERE _e.bene_id = cur_bene_id
;
COMMIT;
RAISE NOTICE 'bene_id = %', cur_bene_id;
END LOOP;
END;
$$;
CREATE OR REPLACE PROCEDURE medicaid.create_eligibility_by_year_state()
LANGUAGE plpgsql
AS $$
DECLARE
s VARCHAR;
y INT;
ts TIMESTAMP;
y_cursor CURSOR FOR
SELECT generate_series as y FROM generate_series(1999,2030);
state_cursor CURSOR FOR
SELECT DISTINCT state_id FROM public.us_states ORDER BY 1;
BEGIN
DROP TABLE IF EXISTS medicaid.e2 CASCADE;
CREATE TABLE medicaid.e2 AS SELECT * FROM medicaid._eligibility WITH NO DATA;
ALTER TABLE medicaid.eligibility ADD PRIMARY KEY (bene_id, year, state, month);
DROP TABLE IF EXISTS medicaid_audit.ecr CASCADE;
CREATE TABLE medicaid_audit.ecr (
state VARCHAR(2),
year INT,
ts TIMESTAMP,
duration INTERVAL
);
FOR s_rec in state_cursor LOOP
s := s_rec.state_id;
FOR y_rec in y_cursor LOOP
SELECT now() into ts;
y := y_rec.y;
INSERT INTO medicaid.e2
SELECT * FROM medicaid._eligibility AS _e
WHERE _e.state = s AND _e.year = y
;
COMMIT;
--RAISE NOTICE '%:%', s, y;
INSERT INTO medicaid_audit.ecr (
state, year, ts, duration
) VALUES (
s, y, now(), now() - ts
);
END LOOP;
END LOOP;
END;
$$;
|
<gh_stars>0
/*---------------------------------------------------------------------------------------------------------------------
*
* mapping.sql
* Foreign-data wrapper for remote Hadoop servers
* To verify the remote_estimates scenarios.
*
* Portions Copyright (c) 2012-2014, PostgreSQL Global Development Group
*
* Portions Copyright (c) 2004-2014, EnterpriseDB Corporation.
*
* IDENTIFICATION
* remote_estimates.sql
*
*---------------------------------------------------------------------------------------------------------------------
*/
-- Connection Settings.
\set HIVE_SERVER `echo \'"$HIVE_SERVER"\'`
\set HIVE_CLIENT_TYPE `echo \'"$CLIENT_TYPE"\'`
\set HIVE_PORT `echo \'"$HIVE_PORT"\'`
\set HIVE_USER `echo \'"$HIVE_USER"\'`
\set HIVE_PASSWORD `echo \'"$HIVE_PASSWORD"\'`
\set AUTH_TYPE `echo \'"$AUTH_TYPE"\'`
CREATE DATABASE fdw_regression ENCODING=UTF8 LC_CTYPE='en_US.UTF-8' TEMPLATE=template0;
\c fdw_regression postgres
CREATE EXTENSION hdfs_fdw;
--==========================================================================================
-- use_remote_estimates
-- 4. The option use_remote_estimates was not working.
--The patch corrects the syntax error in the remote query.
--Also it was using count() to get the rows in the remote table.
--The execution of a count() on the hive table took some 15-20 seconds
--and hence enabling remote estimates was making queries slow.
--This patch changes the FDW to use EXPLAIN select * from remote_table.
--While this works only if the hive tables are analysed i.e. stats are
--updated, this technique is very fast as compared to count(*) and
--does not slow down the whole query execution.
--The minimum row count that a remote estimate can return is 1000.
--
--==========================================================================================
-- Use wrong parameter name, error message will be displayed.
CREATE SERVER hdfs_server FOREIGN DATA WRAPPER hdfs_fdw OPTIONS(host :HIVE_SERVER, port :HIVE_PORT, client_type :HIVE_CLIENT_TYPE, use_remote_estimates 'aasaaaa');
-- Create Hadoop FDW Server with wrong value in use_remote_estimate 'sasaaa'.
CREATE SERVER hdfs_server FOREIGN DATA WRAPPER hdfs_fdw OPTIONS(host :HIVE_SERVER, port :HIVE_PORT, client_type :HIVE_CLIENT_TYPE, use_remote_estimate 'aasaaaa');
-- Create Hadoop USER MAPPING.
CREATE USER MAPPING FOR postgres SERVER hdfs_server OPTIONS (username :HIVE_USER, password :<PASSWORD>_PASSWORD);
-- Create Foreign Tables.
CREATE FOREIGN TABLE dept (
deptno INTEGER,
dname VARCHAR(14),
loc VARCHAR(13)
)
SERVER hdfs_server OPTIONS (dbname 'fdw_db', table_name 'dept');
-- Error message will be displayed as wrong value in use_remote_estimate 'sasaaa'. The error on CREATE SERVER will not displayed as its whats happens in PG FDW as discussed with Dev.
SELECT * FROM DEPT;
EXPLAIN SELECT * FROM DEPT;
--Cleanup
DROP EXTENSION hdfs_fdw CASCADE;
CREATE EXTENSION hdfs_fdw;
-- Create Hadoop FDW Server with wrong value in use_remote_estimate '1'.
CREATE SERVER hdfs_server FOREIGN DATA WRAPPER hdfs_fdw OPTIONS(host :HIVE_SERVER, port :HIVE_PORT, client_type :HIVE_CLIENT_TYPE, use_remote_estimate '1');
-- Create Hadoop USER MAPPING.
CREATE USER MAPPING FOR postgres SERVER hdfs_server OPTIONS (username :HIVE_USER, password :<PASSWORD>);
-- Create Foreign Tables.
CREATE FOREIGN TABLE dept (
deptno INTEGER,
dname VARCHAR(14),
loc VARCHAR(13)
)
SERVER hdfs_server OPTIONS (dbname 'fdw_db', table_name 'dept');
-- Error message will be displayed as wrong value in use_remote_estimate 'sasaaa'. The error on CREATE SERVER will not displayed as its whats happens in PG FDW as discussed with Dev.
SELECT * FROM DEPT;
EXPLAIN SELECT * FROM DEPT;
--Cleanup
DROP EXTENSION hdfs_fdw CASCADE;
CREATE EXTENSION hdfs_fdw;
-- Create Hadoop FDW Server with wrong value in use_remote_estimate . Error message will be displayed.
CREATE SERVER hdfs_server FOREIGN DATA WRAPPER hdfs_fdw OPTIONS(host :HIVE_SERVER, port :HIVE_PORT, client_type :HIVE_CLIENT_TYPE, use_remote_estimate );
--************************************************************************************
-- Using false value in use_remote_estimate, 1000 rows will be returned in Query Plan
--************************************************************************************
CREATE SERVER hdfs_server FOREIGN DATA WRAPPER hdfs_fdw OPTIONS(host :HIVE_SERVER, port :HIVE_PORT, client_type :HIVE_CLIENT_TYPE, use_remote_estimate 'false', log_remote_sql 'true',auth_type :AUTH_TYPE);
\des+ hdfs_server
-- Create Hadoop USER MAPPING.
CREATE USER MAPPING FOR postgres SERVER hdfs_server OPTIONS (username :HIVE_USER, password :<PASSWORD>);
-- Create Foreign Tables.
CREATE FOREIGN TABLE dept (
deptno INTEGER,
dname VARCHAR(14),
loc VARCHAR(13)
)
SERVER hdfs_server OPTIONS (dbname 'fdw_db', table_name 'dept');
-- Rows returned by the Plan will be 1000.
SELECT * FROM DEPT;
EXPLAIN SELECT * FROM DEPT;
--Change the value to true of use_remote_estimate using ALTER SERVER Command.
ALTER SERVER hdfs_server OPTIONS (SET log_remote_sql 'false');
ALTER SERVER hdfs_server OPTIONS (SET use_remote_estimate 'true');
\des+ hdfs_server
-- Rows returned by the Plan will be 1000 as the table only have 4 rows and so the "The minimum row count that a remote estimate can return is 1000.".
SELECT * FROM DEPT;
EXPLAIN SELECT * FROM DEPT;
--Cleanup
DROP EXTENSION hdfs_fdw CASCADE;
CREATE EXTENSION hdfs_fdw;
--************************************************************************************
-- Using true value in use_remote_estimate, 1000 rows will be returned in Query Plan
--************************************************************************************
CREATE SERVER hdfs_server FOREIGN DATA WRAPPER hdfs_fdw OPTIONS(host :HIVE_SERVER, port :HIVE_PORT, client_type :HIVE_CLIENT_TYPE, use_remote_estimate 'true', log_remote_sql 'true', fetch_size '100',auth_type :AUTH_TYPE);
\des+ hdfs_server
-- Create Hadoop USER MAPPING.
CREATE USER MAPPING FOR postgres SERVER hdfs_server OPTIONS (username :HIVE_USER, password :HIVE_PASSWORD);
-- Create Foreign Tables.
CREATE FOREIGN TABLE dept (
deptno INTEGER,
dname VARCHAR(14),
loc VARCHAR(13)
)
SERVER hdfs_server OPTIONS (dbname 'fdw_db', table_name 'dept');
-- Rows returned by the Plan will be 1000 as the table only have 4 rows and so the "The minimum row count that a remote estimate can return is 1000.".
SELECT * FROM DEPT;
EXPLAIN SELECT * FROM DEPT;
--Change the value to true of use_remote_estimate using ALTER SERVER Command.
ALTER SERVER hdfs_server OPTIONS (SET log_remote_sql 'false');
ALTER SERVER hdfs_server OPTIONS (SET use_remote_estimate 'false');
\des+ hdfs_server
-- Rows returned by the Plan will be 1000.
SELECT * FROM DEPT;
EXPLAIN SELECT * FROM DEPT;
--Cleanup
DROP EXTENSION hdfs_fdw CASCADE;
CREATE EXTENSION hdfs_fdw;
--************************************************************************************
-- Using true value in use_remote_estimate, 1000 rows will be returned in Query Plan
--************************************************************************************
CREATE SERVER hdfs_server FOREIGN DATA WRAPPER hdfs_fdw OPTIONS(host :HIVE_SERVER, port :HIVE_PORT, client_type :HIVE_CLIENT_TYPE, use_remote_estimate 'true', log_remote_sql 'true', fetch_size '100',auth_type :AUTH_TYPE);
\des+ hdfs_server
-- Create Hadoop USER MAPPING.
CREATE USER MAPPING FOR postgres SERVER hdfs_server OPTIONS (username :HIVE_USER, password :<PASSWORD>);
-- Create Foreign Tables.
CREATE FOREIGN TABLE weblogs
(
client_ip TEXT,
full_request_date TEXT,
day TEXT,
Month TEXT,
month_num INTEGER,
year TEXT,
hour TEXT,
minute TEXT,
second TEXT,
timezone TEXT,
http_verb TEXT,
uri TEXT,
http_status_code TEXT,
bytes_returned TEXT,
referrer TEXT,
user_agent TEXT
)
SERVER hdfs_server OPTIONS (dbname 'fdw_db', table_name 'weblogs');
-- Total rows will be displayed.
EXPLAIN SELECT * FROM weblogs;
--Change the value to true of use_remote_estimate using ALTER SERVER Command.
ALTER SERVER hdfs_server OPTIONS (SET use_remote_estimate 'false');
\des+ hdfs_server
-- 1000 rows will be displayed.
EXPLAIN SELECT * FROM weblogs;
-- DROP EXTENSION
DROP EXTENSION hdfs_fdw CASCADE;
\c postgres postgres
DROP DATABASE fdw_regression;
|
<reponame>bjtp/plscope-utils
/*
* Copyright 2017 <NAME> <<EMAIL>>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
CREATE OR REPLACE VIEW plscope_naming AS
WITH
/*
* You may configure regular expressions for every name check.
* Here's an example for overriding every attribute used in this view
* to combine various naming conventions:
*
BEGIN
plscope_context.set_attr('GLOBAL_VARIABLE_REGEX', '^(g|m)_.*');
plscope_context.set_attr('LOCAL_RECORD_VARIABLE_REGEX', '^(r|l|v)_.*');
plscope_context.set_attr('LOCAL_ARRAY_VARIABLE_REGEX', '^(t|l|v)_.*');
plscope_context.set_attr('LOCAL_OBJECT_VARIABLE_REGEX', '^(o|l|v)_.*');
plscope_context.set_attr('LOCAL_VARIABLE_REGEX', '(^(l|v)_.*)|(^[ij]$)');
plscope_context.set_attr('CURSOR_REGEX', '^(c|l)_.*');
plscope_context.set_attr('CURSOR_PARAMETER_REGEX', '(^(p|in|out|io)_.*)|(.*_(in|out|io)$)');
plscope_context.set_attr('IN_PARAMETER_REGEX', '(^(in|p)_.*)|(.*_in$)');
plscope_context.set_attr('OUT_PARAMETER_REGEX', '(^(out|p)_.*)|(.*_out$)');
plscope_context.set_attr('IN_OUT_PARAMETER_REGEX', '(^(io|p)_.*)|(.*_io$)');
plscope_context.set_attr('RECORD_REGEX', '^(r|tp?)_.*');
plscope_context.set_attr('ARRAY_REGEX', '(^tp?_.*)|(^.*_(type?|l(ist)?|tab(type)?|t(able)?|arr(ay)?|ct|nt|ht)$)');
plscope_context.set_attr('EXCEPTION_REGEX', '(^ex?_.*)|(.*_exc(eption)?$)');
plscope_context.set_attr('CONSTANT_REGEX', '^(co?|gc?|m|l)_.*');
plscope_context.set_attr('SUBTYPE_REGEX', '(^tp?_.*$)|(.*_type?$)');
END;
*
* To restore default-settings call:
*
BEGIN
plscope_context.remove_all;
END;
*
*/
src AS (
SELECT /*+ materialize */
owner,
type,
name,
line,
text
FROM dba_source
WHERE owner LIKE nvl(sys_context('PLSCOPE', 'OWNER'), USER)
AND type LIKE nvl(sys_context('PLSCOPE', 'OBJECT_TYPE'), '%')
AND name LIKE nvl(sys_context('PLSCOPE', 'OBJECT_NAME'), '%')
),
ids AS (
SELECT owner,
name,
type,
object_name,
object_type,
usage,
usage_id,
line,
col,
usage_context_id
FROM sys.dba_identifiers
WHERE owner LIKE nvl(sys_context('PLSCOPE', 'OWNER'), USER)
AND object_type LIKE nvl(sys_context('PLSCOPE', 'OBJECT_TYPE'), '%')
AND object_name LIKE nvl(sys_context('PLSCOPE', 'OBJECT_NAME'), '%')
),
tree AS (
SELECT ids.owner,
ids.object_type,
ids.object_name,
ids.line,
ids.col,
ids.name,
level as path_len,
ids.type,
sys_connect_by_path(ids.type, '/') AS type_path,
ids.usage,
ids.usage_id,
ids.usage_context_id,
prior ids.type AS parent_type,
prior ids.usage AS parent_usage,
prior ids.line AS parent_line,
prior ids.col AS parent_col,
prior ids.name AS parent_name
FROM ids
START WITH ids.usage_context_id = 0
CONNECT BY PRIOR ids.usage_id = ids.usage_context_id
AND PRIOR ids.owner = ids.owner
AND PRIOR ids.object_type = ids.object_type
AND PRIOR ids.object_name = ids.object_name
),
prepared AS (
SELECT tree.owner,
tree.object_type,
tree.object_name,
last_value (
CASE
WHEN tree.type in ('PROCEDURE', 'FUNCTION') AND tree.path_len = 2 THEN
tree.name
END
) IGNORE NULLS OVER (
PARTITION BY tree.owner, tree.object_name, tree.object_type
ORDER BY tree.line, tree.col, tree.path_len
) AS procedure_name,
regexp_replace(src.text, chr(10)||'+$', null) AS text, -- remove trailing new line character
tree.usage,
tree.type,
tree.name,
tree.line,
tree.col,
tree.type_path,
tree.parent_usage,
tree.parent_type,
tree.parent_name,
tree.parent_line,
tree.parent_col
FROM tree
LEFT JOIN src
ON src.owner = tree.owner
AND src.type = tree.object_type
AND src.name = tree.object_name
AND src.line = tree.line
WHERE tree.object_type IN ('FUNCTION', 'PROCEDURE', 'TRIGGER', 'PACKAGE', 'PACKAGE BODY', 'TYPE', 'TYPE BODY')
),
checked AS (
SELECT owner,
object_type,
object_name,
procedure_name,
CASE
WHEN usage = 'REFERENCE' THEN
parent_usage
ELSE
usage
END AS usage,
CASE
WHEN usage = 'REFERENCE' THEN
parent_type
ELSE
type
END AS type,
CASE
WHEN usage = 'REFERENCE' THEN
parent_name
ELSE
name
END AS name,
CASE
-- global variables (all types)
WHEN parent_usage = 'DECLARATION'
AND parent_type = 'VARIABLE'
AND usage = 'REFERENCE'
AND regexp_like(type_path, '/PACKAGE/VARIABLE/[A-Z0-9_ ]*$')
THEN
CASE
WHEN regexp_like(parent_name, nvl(sys_context('PLSCOPE', 'GLOBAL_VARIABLE_REGEX'), '^g_.*'), 'i') THEN
'OK'
ELSE
'Global variable does not match regex "' || nvl(sys_context('PLSCOPE', 'GLOBAL_VARIABLE_REGEX'), '^g_.*') || '".'
END
-- local record variables
WHEN parent_usage = 'DECLARATION'
AND parent_type = 'VARIABLE'
AND usage = 'REFERENCE'
AND (type = 'RECORD' OR regexp_like(text, '.*%\s*rowtype.*', 'i'))
AND object_type != 'TYPE'
AND NOT regexp_like(type_path, '/(RECORD|OBJECT)/VARIABLE/[A-Z0-9_ ]*$')
THEN
CASE
WHEN regexp_like(parent_name, nvl(sys_context('PLSCOPE', 'LOCAL_RECORD_VARIABLE_REGEX'), '^r_.*'), 'i') THEN
'OK'
ELSE
'Local record variable does not match regex "' || nvl(sys_context('PLSCOPE', 'LOCAL_RECORD_VARIABLE_REGEX'), '^r_.*') || '".'
END
-- local array/table variables
WHEN parent_usage = 'DECLARATION'
AND parent_type = 'VARIABLE'
AND usage = 'REFERENCE'
AND type IN ('ASSOCIATIVE ARRAY', 'VARRAY', 'INDEX TABLE', 'NESTED TABLE')
AND object_type != 'TYPE'
AND NOT regexp_like(type_path, '/(RECORD|OBJECT)/VARIABLE/[A-Z0-9_ ]*$')
THEN
CASE
WHEN regexp_like(parent_name, nvl(sys_context('PLSCOPE', 'LOCAL_ARRAY_VARIABLE_REGEX'), '^t_.*'), 'i') THEN
'OK'
ELSE
'Local array/table variable does not match regex "' || nvl(sys_context('PLSCOPE', 'LOCAL_ARRAY_VARIABLE_REGEX'), '^t_.*') || '".'
END
-- local object variables
WHEN parent_usage = 'DECLARATION'
AND parent_type = 'VARIABLE'
AND usage = 'REFERENCE'
AND type = 'OBJECT'
AND object_type != 'TYPE'
AND NOT regexp_like(type_path, '/(RECORD|OBJECT)/VARIABLE/[A-Z0-9_ ]*$')
THEN
CASE
WHEN regexp_like(parent_name, nvl(sys_context('PLSCOPE', 'LOCAL_OBJECT_VARIABLE_REGEX'), '^o_.*'), 'i') THEN
'OK'
ELSE
'Local object variable does not match regex "' || nvl(sys_context('PLSCOPE', 'LOCAL_OBJECT_VARIABLE_REGEX'), '^o_.*') || '".'
END
-- local variables for other types
WHEN parent_usage = 'DECLARATION'
AND parent_type = 'VARIABLE'
AND usage = 'REFERENCE'
AND object_type != 'TYPE'
AND NOT regexp_like(type_path, '/(RECORD|OBJECT)/VARIABLE/[A-Z0-9_ ]*$')
THEN
CASE
WHEN regexp_like(parent_name, nvl(sys_context('PLSCOPE', 'LOCAL_VARIABLE_REGEX'), '^l_.*'), 'i') THEN
'OK'
ELSE
'Local variable does not match regex "' || nvl(sys_context('PLSCOPE', 'LOCAL_VARIABLE_REGEX'), '^l_.*') || '".'
END
-- cursors
WHEN usage = 'DECLARATION'
AND type = 'CURSOR'
THEN
CASE
WHEN regexp_like(name, nvl(sys_context('PLSCOPE', 'CURSOR_REGEX'), '^c_.*'), 'i') THEN
'OK'
ELSE
'Cursor does not match regex "' || nvl(sys_context('PLSCOPE', 'CURSOR_REGEX'), '^c_.*') || '".'
END
-- cursor parameters
WHEN parent_usage = 'DECLARATION'
AND parent_type = 'CURSOR'
AND usage = 'DECLARATION'
AND type LIKE 'FORMAL%'
THEN
CASE
WHEN regexp_like(name, nvl(sys_context('PLSCOPE', 'CURSOR_PARAMETER_REGEX'), '^p_.*'), 'i') THEN
'OK'
ELSE
'Cursor parameter does not match regex "' || nvl(sys_context('PLSCOPE', 'CURSOR_PARAMETER_REGEX'), '^p_.*') || '".'
END
-- IN parameters
WHEN usage = 'DECLARATION'
AND type = 'FORMAL IN'
THEN
CASE
WHEN regexp_like(name, nvl(sys_context('PLSCOPE', 'IN_PARAMETER_REGEX'), '^in_.*'), 'i')
OR (object_type IN ('TYPE', 'TYPE BODY') AND name = 'SELF')
THEN
'OK'
ELSE
'IN parameter does not match regex "' || nvl(sys_context('PLSCOPE', 'IN_PARAMETER_REGEX'), '^in_.*') || '".'
END
-- OUT parameters
WHEN usage = 'DECLARATION'
AND type = 'FORMAL OUT'
THEN
CASE
WHEN regexp_like(name, nvl(sys_context('PLSCOPE', 'OUT_PARAMETER_REGEX'), '^out_.*'), 'i')
OR (object_type IN ('TYPE', 'TYPE BODY') AND name = 'SELF')
THEN
'OK'
ELSE
'OUT parameter does not match regex "' || nvl(sys_context('PLSCOPE', 'OUT_PARAMETER_REGEX'), '^out_.*') || '".'
END
-- IN OUT parameters
WHEN usage = 'DECLARATION'
AND type = 'FORMAL IN OUT'
THEN
CASE
WHEN regexp_like(name, nvl(sys_context('PLSCOPE', 'IN_OUT_PARAMETER_REGEX'), '^io_.*'), 'i')
OR (object_type IN ('TYPE', 'TYPE BODY') AND name = 'SELF')
THEN
'OK'
ELSE
'IN OUT parameter does not match regex "' || nvl(sys_context('PLSCOPE', 'IN_OUT_PARAMETER_REGEX'), '^io_.*') || '".'
END
-- records
WHEN usage = 'DECLARATION'
AND type = 'RECORD'
THEN
CASE
WHEN regexp_like(name, nvl(sys_context('PLSCOPE', 'RECORD_REGEX'), '^r_.*_type$'), 'i') THEN
'OK'
ELSE
'Record does not match regex "' || nvl(sys_context('PLSCOPE', 'RECORD_REGEX'), '^r_.*_type$') || '".'
END
-- arrays/tables
WHEN usage = 'DECLARATION'
AND type IN ('ASSOCIATIVE ARRAY', 'VARRAY', 'INDEX TABLE', 'NESTED TABLE')
THEN
CASE
WHEN regexp_like(name, nvl(sys_context('PLSCOPE', 'ARRAY_REGEX'), '^t_.*_type$'), 'i') THEN
'OK'
ELSE
'Array/table does not match regex "' || nvl(sys_context('PLSCOPE', 'ARRAY_REGEX'), '^t_.*_type$') || '".'
END
-- exceptions
WHEN usage = 'DECLARATION'
AND type = 'EXCEPTION'
THEN
CASE
WHEN regexp_like(name, nvl(sys_context('PLSCOPE', 'EXCEPTION_REGEX'), '^e_.*'), 'i') THEN
'OK'
ELSE
'Exception does not match regex "' || nvl(sys_context('PLSCOPE', 'EXCEPTION_REGEX'), '^e_.*') || '".'
END
-- constants
WHEN usage = 'DECLARATION'
AND type = 'CONSTANT'
THEN
CASE
WHEN regexp_like(name, nvl(sys_context('PLSCOPE', 'CONSTANT_REGEX'), '^co_.*'), 'i') THEN
'OK'
ELSE
'Constant does not match regex "' || nvl(sys_context('PLSCOPE', 'CONSTANT_REGEX'), '^co_.*') || '".'
END
-- subtypes
WHEN usage = 'DECLARATION'
AND type = 'SUBTYPE'
THEN
CASE
WHEN regexp_like(name, nvl(sys_context('PLSCOPE', 'SUBTYPE_REGEX'), '.*_type$'), 'i') THEN
'OK'
ELSE
'Subtype does not match regex "' || nvl(sys_context('PLSCOPE', 'SUBTYPE_REGEX'), '.*_type$') || '".'
END
END AS message,
CASE
WHEN usage = 'REFERENCE' THEN
parent_line
ELSE
line
END AS line,
CASE
WHEN usage = 'REFERENCE' THEN
parent_col
ELSE
col
END AS col,
text
FROM prepared
)
SELECT owner,
object_type,
object_name,
procedure_name,
type,
name,
message,
line,
col,
text
FROM checked
WHERE message IS NOT NULL;
|
<gh_stars>0
-- phpMyAdmin SQL Dump
-- version 4.2.11
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Feb 01, 2015 at 04:47 AM
-- Server version: 5.6.21
-- PHP Version: 5.6.3
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
--
-- Database: `mastersinthestates`
--
-- --------------------------------------------------------
--
-- Table structure for table `deadlines`
--
CREATE TABLE IF NOT EXISTS `deadlines` (
`id` int(11) NOT NULL,
`program_id` int(11) NOT NULL,
`datetime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `history`
--
CREATE TABLE IF NOT EXISTS `history` (
`id` int(11) NOT NULL,
`type` varchar(50) NOT NULL COMMENT 'gre/gpa/toefl',
`value` float NOT NULL,
`program_id` int(11) NOT NULL COMMENT 'references program id'
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `programs`
--
CREATE TABLE IF NOT EXISTS `programs` (
`id` int(11) NOT NULL,
`school_id` int(11) NOT NULL,
`university_id` int(11) NOT NULL,
`name` varchar(500) NOT NULL,
`description` varchar(800) NOT NULL,
`website` varchar(500) NOT NULL
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=latin1;
--
-- Dumping data for table `programs`
--
INSERT INTO `programs` (`id`, `school_id`, `university_id`, `name`, `description`, `website`) VALUES
(1, 1, 9, 'MSIT Mobility', 'Carnegie Mellon''s Information Networking Institute (INI) offers the MSIT in Mobility (MOB) to prepare students to be at the forefront of the converged mobile/Internet regime with a multidisciplinary curriculum spanning both technical and business topics in mobile applications, services and devices.', 'http://www.cmu.edu/silicon-valley/academics/msit/msit-mob.html'),
(2, 1, 9, 'Master of Science in Information Technology - Information Security (MSIT-IS)', 'Specifically, the MSIT-IS program is designed to prepare students to:\r\ngrid-image\r\nDevelop expertise in both theory and practice of information security\r\nAcquire a detailed understanding of information security challenges in networks and software systems', 'http://www.cmu.edu/silicon-valley/academics/msit/msit-is.html'),
(3, 2, 9, 'Master of Science in Computer Science\r\nMS(CS)\r\n', 'The MS program in Computer Science offers students with a Bachelor''s degree the opportunity to improve their training with advanced study in Computer Science. We cater to students with basic analytic skills and a strong aptitude for mathematics, programming, and logical reasoning.', 'http://www.cs.cmu.edu/masters-programs');
-- --------------------------------------------------------
--
-- Table structure for table `requirements`
--
CREATE TABLE IF NOT EXISTS `requirements` (
`id` int(11) NOT NULL,
`type` varchar(50) NOT NULL COMMENT 'gre/gpa/toefl/wex',
`value` float NOT NULL,
`program_id` int(11) NOT NULL COMMENT 'references program_id'
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `schools`
--
CREATE TABLE IF NOT EXISTS `schools` (
`id` int(11) NOT NULL,
`university_id` int(11) NOT NULL COMMENT 'references uni id',
`name` varchar(200) NOT NULL,
`type` varchar(50) NOT NULL COMMENT 'mech/comp/it/etc'
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=latin1;
--
-- Dumping data for table `schools`
--
INSERT INTO `schools` (`id`, `university_id`, `name`, `type`) VALUES
(1, 9, 'Information Networking Institute', 'Information Systems, Information Technology (IT)'),
(2, 9, 'School of Computer Science', 'Computer Science');
-- --------------------------------------------------------
--
-- Table structure for table `universities`
--
CREATE TABLE IF NOT EXISTS `universities` (
`id` int(11) NOT NULL,
`name` varchar(250) NOT NULL,
`location` varchar(100) NOT NULL,
`be` int(11) NOT NULL,
`cs` int(11) NOT NULL,
`acceptance` float NOT NULL,
`avg_q` int(11) NOT NULL,
`avg_gpa` float NOT NULL,
`employer_rating` float NOT NULL
) ENGINE=InnoDB AUTO_INCREMENT=38 DEFAULT CHARSET=latin1;
--
-- Dumping data for table `universities`
--
INSERT INTO `universities` (`id`, `name`, `location`, `be`, `cs`, `acceptance`, `avg_q`, `avg_gpa`, `employer_rating`) VALUES
(1, 'Cal Tech', 'Pasadena, CA', 5, 7, 0.09, 166, 3.7, 4.5),
(2, 'Yale University', 'New Haven, CT', 34, 35, 0.146, 166, 3.6, 3.5),
(3, 'Harvard', 'Cambridge,MA', 19, 30, 0.07, 164, 3.7, 3.8),
(4, 'Columbia University', 'NY,NY', 15, 18, 0.25, 164, 3.5, 3.7),
(5, 'University of Michigan', '<NAME>, MI?', 8, 7, 0.292, 163, 3.6, 4.2),
(6, 'University of Wisconsin, Madison', 'Madison, WI', 17, 14, 0.14, 163, 3.5, 4),
(7, 'University of California--Santa Barbara', 'Santa Barbara CA', 21, 18, 0.234, 162, 3.6, 3.7),
(8, 'Penn State', 'University Park,PA', 25, 26, 0.267, 160, 3.6, 3.8),
(9, 'CMU', 'Pittsburg, PA', 7, 4, 0.268, 160, 3.7, 4.2),
(10, '<NAME> (Whiting)', 'Baltimore,MD', 26, 26, 0.283, 160, 3.5, 3.9),
(11, 'University of Illinois', 'Urbana Illionois', 5, 5, 0.26, 161, 3.6, 4.4),
(12, 'University of California - Los Angeles', 'Los Angeles,CA', 16, 13, 0.307, 161, 3.5, 3.8),
(13, 'University of California , San Diego', 'La Jolla,CA', 14, 17, 0.23, 161, 3.2, 3.8),
(14, 'Georgia Institute of Technology', 'Atlanta, GA', 4, 6, 0.278, 161, 3.6, 4.4),
(15, 'University of California, Santa Cruz', 'Santa Cruz,CA', 56, 57, 0.4, 161, 3.5, 3.2),
(16, 'University of Austin, TX', 'Austin,TX', 8, 9, 0.183, 161, 3.6, 4.1),
(17, 'Cornell', 'Ithaca , NY', 10, 11, 0.269, 161, 3.5, 4.2),
(18, 'University of California - Irvine', 'Irvine, CA', 39, 26, 0.234, 161, 3.5, 3.4),
(19, 'Northwestern University', 'Evanston, IL', 19, 25, 0.22, 161, 3.4, 3.9),
(20, 'University of Southern California Viterbi', 'Los Angeles,CA', 12, 13, 0.307, 160, 3.5, 3.6),
(21, 'Rice University', 'Houston, TX', 31, 18, 0.165, 160, 3.5, 3.7),
(22, 'University of Rochester', 'Rochester NY', 41, 52, 0.304, 160, 3.4, 3.2),
(23, 'Ohio State', 'Columbus,OH', 30, 23, 0.307, 160, 3.6, 3.6),
(24, 'Boston University', 'Boston,MA', 0, 0, 0.253, 160, 3.6, 3.3),
(25, 'University of California, Davis', 'Davis,CA', 31, 30, 0.24, 160, 3.4, 3.6),
(26, 'Purdue', 'Lafayette , IN', 10, 11, 0.279, 160, 3.7, 4.1),
(27, 'University of Arizona', 'Tuscon , AZ', 49, 35, 0.3, 160, 3.5, 3.2),
(28, 'University of Maryland, College Park', 'Maryland', 18, 16, 0.273, 160, 3.5, 3.6),
(29, 'University of California, Riverside', 'Riverside,CA', 64, 52, 0.24, 160, 3.4, 2.8),
(30, 'Northeastern University', 'Boston,MA', 62, 43, 0.467, 159, 3.3, 3.3),
(31, 'North Carolina State', 'Raleigh, Nc', 31, 30, 0.203, 159, 3.5, 3.5),
(32, '<NAME>', 'New York', 87, 57, 0.3, 158, 3.33, 2.7),
(33, 'University of Washington , Seattle', 'Seattle, WA', 26, 14, 0.229, 159, 3.6, 3.6),
(34, 'Virginia Tech', 'Blacksburg, VA', 24, 23, 0.23, 157, 3.4, 3.9),
(35, 'University of Central Florida', 'Florida', 72, 57, 0.451, 155, 3.3, 2.7),
(36, 'Princeton University', 'Princeton, NJ', 21, 12, 0.1, 162, 3.4, 3.9),
(37, 'Master of Science in Information Networking (MSIN)', '', 0, 0, 0, 0, 0, 0);
--
-- Indexes for dumped tables
--
--
-- Indexes for table `deadlines`
--
ALTER TABLE `deadlines`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `programs`
--
ALTER TABLE `programs`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `requirements`
--
ALTER TABLE `requirements`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `schools`
--
ALTER TABLE `schools`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `universities`
--
ALTER TABLE `universities`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `deadlines`
--
ALTER TABLE `deadlines`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `programs`
--
ALTER TABLE `programs`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `requirements`
--
ALTER TABLE `requirements`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `schools`
--
ALTER TABLE `schools`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `universities`
--
ALTER TABLE `universities`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=38;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
<filename>quickstart/tpch-exp/tpch-query/q3/15.sql
select
l_suppkey,
sum(l_extendedprice * (1 - l_discount))
from
lineitem
where
l_shipdate >= '1994-02-25'
and l_shipdate < '1994-05-31'
group by
l_suppkey;
|
<filename>src/EdFi.AnalyticsMiddleTier.DataStandard32/Asmt/MSSQL/0003-View-StudentAssessmentObjectiveFact-Create.sql
-- SPDX-License-Identifier: Apache-2.0
-- Licensed to the Ed-Fi Alliance under one or more agreements.
-- The Ed-Fi Alliance licenses this file to you under the Apache License, Version 2.0.
-- See the LICENSE and NOTICES files in the project root for more information.
IF EXISTS (SELECT 1 FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_SCHEMA = 'analytics' AND TABLE_NAME = 'asmt_StudentAssessmentObjectiveFact')
BEGIN
DROP VIEW analytics.asmt_StudentAssessmentObjectiveFact
END
GO
CREATE VIEW analytics.asmt_StudentAssessmentObjectiveFact
AS
SELECT CONCAT(SASOA.StudentUSI, '-', SASOA.IdentificationCode, '-', SASOA.AssessmentIdentifier, '-', SASOA.StudentAssessmentIdentifier, '-', SASOA.Namespace) AS StudentObjectiveAssessmentKey,
Assessment.AssessmentIdentifier AS AssessmentKey,
CONCAT(Student.StudentUniqueId, '-', StudentSchoolAssociation.SchoolId) AS StudentSchoolKey,
CAST(School.SchoolId AS VARCHAR) AS SchoolKey,
Result AS StudentScore,
ResultDescriptor.Description AS ResultDataType,
ReportingMethodDescriptor.Description AS ReportingMethod,
COALESCE(PerformanceLevelDescriptor.Description, '') AS PerformanceResult
FROM
edfi.StudentAssessmentStudentObjectiveAssessment SASOA
INNER JOIN
edfi.Assessment ON
Assessment.AssessmentIdentifier = SASOA.AssessmentIdentifier
AND
Assessment.Namespace = SASOA.Namespace
INNER JOIN
edfi.StudentAssessmentStudentObjectiveAssessmentScoreResult SASOASR ON
SASOA.StudentUSI = SASOASR.StudentUSI
AND
SASOA.IdentificationCode = SASOASR.IdentificationCode
AND
SASOA.AssessmentIdentifier = SASOASR.AssessmentIdentifier
AND
SASOA.StudentAssessmentIdentifier = SASOASR.StudentAssessmentIdentifier
AND
SASOA.Namespace = SASOASR.Namespace
INNER JOIN
edfi.Descriptor AS ResultDescriptor ON
ResultDescriptor.DescriptorId = SASOASR.ResultDatatypeTypeDescriptorId
INNER JOIN
edfi.Descriptor AS ReportingMethodDescriptor ON
ReportingMethodDescriptor.DescriptorId = SASOASR.AssessmentReportingMethodDescriptorId
INNER JOIN
edfi.Student ON
Student.StudentUSI = SASOA.StudentUSI
INNER JOIN
edfi.StudentSchoolAssociation ON
Student.StudentUSI = StudentSchoolAssociation.StudentUSI
INNER JOIN
edfi.School ON
StudentSchoolAssociation.SchoolId = School.SchoolId
LEFT JOIN
edfi.StudentAssessmentStudentObjectiveAssessmentPerformanceLevel SASOAPL ON
SASOASR.StudentUSI = SASOAPL.StudentUSI
AND
SASOASR.IdentificationCode = SASOAPL.IdentificationCode
AND
SASOASR.AssessmentIdentifier = SASOAPL.AssessmentIdentifier
AND
SASOASR.StudentAssessmentIdentifier = SASOAPL.StudentAssessmentIdentifier
AND
SASOASR.Namespace = SASOAPL.Namespace
AND
SASOASR.AssessmentReportingMethodDescriptorId = SASOAPL.AssessmentReportingMethodDescriptorId
LEFT JOIN
edfi.Descriptor AS PerformanceLevelDescriptor ON
PerformanceLevelDescriptor.DescriptorId = SASOAPL.PerformanceLevelDescriptorId
WHERE(
StudentSchoolAssociation.ExitWithdrawDate IS NULL
OR StudentSchoolAssociation.ExitWithdrawDate >= GETDATE()); |
CREATE PROCEDURE SP944(OUT MYCOUNT INTEGER) SPECIFIC SP944_76561 LANGUAGE SQL NOT DETERMINISTIC READS SQL DATA NEW SAVEPOINT LEVEL BEGIN ATOMIC DECLARE MYVAR INT;SELECT COUNT(*)INTO MYCOUNT FROM TABLE347;SELECT COUNT(*)INTO MYCOUNT FROM TABLE67;SELECT COUNT(*)INTO MYCOUNT FROM TABLE5;SELECT COUNT(*)INTO MYCOUNT FROM VIEW82;SELECT COUNT(*)INTO MYCOUNT FROM VIEW37;SELECT COUNT(*)INTO MYCOUNT FROM VIEW3;CALL SP674(MYVAR);CALL SP351(MYVAR);CALL SP326(MYVAR);CALL SP114(MYVAR);END
GO |
INSERT INTO department (department_name)
VALUES
('Engineering'),
('Marketing'),
('Sales'),
('Customer Service');
INSERT INTO role (title, salary, department_id)
VALUES
('Head Engineer', 500000, 1),
('Engineer', 100000, 1),
('Marketing Director', 200000, 2),
('Graphic Designer', 55000, 2),
('Digital Marketer', 75000, 2),
('Head of Sales', 120000, 3),
('Salesperson', 70000, 3),
('CS Lead', 150000, 4);
INSERT INTO employee (first_name, last_name, role_id, manager_id)
VALUES
('Ronald', 'Firbank', 1, NULL),
('Virginia', 'Woolf', 2, 1),
('Piers', 'Gaveston', 3, NULL),
('Charles', 'LeRoi', 4, 3),
('Katherine', 'Mansfield', 5, 3),
('Dora', 'Carrington', 6, NULL),
('Edward', 'Bellamy', 7, 6),
('Montague', 'Summers', 7, 6),
('Octavia', 'Butler', 8, NULL);
|
<filename>construtora.sql
drop database if exists construtora;
create database construtora;
use construtora;
create table departamento(
id_departamento int primary key,
nome_departamento varchar(32) not null
);
create table projeto(
id_projeto int primary key,
nome_projeto varchar(32) not null,
status_projeto varchar(7),
departamento_id int,
foreign key (departamento_id) references departamento(id_departamento)
);
create table funcionario(
matricula_funcionario int primary key,
nome_funcionario varchar(32) not null,
salario_funcionario float not null,
departamento_id int not null,
chefe_matricula int not null,
FOREIGN KEY (departamento_id) references departamento(id_departamento),
FOREIGN KEY (chefe_matricula) references funcionario(matricula_funcionario)
);
create table funcionario_projeto(
funcionario_matricula int,
projeto_id int,
primary key (funcionario_matricula, projeto_id),
foreign key (funcionario_matricula) references funcionario(matricula_funcionario),
foreign key (projeto_id) references projeto(id_projeto)
);
insert into departamento (id_departamento, nome_departamento) values
(1,'front end'),
(2,'back end'),
(3,'fullstack');
insert into projeto (id_projeto, nome_projeto, status_projeto, departamento_id) values
(101, 'crud java','pronto',1),
(102, 'crud javascript','pronto',2),
(103, 'crud spring web','fazendo',1),
(104, 'crud spring json','pronto',1),
(105, 'crud json java/js','fazendo',3),
(106, 'cadastro ajax', 'fazendo', 2);
SET FOREIGN_KEY_CHECKS=0;
insert into funcionario (matricula_funcionario, nome_funcionario, salario_funcionario, departamento_id, chefe_matricula) values
(10, 'lucas', 1100, 1, null),
(11, 'karolina', 9500, 3, null),
(12, 'matheus', 1400, 2, null),
(13, 'neiva', 2000, 3, null),
(14, 'bandida', 1300, 1, null),
(15, 'aladdin', 1700, 3, null),
(16, 'tigrinha', 2300, 2,null);
UPDATE funcionario SET chefe_matricula = 10 where matricula_funcionario = 10;
UPDATE funcionario SET chefe_matricula = 11 where matricula_funcionario = 11;
UPDATE funcionario SET chefe_matricula = 16 where matricula_funcionario = 12;
UPDATE funcionario SET chefe_matricula = 11 where matricula_funcionario = 13;
UPDATE funcionario SET chefe_matricula = 10 where matricula_funcionario = 14;
UPDATE funcionario SET chefe_matricula = 11 where matricula_funcionario = 15;
UPDATE funcionario SET chefe_matricula = 16 where matricula_funcionario = 16;
SET FOREIGN_KEY_CHECKS=1;
insert into funcionario_projeto (projeto_id, funcionario_matricula) values
(101, 10),
(101, 14),
(105, 11),
(105, 13),
(105, 15),
(105, 10),
(105, 14),
(102, 16),
(102, 12),
(103, 10),
(104, 10),
(104, 14),
(106, 11);
select projeto_id, nome_projeto, funcionario_matricula, nome_funcionario
from funcionario_projeto
left join funcionario on funcionario_matricula = matricula_funcionario
left join projeto on projeto_id = id_projeto
order by projeto_id; |
drop view if exists quotation_jatuh_tempo;
create view quotation_jatuh_tempo as
select nama_perusahaan,quotation.*, datediff(quotation.dateline_quotation,curdate()) as waktu_jatuh_tempo from quotation
inner join order_detail on order_detail.id_submit_quotation = quotation.id_submit_quotation
where quotation.status_aktif_quotation = 0 and quotation.status_quotation = 0
order by waktu_jatuh_tempo ASC
select * from quotation_jatuh_tempo; |
insert into photo values (0,'/uploads/usr/default.jpeg');
insert into photo values (1,'/uploads/obj/default.jpeg');
INSERT INTO categorie VALUES ( 0, NULL, 'Toutes categories');
INSERT INTO categorie VALUES ( seqcat.nextval, NULL, 'Vehicules');
INSERT INTO categorie VALUES ( seqcat.nextval, NULL, 'Multimedia');
INSERT INTO categorie VALUES ( seqcat.nextval, NULL, 'Maison');
INSERT INTO categorie VALUES ( seqcat.nextval, NULL, 'Loisirs');
INSERT INTO categorie VALUES ( seqcat.nextval, NULL, 'Services');
INSERT INTO categorie VALUES ( seqcat.nextval, NULL, 'Autres');
INSERT INTO categorie VALUES ( seqcat.nextval, 1, 'Voiture');
INSERT INTO categorie VALUES ( seqcat.nextval, 1, 'Camion');
INSERT INTO categorie VALUES ( seqcat.nextval, 1, 'Ovni');
INSERT INTO categorie VALUES ( seqcat.nextval, 2, 'Informatique');
INSERT INTO categorie VALUES ( seqcat.nextval, 2, 'Jeux-video electronique');
INSERT INTO categorie VALUES ( seqcat.nextval, 2, 'Audio-Visuel ViruelSound fx4000');
INSERT INTO categorie VALUES ( seqcat.nextval, 3, 'Canapee');
INSERT INTO categorie VALUES ( seqcat.nextval, 3, 'Fauteille');
INSERT INTO categorie VALUES ( seqcat.nextval, 3, 'Lit');
INSERT INTO categorie VALUES ( seqcat.nextval, 4, 'DVD/CD');
INSERT INTO categorie VALUES ( seqcat.nextval, 4, 'Dinausores');
INSERT INTO categorie VALUES ( seqcat.nextval, 4, 'Jeux trop bien');
INSERT INTO categorie VALUES ( seqcat.nextval, 5, 'Ufologie');
INSERT INTO categorie VALUES ( seqcat.nextval, 5, 'Reunion anonyme');
INSERT INTO categorie VALUES ( seqcat.nextval, 5, 'Cours particuliers');
INSERT INTO usr VALUES ( 1, 0,'admin', 48.5608, 7.7629, 5, 0,'3e3e6b0e5c1c68644fc5ce3cf060211d');
INSERT INTO usr VALUES ( 2, 0,'jeanguy', 47.9883, 6.9628, 5, 0,'bf9457b3748d91317779826ce026ba1e');
INSERT INTO usr VALUES ( 3, 0,'barnabe', 49.1655, 8.2678, 3, 0,'0acf7828b8a05ace732412c6408f47eb');
-- test deux obj dans la meme prop
insert into objet values (seqobjet.nextval, 2, 0,'bon','premier objet sur le site','Neuf', 10, 0, 0);
insert into proposition values (seqprop.nextval,3,2, 0,0,48.662544, 7.832544,'01-NOV-2014',0);
insert into recoit_une values(seqobjet.currval, seqprop.currval);
insert into objet values (seqobjet.nextval, 1, 0,'bon','objet de ladmin sur le site','Neuf', 5, 0, 0);
insert into recoit_une values(seqobjet.currval, seqprop.currval);
update proposition set accepter = 1 where id_prop = 2;
-- ok
-- ajout de plusieur obj du meme nom pour tester "bonne affaire"
insert into objet values (seqobjet.nextval, 3, 0,'bon','deuxieme objet sur le site','Neuf', 15, 0, 0);
insert into proposition values (seqprop.nextval,2,3, 0,0,47.662544, 7.832544,'01-NOV-2014',0);
insert into recoit_une values(seqobjet.currval, seqprop.currval);
update proposition set accepter = 1 where id_prop = 3;
insert into objet values (seqobjet.nextval, 3, 0,'bon','troisieme objet sur le site','Neuf', 20, 0, 0);
insert into proposition values (seqprop.nextval,2,3, 0,0,49.662544, 7.832544,'01-NOV-2014',0);
insert into recoit_une values(seqobjet.currval, seqprop.currval);
update proposition set accepter = 1 where id_prop = 4;
-- test d'archivage de prop refusee
insert into objet values (seqobjet.nextval, 3, 0,'bon','quatrieme objet sur le site','Neuf', 10, 0, 0);
-- est une bonne affaire
insert into proposition values (seqprop.nextval,2,3, 0,0,50.662544, 7.832544,'01-NOV-2014',0);
-- prop refusee
insert into recoit_une values(seqobjet.currval, seqprop.currval);
insert into proposition values (seqprop.nextval,1,3, 0,0,51.662544, 7.832544,'02-NOV-2014',0);
insert into recoit_une values(seqobjet.currval, seqprop.currval);
update proposition set accepter = 1 where id_prop = 6;
-- ok
-- test d'evaluation pour tester utilisateur de confiance
INSERT INTO COMMENTAIRE VALUES (seqcom.nextval, 3,1,null, 'com d admin sur barnabe', 4, default);
INSERT INTO COMMENTAIRE VALUES (seqcom.nextval, 3,2,null, 'com de jeanguy sur barnabe', 5, default);
INSERT INTO COMMENTAIRE VALUES (seqcom.nextval, 2,3,null, 'com de barnabe sur jeanguy trop de swag', 5, default);
-- ok
-- teste un service avec plusieurs places
insert into objet values (seqobjet.nextval, 2, 0,'service','premier service sur le site',default, 10, 3, 0);
insert into proposition values (seqprop.nextval,3,2, 0,0,52.662544, 7.832544,'03-NOV-2014',0);
insert into recoit_une values(seqobjet.currval, seqprop.currval);
insert into proposition values (seqprop.nextval,1,2, 0,0,53.662544, 7.832544,'04-NOV-2014',0);
insert into recoit_une values(seqobjet.currval, seqprop.currval);
update proposition set accepter = 1 where id_prop = 7;
update proposition set accepter = 1 where id_prop = 8;
insert into proposition values (seqprop.nextval,1,2, 0,0,54.662544, 7.832544,'05-NOV-2014',0);
insert into recoit_une values(seqobjet.currval, seqprop.currval);
update proposition set accepter = 1 where id_prop = 9;
-- plus de place, archivage ok
insert into objet values (seqobjet.nextval, 3, 0,'bon','Un bon pour une bonne affaire ! (test de bonne affaire)','Neuf', 10, 0, 0);
insert into objet values (seqobjet.nextval, 2, 0,'Du swag','Jean guy Swag propose du swag parce quil en a trop','Abime', 150, 0, 0);
insert into objet values (seqobjet.nextval, 2, 0,'Un cartable hello kitty','le top du swag','Neuf', 99, 0, 0);
insert into objet values (seqobjet.nextval, 3, 0,'Une casquette a helice','Je lechange contre un jeux video electronique virtuel !','Neuf', 10, 0, 0);
|
<reponame>miguelmino95/Sistema_inventarios
-- MySQL Workbench Forward Engineering
SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0;
SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0;
SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='TRADITIONAL,ALLOW_INVALID_DATES';
-- -----------------------------------------------------
-- Schema mydb
-- -----------------------------------------------------
-- -----------------------------------------------------
-- Schema bdinventarios7
-- -----------------------------------------------------
-- -----------------------------------------------------
-- Schema bdinventarios7
-- -----------------------------------------------------
CREATE SCHEMA IF NOT EXISTS `bdinventarios7` DEFAULT CHARACTER SET utf8 ;
USE `bdinventarios7` ;
-- -----------------------------------------------------
-- Table `bdinventarios7`.`activos`
-- -----------------------------------------------------
CREATE TABLE IF NOT EXISTS `bdinventarios7`.`activos` (
`idactivos` INT(11) NOT NULL,
`nombre_act` VARCHAR(45) NULL DEFAULT NULL,
`marca_act` VARCHAR(45) NULL DEFAULT NULL,
`modelo_act` VARCHAR(45) NULL DEFAULT NULL,
`serie_act` VARCHAR(45) NULL,
`numfactura_act` VARCHAR(45) NULL DEFAULT NULL,
`estado_act` VARCHAR(45) NULL,
`detalles_act` VARCHAR(45) NULL DEFAULT NULL,
PRIMARY KEY (`idactivos`))
ENGINE = InnoDB
DEFAULT CHARACTER SET = utf8;
-- -----------------------------------------------------
-- Table `bdinventarios7`.`areas`
-- -----------------------------------------------------
CREATE TABLE IF NOT EXISTS `bdinventarios7`.`areas` (
`idareas` INT(11) NOT NULL AUTO_INCREMENT,
`nombre_a` VARCHAR(45) NOT NULL,
`detalles_a` VARCHAR(45) NULL DEFAULT NULL,
PRIMARY KEY (`idareas`))
ENGINE = InnoDB
AUTO_INCREMENT = 9
DEFAULT CHARACTER SET = utf8
COMMENT = 'areas de trabajo itsae';
-- -----------------------------------------------------
-- Table `bdinventarios7`.`departamentos`
-- -----------------------------------------------------
CREATE TABLE IF NOT EXISTS `bdinventarios7`.`departamentos` (
`iddepart` INT(11) NOT NULL AUTO_INCREMENT,
`nombre_d` VARCHAR(45) NULL DEFAULT NULL,
`detalles_d` VARCHAR(45) NULL DEFAULT NULL,
`estado_d` VARCHAR(45) NULL,
`areas_idareas` INT(11) NOT NULL DEFAULT '0',
PRIMARY KEY (`iddepart`, `areas_idareas`),
INDEX `fk_departamentos_areas_idx` (`areas_idareas` ASC),
CONSTRAINT `fk_departamentos_areas`
FOREIGN KEY (`areas_idareas`)
REFERENCES `bdinventarios7`.`areas` (`idareas`)
ON DELETE NO ACTION
ON UPDATE NO ACTION)
ENGINE = InnoDB
AUTO_INCREMENT = 39
DEFAULT CHARACTER SET = utf8;
-- -----------------------------------------------------
-- Table `bdinventarios7`.`personal`
-- -----------------------------------------------------
CREATE TABLE IF NOT EXISTS `bdinventarios7`.`personal` (
`idpersonal` INT(11) NOT NULL AUTO_INCREMENT,
`pnombre_p` VARCHAR(60) NULL DEFAULT NULL,
`snombre_p` VARCHAR(60) NULL DEFAULT NULL,
`apaterno_p` VARCHAR(60) NULL DEFAULT NULL,
`amaterno_p` VARCHAR(60) NULL DEFAULT NULL,
`dni_p` VARCHAR(15) NULL DEFAULT NULL,
`cargo_p` VARCHAR(45) NULL DEFAULT NULL,
`telefono_p` INT(11) NULL DEFAULT NULL,
`direccion_p` VARCHAR(60) NULL DEFAULT NULL,
`estado_p` VARCHAR(45) NULL,
PRIMARY KEY (`idpersonal`),
UNIQUE INDEX `dni_p_UNIQUE` (`dni_p` ASC))
ENGINE = InnoDB
AUTO_INCREMENT = 4
DEFAULT CHARACTER SET = utf8;
-- -----------------------------------------------------
-- Table `bdinventarios7`.`mantenimiento`
-- -----------------------------------------------------
CREATE TABLE IF NOT EXISTS `bdinventarios7`.`mantenimiento` (
`idmantenimiento` INT(11) NOT NULL,
`detalle_m` VARCHAR(200) NULL DEFAULT NULL,
`fecha_m` DATE NULL DEFAULT NULL,
`activos_idactivos` INT(11) NOT NULL,
`personal_idpersonal` INT(11) NOT NULL,
PRIMARY KEY (`idmantenimiento`, `activos_idactivos`, `personal_idpersonal`),
INDEX `fk_mantenimiento_activos1_idx` (`activos_idactivos` ASC),
INDEX `fk_mantenimiento_personal1_idx` (`personal_idpersonal` ASC),
CONSTRAINT `fk_mantenimiento_activos1`
FOREIGN KEY (`activos_idactivos`)
REFERENCES `bdinventarios7`.`activos` (`idactivos`)
ON DELETE NO ACTION
ON UPDATE NO ACTION,
CONSTRAINT `fk_mantenimiento_personal1`
FOREIGN KEY (`personal_idpersonal`)
REFERENCES `bdinventarios7`.`personal` (`idpersonal`)
ON DELETE NO ACTION
ON UPDATE NO ACTION)
ENGINE = InnoDB
DEFAULT CHARACTER SET = utf8;
-- -----------------------------------------------------
-- Table `bdinventarios7`.`registro_ingreso`
-- -----------------------------------------------------
CREATE TABLE IF NOT EXISTS `bdinventarios7`.`registro_ingreso` (
`idregistro_ingreso` INT(11) NOT NULL AUTO_INCREMENT,
`nombre_reg` VARCHAR(45) NULL DEFAULT NULL,
`marca_reg` VARCHAR(45) NULL DEFAULT NULL,
`modelo_reg` VARCHAR(45) NULL DEFAULT NULL,
`numfactura_reg` VARCHAR(45) NULL DEFAULT NULL,
`responsable_reg` VARCHAR(45) NULL DEFAULT NULL,
`telefono__p_reg` VARCHAR(45) NULL DEFAULT NULL,
`dni__p_reg` VARCHAR(45) NULL DEFAULT NULL,
`fecha_reg` VARCHAR(45) NULL DEFAULT NULL,
PRIMARY KEY (`idregistro_ingreso`))
ENGINE = InnoDB
DEFAULT CHARACTER SET = utf8;
-- -----------------------------------------------------
-- Table `bdinventarios7`.`responsable`
-- -----------------------------------------------------
CREATE TABLE IF NOT EXISTS `bdinventarios7`.`responsable` (
`idresponsable` INT(11) NOT NULL,
`detalles_res` VARCHAR(45) NULL DEFAULT NULL,
`personal_idpersonal` INT(11) NOT NULL,
`departamentos_iddepart` INT(11) NOT NULL,
`activos_idactivos` INT(11) NOT NULL,
PRIMARY KEY (`idresponsable`, `personal_idpersonal`, `departamentos_iddepart`, `activos_idactivos`),
INDEX `fk_responsable_personal1_idx` (`personal_idpersonal` ASC),
INDEX `fk_responsable_departamentos1_idx` (`departamentos_iddepart` ASC),
INDEX `fk_responsable_activos1_idx` (`activos_idactivos` ASC),
CONSTRAINT `fk_responsable_departamentos1`
FOREIGN KEY (`departamentos_iddepart`)
REFERENCES `bdinventarios7`.`departamentos` (`iddepart`)
ON DELETE NO ACTION
ON UPDATE NO ACTION,
CONSTRAINT `fk_responsable_personal1`
FOREIGN KEY (`personal_idpersonal`)
REFERENCES `bdinventarios7`.`personal` (`idpersonal`)
ON DELETE NO ACTION
ON UPDATE NO ACTION,
CONSTRAINT `fk_responsable_activos1`
FOREIGN KEY (`activos_idactivos`)
REFERENCES `bdinventarios7`.`activos` (`idactivos`)
ON DELETE NO ACTION
ON UPDATE NO ACTION)
ENGINE = InnoDB
DEFAULT CHARACTER SET = utf8;
-- -----------------------------------------------------
-- Table `bdinventarios7`.`usuarios`
-- -----------------------------------------------------
CREATE TABLE IF NOT EXISTS `bdinventarios7`.`usuarios` (
`idusuarios` INT(11) NOT NULL AUTO_INCREMENT,
`nombre_u` VARCHAR(45) NULL DEFAULT NULL,
`clave_u` VARCHAR(45) NULL DEFAULT NULL,
`fecha_u` VARCHAR(45) NULL DEFAULT NULL,
`estado_u` VARCHAR(45) NULL,
`tipo_u` VARCHAR(45) NULL,
`detalles_u` VARCHAR(45) NULL DEFAULT NULL,
PRIMARY KEY (`idusuarios`))
ENGINE = InnoDB
AUTO_INCREMENT = 2
DEFAULT CHARACTER SET = utf8;
-- -----------------------------------------------------
-- Table `bdinventarios7`.`tranferencias`
-- -----------------------------------------------------
CREATE TABLE IF NOT EXISTS `bdinventarios7`.`tranferencias` (
`idtranferencias` INT NOT NULL AUTO_INCREMENT,
`detalles_trans` VARCHAR(200) NOT NULL,
`fecha_trans` DATE NOT NULL,
`activos_idactivos` INT(11) NOT NULL,
`depart_ant_trans` VARCHAR(45) NULL COMMENT 'departamento de procedencia',
`departamentos_iddepart` INT(11) NOT NULL,
`personal_idpersonal` INT(11) NOT NULL,
PRIMARY KEY (`idtranferencias`, `activos_idactivos`, `departamentos_iddepart`, `personal_idpersonal`),
INDEX `fk_tranferencias_activos1_idx` (`activos_idactivos` ASC),
INDEX `fk_tranferencias_departamentos1_idx` (`departamentos_iddepart` ASC),
INDEX `fk_tranferencias_personal1_idx` (`personal_idpersonal` ASC),
CONSTRAINT `fk_tranferencias_activos1`
FOREIGN KEY (`activos_idactivos`)
REFERENCES `bdinventarios7`.`activos` (`idactivos`)
ON DELETE NO ACTION
ON UPDATE NO ACTION,
CONSTRAINT `fk_tranferencias_departamentos1`
FOREIGN KEY (`departamentos_iddepart`)
REFERENCES `bdinventarios7`.`departamentos` (`iddepart`)
ON DELETE NO ACTION
ON UPDATE NO ACTION,
CONSTRAINT `fk_tranferencias_personal1`
FOREIGN KEY (`personal_idpersonal`)
REFERENCES `bdinventarios7`.`personal` (`idpersonal`)
ON DELETE NO ACTION
ON UPDATE NO ACTION)
ENGINE = InnoDB;
-- -----------------------------------------------------
-- Table `bdinventarios7`.`activos_de_baja`
-- -----------------------------------------------------
CREATE TABLE IF NOT EXISTS `bdinventarios7`.`activos_de_baja` (
`idactivos_de_baja` INT NOT NULL,
`nombre_act_b` VARCHAR(45) NULL,
`marca_act_b` VARCHAR(45) NULL,
`modelo_act_b` VARCHAR(45) NULL,
`serie_act_b` VARCHAR(45) NULL,
`numfactura_act_b` VARCHAR(45) NULL,
`detalles_act_b` VARCHAR(45) NULL,
PRIMARY KEY (`idactivos_de_baja`))
ENGINE = InnoDB;
SET SQL_MODE=@OLD_SQL_MODE;
SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS;
SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS;
|
<reponame>kristt26/test
-- phpMyAdmin SQL Dump
-- version 5.0.4
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Feb 10, 2022 at 01:07 PM
-- Server version: 10.4.17-MariaDB
-- PHP Version: 8.0.1
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- Database: `utvmn4ak_sentracomputer`
--
-- --------------------------------------------------------
--
-- Table structure for table `absen`
--
CREATE TABLE `absen` (
`id` int(11) NOT NULL,
`detail_id` int(11) NOT NULL,
`tanggal` date NOT NULL,
`keterangan` enum('H','A','I','S') NOT NULL DEFAULT 'H'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `absen`
--
INSERT INTO `absen` (`id`, `detail_id`, `tanggal`, `keterangan`) VALUES
(1, 1, '2022-01-28', 'A'),
(3, 2, '2022-01-28', 'S'),
(4, 4, '2022-01-28', 'H'),
(5, 5, '2022-01-30', 'I'),
(6, 7, '2022-01-30', 'A'),
(7, 8, '2022-01-30', 'I'),
(8, 9, '2022-01-30', 'I'),
(9, 6, '2022-01-30', 'I'),
(10, 14, '2022-02-01', 'A'),
(11, 14, '2022-02-01', 'I'),
(12, 16, '2022-02-03', 'H'),
(13, 19, '2022-02-03', 'H');
-- --------------------------------------------------------
--
-- Table structure for table `tb_detailkelas`
--
CREATE TABLE `tb_detailkelas` (
`id` int(11) NOT NULL,
`id_kelas` int(11) NOT NULL,
`id_siswa` int(11) NOT NULL,
`status` enum('Registrasi','Aktif','Lulus') NOT NULL DEFAULT 'Registrasi'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `tb_detailkelas`
--
INSERT INTO `tb_detailkelas` (`id`, `id_kelas`, `id_siswa`, `status`) VALUES
(1, 1, 1, 'Aktif'),
(2, 1, 2, 'Aktif'),
(4, 2, 3, 'Aktif'),
(5, 2, 4, 'Registrasi'),
(6, 2, 5, 'Registrasi'),
(7, 2, 6, 'Registrasi'),
(8, 2, 6, 'Registrasi'),
(9, 2, 7, 'Registrasi'),
(12, 1, 4, 'Registrasi'),
(14, 4, 1, 'Aktif'),
(15, 1, 1, 'Registrasi'),
(16, 3, 1, 'Aktif'),
(17, 2, 1, 'Registrasi'),
(18, 1, 4, 'Registrasi'),
(19, 3, 10, 'Aktif'),
(20, 1, 11, 'Registrasi');
-- --------------------------------------------------------
--
-- Table structure for table `tb_instruktur`
--
CREATE TABLE `tb_instruktur` (
`id_instruktur` int(11) NOT NULL,
`nm_instruktur` varchar(45) DEFAULT NULL,
`alamat` varchar(45) NOT NULL,
`nohp` varchar(45) NOT NULL,
`id_user` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `tb_instruktur`
--
INSERT INTO `tb_instruktur` (`id_instruktur`, `nm_instruktur`, `alamat`, `nohp`, `id_user`) VALUES
(1, '<NAME>', '<NAME>', '082238281801', 2),
(2, 'chandra ', 'bucen', '049038497932', 7),
(3, 'putri', 'prumnas', '07493643786473', 8),
(4, '<NAME>', '<NAME>', '081340087370`', 13);
-- --------------------------------------------------------
--
-- Table structure for table `tb_kelas`
--
CREATE TABLE `tb_kelas` (
`id` int(11) NOT NULL,
`waktu` varchar(45) NOT NULL,
`jam_mulai` time NOT NULL,
`jam_selesai` time NOT NULL,
`id_instruktur` int(11) NOT NULL,
`id_program` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `tb_kelas`
--
INSERT INTO `tb_kelas` (`id`, `waktu`, `jam_mulai`, `jam_selesai`, `id_instruktur`, `id_program`) VALUES
(1, 'Pagi', '08:00:00', '10:00:00', 1, 1),
(2, 'Pagi', '06:00:00', '10:00:00', 1, 3),
(3, 'Malam', '01:30:00', '01:59:00', 3, 2),
(4, 'Malam', '21:00:00', '22:00:00', 4, 1);
-- --------------------------------------------------------
--
-- Table structure for table `tb_program`
--
CREATE TABLE `tb_program` (
`id_program` int(11) NOT NULL,
`program_kursus` varchar(45) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `tb_program`
--
INSERT INTO `tb_program` (`id_program`, `program_kursus`) VALUES
(1, 'Microsoft Office'),
(2, 'Desain Grafis'),
(3, 'Miscrosoft excel');
-- --------------------------------------------------------
--
-- Table structure for table `tb_siswa`
--
CREATE TABLE `tb_siswa` (
`id_siswa` int(11) NOT NULL,
`id_user` int(11) NOT NULL,
`nik` varchar(50) NOT NULL DEFAULT '0',
`nama_siswa` varchar(45) DEFAULT NULL,
`jenis_kelamin` varchar(45) DEFAULT NULL,
`tempat_lahir` varchar(45) DEFAULT NULL,
`tanggal_lahir` date DEFAULT NULL,
`agama` varchar(45) DEFAULT NULL,
`alamat` varchar(45) DEFAULT NULL,
`dusun` varchar(45) DEFAULT NULL,
`wilaya` varchar(45) DEFAULT NULL,
`kabupaten_kota` varchar(45) DEFAULT NULL,
`kecamatan` varchar(45) DEFAULT NULL,
`kelurahan` varchar(45) DEFAULT NULL,
`jenis_tinggal` varchar(45) DEFAULT NULL,
`transportasi` varchar(45) DEFAULT NULL,
`nohp` varchar(20) DEFAULT NULL,
`nama_ayah` varchar(45) DEFAULT NULL,
`pekerjaan_ayah` varchar(45) DEFAULT NULL,
`nama_ibu` varchar(45) DEFAULT NULL,
`pekerjaan_ibu` varchar(45) DEFAULT NULL,
`upload_foto3x4` varchar(45) DEFAULT NULL,
`upload_ijazah` varchar(45) DEFAULT NULL,
`upload_ktp` varchar(45) DEFAULT NULL,
`tahun_masuk` varchar(4) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `tb_siswa`
--
INSERT INTO `tb_siswa` (`id_siswa`, `id_user`, `nik`, `nama_siswa`, `jenis_kelamin`, `tempat_lahir`, `tanggal_lahir`, `agama`, `alamat`, `dusun`, `wilaya`, `kabupaten_kota`, `kecamatan`, `kelurahan`, `jenis_tinggal`, `transportasi`, `nohp`, `nama_ayah`, `pekerjaan_ayah`, `nama_ibu`, `pekerjaan_ibu`, `upload_foto3x4`, `upload_ijazah`, `upload_ktp`, `tahun_masuk`) VALUES
(1, 3, '9171022603880006', '<NAME>', 'L', 'Jayapura', '1988-03-25', 'Islam', 'Entrop', '-', '-', 'Jayapura', 'Jayapura Selatan', 'Entrop', 'Kost', 'Motor', '082238281801', 'Farhan', 'PNS', 'Ainun', 'Ibu Rumah Tangga', '61f415e2597a1.jpeg', '61f415e2599f7.jpeg', '61f415e259b3b.jpeg', '2022'),
(2, 4, '91722132150006', '<NAME>', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, ''),
(3, 6, '24434343553', 'Saputra', 'L', 'Jayapura', '2022-01-28', 'Islam', 'organda', '-', 'papua', 'kota jayapura', 'jyapura utara', 'gurabesi', 'Jayapura', 'Mobil', '082838283847', 'udin', 'tukang kayu', 'lili', 'ibu rumah tangga', '61f47618c239e.jpeg', '61f47618c26c4.jpeg', '61f47618c28ca.jpeg', '2021'),
(4, 9, '9171372822839149', 'fadly', 'L', 'jayapura', '2022-01-28', 'Islam', 'Apo Bukit Barisan', '-', 'papua', 'kota jayapura', 'jayapura utara', 'gurabesi', 'apo', 'motor', '0827826426', 'opside', 'swasta', 'cahya', 'ibu rumah tangga', '61f487f5e44d9.jpeg', '61f487f5ebfb4.jpeg', '61f487f5ec20b.jpeg', '2021'),
(5, 10, '91714836846198', 'adinda', 'P', 'Jakarta', '2022-01-28', 'Islam', 'jaya asry', '-', 'papua', 'jayapura', 'jayapura utara', 'gurabsesi', 'jaya asry', 'taxi', '08347346356', 'galang', 'pns', 'nur', 'ibu rumah tangga', '61f489cace632.jpeg', '61f489cace998.jpeg', '61f489caced67.jpeg', '2022'),
(6, 11, '91717847381471', 'azza', 'P', 'jayapura', '2022-01-28', 'Islam', 'dok 9 kali', '-', 'papua', 'kota jayapura', 'jayapura utara', 'gurabesi', 'rumah ortu', 'motor', '0841867364', 'baginda', 'swasta', 'umy', 'ibu rumah tangga', '61f48ad298633.jpeg', '61f48ad298954.jpeg', '61f48ad298bbc.jpeg', '2022'),
(7, 12, '91712894664721', 'anggriani', 'P', 'jayapura', '2022-01-28', 'Kristen', 'batu putih', '-', 'papua', 'kota jayapura', 'jayapura utara', 'gurabesi', 'rumah sendiri', 'motor', '0841846468196', 'hendrik', 'swasta', 'melina', 'ibu rumah tangga', '61f48bec75546.jpeg', '61f48bec758ea.jpeg', '61f48bec75b0d.jpeg', '2022'),
(8, 14, '', '', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, ''),
(9, 15, '', '', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, ''),
(10, 16, '9171709174817481', 'aril', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, ''),
(11, 17, '25282828', 'Candra', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '');
-- --------------------------------------------------------
--
-- Table structure for table `tb_user`
--
CREATE TABLE `tb_user` (
`id` int(11) NOT NULL,
`username` varchar(45) NOT NULL,
`password` varchar(45) NOT NULL,
`email` varchar(45) NOT NULL,
`akses` enum('Admin','Instruktur','Siswa') NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `tb_user`
--
INSERT INTO `tb_user` (`id`, `username`, `password`, `email`, `akses`) VALUES
(1, 'Administrasi', '<PASSWORD>', '<EMAIL>', 'Admin'),
(2, 'deni', '<PASSWORD>', '<EMAIL>', 'Instruktur'),
(3, 'bagus', '<PASSWORD>', '<EMAIL>', 'Siswa'),
(4, 'candra', '<PASSWORD>', '<EMAIL>', 'Siswa'),
(6, 'saputra', '<PASSWORD>59aac1778efd4c118b3ca051d8a42', '<EMAIL>', 'Siswa'),
(7, 'chandra', 'ad845a24a47deecbfa8396e90db75c6a', '<EMAIL>', 'Instruktur'),
(8, 'putri', '4093fed663717c843bea100d17fb67c8', '<EMAIL>', 'Instruktur'),
(9, 'fadly', '2d61bf88e0aa417e5949c026af16bc5b', '<EMAIL>', 'Siswa'),
(10, 'adinda', '<PASSWORD>', '<EMAIL>', 'Siswa'),
(11, 'azza', '0<PASSWORD>', '<EMAIL>', 'Siswa'),
(12, 'anggriani', '<PASSWORD>', '<EMAIL>', 'Siswa'),
(13, 'Han', 'd2ee71f1c4387b903a4e860165825d54', '<EMAIL>', 'Instruktur'),
(14, '', 'd41d8cd98f00b204e9800998ecf8427e', '', 'Siswa'),
(15, '', 'd41d8cd98f00b204e9800998ecf8427e', '', 'Siswa'),
(16, 'aril', '513e63de470114891012072f5ffd3d8b', '<EMAIL>', 'Siswa'),
(17, 'candra', '2614ae3c375c3095dc536283672548bd', '<EMAIL>', 'Siswa');
--
-- Indexes for dumped tables
--
--
-- Indexes for table `absen`
--
ALTER TABLE `absen`
ADD PRIMARY KEY (`id`),
ADD KEY `fk_absen_tb_detailkelas1_idx` (`detail_id`);
--
-- Indexes for table `tb_detailkelas`
--
ALTER TABLE `tb_detailkelas`
ADD PRIMARY KEY (`id`),
ADD KEY `fk_table1_tb_kelas1_idx` (`id_kelas`),
ADD KEY `fk_tb_detailkelas_tb_siswa1_idx` (`id_siswa`);
--
-- Indexes for table `tb_instruktur`
--
ALTER TABLE `tb_instruktur`
ADD PRIMARY KEY (`id_instruktur`),
ADD KEY `fk_instruktur_tb_user1_idx` (`id_user`);
--
-- Indexes for table `tb_kelas`
--
ALTER TABLE `tb_kelas`
ADD PRIMARY KEY (`id`),
ADD KEY `fk_tb_kelas_instruktur1_idx` (`id_instruktur`),
ADD KEY `fk_tb_kelas_tb_program1_idx` (`id_program`);
--
-- Indexes for table `tb_program`
--
ALTER TABLE `tb_program`
ADD PRIMARY KEY (`id_program`);
--
-- Indexes for table `tb_siswa`
--
ALTER TABLE `tb_siswa`
ADD PRIMARY KEY (`id_siswa`),
ADD KEY `fk_tb_siswa_tb_user1_idx` (`id_user`);
--
-- Indexes for table `tb_user`
--
ALTER TABLE `tb_user`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `absen`
--
ALTER TABLE `absen`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=14;
--
-- AUTO_INCREMENT for table `tb_detailkelas`
--
ALTER TABLE `tb_detailkelas`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=21;
--
-- AUTO_INCREMENT for table `tb_instruktur`
--
ALTER TABLE `tb_instruktur`
MODIFY `id_instruktur` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT for table `tb_kelas`
--
ALTER TABLE `tb_kelas`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT for table `tb_program`
--
ALTER TABLE `tb_program`
MODIFY `id_program` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `tb_siswa`
--
ALTER TABLE `tb_siswa`
MODIFY `id_siswa` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=12;
--
-- AUTO_INCREMENT for table `tb_user`
--
ALTER TABLE `tb_user`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=18;
--
-- Constraints for dumped tables
--
--
-- Constraints for table `absen`
--
ALTER TABLE `absen`
ADD CONSTRAINT `fk_absen_tb_detailkelas1` FOREIGN KEY (`detail_id`) REFERENCES `tb_detailkelas` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION;
--
-- Constraints for table `tb_detailkelas`
--
ALTER TABLE `tb_detailkelas`
ADD CONSTRAINT `fk_table1_tb_kelas1` FOREIGN KEY (`id_kelas`) REFERENCES `tb_kelas` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
ADD CONSTRAINT `fk_tb_detailkelas_tb_siswa1` FOREIGN KEY (`id_siswa`) REFERENCES `tb_siswa` (`id_siswa`) ON DELETE NO ACTION ON UPDATE NO ACTION;
--
-- Constraints for table `tb_instruktur`
--
ALTER TABLE `tb_instruktur`
ADD CONSTRAINT `fk_instruktur_tb_user1` FOREIGN KEY (`id_user`) REFERENCES `tb_user` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION;
--
-- Constraints for table `tb_kelas`
--
ALTER TABLE `tb_kelas`
ADD CONSTRAINT `fk_tb_kelas_instruktur1` FOREIGN KEY (`id_instruktur`) REFERENCES `tb_instruktur` (`id_instruktur`) ON DELETE NO ACTION ON UPDATE NO ACTION,
ADD CONSTRAINT `fk_tb_kelas_tb_program1` FOREIGN KEY (`id_program`) REFERENCES `tb_program` (`id_program`) ON DELETE NO ACTION ON UPDATE NO ACTION;
--
-- Constraints for table `tb_siswa`
--
ALTER TABLE `tb_siswa`
ADD CONSTRAINT `fk_tb_siswa_tb_user1` FOREIGN KEY (`id_user`) REFERENCES `tb_user` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION;
COMMIT;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
<reponame>CloudyYoung/MyExams
-- phpMyAdmin SQL Dump
-- version 4.8.1
-- https://www.phpmyadmin.net/
--
-- Host: localhost
-- Generation Time: Sep 18, 2020 at 06:22 PM
-- Server version: 5.5.60-log
-- PHP Version: 7.2.10
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- Database: `MyExams`
--
-- --------------------------------------------------------
--
-- Table structure for table `ml_wh_examination_data`
--
CREATE TABLE `ml_wh_examination_data` (
`did` int(11) NOT NULL,
`key` text NOT NULL,
`value` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `ml_wh_examination_data`
--
INSERT INTO `ml_wh_examination_data` (`did`, `key`, `value`) VALUES
(1, 'view', '7635'),
(2, 'like', '19151'),
(3, 'updating', 'false'),
(4, 'bulletin_updating', '<p style=\"text-align: center\">UPDATING</p><hr><p>My Exams™ is processing emergency updating, the database has some error, please be patient until it finishes.</p>'),
(5, 'bulletin', '');
-- --------------------------------------------------------
--
-- Table structure for table `ml_wh_examination_feedback`
--
CREATE TABLE `ml_wh_examination_feedback` (
`fid` int(11) NOT NULL,
`studentNumber` int(11) NOT NULL,
`time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`content` text NOT NULL,
`name` text NOT NULL,
`email` text NOT NULL,
`website` text NOT NULL,
`ip` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `ml_wh_examination_feedback`
--
INSERT INTO `ml_wh_examination_feedback` (`fid`, `studentNumber`, `time`, `content`, `name`, `email`, `website`, `ip`) VALUES
(2, 0, '0000-00-00 00:00:00', '[Complaint] 1', '1', '1', 'http://', '192.168.127.12'),
(3, 0, '0000-00-00 00:00:00', '[Proposal] 1', '1', '1', 'http://', '192.168.127.12'),
(4, 0, '0000-00-00 00:00:00', '[Bug / Error] hello', 'Samsara', '13871<EMAIL>', 'http:// www', '192.168.127.12');
-- --------------------------------------------------------
--
-- Table structure for table `ml_wh_examination_roomassignment`
--
CREATE TABLE `ml_wh_examination_roomassignment` (
`cid` bigint(11) NOT NULL,
`year` year(4) NOT NULL,
`semester` enum('Fall','Spring') NOT NULL,
`exam_name` enum('Mid-term','Final') NOT NULL,
`course` text NOT NULL,
`teacher` text NOT NULL,
`day` set('1','2') NOT NULL,
`block` enum('A','B','C','D','E') NOT NULL,
`section` int(11) NOT NULL,
`regular_classroom` text NOT NULL,
`exam_room` text NOT NULL,
`exam_date` date NOT NULL,
`start_time` time NOT NULL,
`end_time` time NOT NULL,
`enrollment` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `ml_wh_examination_roomassignment`
--
INSERT INTO `ml_wh_examination_roomassignment` (`cid`, `year`, `semester`, `exam_name`, `course`, `teacher`, `day`, `block`, `section`, `regular_classroom`, `exam_room`, `exam_date`, `start_time`, `end_time`, `enrollment`) VALUES
(201, 2017, 'Fall', 'Mid-term', 'AP Computer Science A', '<NAME>', '1,2', 'E', 1, '213', '213', '2017-11-06', '14:30:00', '16:30:00', 9),
(304, 2017, 'Fall', 'Mid-term', 'Bridging Language Arts A', '<NAME>', '1,2', 'B', 4, '307', '501\r', '2017-11-07', '08:00:00', '10:00:00', 26),
(305, 2017, 'Fall', 'Mid-term', 'Bridging Language Arts A', '<NAME>', '1,2', 'E', 5, '308', '502\r', '2017-11-07', '08:00:00', '10:00:00', 25),
(306, 2017, 'Fall', 'Mid-term', 'Bridging Language Arts A', '<NAME>', '1,2', 'A', 3, '402', '506\r', '2017-11-07', '08:00:00', '10:00:00', 24),
(307, 2017, 'Fall', 'Mid-term', 'Bridging Language Arts A', '<NAME>', '1,2', 'C', 1, '311', '503\r', '2017-11-07', '08:00:00', '10:00:00', 28),
(308, 2017, 'Fall', 'Mid-term', 'Bridging Language Arts A', '<NAME>', '1,2', 'D', 2, '402', '505\r', '2017-11-07', '08:00:00', '10:00:00', 29),
(309, 2017, 'Fall', 'Mid-term', 'Bridging Language Arts A', 'X<NAME>', '1,2', 'C', 6, '411', '507\r', '2017-11-07', '08:00:00', '10:00:00', 27),
(310, 2017, 'Fall', 'Mid-term', 'Bridging Language Arts A', '<NAME>', '1,2', 'D', 7, '406', '508\r', '2017-11-07', '08:00:00', '10:00:00', 28),
(311, 2017, 'Fall', 'Mid-term', 'Bridging Language Arts A', '<NAME>', '1,2', 'E', 8, '405', '509\r', '2017-11-07', '08:00:00', '10:00:00', 25),
(312, 2017, 'Fall', 'Mid-term', 'English 10', '<NAME>', '1,2', 'D', 17, '311', '313\r', '2017-11-07', '08:00:00', '10:00:00', 25),
(313, 2017, 'Fall', 'Mid-term', 'English 10', '<NAME>', '1,2', 'E', 18, '311', '314\r', '2017-11-07', '08:00:00', '10:00:00', 24),
(314, 2017, 'Fall', 'Mid-term', 'English 10', 'Poor, Jennifer', '1,2', 'A', 21, '401', '317\r', '2017-11-07', '08:00:00', '10:00:00', 28),
(315, 2017, 'Fall', 'Mid-term', 'English 10', 'Poor, Jennifer', '1,2', 'C', 20, '401', '316\r', '2017-11-07', '08:00:00', '10:00:00', 21),
(316, 2017, 'Fall', 'Mid-term', 'English 10', 'Power, Maggie', '1,2', 'B', 15, '318', '318\r', '2017-11-07', '08:00:00', '10:00:00', 24),
(317, 2017, 'Fall', 'Mid-term', 'English 10', 'Power, Maggie', '1,2', 'C', 16, '318', '319\r', '2017-11-07', '08:00:00', '10:00:00', 21),
(318, 2017, 'Fall', 'Mid-term', 'English 10', 'Power, Maggie', '1,2', 'E', 19, '318', '320\r', '2017-11-07', '08:00:00', '10:00:00', 24),
(319, 2017, 'Fall', 'Mid-term', 'English 10', 'Sibiya, Sizwe', '1,2', 'A', 14, '322', '321\r', '2017-11-07', '08:00:00', '10:00:00', 28),
(320, 2017, 'Fall', 'Mid-term', 'English 10', 'Topinio, Jessica', '1,2', 'D', 22, '309', '322\r', '2017-11-07', '08:00:00', '10:00:00', 23),
(321, 2017, 'Fall', 'Mid-term', 'English 12', 'Bishundat, Devon', '1,2', 'B', 16, '306', '305\r', '2017-11-07', '08:00:00', '10:00:00', 25),
(322, 2017, 'Fall', 'Mid-term', 'English 12', 'Bishundat, Devon', '1,2', 'C', 17, '306', '306\r', '2017-11-07', '08:00:00', '10:00:00', 25),
(323, 2017, 'Fall', 'Mid-term', 'English 12', '<NAME>', '1,2', 'E', 9, '306', '303\r', '2017-11-07', '08:00:00', '10:00:00', 21),
(324, 2017, 'Fall', 'Mid-term', 'English 12', '<NAME>', '1', 'B', 1, '208', '307\r', '2017-11-07', '08:00:00', '10:00:00', 20),
(325, 2017, 'Fall', 'Mid-term', 'English 12', '<NAME>', '1', 'C', 2, '208', '308\r', '2017-11-07', '08:00:00', '10:00:00', 22),
(326, 2017, 'Fall', 'Mid-term', 'English 12', 'DePiero, Gerald', '1,2', 'A', 5, '321', '309\r', '2017-11-07', '08:00:00', '10:00:00', 22),
(327, 2017, 'Fall', 'Mid-term', 'English 12', 'DePiero, Gerald', '1,2', 'D', 8, '321', '310\r', '2017-11-07', '08:00:00', '10:00:00', 24),
(328, 2017, 'Fall', 'Mid-term', 'English 12', '<NAME>', '1,2', 'B', 6, '207', '311\r', '2017-11-07', '08:00:00', '10:00:00', 26),
(329, 2017, 'Fall', 'Mid-term', 'English 12', '<NAME>', '1,2', 'C', 7, '207', '401\r', '2017-11-07', '08:00:00', '10:00:00', 27),
(330, 2017, 'Fall', 'Mid-term', 'English 12', '<NAME>', '1,2', 'A', 10, '308', '402\r', '2017-11-07', '08:00:00', '10:00:00', 23),
(331, 2017, 'Fall', 'Mid-term', 'English 12', '<NAME>', '1,2', 'B', 11, '308', '403\r', '2017-11-07', '08:00:00', '10:00:00', 25),
(332, 2017, 'Fall', 'Mid-term', 'English 12', '<NAME>', '1,2', 'C', 12, '307', '405\r', '2017-11-07', '08:00:00', '10:00:00', 25),
(333, 2017, 'Fall', 'Mid-term', 'English 12', '<NAME>', '1,2', 'E', 14, '307', '406\r', '2017-11-07', '08:00:00', '10:00:00', 22),
(334, 2017, 'Fall', 'Mid-term', 'English 12', '<NAME>', '1,2', 'D', 3, '207', '407\r', '2017-11-07', '08:00:00', '10:00:00', 25),
(335, 2017, 'Fall', 'Mid-term', 'English 12', '<NAME>', '1,2', 'E', 4, '207', '408\r', '2017-11-07', '08:00:00', '10:00:00', 21),
(336, 2017, 'Fall', 'Mid-term', 'English 12', '<NAME>', '1,2', 'A', 15, '310', '410\r', '2017-11-07', '08:00:00', '10:00:00', 21),
(337, 2017, 'Fall', 'Mid-term', 'English 12', '<NAME>', '1,2', 'D', 13, '310', '409\r', '2017-11-07', '08:00:00', '10:00:00', 24),
(338, 2017, 'Fall', 'Mid-term', 'English 12', '<NAME>', '1,2', 'E', 18, '310', '411\r', '2017-11-07', '08:00:00', '10:00:00', 22),
(339, 2017, 'Fall', 'Mid-term', 'Foundations Language Arts', '<NAME>', '1,2', 'C', 3, '416', '413\r', '2017-11-07', '08:00:00', '10:00:00', 25),
(340, 2017, 'Fall', 'Mid-term', 'Foundations Language Arts', '<NAME>', '1,2', 'B', 1, '414', '414\r', '2017-11-07', '08:00:00', '10:00:00', 27),
(341, 2017, 'Fall', 'Mid-term', 'Foundations Language Arts', '<NAME>', '1,2', 'A', 4, '306', '416\r', '2017-11-07', '08:00:00', '10:00:00', 25),
(342, 2017, 'Fall', 'Mid-term', 'Foundations Language Arts', '<NAME>', '1,2', 'C', 2, '423', '417\r', '2017-11-07', '08:00:00', '10:00:00', 29),
(343, 2017, 'Fall', 'Mid-term', 'Provincial e-Exam: Communications 12', 'ROSTER', '', '', 0, '', '423\r', '2017-11-07', '08:00:00', '12:30:00', 0),
(344, 2017, 'Fall', 'Mid-term', 'Mandarin Chinese 10', '<NAME> ', '1', 'A', 11, '502', '401\r', '2017-11-07', '11:00:00', '13:00:00', 27),
(345, 2017, 'Fall', 'Mid-term', 'Mandarin Chinese 10', 'An, Lanlan ', '2', 'A', 12, '502', '402\r', '2017-11-07', '11:00:00', '13:00:00', 28),
(346, 2017, 'Fall', 'Mid-term', 'Mandarin Chinese 10', 'An, Lanlan ', '1', 'C', 15, '502', '403\r', '2017-11-07', '11:00:00', '13:00:00', 30),
(347, 2017, 'Fall', 'Mid-term', 'Mandarin Chinese 10', 'An, Lanlan ', '2', 'C', 16, '502', '405\r', '2017-11-07', '11:00:00', '13:00:00', 29),
(348, 2017, 'Fall', 'Mid-term', 'Mandarin Chinese 10', 'An, Lanlan ', '1', 'E', 19, '502', '406\r', '2017-11-07', '11:00:00', '13:00:00', 28),
(349, 2017, 'Fall', 'Mid-term', 'Mandarin Chinese 10', '<NAME> ', '1', 'A', 1, '501', '407\r', '2017-11-07', '11:00:00', '13:00:00', 28),
(350, 2017, 'Fall', 'Mid-term', 'Mandarin Chinese 10', 'Jiang, Sisi ', '2', 'A', 2, '501', '408\r', '2017-11-07', '11:00:00', '13:00:00', 28),
(351, 2017, 'Fall', 'Mid-term', 'Mandarin Chinese 10', 'Jiang, Sisi ', '1', 'C', 5, '501', '409\r', '2017-11-07', '11:00:00', '13:00:00', 28),
(352, 2017, 'Fall', 'Mid-term', 'Mandarin Chinese 10', 'Jiang, Sisi ', '2', 'C', 6, '501', '410\r', '2017-11-07', '11:00:00', '13:00:00', 29),
(353, 2017, 'Fall', 'Mid-term', 'Mandarin Chinese 10', 'Jiang, Sisi ', '2', 'E', 10, '501', '411\r', '2017-11-07', '11:00:00', '13:00:00', 27),
(354, 2017, 'Fall', 'Mid-term', 'Mandarin Chinese 10', '<NAME> ', '1', 'B', 3, '501', '501\r', '2017-11-07', '11:00:00', '13:00:00', 29),
(355, 2017, 'Fall', 'Mid-term', 'Mandarin Chinese 10', 'Tan, Jing ', '2', 'B', 4, '501', '502\r', '2017-11-07', '11:00:00', '13:00:00', 30),
(356, 2017, 'Fall', 'Mid-term', 'Mandarin Chinese 10', 'Tan, Jing ', '2', 'D', 8, '501', '503\r', '2017-11-07', '11:00:00', '13:00:00', 30),
(357, 2017, 'Fall', 'Mid-term', 'Mandarin Chinese 10', 'Tan, Jing ', '1', 'E', 9, '501', '505\r', '2017-11-07', '11:00:00', '13:00:00', 27),
(358, 2017, 'Fall', 'Mid-term', 'Mandarin Chinese 10', 'Tan, Jing ', '2', 'E', 20, '502', '506\r', '2017-11-07', '11:00:00', '13:00:00', 27),
(359, 2017, 'Fall', 'Mid-term', 'Mandarin Chinese 10', 'Yang, Dong ', '1', 'A', 17, '505', '510\r', '2017-11-07', '11:00:00', '13:00:00', 27),
(360, 2017, 'Fall', 'Mid-term', 'Mandarin Chinese 10', 'Yang, Dong ', '2', 'A', 18, '505', '511\r', '2017-11-07', '11:00:00', '13:00:00', 27),
(361, 2017, 'Fall', 'Mid-term', 'Mandarin Chinese 10', 'Yang, Dong ', '1', 'B', 13, '502', '508\r', '2017-11-07', '11:00:00', '13:00:00', 29),
(362, 2017, 'Fall', 'Mid-term', 'Mandarin Chinese 10', 'Yang, Dong ', '2', 'B', 14, '502', '509\r', '2017-11-07', '11:00:00', '13:00:00', 29),
(363, 2017, 'Fall', 'Mid-term', 'Mandarin Chinese 10', 'Yang, Dong ', '1', 'D', 7, '501', '507\r', '2017-11-07', '11:00:00', '13:00:00', 29),
(364, 2017, 'Fall', 'Mid-term', 'Mandarin Chinese 12', 'Dai, Qing', '1', 'A', 11, '507', '314\r', '2017-11-07', '11:00:00', '13:00:00', 26),
(365, 2017, 'Fall', 'Mid-term', 'Mandarin Chinese 12', 'Dai, Qing', '1', 'C', 5, '507', '313\r', '2017-11-07', '11:00:00', '13:00:00', 26),
(366, 2017, 'Fall', 'Mid-term', 'Mandarin Chinese 12', 'Dai, Qing', '1', 'D', 13, '507', '316\r', '2017-11-07', '11:00:00', '13:00:00', 27),
(367, 2017, 'Fall', 'Mid-term', 'Mandarin Chinese 12', 'D<NAME>', '2', 'D', 14, '507', '317\r', '2017-11-07', '11:00:00', '13:00:00', 30),
(368, 2017, 'Fall', 'Mid-term', 'Mandarin Chinese 12', 'D<NAME>', '2', 'E', 16, '507', '318\r', '2017-11-07', '11:00:00', '13:00:00', 23),
(369, 2017, 'Fall', 'Mid-term', 'Mandarin Chinese 12', '<NAME>', '1', 'A', 1, '506', '319\r', '2017-11-07', '11:00:00', '13:00:00', 27),
(370, 2017, 'Fall', 'Mid-term', 'Mandarin Chinese 12', '<NAME>', '2', 'A', 2, '506', '320\r', '2017-11-07', '11:00:00', '13:00:00', 27),
(371, 2017, 'Fall', 'Mid-term', 'Mandarin Chinese 12', '<NAME>', '2', 'C', 6, '506', '321\r', '2017-11-07', '11:00:00', '13:00:00', 27),
(372, 2017, 'Fall', 'Mid-term', 'Mandarin Chinese 12', '<NAME>', '1', 'E', 9, '506', '413\r', '2017-11-07', '11:00:00', '13:00:00', 22),
(373, 2017, 'Fall', 'Mid-term', 'Mandarin Chinese 12', '<NAME>', '1', 'B', 3, '506', '414\r', '2017-11-07', '11:00:00', '13:00:00', 29),
(374, 2017, 'Fall', 'Mid-term', 'Mandarin Chinese 12', '<NAME>', '2', 'B', 4, '506', '416\r', '2017-11-07', '11:00:00', '13:00:00', 28),
(375, 2017, 'Fall', 'Mid-term', 'Mandarin Chinese 12', '<NAME>', '1', 'D', 7, '506', '417\r', '2017-11-07', '11:00:00', '13:00:00', 30),
(376, 2017, 'Fall', 'Mid-term', 'Mandarin Chinese 12', '<NAME>', '2', 'D', 8, '506', '418\r', '2017-11-07', '11:00:00', '13:00:00', 28),
(377, 2017, 'Fall', 'Mid-term', 'Mandarin Chinese 12', '<NAME>', '2', 'E', 10, '506', '419\r', '2017-11-07', '11:00:00', '13:00:00', 22),
(378, 2017, 'Fall', 'Mid-term', 'Mandarin Chinese 12', '<NAME>', '2', 'A', 12, '507', '420\r', '2017-11-07', '11:00:00', '13:00:00', 24),
(379, 2017, 'Fall', 'Mid-term', 'Mandarin Chinese 12', '<NAME>', '1', 'E', 15, '507', '421\r', '2017-11-07', '11:00:00', '13:00:00', 21),
(380, 2017, 'Fall', 'Mid-term', 'Bridging Language Arts B', '<NAME>', '1,2', 'B', 3, '310', '303\r', '2017-11-07', '14:00:00', '16:00:00', 26),
(381, 2017, 'Fall', 'Mid-term', 'Bridging Language Arts B', '<NAME>', '1,2', 'C', 4, '310', '305\r', '2017-11-07', '14:00:00', '16:00:00', 29),
(382, 2017, 'Fall', 'Mid-term', 'Bridging Language Arts B', '<NAME>', '1,2', 'B', 1, '316', '306\r', '2017-11-07', '14:00:00', '16:00:00', 25),
(383, 2017, 'Fall', 'Mid-term', 'Bridging Language Arts B', '<NAME>', '1,2', 'E', 2, '321', '307\r', '2017-11-07', '14:00:00', '16:00:00', 26),
(384, 2017, 'Fall', 'Mid-term', 'Bridging Language Arts B', '<NAME>', '1,2', 'A', 5, '406', '308\r', '2017-11-07', '14:00:00', '16:00:00', 25),
(385, 2017, 'Fall', 'Mid-term', 'Bridging Language Arts B', '<NAME>', '1,2', 'B', 6, '406', '309\r', '2017-11-07', '14:00:00', '16:00:00', 26),
(386, 2017, 'Fall', 'Mid-term', 'Bridging Language Arts B', '<NAME>', '1,2', 'C', 7, '406', '310\r', '2017-11-07', '14:00:00', '16:00:00', 29),
(387, 2017, 'Fall', 'Mid-term', 'Bridging Language Arts B', '<NAME>', '1,2', 'E', 8, '305', '311\r', '2017-11-07', '14:00:00', '16:00:00', 26),
(388, 2017, 'Fall', 'Mid-term', 'Calculus 12', '<NAME>', '1,2', 'A', 1, '423', '507\r', '2017-11-07', '14:00:00', '16:00:00', 27),
(389, 2017, 'Fall', 'Mid-term', 'Calculus 12', '<NAME>', '1,2', 'B', 1, '423', '506\r', '2017-11-07', '14:00:00', '16:00:00', 24),
(390, 2017, 'Fall', 'Mid-term', 'Economics 12', '<NAME>', '1,2', 'E', 4, '208', '501\r', '2017-11-07', '14:00:00', '16:00:00', 29),
(391, 2017, 'Fall', 'Mid-term', 'Economics 12', '<NAME>', '1,2', 'A', 1, '417', '502\r', '2017-11-07', '14:00:00', '16:00:00', 30),
(392, 2017, 'Fall', 'Mid-term', 'Economics 12', '<NAME>', '1,2', 'B', 2, '410', '503\r', '2017-11-07', '14:00:00', '16:00:00', 30),
(393, 2017, 'Fall', 'Mid-term', 'Economics 12', '<NAME>', '1,2', 'C', 3, '410', '505\r', '2017-11-07', '14:00:00', '16:00:00', 30),
(394, 2017, 'Fall', 'Mid-term', 'English 11', '<NAME>', '1,2', 'C', 8, '303', '313\r', '2017-11-07', '14:00:00', '16:00:00', 25),
(395, 2017, 'Fall', 'Mid-term', 'English 11', '<NAME>', '1,2', 'D', 9, '303', '314\r', '2017-11-07', '14:00:00', '16:00:00', 25),
(396, 2017, 'Fall', 'Mid-term', 'English 11', '<NAME>', '1,2', 'E', 14, '303', '316\r', '2017-11-07', '14:00:00', '16:00:00', 25),
(397, 2017, 'Fall', 'Mid-term', 'English 11', '<NAME> ', '1,2', 'A', 11, '408', '318\r', '2017-11-07', '14:00:00', '16:00:00', 25),
(398, 2017, 'Fall', 'Mid-term', 'English 11', '<NAME> ', '1,2', 'B', 7, '408', '317\r', '2017-11-07', '14:00:00', '16:00:00', 26),
(399, 2017, 'Fall', 'Mid-term', 'English 11', '<NAME>', '1,2', 'A', 6, '307', '319\r', '2017-11-07', '14:00:00', '16:00:00', 27),
(400, 2017, 'Fall', 'Mid-term', 'English 11', 'Montoya, Oscar', '1,2', 'A', 1, '305', '320\r', '2017-11-07', '14:00:00', '16:00:00', 27),
(401, 2017, 'Fall', 'Mid-term', 'English 11', 'Montoya, Oscar', '1,2', 'B', 2, '305', '413\r', '2017-11-07', '14:00:00', '16:00:00', 27),
(402, 2017, 'Fall', 'Mid-term', 'English 11', 'Montoya, Oscar', '1,2', 'C', 3, '305', '414\r', '2017-11-07', '14:00:00', '16:00:00', 27),
(403, 2017, 'Fall', 'Mid-term', 'English 11', 'Montoya, Oscar', '1,2', 'D', 4, '305', '416\r', '2017-11-07', '14:00:00', '16:00:00', 26),
(404, 2017, 'Fall', 'Mid-term', 'English 11', '<NAME> ', '1,2', 'B', 12, '314', '418\r', '2017-11-07', '14:00:00', '16:00:00', 27),
(405, 2017, 'Fall', 'Mid-term', 'English 11', '<NAME> ', '1,2', 'C', 13, '314', '419\r', '2017-11-07', '14:00:00', '16:00:00', 27),
(406, 2017, 'Fall', 'Mid-term', 'English 11', '<NAME> ', '1,2', 'E', 10, '314', '417\r', '2017-11-07', '14:00:00', '16:00:00', 22),
(407, 2017, 'Fall', 'Mid-term', 'English 11', '<NAME>', '1,2', 'C', 19, '313', '420\r', '2017-11-07', '14:00:00', '16:00:00', 24),
(408, 2017, 'Fall', 'Mid-term', 'Grammar 10 A', '<NAME>', '1,2', 'D', 4, '416', '401\r', '2017-11-07', '14:00:00', '16:00:00', 25),
(409, 2017, 'Fall', 'Mid-term', 'Grammar 10 A', '<NAME>', '1,2', 'D', 2, '414', '402\r', '2017-11-07', '14:00:00', '16:00:00', 29),
(410, 2017, 'Fall', 'Mid-term', 'Grammar 10 A', '<NAME>', '1,2', 'B', 3, '303', '403\r', '2017-11-07', '14:00:00', '16:00:00', 25),
(411, 2017, 'Fall', 'Mid-term', 'Grammar 10 A', '<NAME>', '1,2', 'D', 1, '306', '405\r', '2017-11-07', '14:00:00', '16:00:00', 27),
(412, 2017, 'Fall', 'Mid-term', 'Chemistry 11', '<NAME>', '1,2', 'B', 2, '119', '313\r', '2017-11-08', '08:00:00', '10:00:00', 28),
(413, 2017, 'Fall', 'Mid-term', 'Chemistry 11', '<NAME>', '1,2', 'C', 3, '119', '314\r', '2017-11-08', '08:00:00', '10:00:00', 23),
(414, 2017, 'Fall', 'Mid-term', 'Chemistry 11', '<NAME>', '1,2', 'E', 5, '119', '316\r', '2017-11-08', '08:00:00', '10:00:00', 26),
(415, 2017, 'Fall', 'Mid-term', 'Chemistry 11', '<NAME>', '1,2', 'D', 4, '119', '317\r', '2017-11-08', '08:00:00', '10:00:00', 24),
(416, 2017, 'Fall', 'Mid-term', 'Chemistry 12', '<NAME>', '1,2', 'B', 1, '112', '318\r', '2017-11-08', '08:00:00', '10:00:00', 28),
(417, 2017, 'Fall', 'Mid-term', 'Chemistry 12', '<NAME>', '1,2', 'C', 2, '112', '319\r', '2017-11-08', '08:00:00', '10:00:00', 21),
(418, 2017, 'Fall', 'Mid-term', 'Chemistry 12', '<NAME>', '1,2', 'D', 3, '112', '320\r', '2017-11-08', '08:00:00', '10:00:00', 25),
(419, 2017, 'Fall', 'Mid-term', 'Communication Skills A', '<NAME>', '1,2', 'A', 1, '316', '303\r', '2017-11-08', '08:00:00', '10:00:00', 27),
(420, 2017, 'Fall', 'Mid-term', 'Communication Skills A', '<NAME>', '1,2', 'A', 2, '410', '305\r', '2017-11-08', '08:00:00', '10:00:00', 29),
(421, 2017, 'Fall', 'Mid-term', 'Communication Skills A', '<NAME>', '1,2', 'C', 4, '409', '307\r', '2017-11-08', '08:00:00', '10:00:00', 25),
(422, 2017, 'Fall', 'Mid-term', 'Communication Skills A', '<NAME>', '1,2', 'D', 3, '409', '306\r', '2017-11-08', '08:00:00', '10:00:00', 25),
(423, 2017, 'Fall', 'Mid-term', 'Communications 11', '<NAME>', '1,2', 'A', 6, '208', '308\r', '2017-11-08', '08:00:00', '10:00:00', 27),
(424, 2017, 'Fall', 'Mid-term', 'Communications 11', '<NAME>', '1,2', 'A', 11, '311', '310\r', '2017-11-08', '08:00:00', '10:00:00', 26),
(425, 2017, 'Fall', 'Mid-term', 'Communications 11', '<NAME>', '1,2', 'B', 2, '311', '309\r', '2017-11-08', '08:00:00', '10:00:00', 27),
(426, 2017, 'Fall', 'Mid-term', 'Communications 11', '<NAME>', '1,2', 'C', 3, '402', '311\r', '2017-11-08', '08:00:00', '10:00:00', 30),
(427, 2017, 'Fall', 'Mid-term', 'Communications 11', '<NAME>', '1,2', 'B', 7, '401', '402\r', '2017-11-08', '08:00:00', '10:00:00', 27),
(428, 2017, 'Fall', 'Mid-term', 'Communications 11', '<NAME>', '1,2', 'E', 5, '401', '401\r', '2017-11-08', '08:00:00', '10:00:00', 28),
(429, 2017, 'Fall', 'Mid-term', 'Communications 11', 'Power, Maggie', '1,2', 'D', 4, '318', '403\r', '2017-11-08', '08:00:00', '10:00:00', 30),
(430, 2017, 'Fall', 'Mid-term', 'Communications 11', 'Sibiya, Sizwe', '1,2', 'B', 12, '322', '406\r', '2017-11-08', '08:00:00', '10:00:00', 26),
(431, 2017, 'Fall', 'Mid-term', 'Communications 11', 'Sibiya, Sizwe', '1,2', 'C', 13, '322', '407\r', '2017-11-08', '08:00:00', '10:00:00', 30),
(432, 2017, 'Fall', 'Mid-term', 'Communications 11', 'Sibi<NAME>', '1,2', 'D', 9, '322', '405\r', '2017-11-08', '08:00:00', '10:00:00', 30),
(433, 2017, 'Fall', 'Mid-term', 'Communications 11', 'Topinio, Jessica', '1,2', 'A', 1, '309', '408\r', '2017-11-08', '08:00:00', '10:00:00', 27),
(434, 2017, 'Fall', 'Mid-term', 'Communications 11', 'Topinio, Jessica', '1,2', 'C', 8, '309', '409\r', '2017-11-08', '08:00:00', '10:00:00', 30),
(435, 2017, 'Fall', 'Mid-term', 'Communications 11', 'Topinio, Jessica', '1,2', 'E', 10, '309', '410\r', '2017-11-08', '08:00:00', '10:00:00', 28),
(436, 2017, 'Fall', 'Mid-term', 'History 12', '<NAME>', '1,2', 'B', 1, '321', '411\r', '2017-11-08', '08:00:00', '10:00:00', 18),
(437, 2017, 'Fall', 'Mid-term', 'Biology 12', '<NAME>', '1,2', 'A', 1, '111', '303\r', '2017-11-08', '11:00:00', '13:00:00', 16),
(438, 2017, 'Fall', 'Mid-term', 'Biology 12', '<NAME>', '1,2', 'B', 2, '111', '305\r', '2017-11-08', '11:00:00', '13:00:00', 20),
(439, 2017, 'Fall', 'Mid-term', 'Chinese Social Studies 10', '<NAME> ', '2', 'A', 11, '509', '401\r', '2017-11-08', '11:00:00', '13:00:00', 28),
(440, 2017, 'Fall', 'Mid-term', 'Chinese Social Studies 10', '<NAME> ', '1', 'A', 12, '509', '402\r', '2017-11-08', '11:00:00', '13:00:00', 28),
(441, 2017, 'Fall', 'Mid-term', 'Chinese Social Studies 10', '<NAME> ', '2', 'C', 15, '509', '403\r', '2017-11-08', '11:00:00', '13:00:00', 29),
(442, 2017, 'Fall', 'Mid-term', 'Chinese Social Studies 10', '<NAME> ', '1', 'C', 16, '509', '405\r', '2017-11-08', '11:00:00', '13:00:00', 28),
(443, 2017, 'Fall', 'Mid-term', 'Chinese Social Studies 10', '<NAME> ', '2', 'E', 19, '509', '406\r', '2017-11-08', '11:00:00', '13:00:00', 26),
(444, 2017, 'Fall', 'Mid-term', 'Chinese Social Studies 10', '<NAME> ', '2', 'A', 1, '508', '407\r', '2017-11-08', '11:00:00', '13:00:00', 28),
(445, 2017, 'Fall', 'Mid-term', 'Chinese Social Studies 10', '<NAME> ', '1', 'A', 2, '508', '408\r', '2017-11-08', '11:00:00', '13:00:00', 27),
(446, 2017, 'Fall', 'Mid-term', 'Chinese Social Studies 10', '<NAME> ', '2', 'B', 3, '508', '409\r', '2017-11-08', '11:00:00', '13:00:00', 30),
(447, 2017, 'Fall', 'Mid-term', 'Chinese Social Studies 10', '<NAME> ', '1', 'B', 4, '508', '410\r', '2017-11-08', '11:00:00', '13:00:00', 29),
(448, 2017, 'Fall', 'Mid-term', 'Chinese Social Studies 10', '<NAME> ', '1', 'D', 8, '508', '411\r', '2017-11-08', '11:00:00', '13:00:00', 29),
(449, 2017, 'Fall', 'Mid-term', 'Chinese Social Studies 10', '<NAME> ', '2', 'A', 17, '319', '503\r', '2017-11-08', '11:00:00', '13:00:00', 27),
(450, 2017, 'Fall', 'Mid-term', 'Chinese Social Studies 10', '<NAME> ', '1', 'A', 18, '319', '505\r', '2017-11-08', '11:00:00', '13:00:00', 27),
(451, 2017, 'Fall', 'Mid-term', 'Chinese Social Studies 10', '<NAME> ', '2', 'C', 5, '508', '501\r', '2017-11-08', '11:00:00', '13:00:00', 29),
(452, 2017, 'Fall', 'Mid-term', 'Chinese Social Studies 10', 'Lu, Ting ', '1', 'C', 6, '508', '502\r', '2017-11-08', '11:00:00', '13:00:00', 29),
(453, 2017, 'Fall', 'Mid-term', 'Chinese Social Studies 10', '<NAME> ', '1', 'E', 20, '509', '506\r', '2017-11-08', '11:00:00', '13:00:00', 27),
(454, 2017, 'Fall', 'Mid-term', 'Chinese Social Studies 10', '<NAME> ', '2', 'B', 13, '509', '510\r', '2017-11-08', '11:00:00', '13:00:00', 29),
(455, 2017, 'Fall', 'Mid-term', 'Chinese Social Studies 10', '<NAME> ', '1', 'B', 14, '509', '511\r', '2017-11-08', '11:00:00', '13:00:00', 29),
(456, 2017, 'Fall', 'Mid-term', 'Chinese Social Studies 10', '<NAME> ', '2', 'D', 7, '508', '507\r', '2017-11-08', '11:00:00', '13:00:00', 30),
(457, 2017, 'Fall', 'Mid-term', 'Chinese Social Studies 10', '<NAME> ', '2', 'E', 9, '508', '508\r', '2017-11-08', '11:00:00', '13:00:00', 25),
(458, 2017, 'Fall', 'Mid-term', 'Chinese Social Studies 10', '<NAME> ', '1', 'E', 10, '508', '509\r', '2017-11-08', '11:00:00', '13:00:00', 26),
(459, 2017, 'Fall', 'Mid-term', 'Geography 12', '<NAME>', '1,2', 'E', 1, '319', '306\r', '2017-11-08', '11:00:00', '13:00:00', 21),
(460, 2017, 'Fall', 'Mid-term', 'Mandarin Chinese 11', '<NAME>', '1', 'B', 11, '505', '313\r', '2017-11-08', '11:00:00', '13:00:00', 29),
(461, 2017, 'Fall', 'Mid-term', 'Mandarin Chinese 11', '<NAME>', '1', 'C', 13, '505', '314\r', '2017-11-08', '11:00:00', '13:00:00', 24),
(462, 2017, 'Fall', 'Mid-term', 'Mandarin Chinese 11', '<NAME>', '2', 'C', 14, '505', '316\r', '2017-11-08', '11:00:00', '13:00:00', 30),
(463, 2017, 'Fall', 'Mid-term', 'Mandarin Chinese 11', '<NAME>', '1', 'E', 17, '505', '317\r', '2017-11-08', '11:00:00', '13:00:00', 26),
(464, 2017, 'Fall', 'Mid-term', 'Mandarin Chinese 11', '<NAME>', '2', 'E', 18, '505', '318\r', '2017-11-08', '11:00:00', '13:00:00', 24),
(465, 2017, 'Fall', 'Mid-term', 'Mandarin Chinese 11', '<NAME>', '1', 'A', 1, '503', '319\r', '2017-11-08', '11:00:00', '13:00:00', 26),
(466, 2017, 'Fall', 'Mid-term', 'Mandarin Chinese 11', '<NAME>', '2', 'A', 2, '503', '320\r', '2017-11-08', '11:00:00', '13:00:00', 28),
(467, 2017, 'Fall', 'Mid-term', 'Mandarin Chinese 11', '<NAME>', '1', 'C', 5, '503', '321\r', '2017-11-08', '11:00:00', '13:00:00', 30),
(468, 2017, 'Fall', 'Mid-term', 'Mandarin Chinese 11', '<NAME>', '2', 'C', 6, '503', '322\r', '2017-11-08', '11:00:00', '13:00:00', 29),
(469, 2017, 'Fall', 'Mid-term', 'Mandarin Chinese 11', '<NAME>', '1', 'E', 9, '503', '413\r', '2017-11-08', '11:00:00', '13:00:00', 26),
(470, 2017, 'Fall', 'Mid-term', 'Mandarin Chinese 11', '<NAME>', '1', 'B', 3, '503', '414\r', '2017-11-08', '11:00:00', '13:00:00', 28),
(471, 2017, 'Fall', 'Mid-term', 'Mandarin Chinese 11', '<NAME>', '2', 'B', 4, '503', '416\r', '2017-11-08', '11:00:00', '13:00:00', 26),
(472, 2017, 'Fall', 'Mid-term', 'Mandarin Chinese 11', '<NAME>', '1', 'D', 7, '503', '417\r', '2017-11-08', '11:00:00', '13:00:00', 26),
(473, 2017, 'Fall', 'Mid-term', 'Mandarin Chinese 11', '<NAME>', '2', 'D', 8, '503', '418\r', '2017-11-08', '11:00:00', '13:00:00', 28),
(474, 2017, 'Fall', 'Mid-term', 'Mandarin Chinese 11', '<NAME>', '2', 'E', 10, '503', '419\r', '2017-11-08', '11:00:00', '13:00:00', 26),
(475, 2017, 'Fall', 'Mid-term', 'Mandarin Chinese 11', '<NAME>', '2', 'B', 12, '505', '420\r', '2017-11-08', '11:00:00', '13:00:00', 28),
(476, 2017, 'Fall', 'Mid-term', 'Mandarin Chinese 11', '<NAME>', '1', 'D', 15, '505', '421\r', '2017-11-08', '11:00:00', '13:00:00', 26),
(477, 2017, 'Fall', 'Mid-term', 'Mandarin Chinese 11', '<NAME>', '2', 'D', 16, '505', '423\r', '2017-11-08', '11:00:00', '13:00:00', 26),
(478, 2017, 'Fall', 'Mid-term', 'Comparative Civilizations 12', 'Worrall, Aileen', '1,2', 'A', 1, '313', '313\r', '2017-11-08', '14:00:00', '16:00:00', 29),
(479, 2017, 'Fall', 'Mid-term', 'Comparative Civilizations 12', 'Worrall, Aileen', '1,2', 'D', 2, '313', '314\r', '2017-11-08', '14:00:00', '16:00:00', 23),
(480, 2017, 'Fall', 'Mid-term', 'Foundations Language Arts - Common Exam', '<NAME>', '1,2', 'C', 3, '416', '303\r', '2017-11-08', '14:00:00', '16:00:00', 25),
(481, 2017, 'Fall', 'Mid-term', 'Foundations Language Arts - Common Exam', '<NAME>', '1,2', 'B', 1, '414', '305\r', '2017-11-08', '14:00:00', '16:00:00', 27),
(482, 2017, 'Fall', 'Mid-term', 'Foundations Language Arts - Common Exam', '<NAME>', '1,2', 'A', 4, '306', '306\r', '2017-11-08', '14:00:00', '16:00:00', 25),
(483, 2017, 'Fall', 'Mid-term', 'Foundations Language Arts - Common Exam', '<NAME>', '1,2', 'C', 2, '423', '307\r', '2017-11-08', '14:00:00', '16:00:00', 29),
(484, 2017, 'Fall', 'Mid-term', 'Social Studies 10', '<NAME>', '1,2', 'B', 2, '320', '316\r', '2017-11-08', '14:00:00', '16:00:00', 25),
(485, 2017, 'Fall', 'Mid-term', 'Social Studies 10', '<NAME>', '1,2', 'C', 3, '320', '317\r', '2017-11-08', '14:00:00', '16:00:00', 25),
(486, 2017, 'Fall', 'Mid-term', 'Social Studies 10', '<NAME>', '1,2', 'D', 9, '320', '319\r', '2017-11-08', '14:00:00', '16:00:00', 28),
(487, 2017, 'Fall', 'Mid-term', 'Social Studies 10', '<NAME>', '1,2', 'E', 5, '320', '318\r', '2017-11-08', '14:00:00', '16:00:00', 25),
(488, 2017, 'Fall', 'Mid-term', 'Social Studies 10', '<NAME>', '1,2', 'A', 6, '303', '320\r', '2017-11-08', '14:00:00', '16:00:00', 23),
(489, 2017, 'Fall', 'Mid-term', 'Social Studies 10', '<NAME>', '1,2', 'B', 7, '319', '321\r', '2017-11-08', '14:00:00', '16:00:00', 26),
(490, 2017, 'Fall', 'Mid-term', 'Social Studies 10', '<NAME>', '1,2', 'C', 8, '319', '322\r', '2017-11-08', '14:00:00', '16:00:00', 29),
(491, 2017, 'Fall', 'Mid-term', 'Social Studies 10', '<NAME>', '1,2', 'D', 14, '319', '413\r', '2017-11-08', '14:00:00', '16:00:00', 28),
(492, 2017, 'Fall', 'Mid-term', 'Social Studies 10', '<NAME>', '1,2', 'A', 1, '317', '414\r', '2017-11-08', '14:00:00', '16:00:00', 25),
(493, 2017, 'Fall', 'Mid-term', 'Social Studies 10', '<NAME>', '1,2', 'E', 13, '317', '416\r', '2017-11-08', '14:00:00', '16:00:00', 25),
(494, 2017, 'Fall', 'Mid-term', 'Social Studies 10', '<NAME>', '1,2', 'E', 10, '316', '417\r', '2017-11-08', '14:00:00', '16:00:00', 25),
(495, 2017, 'Fall', 'Mid-term', 'Social Studies 10', '<NAME> ', '1,2', 'D', 4, '314', '418\r', '2017-11-08', '14:00:00', '16:00:00', 28),
(496, 2017, 'Fall', 'Mid-term', 'Social Studies 11', '<NAME>', '1,2', 'A', 1, '219', '419\r', '2017-11-08', '14:00:00', '16:00:00', 22),
(497, 2017, 'Fall', 'Mid-term', 'Social Studies 11', '<NAME>', '1,2', 'E', 6, '219', '420\r', '2017-11-08', '14:00:00', '16:00:00', 20),
(498, 2017, 'Fall', 'Mid-term', 'Social Studies 11', '<NAME>', '1,2', 'C', 3, '316', '421\r', '2017-11-08', '14:00:00', '16:00:00', 21),
(499, 2017, 'Fall', 'Mid-term', 'Social Studies 11', '<NAME>', '1,2', 'D', 4, '316', '423\r', '2017-11-08', '14:00:00', '16:00:00', 25),
(500, 2017, 'Fall', 'Mid-term', 'Foundations of Maths and Pre-calculus 10', '<NAME>', '1,2', 'C', 23, '413', '313\r', '2017-11-09', '08:00:00', '10:00:00', 25),
(501, 2017, 'Fall', 'Mid-term', 'Foundations of Maths and Pre-calculus 10', '<NAME>', '1,2', 'A', 1, '416', '314\r', '2017-11-09', '08:00:00', '10:00:00', 29),
(502, 2017, 'Fall', 'Mid-term', 'Foundations of Maths and Pre-calculus 10', '<NAME>', '1,2', 'E', 9, '407', '316\r', '2017-11-09', '08:00:00', '10:00:00', 25),
(503, 2017, 'Fall', 'Mid-term', 'Foundations of Maths and Pre-calculus 10', '<NAME>', '1,2', 'B', 2, '417', '317\r', '2017-11-09', '08:00:00', '10:00:00', 29),
(504, 2017, 'Fall', 'Mid-term', 'Foundations of Maths and Pre-calculus 10', '<NAME>', '1,2', 'C', 3, '417', '318\r', '2017-11-09', '08:00:00', '10:00:00', 26),
(505, 2017, 'Fall', 'Mid-term', 'Foundations of Maths and Pre-calculus 10', '<NAME>', '1,2', 'D', 8, '417', '319\r', '2017-11-09', '08:00:00', '10:00:00', 29),
(506, 2017, 'Fall', 'Mid-term', 'Foundations of Maths and Pre-calculus 10', '<NAME>', '1,2', 'A', 6, '419', '321\r', '2017-11-09', '08:00:00', '10:00:00', 29),
(507, 2017, 'Fall', 'Mid-term', 'Foundations of Maths and Pre-calculus 10', '<NAME>', '1,2', 'B', 7, '419', '322\r', '2017-11-09', '08:00:00', '10:00:00', 28),
(508, 2017, 'Fall', 'Mid-term', 'Foundations of Maths and Pre-calculus 10', '<NAME>', '1,2', 'E', 5, '419', '320\r', '2017-11-09', '08:00:00', '10:00:00', 26),
(509, 2017, 'Fall', 'Mid-term', 'Pre-Calculus 11', '<NAME>', '1,2', 'A', 1, '413', '303\r', '2017-11-09', '08:00:00', '10:00:00', 25),
(510, 2017, 'Fall', 'Mid-term', 'Pre-Calculus 11', '<NAME>', '1,2', 'D', 4, '413', '305\r', '2017-11-09', '08:00:00', '10:00:00', 25),
(511, 2017, 'Fall', 'Mid-term', 'Pre-Calculus 11', '<NAME>', '1,2', 'E', 10, '413', '306\r', '2017-11-09', '08:00:00', '10:00:00', 22),
(512, 2017, 'Fall', 'Mid-term', 'Pre-Calculus 11', '<NAME>', '1,2', 'B', 7, '416', '308\r', '2017-11-09', '08:00:00', '10:00:00', 26),
(513, 2017, 'Fall', 'Mid-term', 'Pre-Calculus 11', '<NAME>', '1,2', 'E', 5, '416', '307\r', '2017-11-09', '08:00:00', '10:00:00', 21),
(514, 2017, 'Fall', 'Mid-term', 'Pre-Calculus 11', '<NAME>', '1,2', 'A', 6, '320', '309\r', '2017-11-09', '08:00:00', '10:00:00', 26),
(515, 2017, 'Fall', 'Mid-term', 'Pre-Calculus 11', '<NAME>', '1,2', 'C', 3, '403', '310\r', '2017-11-09', '08:00:00', '10:00:00', 16),
(516, 2017, 'Fall', 'Mid-term', 'Pre-Calculus 11', '<NAME>', '1,2', 'D', 9, '403', '311\r', '2017-11-09', '08:00:00', '10:00:00', 26),
(517, 2017, 'Fall', 'Mid-term', 'Pre-Calculus 12', '<NAME>', '1,2', 'D', 4, '423', '501\r', '2017-11-09', '08:00:00', '10:00:00', 25),
(518, 2017, 'Fall', 'Mid-term', 'Pre-Calculus 12', '<NAME>', '1,2', 'A', 1, '418', '502\r', '2017-11-09', '08:00:00', '10:00:00', 28),
(519, 2017, 'Fall', 'Mid-term', 'Pre-Calculus 12', '<NAME>', '1,2', 'B', 2, '418', '503\r', '2017-11-09', '08:00:00', '10:00:00', 25),
(520, 2017, 'Fall', 'Mid-term', 'Pre-Calculus 12', '<NAME>', '1,2', 'C', 3, '418', '505\r', '2017-11-09', '08:00:00', '10:00:00', 27),
(521, 2017, 'Fall', 'Mid-term', 'Pre-Calculus 12', '<NAME>', '1,2', 'E', 10, '418', '506\r', '2017-11-09', '08:00:00', '10:00:00', 24),
(522, 2017, 'Fall', 'Mid-term', 'Pre-Calculus 12', '<NAME>', '1,2', 'C', 8, '421', '507\r', '2017-11-09', '08:00:00', '10:00:00', 28),
(523, 2017, 'Fall', 'Mid-term', 'Pre-Calculus 12', '<NAME>', '1,2', 'A', 6, '421', '509\r', '2017-11-09', '08:00:00', '10:00:00', 29),
(524, 2017, 'Fall', 'Mid-term', 'Pre-Calculus 12', '<NAME>', '1,2', 'B', 7, '421', '510\r', '2017-11-09', '08:00:00', '10:00:00', 26),
(525, 2017, 'Fall', 'Mid-term', 'Pre-Calculus 12', '<NAME>', '1,2', 'D', 9, '421', '511\r', '2017-11-09', '08:00:00', '10:00:00', 24),
(526, 2017, 'Fall', 'Mid-term', 'Pre-Calculus 12', '<NAME>', '1,2', 'E', 5, '421', '508\r', '2017-11-09', '08:00:00', '10:00:00', 26),
(527, 2017, 'Fall', 'Mid-term', 'Chinese Social Studies 11', '<NAME>', '2', 'B', 11, '511', '313\r', '2017-11-09', '11:00:00', '13:00:00', 28),
(528, 2017, 'Fall', 'Mid-term', 'Chinese Social Studies 11', '<NAME>', '2', 'C', 13, '511', '314\r', '2017-11-09', '11:00:00', '13:00:00', 30),
(529, 2017, 'Fall', 'Mid-term', 'Chinese Social Studies 11', '<NAME>', '1', 'C', 14, '511', '316\r', '2017-11-09', '11:00:00', '13:00:00', 30),
(530, 2017, 'Fall', 'Mid-term', 'Chinese Social Studies 11', '<NAME>', '2', 'E', 17, '511', '317\r', '2017-11-09', '11:00:00', '13:00:00', 27),
(531, 2017, 'Fall', 'Mid-term', 'Chinese Social Studies 11', '<NAME>', '1', 'E', 18, '511', '318\r', '2017-11-09', '11:00:00', '13:00:00', 24),
(532, 2017, 'Fall', 'Mid-term', 'Chinese Social Studies 11', '<NAME>', '2', 'A', 1, '510', '319\r', '2017-11-09', '11:00:00', '13:00:00', 26),
(533, 2017, 'Fall', 'Mid-term', 'Chinese Social Studies 11', '<NAME>', '1', 'A', 2, '510', '320\r', '2017-11-09', '11:00:00', '13:00:00', 28),
(534, 2017, 'Fall', 'Mid-term', 'Chinese Social Studies 11', '<NAME>', '2', 'C', 5, '510', '321\r', '2017-11-09', '11:00:00', '13:00:00', 29),
(535, 2017, 'Fall', 'Mid-term', 'Chinese Social Studies 11', '<NAME>', '1', 'C', 6, '510', '322\r', '2017-11-09', '11:00:00', '13:00:00', 30),
(536, 2017, 'Fall', 'Mid-term', 'Chinese Social Studies 11', '<NAME>', '1', 'E', 10, '510', '413\r', '2017-11-09', '11:00:00', '13:00:00', 27),
(537, 2017, 'Fall', 'Mid-term', 'Chinese Social Studies 11', '<NAME>', '1', 'B', 12, '511', '414\r', '2017-11-09', '11:00:00', '13:00:00', 28),
(538, 2017, 'Fall', 'Mid-term', 'Chinese Social Studies 11', '<NAME>', '2', 'D', 15, '511', '416\r', '2017-11-09', '11:00:00', '13:00:00', 25),
(539, 2017, 'Fall', 'Mid-term', 'Chinese Social Studies 11', '<NAME>', '1', 'D', 16, '511', '417\r', '2017-11-09', '11:00:00', '13:00:00', 26),
(540, 2017, 'Fall', 'Mid-term', 'Chinese Social Studies 11', '<NAME>', '2', 'B', 3, '510', '418\r', '2017-11-09', '11:00:00', '13:00:00', 29),
(541, 2017, 'Fall', 'Mid-term', 'Chinese Social Studies 11', '<NAME>', '1', 'B', 4, '510', '419\r', '2017-11-09', '11:00:00', '13:00:00', 27),
(542, 2017, 'Fall', 'Mid-term', 'Chinese Social Studies 11', '<NAME>', '2', 'D', 7, '510', '420\r', '2017-11-09', '11:00:00', '13:00:00', 26),
(543, 2017, 'Fall', 'Mid-term', 'Chinese Social Studies 11', '<NAME>', '1', 'D', 8, '510', '421\r', '2017-11-09', '11:00:00', '13:00:00', 29),
(544, 2017, 'Fall', 'Mid-term', 'Chinese Social Studies 11', '<NAME>', '2', 'E', 9, '510', '423\r', '2017-11-09', '11:00:00', '13:00:00', 26),
(545, 2017, 'Fall', 'Mid-term', 'Chinese Social Studies 12', '<NAME> ', '2', 'A', 1, '516', '303\r', '2017-11-09', '11:00:00', '13:00:00', 27),
(546, 2017, 'Fall', 'Mid-term', 'Chinese Social Studies 12', '<NAME> ', '1', 'A', 2, '516', '305\r', '2017-11-09', '11:00:00', '13:00:00', 26),
(547, 2017, 'Fall', 'Mid-term', 'Chinese Social Studies 12', '<NAME> ', '2', 'C', 5, '516', '306\r', '2017-11-09', '11:00:00', '13:00:00', 25),
(548, 2017, 'Fall', 'Mid-term', 'Chinese Social Studies 12', '<NAME> ', '1', 'C', 6, '516', '307\r', '2017-11-09', '11:00:00', '13:00:00', 25),
(549, 2017, 'Fall', 'Mid-term', 'Chinese Social Studies 12', '<NAME> ', '2', 'D', 7, '516', '308\r', '2017-11-09', '11:00:00', '13:00:00', 30),
(550, 2017, 'Fall', 'Mid-term', 'Chinese Social Studies 12', '<NAME> ', '1', 'D', 8, '516', '309\r', '2017-11-09', '11:00:00', '13:00:00', 28),
(551, 2017, 'Fall', 'Mid-term', 'Chinese Social Studies 12', '<NAME> ', '2', 'E', 9, '516', '310\r', '2017-11-09', '11:00:00', '13:00:00', 23),
(552, 2017, 'Fall', 'Mid-term', 'Chinese Social Studies 12', '<NAME> ', '1', 'E', 10, '516', '311\r', '2017-11-09', '11:00:00', '13:00:00', 22),
(553, 2017, 'Fall', 'Mid-term', 'Chinese Social Studies 12', '<NAME> ', '2', 'A', 11, '514', '403\r', '2017-11-09', '11:00:00', '13:00:00', 26),
(554, 2017, 'Fall', 'Mid-term', 'Chinese Social Studies 12', '<NAME> ', '1', 'A', 12, '514', '405\r', '2017-11-09', '11:00:00', '13:00:00', 22),
(555, 2017, 'Fall', 'Mid-term', 'Chinese Social Studies 12', '<NAME> ', '2', 'B', 3, '514', '401\r', '2017-11-09', '11:00:00', '13:00:00', 27),
(556, 2017, 'Fall', 'Mid-term', 'Chinese Social Studies 12', '<NAME> ', '1', 'B', 4, '514', '402\r', '2017-11-09', '11:00:00', '13:00:00', 28),
(557, 2017, 'Fall', 'Mid-term', 'Chinese Social Studies 12', '<NAME> ', '2', 'D', 13, '514', '406\r', '2017-11-09', '11:00:00', '13:00:00', 26),
(558, 2017, 'Fall', 'Mid-term', 'Chinese Social Studies 12', '<NAME> ', '1', 'D', 14, '514', '407\r', '2017-11-09', '11:00:00', '13:00:00', 28),
(559, 2017, 'Fall', 'Mid-term', 'Chinese Social Studies 12', '<NAME> ', '2', 'E', 15, '514', '408\r', '2017-11-09', '11:00:00', '13:00:00', 20),
(560, 2017, 'Fall', 'Mid-term', 'Chinese Social Studies 12', '<NAME> ', '1', 'E', 16, '514', '409\r', '2017-11-09', '11:00:00', '13:00:00', 23),
(561, 2017, 'Fall', 'Mid-term', 'Biology 11', 'Awofolu, Patience', '1,2', 'D', 1, '122', '409\r', '2017-11-09', '14:00:00', '16:00:00', 19),
(562, 2017, 'Fall', 'Mid-term', 'Introduction to Math and Science 10', '<NAME>', '1,2', '', 1, '414', '501\r', '2017-11-09', '14:00:00', '16:00:00', 23),
(563, 2017, 'Fall', 'Mid-term', 'Introduction to Math and Science 10', '<NAME>', '1,2', '', 3, '414', '503\r', '2017-11-09', '14:00:00', '16:00:00', 29),
(564, 2017, 'Fall', 'Mid-term', 'Introduction to Math and Science 10', '<NAME>', '1,2', '', 8, '414', '509\r', '2017-11-09', '14:00:00', '16:00:00', 24),
(565, 2017, 'Fall', 'Mid-term', 'Introduction to Math and Science 10', '<NAME>', '1,2', '', 4, '411', '505\r', '2017-11-09', '14:00:00', '16:00:00', 29),
(566, 2017, 'Fall', 'Mid-term', 'Introduction to Math and Science 10', '<NAME>', '1,2', '', 5, '411', '506\r', '2017-11-09', '14:00:00', '16:00:00', 25),
(567, 2017, 'Fall', 'Mid-term', 'Introduction to Math and Science 10', '<NAME>', '1,2', '', 6, '214', '507\r', '2017-11-09', '14:00:00', '16:00:00', 24),
(568, 2017, 'Fall', 'Mid-term', 'Introduction to Math and Science 10', '<NAME>', '1,2', '', 7, '214', '508\r', '2017-11-09', '14:00:00', '16:00:00', 25),
(569, 2017, 'Fall', 'Mid-term', 'Introduction to Math and Science 10', '<NAME>', '1,2', '', 2, '115', '502\r', '2017-11-09', '14:00:00', '16:00:00', 27),
(570, 2017, 'Fall', 'Mid-term', 'Physics 11', '<NAME>', '1,2', 'A', 1, '407', '303\r', '2017-11-09', '14:00:00', '16:00:00', 26),
(571, 2017, 'Fall', 'Mid-term', 'Physics 11', '<NAME>', '1,2', 'C', 3, '407', '305\r', '2017-11-09', '14:00:00', '16:00:00', 27),
(572, 2017, 'Fall', 'Mid-term', 'Physics 11', '<NAME>', '1,2', 'D', 4, '407', '306\r', '2017-11-09', '14:00:00', '16:00:00', 27),
(573, 2017, 'Fall', 'Mid-term', 'Physics 11', '<NAME>', '1,2', 'E', 5, '403', '307\r', '2017-11-09', '14:00:00', '16:00:00', 25),
(574, 2017, 'Fall', 'Mid-term', 'Physics 11', '<NAME>', '1,2', 'B', 2, '405', '308\r', '2017-11-09', '14:00:00', '16:00:00', 28),
(575, 2017, 'Fall', 'Mid-term', 'Physics 12', 'Zhao, Le', '1,2', 'A', 1, '405', '309\r', '2017-11-09', '14:00:00', '16:00:00', 30),
(576, 2017, 'Fall', 'Mid-term', 'Physics 12', '<NAME>', '1,2', 'C', 2, '405', '310\r', '2017-11-09', '14:00:00', '16:00:00', 20),
(577, 2017, 'Fall', 'Mid-term', 'Physics 12', '<NAME>', '1,2', 'D', 3, '405', '311\r', '2017-11-09', '14:00:00', '16:00:00', 18),
(578, 2017, 'Fall', 'Mid-term', 'Science & Technology 11', '<NAME>', '1,2', 'D', 1, '111', '401\r', '2017-11-09', '14:00:00', '16:00:00', 23),
(579, 2017, 'Fall', 'Mid-term', 'Science & Technology 11', '<NAME>', '1,2', 'E', 2, '111', '402\r', '2017-11-09', '14:00:00', '16:00:00', 18),
(580, 2017, 'Fall', 'Mid-term', 'Science 10', 'Awofolu, Patience', '1,2', 'A', 1, '122', '403\r', '2017-11-09', '14:00:00', '16:00:00', 24),
(581, 2017, 'Fall', 'Mid-term', 'Science 10', 'Awofolu, Patience', '1,2', 'B', 2, '122', '405\r', '2017-11-09', '14:00:00', '16:00:00', 25),
(582, 2017, 'Fall', 'Mid-term', 'Science 10', '<NAME>', '1,2', 'C', 3, '308', '406\r', '2017-11-09', '14:00:00', '16:00:00', 24),
(583, 2017, 'Fall', 'Mid-term', 'Science 10', '<NAME>', '1,2', 'D', 4, '115', '407\r', '2017-11-09', '14:00:00', '16:00:00', 27),
(584, 2017, 'Fall', 'Mid-term', 'Science 10', '<NAME>', '1,2', 'E', 5, '115', '408\r', '2017-11-09', '14:00:00', '16:00:00', 27),
(585, 2017, 'Fall', 'Mid-term', 'BC Entrance Exam', '<NAME>', '1,2', 'B', 4, '307', '303\r', '2017-11-10', '08:00:00', '10:30:00', 26),
(586, 2017, 'Fall', 'Mid-term', 'BC Entrance Exam', '<NAME>', '1,2', 'E', 5, '308', '305\r', '2017-11-10', '08:00:00', '10:30:00', 25),
(587, 2017, 'Fall', 'Mid-term', 'BC Entrance Exam', '<NAME>', '1,2', 'A', 3, '402', '308\r', '2017-11-10', '08:00:00', '10:30:00', 24),
(588, 2017, 'Fall', 'Mid-term', 'BC Entrance Exam', '<NAME>', '1,2', 'C', 1, '311', '306\r', '2017-11-10', '08:00:00', '10:30:00', 28),
(589, 2017, 'Fall', 'Mid-term', 'BC Entrance Exam', '<NAME>', '1,2', 'D', 2, '402', '307\r', '2017-11-10', '08:00:00', '10:30:00', 29),
(590, 2017, 'Fall', 'Mid-term', 'BC Entrance Exam', '<NAME>', '1,2', 'C', 6, '411', '309\r', '2017-11-10', '08:00:00', '10:30:00', 27),
(591, 2017, 'Fall', 'Mid-term', 'BC Entrance Exam', '<NAME>', '1,2', 'D', 7, '406', '310\r', '2017-11-10', '08:00:00', '10:30:00', 28),
(592, 2017, 'Fall', 'Mid-term', 'BC Entrance Exam', '<NAME>', '1,2', 'E', 8, '405', '311\r', '2017-11-10', '08:00:00', '10:30:00', 25),
(593, 2017, 'Fall', 'Mid-term', 'Chinese Social Studies 11: Politics', '<NAME>', '2', 'A', 1, '511', '501\r', '2017-11-10', '08:00:00', '10:00:00', 25),
(594, 2017, 'Fall', 'Mid-term', 'Chinese Social Studies 11: Politics', '<NAME>', '2', 'C', 5, '514', '502\r', '2017-11-10', '08:00:00', '10:00:00', 27),
(595, 2017, 'Fall', 'Mid-term', 'Chinese Social Studies 11: Politics', '<NAME>', '1', 'C', 6, '514', '503\r', '2017-11-10', '08:00:00', '10:00:00', 27),
(596, 2017, 'Fall', 'Mid-term', 'Chinese Social Studies 11: Politics', '<NAME>', '1', 'A', 2, '511', '505\r', '2017-11-10', '08:00:00', '10:00:00', 24),
(597, 2017, 'Fall', 'Mid-term', 'Chinese Social Studies 11: Politics', '<NAME>', '2', 'E', 9, '406', '506\r', '2017-11-10', '08:00:00', '10:00:00', 28),
(598, 2017, 'Fall', 'Mid-term', 'Chinese Social Studies 11: Politics', '<NAME>', '2', 'B', 3, '516', '507\r', '2017-11-10', '08:00:00', '10:00:00', 24),
(599, 2017, 'Fall', 'Mid-term', 'Chinese Social Studies 11: Politics', '<NAME>', '1', 'B', 4, '516', '508\r', '2017-11-10', '08:00:00', '10:00:00', 24),
(600, 2017, 'Fall', 'Mid-term', 'Chinese Social Studies 11: Politics', '<NAME>', '2', 'D', 7, '509', '509\r', '2017-11-10', '08:00:00', '10:00:00', 25),
(601, 2017, 'Fall', 'Mid-term', 'Chinese Social Studies 11: Politics', '<NAME>', '1', 'D', 8, '509', '510\r', '2017-11-10', '08:00:00', '10:00:00', 25),
(602, 2017, 'Fall', 'Mid-term', 'Chinese Social Studies 11: Politics', '<NAME>', '1', 'E', 10, '406', '511\r', '2017-11-10', '08:00:00', '10:00:00', 26),
(603, 2017, 'Fall', 'Mid-term', 'Conflict Exams', 'ROSTER', '', '', 0, '', '207\r', '2017-11-10', '11:30:00', '13:30:00', 0),
(604, 2017, 'Fall', 'Mid-term', 'Conflict Exams', 'ROSTER', '', '', 0, '', '207\r', '2017-11-10', '11:30:00', '13:30:00', 0),
(605, 2018, 'Fall', 'Final', 'English 10', '<NAME>', '1,2', 'D', 17, 'A311', '313', '2018-01-15', '08:00:00', '10:00:00', 24),
(606, 2018, 'Fall', 'Final', 'English 10', '<NAME>', '1,2', 'E', 18, 'A311', '314', '2018-01-15', '08:00:00', '10:00:00', 24),
(607, 2018, 'Fall', 'Final', 'English 10', '<NAME>', '1,2', 'A', 21, 'A314', '316', '2018-01-15', '08:00:00', '10:00:00', 27),
(608, 2018, 'Fall', 'Final', 'English 10', 'Poor, Jennifer', '1,2', 'C', 20, 'A401', '317', '2018-01-15', '08:00:00', '10:00:00', 21),
(609, 2018, 'Fall', 'Final', 'English 10', 'Power, Maggie', '1,2', 'B', 15, 'A318', '318', '2018-01-15', '08:00:00', '10:00:00', 23),
(610, 2018, 'Fall', 'Final', 'English 10', 'Power, Maggie', '1,2', 'C', 16, 'A318', '319', '2018-01-15', '08:00:00', '10:00:00', 21),
(611, 2018, 'Fall', 'Final', 'English 10', 'Power, Maggie', '1,2', 'E', 19, 'A318', '320', '2018-01-15', '08:00:00', '10:00:00', 23),
(612, 2018, 'Fall', 'Final', 'English 10', 'Sibiya, Sizwe', '1,2', 'A', 14, 'A322', '321', '2018-01-15', '08:00:00', '10:00:00', 27),
(613, 2018, 'Fall', 'Final', 'English 10', 'Topinio, Jessica', '1,2', 'D', 22, 'A309', '322', '2018-01-15', '08:00:00', '10:00:00', 23),
(614, 2018, 'Fall', 'Final', 'English 12', 'B<NAME>', '1,2', 'B', 16, 'A306', '401', '2018-01-15', '08:00:00', '10:00:00', 26),
(615, 2018, 'Fall', 'Final', 'English 12', '<NAME>', '1,2', 'C', 17, 'A306', '402', '2018-01-15', '08:00:00', '10:00:00', 25),
(616, 2018, 'Fall', 'Final', 'English 12', '<NAME>', '1,2', 'E', 9, 'A306', '403', '2018-01-15', '08:00:00', '10:00:00', 21),
(617, 2018, 'Fall', 'Final', 'English 12', '<NAME>', '1', 'B', 1, 'A208', '405', '2018-01-15', '08:00:00', '10:00:00', 19),
(618, 2018, 'Fall', 'Final', 'English 12', '<NAME>', '1', 'C', 2, 'A208', '406', '2018-01-15', '08:00:00', '10:00:00', 22),
(619, 2018, 'Fall', 'Final', 'English 12', 'DePiero, Gerald', '1,2', 'A', 5, 'A321', '407', '2018-01-15', '08:00:00', '10:00:00', 22),
(620, 2018, 'Fall', 'Final', 'English 12', 'DePiero, Gerald', '1,2', 'D', 8, 'A321', '408', '2018-01-15', '08:00:00', '10:00:00', 24),
(621, 2018, 'Fall', 'Final', 'English 12', '<NAME>', '1,2', 'B', 6, 'A207', '409', '2018-01-15', '08:00:00', '10:00:00', 25),
(622, 2018, 'Fall', 'Final', 'English 12', '<NAME>', '1,2', 'C', 7, 'A207', '410', '2018-01-15', '08:00:00', '10:00:00', 27),
(623, 2018, 'Fall', 'Final', 'English 12', '<NAME>', '1,2', 'A', 10, 'A308', '501', '2018-01-15', '08:00:00', '10:00:00', 23),
(624, 2018, 'Fall', 'Final', 'English 12', '<NAME>', '1,2', 'B', 11, 'A308', '502', '2018-01-15', '08:00:00', '10:00:00', 25),
(625, 2018, 'Fall', 'Final', 'English 12', '<NAME>', '1,2', 'C', 12, 'A307', '503', '2018-01-15', '08:00:00', '10:00:00', 25),
(626, 2018, 'Fall', 'Final', 'English 12', '<NAME>', '1,2', 'E', 14, 'A307', '505', '2018-01-15', '08:00:00', '10:00:00', 22),
(627, 2018, 'Fall', 'Final', 'English 12', '<NAME>', '1,2', 'D', 3, 'A207', '506', '2018-01-15', '08:00:00', '10:00:00', 25),
(628, 2018, 'Fall', 'Final', 'English 12', '<NAME>', '1,2', 'E', 4, 'A207', '507', '2018-01-15', '08:00:00', '10:00:00', 21),
(629, 2018, 'Fall', 'Final', 'English 12', '<NAME>', '1,2', 'A', 15, 'A310', '508', '2018-01-15', '08:00:00', '10:00:00', 21),
(630, 2018, 'Fall', 'Final', 'English 12', '<NAME>', '1,2', 'D', 13, 'A310', '509', '2018-01-15', '08:00:00', '10:00:00', 24),
(631, 2018, 'Fall', 'Final', 'English 12', '<NAME>', '1,2', 'E', 18, 'A310', '510', '2018-01-15', '08:00:00', '10:00:00', 22),
(632, 2018, 'Fall', 'Final', 'Foundations Language Arts', '<NAME>', '1,2', 'E', 3, 'A313', '303', '2018-01-15', '08:00:00', '10:00:00', 25),
(633, 2018, 'Fall', 'Final', 'Foundations Language Arts', '<NAME>', '1,2', 'E', 1, 'A417', '305', '2018-01-15', '08:00:00', '10:00:00', 26),
(634, 2018, 'Fall', 'Final', 'Foundations Language Arts', '<NAME>', '1,2', 'E', 4, 'A322', '306', '2018-01-15', '08:00:00', '10:00:00', 24),
(635, 2018, 'Fall', 'Final', 'Foundations Language Arts', '<NAME>', '1,2', 'E', 2, 'A423', '307', '2018-01-15', '08:00:00', '10:00:00', 29),
(636, 2018, 'Fall', 'Final', 'Mandarin Chinese 10', '<NAME> ', '2', 'A', 12, 'A502', '401', '2018-01-15', '11:00:00', '13:00:00', 27),
(637, 2018, 'Fall', 'Final', 'Mandarin Chinese 10', '<NAME>lan ', '1', 'C', 15, 'A502', '402', '2018-01-15', '11:00:00', '13:00:00', 30),
(638, 2018, 'Fall', 'Final', 'Mandarin Chinese 10', 'An, Lanlan ', '2', 'C', 16, 'A502', '403', '2018-01-15', '11:00:00', '13:00:00', 29),
(639, 2018, 'Fall', 'Final', 'Mandarin Chinese 10', 'An, Lanlan ', '1', 'E', 19, 'A502', '405', '2018-01-15', '11:00:00', '13:00:00', 27),
(640, 2018, 'Fall', 'Final', 'Mandarin Chinese 10', 'Jiang, Sisi ', '1', 'A', 1, 'A501', '406', '2018-01-15', '11:00:00', '13:00:00', 27),
(641, 2018, 'Fall', 'Final', 'Mandarin Chinese 10', 'Jiang, Sisi ', '2', 'A', 2, 'A501', '407', '2018-01-15', '11:00:00', '13:00:00', 28),
(642, 2018, 'Fall', 'Final', 'Mandarin Chinese 10', 'Jiang, Sisi ', '1', 'C', 5, 'A501', '408', '2018-01-15', '11:00:00', '13:00:00', 27),
(643, 2018, 'Fall', 'Final', 'Mandarin Chinese 10', 'Jiang, Sisi ', '2', 'C', 6, 'A501', '409', '2018-01-15', '11:00:00', '13:00:00', 29),
(644, 2018, 'Fall', 'Final', 'Mandarin Chinese 10', 'Jiang, Sisi ', '2', 'E', 10, 'A501', '410', '2018-01-15', '11:00:00', '13:00:00', 26),
(645, 2018, 'Fall', 'Final', 'Mandarin Chinese 10', 'Tan, Jing ', '1', 'A', 11, 'A502', '411', '2018-01-15', '11:00:00', '13:00:00', 26),
(646, 2018, 'Fall', 'Final', 'Mandarin Chinese 10', 'Tan, Jing ', '1', 'B', 3, 'A501', '501', '2018-01-15', '11:00:00', '13:00:00', 29),
(647, 2018, 'Fall', 'Final', 'Mandarin Chinese 10', 'Tan, Jing ', '2', 'B', 4, 'A501', '502', '2018-01-15', '11:00:00', '13:00:00', 30),
(648, 2018, 'Fall', 'Final', 'Mandarin Chinese 10', 'Tan, Jing ', '2', 'D', 8, 'A501', '503', '2018-01-15', '11:00:00', '13:00:00', 30),
(649, 2018, 'Fall', 'Final', 'Mandarin Chinese 10', '<NAME> ', '1', 'E', 9, 'A501', '505', '2018-01-15', '11:00:00', '13:00:00', 27),
(650, 2018, 'Fall', 'Final', 'Mandarin Chinese 10', '<NAME> ', '2', 'E', 20, 'A502', '506', '2018-01-15', '11:00:00', '13:00:00', 27);
INSERT INTO `ml_wh_examination_roomassignment` (`cid`, `year`, `semester`, `exam_name`, `course`, `teacher`, `day`, `block`, `section`, `regular_classroom`, `exam_room`, `exam_date`, `start_time`, `end_time`, `enrollment`) VALUES
(651, 2018, 'Fall', 'Final', 'Mandarin Chinese 10', 'Yang, Dong ', '1', 'A', 17, 'A505', '507', '2018-01-15', '11:00:00', '13:00:00', 28),
(652, 2018, 'Fall', 'Final', 'Mandarin Chinese 10', 'Yang, Dong ', '2', 'A', 18, 'A505', '508', '2018-01-15', '11:00:00', '13:00:00', 28),
(653, 2018, 'Fall', 'Final', 'Mandarin Chinese 10', 'Yang, Dong ', '1', 'B', 13, 'A502', '509', '2018-01-15', '11:00:00', '13:00:00', 29),
(654, 2018, 'Fall', 'Final', 'Mandarin Chinese 10', 'Yang, Dong ', '2', 'B', 14, 'A502', '510', '2018-01-15', '11:00:00', '13:00:00', 28),
(655, 2018, 'Fall', 'Final', 'Mandarin Chinese 10', 'Yang, Dong ', '1', 'D', 7, 'A501', '511', '2018-01-15', '11:00:00', '13:00:00', 29),
(656, 2018, 'Fall', 'Final', 'Chinese Social Studies 12', '<NAME> ', '2', 'A', 1, 'A516', '303', '2018-01-15', '11:00:00', '13:00:00', 27),
(657, 2018, 'Fall', 'Final', 'Chinese Social Studies 12', '<NAME> ', '1', 'A', 2, 'A516', '305', '2018-01-15', '11:00:00', '13:00:00', 26),
(658, 2018, 'Fall', 'Final', 'Chinese Social Studies 12', 'Chen, Yanan ', '2', 'C', 5, 'A516', '306', '2018-01-15', '11:00:00', '13:00:00', 25),
(659, 2018, 'Fall', 'Final', 'Chinese Social Studies 12', '<NAME> ', '1', 'C', 6, 'A516', '307', '2018-01-15', '11:00:00', '13:00:00', 24),
(660, 2018, 'Fall', 'Final', 'Chinese Social Studies 12', '<NAME> ', '2', 'D', 7, 'A516', '308', '2018-01-15', '11:00:00', '13:00:00', 30),
(661, 2018, 'Fall', 'Final', 'Chinese Social Studies 12', '<NAME> ', '1', 'D', 8, 'A516', '309', '2018-01-15', '11:00:00', '13:00:00', 28),
(662, 2018, 'Fall', 'Final', 'Chinese Social Studies 12', '<NAME> ', '2', 'E', 9, 'A516', '310', '2018-01-15', '11:00:00', '13:00:00', 23),
(663, 2018, 'Fall', 'Final', 'Chinese Social Studies 12', '<NAME> ', '1', 'E', 10, 'A516', '311', '2018-01-15', '11:00:00', '13:00:00', 22),
(664, 2018, 'Fall', 'Final', 'Chinese Social Studies 12', '<NAME> ', '2', 'A', 11, 'A514', '313', '2018-01-15', '11:00:00', '13:00:00', 26),
(665, 2018, 'Fall', 'Final', 'Chinese Social Studies 12', '<NAME> ', '1', 'A', 12, 'A514', '314', '2018-01-15', '11:00:00', '13:00:00', 22),
(666, 2018, 'Fall', 'Final', 'Chinese Social Studies 12', '<NAME> ', '2', 'B', 3, 'A514', '316', '2018-01-15', '11:00:00', '13:00:00', 27),
(667, 2018, 'Fall', 'Final', 'Chinese Social Studies 12', '<NAME> ', '1', 'B', 4, 'A514', '317', '2018-01-15', '11:00:00', '13:00:00', 28),
(668, 2018, 'Fall', 'Final', 'Chinese Social Studies 12', '<NAME> ', '2', 'D', 13, 'A514', '318', '2018-01-15', '11:00:00', '13:00:00', 26),
(669, 2018, 'Fall', 'Final', 'Chinese Social Studies 12', '<NAME> ', '1', 'D', 14, 'A514', '319', '2018-01-15', '11:00:00', '13:00:00', 28),
(670, 2018, 'Fall', 'Final', 'Chinese Social Studies 12', '<NAME> ', '2', 'E', 15, 'A514', '320', '2018-01-15', '11:00:00', '13:00:00', 20),
(671, 2018, 'Fall', 'Final', 'Chinese Social Studies 12', '<NAME> ', '1', 'E', 16, 'A514', '321', '2018-01-15', '11:00:00', '13:00:00', 23),
(672, 2018, 'Fall', 'Final', 'Bridging Language Arts B', '<NAME>', '1,2', 'B', 3, 'A310', '313', '2018-01-15', '14:00:00', '16:00:00', 24),
(673, 2018, 'Fall', 'Final', 'Bridging Language Arts B', '<NAME>', '1,2', 'C', 4, 'A310', '314', '2018-01-15', '14:00:00', '16:00:00', 29),
(674, 2018, 'Fall', 'Final', 'Bridging Language Arts B', '<NAME>', '1,2', 'B', 1, 'A316', '316', '2018-01-15', '14:00:00', '16:00:00', 26),
(675, 2018, 'Fall', 'Final', 'Bridging Language Arts B', '<NAME>', '1,2', 'E', 2, 'A321', '317', '2018-01-15', '14:00:00', '16:00:00', 26),
(676, 2018, 'Fall', 'Final', 'Bridging Language Arts B', '<NAME>', '1,2', 'A', 5, 'A406', '318', '2018-01-15', '14:00:00', '16:00:00', 26),
(677, 2018, 'Fall', 'Final', 'Bridging Language Arts B', '<NAME>', '1,2', 'B', 6, 'A406', '319', '2018-01-15', '14:00:00', '16:00:00', 25),
(678, 2018, 'Fall', 'Final', 'Bridging Language Arts B', '<NAME>', '1,2', 'C', 7, 'A406', '320', '2018-01-15', '14:00:00', '16:00:00', 29),
(679, 2018, 'Fall', 'Final', 'Bridging Language Arts B', '<NAME>', '1,2', 'E', 8, 'A305', '321', '2018-01-15', '14:00:00', '16:00:00', 27),
(680, 2018, 'Fall', 'Final', 'English 11', '<NAME>', '1,2', 'C', 8, 'A303', '401', '2018-01-15', '14:00:00', '16:00:00', 25),
(681, 2018, 'Fall', 'Final', 'English 11', '<NAME>', '1,2', 'D', 9, 'A303', '402', '2018-01-15', '14:00:00', '16:00:00', 25),
(682, 2018, 'Fall', 'Final', 'English 11', '<NAME>', '1,2', 'E', 14, 'A303', '403', '2018-01-15', '14:00:00', '16:00:00', 25),
(683, 2018, 'Fall', 'Final', 'English 11', '<NAME>', '1,2', 'B', 12, 'A314', '405', '2018-01-15', '14:00:00', '16:00:00', 27),
(684, 2018, 'Fall', 'Final', 'English 11', '<NAME>', '1,2', 'C', 13, 'A314', '406', '2018-01-15', '14:00:00', '16:00:00', 27),
(685, 2018, 'Fall', 'Final', 'English 11', '<NAME>', '1,2', 'E', 10, 'A314', '407', '2018-01-15', '14:00:00', '16:00:00', 22),
(686, 2018, 'Fall', 'Final', 'English 11', '<NAME>', '1,2', 'A', 6, 'A307', '408', '2018-01-15', '14:00:00', '16:00:00', 27),
(687, 2018, 'Fall', 'Final', 'English 11', 'Montoya, Oscar', '1,2', 'A', 1, 'A305', '501', '2018-01-15', '14:00:00', '16:00:00', 27),
(688, 2018, 'Fall', 'Final', 'English 11', 'Montoya, Oscar', '1,2', 'B', 2, 'A305', '502', '2018-01-15', '14:00:00', '16:00:00', 27),
(689, 2018, 'Fall', 'Final', 'English 11', 'Montoya, Oscar', '1,2', 'C', 3, 'A305', '503', '2018-01-15', '14:00:00', '16:00:00', 27),
(690, 2018, 'Fall', 'Final', 'English 11', 'Prentice, Alison', '1,2', 'B', 7, 'A408', '505', '2018-01-15', '14:00:00', '16:00:00', 25),
(691, 2018, 'Fall', 'Final', 'English 11', 'Prentice, Alison', '1,2', 'D', 4, 'A408', '506', '2018-01-15', '14:00:00', '16:00:00', 25),
(692, 2018, 'Fall', 'Final', 'English 11', '<NAME>', '1,2', 'A', 11, 'A408', '507', '2018-01-15', '14:00:00', '16:00:00', 24),
(693, 2018, 'Fall', 'Final', 'English 11', '<NAME>', '1,2', 'C', 19, 'A313', '508', '2018-01-15', '14:00:00', '16:00:00', 24),
(694, 2018, 'Fall', 'Final', 'Grammar 10 A', '<NAME>', '1,2', 'D', 4, 'A416', '303', '2018-01-15', '14:00:00', '16:00:00', 24),
(695, 2018, 'Fall', 'Final', 'Grammar 10 A', '<NAME>', '1,2', 'D', 2, 'A414', '305', '2018-01-15', '14:00:00', '16:00:00', 29),
(696, 2018, 'Fall', 'Final', 'Grammar 10 A', '<NAME>', '1,2', 'B', 3, 'A303', '306', '2018-01-15', '14:00:00', '16:00:00', 25),
(697, 2018, 'Fall', 'Final', 'Grammar 10 A', '<NAME>', '1,2', 'D', 1, 'A306', '307', '2018-01-15', '14:00:00', '16:00:00', 26),
(698, 2018, 'Fall', 'Final', 'Chemistry 11', '<NAME>', '1,2', 'B', 2, 'A119', '313', '2018-01-16', '08:00:00', '10:00:00', 25),
(699, 2018, 'Fall', 'Final', 'Chemistry 11', '<NAME>', '1,2', 'C', 3, 'A119', '314', '2018-01-16', '08:00:00', '10:00:00', 23),
(700, 2018, 'Fall', 'Final', 'Chemistry 11', '<NAME>', '1,2', 'E', 5, 'A119', '316', '2018-01-16', '08:00:00', '10:00:00', 25),
(701, 2018, 'Fall', 'Final', 'Chemistry 11', '<NAME>', '1,2', 'D', 4, 'A119', '317', '2018-01-16', '08:00:00', '10:00:00', 24),
(702, 2018, 'Fall', 'Final', 'Chemistry 12', '<NAME>', '1,2', 'B', 1, 'A112', '318', '2018-01-16', '08:00:00', '10:00:00', 23),
(703, 2018, 'Fall', 'Final', 'Chemistry 12', '<NAME>', '1,2', 'C', 2, 'A112', '319', '2018-01-16', '08:00:00', '10:00:00', 21),
(704, 2018, 'Fall', 'Final', 'Chemistry 12', '<NAME>', '1,2', 'D', 3, 'A112', '320', '2018-01-16', '08:00:00', '10:00:00', 22),
(705, 2018, 'Fall', 'Final', 'Communication Skills A', '<NAME>', '1,2', 'A', 1, 'A316', '303', '2018-01-16', '08:00:00', '10:00:00', 26),
(706, 2018, 'Fall', 'Final', 'Communication Skills A', '<NAME>', '1,2', 'A', 2, 'A410', '305', '2018-01-16', '08:00:00', '10:00:00', 29),
(707, 2018, 'Fall', 'Final', 'Communication Skills A', '<NAME>', '1,2', 'C', 4, 'A409', '306', '2018-01-16', '08:00:00', '10:00:00', 24),
(708, 2018, 'Fall', 'Final', 'Communication Skills A', '<NAME>', '1,2', 'D', 3, 'A409', '307', '2018-01-16', '08:00:00', '10:00:00', 25),
(709, 2018, 'Fall', 'Final', 'Communications 11', '<NAME>', '1,2', 'A', 6, 'A208', '401', '2018-01-16', '08:00:00', '10:00:00', 27),
(710, 2018, 'Fall', 'Final', 'Communications 11', '<NAME>', '1,2', 'A', 11, 'A311', '402', '2018-01-16', '08:00:00', '10:00:00', 26),
(711, 2018, 'Fall', 'Final', 'Communications 11', '<NAME>', '1,2', 'B', 2, 'A311', '403', '2018-01-16', '08:00:00', '10:00:00', 27),
(712, 2018, 'Fall', 'Final', 'Communications 11', '<NAME>', '1,2', 'C', 3, 'A402', '405', '2018-01-16', '08:00:00', '10:00:00', 29),
(713, 2018, 'Fall', 'Final', 'Communications 11', '<NAME>', '1,2', 'B', 7, 'A401', '406', '2018-01-16', '08:00:00', '10:00:00', 26),
(714, 2018, 'Fall', 'Final', 'Communications 11', 'Po<NAME>', '1,2', 'E', 5, 'A401', '407', '2018-01-16', '08:00:00', '10:00:00', 28),
(715, 2018, 'Fall', 'Final', 'Communications 11', 'Power, Maggie', '1,2', 'D', 4, 'A318', '408', '2018-01-16', '08:00:00', '10:00:00', 30),
(716, 2018, 'Fall', 'Final', 'Communications 11', 'Sibiya, Sizwe', '1,2', 'B', 12, 'A322', '501', '2018-01-16', '08:00:00', '10:00:00', 26),
(717, 2018, 'Fall', 'Final', 'Communications 11', 'Sibiya, Sizwe', '1,2', 'C', 13, 'A322', '502', '2018-01-16', '08:00:00', '10:00:00', 30),
(718, 2018, 'Fall', 'Final', 'Communications 11', 'Sibiya, Sizwe', '1,2', 'D', 9, 'A322', '503', '2018-01-16', '08:00:00', '10:00:00', 29),
(719, 2018, 'Fall', 'Final', 'Communications 11', 'Topinio, Jessica', '1,2', 'A', 1, 'A309', '505', '2018-01-16', '08:00:00', '10:00:00', 27),
(720, 2018, 'Fall', 'Final', 'Communications 11', '<NAME>', '1,2', 'C', 8, 'A309', '506', '2018-01-16', '08:00:00', '10:00:00', 29),
(721, 2018, 'Fall', 'Final', 'Communications 11', '<NAME>', '1,2', 'E', 10, 'A309', '507', '2018-01-16', '08:00:00', '10:00:00', 28),
(722, 2018, 'Fall', 'Final', 'History 12', '<NAME>', '1,2', 'B', 1, 'A321', '508', '2018-01-16', '08:00:00', '10:00:00', 17),
(723, 2018, 'Fall', 'Final', 'Calculus 12 / AP Calculus 12', '<NAME>', '1,2', 'B', 1, 'A423', '410', '2018-01-16', '11:00:00', '13:00:00', 24),
(724, 2018, 'Fall', 'Final', 'Foundations of Maths and Pre-calculus 10', '<NAME>', '1,2', 'A', 1, 'A416', '313', '2018-01-16', '11:00:00', '13:00:00', 29),
(725, 2018, 'Fall', 'Final', 'Foundations of Maths and Pre-calculus 10', '<NAME>', '1,2', 'C', 23, 'A419', '314', '2018-01-16', '11:00:00', '13:00:00', 24),
(726, 2018, 'Fall', 'Final', 'Foundations of Maths and Pre-calculus 10', '<NAME>', '1,2', 'D', 8, 'A419', '316', '2018-01-16', '11:00:00', '13:00:00', 29),
(727, 2018, 'Fall', 'Final', 'Foundations of Maths and Pre-calculus 10', '<NAME>', '1,2', 'E', 9, 'A407', '317', '2018-01-16', '11:00:00', '13:00:00', 25),
(728, 2018, 'Fall', 'Final', 'Foundations of Maths and Pre-calculus 10', '<NAME>', '1,2', 'B', 2, 'A417', '318', '2018-01-16', '11:00:00', '13:00:00', 29),
(729, 2018, 'Fall', 'Final', 'Foundations of Maths and Pre-calculus 10', '<NAME>', '1,2', 'C', 3, 'A417', '319', '2018-01-16', '11:00:00', '13:00:00', 26),
(730, 2018, 'Fall', 'Final', 'Foundations of Maths and Pre-calculus 10', '<NAME>', '1,2', 'A', 6, 'A419', '320', '2018-01-16', '11:00:00', '13:00:00', 27),
(731, 2018, 'Fall', 'Final', 'Foundations of Maths and Pre-calculus 10', '<NAME>', '1,2', 'B', 7, 'A419', '321', '2018-01-16', '11:00:00', '13:00:00', 27),
(732, 2018, 'Fall', 'Final', 'Foundations of Maths and Pre-calculus 10', '<NAME>', '1,2', 'E', 5, 'A419', '322', '2018-01-16', '11:00:00', '13:00:00', 26),
(733, 2018, 'Fall', 'Final', 'Pre-Calculus 11', '<NAME>', '1,2', 'A', 1, 'A413', '401', '2018-01-16', '11:00:00', '13:00:00', 24),
(734, 2018, 'Fall', 'Final', 'Pre-Calculus 11', '<NAME>', '1,2', 'B', 7, 'A416', '402', '2018-01-16', '11:00:00', '13:00:00', 25),
(735, 2018, 'Fall', 'Final', 'Pre-Calculus 11', '<NAME>', '1,2', 'D', 4, 'A413', '403', '2018-01-16', '11:00:00', '13:00:00', 25),
(736, 2018, 'Fall', 'Final', 'Pre-Calculus 11', '<NAME>', '1,2', 'E', 10, 'A413', '405', '2018-01-16', '11:00:00', '13:00:00', 22),
(737, 2018, 'Fall', 'Final', 'Pre-Calculus 11', '<NAME>', '1,2', 'E', 5, 'A416', '406', '2018-01-16', '11:00:00', '13:00:00', 23),
(738, 2018, 'Fall', 'Final', 'Pre-Calculus 11', '<NAME>', '1,2', 'A', 6, 'A320', '407', '2018-01-16', '11:00:00', '13:00:00', 25),
(739, 2018, 'Fall', 'Final', 'Pre-Calculus 11', '<NAME>', '1,2', 'C', 3, 'A403', '408', '2018-01-16', '11:00:00', '13:00:00', 15),
(740, 2018, 'Fall', 'Final', 'Pre-Calculus 11', '<NAME>', '1,2', 'D', 9, 'A403', '409', '2018-01-16', '11:00:00', '13:00:00', 26),
(741, 2018, 'Fall', 'Final', 'Pre-Calculus 12', '<NAME>', '1,2', 'D', 4, 'A423', '501', '2018-01-16', '11:00:00', '13:00:00', 25),
(742, 2018, 'Fall', 'Final', 'Pre-Calculus 12', '<NAME>', '1,2', 'A', 1, 'A418', '502', '2018-01-16', '11:00:00', '13:00:00', 27),
(743, 2018, 'Fall', 'Final', 'Pre-Calculus 12', '<NAME>', '1,2', 'B', 2, 'A418', '503', '2018-01-16', '11:00:00', '13:00:00', 26),
(744, 2018, 'Fall', 'Final', 'Pre-Calculus 12', '<NAME>', '1,2', 'C', 3, 'A418', '505', '2018-01-16', '11:00:00', '13:00:00', 27),
(745, 2018, 'Fall', 'Final', 'Pre-Calculus 12', '<NAME>', '1,2', 'E', 10, 'A418', '506', '2018-01-16', '11:00:00', '13:00:00', 24),
(746, 2018, 'Fall', 'Final', 'Pre-Calculus 12', '<NAME>', '1,2', 'C', 8, 'A421', '507', '2018-01-16', '11:00:00', '13:00:00', 28),
(747, 2018, 'Fall', 'Final', 'Pre-Calculus 12', '<NAME>', '1,2', 'A', 6, 'A421', '508', '2018-01-16', '11:00:00', '13:00:00', 29),
(748, 2018, 'Fall', 'Final', 'Pre-Calculus 12', '<NAME>', '1,2', 'B', 7, 'A421', '509', '2018-01-16', '11:00:00', '13:00:00', 26),
(749, 2018, 'Fall', 'Final', 'Pre-Calculus 12', '<NAME>', '1,2', 'D', 9, 'A421', '510', '2018-01-16', '11:00:00', '13:00:00', 24),
(750, 2018, 'Fall', 'Final', 'Pre-Calculus 12', '<NAME>', '1,2', 'E', 5, 'A421', '511', '2018-01-16', '11:00:00', '13:00:00', 26),
(751, 2018, 'Fall', 'Final', 'Calculus 12 / AP Calculus 12', '<NAME>', '1,2', 'A', 1, 'A423', '411', '2018-01-16', '11:00:00', '13:00:00', 27),
(752, 2018, 'Fall', 'Final', 'Chinese Social Studies 11: Politics', '<NAME>', '2', 'A', 1, 'A511', '501', '2018-01-16', '14:00:00', '16:00:00', 25),
(753, 2018, 'Fall', 'Final', 'Chinese Social Studies 11: Politics', '<NAME>', '1', 'A', 2, 'A511', '502', '2018-01-16', '14:00:00', '16:00:00', 25),
(754, 2018, 'Fall', 'Final', 'Chinese Social Studies 11: Politics', '<NAME>', '2', 'C', 5, 'A514', '503', '2018-01-16', '14:00:00', '16:00:00', 26),
(755, 2018, 'Fall', 'Final', 'Chinese Social Studies 11: Politics', '<NAME>', '1', 'C', 6, 'A514', '505', '2018-01-16', '14:00:00', '16:00:00', 27),
(756, 2018, 'Fall', 'Final', 'Chinese Social Studies 11: Politics', '<NAME>', '2', 'E', 9, 'A406', '506', '2018-01-16', '14:00:00', '16:00:00', 26),
(757, 2018, 'Fall', 'Final', 'Chinese Social Studies 11: Politics', '<NAME>', '2', 'B', 3, 'A516', '507', '2018-01-16', '14:00:00', '16:00:00', 24),
(758, 2018, 'Fall', 'Final', 'Chinese Social Studies 11: Politics', '<NAME>', '1', 'B', 4, 'A516', '508', '2018-01-16', '14:00:00', '16:00:00', 24),
(759, 2018, 'Fall', 'Final', 'Chinese Social Studies 11: Politics', '<NAME>', '2', 'D', 7, 'A509', '509', '2018-01-16', '14:00:00', '16:00:00', 24),
(760, 2018, 'Fall', 'Final', 'Chinese Social Studies 11: Politics', '<NAME>', '1', 'D', 8, 'A509', '510', '2018-01-16', '14:00:00', '16:00:00', 25),
(761, 2018, 'Fall', 'Final', 'Chinese Social Studies 11: Politics', '<NAME>', '1', 'E', 10, 'A406', '511', '2018-01-16', '14:00:00', '16:00:00', 26),
(762, 2018, 'Fall', 'Final', 'Bridging Language Arts A', '<NAME>', '1,2', 'B', 4, 'A307', '401', '2018-01-16', '14:00:00', '16:00:00', 26),
(763, 2018, 'Fall', 'Final', 'Bridging Language Arts A', '<NAME>', '1,2', 'E', 5, 'A308', '402', '2018-01-16', '14:00:00', '16:00:00', 24),
(764, 2018, 'Fall', 'Final', 'Bridging Language Arts A', '<NAME>', '1,2', 'A', 3, 'A402', '403', '2018-01-16', '14:00:00', '16:00:00', 24),
(765, 2018, 'Fall', 'Final', 'Bridging Language Arts A', '<NAME>', '1,2', 'C', 1, 'A311', '405', '2018-01-16', '14:00:00', '16:00:00', 27),
(766, 2018, 'Fall', 'Final', 'Bridging Language Arts A', '<NAME>', '1,2', 'D', 2, 'A402', '406', '2018-01-16', '14:00:00', '16:00:00', 29),
(767, 2018, 'Fall', 'Final', 'Bridging Language Arts A', '<NAME>', '1,2', 'C', 6, 'A411', '407', '2018-01-16', '14:00:00', '16:00:00', 28),
(768, 2018, 'Fall', 'Final', 'Bridging Language Arts A', '<NAME>', '1,2', 'D', 7, 'A406', '408', '2018-01-16', '14:00:00', '16:00:00', 29),
(769, 2018, 'Fall', 'Final', 'Bridging Language Arts A', '<NAME>', '1,2', 'E', 8, 'A405', '409', '2018-01-16', '14:00:00', '16:00:00', 25),
(770, 2018, 'Fall', 'Final', 'Geography 12', '<NAME>', '1,2', 'E', 1, 'A319', '410', '2018-01-16', '14:00:00', '16:00:00', 19),
(771, 2018, 'Fall', 'Final', 'Mandarin Chinese 12', '<NAME>', '1', 'A', 11, 'A507', '313', '2018-01-17', '08:00:00', '10:00:00', 26),
(772, 2018, 'Fall', 'Final', 'Mandarin Chinese 12', '<NAME>', '1', 'C', 5, 'A507', '314', '2018-01-17', '08:00:00', '10:00:00', 25),
(773, 2018, 'Fall', 'Final', 'Mandarin Chinese 12', '<NAME>', '1', 'D', 13, 'A507', '316', '2018-01-17', '08:00:00', '10:00:00', 27),
(774, 2018, 'Fall', 'Final', 'Mandarin Chinese 12', '<NAME>', '2', 'D', 14, 'A507', '317', '2018-01-17', '08:00:00', '10:00:00', 30),
(775, 2018, 'Fall', 'Final', 'Mandarin Chinese 12', '<NAME>', '2', 'E', 16, 'A507', '318', '2018-01-17', '08:00:00', '10:00:00', 23),
(776, 2018, 'Fall', 'Final', 'Mandarin Chinese 12', 'Li<NAME>', '1', 'A', 1, 'A506', '319', '2018-01-17', '08:00:00', '10:00:00', 27),
(777, 2018, 'Fall', 'Final', 'Mandarin Chinese 12', 'Li<NAME>', '2', 'A', 2, 'A506', '320', '2018-01-17', '08:00:00', '10:00:00', 27),
(778, 2018, 'Fall', 'Final', 'Mandarin Chinese 12', 'Li<NAME>', '2', 'C', 6, 'A506', '321', '2018-01-17', '08:00:00', '10:00:00', 26),
(779, 2018, 'Fall', 'Final', 'Mandarin Chinese 12', 'Li<NAME>', '1', 'E', 9, 'A506', '413', '2018-01-17', '08:00:00', '10:00:00', 22),
(780, 2018, 'Fall', 'Final', 'Mandarin Chinese 12', '<NAME>', '1', 'B', 3, 'A506', '414', '2018-01-17', '08:00:00', '10:00:00', 29),
(781, 2018, 'Fall', 'Final', 'Mandarin Chinese 12', '<NAME>', '2', 'B', 4, 'A506', '416', '2018-01-17', '08:00:00', '10:00:00', 28),
(782, 2018, 'Fall', 'Final', 'Mandarin Chinese 12', '<NAME>', '1', 'D', 7, 'A506', '417', '2018-01-17', '08:00:00', '10:00:00', 30),
(783, 2018, 'Fall', 'Final', 'Mandarin Chinese 12', '<NAME>', '2', 'D', 8, 'A506', '418', '2018-01-17', '08:00:00', '10:00:00', 28),
(784, 2018, 'Fall', 'Final', 'Mandarin Chinese 12', '<NAME>', '2', 'E', 10, 'A506', '419', '2018-01-17', '08:00:00', '10:00:00', 22),
(785, 2018, 'Fall', 'Final', 'Mandarin Chinese 12', '<NAME>', '2', 'A', 12, 'A507', '420', '2018-01-17', '08:00:00', '10:00:00', 25),
(786, 2018, 'Fall', 'Final', 'Mandarin Chinese 12', '<NAME>', '1', 'E', 15, 'A507', '421', '2018-01-17', '08:00:00', '10:00:00', 21),
(787, 2018, 'Fall', 'Final', 'Chinese Social Studies 10', '<NAME> ', '2', 'A', 11, 'A509', '401', '2018-01-17', '08:00:00', '10:00:00', 27),
(788, 2018, 'Fall', 'Final', 'Chinese Social Studies 10', '<NAME> ', '1', 'A', 12, 'A509', '402', '2018-01-17', '08:00:00', '10:00:00', 28),
(789, 2018, 'Fall', 'Final', 'Chinese Social Studies 10', '<NAME> ', '2', 'C', 15, 'A509', '403', '2018-01-17', '08:00:00', '10:00:00', 29),
(790, 2018, 'Fall', 'Final', 'Chinese Social Studies 10', '<NAME> ', '1', 'C', 16, 'A509', '405', '2018-01-17', '08:00:00', '10:00:00', 28),
(791, 2018, 'Fall', 'Final', 'Chinese Social Studies 10', '<NAME> ', '2', 'E', 19, 'A509', '406', '2018-01-17', '08:00:00', '10:00:00', 26),
(792, 2018, 'Fall', 'Final', 'Chinese Social Studies 10', 'Hu, Wei ', '2', 'A', 1, 'A508', '407', '2018-01-17', '08:00:00', '10:00:00', 27),
(793, 2018, 'Fall', 'Final', 'Chinese Social Studies 10', 'Hu, Wei ', '1', 'A', 2, 'A508', '408', '2018-01-17', '08:00:00', '10:00:00', 27),
(794, 2018, 'Fall', 'Final', 'Chinese Social Studies 10', 'Hu, Wei ', '2', 'B', 3, 'A508', '409', '2018-01-17', '08:00:00', '10:00:00', 30),
(795, 2018, 'Fall', 'Final', 'Chinese Social Studies 10', 'Hu, Wei ', '1', 'B', 4, 'A508', '410', '2018-01-17', '08:00:00', '10:00:00', 29),
(796, 2018, 'Fall', 'Final', 'Chinese Social Studies 10', 'Hu, Wei ', '1', 'D', 8, 'A508', '411', '2018-01-17', '08:00:00', '10:00:00', 29),
(797, 2018, 'Fall', 'Final', 'Chinese Social Studies 10', '<NAME> ', '2', 'A', 17, 'A319', '501', '2018-01-17', '08:00:00', '10:00:00', 28),
(798, 2018, 'Fall', 'Final', 'Chinese Social Studies 10', '<NAME> ', '1', 'A', 18, 'A319', '502', '2018-01-17', '08:00:00', '10:00:00', 28),
(799, 2018, 'Fall', 'Final', 'Chinese Social Studies 10', '<NAME> ', '2', 'C', 5, 'A508', '503', '2018-01-17', '08:00:00', '10:00:00', 28),
(800, 2018, 'Fall', 'Final', 'Chinese Social Studies 10', '<NAME> ', '1', 'C', 6, 'A508', '505', '2018-01-17', '08:00:00', '10:00:00', 29),
(801, 2018, 'Fall', 'Final', 'Chinese Social Studies 10', '<NAME> ', '1', 'E', 20, 'A509', '506', '2018-01-17', '08:00:00', '10:00:00', 27),
(802, 2018, 'Fall', 'Final', 'Chinese Social Studies 10', '<NAME> ', '2', 'B', 13, 'A509', '507', '2018-01-17', '08:00:00', '10:00:00', 29),
(803, 2018, 'Fall', 'Final', 'Chinese Social Studies 10', '<NAME> ', '1', 'B', 14, 'A509', '508', '2018-01-17', '08:00:00', '10:00:00', 28),
(804, 2018, 'Fall', 'Final', 'Chinese Social Studies 10', '<NAME> ', '2', 'D', 7, 'A508', '509', '2018-01-17', '08:00:00', '10:00:00', 30),
(805, 2018, 'Fall', 'Final', 'Chinese Social Studies 10', '<NAME> ', '2', 'E', 9, 'A508', '510', '2018-01-17', '08:00:00', '10:00:00', 25),
(806, 2018, 'Fall', 'Final', 'Chinese Social Studies 10', '<NAME> ', '1', 'E', 10, 'A508', '511', '2018-01-17', '08:00:00', '10:00:00', 25),
(807, 2018, 'Fall', 'Final', 'Science 10', 'Awofolu, Patience', '1,2', 'A', 1, 'A122', '401', '2018-01-17', '11:00:00', '13:00:00', 24),
(808, 2018, 'Fall', 'Final', 'Science 10', 'Awofolu, Patience', '1,2', 'B', 2, 'A122', '402', '2018-01-17', '11:00:00', '13:00:00', 25),
(809, 2018, 'Fall', 'Final', 'Science 10', '<NAME>', '1,2', 'C', 3, 'A308', '403', '2018-01-17', '11:00:00', '13:00:00', 24),
(810, 2018, 'Fall', 'Final', 'Science 10', '<NAME>', '1,2', 'D', 4, 'A115', '405', '2018-01-17', '11:00:00', '13:00:00', 27),
(811, 2018, 'Fall', 'Final', 'Science 10', '<NAME>', '1,2', 'E', 5, 'A115', '406', '2018-01-17', '11:00:00', '13:00:00', 26),
(812, 2018, 'Fall', 'Final', 'Biology 11', 'Awofolu, Patience', '1,2', 'D', 1, 'A122', '409', '2018-01-17', '11:00:00', '13:00:00', 19),
(813, 2018, 'Fall', 'Final', 'Physics 11', '<NAME>', '1,2', 'A', 1, 'A407', '303', '2018-01-17', '11:00:00', '13:00:00', 26),
(814, 2018, 'Fall', 'Final', 'Physics 11', '<NAME>', '1,2', 'C', 3, 'A407', '305', '2018-01-17', '11:00:00', '13:00:00', 27),
(815, 2018, 'Fall', 'Final', 'Physics 11', '<NAME>', '1,2', 'D', 4, 'A407', '306', '2018-01-17', '11:00:00', '13:00:00', 27),
(816, 2018, 'Fall', 'Final', 'Physics 11', '<NAME>', '1,2', 'E', 5, 'A403', '307', '2018-01-17', '11:00:00', '13:00:00', 23),
(817, 2018, 'Fall', 'Final', 'Physics 11', '<NAME>', '1,2', 'B', 2, 'A405', '308', '2018-01-17', '11:00:00', '13:00:00', 28),
(818, 2018, 'Fall', 'Final', 'Science & Technology 11', '<NAME>', '1,2', 'D', 1, 'A111', '410', '2018-01-17', '11:00:00', '13:00:00', 23),
(819, 2018, 'Fall', 'Final', 'Science & Technology 11', '<NAME>', '1,2', 'E', 2, 'A111', '411', '2018-01-17', '11:00:00', '13:00:00', 18),
(820, 2018, 'Fall', 'Final', 'Psychology 12', '<NAME>', '1,2', 'C', 1, 'A408', '310', '2018-01-17', '11:00:00', '13:00:00', 15),
(821, 2018, 'Fall', 'Final', 'Psychology 12', '<NAME>', '1,2', 'E', 2, 'A408', '311', '2018-01-17', '11:00:00', '13:00:00', 15),
(822, 2018, 'Fall', 'Final', 'AP Computer Science 12', '<NAME>', '1,2', 'E', 1, 'A214', '510', '2018-01-17', '11:00:00', '13:00:00', 8),
(823, 2018, 'Fall', 'Final', 'Introduction to Maths and Science', '<NAME>', '1,2', 'A', 1, 'A414', '501', '2018-01-17', '11:00:00', '13:00:00', 23),
(824, 2018, 'Fall', 'Final', 'Introduction to Maths and Science', '<NAME>', '1,2', 'C', 3, 'A414', '502', '2018-01-17', '11:00:00', '13:00:00', 29),
(825, 2018, 'Fall', 'Final', 'Introduction to Maths and Science', '<NAME>', '1,2', 'E', 8, 'A414', '503', '2018-01-17', '11:00:00', '13:00:00', 24),
(826, 2018, 'Fall', 'Final', 'Introduction to Maths and Science', '<NAME>', '1,2', 'D', 4, 'A411', '505', '2018-01-17', '11:00:00', '13:00:00', 29),
(827, 2018, 'Fall', 'Final', 'Introduction to Maths and Science', '<NAME>', '1,2', 'E', 5, 'A411', '506', '2018-01-17', '11:00:00', '13:00:00', 24),
(828, 2018, 'Fall', 'Final', 'Introduction to Maths and Science', '<NAME>', '1,2', 'A', 6, 'A214', '507', '2018-01-17', '11:00:00', '13:00:00', 23),
(829, 2018, 'Fall', 'Final', 'Introduction to Maths and Science', '<NAME>', '1,2', 'B', 7, 'A214', '508', '2018-01-17', '11:00:00', '13:00:00', 25),
(830, 2018, 'Fall', 'Final', 'Introduction to Maths and Science', '<NAME>', '1,2', 'B', 2, 'A115', '509', '2018-01-17', '11:00:00', '13:00:00', 26),
(831, 2018, 'Fall', 'Final', 'Social Studies 10', '<NAME>', '1,2', 'B', 2, 'A320', '303', '2018-01-17', '14:00:00', '16:00:00', 25),
(832, 2018, 'Fall', 'Final', 'Social Studies 10', '<NAME>', '1,2', 'C', 3, 'A320', '305', '2018-01-17', '14:00:00', '16:00:00', 25),
(833, 2018, 'Fall', 'Final', 'Social Studies 10', '<NAME>', '1,2', 'D', 9, 'A320', '306', '2018-01-17', '14:00:00', '16:00:00', 27),
(834, 2018, 'Fall', 'Final', 'Social Studies 10', '<NAME>', '1,2', 'E', 5, 'A320', '307', '2018-01-17', '14:00:00', '16:00:00', 25),
(835, 2018, 'Fall', 'Final', 'Social Studies 10', '<NAME>', '1,2', 'D', 4, 'A314', '308', '2018-01-17', '14:00:00', '16:00:00', 28),
(836, 2018, 'Fall', 'Final', 'Social Studies 10', '<NAME>', '1,2', 'A', 6, 'A303', '309', '2018-01-17', '14:00:00', '16:00:00', 23),
(837, 2018, 'Fall', 'Final', 'Social Studies 10', '<NAME>', '1,2', 'B', 7, 'A319', '310', '2018-01-17', '14:00:00', '16:00:00', 26),
(838, 2018, 'Fall', 'Final', 'Social Studies 10', '<NAME>', '1,2', 'C', 8, 'A319', '311', '2018-01-17', '14:00:00', '16:00:00', 29),
(839, 2018, 'Fall', 'Final', 'Social Studies 10', '<NAME>', '1,2', 'D', 14, 'A319', '401', '2018-01-17', '14:00:00', '16:00:00', 27),
(840, 2018, 'Fall', 'Final', 'Social Studies 10', '<NAME>', '1,2', 'A', 1, 'A317', '402', '2018-01-17', '14:00:00', '16:00:00', 24),
(841, 2018, 'Fall', 'Final', 'Social Studies 10', '<NAME>', '1,2', 'E', 13, 'A317', '403', '2018-01-17', '14:00:00', '16:00:00', 25),
(842, 2018, 'Fall', 'Final', 'Social Studies 10', '<NAME>', '1,2', 'E', 10, 'A316', '405', '2018-01-17', '14:00:00', '16:00:00', 25),
(843, 2018, 'Fall', 'Final', 'Social Studies 11', '<NAME>', '1,2', 'A', 1, 'A219', '406', '2018-01-17', '14:00:00', '16:00:00', 22),
(844, 2018, 'Fall', 'Final', 'Social Studies 11', '<NAME>', '1,2', 'E', 6, 'A219', '407', '2018-01-17', '14:00:00', '16:00:00', 20),
(845, 2018, 'Fall', 'Final', 'Social Studies 11', '<NAME>', '1,2', 'C', 3, 'A316', '408', '2018-01-17', '14:00:00', '16:00:00', 21),
(846, 2018, 'Fall', 'Final', 'Social Studies 11', '<NAME>', '1,2', 'D', 4, 'A316', '409', '2018-01-17', '14:00:00', '16:00:00', 24),
(847, 2018, 'Fall', 'Final', 'Comparative Civilizations 12', 'Worrall, Aileen', '1,2', 'A', 1, 'A313', '410', '2018-01-17', '14:00:00', '16:00:00', 29),
(848, 2018, 'Fall', 'Final', 'Comparative Civilizations 12', 'Worrall, Aileen', '1,2', 'D', 2, 'A313', '411', '2018-01-17', '14:00:00', '16:00:00', 23),
(849, 2018, 'Fall', 'Final', 'Mandarin Chinese 11', '<NAME>', '1', 'B', 11, 'A505', '401', '2018-01-18', '08:00:00', '10:00:00', 29),
(850, 2018, 'Fall', 'Final', 'Mandarin Chinese 11', '<NAME>', '1', 'C', 13, 'A505', '402', '2018-01-18', '08:00:00', '10:00:00', 22),
(851, 2018, 'Fall', 'Final', 'Mandarin Chinese 11', '<NAME>', '2', 'C', 14, 'A505', '403', '2018-01-18', '08:00:00', '10:00:00', 29),
(852, 2018, 'Fall', 'Final', 'Mandarin Chinese 11', '<NAME>', '1', 'E', 17, 'A505', '405', '2018-01-18', '08:00:00', '10:00:00', 26),
(853, 2018, 'Fall', 'Final', 'Mandarin Chinese 11', '<NAME>', '2', 'E', 18, 'A505', '406', '2018-01-18', '08:00:00', '10:00:00', 23),
(854, 2018, 'Fall', 'Final', 'Mandarin Chinese 11', '<NAME>', '1', 'A', 1, 'A503', '407', '2018-01-18', '08:00:00', '10:00:00', 26),
(855, 2018, 'Fall', 'Final', 'Mandarin Chinese 11', '<NAME>', '2', 'A', 2, 'A503', '408', '2018-01-18', '08:00:00', '10:00:00', 28),
(856, 2018, 'Fall', 'Final', 'Mandarin Chinese 11', '<NAME>', '1', 'C', 5, 'A503', '409', '2018-01-18', '08:00:00', '10:00:00', 30),
(857, 2018, 'Fall', 'Final', 'Mandarin Chinese 11', '<NAME>', '2', 'C', 6, 'A503', '410', '2018-01-18', '08:00:00', '10:00:00', 29),
(858, 2018, 'Fall', 'Final', 'Mandarin Chinese 11', '<NAME>', '1', 'E', 9, 'A503', '501', '2018-01-18', '08:00:00', '10:00:00', 27),
(859, 2018, 'Fall', 'Final', 'Mandarin Chinese 11', '<NAME>', '1', 'B', 3, 'A503', '502', '2018-01-18', '08:00:00', '10:00:00', 28),
(860, 2018, 'Fall', 'Final', 'Mandarin Chinese 11', '<NAME>', '2', 'B', 4, 'A503', '503', '2018-01-18', '08:00:00', '10:00:00', 25),
(861, 2018, 'Fall', 'Final', 'Mandarin Chinese 11', '<NAME>', '1', 'D', 7, 'A503', '505', '2018-01-18', '08:00:00', '10:00:00', 26),
(862, 2018, 'Fall', 'Final', 'Mandarin Chinese 11', '<NAME>', '2', 'D', 8, 'A503', '506', '2018-01-18', '08:00:00', '10:00:00', 27),
(863, 2018, 'Fall', 'Final', 'Mandarin Chinese 11', '<NAME>', '2', 'E', 10, 'A503', '507', '2018-01-18', '08:00:00', '10:00:00', 26),
(864, 2018, 'Fall', 'Final', 'Mandarin Chinese 11', '<NAME>', '2', 'B', 12, 'A505', '508', '2018-01-18', '08:00:00', '10:00:00', 28),
(865, 2018, 'Fall', 'Final', 'Mandarin Chinese 11', '<NAME>', '1', 'D', 15, 'A505', '509', '2018-01-18', '08:00:00', '10:00:00', 26),
(866, 2018, 'Fall', 'Final', 'Mandarin Chinese 11', '<NAME>', '2', 'D', 16, 'A505', '510', '2018-01-18', '08:00:00', '10:00:00', 26),
(867, 2018, 'Fall', 'Final', 'Physics 12', 'Zhao, Le', '1,2', 'A', 1, 'A405', '303', '2018-01-18', '08:00:00', '10:00:00', 29),
(868, 2018, 'Fall', 'Final', 'Physics 12', 'Zhao, Le', '1,2', 'C', 2, 'A405', '305', '2018-01-18', '08:00:00', '10:00:00', 20),
(869, 2018, 'Fall', 'Final', 'Physics 12', '<NAME>', '1,2', 'D', 3, 'A405', '306', '2018-01-18', '08:00:00', '10:00:00', 16),
(870, 2018, 'Fall', 'Final', 'Chinese Social Studies 11', '<NAME>', '2', 'B', 11, 'A511', '401', '2018-01-18', '11:00:00', '13:00:00', 28),
(871, 2018, 'Fall', 'Final', 'Chinese Social Studies 11', '<NAME>', '2', 'C', 13, 'A511', '402', '2018-01-18', '11:00:00', '13:00:00', 29),
(872, 2018, 'Fall', 'Final', 'Chinese Social Studies 11', '<NAME>', '1', 'C', 14, 'A511', '403', '2018-01-18', '11:00:00', '13:00:00', 29),
(873, 2018, 'Fall', 'Final', 'Chinese Social Studies 11', '<NAME>', '2', 'E', 17, 'A511', '405', '2018-01-18', '11:00:00', '13:00:00', 27),
(874, 2018, 'Fall', 'Final', 'Chinese Social Studies 11', '<NAME>', '1', 'E', 18, 'A511', '406', '2018-01-18', '11:00:00', '13:00:00', 23),
(875, 2018, 'Fall', 'Final', 'Chinese Social Studies 11', '<NAME>', '2', 'A', 1, 'A510', '407', '2018-01-18', '11:00:00', '13:00:00', 26),
(876, 2018, 'Fall', 'Final', 'Chinese Social Studies 11', '<NAME>', '1', 'A', 2, 'A510', '408', '2018-01-18', '11:00:00', '13:00:00', 27),
(877, 2018, 'Fall', 'Final', 'Chinese Social Studies 11', '<NAME>', '2', 'C', 5, 'A510', '409', '2018-01-18', '11:00:00', '13:00:00', 28),
(878, 2018, 'Fall', 'Final', 'Chinese Social Studies 11', '<NAME>', '1', 'C', 6, 'A510', '410', '2018-01-18', '11:00:00', '13:00:00', 30),
(879, 2018, 'Fall', 'Final', 'Chinese Social Studies 11', '<NAME>', '1', 'E', 10, 'A510', '501', '2018-01-18', '11:00:00', '13:00:00', 27),
(880, 2018, 'Fall', 'Final', 'Chinese Social Studies 11', '<NAME>', '1', 'B', 12, 'A511', '502', '2018-01-18', '11:00:00', '13:00:00', 28),
(881, 2018, 'Fall', 'Final', 'Chinese Social Studies 11', '<NAME>', '2', 'D', 15, 'A511', '503', '2018-01-18', '11:00:00', '13:00:00', 25),
(882, 2018, 'Fall', 'Final', 'Chinese Social Studies 11', '<NAME>', '1', 'D', 16, 'A511', '505', '2018-01-18', '11:00:00', '13:00:00', 26),
(883, 2018, 'Fall', 'Final', 'Chinese Social Studies 11', '<NAME>', '2', 'B', 3, 'A510', '506', '2018-01-18', '11:00:00', '13:00:00', 29),
(884, 2018, 'Fall', 'Final', 'Chinese Social Studies 11', '<NAME>', '1', 'B', 4, 'A510', '507', '2018-01-18', '11:00:00', '13:00:00', 26),
(885, 2018, 'Fall', 'Final', 'Chinese Social Studies 11', '<NAME>', '2', 'D', 7, 'A510', '508', '2018-01-18', '11:00:00', '13:00:00', 26),
(886, 2018, 'Fall', 'Final', 'Chinese Social Studies 11', '<NAME>', '1', 'D', 8, 'A510', '509', '2018-01-18', '11:00:00', '13:00:00', 28),
(887, 2018, 'Fall', 'Final', 'Chinese Social Studies 11', '<NAME>', '2', 'E', 9, 'A510', '510', '2018-01-18', '11:00:00', '13:00:00', 26),
(888, 2018, 'Fall', 'Final', 'Economics 12', '<NAME>', '1,2', 'E', 4, 'A208', '303', '2018-01-18', '11:00:00', '13:00:00', 29),
(889, 2018, 'Fall', 'Final', 'Economics 12', '<NAME>', '1,2', 'A', 1, 'A417', '305', '2018-01-18', '11:00:00', '13:00:00', 30),
(890, 2018, 'Fall', 'Final', 'Economics 12', '<NAME>', '1,2', 'B', 2, 'A410', '306', '2018-01-18', '11:00:00', '13:00:00', 29),
(891, 2018, 'Fall', 'Final', 'Economics 12', '<NAME>', '1,2', 'C', 3, 'A410', '307', '2018-01-18', '11:00:00', '13:00:00', 30),
(892, 2018, 'Fall', 'Final', 'Biology 12', '<NAME>', '1,2', 'A', 1, 'A111', '207', '2018-01-18', '14:00:00', '16:00:00', 15),
(893, 2018, 'Fall', 'Final', 'Biology 12', '<NAME>', '1,2', 'B', 2, 'A111', '208', '2018-01-18', '14:00:00', '16:00:00', 18),
(894, 2018, 'Fall', 'Final', 'AP Calculus 12', '<NAME>', '1,2', 'B', 1, 'A423', '208', '2018-01-19', '08:00:00', '10:00:00', 8),
(895, 2018, 'Fall', 'Final', 'Conflict Exams', 'N/A', '', '', 0, '', '207', '2018-01-19', '08:00:00', '10:00:00', 0),
(896, 2018, 'Spring', 'Mid-term', 'English 10', '<NAME>', '1,2', 'B', 7, 'A314', '308', '2018-04-17', '08:00:00', '10:00:00', -1),
(897, 2018, 'Spring', 'Mid-term', 'English 10', '<NAME>', '1,2', 'C', 3, 'A314', '306', '2018-04-17', '08:00:00', '10:00:00', -1),
(898, 2018, 'Spring', 'Mid-term', 'English 10', '<NAME>', '1,2', 'E', 5, 'A314', '307', '2018-04-17', '08:00:00', '10:00:00', -1),
(899, 2018, 'Spring', 'Mid-term', 'English 10', '<NAME>', '1,2', 'A', 11, 'A401', '309', '2018-04-17', '08:00:00', '10:00:00', -1),
(900, 2018, 'Spring', 'Mid-term', 'English 10', '<NAME>', '1,2', 'B', 12, 'A401', '310', '2018-04-17', '08:00:00', '10:00:00', -1),
(901, 2018, 'Spring', 'Mid-term', 'English 10', 'Power, Maggie', '1,2', 'A', 1, 'A318', '311', '2018-04-17', '08:00:00', '10:00:00', -1),
(902, 2018, 'Spring', 'Mid-term', 'English 10', 'Power, Maggie', '1,2', 'B', 2, 'A318', '313', '2018-04-17', '08:00:00', '10:00:00', -1),
(903, 2018, 'Spring', 'Mid-term', 'English 10', 'Power, Maggie', '1,2', 'C', 13, 'A318', '314', '2018-04-17', '08:00:00', '10:00:00', -1),
(904, 2018, 'Spring', 'Mid-term', 'English 10', 'Sibiya, Sizwe', '1,2', 'C', 8, 'A322', '316', '2018-04-17', '08:00:00', '10:00:00', -1),
(905, 2018, 'Spring', 'Mid-term', 'English 10', 'Sibiya, Sizwe', '1,2', 'D', 9, 'A322', '317', '2018-04-17', '08:00:00', '10:00:00', -1),
(906, 2018, 'Spring', 'Mid-term', 'English 10', 'Topinio, Jessica', '1,2', 'A', 6, 'A309', '319', '2018-04-17', '08:00:00', '10:00:00', -1),
(907, 2018, 'Spring', 'Mid-term', 'English 10', 'Topinio, Jessica', '1,2', 'D', 4, 'A309', '318', '2018-04-17', '08:00:00', '10:00:00', -1),
(908, 2018, 'Spring', 'Mid-term', 'English 10', 'Topinio, Jessica', '1,2', 'E', 10, 'A309', '320', '2018-04-17', '08:00:00', '10:00:00', -1),
(909, 2018, 'Spring', 'Mid-term', 'Foundations Language Arts A', '<NAME>', '1,2', 'C', 5, 'A402', '303', '2018-04-17', '08:00:00', '10:00:00', -1),
(910, 2018, 'Spring', 'Mid-term', 'Foundations Language Arts A', '<NAME>', '1,2', 'A', 6, 'A403', '305', '2018-04-17', '08:00:00', '10:00:00', -1),
(911, 2018, 'Spring', 'Mid-term', 'Bridging Language Arts B', '<NAME>', '1,2', 'C', 13, 'A303', '306', '2018-04-18', '08:00:00', '10:00:00', -1),
(912, 2018, 'Spring', 'Mid-term', 'Bridging Language Arts B', '<NAME>', '1,2', 'B', 12, 'A307', '307', '2018-04-18', '08:00:00', '10:00:00', -1),
(913, 2018, 'Spring', 'Mid-term', 'Bridging Language Arts B', '<NAME>', '1,2', 'D', 14, 'A308', '308', '2018-04-18', '08:00:00', '10:00:00', -1),
(914, 2018, 'Spring', 'Mid-term', 'Bridging Language Arts B', '<NAME>', '1,2', 'E', 15, 'A308', '309', '2018-04-18', '08:00:00', '10:00:00', -1),
(915, 2018, 'Spring', 'Mid-term', 'Bridging Language Arts B', '<NAME>', '1,2', 'A', 11, 'A306', '310', '2018-04-18', '08:00:00', '10:00:00', -1),
(916, 2018, 'Spring', 'Mid-term', 'Communications 12', '<NAME>', '1,2', 'A', 20, 'A303', '402', '2018-04-18', '08:00:00', '10:00:00', -1),
(917, 2018, 'Spring', 'Mid-term', 'Communications 12', '<NAME>', '1,2', 'E', 19, 'A303', '401', '2018-04-18', '08:00:00', '10:00:00', -1),
(918, 2018, 'Spring', 'Mid-term', 'Communications 12', '<NAME>', '1,2', 'A', 6, 'A311', '406', '2018-04-18', '08:00:00', '10:00:00', -1),
(919, 2018, 'Spring', 'Mid-term', 'Communications 12', '<NAME>', '1,2', 'B', 7, 'A311', '407', '2018-04-18', '08:00:00', '10:00:00', -1),
(920, 2018, 'Spring', 'Mid-term', 'Communications 12', '<NAME>', '1,2', 'C', 3, 'A311', '403', '2018-04-18', '08:00:00', '10:00:00', -1),
(921, 2018, 'Spring', 'Mid-term', 'Communications 12', '<NAME>', '1,2', 'D', 4, 'A311', '405', '2018-04-18', '08:00:00', '10:00:00', -1),
(922, 2018, 'Spring', 'Mid-term', 'Communications 12', '<NAME>', '1,2', 'D', 14, 'A314', '408', '2018-04-18', '08:00:00', '10:00:00', -1),
(923, 2018, 'Spring', 'Mid-term', 'Communications 12', '<NAME>', '1,2', 'A', 11, 'A307', '409', '2018-04-18', '08:00:00', '10:00:00', -1),
(924, 2018, 'Spring', 'Mid-term', 'Communications 12', '<NAME>', '1,2', 'D', 18, 'A307', '502', '2018-04-18', '08:00:00', '10:00:00', -1),
(925, 2018, 'Spring', 'Mid-term', 'Communications 12', '<NAME>', '1,2', 'E', 15, 'A307', '501', '2018-04-18', '08:00:00', '10:00:00', -1),
(926, 2018, 'Spring', 'Mid-term', 'Communications 12', 'Montoya, Oscar', '1,2', 'A', 1, 'A305', '503', '2018-04-18', '08:00:00', '10:00:00', -1),
(927, 2018, 'Spring', 'Mid-term', 'Communications 12', 'Montoya, Oscar', '1,2', 'B', 2, 'A305', '505', '2018-04-18', '08:00:00', '10:00:00', -1),
(928, 2018, 'Spring', 'Mid-term', 'Communications 12', 'Montoya, Oscar', '1,2', 'C', 13, 'A305', '506', '2018-04-18', '08:00:00', '10:00:00', -1),
(929, 2018, 'Spring', 'Mid-term', 'Communications 12', 'Prentice, Alison', '1,2', 'C', 8, 'A408', '508', '2018-04-18', '08:00:00', '10:00:00', -1),
(930, 2018, 'Spring', 'Mid-term', 'Communications 12', 'Prentice, Alison', '1,2', 'D', 9, 'A408', '509', '2018-04-18', '08:00:00', '10:00:00', -1),
(931, 2018, 'Spring', 'Mid-term', 'Communications 12', '<NAME>', '1,2', 'E', 5, 'A408', '507', '2018-04-18', '08:00:00', '10:00:00', -1),
(932, 2018, 'Spring', 'Mid-term', 'Grammar 10 B', '<NAME>', '1,2', 'D', 6, 'A402', '303', '2018-04-18', '08:00:00', '10:00:00', -1),
(933, 2018, 'Spring', 'Mid-term', 'Grammar 10 B', '<NAME>', '1,2', 'B', 5, 'A403', '305', '2018-04-18', '08:00:00', '10:00:00', -1),
(934, 2018, 'Spring', 'Mid-term', 'History 12', '<NAME>', '1,2', 'C', 2, 'A317', '311', '2018-04-18', '08:00:00', '10:00:00', -1),
(935, 2018, 'Spring', 'Mid-term', 'Physics 12', 'Zhao, Le', '1,2', 'C', 5, 'A405', '510', '2018-04-18', '08:00:00', '10:00:00', -1),
(936, 2018, 'Spring', 'Mid-term', 'Physics 12', 'Zhao, Le', '1,2', 'E', 6, 'A405', '511', '2018-04-18', '08:00:00', '10:00:00', -1),
(937, 2018, 'Spring', 'Mid-term', 'Foundations of Maths and Pre-calculus 10', '<NAME>', '1,2', 'A', 10, 'A414', '303', '2018-04-19', '08:00:00', '10:00:00', -1),
(938, 2018, 'Spring', 'Mid-term', 'Foundations of Maths and Pre-calculus 10', '<NAME>', '1,2', 'B', 11, 'A414', '305', '2018-04-19', '08:00:00', '10:00:00', -1),
(939, 2018, 'Spring', 'Mid-term', 'Foundations of Maths and Pre-calculus 10', '<NAME>', '1,2', 'C', 12, 'A414', '306', '2018-04-19', '08:00:00', '10:00:00', -1),
(940, 2018, 'Spring', 'Mid-term', 'Foundations of Maths and Pre-calculus 10', '<NAME>', '1,2', 'D', 18, 'A414', '307', '2018-04-19', '08:00:00', '10:00:00', -1),
(941, 2018, 'Spring', 'Mid-term', 'Foundations of Maths and Pre-calculus 10', '<NAME>', '1,2', 'A', 15, 'A406', '308', '2018-04-19', '08:00:00', '10:00:00', -1),
(942, 2018, 'Spring', 'Mid-term', 'Foundations of Maths and Pre-calculus 10', '<NAME>', '1,2', 'B', 28, 'A406', '309', '2018-04-19', '08:00:00', '10:00:00', -1),
(943, 2018, 'Spring', 'Mid-term', 'Foundations of Maths and Pre-calculus 10', '<NAME>', '1,2', 'B', 21, 'A409', '310', '2018-04-19', '08:00:00', '10:00:00', -1),
(944, 2018, 'Spring', 'Mid-term', 'Foundations of Maths and Pre-calculus 10', '<NAME>', '1,2', 'A', 26, 'A407', '313', '2018-04-19', '08:00:00', '10:00:00', -1),
(945, 2018, 'Spring', 'Mid-term', 'Foundations of Maths and Pre-calculus 10', '<NAME>', '1,2', 'E', 19, 'A406', '311', '2018-04-19', '08:00:00', '10:00:00', -1),
(946, 2018, 'Spring', 'Mid-term', 'Foundations of Maths and Pre-calculus 10', '<NAME>', '1,2', 'B', 16, 'A407', '314', '2018-04-19', '08:00:00', '10:00:00', -1),
(947, 2018, 'Spring', 'Mid-term', 'Foundations of Maths and Pre-calculus 10', '<NAME>', '1,2', 'C', 17, 'A407', '316', '2018-04-19', '08:00:00', '10:00:00', -1),
(948, 2018, 'Spring', 'Mid-term', 'Foundations of Maths and Pre-calculus 10', '<NAME>', '1,2', 'A', 20, 'A417', '317', '2018-04-19', '08:00:00', '10:00:00', -1),
(949, 2018, 'Spring', 'Mid-term', 'Foundations of Maths and Pre-calculus 10', '<NAME>', '1,2', 'D', 25, 'A417', '319', '2018-04-19', '08:00:00', '10:00:00', -1),
(950, 2018, 'Spring', 'Mid-term', 'Foundations of Maths and Pre-calculus 10', '<NAME>', '1,2', 'E', 22, 'A417', '318', '2018-04-19', '08:00:00', '10:00:00', -1),
(951, 2018, 'Spring', 'Mid-term', 'Foundations of Maths and Pre-calculus 10', '<NAME>', '1,2', 'B', 29, 'A419', '321', '2018-04-19', '08:00:00', '10:00:00', -1),
(952, 2018, 'Spring', 'Mid-term', 'Foundations of Maths and Pre-calculus 10', '<NAME>', '1,2', 'D', 13, 'A419', '320', '2018-04-19', '08:00:00', '10:00:00', -1),
(953, 2018, 'Spring', 'Mid-term', 'Math/Science 9', '<NAME>', '1,2', 'B', 1, 'A410', '410', '2018-04-19', '08:00:00', '10:00:00', -1),
(954, 2018, 'Spring', 'Mid-term', 'Math/Science 9', '<NAME>', '1,2', 'D', 2, 'A410', '411', '2018-04-19', '08:00:00', '10:00:00', -1),
(955, 2018, 'Spring', 'Mid-term', 'Pre-Calculus 11', '<NAME>', '1,2', 'A', 12, 'A413', '501', '2018-04-19', '08:00:00', '10:00:00', -1),
(956, 2018, 'Spring', 'Mid-term', 'Pre-Calculus 11', '<NAME>', '1,2', 'B', 13, 'A413', '502', '2018-04-19', '08:00:00', '10:00:00', -1),
(957, 2018, 'Spring', 'Mid-term', 'Pre-Calculus 11', '<NAME>', '1,2', 'C', 17, 'A413', '503', '2018-04-19', '08:00:00', '10:00:00', -1),
(958, 2018, 'Spring', 'Mid-term', 'Pre-Calculus 11', '<NAME>', '1,2', 'D', 18, 'A413', '505', '2018-04-19', '08:00:00', '10:00:00', -1),
(959, 2018, 'Spring', 'Mid-term', 'Pre-Calculus 11', '<NAME>', '1,2', 'C', 14, 'A406', '506', '2018-04-19', '08:00:00', '10:00:00', -1),
(960, 2018, 'Spring', 'Mid-term', 'Pre-Calculus 11', '<NAME>', '1,2', 'D', 15, 'A406', '507', '2018-04-19', '08:00:00', '10:00:00', -1),
(961, 2018, 'Spring', 'Mid-term', 'Pre-Calculus 11', '<NAME>', '1,2', 'B', 2, 'A408', '508', '2018-04-19', '08:00:00', '10:00:00', -1),
(962, 2018, 'Spring', 'Mid-term', 'Pre-Calculus 11', '<NAME>', '1,2', 'B', 20, 'A417', '509', '2018-04-19', '08:00:00', '10:00:00', -1),
(963, 2018, 'Spring', 'Mid-term', 'Pre-Calculus 11', '<NAME>', '1,2', 'A', 19, 'A416', '511', '2018-04-19', '08:00:00', '10:00:00', -1),
(964, 2018, 'Spring', 'Mid-term', 'Pre-Calculus 11', '<NAME>', '1,2', 'E', 16, 'A416', '510', '2018-04-19', '08:00:00', '10:00:00', -1),
(965, 2018, 'Spring', 'Mid-term', 'Pre-Calculus 12', '<NAME>', '1,2', 'A', 11, 'A418', '401', '2018-04-19', '08:00:00', '10:00:00', -1),
(966, 2018, 'Spring', 'Mid-term', 'Pre-Calculus 12', '<NAME>', '1,2', 'B', 12, 'A418', '402', '2018-04-19', '08:00:00', '10:00:00', -1),
(967, 2018, 'Spring', 'Mid-term', 'Pre-Calculus 12', '<NAME>', '1,2', 'C', 13, 'A418', '403', '2018-04-19', '08:00:00', '10:00:00', -1),
(968, 2018, 'Spring', 'Mid-term', 'Pre-Calculus 12', '<NAME>', '1,2', 'E', 15, 'A418', '405', '2018-04-19', '08:00:00', '10:00:00', -1),
(969, 2018, 'Spring', 'Mid-term', 'Pre-Calculus 12', '<NAME>', '1,2', 'A', 17, 'A423', '406', '2018-04-19', '08:00:00', '10:00:00', -1),
(970, 2018, 'Spring', 'Mid-term', 'Chemistry 11', '<NAME>', '1,2', 'B', 7, 'A119', '306', '2018-04-20', '08:00:00', '10:00:00', -1),
(971, 2018, 'Spring', 'Mid-term', 'Chemistry 11', '<NAME>', '1,2', 'C', 8, 'A112', '307', '2018-04-20', '08:00:00', '10:00:00', -1),
(972, 2018, 'Spring', 'Mid-term', 'Chemistry 11', '<NAME>', '1,2', 'D', 9, 'A112', '308', '2018-04-20', '08:00:00', '10:00:00', -1),
(973, 2018, 'Spring', 'Mid-term', 'Chemistry 11', 'Thibeault, Kyle', '1,2', 'E', 10, 'A112', '309', '2018-04-20', '08:00:00', '10:00:00', -1),
(974, 2018, 'Spring', 'Mid-term', 'Language Arts 9A', 'Xiao, Suzie', '1,2', 'A', 1, 'A316', '303', '2018-04-20', '08:00:00', '10:00:00', -1),
(975, 2018, 'Spring', 'Mid-term', 'Language Arts 9A', 'Xiao, Suzie', '1,2', 'C', 2, 'A321', '305', '2018-04-20', '08:00:00', '10:00:00', -1),
(976, 2018, 'Spring', 'Mid-term', 'Mandarin Chinese 12', 'D<NAME>', '1', 'A', 11, 'A507', '402', '2018-04-20', '08:00:00', '10:00:00', -1),
(977, 2018, 'Spring', 'Mid-term', 'Mandarin Chinese 12', 'D<NAME>', '1', 'C', 5, 'A507', '401', '2018-04-20', '08:00:00', '10:00:00', -1),
(978, 2018, 'Spring', 'Mid-term', 'Mandarin Chinese 12', 'D<NAME>', '1', 'D', 13, 'A507', '403', '2018-04-20', '08:00:00', '10:00:00', -1),
(979, 2018, 'Spring', 'Mid-term', 'Mandarin Chinese 12', '<NAME>', '2', 'D', 14, 'A507', '405', '2018-04-20', '08:00:00', '10:00:00', -1),
(980, 2018, 'Spring', 'Mid-term', 'Mandarin Chinese 12', '<NAME>', '2', 'E', 16, 'A507', '406', '2018-04-20', '08:00:00', '10:00:00', -1),
(981, 2018, 'Spring', 'Mid-term', 'Mandarin Chinese 12', '<NAME>', '1', 'A', 1, 'A506', '407', '2018-04-20', '08:00:00', '10:00:00', -1),
(982, 2018, 'Spring', 'Mid-term', 'Mandarin Chinese 12', '<NAME>', '2', 'A', 2, 'A506', '408', '2018-04-20', '08:00:00', '10:00:00', -1),
(983, 2018, 'Spring', 'Mid-term', 'Mandarin Chinese 12', '<NAME>', '2', 'C', 6, 'A506', '409', '2018-04-20', '08:00:00', '10:00:00', -1),
(984, 2018, 'Spring', 'Mid-term', 'Mandarin Chinese 12', '<NAME>', '1', 'E', 9, 'A506', '501', '2018-04-20', '08:00:00', '10:00:00', -1),
(985, 2018, 'Spring', 'Mid-term', 'Mandarin Chinese 12', '<NAME>', '1', 'B', 3, 'A506', '502', '2018-04-20', '08:00:00', '10:00:00', -1),
(986, 2018, 'Spring', 'Mid-term', 'Mandarin Chinese 12', '<NAME>', '2', 'B', 4, 'A506', '503', '2018-04-20', '08:00:00', '10:00:00', -1),
(987, 2018, 'Spring', 'Mid-term', 'Mandarin Chinese 12', '<NAME>', '1', 'D', 7, 'A506', '505', '2018-04-20', '08:00:00', '10:00:00', -1),
(988, 2018, 'Spring', 'Mid-term', 'Mandarin Chinese 12', '<NAME>', '2', 'D', 8, 'A506', '506', '2018-04-20', '08:00:00', '10:00:00', -1),
(989, 2018, 'Spring', 'Mid-term', 'Mandarin Chinese 12', '<NAME>', '2', 'E', 10, 'A506', '507', '2018-04-20', '08:00:00', '10:00:00', -1),
(990, 2018, 'Spring', 'Mid-term', 'Mandarin Chinese 12', '<NAME>', '2', 'A', 12, 'A507', '508', '2018-04-20', '08:00:00', '10:00:00', -1),
(991, 2018, 'Spring', 'Mid-term', 'Mandarin Chinese 12', '<NAME>', '1', 'E', 15, 'A507', '509', '2018-04-20', '08:00:00', '10:00:00', -1),
(992, 2018, 'Spring', 'Mid-term', 'English 12', 'Bishundat, Devon', '1,2', 'B', 16, 'A306', '402', '2018-04-17', '08:00:00', '11:00:00', -1),
(993, 2018, 'Spring', 'Mid-term', 'English 12', 'Bishundat, Devon', '1,2', 'C', 17, 'A306', '403', '2018-04-17', '08:00:00', '11:00:00', -1),
(994, 2018, 'Spring', 'Mid-term', 'English 12', 'Bishundat, Devon', '1,2', 'E', 9, 'A306', '401', '2018-04-17', '08:00:00', '11:00:00', -1),
(995, 2018, 'Spring', 'Mid-term', 'English 12', 'Collingwood, Emma', '1', 'B', 1, 'A316', '405', '2018-04-17', '08:00:00', '11:00:00', -1),
(996, 2018, 'Spring', 'Mid-term', 'English 12', '<NAME>', '1', 'C', 2, 'A316', '406', '2018-04-17', '08:00:00', '11:00:00', -1),
(997, 2018, 'Spring', 'Mid-term', 'English 12', '<NAME>', '1,2', 'A', 5, 'A321', '407', '2018-04-17', '08:00:00', '11:00:00', -1),
(998, 2018, 'Spring', 'Mid-term', 'English 12', '<NAME>', '1,2', 'D', 8, 'A321', '408', '2018-04-17', '08:00:00', '11:00:00', -1),
(999, 2018, 'Spring', 'Mid-term', 'English 12', '<NAME>', '1,2', 'B', 6, 'A207', '409', '2018-04-17', '08:00:00', '11:00:00', -1);
INSERT INTO `ml_wh_examination_roomassignment` (`cid`, `year`, `semester`, `exam_name`, `course`, `teacher`, `day`, `block`, `section`, `regular_classroom`, `exam_room`, `exam_date`, `start_time`, `end_time`, `enrollment`) VALUES
(1000, 2018, 'Spring', 'Mid-term', 'English 12', '<NAME>', '1,2', 'C', 7, 'A207', '501', '2018-04-17', '08:00:00', '11:00:00', -1),
(1001, 2018, 'Spring', 'Mid-term', 'English 12', '<NAME>', '1,2', 'A', 10, 'A308', '502', '2018-04-17', '08:00:00', '11:00:00', -1),
(1002, 2018, 'Spring', 'Mid-term', 'English 12', '<NAME>', '1,2', 'B', 11, 'A308', '503', '2018-04-17', '08:00:00', '11:00:00', -1),
(1003, 2018, 'Spring', 'Mid-term', 'English 12', '<NAME>', '1,2', 'C', 12, 'A307', '505', '2018-04-17', '08:00:00', '11:00:00', -1),
(1004, 2018, 'Spring', 'Mid-term', 'English 12', '<NAME>', '1,2', 'D', 3, 'A208', '506', '2018-04-17', '08:00:00', '11:00:00', -1),
(1005, 2018, 'Spring', 'Mid-term', 'English 12', '<NAME>', '1,2', 'E', 4, 'A208', '507', '2018-04-17', '08:00:00', '11:00:00', -1),
(1006, 2018, 'Spring', 'Mid-term', 'English 12', '<NAME>', '1,2', 'A', 15, 'A310', '509', '2018-04-17', '08:00:00', '11:00:00', -1),
(1007, 2018, 'Spring', 'Mid-term', 'English 12', '<NAME>', '1,2', 'D', 13, 'A310', '508', '2018-04-17', '08:00:00', '11:00:00', -1),
(1008, 2018, 'Spring', 'Mid-term', 'English 12', '<NAME>', '1,2', 'E', 18, 'A310', '510', '2018-04-17', '08:00:00', '11:00:00', -1),
(1009, 2018, 'Spring', 'Mid-term', 'Bridging Language Arts A', '<NAME>', '1,2', 'D', 14, 'A405', '303', '2018-04-17', '11:00:00', '13:00:00', -1),
(1010, 2018, 'Spring', 'Mid-term', 'Bridging Language Arts A', '<NAME>', '1,2', 'A', 11, 'A402', '305', '2018-04-17', '11:00:00', '13:00:00', -1),
(1011, 2018, 'Spring', 'Mid-term', 'Bridging Language Arts A', '<NAME>', '1,2', 'C', 13, 'A401', '306', '2018-04-17', '11:00:00', '13:00:00', -1),
(1012, 2018, 'Spring', 'Mid-term', 'Bridging Language Arts A', '<NAME>', '1,2', 'E', 15, 'A401', '307', '2018-04-17', '11:00:00', '13:00:00', -1),
(1013, 2018, 'Spring', 'Mid-term', 'Bridging Language Arts A', '<NAME>', '1,2', 'B', 12, 'A402', '308', '2018-04-17', '11:00:00', '13:00:00', -1),
(1014, 2018, 'Spring', 'Mid-term', 'Communication Skills B', '<NAME>', '1,2', 'C', 6, 'A403', '311', '2018-04-17', '11:00:00', '13:00:00', -1),
(1015, 2018, 'Spring', 'Mid-term', 'Communication Skills B', '<NAME>', '1,2', 'D', 5, 'A403', '310', '2018-04-17', '11:00:00', '13:00:00', -1),
(1016, 2018, 'Spring', 'Mid-term', 'Physics 11', '<NAME>', '1,2', 'D', 9, 'A407', '413', '2018-04-17', '11:00:00', '13:00:00', -1),
(1017, 2018, 'Spring', 'Mid-term', 'Physics 11', '<NAME>', '1,2', 'E', 10, 'A407', '414', '2018-04-17', '11:00:00', '13:00:00', -1),
(1018, 2018, 'Spring', 'Mid-term', 'Physics 11', 'Zh<NAME>', '1,2', 'A', 7, 'A405', '416', '2018-04-17', '11:00:00', '13:00:00', -1),
(1019, 2018, 'Spring', 'Mid-term', 'Physics 11', 'Zh<NAME>', '1,2', 'B', 8, 'A405', '417', '2018-04-17', '11:00:00', '13:00:00', -1),
(1020, 2018, 'Spring', 'Mid-term', 'Science 10', 'Awofolu, Patience', '1,2', 'A', 6, 'A122', '313', '2018-04-17', '11:00:00', '13:00:00', -1),
(1021, 2018, 'Spring', 'Mid-term', 'Science 10', 'Awofolu, Patience', '1,2', 'B', 12, 'A122', '314', '2018-04-17', '11:00:00', '13:00:00', -1),
(1022, 2018, 'Spring', 'Mid-term', 'Science 10', 'Awofolu, Patience', '1,2', 'D', 14, 'A122', '316', '2018-04-17', '11:00:00', '13:00:00', -1),
(1023, 2018, 'Spring', 'Mid-term', 'Science 10', '<NAME>', '1,2', 'D', 9, 'A119', '317', '2018-04-17', '11:00:00', '13:00:00', -1),
(1024, 2018, 'Spring', 'Mid-term', 'Science 10', '<NAME>', '1,2', 'E', 10, 'A119', '318', '2018-04-17', '11:00:00', '13:00:00', -1),
(1025, 2018, 'Spring', 'Mid-term', 'Science 10', '<NAME>', '1,2', 'C', 13, 'A308', '319', '2018-04-17', '11:00:00', '13:00:00', -1),
(1026, 2018, 'Spring', 'Mid-term', 'Science 10', '<NAME>', '1,2', 'A', 16, 'A115', '418', '2018-04-17', '11:00:00', '13:00:00', -1),
(1027, 2018, 'Spring', 'Mid-term', 'Science 10', '<NAME>', '1,2', 'B', 7, 'A115', '320', '2018-04-17', '11:00:00', '13:00:00', -1),
(1028, 2018, 'Spring', 'Mid-term', 'Science 10', '<NAME>', '1,2', 'C', 8, 'A416', '419', '2018-04-17', '11:00:00', '13:00:00', -1),
(1029, 2018, 'Spring', 'Mid-term', 'Science 10', '<NAME>', '1,2', 'A', 11, 'A419', '420', '2018-04-17', '11:00:00', '13:00:00', -1),
(1030, 2018, 'Spring', 'Mid-term', 'Science 10', '<NAME>', '1,2', 'E', 15, 'A419', '421', '2018-04-17', '11:00:00', '13:00:00', -1),
(1031, 2018, 'Spring', 'Mid-term', 'Economics 12', '<NAME>', '1,2', 'A', 5, 'A411', '303', '2018-04-18', '11:00:00', '13:00:00', -1),
(1032, 2018, 'Spring', 'Mid-term', 'Economics 12', '<NAME>', '1,2', 'B', 6, 'A411', '305', '2018-04-18', '11:00:00', '13:00:00', -1),
(1033, 2018, 'Spring', 'Mid-term', 'Economics 12', '<NAME>', '1,2', 'C', 7, 'A409', '306', '2018-04-18', '11:00:00', '13:00:00', -1),
(1034, 2018, 'Spring', 'Mid-term', 'Economics 12', '<NAME>', '1,2', 'D', 8, 'A409', '307', '2018-04-18', '11:00:00', '13:00:00', -1),
(1035, 2018, 'Spring', 'Mid-term', 'Mandarin Chinese 10', 'An, Lanlan ', '2', 'A', 12, 'A502', '401', '2018-04-18', '11:00:00', '13:00:00', -1),
(1036, 2018, 'Spring', 'Mid-term', 'Mandarin Chinese 10', 'An, Lanlan ', '1', 'C', 15, 'A502', '402', '2018-04-18', '11:00:00', '13:00:00', -1),
(1037, 2018, 'Spring', 'Mid-term', 'Mandarin Chinese 10', 'An, Lanlan ', '2', 'C', 16, 'A502', '403', '2018-04-18', '11:00:00', '13:00:00', -1),
(1038, 2018, 'Spring', 'Mid-term', 'Mandarin Chinese 10', 'An, Lanlan ', '1', 'E', 19, 'A502', '405', '2018-04-18', '11:00:00', '13:00:00', -1),
(1039, 2018, 'Spring', 'Mid-term', 'Mandarin Chinese 10', 'Jiang, Sisi ', '1', 'A', 1, 'A501', '406', '2018-04-18', '11:00:00', '13:00:00', -1),
(1040, 2018, 'Spring', 'Mid-term', 'Mandarin Chinese 10', 'Jiang, Sisi ', '2', 'A', 2, 'A501', '407', '2018-04-18', '11:00:00', '13:00:00', -1),
(1041, 2018, 'Spring', 'Mid-term', 'Mandarin Chinese 10', 'Jiang, Sisi ', '1', 'C', 5, 'A501', '408', '2018-04-18', '11:00:00', '13:00:00', -1),
(1042, 2018, 'Spring', 'Mid-term', 'Mandarin Chinese 10', 'Jiang, Sisi ', '2', 'C', 6, 'A501', '409', '2018-04-18', '11:00:00', '13:00:00', -1),
(1043, 2018, 'Spring', 'Mid-term', 'Mandarin Chinese 10', 'Jiang, Sisi ', '2', 'E', 10, 'A501', '410', '2018-04-18', '11:00:00', '13:00:00', -1),
(1044, 2018, 'Spring', 'Mid-term', 'Mandarin Chinese 10', '<NAME> ', '1', 'A', 11, 'A502', '505', '2018-04-18', '11:00:00', '13:00:00', -1),
(1045, 2018, 'Spring', 'Mid-term', 'Mandarin Chinese 10', 'Tan, Jing ', '1', 'B', 3, 'A501', '411', '2018-04-18', '11:00:00', '13:00:00', -1),
(1046, 2018, 'Spring', 'Mid-term', 'Mandarin Chinese 10', 'Tan, Jing ', '2', 'B', 4, 'A501', '501', '2018-04-18', '11:00:00', '13:00:00', -1),
(1047, 2018, 'Spring', 'Mid-term', 'Mandarin Chinese 10', 'Tan, Jing ', '2', 'D', 8, 'A501', '502', '2018-04-18', '11:00:00', '13:00:00', -1),
(1048, 2018, 'Spring', 'Mid-term', 'Mandarin Chinese 10', 'Tan, Jing ', '1', 'E', 9, 'A501', '503', '2018-04-18', '11:00:00', '13:00:00', -1),
(1049, 2018, 'Spring', 'Mid-term', 'Mandarin Chinese 10', '<NAME> ', '2', 'E', 20, 'A502', '506', '2018-04-18', '11:00:00', '13:00:00', -1),
(1050, 2018, 'Spring', 'Mid-term', 'Mandarin Chinese 10', 'Yang, Dong ', '1', 'A', 17, 'A505', '510', '2018-04-18', '11:00:00', '13:00:00', -1),
(1051, 2018, 'Spring', 'Mid-term', 'Mandarin Chinese 10', 'Yang, Dong ', '2', 'A', 18, 'A505', '511', '2018-04-18', '11:00:00', '13:00:00', -1),
(1052, 2018, 'Spring', 'Mid-term', 'Mandarin Chinese 10', 'Yang, Dong ', '1', 'B', 13, 'A502', '508', '2018-04-18', '11:00:00', '13:00:00', -1),
(1053, 2018, 'Spring', 'Mid-term', 'Mandarin Chinese 10', 'Yang, Dong ', '2', 'B', 14, 'A502', '509', '2018-04-18', '11:00:00', '13:00:00', -1),
(1054, 2018, 'Spring', 'Mid-term', 'Mandarin Chinese 10', 'Yang, Dong ', '1', 'D', 7, 'A501', '507', '2018-04-18', '11:00:00', '13:00:00', -1),
(1055, 2018, 'Spring', 'Mid-term', 'Mandarin Chinese 11', '<NAME>', '1', 'B', 11, 'A505', '313', '2018-04-18', '11:00:00', '13:00:00', -1),
(1056, 2018, 'Spring', 'Mid-term', 'Mandarin Chinese 11', '<NAME>', '1', 'C', 13, 'A505', '314', '2018-04-18', '11:00:00', '13:00:00', -1),
(1057, 2018, 'Spring', 'Mid-term', 'Mandarin Chinese 11', '<NAME>', '2', 'C', 14, 'A505', '316', '2018-04-18', '11:00:00', '13:00:00', -1),
(1058, 2018, 'Spring', 'Mid-term', 'Mandarin Chinese 11', '<NAME>', '1', 'E', 17, 'A505', '317', '2018-04-18', '11:00:00', '13:00:00', -1),
(1059, 2018, 'Spring', 'Mid-term', 'Mandarin Chinese 11', '<NAME>', '2', 'E', 18, 'A505', '318', '2018-04-18', '11:00:00', '13:00:00', -1),
(1060, 2018, 'Spring', 'Mid-term', 'Mandarin Chinese 11', '<NAME>', '1', 'A', 1, 'A503', '319', '2018-04-18', '11:00:00', '13:00:00', -1),
(1061, 2018, 'Spring', 'Mid-term', 'Mandarin Chinese 11', '<NAME>', '2', 'A', 2, 'A503', '320', '2018-04-18', '11:00:00', '13:00:00', -1),
(1062, 2018, 'Spring', 'Mid-term', 'Mandarin Chinese 11', '<NAME>', '1', 'C', 5, 'A503', '321', '2018-04-18', '11:00:00', '13:00:00', -1),
(1063, 2018, 'Spring', 'Mid-term', 'Mandarin Chinese 11', '<NAME>', '2', 'C', 6, 'A503', '322', '2018-04-18', '11:00:00', '13:00:00', -1),
(1064, 2018, 'Spring', 'Mid-term', 'Mandarin Chinese 11', '<NAME>', '1', 'E', 9, 'A503', '413', '2018-04-18', '11:00:00', '13:00:00', -1),
(1065, 2018, 'Spring', 'Mid-term', 'Mandarin Chinese 11', '<NAME>', '1', 'B', 3, 'A503', '414', '2018-04-18', '11:00:00', '13:00:00', -1),
(1066, 2018, 'Spring', 'Mid-term', 'Mandarin Chinese 11', '<NAME>', '2', 'B', 4, 'A503', '416', '2018-04-18', '11:00:00', '13:00:00', -1),
(1067, 2018, 'Spring', 'Mid-term', 'Mandarin Chinese 11', '<NAME>', '1', 'D', 7, 'A503', '417', '2018-04-18', '11:00:00', '13:00:00', -1),
(1068, 2018, 'Spring', 'Mid-term', 'Mandarin Chinese 11', '<NAME>', '2', 'D', 8, 'A503', '418', '2018-04-18', '11:00:00', '13:00:00', -1),
(1069, 2018, 'Spring', 'Mid-term', 'Mandarin Chinese 11', '<NAME>', '2', 'E', 10, 'A503', '419', '2018-04-18', '11:00:00', '13:00:00', -1),
(1070, 2018, 'Spring', 'Mid-term', 'Mandarin Chinese 11', '<NAME>', '2', 'B', 12, 'A505', '420', '2018-04-18', '11:00:00', '13:00:00', -1),
(1071, 2018, 'Spring', 'Mid-term', 'Mandarin Chinese 11', '<NAME>', '1', 'D', 15, 'A505', '421', '2018-04-18', '11:00:00', '13:00:00', -1),
(1072, 2018, 'Spring', 'Mid-term', 'Mandarin Chinese 11', '<NAME>', '2', 'D', 16, 'A505', '423', '2018-04-18', '11:00:00', '13:00:00', -1),
(1073, 2018, 'Spring', 'Mid-term', 'Biology 12', '<NAME>', '1,2', 'B', 3, 'A112', '413', '2018-04-19', '11:00:00', '13:00:00', -1),
(1074, 2018, 'Spring', 'Mid-term', 'Chinese Social Studies 10', '<NAME> ', '2', 'A', 17, 'A319', '403', '2018-04-19', '11:00:00', '13:00:00', -1),
(1075, 2018, 'Spring', 'Mid-term', 'Chinese Social Studies 10', '<NAME> ', '1', 'A', 18, 'A511', '405', '2018-04-19', '11:00:00', '13:00:00', -1),
(1076, 2018, 'Spring', 'Mid-term', 'Chinese Social Studies 10', '<NAME> ', '2', 'C', 5, 'A508', '401', '2018-04-19', '11:00:00', '13:00:00', -1),
(1077, 2018, 'Spring', 'Mid-term', 'Chinese Social Studies 10', 'Jiao, Yang ', '1', 'C', 6, 'A508', '402', '2018-04-19', '11:00:00', '13:00:00', -1),
(1078, 2018, 'Spring', 'Mid-term', 'Chinese Social Studies 10', '<NAME> ', '1', 'E', 20, 'A509', '406', '2018-04-19', '11:00:00', '13:00:00', -1),
(1079, 2018, 'Spring', 'Mid-term', 'Chinese Social Studies 10', 'Tian, Fei ', '2', 'B', 13, 'A509', '410', '2018-04-19', '11:00:00', '13:00:00', -1),
(1080, 2018, 'Spring', 'Mid-term', 'Chinese Social Studies 10', 'Tian, Fei ', '1', 'B', 14, 'A509', '411', '2018-04-19', '11:00:00', '13:00:00', -1),
(1081, 2018, 'Spring', 'Mid-term', 'Chinese Social Studies 10', 'Tian, Fei ', '2', 'D', 7, 'A508', '407', '2018-04-19', '11:00:00', '13:00:00', -1),
(1082, 2018, 'Spring', 'Mid-term', 'Chinese Social Studies 10', '<NAME> ', '2', 'E', 9, 'A508', '408', '2018-04-19', '11:00:00', '13:00:00', -1),
(1083, 2018, 'Spring', 'Mid-term', 'Chinese Social Studies 10', '<NAME> ', '1', 'E', 10, 'A508', '409', '2018-04-19', '11:00:00', '13:00:00', -1),
(1084, 2018, 'Spring', 'Mid-term', 'Chinese Social Studies 10', '<NAME>yu ', '2', 'A', 1, 'A508', '501', '2018-04-19', '11:00:00', '13:00:00', -1),
(1085, 2018, 'Spring', 'Mid-term', 'Chinese Social Studies 10', 'Xie, Zhiyu ', '1', 'A', 2, 'A508', '502', '2018-04-19', '11:00:00', '13:00:00', -1),
(1086, 2018, 'Spring', 'Mid-term', 'Chinese Social Studies 10', '<NAME>hiyu ', '2', 'B', 3, 'A508', '503', '2018-04-19', '11:00:00', '13:00:00', -1),
(1087, 2018, 'Spring', 'Mid-term', 'Chinese Social Studies 10', '<NAME> ', '1', 'B', 4, 'A508', '505', '2018-04-19', '11:00:00', '13:00:00', -1),
(1088, 2018, 'Spring', 'Mid-term', 'Chinese Social Studies 10', '<NAME> ', '1', 'D', 8, 'A508', '506', '2018-04-19', '11:00:00', '13:00:00', -1),
(1089, 2018, 'Spring', 'Mid-term', 'Chinese Social Studies 10', '<NAME> ', '2', 'A', 11, 'A509', '507', '2018-04-19', '11:00:00', '13:00:00', -1),
(1090, 2018, 'Spring', 'Mid-term', 'Chinese Social Studies 10', '<NAME> ', '1', 'A', 12, 'A509', '508', '2018-04-19', '11:00:00', '13:00:00', -1),
(1091, 2018, 'Spring', 'Mid-term', 'Chinese Social Studies 10', '<NAME> ', '2', 'C', 15, 'A509', '509', '2018-04-19', '11:00:00', '13:00:00', -1),
(1092, 2018, 'Spring', 'Mid-term', 'Chinese Social Studies 10', '<NAME> ', '1', 'C', 16, 'A509', '510', '2018-04-19', '11:00:00', '13:00:00', -1),
(1093, 2018, 'Spring', 'Mid-term', 'Chinese Social Studies 10', '<NAME> ', '2', 'E', 19, 'A509', '511', '2018-04-19', '11:00:00', '13:00:00', -1),
(1094, 2018, 'Spring', 'Mid-term', 'Communication Skills 9', '<NAME>', '1,2', 'A', 2, 'A422', '416', '2018-04-19', '11:00:00', '13:00:00', -1),
(1095, 2018, 'Spring', 'Mid-term', 'Communication Skills 9', '<NAME>', '1,2', 'E', 1, 'A422', '414', '2018-04-19', '11:00:00', '13:00:00', -1),
(1096, 2018, 'Spring', 'Mid-term', 'Comparative Civilizations 12', '<NAME>', '1,2', 'D', 4, 'A319', '303', '2018-04-19', '11:00:00', '13:00:00', -1),
(1097, 2018, 'Spring', 'Mid-term', 'Comparative Civilizations 12', '<NAME>', '1,2', 'A', 3, 'A313', '305', '2018-04-19', '11:00:00', '13:00:00', -1),
(1098, 2018, 'Spring', 'Mid-term', 'Comparative Civilizations 12', 'Worrall, Aileen', '1,2', 'E', 5, 'A313', '306', '2018-04-19', '11:00:00', '13:00:00', -1),
(1099, 2018, 'Spring', 'Mid-term', 'Social Studies 11', '<NAME>', '1,2', 'A', 11, 'A320', '310', '2018-04-19', '11:00:00', '13:00:00', -1),
(1100, 2018, 'Spring', 'Mid-term', 'Social Studies 11', '<NAME>', '1,2', 'C', 8, 'A320', '307', '2018-04-19', '11:00:00', '13:00:00', -1),
(1101, 2018, 'Spring', 'Mid-term', 'Social Studies 11', '<NAME>', '1,2', 'D', 9, 'A320', '308', '2018-04-19', '11:00:00', '13:00:00', -1),
(1102, 2018, 'Spring', 'Mid-term', 'Social Studies 11', '<NAME>', '1,2', 'E', 10, 'A320', '309', '2018-04-19', '11:00:00', '13:00:00', -1),
(1103, 2018, 'Spring', 'Mid-term', 'Social Studies 11', '<NAME>', '1,2', 'B', 12, 'A303', '311', '2018-04-19', '11:00:00', '13:00:00', -1),
(1104, 2018, 'Spring', 'Mid-term', 'Social Studies 11', '<NAME>', '1,2', 'D', 14, 'A303', '313', '2018-04-19', '11:00:00', '13:00:00', -1),
(1105, 2018, 'Spring', 'Mid-term', 'Social Studies 11', '<NAME>', '1,2', 'B', 7, 'A319', '314', '2018-04-19', '11:00:00', '13:00:00', -1),
(1106, 2018, 'Spring', 'Mid-term', 'Social Studies 11', '<NAME>', '1,2', 'C', 13, 'A319', '316', '2018-04-19', '11:00:00', '13:00:00', -1),
(1107, 2018, 'Spring', 'Mid-term', 'Social Studies 11', '<NAME>', '1,2', 'E', 19, 'A319', '317', '2018-04-19', '11:00:00', '13:00:00', -1),
(1108, 2018, 'Spring', 'Mid-term', 'Social Studies 11', '<NAME>', '1,2', 'C', 18, 'A219', '319', '2018-04-19', '11:00:00', '13:00:00', -1),
(1109, 2018, 'Spring', 'Mid-term', 'Social Studies 11', '<NAME>', '1,2', 'E', 15, 'A219', '318', '2018-04-19', '11:00:00', '13:00:00', -1),
(1110, 2018, 'Spring', 'Mid-term', 'Social Studies 11', '<NAME>', '1,2', 'A', 16, 'A317', '320', '2018-04-19', '11:00:00', '13:00:00', -1),
(1111, 2018, 'Spring', 'Mid-term', 'Social Studies 11', '<NAME>', '1,2', 'B', 17, 'A317', '321', '2018-04-19', '11:00:00', '13:00:00', -1),
(1112, 2018, 'Spring', 'Mid-term', 'Chinese Social Studies 11', '<NAME>', '2', 'C', 13, 'A511', '401', '2018-04-20', '11:00:00', '13:00:00', -1),
(1113, 2018, 'Spring', 'Mid-term', 'Chinese Social Studies 11', '<NAME>', '1', 'C', 14, 'A511', '402', '2018-04-20', '11:00:00', '13:00:00', -1),
(1114, 2018, 'Spring', 'Mid-term', 'Chinese Social Studies 11', '<NAME>', '2', 'E', 17, 'A511', '403', '2018-04-20', '11:00:00', '13:00:00', -1),
(1115, 2018, 'Spring', 'Mid-term', 'Chinese Social Studies 11', '<NAME>', '2', 'B', 3, 'A510', '405', '2018-04-20', '11:00:00', '13:00:00', -1),
(1116, 2018, 'Spring', 'Mid-term', 'Chinese Social Studies 11', '<NAME>', '1', 'B', 4, 'A510', '406', '2018-04-20', '11:00:00', '13:00:00', -1),
(1117, 2018, 'Spring', 'Mid-term', 'Chinese Social Studies 11', '<NAME>', '2', 'D', 7, 'A510', '407', '2018-04-20', '11:00:00', '13:00:00', -1),
(1118, 2018, 'Spring', 'Mid-term', 'Chinese Social Studies 11', '<NAME>', '1', 'D', 8, 'A510', '408', '2018-04-20', '11:00:00', '13:00:00', -1),
(1119, 2018, 'Spring', 'Mid-term', 'Chinese Social Studies 11', '<NAME>', '2', 'E', 9, 'A510', '409', '2018-04-20', '11:00:00', '13:00:00', -1),
(1120, 2018, 'Spring', 'Mid-term', 'Chinese Social Studies 11', '<NAME>', '1', 'E', 18, 'A511', '410', '2018-04-20', '11:00:00', '13:00:00', -1),
(1121, 2018, 'Spring', 'Mid-term', 'Chinese Social Studies 11', '<NAME>', '2', 'B', 11, 'A511', '501', '2018-04-20', '11:00:00', '13:00:00', -1),
(1122, 2018, 'Spring', 'Mid-term', 'Chinese Social Studies 11', '<NAME>', '1', 'B', 12, 'A511', '502', '2018-04-20', '11:00:00', '13:00:00', -1),
(1123, 2018, 'Spring', 'Mid-term', 'Chinese Social Studies 11', '<NAME>', '2', 'D', 15, 'A511', '503', '2018-04-20', '11:00:00', '13:00:00', -1),
(1124, 2018, 'Spring', 'Mid-term', 'Chinese Social Studies 11', '<NAME>', '1', 'D', 16, 'A511', '505', '2018-04-20', '11:00:00', '13:00:00', -1),
(1125, 2018, 'Spring', 'Mid-term', 'Chinese Social Studies 11', '<NAME>', '2', 'A', 1, 'A510', '506', '2018-04-20', '11:00:00', '13:00:00', -1),
(1126, 2018, 'Spring', 'Mid-term', 'Chinese Social Studies 11', '<NAME>', '1', 'A', 2, 'A510', '507', '2018-04-20', '11:00:00', '13:00:00', -1),
(1127, 2018, 'Spring', 'Mid-term', 'Chinese Social Studies 11', '<NAME>', '2', 'C', 5, 'A510', '508', '2018-04-20', '11:00:00', '13:00:00', -1),
(1128, 2018, 'Spring', 'Mid-term', 'Chinese Social Studies 11', '<NAME>', '1', 'C', 6, 'A510', '509', '2018-04-20', '11:00:00', '13:00:00', -1),
(1129, 2018, 'Spring', 'Mid-term', 'Chinese Social Studies 11', '<NAME>', '1', 'E', 10, 'A510', '510', '2018-04-20', '11:00:00', '13:00:00', -1),
(1130, 2018, 'Spring', 'Mid-term', 'PE/CSS 9', '<NAME>', '1,2', 'B', 2, 'A309', '305', '2018-04-20', '11:00:00', '13:00:00', -1),
(1131, 2018, 'Spring', 'Mid-term', 'PE/CSS 9', '<NAME>', '1,2', 'D', 1, 'A306', '303', '2018-04-20', '11:00:00', '13:00:00', -1),
(1132, 2018, 'Spring', 'Mid-term', 'Chinese Social Studies 12', '<NAME> ', '2', 'A', 1, 'A516', '401', '2018-04-17', '14:00:00', '16:00:00', -1),
(1133, 2018, 'Spring', 'Mid-term', 'Chinese Social Studies 12', '<NAME> ', '1', 'A', 2, 'A516', '402', '2018-04-17', '14:00:00', '16:00:00', -1),
(1134, 2018, 'Spring', 'Mid-term', 'Chinese Social Studies 12', '<NAME> ', '2', 'C', 5, 'A516', '403', '2018-04-17', '14:00:00', '16:00:00', -1),
(1135, 2018, 'Spring', 'Mid-term', 'Chinese Social Studies 12', '<NAME> ', '1', 'C', 6, 'A516', '405', '2018-04-17', '14:00:00', '16:00:00', -1),
(1136, 2018, 'Spring', 'Mid-term', 'Chinese Social Studies 12', '<NAME> ', '2', 'D', 7, 'A516', '406', '2018-04-17', '14:00:00', '16:00:00', -1),
(1137, 2018, 'Spring', 'Mid-term', 'Chinese Social Studies 12', '<NAME> ', '1', 'D', 8, 'A516', '407', '2018-04-17', '14:00:00', '16:00:00', -1),
(1138, 2018, 'Spring', 'Mid-term', 'Chinese Social Studies 12', '<NAME> ', '2', 'E', 9, 'A516', '408', '2018-04-17', '14:00:00', '16:00:00', -1),
(1139, 2018, 'Spring', 'Mid-term', 'Chinese Social Studies 12', '<NAME> ', '1', 'E', 10, 'A516', '409', '2018-04-17', '14:00:00', '16:00:00', -1),
(1140, 2018, 'Spring', 'Mid-term', 'Chinese Social Studies 12', '<NAME> ', '2', 'A', 11, 'A514', '503', '2018-04-17', '14:00:00', '16:00:00', -1),
(1141, 2018, 'Spring', 'Mid-term', 'Chinese Social Studies 12', '<NAME> ', '1', 'A', 12, 'A514', '505', '2018-04-17', '14:00:00', '16:00:00', -1),
(1142, 2018, 'Spring', 'Mid-term', 'Chinese Social Studies 12', '<NAME> ', '2', 'B', 3, 'A514', '501', '2018-04-17', '14:00:00', '16:00:00', -1),
(1143, 2018, 'Spring', 'Mid-term', 'Chinese Social Studies 12', '<NAME> ', '1', 'B', 4, 'A514', '502', '2018-04-17', '14:00:00', '16:00:00', -1),
(1144, 2018, 'Spring', 'Mid-term', 'Chinese Social Studies 12', '<NAME> ', '2', 'D', 13, 'A514', '506', '2018-04-17', '14:00:00', '16:00:00', -1),
(1145, 2018, 'Spring', 'Mid-term', 'Chinese Social Studies 12', '<NAME> ', '1', 'D', 14, 'A514', '507', '2018-04-17', '14:00:00', '16:00:00', -1),
(1146, 2018, 'Spring', 'Mid-term', 'Chinese Social Studies 12', '<NAME> ', '2', 'E', 15, 'A514', '508', '2018-04-17', '14:00:00', '16:00:00', -1),
(1147, 2018, 'Spring', 'Mid-term', 'Chinese Social Studies 12', '<NAME> ', '1', 'E', 16, 'A514', '509', '2018-04-17', '14:00:00', '16:00:00', -1),
(1148, 2018, 'Spring', 'Mid-term', 'Communications 11', '<NAME>', '1,2', 'E', 19, 'A316', '303', '2018-04-17', '14:00:00', '16:00:00', -1),
(1149, 2018, 'Spring', 'Mid-term', 'Communications 11', 'Po<NAME>', '1,2', 'D', 17, 'A401', '305', '2018-04-17', '14:00:00', '16:00:00', -1),
(1150, 2018, 'Spring', 'Mid-term', 'Communications 11', 'Sibiya, Sizwe', '1,2', 'A', 14, 'A322', '306', '2018-04-17', '14:00:00', '16:00:00', -1),
(1151, 2018, 'Spring', 'Mid-term', 'Communications 11', 'Sibi<NAME>', '1,2', 'B', 15, 'A322', '307', '2018-04-17', '14:00:00', '16:00:00', -1),
(1152, 2018, 'Spring', 'Mid-term', 'Communications 11', '<NAME>', '1,2', 'C', 16, 'A309', '308', '2018-04-17', '14:00:00', '16:00:00', -1),
(1153, 2018, 'Spring', 'Mid-term', 'English 11', '<NAME>', '1,2', 'E', 18, 'A305', '310', '2018-04-17', '14:00:00', '16:00:00', -1),
(1154, 2018, 'Spring', 'Mid-term', 'English 11', '<NAME>', '1,2', 'A', 15, 'A314', '311', '2018-04-17', '14:00:00', '16:00:00', -1),
(1155, 2018, 'Spring', 'Mid-term', 'Biology 11', 'Awofolu, Patience', '1,2', 'E', 2, 'A122', '401', '2018-04-18', '14:00:00', '16:00:00', -1),
(1156, 2018, 'Spring', 'Mid-term', 'Chemistry 12', '<NAME>', '1,2', 'A', 4, 'A111', '402', '2018-04-18', '14:00:00', '16:00:00', -1),
(1157, 2018, 'Spring', 'Mid-term', 'Chemistry 12', '<NAME>', '1,2', 'B', 5, 'A111', '403', '2018-04-18', '14:00:00', '16:00:00', -1),
(1158, 2018, 'Spring', 'Mid-term', 'Chemistry 12', '<NAME>', '1,2', 'E', 7, 'A111', '405', '2018-04-18', '14:00:00', '16:00:00', -1),
(1159, 2018, 'Spring', 'Mid-term', 'Science & Technology 11', '<NAME>', '1,2', 'C', 3, 'A115', '406', '2018-04-18', '14:00:00', '16:00:00', -1),
(1160, 2018, 'Spring', 'Mid-term', 'Science & Technology 11', '<NAME>', '1,2', 'D', 4, 'A115', '407', '2018-04-18', '14:00:00', '16:00:00', -1),
(1161, 2018, 'Spring', 'Mid-term', 'Science & Technology 11', '<NAME>', '1,2', 'E', 5, 'A115', '408', '2018-04-18', '14:00:00', '16:00:00', -1),
(1162, 2018, 'Spring', 'Mid-term', 'Social Studies 10', '<NAME>', '1,2', 'D', 12, 'A316', '410', '2018-04-18', '14:00:00', '16:00:00', -1),
(1163, 2018, 'Spring', 'Mid-term', 'Social Studies 10', '<NAME>', '1,2', 'C', 11, 'A313', '411', '2018-04-18', '14:00:00', '16:00:00', -1),
(1164, 2018, 'Spring', 'Mid-term', 'Chinese Social Studies 11: Politics', '<NAME>', '2', 'A', 13, 'A511', '402', '2018-04-19', '14:00:00', '16:00:00', -1),
(1165, 2018, 'Spring', 'Mid-term', 'Chinese Social Studies 11: Politics', '<NAME>', '1', 'B', 16, 'A516', '403', '2018-04-19', '14:00:00', '16:00:00', -1),
(1166, 2018, 'Spring', 'Mid-term', 'Chinese Social Studies 11: Politics', '<NAME>', '2', 'C', 11, 'A514', '401', '2018-04-19', '14:00:00', '16:00:00', -1),
(1167, 2018, 'Spring', 'Mid-term', 'Chinese Social Studies 11: Politics', '<NAME>', '1', 'A', 14, 'A511', '406', '2018-04-19', '14:00:00', '16:00:00', -1),
(1168, 2018, 'Spring', 'Mid-term', 'Chinese Social Studies 11: Politics', '<NAME>', '2', 'B', 15, 'A507', '407', '2018-04-19', '14:00:00', '16:00:00', -1),
(1169, 2018, 'Spring', 'Mid-term', 'Chinese Social Studies 11: Politics', '<NAME>', '1', 'C', 12, 'A514', '405', '2018-04-19', '14:00:00', '16:00:00', -1),
(1170, 2018, 'Spring', 'Mid-term', 'Chinese Social Studies 11: Politics', '<NAME>', '2', 'D', 17, 'A509', '408', '2018-04-19', '14:00:00', '16:00:00', -1),
(1171, 2018, 'Spring', 'Mid-term', 'Language Arts 9', 'Hu, Abby', '1,2', 'C', 1, 'A310', '303', '2018-04-19', '14:00:00', '16:00:00', -1),
(1172, 2018, 'Spring', 'Mid-term', 'Language Arts 9', 'Hu, Abby', '1,2', 'E', 2, 'A311', '305', '2018-04-19', '14:00:00', '16:00:00', -1),
(1173, 2018, 'Spring', 'Mid-term', 'BC Exam', 'ROSTER', '', '', 0, 'N/A', '501', '2018-04-20', '14:00:00', '17:00:00', -1),
(1174, 2018, 'Spring', 'Mid-term', 'BC Exam', 'ROSTER', '', '', 0, 'N/A', '502', '2018-04-20', '14:00:00', '17:00:00', -1),
(1175, 2018, 'Spring', 'Mid-term', 'BC Exam', 'ROSTER', '', '', 0, 'N/A', '503', '2018-04-20', '14:00:00', '17:00:00', -1),
(1176, 2018, 'Spring', 'Mid-term', 'BC Exam', 'ROSTER', '', '', 0, 'N/A', '505', '2018-04-20', '14:00:00', '17:00:00', -1),
(1177, 2018, 'Spring', 'Mid-term', 'BC Exam', 'ROSTER', '', '', 0, 'N/A', '506', '2018-04-20', '14:00:00', '17:00:00', -1),
(1178, 2018, 'Spring', 'Mid-term', 'BC Exam', 'ROSTER', '', '', 0, 'N/A', '507', '2018-04-20', '14:00:00', '17:00:00', -1),
(1179, 2018, 'Spring', 'Mid-term', 'BC Exam', 'ROSTER', '', '', 0, 'N/A', '508', '2018-04-20', '14:00:00', '17:00:00', -1),
(1180, 2018, 'Spring', 'Mid-term', 'BC Exam', 'ROSTER', '', '', 0, 'N/A', '509', '2018-04-20', '14:00:00', '17:00:00', -1),
(1181, 2018, 'Spring', 'Final', 'Biology 11', 'Awofolu, Patience', '1,2', 'E', 2, 'A122', '407', '2018-06-22', '08:00:00', '10:00:00', 17),
(1182, 2018, 'Spring', 'Final', 'Bridging Language Arts A', '<NAME>', '1,2', 'B', 12, 'A402', '314', '2018-06-22', '08:00:00', '10:00:00', 25),
(1183, 2018, 'Spring', 'Final', 'Bridging Language Arts A', '<NAME>', '1,2', 'D', 14, 'A405', '317', '2018-06-22', '08:00:00', '10:00:00', 26),
(1184, 2018, 'Spring', 'Final', 'Bridging Language Arts A', '<NAME>', '1,2', 'A', 11, 'A402', '313', '2018-06-22', '08:00:00', '10:00:00', 27),
(1185, 2018, 'Spring', 'Final', 'Bridging Language Arts A', '<NAME>', '1,2', 'C', 13, 'A401', '316', '2018-06-22', '08:00:00', '10:00:00', 27),
(1186, 2018, 'Spring', 'Final', 'Bridging Language Arts A', '<NAME>', '1,2', 'E', 15, 'A401', '318', '2018-06-22', '08:00:00', '10:00:00', 28),
(1187, 2018, 'Spring', 'Final', 'English 10', '<NAME>', '1,2', 'B', 7, 'A314', '310', '2018-06-22', '08:00:00', '10:00:00', 27),
(1188, 2018, 'Spring', 'Final', 'English 10', '<NAME>', '1,2', 'C', 3, 'A314', '306', '2018-06-22', '08:00:00', '10:00:00', 25),
(1189, 2018, 'Spring', 'Final', 'English 10', '<NAME>', '1,2', 'E', 5, 'A314', '308', '2018-06-22', '08:00:00', '10:00:00', 27),
(1190, 2018, 'Spring', 'Final', 'English 10', 'Poor, Jennifer', '1,2', 'A', 11, 'A401', '403', '2018-06-22', '08:00:00', '10:00:00', 23),
(1191, 2018, 'Spring', 'Final', 'English 10', 'Poor, Jennifer', '1,2', 'B', 12, 'A401', '405', '2018-06-22', '08:00:00', '10:00:00', 27),
(1192, 2018, 'Spring', 'Final', 'English 10', 'Power, Maggie', '1,2', 'A', 1, 'A318', '303', '2018-06-22', '08:00:00', '10:00:00', 24),
(1193, 2018, 'Spring', 'Final', 'English 10', 'Power, Maggie', '1,2', 'B', 2, 'A318', '305', '2018-06-22', '08:00:00', '10:00:00', 25),
(1194, 2018, 'Spring', 'Final', 'English 10', 'Power, Maggie', '1,2', 'C', 13, 'A318', '406', '2018-06-22', '08:00:00', '10:00:00', 27),
(1195, 2018, 'Spring', 'Final', 'English 10', 'Sibiya, Sizwe', '1,2', 'C', 8, 'A322', '311', '2018-06-22', '08:00:00', '10:00:00', 26),
(1196, 2018, 'Spring', 'Final', 'English 10', 'Sibiya, Sizwe', '1,2', 'D', 9, 'A322', '401', '2018-06-22', '08:00:00', '10:00:00', 25),
(1197, 2018, 'Spring', 'Final', 'English 10', 'Topinio, Jessica', '1,2', 'A', 6, 'A309', '309', '2018-06-22', '08:00:00', '10:00:00', 22),
(1198, 2018, 'Spring', 'Final', 'English 10', '<NAME>', '1,2', 'D', 4, 'A309', '307', '2018-06-22', '08:00:00', '10:00:00', 22),
(1199, 2018, 'Spring', 'Final', 'English 10', '<NAME>', '1,2', 'E', 10, 'A309', '402', '2018-06-22', '08:00:00', '10:00:00', 26),
(1200, 2018, 'Spring', 'Final', 'Foundations Language Arts A', '<NAME>', '1,2', 'C', 5, 'A402', '319', '2018-06-22', '08:00:00', '10:00:00', 28),
(1201, 2018, 'Spring', 'Final', 'Foundations Language Arts A', '<NAME>', '1,2', 'A', 6, 'A403', '320', '2018-06-22', '08:00:00', '10:00:00', 23),
(1202, 2018, 'Spring', 'Final', 'History 12', '<NAME>', '1,2', 'C', 2, 'A317', '408', '2018-06-22', '08:00:00', '10:00:00', 24),
(1203, 2018, 'Spring', 'Final', 'Language Arts 9', '<NAME>', '1,2', 'C', 1, 'A310', '321', '2018-06-22', '08:00:00', '10:00:00', 29),
(1204, 2018, 'Spring', 'Final', 'Language Arts 9', '<NAME>', '1,2', 'E', 2, 'A311', '322', '2018-06-22', '08:00:00', '10:00:00', 26),
(1205, 2018, 'Spring', 'Final', 'Chinese Social Studies 12', 'Chen, Yanan ', '2', 'A', 1, 'A516', '313', '2018-06-22', '11:00:00', '13:00:00', 23),
(1206, 2018, 'Spring', 'Final', 'Chinese Social Studies 12', 'Ch<NAME> ', '1', 'A', 2, 'A516', '314', '2018-06-22', '11:00:00', '13:00:00', 25),
(1207, 2018, 'Spring', 'Final', 'Chinese Social Studies 12', 'Chen, Yanan ', '2', 'C', 5, 'A516', '318', '2018-06-22', '11:00:00', '13:00:00', 26),
(1208, 2018, 'Spring', 'Final', 'Chinese Social Studies 12', 'Chen, Yanan ', '1', 'C', 6, 'A516', '319', '2018-06-22', '11:00:00', '13:00:00', 26),
(1209, 2018, 'Spring', 'Final', 'Chinese Social Studies 12', '<NAME> ', '2', 'D', 7, 'A516', '320', '2018-06-22', '11:00:00', '13:00:00', 29),
(1210, 2018, 'Spring', 'Final', 'Chinese Social Studies 12', '<NAME> ', '1', 'D', 8, 'A516', '321', '2018-06-22', '11:00:00', '13:00:00', 29),
(1211, 2018, 'Spring', 'Final', 'Chinese Social Studies 12', '<NAME> ', '2', 'E', 9, 'A516', '413', '2018-06-22', '11:00:00', '13:00:00', 26),
(1212, 2018, 'Spring', 'Final', 'Chinese Social Studies 12', '<NAME> ', '1', 'E', 10, 'A516', '414', '2018-06-22', '11:00:00', '13:00:00', 23),
(1213, 2018, 'Spring', 'Final', 'Chinese Social Studies 12', '<NAME> ', '2', 'A', 11, 'A514', '416', '2018-06-22', '11:00:00', '13:00:00', 24),
(1214, 2018, 'Spring', 'Final', 'Chinese Social Studies 12', '<NAME> ', '1', 'A', 12, 'A514', '417', '2018-06-22', '11:00:00', '13:00:00', 24),
(1215, 2018, 'Spring', 'Final', 'Chinese Social Studies 12', '<NAME> ', '2', 'B', 3, 'A514', '316', '2018-06-22', '11:00:00', '13:00:00', 27),
(1216, 2018, 'Spring', 'Final', 'Chinese Social Studies 12', '<NAME> ', '1', 'B', 4, 'A514', '317', '2018-06-22', '11:00:00', '13:00:00', 25),
(1217, 2018, 'Spring', 'Final', 'Chinese Social Studies 12', '<NAME> ', '2', 'D', 13, 'A514', '418', '2018-06-22', '11:00:00', '13:00:00', 28),
(1218, 2018, 'Spring', 'Final', 'Chinese Social Studies 12', '<NAME> ', '1', 'D', 14, 'A514', '419', '2018-06-22', '11:00:00', '13:00:00', 28),
(1219, 2018, 'Spring', 'Final', 'Chinese Social Studies 12', '<NAME> ', '2', 'E', 15, 'A514', '420', '2018-06-22', '11:00:00', '13:00:00', 19),
(1220, 2018, 'Spring', 'Final', 'Chinese Social Studies 12', '<NAME> ', '1', 'E', 16, 'A514', '421', '2018-06-22', '11:00:00', '13:00:00', 23),
(1221, 2018, 'Spring', 'Final', 'Mandarin Chinese 10', 'An, Lanlan ', '2', 'A', 12, 'A502', '502', '2018-06-22', '11:00:00', '13:00:00', 29),
(1222, 2018, 'Spring', 'Final', 'Mandarin Chinese 10', 'An, Lanlan ', '1', 'C', 15, 'A502', '506', '2018-06-22', '11:00:00', '13:00:00', 27),
(1223, 2018, 'Spring', 'Final', 'Mandarin Chinese 10', 'An, Lanlan ', '2', 'C', 16, 'A502', '507', '2018-06-22', '11:00:00', '13:00:00', 27),
(1224, 2018, 'Spring', 'Final', 'Mandarin Chinese 10', 'An, Lanlan ', '1', 'E', 19, 'A502', '510', '2018-06-22', '11:00:00', '13:00:00', 25),
(1225, 2018, 'Spring', 'Final', 'Mandarin Chinese 10', 'Jiang, Sisi ', '1', 'A', 1, 'A501', '401', '2018-06-22', '11:00:00', '13:00:00', 30),
(1226, 2018, 'Spring', 'Final', 'Mandarin Chinese 10', 'Jiang, Sisi ', '2', 'A', 2, 'A501', '402', '2018-06-22', '11:00:00', '13:00:00', 30),
(1227, 2018, 'Spring', 'Final', 'Mandarin Chinese 10', 'Jiang, Sisi ', '1', 'C', 5, 'A501', '406', '2018-06-22', '11:00:00', '13:00:00', 27),
(1228, 2018, 'Spring', 'Final', 'Mandarin Chinese 10', 'Jiang, Sisi ', '2', 'C', 6, 'A501', '407', '2018-06-22', '11:00:00', '13:00:00', 29),
(1229, 2018, 'Spring', 'Final', 'Mandarin Chinese 10', 'Jiang, Sisi ', '2', 'E', 10, 'A501', '411', '2018-06-22', '11:00:00', '13:00:00', 25),
(1230, 2018, 'Spring', 'Final', 'Mandarin Chinese 10', 'Tan, Jing ', '1', 'A', 11, 'A502', '501', '2018-06-22', '11:00:00', '13:00:00', 29),
(1231, 2018, 'Spring', 'Final', 'Mandarin Chinese 10', 'Tan, Jing ', '1', 'B', 3, 'A501', '403', '2018-06-22', '11:00:00', '13:00:00', 28),
(1232, 2018, 'Spring', 'Final', 'Mandarin Chinese 10', 'Tan, Jing ', '2', 'B', 4, 'A501', '405', '2018-06-22', '11:00:00', '13:00:00', 27),
(1233, 2018, 'Spring', 'Final', 'Mandarin Chinese 10', 'Tan, Jing ', '2', 'D', 8, 'A501', '409', '2018-06-22', '11:00:00', '13:00:00', 28),
(1234, 2018, 'Spring', 'Final', 'Mandarin Chinese 10', '<NAME> ', '1', 'E', 9, 'A501', '410', '2018-06-22', '11:00:00', '13:00:00', 27),
(1235, 2018, 'Spring', 'Final', 'Mandarin Chinese 10', '<NAME> ', '2', 'E', 20, 'A502', '511', '2018-06-22', '11:00:00', '13:00:00', 28),
(1236, 2018, 'Spring', 'Final', 'Mandarin Chinese 10', 'Yang, Dong ', '1', 'A', 17, 'A505', '508', '2018-06-22', '11:00:00', '13:00:00', 29),
(1237, 2018, 'Spring', 'Final', 'Mandarin Chinese 10', 'Yang, Dong ', '2', 'A', 18, 'A505', '509', '2018-06-22', '11:00:00', '13:00:00', 29),
(1238, 2018, 'Spring', 'Final', 'Mandarin Chinese 10', 'Yang, Dong ', '1', 'B', 13, 'A502', '503', '2018-06-22', '11:00:00', '13:00:00', 28),
(1239, 2018, 'Spring', 'Final', 'Mandarin Chinese 10', 'Yang, Dong ', '2', 'B', 14, 'A502', '505', '2018-06-22', '11:00:00', '13:00:00', 28),
(1240, 2018, 'Spring', 'Final', 'Mandarin Chinese 10', 'Yang, Dong ', '1', 'D', 7, 'A501', '408', '2018-06-22', '11:00:00', '13:00:00', 24),
(1241, 2018, 'Spring', 'Final', 'Calculus 12', '<NAME>', '1,2', 'B', 4, 'A423', '402', '2018-06-22', '14:00:00', '16:00:00', 28),
(1242, 2018, 'Spring', 'Final', 'Calculus 12', '<NAME>', '1,2', 'C', 5, 'A423', '403', '2018-06-22', '14:00:00', '16:00:00', 23),
(1243, 2018, 'Spring', 'Final', 'Calculus 12', '<NAME>', '1,2', 'D', 6, 'A423', '405', '2018-06-22', '14:00:00', '16:00:00', 24),
(1244, 2018, 'Spring', 'Final', 'Calculus 12', '<NAME>', '1,2', 'E', 7, 'A423', '406', '2018-06-22', '14:00:00', '16:00:00', 21),
(1245, 2018, 'Spring', 'Final', 'Calculus 12', '<NAME>', '1,2', 'A', 3, 'A421', '401', '2018-06-22', '14:00:00', '16:00:00', 25),
(1246, 2018, 'Spring', 'Final', 'Calculus 12', '<NAME>', '1,2', 'C', 9, 'A421', '407', '2018-06-22', '14:00:00', '16:00:00', 21),
(1247, 2018, 'Spring', 'Final', 'Calculus 12', '<NAME>', '1,2', 'D', 10, 'A421', '408', '2018-06-22', '14:00:00', '16:00:00', 28),
(1248, 2018, 'Spring', 'Final', 'Calculus 12', '<NAME>', '1,2', 'E', 11, 'A421', '409', '2018-06-22', '14:00:00', '16:00:00', 24),
(1249, 2018, 'Spring', 'Final', 'Communications 11', '<NAME>', '1,2', 'E', 19, 'A316', '318', '2018-06-22', '14:00:00', '16:00:00', 27),
(1250, 2018, 'Spring', 'Final', 'Communications 11', '<NAME>', '1,2', 'D', 17, 'A401', '317', '2018-06-22', '14:00:00', '16:00:00', 24),
(1251, 2018, 'Spring', 'Final', 'Communications 11', 'Sibiya, Sizwe', '1,2', 'A', 14, 'A322', '313', '2018-06-22', '14:00:00', '16:00:00', 26),
(1252, 2018, 'Spring', 'Final', 'Communications 11', 'Sibiya, Sizwe', '1,2', 'B', 15, 'A322', '314', '2018-06-22', '14:00:00', '16:00:00', 25),
(1253, 2018, 'Spring', 'Final', 'Communications 11', '<NAME>', '1,2', 'C', 16, 'A309', '316', '2018-06-22', '14:00:00', '16:00:00', 28),
(1254, 2018, 'Spring', 'Final', 'English 11', '<NAME>', '1,2', 'E', 18, 'A305', '320', '2018-06-22', '14:00:00', '16:00:00', 28),
(1255, 2018, 'Spring', 'Final', 'English 11', '<NAME>', '1,2', 'A', 15, 'A314', '319', '2018-06-22', '14:00:00', '16:00:00', 29),
(1256, 2018, 'Spring', 'Final', 'Language Arts 9A', 'Xiao, Suzie', '1,2', 'A', 1, 'A316', '321', '2018-06-22', '14:00:00', '16:00:00', 29),
(1257, 2018, 'Spring', 'Final', 'Language Arts 9A', 'Xiao, Suzie', '1,2', 'C', 2, 'A321', '322', '2018-06-22', '14:00:00', '16:00:00', 26),
(1258, 2018, 'Spring', 'Final', 'Pre-Calculus 12', '<NAME>', '1,2', 'A', 11, 'A418', '303', '2018-06-22', '14:00:00', '16:00:00', 26),
(1259, 2018, 'Spring', 'Final', 'Pre-Calculus 12', '<NAME>', '1,2', 'B', 12, 'A418', '305', '2018-06-22', '14:00:00', '16:00:00', 25),
(1260, 2018, 'Spring', 'Final', 'Pre-Calculus 12', '<NAME>', '1,2', 'C', 13, 'A418', '306', '2018-06-22', '14:00:00', '16:00:00', 22),
(1261, 2018, 'Spring', 'Final', 'Pre-Calculus 12', '<NAME>', '1,2', 'E', 15, 'A418', '307', '2018-06-22', '14:00:00', '16:00:00', 28),
(1262, 2018, 'Spring', 'Final', 'Pre-Calculus 12', '<NAME>', '1,2', 'A', 17, 'A423', '308', '2018-06-22', '14:00:00', '16:00:00', 23),
(1263, 2018, 'Spring', 'Final', 'Mandarin Chinese 11', '<NAME>', '1', 'B', 11, 'A505', '502', '2018-06-23', '08:00:00', '10:00:00', 28),
(1264, 2018, 'Spring', 'Final', 'Mandarin Chinese 11', '<NAME>', '1', 'C', 13, 'A505', '505', '2018-06-23', '08:00:00', '10:00:00', 30),
(1265, 2018, 'Spring', 'Final', 'Mandarin Chinese 11', '<NAME>', '2', 'C', 14, 'A505', '506', '2018-06-23', '08:00:00', '10:00:00', 25),
(1266, 2018, 'Spring', 'Final', 'Mandarin Chinese 11', '<NAME>', '1', 'E', 17, 'A505', '509', '2018-06-23', '08:00:00', '10:00:00', 25),
(1267, 2018, 'Spring', 'Final', 'Mandarin Chinese 11', '<NAME>', '2', 'E', 18, 'A505', '510', '2018-06-23', '08:00:00', '10:00:00', 21),
(1268, 2018, 'Spring', 'Final', 'Mandarin Chinese 11', '<NAME>', '1', 'A', 1, 'A503', '401', '2018-06-23', '08:00:00', '10:00:00', 27),
(1269, 2018, 'Spring', 'Final', 'Mandarin Chinese 11', '<NAME>', '2', 'A', 2, 'A503', '402', '2018-06-23', '08:00:00', '10:00:00', 28),
(1270, 2018, 'Spring', 'Final', 'Mandarin Chinese 11', '<NAME>', '1', 'C', 5, 'A503', '406', '2018-06-23', '08:00:00', '10:00:00', 28),
(1271, 2018, 'Spring', 'Final', 'Mandarin Chinese 11', '<NAME>', '2', 'C', 6, 'A503', '407', '2018-06-23', '08:00:00', '10:00:00', 26),
(1272, 2018, 'Spring', 'Final', 'Mandarin Chinese 11', '<NAME>', '1', 'E', 9, 'A503', '410', '2018-06-23', '08:00:00', '10:00:00', 26),
(1273, 2018, 'Spring', 'Final', 'Mandarin Chinese 11', '<NAME>', '1', 'B', 3, 'A503', '403', '2018-06-23', '08:00:00', '10:00:00', 26),
(1274, 2018, 'Spring', 'Final', 'Mandarin Chinese 11', '<NAME>', '2', 'B', 4, 'A503', '405', '2018-06-23', '08:00:00', '10:00:00', 24),
(1275, 2018, 'Spring', 'Final', 'Mandarin Chinese 11', '<NAME>', '1', 'D', 7, 'A503', '408', '2018-06-23', '08:00:00', '10:00:00', 26),
(1276, 2018, 'Spring', 'Final', 'Mandarin Chinese 11', '<NAME>', '2', 'D', 8, 'A503', '409', '2018-06-23', '08:00:00', '10:00:00', 25),
(1277, 2018, 'Spring', 'Final', 'Mandarin Chinese 11', '<NAME>', '2', 'E', 10, 'A503', '501', '2018-06-23', '08:00:00', '10:00:00', 25),
(1278, 2018, 'Spring', 'Final', 'Mandarin Chinese 11', '<NAME>', '2', 'B', 12, 'A505', '503', '2018-06-23', '08:00:00', '10:00:00', 27),
(1279, 2018, 'Spring', 'Final', 'Mandarin Chinese 11', '<NAME>', '1', 'D', 15, 'A505', '507', '2018-06-23', '08:00:00', '10:00:00', 26),
(1280, 2018, 'Spring', 'Final', 'Mandarin Chinese 11', '<NAME>', '2', 'D', 16, 'A505', '508', '2018-06-23', '08:00:00', '10:00:00', 25),
(1281, 2018, 'Spring', 'Final', 'Mandarin Chinese 12', 'D<NAME>', '1', 'A', 11, 'A507', '416', '2018-06-23', '08:00:00', '10:00:00', 26),
(1282, 2018, 'Spring', 'Final', 'Mandarin Chinese 12', 'D<NAME>', '1', 'C', 5, 'A507', '318', '2018-06-23', '08:00:00', '10:00:00', 26),
(1283, 2018, 'Spring', 'Final', 'Mandarin Chinese 12', 'D<NAME>', '1', 'D', 13, 'A507', '418', '2018-06-23', '08:00:00', '10:00:00', 29),
(1284, 2018, 'Spring', 'Final', 'Mandarin Chinese 12', 'D<NAME>', '2', 'D', 14, 'A507', '419', '2018-06-23', '08:00:00', '10:00:00', 29),
(1285, 2018, 'Spring', 'Final', 'Mandarin Chinese 12', '<NAME>', '2', 'E', 16, 'A507', '421', '2018-06-23', '08:00:00', '10:00:00', 24),
(1286, 2018, 'Spring', 'Final', 'Mandarin Chinese 12', '<NAME>', '1', 'A', 1, 'A506', '313', '2018-06-23', '08:00:00', '10:00:00', 23),
(1287, 2018, 'Spring', 'Final', 'Mandarin Chinese 12', '<NAME>', '2', 'A', 2, 'A506', '314', '2018-06-23', '08:00:00', '10:00:00', 24),
(1288, 2018, 'Spring', 'Final', 'Mandarin Chinese 12', '<NAME>', '2', 'C', 6, 'A506', '319', '2018-06-23', '08:00:00', '10:00:00', 27),
(1289, 2018, 'Spring', 'Final', 'Mandarin Chinese 12', '<NAME>', '1', 'E', 9, 'A506', '413', '2018-06-23', '08:00:00', '10:00:00', 26),
(1290, 2018, 'Spring', 'Final', 'Mandarin Chinese 12', '<NAME>', '1', 'B', 3, 'A506', '316', '2018-06-23', '08:00:00', '10:00:00', 28),
(1291, 2018, 'Spring', 'Final', 'Mandarin Chinese 12', '<NAME>', '2', 'B', 4, 'A506', '317', '2018-06-23', '08:00:00', '10:00:00', 25),
(1292, 2018, 'Spring', 'Final', 'Mandarin Chinese 12', '<NAME>', '1', 'D', 7, 'A506', '320', '2018-06-23', '08:00:00', '10:00:00', 29),
(1293, 2018, 'Spring', 'Final', 'Mandarin Chinese 12', '<NAME>', '2', 'D', 8, 'A506', '321', '2018-06-23', '08:00:00', '10:00:00', 30),
(1294, 2018, 'Spring', 'Final', 'Mandarin Chinese 12', '<NAME>', '2', 'E', 10, 'A506', '414', '2018-06-23', '08:00:00', '10:00:00', 22),
(1295, 2018, 'Spring', 'Final', 'Mandarin Chinese 12', '<NAME>', '2', 'A', 12, 'A507', '417', '2018-06-23', '08:00:00', '10:00:00', 24),
(1296, 2018, 'Spring', 'Final', 'Mandarin Chinese 12', '<NAME>', '1', 'E', 15, 'A507', '420', '2018-06-23', '08:00:00', '10:00:00', 21),
(1297, 2018, 'Spring', 'Final', 'PE/CSS 9', '<NAME> ', '1,2', 'B', 2, 'A309', '305', '2018-06-23', '08:00:00', '10:00:00', 26),
(1298, 2018, 'Spring', 'Final', 'PE/CSS 9', '<NAME> ', '1,2', 'D', 1, 'A306', '303', '2018-06-23', '08:00:00', '10:00:00', 29),
(1299, 2018, 'Spring', 'Final', 'Bridging Language Arts B', '<NAME>', '1,2', 'C', 13, 'A303', '316', '2018-06-23', '11:00:00', '13:00:00', 27),
(1300, 2018, 'Spring', 'Final', 'Bridging Language Arts B', '<NAME>', '1,2', 'B', 12, 'A307', '314', '2018-06-23', '11:00:00', '13:00:00', 25),
(1301, 2018, 'Spring', 'Final', 'Bridging Language Arts B', '<NAME>', '1,2', 'D', 14, 'A308', '317', '2018-06-23', '11:00:00', '13:00:00', 25),
(1302, 2018, 'Spring', 'Final', 'Bridging Language Arts B', '<NAME>', '1,2', 'E', 15, 'A308', '318', '2018-06-23', '11:00:00', '13:00:00', 29),
(1303, 2018, 'Spring', 'Final', 'Bridging Language Arts B', '<NAME>', '1,2', 'A', 11, 'A306', '313', '2018-06-23', '11:00:00', '13:00:00', 27),
(1304, 2018, 'Spring', 'Final', 'Communication Skills 9', '<NAME>', '1,2', 'A', 2, 'A422', '320', '2018-06-23', '11:00:00', '13:00:00', 26),
(1305, 2018, 'Spring', 'Final', 'Communication Skills 9', '<NAME>', '1,2', 'E', 1, 'A422', '319', '2018-06-23', '11:00:00', '13:00:00', 29),
(1306, 2018, 'Spring', 'Final', 'Grammar 10 B', '<NAME>', '1,2', 'D', 6, 'A402', '322', '2018-06-23', '11:00:00', '13:00:00', 23),
(1307, 2018, 'Spring', 'Final', 'Grammar 10 B', '<NAME>', '1,2', 'B', 5, 'A403', '321', '2018-06-23', '11:00:00', '13:00:00', 28),
(1308, 2018, 'Spring', 'Final', 'Social Studies 11', '<NAME>', '1,2', 'A', 11, 'A320', '406', '2018-06-23', '11:00:00', '13:00:00', 28),
(1309, 2018, 'Spring', 'Final', 'Social Studies 11', '<NAME>', '1,2', 'C', 8, 'A320', '402', '2018-06-23', '11:00:00', '13:00:00', 22),
(1310, 2018, 'Spring', 'Final', 'Social Studies 11', '<NAME>', '1,2', 'D', 9, 'A320', '403', '2018-06-23', '11:00:00', '13:00:00', 24),
(1311, 2018, 'Spring', 'Final', 'Social Studies 11', '<NAME>', '1,2', 'E', 10, 'A320', '405', '2018-06-23', '11:00:00', '13:00:00', 27),
(1312, 2018, 'Spring', 'Final', 'Social Studies 11', '<NAME>', '1,2', 'B', 12, 'A303', '407', '2018-06-23', '11:00:00', '13:00:00', 26),
(1313, 2018, 'Spring', 'Final', 'Social Studies 11', '<NAME>', '1,2', 'D', 14, 'A303', '409', '2018-06-23', '11:00:00', '13:00:00', 29),
(1314, 2018, 'Spring', 'Final', 'Social Studies 11', '<NAME>', '1,2', 'B', 7, 'A319', '401', '2018-06-23', '11:00:00', '13:00:00', 25),
(1315, 2018, 'Spring', 'Final', 'Social Studies 11', '<NAME>', '1,2', 'C', 13, 'A319', '408', '2018-06-23', '11:00:00', '13:00:00', 24),
(1316, 2018, 'Spring', 'Final', 'Social Studies 11', '<NAME>', '1,2', 'E', 19, 'A319', '506', '2018-06-23', '11:00:00', '13:00:00', 24),
(1317, 2018, 'Spring', 'Final', 'Social Studies 11', '<NAME>', '1,2', 'C', 18, 'A219', '505', '2018-06-23', '11:00:00', '13:00:00', 25),
(1318, 2018, 'Spring', 'Final', 'Social Studies 11', '<NAME>', '1,2', 'E', 15, 'A219', '501', '2018-06-23', '11:00:00', '13:00:00', 26),
(1319, 2018, 'Spring', 'Final', 'Social Studies 11', '<NAME>', '1,2', 'A', 16, 'A317', '502', '2018-06-23', '11:00:00', '13:00:00', 27),
(1320, 2018, 'Spring', 'Final', 'Social Studies 11', '<NAME>', '1,2', 'B', 17, 'A317', '503', '2018-06-23', '11:00:00', '13:00:00', 24),
(1321, 2018, 'Spring', 'Final', 'Chemistry 12', '<NAME>', '1,2', 'A', 4, 'A111', '509', '2018-06-23', '14:00:00', '16:00:00', 29),
(1322, 2018, 'Spring', 'Final', 'Chemistry 12', '<NAME>', '1,2', 'B', 5, 'A111', '510', '2018-06-23', '14:00:00', '16:00:00', 28),
(1323, 2018, 'Spring', 'Final', 'Chemistry 12', '<NAME>', '1,2', 'E', 7, 'A111', '511', '2018-06-23', '14:00:00', '16:00:00', 26),
(1324, 2018, 'Spring', 'Final', 'Communication Skills B', '<NAME>', '1,2', 'C', 6, 'A403', '305', '2018-06-23', '14:00:00', '16:00:00', 23),
(1325, 2018, 'Spring', 'Final', 'Communication Skills B', '<NAME>', '1,2', 'D', 5, 'A403', '303', '2018-06-23', '14:00:00', '16:00:00', 28),
(1326, 2018, 'Spring', 'Final', 'Foundations of Maths and Pre-calculus 10', '<NAME>', '1,2', 'A', 10, 'A414', '401', '2018-06-23', '14:00:00', '16:00:00', 24),
(1327, 2018, 'Spring', 'Final', 'Foundations of Maths and Pre-calculus 10', '<NAME>', '1,2', 'B', 11, 'A414', '402', '2018-06-23', '14:00:00', '16:00:00', 25),
(1328, 2018, 'Spring', 'Final', 'Foundations of Maths and Pre-calculus 10', '<NAME>', '1,2', 'C', 12, 'A414', '403', '2018-06-23', '14:00:00', '16:00:00', 29),
(1329, 2018, 'Spring', 'Final', 'Foundations of Maths and Pre-calculus 10', '<NAME>', '1,2', 'D', 18, 'A414', '409', '2018-06-23', '14:00:00', '16:00:00', 26),
(1330, 2018, 'Spring', 'Final', 'Foundations of Maths and Pre-calculus 10', '<NAME>', '1,2', 'A', 15, 'A406', '406', '2018-06-23', '14:00:00', '16:00:00', 25),
(1331, 2018, 'Spring', 'Final', 'Foundations of Maths and Pre-calculus 10', '<NAME>', '1,2', 'B', 28, 'A406', '507', '2018-06-23', '14:00:00', '16:00:00', 28),
(1332, 2018, 'Spring', 'Final', 'Foundations of Maths and Pre-calculus 10', '<NAME>', '1,2', 'B', 21, 'A409', '502', '2018-06-23', '14:00:00', '16:00:00', 26),
(1333, 2018, 'Spring', 'Final', 'Foundations of Maths and Pre-calculus 10', '<NAME>', '1,2', 'A', 26, 'A407', '506', '2018-06-23', '14:00:00', '16:00:00', 24),
(1334, 2018, 'Spring', 'Final', 'Foundations of Maths and Pre-calculus 10', '<NAME>', '1,2', 'E', 19, 'A406', '410', '2018-06-23', '14:00:00', '16:00:00', 28),
(1335, 2018, 'Spring', 'Final', 'Foundations of Maths and Pre-calculus 10', '<NAME>', '1,2', 'B', 16, 'A407', '407', '2018-06-23', '14:00:00', '16:00:00', 25),
(1336, 2018, 'Spring', 'Final', 'Foundations of Maths and Pre-calculus 10', '<NAME>', '1,2', 'C', 17, 'A407', '408', '2018-06-23', '14:00:00', '16:00:00', 26),
(1337, 2018, 'Spring', 'Final', 'Foundations of Maths and Pre-calculus 10', '<NAME>', '1,2', 'A', 20, 'A417', '501', '2018-06-23', '14:00:00', '16:00:00', 22),
(1338, 2018, 'Spring', 'Final', 'Foundations of Maths and Pre-calculus 10', '<NAME>', '1,2', 'D', 25, 'A417', '505', '2018-06-23', '14:00:00', '16:00:00', 26),
(1339, 2018, 'Spring', 'Final', 'Foundations of Maths and Pre-calculus 10', '<NAME>', '1,2', 'E', 22, 'A417', '503', '2018-06-23', '14:00:00', '16:00:00', 28),
(1340, 2018, 'Spring', 'Final', 'Foundations of Maths and Pre-calculus 10', '<NAME>', '1,2', 'B', 29, 'A419', '508', '2018-06-23', '14:00:00', '16:00:00', 23),
(1341, 2018, 'Spring', 'Final', 'Foundations of Maths and Pre-calculus 10', '<NAME>', '1,2', 'D', 13, 'A419', '405', '2018-06-23', '14:00:00', '16:00:00', 26),
(1342, 2018, 'Spring', 'Final', 'Math/Science 9', '<NAME>', '1,2', 'B', 1, 'A410', '306', '2018-06-23', '14:00:00', '16:00:00', 29),
(1343, 2018, 'Spring', 'Final', 'Math/Science 9', '<NAME>', '1,2', 'D', 2, 'A410', '307', '2018-06-23', '14:00:00', '16:00:00', 26),
(1345, 2018, 'Spring', 'Final', 'Chemistry 11', '<NAME>', '1,2', 'B', 7, 'A119', '305', '2018-06-25', '08:00:00', '10:00:00', 26);
INSERT INTO `ml_wh_examination_roomassignment` (`cid`, `year`, `semester`, `exam_name`, `course`, `teacher`, `day`, `block`, `section`, `regular_classroom`, `exam_room`, `exam_date`, `start_time`, `end_time`, `enrollment`) VALUES
(1346, 2018, 'Spring', 'Final', 'Chemistry 11', '<NAME>', '1,2', 'C', 8, 'A112', '306', '2018-06-25', '08:00:00', '10:00:00', 28),
(1347, 2018, 'Spring', 'Final', 'Chemistry 11', '<NAME>', '1,2', 'D', 9, 'A112', '307', '2018-06-25', '08:00:00', '10:00:00', 24),
(1348, 2018, 'Spring', 'Final', 'Chemistry 11', '<NAME>', '1,2', 'E', 10, 'A112', '308', '2018-06-25', '08:00:00', '10:00:00', 23),
(1349, 2018, 'Spring', 'Final', 'E-Exam English 12', 'ROSTER', '', '', 0, '', '413', '2018-06-25', '08:00:00', '10:00:00', 0),
(1350, 2018, 'Spring', 'Final', 'E-Exam English 12', 'ROSTER', '', '', 0, '', '414', '2018-06-25', '08:00:00', '10:00:00', 0),
(1351, 2018, 'Spring', 'Final', 'E-Exam English 12', 'ROSTER', '', '', 0, '', '416', '2018-06-25', '08:00:00', '10:00:00', 0),
(1352, 2018, 'Spring', 'Final', 'E-Exam English 12', 'ROSTER', '', '', 0, '', '417', '2018-06-25', '08:00:00', '10:00:00', 0),
(1353, 2018, 'Spring', 'Final', 'E-Exam English 12', 'ROSTER', '', '', 0, '', '418', '2018-06-25', '08:00:00', '10:00:00', 0),
(1354, 2018, 'Spring', 'Final', 'E-Exam English 12', 'ROSTER', '', '', 0, '', '419', '2018-06-25', '08:00:00', '10:00:00', 0),
(1355, 2018, 'Spring', 'Final', 'E-Exam English 12', 'ROSTER', '', '', 0, '', '420', '2018-06-25', '08:00:00', '10:00:00', 0),
(1356, 2018, 'Spring', 'Final', 'Social Studies 10', '<NAME>', '1,2', 'D', 12, 'A316', '310', '2018-06-25', '08:00:00', '10:00:00', 30),
(1357, 2018, 'Spring', 'Final', 'Social Studies 10', '<NAME>', '1,2', 'C', 11, 'A313', '309', '2018-06-25', '08:00:00', '10:00:00', 30),
(1358, 2018, 'Spring', 'Final', 'Physics 11', '<NAME>', '1,2', 'D', 9, 'A407', '306', '2018-06-25', '11:00:00', '13:00:00', 23),
(1359, 2018, 'Spring', 'Final', 'Physics 11', '<NAME>', '1,2', 'E', 10, 'A407', '307', '2018-06-25', '11:00:00', '13:00:00', 19),
(1360, 2018, 'Spring', 'Final', 'Physics 11', '<NAME>', '1,2', 'A', 7, 'A405', '303', '2018-06-25', '11:00:00', '13:00:00', 25),
(1361, 2018, 'Spring', 'Final', 'Physics 11', '<NAME>', '1,2', 'B', 8, 'A405', '305', '2018-06-25', '11:00:00', '13:00:00', 18),
(1362, 2018, 'Spring', 'Final', 'Science 10', 'Awofolu, Patience', '1,2', 'A', 6, 'A122', '401', '2018-06-25', '11:00:00', '13:00:00', 26),
(1363, 2018, 'Spring', 'Final', 'Science 10', 'Awofolu, Patience', '1,2', 'B', 12, 'A122', '408', '2018-06-25', '11:00:00', '13:00:00', 25),
(1364, 2018, 'Spring', 'Final', 'Science 10', 'Awofolu, Patience', '1,2', 'D', 14, 'A122', '309', '2018-06-25', '11:00:00', '13:00:00', 24),
(1365, 2018, 'Spring', 'Final', 'Science 10', '<NAME>', '1,2', 'D', 9, 'A119', '405', '2018-06-25', '11:00:00', '13:00:00', 21),
(1366, 2018, 'Spring', 'Final', 'Science 10', '<NAME>', '1,2', 'E', 10, 'A119', '406', '2018-06-25', '11:00:00', '13:00:00', 27),
(1367, 2018, 'Spring', 'Final', 'Science 10', '<NAME>', '1,2', 'C', 13, 'A308', '308', '2018-06-25', '11:00:00', '13:00:00', 30),
(1368, 2018, 'Spring', 'Final', 'Science 10', '<NAME>', '1,2', 'A', 16, 'A115', '311', '2018-06-25', '11:00:00', '13:00:00', 26),
(1369, 2018, 'Spring', 'Final', 'Science 10', '<NAME>', '1,2', 'B', 7, 'A115', '402', '2018-06-25', '11:00:00', '13:00:00', 27),
(1370, 2018, 'Spring', 'Final', 'Science 10', '<NAME>', '1,2', 'C', 8, 'A416', '403', '2018-06-25', '11:00:00', '13:00:00', 28),
(1371, 2018, 'Spring', 'Final', 'Science 10', '<NAME>', '1,2', 'A', 11, 'A419', '407', '2018-06-25', '11:00:00', '13:00:00', 25),
(1372, 2018, 'Spring', 'Final', 'Science 10', '<NAME>', '1,2', 'E', 15, 'A419', '310', '2018-06-25', '11:00:00', '13:00:00', 26),
(1373, 2018, 'Spring', 'Final', 'Biology 12', '<NAME>', '1,2', 'B', 3, 'A112', '303', '2018-06-25', '14:00:00', '16:00:00', 27),
(1374, 2018, 'Spring', 'Final', 'Chinese Social Studies 11: Politics', '<NAME>', '2', 'A', 13, 'A511', '403', '2018-06-25', '14:00:00', '16:00:00', 26),
(1375, 2018, 'Spring', 'Final', 'Chinese Social Studies 11: Politics', '<NAME>', '1', 'B', 16, 'A516', '407', '2018-06-25', '14:00:00', '16:00:00', 22),
(1376, 2018, 'Spring', 'Final', 'Chinese Social Studies 11: Politics', '<NAME>', '2', 'C', 11, 'A514', '401', '2018-06-25', '14:00:00', '16:00:00', 24),
(1377, 2018, 'Spring', 'Final', 'Chinese Social Studies 11: Politics', '<NAME>', '1', 'A', 14, 'A511', '405', '2018-06-25', '14:00:00', '16:00:00', 27),
(1378, 2018, 'Spring', 'Final', 'Chinese Social Studies 11: Politics', '<NAME>', '2', 'B', 15, 'A507', '406', '2018-06-25', '14:00:00', '16:00:00', 24),
(1379, 2018, 'Spring', 'Final', 'Chinese Social Studies 11: Politics', '<NAME>', '1', 'C', 12, 'A514', '402', '2018-06-25', '14:00:00', '16:00:00', 24),
(1380, 2018, 'Spring', 'Final', 'Chinese Social Studies 11: Politics', '<NAME>', '2', 'D', 17, 'A509', '408', '2018-06-25', '14:00:00', '16:00:00', 28),
(1381, 2018, 'Spring', 'Final', 'Comparative Civilizations 12', '<NAME>', '1,2', 'D', 4, 'A319', '306', '2018-06-25', '14:00:00', '16:00:00', 29),
(1382, 2018, 'Spring', 'Final', 'Comparative Civilizations 12', '<NAME>', '1,2', 'A', 3, 'A313', '305', '2018-06-25', '14:00:00', '16:00:00', 27),
(1383, 2018, 'Spring', 'Final', 'Comparative Civilizations 12', '<NAME>', '1,2', 'E', 5, 'A313', '307', '2018-06-25', '14:00:00', '16:00:00', 29),
(1384, 2018, 'Spring', 'Final', 'E-Exam Graduation Numeracy Assessment', 'ROSTER', '', '', 0, '', '313', '2018-06-26', '08:00:00', '10:00:00', 0),
(1385, 2018, 'Spring', 'Final', 'E-Exam Graduation Numeracy Assessment', 'ROSTER', '', '', 0, '', '314', '2018-06-26', '08:00:00', '10:00:00', 0),
(1386, 2018, 'Spring', 'Final', 'E-Exam Graduation Numeracy Assessment', 'ROSTER', '', '', 0, '', '316', '2018-06-26', '08:00:00', '10:00:00', 0),
(1387, 2018, 'Spring', 'Final', 'E-Exam Graduation Numeracy Assessment', 'ROSTER', '', '', 0, '', '317', '2018-06-26', '08:00:00', '10:00:00', 0),
(1388, 2018, 'Spring', 'Final', 'E-Exam Graduation Numeracy Assessment', 'ROSTER', '', '', 0, '', '318', '2018-06-26', '08:00:00', '10:00:00', 0),
(1389, 2018, 'Spring', 'Final', 'E-Exam Graduation Numeracy Assessment', 'ROSTER', '', '', 0, '', '319', '2018-06-26', '08:00:00', '10:00:00', 0),
(1390, 2018, 'Spring', 'Final', 'E-Exam Graduation Numeracy Assessment', 'ROSTER', '', '', 0, '', '320', '2018-06-26', '08:00:00', '10:00:00', 0),
(1391, 2018, 'Spring', 'Final', 'E-Exam Graduation Numeracy Assessment', 'ROSTER', '', '', 0, '', '321', '2018-06-26', '08:00:00', '10:00:00', 0),
(1392, 2018, 'Spring', 'Final', 'E-Exam Graduation Numeracy Assessment', 'ROSTER', '', '', 0, '', '322', '2018-06-26', '08:00:00', '10:00:00', 0),
(1393, 2018, 'Spring', 'Final', 'E-Exam Graduation Numeracy Assessment', 'ROSTER', '', '', 0, '', '413', '2018-06-26', '08:00:00', '10:00:00', 0),
(1394, 2018, 'Spring', 'Final', 'E-Exam Graduation Numeracy Assessment', 'ROSTER', '', '', 0, '', '414', '2018-06-26', '08:00:00', '10:00:00', 0),
(1395, 2018, 'Spring', 'Final', 'E-Exam Graduation Numeracy Assessment', 'ROSTER', '', '', 0, '', '416', '2018-06-26', '08:00:00', '10:00:00', 0),
(1396, 2018, 'Spring', 'Final', 'E-Exam Graduation Numeracy Assessment', 'ROSTER', '', '', 0, '', '417', '2018-06-26', '08:00:00', '10:00:00', 0),
(1397, 2018, 'Spring', 'Final', 'E-Exam Graduation Numeracy Assessment', 'ROSTER', '', '', 0, '', '418', '2018-06-26', '08:00:00', '10:00:00', 0),
(1398, 2018, 'Spring', 'Final', 'E-Exam Graduation Numeracy Assessment', 'ROSTER', '', '', 0, '', '419', '2018-06-26', '08:00:00', '10:00:00', 0),
(1399, 2018, 'Spring', 'Final', 'E-Exam Graduation Numeracy Assessment', 'ROSTER', '', '', 0, '', '420', '2018-06-26', '08:00:00', '10:00:00', 0),
(1400, 2018, 'Spring', 'Final', 'E-Exam Graduation Numeracy Assessment', 'ROSTER', '', '', 0, '', '421', '2018-06-26', '08:00:00', '10:00:00', 0),
(1401, 2018, 'Spring', 'Final', 'Chinese Social Studies 11', '<NAME>', '2', 'B', 3, 'A510', '316', '2018-06-26', '14:00:00', '16:00:00', 27),
(1402, 2018, 'Spring', 'Final', 'Chinese Social Studies 11', '<NAME>', '1', 'B', 4, 'A510', '317', '2018-06-26', '14:00:00', '16:00:00', 24),
(1403, 2018, 'Spring', 'Final', 'Chinese Social Studies 11', '<NAME>', '2', 'D', 7, 'A510', '320', '2018-06-26', '14:00:00', '16:00:00', 26),
(1404, 2018, 'Spring', 'Final', 'Chinese Social Studies 11', '<NAME>', '1', 'D', 8, 'A510', '321', '2018-06-26', '14:00:00', '16:00:00', 26),
(1405, 2018, 'Spring', 'Final', 'Chinese Social Studies 11', '<NAME>', '2', 'E', 9, 'A510', '322', '2018-06-26', '14:00:00', '16:00:00', 25),
(1406, 2018, 'Spring', 'Final', 'Chinese Social Studies 11', '<NAME>', '1', 'E', 18, 'A511', '423', '2018-06-26', '14:00:00', '16:00:00', 21),
(1407, 2018, 'Spring', 'Final', 'Chinese Social Studies 11', '<NAME>', '2', 'B', 11, 'A511', '414', '2018-06-26', '14:00:00', '16:00:00', 27),
(1408, 2018, 'Spring', 'Final', 'Chinese Social Studies 11', '<NAME>', '1', 'B', 12, 'A511', '416', '2018-06-26', '14:00:00', '16:00:00', 27),
(1409, 2018, 'Spring', 'Final', 'Chinese Social Studies 11', '<NAME>', '2', 'D', 15, 'A511', '419', '2018-06-26', '14:00:00', '16:00:00', 25),
(1410, 2018, 'Spring', 'Final', 'Chinese Social Studies 11', '<NAME>', '1', 'D', 16, 'A511', '420', '2018-06-26', '14:00:00', '16:00:00', 25),
(1411, 2018, 'Spring', 'Final', 'Chinese Social Studies 11', '<NAME>', '2', 'C', 13, 'A511', '417', '2018-06-26', '14:00:00', '16:00:00', 29),
(1412, 2018, 'Spring', 'Final', 'Chinese Social Studies 11', '<NAME>', '1', 'C', 14, 'A511', '418', '2018-06-26', '14:00:00', '16:00:00', 25),
(1413, 2018, 'Spring', 'Final', 'Chinese Social Studies 11', '<NAME>', '2', 'E', 17, 'A511', '421', '2018-06-26', '14:00:00', '16:00:00', 26),
(1414, 2018, 'Spring', 'Final', 'Chinese Social Studies 11', '<NAME>', '2', 'A', 1, 'A510', '313', '2018-06-26', '14:00:00', '16:00:00', 27),
(1415, 2018, 'Spring', 'Final', 'Chinese Social Studies 11', '<NAME>', '1', 'A', 2, 'A510', '314', '2018-06-26', '14:00:00', '16:00:00', 27),
(1416, 2018, 'Spring', 'Final', 'Chinese Social Studies 11', '<NAME>', '2', 'C', 5, 'A510', '318', '2018-06-26', '14:00:00', '16:00:00', 28),
(1417, 2018, 'Spring', 'Final', 'Chinese Social Studies 11', '<NAME>', '1', 'C', 6, 'A510', '319', '2018-06-26', '14:00:00', '16:00:00', 27),
(1418, 2018, 'Spring', 'Final', 'Chinese Social Studies 11', '<NAME>', '1', 'E', 10, 'A510', '413', '2018-06-26', '14:00:00', '16:00:00', 26),
(1419, 2018, 'Spring', 'Final', 'Physics 12', 'Zhao, Le', '1,2', 'C', 5, 'A405', '207', '2018-06-26', '14:00:00', '16:00:00', 23),
(1420, 2018, 'Spring', 'Final', 'Physics 12', 'Zhao, Le', '1,2', 'E', 6, 'A405', '208', '2018-06-26', '14:00:00', '16:00:00', 20),
(1421, 2018, 'Spring', 'Final', 'E-Exam Communications 12', 'ROSTER', '', '', 1, '', '313', '2018-06-27', '08:00:00', '10:00:00', 0),
(1422, 2018, 'Spring', 'Final', 'E-Exam Communications 12', 'ROSTER', '', '', 2, '', '314', '2018-06-27', '08:00:00', '10:00:00', 0),
(1423, 2018, 'Spring', 'Final', 'E-Exam Communications 12', 'ROSTER', '', '', 3, '', '316', '2018-06-27', '08:00:00', '10:00:00', 0),
(1424, 2018, 'Spring', 'Final', 'E-Exam Communications 12', 'ROSTER', '', '', 4, '', '317', '2018-06-27', '08:00:00', '10:00:00', 0),
(1425, 2018, 'Spring', 'Final', 'E-Exam Communications 12', 'ROSTER', '', '', 5, '', '318', '2018-06-27', '08:00:00', '10:00:00', 0),
(1426, 2018, 'Spring', 'Final', 'E-Exam Communications 12', 'ROSTER', '', '', 6, '', '319', '2018-06-27', '08:00:00', '10:00:00', 0),
(1427, 2018, 'Spring', 'Final', 'E-Exam Communications 12', 'ROSTER', '', '', 7, '', '320', '2018-06-27', '08:00:00', '10:00:00', 0),
(1428, 2018, 'Spring', 'Final', 'E-Exam Communications 12', 'ROSTER', '', '', 8, '', '321', '2018-06-27', '08:00:00', '10:00:00', 0),
(1429, 2018, 'Spring', 'Final', 'E-Exam Communications 12', 'ROSTER', '', '', 9, '', '322', '2018-06-27', '08:00:00', '10:00:00', 0),
(1430, 2018, 'Spring', 'Final', 'E-Exam Communications 12', 'ROSTER', '', '', 10, '', '413', '2018-06-27', '08:00:00', '10:00:00', 0),
(1431, 2018, 'Spring', 'Final', 'E-Exam Communications 12', 'ROSTER', '', '', 11, '', '414', '2018-06-27', '08:00:00', '10:00:00', 0),
(1432, 2018, 'Spring', 'Final', 'E-Exam Communications 12', 'ROSTER', '', '', 12, '', '416', '2018-06-27', '08:00:00', '10:00:00', 0),
(1433, 2018, 'Spring', 'Final', 'E-Exam Communications 12', 'ROSTER', '', '', 13, '', '417', '2018-06-27', '08:00:00', '10:00:00', 0),
(1434, 2018, 'Spring', 'Final', 'E-Exam Communications 12', 'ROSTER', '', '', 14, '', '418', '2018-06-27', '08:00:00', '10:00:00', 0),
(1435, 2018, 'Spring', 'Final', 'E-Exam Communications 12', 'ROSTER', '', '', 15, '', '419', '2018-06-27', '08:00:00', '10:00:00', 0),
(1436, 2018, 'Spring', 'Final', 'E-Exam Communications 12', 'ROSTER', '', '', 16, '', '420', '2018-06-27', '08:00:00', '10:00:00', 0),
(1437, 2018, 'Spring', 'Final', 'E-Exam Communications 12', 'ROSTER', '', '', 17, '', '421', '2018-06-27', '08:00:00', '10:00:00', 0),
(1438, 2018, 'Spring', 'Final', 'Chinese Social Studies 10', '<NAME> ', '2', 'A', 17, 'A319', '508', '2018-06-27', '10:00:00', '12:00:00', 29),
(1439, 2018, 'Spring', 'Final', 'Chinese Social Studies 10', 'Jiao, Yang ', '1', 'A', 18, 'A511', '509', '2018-06-27', '10:00:00', '12:00:00', 29),
(1440, 2018, 'Spring', 'Final', 'Chinese Social Studies 10', 'Jiao, Yang ', '2', 'C', 5, 'A508', '406', '2018-06-27', '10:00:00', '12:00:00', 28),
(1441, 2018, 'Spring', 'Final', 'Chinese Social Studies 10', 'Jiao, Yang ', '1', 'C', 6, 'A508', '407', '2018-06-27', '10:00:00', '12:00:00', 29),
(1442, 2018, 'Spring', 'Final', 'Chinese Social Studies 10', '<NAME> ', '1', 'E', 20, 'A509', '511', '2018-06-27', '10:00:00', '12:00:00', 27),
(1443, 2018, 'Spring', 'Final', 'Chinese Social Studies 10', 'Tian, Fei ', '2', 'B', 13, 'A509', '503', '2018-06-27', '10:00:00', '12:00:00', 28),
(1444, 2018, 'Spring', 'Final', 'Chinese Social Studies 10', 'Tian, Fei ', '1', 'B', 14, 'A509', '505', '2018-06-27', '10:00:00', '12:00:00', 28),
(1445, 2018, 'Spring', 'Final', 'Chinese Social Studies 10', '<NAME> ', '2', 'D', 7, 'A508', '408', '2018-06-27', '10:00:00', '12:00:00', 25),
(1446, 2018, 'Spring', 'Final', 'Chinese Social Studies 10', '<NAME> ', '2', 'E', 9, 'A508', '410', '2018-06-27', '10:00:00', '12:00:00', 26),
(1447, 2018, 'Spring', 'Final', 'Chinese Social Studies 10', '<NAME>i ', '1', 'E', 10, 'A508', '411', '2018-06-27', '10:00:00', '12:00:00', 25),
(1448, 2018, 'Spring', 'Final', 'Chinese Social Studies 10', '<NAME> ', '2', 'A', 1, 'A508', '401', '2018-06-27', '10:00:00', '12:00:00', 30),
(1449, 2018, 'Spring', 'Final', 'Chinese Social Studies 10', '<NAME> ', '1', 'A', 2, 'A508', '402', '2018-06-27', '10:00:00', '12:00:00', 29),
(1450, 2018, 'Spring', 'Final', 'Chinese Social Studies 10', 'X<NAME> ', '2', 'B', 3, 'A508', '403', '2018-06-27', '10:00:00', '12:00:00', 29),
(1451, 2018, 'Spring', 'Final', 'Chinese Social Studies 10', '<NAME> ', '1', 'B', 4, 'A508', '405', '2018-06-27', '10:00:00', '12:00:00', 27),
(1452, 2018, 'Spring', 'Final', 'Chinese Social Studies 10', '<NAME> ', '1', 'D', 8, 'A508', '409', '2018-06-27', '10:00:00', '12:00:00', 27),
(1453, 2018, 'Spring', 'Final', 'Chinese Social Studies 10', '<NAME> ', '2', 'A', 11, 'A509', '501', '2018-06-27', '10:00:00', '12:00:00', 30),
(1454, 2018, 'Spring', 'Final', 'Chinese Social Studies 10', '<NAME> ', '1', 'A', 12, 'A509', '502', '2018-06-27', '10:00:00', '12:00:00', 30),
(1455, 2018, 'Spring', 'Final', 'Chinese Social Studies 10', '<NAME> ', '2', 'C', 15, 'A509', '506', '2018-06-27', '10:00:00', '12:00:00', 26),
(1456, 2018, 'Spring', 'Final', 'Chinese Social Studies 10', '<NAME> ', '1', 'C', 16, 'A509', '507', '2018-06-27', '10:00:00', '12:00:00', 26),
(1457, 2018, 'Spring', 'Final', 'Chinese Social Studies 10', '<NAME> ', '2', 'E', 19, 'A509', '510', '2018-06-27', '10:00:00', '12:00:00', 24),
(1458, 2018, 'Spring', 'Final', 'Conflict Exams', 'ROSTER', '', '', 0, '', '207', '2018-06-27', '14:00:00', '16:00:00', 0),
(1459, 2018, 'Spring', 'Mid-term', 'Conflict Exams', 'ROSTER', '', '', 0, '', '207', '2018-04-20', '14:00:00', '16:00:00', 0);
-- --------------------------------------------------------
--
-- Table structure for table `ml_wh_examination_user`
--
CREATE TABLE `ml_wh_examination_user` (
`year` year(4) NOT NULL,
`exam_name` enum('Mid-term','Final') NOT NULL,
`semester` enum('Fall','Spring') NOT NULL,
`cid` int(11) NOT NULL,
`studentNumber` int(11) NOT NULL,
`courseList` text NOT NULL,
`time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `ml_wh_examination_user`
--
INSERT INTO `ml_wh_examination_user` (`year`, `exam_name`, `semester`, `cid`, `studentNumber`, `courseList`, `time`) VALUES
(2017, 'Mid-term', 'Fall', 13, 18020057, '317,319', '0000-00-00 00:00:00'),
(2018, 'Final', 'Fall', 14, 18020054, '', '2018-06-19 15:43:58'),
(2017, 'Mid-term', 'Fall', 21, 18020554, '', '0000-00-00 00:00:00'),
(2017, 'Mid-term', 'Fall', 22, 18020055, '327,369,392,520,545', '2017-11-05 12:17:23'),
(2018, 'Final', 'Fall', 25, 18028004, '627,666,746,780,822,867', '2018-06-19 15:43:58'),
(2017, 'Mid-term', 'Fall', 26, 18020056, '329,364,517,553', '0000-00-00 00:00:00'),
(2018, 'Final', 'Fall', 27, 18029027, '618,656,704,750,776,893', '2018-06-19 15:43:58'),
(2017, 'Mid-term', 'Fall', 28, 18020856, '329,364,517,553', '0000-00-00 00:00:00'),
(2017, 'Mid-term', 'Fall', 29, 18021089, '338,369,417,519,545', '0000-00-00 00:00:00'),
(2017, 'Mid-term', 'Fall', 30, 18029008, '338,369,479,520,545', '0000-00-00 00:00:00'),
(2017, 'Mid-term', 'Fall', 31, 18021241, '331,375,391,521,549', '0000-00-00 00:00:00'),
(2017, 'Mid-term', 'Fall', 32, 19020115, '312,413,465,497,503,532', '0000-00-00 00:00:00'),
(2017, 'Mid-term', 'Fall', 33, 18021099, '551', '0000-00-00 00:00:00'),
(2018, 'Final', 'Fall', 34, 18020132, '617,670,746,775,889', '2018-06-19 15:43:58'),
(2017, 'Mid-term', 'Fall', 35, 18021217, '325,375,391,436,549', '0000-00-00 00:00:00'),
(2018, 'Final', 'Fall', 36, 18020074, '614,660,782,889', '2018-06-19 15:43:58'),
(2017, 'Mid-term', 'Fall', 37, 18020103, '323,366,393,559', '0000-00-00 00:00:00'),
(2018, 'Final', 'Fall', 38, 18021184, '623,666,744,780', '2018-06-19 15:43:58'),
(2018, 'Final', 'Fall', 39, 18029011, '616,666,744,780,889', '2018-06-19 15:43:58'),
(2017, 'Mid-term', 'Fall', 40, 18029031, '334,388', '0000-00-00 00:00:00'),
(2017, 'Mid-term', 'Fall', 41, 18028001, '337,371,392,511,547', '2017-11-05 11:59:33'),
(2018, 'Final', 'Fall', 42, 18020131, '625,662,701,784', '2018-06-19 15:43:58'),
(2018, 'Final', 'Fall', 43, 18020130, '821', '2018-06-19 15:43:58'),
(2017, 'Mid-term', 'Fall', 44, 18020101, '335,375,391,524,549', '0000-00-00 00:00:00'),
(2018, 'Final', 'Fall', 45, 18021066, '626,668,751,773,893', '2018-06-19 15:43:58'),
(2017, 'Mid-term', 'Fall', 46, 18029041, '326,390,519', '0000-00-00 00:00:00'),
(2017, 'Mid-term', 'Fall', 47, 18020027, '338,373,388,555,577', '0000-00-00 00:00:00'),
(2018, 'Final', 'Fall', 48, 18021227, '622,666,742,780,848,888', '2018-06-19 15:43:58'),
(2018, 'Final', 'Fall', 50, 18020113, '626,666,741,780', '2018-06-19 15:43:58'),
(2017, 'Mid-term', 'Fall', 52, 18021136, '520', '0000-00-00 00:00:00'),
(2018, 'Final', 'Fall', 53, 18021133, '618,666,750,780,848,889', '2018-06-19 15:43:58'),
(2017, 'Mid-term', 'Fall', 54, 17021247, '338,378,436,553', '0000-00-00 00:00:00'),
(2018, 'Final', 'Fall', 55, 18021041, '619,668,748,773,891', '2018-06-19 15:43:58'),
(2018, 'Final', 'Fall', 56, 18021031, '625,662,779,867,894', '2018-06-19 15:43:58'),
(2017, 'Mid-term', 'Fall', 57, 18021085, '325,375,391,526,549', '0000-00-00 00:00:00'),
(2017, 'Mid-term', 'Fall', 58, 18021122, '338,364,524,553', '0000-00-00 00:00:00'),
(2018, 'Final', 'Fall', 59, 18021102, '629,662,703,743,784', '2018-06-19 15:43:58'),
(2017, 'Mid-term', 'Fall', 60, 18021032, '323,375,389,549,576', '0000-00-00 00:00:00'),
(2017, 'Mid-term', 'Fall', 61, 18021197, '327,369,519,545,576', '0000-00-00 00:00:00'),
(2017, 'Mid-term', 'Fall', 62, 18029028, '327,379,478,519,559', '0000-00-00 00:00:00'),
(2018, 'Final', 'Fall', 63, 18020078, '618,662,784,867,894', '2018-06-19 15:43:58'),
(2018, 'Final', 'Fall', 64, 18020019, '625,668,745,773,892', '2018-06-19 15:43:58'),
(2018, 'Final', 'Fall', 65, 18021090, '630,670,786,894', '2018-06-19 15:43:58'),
(2018, 'Final', 'Fall', 66, 18020084, '628,656,743,776,868', '2018-06-19 15:43:58'),
(2018, 'Final', 'Fall', 67, 18028038, '816', '2018-06-19 15:43:58'),
(2017, 'Mid-term', 'Fall', 68, 18020110, '', '0000-00-00 00:00:00'),
(2018, 'Final', 'Fall', 69, 18021140, '627,670,786,890', '2018-06-19 15:43:58'),
(2018, 'Final', 'Fall', 70, 18021204, '624,670,741,786,868,892', '2018-06-19 15:43:58'),
(2017, 'Mid-term', 'Fall', 71, 18021195, '328,369,418,498,526,545', '0000-00-00 00:00:00'),
(2017, 'Mid-term', 'Fall', 72, 15049008, '388', '0000-00-00 00:00:00'),
(2018, 'Final', 'Fall', 73, 18021530, '620,658,748,772,889', '2018-06-19 15:43:58'),
(2017, 'Mid-term', 'Fall', 74, 18020138, '572', '2017-11-05 11:33:30'),
(2017, 'Mid-term', 'Fall', 75, 18020191, '332,366,414,496,524,557', '0000-00-00 00:00:00'),
(2017, 'Mid-term', 'Fall', 76, 18021142, '324,366,417,526,557', '0000-00-00 00:00:00'),
(2018, 'Final', 'Fall', 77, 18020075, '614,662,703,749,779,867', '2018-06-19 15:43:58'),
(2017, 'Mid-term', 'Fall', 78, 18029021, '321,366,437,526,557', '0000-00-00 00:00:00'),
(2017, 'Mid-term', 'Fall', 79, 18021063, '321,366,391,557', '0000-00-00 00:00:00'),
(2017, 'Mid-term', 'Fall', 80, 18021082, '322,378,524,553', '0000-00-00 00:00:00'),
(2017, 'Mid-term', 'Fall', 81, 18021077, '326,375,393,521,549', '2017-11-05 11:30:31'),
(2017, 'Mid-term', 'Fall', 82, 18021228, '332,368,523,559', '0000-00-00 00:00:00'),
(2018, 'Final', 'Fall', 83, 18021040, '625,670,686,722,786', '2018-06-19 15:43:58'),
(2017, 'Mid-term', 'Fall', 84, 18038008, '', '0000-00-00 00:00:00'),
(2018, 'Final', 'Fall', 85, 18020126, '624,658,750,772,867', '2018-06-19 15:43:58'),
(2017, 'Mid-term', 'Fall', 86, 18021179, '323,369,525,545', '0000-00-00 00:00:00'),
(2017, 'Mid-term', 'Fall', 87, 18028008, '', '0000-00-00 00:00:00'),
(2017, 'Mid-term', 'Fall', 88, 18020159, '324,371,390,547', '0000-00-00 00:00:00'),
(2017, 'Mid-term', 'Fall', 89, 18021020, '338,369,393,525,545', '0000-00-00 00:00:00'),
(2017, 'Mid-term', 'Fall', 90, 18021106, '525', '2017-11-05 12:25:50'),
(2018, 'Final', 'Fall', 92, 18020104, '615,664,749,785,890', '2018-06-19 15:43:58'),
(2017, 'Mid-term', 'Fall', 93, 17025001, '561', '0000-00-00 00:00:00'),
(2017, 'Mid-term', 'Fall', 94, 18020025, '325,377,479,524,551,575', '0000-00-00 00:00:00'),
(2017, 'Mid-term', 'Fall', 95, 19020193, '571,593', '2017-11-04 11:34:20'),
(2018, 'Final', 'Fall', 96, 18021001, '622,662,704,723,779,894', '2018-06-19 15:43:58'),
(2017, 'Mid-term', 'Fall', 97, 18021219, '337,377,478,551', '0000-00-00 00:00:00'),
(2017, 'Mid-term', 'Fall', 98, 18020038, '378,393,525,553', '2017-11-05 11:33:17'),
(2017, 'Mid-term', 'Fall', 99, 18021226, '324,364,553', '0000-00-00 00:00:00'),
(2017, 'Mid-term', 'Fall', 100, 18028034, '321,479', '0000-00-00 00:00:00'),
(2017, 'Mid-term', 'Fall', 101, 18021199, '335,375,388,438,549', '0000-00-00 00:00:00'),
(2017, 'Mid-term', 'Fall', 102, 18020123, '333,375,478,524,549', '0000-00-00 00:00:00'),
(2017, 'Mid-term', 'Fall', 103, 18020092, '333,375,523,549', '0000-00-00 00:00:00'),
(2017, 'Mid-term', 'Fall', 104, 18021208, '332,378,479,521,553', '2017-11-05 11:33:58'),
(2017, 'Mid-term', 'Fall', 105, 18021137, '338,373,393,479,518,555', '0000-00-00 00:00:00'),
(2017, 'Mid-term', 'Fall', 106, 18021120, '323,375,436,549', '0000-00-00 00:00:00'),
(2017, 'Mid-term', 'Fall', 107, 18028005, '', '0000-00-00 00:00:00'),
(2018, 'Final', 'Fall', 108, 18021153, '867', '2018-06-19 15:43:58'),
(2018, 'Final', 'Fall', 109, 18029004, '616,664,702,749,771', '2018-06-19 15:43:58'),
(2018, 'Final', 'Fall', 110, 18021123, '619,666,703,745,780,869', '2018-06-19 15:43:58'),
(2017, 'Mid-term', 'Fall', 111, 18020102, '324,373,523,549', '0000-00-00 00:00:00'),
(2017, 'Mid-term', 'Fall', 112, 18020099, '', '0000-00-00 00:00:00'),
(2018, 'Final', 'Fall', 113, 18020135, '622,656,745,776,869', '2018-06-19 15:43:58'),
(2017, 'Mid-term', 'Fall', 114, 18021061, '324,369,393,479,521,545', '0000-00-00 00:00:00'),
(2017, 'Mid-term', 'Fall', 115, 18020013, '555', '2017-11-09 02:39:10'),
(2018, 'Final', 'Fall', 116, 18020098, '620,656,703,723,776', '2018-06-19 15:43:58'),
(2018, 'Final', 'Fall', 117, 19021192, '685,698,733,759,850,871', '2018-06-19 15:43:58'),
(2018, 'Final', 'Fall', 118, 18021529, '622,656,746,776,888', '2018-06-19 15:43:58'),
(2017, 'Mid-term', 'Fall', 119, 18021056, '336,373,390,522,555', '0000-00-00 00:00:00'),
(2018, 'Final', 'Fall', 120, 18021183, '626,668,747,773,893', '2018-06-19 15:43:58'),
(2017, 'Mid-term', 'Fall', 121, 18028014, '', '0000-00-00 00:00:00'),
(2017, 'Mid-term', 'Fall', 122, 18021068, '332,379,388,438,559', '0000-00-00 00:00:00'),
(2017, 'Mid-term', 'Fall', 123, 18029010, '322,364,553', '0000-00-00 00:00:00'),
(2018, 'Final', 'Fall', 124, 18020083, '622,722,742,770', '2018-06-19 15:43:58'),
(2017, 'Mid-term', 'Fall', 125, 17020145, '329,388,438', '2017-11-05 11:22:47'),
(2017, 'Mid-term', 'Fall', 126, 18021171, '324,375,417,521,549,570', '2017-11-05 11:20:03'),
(2017, 'Mid-term', 'Fall', 127, 18021234, '322,369,390,545', '0000-00-00 00:00:00'),
(2017, 'Mid-term', 'Fall', 128, 18021132, '337,365,478,521,547', '0000-00-00 00:00:00'),
(2017, 'Mid-term', 'Fall', 129, 18021029, '327,368,388,417,559', '0000-00-00 00:00:00'),
(2017, 'Mid-term', 'Fall', 130, 18020206, '325,375,389,549,575', '0000-00-00 00:00:00'),
(2018, 'Final', 'Fall', 131, 18020115, '620,670,747,786,820', '2018-06-19 15:43:58'),
(2017, 'Mid-term', 'Fall', 132, 18020174, '', '0000-00-00 00:00:00'),
(2017, 'Mid-term', 'Fall', 133, 18021058, '329,364,389,553', '0000-00-00 00:00:00'),
(2017, 'Mid-term', 'Fall', 134, 18028016, '408', '0000-00-00 00:00:00'),
(2017, 'Mid-term', 'Fall', 135, 19020060, '394,415,460,515,527,596', '0000-00-00 00:00:00'),
(2018, 'Final', 'Fall', 136, 18021023, '624,660,746,782,889', '2018-06-19 15:43:58'),
(2018, 'Final', 'Fall', 137, 18020125, '621,662,746,779,889', '2018-06-19 15:43:58'),
(2017, 'Mid-term', 'Fall', 138, 18021042, '336,436', '2017-11-05 12:00:53'),
(2018, 'Final', 'Fall', 139, 18021014, '614,670,747,786,820', '2018-06-19 15:43:58'),
(2017, 'Mid-term', 'Fall', 140, 18021285, '322,378,459,522,553', '0000-00-00 00:00:00'),
(2018, 'Final', 'Fall', 141, 18021130, '625,666,749,780,847,888', '2018-06-19 15:43:58'),
(2017, 'Mid-term', 'Fall', 142, 18021037, '328,368,518,559', '0000-00-00 00:00:00'),
(2018, 'Final', 'Fall', 143, 18021100, '614,656,741,776,891', '2018-06-19 15:43:58'),
(2017, 'Mid-term', 'Fall', 144, 18020028, '', '0000-00-00 00:00:00'),
(2017, 'Mid-term', 'Fall', 145, 18020180, '323,373,393,523,555', '2017-11-05 11:07:42'),
(2017, 'Mid-term', 'Fall', 146, 18020030, '323,375,437,549', '0000-00-00 00:00:00'),
(2018, 'Final', 'Fall', 147, 18021243, '622,668,742,770,773,890', '2018-06-19 15:43:58'),
(2017, 'Mid-term', 'Fall', 148, 18021220, '331,379,391,522,559', '0000-00-00 00:00:00'),
(2017, 'Mid-term', 'Fall', 149, 18021198, '323,373,391,522,555', '0000-00-00 00:00:00'),
(2017, 'Mid-term', 'Fall', 150, 18021044, '329,378,390,519,553', '0000-00-00 00:00:00'),
(2017, 'Mid-term', 'Fall', 151, 18021178, '334,379,388,393,559', '0000-00-00 00:00:00'),
(2017, 'Mid-term', 'Fall', 152, 18021069, '325,369,390,436,517,545', '0000-00-00 00:00:00'),
(2017, 'Mid-term', 'Fall', 153, 18021092, '325,375,549', '2017-11-06 11:04:07'),
(2017, 'Mid-term', 'Fall', 154, 18020018, '335,369,417,438,517,545', '0000-00-00 00:00:00'),
(2017, 'Mid-term', 'Fall', 155, 18021109, '523', '2017-11-05 12:08:45'),
(2018, 'Final', 'Fall', 156, 18021147, '622,662,704,723,779,867', '2018-06-19 15:43:58'),
(2017, 'Mid-term', 'Fall', 157, 18021078, '324,366,388,557', '0000-00-00 00:00:00'),
(2017, 'Mid-term', 'Fall', 158, 18028019, '329', '0000-00-00 00:00:00'),
(2017, 'Mid-term', 'Fall', 159, 18021182, '334,373,388,393,555', '0000-00-00 00:00:00'),
(2017, 'Mid-term', 'Fall', 160, 18021546, '414', '0000-00-00 00:00:00'),
(2018, 'Final', 'Fall', 161, 18021168, '722', '2018-06-19 15:43:58'),
(2017, 'Mid-term', 'Fall', 162, 18020061, '334,368,392,518,559', '0000-00-00 00:00:00'),
(2017, 'Mid-term', 'Fall', 163, 18020112, '325,364,418,524,553', '0000-00-00 00:00:00'),
(2018, 'Final', 'Fall', 164, 18021081, '627,666,747,780,845,888', '2018-06-19 15:43:58'),
(2017, 'Mid-term', 'Fall', 165, 18021101, '547', '2017-11-05 12:04:27'),
(2017, 'Mid-term', 'Fall', 166, 18021488, '407,463,516,530,574', '0000-00-00 00:00:00'),
(2018, 'Final', 'Fall', 167, 18021160, '615,668,747,773,821,890', '2018-06-19 15:43:58'),
(2017, 'Mid-term', 'Fall', 168, 17023098, '322,369,390,519,545', '0000-00-00 00:00:00'),
(2017, 'Mid-term', 'Fall', 169, 18020111, '336,371,390,416,517,547', '0000-00-00 00:00:00'),
(2017, 'Mid-term', 'Fall', 170, 18021111, '323,366,416,557,570', '0000-00-00 00:00:00'),
(2017, 'Mid-term', 'Fall', 171, 18021076, '327,365,438,518,547', '0000-00-00 00:00:00'),
(2017, 'Mid-term', 'Fall', 172, 18021145, '331,369,418,526,545,576', '2017-11-05 11:31:43'),
(2017, 'Mid-term', 'Fall', 174, 18021047, '335,366,478,557', '0000-00-00 00:00:00'),
(2017, 'Mid-term', 'Fall', 175, 18029002, '', '0000-00-00 00:00:00'),
(2018, 'Final', 'Fall', 176, 18028037, '770', '2018-06-19 15:43:58'),
(2018, 'Final', 'Fall', 177, 18021084, '617,668,770,773,847', '2018-06-19 15:43:58'),
(2017, 'Mid-term', 'Fall', 178, 19020189, '561', '0000-00-00 00:00:00'),
(2017, 'Mid-term', 'Fall', 179, 18020051, '315,400,472,503,542,584', '2017-11-05 03:05:30'),
(2017, 'Mid-term', 'Fall', 180, 18028032, '322', '0000-00-00 00:00:00'),
(2017, 'Mid-term', 'Fall', 181, 18021221, '323,371,510,547', '2017-11-05 11:25:36'),
(2018, 'Final', 'Fall', 182, 18021514, '680,701,761,854,875', '2018-06-19 15:43:58'),
(2018, 'Final', 'Fall', 183, 18020118, '621,656,743,776,848', '2018-06-19 15:43:58'),
(2017, 'Mid-term', 'Fall', 184, 18028020, '336,375,416,519,549', '0000-00-00 00:00:00'),
(2017, 'Mid-term', 'Fall', 185, 19021069, '407,460,516,593', '0000-00-00 00:00:00'),
(2017, 'Mid-term', 'Fall', 186, 18021505, '396,467,534,574,593', '0000-00-00 00:00:00'),
(2018, 'Final', 'Fall', 187, 19021073, '681,738,756,850,871', '2018-06-19 15:43:58'),
(2018, 'Final', 'Fall', 188, 18020133, '690,759,816,850,871', '2018-06-19 15:43:58'),
(2017, 'Mid-term', 'Fall', 189, 18021543, '407,463,509,530,593', '0000-00-00 00:00:00'),
(2017, 'Mid-term', 'Fall', 190, 18021512, '346,406,528,578,593', '0000-00-00 00:00:00'),
(2018, 'Final', 'Fall', 191, 19020010, '684,698,738,815,852,873', '2018-06-19 15:43:58'),
(2017, 'Mid-term', 'Fall', 192, 19021200, '407,460,499,527,570,593', '0000-00-00 00:00:00'),
(2017, 'Mid-term', 'Fall', 193, 18020461, '593', '0000-00-00 00:00:00'),
(2017, 'Mid-term', 'Fall', 194, 19021081, '318,401,467,505,534,593', '0000-00-00 00:00:00'),
(2017, 'Mid-term', 'Fall', 195, 19021133, '403', '0000-00-00 00:00:00'),
(2017, 'Mid-term', 'Fall', 196, 18021139, '338,375,437,519,549,576', '0000-00-00 00:00:00'),
(2017, 'Mid-term', 'Fall', 197, 18021511, '402,470,514,540,593', '0000-00-00 00:00:00'),
(2018, 'Final', 'Fall', 198, 18029042, '621,658,750,772,848,889', '2018-06-19 15:43:58'),
(2017, 'Mid-term', 'Fall', 199, 18020020, '334,372,412,518,551,576', '0000-00-00 00:00:00'),
(2017, 'Mid-term', 'Fall', 200, 18050054, '', '0000-00-00 00:00:00'),
(2017, 'Mid-term', 'Fall', 201, 18020069, '327,364,459,524,553,576', '0000-00-00 00:00:00'),
(2017, 'Mid-term', 'Fall', 202, 18021215, '321,375,393,459,523,549', '2017-11-05 11:14:11'),
(2018, 'Final', 'Fall', 203, 18029012, '891', '2018-06-19 15:43:58'),
(2017, 'Mid-term', 'Fall', 204, 18021161, '377', '2017-11-03 11:48:38'),
(2017, 'Mid-term', 'Fall', 205, 19021157, '319,395,470,504,540,593', '2017-11-03 12:02:24'),
(2017, 'Mid-term', 'Fall', 206, 18020544, '', '2017-11-03 12:10:40'),
(2017, 'Mid-term', 'Fall', 207, 18020033, '331,365,390,479,518,547', '2017-11-03 12:35:13'),
(2017, 'Mid-term', 'Fall', 209, 18021857, '', '2017-11-03 12:46:57'),
(2018, 'Final', 'Fall', 210, 18021018, '627,656,746,776,890', '2018-06-19 15:43:58'),
(2017, 'Mid-term', 'Fall', 211, 18021067, '551', '2017-11-05 11:35:26'),
(2017, 'Mid-term', 'Fall', 212, 18021054, '337,365,388,547', '2017-11-03 13:42:28'),
(2018, 'Final', 'Fall', 213, 18021187, '615,668,702,751,773', '2018-06-19 15:43:58'),
(2018, 'Final', 'Fall', 214, 18020157, '614,660,751,782,868', '2018-06-19 15:43:58'),
(2018, 'Final', 'Fall', 215, 18021103, '620,670,747,775,890', '2018-06-19 15:43:58'),
(2017, 'Mid-term', 'Fall', 216, 18020195, '330,371,519,547', '2017-11-03 14:24:13'),
(2017, 'Mid-term', 'Fall', 217, 18029007, '333,373,437,517,555', '2017-11-03 14:26:26'),
(2017, 'Mid-term', 'Fall', 218, 18021046, '325,373,388,555', '2017-11-03 14:37:57'),
(2017, 'Mid-term', 'Fall', 219, 18021180, '326,372,393,416,517,551', '2017-11-03 14:51:18'),
(2018, 'Final', 'Fall', 220, 17021140, '615,704,748,786,867', '2018-06-19 15:43:58'),
(2017, 'Mid-term', 'Fall', 221, 10721046, '', '2017-11-03 15:20:08'),
(2017, 'Mid-term', 'Fall', 222, 18020062, '', '2017-11-03 15:20:21'),
(2017, 'Mid-term', 'Fall', 223, 18021024, '521', '2017-11-08 23:30:21'),
(2017, 'Mid-term', 'Fall', 224, 18021005, '326,377,392,520,551', '2017-11-03 15:27:42'),
(2018, 'Final', 'Fall', 225, 17023038, '621,662,779,847', '2018-06-19 15:43:58'),
(2017, 'Mid-term', 'Fall', 226, 18029025, '336,375,390,416,522,549', '2017-11-04 01:51:59'),
(2017, 'Mid-term', 'Fall', 227, 18021194, '336,365,479,547', '2017-11-04 02:26:07'),
(2017, 'Mid-term', 'Fall', 228, 18021079, '437', '2017-11-04 04:44:54'),
(2017, 'Mid-term', 'Fall', 229, 18021070, '321,375,388,549', '2017-11-04 04:49:42'),
(2017, 'Mid-term', 'Fall', 231, 18021015, '329,375,388,414,438,549', '2017-11-05 11:24:01'),
(2017, 'Mid-term', 'Fall', 232, 18021113, '323,371,418,547', '2017-11-04 12:47:58'),
(2017, 'Mid-term', 'Fall', 233, 180200548, '', '2017-11-05 02:39:51'),
(2017, 'Mid-term', 'Fall', 234, 18021059, '553', '2017-11-09 02:46:36'),
(2017, 'Mid-term', 'Fall', 235, 18021188, '324,377,418,437,520,551', '2017-11-05 10:50:14'),
(2017, 'Mid-term', 'Fall', 236, 18029009, '372,392', '2017-11-05 11:16:26'),
(2017, 'Mid-term', 'Fall', 237, 18021117, '334,378,413,521,553', '2017-11-05 11:12:18'),
(2017, 'Mid-term', 'Fall', 238, 18021181, '338,375,393,478,549', '2017-11-05 11:14:49'),
(2017, 'Mid-term', 'Fall', 239, 18021201, '338,366,392,518,557', '2017-11-05 11:32:26'),
(2017, 'Mid-term', 'Fall', 240, 18021527, '337,378,553,593', '2017-11-05 11:23:32'),
(2018, 'Final', 'Fall', 241, 18021035, '617,664,750,785,848,891', '2018-06-19 15:43:58'),
(2017, 'Mid-term', 'Fall', 242, 17021209, '337,371,390,478,547', '2017-11-05 11:31:54'),
(2017, 'Mid-term', 'Fall', 243, 17020192, '330,373,415,521,555', '2017-11-05 11:31:48'),
(2018, 'Final', 'Fall', 244, 18021212, '623,670,775,846,893', '2018-06-19 15:43:58'),
(2017, 'Mid-term', 'Fall', 245, 18020100, '330,373,390,555', '2017-11-05 11:31:52'),
(2017, 'Mid-term', 'Fall', 247, 18020005, '327,372,389,551,575', '2017-11-05 11:32:42'),
(2017, 'Mid-term', 'Fall', 248, 18028030, '438', '2017-11-05 11:34:21'),
(2018, 'Final', 'Fall', 249, 18020052, '627,666,747,778,849,888', '2018-06-19 15:43:58'),
(2017, 'Mid-term', 'Fall', 250, 17021005, '333,373,437,478', '2017-11-05 11:35:59'),
(2017, 'Mid-term', 'Fall', 251, 18021087, '330,366,557', '2017-11-05 11:38:01'),
(2018, 'Final', 'Fall', 252, 18020136, '615,664,749,785,890', '2018-06-19 15:43:58'),
(2017, 'Mid-term', 'Fall', 253, 18021218, '438', '2017-11-07 10:34:12'),
(2017, 'Mid-term', 'Fall', 254, 17020043, '331,366,396,498,580', '2017-11-05 11:39:44'),
(2017, 'Mid-term', 'Fall', 255, 18021247, '321,366,523,557,576', '2017-11-05 11:41:41'),
(2017, 'Mid-term', 'Fall', 256, 17020179, '322,366,391,557', '2017-11-05 11:43:42'),
(2017, 'Mid-term', 'Fall', 257, 18020158, '327,369,392,521,545', '2017-11-05 11:44:29'),
(2018, 'Final', 'Fall', 258, 18020032, '630,670,747,786,890', '2018-06-19 15:43:58'),
(2017, 'Mid-term', 'Fall', 259, 17020025, '201,334,522,575', '2017-11-05 11:49:55'),
(2017, 'Mid-term', 'Fall', 260, 17021183, '336,371,547', '2017-11-05 11:53:02'),
(2017, 'Mid-term', 'Fall', 261, 18021237, '330,373,393,517,555', '2017-11-05 12:12:06'),
(2017, 'Mid-term', 'Fall', 262, 18029016, '327,378,390,519,553', '2017-11-05 12:13:59'),
(2017, 'Mid-term', 'Fall', 263, 19020054, '314,403,475,504,537,573', '2017-11-05 12:22:52'),
(2018, 'Final', 'Fall', 264, 18020453, '684,736,759,817,854,875', '2018-06-19 15:43:58'),
(2017, 'Mid-term', 'Fall', 265, 18021186, '332,364,415,524,553', '2017-11-05 12:26:15'),
(2018, 'Final', 'Fall', 266, 18021011, '621,658,747,778', '2018-06-19 15:43:58'),
(2018, 'Final', 'Fall', 268, 18021170, '625,656,700,748,776,869', '2018-06-19 15:43:58'),
(2017, 'Mid-term', 'Fall', 269, 18021166, '322,369,479,545', '2017-11-05 12:46:39'),
(2017, 'Mid-term', 'Fall', 270, 17023036, '333,366,518,557,576', '2017-11-05 14:34:00'),
(2017, 'Mid-term', 'Fall', 271, 18021074, '325,369,545', '2017-11-05 23:41:20'),
(2018, 'Final', 'Fall', 272, 19020004, '689,698,752,865,881', '2018-06-19 15:43:58'),
(2017, 'Mid-term', 'Fall', 273, 18021159, '578', '2017-11-06 00:28:57'),
(2017, 'Mid-term', 'Fall', 274, 18020455, '596', '2017-11-09 23:45:34'),
(2018, 'Final', 'Fall', 275, 18021165, '680,818,843,859,883', '2018-06-19 15:43:58'),
(2018, 'Final', 'Fall', 276, 19020236, '691,756,808,840,856,877', '2018-06-19 15:43:58'),
(2018, 'Final', 'Fall', 277, 18021489, '719,810,842,856,877', '2018-06-19 15:43:58'),
(2017, 'Mid-term', 'Fall', 278, 18021121, '513', '2017-11-06 06:09:32'),
(2017, 'Mid-term', 'Fall', 279, 18029003, '324,375,459,478,549', '2017-11-06 10:21:04'),
(2017, 'Mid-term', 'Fall', 280, 18021185, '335,373,437,520,555,577', '2017-11-06 10:32:03'),
(2018, 'Final', 'Fall', 281, 18021057, '631,660,782,847', '2018-06-19 15:43:58'),
(2018, 'Final', 'Fall', 282, 18021244, '619,658,749,770,778,890', '2018-06-19 15:43:58'),
(2017, 'Mid-term', 'Fall', 283, 19021040, '316,400,472,502,542,594', '2017-11-06 11:31:48'),
(2017, 'Mid-term', 'Fall', 284, 19020013, '397,474,512,536,561,594', '2017-11-06 11:41:18'),
(2017, 'Mid-term', 'Fall', 285, 19020102, '320,402,470,497,506,540', '2017-11-06 23:43:58'),
(2017, 'Mid-term', 'Fall', 287, 19021041, '', '2017-11-06 13:16:15'),
(2017, 'Mid-term', 'Fall', 288, 19020028, '406,412,465,498,516,532', '2017-11-06 13:27:05'),
(2017, 'Mid-term', 'Fall', 289, 17013153, '373', '2017-11-07 02:49:51'),
(2017, 'Mid-term', 'Fall', 290, 18021149, '519', '2017-11-08 14:15:12'),
(2018, 'Final', 'Fall', 291, 18021125, '620,662,746,784,889', '2018-06-19 15:43:58'),
(2017, 'Mid-term', 'Fall', 292, 18020147, '335,366,478,557', '2017-11-06 23:29:26'),
(2018, 'Final', 'Fall', 293, 18020001, '782', '2018-06-19 15:43:58'),
(2017, 'Mid-term', 'Fall', 294, 18021083, '324,364,520,553,577', '2017-11-06 23:37:19'),
(2017, 'Mid-term', 'Fall', 295, 17023005, '334', '2017-11-06 23:40:06'),
(2018, 'Final', 'Fall', 296, 18021284, '629,662,744,779', '2018-06-19 15:43:58'),
(2018, 'Final', 'Fall', 297, 18020023, '817', '2018-06-19 15:43:58'),
(2018, 'Final', 'Fall', 302, 18021053, '618,660,702,751,770,782', '2018-06-19 15:43:58'),
(2017, 'Mid-term', 'Fall', 304, 18020000, '377,459,493,573,602,343,582', '2017-11-09 06:29:57'),
(2018, 'Final', 'Fall', 305, 17020069, '813', '2018-06-19 15:43:58'),
(2018, 'Final', 'Fall', 306, 19021271, '825', '2018-06-19 15:43:58'),
(2017, '', 'Fall', 307, 19020158, '', '2017-12-02 17:28:15'),
(2018, 'Final', 'Fall', 311, 19021030, '614,729,833,859,888,687', '2018-06-19 15:43:58'),
(2018, 'Final', 'Fall', 312, 19020085, '690,736,853,874,758', '2018-06-19 15:43:58'),
(2018, 'Final', 'Fall', 313, 17020054, '893', '2018-06-19 15:43:58'),
(2018, 'Final', 'Fall', 314, 18021090, '630,670,786,894', '2018-06-19 15:43:58'),
(2018, 'Final', 'Fall', 315, 19021026, '610,690,701,727,854,875', '2018-06-19 15:43:58'),
(2018, 'Final', 'Fall', 316, 19021092, '611,691,699,724,864,880', '2018-06-19 15:43:58'),
(2018, 'Final', 'Fall', 317, 18021125, '620,662,746,784,889', '2018-06-19 15:43:58'),
(2018, 'Final', 'Fall', 318, 18021031, '625,662,779,867,894', '2018-06-19 15:43:58'),
(2018, 'Final', 'Fall', 319, 19021192, '685,698,733,759,850,871', '2018-06-19 15:43:58'),
(2018, 'Final', 'Fall', 320, 18020115, '620,670,747,786,820', '2018-06-19 15:43:58'),
(2018, 'Final', 'Fall', 321, 18020055, '', '2018-06-19 15:43:58'),
(2018, 'Final', 'Fall', 322, 19021136, '607,699,731,844,865,881', '2018-06-19 15:43:58'),
(2018, 'Final', 'Fall', 323, 17021140, '615,704,748,786,867', '2018-06-19 15:43:58'),
(2018, 'Final', 'Fall', 324, 18021514, '680,701,761,854,875', '2018-06-19 15:43:58'),
(2018, 'Final', 'Fall', 325, 18021509, '605,684,732,757,854,875', '2018-06-19 15:43:58'),
(2018, 'Final', 'Fall', 326, 18021165, '680,818,843,859,883', '2018-06-19 15:43:58'),
(2018, 'Final', 'Fall', 327, 18020127, '782', '2018-06-19 15:43:58'),
(2018, 'Final', 'Fall', 328, 19021009, '692,740,757,850,871', '2018-06-19 15:43:58'),
(2018, 'Final', 'Fall', 329, 18020453, '684,736,759,817,854,875', '2018-06-19 15:43:58'),
(2018, 'Final', 'Fall', 330, 18020133, '690,759,816,850,871', '2018-06-19 15:43:58'),
(2018, 'Final', 'Fall', 331, 18020129, '614,668,744,773,892', '2018-06-19 15:43:58'),
(2018, 'Final', 'Fall', 332, 18021110, '626,668,702,746,773,867', '2018-06-19 15:43:58'),
(2018, 'Final', 'Fall', 333, 18020131, '625,662,701,784', '2018-06-19 15:43:58'),
(2018, 'Final', 'Fall', 334, 18020113, '626,666,741,780', '2018-06-19 15:43:58'),
(2018, 'Final', 'Fall', 335, 19021012, '612,693,732,808,865,881', '2018-06-19 15:43:58'),
(2018, 'Final', 'Fall', 336, 17020046, '627,658,748,779,858,867', '2018-06-19 15:43:58'),
(2018, 'Final', 'Fall', 337, 18020126, '624,658,750,772,867', '2018-06-19 15:43:58'),
(2018, 'Final', 'Fall', 338, 18020188, '818', '2018-06-19 15:43:58'),
(2018, 'Final', 'Fall', 339, 19021229, '688,699,726,761,854,875', '2018-06-19 15:43:58'),
(2018, 'Final', 'Fall', 340, 19020010, '684,698,738,815,852,873', '2018-06-19 15:43:58'),
(2018, 'Final', 'Fall', 341, 18021001, '622,662,704,723,779,894', '2018-06-19 15:43:58'),
(2018, 'Final', 'Fall', 342, 18020019, '625,668,745,773,892', '2018-06-19 15:43:58'),
(2018, 'Final', 'Fall', 343, 19021100, '611,729,817,843,861,885', '2018-06-19 15:43:58'),
(2018, 'Final', 'Fall', 344, 18020032, '630,670,747,786,890', '2018-06-19 15:43:58'),
(2018, 'Final', 'Fall', 345, 19021008, '738', '2018-06-19 15:43:58'),
(2018, 'Final', 'Fall', 346, 18029004, '616,664,702,749,771', '2018-06-19 15:43:58'),
(2018, 'Final', 'Fall', 347, 18029011, '616,666,744,780,889', '2018-06-19 15:43:58'),
(2018, 'Final', 'Fall', 348, 18021130, '625,666,749,780,847,888', '2018-06-19 15:43:58'),
(2018, 'Final', 'Fall', 349, 19020231, '714,809,831,854,875', '2018-06-19 15:43:58'),
(2018, 'Final', 'Fall', 350, 19020048, '731', '2018-06-19 15:43:58'),
(2018, 'Final', 'Fall', 351, 18021123, '619,666,703,745,780,869', '2018-06-19 15:43:58'),
(2018, 'Final', 'Fall', 352, 19020002, '711,726,761,809,854,875', '2018-06-19 15:43:58'),
(2018, 'Final', 'Fall', 353, 18020084, '628,656,743,776,868', '2018-06-19 15:43:58'),
(2018, 'Final', 'Fall', 354, 18028004, '627,666,746,780,822,867', '2018-06-19 15:43:58'),
(2018, 'Final', 'Fall', 355, 18020125, '621,662,746,779,889', '2018-06-19 15:43:58'),
(2018, 'Final', 'Fall', 356, 18021084, '617,668,770,773,847', '2018-06-19 15:43:58'),
(2018, 'Final', 'Fall', 357, 18020001, '782', '2018-06-19 15:43:58'),
(2018, 'Final', 'Fall', 358, 19021166, '612,726,757,838,852,873', '2018-06-19 15:43:58'),
(2018, 'Final', 'Fall', 359, 17020152, '630,658,736,778,890', '2018-06-19 15:43:58'),
(2018, 'Final', 'Fall', 360, 19020027, '612,731,814,846,852,873', '2018-06-19 15:43:58'),
(2018, 'Final', 'Fall', 361, 18021073, '619,660,750,782,867,890', '2018-06-19 15:43:58'),
(2018, 'Final', 'Fall', 362, 18021018, '627,656,746,776,890', '2018-06-19 15:43:58'),
(2018, 'Final', 'Fall', 363, 18020104, '615,664,749,785,890', '2018-06-19 15:43:58'),
(2018, 'Final', 'Fall', 364, 18020136, '615,664,749,785,890', '2018-06-19 15:43:58'),
(2018, 'Final', 'Fall', 365, 18029023, '', '2018-06-19 15:43:58'),
(2018, 'Final', 'Fall', 366, 19020236, '691,756,808,840,856,877', '2018-06-19 15:43:58'),
(2018, 'Final', 'Fall', 367, 19020004, '689,698,752,865,881', '2018-06-19 15:43:58'),
(2018, 'Final', 'Fall', 368, 18020039, '626,668,702,746,773,867', '2018-06-19 15:43:58'),
(2018, 'Final', 'Fall', 369, 18021212, '623,670,775,846,893', '2018-06-19 15:43:58'),
(2018, 'Final', 'Fall', 370, 18021187, '615,668,702,751,773', '2018-06-19 15:43:58'),
(2018, 'Final', 'Fall', 371, 18021152, '623,658,741,778,893', '2018-06-19 15:43:58'),
(2018, 'Final', 'Fall', 372, 17023130, '734', '2018-06-19 15:43:58'),
(2018, 'Final', 'Fall', 373, 18021133, '618,666,750,780,848,889', '2018-06-19 15:43:58'),
(2018, 'Final', 'Fall', 374, 19021073, '681,738,756,850,871', '2018-06-19 15:43:58'),
(2018, 'Final', 'Fall', 375, 18021033, '617,660,782', '2018-06-19 15:43:58'),
(2018, 'Final', 'Fall', 376, 17020200, '', '2018-06-19 15:43:58'),
(2018, 'Final', 'Fall', 377, 18020464, '611,658,686,741,772', '2018-06-19 15:43:58'),
(2018, 'Final', 'Fall', 378, 18020059, '620,664,748,770,771', '2018-06-19 15:43:58'),
(2018, 'Final', 'Fall', 379, 18021227, '622,666,742,780,848,888', '2018-06-19 15:43:58'),
(2018, 'Final', 'Fall', 380, 18020456, '685,701,733,757,850,871', '2018-06-19 15:43:58'),
(2018, 'Final', 'Fall', 381, 18021057, '631,660,782,847', '2018-06-19 15:43:58'),
(2018, 'Final', 'Fall', 382, 18020157, '614,660,751,782,868', '2018-06-19 15:43:58'),
(2018, 'Final', 'Fall', 383, 19020050, '688,701,756,813,850,871', '2018-06-19 15:43:58'),
(2018, 'Final', 'Fall', 384, 18021170, '625,656,700,748,776,869', '2018-06-19 15:43:58'),
(2018, 'Final', 'Fall', 385, 18020458, '609,687,725,811,865,881', '2018-06-19 15:43:58'),
(2018, 'Final', 'Fall', 386, 18020052, '627,666,747,778,849,888', '2018-06-19 15:43:58'),
(2018, 'Final', 'Fall', 387, 18021066, '626,668,751,773,893', '2018-06-19 15:43:58'),
(2018, 'Final', 'Fall', 388, 17020070, '', '2018-06-19 15:43:58'),
(2018, 'Final', 'Fall', 389, 17020069, '813', '2018-06-19 15:43:58'),
(2018, 'Final', 'Fall', 390, 18021040, '625,670,686,722,786', '2018-06-19 15:43:58'),
(2018, 'Final', 'Fall', 391, 18029027, '618,656,704,750,776,893', '2018-06-19 15:43:58'),
(2018, 'Final', 'Fall', 392, 18021147, '622,662,704,723,779,867', '2018-06-19 15:43:58'),
(2018, 'Final', 'Fall', 393, 18028036, '627,747,893', '2018-06-19 15:43:58'),
(2018, 'Final', 'Fall', 394, 18021081, '627,666,747,780,845,888', '2018-06-19 15:43:58'),
(2018, 'Final', 'Fall', 395, 18021167, '623,658,749,772', '2018-06-19 15:43:58'),
(2018, 'Final', 'Fall', 396, 18021202, '624,658,750,778,847', '2018-06-19 15:43:58'),
(2018, 'Final', 'Fall', 397, 18020118, '621,656,743,776,848', '2018-06-19 15:43:58'),
(2018, 'Final', 'Fall', 398, 17023038, '621,662,779,847', '2018-06-19 15:43:58'),
(2018, 'Final', 'Fall', 399, 18021529, '622,656,746,776,888', '2018-06-19 15:43:58'),
(2018, 'Final', 'Fall', 400, 18020135, '622,656,745,776,869', '2018-06-19 15:43:58'),
(2018, 'Final', 'Fall', 401, 18021011, '621,658,747,778', '2018-06-19 15:43:58'),
(2018, 'Final', 'Fall', 402, 18021035, '617,664,750,785,848,891', '2018-06-19 15:43:58'),
(2018, 'Final', 'Fall', 403, 18020075, '614,662,703,749,779,867', '2018-06-19 15:43:58'),
(2018, 'Final', 'Fall', 404, 18021204, '624,670,741,786,868,892', '2018-06-19 15:43:58'),
(2018, 'Final', 'Fall', 405, 18021184, '623,666,744,780', '2018-06-19 15:43:58'),
(2018, 'Final', 'Fall', 406, 18020198, '692,737,759,850,871', '2018-06-19 15:43:58'),
(2018, 'Final', 'Fall', 407, 18021214, '622,660,761,782,889', '2018-06-19 15:43:58'),
(2018, 'Final', 'Fall', 408, 18021014, '614,670,747,786,820', '2018-06-19 15:43:58'),
(2018, 'Final', 'Fall', 409, 7123152, '890', '2018-06-19 15:43:58'),
(2018, 'Final', 'Fall', 410, 18021284, '629,662,744,779', '2018-06-19 15:43:58'),
(2018, 'Mid-term', 'Spring', 412, 18020554, '1173', '2018-04-16 07:21:44'),
(2018, 'Mid-term', 'Spring', 413, 18020054, '1000,1142,936,985', '2018-04-16 07:25:05'),
(2018, 'Mid-term', 'Spring', 414, 18029031, '1004,1032,1098', '2018-04-16 07:39:30'),
(2018, 'Mid-term', 'Spring', 415, 19020060, '1018,924,1055,967,1107,1121', '2018-04-16 07:40:18'),
(2018, 'Mid-term', 'Spring', 416, 18029025, '1136', '2018-04-16 07:47:54'),
(2018, 'Mid-term', 'Spring', 417, 18020130, '1007,1140,966,1098,976', '2018-04-16 07:50:25'),
(2018, 'Mid-term', 'Spring', 418, 18020056, '1000,1140,1032,976', '2018-04-16 07:52:02'),
(2018, 'Mid-term', 'Spring', 419, 18020131, '1003,1138,966,1096,989', '2018-04-16 07:54:05'),
(2018, 'Mid-term', 'Spring', 420, 19021081, '927,1062,1161,958,1110,1127', '2018-04-16 08:02:14'),
(2018, 'Mid-term', 'Spring', 421, 18021197, '998,1132,1158,981', '2018-04-16 08:06:30'),
(2018, 'Mid-term', 'Spring', 422, 19020270, '900,1028,1047,1088', '2018-04-16 08:09:01'),
(2018, 'Mid-term', 'Spring', 423, 18020075, '992,1132,981', '2018-04-16 08:11:32'),
(2018, 'Mid-term', 'Spring', 424, 18021090, '1007,1146,935,1158,991', '2018-04-16 08:13:15'),
(2018, 'Mid-term', 'Spring', 425, 18029008, '1008,1132,1032,981', '2018-04-16 08:17:28'),
(2018, 'Mid-term', 'Spring', 426, 18029027, '996,1132,981', '2018-04-16 08:23:00'),
(2018, 'Mid-term', 'Spring', 427, 18020115, '998,1146,1031,991', '2018-04-16 08:27:08'),
(2018, 'Mid-term', 'Spring', 428, 18020138, '1073', '2018-04-16 08:33:19'),
(2018, 'Mid-term', 'Spring', 429, 18029028, '998,1146,934,991', '2018-04-16 08:34:24'),
(2018, 'Mid-term', 'Spring', 430, 18012076, '998,1134,1157,977', '2018-04-16 08:36:33'),
(2018, 'Mid-term', 'Spring', 431, 19020004, '1019,916,1071,1155,1108,1123', '2018-04-16 08:38:13'),
(2018, 'Mid-term', 'Spring', 432, 18021241, '1002,1136,1097,987', '2018-04-16 08:38:18'),
(2018, 'Mid-term', 'Spring', 433, 18021171, '995,1136,935,987', '2018-04-16 08:41:53'),
(2018, 'Mid-term', 'Spring', 434, 18021529, '1134', '2018-04-16 08:45:21'),
(2018, 'Mid-term', 'Spring', 435, 17021247, '1008,1140,1032,967,1096', '2018-04-16 08:51:31'),
(2018, 'Mid-term', 'Spring', 436, 19020092, '921', '2018-04-16 08:53:10'),
(2018, 'Mid-term', 'Spring', 437, 18020126, '995,1134,1156,977', '2018-04-16 08:55:07'),
(2018, 'Mid-term', 'Spring', 438, 18020206, '1173', '2018-04-16 08:57:10'),
(2018, 'Mid-term', 'Spring', 439, 18021226, '995,1144,935,1158,965,978', '2018-04-16 09:03:17'),
(2018, 'Mid-term', 'Spring', 440, 18021113, '994,1134,1032,965,983', '2018-04-16 09:05:30'),
(2018, 'Mid-term', 'Spring', 441, 19021089, '1019,916,1067,1155,1169,1117', '2018-04-16 09:09:10'),
(2018, 'Mid-term', 'Spring', 442, 19021002, '922,1069,1167,970,1129', '2018-04-16 09:13:11'),
(2018, 'Mid-term', 'Spring', 443, 19021068, '1154,931,1065,958,971,1115', '2018-04-16 09:14:44'),
(2018, 'Mid-term', 'Spring', 444, 18021029, '998,1146,935,980', '2018-04-16 09:15:40'),
(2018, 'Mid-term', 'Spring', 445, 12081050, '1006,1146,934,966,1096,980', '2018-04-16 09:15:43'),
(2018, 'Mid-term', 'Spring', 446, 19021090, '1132,917,957,1104,1165,981', '2018-04-16 09:15:50'),
(2018, 'Mid-term', 'Spring', 447, 18021227, '1000,1142,985', '2018-04-16 09:27:14'),
(2018, 'Mid-term', 'Spring', 448, 19020042, '1112', '2018-04-16 09:29:35'),
(2018, 'Mid-term', 'Spring', 449, 18021111, '1001,1138,935,966,989', '2018-04-16 09:32:48'),
(2018, 'Mid-term', 'Spring', 450, 18020142, '1158', '2018-04-16 09:33:39'),
(2018, 'Mid-term', 'Spring', 451, 18028001, '999,1134,1034,983', '2018-04-16 09:37:24'),
(2018, 'Mid-term', 'Spring', 452, 19020003, '929,1067,1164,973,1117', '2018-04-16 09:37:43'),
(2018, 'Mid-term', 'Spring', 453, 18029009, '1001,1138,966,1096,984', '2018-04-16 10:04:35'),
(2018, 'Mid-term', 'Spring', 454, 19020201, '919,1071,955,1102,1123', '2018-04-16 10:20:04'),
(2018, 'Mid-term', 'Spring', 455, 18021083, '995,1140,1158,976', '2018-04-16 10:21:42'),
(2018, 'Mid-term', 'Spring', 456, 18021130, '1007,1142,934,969,985', '2018-04-16 10:22:16'),
(2018, 'Mid-term', 'Spring', 457, 18021088, '1008,1142,1031,985', '2018-04-16 10:23:29'),
(2018, 'Mid-term', 'Spring', 458, 19020146, '1019,918,1069,1104,1129', '2018-04-16 10:44:57'),
(2018, 'Mid-term', 'Spring', 459, 18021139, '1008,1136,1157,987', '2018-04-16 10:47:07'),
(2018, 'Mid-term', 'Spring', 460, 19020152, '1019,922,1058,955,971,1119', '2018-04-16 10:47:15'),
(2018, 'Mid-term', 'Spring', 461, 19020205, '926', '2018-04-16 10:48:26'),
(2018, 'Mid-term', 'Spring', 462, 18020158, '998,1132,981', '2018-04-16 10:49:53'),
(2018, 'Mid-term', 'Spring', 463, 19020016, '922,1056,963,1102,1168,1112', '2018-04-16 10:52:17'),
(2018, 'Mid-term', 'Spring', 464, 18020198, '1018,930,1056,1107,970,1112', '2018-04-16 10:53:32'),
(2018, 'Mid-term', 'Spring', 465, 18020453, '924,1060,1109,971,1125', '2018-04-16 10:55:35'),
(2018, 'Mid-term', 'Spring', 466, 18021057, '1008,1136,1031,967,987', '2018-04-16 10:57:19'),
(2018, 'Mid-term', 'Spring', 467, 18021183, '994,1144,1156,978', '2018-04-16 11:04:23'),
(2018, 'Mid-term', 'Spring', 468, 18021018, '1004,1132,981', '2018-04-16 11:06:41'),
(2018, 'Mid-term', 'Spring', 469, 17021005, '1008,1034,967,976', '2018-04-16 11:09:35'),
(2018, 'Mid-term', 'Spring', 470, 18028016, '993,1142,985', '2018-04-16 11:17:44'),
(2018, 'Mid-term', 'Spring', 471, 18021210, '998', '2018-04-16 11:18:31'),
(2018, 'Mid-term', 'Spring', 472, 18021032, '993,1136,1158,987', '2018-04-16 11:19:20'),
(2018, 'Mid-term', 'Spring', 473, 19020013, '1016,918,1069,1111,971,1129', '2018-04-16 11:26:39'),
(2018, 'Mid-term', 'Spring', 474, 19020010, '920,1058,1099,1170,1114', '2018-04-16 11:27:32'),
(2018, 'Mid-term', 'Spring', 475, 18028004, '1173', '2018-04-16 11:34:25'),
(2018, 'Mid-term', 'Spring', 476, 18029011, '994,1142,985,1173', '2018-04-16 11:49:04'),
(2018, 'Mid-term', 'Spring', 477, 19020175, '924,1065,964,1110,971,1115', '2018-04-16 11:52:08'),
(2018, 'Mid-term', 'Spring', 478, 18021134, '1006,1138,966,1096,989', '2018-04-16 11:53:24'),
(2018, 'Mid-term', 'Spring', 479, 18021033, '995,1136,1033,968,1097,987', '2018-04-16 11:57:30'),
(2018, 'Mid-term', 'Spring', 480, 18021102, '1006,1138,1073,989', '2018-04-16 12:35:43'),
(2018, 'Mid-term', 'Spring', 481, 18021495, '898,1071,956,971,1123', '2018-04-16 13:00:53'),
(2018, 'Mid-term', 'Spring', 482, 18029003, '995,1136,934,1031,987', '2018-04-16 13:05:20'),
(2018, 'Mid-term', 'Spring', 483, 18020485, '1017,928,1067,969,1117', '2018-04-16 13:08:23'),
(2018, 'Mid-term', 'Spring', 484, 19021139, '1121', '2018-04-16 14:16:18'),
(2018, 'Mid-term', 'Spring', 485, 18021013, '1005', '2018-04-16 14:27:21'),
(2018, 'Mid-term', 'Spring', 486, 18028037, '995,1156', '2018-04-16 15:03:58'),
(2018, 'Mid-term', 'Spring', 487, 18021075, '1007,1138,989', '2018-04-16 15:21:37'),
(2018, 'Mid-term', 'Spring', 488, 18021185, '1005,1142,985', '2018-04-16 15:39:51'),
(2018, 'Mid-term', 'Spring', 489, 19021030, '921,1064,957,1111,1168,1119', '2018-04-16 16:01:07'),
(2018, 'Mid-term', 'Spring', 490, 17020152, '1007,1134,956,1097,983,1173', '2018-04-16 16:08:19'),
(2018, 'Mid-term', 'Spring', 491, 18020109, '997', '2018-04-16 16:08:24'),
(2018, 'Mid-term', 'Spring', 492, 18020074, '994,1136,969,1073,987', '2018-04-16 16:23:53'),
(2018, 'Mid-term', 'Spring', 493, 18021201, '1144', '2018-04-16 23:15:44'),
(2018, 'Mid-term', 'Spring', 494, 18020050, '993', '2018-04-16 23:35:52'),
(2018, 'Mid-term', 'Spring', 495, 18021089, '1008,1132,1034,981', '2018-04-16 23:37:47'),
(2018, 'Mid-term', 'Spring', 496, 18021180, '997,1138,984', '2018-04-16 23:40:37'),
(2018, 'Mid-term', 'Spring', 497, 18020038, '992', '2018-04-16 23:54:08'),
(2018, 'Mid-term', 'Spring', 498, 18021528, '1144,916,961,1108,978', '2018-04-17 00:06:20'),
(2018, 'Mid-term', 'Spring', 499, 18020461, '926', '2018-04-17 00:17:19'),
(2018, 'Mid-term', 'Spring', 500, 18021121, '1132,1033,981', '2018-04-17 00:31:04'),
(2018, 'Mid-term', 'Spring', 501, 18021543, '1018,927,1058,1159,1101,1114', '2018-04-17 01:58:15'),
(2018, 'Mid-term', 'Spring', 502, 19021167, '1023,1070,1163,948,1121', '2018-04-17 02:40:19'),
(2018, 'Mid-term', 'Spring', 503, 18021228, '1146,1031,980', '2018-04-17 03:18:50'),
(2018, 'Mid-term', 'Spring', 504, 18021015, '1138,1156,989', '2018-04-17 04:38:33'),
(2018, 'Mid-term', 'Spring', 505, 18028005, '1138,1156', '2018-04-17 05:23:47'),
(2018, 'Mid-term', 'Spring', 506, 18020125, '1138,1096,984', '2018-04-17 05:34:17'),
(2018, 'Mid-term', 'Spring', 507, 18021067, '1138', '2018-04-17 05:44:41'),
(2018, 'Mid-term', 'Spring', 508, 18021516, '929,1055,1110,972,1121', '2018-04-17 12:26:05'),
(2018, 'Mid-term', 'Spring', 509, 18020550, '1121', '2018-04-17 15:13:16'),
(2018, 'Mid-term', 'Spring', 510, 18020456, '916,1056,1101,1112', '2018-04-17 15:13:40'),
(2018, 'Mid-term', 'Spring', 511, 19021181, '916,1065,1160,1107,1115', '2018-04-17 23:26:50'),
(2018, 'Mid-term', 'Spring', 512, 18021063, '993,1144,968,1097', '2018-04-18 10:16:18'),
(2018, 'Mid-term', 'Spring', 513, 18021074, '966', '2018-04-18 23:40:45'),
(2018, 'Final', 'Spring', 514, 18020054, '1215,1245,1290,1420', '2018-06-19 17:29:09'),
(2018, 'Final', 'Spring', 515, 18029011, '1215,1246,1290', '2018-06-19 17:56:23'),
(2018, 'Final', 'Spring', 516, 19020060, '1260,1263,1316,1360,1384,1407,1421', '2018-06-19 22:45:24'),
(2018, 'Final', 'Spring', 517, 18020056, '1213,1243,1281', '2018-06-19 22:51:12'),
(2018, 'Final', 'Spring', 518, 18021171, '1209,1244,1292,1349,1419', '2018-06-19 22:57:47'),
(2018, 'Final', 'Spring', 519, 19020146, '1277,1313,1361,1384,1418,1421', '2018-06-19 23:07:07'),
(2018, 'Final', 'Spring', 520, 18021073, '1209,1242,1292', '2018-06-19 23:10:51'),
(2018, 'Final', 'Spring', 521, 18021184, '1215,1248,1290,1349', '2018-06-19 23:12:52'),
(2018, 'Final', 'Spring', 522, 18021227, '1215,1243,1290', '2018-06-19 23:14:37'),
(2018, 'Final', 'Spring', 523, 18029025, '1241', '2018-06-19 23:28:58'),
(2018, 'Final', 'Spring', 524, 18021105, '1209,1292,1321,1383', '2018-06-19 23:29:51'),
(2018, 'Final', 'Spring', 525, 18029031, '1383', '2018-06-19 23:31:44'),
(2018, 'Final', 'Spring', 526, 18020472, '1213,1295,1313,1419,1421', '2018-06-19 23:36:00'),
(2018, 'Final', 'Spring', 527, 18021168, '1202,1213,1295,1349', '2018-06-19 23:37:18'),
(2018, 'Final', 'Spring', 528, 18021130, '1202,1215,1262,1290,1349', '2018-06-19 23:37:23'),
(2018, 'Final', 'Spring', 529, 18021185, '1215,1242,1290,1349', '2018-06-19 23:39:55'),
(2018, 'Final', 'Spring', 530, 18021166, '1205,1259,1286,1349', '2018-06-19 23:40:25'),
(2018, 'Final', 'Spring', 531, 18020105, '1205,1286,1323', '2018-06-19 23:41:47'),
(2018, 'Final', 'Spring', 532, 18028038, '1262', '2018-06-19 23:45:14'),
(2018, 'Final', 'Spring', 533, 18021134, '1211,1259,1294,1381', '2018-06-19 23:44:03'),
(2018, 'Final', 'Spring', 534, 18020453, '1268,1318,1346,1384,1414,1421', '2018-06-19 23:50:39'),
(2018, 'Final', 'Spring', 535, 18029004, '1213,1242,1281,1373', '2018-06-19 23:51:21'),
(2018, 'Final', 'Spring', 536, 18021090, '1219,1296,1322,1419', '2018-06-19 23:52:27'),
(2018, 'Final', 'Spring', 537, 18021042, '1211,1247,1294', '2018-06-19 23:53:23'),
(2018, 'Final', 'Spring', 538, 18021197, '1205,1246,1286,1323', '2018-06-19 23:58:03'),
(2018, 'Final', 'Spring', 539, 18029041, '1202,1349', '2018-06-20 00:00:56'),
(2018, 'Final', 'Spring', 540, 19020193, '1260,1277,1310,1345,1384,1418,1421', '2018-06-20 00:23:55'),
(2018, 'Final', 'Spring', 541, 18020130, '1213,1259,1281,1383', '2018-06-20 00:28:46'),
(2018, 'Final', 'Spring', 542, 18029033, '1205,1286,1383', '2018-06-20 00:29:47'),
(2018, 'Final', 'Spring', 543, 18021228, '1219,1247,1285', '2018-06-20 00:46:06'),
(2018, 'Final', 'Spring', 544, 18021145, '1205,1242,1286', '2018-06-20 00:53:14'),
(2018, 'Final', 'Spring', 545, 18020030, '1209,1292,1322', '2018-06-20 00:59:28'),
(2018, 'Final', 'Spring', 546, 19020092, '1268,1315,1375,1384,1414,1421', '2018-06-20 01:22:23'),
(2018, 'Final', 'Spring', 547, 18021061, '1205,1242,1286', '2018-06-20 01:27:06'),
(2018, 'Final', 'Spring', 548, 18021053, '1209,1292,1373', '2018-06-20 01:32:31'),
(2018, 'Final', 'Spring', 549, 18021226, '1217,1258,1283,1323,1419', '2018-06-20 01:36:40'),
(2018, 'Final', 'Spring', 550, 18021527, '1213,1260,1295,1383', '2018-06-20 01:46:26'),
(2018, 'Final', 'Spring', 551, 18021035, '1213,1246,1295,1323', '2018-06-20 01:55:56'),
(2018, 'Final', 'Spring', 552, 18021083, '1207', '2018-06-20 03:06:12'),
(2018, 'Final', 'Spring', 553, 18021092, '1209,1261,1292,1382', '2018-06-20 03:00:03'),
(2018, 'Final', 'Spring', 554, 18020135, '1205,1244,1286,1322', '2018-06-20 03:07:44'),
(2018, 'Final', 'Spring', 555, 18021219, '1211,1260,1294,1349', '2018-06-20 03:09:14'),
(2018, 'Final', 'Spring', 556, 18021033, '1209,1261,1292,1382', '2018-06-20 03:10:02'),
(2018, 'Final', 'Spring', 557, 18021102, '1211,1243,1294,1373', '2018-06-20 03:11:25'),
(2018, 'Final', 'Spring', 558, 17020200, '1209,1262,1292,1349', '2018-06-20 03:12:53'),
(2018, 'Final', 'Spring', 559, 18020033, '1205,1245,1281,1349', '2018-06-20 03:13:24'),
(2018, 'Final', 'Spring', 560, 18020206, '1349', '2018-06-20 03:41:36'),
(2018, 'Final', 'Spring', 561, 18020473, '1421', '2018-06-20 04:13:26'),
(2018, 'Final', 'Spring', 562, 18021103, '1219,1245,1285,1349', '2018-06-20 04:22:58'),
(2018, 'Final', 'Spring', 563, 19020002, '1189,1268,1367,1384,1414', '2018-06-20 11:41:46'),
(2018, 'Final', 'Spring', 564, 18021011, '1207,1247,1288,1349,1420', '2018-06-20 04:54:01'),
(2018, 'Final', 'Spring', 565, 18020074, '1209,1262,1292,1373', '2018-06-20 05:26:35'),
(2018, 'Final', 'Spring', 566, 18021220, '1219,1247,1296,1349', '2018-06-20 05:43:03'),
(2018, 'Final', 'Spring', 567, 19020080, '1272,1312,1347,1384,1405,1421', '2018-06-20 15:07:52'),
(2018, 'Final', 'Spring', 568, 18072540, '1373', '2018-06-20 22:00:38'),
(2018, 'Final', 'Spring', 569, 18028005, '1211,1289,1321,1381', '2018-06-20 22:38:42'),
(2018, 'Final', 'Spring', 570, 18021070, '1209,1292,1323,1419', '2018-06-21 02:49:21'),
(2018, 'Final', 'Spring', 571, 18020189, '1217,1283,1373', '2018-06-21 08:48:25'),
(2018, 'Final', 'Spring', 572, 18029027, '1205,1244,1286', '2018-06-21 09:24:28'),
(2018, 'Final', 'Spring', 573, 17020179, '1217,1262,1283,1349', '2018-06-21 12:26:14'),
(2018, 'Final', 'Spring', 574, 18021116, '1217,1260,1283,1383', '2018-06-21 12:37:24'),
(2018, 'Final', 'Spring', 575, 18020452, '1258,1266,1313,1361,1413,1421', '2018-06-21 12:53:48'),
(2018, 'Final', 'Spring', 576, 18021214, '1209,1259,1292,1383', '2018-06-21 13:36:20'),
(2018, 'Final', 'Spring', 577, 18021183, '1217,1241,1283,1321', '2018-06-21 13:42:32'),
(2018, 'Final', 'Spring', 578, 18021225, '1217,1248,1283', '2018-06-21 13:46:56'),
(2018, 'Final', 'Spring', 579, 18029028, '1202,1219,1296', '2018-06-21 13:49:18'),
(2018, 'Final', 'Spring', 580, 18020019, '1217,1245,1283,1322', '2018-06-21 14:17:07'),
(2018, 'Final', 'Spring', 581, 18021089, '1205,1241,1286', '2018-06-21 14:31:08'),
(2018, 'Final', 'Spring', 582, 18021153, '1349', '2018-06-22 00:52:01'),
(2018, 'Final', 'Spring', 583, 18021096, '1217,1246,1283,1322,1349', '2018-06-21 14:43:09'),
(2018, 'Final', 'Spring', 584, 18020103, '1202,1217,1283,1382', '2018-06-21 14:55:05'),
(2018, 'Final', 'Spring', 585, 18021029, '1219,1285,1419', '2018-06-21 14:55:06'),
(2018, 'Final', 'Spring', 586, 2017020054, '1182,1299', '2018-06-21 14:55:33'),
(2018, 'Final', 'Spring', 587, 18021046, '1215,1290,1383', '2018-06-21 18:37:43'),
(2018, 'Final', 'Spring', 588, 19020133, '1401', '2018-06-26 05:41:32'),
(2018, 'Final', 'Spring', 589, 19020270, '1191,1233,1333,1370,1452', '2018-06-21 23:50:08'),
(2018, 'Final', 'Spring', 590, 18020115, '1219,1241,1296', '2018-06-22 00:30:14'),
(2018, 'Final', 'Spring', 591, 18020088, '1217,1283,1382', '2018-06-22 00:33:54'),
(2018, 'Final', 'Spring', 592, 18020075, '1205,1246,1286', '2018-06-22 01:16:33'),
(2018, 'Final', 'Spring', 593, 17020154, '1217,1262,1283,1383', '2018-06-22 02:01:05'),
(2018, 'Final', 'Spring', 594, 19020231, '1198,1268,1414', '2018-06-22 02:20:09'),
(2018, 'Final', 'Spring', 595, 18020101, '1209,1246,1292', '2018-06-22 02:30:07'),
(2018, 'Final', 'Spring', 596, 18029009, '1211', '2018-06-22 02:40:27'),
(2018, 'Final', 'Spring', 597, 18020050, '1217', '2018-06-22 02:41:55'),
(2018, 'Final', 'Spring', 598, 18021123, '1215,1247,1290,1322,1349', '2018-06-22 04:49:43'),
(2018, 'Final', 'Spring', 599, 18021076, '1207,1248,1282,1322', '2018-06-22 04:51:55'),
(2018, 'Final', 'Spring', 600, 18021075, '1245,1294', '2018-06-22 05:07:48'),
(2018, 'Final', 'Spring', 601, 18020157, '1209,1292,1321', '2018-06-22 05:26:15'),
(2018, 'Final', 'Spring', 602, 18028037, '1244,1321', '2018-06-22 05:51:03'),
(2018, 'Final', 'Spring', 603, 18028004, '1321', '2018-06-23 05:42:46'),
(2018, 'Final', 'Spring', 604, 18021108, '1283,1349,1382', '2018-06-22 07:08:33'),
(2018, 'Final', 'Spring', 605, 18021074, '1292', '2018-06-22 15:16:52'),
(2018, 'Final', 'Spring', 606, 18020080, '1283', '2018-06-22 23:30:09'),
(2018, 'Final', 'Spring', 607, 19021142, '1405', '2018-06-26 05:21:52'),
(2018, 'Final', 'Spring', 608, 18020023, '1420', '2018-06-26 05:37:58'),
(2018, 'Final', 'Spring', 609, 18021208, '1213,1244,1295', '2018-06-22 23:36:06'),
(2018, 'Final', 'Spring', 610, 18020127, '1292', '2018-06-22 23:50:59'),
(2018, 'Final', 'Spring', 611, 18021284, '1289', '2018-06-22 23:51:10'),
(2018, 'Final', 'Spring', 612, 2017180265, '1204,1250,1301,1361,1257,1306,1367', '2018-07-18 13:06:27'),
(2018, 'Mid-term', 'Spring', 613, 18020000, '1136,1033,1172', '2020-09-18 09:46:01');
--
-- Indexes for dumped tables
--
--
-- Indexes for table `ml_wh_examination_data`
--
ALTER TABLE `ml_wh_examination_data`
ADD UNIQUE KEY `did` (`did`),
ADD KEY `did_2` (`did`);
--
-- Indexes for table `ml_wh_examination_feedback`
--
ALTER TABLE `ml_wh_examination_feedback`
ADD PRIMARY KEY (`fid`),
ADD UNIQUE KEY `fid` (`fid`),
ADD KEY `fid_2` (`fid`);
--
-- Indexes for table `ml_wh_examination_roomassignment`
--
ALTER TABLE `ml_wh_examination_roomassignment`
ADD PRIMARY KEY (`cid`),
ADD UNIQUE KEY `cid` (`cid`),
ADD KEY `cid_2` (`cid`);
--
-- Indexes for table `ml_wh_examination_user`
--
ALTER TABLE `ml_wh_examination_user`
ADD PRIMARY KEY (`cid`),
ADD UNIQUE KEY `cid` (`cid`),
ADD KEY `cid_2` (`cid`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `ml_wh_examination_data`
--
ALTER TABLE `ml_wh_examination_data`
MODIFY `did` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
--
-- AUTO_INCREMENT for table `ml_wh_examination_feedback`
--
ALTER TABLE `ml_wh_examination_feedback`
MODIFY `fid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT for table `ml_wh_examination_roomassignment`
--
ALTER TABLE `ml_wh_examination_roomassignment`
MODIFY `cid` bigint(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1460;
--
-- AUTO_INCREMENT for table `ml_wh_examination_user`
--
ALTER TABLE `ml_wh_examination_user`
MODIFY `cid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=614;
COMMIT;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
<reponame>gauthier-scano/pgSQLPlus<gh_stars>0
CREATE FUNCTION @extschema@.create_tablespace(_name TEXT, _location TEXT)
RETURNS TEXT AS
$$
BEGIN
RETURN (SELECT format('CREATE TABLESPACE "%s" LOCATION ''%s'';', _name, _location));
END;
$$
PARALLEL SAFE
LANGUAGE plpgsql;
CREATE FUNCTION @extschema@.set_tablespace_owner(_name TEXT, _owner TEXT, _current_session BOOLEAN DEFAULT NULL)
RETURNS TEXT AS
$$
BEGIN
RETURN (SELECT format(
'ALTER TABLESPACE "%s" OWNER TO %s;',
_name, (CASE _current_session WHEN TRUE THEN 'CURRENT_USER' WHEN FALSE THEN 'SESSION_USER' ELSE ('"' || _owner || '"') END)
));
END;
$$
PARALLEL SAFE
LANGUAGE plpgsql;
CREATE FUNCTION @extschema@.set_tablespace_option(_name TEXT, _key TEXT, _value TEXT)
RETURNS TEXT AS
$$
BEGIN
RETURN (SELECT format('ALTER TABLESPACE "%s" SET (%s = %s);', _name, _key, _value));
END;
$$
PARALLEL SAFE
LANGUAGE plpgsql;
CREATE FUNCTION @extschema@.set_tablespace_option(_name TEXT, _list TEXT[][])
RETURNS TEXT AS
$$
DECLARE
cas TEXT[];
param TEXT[];
query TEXT := '';
BEGIN
FOREACH cas IN ARRAY _list LOOP
param = array_append(param, cas[1] || ' = ' || cas[2]);
END LOOP;
RETURN (SELECT format('ALTER TABLESPACE "%s" SET (%s);', _name, _key, string_to_array(param, ', ')));
END;
$$
PARALLEL SAFE
LANGUAGE plpgsql;
CREATE FUNCTION @extschema@.reset_tablespace_option(_name TEXT, _option_name TEXT)
RETURNS TEXT AS
$$
BEGIN
RETURN (SELECT @extschema@.reset_tablespace_option(_name, ARRAY[_option_name]));
END;
$$
PARALLEL SAFE
LANGUAGE plpgsql;
CREATE FUNCTION @extschema@.reset_tablespace_option(_name TEXT, _option_name TEXT[])
RETURNS TEXT AS
$$
BEGIN
RETURN (SELECT format('ALTER TABLESPACE "%s" RESET (%s);', _name, _key, string_to_array(_option_name, ', ')));
END;
$$
PARALLEL SAFE
LANGUAGE plpgsql;
CREATE FUNCTION @extschema@.drop_tablespace(_name TEXT, _exists BOOLEAN)
RETURNS TEXT AS
$$
BEGIN
RETURN (SELECT format('DROP TABLESPACE %s"%s";', (CASE _exists WHEN TRUE THEN 'IF EXISTS ' ELSE '' END), _name));
END;
$$
PARALLEL SAFE
LANGUAGE plpgsql;
|
-- phpMyAdmin SQL Dump
-- version 4.5.1
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: May 06, 2016 at 05:25 AM
-- Server version: 10.1.8-MariaDB
-- PHP Version: 5.6.14
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
--First create a Database Property by running the following command: Create Database property then copy and
--paste the code and click go in SQL
-- Database: `property`
--
-- --------------------------------------------------------
--
-- Table structure for table `listing`
--
CREATE TABLE `listing` (
`id` int(11) NOT NULL,
`name` varchar(50) NOT NULL,
`price` int(11) NOT NULL,
`bedroom` int(11) NOT NULL,
`bathroom` int(11) NOT NULL,
`storey` int(11) NOT NULL,
`garage` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `listing`
--
INSERT INTO `listing` (`id`, `name`, `price`, `bedroom`, `bathroom`, `storey`, `garage`) VALUES
(1, 'Victoria', 374662, 4, 2, 2, 2),
(2, 'The Xavier', 513268, 4, 2, 1, 2),
(3, 'The Como', 454990, 4, 3, 2, 3),
(4, 'The Apsen', 384356, 4, 2, 2, 2),
(5, 'The Lucretia', 572002, 4, 3, 2, 2),
(6, 'The Toorak', 521951, 5, 2, 1, 2),
(7, 'The Skyscape', 263604, 3, 2, 2, 2),
(8, 'The Clifton', 386103, 3, 2, 1, 1),
(9, 'The Geneva', 390600, 4, 3, 2, 2);
--
-- Indexes for dumped tables
--
--
-- Indexes for table `listing`
--
ALTER TABLE `listing`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `listing`
--
ALTER TABLE `listing`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
SET FOREIGN_KEY_CHECKS = 0;
-- ----------------------------
-- Table structure for `app_log`
-- ----------------------------
DROP TABLE IF EXISTS `app_log`;
CREATE TABLE `app_log` (
`id` INT(10) NOT NULL AUTO_INCREMENT,
`type` VARCHAR(20) NOT NULL COMMENT '日志类型',
`level` VARCHAR(20) NOT NULL COMMENT '日志级别',
`log` TEXT NOT NULL COMMENT '日志内容',
`create_time` DATETIME NOT NULL COMMENT '创建时间',
PRIMARY KEY (`id`)
)
ENGINE = MyISAM
AUTO_INCREMENT = 98045
DEFAULT CHARSET = utf8;
-- ----------------------------
-- Records of app_log
-- ----------------------------
-- ----------------------------
-- Table structure for `article`
-- ----------------------------
DROP TABLE IF EXISTS `article`;
CREATE TABLE `article` (
`id` INT(10) NOT NULL AUTO_INCREMENT COMMENT 'id',
`uri` varchar(100) NOT NULL DEFAULT '' COMMENT '唯一标识符,title转英文生成',
`title` VARCHAR(200) NOT NULL COMMENT '标题',
`content` TEXT COMMENT '内容',
`create_time` DATETIME NOT NULL,
`update_time` DATETIME NOT NULL,
`author` VARCHAR(20) NOT NULL COMMENT '作者',
`column_id` INT(10) NOT NULL COMMENT '文章类型',
`column_name` VARCHAR(20) NOT NULL DEFAULT '' COMMENT '类型名',
`derivation_url` VARCHAR(200) DEFAULT NULL COMMENT '转载原文链接',
`version` INT(10) NOT NULL DEFAULT '0' COMMENT '版本',
`is_delete` CHAR(1) NOT NULL DEFAULT 'N', `comment_count` INT(10) NOT NULL DEFAULT '0'
COMMENT '评论数', `visit_count` INT(10) NOT NULL DEFAULT '0'
COMMENT '查看数', `pic` VARCHAR(100) DEFAULT NULL
COMMENT '文章默认图片', `license` VARCHAR(200) NOT NULL DEFAULT ''
COMMENT '版权声明', `summary` VARCHAR(400) NOT NULL DEFAULT ''
COMMENT '摘要', `index_rank` INT(5) UNSIGNED DEFAULT '0',
`tags` VARCHAR(100) DEFAULT NULL COMMENT '标签',
`length` INT(10) NOT NULL DEFAULT '0' COMMENT '字数',
PRIMARY KEY (`id`)
)
ENGINE = InnoDB
AUTO_INCREMENT = 71
DEFAULT CHARSET = utf8;
-- ----------------------------
-- Records of article
-- ----------------------------
INSERT INTO article VALUES
(1, 'uri','title', 'test content', now(), now(), 'wchukai', 1, '技术', '', 1, 'N', 1, 1, '', '', 'summary', 0, NULL, 100);
-- ----------------------------
-- Table structure for `article_draft`
-- ----------------------------
DROP TABLE IF EXISTS `article_draft`;
CREATE TABLE `article_draft` (
`id` INT(10) NOT NULL AUTO_INCREMENT COMMENT 'id',
`uri` varchar(100) NOT NULL DEFAULT '' COMMENT '唯一标识符,title转英文生成',
`article_id` INT(10) DEFAULT NULL COMMENT '文章id',
`title` VARCHAR(200) NOT NULL COMMENT '标题',
`content` TEXT COMMENT '内容', `html_content` TEXT,
`create_time` DATETIME NOT NULL,
`update_time` DATETIME NOT NULL,
`author` VARCHAR(20) NOT NULL,
`is_publish` CHAR(1) NOT NULL COMMENT '是否已发布',
`column_id` INT(10) NOT NULL,
`is_delete` CHAR(1) NOT NULL DEFAULT 'N',
`version` INT(11) NOT NULL DEFAULT '1',
`licence` VARCHAR(200) DEFAULT NULL,
`tags` VARCHAR(100) DEFAULT NULL,
PRIMARY KEY (`id`)
)
ENGINE = InnoDB
AUTO_INCREMENT = 71
DEFAULT CHARSET = utf8;
-- ----------------------------
-- Records of article_draft
-- ----------------------------
-- ----------------------------
-- Table structure for `article_draft_history`
-- ----------------------------
DROP TABLE IF EXISTS `article_draft_history`;
CREATE TABLE `article_draft_history` (
`history_id` INT(10) NOT NULL AUTO_INCREMENT,
`id` INT(10) DEFAULT NULL COMMENT 'id',
`uri` varchar(100) NOT NULL DEFAULT '' COMMENT '唯一标识符,title转英文生成',
`article_id` INT(10) DEFAULT NULL COMMENT '文章id',
`title` VARCHAR(200) DEFAULT NULL COMMENT '标题',
`content` TEXT COMMENT '内容',
`html_content` TEXT,
`create_time` DATETIME DEFAULT NULL,
`update_time` DATETIME DEFAULT NULL,
`author` VARCHAR(20) DEFAULT NULL,
`is_publish` CHAR(1) DEFAULT NULL COMMENT '是否已发布',
`column_id` INT(10) DEFAULT NULL,
`is_delete` CHAR(1) DEFAULT NULL,
`version` INT(11) DEFAULT '1',
`licence` VARCHAR(200) DEFAULT NULL,
`tags` VARCHAR(100) DEFAULT NULL,
PRIMARY KEY (`history_id`)
)
ENGINE = InnoDB
AUTO_INCREMENT = 267
DEFAULT CHARSET = utf8;
-- ----------------------------
-- Records of article_draft_history
-- ----------------------------
-- ----------------------------
-- Table structure for `article_tag`
-- ----------------------------
DROP TABLE IF EXISTS `article_tag`;
CREATE TABLE `article_tag` (
`id` INT(18) NOT NULL AUTO_INCREMENT,
`tag_name` VARCHAR(10) NOT NULL COMMENT '标签名',
`article_id` INT(18) NOT NULL COMMENT '文章id',
PRIMARY KEY (`id`)
)
ENGINE = MyISAM
AUTO_INCREMENT = 86
DEFAULT CHARSET = utf8;
-- ----------------------------
-- Records of article_tag
-- ----------------------------
INSERT INTO article_tag VALUES (1, 'java', 1);
-- ----------------------------
-- Table structure for `columns`
-- ----------------------------
DROP TABLE IF EXISTS `columns`;
CREATE TABLE `columns` (
`id` INT(10) NOT NULL AUTO_INCREMENT,
`cn_name` VARCHAR(20) NOT NULL,
`en_name` VARCHAR(20) NOT NULL,
`slogans` VARCHAR(200) DEFAULT NULL,
PRIMARY KEY (`id`)
)
ENGINE = MyISAM
AUTO_INCREMENT = 10
DEFAULT CHARSET = utf8;
-- ----------------------------
-- Records of columns
-- ----------------------------
INSERT INTO `columns` VALUES ('1', '技能', 'skills', '技术改变世界,那就让世界看到你的影响力。');
INSERT INTO `columns` VALUES ('2', '心悟', 'sensibility', '路漫漫其修远兮 吾将上下而求索。');
INSERT INTO `columns` VALUES ('3', '转载', 'reprints', '他山之石,可以攻玉。');
INSERT INTO `columns` VALUES ('4', '未归类', 'other', NULL);
INSERT INTO `columns` VALUES ('5', '烹饪', 'cooking', '黑暗料理十八式菜谱精要(:з」∠)');
INSERT INTO `columns` VALUES ('6', '健身', 'exercise', '好羡慕喝凉水都会胖的人,我只是想增个肌~');
INSERT INTO `columns` VALUES ('7', '摄影', 'photography', NULL);
INSERT INTO `columns` VALUES ('8', '旅行', 'travel', '世界那么大,有空去看看!');
INSERT INTO `columns` VALUES ('9', '文档', 'doc', NULL);
-- ----------------------------
-- Table structure for `comments`
-- ----------------------------
DROP TABLE IF EXISTS `comments`;
CREATE TABLE `comments` (
`id` INT(10) NOT NULL AUTO_INCREMENT,
`article_id` INT(10) NOT NULL COMMENT '文章id',
`uri` VARCHAR(200) NOT NULL COMMENT '文章uri',
`reply_id` INT(10) DEFAULT NULL COMMENT '回复的comment.id',
`comment` VARCHAR(500) NOT NULL DEFAULT '',
`create_time` DATETIME NOT NULL,
`user_name` VARCHAR(50) NOT NULL,
`email` VARCHAR(50) DEFAULT NULL,
`is_delete` VARCHAR(1) NOT NULL DEFAULT 'N' COMMENT '是否删除',
`website` VARCHAR(200) DEFAULT NULL,
PRIMARY KEY (`id`)
)
ENGINE = MyISAM
AUTO_INCREMENT = 31
DEFAULT CHARSET = utf8;
-- ----------------------------
-- Records of comments
-- ----------------------------
INSERT INTO comments VALUES (1, 1, 'uri',NULL, 'comment', now(), 'test', '<EMAIL>', 'N', NULL);
-- ----------------------------
-- Table structure for `config`
-- ----------------------------
DROP TABLE IF EXISTS `config`;
CREATE TABLE `config` (
`config_key` VARCHAR(40) NOT NULL,
`config_value` VARCHAR(200) NOT NULL DEFAULT '',
`config_comment` VARCHAR(100) DEFAULT NULL,
PRIMARY KEY (`config_key`)
)
ENGINE = MyISAM
DEFAULT CHARSET = utf8;
-- ----------------------------
-- Records of config
-- ----------------------------
INSERT INTO `config` VALUES ('RESET_SEARCH_INDEX', 'false', '重置索引标志');
INSERT INTO `config` VALUES ('RECOMMENDED_ARTICLE_IDS', '1', '推荐文章');
-- ----------------------------
-- Table structure for `meta_cl_blog_log`
-- ----------------------------
DROP TABLE IF EXISTS `meta_cl_blog_log`;
CREATE TABLE `meta_cl_blog_log` (
`id` INT(10) NOT NULL AUTO_INCREMENT,
`site` VARCHAR(10) NOT NULL COMMENT '站点',
`article_id` INT(10) NOT NULL COMMENT '文章id',
`post_id` VARCHAR(20) NOT NULL COMMENT '对应站点文章id',
`lastest_post_time` DATETIME NOT NULL COMMENT '最后推送时间',
PRIMARY KEY (`id`)
)
ENGINE = MyISAM
AUTO_INCREMENT = 48
DEFAULT CHARSET = utf8;
-- ----------------------------
-- Records of meta_cl_blog_log
-- ----------------------------
-- ----------------------------
-- Table structure for `user`
-- ----------------------------
DROP TABLE IF EXISTS `user`;
CREATE TABLE `user` (
`id` INT(10) NOT NULL AUTO_INCREMENT,
`user_name` VARCHAR(50) NOT NULL,
`password` VARCHAR(50) NOT NULL,
`nick_name` VARCHAR(50) NOT NULL,
`session_id` VARCHAR(50) DEFAULT NULL COMMENT '最后一次登陆时sessionid,用于自动登陆',
`remember` INT(1) DEFAULT 0 ,
PRIMARY KEY (`id`)
)
ENGINE = InnoDB
AUTO_INCREMENT = 2
DEFAULT CHARSET = utf8;
-- ----------------------------
-- Records of user
-- ----------------------------
INSERT INTO `user` VALUES ('1', 'test', '123456', 'test', 'fbe4ed4e-d084-4d45-ba3a-3c1cea744e211', '0');
-- ----------------------------
-- Table structure for `user_tracker`
-- ----------------------------
DROP TABLE IF EXISTS `user_tracker`;
CREATE TABLE `user_tracker` (
`id` INT(10) NOT NULL AUTO_INCREMENT,
`href` VARCHAR(100) NOT NULL,
`tuid` VARCHAR(50) NOT NULL COMMENT '用户追踪标识',
`referer` VARCHAR(1000) DEFAULT NULL,
`create_time` DATETIME NOT NULL,
`params_string` VARCHAR(1000) DEFAULT NULL,
PRIMARY KEY (`id`)
)
ENGINE = MyISAM
AUTO_INCREMENT = 15025
DEFAULT CHARSET = utf8;
-- ----------------------------
-- Records of user_tracker
-- ----------------------------
-- ----------------------------
-- Table structure for `visitor_info`
-- ----------------------------
DROP TABLE IF EXISTS `visitor_info`;
CREATE TABLE `visitor_info` (
`id` INT(10) NOT NULL AUTO_INCREMENT,
`ip` VARCHAR(200) DEFAULT NULL,
`user_agent` VARCHAR(2000) DEFAULT NULL,
`access_time` DATETIME DEFAULT NULL,
`access_url` VARCHAR(2000) DEFAULT NULL,
`tuid` VARCHAR(50) DEFAULT NULL COMMENT '用户追踪标识',
`server_name` VARCHAR(30) DEFAULT NULL,
PRIMARY KEY (`id`)
)
ENGINE = MyISAM
AUTO_INCREMENT = 196484
DEFAULT CHARSET = utf8;
-- ----------------------------
-- Records of visitor_info
-- ----------------------------
|
-- Revert family:tables/public__families from pg
SET client_min_messages TO 'warning';
BEGIN;
DROP TABLE public.families CASCADE;
COMMIT;
-- vim: expandtab shiftwidth=2
|
create sequence "serial"; |
<filename>svn_common/trunk/db/5.sql
INSERT INTO CANID VALUES ('CANID_TENSION_1', '38000000', 'TENSION_1', 'Tension_1: calibrated tension, polled by time msg');
INSERT INTO CANID VALUES ('CANID_TENSION_2', '38800000', 'TENSION_2', 'Tension_2: calibrated tension, polled by time msg');
INSERT INTO CANID VALUES ('CANID_CMD_TENSION_1', '05C0000C', 'TENSION_1', 'Tension_1: Tension_1: Command code: [0] command code, [1]-[8] depends on code');
INSERT INTO CANID VALUES ('CANID_CMD_TENSION_2', '05C0001C', 'TENSION_2', 'Tension_2: Tension_2: Command code: [0] command code, [1]-[8] depends on code');
INSERT INTO CANID VALUES ('CANID_MOTOR_1', '25000000', 'MOTOR_1', 'MOTOR_1: Motor speed');
INSERT INTO CANID VALUES ('CANID_CMD_CABLE_ANGLE', '05D0000C', 'CABLE_ANGLE_1', 'CableAngle1: [0] command code, [1]-[8] depends on code');
INSERT INTO CANID VALUES ('CANID_CABLE_ANGLE_1', '3A000000', 'CABLE_ANGLE_1', 'Cable angle for drum #1');
INSERT INTO CANID VALUES ('CANID_CABLE_ANGLE_ALARM', '2A000000', 'CABLE_ANGLE_1', 'Cable angle unreliable for drum #1');
INSERT INTO CANID VALUES ('CANID_CMD_ENGINE_SENSOR', '80600000', 'ENGINE_SENSOR', 'Engine: rpm:manifold pressure');
INSERT INTO CANID VALUES ('CANID_ENG_RPMMANIFOLD', '40600000', 'ENGINE_SENSOR', 'Engine: rpm:manifold pressure');
INSERT INTO CANID VALUES ('CANID_ENG_TEMP', '70600000', 'ENGINE_SENSOR', 'Engine: thermistor converted to temp');
INSERT INTO CANID VALUES ('CANID_ENG_THERMTHROTL', '60600000', 'ENGINE_SENSOR', 'Engine: thermistor:throttle pot');
INSERT INTO CANID VALUES ('CANID_ENG_THROTTLE', '50600000', 'ENGINE_SENSOR', 'Engine: throttle');
INSERT INTO CANID VALUES ('CANID_CMD_TIMESYNC', 'C1C00000', 'TIMESYNC', 'CANID Command GPS ');
INSERT INTO CANID VALUES ('CANID_FIX_HT_TYP_NSAT', 'B1C00000', 'TIMESYNC', 'GPS winch fix: heigth:type fix:number sats');
INSERT INTO CANID VALUES ('CANID_FIX_LATLON', 'A1C00000', 'TIMESYNC', 'GPS winch fix: lattitude:longitude');
INSERT INTO CANID VALUES ('CANID_LG_ER1', 'D1C00004', 'TIMESYNC', '1st code CANID-UNITID_CO_OLI GPS checksum error');
INSERT INTO CANID VALUES ('CANID_LG_ER2', 'D1C00014', 'TIMESYNC', '2nd code CANID-UNITID_CO_OLI GPS Fix error');
INSERT INTO CANID VALUES ('CANID_LG_ER3', 'D1C00024', 'TIMESYNC', '3rd code CANID-UNITID_CO_OLI GPS Time out of step');
INSERT INTO CANID VALUES ('CANID_MC_DRUM_SELECT', 'D0800814', 'MC', 'Drum selection');
INSERT INTO CANID VALUES ('CANID_MC_MOTOR_KEEPALIVE', 'A0800000', 'MC', 'Curtis Controller keepalive');
INSERT INTO CANID VALUES ('CANID_MC_REQUEST_PARAM', 'D0800824', 'MC', 'Request parameters from HC');
INSERT INTO CANID VALUES ('CANID_MC_STATE', 'FFFFFFF4', 'MC', 'CANID: Send msgs during launch');
INSERT INTO CANID VALUES ('CANID_SE2H_ADC2_HistA', 'D0800044', 'SHAFT_ENCODER1', 'SE2: ADC2 HistogramA tx: request count, switch buffers; rx send count');
INSERT INTO CANID VALUES ('CANID_SE2H_ADC2_HistB', 'D0800054', 'SHAFT_ENCODER1', 'SE2: ADC2 HistogramB tx: bin number, rx: send bin count');
INSERT INTO CANID VALUES ('CANID_SE2H_ADC3_ADC2_RD', 'D0800064', 'SHAFT_ENCODER1', 'SE2: ADC3 ADC2 readings readout');
INSERT INTO CANID VALUES ('CANID_SE2H_ADC3_HistA', 'D0800024', 'SHAFT_ENCODER1', 'SE2: ADC3 HistogramA tx: request count, switch buffers. rx: send count');
INSERT INTO CANID VALUES ('CANID_SE2H_ADC3_HistB', 'D0800034', 'SHAFT_ENCODER1', 'SE2: ADC3 HistogramB tx: bin number, rx: send bin count');
INSERT INTO CANID VALUES ('CANID_SE2H_COUNTERnSPEED', '30800000', 'LAUNCH', 'SE2: (Lower sheave) Count and speed');
INSERT INTO CANID VALUES ('CANID_SE2H_ERROR1', 'D0800014', 'LAUNCH', 'SE2: error1');
INSERT INTO CANID VALUES ('CANID_SE2H_ERROR2', 'D0800004', 'LAUNCH', 'SE2: error2');
INSERT INTO CANID VALUES ('CANID_SE3H_ADC2_HistA', 'D0A00044', 'LAUNCH', 'SE3: ADC2 HistogramA tx: request count, switch buffers; rx send count');
INSERT INTO CANID VALUES ('CANID_SE3H_ADC2_HistB', 'D0A00054', 'LAUNCH', 'SE3: ADC2 HistogramB tx: bin number, rx: send bin count');
INSERT INTO CANID VALUES ('CANID_SE3H_ADC3_ADC2_RD', 'D0A00064', 'LAUNCH', 'SE3: ADC3 ADC2 readings readout');
INSERT INTO CANID VALUES ('CANID_SE3H_ADC3_HistA', 'D0A00024', 'LAUNCH', 'SE3: ADC3 HistogramA tx: request count, switch buffers. rx: send count');
INSERT INTO CANID VALUES ('CANID_SE3H_ADC3_HistB', 'D0A00034', 'LAUNCH', 'SE3: ADC3 HistogramB tx: bin number, rx: send bin count');
INSERT INTO CANID VALUES ('CANID_SE3H_COUNTERnSPEED', '30A00000', 'LAUNCH', 'SE3: (upper sheave) Count and Speed');
INSERT INTO CANID VALUES ('CANID_SE3H_ERROR1', 'D0A00014', 'LAUNCH', 'SE3: error1');
INSERT INTO CANID VALUES ('CANID_SE3H_ERROR2', 'D0A00004', 'LAUNCH', 'SE3: error2');
INSERT INTO CANID VALUES ('CANID_SE4H_ADC2_HistA', 'D0400044', 'SHAFT_ENCODER1', 'SE4: ADC2 HistogramA tx: request count, switch buffers; rx send count');
INSERT INTO CANID VALUES ('CANID_SE4H_ADC2_HistB', 'D0400054', 'SHAFT_ENCODER1', 'SE4: ADC2 HistogramB tx: bin number, rx: send bin count');
INSERT INTO CANID VALUES ('CANID_SE4H_ADC3_ADC2_RD', 'D0400064', 'SHAFT_ENCODER1', 'SE4: ADC3 ADC2 readings readout');
INSERT INTO CANID VALUES ('CANID_SE4H_ADC3_HistA', 'D0400024', 'SHAFT_ENCODER1', 'SE4: ADC3 HistogramA tx: request count, switch buffers. rx: send count');
INSERT INTO CANID VALUES ('CANID_SE4H_ADC3_HistB', 'D0400034', 'SHAFT_ENCODER1', 'SE4: ADC3 HistogramB tx: bin number, rx: send bin count');
INSERT INTO CANID VALUES ('CANID_CMD_SE4H', 'D0400074', 'SHAFT_ENCODER1', 'SE4: Command CAN: send commands to subsystem');
INSERT INTO CANID VALUES ('CANID_SE4H_COUNTERnSPEED', '30400000', 'SHAFT_ENCODER1', 'SE4: (drive shaft) count and speed');
INSERT INTO CANID VALUES ('CANID_SE4H_ERROR1', 'D0400014', 'SHAFT_ENCODER1', 'SE4: [2]elapsed_ticks_no_adcticks<2000 ct [3]cic not in sync');
INSERT INTO CANID VALUES ('CANID_SE4H_ERROR2', 'D0400004', 'SHAFT_ENCODER1', 'SE4: [0]encode_state er ct [1]adctick_diff<2000 ct');
INSERT INTO CANID VALUES ('CANID_TILT_ALARM', '02800000', 'TILT_SENSE', 'Tilt: alarm: Vector angle exceeds limit');
INSERT INTO CANID VALUES ('CANID_TILT_ANGLE', '42E00000', 'TILT_SENSE', 'Tilt: Calibrated angles (X & Y)');
INSERT INTO CANID VALUES ('CANID_TILT_XYZ', '42800000', 'TILT_SENSE', 'Calibrated to angle: x,y,z tilt readings');
INSERT INTO CANID VALUES ('CANID_TILT_XYZ_CAL', 'FFFFFFCC', 'TILT_SENSE', 'CANID: Raw tilt ADC readings');
INSERT INTO CANID VALUES ('CANID_TILT_XYZ_RAW', '4280000C', 'TILT_SENSE', 'Raw tilt ADC readings');
INSERT INTO CANID VALUES ('CANID_CMD_TILT', '42C00000', 'TILT_SENSE', 'Command CANID');
INSERT INTO CANID VALUES ('CANID_TIMESYNC', '00200000', 'TILT_SENSE', 'GPS time sync distribution msg');
INSERT INTO CANID VALUES ('CANID_TIME_MSG', 'FFFFFFE4', 'TILT_SENSE', 'CANID: Time msg');
INSERT INTO CANID VALUES ('CANID_UNIT_19', '0280000C', 'UNIT_19', 'Sensor unit: Lower sheave shaft encoder');
INSERT INTO CANID VALUES ('CANID_UNIT_2', '00400000', 'UNIT_2', 'Sensor unit: Drive shaft encoder');
INSERT INTO CANID VALUES ('CANID_UNIT_3', '00600000', 'UNIT_3', 'Sensor unit: Engine');
INSERT INTO CANID VALUES ('CANID_UNIT_4', '00800000', 'UNIT_4', 'Sensor unit: Lower sheave shaft encoder');
INSERT INTO CANID VALUES ('CANID_UNIT_5', '00A00000', 'UNIT_5', 'Sensor unit: Upper sheave shaft encoder');
INSERT INTO CANID VALUES ('CANID_UNIT_8', '01000000', 'UNIT_8', 'Sensor unit: Level wind');
INSERT INTO CANID VALUES ('CANID_UNIT_9', '01200000', 'UNIT_9', 'Sensor unit: XBee receiver #1');
INSERT INTO CANID VALUES ('CANID_UNIT_99', 'FFFFFFF4', 'UNIT_99', 'Dummy for missing CAN IDs');
INSERT INTO CANID VALUES ('CANID_UNIT_A', '0140000C', 'UNIT_A', 'Sensor unit: XBee receiver #2');
INSERT INTO CANID VALUES ('CANID_UNIT_B', '0160000C', 'UNIT_B', 'Display driver/console');
INSERT INTO CANID VALUES ('CANID_UNIT_C', '0180000C', 'UNIT_C', 'CAWs Olimex board');
INSERT INTO CANID VALUES ('CANID_UNIT_D', '01A0000C', 'UNIT_D', 'POD board sensor prototype ("6" marked on board)');
INSERT INTO CANID VALUES ('CANID_UNIT_E', '01C0000C', 'UNIT_E', 'Logger: sensor board w ublox gps & SD card');
INSERT INTO CANID VALUES ('CANID_UNIT_FF', 'FFFFFFE4', 'UNIT_FF', 'Dummy: for HC sandbox');
INSERT INTO CANID VALUES ('CANID_CMD_SANDBOX_1', '28E00000', 'SANDBOX_1', 'HC: SANDBOX_1: Launch parameters');
|
CREATE TABLE Users
(
Id BIGINT UNIQUE IDENTITY NOT NULL,
Username VARCHAR(30) UNIQUE NOT NULL,
Password VARCHAR(26) NOT NULL,
ProfilePicture VARBINARY(MAX),
LastLoginTime DATETIME2,
IsDeleted BIT DEFAULT(0),
);
ALTER TABLE Users
ADD PRIMARY KEY(Id);
ALTER TABLE Users
ADD CONSTRAINT CH_PictureSize2 CHECK(DATALENGTH(ProfilePicture) <= 900 * 1024);
INSERT INTO Users(Username,Password)
VALUES
('First User','User1'),
('Second User','User2'),
('Third User','User3'),
('Fourth User','User4'),
('Fifth User','User5'); |
-- phpMyAdmin SQL Dump
-- version 4.9.0.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Jan 09, 2020 at 06:20 PM
-- Server version: 10.4.6-MariaDB
-- PHP Version: 7.3.9
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- Database: `titipinaja`
--
-- --------------------------------------------------------
--
-- Table structure for table `address`
--
CREATE TABLE `address` (
`id_address` int(11) NOT NULL,
`nama_penerima` varchar(50) NOT NULL,
`no_penerima` varchar(50) NOT NULL,
`provinsi` varchar(50) NOT NULL,
`kota` varchar(50) NOT NULL,
`kecamatan` varchar(50) NOT NULL,
`alamat_lengkap` varchar(100) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `address`
--
INSERT INTO `address` (`id_address`, `nama_penerima`, `no_penerima`, `provinsi`, `kota`, `kecamatan`, `alamat_lengkap`) VALUES
(1, 'fadhil', '0898089898', 'Sumatra Selatan', 'Lahat', 'Puworejo', 'gunung gajah');
-- --------------------------------------------------------
--
-- Table structure for table `admin`
--
CREATE TABLE `admin` (
`id_admin` int(11) NOT NULL,
`username` varchar(50) NOT NULL,
`password` varchar(50) NOT NULL,
`nama_lengkap` varchar(100) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `admin`
--
INSERT INTO `admin` (`id_admin`, `username`, `password`, `nama_lengkap`) VALUES
(1, 'admin', 'admin', '<PASSWORD>');
-- --------------------------------------------------------
--
-- Table structure for table `bank`
--
CREATE TABLE `bank` (
`id_bank` int(50) NOT NULL,
`nama_bank` varchar(100) NOT NULL,
`nama_lengkap` varchar(100) NOT NULL,
`wilayah` varchar(100) NOT NULL,
`cabang` varchar(100) NOT NULL,
`no_rek` varchar(50) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `bank`
--
INSERT INTO `bank` (`id_bank`, `nama_bank`, `nama_lengkap`, `wilayah`, `cabang`, `no_rek`) VALUES
(1, 'BRI AJA', 'Aja Aja', 'Jakarta', 'Kemiri', '087627451947');
-- --------------------------------------------------------
--
-- Table structure for table `customer`
--
CREATE TABLE `customer` (
`id_customer` int(11) NOT NULL,
`email_customer` varchar(50) NOT NULL,
`nama_customer` varchar(100) NOT NULL,
`password_customer` varchar(50) NOT NULL,
`telepon_customer` varchar(20) NOT NULL,
`image_customer` varchar(50) NOT NULL,
`nama_penerima` varchar(100) NOT NULL,
`no_penerima` varchar(20) NOT NULL,
`kecamatan` varchar(100) NOT NULL,
`kabupaten` varchar(100) NOT NULL,
`alamat_lengkap` varchar(100) NOT NULL,
`nama_bank` varchar(50) NOT NULL,
`no_rek` varchar(20) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `customer`
--
INSERT INTO `customer` (`id_customer`, `email_customer`, `nama_customer`, `password_customer`, `telepon_customer`, `image_customer`, `nama_penerima`, `no_penerima`, `kecamatan`, `kabupaten`, `alamat_lengkap`, `nama_bank`, `no_rek`) VALUES
(1, '<EMAIL>', 'Permana Bagas', 'customer01', '089765764763', 'logo-android-08.png', 'Adhitya Bagas', '089765764763', 'Kemiri', 'Purworejo', 'Kemiri, Purworejo, Jawa Tengah', 'BCA', '012321432345'),
(21, '<EMAIL>', '<NAME>', '09876', '08978987656', 'anders-jilden-GjwsHRIcQjU-unsplash.jpg', 'A<NAME> ', '087676879865', 'Lahat', 'Palembang', 'Lahat, Kemiri, Palembang, Sumatera Utara, 54321', 'BRI', '0123432131');
-- --------------------------------------------------------
--
-- Table structure for table `ongkir`
--
CREATE TABLE `ongkir` (
`id_ongkir` int(5) NOT NULL,
`nama_kota` varchar(100) NOT NULL,
`tarif` int(20) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `ongkir`
--
INSERT INTO `ongkir` (`id_ongkir`, `nama_kota`, `tarif`) VALUES
(1, 'Purworejo', 25000),
(2, 'Yogyakarta', 20000);
-- --------------------------------------------------------
--
-- Table structure for table `pembayaran`
--
CREATE TABLE `pembayaran` (
`id_pembayaran` int(11) NOT NULL,
`id_pembelian` int(11) NOT NULL,
`nama_customer` varchar(100) NOT NULL,
`bank` varchar(50) NOT NULL,
`jumlah` int(11) NOT NULL,
`tanggal_pembayaran` date NOT NULL,
`bukti` varchar(500) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `pembayaran`
--
INSERT INTO `pembayaran` (`id_pembayaran`, `id_pembelian`, `nama_customer`, `bank`, `jumlah`, `tanggal_pembayaran`, `bukti`) VALUES
(6, 70, '<NAME>', 'BRI', 4220000, '2020-01-08', '20200108164651Surface Pro Wallpaper 19836.jpg'),
(7, 71, '<NAME>', 'BCA', 5020000, '2020-01-08', '20200108180713vincentiu-solomon-ln5drpv_ImI-unsplash.jpg'),
(8, 72, '<NAME>', 'BRI', 2520000, '2020-01-08', '20200108183558alexander-popov-3InMDrsuYrk-unsplash.jpg'),
(9, 73, '<NAME>', 'BCA', 1775000, '2020-01-09', '20200109070900Vans - 4.jpeg'),
(10, 74, '<NAME>iadi', 'BCA', 1775000, '2020-01-09', '20200109073752Vans - 2.jpeg'),
(11, 75, '<NAME>', 'BCA', 1400000, '2020-01-09', '20200109075523Vans - 3.jpeg'),
(12, 76, '<NAME>', 'BRI', 1770000, '2020-01-09', '20200109164136Vans - 3.jpeg');
-- --------------------------------------------------------
--
-- Table structure for table `pembelian`
--
CREATE TABLE `pembelian` (
`id_pembelian` int(11) NOT NULL,
`id_customer` int(11) NOT NULL,
`id_ongkir` int(5) NOT NULL,
`tanggal_pembelian` date NOT NULL,
`total_pembelian` int(11) NOT NULL,
`nama_kota` varchar(100) NOT NULL,
`tarif` int(11) NOT NULL,
`status_pembelian` varchar(50) NOT NULL DEFAULT 'Pending',
`nomor_resi` varchar(50) NOT NULL,
`ket_refund` varchar(250) NOT NULL,
`tanggal_diterima` date NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `pembelian`
--
INSERT INTO `pembelian` (`id_pembelian`, `id_customer`, `id_ongkir`, `tanggal_pembelian`, `total_pembelian`, `nama_kota`, `tarif`, `status_pembelian`, `nomor_resi`, `ket_refund`, `tanggal_diterima`) VALUES
(70, 21, 2, '2020-01-08', 4220000, 'Yogyakarta', 20000, 'Barang diterima', '123456', '', '2020-01-09'),
(74, 21, 1, '2020-01-09', 1775000, 'Purworejo', 25000, 'Barang diterima', '023125', '', '2020-01-09'),
(75, 21, 2, '2020-01-09', 1400000, 'Yogyakarta', 20000, 'Proses refund', '789456', 'Barang ada cacat', '2020-01-09'),
(76, 21, 2, '2020-01-09', 1770000, 'Yogyakarta', 20000, 'Barang diterima', '098890', '', '2020-01-09'),
(77, 21, 1, '2020-01-09', 1825000, 'Purworejo', 25000, 'Pending', '', '', '0000-00-00');
-- --------------------------------------------------------
--
-- Table structure for table `pembelian_produk`
--
CREATE TABLE `pembelian_produk` (
`id_pembelian_produk` int(11) NOT NULL,
`id_pembelian` int(11) NOT NULL,
`id_produk` int(11) NOT NULL,
`jumlah_produk` int(11) NOT NULL,
`nama` varchar(100) NOT NULL,
`harga` int(50) NOT NULL,
`berat` int(11) NOT NULL,
`sub_berat` int(11) NOT NULL,
`sub_harga` int(50) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `pembelian_produk`
--
INSERT INTO `pembelian_produk` (`id_pembelian_produk`, `id_pembelian`, `id_produk`, `jumlah_produk`, `nama`, `harga`, `berat`, `sub_berat`, `sub_harga`) VALUES
(33, 70, 22, 2, 'Adidas Ultraboost Black ', 2100000, 600, 1200, 4200000),
(37, 74, 25, 1, 'Adidas Boost 36', 1750000, 650, 650, 1750000),
(38, 75, 26, 2, 'Adidas Stan Smith', 690000, 500, 1000, 1380000),
(39, 76, 25, 1, 'Adidas Boost 36', 1750000, 650, 650, 1750000),
(40, 77, 24, 1, 'Adidas Zoom XStyle 36', 1800000, 700, 700, 1800000);
-- --------------------------------------------------------
--
-- Table structure for table `produk`
--
CREATE TABLE `produk` (
`id_produk` int(11) NOT NULL,
`nama_produk` varchar(100) NOT NULL,
`harga_produk` int(11) NOT NULL,
`berat_produk` int(11) NOT NULL,
`image_produk` varchar(100) NOT NULL,
`deskripsi_produk` text NOT NULL,
`stok` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `produk`
--
INSERT INTO `produk` (`id_produk`, `nama_produk`, `harga_produk`, `berat_produk`, `image_produk`, `deskripsi_produk`, `stok`) VALUES
(19, 'Adidas Ultraboost Red', 2500000, 750, 'adidas_red.jpg', 'Adidas Ultraboost Red', 1),
(21, 'Nike Zoom 938 2012', 1200000, 700, 'adidas_white.jpg', 'Nike Zoom 938 2012 AKA White', 3),
(22, 'Adidas Ultraboost Black ', 2100000, 600, 'adidas_black.jpg', 'Adidas Ultraboost Black 2019', 3),
(24, 'Adidas Zoom XStyle 36', 1800000, 700, 'adidas_orange.jpg', 'Adidas Zoom XStyle 36', 3),
(25, 'Adidas Boost 36', 1750000, 650, 'adidas_orange_boost.jpg', 'Adidas Boost 36', 1),
(26, '<NAME>', 690000, 500, 'adidas_stan.jpg', '<NAME>', 3);
-- --------------------------------------------------------
--
-- Table structure for table `produk_request`
--
CREATE TABLE `produk_request` (
`id_request` int(11) NOT NULL,
`id_customer` int(11) NOT NULL,
`nama_request` varchar(100) NOT NULL,
`berat_request` varchar(50) NOT NULL,
`harga_request` varchar(50) NOT NULL,
`link_request` varchar(100) NOT NULL,
`image_request` varchar(100) NOT NULL,
`status_request` varchar(100) NOT NULL DEFAULT 'Request pending'
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `produk_request`
--
INSERT INTO `produk_request` (`id_request`, `id_customer`, `nama_request`, `berat_request`, `harga_request`, `link_request`, `image_request`, `status_request`) VALUES
(2, 21, 'Adidas Stan Vol.1', '350', '745000', 'www.link.ini.com', '20200109105905adidas_camo.jpg', 'Request pending');
--
-- Indexes for dumped tables
--
--
-- Indexes for table `admin`
--
ALTER TABLE `admin`
ADD PRIMARY KEY (`id_admin`);
--
-- Indexes for table `bank`
--
ALTER TABLE `bank`
ADD PRIMARY KEY (`id_bank`);
--
-- Indexes for table `customer`
--
ALTER TABLE `customer`
ADD PRIMARY KEY (`id_customer`);
--
-- Indexes for table `ongkir`
--
ALTER TABLE `ongkir`
ADD PRIMARY KEY (`id_ongkir`);
--
-- Indexes for table `pembayaran`
--
ALTER TABLE `pembayaran`
ADD PRIMARY KEY (`id_pembayaran`);
--
-- Indexes for table `pembelian`
--
ALTER TABLE `pembelian`
ADD PRIMARY KEY (`id_pembelian`);
--
-- Indexes for table `pembelian_produk`
--
ALTER TABLE `pembelian_produk`
ADD PRIMARY KEY (`id_pembelian_produk`);
--
-- Indexes for table `produk`
--
ALTER TABLE `produk`
ADD PRIMARY KEY (`id_produk`);
--
-- Indexes for table `produk_request`
--
ALTER TABLE `produk_request`
ADD PRIMARY KEY (`id_request`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `admin`
--
ALTER TABLE `admin`
MODIFY `id_admin` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `bank`
--
ALTER TABLE `bank`
MODIFY `id_bank` int(50) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `customer`
--
ALTER TABLE `customer`
MODIFY `id_customer` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=22;
--
-- AUTO_INCREMENT for table `ongkir`
--
ALTER TABLE `ongkir`
MODIFY `id_ongkir` int(5) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `pembayaran`
--
ALTER TABLE `pembayaran`
MODIFY `id_pembayaran` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13;
--
-- AUTO_INCREMENT for table `pembelian`
--
ALTER TABLE `pembelian`
MODIFY `id_pembelian` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=78;
--
-- AUTO_INCREMENT for table `pembelian_produk`
--
ALTER TABLE `pembelian_produk`
MODIFY `id_pembelian_produk` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=41;
--
-- AUTO_INCREMENT for table `produk`
--
ALTER TABLE `produk`
MODIFY `id_produk` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=28;
--
-- AUTO_INCREMENT for table `produk_request`
--
ALTER TABLE `produk_request`
MODIFY `id_request` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
COMMIT;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
INSERT INTO public."position" (id, name) VALUES ('90b78312-3356-4d12-b67b-b67684f1fa57', 'Warehouse Clerk');
INSERT INTO public."position" (id, name) VALUES ('129d30b1-7c9e-4740-8ceb-d7f881ae6129', 'Doctor');
INSERT INTO public."position" (id, name) VALUES ('4d8b47d8-bd25-46f8-8d2a-f2c9be037bfb', 'Nurse');
INSERT INTO public."position" (id, name) VALUES ('2c04ab38-2c86-4204-b4eb-440e057ce2b3', 'Human Resources Specialist');
INSERT INTO public."position" (id, name) VALUES ('3657e394-0c3a-4017-93a2-9fbcced15c1e', 'Tech Support Specialist');
|
<reponame>idkjs/ocaml-todo
-- Deploy todo:schema to pg
BEGIN;
CREATE SCHEMA todo;
COMMIT;
|
CREATE TABLE ad_topline (
id String,
account_id String,
client_approval_date Nullable(String),
created_by Nullable(String),
created_date Nullable(String),
description Nullable(String),
flight_end_date Nullable(String),
flight_start_date Nullable(String),
func_cap_amount Nullable(String),
func_cap_amount_with_offset Nullable(String),
func_line_amount Nullable(String),
func_line_amount_with_offset Nullable(String),
func_price Nullable(String),
func_price_with_offset Nullable(String),
gender Nullable(String),
impressions Nullable(Int64),
io_number Nullable(Int64),
is_bonus_line Nullable(Int64),
keywords Nullable(String),
last_updated_by Nullable(String),
last_updated_date Nullable(String),
line_number Nullable(Int64),
line_position Nullable(Int64),
line_type Nullable(String),
location Nullable(String),
max_age Nullable(String),
max_budget Nullable(String),
min_age Nullable(String),
price_per_trp Nullable(String),
product_type Nullable(String),
rev_assurance_approval_date Nullable(String),
targets Nullable(String),
trp_updated_time Nullable(Int64),
trp_value Nullable(String),
uom Nullable(String)
)
ENGINE = Log
|
-- file:box.sql ln:164 expect:true
SELECT * FROM box_temp WHERE f1 |&> '(49.99,49.99),(49.99,49.99)'
|
-- 2018-07-25T15:47:20.735
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Reference (AD_Client_ID,AD_Org_ID,AD_Reference_ID,Created,CreatedBy,EntityType,IsActive,IsOrderByValue,Name,Updated,UpdatedBy,ValidationType) VALUES (0,0,540883,TO_TIMESTAMP('2018-07-25 15:47:20','YYYY-MM-DD HH24:MI:SS'),100,'de.metas.handlingunits','Y','N','M_HU_Trx_Line Target for M_HU',TO_TIMESTAMP('2018-07-25 15:47:20','YYYY-MM-DD HH24:MI:SS'),100,'T')
;
-- 2018-07-25T15:47:20.737
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Reference_Trl (AD_Language,AD_Reference_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Reference_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Reference t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Reference_ID=540883 AND NOT EXISTS (SELECT 1 FROM AD_Reference_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Reference_ID=t.AD_Reference_ID)
;
-- 2018-07-25T15:52:16.150
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Ref_Table (AD_Client_ID,AD_Display,AD_Key,AD_Org_ID,AD_Reference_ID,AD_Table_ID,AD_Window_ID,Created,CreatedBy,EntityType,IsActive,IsValueDisplayed,Updated,UpdatedBy) VALUES (0,549243,549243,0,540883,540515,540190,TO_TIMESTAMP('2018-07-25 15:52:16','YYYY-MM-DD HH24:MI:SS'),100,'de.metas.handlingunits','Y','N',TO_TIMESTAMP('2018-07-25 15:52:16','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2018-07-25T15:53:44.632
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Ref_Table SET WhereClause='exists (select 1 from M_HU_Trx_Line trx where trx.M_HU_ID = M_HU.M_HU_ID and trx.M_HU_ID = @M_HU_ID@)',Updated=TO_TIMESTAMP('2018-07-25 15:53:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Reference_ID=540883
;
-- 2018-07-25T16:25:33.629
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_RelationType (AD_Client_ID,AD_Org_ID,AD_Reference_Source_ID,AD_Reference_Target_ID,AD_RelationType_ID,Created,CreatedBy,EntityType,IsActive,IsDirected,IsTableRecordIdTarget,Name,Updated,UpdatedBy) VALUES (0,0,540499,540883,540208,TO_TIMESTAMP('2018-07-25 16:25:33','YYYY-MM-DD HH24:MI:SS'),100,'de.metas.swat','Y','N','N','M_HU -> M_HU_Trx_Line',TO_TIMESTAMP('2018-07-25 16:25:33','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2018-07-25T16:28:06.175
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Ref_Table SET WhereClause='exists (select 1 from M_HU_Trx_Line trx where trx.M_HU_Trx_Line_ID = M_HU_Trx_Line.M_HU_Trx_Line_ID and trx.M_HU_ID = @M_HU_ID@)',Updated=TO_TIMESTAMP('2018-07-25 16:28:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Reference_ID=540883
;
|
ALTER TABLE PROTOCOL_TYPE
ADD (GLOBAL_FLAG CHAR(1) DEFAULT 'Y')
/
|
<gh_stars>10-100
CREATE TABLE `FinancialAccountAutomationProfiles` (
`FinancialAccountAutomationProfileId` INT NOT NULL AUTO_INCREMENT,
`Guid` VARCHAR(48) NOT NULL,
`Name` VARCHAR(128) NOT NULL,
`FinancialAccountAutomationProfileTypeId` INT NOT NULL,
`DataProviderTypeId` INT NOT NULL,
`ProvidedBy` VARCHAR(512) NOT NULL,
`DateTimeUpdatedUtc` DATETIME NOT NULL,
PRIMARY KEY (`FinancialAccountAutomationProfileId`),
INDEX `Index_DataProviderTypeId` (`DataProviderTypeId` ASC),
INDEX `Index_AutomationTypeId` (`FinancialAccountAutomationProfileTypeId` ASC),
INDEX `Index_Updated` (`DateTimeUpdatedUtc` ASC),
INDEX `Index_Name` (`Name` ASC))
#
CREATE TABLE `FinancialAccountAutomationTypes` (
`FinancialAccountAutomationTypeId` INT NOT NULL AUTO_INCREMENT,
`Name` VARCHAR(128) NOT NULL,
PRIMARY KEY (`FinancialAccountAutomationTypeId`),
INDEX `Index_Name` (`Name` ASC))
#
CREATE TABLE `DataProviderTypes` (
`DataProviderTypeId` INT NOT NULL AUTO_INCREMENT,
`Name` VARCHAR(128) NOT NULL,
PRIMARY KEY (`DataProviderTypeId`),
INDEX `Index_Name` (`Name` ASC))
#
CREATE TABLE `FinancialAccountAutomationProfileFieldSets` (
`FinancialAccountAutomationProfileFieldSetId` INT NOT NULL AUTO_INCREMENT,
`FinancialAccountAutomationProfileId` INT NOT NULL,
`Culture` VARCHAR(16) NOT NULL,
PRIMARY KEY (`FinancialAccountAutomationProfileFieldSetId`),
INDEX `Index_Profile` (`FinancialAccountAutomationProfileId` ASC),
INDEX `Index_Culture` (`Culture` ASC))
#
CREATE TABLE `FieldSetData` (
`FieldSetId` INT NOT NULL,
`FieldSetTypeId` INT NOT NULL,
`DataKeyId` INT NOT NULL,
`DataValue` VARCHAR(2048) NOT NULL,
`DateTimeUpdatedUtc` DATETIME NOT NULL,
PRIMARY KEY (`FieldSetId`, `DataKeyId`, `FieldSetTypeId`),
INDEX `Index_Data` (`DataValue` ASC))
#
CREATE TABLE `DataKeys` (
`DataKeyId` INT NOT NULL AUTO_INCREMENT,
`Name` VARCHAR(128) NOT NULL,
PRIMARY KEY (`DataKeyId`),
INDEX `Index_Name` (`Name` ASC))
#
CREATE TABLE `FieldSetTypes` (
`FieldSetTypeId` INT NOT NULL AUTO_INCREMENT,
`Name` VARCHAR(128) NOT NULL,
PRIMARY KEY (`FieldSetTypeId`),
INDEX `Index_Name` (`Name` ASC))
#
CREATE TABLE `FinancialAccountAutomationProfileCountries` (
`FinancialAccountAutomationProfileId` INT NOT NULL,
`CountryId` INT NOT NULL,
PRIMARY KEY (`FinancialAccountAutomationProfileId`, `CountryId`))
#
CREATE TABLE `FinancialAccountAutomationProfileHistory` (
`FinancialAccountAutomationProfileId` INT NOT NULL,
`Xml` TEXT NOT NULL,
`DateTimeUpdatedUtc` VARCHAR(45) NOT NULL,
INDEX `Index_Profile` (`FinancialAccountAutomationProfileId` ASC),
INDEX `Index_Updated` (`DateTimeUpdatedUtc` ASC))
#
CREATE TABLE `FinancialAccountAutomationProfileVotes` (
`FinancialAccountAutomationProfileId` INT NOT NULL,
`CountryId` INT NOT NULL,
`Culture` VARCHAR(16) NOT NULL,
`Yes` TINYINT NOT NULL,
`SwarmopsInstallationId` VARCHAR(40) NOT NULL,
`PersonId` VARCHAR(45) NOT NULL,
`DateTimeUtc` DATETIME NOT NULL,
PRIMARY KEY (`FinancialAccountAutomationProfileId`, `CountryId`, `Culture`, `PersonId`, `SwarmopsInstallationId`),
INDEX `Index_Yes` (`Yes` ASC))
#
CREATE PROCEDURE `CreateFinancialAccountAutomationProfile`(
IN guid VARCHAR(48),
IN name VARCHAR(128),
IN financialAccountAutomationTypeName VARCHAR(128),
IN dataProviderTypeName VARCHAR(128),
IN providedBy VARCHAR(1024),
IN dateTimeUpdatedUtc DATETIME
)
BEGIN
DECLARE automationTypeId INTEGER;
DECLARE providerTypeId INTEGER;
SELECT 0 INTO automationTypeId;
SELECT 0 INTO providerTypeId;
IF ((SELECT COUNT(*) FROM FinancialAccountAutomationTypes WHERE FinancialAccountAutomationTypes.Name=financialAccountAutomationTypeName) = 0)
THEN
INSERT INTO FinancialAccountAutomationTypes (Name)
VALUES (financialAccountAutomationTypeName);
SELECT LAST_INSERT_ID() INTO automationTypeId;
ELSE
SELECT FinancialAccountAutomationTypes.FinancialAccountAutomationTypeId INTO automationTypeId FROM FinancialAccountAutomationTypes
WHERE FinancialAccountAutomationTypes.Name=financialAccountAutomationTypeName;
END IF;
IF ((SELECT COUNT(*) FROM DataProviderTypes WHERE DataProviderTypes.Name=dataProviderTypeName) = 0)
THEN
INSERT INTO DataProviderTypes (Name)
VALUES (dataProviderTypeName);
SELECT LAST_INSERT_ID() INTO providerTypeId;
ELSE
SELECT DataProviderTypes.DataProviderTypeId INTO providerTypeId FROM DataProviderTypes
WHERE DataProviderTypes.Name=dataProviderTypeName;
END IF;
INSERT INTO FinancialAccountAutomationProfiles (Guid, Name, FinancialAccountAutomationProfileTypeId, DataProviderTypeId, ProvidedBy, DateTimeUpdatedUtc)
VALUES (guid,name,automationTypeId,providerTypeId,providedBy,dateTimeUtc);
SELECT LAST_INSERT_ID() AS Identity;
END
#
CREATE PROCEDURE `SetFinancialAccountAutomationProfileField`(
IN financialAccountAutomationProfileId INT,
IN culture VARCHAR(16),
IN dataKey VARCHAR(128),
IN dataValue VARCHAR(2048),
IN dateTimeUpdatedUtc DATETIME
)
BEGIN
DECLARE fieldSetId INTEGER;
DECLARE dataKeyId INTEGER;
DECLARE fieldSetTypeId INTEGER;
SELECT 0 INTO fieldSetId;
SELECT 0 INTO fieldSetTypeId;
SELECT 0 INTO dataKeyId;
IF ((SELECT COUNT(*) FROM FieldSetTypes WHERE FieldSetTypes.Name="FinancialAccountAutomationProfile") = 0)
THEN
INSERT INTO FieldSetTypes (Name) VALUES ("FinancialAccountAutomationProfile");
SELECT LAST_INSERT_ID() INTO fieldSetTypeId;
ELSE
SELECT FieldSetTypes.FieldSetTypeId INTO fieldSetTypeId FROM FieldSetTypes
WHERE FieldSetTypes.Name="FinancialAccountAutomationProfile";
END IF;
IF ((SELECT COUNT(*) FROM FinancialAccountAutomationProfileFieldSets WHERE
FinancialAccountAutomationProfileFieldSets.FinancialAccountAutomationProfileId=financialAccountAutomationProfileId AND
FinancialAccountAutomationProfileFieldSets.Culture = culture) = 0)
THEN
INSERT INTO FinancialAccountAutomationProfileFieldSets (FinancialAccountAutomationProfileId,Culture)
VALUES (financialAccountAutomationProfileId,culture);
SELECT LAST_INSERT_ID() INTO fieldSetId;
ELSE
SELECT FinancialAccountAutomationProfileFieldSets.FinancialAccountAutomationProfileFieldSetId INTO fieldSetId FROM FinancialAccountAutomationProfileFieldSets
WHERE FinancialAccountAutomationProfileFieldSets.FinancialAccountAutomationProfileId=financialAccountAutomationProfileId AND
FinancialAccountAutomationProfileFieldSets.Culture=culture;
END IF;
IF ((SELECT COUNT(*) FROM DataKeys WHERE DataKeys.Name=dataKey) = 0)
THEN
INSERT INTO DataKeys (Name) VALUES (dataKey);
SELECT LAST_INSERT_ID() INTO dataKeyId;
ELSE
SELECT DataKeys.DataKeyId INTO dataKeyId FROM DataKeys
WHERE DataKeys.Name = dataKey;
END IF;
IF ((SELECT COUNT(*) FROM FieldSetData
WHERE FieldSetData.DataKeyId = dataKeyId
AND FieldSetData.FieldSetId = fieldSetId
AND FieldSetData.FieldSetTypeId = fieldSetTypeId) = 0)
THEN
INSERT INTO FieldSetData (FieldSetId,FieldSetTypeId,DataKeyId,DataValue,DateTimeUpdatedUtc)
VALUES (fieldSetId,fieldSetTypeId,dataKeyId,dataValue,dateTimeUpdatedUtc);
ELSE
UPDATE FieldSetData SET FieldSetData.DataValue=dataValue,FieldSetData.UpdatedDateTimeUtc=updatedDateTimeUtc
WHERE FieldSetData.FieldSetId=fieldSetId
AND FieldSetData.FieldSetTypeId=fieldSetTypeId
AND FieldSetData.DataKeyId=dataKeyId;
END IF;
END
#
CREATE PROCEDURE `SetFinancialAccountAutomationProfileCountryEnabled`(
IN financialAccountAutomationProfileId INT,
IN countryId INT,
IN enabled INT)
BEGIN
IF (enabled=0)
THEN
DELETE FROM FinancialAccountAutomationProfileCountries
WHERE FinancialAccountAutomationProfileCountries.FinancialAccountAutomationProfileId=financialAccountAutomationProfileId
AND FinancialAccountAutomationProfileCountries.CountryId=countryId;
ELSE
IF ((SELECT COUNT(*) FROM FinancialAccountAutomationProfileCountries
WHERE FinancialAccountAutomationProfileCountries.CountryId=countryId
AND FinancialAccountAutomationProfileCountries.FinancialAccountAutomationProfileId=financialAccountAutomationProfileId) = 0)
THEN
INSERT INTO FinancialAccountAutomationProfileCountries(FinancialAccountAutomationProfileId,CountryId)
VALUES (financialAccountAutomationProfileId,countryId);
END IF;
END IF;
END
#
CREATE PROCEDURE `SetFinancialAccountAutomationProfileHistoryEntry`(
IN financialAccountAutomationProfileId INT,
IN xml TEXT,
IN dateTimeUpdatedUtc DATETIME)
BEGIN
INSERT INTO FinancialAccountAutomationProfileHistory (FinancialAccountAuomationProfileId, Xml, DateTimeUpdatedUtc)
VALUES (financialAccountAutomationProfileId, xml, dateTimeUpdatedUtc);
END
|
<filename>server/services/store/sqlstore/migrations/000018_populate_categories.up.sql
CREATE TABLE {{.prefix}}categories (
{{if .mysql}}id INT NOT NULL UNIQUE AUTO_INCREMENT,{{end}}
{{if .postgres}}id SERIAL,{{end}}
{{if .sqlite}}id varchar(36),{{end}}
name varchar(100) NOT NULL,
user_id varchar(32) NOT NULL,
team_id varchar(32) NOT NULL,
{{if not .sqlite}}
channel_id varchar(32) NOT NULL,
{{end}}
create_at BIGINT,
update_at BIGINT,
delete_at BIGINT,
PRIMARY KEY (id)
) {{if .mysql}}DEFAULT CHARACTER SET utf8mb4{{end}};
{{if .plugin}}
INSERT INTO {{.prefix}}categories(
name,
user_id,
team_id,
{{if not .sqlite}}channel_id,{{end}}
create_at,
update_at,
delete_at
)
SELECT
COALESCE(nullif(c.DisplayName, ''), 'Direct Message') as category_name,
cm.UserId,
COALESCE(nullif(c.TeamId, ''), 'direct_message') as team_id,
{{if not .sqlite}}cm.ChannelId,{{end}}
{{if .postgres}}(extract(epoch from now())*1000)::bigint,{{end}}
{{if .mysql}}UNIX_TIMESTAMP() * 1000,{{end}}
{{if .sqlite}}CAST(strftime('%s', 'now') * 1000 as bigint),{{end}}
0,
0
FROM
{{.prefix}}boards boards
JOIN ChannelMembers cm on boards.channel_id = cm.ChannelId
JOIN Channels c on cm.ChannelId = c.id
GROUP BY cm.UserId, c.TeamId, cm.ChannelId, c.DisplayName;
{{if .mysql}}
ALTER TABLE {{.prefix}}categories MODIFY id varchar(36);
{{end}}
{{if .postgres}}
ALTER TABLE {{.prefix}}categories ALTER COLUMN id TYPE varchar(36);
ALTER TABLE {{.prefix}}categories ALTER COLUMN id DROP DEFAULT;
{{end}}
{{end}}
|
\COPY groups(gid, nickname) FROM 'data/groups.dat' WITH DELIMITER ',' NULL '' CSV
\COPY users(email, name, passwordHash) FROM 'data/users.dat' WITH DELIMITER ',' NULL '' CSV
\COPY isDrivenBy(trip_id, email) FROM 'data/isDrivenBy.dat' WITH DELIMITER ',' NULL '' CSV
\COPY isMemberOf(email, gid) FROM 'data/isMemberOf.dat' WITH DELIMITER ',' NULL '' CSV
\COPY passengers(trip_id, email) FROM 'data/passengers.dat' WITH DELIMITER ',' NULL '' CSV
\COPY trips(trip_id, current_location, destination, estimated_start_date_time) FROM 'data/trips.dat' WITH DELIMITER ',' NULL '' CSV
\COPY usersWithCar(email, numSeats) FROM 'data/usersWithCar.dat' WITH DELIMITER ',' NULL '' CSV
|
ALTER SESSION SET `PLANNER.ENABLE_MERGEJOIN` = FALSE;
SELECT COUNT(*)
FROM supplier S, lineitem L, orders O
WHERE S.S_SUPPKEY = L.L_SUPPKEY
AND O.O_ORDERKEY = L.L_ORDERKEY
AND L.L_SHIPDATE BETWEEN DATE '1995-01-01' AND DATE '1995-12-31' ;
ALTER SESSION SET `PLANNER.ENABLE_MERGEJOIN` = TRUE;
|
DROP INDEX IF EXISTS search_data_idx; |
-- phpMyAdmin SQL Dump
-- version 4.6.5.2
-- https://www.phpmyadmin.net/
--
-- Servidor: 127.0.0.1
-- Tiempo de generación: 19-06-2018 a las 06:34:59
-- Versión del servidor: 10.1.21-MariaDB
-- Versión de PHP: 5.6.30
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- Base de datos: `asistencia`
--
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `materias`
--
CREATE TABLE `materias` (
`clave` varchar(10) COLLATE utf8_spanish_ci NOT NULL,
`materia` varchar(35) COLLATE utf8_spanish_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_spanish_ci;
--
-- Volcado de datos para la tabla `materias`
--
INSERT INTO `materias` (`clave`, `materia`) VALUES
('1', 'Administracion de Base de Datos'),
('2', 'Sistemas Programables'),
('3', 'Fundamento de Base de Datos'),
('4', 'Lenguaje y Automatas ll'),
('5', 'Inteligencia Artificial'),
('6', 'Sistemas Operativos'),
('7', 'Calculo Integral'),
('8', 'Conmutacion y Enrutamiento'),
('9', 'Programacion Orientada a Objetos');
--
-- Índices para tablas volcadas
--
--
-- Indices de la tabla `materias`
--
ALTER TABLE `materias`
ADD PRIMARY KEY (`clave`);
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
CREATE view vwCardCommentary
as
select cc.*,
responsible.[name] responsible, responsible.avatar_img,
CONVERT (VARCHAR, cc.created_on, 103) created_date_br,
convert(char(5), cc.created_on, 108) created_hour_br
from card_commentary cc
join [user] u on cc.responsible_id = u.id
join vwPerson responsible on responsible.id = u.person_id |
<reponame>mnabavi84/datacamp-intro-sql<gh_stars>0
-- get the count(deathdate) and multiply by 100.0
-- then divide by count(*)
SELECT COUNT(DEATHDATE)*100.0/COUNT(*)
AS PERCENTAGE_DEAD
FROM PEOPLE;
SELECT MAX(release_year)-MIN(release_year)
AS DIFFERENCE
FROM FILMS;
SELECT (MAX(release_year)-MIN(release_year))/10.0
AS NUMBER_OF_DECADES
FROM FILMS;
SELECT NAME
FROM PEOPLE
ORDER BY NAME;
SELECT NAME
FROM PEOPLE
ORDER BY BIRTHDATE;
SELECT BIRTHDATE, NAME
FROM PEOPLE
ORDER BY BIRTHDATE;
SELECT TITLE
FROM FILMS
WHERE RELEASE_YEAR=2000 OR RELEASE_YEAR=2012
ORDER BY RELEASE_YEAR;
SELECT *
FROM FILMS
WHERE RELEASE_YEAR <>2015
ORDER BY DURATION;
SELECT TITLE, GROSS
FROM FILMS
WHERE TITLE LIKE 'M%'
ORDER BY TITLE;
SELECT FILM_ID, IMDB_SCORE
FROM REVIEWS
ORDER BY IMDB_SCORE DESC;
SELECT TITLE
FROM FILMS
ORDER BY TITLE DESC;
SELECT TITLE, DURATION
FROM FILMS
ORDER BY DURATION DESC;
SELECT BIRTHDATE, NAME
FROM PEOPLE
ORDER BY BIRTHDATE, NAME;
SELECT RELEASE_YEAR, DURATION, TITLE
FROM FILMS
ORDER BY RELEASE_YEAR, DURATION;
SELECT CERTIFICATION, RELEASE_YEAR, TITLE
FROM FILMS
ORDER BY CERTIFICATION, RELEASE_YEAR;
SELECT BIRTHDATE, NAME
FROM PEOPLE
ORDER BY NAME, BIRTHDATE;
SELECT RELEASE_YEAR, COUNT(*)
FROM FILMS
GROUP BY RELEASE_YEAR;
SELECT RELEASE_YEAR, AVG(DURATION)
FROM FILMS
GROUP BY RELEASE_YEAR;
SELECT RELEASE_YEAR, MAX(BUDGET)
FROM FILMS
GROUP BY RELEASE_YEAR;
SELECT IMDB_SCORE, COUNT(*)
FROM REVIEWS
GROUP BY IMDB_SCORE;
SELECT RELEASE_YEAR, MIN(GROSS)
FROM FILMS
GROUP BY RELEASE_YEAR;
SELECT LANGUAGE,SUM(GROSS)
FROM FILMS
GROUP BY LANGUAGE;
SELECT COUNTRY, SUM(BUDGET)
FROM FILMS
GROUP BY COUNTRY;
SELECT RELEASE_YEAR,COUNTRY,MAX(BUDGET)
FROM FILMS
GROUP BY RELEASE_YEAR, COUNTRY
ORDER BY RELEASE_YEAR, COUNTRY;
SELECT COUNTRY, RELEASE_YEAR, MIN(GROSS)
FROM FILMS
GROUP BY RELEASE_YEAR,COUNTRY
ORDER BY COUNTRY, RELEASE_YEAR;
SELECT release_year
FROM films
GROUP BY release_year
HAVING COUNT(title) > 10;
SELECT RELEASE_YEAR, BUDGET, GROSS
FROM FILMS;
SELECT RELEASE_YEAR,BUDGET,GROSS
FROM FILMS
WHERE RELEASE_YEAR>1990;
SELECT RELEASE_YEAR
FROM FILMS
WHERE RELEASE_YEAR>1990
GROUP BY RELEASE_YEAR;
SELECT RELEASE_YEAR,
AVG(BUDGET) AS AVG_BUDGET,
AVG(GROSS) AS AVG_GROSS
FROM FILMS
WHERE RELEASE_YEAR>1990
GROUP BY RELEASE_YEAR;
SELECT RELEASE_YEAR,
AVG(BUDGET) AS AVG_BUDGET,
AVG(GROSS) AS AVG_GROSS
FROM FILMS
WHERE RELEASE_YEAR>1990
GROUP BY RELEASE_YEAR
HAVING (AVG(BUDGET))>60000000;
SELECT RELEASE_YEAR,
AVG(BUDGET) AS AVG_BUDGET,
AVG(GROSS) AS AVG_GROSS
FROM FILMS
WHERE RELEASE_YEAR>1990
GROUP BY RELEASE_YEAR
HAVING (AVG(BUDGET))>60000000
ORDER BY (AVG(GROSS)) DESC;
SELECT COUNTRY,
AVG(BUDGET) AS AVG_BUDGET,
AVG(GROSS) AS AVG_GROSS
FROM FILMS
GROUP BY COUNTRY
HAVING COUNT(TITLE)>10
ORDER BY COUNTRY
LIMIT 5;
SELECT title, imdb_score
FROM films
JOIN reviews
ON films.id = reviews.film_id
WHERE title = 'To Kill a Mockingbird';
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.