sql
stringlengths 6
1.05M
|
|---|
INSERT INTO task(id, keyword, city, scan_limit, repeat_rule, scan_source_id, user_id)
VALUES (100, 'java', 'Moscow', '2020-01-01 10:00:00', 'manually', 1, 10),
(101, 'java', 'Samara', '2020-01-10 16:00:00', 'daily', 1, 10),
(102, 'kotlin', 'New York', '2020-01-13 00:00:00', 'monthly', 2, 10),
(103, 'frontend', 'Tolyatti', '2020-02-01 02:00:00', 'weekly', 3, 11),
(104, 'javascript', null, '2019-11-28 11:00:00', 'manually', 2, 11);
INSERT INTO vacancy(id, task_id, title, description, url, date)
VALUES (1000, 100, 'Java programmer (Moscow)', 'Description', 'url', '2020-01-25 16:12:00'),
(1001, 100, 'Fullstack programmer (Samara)', 'Description', 'url', '2020-01-27 13:00:00'),
(1002, 100, 'Java programmer (relocation)', 'Description', 'url', '2020-01-27 16:33:00'),
(1003, 100, 'Android programmer (full-day)', 'Description', 'url', '2020-01-30 08:12:00'),
(1004, 101, 'Java programmer (Moscow)', 'Description', 'url', '2020-01-27 06:00:00'),
(1005, 101, 'Scala programmer (visa sponsorship)', 'Description', 'url', '2020-01-28 14:13:00'),
(1006, 101, 'Fullstack programmer (Java, Kotlin)', 'Description', 'url', '2020-01-30 07:58:00'),
(1007, 103, 'JS-react programmer', 'Ajax description', 'url', '2020-01-30 8:34:00')
|
<reponame>KaiJack1/Employee-Tracker<gh_stars>0
--CREATING OUR DATABASE --
DROP DATABASE IF EXISTS employee_trackerDB;
CREATE DATABASE employee_trackerDB;
USE employee_trackerDB;
-- DEPARTMENT TABLE ----
CREATE TABLE department (
id INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
name VARCHAR(30)
);
-- DEPARTMENT TABLE ----
CREATE TABLE role (
id INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
title VARCHAR(30),
salary DECIMAL,
department_id INT,
FOREIGN KEY (department_id) REFERENCES department(id)
);
-- EMPLOYEE ROLE TABLE ----
CREATE TABLE employee (
id INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
first_name VARCHAR(30),
last_name VARCHAR(30),
manager_id INT,
role_id INT,
FOREIGN KEY (role_id) REFERENCES role(id),
FOREIGN KEY (manager_id) REFERENCES employee(id)
);
-- DEPARTMENT SEEDS -----
INSERT INTO department (name)
VALUE ("Sales");
INSERT INTO department (name)
VALUE ("Engineering");
INSERT INTO department (name)
VALUE ("Finance");
INSERT INTO department (name)
VALUE ("Legal");
-- EMPLOYEE ROLE SEEDS -------
INSERT INTO role (title, salary, department_id)
VALUE ("Lead Engineer", 150000, 2);
INSERT INTO role (title, salary, department_id)
VALUE ("Legal Team Lead", 250000, 4);
INSERT INTO role (title, salary, department_id)
VALUE ("Accountant", 125000, 3);
INSERT INTO role (title, salary, department_id)
VALUE ("Sales Lead", 100000, 1);
INSERT INTO role (title, salary, department_id)
VALUE ("Salesperson", 80000, 1);
INSERT INTO role (title, salary, department_id)
VALUE ("Software Engineer", 120000, 2);
INSERT INTO role (title, salary, department_id)
VALUE ("Lawyer", 190000, 4);
-- EMPLOYEE SEEDS -------
INSERT INTO employee (first_name, last_name, manager_id, role_id)
VALUE ("Jessica", "Haze", null, 1);
INSERT INTO employee (first_name, last_name, manager_id, role_id)
VALUE ("Tiffany", "Patric", null, 2);
INSERT INTO employee (first_name, last_name, manager_id, role_id)
VALUE ("Mia","Lam",null,3);
INSERT INTO employee (first_name, last_name, manager_id, role_id)
VALUE ("Bently", "Lao", 1, 4);
INSERT INTO employee (first_name, last_name, manager_id, role_id)
VALUE ("Chris", "Melby", 4, 5);
INSERT INTO employee (first_name, last_name, manager_id, role_id)
VALUE ("Jason", "Baker", 1, 6);
INSERT INTO employee (first_name, last_name, manager_id, role_id)
VALUE ("Tom", "Nice", 2, 7);
-- SELECTING FOR CREATING
--TABLES IN OUR SQL WORKBENCH
SELECT * FROM department;
SELECT * FROM role;
SELECT * FROM employee;
|
--------------------------------------------------------
-- creating partitioned hive table with avro format --
--------------------------------------------------------
--- data source data import given here bigdata/sqoop/01-import-simple.sh
dfs -ls -R /user/cloudera/staging/sq_import/retail_db/orders_avro;
! cat /home/cloudera/data/avro/sqoop_import_orders.avsc;
dfs -mkdir -p /user/cloudera/staging/avro/schema/orders;
dfs -put /home/cloudera/data/avro/sqoop_import_orders.avsc /user/cloudera/staging/avro/schema/orders;
dfs -ls /user/cloudera/staging/avro/schema/orders;
--- create hive partitioned table
CREATE TABLE IF NOT EXISTS retail_db.orders_avro_part
PARTITIONED BY (order_month int)
STORED AS AVRO
TBLPROPERTIES ('avro.schema.url'='/user/cloudera/staging/avro/schema/orders/sqoop_import_orders.avsc');
--- desc the table
DESCRIBE FORMATTED retail_db.orders_avro_part;
--- check hive partition settings, mode will be strict
set hive.exec.dynamic.partition;
set hive.exec.dynamic.partition.mode;
--- add partition, try 9 & 09 and see which one gets the data
ALTER TABLE retail_db.orders_avro_part ADD PARTITION(order_month=09);
ALTER TABLE retail_db.orders_avro_part ADD PARTITION(order_month=9);
--- check partition folders
dfs -ls hdfs://quickstart.cloudera:8020/user/hive/warehouse/retail_db.db/orders_avro_part;
--- load data into table from retail_db.orders_avro
FROM retail_db.orders_avro
INSERT INTO retail_db.orders_avro_part PARTITION (order_month=9)
SELECT *
WHERE month(FROM_UNIXTIME(cast(order_date/1000 as int))) = 9;
--- check partition folders
dfs -ls -R hdfs://quickstart.cloudera:8020/user/hive/warehouse/retail_db.db/orders_avro_part;
dfs -rm -R hdfs://quickstart.cloudera:8020/user/hive/warehouse/retail_db.db/orders_avro_part/order_month=09;
--- now switch partition mode to nonstrict to load dynamically
set hive.exec.dynamic.partition.mode=nonstrict;
--- lets load data for rest of the month
FROM retail_db.orders_avro o
INSERT INTO retail_db.orders_avro_part PARTITION (order_month)
SELECT o.*, month(FROM_UNIXTIME(cast(o.order_date/1000 as int))) order_month
WHERE month(FROM_UNIXTIME(cast(o.order_date/1000 as int))) <> 9;
--- check folders and files on hdfs
dfs -ls -R hdfs://quickstart.cloudera:8020/user/hive/warehouse/retail_db.db/orders_avro_part;
--- check data in hive
SELECT * FROM retail_db.orders_avro_part limit 10;
|
drop table if exists t1;
create table t1(i int)$$
insert into t1 values(1),(2),(3);
# create a time partition
create time partition on t1 as t1_tp period 'daily' retention 2 start '{{STARTTIME}}';
select sleep(5);
select * from t1_tp;
# Schema change the time partition
alter table t1_tp add column j int null$$
select name, csc2 from sqlite_master where name not like 'sqlite%' and type = 'table' order by name;
# We should now see the newly added column
select * from t1_tp;
# Try creating indices
create unique index idx1 on t1_tp(i);
create index idx2 on t1_tp(i);
select name, csc2 from sqlite_master where name not like 'sqlite%' and type = 'table' order by name;
# Schema change the time partition, again
alter table t1_tp drop column i$$
select name, csc2 from sqlite_master where name not like 'sqlite%' and type = 'table' order by name;
# We should NOT see the dropped column anymore
select * from t1_tp;
# cleanup
drop time partition t1_tp;
|
<gh_stars>1000+
-- +migrate Up notransaction
ALTER TYPE enum_alert_log_subject_type ADD VALUE IF NOT EXISTS 'heartbeat_monitor';
-- +migrate Down
|
-- phpMyAdmin SQL Dump
-- version 5.0.2
-- https://www.phpmyadmin.net/
--
-- Host: 1192.168.127.12
-- Generation Time: May 21, 2020 at 09:05 PM
-- Server version: 10.4.11-MariaDB
-- PHP Version: 7.4.6
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: `yii2basic`
--
-- --------------------------------------------------------
--
-- Table structure for table `country`
--
CREATE TABLE `country` (
`code` char(2) COLLATE utf8_unicode_ci NOT NULL,
`name` char(52) COLLATE utf8_unicode_ci NOT NULL,
`population` int(11) NOT NULL DEFAULT 0,
`country_desc` char(255) COLLATE utf8_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
--
-- Dumping data for table `country`
--
INSERT INTO `country` (`code`, `name`, `population`, `country_desc`) VALUES
('AU', 'Australia', 24016400, ''),
('BR', 'Brazil', 205722000, ''),
('CA', 'Canada', 35985751, ''),
('CN', 'China', 1375210000, ''),
('df', 'dfdfdf', 23232, 'ewewewe'),
('FR', 'France', 64513242, '');
-- --------------------------------------------------------
--
-- Table structure for table `media`
--
CREATE TABLE `media` (
`id` int(11) NOT NULL,
`filename` text DEFAULT NULL,
`filepath` text DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `media`
--
INSERT INTO `media` (`id`, `filename`, `filepath`) VALUES
(1, 'beretta-m9.png', 'uploads/bd7dc4eeb0e42cf8bfc49c0261604fd6.png'),
(2, 'glock-19.png', 'uploads/dbf207a2eaa2b288cd398a8e8733fd10.png'),
(3, 'hk-usp9.png', 'uploads/53f60d16c087a52014b788bf80993e5b.png'),
(4, 'sw-357.png', 'uploads/65e33ddb309fdf77394341abd36ff643.png'),
(5, 'fnp90.png', 'uploads/0f260db56a4c977b1adfa69628264fc0.png');
-- --------------------------------------------------------
--
-- Table structure for table `migration`
--
CREATE TABLE `migration` (
`version` varchar(180) NOT NULL,
`apply_time` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `migration`
--
INSERT INTO `migration` (`version`, `apply_time`) VALUES
('m000000_000000_base', 1590056571),
('m200521_101709_create_media_table', 1590057087);
--
-- Indexes for dumped tables
--
--
-- Indexes for table `country`
--
ALTER TABLE `country`
ADD PRIMARY KEY (`code`);
--
-- Indexes for table `media`
--
ALTER TABLE `media`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `migration`
--
ALTER TABLE `migration`
ADD PRIMARY KEY (`version`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `media`
--
ALTER TABLE `media`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
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>ZhengQinyu/leetcode-go
# Write your MySQL query statement below
select Name AS Customers from Customers where Id not in (select distinct CustomerId from Orders)
|
<reponame>myisjon/flask-web-demo
DROP TABLE IF EXISTS `xinfadi_search`;
CREATE TABLE `xinfadi_search` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`uniq_no` varchar(255) DEFAULT NULL,
`farm_p_name` varchar(255) NOT NULL,
`category` varchar(255) NOT NULL,
`p_type` varchar(255) DEFAULT NULL,
`unit` varchar(255) DEFAULT NULL,
`created_at` datetime DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`),
UNIQUE KEY `uniq_no` (`uniq_no`)
) ENGINE=InnoDB AUTO_INCREMENT=1495 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `xinfadi_show`;
CREATE TABLE `xinfadi_show` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`uniq_no` varchar(255) NOT NULL,
`farm_p_name` varchar(255) DEFAULT NULL,
`category` varchar(255) NOT NULL,
`min_price` float DEFAULT NULL,
`avg_price` float DEFAULT NULL,
`max_price` float DEFAULT NULL,
`p_type` varchar(255) DEFAULT NULL,
`unit` varchar(255) DEFAULT NULL,
`dt` date DEFAULT NULL,
`created_at` datetime DEFAULT CURRENT_TIMESTAMP,
`updated_at` datetime DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=453479 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `xinfadi_vegetables_kdd`;
CREATE TABLE `xinfadi_vegetables_kdd` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`uniq_no` varchar(255) NOT NULL,
`min_price` float DEFAULT NULL,
`avg_price` float DEFAULT NULL,
`max_price` float DEFAULT NULL,
`pre_min_price` float DEFAULT NULL,
`pre_avg_price` float DEFAULT NULL,
`pre_max_price` float DEFAULT NULL,
`one_min_price` float DEFAULT NULL,
`one_avg_price` float DEFAULT NULL,
`one_max_price` float DEFAULT NULL,
`min_price_alpha` float DEFAULT NULL,
`avg_price_alpha` float DEFAULT NULL,
`max_price_alpha` float DEFAULT NULL,
`min_price_at` float DEFAULT NULL,
`avg_price_at` float DEFAULT NULL,
`max_price_at` float DEFAULT NULL,
`min_price_bt` float DEFAULT NULL,
`avg_price_bt` float DEFAULT NULL,
`max_price_bt` float DEFAULT NULL,
`min_mape` float DEFAULT NULL,
`avg_mape` float DEFAULT NULL,
`max_mape` float DEFAULT NULL,
`min_mse` float DEFAULT NULL,
`avg_mse` float DEFAULT NULL,
`max_mse` float DEFAULT NULL,
`dt` date DEFAULT NULL,
`created_at` datetime DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=101031 DEFAULT CHARSET=utf8;
|
<reponame>koushisa/generator-spring-jax-rs
DELETE
FROM
<%= snakeResourceName %>
WHERE enabled = 1
AND <%= snakePrimaryKey %> = /*<%= camelPrimaryKey %>*/'1'
|
<gh_stars>0
SET @sStorageEngine = (SELECT `value` FROM `sys_options` WHERE `name` = 'sys_storage_default');
-- TABLE: PROFILES
CREATE TABLE IF NOT EXISTS `bx_cnl_data` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`author` int(10) unsigned NOT NULL,
`added` int(11) NOT NULL,
`changed` int(11) NOT NULL,
`picture` int(11) NOT NULL,
`cover` int(11) NOT NULL,
`channel_name` varchar(191) NOT NULL,
`views` int(11) NOT NULL default '0',
`rate` float NOT NULL default '0',
`votes` int(11) NOT NULL default '0',
`score` int(11) NOT NULL default '0',
`sc_up` int(11) NOT NULL default '0',
`sc_down` int(11) NOT NULL default '0',
`favorites` int(11) NOT NULL default '0',
`comments` int(11) NOT NULL default '0',
`reports` int(11) NOT NULL default '0',
`featured` int(11) NOT NULL default '0',
`allow_view_to` varchar(255) DEFAULT '3',
PRIMARY KEY (`id`),
UNIQUE INDEX channel_name (`channel_name`),
FULLTEXT KEY `search_fields` (`channel_name`)
);
-- TABLE: items
CREATE TABLE IF NOT EXISTS `bx_cnl_content` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`content_id` int(11) NOT NULL,
`cnl_id` int(11) NOT NULL,
`author_id` int(11) NOT NULL,
`module_name` varchar(19) NOT NULL,
PRIMARY KEY (`id`)
);
-- TABLE: STORAGES & TRANSCODERS
CREATE TABLE `bx_cnl_pics` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`profile_id` int(10) unsigned NOT NULL,
`remote_id` varchar(128) NOT NULL,
`path` varchar(255) NOT NULL,
`file_name` varchar(255) NOT NULL,
`mime_type` varchar(128) NOT NULL,
`ext` varchar(32) NOT NULL,
`size` int(11) NOT NULL,
`added` int(11) NOT NULL,
`modified` int(11) NOT NULL,
`private` int(11) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `remote_id` (`remote_id`)
);
CREATE TABLE `bx_cnl_pics_resized` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`profile_id` int(10) unsigned NOT NULL,
`remote_id` varchar(128) NOT NULL,
`path` varchar(255) NOT NULL,
`file_name` varchar(255) NOT NULL,
`mime_type` varchar(128) NOT NULL,
`ext` varchar(32) NOT NULL,
`size` int(11) NOT NULL,
`added` int(11) NOT NULL,
`modified` int(11) NOT NULL,
`private` int(11) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `remote_id` (`remote_id`)
);
-- TABLE: comments
CREATE TABLE IF NOT EXISTS `bx_cnl_cmts` (
`cmt_id` int(11) NOT NULL AUTO_INCREMENT,
`cmt_parent_id` int(11) NOT NULL DEFAULT '0',
`cmt_vparent_id` int(11) NOT NULL DEFAULT '0',
`cmt_object_id` int(11) NOT NULL DEFAULT '0',
`cmt_author_id` int(11) NOT NULL DEFAULT '0',
`cmt_level` int(11) NOT NULL DEFAULT '0',
`cmt_text` text NOT NULL,
`cmt_mood` tinyint(4) NOT NULL DEFAULT '0',
`cmt_rate` int(11) NOT NULL DEFAULT '0',
`cmt_rate_count` int(11) NOT NULL DEFAULT '0',
`cmt_time` int(11) unsigned NOT NULL DEFAULT '0',
`cmt_replies` int(11) NOT NULL DEFAULT '0',
PRIMARY KEY (`cmt_id`),
KEY `cmt_object_id` (`cmt_object_id`,`cmt_parent_id`),
FULLTEXT KEY `search_fields` (`cmt_text`)
);
-- TABLE: VIEWS
CREATE TABLE `bx_cnl_views_track` (
`object_id` int(11) NOT NULL default '0',
`viewer_id` int(11) NOT NULL default '0',
`viewer_nip` int(11) unsigned NOT NULL default '0',
`date` int(11) NOT NULL default '0',
KEY `id` (`object_id`,`viewer_id`,`viewer_nip`)
);
-- TABLE: VOTES
CREATE TABLE IF NOT EXISTS `bx_cnl_votes` (
`object_id` int(11) NOT NULL default '0',
`count` int(11) NOT NULL default '0',
`sum` int(11) NOT NULL default '0',
UNIQUE KEY `object_id` (`object_id`)
);
CREATE TABLE IF NOT EXISTS `bx_cnl_votes_track` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`object_id` int(11) NOT NULL default '0',
`author_id` int(11) NOT NULL default '0',
`author_nip` int(11) unsigned NOT NULL default '0',
`value` tinyint(4) NOT NULL default '0',
`date` int(11) NOT NULL default '0',
PRIMARY KEY (`id`),
KEY `vote` (`object_id`, `author_nip`)
);
-- TABLE: REPORTS
CREATE TABLE IF NOT EXISTS `bx_cnl_reports` (
`object_id` int(11) NOT NULL default '0',
`count` int(11) NOT NULL default '0',
UNIQUE KEY `object_id` (`object_id`)
);
CREATE TABLE IF NOT EXISTS `bx_cnl_reports_track` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`object_id` int(11) NOT NULL default '0',
`author_id` int(11) NOT NULL default '0',
`author_nip` int(11) unsigned NOT NULL default '0',
`type` varchar(32) NOT NULL default '',
`text` text NOT NULL default '',
`date` int(11) NOT NULL default '0',
PRIMARY KEY (`id`),
KEY `report` (`object_id`, `author_nip`)
);
-- TABLE: metas
CREATE TABLE `bx_cnl_meta_keywords` (
`object_id` int(10) unsigned NOT NULL,
`keyword` varchar(255) NOT NULL,
KEY `object_id` (`object_id`),
KEY `keyword` (`keyword`)
);
CREATE TABLE `bx_cnl_meta_mentions` (
`object_id` int(10) unsigned NOT NULL,
`profile_id` int(10) unsigned NOT NULL,
KEY `object_id` (`object_id`),
KEY `profile_id` (`profile_id`)
);
-- TABLE: favorites
CREATE TABLE `bx_cnl_favorites_track` (
`object_id` int(11) NOT NULL default '0',
`author_id` int(11) NOT NULL default '0',
`date` int(11) NOT NULL default '0',
KEY `id` (`object_id`,`author_id`)
);
-- TABLE: scores
CREATE TABLE IF NOT EXISTS `bx_cnl_scores` (
`object_id` int(11) NOT NULL default '0',
`count_up` int(11) NOT NULL default '0',
`count_down` int(11) NOT NULL default '0',
UNIQUE KEY `object_id` (`object_id`)
);
CREATE TABLE IF NOT EXISTS `bx_cnl_scores_track` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`object_id` int(11) NOT NULL default '0',
`author_id` int(11) NOT NULL default '0',
`author_nip` int(11) unsigned NOT NULL default '0',
`type` varchar(8) NOT NULL default '',
`date` int(11) NOT NULL default '0',
PRIMARY KEY (`id`),
KEY `vote` (`object_id`, `author_nip`)
);
-- STORAGES & TRANSCODERS
INSERT INTO `sys_objects_storage` (`object`, `engine`, `params`, `token_life`, `cache_control`, `levels`, `table_files`, `ext_mode`, `ext_allow`, `ext_deny`, `quota_size`, `current_size`, `quota_number`, `current_number`, `max_file_size`, `ts`) VALUES
('bx_channels_pics', @sStorageEngine, '', 360, 2592000, 3, 'bx_cnl_pics', 'allow-deny', 'jpg,jpeg,jpe,gif,png', '', 0, 0, 0, 0, 0, 0),
('bx_channels_pics_resized', @sStorageEngine, '', 360, 2592000, 3, 'bx_cnl_pics_resized', 'allow-deny', 'jpg,jpeg,jpe,gif,png', '', 0, 0, 0, 0, 0, 0);
INSERT INTO `sys_objects_transcoder` (`object`, `storage_object`, `source_type`, `source_params`, `private`, `atime_tracking`, `atime_pruning`, `ts`) VALUES
('bx_channels_icon', 'bx_channels_pics_resized', 'Storage', 'a:1:{s:6:"object";s:16:"bx_channels_pics";}', 'no', '1', '2592000', '0'),
('bx_channels_thumb', 'bx_channels_pics_resized', 'Storage', 'a:1:{s:6:"object";s:16:"bx_channels_pics";}', 'no', '1', '2592000', '0'),
('bx_channels_avatar', 'bx_channels_pics_resized', 'Storage', 'a:1:{s:6:"object";s:16:"bx_channels_pics";}', 'no', '1', '2592000', '0'),
('bx_channels_avatar_big', 'bx_channels_pics_resized', 'Storage', 'a:1:{s:6:"object";s:16:"bx_channels_pics";}', 'no', '1', '2592000', '0'),
('bx_channels_picture', 'bx_channels_pics_resized', 'Storage', 'a:1:{s:6:"object";s:16:"bx_channels_pics";}', 'no', '1', '2592000', '0'),
('bx_channels_cover', 'bx_channels_pics_resized', 'Storage', 'a:1:{s:6:"object";s:16:"bx_channels_pics";}', 'no', '1', '2592000', '0'),
('bx_channels_cover_thumb', 'bx_channels_pics_resized', 'Storage', 'a:1:{s:6:"object";s:16:"bx_channels_pics";}', 'no', '1', '2592000', '0'),
('bx_channels_gallery', 'bx_channels_pics_resized', 'Storage', 'a:1:{s:6:"object";s:16:"bx_channels_pics";}', 'no', '1', '2592000', '0');
INSERT INTO `sys_transcoder_filters` (`transcoder_object`, `filter`, `filter_params`, `order`) VALUES
('bx_channels_icon', 'Resize', 'a:3:{s:1:"w";s:2:"30";s:1:"h";s:2:"30";s:13:"square_resize";s:1:"1";}', '0'),
('bx_channels_thumb', 'Resize', 'a:3:{s:1:"w";s:2:"50";s:1:"h";s:2:"50";s:13:"square_resize";s:1:"1";}', '0'),
('bx_channels_avatar', 'Resize', 'a:3:{s:1:"w";s:3:"100";s:1:"h";s:3:"100";s:13:"square_resize";s:1:"1";}', '0'),
('bx_channels_avatar_big', 'Resize', 'a:3:{s:1:"w";s:3:"200";s:1:"h";s:3:"200";s:13:"square_resize";s:1:"1";}', '0'),
('bx_channels_picture', 'Resize', 'a:3:{s:1:"w";s:4:"1024";s:1:"h";s:4:"1024";s:13:"square_resize";s:1:"0";}', '0'),
('bx_channels_cover', 'Resize', 'a:1:{s:1:"w";s:4:"2000";}', '0'),
('bx_channels_cover_thumb', 'Resize', 'a:3:{s:1:"w";s:2:"48";s:1:"h";s:2:"48";s:13:"square_resize";s:1:"1";}', '0'),
('bx_channels_gallery', 'Resize', 'a:1:{s:1:"w";s:3:"500";}', '0');
-- FORMS
INSERT INTO `sys_objects_form`(`object`, `module`, `title`, `action`, `form_attrs`, `table`, `key`, `uri`, `uri_title`, `submit_name`, `params`, `deletable`, `active`, `override_class_name`, `override_class_file`) VALUES
('bx_channel', 'bx_channels', '_bx_channels_form_profile', '', 'a:1:{s:7:\"enctype\";s:19:\"multipart/form-data\";}', 'bx_cnl_data', 'id', '', '', 'do_submit', '', 0, 1, 'BxCnlFormEntry', 'modules/boonex/channels/classes/BxCnlFormEntry.php');
INSERT INTO `sys_form_displays`(`object`, `display_name`, `module`, `view_mode`, `title`) VALUES
('bx_channel', 'bx_channel_add', 'bx_channels', 0, '_bx_channels_form_profile_display_add'),
('bx_channel', 'bx_channel_delete', 'bx_channels', 0, '_bx_channels_form_profile_display_delete'),
('bx_channel', 'bx_channel_edit', 'bx_channels', 0, '_bx_channels_form_profile_display_edit'),
('bx_channel', 'bx_channel_edit_cover', 'bx_channels', 0, '_bx_channels_form_profile_display_edit_cover'),
('bx_channel', 'bx_channel_view', 'bx_channels', 1, '_bx_channels_form_profile_display_view'),
('bx_channel', 'bx_channel_view_full', 'bx_channels', 1, '_bx_channels_form_profile_display_view_full');
INSERT INTO `sys_form_inputs`(`object`, `module`, `name`, `value`, `values`, `checked`, `type`, `caption_system`, `caption`, `info`, `required`, `collapsed`, `html`, `attrs`, `attrs_tr`, `attrs_wrapper`, `checker_func`, `checker_params`, `checker_error`, `db_pass`, `db_params`, `editable`, `deletable`) VALUES
('bx_channel', 'bx_channels', 'delete_confirm', 1, '', 0, 'checkbox', '_bx_channels_form_profile_input_sys_delete_confirm', '_bx_channels_form_profile_input_delete_confirm', '_bx_channels_form_profile_input_delete_confirm_info', 1, 0, 0, '', '', '', 'avail', '', '_bx_channels_form_profile_input_delete_confirm_error', '', '', 1, 0),
('bx_channel', 'bx_channels', 'do_submit', '_sys_form_account_input_submit', '', 0, 'submit', '_bx_channels_form_profile_input_sys_do_submit', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0),
('bx_channel', 'bx_channels', 'channel_name', '', '', 0, 'text', '_bx_channels_form_profile_input_sys_channel_name', '_bx_channels_form_profile_input_channel_name', '', 1, 0, 0, '', '', '', 'avail', '', '_bx_channels_form_profile_input_channel_name_err', 'Xss', '', 1, 0),
('bx_channel', 'bx_channels', 'cover', 'a:1:{i:0;s:22:"bx_channels_cover_crop";}', 'a:1:{s:22:"bx_channels_cover_crop";s:24:"_sys_uploader_crop_title";}', 0, 'files', '_bx_channels_form_profile_input_sys_cover', '_bx_channels_form_profile_input_cover', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0),
('bx_channel', 'bx_channels', 'picture', 'a:1:{i:0;s:24:"bx_channels_picture_crop";}', 'a:1:{s:24:"bx_channels_picture_crop";s:24:"_sys_uploader_crop_title";}', 0, 'files', '_bx_channels_form_profile_input_sys_picture', '_bx_channels_form_profile_input_picture', '', 0, 0, 0, '', '', '', '', '', '_bx_channels_form_profile_input_picture_err', '', '', 1, 0);
INSERT INTO `sys_form_display_inputs`(`display_name`, `input_name`, `visible_for_levels`, `active`, `order`) VALUES
('bx_channel_add', 'channel_name', 2147483647, 1, 1),
('bx_channel_add', 'do_submit', 2147483647, 1, 2),
('bx_channel_delete', 'delete_confirm', 2147483647, 1, 0),
('bx_channel_delete', 'do_submit', 2147483647, 1, 1),
('bx_channel_edit', 'channel_name', 2147483647, 1, 1),
('bx_channel_edit', 'do_submit', 2147483647, 1, 2),
('bx_channel_edit_cover', 'cover', 2147483647, 1, 1),
('bx_channel_edit_cover', 'do_submit', 2147483647, 1, 2),
('bx_channel_view', 'channel_name', 2147483647, 1, 1),
('bx_channel_view_full', 'channel_name', 2147483647, 1, 1);
-- COMMENTS
INSERT INTO `sys_objects_cmts` (`Name`, `Module`, `Table`, `CharsPostMin`, `CharsPostMax`, `CharsDisplayMax`, `Html`, `PerView`, `PerViewReplies`, `BrowseType`, `IsBrowseSwitch`, `PostFormPosition`, `NumberOfLevels`, `IsDisplaySwitch`, `IsRatable`, `ViewingThreshold`, `IsOn`, `RootStylePrefix`, `BaseUrl`, `ObjectVote`, `TriggerTable`, `TriggerFieldId`, `TriggerFieldAuthor`, `TriggerFieldTitle`, `TriggerFieldComments`, `ClassName`, `ClassFile`) VALUES
('bx_channels', 'bx_channels', 'bx_cnl_cmts', 1, 5000, 1000, 3, 5, 3, 'tail', 1, 'bottom', 1, 1, 1, -3, 1, 'cmt', 'page.php?i=view-channel-profile&id={object_id}', '', 'bx_cnl_data', 'id', 'author', 'channel_name', 'comments', '', '');
-- VIEWS
INSERT INTO `sys_objects_view` (`name`, `table_track`, `period`, `is_on`, `trigger_table`, `trigger_field_id`, `trigger_field_author`, `trigger_field_count`, `class_name`, `class_file`) VALUES
('bx_channels', 'bx_cnl_views_track', '86400', '1', 'bx_cnl_data', 'id', 'author', 'views', '', '');
-- VOTES
INSERT INTO `sys_objects_vote` (`Name`, `TableMain`, `TableTrack`, `PostTimeout`, `MinValue`, `MaxValue`, `IsUndo`, `IsOn`, `TriggerTable`, `TriggerFieldId`, `TriggerFieldAuthor`, `TriggerFieldRate`, `TriggerFieldRateCount`, `ClassName`, `ClassFile`) VALUES
('bx_channels', 'bx_cnl_votes', 'bx_cnl_votes_track', '604800', '1', '1', '0', '1', 'bx_cnl_data', 'id', 'author', 'rate', 'votes', '', '');
-- SCORES
INSERT INTO `sys_objects_score` (`name`, `module`, `table_main`, `table_track`, `post_timeout`, `is_on`, `trigger_table`, `trigger_field_id`, `trigger_field_author`, `trigger_field_score`, `trigger_field_cup`, `trigger_field_cdown`, `class_name`, `class_file`) VALUES
('bx_channels', 'bx_channels', 'bx_cnl_scores', 'bx_cnl_scores_track', '604800', '0', 'bx_cnl_data', 'id', 'author', 'score', 'sc_up', 'sc_down', '', '');
-- REPORTS
INSERT INTO `sys_objects_report` (`name`, `table_main`, `table_track`, `is_on`, `base_url`, `trigger_table`, `trigger_field_id`, `trigger_field_author`, `trigger_field_count`, `class_name`, `class_file`) VALUES
('bx_channels', 'bx_cnl_reports', 'bx_cnl_reports_track', '1', 'page.php?i=view-channel-profile&id={object_id}', 'bx_cnl_data', 'id', 'author', 'reports', '', '');
-- FAFORITES
INSERT INTO `sys_objects_favorite` (`name`, `table_track`, `is_on`, `is_undo`, `is_public`, `base_url`, `trigger_table`, `trigger_field_id`, `trigger_field_author`, `trigger_field_count`, `class_name`, `class_file`) VALUES
('bx_channels', 'bx_cnl_favorites_track', '1', '1', '1', 'page.php?i=view-channel-profile&id={object_id}', 'bx_cnl_data', 'id', 'author', 'favorites', '', '');
-- FEATURED
INSERT INTO `sys_objects_feature` (`name`, `is_on`, `is_undo`, `base_url`, `trigger_table`, `trigger_field_id`, `trigger_field_author`, `trigger_field_flag`, `class_name`, `class_file`) VALUES
('bx_channels', '1', '1', 'page.php?i=view-channel-profile&id={object_id}', 'bx_cnl_data', 'id', 'author', 'featured', '', '');
-- CONTENT INFO
INSERT INTO `sys_objects_content_info` (`name`, `title`, `alert_unit`, `alert_action_add`, `alert_action_update`, `alert_action_delete`, `class_name`, `class_file`) VALUES
('bx_channels', '_bx_channels', 'bx_channels', 'added', 'edited', 'deleted', '', ''),
('bx_channels_cmts', '_bx_channels_cmts', 'bx_channels', 'commentPost', 'commentUpdated', 'commentRemoved', 'BxDolContentInfoCmts', '');
INSERT INTO `sys_content_info_grids` (`object`, `grid_object`, `grid_field_id`, `condition`, `selection`) VALUES
('bx_channels', 'bx_channels_administration', 'td`.`id', '', '');
-- SEARCH EXTENDED
INSERT INTO `sys_objects_search_extended` (`object`, `object_content_info`, `module`, `title`, `active`, `class_name`, `class_file`) VALUES
('bx_channels', 'bx_channels', 'bx_channels', '_bx_channels_search_extended', 1, '', ''),
('bx_channels_cmts', 'bx_channels_cmts', 'bx_channels', '_bx_channels_search_extended_cmts', 1, 'BxTemplSearchExtendedCmts', '');
-- STUDIO PAGE & WIDGET
INSERT INTO `sys_std_pages`(`index`, `name`, `header`, `caption`, `icon`) VALUES
(3, 'bx_channels', '_bx_channels', '_bx_channels', 'bx_channels@modules/boonex/channels/|std-icon.svg');
SET @iPageId = LAST_INSERT_ID();
SET @iParentPageId = (SELECT `id` FROM `sys_std_pages` WHERE `name` = 'home');
SET @iParentPageOrder = (SELECT MAX(`order`) FROM `sys_std_pages_widgets` WHERE `page_id` = @iParentPageId);
INSERT INTO `sys_std_widgets` (`page_id`, `module`, `url`, `click`, `icon`, `caption`, `cnt_notices`, `cnt_actions`) VALUES
(@iPageId, 'bx_channels', '{url_studio}module.php?name=bx_channels', '', 'bx_channels@modules/boonex/channels/|std-icon.svg', '_bx_channels', 'a:4:{s:6:"module";s:11:"bx_channels";s:6:"method";s:18:"get_widget_notices";s:6:"params";a:0:{}s:5:"class";s:6:"Module";}', 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:11:"get_actions";s:6:"params";a:0:{}s:5:"class";s:18:"TemplStudioModules";}');
INSERT INTO `sys_std_pages_widgets` (`page_id`, `widget_id`, `order`) VALUES
(@iParentPageId, LAST_INSERT_ID(), IF(ISNULL(@iParentPageOrder), 1, @iParentPageOrder + 1));
|
-- AlterEnum
-- This migration adds more than one value to an enum.
-- With PostgreSQL versions 11 and earlier, this is not possible
-- in a single migration. This can be worked around by creating
-- multiple migrations, each migration adding only one value to
-- the enum.
ALTER TYPE "Role" ADD VALUE 'NEWUSER';
ALTER TYPE "Role" ADD VALUE 'BANNED';
|
<filename>src/enums.sql<gh_stars>0
/* leave this for other app
l:see LICENSE file
g:obj,utility
v:130217\s.zaglio: generic enumerators
*/
CREATE view enums
as
select
-- fn__str_between
null as [btw.close_left], -- search @from and then the next @to
1 as [btw.close_right], -- search @to and then the previous @from
-- end
-1 as [last]
|
DROP TABLE IF EXISTS accounts;
CREATE TABLE accounts (
-- カラム
id uuid not NULL primary key,
created_at timestamp with time zone not NULL,
updated_at timestamp with time zone not NULL,
deleted_at timestamp with time zone default null,
email text not NULL unique,
password text not NULL
);
|
<filename>docs/sql/account/account_user.sql
CREATE TABLE `account_user` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '自增id',
`username` varchar(30) NOT NULL DEFAULT '' COMMENT '用户名',
`phone` varchar(15) NOT NULL DEFAULT '' COMMENT '手机号',
`email` varchar(30) NOT NULL DEFAULT '' COMMENT '邮箱',
`password` varchar(32) NOT NULL DEFAULT '' COMMENT '密码',
`create_at` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间',
`create_ip_at` varchar(12) NOT NULL DEFAULT '' COMMENT '创建ip',
`last_login_at` int(11) NOT NULL DEFAULT '0' COMMENT '最后一次登录时间',
`last_login_ip_at` varchar(12) NOT NULL DEFAULT '' COMMENT '最后一次登录ip',
`login_count` int(11) NOT NULL DEFAULT '0' COMMENT '登录次数',
`status` tinyint(1) NOT NULL DEFAULT '0' COMMENT '状态 0:禁用 1:启用 -1:删除',
PRIMARY KEY (`id`),
KEY `idx_username` (`username`),
KEY `idx_phone` (`phone`),
KEY `idx_email` (`email`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='账户表';
|
BEGIN;
CREATE TABLE urls (
id BIGSERIAL PRIMARY KEY,
code TEXT NOT NULL UNIQUE,
url TEXT NOT NULL,
created_at TIMESTAMP WITH TIME ZONE DEFAULT CURRENT_TIMESTAMP NOT NULL
);
COMMIT;
|
-- inf 开头的 DB
DELETE FROM "inf_config";
-- sys 开头的 DB
DELETE FROM "sys_dept";
DELETE FROM "sys_dict_data";
DELETE FROM "sys_role";
DELETE FROM "sys_role_menu";
DELETE FROM "sys_menu";
|
CREATE TABLE [dbo].[vCommodityGroups_sync] (
[Id] UNIQUEIDENTIFIER DEFAULT (newid()) NOT NULL,
[GroupCode] VARCHAR (4) NOT NULL,
[Name] VARCHAR (40) NOT NULL,
[SubGroupCode] VARCHAR (2) NOT NULL,
[SubGroupName] VARCHAR (40) NOT NULL,
[IsActive] BIT NULL,
[UpdateHash] VARBINARY (16) NULL,
CONSTRAINT [PK_vCommodityGroups_sync] PRIMARY KEY CLUSTERED ([Id] ASC)
);
|
-- phpMyAdmin SQL Dump
-- version 4.8.3
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Waktu pembuatan: 06 Nov 2019 pada 09.09
-- Versi server: 10.1.37-MariaDB
-- Versi PHP: 7.2.12
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: `pasukanambyar`
--
-- --------------------------------------------------------
--
-- Struktur dari tabel `apps`
--
CREATE TABLE `apps` (
`app_id` int(11) NOT NULL,
`name` text,
`wa` text,
`github` text,
`ig` text,
`fb` text,
`biodata` text,
`address` text NOT NULL,
`email` varchar(255) NOT NULL,
`phone` varchar(15) NOT NULL,
`visitor` int(11) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data untuk tabel `apps`
--
INSERT INTO `apps` (`app_id`, `name`, `wa`, `github`, `ig`, `fb`, `biodata`, `address`, `email`, `phone`, `visitor`) VALUES
(1, '<NAME>', 'http://api.whatsapp.com/send?phone=6287885112329', 'https://www.github.com/miftakhulrobi', 'http://instagram.com/miftakhulmuqorobin', 'https://www.facebook.com/miftakhul.muqorobin.52', 'https://miftakhulrobi.github.io', '<NAME>', '<EMAIL>', '6287885112329', 15);
-- --------------------------------------------------------
--
-- Struktur dari tabel `blogs`
--
CREATE TABLE `blogs` (
`blog_id` int(11) NOT NULL,
`user_id` int(11) NOT NULL,
`categorie_id` int(11) NOT NULL,
`title` varchar(255) NOT NULL,
`content` text NOT NULL,
`thumbnail` varchar(255) NOT NULL,
`view` int(11) NOT NULL DEFAULT '0',
`like` int(11) NOT NULL DEFAULT '0',
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data untuk tabel `blogs`
--
INSERT INTO `blogs` (`blog_id`, `user_id`, `categorie_id`, `title`, `content`, `thumbnail`, `view`, `like`, `created_at`) VALUES
(19, 1, 2, 'Berbagai macam type handphone Samsung', '<p>Loreeemmm 10000</p>', 'ZA330001-C-4-1.jpg', 16, 0, '2019-11-02 03:42:08'),
(21, 1, 1, '<NAME>', '<p>hmmm hmmmm</p>', 'jam-tangan-adidas.jpg', 6, 1, '2019-11-02 03:45:52'),
(22, 1, 3, '<NAME>', '<p>hmmm hmmmm nyammm</p>', 'jam-tangan-swiss-army-hc-1025m-canvas.jpg', 7, 1, '2019-11-02 03:46:51'),
(23, 2, 2, 'Hemmm nyammy', '<p>Okelahhh kaloo begitu</p>', 'JAKCOM-CH2-Smart-Wireless-Car-Charger-Holder.jpg', 5, 1, '2019-11-03 11:17:25');
-- --------------------------------------------------------
--
-- Struktur dari tabel `categories`
--
CREATE TABLE `categories` (
`categorie_id` int(11) NOT NULL,
`categoriename` varchar(255) NOT NULL,
`cblog` int(11) NOT NULL DEFAULT '0',
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data untuk tabel `categories`
--
INSERT INTO `categories` (`categorie_id`, `categoriename`, `cblog`, `created_at`) VALUES
(1, '<NAME>', 1, '2019-11-01 11:20:00'),
(2, '<NAME>', 4, '2019-11-01 11:20:00'),
(3, '<NAME>', 2, '2019-11-01 11:20:00');
-- --------------------------------------------------------
--
-- Struktur dari tabel `contacts`
--
CREATE TABLE `contacts` (
`contact_id` int(11) NOT NULL,
`name` varchar(255) NOT NULL,
`email` varchar(255) NOT NULL,
`phone` varchar(15) NOT NULL,
`message` text NOT NULL,
`open` tinyint(1) NOT NULL DEFAULT '0',
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Struktur dari tabel `likes`
--
CREATE TABLE `likes` (
`like_id` int(11) NOT NULL,
`user_id` int(11) NOT NULL,
`blog_id` int(11) NOT NULL,
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data untuk tabel `likes`
--
INSERT INTO `likes` (`like_id`, `user_id`, `blog_id`, `created_at`) VALUES
(1, 1, 19, '2019-11-05 05:34:13'),
(2, 1, 21, '2019-11-05 05:47:15'),
(5, 1, 22, '2019-11-05 06:11:35'),
(6, 1, 23, '2019-11-05 06:11:45');
-- --------------------------------------------------------
--
-- Struktur dari tabel `musics`
--
CREATE TABLE `musics` (
`music_id` int(11) NOT NULL,
`user_id` int(11) NOT NULL,
`audio` varchar(255) NOT NULL,
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data untuk tabel `musics`
--
INSERT INTO `musics` (`music_id`, `user_id`, `audio`, `created_at`) VALUES
(3, 1, 'JIHAN_AUDY_PAMER_BOJO_ANYAR_NEW_PALLAPA_2019.mp3', '2019-10-30 12:01:15'),
(4, 1, 'VITA_ALVIA_OJO_NGUBER_WELASE_Office_Video_YouTube.mp3', '2019-10-30 12:01:27'),
(5, 1, 'Vita_Alvia_-_Dudu_Roso_Welas_OFFICIAL_MUSIC_VIDEO_.mp3', '2019-10-31 12:49:37'),
(6, 1, 'Kelangan_-_Wandra.mp3', '2019-11-01 12:28:41'),
(7, 1, 'Mahesa_Ft__Vita_Alvia_-_Lungset_(Official_Music_Video).mp3', '2019-11-01 12:30:25'),
(8, 1, 'GuyonWaton_-_Pamer_Bojo_(Ciptaan_Didi_Kempot)_Lirik.mp3', '2019-11-01 12:30:52'),
(9, 2, 'cartoon158.mp3', '2019-11-03 02:33:07');
-- --------------------------------------------------------
--
-- Struktur dari tabel `notifications`
--
CREATE TABLE `notifications` (
`notif_id` int(11) NOT NULL,
`user_id` int(11) NOT NULL,
`receiver` int(11) DEFAULT NULL,
`open` tinyint(4) NOT NULL DEFAULT '0',
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data untuk tabel `notifications`
--
INSERT INTO `notifications` (`notif_id`, `user_id`, `receiver`, `open`, `created_at`) VALUES
(3, 6, 6, 1, '2019-11-04 02:48:27'),
(4, 6, 1, 1, '2019-11-04 02:48:27');
-- --------------------------------------------------------
--
-- Struktur dari tabel `users`
--
CREATE TABLE `users` (
`user_id` int(11) NOT NULL,
`name` varchar(255) NOT NULL,
`email` varchar(255) NOT NULL,
`password` varchar(60) NOT NULL,
`avatar` varchar(255) DEFAULT NULL,
`role` varchar(30) NOT NULL,
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data untuk tabel `users`
--
INSERT INTO `users` (`user_id`, `name`, `email`, `password`, `avatar`, `role`, `created_at`) VALUES
(1, '<NAME>', '<EMAIL>', '<PASSWORD>', 'xiaomi-redmi-note-4x-case-mooncase-frosted-armor-hard-pc-backcover-360-full-body-shockproof-protective-with-3-detachable-partsphone-case-as-shown-intl-0015-03843614-ed80771a8feb52fe1fb5e2385c0e0077.jpg', 'Admin', '2019-10-30 01:16:39'),
(2, '<NAME>', '<EMAIL>', '<PASSWORD>', 'Blackberry-Blackberry-Orlando-9380.jpg', 'Member', '2019-11-02 04:20:07'),
(6, '<NAME>', '<EMAIL>', '<PASSWORD>', NULL, 'Member', '2019-11-04 02:48:27');
-- --------------------------------------------------------
--
-- Struktur dari tabel `videos`
--
CREATE TABLE `videos` (
`video_id` int(11) NOT NULL,
`user_id` int(11) NOT NULL,
`video` varchar(255) NOT NULL,
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Indexes for dumped tables
--
--
-- Indeks untuk tabel `apps`
--
ALTER TABLE `apps`
ADD PRIMARY KEY (`app_id`);
--
-- Indeks untuk tabel `blogs`
--
ALTER TABLE `blogs`
ADD PRIMARY KEY (`blog_id`);
--
-- Indeks untuk tabel `categories`
--
ALTER TABLE `categories`
ADD PRIMARY KEY (`categorie_id`);
--
-- Indeks untuk tabel `contacts`
--
ALTER TABLE `contacts`
ADD PRIMARY KEY (`contact_id`);
--
-- Indeks untuk tabel `likes`
--
ALTER TABLE `likes`
ADD PRIMARY KEY (`like_id`);
--
-- Indeks untuk tabel `musics`
--
ALTER TABLE `musics`
ADD PRIMARY KEY (`music_id`);
--
-- Indeks untuk tabel `notifications`
--
ALTER TABLE `notifications`
ADD PRIMARY KEY (`notif_id`);
--
-- Indeks untuk tabel `users`
--
ALTER TABLE `users`
ADD PRIMARY KEY (`user_id`);
--
-- Indeks untuk tabel `videos`
--
ALTER TABLE `videos`
ADD PRIMARY KEY (`video_id`);
--
-- AUTO_INCREMENT untuk tabel yang dibuang
--
--
-- AUTO_INCREMENT untuk tabel `apps`
--
ALTER TABLE `apps`
MODIFY `app_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT untuk tabel `blogs`
--
ALTER TABLE `blogs`
MODIFY `blog_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=24;
--
-- AUTO_INCREMENT untuk tabel `categories`
--
ALTER TABLE `categories`
MODIFY `categorie_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT untuk tabel `contacts`
--
ALTER TABLE `contacts`
MODIFY `contact_id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT untuk tabel `likes`
--
ALTER TABLE `likes`
MODIFY `like_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;
--
-- AUTO_INCREMENT untuk tabel `musics`
--
ALTER TABLE `musics`
MODIFY `music_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10;
--
-- AUTO_INCREMENT untuk tabel `notifications`
--
ALTER TABLE `notifications`
MODIFY `notif_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT untuk tabel `users`
--
ALTER TABLE `users`
MODIFY `user_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;
--
-- AUTO_INCREMENT untuk tabel `videos`
--
ALTER TABLE `videos`
MODIFY `video_id` int(11) NOT NULL AUTO_INCREMENT;
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 */;
|
-- MySQL dump 10.13 Distrib 5.7.11, for osx10.11 (x86_64)
--
-- Host: localhost Database: idea
-- ------------------------------------------------------
-- Server version 5.7.11
/*!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 `ticket`
--
DROP TABLE IF EXISTS `ticket`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ticket` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) NOT NULL DEFAULT '0',
`title` varchar(2000) NOT NULL DEFAULT '',
`yys` varchar(200) NOT NULL DEFAULT '' COMMENT '运营商',
`system` varchar(200) NOT NULL DEFAULT '',
`content` text,
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`pid` int(11) NOT NULL DEFAULT '0',
`status` varchar(45) NOT NULL DEFAULT 'init',
`is_mm` int(11) NOT NULL DEFAULT '0' COMMENT '是否是mm回复',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `user`
--
DROP TABLE IF EXISTS `user`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `user` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`email` varchar(60) DEFAULT NULL COMMENT 'Email',
`password` varchar(64) NOT NULL DEFAULT '' COMMENT '密码',
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
`email_key` varchar(60) NOT NULL DEFAULT '',
`status` tinyint(4) NOT NULL DEFAULT '-1' COMMENT '-1表示尚未注册 0:已经注册 ',
`remember_token` varchar(120) NOT NULL DEFAULT '',
`username` varchar(45) NOT NULL,
`service_version` varchar(45) NOT NULL DEFAULT '' COMMENT '用户购买的套餐类型 空表示未购买, 其他为sv3,mv3,bv3,ev3',
`is_timeout` tinyint(4) NOT NULL DEFAULT '0' COMMENT '0:未过期 1:已过期',
`money` int(11) NOT NULL DEFAULT '0',
`user_code` varchar(45) NOT NULL DEFAULT '',
`recommended_user_id` int(11) NOT NULL DEFAULT '0',
`password_plain` varchar(45) NOT NULL DEFAULT '',
`sub_money` int(11) NOT NULL DEFAULT '0',
`is_recm_valid` tinyint(4) NOT NULL DEFAULT '0' COMMENT '被推荐是否下单超过三十天 0没有 1有但是为超过30天 2购买并超过三十天',
`admin` int(11) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
UNIQUE KEY `username_UNIQUE` (`username`),
UNIQUE KEY `email` (`email`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='用户表';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `user_log`
--
DROP TABLE IF EXISTS `user_log`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `user_log` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`user_id` int(11) NOT NULL DEFAULT '0',
`type` varchar(40) NOT NULL,
`value1` varchar(255) NOT NULL DEFAULT '',
`value2` varchar(255) NOT NULL DEFAULT '',
`value3` varchar(255) NOT NULL DEFAULT '',
`value4` varchar(255) NOT NULL DEFAULT '',
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `user_service`
--
DROP TABLE IF EXISTS `user_service`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `user_service` (
`user_id` int(11) NOT NULL,
`service_version` varchar(10) NOT NULL DEFAULT '',
`begin_at` timestamp NULL DEFAULT NULL,
`end_at` timestamp NULL DEFAULT NULL,
`created_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
`updated_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `vpn_order`
--
DROP TABLE IF EXISTS `vpn_order`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `vpn_order` (
`order_id` int(11) NOT NULL AUTO_INCREMENT,
`order_name` varchar(45) NOT NULL DEFAULT '',
`version` varchar(20) NOT NULL DEFAULT 'mv3',
`price` int(11) NOT NULL DEFAULT '0' COMMENT '套餐价格',
`count` int(11) NOT NULL DEFAULT '1',
`total_price` int(11) NOT NULL DEFAULT '0' COMMENT '总价格:套餐价格*数量',
`pay_money` int(11) NOT NULL DEFAULT '0' COMMENT '实际支付价格',
`account_money` int(11) NOT NULL DEFAULT '0' COMMENT '账户余额支付价格',
`rec_desc_money` int(11) NOT NULL DEFAULT '0',
`status` varchar(45) NOT NULL DEFAULT 'init',
`pay_at` timestamp NULL DEFAULT NULL,
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`comment` varchar(200) NOT NULL DEFAULT '',
`order_no` varchar(45) NOT NULL DEFAULT '',
`user_id` int(11) NOT NULL DEFAULT '0',
PRIMARY KEY (`order_id`),
UNIQUE KEY `order_no_UNIQUE` (`order_no`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `withdraw`
--
DROP TABLE IF EXISTS `withdraw`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `withdraw` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) NOT NULL DEFAULT '0',
`amount` int(11) NOT NULL DEFAULT '0',
`alipay_account` varchar(45) NOT NULL DEFAULT '',
`account_name` varchar(45) NOT NULL,
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`status` varchar(45) NOT NULL DEFAULT 'be_pay',
`comment` varchar(1000) NOT NULL DEFAULT '',
PRIMARY KEY (`id`)
) 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-07-08 17:04:50
|
<reponame>aguadev/aguadev<gh_stars>1-10
CREATE TABLE build_report (
build_report_id int(10) unsigned NOT NULL AUTO_INCREMENT,
sample_id int(11) NOT NULL,
coverage_flag enum('Y','N','O') DEFAULT NULL,
gt_flag enum('Y','N','O') DEFAULT NULL,
location text,
manifestgender varchar(15) DEFAULT NULL,
arraygender varchar(15) DEFAULT NULL,
sequencedgender varchar(15) DEFAULT NULL,
genome varchar(15) DEFAULT NULL,
genome_file varchar(100) DEFAULT NULL,
gt_gen_concordance decimal(5,4) DEFAULT NULL,
gt_gen_usage decimal(5,4) DEFAULT NULL,
casava_coverage_autosomal_depth decimal(8,5) DEFAULT NULL,
casava_coverage_autosomal_coverage decimal(8,5) DEFAULT NULL,
casava_duplicates_percent decimal(10,7) DEFAULT NULL,
casava_snp_total_count int(11) DEFAULT NULL,
casava_snp_het_hom_ratio decimal(10,7) DEFAULT NULL,
consensus_gene_coverage decimal(10,7) DEFAULT NULL,
consensus_gene_depth decimal(10,6) DEFAULT NULL,
consensus_exon_coverage decimal(10,7) DEFAULT NULL,
consensus_exon_depth decimal(10,6) DEFAULT NULL,
dbSNP_call_count int(11) DEFAULT NULL,
dbSNP_het_count int(11) DEFAULT NULL,
dbSNP_hom_count int(11) DEFAULT NULL,
dbSNP_novel_call_count int(11) DEFAULT NULL,
dbSNP_per_novel decimal(5,4) DEFAULT NULL,
tv_ratio decimal(5,4) DEFAULT NULL,
check_md5sum varchar(200) DEFAULT NULL,
update_time timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
date_created date DEFAULT NULL,
depth_per_1X decimal(12,8) DEFAULT NULL,
depth_per_8X decimal(12,8) DEFAULT NULL,
depth_per_10X decimal(12,8) DEFAULT NULL,
gene_depth_per_1X decimal(12,8) DEFAULT NULL,
gene_depth_per_8X decimal(12,8) DEFAULT NULL,
gene_depth_per_10X decimal(12,8) DEFAULT NULL,
exon_depth_per_1X decimal(12,8) DEFAULT NULL,
exon_depth_per_8X decimal(12,8) DEFAULT NULL,
exon_depth_per_10X decimal(12,8) DEFAULT NULL,
pf_total_gb decimal(12,2) DEFAULT NULL,
per_aligned decimal(12,2) DEFAULT NULL,
per_q30 decimal(12,2) DEFAULT NULL,
per_q35 decimal(12,2) DEFAULT NULL,
gb_q30 decimal(12,2) DEFAULT NULL,
gb_q35 decimal(12,2) DEFAULT NULL,
insert_median decimal(12,2) DEFAULT NULL,
insert_lowsd decimal(12,2) DEFAULT NULL,
insert_highsd decimal(12,2) DEFAULT NULL,
contam_hom_fraction_bad decimal(12,8) DEFAULT NULL,
comments text,
PRIMARY KEY (build_report_id),
UNIQUE KEY sample_build_un (sample_id)
)
|
-- This file should undo anything in `up.sql`
drop function payment_service_api.refund_subscription_payment(uuid);
|
<reponame>unclealex72/west-ham-calendar<filename>conf/evolutions/default/2.sql
# Calendar schema
# --- !Ups
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Liverpool', NULL, NULL, false, '1-2', 'PREM', 2001, 43935, NULL, '2001-08-18 15:00:00', 1, 'AWAY', NULL, NULL, NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Leeds United', NULL, NULL, false, '0-0', 'PREM', 2001, 24517, NULL, '2001-08-25 15:00:00', 2, 'HOME', NULL, NULL, NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Derby County', NULL, NULL, false, '0-0', 'PREM', 2001, 27802, NULL, '2001-09-08 15:00:00', 3, 'AWAY', NULL, NULL, NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Reading', NULL, NULL, false, '0-0(aet)', 'LGCP', 2001, 21173, NULL, '2001-09-11 19:45:00', 4, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~16783,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Middlesbrough', NULL, NULL, false, '0-2', 'PREM', 2001, 25445, NULL, '2001-09-15 15:00:00', 5, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~13246,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Newcastle', NULL, NULL, false, '3-0', 'PREM', 2001, 28840, NULL, '2001-09-23 15:00:00', 6, 'HOME', NULL, NULL, NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Everton', NULL, NULL, false, '0-5', 'PREM', 2001, 32049, NULL, '2001-09-29 15:00:00', 7, 'AWAY', NULL, NULL, NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Blackburn', NULL, NULL, false, '1-7', 'PREM', 2001, 22712, NULL, '2001-10-14 14:00:00', 8, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~16538,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Southampton', NULL, NULL, false, '2-0', 'PREM', 2001, 25842, NULL, '2001-10-20 15:00:00', 9, 'HOME', NULL, NULL, NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Chelsea', NULL, NULL, false, '2-1', 'PREM', 2001, 26520, NULL, '2001-10-24 19:45:00', 10, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~16499,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Ipswich Town', NULL, NULL, false, '3-2', 'PREM', 2001, 22834, NULL, '2001-10-28 14:00:00', 11, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~16554,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Fulham', NULL, NULL, false, '0-2', 'PREM', 2001, 26217, NULL, '2001-11-03 15:00:00', 12, 'HOME', NULL, NULL, NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Charlton', NULL, NULL, false, '4-4', 'PREM', 2001, 23198, NULL, '2001-11-19 15:00:00', 13, 'AWAY', NULL, NULL, NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Tottenham', NULL, NULL, false, '0-1', 'PREM', 2001, 32780, NULL, '2001-11-24 15:00:00', 14, 'HOME', NULL, NULL, NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Sunderland', NULL, NULL, false, '0-1', 'PREM', 2001, 47437, NULL, '2001-12-01 15:00:00', 15, 'AWAY', NULL, NULL, NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('<NAME>', NULL, NULL, false, '1-1', 'PREM', 2001, 28377, NULL, '2001-12-05 19:45:00', 16, 'HOME', NULL, NULL, NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('<NAME>', NULL, NULL, false, '1-0', 'PREM', 2001, 67582, NULL, '2001-12-08 15:00:00', 17, 'AWAY', NULL, NULL, NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Arsenal', NULL, NULL, false, '1-1', 'PREM', 2001, 34523, NULL, '2001-12-15 15:00:00', 18, 'HOME', NULL, NULL, NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Le<NAME>', NULL, NULL, false, '1-1', 'PREM', 2001, 20131, NULL, '2001-12-22 15:00:00', 19, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~13154,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('<NAME>', NULL, NULL, false, '4-0', 'PREM', 2001, 31397, NULL, '2001-12-26 19:45:00', 20, 'HOME', NULL, NULL, NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Liverpool', NULL, NULL, false, '1-1', 'PREM', 2001, 35103, NULL, '2001-12-29 15:00:00', 21, 'HOME', NULL, NULL, NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Leeds United', NULL, NULL, false, '0-3', 'PREM', 2001, 39320, NULL, '2002-01-01 19:45:00', 22, 'AWAY', NULL, NULL, NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Macclesfield', NULL, NULL, false, '3-0(aet)', 'FACP', 2001, 5706, NULL, '2002-01-06 13:00:00', 23, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~17393,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Leicester City', NULL, NULL, false, '1-0', 'PREM', 2001, 34698, NULL, '2002-01-12 15:00:00', 24, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~13170,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Chelsea', NULL, NULL, false, '1-5', 'PREM', 2001, 40035, NULL, '2002-01-20 14:00:00', 25, 'AWAY', NULL, NULL, NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Chelsea', NULL, NULL, false, '1-1(aet)', 'FACP', 2001, 33443, NULL, '2002-01-26 15:00:00', 26, 'AWAY', NULL, NULL, NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Southampton', NULL, NULL, false, '0-2', 'PREM', 2001, 31879, NULL, '2002-01-30 19:45:00', 27, 'AWAY', NULL, NULL, NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Blackburn', NULL, NULL, false, '2-0', 'PREM', 2001, 35307, NULL, '2002-02-02 15:00:00', 28, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~16645,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Chelsea', NULL, NULL, false, '2-3(aet)', 'FACP', 2001, 27272, NULL, '2002-02-06 19:45:00', 29, 'HOME', NULL, NULL, NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Bolton', NULL, NULL, false, '0-1', 'PREM', 2001, 24342, NULL, '2002-02-09 15:00:00', 30, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~16646,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Middlesbrough', NULL, NULL, false, '1-0', 'PREM', 2001, 35420, NULL, '2002-02-23 15:00:00', 31, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~13189,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('<NAME>', NULL, NULL, false, '1-2', 'PREM', 2001, 37341, NULL, '2002-03-02 15:00:00', 32, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~13190,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Everton', NULL, NULL, false, '1-0', 'PREM', 2001, 29883, NULL, '2002-03-06 19:45:00', 33, 'HOME', NULL, NULL, NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('<NAME>', NULL, NULL, false, '3-5', 'PREM', 2001, 35281, NULL, '2002-03-16 15:00:00', 34, 'HOME', NULL, NULL, NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('<NAME>', NULL, NULL, false, '3-1', 'PREM', 2001, 33871, NULL, '2002-03-30 15:00:00', 35, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~16688,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Fulham', NULL, NULL, false, '1-0', 'PREM', 2001, 19416, NULL, '2002-04-01 20:00:00', 36, 'AWAY', NULL, NULL, NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Charlton', NULL, NULL, false, '2-0', 'PREM', 2001, 32389, NULL, '2002-04-06 15:00:00', 37, 'HOME', NULL, NULL, NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Tottenham', NULL, NULL, false, '1-1', 'PREM', 2001, 36083, NULL, '2002-04-13 15:00:00', 38, 'AWAY', NULL, NULL, NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Sunderland', NULL, NULL, false, '3-0', 'PREM', 2001, 33319, NULL, '2002-04-20 15:00:00', 39, 'HOME', NULL, NULL, NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Arsenal', NULL, NULL, false, '0-2', 'PREM', 2001, 38038, NULL, '2002-04-24 19:45:00', 40, 'AWAY', NULL, NULL, NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Newcastle', NULL, NULL, false, '1-3', 'PREM', 2001, 52127, NULL, '2002-04-27 15:00:00', 41, 'AWAY', NULL, NULL, NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Bolton', NULL, NULL, false, '2-1', 'PREM', 2001, 35546, NULL, '2002-05-11 15:00:00', 42, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~16727,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Newcastle', NULL, NULL, false, '0-4', 'PREM', 2002, 51072, NULL, '2002-08-19 20:00:00', 43, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~17652,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Arsenal', NULL, NULL, false, '2-2', 'PREM', 2002, 35048, NULL, '2002-08-24 15:00:00', 44, 'HOME', NULL, NULL, NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Charlton', NULL, NULL, false, '0-2', 'PREM', 2002, 32424, NULL, '2002-08-31 15:00:00', 45, 'HOME', NULL, NULL, NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('WBA', NULL, NULL, false, '0-1', 'PREM', 2002, 34957, NULL, '2002-09-11 19:45:00', 46, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~17679,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Tottenham', NULL, NULL, false, 'L 2-3', 'PREM', 2002, 36005, NULL, '2002-09-15 15:00:00', 47, 'AWAY', NULL, NULL, NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Manchester City', NULL, NULL, false, '0-0', 'PREM', 2002, 35550, NULL, '2002-09-21 15:00:00', 48, 'HOME', NULL, NULL, NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Chelsea', NULL, NULL, false, '3-2', 'PREM', 2002, 38929, NULL, '2002-09-28 15:00:00', 49, 'AWAY', NULL, NULL, NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Chesterfield', NULL, NULL, false, '1-1 (aet 5-4 on pens)', 'LGCP', 2002, 7102, NULL, '2002-10-01 19:45:00', 50, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~21158,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Birmingham', NULL, NULL, false, '1-2', 'PREM', 2002, 35010, NULL, '2002-10-05 15:00:00', 51, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~17946,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Sunderland', NULL, NULL, false, '1-0', 'PREM', 2002, 44352, NULL, '2002-10-19 15:00:00', 52, 'AWAY', NULL, NULL, NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Fulham', NULL, NULL, false, '1-0', 'PREM', 2002, 15858, NULL, '2002-10-23 19:45:00', 53, 'AWAY', NULL, NULL, NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Everton', NULL, NULL, false, '0-1', 'PREM', 2002, 34117, NULL, '2002-10-27 16:05:00', 54, 'HOME', NULL, NULL, NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Liverpool', NULL, NULL, false, '0-2', 'PREM', 2002, 44048, NULL, '2002-11-02 15:00:00', 55, 'AWAY', NULL, NULL, NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Oldham', NULL, NULL, false, '0-1', 'LGCP', 2002, 21919, NULL, '2002-11-06 19:45:00', 56, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~21217,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Leeds United', NULL, NULL, false, '3-4', 'PREM', 2002, 33297, NULL, '2002-11-10 14:00:00', 57, 'HOME', NULL, NULL, NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('<NAME>', NULL, NULL, false, '1-1', 'PREM', 2002, 35049, NULL, '2002-11-17 16:05:00', 58, 'HOME', NULL, NULL, NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('<NAME>', NULL, NULL, false, '1-4', 'PREM', 2002, 33279, NULL, '2002-11-23 15:00:00', 59, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~18002,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Southampton', NULL, NULL, false, '0-1', 'PREM', 2002, 28844, NULL, '2002-12-02 20:00:00', 60, 'HOME', NULL, NULL, NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Middlesbrough', NULL, NULL, false, '2-2', 'PREM', 2002, 28283, NULL, '2002-12-07 15:00:00', 61, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~17956,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('<NAME>', NULL, NULL, false, '0-3', 'PREM', 2002, 67555, NULL, '2002-12-14 15:00:00', 62, 'AWAY', NULL, NULL, NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Bolton', NULL, NULL, false, '1-1', 'PREM', 2002, 34892, NULL, '2002-12-21 15:00:00', 63, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~17766,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Fulham', NULL, NULL, false, '1-1', 'PREM', 2002, 35025, NULL, '2002-12-26 15:00:00', 64, 'HOME', NULL, NULL, NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Blackburn', NULL, NULL, false, '2-2', 'PREM', 2002, 24998, NULL, '2002-12-28 15:00:00', 65, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~17776,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('<NAME>', NULL, NULL, false, '3-2', 'FACP', 2002, 29612, NULL, '2003-01-04 15:00:00', 66, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~21359,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Newcastle', NULL, NULL, false, '2-2', 'PREM', 2002, 35048, NULL, '2003-01-11 15:00:00', 67, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~17797,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Arsenal', NULL, NULL, false, '1-3', 'PREM', 2002, 38053, NULL, '2003-01-19 14:00:00', 68, 'AWAY', NULL, NULL, NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Charlton', NULL, NULL, false, '2-4', 'PREM', 2002, 26340, NULL, '2003-01-22 19:45:00', 69, 'AWAY', NULL, NULL, NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('<NAME>', NULL, NULL, false, '0-6', 'FACP', 2002, 67181, NULL, '2003-01-26 13:00:00', 70, 'AWAY', NULL, NULL, NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Blackburn', NULL, NULL, false, '2-1', 'PREM', 2002, 34743, NULL, '2003-01-29 19:45:00', 71, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~17813,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Liverpool', NULL, NULL, false, '0-3', 'PREM', 2002, 35033, NULL, '2003-02-02 15:00:00', 72, 'HOME', NULL, NULL, NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Leeds United', NULL, NULL, false, '0-1', 'PREM', 2002, 40126, NULL, '2003-02-08 15:00:00', 73, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~17822,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('WBA', NULL, NULL, false, '2-1', 'PREM', 2002, 27042, NULL, '2003-02-23 14:00:00', 74, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~18009,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Tottenham', NULL, NULL, false, '2-0', 'PREM', 2002, 35049, NULL, '2003-03-01 15:00:00', 75, 'HOME', NULL, NULL, NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Everton', NULL, NULL, false, '0-0', 'PREM', 2002, 40158, NULL, '2003-03-15 15:00:00', 76, 'AWAY', NULL, NULL, NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Sunderland', NULL, NULL, false, '2-0', 'PREM', 2002, 35033, NULL, '2003-03-22 15:00:00', 77, 'HOME', NULL, NULL, NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Southampton', NULL, NULL, false, '1-1', 'PREM', 2002, 31941, NULL, '2003-04-05 15:00:00', 78, 'AWAY', NULL, NULL, NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('<NAME>', NULL, NULL, false, '2-2', 'PREM', 2002, 35029, NULL, '2003-04-12 15:00:00', 79, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~17868,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Bolton', NULL, NULL, false, '0-1', 'PREM', 2002, 27160, NULL, '2003-04-19 15:00:00', 80, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~17975,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Middlesbrough', NULL, NULL, false, '1-0', 'PREM', 2002, 35019, NULL, '2003-04-21 15:00:00', 81, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~17881,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Manchester City', NULL, NULL, false, '1-0', 'PREM', 2002, 34815, NULL, '2003-04-27 14:00:00', 82, 'AWAY', NULL, NULL, NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Chelsea', NULL, NULL, false, '1-0', 'PREM', 2002, 35042, NULL, '2003-05-03 15:00:00', 83, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~17895,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Birmingham', NULL, NULL, false, '2-2', 'PREM', 2002, 29505, NULL, '2003-05-11 15:00:00', 84, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~17936,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Preston', NULL, NULL, false, '2-1', 'FLC', 2003, 18246, NULL, '2003-08-09 12:30:00', 85, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~21947,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Rushden & D', NULL, NULL, false, '3-1', 'LGCP', 2003, 13715, NULL, '2003-08-13 19:45:00', 86, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~24191,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('<NAME>', NULL, NULL, false, '0-0', 'FLC', 2003, 28972, NULL, '2003-08-16 15:00:00', 87, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~21997,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Rotherham', NULL, NULL, false, '0-1', 'FLC', 2003, 8739, NULL, '2003-08-23 15:00:00', 88, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~22040,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Bradford City', NULL, NULL, false, '1-0', 'FLC', 2003, 30370, NULL, '2003-08-26 19:45:00', 89, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~22079,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('<NAME>', NULL, NULL, false, '2-1', 'FLC', 2003, 29679, NULL, '2003-08-30 15:00:00', 90, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~22128,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Reading', NULL, NULL, false, '1-0', 'FLC', 2003, 32634, NULL, '2003-09-13 15:00:00', 91, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~22217,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Crewe', NULL, NULL, false, '3-0', 'FLC', 2003, 9575, NULL, '2003-09-16 19:45:00', 92, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~22244,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Gillingham', NULL, NULL, false, '0-2', 'FLC', 2003, 11418, NULL, '2003-09-20 15:00:00', 93, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~22293,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('<NAME>', NULL, NULL, false, '3-2', 'LGCP', 2003, 10724, NULL, '2003-09-23 19:45:00', 94, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~25609,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Millwall', NULL, NULL, false, '1-1', 'FLC', 2003, 31626, NULL, '2003-09-28 12:00:00', 95, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~22345,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Crystal Palace', NULL, NULL, false, '3-0', 'FLC', 2003, 31861, NULL, '2003-10-01 19:45:00', 96, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~22404,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Der<NAME>', NULL, NULL, false, '1-0', 'FLC', 2003, 22810, NULL, '2003-10-04 17:35:00', 97, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~22420,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Norwich City', NULL, NULL, false, '1-1', 'FLC', 2003, 31308, NULL, '2003-10-15 19:45:00', 98, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~22500,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Burnley', NULL, NULL, false, '2-2', 'FLC', 2003, 31474, NULL, '2003-10-18 15:00:00', 99, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~22521,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('<NAME>', NULL, NULL, false, '1-1', 'FLC', 2003, 29544, NULL, '2003-10-22 19:45:00', 100, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~22171,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('<NAME>', NULL, NULL, false, '0-0', 'FLC', 2003, 19202, NULL, '2003-10-25 17:35:00', 101, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~22583,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Tottenham', NULL, NULL, false, '0-0(aet)', 'LGCP', 2003, 36053, NULL, '2003-10-29 19:45:00', 102, 'AWAY', NULL, NULL, NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Coventry City', NULL, NULL, false, '1-1', 'FLC', 2003, 19126, NULL, '2003-11-01 15:00:00', 103, 'AWAY', NULL, NULL, NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('WBA', NULL, NULL, false, '3-4', 'FLC', 2003, 30359, NULL, '2003-11-08 15:00:00', 104, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~22684,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Watford', NULL, NULL, false, '0-0', 'FLC', 2003, 20950, NULL, '2003-11-22 15:00:00', 105, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~22739,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Wimbledon', NULL, NULL, false, '1-1', 'FLC', 2003, 8118, NULL, '2003-11-25 19:45:00', 106, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~22464,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('<NAME>', NULL, NULL, false, '4-0', 'FLC', 2003, 34375, NULL, '2003-11-29 15:00:00', 107, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~22788,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('WBA', NULL, NULL, false, '1-1', 'FLC', 2003, 26194, NULL, '2003-12-06 15:00:00', 108, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~22832,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Stoke City', NULL, NULL, false, '0-1', 'FLC', 2003, 24365, NULL, '2003-12-09 19:45:00', 109, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~22696,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Sunderland', NULL, NULL, false, '3-2', 'FLC', 2003, 30329, NULL, '2003-12-13 15:00:00', 110, 'HOME', NULL, NULL, NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Walsall', NULL, NULL, false, '1-1', 'FLC', 2003, 9272, NULL, '2003-12-20 15:00:00', 111, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~22901,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Ipswich Town', NULL, NULL, false, '1-2', 'FLC', 2003, 35021, NULL, '2003-12-26 12:00:00', 112, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~22947,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('<NAME>', NULL, NULL, false, '2-0', 'FLC', 2003, 27491, NULL, '2003-12-28 12:00:00', 113, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~22988,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('<NAME>', NULL, NULL, false, '2-1', 'FACP', 2003, 11793, NULL, '2004-01-03 15:00:00', 114, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~25806,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Preston', NULL, NULL, false, '1-2', 'FLC', 2003, 28777, NULL, '2004-01-10 15:00:00', 115, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~23073,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('<NAME>', NULL, NULL, false, '3-3', 'FLC', 2003, 22787, NULL, '2004-01-17 17:35:00', 116, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~23117,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Wolves', NULL, NULL, false, '3-1', 'FACP', 2003, 24413, NULL, '2004-01-25 14:00:00', 117, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~25861,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Rotherham', NULL, NULL, false, '2-1', 'FLC', 2003, 34483, NULL, '2004-01-31 15:00:00', 118, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~23189,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Bradford City', NULL, NULL, false, '2-1', 'FLC', 2003, 13078, NULL, '2004-02-07 15:00:00', 119, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~23225,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Fulham', NULL, NULL, false, '0-0', 'FACP', 2003, 14705, NULL, '2004-02-14 15:00:00', 120, 'AWAY', NULL, NULL, NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Norwich City', NULL, NULL, false, '1-1', 'FLC', 2003, 23940, NULL, '2004-02-21 15:00:00', 121, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~23322,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Fulham', NULL, NULL, false, '0-3', 'FACP', 2003, 27934, NULL, '2004-02-24 19:45:00', 122, 'HOME', NULL, NULL, NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('<NAME>', NULL, NULL, false, '1-0', 'FLC', 2003, 31858, NULL, '2004-02-28 15:00:00', 123, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~23373,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Burnley', NULL, NULL, false, '1-1', 'FLC', 2003, 12440, NULL, '2004-03-02 19:45:00', 124, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~23400,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Walsall', NULL, NULL, false, '0-0', 'FLC', 2003, 33177, NULL, '2004-03-06 15:00:00', 125, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~23444,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Wimbledon', NULL, NULL, false, '5-0', 'FLC', 2003, 29818, NULL, '2004-03-09 19:45:00', 126, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~23281,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Sunderland', NULL, NULL, false, '0-2', 'FLC', 2003, 29533, NULL, '2004-03-13 15:00:00', 127, 'AWAY', NULL, NULL, NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Crewe', NULL, NULL, false, '4-2', 'FLC', 2003, 31158, NULL, '2004-03-17 19:45:00', 128, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~23550,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Millwall', NULL, NULL, false, '1-4', 'FLC', 2003, 14055, NULL, '2004-03-21 12:00:00', 129, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~23569,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Gillingham', NULL, NULL, false, '2-1', 'FLC', 2003, 34551, NULL, '2004-03-27 15:00:00', 130, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~23619,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Reading', NULL, NULL, false, '0-2', 'FLC', 2003, 23314, NULL, '2004-04-03 12:30:00', 131, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~23663,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('<NAME>', NULL, NULL, false, '0-0', 'FLC', 2003, 28207, NULL, '2004-04-10 15:00:00', 132, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~23711,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Crystal Palace', NULL, NULL, false, '0-1', 'FLC', 2003, 23977, NULL, '2004-04-12 15:00:00', 133, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~23749,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Coventry City', NULL, NULL, false, '2-0', 'FLC', 2003, 27890, NULL, '2004-04-17 15:00:00', 134, 'HOME', NULL, NULL, NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Stoke City', NULL, NULL, false, '2-0', 'FLC', 2003, 18227, NULL, '2004-04-24 15:00:00', 135, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~23845,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Watford', NULL, NULL, false, '4-0', 'FLC', 2003, 34685, NULL, '2004-05-01 15:00:00', 136, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~23896,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('<NAME>', NULL, NULL, false, '1-1', 'FLC', 2003, 20069, NULL, '2004-05-09 13:00:00', 137, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~23965,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('<NAME>', NULL, NULL, false, '0-0', 'FLC', 2004, 30231, NULL, '2004-08-07 15:00:00', 138, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~27319,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Reading', NULL, NULL, false, '1-0', 'FLC', 2004, 26242, NULL, '2004-08-10 20:00:00', 139, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~27462,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('<NAME>', NULL, NULL, false, '1-3', 'FLC', 2004, 23271, NULL, '2004-08-15 15:00:00', 140, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~27312,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Crewe', NULL, NULL, false, '3-2', 'FLC', 2004, 7857, NULL, '2004-08-21 15:00:00', 141, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~27466,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Southend', NULL, NULL, false, '2-0', 'LGCP', 2004, 16910, NULL, '2004-08-24 19:45:00', 142, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~28371,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Burnley', NULL, NULL, false, '1-0', 'FLC', 2004, 22119, NULL, '2004-08-28 15:00:00', 143, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~27343,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Coventry City', NULL, NULL, false, '1-2', 'FLC', 2004, 17404, NULL, '2004-08-30 15:00:00', 144, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~27176,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Sheffield Utd', NULL, NULL, false, '2-1', 'FLC', 2004, 21058, NULL, '2004-09-11 15:00:00', 145, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~27309,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Rotherham', NULL, NULL, false, '1-0', 'FLC', 2004, 26233, NULL, '2004-09-14 19:45:00', 146, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~27420,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('<NAME>', NULL, NULL, false, '1-1', 'FLC', 2004, 28812, NULL, '2004-09-18 15:00:00', 147, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~27433,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('<NAME>', NULL, NULL, false, '3-2', 'LGCP', 2004, 11111, NULL, '2004-09-21 19:45:00', 148, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~28734,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('<NAME>', NULL, NULL, false, '1-2', 'FLC', 2004, 25615, NULL, '2004-09-26 13:00:00', 149, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~27404,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('<NAME>', NULL, NULL, false, '1-1', 'FLC', 2004, 23112, NULL, '2004-09-29 19:45:00', 150, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~27393,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Wolves', NULL, NULL, false, '1-0', 'FLC', 2004, 29585, NULL, '2004-10-02 15:00:00', 151, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~27354,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('QPR', NULL, NULL, false, '0-1', 'FLC', 2004, 18363, NULL, '2004-10-16 15:00:00', 152, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~27365,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Stoke City', NULL, NULL, false, '2-0', 'FLC', 2004, 29808, NULL, '2004-10-19 19:45:00', 153, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~27606,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Gillingham', NULL, NULL, false, '3-1', 'FLC', 2004, 25247, NULL, '2004-10-23 15:00:00', 154, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~27618,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Chelsea', NULL, NULL, false, '0-1', 'LGCP', 2004, 41774, NULL, '2004-10-27 19:45:00', 155, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~28811,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Plymouth', NULL, NULL, false, '1-1', 'FLC', 2004, 20220, NULL, '2004-10-30 15:00:00', 156, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~27228,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('<NAME>', NULL, NULL, false, '1-4', 'FLC', 2004, 14222, NULL, '2004-11-02 19:45:00', 157, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~27256,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('QPR', NULL, NULL, false, '2-1', 'FLC', 2004, 31365, NULL, '2004-11-06 15:00:00', 158, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~27277,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Brighton', NULL, NULL, false, '0-1', 'FLC', 2004, 29514, NULL, '2004-11-13 15:00:00', 159, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~27371,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Millwall', NULL, NULL, false, '0-1', 'FLC', 2004, 15025, NULL, '2004-11-21 12:00:00', 160, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~27376,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Watford', NULL, NULL, false, '3-2', 'FLC', 2004, 24541, NULL, '2004-11-27 15:00:00', 161, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~27575,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Sunderland', NULL, NULL, false, '2-0', 'FLC', 2004, 29510, NULL, '2004-12-04 15:00:00', 162, 'AWAY', NULL, NULL, NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Leeds United', NULL, NULL, false, '1-1', 'FLC', 2004, 30684, NULL, '2004-12-10 19:45:00', 163, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~27242,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Preston', NULL, NULL, false, '1-2', 'FLC', 2004, 13451, NULL, '2004-12-18 15:00:00', 164, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~27111,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Nottm Forest', NULL, NULL, false, '3-2', 'FLC', 2004, 32270, NULL, '2004-12-26 13:00:00', 165, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~27209,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Rotherham', NULL, NULL, false, '2-2', 'FLC', 2004, 7769, NULL, '2004-12-28 15:00:00', 166, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~27195,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('<NAME>', NULL, NULL, false, '2-0', 'FLC', 2004, 30003, NULL, '2005-01-01 13:00:00', 167, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~27579,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('<NAME>', NULL, NULL, false, '0-2', 'FLC', 2004, 27424, NULL, '2005-01-03 15:00:00', 168, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~27078,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Norwich City', NULL, NULL, false, '1-0', 'FACP', 2004, 23389, NULL, '2005-01-08 15:00:00', 169, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~28933,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Wolves', NULL, NULL, false, '2-4', 'FLC', 2004, 28411, NULL, '2005-01-15 15:00:00', 170, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~27597,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Der<NAME>', NULL, NULL, false, '1-2', 'FLC', 2004, 30347, NULL, '2005-01-23 12:30:00', 171, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~27075,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('<NAME>', NULL, NULL, false, '1-1', 'FACP', 2004, 19444, NULL, '2005-01-29 15:00:00', 172, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~28979,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('<NAME>', NULL, NULL, false, '1-0', 'FLC', 2004, 23716, NULL, '2005-02-06 13:00:00', 173, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~27121,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('<NAME>', NULL, NULL, false, '1-1 (aet 1-3 on pens)', 'FACP', 2004, 15067, NULL, '2005-02-13 16:00:00', 174, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~29011,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Plymouth', NULL, NULL, false, '5-0', 'FLC', 2004, 25490, NULL, '2005-02-19 15:00:00', 175, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~27570,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Gillingham', NULL, NULL, false, '1-0', 'FLC', 2004, 9510, NULL, '2005-02-22 19:45:00', 176, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~27144,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Leeds United', NULL, NULL, false, '1-2', 'FLC', 2004, 34115, NULL, '2005-02-26 15:00:00', 177, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~27134,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Preston', NULL, NULL, false, '1-2', 'FLC', 2004, 26442, NULL, '2005-03-05 15:00:00', 178, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~27561,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Reading', NULL, NULL, false, '1-3', 'FLC', 2004, 22268, NULL, '2005-03-12 15:00:00', 179, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~27524,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Crewe', NULL, NULL, false, '1-1', 'FLC', 2004, 26593, NULL, '2005-03-15 19:45:00', 180, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~27159,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Leicester City', NULL, NULL, false, '2-2', 'FLC', 2004, 22031, NULL, '2005-03-18 19:45:00', 181, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~27173,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('<NAME>', NULL, NULL, false, '2-1', 'FLC', 2004, 12993, NULL, '2005-04-02 15:00:00', 182, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~27478,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Burnley', NULL, NULL, false, '1-0', 'FLC', 2004, 12209, NULL, '2005-04-05 19:45:00', 183, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~27479,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Coventry City', NULL, NULL, false, '3-0', 'FLC', 2004, 26839, NULL, '2005-04-09 15:00:00', 184, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~27549,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Millwall', NULL, NULL, false, '1-1', 'FLC', 2004, 28221, NULL, '2005-04-16 12:00:00', 185, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~27538,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Sto<NAME>', NULL, NULL, false, '1-0', 'FLC', 2004, 14534, NULL, '2005-04-19 19:45:00', 186, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~27090,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Brighton', NULL, NULL, false, '2-2', 'FLC', 2004, 6819, NULL, '2005-04-23 15:00:00', 187, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~27495,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Sunderland', NULL, NULL, false, '1-2', 'FLC', 2004, 33482, NULL, '2005-04-29 19:45:00', 188, 'HOME', NULL, NULL, NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Watford', NULL, NULL, false, '2-1', 'FLC', 2004, 19673, NULL, '2005-05-08 13:00:00', 189, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~27492,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Ipswich Town', NULL, NULL, false, '2-2', 'FLCPO', 2004, 33723, NULL, '2005-05-14 12:15:00', 190, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~29158,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Ipswich Town', NULL, NULL, false, '2-0', 'FLCPO', 2004, 30010, NULL, '2005-05-18 19:45:00', 191, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~29160,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Preston', NULL, NULL, false, '1-0', 'FLCPO', 2004, 70275, NULL, '2005-05-30 15:00:00', 192, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~29174,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Blackburn', NULL, NULL, false, '3-1', 'PREM', 2005, 33305, NULL, '2005-08-13 15:00:00', 193, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~29694,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Newcastle', NULL, NULL, false, '0-0', 'PREM', 2005, 51620, NULL, '2005-08-20 15:00:00', 194, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~29739,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Bolton', NULL, NULL, true, '1-2', 'PREM', 2005, 31629, NULL, '2005-08-27 15:00:00', 195, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~29774,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('<NAME>', NULL, NULL, false, '4-0', 'PREM', 2005, 29582, NULL, '2005-09-12 20:00:00', 196, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~29887,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Fulham', NULL, NULL, false, '2-1', 'PREM', 2005, 21907, NULL, '2005-09-17 15:00:00', 197, 'AWAY', NULL, NULL, NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('<NAME>', NULL, NULL, false, '4-2', 'LGCP', 2005, 14976, NULL, '2005-09-20 19:45:00', 198, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~32127,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Arsenal', NULL, NULL, false, '0-0', 'PREM', 2005, 34742, NULL, '2005-09-24 15:00:00', 199, 'HOME', NULL, NULL, NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Sunderland', NULL, NULL, false, '1-1', 'PREM', 2005, 31212, NULL, '2005-10-01 15:00:00', 200, 'AWAY', NULL, NULL, NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Manchester City', NULL, NULL, false, '1-2', 'PREM', 2005, 43647, NULL, '2005-10-16 16:00:00', 201, 'AWAY', NULL, NULL, NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Middlesbrough', NULL, NULL, true, '2-1', 'PREM', 2005, 34612, NULL, '2005-10-23 15:00:00', 202, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~30161,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Bolton', NULL, NULL, false, '0-1', 'LGCP', 2005, 10927, NULL, '2005-10-26 20:00:00', 203, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~32182,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Liverpool', NULL, NULL, false, '0-2', 'PREM', 2005, 44537, NULL, '2005-10-29 15:00:00', 204, 'AWAY', NULL, NULL, NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('WBA', NULL, NULL, false, '1-0', 'PREM', 2005, 34325, NULL, '2005-11-05 15:00:00', 205, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~30482,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Tottenham', NULL, NULL, false, '1-1', 'PREM', 2005, 36154, NULL, '2005-11-20 13:00:00', 206, 'AWAY', NULL, NULL, NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('<NAME>', NULL, NULL, false, '1-2', 'PREM', 2005, 34755, NULL, '2005-11-27 16:00:00', 207, 'HOME', NULL, NULL, NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Birmingham', NULL, NULL, false, '2-1', 'PREM', 2005, 24010, NULL, '2005-12-05 20:00:00', 208, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~29653,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Blackburn', NULL, NULL, false, '2-3', 'PREM', 2005, 20370, NULL, '2005-12-10 15:00:00', 209, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~29535,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Everton', NULL, NULL, false, '2-1', 'PREM', 2005, 35704, NULL, '2005-12-14 19:45:00', 210, 'AWAY', NULL, NULL, NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Newcastle', NULL, NULL, true, '2-4', 'PREM', 2005, 34836, NULL, '2005-12-17 15:00:00', 211, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~29504,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Portsmouth', NULL, NULL, false, '1-1', 'PREM', 2005, 20168, NULL, '2005-12-26 15:00:00', 212, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~30633,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('<NAME>', NULL, NULL, false, '0-2', 'PREM', 2005, 34131, NULL, '2005-12-28 19:45:00', 213, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~30601,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Charlton', NULL, NULL, false, '0-2', 'PREM', 2005, 25952, NULL, '2005-12-31 15:00:00', 214, 'AWAY', NULL, NULL, NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Chelsea', NULL, NULL, false, '1-3', 'PREM', 2005, 34758, NULL, '2006-01-02 15:00:00', 215, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~30865,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Norwich City', NULL, NULL, false, '2-1', 'FACP', 2005, 23968, NULL, '2006-01-07 15:00:00', 216, 'AWAY', NULL, NULL, NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('<NAME>', NULL, NULL, false, '2-1', 'PREM', 2005, 36700, NULL, '2006-01-14 15:00:00', 217, 'AWAY', NULL, NULL, NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Fulham', NULL, NULL, false, '2-1', 'PREM', 2005, 29812, NULL, '2006-01-23 19:45:00', 218, 'HOME', NULL, NULL, NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Blackburn', NULL, NULL, false, '4-2', 'FACP', 2005, 23700, NULL, '2006-01-28 15:00:00', 219, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~32394,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Arsenal', NULL, NULL, false, '3-2', 'PREM', 2005, 38216, NULL, '2006-01-31 19:45:00', 220, 'AWAY', NULL, NULL, NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Sunderland', NULL, NULL, false, '2-0', 'PREM', 2005, 34745, NULL, '2006-02-04 15:00:00', 221, 'HOME', NULL, NULL, NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Birmingham', NULL, NULL, false, '3-0', 'PREM', 2005, 31294, NULL, '2006-02-13 20:00:00', 222, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~30873,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Bolton', NULL, NULL, false, '0-0', 'FACP', 2005, 17120, NULL, '2006-02-18 15:00:00', 223, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~32426,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Everton', NULL, NULL, true, '2-2', 'PREM', 2005, 34866, NULL, '2006-03-04 15:00:00', 224, 'HOME', NULL, NULL, NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Bolton', NULL, NULL, false, '1-4', 'PREM', 2005, 24461, NULL, '2006-03-11 15:00:00', 225, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~30369,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Bolton', NULL, NULL, false, '2-1(aet)', 'FACP', 2005, 24685, NULL, '2006-03-15 20:05:00', 226, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~32444,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Portsmouth', NULL, NULL, false, '2-4', 'PREM', 2005, 34837, NULL, '2006-03-18 15:00:00', 227, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~31036,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Manchester City', NULL, NULL, false, '2-1', 'FACP', 2005, 39357, NULL, '2006-03-20 20:00:00', 228, 'AWAY', NULL, NULL, NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Wigan Athletic', NULL, NULL, false, '2-1', 'PREM', 2005, 18736, NULL, '2006-03-25 15:00:00', 229, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~31001,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('<NAME>', NULL, NULL, false, '0-1', 'PREM', 2005, 69522, NULL, '2006-03-29 19:45:00', 230, 'AWAY', NULL, NULL, NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Charlton', NULL, NULL, false, '0-0', 'PREM', 2005, 34753, NULL, '2006-04-02 16:00:00', 231, 'HOME', NULL, NULL, NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Chelsea', NULL, NULL, false, '1-4', 'PREM', 2005, 41919, NULL, '2006-04-09 12:00:00', 232, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~29454,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Manchester City', NULL, NULL, false, '1-0', 'PREM', 2005, 34305, NULL, '2006-04-15 15:00:00', 233, 'HOME', NULL, NULL, NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Middlesbrough', NULL, NULL, false, '0-2', 'PREM', 2005, 27658, NULL, '2006-04-17 15:00:00', 234, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~29384,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Middlesbrough', NULL, NULL, false, '1-0', 'FACP', 2005, 39148, NULL, '2006-04-23 16:00:00', 235, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~29345,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Liverpool', NULL, NULL, false, '1-2', 'PREM', 2005, 34852, NULL, '2006-04-26 19:45:00', 236, 'HOME', NULL, NULL, NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('WBA', NULL, NULL, false, '1-0', 'PREM', 2005, 24462, NULL, '2006-05-01 20:00:00', 237, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~29313,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Tottenham', NULL, NULL, true, '2-1', 'PREM', 2005, 34970, NULL, '2006-05-07 15:00:00', 238, 'HOME', NULL, NULL, NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Liverpool', NULL, NULL, false, '3-3 (aet 1-3 on pens)', 'FACP', 2005, 74000, NULL, '2006-05-13 15:00:00', 239, 'AWAY', NULL, NULL, NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Charlton', NULL, NULL, true, '3-1', 'PREM', 2006, 35000, NULL, '2006-08-19 15:00:00', 240, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~32633,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Watford', NULL, NULL, false, '1-1', 'PREM', 2006, 18344, NULL, '2006-08-22 19:45:00', 241, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~32672,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Liverpool', NULL, NULL, false, '1-2', 'PREM', 2006, 43965, NULL, '2006-08-26 15:00:00', 242, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~32683,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('<NAME>', NULL, NULL, false, '1-1', 'PREM', 2006, 34576, NULL, '2006-09-10 16:00:00', 243, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~32758,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Newcastle', NULL, NULL, false, '0-2', 'PREM', 2006, 34938, NULL, '2006-09-17 15:00:00', 244, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~33080,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Manchester City', NULL, NULL, false, '0-2', 'PREM', 2006, 41073, NULL, '2006-09-23 15:00:00', 245, 'AWAY', NULL, NULL, NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Reading', NULL, NULL, false, '0-1', 'PREM', 2006, 34872, NULL, '2006-10-01 14:00:00', 246, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~33194,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Portsmouth', NULL, NULL, false, '0-2', 'PREM', 2006, 20142, NULL, '2006-10-14 15:00:00', 247, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~33260,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Tottenham', NULL, NULL, false, '0-1', 'PREM', 2006, 36162, NULL, '2006-10-22 15:00:00', 248, 'AWAY', NULL, NULL, NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Chesterfield', NULL, NULL, false, '1-2', 'LGCP', 2006, 7787, NULL, '2006-10-24 19:45:00', 249, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~36306,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Blackburn', NULL, NULL, false, '2-1', 'PREM', 2006, 33833, NULL, '2006-10-29 16:00:00', 250, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~33365,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Arsenal', NULL, NULL, false, '1-0', 'PREM', 2006, 34969, NULL, '2006-11-05 13:30:00', 251, 'HOME', NULL, NULL, NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Middlesbrough', NULL, NULL, false, '0-1', 'PREM', 2006, 25898, NULL, '2006-11-11 15:00:00', 252, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~33424,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Chelsea', NULL, NULL, false, '0-1', 'PREM', 2006, 41916, NULL, '2006-11-18 15:00:00', 253, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~33442,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Sheffield Utd', NULL, NULL, false, '1-0', 'PREM', 2006, 34454, NULL, '2006-11-25 15:00:00', 254, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~33563,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Everton', NULL, NULL, false, '0-2', 'PREM', 2006, 32968, NULL, '2006-12-03 16:00:00', 255, 'AWAY', NULL, NULL, NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('<NAME>', NULL, NULL, false, '0-2', 'PREM', 2006, 33805, NULL, '2006-12-06 19:45:00', 256, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~34483,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Bolton', NULL, NULL, false, '0-4', 'PREM', 2006, 22283, NULL, '2006-12-09 17:15:00', 257, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~34486,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('<NAME>', NULL, NULL, false, '1-0', 'PREM', 2006, 34966, NULL, '2006-12-17 16:00:00', 258, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~34538,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Fulham', NULL, NULL, false, '0-0', 'PREM', 2006, 22452, NULL, '2006-12-23 15:00:00', 259, 'AWAY', NULL, NULL, NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Portsmouth', NULL, NULL, false, '1-2', 'PREM', 2006, 34913, NULL, '2006-12-26 13:00:00', 260, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~32818,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Manchester City', NULL, NULL, false, '0-1', 'PREM', 2006, 34574, NULL, '2006-12-30 15:00:00', 261, 'HOME', NULL, NULL, NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Reading', NULL, NULL, true, '0-6', 'PREM', 2006, 24073, NULL, '2007-01-01 15:00:00', 262, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~32907,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Brighton', NULL, NULL, true, '3-0', 'FACP', 2006, 32874, NULL, '2007-01-06 15:00:00', 263, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~36435,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Fulham', NULL, NULL, true, '3-3', 'PREM', 2006, 34977, NULL, '2007-01-13 15:00:00', 264, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~32978,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Newcastle', NULL, NULL, false, '2-2', 'PREM', 2006, 52095, NULL, '2007-01-20 15:00:00', 265, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~33667,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Watford', NULL, NULL, true, '0-1', 'FACP', 2006, 31168, NULL, '2007-01-27 15:00:00', 266, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~36559,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Liverpool', NULL, NULL, false, '1-2', 'PREM', 2006, 34966, NULL, '2007-01-30 19:45:00', 267, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~34287,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('<NAME>', NULL, NULL, false, '0-1', 'PREM', 2006, 41202, NULL, '2007-02-03 15:00:00', 268, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~34290,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Watford', NULL, NULL, false, '0-1', 'PREM', 2006, 34625, NULL, '2007-02-10 15:00:00', 269, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~34344,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Charlton', NULL, NULL, false, '0-4', 'PREM', 2006, 27111, NULL, '2007-02-24 15:00:00', 270, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~33756,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Tottenham', NULL, NULL, false, '3-4', 'PREM', 2006, 34966, NULL, '2007-03-04 16:00:00', 271, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~33809,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Blackburn', NULL, NULL, false, '2-1', 'PREM', 2006, 18591, NULL, '2007-03-17 17:15:00', 272, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~33892,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Middlesbrough', NULL, NULL, true, '2-0', 'PREM', 2006, 34977, NULL, '2007-03-31 15:00:00', 273, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~33970,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Arsenal', NULL, NULL, false, '1-0', 'PREM', 2006, 60098, NULL, '2007-04-07 15:00:00', 274, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~34004,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Sheffield Utd', NULL, NULL, false, '0-3', 'PREM', 2006, 31593, NULL, '2007-04-14 15:00:00', 275, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~34102,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Chelsea', NULL, NULL, false, '1-4', 'PREM', 2006, 34966, NULL, '2007-04-18 20:00:00', 276, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~36622,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Everton', NULL, NULL, false, '1-0', 'PREM', 2006, 34945, NULL, '2007-04-21 15:00:00', 277, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~34231,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('<NAME>', NULL, NULL, false, '3-0', 'PREM', 2006, 24726, NULL, '2007-04-28 15:00:00', 278, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~33626,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Bolton', NULL, NULL, true, '3-1', 'PREM', 2006, 34404, NULL, '2007-05-05 15:00:00', 279, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~34169,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('<NAME>', NULL, NULL, false, '1-0', 'PREM', 2006, 75927, NULL, '2007-05-13 15:00:00', 280, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~34211,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Manchester City', NULL, NULL, true, '0-2', 'PREM', 2007, 34921, NULL, '2007-08-11 15:00:00', 281, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~37428,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Birmingham', NULL, NULL, false, '1-0', 'PREM', 2007, 24961, NULL, '2007-08-18 15:00:00', 282, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~38147,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('<NAME>', NULL, NULL, true, '1-1', 'PREM', 2007, 33793, NULL, '2007-08-25 15:00:00', 283, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~37470,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('<NAME>', NULL, NULL, false, '2-1', 'LGCP', 2007, 10831, NULL, '2007-08-28 19:45:00', 284, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~42975,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Reading', NULL, NULL, false, '3-0', 'PREM', 2007, 23533, NULL, '2007-09-01 15:00:00', 285, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~38214,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Middlesbrough', NULL, NULL, true, '3-0', 'PREM', 2007, 34351, NULL, '2007-09-15 15:00:00', 286, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~37580,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Newcastle', NULL, NULL, true, '1-3', 'PREM', 2007, 50104, NULL, '2007-09-23 13:30:00', 287, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~37583,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Plymouth', NULL, NULL, false, '1-0', 'LGCP', 2007, 25774, NULL, '2007-09-26 19:45:00', 288, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~43058,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Arsenal', NULL, NULL, true, '0-1', 'PREM', 2007, 34966, NULL, '2007-09-29 15:00:00', 289, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~37988,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('<NAME>', NULL, NULL, false, '0-1', 'PREM', 2007, 40842, NULL, '2007-10-06 15:00:00', 290, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~38052,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Sunderland', NULL, NULL, true, '3-1', 'PREM', 2007, 34913, NULL, '2007-10-21 16:00:00', 291, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~38126,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Portsmouth', NULL, NULL, true, '0-0', 'PREM', 2007, 20525, NULL, '2007-10-27 17:15:00', 292, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~37696,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Coventry City', NULL, NULL, false, '2-1', 'LGCP', 2007, 23968, NULL, '2007-10-30 19:45:00', 293, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~43087,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Bolton', NULL, NULL, true, '1-1', 'PREM', 2007, 33867, NULL, '2007-11-04 16:00:00', 294, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~37743,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('<NAME>', NULL, NULL, false, '5-0', 'PREM', 2007, 32440, NULL, '2007-11-10 15:00:00', 295, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~37819,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Tottenham', NULL, NULL, true, '1-1', 'PREM', 2007, 34966, NULL, '2007-11-25 13:30:00', 296, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~37870,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Chelsea', NULL, NULL, false, '0-1', 'PREM', 2007, 41830, NULL, '2007-12-01 12:45:00', 297, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~37921,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Blackburn', NULL, NULL, false, '1-0', 'PREM', 2007, 20870, NULL, '2007-12-09 16:00:00', 298, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~37977,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Everton', NULL, NULL, false, '1-2', 'LGCP', 2007, 28777, NULL, '2007-12-12 19:45:00', 299, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~43165,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Everton', NULL, NULL, true, '0-2', 'PREM', 2007, 34430, NULL, '2007-12-15 15:00:00', 300, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~37301,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Middlesbrough', NULL, NULL, false, '2-1', 'PREM', 2007, 26007, NULL, '2007-12-22 15:00:00', 301, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~38776,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Reading', NULL, NULL, true, '1-1', 'PREM', 2007, 34277, NULL, '2007-12-26 13:00:00', 302, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~38747,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('<NAME>', NULL, NULL, true, '2-1', 'PREM', 2007, 34966, NULL, '2007-12-29 15:00:00', 303, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~38802,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Arsenal', NULL, NULL, false, '0-2', 'PREM', 2007, 60102, NULL, '2008-01-01 15:00:00', 304, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~38839,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Manchester City', NULL, NULL, true, '0-0', 'FACP', 2007, 33806, NULL, '2008-01-05 15:00:00', 305, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~43214,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Fulham', NULL, NULL, true, '2-1', 'PREM', 2007, 34947, NULL, '2008-01-12 15:00:00', 306, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~38914,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Manchester City', NULL, NULL, false, '0-1', 'FACP', 2007, 27809, NULL, '2008-01-16 20:05:00', 307, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~43288,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Manchester City', NULL, NULL, false, '1-1', 'PREM', 2007, 39042, NULL, '2008-01-20 16:00:00', 308, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~38955,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Liverpool', NULL, NULL, true, '1-0', 'PREM', 2007, 34977, NULL, '2008-01-30 19:45:00', 309, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~38551,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('<NAME>', NULL, NULL, false, '0-1', 'PREM', 2007, 20525, NULL, '2008-02-02 15:00:00', 310, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~39064,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Birmingham', NULL, NULL, true, '1-1', 'PREM', 2007, 34884, NULL, '2008-02-09 15:00:00', 311, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~39110,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Fulham', NULL, NULL, true, '1-0', 'PREM', 2007, 25280, NULL, '2008-02-23 15:00:00', 312, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~38688,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Chelsea', NULL, NULL, true, '0-4', 'PREM', 2007, 34969, NULL, '2008-03-01 15:00:00', 313, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~37177,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Liverpool', NULL, NULL, false, '0-4', 'PREM', 2007, 42954, NULL, '2008-03-05 20:00:00', 314, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~38144,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Tottenham', NULL, NULL, false, '0-4', 'PREM', 2007, 36062, NULL, '2008-03-09 15:00:00', 315, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~37233,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Blackburn', NULL, NULL, true, '2-1', 'PREM', 2007, 34006, NULL, '2008-03-15 15:00:00', 316, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~38286,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Everton', NULL, NULL, false, '1-1', 'PREM', 2007, 0, NULL, '2008-03-22 17:15:00', 317, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~38326,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Sunderland', NULL, NULL, false, '1-2', 'PREM', 2007, 45690, NULL, '2008-03-29 15:00:00', 318, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~38399,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Portsmouth', NULL, NULL, true, '0-1', 'PREM', 2007, 33629, NULL, '2008-04-08 19:45:00', 319, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~38445,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Bolton', NULL, NULL, false, '0-1', 'PREM', 2007, 23043, NULL, '2008-04-12 15:00:00', 320, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~38482,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('<NAME>', NULL, NULL, true, '2-1', 'PREM', 2007, 34612, NULL, '2008-04-19 15:00:00', 321, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~38533,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Newcastle', NULL, NULL, true, '2-2', 'PREM', 2007, 34980, NULL, '2008-04-26 15:00:00', 322, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~37364,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('<NAME>', NULL, NULL, false, '1-4', 'PREM', 2007, 76013, NULL, '2008-05-03 12:45:00', 323, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~37408,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('<NAME>', NULL, NULL, true, '2-2', 'PREM', 2007, 34969, NULL, '2008-05-11 15:00:00', 324, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~36759,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('<NAME>', NULL, NULL, true, '2-1', 'PREM', 2008, 32758, NULL, '2008-08-16 15:00:00', 325, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~43698,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Manchester City', NULL, NULL, false, '0-3', 'PREM', 2008, 36635, NULL, '2008-08-24 16:00:00', 326, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~43738,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Macclesfield', NULL, NULL, true, '4-1(aet)', 'LGCP', 2008, 10055, NULL, '2008-08-27 19:45:00', 327, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~46512,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Blackburn', NULL, NULL, true, '4-1', 'PREM', 2008, 32905, NULL, '2008-08-30 15:00:00', 328, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~43789,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('WBA', NULL, NULL, false, '2-3', 'PREM', 2008, 26213, NULL, '2008-09-13 15:00:00', 329, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~43849,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Newcastle', NULL, NULL, true, '3-1', 'PREM', 2008, 34743, NULL, '2008-09-20 15:00:00', 330, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~43908,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Watford', NULL, NULL, true, '0-1', 'LGCP', 2008, 12914, NULL, '2008-09-23 19:45:00', 331, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~46550,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Fulham', NULL, NULL, true, '2-1', 'PREM', 2008, 23946, NULL, '2008-09-27 15:00:00', 332, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~43948,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Bolton', NULL, NULL, true, '1-3', 'PREM', 2008, 33715, NULL, '2008-10-05 13:30:00', 333, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~44011,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('H<NAME>', NULL, NULL, false, '0-1', 'PREM', 2008, 24896, NULL, '2008-10-19 15:00:00', 334, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~44075,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Arsenal', NULL, NULL, true, '0-2', 'PREM', 2008, 34802, NULL, '2008-10-26 16:00:00', 335, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~44240,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('<NAME>', NULL, NULL, false, '0-2', 'PREM', 2008, 75397, NULL, '2008-10-29 20:00:00', 336, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~44443,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Middlesbrough', NULL, NULL, false, '1-1', 'PREM', 2008, 25164, NULL, '2008-11-01 15:00:00', 337, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~44487,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Everton', NULL, NULL, true, '1-3', 'PREM', 2008, 33961, NULL, '2008-11-08 15:00:00', 338, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~44536,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Portsmouth', NULL, NULL, true, '0-0', 'PREM', 2008, 32328, NULL, '2008-11-15 15:00:00', 339, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~44559,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Sunderland', NULL, NULL, false, '1-0', 'PREM', 2008, 35222, NULL, '2008-11-23 16:00:00', 340, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~44603,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Liverpool', NULL, NULL, false, '0-0', 'PREM', 2008, 41169, NULL, '2008-12-01 20:00:00', 341, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~44275,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Tottenham', NULL, NULL, true, '0-2', 'PREM', 2008, 34277, NULL, '2008-12-08 20:00:00', 342, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~44304,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Chelsea', NULL, NULL, true, '1-1', 'PREM', 2008, 41675, NULL, '2008-12-14 16:00:00', 343, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~44353,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('<NAME>', NULL, NULL, true, '0-1', 'PREM', 2008, 31353, NULL, '2008-12-20 17:30:00', 344, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~44406,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Portsmouth', NULL, NULL, true, '4-1', 'PREM', 2008, 20102, NULL, '2008-12-26 13:00:00', 345, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~43572,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('<NAME>', NULL, NULL, true, '2-1', 'PREM', 2008, 34477, NULL, '2008-12-28 14:00:00', 346, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~43621,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Barnsley', NULL, NULL, true, '3-0', 'FACP', 2008, 28869, NULL, '2009-01-03 15:00:00', 347, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~46914,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Newcastle', NULL, NULL, true, '2-2', 'PREM', 2008, 47571, NULL, '2009-01-10 15:00:00', 348, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~46959,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Fulham', NULL, NULL, true, '3-1', 'PREM', 2008, 31818, NULL, '2009-01-18 13:30:00', 349, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~45340,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Hartlepool', NULL, NULL, false, '2-0', 'FACP', 2008, 6849, NULL, '2009-01-24 12:40:00', 350, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~46984,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Hull City', NULL, NULL, true, '2-0', 'PREM', 2008, 34340, NULL, '2009-01-28 20:00:00', 351, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~45405,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Arsenal', NULL, NULL, false, '0-0', 'PREM', 2008, 60109, NULL, '2009-01-31 15:00:00', 352, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~45447,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('<NAME>', NULL, NULL, true, '0-1', 'PREM', 2008, 34958, NULL, '2009-02-08 16:00:00', 353, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~43499,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Middlesbrough', NULL, NULL, true, '1-1', 'FACP', 2008, 33658, NULL, '2009-02-14 15:00:00', 354, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~47017,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Bolton', NULL, NULL, true, '1-2', 'PREM', 2008, 21245, NULL, '2009-02-21 15:00:00', 355, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~44691,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Middlesbrough', NULL, NULL, false, '0-2', 'FACP', 2008, 15602, NULL, '2009-02-25 20:10:00', 356, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~47052,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Manchester City', NULL, NULL, true, '1-0', 'PREM', 2008, 34562, NULL, '2009-03-01 12:30:00', 357, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~44744,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Wigan Athletic', NULL, NULL, false, '1-0', 'PREM', 2008, 14169, NULL, '2009-03-04 19:45:00', 358, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~44783,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('WBA', NULL, NULL, true, '0-0', 'PREM', 2008, 30842, NULL, '2009-03-16 20:00:00', 359, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~44905,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Blackburn', NULL, NULL, false, '1-1', 'PREM', 2008, 21672, NULL, '2009-03-21 15:00:00', 360, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~44940,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Sunderland', NULL, NULL, true, '2-0', 'PREM', 2008, 34761, NULL, '2009-04-04 15:00:00', 361, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~45019,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Tottenham', NULL, NULL, false, '0-1', 'PREM', 2008, 35969, NULL, '2009-04-11 15:00:00', 362, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~45063,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('<NAME>', NULL, NULL, false, '1-1', 'PREM', 2008, 39534, NULL, '2009-04-18 15:00:00', 363, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~45137,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Chelsea', NULL, NULL, true, '0-1', 'PREM', 2008, 34749, NULL, '2009-04-25 15:00:00', 364, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~45191,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Stoke City', NULL, NULL, false, '1-0', 'PREM', 2008, 27500, NULL, '2009-05-02 15:00:00', 365, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~44115,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Liverpool', NULL, NULL, true, '0-3', 'PREM', 2008, 34951, NULL, '2009-05-09 17:30:00', 366, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~44163,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Everton', NULL, NULL, false, '1-3', 'PREM', 2008, 38501, NULL, '2009-05-16 15:00:00', 367, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~44166,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Middlesbrough', NULL, NULL, true, '2-1', 'PREM', 2008, 34007, NULL, '2009-05-24 16:00:00', 368, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~44169,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Wolves', NULL, NULL, false, '2-0', 'PREM', 2009, 28674, NULL, '2009-08-15 15:00:00', 369, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~49152,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Tottenham', NULL, NULL, true, '1-2', 'PREM', 2009, 33095, NULL, '2009-08-23 13:30:00', 370, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~47316,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Millwall', NULL, NULL, true, '3-1(aet)', 'LGCP', 2009, 24492, NULL, '2009-08-25 19:45:00', 371, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~50688,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Blackburn', NULL, NULL, false, '0-0', 'PREM', 2009, 23421, NULL, '2009-08-29 15:00:00', 372, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~47353,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('<NAME>', NULL, NULL, false, '0-1', 'PREM', 2009, 17142, NULL, '2009-09-12 15:00:00', 373, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~48708,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Liverpool', NULL, NULL, true, '2-3', 'PREM', 2009, 34658, NULL, '2009-09-19 17:30:00', 374, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~47548,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Bolton', NULL, NULL, false, '1-3(aet)', 'LGCP', 2009, 8050, NULL, '2009-09-22 20:00:00', 375, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~50797,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Manchester City', NULL, NULL, false, '1-3', 'PREM', 2009, 42745, NULL, '2009-09-28 20:00:00', 376, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~47590,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Fulham', NULL, NULL, true, '2-2', 'PREM', 2009, 32612, NULL, '2009-10-04 15:00:00', 377, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~47675,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Stoke City', NULL, NULL, false, '1-2', 'PREM', 2009, 27026, NULL, '2009-10-17 15:00:00', 378, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~47743,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Arsenal', NULL, NULL, true, '2-2', 'PREM', 2009, 34442, NULL, '2009-10-25 16:15:00', 379, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~48288,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Sunderland', NULL, NULL, false, '2-2', 'PREM', 2009, 39033, NULL, '2009-10-31 15:00:00', 380, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~48335,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('<NAME>', NULL, NULL, true, '2-1', 'PREM', 2009, 30024, NULL, '2009-11-04 19:45:00', 381, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~49195,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Everton', NULL, NULL, true, '1-2', 'PREM', 2009, 32466, NULL, '2009-11-08 15:00:00', 382, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~48364,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('<NAME>', NULL, NULL, false, '3-3', 'PREM', 2009, 24909, NULL, '2009-11-21 15:00:00', 383, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~48407,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Burnley', NULL, NULL, true, '5-3', 'PREM', 2009, 34003, NULL, '2009-11-28 15:00:00', 384, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~48492,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('<NAME>', NULL, NULL, true, '0-4', 'PREM', 2009, 34980, NULL, '2009-12-05 15:00:00', 385, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~48537,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Birmingham', NULL, NULL, false, '0-1', 'PREM', 2009, 28203, NULL, '2009-12-12 15:00:00', 386, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~48588,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Bolton', NULL, NULL, false, '1-3', 'PREM', 2009, 17849, NULL, '2009-12-15 20:00:00', 387, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~48634,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Chelsea', NULL, NULL, true, '1-1', 'PREM', 2009, 33388, NULL, '2009-12-20 16:00:00', 388, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~48648,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Portsmouth', NULL, NULL, true, '2-0', 'PREM', 2009, 33686, NULL, '2009-12-26 13:00:00', 389, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~47803,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Tottenham', NULL, NULL, false, '0-2', 'PREM', 2009, 35994, NULL, '2009-12-28 12:45:00', 390, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~47849,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Arsenal', NULL, NULL, true, '1-2', 'FACP', 2009, 25549, NULL, '2010-01-03 16:15:00', 391, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~51170,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('<NAME>', NULL, NULL, false, '0-0', 'PREM', 2009, 35646, NULL, '2010-01-17 13:30:00', 392, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~48116,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Portsmouth', NULL, NULL, true, '1-1', 'PREM', 2009, 18322, NULL, '2010-01-26 19:45:00', 393, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~48188,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Blackburn', NULL, NULL, true, '0-0', 'PREM', 2009, 33093, NULL, '2010-01-30 15:00:00', 394, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~48215,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Burnley', NULL, NULL, false, '1-2', 'PREM', 2009, 21001, NULL, '2010-02-06 15:00:00', 395, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~48255,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Birmingham', NULL, NULL, true, '2-0', 'PREM', 2009, 34458, NULL, '2010-02-10 19:45:00', 396, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~47977,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Hull City', NULL, NULL, true, '3-0', 'PREM', 2009, 33971, NULL, '2010-02-20 15:00:00', 397, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~48049,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Man Utd', NULL, NULL, false, '0-3', 'PREM', 2009, 73797, NULL, '2010-02-23 20:00:00', 398, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~47407,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Bolton', NULL, NULL, true, '1-2', 'PREM', 2009, 33824, NULL, '2010-03-06 15:00:00', 399, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~47454,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Chelsea', NULL, NULL, false, '1-4', 'PREM', 2009, 41755, NULL, '2010-03-13 15:00:00', 400, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~49260,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Arsenal', NULL, NULL, true, '0-2', 'PREM', 2009, 60077, NULL, '2010-03-20 17:30:00', 401, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~49315,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Wolves', NULL, NULL, true, '1-3', 'PREM', 2009, 33988, NULL, '2010-03-23 20:00:00', 402, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~47917,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Stoke City', NULL, NULL, true, '0-1', 'PREM', 2009, 34564, NULL, '2010-03-27 15:00:00', 403, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~48814,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Everton', NULL, NULL, false, '2-2', 'PREM', 2009, 37451, NULL, '2010-04-04 16:00:00', 404, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~48855,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Sunderland', NULL, NULL, true, '1-0', 'PREM', 2009, 34685, NULL, '2010-04-10 15:00:00', 405, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~48940,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Liverpool', NULL, NULL, false, '0-3', 'PREM', 2009, 37697, NULL, '2010-04-19 20:00:00', 406, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~49102,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('<NAME>', NULL, NULL, true, '3-2', 'PREM', 2009, 33057, NULL, '2010-04-24 15:00:00', 407, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~49036,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Fulham', NULL, NULL, false, '2-3', 'PREM', 2009, 24201, NULL, '2010-05-02 15:00:00', 408, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~49076,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Manchester City', NULL, NULL, true, '1-1', 'PREM', 2009, 34989, NULL, '2010-05-09 16:00:00', 409, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~47535,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('<NAME>', '2010-08-02 09:00:00', '2010-07-29 09:00:00', true, '0-3', 'PREM', 2010, 36604, '2010-07-28 09:00:00', '2010-08-14 15:00:00', 410, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~52661,00.html', '2010-07-31 09:00:00', '2010-08-03 09:00:00');
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Bolton', '2010-07-13 09:00:00', NULL, true, '1-3', 'PREM', 2010, 32533, NULL, '2010-08-21 15:00:00', 411, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~52715,00.html', NULL, '2010-07-20 09:00:00');
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Oxford United', NULL, NULL, true, '1-0', 'LGCP', 2010, 20902, NULL, '2010-08-24 19:45:00', 412, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~54544,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Man Utd', '2010-08-13 09:00:00', '2010-08-11 09:00:00', false, '0-3', 'PREM', 2010, 75061, '2010-08-11 09:00:00', '2010-08-28 17:30:00', 413, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~52758,00.html', '2010-08-12 09:00:00', '2010-08-14 09:00:00');
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Chelsea', '2010-07-13 09:00:00', NULL, true, '1-3', 'PREM', 2010, 33014, NULL, '2010-09-11 15:00:00', 414, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~52828,00.html', NULL, '2010-07-20 09:00:00');
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Stoke City', '2010-08-23 09:00:00', '2010-08-19 09:00:00', false, '1-1', 'PREM', 2010, 27028, '2010-08-18 09:00:00', '2010-09-18 12:45:00', 415, 'AWAY', 'SS2', 'http://www.whufc.com/page/MatchReport/0,,12562~52883,00.html', '2010-08-21 09:00:00', '2010-08-24 09:00:00');
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Sunderland', '2010-09-13 09:00:00', '2010-09-09 09:00:00', false, '2-1', 'LGCP', 2010, 21907, '2010-09-08 09:00:00', '2010-09-21 19:45:00', 416, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~54583,00.html', '2010-09-11 09:00:00', '2010-09-14 09:00:00');
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Tottenham', '2010-07-13 09:00:00', NULL, true, '1-0', 'PREM', 2010, 34190, NULL, '2010-09-25 15:00:00', 417, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~52066,00.html', NULL, '2010-07-20 09:00:00');
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Fulham', '2010-08-31 09:00:00', NULL, true, '1-1', 'PREM', 2010, 34589, NULL, '2010-10-02 15:00:00', 418, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~51512,00.html', NULL, '2010-09-07 09:00:00');
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Wolves', '2010-09-13 09:00:00', '2010-09-09 09:00:00', false, '1-1', 'PREM', 2010, 28582, '2010-09-08 09:00:00', '2010-10-16 15:00:00', 419, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~51583,00.html', '2010-09-11 09:00:00', '2010-09-14 09:00:00');
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Newcastle', '2010-08-31 09:00:00', NULL, true, '1-2', 'PREM', 2010, 34486, NULL, '2010-10-23 17:30:00', 420, 'HOME', 'SS2', 'http://www.whufc.com/page/MatchReport/0,,12562~51640,00.html', NULL, '2010-09-07 09:00:00');
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Stoke City', NULL, NULL, true, '3-1(aet)', 'LGCP', 2010, 25304, NULL, '2010-10-27 19:45:00', 421, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~54678,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Arsenal', '2010-09-27 09:00:00', '2010-09-23 09:00:00', true, '0-1', 'PREM', 2010, 60086, '2010-09-22 09:00:00', '2010-10-30 15:00:00', 422, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~51678,00.html', '2010-09-25 09:00:00', '2010-09-28 09:00:00');
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Birmingham', '2010-10-04 09:00:00', '2010-09-30 09:00:00', false, '2-2', 'PREM', 2010, 26474, '2010-09-29 09:00:00', '2010-11-06 15:00:00', 423, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~51749,00.html', '2010-10-02 09:00:00', '2010-10-05 09:00:00');
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('WBA', '2010-09-14 09:00:00', NULL, true, '2-2', 'PREM', 2010, 33023, NULL, '2010-11-10 19:45:00', 424, 'HOME', 'SS', 'http://www.whufc.com/page/MatchReport/0,,12562~51772,00.html', NULL, '2010-09-28 09:00:00');
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Blackpool', '2010-09-14 09:00:00', NULL, true, '0-0', 'PREM', 2010, 31194, NULL, '2010-11-13 15:00:00', 425, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~51799,00.html', NULL, '2010-09-28 09:00:00');
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Liverpool', '2010-10-18 09:00:00', '2010-10-14 09:00:00', false, '0-3', 'PREM', 2010, 43024, '2010-10-13 09:00:00', '2010-11-20 17:30:00', 426, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~51842,00.html', '2010-10-16 09:00:00', '2010-10-19 09:00:00');
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('<NAME>', '2010-10-05 09:00:00', NULL, true, '3-1', 'PREM', 2010, 34178, NULL, '2010-11-27 15:00:00', 427, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~52137,00.html', NULL, '2010-10-19 09:00:00');
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('<NAME>', NULL, NULL, true, '4-0', 'LGCP', 2010, 33551, NULL, '2010-11-30 19:45:00', 428, 'HOME', 'SS1', 'http://www.whufc.com/page/MatchReport/0,,12562~54825,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Sunderland', '2010-11-01 09:00:00', '2010-10-28 09:00:00', true, '0-1', 'PREM', 2010, 36940, '2010-10-27 09:00:00', '2010-12-05 16:00:00', 429, 'AWAY', 'SS1', 'http://www.whufc.com/page/MatchReport/0,,12562~52158,00.html', '2010-10-30 09:00:00', NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Manchester City', '2010-10-05 09:00:00', NULL, true, '1-3', 'PREM', 2010, 32813, NULL, '2010-12-11 15:00:00', 430, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~52205,00.html', NULL, '2010-10-19 09:00:00');
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Blackburn', '2010-12-06 09:00:00', '2010-12-02 09:00:00', false, '1-1', 'PREM', 2010, 21934, '2010-12-01 09:00:00', '2010-12-18 15:00:00', 431, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~52243,00.html', '2010-12-04 09:00:00', '2010-12-07 09:00:00');
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Fulham', '2010-11-22 09:00:00', '2010-11-18 09:00:00', true, '3-1', 'PREM', 2010, 25332, '2010-11-17 09:00:00', '2010-12-26 12:00:00', 432, 'AWAY', 'SS1', 'http://www.whufc.com/page/MatchReport/0,,12562~51969,00.html', '2010-11-20 09:00:00', '2010-11-23 09:00:00');
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Everton', '2010-11-16 09:00:00', NULL, true, '1-1', 'PREM', 2010, 33422, NULL, '2010-12-28 17:30:00', 433, 'HOME', 'SS1', 'http://www.whufc.com/page/MatchReport/0,,12562~52017,00.html', NULL, '2010-11-23 09:00:00');
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Wolves', NULL, NULL, true, '2-0', 'PREM', 2010, 0, NULL, '2011-01-01 15:00:00', 434, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~53188,00.html', NULL, '2010-11-23 09:00:00');
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Newcastle', '2010-12-20 09:00:00', '2010-12-16 09:00:00', false, '0-5', 'PREM', 2010, 42387, '2010-12-15 09:00:00', '2011-01-05 19:45:00', 435, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~53271,00.html', NULL, '2010-12-21 09:00:00');
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Barnsley', NULL, NULL, true, '2-0', 'FACP', 2010, 24881, NULL, '2011-01-08 15:00:00', 436, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~54914,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Birmingham', NULL, NULL, true, '2-1', 'LGCP', 2010, 34754, NULL, '2011-01-11 19:45:00', 437, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~54889,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Arsenal', '2010-12-07 09:00:00', NULL, true, '0-3', 'PREM', 2010, 0, NULL, '2011-01-15 17:30:00', 438, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~53304,00.html', NULL, '2010-12-14 09:00:00');
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Everton', '2011-01-10 09:00:00', '2011-01-06 09:00:00', false, '2-2', 'PREM', 2010, 34179, '2011-01-05 09:00:00', '2011-01-22 15:00:00', 439, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~53346,00.html', '2011-01-08 09:00:00', '2011-01-11 09:00:00');
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Birmingham', '2010-12-20 09:00:00', '2010-12-15 09:00:00', false, '1-3(aet)', 'LGCP', 2010, 27519, '2010-12-15 09:00:00', '2011-01-26 19:45:00', 440, 'AWAY', 'SS1', 'http://www.whufc.com/page/MatchReport/0,,12562~54892,00.html', '2010-12-18 09:00:00', NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Nottm Forest', NULL, NULL, true, '3-2', 'FACP', 2010, 29287, NULL, '2011-01-30 14:00:00', 441, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~54976,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Blackpool', '2011-01-10 09:00:00', '2011-01-06 09:00:00', false, '3-1', 'PREM', 2010, 15095, '2011-01-05 09:00:00', '2011-02-02 20:00:00', 442, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~53412,00.html', '2011-01-08 09:00:00', '2011-01-11 09:00:00');
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Birmingham', '2010-12-07 09:00:00', NULL, true, '0-1', 'PREM', 2010, 32927, NULL, '2011-02-06 13:30:00', 443, 'HOME', 'SS1', 'http://www.whufc.com/page/MatchReport/0,,12562~53463,00.html', NULL, '2010-12-14 09:00:00');
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('WBA', '2011-01-24 09:00:00', '2011-01-20 09:00:00', false, '3-3', 'PREM', 2010, 23916, '2011-01-19 09:00:00', '2011-02-12 15:00:00', 444, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~52967,00.html', '2011-01-22 09:00:00', '2011-01-25 09:00:00');
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Burnley', NULL, NULL, true, '5-1', 'FACP', 2010, 24488, NULL, '2011-02-21 20:00:00', 445, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~54995,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Liverpool', '2011-01-11 09:00:00', NULL, true, '3-1', 'PREM', 2010, 34941, NULL, '2011-02-27 13:30:00', 446, 'HOME', 'SS1', 'http://www.whufc.com/page/MatchReport/0,,12562~53487,00.html', NULL, '2011-01-18 09:00:00');
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Burnham', NULL, NULL, false, NULL, 'FACP', 2010, NULL, NULL, '2011-02-28 14:26:00', 447, 'HOME', NULL, NULL, NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Stoke City', NULL, NULL, true, '3-0', 'PREM', 2010, 33066, NULL, '2011-03-05 15:00:00', 448, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~53080,00.html', NULL, '2011-01-18 09:00:00');
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Stoke City', NULL, NULL, true, '1-2', 'FACP', 2010, 24550, NULL, '2011-03-13 14:00:00', 449, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~55022,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Tottenham', '2011-02-28 09:00:00', '2011-02-17 09:00:00', false, '0-0', 'PREM', 2010, 36010, '2011-02-23 09:00:00', '2011-03-19 12:45:00', 450, 'AWAY', 'SS2', 'http://www.whufc.com/page/MatchReport/0,,12562~51874,00.html', '2011-02-26 09:00:00', '2011-03-01 09:00:00');
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Man Utd', '2011-02-15 09:00:00', NULL, true, '2-4', 'PREM', 2010, 0, NULL, '2011-04-02 12:45:00', 451, 'HOME', 'SS2', 'http://www.whufc.com/page/MatchReport/0,,12562~51909,00.html', NULL, '2011-02-22 09:00:00');
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Bolton', '2011-03-21 09:00:00', '2011-03-17 09:00:00', false, '0-3', 'PREM', 2010, 25857, '2011-03-16 09:00:00', '2011-04-09 15:00:00', 452, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~52274,00.html', '2011-03-19 09:00:00', '2011-03-22 09:00:00');
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('<NAME>', '2011-02-15 09:00:00', NULL, true, '1-2', 'PREM', 2010, 0, NULL, '2011-04-16 15:00:00', 453, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~52374,00.html', NULL, '2011-02-22 09:00:00');
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Chelsea', '2011-03-26 09:00:00', '2011-03-24 09:00:00', true, '0-3', 'PREM', 2010, 41656, '2011-03-23 09:00:00', '2011-04-23 17:30:00', 454, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~52416,00.html', '2011-03-25 09:00:00', '2011-03-28 09:00:00');
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Manchester City', '2011-04-11 09:00:00', '2011-04-08 09:00:00', false, '1-2', 'PREM', 2010, 44511, '2011-04-07 09:00:00', '2011-05-01 16:10:00', 455, 'AWAY', 'SS1', 'http://www.whufc.com/page/MatchReport/0,,12562~52498,00.html', '2011-04-09 09:00:00', '2011-04-12 09:00:00');
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Blackburn', '2011-03-22 09:00:00', NULL, true, '1-1', 'PREM', 2010, 0, NULL, '2011-05-07 15:00:00', 456, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~52541,00.html', NULL, '2011-03-29 09:00:00');
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('<NAME>', '2011-04-26 09:00:00', '2011-04-21 09:00:00', false, '2-3', 'PREM', 2010, 22043, '2011-04-20 09:00:00', '2011-05-15 16:00:00', 457, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~52588,00.html', '2011-04-23 09:00:00', '2011-04-27 09:00:00');
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Sunderland', '2011-04-05 09:00:00', NULL, true, '0-3', 'PREM', 2010, 32792, NULL, '2011-05-22 16:00:00', 458, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~52597,00.html', NULL, '2011-04-12 09:00:00');
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('<NAME>', NULL, NULL, true, '0-1', 'FLC', 2011, 25680, NULL, '2011-08-07 13:00:00', 459, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~58440,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Doncaster', '2011-07-25 09:00:00', '2011-07-21 09:00:00', true, '1-0', 'FLC', 2011, 11344, '2011-07-20 09:00:00', '2011-08-13 15:00:00', 460, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~57839,00.html', '2011-07-23 09:00:00', '2011-07-26 09:00:00');
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Watford', '2011-08-07 09:00:00', '2011-08-04 09:00:00', false, '4-0', 'FLC', 2011, 14747, NULL, '2011-08-16 19:45:00', 461, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~57881,00.html', '2011-08-06 09:00:00', '2011-08-08 09:00:00');
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Leeds United', NULL, NULL, true, '2-2', 'FLC', 2011, 28252, NULL, '2011-08-21 13:15:00', 462, 'HOME', 'SS1', 'http://www.whufc.com/page/MatchReport/0,,12562~57927,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Aldershot Town', NULL, NULL, true, '1-2', 'LGCP', 2011, 19879, NULL, '2011-08-24 19:45:00', 463, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~60962,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Nottm Forest', '2011-08-15 09:00:00', '2011-08-11 09:00:00', false, '4-1', 'FLC', 2011, 21379, NULL, '2011-08-28 13:15:00', 464, 'AWAY', 'SS1', 'http://www.whufc.com/page/MatchReport/0,,12562~57971,00.html', '2011-08-13 09:00:00', '2011-08-17 09:00:00');
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Portsmouth', NULL, NULL, true, '4-3', 'FLC', 2011, 33465, NULL, '2011-09-10 15:00:00', 465, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~58042,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Millwall', NULL, '2011-09-01 09:00:00', false, '0-0', 'FLC', 2011, 16078, NULL, '2011-09-17 12:30:00', 466, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~58107,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Peterborough', NULL, NULL, true, '1-0', 'FLC', 2011, 29895, NULL, '2011-09-24 15:00:00', 467, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~57522,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('<NAME>', NULL, NULL, true, '0-1', 'FLC', 2011, 27709, NULL, '2011-09-27 19:45:00', 468, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~57558,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Crystal Palace', '2011-09-12 09:00:00', '2011-09-08 09:00:00', true, '2-2', 'FLC', 2011, 20074, NULL, '2011-10-01 15:00:00', 469, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~57571,00.html', '2011-09-10 09:00:00', '2011-09-13 09:00:00');
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Blackpool', NULL, NULL, true, '4-0', 'FLC', 2011, 31448, NULL, '2011-10-15 15:00:00', 470, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~57649,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Southampton', '2011-09-19 09:00:00', '2011-09-15 09:00:00', true, '0-1', 'FLC', 2011, 32152, NULL, '2011-10-18 19:45:00', 471, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~57685,00.html', '2011-09-17 09:00:00', '2011-09-21 09:00:00');
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Brighton', '2011-09-26 09:00:00', '2011-09-22 09:00:00', false, '1-0', 'FLC', 2011, 20686, NULL, '2011-10-24 19:45:00', 472, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~57697,00.html', '2011-09-24 09:00:00', '2011-09-27 09:00:00');
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Leicester City', NULL, NULL, true, '3-2', 'FLC', 2011, 30410, NULL, '2011-10-29 15:00:00', 473, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~58179,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Bristol City', NULL, NULL, true, '0-0', 'FLC', 2011, 27980, NULL, '2011-11-01 19:45:00', 474, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~58215,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Hull City', '2011-10-10 09:00:00', NULL, false, '2-0', 'FLC', 2011, 21756, NULL, '2011-11-05 15:00:00', 475, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~58231,00.html', '2011-10-08 09:00:00', '2011-10-11 09:00:00');
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Coventry City', '2011-10-24 09:00:00', NULL, false, '2-1', 'FLC', 2011, 20524, NULL, '2011-11-19 15:00:00', 476, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~58275,00.html', '2011-10-22 09:00:00', '2011-10-26 09:00:00');
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('<NAME>', NULL, NULL, true, '3-1', 'FLC', 2011, 27864, NULL, '2011-11-26 17:20:00', 477, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~58490,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Middlesbrough', '2011-10-31 09:00:00', NULL, false, '2-0', 'FLC', 2011, 18457, NULL, '2011-11-29 19:45:00', 478, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~58520,00.html', '2011-10-29 09:00:00', '2011-11-01 09:00:00');
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Burnley', NULL, NULL, true, '1-2', 'FLC', 2011, 26274, NULL, '2011-12-03 15:00:00', 479, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~58547,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Reading', '2011-11-07 09:00:00', NULL, true, '0-3', 'FLC', 2011, 24026, NULL, '2011-12-10 15:00:00', 480, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~58567,00.html', '2011-11-05 09:00:00', '2011-11-08 09:00:00');
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Barnsley', NULL, NULL, true, '1-0', 'FLC', 2011, 34749, NULL, '2011-12-17 15:00:00', 481, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~58614,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Birmingham', '2011-12-05 09:00:00', NULL, false, '1-1', 'FLC', 2011, 20214, NULL, '2011-12-26 17:30:00', 482, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~58336,00.html', '2011-12-03 09:00:00', '2011-12-06 09:00:00');
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Der<NAME>', '2011-11-28 09:00:00', NULL, false, '1-2', 'FLC', 2011, 28067, NULL, '2011-12-31 13:00:00', 483, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~58385,00.html', '2011-11-26 09:00:00', '2011-11-29 09:00:00');
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Coventry City', NULL, NULL, true, '1-0', 'FLC', 2011, 34936, NULL, '2012-01-02 15:00:00', 484, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~59324,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('<NAME>', NULL, NULL, true, '0-1', 'FACP', 2011, 17916, NULL, '2012-01-08 15:00:00', 485, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~61383,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Portsmouth', '2011-12-12 09:00:00', NULL, true, '1-0', 'FLC', 2011, 18492, NULL, '2012-01-14 15:00:00', 486, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~59392,00.html', '2011-12-10 09:00:00', '2011-12-13 09:00:00');
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Nottm Forest', NULL, NULL, true, '2-1', 'FLC', 2011, 31718, NULL, '2012-01-21 15:00:00', 487, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~59439,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Ipswich Town', '2012-01-09 09:00:00', NULL, false, '1-5', 'FLC', 2011, 22185, NULL, '2012-01-31 19:45:00', 488, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~59496,00.html', '2012-01-07 09:00:00', '2012-01-10 09:00:00');
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Millwall', NULL, NULL, true, '2-1', 'FLC', 2011, 27774, NULL, '2012-02-04 12:30:00', 489, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~59529,00.html', NULL, '2012-01-17 09:00:00');
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Southampton', NULL, NULL, true, '1-1', 'FLC', 2011, 32875, NULL, '2012-02-14 19:45:00', 490, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~59192,00.html', NULL, '2012-01-17 09:00:00');
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Blackpool', '2012-01-30 09:00:00', NULL, false, '4-1', 'FLC', 2011, 13043, NULL, '2012-02-21 20:00:00', 491, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~59227,00.html', '2012-01-28 09:00:00', '2012-02-01 09:00:00');
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Crystal Palace', NULL, NULL, true, '0-0', 'FLC', 2011, 34900, NULL, '2012-02-25 12:45:00', 492, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~59283,00.html', NULL, '2012-01-24 09:00:00');
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Cardiff City', '2012-02-27 09:00:00', '2012-02-23 09:00:00', true, '2-0', 'FLC', 2011, 23872, '2012-02-22 10:00:00', '2012-03-04 12:45:00', 493, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~57761,00.html', '2012-02-25 09:00:00', '2012-02-28 09:00:00');
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Watford', NULL, NULL, true, '1-1', 'FLC', 2011, 31674, NULL, '2012-03-07 19:45:00', 494, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~57803,00.html', NULL, '2012-01-24 09:00:00');
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Doncaster', NULL, NULL, true, '1-1', 'FLC', 2011, 34650, NULL, '2012-03-10 15:00:00', 495, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~58652,00.html', NULL, '2012-01-24 09:00:00');
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Leeds United', '2012-02-27 09:00:00', '2012-02-23 09:00:00', true, '1-1', 'FLC', 2011, 33366, '2012-02-22 10:00:00', '2012-03-17 15:00:00', 496, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~58694,00.html', '2012-02-25 09:00:00', '2012-02-28 09:00:00');
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Middlesbrough', NULL, NULL, true, '1-1', 'FLC', 2011, 27250, NULL, '2012-03-20 19:45:00', 497, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~58734,00.html', NULL, '2012-01-24 09:00:00');
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Burnley', '2012-03-05 09:00:00', '2012-03-01 09:00:00', false, '2-2', 'FLC', 2011, 15246, '2012-02-29 10:00:00', '2012-03-24 15:00:00', 498, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~58768,00.html', '2012-03-03 09:00:00', '2012-03-06 09:00:00');
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Peterborough', '2012-01-23 09:00:00', NULL, false, '2-0', 'FLC', 2011, 13517, NULL, '2012-03-27 19:45:00', 499, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~59154,00.html', '2012-01-21 09:00:00', '2012-01-25 09:00:00');
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Reading', '2012-02-28 09:00:00', NULL, true, '2-4', 'FLC', 2011, 33350, NULL, '2012-03-31 15:00:00', 500, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~58822,00.html', '2012-03-05 09:00:00', '2012-03-07 09:00:00');
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Barnsley', '2012-03-12 09:00:00', '2012-03-08 09:00:00', false, '4-0', 'FLC', 2011, 11151, '2012-03-07 10:00:00', '2012-04-06 17:15:00', 501, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~58857,00.html', '2012-03-10 09:00:00', '2012-03-13 09:00:00');
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Birmingham', '2012-02-28 09:00:00', NULL, true, '3-3', 'FLC', 2011, 31045, NULL, '2012-04-09 17:20:00', 502, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~58912,00.html', '2012-03-05 09:00:00', '2012-03-07 09:00:00');
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Brighton', '2012-03-06 09:00:00', NULL, true, '6-0', 'FLC', 2011, 32339, NULL, '2012-04-14 15:00:00', 503, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~58958,00.html', '2012-03-12 09:00:00', '2012-03-14 09:00:00');
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Bristol City', '2012-03-26 09:00:00', '2012-03-22 09:00:00', false, '1-1', 'FLC', 2011, 16669, '2012-03-21 10:00:00', '2012-04-17 19:45:00', 504, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~58985,00.html', '2012-03-24 09:00:00', '2012-03-27 09:00:00');
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Leicester City', '2012-04-02 09:00:00', '2012-03-29 09:00:00', true, '2-1', 'FLC', 2011, 23172, '2012-03-28 10:00:00', '2012-04-23 19:45:00', 505, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~59011,00.html', '2012-03-31 09:00:00', '2012-04-03 09:00:00');
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Hull City', '2012-03-06 09:00:00', NULL, true, '2-1', 'FLC', 2011, 35000, NULL, '2012-04-28 12:30:00', 506, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~59060,00.html', '2012-03-12 09:00:00', '2012-03-14 09:00:00');
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Cardiff City', NULL, NULL, true, '2-0', 'FLCPO', 2011, 23029, NULL, '2012-05-03 19:45:00', 507, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~61594,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Cardiff City', NULL, NULL, true, '3-0', 'FLCPO', 2011, 34682, NULL, '2012-05-07 16:30:00', 508, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~61593,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Blackpool', NULL, NULL, true, '2-1', 'FLCPO', 2011, 78523, NULL, '2012-05-19 15:00:00', 509, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~61609,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('<NAME>', '2012-07-17 09:00:00', NULL, true, '1-0', 'PREM', 2012, 34172, NULL, '2012-08-18 15:00:00', 510, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~65052,00.html', '2012-07-23 09:00:00', '2012-07-24 09:00:00');
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Swansea City', NULL, NULL, false, '0-3', 'PREM', 2012, 20424, NULL, '2012-08-25 12:45:00', 511, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~64094,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Crewe', '2012-08-20 09:00:00', NULL, true, '2-0', 'LGCP', 2012, 18053, NULL, '2012-08-28 19:45:00', 512, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~68542,00.html', '2012-08-17 00:00:00', '2012-08-22 09:00:00');
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Fulham', '2012-07-17 09:00:00', NULL, true, '3-0', 'PREM', 2012, 33458, NULL, '2012-09-01 12:45:00', 513, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~64140,00.html', '2012-07-23 09:00:00', '2012-07-24 09:00:00');
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Norwich City', '2012-08-20 09:00:00', '2012-08-16 09:00:00', true, '0-0', 'PREM', 2012, 26806, '2012-08-15 10:00:00', '2012-09-15 12:45:00', 514, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~64207,00.html', '2012-08-18 09:00:00', '2012-08-21 09:00:00');
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Sunderland', '2012-08-07 09:00:00', NULL, true, '1-1', 'PREM', 2012, 33052, NULL, '2012-09-22 15:00:00', 515, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~64291,00.html', '2012-08-20 09:00:00', '2012-08-21 09:00:00');
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('<NAME>', '2012-09-08 09:00:00', NULL, true, '1-4', 'LGCP', 2012, 25934, NULL, '2012-09-25 19:45:00', 516, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~68583,00.html', '2012-09-04 09:00:00', '2012-09-11 09:00:00');
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('QPR', '2012-08-28 09:00:00', '2012-08-23 09:00:00', true, '2-1', 'PREM', 2012, 17363, '2012-08-22 10:00:00', '2012-10-01 20:00:00', 517, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~64335,00.html', '2012-08-25 09:00:00', '2012-08-29 09:00:00');
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Arsenal', '2012-08-07 09:00:00', NULL, true, '1-3', 'PREM', 2012, 34974, NULL, '2012-10-06 17:30:00', 518, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~64419,00.html', '2012-08-20 09:00:00', '2012-08-21 09:00:00');
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Southampton', '2012-09-04 09:00:00', NULL, true, '4-1', 'PREM', 2012, 34925, NULL, '2012-10-20 15:00:00', 519, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~64489,00.html', '2012-09-17 09:00:00', '2012-09-18 09:00:00');
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('<NAME>', '2012-10-01 09:00:00', NULL, false, '1-2', 'PREM', 2012, 19090, '2012-09-26 10:00:00', '2012-10-27 15:00:00', 520, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~64570,00.html', '2012-09-29 09:00:00', '2012-10-26 15:00:00');
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Manchester City', '2012-09-18 09:00:00', NULL, true, '0-0', 'PREM', 2012, 35005, NULL, '2012-11-03 17:30:00', 521, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~64783,00.html', '2012-10-01 09:00:00', '2012-10-02 09:00:00');
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Newcastle', '2012-10-22 09:00:00', NULL, true, '1-0', 'PREM', 2012, 51855, '2012-10-17 10:00:00', '2012-11-11 15:00:00', 522, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~65079,00.html', '2012-10-20 09:00:00', '2012-10-23 09:00:00');
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Stoke City', '2012-10-02 09:00:00', NULL, true, '1-1', 'PREM', 2012, 35005, NULL, '2012-11-19 20:00:00', 523, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~65128,00.html', '2012-10-02 09:00:00', '2012-10-16 09:00:00');
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Tottenham', '2012-10-15 09:00:00', NULL, true, '1-3', 'PREM', 2012, 36043, '2012-10-10 10:00:00', '2012-11-25 16:00:00', 524, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~65195,00.html', '2012-10-13 09:00:00', '2012-10-16 09:00:00');
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Man Utd', '2012-10-29 09:00:00', NULL, false, '0-1', 'PREM', 2012, 75572, '2012-10-24 10:00:00', '2012-11-28 20:00:00', 525, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~64830,00.html', '2012-10-27 09:00:00', '2012-10-30 09:00:00');
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Chelsea', '2012-10-16 09:00:00', NULL, true, '3-1', 'PREM', 2012, 35005, NULL, '2012-12-01 12:45:00', 526, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~64859,00.html', '2012-10-29 09:00:00', '2012-10-30 09:00:00');
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Liverpool', '2012-10-23 09:00:00', NULL, true, '2-3', 'PREM', 2012, 35005, NULL, '2012-12-09 16:00:00', 527, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~64880,00.html', '2012-11-05 09:00:00', '2012-11-06 09:00:00');
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('WBA', NULL, NULL, false, '0-0', 'PREM', 2012, 24186, '2012-11-21 10:00:00', '2012-12-16 16:00:00', 528, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~65040,00.html', '2012-11-24 09:00:00', '2012-11-27 09:00:00');
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Everton', '2012-11-06 09:00:00', NULL, true, '1-2', 'PREM', 2012, 35005, NULL, '2012-12-22 15:00:00', 529, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~64930,00.html', '2012-11-17 09:00:00', '2012-11-19 09:00:00');
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Reading', NULL, NULL, true, '0-1', 'PREM', 2012, 24183, '2012-12-06 10:00:00', '2012-12-29 15:00:00', 530, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~65263,00.html', '2012-12-09 10:00:00', '2012-12-11 09:00:00');
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Norwich City', '2012-11-20 09:00:00', NULL, true, '2-1', 'PREM', 2012, 35005, NULL, '2013-01-01 15:00:00', 531, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~65310,00.html', '2012-11-26 09:00:00', '2012-11-27 09:00:00');
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Man Utd', NULL, NULL, true, '2-2', 'FACP', 2012, 32922, NULL, '2013-01-05 17:15:00', 532, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~68966,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Sunderland', '2012-12-24 09:00:00', NULL, false, '0-3', 'PREM', 2012, 39918, '2012-12-19 10:00:00', '2013-01-12 15:00:00', 533, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~65380,00.html', '2012-12-22 09:00:00', '2013-01-10 13:00:00');
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Man Utd', '2013-01-10 09:00:00', NULL, false, '0-1', 'FACP', 2012, 71081, '2013-01-08 10:00:00', '2013-01-16 20:05:00', 534, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~69029,00.html', '2013-01-09 09:00:00', '2013-01-11 09:00:00');
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('QPR', '2012-12-11 09:00:00', NULL, true, '1-1', 'PREM', 2012, 34962, NULL, '2013-01-19 15:00:00', 535, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~65424,00.html', '2012-12-17 09:00:00', '2012-12-18 09:00:00');
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Arsenal', '2012-12-03 09:00:00', NULL, false, '1-5', 'PREM', 2012, 60081, '2012-11-28 10:00:00', '2013-01-23 19:45:00', 536, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~64968,00.html', '2012-12-01 09:00:00', '2012-12-04 09:00:00');
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Fulham', NULL, NULL, false, '1-3', 'PREM', 2012, 24791, NULL, '2013-01-30 20:00:00', 537, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~65506,00.html', NULL, NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Swansea City', '2012-12-18 09:00:00', NULL, true, '1-0', 'PREM', 2012, 34962, NULL, '2013-02-02 15:00:00', 538, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~64591,00.html', '2012-12-31 09:00:00', NULL);
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('<NAME>', '2013-01-21 09:00:00', NULL, false, '1-2', 'PREM', 2012, 30503, '2013-01-16 10:00:00', '2013-02-10 13:30:00', 539, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~64628,00.html', '2013-01-19 09:00:00', '2013-02-08 15:00:00');
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Tottenham', '2013-01-08 09:00:00', NULL, true, '2-3', 'PREM', 2012, 35005, NULL, '2013-02-25 20:00:00', 540, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~64731,00.html', '2013-01-21 09:00:00', '2013-01-22 09:00:00');
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Stoke City', '2013-02-04 09:00:00', NULL, false, '1-0', 'PREM', 2012, 22690, '2013-01-30 10:00:00', '2013-03-02 15:00:00', 541, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~66030,00.html', '2013-02-02 09:00:00', '2013-02-05 09:00:00');
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Chelsea', '2013-02-11 09:00:00', NULL, true, '0-2', 'PREM', 2012, 41639, '2013-02-06 10:00:00', '2013-03-17 16:00:00', 542, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~65596,00.html', '2013-02-09 09:00:00', '2013-02-12 09:00:00');
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('WBA', '2013-02-12 09:00:00', NULL, true, '3-1', 'PREM', 2012, 34966, NULL, '2013-03-30 15:00:00', 543, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~65672,00.html', '2013-02-25 09:00:00', '2013-02-26 09:00:00');
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Liverpool', '2013-03-04 09:00:00', NULL, true, '0-0', 'PREM', 2012, 45007, '2013-02-27 10:00:00', '2013-04-07 13:30:00', 544, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~65747,00.html', '2013-03-02 09:00:00', '2013-03-10 10:00:00');
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Southampton', '2013-03-11 09:00:00', NULL, true, '1-1', 'PREM', 2012, 31984, '2013-03-06 10:00:00', '2013-04-13 15:00:00', 545, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~65951,00.html', '2013-03-09 09:00:00', '2013-03-12 09:00:00');
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('<NAME>', '2013-01-22 09:00:00', NULL, true, '2-2', 'PREM', 2012, 34692, NULL, '2013-04-17 19:45:00', 546, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~65534,00.html', '2013-02-04 09:00:00', '2013-02-05 09:00:00');
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('<NAME>', '2013-03-05 09:00:00', NULL, true, '2-0', 'PREM', 2012, 34544, NULL, '2013-04-20 15:00:00', 547, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~65778,00.html', '2013-03-18 09:00:00', '2013-03-19 09:00:00');
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Manchester City', '2013-04-02 09:00:00', NULL, false, '1-2', 'PREM', 2012, 47189, '2013-03-27 10:00:00', '2013-04-27 12:45:00', 548, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~65819,00.html', '2013-03-30 09:00:00', '2013-04-03 09:00:00');
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Newcastle', '2013-03-19 09:00:00', NULL, true, '0-0', 'PREM', 2012, 34962, NULL, '2013-05-04 15:00:00', 549, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~65870,00.html', '2013-04-02 09:00:00', '2013-04-03 09:00:00');
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Everton', '2013-04-08 09:00:00', NULL, false, '0-2', 'PREM', 2012, 39475, '2013-04-03 10:00:00', '2013-05-12 15:00:00', 550, 'AWAY', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~65885,00.html', '2013-04-06 09:00:00', '2013-05-01 14:00:00');
INSERT INTO game (opponents, academymembers, bondholders, attended, result, competition, season, attendence, prioritypoint, at, id, location, tvchannel, report, seasontickets, generalsale) VALUES ('Reading', '2013-04-02 09:00:00', NULL, true, '4-2', 'PREM', 2012, 34973, NULL, '2013-05-19 16:00:00', 551, 'HOME', NULL, 'http://www.whufc.com/page/MatchReport/0,,12562~65900,00.html', '2013-04-15 09:00:00', '2013-04-16 09:00:00');
DROP SEQUENCE "s_game_id";
CREATE SEQUENCE s_game_id
INCREMENT 1
MINVALUE 1
MAXVALUE 9223372036854775807
START 551
CACHE 1;
# --- !Downs
TRUNCATE TABLE("game")
DROP SEQUENCE "s_game_id";
create sequence "s_game_id";
|
IF NOT EXISTS (SELECT * FROM SYS.OBJECTS WHERE OBJECT_ID = OBJECT_ID(N'[DBO].[SOCIAL_COMMENTS]') AND TYPE IN (N'U'))
CREATE TABLE SOCIAL_COMMENTS (
id BIGINT IDENTITY(1,1) NOT NULL,
body TEXT,
payload_context_id VARCHAR(250),
user_id VARCHAR(100),
tenant_domain VARCHAR(100),
likes SMALLINT,
unlikes SMALLINT,
timestamp VARCHAR(100),
PRIMARY KEY (id)
);
IF NOT EXISTS (SELECT * FROM SYS.OBJECTS WHERE OBJECT_ID = OBJECT_ID(N'[DBO].[SOCIAL_RATING]') AND TYPE IN (N'U'))
CREATE TABLE SOCIAL_RATING (
id BIGINT IDENTITY(1,1) NOT NULL,
comment_id BIGINT NOT NULL,
payload_context_id VARCHAR(250),
user_id VARCHAR(100),
tenant_domain VARCHAR(100),
rating SMALLINT,
timestamp VARCHAR(100),
PRIMARY KEY (id),
FOREIGN KEY (comment_id) REFERENCES SOCIAL_COMMENTS(id) ON DELETE CASCADE
);
IF NOT EXISTS (SELECT * FROM SYS.OBJECTS WHERE OBJECT_ID = OBJECT_ID(N'[DBO].[SOCIAL_RATING_CACHE]') AND TYPE IN (N'U'))
CREATE TABLE SOCIAL_RATING_CACHE (
payload_context_id VARCHAR(250) NOT NULL,
rating_total INT,
rating_count INT,
rating_average FLOAT,
tenant_domain VARCHAR(100),
PRIMARY KEY (payload_context_id)
);
IF NOT EXISTS (SELECT * FROM SYS.OBJECTS WHERE OBJECT_ID = OBJECT_ID(N'[DBO].[SOCIAL_LIKES]') AND TYPE IN (N'U'))
CREATE TABLE SOCIAL_LIKES (
id BIGINT IDENTITY(1,1) NOT NULL,
payload_context_id BIGINT NOT NULL,
user_id VARCHAR(100),
tenant_domain VARCHAR(100),
like_value SMALLINT,
timestamp VARCHAR(100),
PRIMARY KEY (id),
FOREIGN KEY (payload_context_id) REFERENCES SOCIAL_COMMENTS(id) ON DELETE CASCADE
);
|
<reponame>roachsc4/avito_flat_parser<filename>avito_parse/migrations/0001_init.sql
CREATE SCHEMA advertisement;
-- id: int
-- url: str
-- price: int
-- title: str
-- address: str
-- approximate_date_string: str
--
-- date: datetime = None
-- description: str = None
CREATE TABLE advertisement.ad(
id bigint UNIQUE NOT NULL,
url text,
title text,
address text,
price bigint,
approximate_date_string text,
date timestamp with time zone,
description text
);
CREATE SCHEMA auth;
CREATE TABLE auth.user (
id bigint UNIQUE,
username text UNIQUE,
first_name text,
last_name text,
chat_id bigint
);
|
START TRANSACTION ;
alter table branch_eni_attachments
add association_id text;
COMMIT;
|
create table `gdpr_queries` (
`id` int(11) NOT null AUTO_INCREMENT,
`user_id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOt null,
`workspace_id` INT(11) NOT NULL,
`reason` TEXT CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOt null,
`query` ENUM('FORGOTTEN', 'PORTABILITY', 'RECTIFICATION', 'RESTRICTION') NOT null,
`status` ENUM('PROCEED', 'NOT PROCEED') DEFAULT 'NOT PROCEED' NOT null,
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY(`id`)
)
ALTER TABLE `user_rights_requests` ADD `workspace_id` INT(11) NOT NULL AFTER `user_id`;
|
alter table `log` modify COLUMN `last_update_date` datetime DEFAULT NULL;
|
<filename>schema/sdss5db/catalogdb/mwm_small/lmxb/lmxb.sql
/*
Ritter & Kolb Catalog of Low Mass X-ray Binaries https://bit.ly/3agEcZT
*/
CREATE TABLE catalogdb.lmxb (
name TEXT,
rastr TEXT,
decstr TEXT,
radeg DOUBLE PRECISION,
decdeg DOUBLE PRECISION,
ngaia REAL,
gaia_name TEXT,
gaia_ra DOUBLE PRECISION,
gaia_dec DOUBLE PRECISION,
gaia_gmag REAL,
gaia_dist REAL,
gaia_source_id BIGINT PRIMARY KEY
);
CREATE INDEX CONCURRENTLY ON catalogdb.lmxb (q3c_ang2ipix(radeg, decdeg));
CLUSTER lmxb_q3c_ang2ipix_idx ON catalogdb.lmxb;
ANALYZE catalogdb.lmxb;
ALTER TABLE catalogdb.lmxb
ADD CONSTRAINT gaia_source_id_fk
FOREIGN KEY (gaia_source_id)
REFERENCES catalogdb.gaia_dr2_source (source_id)
ON UPDATE CASCADE ON DELETE CASCADE;
|
-- +goose NO TRANSACTION
-- +goose Up
-- SQL in this section is executed when the migration is applied.
ALTER TABLE computed_pipelines ADD organizations JSONB, ADD COLUMN groups JSONB;
CREATE INDEX computed_pipelines_organizations ON computed_pipelines USING GIN (organizations);
CREATE INDEX computed_pipelines_groups ON computed_pipelines USING GIN (groups);
-- +goose Down
-- SQL in this section is executed when the migration is rolled back.
DROP INDEX computed_pipelines_organizations;
DROP INDEX computed_pipelines_groups;
ALTER TABLE computed_pipelines DROP organizations, DROP groups;
|
SELECT DISTINCT name, order_date
FROM customers
INNER JOIN orders ON customers.cid = orders.cid
INNER JOIN items ON orders.oid = items.oid
ORDER BY name
|
INSERT INTO `user_type_links` (`id`, `user_type_id`, `link_id`) VALUES
(null, 1, 1),
(null, 1, 2),
(null, 1, 3),
(null, 1, 4),
(null, 1, 5),
(null, 1, 6),
(null, 1, 7),
(null, 1, 8),
(null, 1, 9),
(null, 1, 10),
(null, 1, 11),
(null, 1, 12),
(null, 1, 13),
(null, 1, 14),
(null, 1, 15),
(null, 1, 16),
(null, 1, 17),
(null, 1, 18),
(null, 1, 19),
(null, 1, 20),
(null, 1, 21),
(null, 1, 22),
(null, 1, 23),
(null, 1, 24),
(null, 1, 25),
(null, 1, 26),
(null, 1, 34),
(null, 1, 37),
(null, 1, 43),
(null, 1, 44),
(null, 1, 45),
(null, 1, 46),
(null, 1, 47),
(null, 1, 48),
(null, 1, 50),
(null, 1, 51),
(null, 1, 52),
(null, 1, 53),
(null, 1, 68);
|
INSERT INTO department (name) VALUES ('Engineering');
INSERT INTO department (name) VALUES ('Sales');
INSERT INTO role (title, salary, department_id) VALUES ('Senior Engineer', 100000, 1);
INSERT INTO role (title, salary, department_id) VALUES ('Junior Engineer', 60000, 1);
INSERT INTO role (title, salary, department_id) VALUES ('Senior Sales Rep', 80000, 2);
INSERT INTO role (title, salary, department_id) VALUES ('Junior Sales Rep', 50000, 2);
INSERT INTO employee (first_name, last_name, role_id) VALUES ('Willem', 'Riley', 1);
INSERT INTO employee (first_name, last_name, role_id) VALUES ('Fannie', 'Cohen', 1);
INSERT INTO employee (first_name, last_name, role_id, manager_id) VALUES ('Domas', 'Kent', 2, 1);
INSERT INTO employee (first_name, last_name, role_id, manager_id) VALUES ('Ann', 'McDougall', 2, 2);
INSERT INTO employee (first_name, last_name, role_id) VALUES ('Alexa', 'Cantrell', 3);
INSERT INTO employee (first_name, last_name, role_id) VALUES ('Adele', 'Thornton', 3);
INSERT INTO employee (first_name, last_name, role_id, manager_id) VALUES ('Helen', 'McCoy', 4, 5);
INSERT INTO employee (first_name, last_name, role_id, manager_id) VALUES ('Agatha', 'Weir', 4, 6);
|
CREATE TABLE features (
date bigint,
datetime bigint,
clientidentifier character varying(255),
conferenceidentifier character varying(4096),
peeridentifier character varying(255),
clientid character varying(255),
connectionid character varying(255),
streamid character varying(255),
tags character varying(1023),
origin character varying(255),
pageurl character varying(4096),
browsername character varying(255),
browserversion character varying(255),
browseros character varying(255),
browseruseragent character varying(1023),
browsernameversion character varying(255),
browsernameos character varying(255),
browsernameversionos character varying(255),
browsermajorversion integer,
browsertype character varying(255),
locationCountry character varying(255),
locationCity character varying(255),
locationContinent character varying(16),
locationLon real,
locationLat real,
locationLonLat character varying(255),
calledgetusermedia boolean,
calledlegacygetusermedia boolean,
calledmediadevicesgetusermedia boolean,
calledgetusermediarequestingaudio boolean,
calledgetusermediarequestingscreen character varying(255),
calledgetusermediarequestingvideo boolean,
calledgetusermediarequestingaec3 boolean,
getusermediaerror character varying(4096),
getusermediasuccess boolean,
timebetweengetusermediaandgetusermediasuccess integer,
timebetweengetusermediaandgetusermediafailure integer,
firstaudiotracklabel character varying(255),
firstvideotracklabel character varying(255),
numberofpeerconnections integer,
userfeedbackaudio integer,
userfeedbackvideo integer,
starttime bigint,
stoptime bigint,
lifetime integer,
sessionduration integer,
remotetype character varying(255),
isinitiator boolean,
signalingstableatleastonce boolean,
configured boolean,
configuredbundlepolicy boolean,
configuredcertificate boolean,
configuredicetransportpolicy boolean,
configuredrtcpmuxpolicy boolean,
configuredwithiceservers boolean,
configuredwithstun boolean,
configuredwithturn boolean,
configuredwithturntcp boolean,
configuredwithturntls boolean,
configuredwithturnudp boolean,
configuredsdes boolean,
sdpsemantics character varying(32),
calledaddtrack boolean,
calledaddstream boolean,
closereason character varying(1024),
localcreatedelay integer,
maxstreams integer,
maxremotestreams integer,
numberOfRemoteStreams integer,
mediatypes character varying(255),
usingbundle boolean,
usingicelite boolean,
usingmultistream boolean,
usingrtcpmux boolean,
usingsimulcast boolean,
setlocaldescriptionfailure character varying(4096),
setremotedescriptionfailure character varying(4096),
addicecandidatefailure character varying(4096),
dtlsciphersuite character varying(255),
srtpciphersuite character varying(255),
icegatheringcomplete boolean,
iceconnectedorcompleted boolean,
icefailure boolean,
icefailuresubsequent boolean,
icerestart boolean,
icerestartsuccess boolean,
icerestartfollowedbysetremotedescription boolean,
icerestartfollowedbyrelaycandidate boolean,
iceconnectionstatecheckingbeforesrd boolean,
dtlsfailure boolean,
timebetweensetlocaldescriptionandonicecandidate integer,
timebetweensetremotedescriptionandaddicecandidate integer,
timeforfirstsetremotedescription integer,
ontrackafterfirstsetremotedescription boolean,
timeforsecondsetremotedescription integer,
numberofcandidatepairchanges integer,
numberoflocalicecandidates integer,
numberofremoteicecandidates integer,
numberoflocalsimulcaststreams integer,
connectiontime integer,
iceconnectiontime integer,
numberofinterfaces integer,
firstcandidatepairtype character varying(255),
firstcandidatepairlocaltype character varying(255),
firstcandidatepairremotetype character varying(255),
firstcandidatepairlocalipaddress character varying(255),
firstcandidatepairremoteipaddress character varying(255),
firstcandidatepairlocaltypepreference integer,
firstcandidatepairremotetypepreference integer,
firstcandidatepairlocalnetworktype character varying(255),
networktype character varying(255),
gatheredhost boolean,
gatheredstun boolean,
gatheredturntcp boolean,
gatheredturntls boolean,
gatheredturnudp boolean,
gatheredrfc1918addressprefix16 boolean,
gatheredrfc1918addressprefix12 boolean,
gatheredrfc1918addressprefix10 boolean,
gatheringtime integer,
gatheringtimeturntcp integer,
gatheringtimeturntls integer,
gatheringtimeturnudp integer,
hadremoteturncandidate boolean,
relayaddress character varying(255),
publicipaddress character varying(255),
bwegoogactualencbitratemean real,
bwegoogactualencbitratemax real,
bwegoogactualencbitratemin real,
bwegoogactualencbitratevariance real,
bwegoogretransmitbitratemean real,
bwegoogretransmitbitratemax real,
bwegoogretransmitbitratemin real,
bwegoogretransmitbitratevariance real,
bwegoogtargetencbitratemean real,
bwegoogtargetencbitratemax real,
bwegoogtargetencbitratemin real,
bwegoogtargetencbitratevariance real,
bwegoogbucketdelaymean real,
bwegoogbucketdelaymax real,
bwegoogbucketdelaymin real,
bwegoogbucketdelayvariance real,
bwegoogtransmitbitratemean real,
bwegoogtransmitbitratemax real,
bwegoogtransmitbitratemin real,
bwegoogtransmitbitratevariance real,
bweavailableoutgoingbitratemean real,
bweavailableoutgoingbitratemax real,
bweavailableoutgoingbitratemin real,
bweavailableoutgoingbitratevariance real,
bweavailableincomingbitratemean real,
bweavailableincomingbitratemax real,
bweavailableincomingbitratemin real,
bweavailableincomingbitratevariance real,
statsmeanroundtriptime integer,
stunRTTInitial30sMean integer,
stunRTTInitial30sMax integer,
statsmeanreceivingbitrate integer,
statsmeansendingbitrate integer,
batterylevelbegintime bigint,
batterylevelendtime bigint,
batterylevelbegin real,
batterylevelend real,
bytestotalsent real,
bytestotalreceived real,
direction character varying(4),
numberofstats integer,
duration integer,
audiolevelmean real,
audiolevelmax real,
audiolevelmin real,
audiolevelvariance real,
audiogoogjitterreceivedmean real,
audiogoogjitterreceivedmax real,
audiogoogjitterreceivedmin real,
audiogoogjitterreceivedvariance real,
audiogoogjitterbuffermsmean real,
audiogoogjitterbuffermsmax real,
audiogoogjitterbuffermsmin real,
audiogoogjitterbuffermsvariance real,
audiogoogpreferredjitterbuffermsmean real,
audiogoogpreferredjitterbuffermsmax real,
audiogoogpreferredjitterbuffermsmin real,
audiogoogpreferredjitterbuffermsvariance real,
audiogoogpreferredjitterbuffermsskewness real,
audiogoogpreferredjitterbuffermskurtosis real,
audiogoogcurrentdelaymsmean real,
audiogoogcurrentdelaymsmax real,
audiogoogcurrentdelaymsmin real,
audiogoogcurrentdelaymsvariance real,
audiopacketssentmean real,
audiopacketssentmax real,
audiopacketssentmin real,
audiopacketssentvariance real,
audiobytessentmean real,
audiobytessentmax real,
audiobytessentmin real,
audiobytessentvariance real,
audiopacketsreceivedmean real,
audiopacketsreceivedmax real,
audiopacketsreceivedmin real,
audiopacketsreceivedvariance real,
audiobytesreceivedmean real,
audiobytesreceivedmax real,
audiobytesreceivedmin real,
audiobytesreceivedvariance real,
audiopacketslostmean real,
audiopacketslostmax real,
audiopacketslostmin real,
audiopacketslostvariance real,
videogoogframewidthsentmax real,
videogoogframewidthsentmin real,
videogoogframewidthsentmean real,
videogoogframeheightsentmax real,
videogoogframeheightsentmin real,
videogoogframeheightsentmean real,
videogoogframewidthinputmax real,
videogoogframewidthinputmin real,
videogoogframewidthinputmean real,
videogoogframeheightinputmax real,
videogoogframeheightinputmin real,
videogoogframeheightinputmean real,
videogoogframewidthreceivedmax real,
videogoogframewidthreceivedmin real,
videogoogframewidthreceivedmean real,
videogoogframeheightreceivedmax real,
videogoogframeheightreceivedmin real,
videogoogframeheightreceivedmean real,
videogooginterframedelaymaxmax real,
videogooginterframedelaymaxmin real,
videogooginterframedelaymaxmean real,
videopacketssentmean real,
videopacketssentmax real,
videopacketssentmin real,
videopacketssentvariance real,
videobytessentmean real,
videobytessentmax real,
videobytessentmin real,
videobytessentvariance real,
videopacketsreceivedmean real,
videopacketsreceivedmax real,
videopacketsreceivedmin real,
videopacketsreceivedvariance real,
videobytesreceivedmean real,
videobytesreceivedmax real,
videobytesreceivedmin real,
videobytesreceivedvariance real,
videopacketslostmean real,
videopacketslostmax real,
videopacketslostmin real,
videopacketslostvariance real,
videogoogcpulimitedresolutionmean real,
videogoogcpulimitedresolutionmax real,
videogoogcpulimitedresolutionmin real,
videogoogcpulimitedresolutionmode real,
videogoogbandwidthlimitedresolutionmean real,
videogoogbandwidthlimitedresolutionmax real,
videogoogbandwidthlimitedresolutionmin real,
videogoogbandwidthlimitedresolutionmode real,
qpsum real,
framecount real,
audiocodec character varying(64),
videocodec character varying(64),
websocketconnectiontime integer,
sendingduration integer,
websocketerror character varying(255),
active integer,
);
|
<gh_stars>0
CREATE TABLE tb_account (
id varchar(32) NOT NULL COMMENT 'id',
user_id varchar(32) DEFAULT NULL COMMENT '用户id',
total decimal(10,0) DEFAULT NULL COMMENT '总额度',
used decimal(10,0) DEFAULT NULL COMMENT '已用余额',
residue decimal(10,0) DEFAULT '0' COMMENT '剩余可用额度',
PRIMARY KEY (id)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
INSERT INTO tb_account (id, user_id, total, used, residue) VALUES ('ACCT001', 'USR001', '1000', '0', '1000');
|
-- Table: public.corp_energy_consumption_tall
-- DROP TABLE public.corp_energy_consumption_tall;
CREATE TABLE IF NOT EXISTS public.corp_energy_consumption_tall
(
id integer NOT NULL DEFAULT nextval('corp_energy_consumption_tall_id_seq'::regclass),
corp_id integer,
year smallint,
category character varying(100) COLLATE pg_catalog."default",
renewable boolean,
consumption numeric,
CONSTRAINT corp_energy_consumption_tall_pkey PRIMARY KEY (id)
)
TABLESPACE pg_default;
ALTER TABLE public.corp_energy_consumption_tall
OWNER to fmccollum;
|
<filename>shuju/invitation.sql
INSERT INTO `invitation` VALUES (1, '今天是个好日子', 1, 1, '0000-0-0 00:00:00', '0000-0-0 00:00:00', 1, NULL);
INSERT INTO `invitation` VALUES (2, '啦啦啦啦', 2, 2, '2018-8-22 01:11:20', '0000-0-0 00:00:00', 2, '2018-08-22 01:11:20');
INSERT INTO `invitation` VALUES (3, '请问请问我去而且我而且我', 2, 3, '2018-8-22 03:25:07', '0000-0-0 00:00:00', 3, '2018-08-22 03:25:07');
|
<reponame>conductiveresearch/abstractions
CREATE MATERIALIZED VIEW tokemak.view_tokemak_uniswap_pool_stats_daily
(
source
,"date"
,pool_address
,pool_symbol
,token_address
,token_symbol
,total_lp_supply
,reserve
--,cumulative_fees
) AS (
WITH pairs AS(
SELECT t.token_address, t.symbol as token_symbol,t.token_decimals, t.index,t.pool_address,tl.symbol as pool_symbol, tl.decimals as pool_decimals FROM(
SELECT token0 as token_address, tl.symbol,tl.decimals as token_decimals, pair as pool_address, 1 as index FROM uniswap_V2."Factory_evt_PairCreated"
INNER JOIN tokemak."view_tokemak_lookup_tokens" tl ON tl.address = token0
UNION
SELECT token1 as token_address, tl.symbol,tl.decimals as token_decimals, pair as pool_address, 2 as index FROM uniswap_V2."Factory_evt_PairCreated"
INNER JOIN tokemak."view_tokemak_lookup_tokens" tl ON tl.address = token1
) as t INNER JOIN tokemak."view_tokemak_lookup_tokens" tl on tl.address = pool_address
--ORDER BY pool_symbol, token_symbol
),
pools as (
SELECT DISTINCT pool_address, pool_decimals FROM pairs
)
, calendar AS (
SELECT c.*, p.token_address, p.token_symbol,p.index, p.token_decimals
FROM (SELECT i::date as "date"
,tl.address as pool_address
,tl.symbol as pool_symbol
,tl.decimals as pool_decimals
FROM uniswap_V2."Factory_evt_PairCreated" pc
INNER JOIN tokemak."view_tokemak_lookup_tokens" tl on pc.pair = tl.address
CROSS JOIN generate_series('2021-08-01'::date, current_date, '1 day') t(i)
WHERE tl.is_pool = true --order by "date" desc
) c
INNER JOIN pairs p ON p.pool_address = c.pool_address
--ORDER BY "date" desc, c.pool_symbol asc
)
,supply AS
(SELECT
"date"
,d.pool_address
,SUM(transfer/10^d.pool_decimals) OVER (PARTITION BY d.pool_address ORDER BY "date") AS supply
FROM (SELECT
date_trunc('day', evt_block_time) AS "date"
,t.pool_address
,t.pool_decimals
,sum(value) AS transfer
FROM (SELECT
evt_block_time
,p.pool_address
,p.pool_decimals
,CASE WHEN "from" = '\x0000000000000000000000000000000000000000' THEN value ELSE -value END as value
FROM uniswap_V2."Pair_evt_Transfer" t
INNER JOIN pools p ON p.pool_address = t.contract_address
WHERE ("from" = '\x0000000000000000000000000000000000000000' OR "to" = '\x0000000000000000000000000000000000000000')
) AS t GROUP BY 1, 2, 3 --order by "date" desc
) AS d --order by "date" desc
)
,reserves AS
(SELECT c."date"
,c.pool_address
,c.pool_symbol
,c.pool_decimals
,c.token_address
,c.token_decimals
,c.token_symbol
,c.index
,latest_reserves[c.index+2]/10^c.token_decimals AS reserve
FROM calendar c
LEFT JOIN
(SELECT date_trunc('day', t.evt_block_time)::date as "date"
,tl.address as pool_address
,MAX(ARRAY[evt_block_number, evt_index, reserve0, reserve1]) AS latest_reserves
FROM uniswap_V2."Pair_evt_Sync" t
INNER JOIN tokemak."view_tokemak_lookup_tokens" tl ON tl.address = t.contract_address
--WHERE "evt_block_time">'8/1/2021'
GROUP BY 1, 2 ORDER BY "date" desc
) dr ON c.pool_address = dr.pool_address and dr."date" = c."date")
--SELECT * from reserves
/*,fees AS
(SELECT
c."date"
,c.pool_address
,c.token_address
,c.token_decimals
,c.index
,CASE WHEN c.index = 1 THEN (0.003*sum("amount0In"/10^c.token_decimals)) ELSE (0.003*sum("amount1In"/10^c.token_decimals)) END AS token_fees
FROM calendar c LEFT JOIN
uniswap_V2."Pair_evt_Swap" t ON c.pool_address = t.contract_address and c."date" = date_trunc('day', t.evt_block_time)::date
GROUP BY 1,2,3,4,5) */
,temp_table AS
(SELECT DISTINCT
c."date"
,c.pool_address
,c.pool_symbol
,c.token_address
,c.token_symbol
,r.reserve
,s.supply
--,f.token_fees
,count(s.supply) OVER (PARTITION BY c.pool_address ORDER BY c."date") AS grpSupply
,count(r.reserve) OVER (PARTITION BY c.pool_address,c.token_address ORDER BY c."date") AS grpRes
FROM calendar c
LEFT JOIN supply s ON s.pool_address = c.pool_address AND c."date" = s."date"
INNER JOIN reserves r ON c."date" = r."date" AND r.token_address = c.token_address AND r.pool_address = c.pool_address
--INNER JOIN fees f ON c."date"=f."date" AND f.token_address = c.token_address AND f.pool_address = c.pool_address
--ORDER BY c."date" desc, pool_symbol asc, token_symbol asc
)
SELECT
4
,"date"
,pool_address
,pool_symbol
,token_address
,token_symbol
,first_value(supply) OVER (PARTITION BY pool_address, grpSupply ORDER BY "date") AS supply
,first_value(reserve) OVER (PARTITION BY pool_address, token_address, grpRes ORDER BY "date") AS reserve
--,sum(token_fees) OVER (PARTITION BY pool_address,token_address ORDER BY "date") AS cumulative_fees
FROM temp_table order by "date" desc, pool_symbol asc, token_symbol asc
);
CREATE UNIQUE INDEX ON tokemak.view_tokemak_uniswap_pool_stats_daily (
"date",
pool_address,
token_address
);
INSERT INTO cron.job(schedule, command)
VALUES ('12 * * * *', $$REFRESH MATERIALIZED VIEW CONCURRENTLY tokemak.view_tokemak_uniswap_pool_stats_daily$$)
ON CONFLICT (command) DO UPDATE SET schedule=EXCLUDED.schedule;
|
<reponame>panasenco/sqltemplate
<%#
.Synopsis
Wrapper to create an inline view from the query
-%>
(
<%= $Body -replace "`n","`n " %>
) <%= $Basename %>
|
CREATE DATABASE CigarShop
USE CigarShop
--1.
CREATE TABLE Sizes (
Id INT PRIMARY KEY IDENTITY
,Length INT NOT NULL
,RingRange DECIMAL(18, 4) NOT NULL
)
CREATE TABLE Tastes (
Id INT PRIMARY KEY IDENTITY
,TasteType VARCHAR(20) NOT NULL
,TasteStrength VARCHAR(15) NOT NULL
,ImageURL NVARCHAR(100) NOT NULL UNIQUE
)
CREATE TABLE Brands (
Id INT PRIMARY KEY IDENTITY
,BrandName VARCHAR(30) NOT NULL
,BrandDescription VARCHAR(MAX)
)
CREATE TABLE Cigars (
Id INT PRIMARY KEY IDENTITY
,CigarName VARCHAR(80) NOT NULL
,BrandId INT NOT NULL
,TastId INT NOT NULL
,SizeId INT NOT NULL
,PriceForSingleCigar DECIMAL(18, 2) NOT NULL
,ImageURL VARCHAR(100) NOT NULL
CONSTRAINT FK_Cigars_Brands FOREIGN KEY (BrandId) REFERENCES Brands(Id)
,CONSTRAINT FK_Cigars_Tastes FOREIGN KEY (TastId) REFERENCES Tastes(Id)
,CONSTRAINT FK_Cigars_Sizes FOREIGN KEY (SizeId) REFERENCES Sizes(Id)
)
CREATE TABLE Addresses (
Id INT PRIMARY KEY IDENTITY
,Town VARCHAR(30) NOT NULL
,Country VARCHAR(30) NOT NULL
,Streat VARCHAR(100) NOT NULL
,ZIP VARCHAR(20) NOT NULL
)
CREATE TABLE Clients (
Id INT PRIMARY KEY IDENTITY
,FirstName VARCHAR(30) NOT NULL
,LastName VARCHAR(30) NOT NULL
,Email VARCHAR(50) NOT NULL
,AddressId INT NOT NULL
CONSTRAINT FK_Clients_Addresses FOREIGN KEY (AddressId) REFERENCES Addresses(Id),
)
CREATE TABLE ClientsCigars (
ClientId INT NOT NULL
,CigarId INT NOT NULL
PRIMARY KEY(ClientId, CigarId)
,CONSTRAINT FK_ClientsCigars_Clients FOREIGN KEY (ClientId) REFERENCES Clients(Id)
,CONSTRAINT FK_ClientsCigars_Cigars FOREIGN KEY (CigarId) REFERENCES Cigars(Id)
)
-- 2
INSERT INTO Cigars(CigarName, BrandId, TastId, SizeId, PriceForSingleCigar, ImageURL) VALUES
('<NAME>', 9, 1, 5, 15.50,'cohiba-robusto-stick_18.jpg')
,('<NAME>', 9, 1, 10, 410.00,'cohiba-siglo-i-stick_12.jpg')
,('<NAME>', 14, 5, 11, 7.50,'hoyo-du-maire-stick_17.jpg')
,('<NAME>', 14, 4, 15, 32.00, 'hoyo-de-san-juan-stick_20.jpg')
,('TR<NAME>', 2, 3, 8, 85.21, 'trinidad-coloniales-stick_30.jpg')
INSERT INTO Addresses(Town, Country, Streat, ZIP) VALUES
('Sofia', 'Bulgaria', '18 Bul. Vasil levski', '1000')
,('Athens', 'Greece', '4342 McDonald Avenue', '10435')
,('Zagreb', 'Croatia', '4333 Lauren Drive', '10000')
--3.
UPDATE Cigars
SET PriceForSingleCigar *= 1.2
WHERE TastId = 1
UPDATE Brands
SET BrandDescription = 'New description'
WHERE BrandDescription IS NULL
--4.
DELETE FROM Clients
WHERE AddressId in (SELECT Id FROM Addresses WHERE Country LIKE ('C%'))
DELETE Addresses
WHERE Country LIKE 'C%'
--5.
SELECT
c.CigarName
,c.PriceForSingleCigar
,c.ImageURL
FROM
Cigars AS c
ORDER BY
c.PriceForSingleCigar
,c.CigarName DESC
--6. Cigars By Taste
SELECT
c.Id
,c.CigarName
,c.PriceForSingleCigar
,t.TasteType
,t.TasteStrength
FROM
Cigars AS c
JOIN
Tastes AS t
ON c.TastId = t.Id
WHERE t.TasteType = 'Earthy' OR t.TasteType = 'Woody'
ORDER BY
c.PriceForSingleCigar DESC
--7. Clients without cigars
SELECT
clients.Id
,clients.FirstName + ' ' + clients.LastName AS ClientName
,clients.Email
FROM
Clients AS clients
LEFT JOIN
ClientsCigars AS clientsCigars
ON clients.Id = clientsCigars.ClientId
WHERE clientsCigars.ClientId IS NULL
ORDER BY
ClientName
--7.1. Clients without cigars (Variant 2)
SELECT
c.Id
,c.FirstName + ' ' + c.LastName AS ClientName
,c.Email
FROM
Clients AS c
WHERE
c.Id NOT IN (SELECT cc.ClientId FROM ClientsCigars AS cc)
ORDER BY
ClientName
--8. First 5 Cigars
SELECT
TOP(5)
c.CigarName
,c.PriceForSingleCigar
,c.ImageURL
FROM
Cigars AS c
JOIN
Sizes AS s
ON c.SizeId = s.Id
WHERE (s.Length >= 12) AND (c.CigarName LIKE '%ci%' OR c.PriceForSingleCigar > 50 AND s.RingRange > 2.55)
ORDER BY
c.CigarName
,c.PriceForSingleCigar DESC
--9. Client with ZIP Codes
SELECT
c.FirstName + ' ' + c.LastName AS FullName
,a.Country
,a.ZIP
,'$' + CAST(MAX(cigars.PriceForSingleCigar) AS VARCHAR) AS CigarPrice
FROM
ClientsCigars AS cc
JOIN
Clients AS c
ON cc.ClientId = c.Id
JOIN
Addresses AS a
ON c.AddressId = a.Id
JOIN
Cigars AS cigars
ON cc.CigarId = cigars.Id
WHERE
a.ZIP NOT LIKE '%[^0-9]%'
GROUP BY
c.FirstName
,c.LastName
,a.Country
,a.ZIP
ORDER BY
FullName
--10. Cigars By Size
SELECT
c.LastName
,AVG(s.Length) AS CiagrLength
,CEILING(AVG(s.RingRange)) AS CiagrRingRange
FROM
ClientsCigars AS cc
JOIN
Clients AS c
ON cc.ClientId = c.Id
JOIN
Cigars AS cigars
ON cc.CigarId = cigars.Id
JOIN
Sizes AS s
ON cigars.SizeId = s.Id
GROUP BY
c.LastName
ORDER BY
CiagrLength DESC
--11. Client with Cigars
CREATE FUNCTION udf_ClientWithCigars(@name NVARCHAR(100))
RETURNS INT
BEGIN
RETURN (
SELECT
COUNT(cc.CigarId)
FROM
ClientsCigars AS cc
JOIN
Clients AS c
ON cc.ClientId = c.Id
WHERE
c.FirstName = @name
)
END
SELECT dbo.udf_ClientWithCigars('Betty')
--12. Search for Cigar with Specific Taste
CREATE PROCEDURE usp_SearchByTaste(@taste NVARCHAR(100))
AS
SELECT
c.CigarName
,'$' + CAST(c.PriceForSingleCigar AS VARCHAR)
,t.TasteType
,b.BrandName
,CAST(s.Length AS VARCHAR) + ' cm' AS CigarLength
,CAST(s.RingRange AS VARCHAR) + ' cm' AS CigarRingRange
FROM
Cigars AS c
JOIN
Tastes AS t
ON c.TastId = t.Id
JOIN
Brands AS b
ON c.BrandId = b.Id
JOIN
Sizes AS s
ON c.SizeId = s.Id
WHERE
t.TasteType = @taste
ORDER BY
CigarLength
,CigarRingRange DESC
EXEC usp_SearchByTaste 'Woody'
|
<filename>ps.sql
-- phpMyAdmin SQL Dump
-- version 5.0.4deb2~bpo10+1+bionic1
-- https://www.phpmyadmin.net/
--
-- Host: localhost
-- Generation Time: Aug 31, 2021 at 10:43 AM
-- Server version: 5.7.35-0ubuntu0.18.04.1
-- PHP Version: 7.2.24-0ubuntu0.18.04.8
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: `ps`
--
-- --------------------------------------------------------
--
-- Table structure for table `favorites`
--
CREATE TABLE `favorites` (
`userid` int(11) NOT NULL,
`videoid` int(11) NOT NULL,
`favor` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `favorites`
--
INSERT INTO `favorites` (`userid`, `videoid`, `favor`) VALUES
(15, 55, 1),
(15, 56, 1),
(15, 57, 1),
(15, 58, 0),
(16, 60, 1);
-- --------------------------------------------------------
--
-- Table structure for table `users`
--
CREATE TABLE `users` (
`id` int(11) NOT NULL,
`username` varchar(15) NOT NULL,
`password` varchar(60) NOT NULL,
`email` varchar(30) NOT NULL,
`active_status` varchar(1) NOT NULL,
`email_verification_code` varchar(45) NOT NULL,
`avatarpath` text NOT NULL,
`avatarfilename` text NOT NULL,
`password_reset_code` varchar(45) NOT NULL,
`oauth_uid` varchar(50) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `users`
--
INSERT INTO `users` (`id`, `username`, `password`, `email`, `active_status`, `email_verification_code`, `avatarpath`, `avatarfilename`, `password_reset_code`, `oauth_uid`) VALUES
(14, 'ray', '$2y$10$Pl/twXhKhZxnYdfw4o8kZ.nyMcZnmK1Fb9lfC7Q31kGRPGrj79NxW', '<EMAIL>', '', '', '', '', '', ''),
(15, 'wang', '$2y$10$P6cf7R58WniC0NOIkAx7Au6H1vXAt.Q9uGg0EoHcu77VNan7v1IAW', '<EMAIL>', '', '', '/var/www/htdocs/ps/avatars/157.jpg', '157.jpg', '', ''),
(16, 'ray1', '$2y$10$.KsOipvoPCeByPeMfc09ceY0bGPOv3gE6iZJ7kS8tRqxCN0/D0g0a', '<EMAIL>', '', '', '/var/www/htdocs/ps/avatars/16.jpg', '16.jpg', '', ''),
(41, '10.89.239.3', '', '', '', '', '', '', '', '');
-- --------------------------------------------------------
--
-- Table structure for table `video`
--
CREATE TABLE `video` (
`id` int(11) NOT NULL,
`filename` text NOT NULL,
`title` text NOT NULL,
`path` text NOT NULL,
`userid` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `video`
--
INSERT INTO `video` (`id`, `filename`, `title`, `path`, `userid`) VALUES
(55, 'cat.mp4', 'cat', '/var/www/htdocs/ps/uploads/cat.mp4', 14),
(56, 'A_Happy_Ride!!_-_cat.mp4', 'A Happy Ride!! - cat', '/var/www/htdocs/ps/uploads/A_Happy_Ride!!_-_cat.mp4', 14),
(57, 'hewwo_-3_-_cat.mp4', 'hewwo -3 - cat', '/var/www/htdocs/ps/uploads/hewwo_-3_-_cat.mp4', 14),
(58, 'local_barn_cat_.mp4', 'local barn cat ', '/var/www/htdocs/ps/uploads/local_barn_cat_.mp4', 14),
(59, 'Snowy_stretching_-_cat.mp4', 'Snowy stretching - cat', '/var/www/htdocs/ps/uploads/Snowy_stretching_-_cat.mp4', 15),
(60, 'Sleeping-_-_cat.mp4', 'Sleeping- - cat', '/var/www/htdocs/ps/uploads/Sleeping-_-_cat.mp4', 15),
(61, 'When_hitler_reincarnated_as_a_cat_-_cat.mp4', 'When hitler reincarnated as a cat - cat', '/var/www/htdocs/ps/uploads/When_hitler_reincarnated_as_a_cat_-_cat.mp4', 15),
(62, 'cat_2.mp4', 'cat 2', '/var/www/htdocs/ps/uploads/cat_2.mp4', 15),
(63, 'outside_night_cat.mp4', 'outside night cat', '/var/www/htdocs/ps/uploads/outside_night_cat.mp4', 16),
(64, 'cat_3.mp4', 'cat 3', '/var/www/htdocs/ps/uploads/cat_3.mp4', 16),
(65, '1.mp4', '1', '/var/www/htdocs/ps/uploads/1.mp4', 15),
(66, '3.mp4', '3', '/var/www/htdocs/ps/uploads/3.mp4', 15),
(67, '2.mp4', '2', '/var/www/htdocs/ps/uploads/2.mp4', 15),
(68, '4.mp4', '4', '/var/www/htdocs/ps/uploads/4.mp4', 15),
(69, '5.mp4', '5', '/var/www/htdocs/ps/uploads/5.mp4', 15),
(70, '7.mp4', '7', '/var/www/htdocs/ps/uploads/7.mp4', 15),
(71, '6.mp4', '6', '/var/www/htdocs/ps/uploads/6.mp4', 15),
(72, 'a1.mp4', 'a1', '/var/www/htdocs/ps/uploads/a1.mp4', 15),
(73, 'a3.mp4', 'a3', '/var/www/htdocs/ps/uploads/a3.mp4', 15),
(74, 'a2.mp4', 'a2', '/var/www/htdocs/ps/uploads/a2.mp4', 15),
(75, 'a4.mp4', 'a4', '/var/www/htdocs/ps/uploads/a4.mp4', 15),
(76, 'a5.mp4', 'a5', '/var/www/htdocs/ps/uploads/a5.mp4', 15),
(77, 'a6.mp4', 'a6', '/var/www/htdocs/ps/uploads/a6.mp4', 15),
(84, 'b1.mp4', 'b1', '/var/www/htdocs/ps/uploads/b1.mp4', 41);
--
-- Indexes for dumped tables
--
--
-- Indexes for table `favorites`
--
ALTER TABLE `favorites`
ADD UNIQUE KEY `userid` (`userid`,`videoid`);
--
-- Indexes for table `users`
--
ALTER TABLE `users`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `username` (`username`),
ADD UNIQUE KEY `email` (`email`);
--
-- Indexes for table `video`
--
ALTER TABLE `video`
ADD PRIMARY KEY (`id`),
ADD KEY `FK_user_upload` (`userid`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `users`
--
ALTER TABLE `users`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=45;
--
-- AUTO_INCREMENT for table `video`
--
ALTER TABLE `video`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=85;
--
-- Constraints for dumped tables
--
--
-- Constraints for table `video`
--
ALTER TABLE `video`
ADD CONSTRAINT `FK_user_upload` FOREIGN KEY (`userid`) REFERENCES `users` (`id`);
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 */;
|
<gh_stars>0
DROP TABLE IF EXISTS `vt_admin_group`;
CREATE TABLE `vt_admin_group` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`language_key` varchar(128) DEFAULT NULL COMMENT '名称(多语言Key)',
`u_id` int(10) unsigned DEFAULT NULL COMMENT '用户ID',
`p_id` int(10) unsigned DEFAULT NULL COMMENT '父级id',
`updated_at` datetime DEFAULT NULL,
`created_at` datetime DEFAULT NULL,
`note` varchar(512) DEFAULT NULL COMMENT '备注',
`auth_list` varchar(512) DEFAULT NULL COMMENT '权限列表',
`path` varchar(512) DEFAULT NULL COMMENT '路径,组关系',
`status` tinyint(1) unsigned DEFAULT '1' COMMENT '状态(1=启用,2=禁用)',
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=58 DEFAULT CHARSET=utf8;
INSERT INTO `vt_admin_group` VALUES ('57', 'productManagement', '1', '0', '2017-08-12 16:39:05', '2017-08-12 16:38:58', '', '22,24,23,41,42,43,44,45,46,25,26,29,47,48,49,50,51,52,53,54,55,56,57', '57', '1');
INSERT INTO `vt_admin_group` VALUES ('51', '产品管理', '35', '0', '2017-08-02 10:31:34', '2017-08-02 10:31:34', '该组负责管理产品。', null, '51', '1');
DROP TABLE IF EXISTS `vt_admin_history`;
CREATE TABLE `vt_admin_history` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`city` varchar(64) DEFAULT NULL COMMENT '城市',
`ip` varchar(32) DEFAULT NULL COMMENT 'IP',
`browser` varchar(32) DEFAULT NULL COMMENT '浏览器',
`create_time` datetime DEFAULT NULL,
`uid` int(10) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=249 DEFAULT CHARSET=utf8;
INSERT INTO `vt_admin_history` VALUES ('230', null, '127.0.0.1', 'Other', '2017-08-12 18:26:23', '1');
INSERT INTO `vt_admin_history` VALUES ('231', null, '127.0.0.1', 'Chrome', '2017-08-12 18:28:27', '1');
INSERT INTO `vt_admin_history` VALUES ('232', null, '127.0.0.1', 'Other', '2017-08-14 09:46:01', '1');
INSERT INTO `vt_admin_history` VALUES ('233', null, '127.0.0.1', 'Chrome', '2017-08-14 09:48:18', '1');
INSERT INTO `vt_admin_history` VALUES ('234', null, '127.0.0.1', 'Chrome', '2017-08-14 10:00:35', '1');
INSERT INTO `vt_admin_history` VALUES ('235', null, '127.0.0.1', 'Other', '2017-08-14 10:15:03', '1');
INSERT INTO `vt_admin_history` VALUES ('236', null, '127.0.0.1', 'Chrome', '2017-08-14 10:23:23', '1');
INSERT INTO `vt_admin_history` VALUES ('237', null, '127.0.0.1', 'Other', '2017-08-14 10:27:06', '1');
INSERT INTO `vt_admin_history` VALUES ('238', null, '127.0.0.1', 'Chrome', '2017-08-14 10:52:13', '1');
INSERT INTO `vt_admin_history` VALUES ('239', null, '10.68.100.101', 'Chrome', '2017-08-14 11:55:58', '1');
INSERT INTO `vt_admin_history` VALUES ('240', null, '10.68.100.201', 'Chrome', '2017-08-14 12:06:55', '1');
INSERT INTO `vt_admin_history` VALUES ('241', null, '10.68.100.109', 'Safari', '2017-08-14 12:10:25', '1');
INSERT INTO `vt_admin_history` VALUES ('242', null, '127.0.0.1', 'Chrome', '2017-08-15 09:47:24', '1');
INSERT INTO `vt_admin_history` VALUES ('243', null, '127.0.0.1', 'Chrome', '2017-08-15 13:37:48', '1');
INSERT INTO `vt_admin_history` VALUES ('244', null, '127.0.0.1', 'Chrome', '2017-08-15 17:30:57', '1');
INSERT INTO `vt_admin_history` VALUES ('245', null, '127.0.0.1', 'Chrome', '2017-08-16 09:34:31', '1');
INSERT INTO `vt_admin_history` VALUES ('246', null, '127.0.0.1', 'Chrome', '2017-08-18 18:34:48', '1');
INSERT INTO `vt_admin_history` VALUES ('247', null, '10.68.100.102', 'Chrome', '2017-08-31 14:41:21', '1');
INSERT INTO `vt_admin_history` VALUES ('248', null, '10.68.100.102', 'Chrome', '2017-08-31 14:50:05', '1');
DROP TABLE IF EXISTS `vt_admin_user`;
CREATE TABLE `vt_admin_user` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(64) DEFAULT NULL COMMENT '用户名',
`password` varchar(64) DEFAULT NULL COMMENT '密码',
`header` varchar(64) DEFAULT 'uploads/admin/defaultHeader.png' COMMENT '头像',
`email` varchar(64) DEFAULT NULL COMMENT '邮箱地址',
`phone` varchar(64) DEFAULT NULL COMMENT '电话号码',
`company` varchar(64) DEFAULT NULL COMMENT '公司',
`address` varchar(128) DEFAULT NULL COMMENT '地址',
`introduction` varchar(512) DEFAULT NULL COMMENT '简介',
`create_time` int(10) unsigned DEFAULT NULL COMMENT '创建时间',
`g_id` varchar(128) DEFAULT NULL COMMENT '组id(多个)',
`status` tinyint(1) DEFAULT '1' COMMENT '状态(1=启用,2=禁用)',
`p_id` int(10) unsigned DEFAULT NULL COMMENT '所属用户id',
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=39 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `vt_article`;
CREATE TABLE `vt_article` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`updated_at` datetime DEFAULT NULL COMMENT '更新时间',
`created_at` datetime DEFAULT NULL COMMENT '创建时间',
`status` tinyint(1) DEFAULT '1' COMMENT '状态(1=启用,2=禁用)',
`title` varchar(128) DEFAULT NULL COMMENT '标题',
`category` varchar(32) DEFAULT NULL COMMENT '所属类别',
`cover` varchar(256) DEFAULT NULL COMMENT '封面',
`content` text COMMENT '内容',
`title_index` varchar(256) DEFAULT NULL COMMENT '标题索引',
`seo` varchar(512) DEFAULT NULL COMMENT 'seo',
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=84 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `vt_article_category`;
CREATE TABLE `vt_article_category` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`language_key` varchar(64) DEFAULT NULL COMMENT '多语言KEY',
`pid` int(10) unsigned DEFAULT '0',
`note` varchar(256) DEFAULT NULL COMMENT '备注',
`updated_at` datetime DEFAULT NULL COMMENT '更新时间',
`created_at` datetime DEFAULT NULL COMMENT '创建时间',
`status` tinyint(1) unsigned DEFAULT '1' COMMENT '状态(1=启用,2=禁用)',
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=39 DEFAULT CHARSET=utf8;
INSERT INTO `vt_article_category` VALUES ('34', 'Linux系统', '27', '', '2017-08-02 10:07:51', '2017-08-02 10:07:51', '1');
INSERT INTO `vt_article_category` VALUES ('35', '路由交换技术', '27', '', '2017-08-02 10:08:35', '2017-08-02 10:08:29', '1');
INSERT INTO `vt_article_category` VALUES ('25', 'IT', null, '', '2017-08-15 10:05:36', '2017-06-16 16:51:11', '1');
INSERT INTO `vt_article_category` VALUES ('26', '', null, '', '2017-08-15 10:05:56', '2017-06-16 16:51:43', '1');
INSERT INTO `vt_article_category` VALUES ('27', '网络', '25', '', '2017-06-16 16:51:50', '2017-06-16 16:51:50', '1');
INSERT INTO `vt_article_category` VALUES ('28', 'php', '26', '', '2017-06-16 16:51:59', '2017-06-16 16:51:59', '1');
INSERT INTO `vt_article_category` VALUES ('29', 'javascript', '26', '', '2017-06-16 16:52:08', '2017-06-16 16:52:08', '1');
INSERT INTO `vt_article_category` VALUES ('30', 'node', '29', '', '2017-06-16 16:52:17', '2017-06-16 16:52:17', '1');
INSERT INTO `vt_article_category` VALUES ('33', '新闻', '0', '', '2017-07-07 10:49:18', '2017-07-07 10:49:18', '1');
DROP TABLE IF EXISTS `vt_gallery`;
CREATE TABLE `vt_gallery` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(128) DEFAULT NULL COMMENT '名称',
`category_id` int(10) unsigned DEFAULT NULL COMMENT '类别id',
`updated_at` datetime DEFAULT NULL COMMENT '更新时间',
`created_at` datetime DEFAULT NULL COMMENT '创建时间',
`description` varchar(256) DEFAULT NULL COMMENT '描述',
`cover` varchar(128) DEFAULT NULL COMMENT '图片',
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=7 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `vt_gallery_category`;
CREATE TABLE `vt_gallery_category` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`language_key` varchar(64) DEFAULT NULL COMMENT '名称',
`note` varchar(128) DEFAULT NULL COMMENT '备注',
`status` tinyint(1) unsigned DEFAULT NULL COMMENT '状态(1=启用,2=禁用)',
`updated_at` datetime DEFAULT NULL COMMENT '更新时间',
`created_at` datetime DEFAULT NULL COMMENT '创建时间',
`pid` int(10) unsigned DEFAULT NULL COMMENT '父级id',
`cover` varchar(256) DEFAULT NULL COMMENT '封面',
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=21 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `vt_home_history`;
CREATE TABLE `vt_home_history` (
`id` int(12) unsigned NOT NULL AUTO_INCREMENT,
`ip` varchar(255) DEFAULT NULL,
`browser` varchar(255) DEFAULT NULL,
`create_time` int(12) unsigned DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=46 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `vt_language`;
CREATE TABLE `vt_language` (
`id` smallint(5) unsigned NOT NULL AUTO_INCREMENT,
`folder` varchar(32) DEFAULT NULL COMMENT '多语言目录',
`note` varchar(128) DEFAULT NULL COMMENT '备注',
`create_time` int(10) unsigned DEFAULT NULL,
`language_key` varchar(32) DEFAULT NULL COMMENT '多语言KEY',
`modular` tinyint(1) unsigned DEFAULT NULL COMMENT '模块(1=前台,2=后台)',
`status` tinyint(1) unsigned DEFAULT '1' COMMENT '状态(1=启用,2=禁用)',
`file_name` varchar(32) DEFAULT NULL COMMENT '文件名',
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=46 DEFAULT CHARSET=utf8;
INSERT INTO `vt_language` VALUES ('1', 'en', null, '1497428854', 'setting_english', '1', '1', 'homeLanguage');
INSERT INTO `vt_language` VALUES ('2', 'zh', null, '1497428854', 'setting_simplifiedChinese', '2', '1', 'adminLanguage');
INSERT INTO `vt_language` VALUES ('16', 'en', null, '1497428854', 'setting_english', '2', '1', 'adminLanguage');
INSERT INTO `vt_language` VALUES ('17', 'zh', null, '1497428854', 'setting_simplifiedChinese', '1', '1', 'homeLanguage');
INSERT INTO `vt_language` VALUES ('35', 'tc', '', '1497507178', 'setting_traditionalChinese', '2', '1', 'adminLanguage');
INSERT INTO `vt_language` VALUES ('34', 'tc', '', '1497507177', 'setting_traditionalChinese', '1', '1', 'homeLanguage');
DROP TABLE IF EXISTS `vt_member`;
CREATE TABLE `vt_member` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`username` varchar(255) DEFAULT NULL,
`password` varchar(255) DEFAULT NULL,
`email` varchar(255) DEFAULT NULL,
`phone` varchar(255) DEFAULT NULL,
`company` varchar(255) DEFAULT NULL,
`address` varchar(255) DEFAULT NULL,
`introduction` varchar(255) DEFAULT NULL,
`header` varchar(255) DEFAULT NULL,
`status` varchar(255) DEFAULT NULL,
`register_date` date DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=11 DEFAULT CHARSET=utf8;
INSERT INTO `vt_member` VALUES ('10', '312', '3123', '', '1', '', '', '', 'uploads/files/2017072420020929747.png', '1', '2017-07-24');
DROP TABLE IF EXISTS `vt_menu_admin`;
CREATE TABLE `vt_menu_admin` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`note` varchar(128) DEFAULT NULL COMMENT '备注',
`route` varchar(64) DEFAULT NULL COMMENT '路由',
`is_show` tinyint(1) DEFAULT '1' COMMENT '1显示,2隐藏',
`p_id` int(10) DEFAULT '0' COMMENT '父级id',
`order` smallint(5) unsigned DEFAULT '1' COMMENT '排序,数字越大,越靠后',
`icon` varchar(64) DEFAULT '*' COMMENT '图标',
`active` varchar(64) DEFAULT NULL COMMENT '选中key',
`auth` varchar(64) DEFAULT NULL COMMENT '权限key',
`create_time` varchar(16) DEFAULT NULL COMMENT '创建时间',
`language_key` varchar(64) DEFAULT NULL COMMENT '多语言key',
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=76 DEFAULT CHARSET=utf8;
INSERT INTO `vt_menu_admin` VALUES ('1', 'menu_setting', 'javascript', '1', '0', '100', 'main-icon fa fa-gear', 'setting', '*', null, 'menu_setting');
INSERT INTO `vt_menu_admin` VALUES ('2', 'menu_menu', 'admin/setting/menu', '1', '64', '1', '*', 'setting_menu', 'menuAdminList', null, 'menu_menu');
INSERT INTO `vt_menu_admin` VALUES ('64', 'menu_menuS', 'javascript', '1', '0', '98', 'fa fa-map-signs', 'menu', '#', '1498725369', 'menu_menuS');
INSERT INTO `vt_menu_admin` VALUES ('14', 'menu_default', 'admin/setting/default', '1', '1', '1', '#', 'settingDefault', 'settingDefault', '1497422389', 'menu_default');
INSERT INTO `vt_menu_admin` VALUES ('15', 'menu_language', 'admin/setting/language', '1', '1', '1', '#', 'settingLanguage', 'settingLanguage', '1497427793', 'menu_language');
INSERT INTO `vt_menu_admin` VALUES ('17', 'setting_theme', 'admin/setting/theme', '1', '1', '2', '#', 'settingTheme', 'settingTheme', '1497507388', 'setting_theme');
INSERT INTO `vt_menu_admin` VALUES ('22', 'menu_Article', 'javascript', '1', '0', '1', 'main-icon fa fa-edit', 'article', '#', '1497584631', 'menu_Article');
INSERT INTO `vt_menu_admin` VALUES ('24', 'auth_ArticleList', 'admin/article', '1', '22', '1', '#', 'article', 'articleList', '1497601464', 'menu_Article');
INSERT INTO `vt_menu_admin` VALUES ('23', 'auth_CategoryList', 'admin/article/category', '1', '22', '1', '#', 'articleCategory', 'articleCategory', '1497584772', 'menu_articleCategory');
INSERT INTO `vt_menu_admin` VALUES ('25', 'auth_productList', 'javascript', '1', '0', '2', 'fa fa-cart-plus', 'product', 'product', '1497856605', 'menu_product');
INSERT INTO `vt_menu_admin` VALUES ('26', 'menu_productCategory', 'admin/product/category', '1', '25', '1', '#', 'productCategory', 'productCategory', '1497856711', 'menu_productCategory');
INSERT INTO `vt_menu_admin` VALUES ('27', 'menu_media', 'javascript', '1', '0', '4', 'fa fa-file-movie-o', 'media', 'media', '1497859633', 'menu_media');
INSERT INTO `vt_menu_admin` VALUES ('28', 'menu_lists', 'admin/media', '1', '27', '1', '#', 'mediaLists', 'media', '1497859707', 'menu_lists');
INSERT INTO `vt_menu_admin` VALUES ('29', 'menu_product', 'admin/product', '1', '25', '1', '#', 'product', 'productList', '1497924781', 'menu_product');
INSERT INTO `vt_menu_admin` VALUES ('31', 'menu_gallery', 'javascript', '1', '0', '3', 'main-icon fa fa-file-photo-o', 'gallery', 'gallery', '1498119633', 'menu_gallery');
INSERT INTO `vt_menu_admin` VALUES ('32', 'menu_galleryCategory', 'admin/gallery/category', '1', '31', '1', '#', 'galleryCategory', 'galleryCategory', '1498119729', 'menu_galleryCategory');
INSERT INTO `vt_menu_admin` VALUES ('33', 'menu_gallery', 'admin/gallery', '1', '31', '1', '#', 'gallery', 'galleryList', '1498128033', 'menu_gallery');
INSERT INTO `vt_menu_admin` VALUES ('34', 'menu_plugin', 'javascript', '1', '0', '6', 'fa fa-code', 'plugin', 'plugin', '1498463478', 'menu_plugin');
INSERT INTO `vt_menu_admin` VALUES ('35', 'common_lists', 'admin/plugin', '1', '34', '5', '#', 'plugin', 'admin/plugin', '1498463552', 'common_lists');
INSERT INTO `vt_menu_admin` VALUES ('36', 'menu_homeMenu', 'admin/setting/homemenu', '1', '64', '1', '#', 'homeMenu', 'homeMenuList', '1498554262', 'menu_homeMenu');
INSERT INTO `vt_menu_admin` VALUES ('37', 'menu_Administrators', 'javascript', '1', '0', '99', 'fa fa-users', 'administrators', 'administrators', '1498700722', 'menu_Administrators');
INSERT INTO `vt_menu_admin` VALUES ('38', 'menu_group', 'admin/administrators/group', '1', '37', '1', '#', 'administratorsGroup', 'administratorsGroup', '1498700818', 'menu_group');
INSERT INTO `vt_menu_admin` VALUES ('39', 'admin_adminUser', 'admin/administrators/user', '1', '37', '1', '#', 'administratorsUser', 'administratorsUser', '1498704487', 'admin_adminUser');
INSERT INTO `vt_menu_admin` VALUES ('41', 'auth_ArticleAdd', '#', '2', '22', '1', '#', '#', 'articleAdd', '1498721923', 'auth_ArticleAdd');
INSERT INTO `vt_menu_admin` VALUES ('42', 'auth_ArticleEdit', '#', '2', '22', '1', '#', '#', 'articleEdit', '1498722010', 'auth_ArticleEdit');
INSERT INTO `vt_menu_admin` VALUES ('43', 'auth_ArticleDelete', '#', '2', '22', '1', '#', '#', 'articleDelete', '1498722034', 'auth_ArticleDelete');
INSERT INTO `vt_menu_admin` VALUES ('44', 'auth_CategoryAdd', '#', '2', '22', '1', '#', '#', 'articleCategoryAdd', '1498722172', 'auth_CategoryAdd');
INSERT INTO `vt_menu_admin` VALUES ('45', 'auth_CategoryEdit', '#', '2', '22', '1', '#', '#', 'articleCategoryEdit', '1498722249', 'auth_CategoryEdit');
INSERT INTO `vt_menu_admin` VALUES ('46', 'auth_CategoryDelete', '#', '2', '22', '1', '#', '#', 'articleCategoryDelete', '1498722497', 'auth_CategoryDelete');
INSERT INTO `vt_menu_admin` VALUES ('47', 'auth_productAdd', '#', '2', '25', '1', '#', '#', 'productAdd', '1498723130', 'auth_productAdd');
INSERT INTO `vt_menu_admin` VALUES ('48', 'auth_productEdit', '#', '2', '25', '1', '#', '#', 'productEdit', '1498723264', 'auth_productEdit');
INSERT INTO `vt_menu_admin` VALUES ('49', 'auth_productDelete', '#', '2', '25', '1', '#', '#', 'productDelete', '1498723297', 'auth_productDelete');
INSERT INTO `vt_menu_admin` VALUES ('50', 'auth_CategoryList', '#', '2', '25', '1', '#', '#', 'productCategory', '1498723545', 'auth_CategoryList');
INSERT INTO `vt_menu_admin` VALUES ('51', 'auth_CategoryAdd', '#', '2', '25', '1', '#', '#', 'productCategoryAdd', '1498723580', 'auth_CategoryAdd');
INSERT INTO `vt_menu_admin` VALUES ('52', 'auth_CategoryEdit', '#', '2', '25', '1', '#', '#', 'productCategoryEdit', '1498723603', 'auth_CategoryEdit');
INSERT INTO `vt_menu_admin` VALUES ('53', 'auth_CategoryDelete', '#', '2', '25', '1', '#', '#', 'productCategoryDelete', '1498723646', 'auth_CategoryDelete');
INSERT INTO `vt_menu_admin` VALUES ('54', 'auth_productAttribute', '#', '2', '25', '1', '#', '#', 'productAttribute', '1498723893', 'auth_productAttribute');
INSERT INTO `vt_menu_admin` VALUES ('55', 'auth_productAttributeAdd', '#', '2', '25', '1', '#', '#', 'productAttributeAdd', '1498723929', 'auth_productAttributeAdd');
INSERT INTO `vt_menu_admin` VALUES ('56', 'auth_productAttributeEdit', '#', '2', '25', '1', '#', '#', 'productAttributeEdit', '1498723961', 'auth_productAttributeEdit');
INSERT INTO `vt_menu_admin` VALUES ('57', 'auth_productAttributeDelete', '#', '2', '25', '1', '#', '#', 'productAttributeDelete', '1498723993', 'auth_productAttributeDelete');
INSERT INTO `vt_menu_admin` VALUES ('58', 'auth_mediaFolderCreate', '#', '2', '27', '1', '#', '#', 'mediaFolderCreate', '1498724117', 'auth_mediaFolderCreate');
INSERT INTO `vt_menu_admin` VALUES ('59', 'auth_galleryCategoryAdd', '#', '2', '31', '1', '#', '#', 'galleryCategoryAdd', '1498724712', 'auth_galleryCategoryAdd');
INSERT INTO `vt_menu_admin` VALUES ('60', 'auth_galleryCategoryEdit', '#', '2', '31', '1', '#', '#', 'galleryCategoryEdit', '1498724740', 'auth_galleryCategoryEdit');
INSERT INTO `vt_menu_admin` VALUES ('61', 'auth_galleryCategoryDelete', '#', '2', '31', '1', '#', '#', 'galleryCategoryDelete', '1498724772', 'auth_galleryCategoryDelete');
INSERT INTO `vt_menu_admin` VALUES ('62', 'auth_galleryAdd', '#', '2', '31', '1', '#', '#', 'galleryAdd', '1498724849', 'auth_galleryAdd');
INSERT INTO `vt_menu_admin` VALUES ('63', 'auth_galleryDelete', '#', '2', '31', '1', '#', '#', 'galleryDelete', '1498724897', 'auth_galleryDelete');
INSERT INTO `vt_menu_admin` VALUES ('65', 'auth_menuAdminAdd', '#', '2', '64', '1', '#', '#', 'menuAdminAdd', '1498725849', 'auth_menuAdminAdd');
INSERT INTO `vt_menu_admin` VALUES ('66', 'auth_menuAdminEdit', '#', '2', '64', '1', '#', '#', 'menuAdminEdit', '1498725872', 'auth_menuAdminEdit');
INSERT INTO `vt_menu_admin` VALUES ('67', 'auth_menuAdminDelete', '#', '2', '64', '1', '#', '#', 'menuAdminDelete', '1498725902', 'auth_menuAdminDelete');
INSERT INTO `vt_menu_admin` VALUES ('68', 'auth_homeMenuAdd', '#', '2', '64', '1', '#', '#', 'homeMenuAdd', '1498726253', 'auth_homeMenuAdd');
INSERT INTO `vt_menu_admin` VALUES ('69', 'auth_homeMenuEdit', '#', '2', '64', '1', '#', '#', 'homeMenuEdit', '1498726355', 'auth_homeMenuEdit');
INSERT INTO `vt_menu_admin` VALUES ('70', 'auth_homeMenuDelete', '#', '2', '64', '1', '#', '#', 'homeMenuDelete', '1498726398', 'auth_homeMenuDelete');
DROP TABLE IF EXISTS `vt_menu_home`;
CREATE TABLE `vt_menu_home` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`language_key` varchar(64) DEFAULT NULL COMMENT '多语言KEY',
`route` varchar(128) DEFAULT NULL COMMENT '路由',
`is_show` tinyint(1) DEFAULT NULL COMMENT '是否显示(1=显示,2=隐藏)',
`p_id` int(10) unsigned DEFAULT '0' COMMENT '父级id',
`order` smallint(10) DEFAULT NULL COMMENT '排序',
`icon` varchar(64) DEFAULT NULL COMMENT '图标',
`active` varchar(64) DEFAULT NULL COMMENT '选中关键字',
`index` tinyint(1) unsigned DEFAULT '2' COMMENT '首页(1=是,2=否)',
`note` varchar(256) DEFAULT NULL COMMENT '备注',
`type` tinyint(1) DEFAULT '1' COMMENT '链接类型(1=内置,2=外链)',
`target` tinyint(1) DEFAULT '1' COMMENT '是否在新窗口打开(1=否,2=是)',
`parameter` varchar(64) DEFAULT 'null' COMMENT '内置链接的参数',
`modular_id` smallint(5) unsigned DEFAULT NULL COMMENT '模块id',
`updated_at` datetime DEFAULT NULL,
`created_at` datetime DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=39 DEFAULT CHARSET=utf8;
INSERT INTO `vt_menu_home` VALUES ('15', 'nav_product', 'product', '1', null, '2', '#', 'product', '2', '', '0', '1', 'p=?', null, '2017-07-07 10:28:50', '2017-07-07 09:55:17');
INSERT INTO `vt_menu_home` VALUES ('14', 'nav_home', '/', '1', '0', '1', '#', '/', '2', '', '0', '1', 'Empty', null, '2017-08-11 14:32:03', '2017-07-07 09:46:41');
INSERT INTO `vt_menu_home` VALUES ('16', 'nav_Article', 'news', '1', '0', '3', '#', 'news', '2', '', '0', '2', 'a=?', null, '2017-08-08 14:45:50', '2017-07-07 09:55:44');
INSERT INTO `vt_menu_home` VALUES ('25', 'nav_contactUs', 'contact', '1', '0', '10', '', '', '2', '', '0', '1', 'Empty', null, '2017-08-08 14:39:39', '2017-08-08 14:39:28');
INSERT INTO `vt_menu_home` VALUES ('18', 'nav_aboutUs', 'about', '1', '0', '5', '#', 'about', '2', '', '0', '1', 'Empty', null, '2017-08-08 13:53:01', '2017-07-07 09:56:23');
DROP TABLE IF EXISTS `vt_options`;
CREATE TABLE `vt_options` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`option_name` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
`option_value` longtext COLLATE utf8_unicode_ci NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=38 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
DROP TABLE IF EXISTS `vt_plugin_options`;
CREATE TABLE `vt_plugin_options` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`option_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '' COMMENT '插件唯一标识名称',
`status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '安装的插件状态(1=未启用,2=启用)',
`order` tinyint(1) DEFAULT '1' COMMENT '排序,数字越大越靠前',
`create_time` datetime DEFAULT NULL COMMENT '安装时间,不能重复安装',
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=24 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='启用插件配置';
INSERT INTO `vt_plugin_options` VALUES ('22', 'longjinwen', '2', '1', '2017-08-31 14:44:22');
INSERT INTO `vt_plugin_options` VALUES ('23', 'member', '2', '1', '2017-08-31 15:39:40');
DROP TABLE IF EXISTS `vt_product`;
CREATE TABLE `vt_product` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(128) DEFAULT NULL COMMENT '名称',
`price` float(10,2) DEFAULT NULL COMMENT '价格',
`cover` varchar(256) DEFAULT NULL COMMENT '封面',
`gallery` varchar(512) DEFAULT NULL COMMENT '图集',
`content` text COMMENT '内容',
`describe` varchar(512) DEFAULT NULL COMMENT '描述',
`status` tinyint(1) unsigned DEFAULT '1' COMMENT '状态(1=启用,2=禁用)',
`category` varchar(128) DEFAULT NULL COMMENT '分类',
`seo` varchar(512) DEFAULT NULL COMMENT 'SEO',
`updated_at` datetime DEFAULT NULL COMMENT '更新时间',
`created_at` datetime DEFAULT NULL COMMENT '创建时间',
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=98 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `vt_product_attribute`;
CREATE TABLE `vt_product_attribute` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(64) DEFAULT NULL COMMENT '属性名称',
`category_id` int(8) unsigned DEFAULT NULL COMMENT '分类ID',
`input_type` tinyint(1) unsigned DEFAULT NULL COMMENT '输入类型(1=文本框,2=单选框,3=复选框)',
`default_value` varchar(128) DEFAULT NULL COMMENT '默认值',
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=59 DEFAULT CHARSET=utf8;
INSERT INTO `vt_product_attribute` VALUES ('55', '类型', '15', '2', '计算机,设计,财务');
INSERT INTO `vt_product_attribute` VALUES ('54', '页数', '15', '1', '102');
INSERT INTO `vt_product_attribute` VALUES ('51', '爱好', '14', '3', '1,2,3,45,5,6,7,87,89,9');
INSERT INTO `vt_product_attribute` VALUES ('50', '重量', '14', '1', '10kg');
INSERT INTO `vt_product_attribute` VALUES ('49', '颜色', '14', '1', '红色');
INSERT INTO `vt_product_attribute` VALUES ('56', '语言', '15', '3', '中文,英文');
INSERT INTO `vt_product_attribute` VALUES ('57', '价钱', '8', '1', '55');
INSERT INTO `vt_product_attribute` VALUES ('58', '类型', '8', '2', '文学,金融,计算机');
DROP TABLE IF EXISTS `vt_product_attribute_value`;
CREATE TABLE `vt_product_attribute_value` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`product_id` int(10) unsigned DEFAULT NULL COMMENT '产品ID',
`attribute_id` int(10) unsigned DEFAULT NULL COMMENT '属性ID',
`attribute_value` varchar(128) DEFAULT NULL COMMENT '属性值',
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=128 DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `vt_product_category`;
CREATE TABLE `vt_product_category` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`language_key` varchar(64) DEFAULT NULL COMMENT '多语言KEY',
`pid` int(10) unsigned DEFAULT NULL COMMENT '父级分类',
`note` varchar(256) DEFAULT NULL COMMENT '备注',
`updated_at` datetime DEFAULT NULL COMMENT '更新时间',
`created_at` datetime DEFAULT NULL COMMENT '创建时间',
`status` tinyint(1) unsigned DEFAULT '1' COMMENT '状态(1=启用,2=禁用)',
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=17 DEFAULT CHARSET=utf8;
INSERT INTO `vt_product_category` VALUES ('7', 'laravel', '2', '', '2017-08-01 18:04:20', null, '1');
INSERT INTO `vt_product_category` VALUES ('2', 'PHP', '0', '', '2017-06-20 09:55:48', '0000-00-00 00:00:00', '1');
INSERT INTO `vt_product_category` VALUES ('3', 'thinkphp', '2', null, '0000-00-00 00:00:00', '0000-00-00 00:00:00', '1');
INSERT INTO `vt_product_category` VALUES ('4', 'JavaScript', '0', null, '0000-00-00 00:00:00', '0000-00-00 00:00:00', '1');
INSERT INTO `vt_product_category` VALUES ('5', 'Node.js', '4', null, '0000-00-00 00:00:00', '0000-00-00 00:00:00', '1');
INSERT INTO `vt_product_category` VALUES ('6', 'VUE', '4', null, '0000-00-00 00:00:00', '0000-00-00 00:00:00', '1');
INSERT INTO `vt_product_category` VALUES ('8', 'Yii', '2', '', '2017-08-01 18:04:31', '2017-06-19 15:51:01', '1');
INSERT INTO `vt_product_category` VALUES ('10', 'nodejs', '5', '', '2017-06-20 09:56:14', '2017-06-20 09:56:14', '1');
INSERT INTO `vt_product_category` VALUES ('11', 'vue', '6', '', '2017-06-20 17:18:01', '2017-06-20 17:18:01', '1');
INSERT INTO `vt_product_category` VALUES ('13', 'C', '0', '', '2017-06-21 11:33:31', '2017-06-21 11:33:31', '1');
INSERT INTO `vt_product_category` VALUES ('15', 'Lumen', '7', '', '2017-08-01 18:04:52', '2017-08-01 18:04:52', '1');
INSERT INTO `vt_product_category` VALUES ('16', 'test龙锦文', '0', '', '2017-08-10 16:50:17', '2017-08-10 16:50:17', '1');
DROP TABLE IF EXISTS `vt_theme`;
CREATE TABLE `vt_theme` (
`id` smallint(5) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(64) DEFAULT NULL,
`path` varchar(64) DEFAULT NULL,
`status` varchar(1) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=22 DEFAULT CHARSET=utf8;
INSERT INTO `vt_theme` VALUES ('1', 'Default_', 'default', '1');
INSERT INTO `vt_theme` VALUES ('21', '复古古诗词', 'gushici', '2');
|
<reponame>kaesetoast/db-sync
DROP TABLE IF EXISTS table_one ;
CREATE TABLE `table_one` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`stringval` varchar(250) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=latin1 ;
DROP TABLE IF EXISTS table_two ;
CREATE TABLE `table_two` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`intval` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=latin1 ;
INSERT INTO `table_one` (`id`, `stringval`) VALUES
('1', 'bla'),
('2', 'fghdgf');
INSERT INTO `table_two` (`id`, `intval`) VALUES
('1', '7'),
('2', '686786');
|
<gh_stars>1-10
/*
*/
set serveroutput on size unlimited echo off scan on verify off
define schema=&1
PROMPT Drop all synonyms in schema &schema:
PROMPT Synonyms count - before:
SELECT count(*) as cnt FROM dba_synonyms WHERE owner = upper('&schema')
/
declare
l_SQL varchar2(32000);
begin
dbms_output.enable(null);
for t in (select owner, synonym_name
from dba_synonyms
where owner = upper('&schema'))
loop
l_SQL := 'DROP SYNONYM "' || t.owner || '"."' || t.synonym_name || '"';
begin
dbms_output.put(l_SQL || ';');
execute immediate l_SQL;
dbms_output.put_line(' -- OK');
exception when others then
dbms_output.put_line(':' || SQLERRM);
end;
end loop;
end;
/
PROMPT Synonyms remained in schema:
SELECT owner, synonym_name FROM dba_synonyms WHERE owner = upper('&schema')
ORDER BY 1, 2
/
|
-- WORK AREA ---------------------------------------------------------------------------------------------
-- THIS WORKS but if the department does not exist on the products table, it is not shown
SELECT d.department_id, d.department_name, d.over_head_costs,
SUM(p.product_sales) as product_sales, SUM(p.product_sales) - d.over_head_costs as total_profit
FROM departments d, products p
WHERE d.department_name = p.department_name
GROUP BY d.department_name, d.over_head_costs, d.department_id
ORDER BY d.department_id;
SELECT Customers.CustomerName, Orders.OrderID,
FROM Customers
LEFT JOIN Orders ON Customers.CustomerID = Orders.CustomerID
ORDER BY Customers.CustomerName;
SELECT d.department_id, d.department_name, d.over_head_costs, SUM(p.product_sales) as product_sales, SUM(p.product_sales) - d.over_head_costs as total_profit
FROM departments d
LEFT JOIN products p ON d.department_name = p.department_name
GROUP BY d.department_name, d.department_id, d.over_head_costs
ORDER BY d.department_id;
SELECT d.department_id, d.department_name, d.over_head_costs,
FROM departments d
LEFT JOIN (
SELECT p.product_sales as product_sales, p.product_sales FROM products p
ON d.department_name = p.deparment_name
)
GROUP BY d.department_name
ORDER BY d.department_id;
SELECT d.department_id, d.department_name, d.over_head_costs,
SUM(p.product_sales) as product_sales, SUM(p.product_sales) - d.over_head_costs as total_profit
FROM departments d, products p
WHERE d.department_name = p.department_name
GROUP BY d.department_name, d.over_head_costs, d.department_id
ORDER BY d.department_id;
SELECT departments.department_name, departments.department_id, departments.over_head_costs, products.product_sales, products.item_id
FROM products
FULL JOIN deparments ON products.item_id=departments.department_id;
GROUP BY products.department_name
-- grabs unique department_names from products and adds all the stocks together (group by)
-- sum is being used
-- the "AS" is an alias which shows a different display name
-- so should be able to use GROUP BY to flatten the data being pulled from products then do a join based on the departments and pull in the total sales
-- then I will toss in the alias for total_profit
SELECT department_name, SUM(stock_quantity) as total_quantity
FROM products
GROUP BY department_name
-- SELECT title, firstName, lastName
-- FROM books
-- LEFT JOIN authors ON books.authorId = authors.id;
-- the below sorta worked
SELECT departments.department_name, departments.over_head_costs, products.stock_quantity, products.department_name
FROM departments
LEFT JOIN products ON departments.department_name = products.department_name;
-- this returns the one department_name and alias works with the join
SELECT departments.department_name, departments.over_head_costs, products.stock_quantity as whatever
FROM departments
LEFT JOIN products ON departments.department_name = products.department_name;
-- how to do group by after join? or should I group by all the income on the products table FIRST then group by all the overhead costs on the departments table THEN display
-- this works to show total stock
SELECT department_name, SUM(stock_quantity) as total_quantity
FROM products
GROUP BY department_name;
-- this shows the tables
SELECT department_name, over_head_costs as total_costs
from departments;
-- combined they do not work
SELECT products.department_name, SUM(products.stock_quantity) as total_quantity, departments.department_name, departments.over_head_costs as total_costs
FROM products, departments
GROUP BY department_name;
-- THIS WORKS PRETTY WELL
SELECT d.department_name, d.over_head_costs, p.department_name, p.stock_quantity
FROM departments d
-- GROUP BY p.department_name
LEFT JOIN products p ON d.department_name = p.department_name;
-- -----------
|
-- 系统用户表
DROP TABLE IF EXISTS `sys_user`;
CREATE TABLE `sys_user` (
`id` bigint NOT NULL AUTO_INCREMENT COMMENT '用户ID',
`username` varchar(255) NOT NULL COMMENT '用户名',
`password` varchar(255) NOT NULL COMMENT '密码',
`avatar` varchar(255) DEFAULT 'https://wpimg.wallstcn.com/f778738c-e4f8-4870-b634-56703b4acafe.gif' COMMENT '头像',
`fullName` varchar(100) NOT NULL COMMENT '姓名',
`phone` varchar(20) NOT NULL COMMENT '电话',
`login_flag` char(1) NOT NULL DEFAULT '0' COMMENT '是否阻止登录:0否,其他是',
`create_time` datetime DEFAULT NULL COMMENT '创建时间',
`update_time` datetime DEFAULT NULL COMMENT '更新时间',
`del_flag` char(1) NOT NULL DEFAULT '0' COMMENT '删除标记:0未删,其他删除',
PRIMARY KEY (`id`),
UNIQUE KEY `username` (`username`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='系统用户表';
-- 系统角色表
DROP TABLE IF EXISTS `sys_role`;
CREATE TABLE `sys_role` (
`id` bigint NOT NULL AUTO_INCREMENT COMMENT '角色ID',
`role_name` varchar(50) NOT NULL COMMENT '角色名称',
`role_desc` varchar(255) DEFAULT NULL COMMENT '描述',
`create_time` datetime DEFAULT NULL COMMENT '创建时间',
`update_time` datetime DEFAULT NULL COMMENT '更新时间',
`del_flag` char(1) NOT NULL DEFAULT '0' COMMENT '删除标记:0未删,其他删除',
PRIMARY KEY (`id`),
UNIQUE KEY `role_name` (`role_name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='系统角色表';
-- 系统菜单表
DROP TABLE IF EXISTS `sys_menu`;
CREATE TABLE `sys_menu` (
`id` bigint NOT NULL AUTO_INCREMENT COMMENT '菜单ID',
`title` varchar(100) NOT NULL COMMENT '菜单名称',
`name` varchar(100) NOT NULL COMMENT '路由名称(前端匹配路由用)',
`icon` varchar(50) DEFAULT NULL COMMENT '图标',
`parent_id` bigint NOT NULL DEFAULT '0' COMMENT '父级菜单Id',
`hidden` char(1) NOT NULL DEFAULT '0' COMMENT '隐藏状态:0显示,1隐藏',
`status` char(1) NOT NULL DEFAULT '0' COMMENT '状态:0启用,1停用',
`sort` int NOT NULL DEFAULT '0' COMMENT '排序',
`create_time` datetime DEFAULT NULL COMMENT '创建时间',
`update_time` datetime DEFAULT NULL COMMENT '更新时间',
`del_flag` char(1) NOT NULL DEFAULT '0' COMMENT '删除标记:0未删,其他删除',
PRIMARY KEY (`id`),
UNIQUE KEY `name` (`name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='系统菜单表';
-- 系统权限表
DROP TABLE IF EXISTS `sys_permission`;
CREATE TABLE `sys_permission` (
`id` bigint NOT NULL AUTO_INCREMENT COMMENT 'ID',
`menu_id` bigint NOT NULL COMMENT '菜单ID',
`name` varchar(100) DEFAULT NULL COMMENT '权限标识',
`title` varchar(100) NOT NULL COMMENT '权限名称',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='系统权限表';
-- 权限&角色 关联表
DROP TABLE IF EXISTS `sys_role_permission`;
CREATE TABLE `sys_role_permission` (
`id` bigint NOT NULL AUTO_INCREMENT,
`role_id` bigint DEFAULT NULL COMMENT '角色ID',
`permission_id` bigint DEFAULT NULL COMMENT '权限ID',
PRIMARY KEY (`id`)
) ENGINE=INNODB DEFAULT CHARSET=UTF8MB4 COMMENT='系统角色权限关联表';
-- 用户&角色 关联表
DROP TABLE IF EXISTS `sys_role_user`;
CREATE TABLE `sys_role_user` (
`id` bigint NOT NULL AUTO_INCREMENT,
`role_id` bigint DEFAULT NULL COMMENT '角色ID',
`user_id` bigint DEFAULT NULL COMMENT '用户ID',
PRIMARY KEY (`id`)
) ENGINE=INNODB DEFAULT CHARSET=UTF8MB4 COMMENT='系统用户角色关联表';
-- 菜单&角色 关联表
DROP TABLE IF EXISTS `sys_role_menu`;
CREATE TABLE `sys_role_menu` (
`id` bigint NOT NULL AUTO_INCREMENT,
`role_id` bigint DEFAULT NULL COMMENT '角色ID',
`menu_id` bigint DEFAULT NULL COMMENT '菜单ID',
PRIMARY KEY (`id`)
) ENGINE=INNODB DEFAULT CHARSET=UTF8MB4 COMMENT='系统角色菜单关联表';
-- 初始数据
INSERT INTO `sys_user`(`id`,`username`,`password`,`create_time`) VALUES (1,'sysadmin','<PASSWORD>',NOW());
INSERT INTO `sys_role`(`id`,`role_name`,`role_desc`,`create_time`) VALUES (1,'admin','管理员',NOW());
INSERT INTO `sys_menu` (`id`, `title`, `name`, `icon`, `parent_id`, `hidden`, `create_time`)
VALUES ('1','系统设置','SysSetting','el-icon-s-tools','0','0',NOW()),
('2','菜单管理','SysMenus','el-icon-menu','1','0',NOW()),
('3','角色管理','SysRoles','peoples','1','0',NOW()),
('4','用户管理','SysUsers','user','1','0',NOW()),
('5','系统图标','SysIcons','el-icon-picture','1','0',NOW()),
('6','菜单列表','SysMenuList','','2','1',NOW()),
('7','菜单编辑','SysMenuEdit','','2','1',NOW()),
('8','角色列表','SysRoleList','','3','1',NOW()),
('9','角色编辑','SysRoleEdit','','3','1',NOW()),
('10','用户列表','SysUserList','','4','1',NOW()),
('11','用户编辑','SysUserEdit','','4','1',NOW()),
('12','其他菜单','Other','bug',0,'0',NOW());
INSERT INTO `sys_permission`(`id`,`menu_id`,`name`,`title`) VALUES (1,6,'sys:menu:edit','编辑'),(2,6,'sys:menu:del','删除'),(3,8,'sys:role:edit','编辑'),(4,8,'sys:role:del','删除'),(5,10,'sys:user:edit','编辑'),(6,10,'sys:user:del','删除');
INSERT INTO `sys_role_user`(`user_id`, `role_id`) VALUES (1, 1);
INSERT INTO `sys_role_menu`(`role_id`, `menu_id`) VALUES (1, 1),(1, 2),(1, 3),(1, 4),(1, 5),(1, 6),(1, 7),(1, 8),(1, 9),(1, 10),(1, 11),(1, 12);
INSERT INTO `sys_role_permission`(`id`,`role_id`,`permission_id`) VALUES (1,1,1),(2,1,2),(3,1,3),(4,1,4),(5,1,5),(6,1,6);
|
-- file:numeric.sql ln:446 expect:true
INSERT INTO num_exp_ln VALUES (8,'11.22365546576315513668')
|
INSERT INTO [dbo].[TestTable] ([Column1])
VALUES ('FirstRow'),
('SecondRow');
INSERT INTO [dbo].[MyTable] ([Column1],[Column2])
VALUES ('FirstRow', 1),
('SecondRow', 2);
|
<reponame>Ambal/mangos<filename>sql/updates/0.13/7255_01_characters_characters.sql
ALTER TABLE character_db_version CHANGE COLUMN required_7251_02_characters_character_spell required_7255_01_characters_characters bit;
ALTER TABLE `characters`
ADD COLUMN `bgid` int(10) unsigned NOT NULL default '0' AFTER `arena_pending_points`,
ADD COLUMN `bgteam` int(10) unsigned NOT NULL default '0' AFTER `bgid`,
ADD COLUMN `bgmap` int(10) unsigned NOT NULL default '0' AFTER `bgteam`,
ADD COLUMN `bgx` float NOT NULL default '0' AFTER `bgmap`,
ADD COLUMN `bgy` float NOT NULL default '0' AFTER `bgx`,
ADD COLUMN `bgz` float NOT NULL default '0' AFTER `bgy`,
ADD COLUMN `bgo` float NOT NULL default '0' AFTER `bgz`;
|
# --- Created by Ebean DDL
# To stop Ebean DDL generation, remove this comment and start using Evolutions
# --- !Ups
create table registration_data (
id bigserial not null,
first_name varchar(255),
last_name varchar(255),
email_id varchar(255),
password varchar(255),
constraint uq_registration_data_email_id unique (email_id),
constraint pk_registration_data primary key (id))
;
# --- !Downs
drop table if exists registration_data cascade;
|
CREATE TABLE enc_keys (
"uuidb64" CHARACTER(22) NOT NULL PRIMARY KEY,
"ext_id" VARCHAR(128) NOT NULL UNIQUE,
"u_encrypt" CHARACTER(1) NOT NULL,
"u_sign" CHARACTER(1) NOT NULL,
"u_derive" CHARACTER(1) NOT NULL,
"u_shared" CHARACTER(1) NOT NULL,
"u_temp" CHARACTER(1) NOT NULL,
"type" VARCHAR(32) NOT NULL,
"params" TEXT NOT NULL,
"data" TEXT NOT NULL,
"created" TIMESTAMP NOT NULL,
"stat_times" INTEGER NOT NULL DEFAULT 0,
"stat_bytes" BIGINT NOT NULL DEFAULT 0,
"stat_failures" INTEGER NOT NULL DEFAULT 0
);
|
<filename>postgresql/procedures/authenticate.sql<gh_stars>0
create or replace function generate_token() returns token.authtoken%type
language plpgsql
as $$
declare
tok token.authtoken%type;
unico integer;
begin
unico := -1;
while unico != 0 -- must be unique
loop
select floor(random() * 2000000) into tok;
SELECT count(*) into unico
from token
where token.authtoken = tok;
end loop;
return tok;
end;
$$;
-- use index for username
create or replace function authenticate(uname utilizador.username%type, pswd utilizador.password%type, inter interval)
returns token.authtoken%type
language plpgsql
as $$
declare
pass utilizador.password%type;
tok token%rowtype;
begin
select userId, password into tok.utilizador_userid , pass
from utilizador u
where u.username= uname;
if pass= pswd THEN
tok.authtoken := generate_token();
insert into token
values(tok.authToken, now()+inter,tok.utilizador_userId);
-- return token
else
tok.authToken := -1;
-- return invalid token
end if;
return tok.authToken;
end;
$$;
create or replace function confirm_token(tok token.authToken%type)
returns utilizador.userId%type
language plpgsql
as $$
declare
ans utilizador.userId%type;
begin
select coalesce(utilizador_userId , -1)
into ans
from token
where authToken = tok and expira_token > NOW();
return ans; -- se e 1 dizemos codigo invalido
end;
$$;
|
# --- !Ups
--- ARTICLE
INSERT INTO "ARTICLE"("name", "descr", "img", "playlist", "active")
VALUES ('HP Compaq 15-s006nz', 'Display 15.6 " . - Prozessor Intel Celeron N2830 (2.16 GHz) . - Schnittstellen Bluetooth, Cardreader, HDMI, 1x USB 3.0, 2x USB 2.0',
'/assets/images/article1.png', 'article', TRUE);
INSERT INTO "ARTICLE" ("name", "descr", "img", "playlist", "active")
VALUES ('Apple CTO MacBook Air 1.4 GHz 11", 256 GB, 8 GB RAM',
'Prozessor Intel Core i5 (1.4 GHz) . - Schnittstellen Thunderbolt, 2x USB 3.0 . - RAM 8 GB DDR3',
'/assets/images/article2.jpg', 'article', TRUE);
INSERT INTO "ARTICLE" ("name", "descr", "img", "playlist", "active")
VALUES ('Acer Aspire S7-392-74508G25tws Ultrabook i7-4500U',
'Prozessor Intel Core i7-4500U (1.8 GHz) . - Unterstützte Speicherkarten SD, MMC . - Schnittstellen HDMI, 2x USB 3.0',
'/assets/images/article3.jpg', 'article', TRUE);
INSERT INTO "ARTICLE" ("name", "descr", "img", "playlist", "active")
VALUES ('HP Envy 15-k156nz Notebook',
'Display 15.6 " . - Prozessor Intel Core i7-4710HQ (2.5 GHz) . - Schnittstellen Bluetooth, Multi-in-1, HDMI, 3x USB 3.0',
'/assets/images/article4.jpg', 'article', TRUE);
INSERT INTO "ARTICLE" ("name", "descr", "img", "playlist", "active")
VALUES ('Apple MacBook Pro Retina 2.6GHz 13,3" 256GB',
'Display 13.3 " . - Prozessor Intel Dual-Core i5 (2.6 GHz) . - Schnittstellen 2x Thunderbolt 2, 2x USB 3.0, HDMI, SDXC Cardslot',
'/assets/images/article5.jpg', 'article', TRUE);
--- Intro
INSERT INTO "ARTICLE" ("name", "descr", "img", "playlist", "active")
VALUES ('screenFOODnet', '-',
'/assets/images/famous/screenFOODnet.png', 'intro', TRUE);
INSERT INTO "ARTICLE" ("name", "descr", "img", "playlist", "active")
VALUES ('Pascal', '-',
'/assets/images/famous/pascal_bike.jpg', 'intro', TRUE);
INSERT INTO "ARTICLE" ("name", "descr", "img", "playlist", "active")
VALUES ('screenFOODnet +> Pascal', '-',
'/assets/images/famous/pascal_bike2.jpg', 'intro', TRUE);
INSERT INTO "ARTICLE" ("name", "descr", "img", "playlist", "active")
VALUES ('Familie', '-',
'/assets/images/famous/family.jpg', 'intro', TRUE);
INSERT INTO "ARTICLE" ("name", "descr", "img", "playlist", "active")
VALUES ('Zuhause', '-',
'/assets/images/famous/oberarth_map.png', 'intro', TRUE);
# --- !Downs
|
create temporary table test (
arr Array(Array(LowCardinality(String)))
);
insert into test(arr) values ([['a'], ['b', 'c']]);
select arrayFilter(x -> 1, arr) from test;
|
<filename>teams/12-seee/src/schema-hash.sql
CREATE TABLE IF NOT EXISTS hashs (
id serial PRIMARY KEY,
cid text NOT NULL REFERENCES cargo(cid) ON DELETE CASCADE,
account text NOT NULL,
mkroot text NOT NULL, -- should be u64 in rust type
hashcode text NOT NULL,
hashcodeu64 text NOT NULL, -- should be u64 in rust type
proofarr text[] NOT NULL , -- should be u64[] in rust type
proofindex INT[] NOT NULL
);
|
use jd
--Là tình trạng mà một giao tác đang thao tác trên một tập dữ liệu nhưng giao
--tác khác lại chèn thêm các dòng dữ liệu vào tập dữ liệu mà giao tác kia quan
--tâm
-- kịch bảng cập nhật hết tất cả sản phẩm thay đổi giá không cho thêm mới
---
Drop procedure CAPNHATSANPHAMDONGLOAT
go
create PROCEDURE CAPNHATSANPHAMDONGLOAT
@ID_PRODUCT INT, @CHAN INT
AS
BEGIN
SET TRANSACTION ISOLATION LEVEL Serializable
begin tran
UPDATE product_detail
SET price = price + @CHAN
WHERE product_detail.id_product = @ID_PRODUCT
waitfor delay '00:00:07'
commit tran
END
-----
Drop procedure CAPNHATSANPHAMDONGLOAT_ERROR
go
create PROCEDURE CAPNHATSANPHAMDONGLOAT_ERROR
@ID_PRODUCT INT, @CHAN INT
AS
BEGIN
--SET TRANSACTION ISOLATION LEVEL Serializable
begin tran
UPDATE product_detail
SET price = price + @CHAN
WHERE product_detail.id_product = @ID_PRODUCT
waitfor delay '00:00:07'
commit tran
END
---- test -- bỏ qua file query khác
use jd
Drop procedure chendulieuvao
go
create PROCEDURE chendulieuvao
AS
BEGIN
SET IDENTITY_INSERT product_detail ON
begin tran
insert product_detail (id,size,price,amount,id_product) values (1000,10,500000,100,1)
commit tran
END
--
EXEC CAPNHATSANPHAMDONGLOAT 1, 200
---
delete product_detail where id = 1000
-- select 1000
SELECT TOP 1000 [id]
,[size]
,[price]
,[amount]
,[id_product]
FROM [JD].[dbo].[product_detail]
-- Run correct
EXEC CAPNHATSANPHAMDONGLOAT 1, 200
EXEC chendulieuvao
--SET IDENTITY_INSERT product_detail ON
--begin tran
-- insert product_detail (id,size,price,amount,id_product) values (1000,10,500000,100,1)
--commit tran
-- Run Error
EXEC CAPNHATSANPHAMDONGLOAT_ERROR 1, 200
EXEC chendulieuvao
|
<reponame>uzmcoco/Cotonti
/* r91 more fix, hooks fix */
INSERT INTO `sed_bbcode` VALUES (NULL,'more','str','[more]','<!--more-->',1,1,128,'',0),(NULL,'more','str','[/more]',' ',1,1,128,'',0);
INSERT INTO `sed_plugins` VALUES (NULL, 'header.main', 'search', 'header', 'Search', 'search.header', 10, 1), (NULL, 'page.first', 'search', 'page', 'Search', 'search.page.first', 10, 1), (NULL, 'forums.posts.first', 'search', 'forums', 'Search', 'search.forums.posts.first', 10, 1);
/* r103 remove antibump */
DELETE FROM `sed_config` WHERE `config_owner` = 'core' AND `config_cat` = 'forums' AND `config_name` = 'antibumpforums' LIMIT 1;
/* r104 subforms enhancment */
ALTER TABLE `sed_forum_sections` ADD COLUMN `fs_mastername` varchar(128) NOT NULL;
/* r111 Subforums Enhancment */
ALTER TABLE `sed_forum_sections` ADD COLUMN `fs_allowviewers` tinyint(1) NOT NULL default '1';
ALTER TABLE `sed_users` ADD COLUMN `user_theme` VARCHAR(16) NOT NULL DEFAULT '';
/* r112 Title Mask Enhancments */
UPDATE `sed_config` SET `config_cat` = 'title' WHERE `config_cat` = 'main' AND `config_name` IN ('maintitle', 'subtitle') LIMIT 2;
UPDATE `sed_config` SET `config_order` = '01' WHERE `config_cat` = 'main' AND `config_name` = 'mainurl' LIMIT 1;
UPDATE `sed_config` SET `config_order` = '02' WHERE `config_cat` = 'main' AND `config_name` = 'adminemail' LIMIT 1;
UPDATE `sed_config` SET `config_order` = '03' WHERE `config_cat` = 'main' AND `config_name` = 'hostip' LIMIT 1;
UPDATE `sed_config` SET `config_order` = '04' WHERE `config_cat` = 'main' AND `config_name` = 'cache' LIMIT 1;
UPDATE `sed_config` SET `config_order` = '05' WHERE `config_cat` = 'main' AND `config_name` = 'clustermode' LIMIT 1;
UPDATE `sed_config` SET `config_order` = '06' WHERE `config_cat` = 'main' AND `config_name` = 'gzip' LIMIT 1;
UPDATE `sed_config` SET `config_order` = '07' WHERE `config_cat` = 'main' AND `config_name` = 'devmode' LIMIT 1;
INSERT INTO `sed_config` (`config_owner` ,`config_cat` ,`config_order` ,`config_name` ,`config_type` ,`config_value`) VALUES ('core', 'title', '03', 'title_forum_main', '01', '{FORUM}'),('core', 'title', '04', 'title_forum_topics', '01', '{FORUM} - {SECTION}'),('core', 'title', '05', 'title_forum_posts', '01', '{FORUM} - {TITLE}'),('core', 'title', '06', 'title_forum_newtopic', '01', '{FORUM} - {SECTION}'),('core', 'title', '07', 'title_forum_editpost', '01', '{FORUM} - {SECTION}'),('core', 'title', '08', 'title_list', '01', '{TITLE}'),('core', 'title', '09', 'title_page', '01', '{TITLE}'),('core', 'title', '10', 'title_pfs', '01', '{PFS}'),('core', 'title', '11', 'title_pm_main', '01', '{PM}'),('core', 'title', '12', 'title_pm_send', '01', '{PM}'),('core', 'title', '13', 'title_users_main', '01', '{USERS}'),('core', 'title', '14', 'title_users_details', '01', '{USER} : {NAME}'),('core', 'title', '15', 'title_users_profile', '01', '{PROFILE}'),('core', 'title', '16', 'title_users_edit', '01', '{NAME}'),('core', 'title', '17', 'title_header', '01', '{MAINTITLE} - {SUBTITLE}'),('core', 'title', '18', 'title_header_index', '01', '{MAINTITLE} - {DESCRIPTION}');
/* r128 page extra fields enhancment */
CREATE TABLE `sed_pages_extra_fields` (
`field_name` varchar(255) NOT NULL,
`field_type` varchar(255) NOT NULL,
`field_html` text NOT NULL,
`field_variants` text NOT NULL,
UNIQUE KEY `field_name` (`field_name`)
) DEFAULT CHARSET = utf8 COLLATE = utf8_unicode_ci ENGINE=MyISAM;
/* r193 Some speed up for page listings */
ALTER TABLE sed_structure ADD COLUMN structure_pagecount mediumint(8) NOT NULL default '0';
/* r143 t#105, Forum topic preview */
ALTER TABLE sed_forum_topics ADD COLUMN ft_preview varchar(128) NOT NULL default '';
/* r145 for edited plugins - recentitems and recentpolls->indexpolls */
INSERT INTO `sed_config` (`config_owner` ,`config_cat` ,`config_order` ,`config_name` ,`config_type` ,`config_value`) VALUES ('plug', 'indexpolls', '2', 'mode', '2', 'Recent polls'),('plug', 'indexpolls', '1', 'maxpolls', '2', '1'), ('plug', 'recentitems', 5, 'redundancy', 2, '2');
INSERT INTO `sed_plugins` VALUES (NULL, 'index.tags', 'indexpolls', 'main', 'Indexpolls', 'indexpolls', 10, 1);
INSERT INTO `sed_auth` VALUES (NULL, 1, 'plug', 'indexpolls', 1, 254, 1), (NULL, 2, 'plug', 'indexpolls', 1, 254, 1), (NULL, 3, 'plug', 'indexpolls', 0, 255, 1), (NULL, 4, 'plug', 'indexpolls', 1, 254, 1), (NULL, 5, 'plug', 'indexpolls', 255, 255, 1), (NULL, 6, 'plug', 'indexpolls', 1, 254, 1);
DELETE FROM `sed_config` WHERE `config_owner`='plug' AND `config_cat`='recentitems' AND `config_name`='maxpolls' LIMIT 1;
UPDATE `sed_config` SET `config_value` = 'UTF-8' WHERE `config_cat` = 'skin' AND `config_name` = 'charset' LIMIT 1;
/* r150 Adding markitup`s tags by default */
INSERT INTO `sed_bbcode` (`bbc_id`, `bbc_name`, `bbc_mode`, `bbc_pattern`, `bbc_replacement`, `bbc_container`, `bbc_enabled`, `bbc_priority`, `bbc_plug`, `bbc_postrender`) VALUES (NULL, 'h1', 'str', '[h1]', '<h1>', 1, 1, 128, 'markitup', 0), (NULL, 'h1', 'str', '[/h1]', '</h1>', 1, 1, 128, 'markitup', 0), (NULL, 'h2', 'str', '[h2]', '<h2>', 1, 1, 128, 'markitup', 0), (NULL, 'h2', 'str', '[/h2]', '</h2>', 1, 1, 128, 'markitup', 0), (NULL, 'h3', 'str', '[h3]', '<h3>', 1, 1, 128, 'markitup', 0), (NULL, 'h3', 'str', '[/h3]', '</h3>', 1, 1, 128, 'markitup', 0), (NULL, 'h4', 'str', '[h4]', '<h4>', 1, 1, 128, 'markitup', 0), (NULL, 'h4', 'str', '[/h4]', '</h4>', 1, 1, 128, 'markitup', 0), (NULL, 'h5', 'str', '[h5]', '<h5>', 1, 1, 128, 'markitup', 0), (NULL, 'h5', 'str', '[/h5]', '</h5>', 1, 1, 128, 'markitup', 0), (NULL, 'h6', 'str', '[h6]', '<h6>', 1, 1, 128, 'markitup', 0), (NULL, 'h6', 'str', '[/h6]', '</h6>', 1, 1, 128, 'markitup', 0), (NULL, 'size', 'pcre', '\\[size=([1-2][0-9])\\](.+?)\\[/size\\]', '<span style="font-size:$1pt">$2</span>', 1, 1, 128, 'markitup', 0), (NULL, 'list', 'pcre', '\\[list\\](.+?)\\[/list\\]', '<ul>$1</ul>', 1, 1, 128, 'markitup', 0), (NULL, 'list', 'pcre', '\\[list=(\\w)\\](.+?)\\[/list\\]', '<ol type="$1">$2</ol>', 1, 1, 128, 'markitup', 0), (NULL, 'li', 'str', '[li]', '<li>', 1, 1, 128, 'markitup', 0), (NULL, 'li', 'str', '[/li]', '</li>', 1, 1, 128, 'markitup', 0), (NULL, 'table', 'str', '[table]', '<table>', 1, 1, 128, 'markitup', 0), (NULL, 'table', 'str', '[/table]', '</table>', 1, 1, 128, 'markitup', 0),(NULL, 'tr', 'str', '[tr]', '<tr>', 1, 1, 128, 'markitup', 0), (NULL, 'tr', 'str', '[/tr]', '</tr>', 1, 1, 128, 'markitup', 0), (NULL, 'th', 'str', '[th]', '<th>', 1, 1, 128, 'markitup', 0), (NULL, 'th', 'str', '[/th]', '</th>', 1, 1, 128, 'markitup', 0), (NULL, 'td', 'str', '[td]', '<td>', 1, 1, 128, 'markitup', 0), (NULL, 'td', 'str', '[/td]', '</td>', 1, 1, 128, 'markitup', 0), (NULL, 'hide', 'callback', '\\[hide\\](.+?)\\[/hide\\]', 'return $usr["id"] > 0 ? $input[1] : "<div class=\\"hidden\\">".$L["Hidden"]."</div>";', 1, 1, 150, 'markitup', 1), (NULL, 'spoiler', 'pcre', '\\[spoiler=([^\\]]+)\\](.+?)\\[/spoiler\\]', '<div style="margin:4px 0px 4px 0px"><input type="button" value="$1" onclick="if(this.parentNode.getElementsByTagName(''div'')[0].style.display != '''') { this.parentNode.getElementsByTagName(''div'')[0].style.display = ''''; } else { this.parentNode.getElementsByTagName(''div'')[0].style.display = ''none''; }" /><div style="display:none" class="spoiler">$2</div></div>', 1, 1, 130, 'markitup', 0), (NULL, 'thumb', 'pcre', '\\[thumb=(.*?[^"\\'';:\\?]+\\.(?:jpg|jpeg|gif|png))\\](.*?[^"\\'';:\\?]+\\.(?:jpg|jpeg|gif|png))\\[/thumb\\]', '<a href="datas/users/$2"><img src="$1" alt="$2" /></a>', 1, 1, 128, '', 0), (NULL, 'thumb', 'pcre', '\\[thumb\\](.*?[^"\\'';:\\?]+\\.(?:jpg|jpeg|gif|png))\\[/thumb\\]', '<a href="datas/users/$1"><img src="datas/thumbs/$1" /></a>', 1, 1, 128, '', 0), (NULL, 'pfs', 'pcre', '\\[pfs\\](.*?[^"\\'';:\\?]+\\.(?:jpg|jpeg|gif|png|zip|rar|7z|pdf|txt))\\[/pfs\\]', '<strong><a href="$1">$1</a></strong>', 1, 1, 128, '', 0);
/* r153 Maintenance mode */
INSERT INTO sed_config (config_owner, config_cat, config_order, config_name, config_type, config_value) VALUES ('core', 'main', '07', 'maintenance', 3, '0');
INSERT INTO sed_config (config_owner, config_cat, config_order, config_name, config_type, config_value) VALUES ('core', 'main', '07', 'maintenancereason', 1, '');
ALTER TABLE sed_groups ADD COLUMN grp_maintenance tinyint(1) NOT NULL default '0';
UPDATE sed_groups SET grp_maintenance = '1' WHERE grp_alias = 'administrators';
UPDATE sed_groups SET grp_maintenance = '1' WHERE grp_alias = 'moderators';
/* r155 Fix pfs bbcode */
UPDATE `sed_bbcode` SET `bbc_replacement` = '<strong><a href="datas/users/$1">$1</a></strong>' WHERE `bbc_id` = 64;
/* r187 Universal tag system scheme */
-- Just tags alone, required for autocomplete
CREATE TABLE `sed_tags` (
`tag` VARCHAR(255) NOT NULL,
PRIMARY KEY(`tag`)
) DEFAULT CHARSET = utf8 COLLATE = utf8_unicode_ci ENGINE=MyISAM;
-- For tag references, search and other needs
CREATE TABLE `sed_tag_references` (
`tag` VARCHAR(255) NOT NULL REFERENCES `sed_tags`(`tag`),
`tag_item` INT NOT NULL,
`tag_area` VARCHAR(50) NOT NULL DEFAULT 'pages',
PRIMARY KEY (`tag`, `tag_area`, `tag_item`),
KEY `tag_item`(`tag_item`),
KEY `tag_area`(`tag_area`)
) DEFAULT CHARSET = utf8 COLLATE = utf8_unicode_ci ENGINE=MyISAM;
/* r206 Hardened auth system */
ALTER TABLE sed_users ADD user_hashsalt CHAR(16) NOT NULL DEFAULT '';
/* r212 Forum poll enhancements */
ALTER TABLE `sed_forum_sections` ADD COLUMN `fs_allowpolls` tinyint(1) NOT NULL default '0';
/* r224 Improved polls admin part */
INSERT INTO `sed_config` (`config_owner` ,`config_cat` ,`config_order` ,`config_name` ,`config_type` ,`config_value`) VALUES ('core', 'polls', '02', 'ip_id_polls', '2', 'ip'), ('core', 'polls', '04', 'del_dup_options', '3', '1'), ('core', 'polls', '03', 'max_options_polls', '1', '100');
/* r225 PFS file name conversion */
INSERT INTO `sed_config` (`config_owner` ,`config_cat` ,`config_order` ,`config_name` ,`config_type` ,`config_value`) VALUES ('core', 'pfs', '03', 'pfstimename', '3', '0');
/* r227 Option to display home link in breadcrumb */
INSERT INTO `sed_config` (`config_owner` ,`config_cat` ,`config_order` ,`config_name` ,`config_type` ,`config_value`) VALUES ('core', 'skin', '03', 'homebreadcrumb', '3', '0');
/* r230 Set default file download permission masks for pages */
UPDATE sed_auth SET auth_rights = auth_rights + 4 WHERE auth_code = 'page' AND auth_groupid != 5 AND auth_groupid != 3 AND auth_groupid != 2 AND NOT auth_rights & 4 = 4;
UPDATE sed_auth SET auth_rights_lock = auth_rights_lock - 4 WHERE auth_code = 'page' AND auth_groupid != 5 AND auth_groupid != 3 AND auth_groupid != 2 AND auth_groupid != 4 AND auth_rights_lock & 4 = 4;
/* r233 Smilies which are now in sets */
DROP TABLE sed_smilies;
/* r240 New universal extra fields system + extra fields for users */
RENAME TABLE sed_pages_extra_fields TO sed_extra_fields ;
ALTER TABLE `sed_extra_fields` ADD `field_location` VARCHAR( 255 ) NOT NULL FIRST ;
ALTER TABLE `sed_extra_fields` ADD `field_description` TEXT NOT NULL ;
ALTER TABLE `sed_extra_fields` ADD INDEX ( `field_location` ) ;
ALTER TABLE `sed_extra_fields` DROP INDEX `field_name` ;
ALTER TABLE `sed_extra_fields` ADD INDEX ( `field_name` ) ;
INSERT INTO `sed_extra_fields` (`field_location`, `field_name`, `field_type`, `field_html`, `field_variants`, `field_description`) VALUES('pages', 'extra1', 'input', '<input class="text" type="text" maxlength="255" size="56" />', '', ''), ('pages', 'extra2', 'input', '<input class="text" type="text" maxlength="255" size="56" />', '', ''), ('pages', 'extra3', 'input', '<input class="text" type="text" maxlength="255" size="56" />', '', ''), ('pages', 'extra4', 'input', '<input class="text" type="text" maxlength="255" size="56" />', '', ''), ('pages', 'extra5', 'input', '<input class="text" type="text" maxlength="255" size="56" />', '', ''), ('users', 'extra1', 'input', '<input class="text" type="text" maxlength="255" size="56" />', '', ''), ('users', 'extra2', 'input', '<input class="text" type="text" maxlength="255" size="56" />', '', ''), ('users', 'extra3', 'input', '<input class="text" type="text" maxlength="255" size="56" />', '', ''), ('users', 'extra4', 'input', '<input class="text" type="text" maxlength="255" size="56" />', '', ''), ('users', 'extra5', 'input', '<input class="text" type="text" maxlength="255" size="56" />', '', ''), ('users', 'extra6', 'textarea', '<textarea cols="80" rows="6" ></textarea>', '', ''), ('users', 'extra7', 'textarea', '<textarea cols="80" rows="6" ></textarea>', '', ''), ('users', 'extra8', 'textarea', '<textarea cols="80" rows="6" ></textarea>', '', ''), ('users', 'extra9', 'textarea', '<textarea cols="80" rows="6" ></textarea>', '', '');
DELETE FROM sed_config WHERE config_owner = 'core' AND config_cat = 'users' AND config_name LIKE 'extra%';
/* r241 Multiple choice in polls */
ALTER TABLE `sed_polls` ADD COLUMN `poll_multiple` tinyint(1) NOT NULL default '0';
/* r242 xhtml code removed from php for plug whosonline added avatar configs */
INSERT INTO `sed_config` (`config_owner` ,`config_cat` ,`config_order` ,`config_name` ,`config_type` ,`config_value`) VALUES ('plug', 'whosonline', '1', 'showavatars', 3, '1'), ('plug', 'whosonline', '2', 'miniavatar_x', 1, '16'), ('plug', 'whosonline', '3', 'miniavatar_y', 1, '16');
/* r243 Photo,avatar and signature resize optioning */
INSERT INTO sed_config (config_owner, config_cat, config_order, config_name, config_type, config_value) VALUES ('core', 'users', '10', 'av_resize', 3, '0'), ('core', 'users', '10', 'ph_resize', 3, '0'), ('core', 'users', '10', 'sig_resize', 3, '0');
/* r255 PFS file check conifg -tags plugin default install*/
INSERT INTO sed_config (config_owner, config_cat, config_order, config_name, config_type, config_value) VALUES ('core', 'pfs', '04', 'pfsfilecheck', 3, '1'), ('core', 'pfs', '05', 'pfsnomimepass', 3, '1');
DELETE FROM `sed_auth` WHERE `auth_groupid` = 'plug' AND `auth_code` = 'tags';
DELETE FROM `sed_config` WHERE `config_owner` = 'plug' AND `config_cat` = 'tags';
DELETE FROM `sed_plugins` WHERE `pl_code` = 'tags';
INSERT INTO `sed_auth` (`auth_id`, `auth_groupid`, `auth_code`, `auth_option`, `auth_rights`, `auth_rights_lock`, `auth_setbyuserid`) VALUES (NULL, 5, 'plug', 'tags', 255, 255, 1),(NULL, 6, 'plug', 'tags', 3, 124, 1),(NULL, 2, 'plug', 'tags', 1, 254, 1),(NULL, 3, 'plug', 'tags', 0, 255, 1),(NULL, 4, 'plug', 'tags', 3, 124, 1),(NULL, 1, 'plug', 'tags', 1, 254, 1);
INSERT INTO `sed_config` (`config_owner`, `config_cat`, `config_order`, `config_name`, `config_type`, `config_value`, `config_default`, `config_text`) VALUES ('plug', 'tags', '3', 'title', 3, '1', '', 'Capitalize first latters of keywords'),('plug', 'tags', '4', 'translit', 3, '0', '', 'Transliterate Tags in URLs'),('plug', 'tags', '6', 'order', 2, 'tag', 'tag,cnt', 'Cloud output order - alphabetical or descending frequency'),('plug', 'tags', '7', 'limit', 1, '0', '', 'Max. tags per items, 0 is unlimited'),('plug', 'tags', '8', 'lim_pages', 1, '0', '', 'Limit of tags in a cloud displayed for pages, 0 is unlimited'),('plug', 'tags', '1', 'pages', 3, '1', '', 'Enable Tags for Pages'),('plug', 'tags', '9', 'lim_forums', 1, '0', '', 'Limit of tags in a cloud displayed in forums, 0 is unlimited'),('plug', 'tags', '2', 'forums', 3, '1', '', 'Enable Tags for Forums');
INSERT INTO `sed_plugins` (`pl_id`, `pl_hook`, `pl_code`, `pl_part`, `pl_title`, `pl_file`, `pl_order`, `pl_active`) VALUES (NULL, 'page.tags', 'tags', 'page', 'Tags', 'tags.page', 10, 1),(NULL, 'page.edit.tags', 'tags', 'page.edit.tags', 'Tags', 'tags.page.edit.tags', 10, 1),(NULL, 'page.edit.update.done', 'tags', 'page.edit', 'Tags', 'tags.page.edit', 10, 1),(NULL, 'page.edit.delete.done', 'tags', 'page.delete', 'Tags', 'tags.page.delete', 10, 1),(NULL, 'page.add.tags', 'tags', 'page.add.tags', 'Tags', 'tags.page.add.tags', 10, 1),(NULL, 'page.add.add.done', 'tags', 'page.add', 'Tags', 'tags.page.add', 10, 1),(NULL, 'index.tags', 'tags', 'index', 'Tags', 'tags.index', 10, 1),(NULL, 'list.tags', 'tags', 'list', 'Tags', 'tags.list', 10, 1),(NULL, 'forums.topics.loop', 'tags', 'forums.topics', 'Tags', 'tags.forums.topics', 10, 1),(NULL, 'forums.sections.tags', 'tags', 'forums', 'Tags', 'tags.forums', 10, 1),(NULL, 'forums.newtopic.tags', 'tags', 'forums.newtopic.tags', 'Tags', 'tags.forums.newtopic.tags', 10, 1),(NULL, 'forums.newtopic.newtopic.done', 'tags', 'forums.newtopic', 'Tags', 'tags.forums.newtopic', 10, 1),(NULL, 'forums.editpost.tags', 'tags', 'forums.editpost.tags', 'Tags', 'tags.forums.editpost.tags', 10, 1),(NULL, 'forums.editpost.update.done', 'tags', 'forums.editpost', 'Tags', 'tags.forums.editpost', 10, 1),(NULL, 'forums.topics.delete.done', 'tags', 'forums.delete', 'Tags', 'tags.forums.delete', 10, 1),(NULL, 'standalone', 'tags', 'search', 'Tags', 'tags', 0, 1);
/* r272 subforums duplicate data removal */
DROP TABLE IF EXISTS sed_forum_subforums;
/* r274 Avatar/photo resizing final structure */
DELETE FROM `sed_config` WHERE `config_owner` = 'core' AND `config_cat` = 'users' AND `config_name` = 'av_resize' LIMIT 1;
DELETE FROM `sed_config` WHERE `config_owner` = 'core' AND `config_cat` = 'users' AND `config_name` = 'sig_resize' LIMIT 1;
DELETE FROM `sed_config` WHERE `config_owner` = 'core' AND `config_cat` = 'users' AND `config_name` = 'ph_resize' LIMIT 1;
/* r285 24 symbols for user name - not enough */
ALTER TABLE `sed_users` CHANGE `user_name` `user_name` VARCHAR( 100 ) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL;
/* r289 added config option for autovalidate*/
INSERT INTO `sed_config` (`config_owner` ,`config_cat` ,`config_order` ,`config_name` ,`config_type` ,`config_value`) VALUES ('core', 'page', '06', 'autovalidate', 3, '1');
/* r290 indexpolls*/
DELETE FROM `sed_plugins` WHERE `pl_file` = 'indexpolls.main';
/* r293 Increase size of user_name and page category title (begins in r285)*/
ALTER TABLE `sed_com` CHANGE `com_author` `com_author` VARCHAR( 100 ) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL ;
ALTER TABLE `sed_forum_posts` CHANGE `fp_postername` `fp_postername` VARCHAR( 100 ) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL;
ALTER TABLE `sed_forum_posts` CHANGE `fp_updater` `fp_updater` VARCHAR( 100 ) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL ;
ALTER TABLE `sed_forum_sections` CHANGE `fs_lt_postername` `fs_lt_postername` VARCHAR( 100 ) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL;
ALTER TABLE `sed_forum_topics` CHANGE `ft_lastpostername` `ft_lastpostername` VARCHAR( 100 ) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL ;
ALTER TABLE `sed_forum_topics` CHANGE `ft_firstpostername` `ft_firstpostername` VARCHAR( 100 ) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL;
ALTER TABLE `sed_logger` CHANGE `log_name` `log_name` VARCHAR( 100 ) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL ;
ALTER TABLE `sed_online` CHANGE `online_name` `online_name` VARCHAR( 100 ) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL;
ALTER TABLE `sed_pages` CHANGE `page_author` `page_author` VARCHAR( 100 ) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL ;
ALTER TABLE `sed_pm` CHANGE `pm_fromuser` `pm_fromuser` VARCHAR( 100 ) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL ;
ALTER TABLE `sed_structure` CHANGE `structure_title` `structure_title` VARCHAR( 100 ) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL;
/* r372 Fix, adding new hook for MarkitUp!, add search url style config */
DELETE FROM `sed_plugins` WHERE `pl_code` = 'markitup' AND `pl_file` = 'markitup.ajax';
REPLACE INTO `sed_plugins` (`pl_id` ,`pl_hook` ,`pl_code` ,`pl_part` ,`pl_title` ,`pl_file` ,`pl_order` ,`pl_active`) VALUES (NULL , 'ajax', 'markitup', 'preview', 'MarkItUp!', 'markitup.ajax', '10', '1');
INSERT INTO `sed_config` (`config_owner`, `config_cat`, `config_order`, `config_name`, `config_type`, `config_value`, `config_default`, `config_text`) VALUES ('plug', 'search', '1', 'searchurl', 2, 'Normal', 'Normal,Single', 'Type of forum post link to use, Single uses a Single post view, while Normal uses the traditional thread/jump-to link');
/* r387 Structure page count fix for news */
UPDATE sed_structure SET structure_pagecount=structure_pagecount+1 WHERE structure_code='news';
/* r400 change poll type */
ALTER TABLE sed_polls MODIFY poll_type VARCHAR(100) NOT NULL DEFAULT 'index';
UPDATE sed_polls SET poll_type = 'index' WHERE poll_type = '0';
UPDATE sed_polls SET poll_type = 'forum' WHERE poll_type = '1';
/* r423 comments expand by default option */
INSERT INTO `sed_config` (`config_owner` ,`config_cat` ,`config_order` ,`config_name` ,`config_type` ,`config_value`) VALUES ('core', 'comments', '03', 'expand_comments', 3, '1');
/* r428 ratings allow rating change */
INSERT INTO `sed_config` (`config_owner` ,`config_cat` ,`config_order` ,`config_name` ,`config_type` ,`config_value`) VALUES ('core', 'ratings', '02', 'ratings_allowchange', 3, '0');
/* r429 turn on comments link on indexpolls */
INSERT INTO `sed_config` ( `config_owner` , `config_cat` , `config_order` , `config_name` , `config_type` , `config_value` , `config_default` , `config_text` ) VALUES ('plug', 'indexpolls', '3', 'commentslink', '3', '1', '', 'Show comments link');
/* r444 move $cfg['mainurl'] to config.php */
DELETE FROM `sed_config` WHERE `config_name` = 'mainurl';
|
<reponame>MirelaMileva/Databases-MSSQL-SoftUni-Homework
UPDATE Spaceships
SET LightSpeedRate += 1
WHERE Id BETWEEN 8 AND 12
|
USE eleicoes;
INSERT INTO SITUACAO (descricaoSituacao) VALUES ('DEFERIDO COM RECURSO');
INSERT INTO SITUACAO (descricaoSituacao) VALUES ('NAO CONHECIMENTO DO PEDIDO');
INSERT INTO SITUACAO (descricaoSituacao) VALUES ('INAPTO');
INSERT INTO SITUACAO (descricaoSituacao) VALUES ('FALECIDO');
INSERT INTO SITUACAO (descricaoSituacao) VALUES ('CASSADO COM RECURSO');
INSERT INTO SITUACAO (descricaoSituacao) VALUES ('INDEFERIDO COM RECURSO');
INSERT INTO SITUACAO (descricaoSituacao) VALUES ('INDEFERIDO');
INSERT INTO SITUACAO (descricaoSituacao) VALUES ('SUBSTITUTO PENDENTE DE JULGAMENTO');
INSERT INTO SITUACAO (descricaoSituacao) VALUES ('INELEGIVEL');
INSERT INTO SITUACAO (descricaoSituacao) VALUES ('CASSADO');
INSERT INTO SITUACAO (descricaoSituacao) VALUES ('INDEFERIDO POR IMPUGNACAO');
INSERT INTO SITUACAO (descricaoSituacao) VALUES ('CANCELAMENTO');
INSERT INTO SITUACAO (descricaoSituacao) VALUES ('DEFERIDO');
INSERT INTO SITUACAO (descricaoSituacao) VALUES ('SUB JUDICE');
INSERT INTO SITUACAO (descricaoSituacao) VALUES ('RENUNCIA');
INSERT INTO SITUACAO (descricaoSituacao) VALUES ('FALECIMENTO');
INSERT INTO SITUACAO (descricaoSituacao) VALUES ('IMPUGNACAO DE CANDIDATURA');
INSERT INTO SITUACAO (descricaoSituacao) VALUES ('APTO');
INSERT INTO SITUACAO (descricaoSituacao) VALUES ('CANCELADO');
INSERT INTO SITUACAO (descricaoSituacao) VALUES ('SUBSTITUTO MAJORITARIO PENDENTE DE JULGAMENTO');
INSERT INTO SITUACAO (descricaoSituacao) VALUES ('HOMOLOGACAO DE RENUNCIA');
INSERT INTO SITUACAO (descricaoSituacao) VALUES ('CASSACAO DO REGISTRO');
|
-- phpMyAdmin SQL Dump
-- version 4.6.6deb4
-- https://www.phpmyadmin.net/
--
-- Host: localhost:3306
-- Generation Time: May 29, 2018 at 11:08 PM
-- Server version: 5.7.21
-- PHP Version: 7.0.27-0+deb9u1
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 */;
--
-- Database: `google_maps`
--
-- --------------------------------------------------------
--
-- Table structure for table `markers`
--
CREATE TABLE `markers` (
`id` int(11) NOT NULL,
`lat` decimal(9,6) NOT NULL,
`lng` decimal(9,6) NOT NULL,
`title` varchar(255) NOT NULL,
`description` varchar(2000) NOT NULL,
`date_add` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`marker_type` smallint(5) UNSIGNED NOT NULL DEFAULT '0',
`image_type` char(4) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `marker_type`
--
CREATE TABLE `marker_type` (
`id` smallint(10) UNSIGNED NOT NULL,
`type_name` varchar(1024) COLLATE utf8_bin NOT NULL,
`image_type` varchar(5) COLLATE utf8_bin NOT NULL,
`image_width` smallint(6) UNSIGNED NOT NULL,
`image_height` smallint(5) UNSIGNED NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
-- --------------------------------------------------------
--
-- Table structure for table `storage`
--
CREATE TABLE `storage` (
`data_key` varchar(64) COLLATE utf8_bin NOT NULL,
`data_value` text COLLATE utf8_bin NOT NULL,
`last_update` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
--
-- Indexes for dumped tables
--
--
-- Indexes for table `markers`
--
ALTER TABLE `markers`
ADD PRIMARY KEY (`id`),
ADD KEY `date_add` (`date_add`),
ADD KEY `marker_type` (`marker_type`),
ADD KEY `lat` (`lat`),
ADD KEY `lng` (`lng`);
--
-- Indexes for table `marker_type`
--
ALTER TABLE `marker_type`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `storage`
--
ALTER TABLE `storage`
ADD PRIMARY KEY (`data_key`),
ADD KEY `last_update` (`last_update`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `markers`
--
ALTER TABLE `markers`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `marker_type`
--
ALTER TABLE `marker_type`
MODIFY `id` smallint(10) UNSIGNED NOT NULL AUTO_INCREMENT;
/*!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>db/seed_tables.sql
-- Seed users table
INSERT INTO users(surname, firstname, email, password)
VALUES ('Smith', 'John', '<EMAIL>', '<PASSWORD>');
INSERT INTO users(surname, firstname, email, password)
VALUES ('Sue', 'Mary', '<EMAIL>', '<PASSWORD>');
INSERT INTO users(surname, firstname, email, password)
VALUES ('Bond', 'James', '<EMAIL>', '<PASSWORD>');
-- Seed schedules table
INSERT INTO schedules(id_user, day, start_time, end_time)
VALUES (1, 1,'2021-03-09 14:00:00', '2021-03-09 16:00:00');
INSERT INTO schedules(id_user, day, start_time, end_time)
VALUES (1, 2, '2021-03-09 14:00:00', '2021-03-09 16:00:00');
INSERT INTO schedules(id_user, day, start_time, end_time)
VALUES (3, 4, '2021-03-09 08:00:00', '2021-03-09 18:00:00');
|
<gh_stars>0
-- phpMyAdmin SQL Dump
-- version 4.7.4
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1:3306
-- Generation Time: Feb 08, 2018 at 08:21 PM
-- Server version: 5.7.19
-- PHP Version: 5.6.31
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: `pmanagement`
--
-- --------------------------------------------------------
--
-- Table structure for table `comments`
--
DROP TABLE IF EXISTS `comments`;
CREATE TABLE IF NOT EXISTS `comments` (
`id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT,
`body` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
`url` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`user_id` int(10) UNSIGNED NOT NULL,
`commentable_id` int(10) UNSIGNED NOT NULL,
`commentable_type` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `comments_user_id_foreign` (`user_id`)
) ENGINE=MyISAM AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `comments`
--
INSERT INTO `comments` (`id`, `body`, `url`, `user_id`, `commentable_id`, `commentable_type`, `created_at`, `updated_at`) VALUES
(1, 'Lorem Ipsum is simply dummied text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy', 'fiverr.com', 1, 2, 'project', '2018-01-21 12:48:23', '2018-01-21 12:48:23'),
(2, 'This is new comment', 'www.fiverr.com', 1, 2, 'project', '2018-01-21 13:19:42', '2018-01-21 13:19:42'),
(3, 'It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution', 'www.fiverr.com', 1, 1, 'App\\Project', '2018-01-21 13:24:55', '2018-01-21 13:24:55');
-- --------------------------------------------------------
--
-- Table structure for table `companies`
--
DROP TABLE IF EXISTS `companies`;
CREATE TABLE IF NOT EXISTS `companies` (
`id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT,
`name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`description` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`user_id` int(10) UNSIGNED NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `companies_user_id_foreign` (`user_id`)
) ENGINE=MyISAM AUTO_INCREMENT=9 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `companies`
--
INSERT INTO `companies` (`id`, `name`, `description`, `user_id`, `created_at`, `updated_at`) VALUES
(1, 'Datasoft Bangladesh Ltd', 'Lorem Ipsum is simply dummied text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s when an unknown lol', 1, '2018-01-19 18:00:00', '2018-01-20 15:12:38'),
(5, 'Tut soft', 'Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an', 2, '2018-01-20 14:22:02', '2018-01-20 14:22:02'),
(4, 'Ledsoft bangladesh', 'Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an', 2, '2018-01-20 14:11:22', '2018-01-20 14:11:22'),
(8, 'softzanio', 'fds;kjkg[dg', 1, '2018-01-27 10:05:16', '2018-01-27 10:05:16'),
(7, 'Ledsoft bangladesh', 'Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an', 1, '2018-01-20 14:52:00', '2018-01-20 14:52:00');
-- --------------------------------------------------------
--
-- Table structure for table `migrations`
--
DROP TABLE IF EXISTS `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 AUTO_INCREMENT=11 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `migrations`
--
INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES
(10, '2014_10_12_000000_create_users_table', 3),
(2, '2014_10_12_100000_create_password_resets_table', 1),
(3, '2018_01_20_044453_create_companies_table', 2),
(4, '2018_01_20_045118_create_projects_table', 2),
(5, '2018_01_20_050038_create_tasks_table', 2),
(6, '2018_01_20_051043_create_comments_table', 2),
(7, '2018_01_20_053314_create_roles_table', 2),
(8, '2018_01_20_054447_create_project_user_table', 2),
(9, '2018_01_20_055059_create_task_user_table', 2);
-- --------------------------------------------------------
--
-- Table structure for table `password_resets`
--
DROP TABLE IF EXISTS `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;
-- --------------------------------------------------------
--
-- Table structure for table `projects`
--
DROP TABLE IF EXISTS `projects`;
CREATE TABLE IF NOT EXISTS `projects` (
`id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT,
`name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`description` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
`company_id` int(10) UNSIGNED DEFAULT NULL,
`user_id` int(10) UNSIGNED NOT NULL,
`days` int(10) UNSIGNED DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `projects_user_id_foreign` (`user_id`),
KEY `projects_company_id_foreign` (`company_id`)
) ENGINE=MyISAM AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `projects`
--
INSERT INTO `projects` (`id`, `name`, `description`, `company_id`, `user_id`, `days`, `created_at`, `updated_at`) VALUES
(1, 'Web development ', 'Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the le', 1, 1, 10, '2018-01-19 18:00:00', NULL),
(2, 'Apps Develop ', 'Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the le', 1, 1, 10, '2018-01-19 18:00:00', NULL),
(5, 'Why do we use it?', 'it is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as', 1, 1, NULL, '2018-01-21 13:16:22', '2018-01-21 13:16:22'),
(4, 'What is Lorem Ipsum?', 'Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dumm', 1, 1, NULL, '2018-01-21 13:12:03', '2018-01-21 13:12:03'),
(6, 'Web Pogramming', 'jgklfgfg', 8, 1, NULL, '2018-01-27 10:05:38', '2018-01-27 10:05:38');
-- --------------------------------------------------------
--
-- Table structure for table `project_user`
--
DROP TABLE IF EXISTS `project_user`;
CREATE TABLE IF NOT EXISTS `project_user` (
`id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT,
`project_id` int(10) UNSIGNED NOT NULL,
`user_id` int(10) UNSIGNED NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `project_user_user_id_foreign` (`user_id`),
KEY `project_user_project_id_foreign` (`project_id`)
) ENGINE=MyISAM AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `project_user`
--
INSERT INTO `project_user` (`id`, `project_id`, `user_id`, `created_at`, `updated_at`) VALUES
(3, 1, 1, NULL, NULL),
(2, 1, 2, NULL, NULL);
-- --------------------------------------------------------
--
-- Table structure for table `roles`
--
DROP TABLE IF EXISTS `roles`;
CREATE TABLE IF NOT EXISTS `roles` (
`id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT,
`name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `roles`
--
INSERT INTO `roles` (`id`, `name`, `created_at`, `updated_at`) VALUES
(1, 'admin', NULL, NULL),
(2, 'moderator', NULL, NULL),
(3, 'user', NULL, NULL);
-- --------------------------------------------------------
--
-- Table structure for table `tasks`
--
DROP TABLE IF EXISTS `tasks`;
CREATE TABLE IF NOT EXISTS `tasks` (
`id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT,
`name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`project_id` int(10) UNSIGNED NOT NULL,
`user_id` int(10) UNSIGNED NOT NULL,
`days` int(10) UNSIGNED DEFAULT NULL,
`hours` int(10) UNSIGNED DEFAULT NULL,
`company_id` int(10) UNSIGNED DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `tasks_user_id_foreign` (`user_id`),
KEY `tasks_project_id_foreign` (`project_id`),
KEY `tasks_company_id_foreign` (`company_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `task_user`
--
DROP TABLE IF EXISTS `task_user`;
CREATE TABLE IF NOT EXISTS `task_user` (
`id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT,
`task_id` int(10) UNSIGNED NOT NULL,
`user_id` int(10) UNSIGNED NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `task_user_user_id_foreign` (`user_id`),
KEY `task_user_task_id_foreign` (`task_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `users`
--
DROP TABLE IF EXISTS `users`;
CREATE TABLE IF NOT EXISTS `users` (
`id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT,
`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,
`first_name` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`middle_name` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`last_name` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`city` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`role_id` int(10) UNSIGNED NOT NULL DEFAULT '3',
`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 AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `users`
--
INSERT INTO `users` (`id`, `name`, `email`, `password`, `first_name`, `middle_name`, `last_name`, `city`, `role_id`, `remember_token`, `created_at`, `updated_at`) VALUES
(1, '<NAME>', '<EMAIL>', <PASSWORD>', NULL, NULL, NULL, NULL, 1, 'NAI3Gm7dYZIWGAQWuxPrsYsb6EoyTxj71qMszzfFy5yDd820i6L1r0ZXZ5Zy', '2018-01-20 14:19:55', '2018-01-20 14:19:55'),
(2, '<NAME>', '<EMAIL>', <PASSWORD>', NULL, NULL, NULL, NULL, 2, 'KBtZeQvSd2HQjqhsLR1m1gaDUy2dykObDhYVEZSx2LjnevfoqqGqmMYRG6ja', '2018-01-20 14:21:20', '2018-01-20 14:21:20');
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 */;
|
SELECT *
FROM {{ .TableFullName }}
WHERE id = ?;
|
<filename>backend/migrations/20220116152130_water.up.sql
CREATE TABLE "water" (
"id" SERIAL NOT NULL,
"date" TIMESTAMP NOT NULL,
"cubicmeter" float4 NOT NULL,
"createdAt" TIMESTAMP NOT NULL DEFAULT now(),
"updatedAt" TIMESTAMP NOT NULL DEFAULT now(),
CONSTRAINT "PK_8fe16d29fb45be6c0de0b2ed6a3" PRIMARY KEY ("id")
);
SELECT sqlx_manage_updated_at('water');
|
<filename>db/item_bodega.sql<gh_stars>0
-- phpMyAdmin SQL Dump
-- version 5.1.1
-- https://www.phpmyadmin.net/
--
-- Servidor: 127.0.0.1
-- Tiempo de generación: 07-03-2022 a las 16:59:25
-- Versión del servidor: 10.4.20-MariaDB
-- Versión de PHP: 7.4.22
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 */;
--
-- Base de datos: `god_cernet_2_0`
--
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `item_bodega`
--
CREATE TABLE `item_bodega` (
`id_bodega` int(11) NOT NULL COMMENT 'id principal de la tabla',
`id_item` int(11) NOT NULL COMMENT 'id principal de la tabla item',
`direccion` varchar(100) DEFAULT NULL COMMENT 'ubicación de la bodega',
`codigo_interno` varchar(20) DEFAULT NULL COMMENT 'Codigo interno asignado a la bodega',
`productos_almacena` text DEFAULT NULL COMMENT 'Productos que se almacenan en esta bodega',
`largo` varchar(100) DEFAULT NULL COMMENT 'medida largo de la bodega',
`ancho` varchar(100) DEFAULT NULL COMMENT 'altura de la bodega',
`superficie` varchar(100) DEFAULT NULL COMMENT 'superficie de la bodega',
`volumen` varchar(100) DEFAULT NULL COMMENT 'volumen de la bodega',
`altura` varchar(100) DEFAULT NULL COMMENT 'altura de la bodega',
`tipo_muro` varchar(50) DEFAULT NULL COMMENT 'Tipo de muro de la bodega',
`tipo_cielo` varchar(50) DEFAULT NULL COMMENT 'tipo de cielo de la bodega',
`s_climatizacion` varchar(150) DEFAULT NULL COMMENT 'Sistema de climatizacion de la bodega',
`s_monitoreo` varchar(2) DEFAULT NULL COMMENT 'Sistema de monitoreo de la temperatura',
`s_alarma` varchar(2) DEFAULT NULL COMMENT 'Sistema de monitoreo de temperatura alarmas',
`planos` varchar(150) DEFAULT NULL COMMENT 'Planos de la bodega',
`analisis_riesgo` varchar(2) DEFAULT NULL COMMENT 'Analisis de riesgos',
`ficha_estabilidad` varchar(2) DEFAULT NULL COMMENT 'Fichas de estabilidad de la bodega',
`id_usuario` int(10) DEFAULT NULL COMMENT 'id_usuario que registra la bodega',
`marca_bodega` varchar(100) DEFAULT 'NA',
`modelo_bodega` varchar(100) DEFAULT 'NA',
`orientacion_principal` varchar(100) DEFAULT 'NA',
`orientacion_recepcion` varchar(100) DEFAULT 'NA',
`orientacion_despacho` varchar(100) DEFAULT 'NA',
`num_puertas` varchar(100) DEFAULT 'NA',
`salida_emergencia` varchar(100) DEFAULT 'NA',
`cantidad_rack` varchar(100) DEFAULT 'NA',
`num_estantes` varchar(100) DEFAULT 'NA',
`altura_max_rack` varchar(100) DEFAULT 'NA',
`sistema_extraccion` varchar(100) DEFAULT 'NA',
`cielo_lus` varchar(100) DEFAULT 'NA',
`temp_max` varchar(100) DEFAULT 'NA',
`temp_min` varchar(100) DEFAULT 'NA',
`cantidad_iluminarias` varchar(100) DEFAULT 'NA',
`hr_max` varchar(100) DEFAULT 'NA',
`hr_min` varchar(100) DEFAULT 'NA',
`valor_seteado_temp` varchar(100) DEFAULT 'NA',
`valor_seteado_hum` varchar(100) DEFAULT 'NA',
`cantidad_ventana` varchar(100) DEFAULT 'NA',
`fecha_registro` timestamp NOT NULL DEFAULT current_timestamp() COMMENT 'Fecha de registro de la bodega'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Volcado de datos para la tabla `item_bodega`
--
INSERT INTO `item_bodega` (`id_bodega`, `id_item`, `direccion`, `codigo_interno`, `productos_almacena`, `largo`, `ancho`, `superficie`, `volumen`, `altura`, `tipo_muro`, `tipo_cielo`, `s_climatizacion`, `s_monitoreo`, `s_alarma`, `planos`, `analisis_riesgo`, `ficha_estabilidad`, `id_usuario`, `marca_bodega`, `modelo_bodega`, `orientacion_principal`, `orientacion_recepcion`, `orientacion_despacho`, `num_puertas`, `salida_emergencia`, `cantidad_rack`, `num_estantes`, `altura_max_rack`, `sistema_extraccion`, `cielo_lus`, `temp_max`, `temp_min`, `cantidad_iluminarias`, `hr_max`, `hr_min`, `valor_seteado_temp`, `valor_seteado_hum`, `cantidad_ventana`, `fecha_registro`) VALUES
(1, 1, 'Av. los leones, 382', 'Cod45', 'Productos que almacena', '12', '12', '12', '12', '12', 'Muro de hormigón', 'Cielo de hormigón', 'Mezclador de aire', 'Si', 'Si', 'Arquitectura', 'Si', 'Si', 2, '12', '12', '12', '12', '12', '12', '12', '12', '12', '12', '12', '12', '12', '12', '12', '12', '12', '12', '12', '12', '2022-02-09 15:08:50');
--
-- Índices para tablas volcadas
--
--
-- Indices de la tabla `item_bodega`
--
ALTER TABLE `item_bodega`
ADD PRIMARY KEY (`id_bodega`);
--
-- AUTO_INCREMENT de las tablas volcadas
--
--
-- AUTO_INCREMENT de la tabla `item_bodega`
--
ALTER TABLE `item_bodega`
MODIFY `id_bodega` int(11) NOT NULL AUTO_INCREMENT COMMENT 'id principal de la tabla', AUTO_INCREMENT=2;
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 */;
|
USE TelerikAcademy
BEGIN TRAN
ALTER TABLE Departments
DROP CONSTRAINT FK_Departments_Employees
ALTER TABLE WorkHours
DROP CONSTRAINT FK_WorkHours_Employees
DELETE FROM Employees
SELECT d.Name
FROM Employees e
JOIN Departments d
ON e.DepartmentID = d.DepartmentID
WHERE d.Name = 'Sales'
GROUP BY d.Name
ROLLBACK TRAN
|
USE SnakesAndLadder;
-- PROCEDURE "1"
drop procedure if exists CheckUserLogin;
DELIMITER //
CREATE PROCEDURE CheckUserLogin(pName varchar(50), pPassword varchar(50))
begin
declare lcOkPasswordCount int;
declare lcUserNameCount int;
declare lcLoginAttempts int;
DECLARE exit handler for sqlexception
BEGIN
ROLLBACK;
SHOW ERRORS LIMIT 1 ;
CALL DIAGNOSTIC('CheckUserLogin');
END;
DECLARE exit handler for sqlwarning
BEGIN
ROLLBACK;
SHOW WARNINGS LIMIT 1;
END;
START TRANSACTION;
select count(Username)
from Account
where Username = pName
into lcUserNameCount;
If lcUserNameCount = 1 THEN
select count(Username)
from Account
where Username = pName AND UserPassword = <PASSWORD>
into lcOkPasswordCount;
if lcOkPasswordCount = 1 then
Select 'LobbyZone' as message;
else
Update Account
SET AccountLoginAttempts = AccountLoginAttempts + 1
where Username = pName;
Select AccountLoginAttempts
from Account
where Username = pName
into lcLoginAttempts;
if lcLoginAttempts > 5 then
update Account
set AccountStatus = 'Locked'
where Username = pName;
Select 'LockedOut' as message;
else
Select 'LoginPage' as message;
end if;
end if;
else
Select 'FinishRegistration' as message;
end if;
COMMIT;
END //
DELIMITER ;
drop procedure if exists CheckUserAccount;
DELIMITER //
CREATE PROCEDURE CheckUserAccount(pName varchar(50))
begin
declare lcOkPasswordCount int;
declare lcUserNameCount int;
declare lcLoginAttempts int;
select count(Username)
from Account
where Username = pName
into lcUserNameCount;
If lcUserNameCount = 1 THEN
select count(Username)
from Account
where Username = pName
into lcOkPasswordCount;
if lcOkPasswordCount = 1 then
Select 'LobbyZone' as message;
else
Update Account
SET AccountLoginAttempts = AccountLoginAttempts + 1
where Username = pName;
Select AccountLoginAttempts
from Account
where Username = pName
into lcLoginAttempts;
if lcLoginAttempts > 5 then
update Account
set LockedStatus = 'Locked'
where Username = pName;
Select 'LockedOut' as message;
else
Select 'LoginPage' as message;
end if;
end if;
else
Select 'FinishRegistration' as message;
end if;
END //
DELIMITER ;
call CheckUserAccount('Daniel451');
-- Procedure 2
drop procedure if exists AdminEditLockedStatus;
DELIMITER //
CREATE PROCEDURE AdminEditLockedStatus(pName Varchar (50))
BEGIN
START TRANSACTION;
Select Username from account
where Username = pName;
update Account
set LockedStatus = 'Locked'
where Username = pName;
commit;
END//
DELIMITER ;
-- Procedure 3
drop procedure if exists UpdatePlayerPosition;
DELIMITER //
CREATE PROCEDURE UpdatePlayerPosition(pUsername varchar(50), pGameID int)
begin
declare lclocation int;
declare lcstartPosition int;
START TRANSACTION;
Select Username from Player
where Username = pUsername and GameID = pGameID;
set lclocation = (floor(RAND() * (6-1+1)) + 1);
if lclocation >= 100 then
Select PlayerStartPosition from Player
where Username = pUsername and GameID = pGameID
into lcstartPosition;
update Player
set PlayerEndPosition = lcstartPosition + lclocation
where Username = pUsername and GameID = pGameID;
else
Select 'The Player has reacehed 100' as message;
end if;
commit;
END //
DELIMITER ;
-- Procedure 2
drop procedure if exists NewPlayerAdd;
DELIMITER //
Create procedure NewPlayerAdd (pUsername varchar(50), pPassword varchar(50), pEmail varchar(50))
begin
START TRANSACTION;
Select count(Username) from Account
where Username = pUsername
into @countUser;
if @countUser = 1 then
Select 'NameExists' as message;
else
Select count(Email) from Account
where Email = pEmail
into @countEmail;
if @countEmail = 1 then
Select 'EmailExists' as message;
else
insert into Account (Username, UserPassword, Email, AdminPermission)
value (pUsername, pPassword, pEmail, 'No');
Select 'PlayerAdded' as message;
end if;
end if;
commit;
END //
DELIMITER ;
-- Procedure 2
drop procedure if exists AddNewPlayer;
DELIMITER //
Create procedure AddNewPlayer (pUsername varchar(50), pPassword varchar(50), pEmail varchar(50))
begin
START TRANSACTION;
Select count(Username) from Account
where Username = pUsername
into @countUser;
if @countUser = 1 then
Select 'NameExists' as message;
else
Select count(Email) from Account
where Email = pEmail
into @countEmail;
if @countEmail = 1 then
Select 'EmailExists' as message;
else
insert into Account (Username, UserPassword, Email, AdminPermission)
value (pUsername, pPassword, pEmail, 'No');
Select 'PlayerAdded' as message;
end if;
end if;
commit;
END //
DELIMITER ;
call AddNewPlayer('Superman', 'Superman','<EMAIL>');
drop procedure if exists PlayerLogsOut;
DELIMITER //
create procedure PlayerLogsOut(pUsername varchar(50))
begin
START TRANSACTION;
Select count(Username) from account
where Username = pUsername
into @countUser;
if @countUser = 1 then
Update Account
Set AccountStatus = 'Offline'
where Username = pUsername;
end if;
commit;
END //
DELIMITER ;
drop procedure if exists CheckAdminStatus;
DELIMITER //
create procedure CheckAdminStatus(pUsername varchar(50))
begin
Select count(Username) from account
where Username = pUsername
into @countUser;
if @countUser = 1 then
Select AdminPermission from Account
where Username = pUsername
into @AdPermission;
if @AdPermission = 'Yes' then
Select 'UserAdmin' as message;
else
Select 'UserNotAdmin' as message;
end if;
else
Select 'UsernameDoesntExit' as message;
end if;
END //
DELIMITER ;
call CheckAdminStatus('M');
drop procedure if exists AdminAddNewPlayer;
DELIMITER //
Create procedure AdminAddNewPlayer (pUsername varchar(50), pPassword varchar(50), pEmail varchar(50),isAdmin varchar(5))
begin
START TRANSACTION;
Select count(Username) from Account
where Username = pUsername
into @countUser;
if @countUser = 1 then
Select 'The Name already exists, Admin: Please enter a new user/player' as message;
else
Select count(Email) from Account
where Email = pEmail
into @countEmail;
if @countEmail = 1 then
Select 'The Email already exists, Admin: Please enter a new email address' as message;
else
insert into Account (Username, UserPassword, Email, AdminPermission)
value (pUsername,pPassword, pEmail, isAdmin);
Select 'The Admin added the playern to the system with Admin Permission' as message;
end if;
end if;
commit;
END //
DELIMITER ;
drop procedure if exists ListAllOnlinePlayers;
DELIMITER //
Create procedure ListAllOnlinePlayers (pStatus varchar(10))
BEGIN
START TRANSACTION;
Select AccountStatus from Account
where AccountStatus = pStatus;
if pStatus = 'Online' or 'Playing' then
SELECT Username, HighScore
FROM ACCOUNT
WHERE AccountStatus = pStatus
order by Username and HighScore;
end if;
commit;
END //
DELIMITER ;
drop procedure if exists ListAllPlayers;
DELIMITER //
Create procedure ListAllPlayers ()
BEGIN
select Username, HighScore
from Account
order by HighScore asc;
END //
DELIMITER ;
call ListAllPlayers();
drop procedure if exists AdminLisitingGamesOnAdminZone;
DELIMITER //
Create procedure AdminLisitingGamesOnAdminZone ()
BEGIN
select Username, UserPassword, Email, LockedStatus, AdminPermission
from Account
order by Username asc;
END //
DELIMITER ;
call AdminLisitingGamesOnAdminZone();
drop procedure if exists DisplayGamesAvailable;
DELIMITER //
Create procedure DisplayGamesAvailable ()
BEGIN
select GameID, Username, NumberOfPlayer, StatusOfGame
from Game
WHERE StatusOfGame = 'Running'
order by GameID asc;
END //
DELIMITER ;
call DisplayGamesAvailable();
drop procedure if exists ListAllGames;
DELIMITER //
Create procedure ListAllGames (pStatus varchar(20))
BEGIN
START TRANSACTION;
Select StatusOfGame from Game
where StatusOfGame = pStatus;
if pStatus = 'Running' then
SELECT GameID, NumberOfPlayer
FROM Game
where StatusOfGame = pStatus
order by GameID and NumberOfPlayer;
end if;
commit;
END //
DELIMITER ;
drop procedure if exists ListAllAdmins;
DELIMITER //
Create procedure ListAllAdmins (pPermission varchar (10))
BEGIN
START TRANSACTION;
Select AdminPermission from Account
where AdminPermission = pPermission;
if pPermission = 'Yes' then
SELECT Username, AccountStatus
FROM Account
where AdminPermission = pPermission
order by Username and AccountStatus;
end if;
commit;
END //
DELIMITER ;
drop procedure if exists AdminListingAllGames;
DELIMITER //
SET autocommit = 0;
Create procedure AdminListingAllGames ()
BEGIN
-- DECLARE exit handler for sqlexception
-- BEGIN
-- ROLLBACK;
--
-- -- SHOW ERRORS LIMIT 1 ;
-- CALL DIAGNOSTIC('AdminListingAllGames');
-- END;
-- DECLARE exit handler for sqlwarning
-- BEGIN
-- ROLLBACK;
-- SHOW WARNINGS LIMIT 1;
-- END;
START TRANSACTION;
SELECT GameID, NumberOfPlayer, StatusOfGame, AccountStatus
FROM Game
JOIN Account
ON Account.Username = Game.Username
order by GameID;
commit;
END //
DELIMITER ;
drop procedure if exists AdminEditAdminStatus;
DELIMITER //
CREATE PROCEDURE AdminEditAdminStatus(pUsername Varchar (50))
BEGIN
START TRANSACTION;
Select AdminPermission from Account
where Username = pUsername
into @adPermission;
Set @adPermission = 'Yes';
update Account
set AdminPermission = @adPermission
where Username = pUsername;
commit;
END//
DELIMITER ;
drop procedure if exists EnteringCorrectGame;
DELIMITER //
CREATE PROCEDURE EnteringCorrectGame(pGameID int, pUsername varchar(50))
BEGIN
START TRANSACTION;
Select StatusOfGame from Game
where GameID = pGameID
into @gameStatus;
if @gameStatus = 'Running' then
Select NumberOfPlayer from Game
where GameID = pGameID
into @totalPlayers;
if @totalPlayers > 4 then
Select 'Maximum 4 players can play the game. So, please enter new GameID to join the game' as message;
else
call CountPlayerSetColor(pUsername, pGameID);
Select 'The Player can enter the game' as message;
end if;
end if;
commit;
END//
DELIMITER ;
drop procedure if exists ExitGameApplication;
DELIMITER //
CREATE PROCEDURE ExitGameApplication(pUsername varchar(50))
begin
Select Username from Account
where Username = pUsername
into @AccountStat;
Set @AccountStat = 'Offline';
Update Account
Set AccountStatus = @AccountStat
where Username = pUsername;
Select 'The User is now offline.' as message;
END //
DELIMITER ;
drop procedure if exists CreateGame;
DELIMITER //
CREATE PROCEDURE CreateGame(pUsername varchar(50), pGameID int)
BEGIN
START TRANSACTION;
Select count(GameID)
from Game
where Username = pUsername and GameID = pGameID
into @countGameID;
if @countGameID = 1 then
Select 'The game already exists' as message;
else
Select 'Game is created' as message;
insert into Game (GameID, Username, StatusOfGame, DatePlayed)
values (pGameID, pUsername, 'Running', SysDate());
call CountPlayerSetColor (pUsername, pGameID);
end if;
commit;
END //
DELIMITER ;
drop procedure if exists ExitGame;
DELIMITER //
CREATE PROCEDURE ExitGame(pGameID int, pUsername varchar(50), pHighScore int, pTotalGamePlayed int, pTotalGameWon int, pGameWon varchar(10))
BEGIN
START TRANSACTION;
Select * from Account
where Username = pUsername;
update Account
set AccountStatus = 'Online',
HighScore = CASE when pHighScore > HighScore THEN pHighScore
when pHighScore <= HighScore THEN HighScore
end,
TotalGameWon = CASE when pGameWon = 'Yes' then TotalGameWon + 1
when pGameWon = 'No' then TotalGameWon
when TotalGameWon is null and pGameWon = 'Yes' then 1
when TotalGameWon is null and pGameWon = 'No' then 0
end,
TotalGamePlayed = TotalGamePlayed + 1
where Username = pUsername;
commit;
END //
DELIMITER ;
drop procedure if exists GenerateNumberOnDice;
DELIMITER //
SET autocommit = 0;
CREATE PROCEDURE GenerateNumberOnDice(pUsername varchar (50), pGameID int)
BEGIN
declare lcRollDice int;
-- DECLARE exit handler for sqlexception
-- BEGIN
-- ROLLBACK;
--
-- -- SHOW ERRORS LIMIT 1 ;
-- CALL DIAGNOSTIC('GenerateNumberOnDice');
-- END;
-- DECLARE exit handler for sqlwarning
-- BEGIN
-- ROLLBACK;
-- SHOW WARNINGS LIMIT 1;
-- END;
START TRANSACTION;
SET lcRollDice = floor(RAND() * (6-1+1)) + 1;
Update Game
set NumberOnDice = lcRollDice
where Username = pUsername and GameID = pGameID;
Select NumberOnDice
from Game
where pUsername = Username;
SELECT 'DICE ROLL IS GENERATED' AS MESSAGE;
commit;
END //
DELIMITER ;
drop procedure if exists MovePlayer;
DELIMITER //
CREATE PROCEDURE MovePlayer(pTokenID int, pGameID int, pUsername varchar(50))
BEGIN
declare lcRollResult int;
declare lcLocation int;
declare lcObstacleEnd int;
declare lcCountObstacleStart int;
START TRANSACTION;
select LocationNumber
from GamePlayToken
where TokenID = pTokenID and GameID = pGameID
into lcLocation;
SET lcRollResult = floor(RAND() * (6-1+1)) + 1;
if lcLocation + lcRollResult >= 100 then
call UpdateGameWon(pUsername,pGameID);
Select 'The Player Won the Game' as message;
else
Update GamePlayToken
set LocationNumber = LocationNumber + lcRollResult
where TokenID = pTokenID;
Select ObstacleEndPosition
from SnakeLadder
where ObstacleStartPosition = lcLocation + lcRollResult
into lcObstacleEnd;
if lcObstacleEnd is not null then
Update GamePlayToken
set LocationNumber =lcObstacleEnd
where TokenID = pTokenID;
end if;
select 'player moved' as message;
end if;
END //
DELIMITER ;
drop procedure if exists CountPlayerSetColor;
DELIMITER //
CREATE PROCEDURE CountPlayerSetColor(pUsername varchar(50), pGameID int)
begin
START TRANSACTION;
Select count(NumberOfPlayer) from Game
where GameID = pGameID and Username = pUsername
into @countPlayer;
if @countPlayer = 1 then
Select ColorOfPlayer from Player
where Username = pUsername and GameID = pGameID
into @playerColor;
Set @playerColor = 'Red';
Update Player
Set ColorOfPlayer = @playerColor
where Username = pUsername and GameID = pGameID;
elseif @countPlayer = 2 then
Select ColorOfPlayer from Player
where Username = pUsername and GameID = pGameID
into @playerColor;
Set @playerColor = 'Blue';
Update Player
Set ColorOfPlayer = @playerColor
where Username = pUsername and GameID = pGameID;
elseif @countPlayer = 3 then
Select ColorOfPlayer from Player
where Username = pUsername and GameID = pGameID
into @playerColor;
Set @playerColor = 'Green';
Update Player
Set ColorOfPlayer = @playerColor
where Username = pUsername and GameID = pGameID;
elseif @countPlayer = 4 then
Select ColorOfPlayer from Player
where Username = pUsername and GameID = pGameID
into @playerColor;
Set @playerColor = 'Yellow';
Update Player
Set ColorOfPlayer = @playerColor
where Username = pUsername and GameID = pGameID;
end if;
commit;
END //
DELIMITER ;
drop procedure if exists GameStatus;
DELIMITER //
CREATE PROCEDURE GameStatus (pGameID int)
begin
Select StatusOfGame from Game
where GameID = pGameID
into @StatusGame;
if @StatusGame = 'Running' then
Select GameScore from Game
where GameID = pGameID
into @PlayerScore;
update Game
set GameScore = GameScore + @PlayerScore
where GameID = pGameID;
end if;
end//
DELIMITER ;
call GameStatus (3021);
drop procedure if exists SetAdminStatus;
DELIMITER //
CREATE PROCEDURE SetAdminStatus(pName Varchar (50))
BEGIN
START TRANSACTION;
Select AdminPermission from Account
where Username = pName;
UPDATE Account
SET AdminPermission = 'Yes'
WHERE Username = pName;
END //
DELIMITER ;
drop procedure if exists CheckingSnakesAndLadder;
DELIMITER //
CREATE PROCEDURE CheckingSnakesAndLadder(pTokenID int, pUsername varchar(50), pGameID int)
BEGIN
declare diceNumber int;
declare TurnPlayer varchar (10);
declare playerLocation int;
START TRANSACTION;
Select NumberOnDice
from Game
where GameID = pGameID
into diceNumber;
update GamePlayToken
set LocationNumber = LocationNumber + diceNumber
where TokenID = pTokenID;
call MovePlayer(pTokenID, pGameID, pUsername);
if diceNumber = 6 then
call GenerateNumberOnDice(pUsername, pGameID);
call PlayerTurn (pTokenID, pUsername, pGameID);
end if;
END //
DELIMITER ;
drop procedure if exists OrderListOfGames;
DELIMITER //
SET autocommit = 0;
CREATE PROCEDURE OrderListOfGames()
BEGIN
-- DECLARE exit handler for sqlexception
-- BEGIN
-- ROLLBACK;
--
-- -- SHOW ERRORS LIMIT 1 ;
-- CALL DIAGNOSTIC('OrderListOfGames');
-- END;
-- DECLARE exit handler for sqlwarning
-- BEGIN
-- ROLLBACK;
-- SHOW WARNINGS LIMIT 1;
-- END;
START TRANSACTION;
select Username, GameID, NumberOfPlayer
from Game
order by Username asc;
commit;
END //
DELIMITER ;
drop procedure if exists UpdateGameWon;
DELIMITER //
CREATE PROCEDURE UpdateGameWon(pUsername varchar(50), pGameID int)
BEGIN
Select PlayerScore
from Player
where Username = pUsername and GameID = pGameID
into @Score;
Update Game
Set GameScore = @Score
where GameID = pGameID and Username = pUsername;
Select TotalGameWon
from Account
where Username = pUsername
into @GameWon;
Update Account
Set TotalGameWon = @GameWon + 1
where Username = pUsername;
END //
DELIMITER ;
drop procedure if exists UpdatingGamePlayed;
DELIMITER //
CREATE PROCEDURE UpdatingGamePlayed(pGameID int, pUsername varchar(50))
BEGIN
Select CurrentTurn
from Game where Username = pUsername and GameID = pGameID
into @GamePlayed;
Update Game
set CurrentTurn = @GamePlayed
where Username = pUsername and GameID = pGameID;
Select TotalGamePlayed
from Account
where Username = pUsername
into @TotalPlayed;
Update Account
set TotalGamePlayed = @TotalPlayed + 1
where Username = pUsername;
END //
DELIMITER ;
drop procedure if exists PlayerTurn;
DELIMITER //
SET autocommit = 0;
CREATE PROCEDURE PlayerTurn(pTokenID int, pUsername varchar(50), pGameID int)
BEGIN
declare diceNumber int;
declare TurnPlayer varchar (10);
declare playerLocation int;
DECLARE exit handler for sqlexception
BEGIN
ROLLBACK;
-- SHOW ERRORS LIMIT 1 ;
CALL DIAGNOSTIC('PlayerTurn');
END;
DECLARE exit handler for sqlwarning
BEGIN
ROLLBACK;
SHOW WARNINGS LIMIT 1;
END;
START TRANSACTION;
Select NumberOnDice
from Game
where GameID = pGameID
into diceNumber;
update GamePlayToken
set LocationNumber = LocationNumber + diceNumber
where TokenID = pTokenID;
if diceNumber = 6 then
call GenerateNumberOnDice(pUsername, pGameID);
call PlayerTurn (pTokenID, pUsername, pGameID);
end if;
commit;
END //
DELIMITER ;
drop procedure if exists TerminatingAGame;
DELIMITER //
CREATE PROCEDURE TerminatingAGame(pGameID int, pUsername varchar(50))
BEGIN
declare statusGame varchar (50);
declare playerScore int;
START TRANSACTION;
SELECT StatusOfGame
from Game
where GameID = pGameID
into statusGame;
if statusGame = 'Running' then
Select GameScore from Game
where GameID = pGameID
into playerScore;
update Game
set GameScore = playerScore, StatusOfGame = 'Terminated'
where GameID = pGameID;
call UpdatingGamePlayed(pGameID,pUsername);
SELECT 'Game is Terminated' as message;
else
select 'The game doesnt exist. Please enter a valid game to be Terminated' as message;
end if;
commit;
END //
DELIMITER ;
drop procedure if exists AddingPlayer;
DELIMITER //
SET autocommit = 0;
CREATE PROCEDURE AddingPlayer(pGameID int, pUsername varchar(50))
BEGIN
declare playerNumber int;
declare countUsername int;
declare countExistingPlayer int;
declare GameStatus varchar (50);
declare countGame int;
DECLARE exit handler for sqlexception
BEGIN
ROLLBACK;
-- SHOW ERRORS LIMIT 1 ;
CALL DIAGNOSTIC('AddingPlayer');
END;
DECLARE exit handler for sqlwarning
BEGIN
ROLLBACK;
SHOW WARNINGS LIMIT 1;
END;
START TRANSACTION;
select count(GameID)
from Game
where GameID = pGameID
into countGame;
if countGame = 1 then -- if the game exists or not, if the game exists it will run the game accordingly.
select StatusOfGame, NumberOfPlayer
from Game
where GameID = pGameID
into GameStatus, countExistingPlayer;
select count(Username)
from Game
where Username = pUsername
into countUsername;
if countUsername > 5 then
Select GameID from Game
where GameID = pGameID
into playerNumber;
Select PlayerNumber from Game
where playerNumber = PlayerNumber + 1
into playerNumber;
Update Game
set NumberOfPlayer = playerNumber
where GameID = pGameID;
else
Select 'The Number of Player is more than 4. Please Join another Game' as message;
end if;
end if;
commit;
END //
DELIMITER ;
drop procedure if exists dropexistingplayer;
DELIMITER //
create procedure dropexistingplayer(pUsername varchar(50))
Begin
START TRANSACTION;
Select count(Username) from Account
where Username = pUsername
into @countUser;
if @countUser != 1 then
Select 'The Username doesnt exist.' as message;
else
delete from Account
where Username = pUsername;
Select 'The User has been deleted.ExitGame' as message;
end if;
commit;
END //
DELIMITER ;
drop procedure if exists EditExistingPlayers;
DELIMITER //
create procedure EditExistingPlayers(pUsername varchar(50), pUserPassword varchar(50), pEmail varchar(50), pAdminPermission varchar(20), pLockedStatus varchar(20))
begin
Select count(Username) from Account
where Username = pUsername
into @countUser;
if @countUser != 1 then
Select 'The user doesnt exist' as message;
else
Select count(Email) from Account
where Email = pEmail
into @countEmail;
if @countEmail != 1 then
Select 'The email doesnt exist' as message;
else
Select count(UserPassword) from Account
where UserPassword = <PASSWORD>
into @countPassword;
if @countPassword !=1 then
Select 'The User password is incorrect' as message;
else
Select 'The Player Details is displayed to be edited' as message;
update Account
set LockedStatus = 'Unlocked'
where Username = pUsername;
update Account
set AdminPermission = 'Yes'
where Username = pUsername;
end if;
end if;
end if;
END //
DELIMITER ;
call CheckUserLogin('Daniel451', '<PASSWORD>');
call AdminEditLockedStatus('Kiamon32');
Call UpdatePlayerPosition('Miles87T', 3024);
call NewPlayerAdd ('Kyle32', '<PASSWORD>', '<EMAIL>');
call PlayerLogsOut('Russel32');
call AdminAddNewPlayer ('Lexus32', 'Lexus@32', '<EMAIL>', 'Yes');
call ListAllOnlinePlayers('Online');
Call ListAllGames('Running');
Call AdminListingAllGames();
call AdminEditAdminStatus ('Kanther6125');
call EnteringCorrectGame(3028, 'Banther6126');
call CreateGame("Fienza781", 3030);
call ExitGame (3021, 'Milton619', 70, 2, 1, 'No');
call GenerateNumberOnDice ('Milton619', 3021);
call MovePlayer(1, 3021, 'Milton619');
Call CountPlayerSetColor('Banther6126', 3028);
call SetAdminStatus('Russel32');
call CheckingSnakesAndLadder(1, 'Milton619', 3021);
call OrderListOfGames();
call UpdateGameWon('Milton619', 3021);
call UpdatingGamePlayed(3021, 'Milton619');
call PlayerTurn(1, 'Milton619', 3021);
call TerminatingAGame(3021, 'Milton619');
call AddingPlayer(3021, 'Daniel452');
call dropexistingplayer('Kane');
call CheckAdminStatus ('Milton619');
call ExitGameApplication('Ryan245');
call EditExistingPlayers('Leon236','<PASSWORD>','<EMAIL>', 'Yes', 'Unlocked');
|
<filename>db/schema.sql
-- gifs
CREATE TABLE IF NOT EXISTS "gifs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "basename" varchar, "directory" varchar, "size" integer, "md5" varchar, "shared_link_id" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL);
CREATE INDEX IF NOT EXISTS "index_gifs_on_shared_link_id" ON "gifs" ("shared_link_id");
CREATE INDEX IF NOT EXISTS "index_gifs_on_md5" ON "gifs" ("md5");
CREATE INDEX IF NOT EXISTS "index_gifs_on_basename_and_directory" ON "gifs" ("basename", "directory");
-- shared_links
CREATE TABLE IF NOT EXISTS "shared_links" ("id" varchar NOT NULL PRIMARY KEY, "gif_id" integer, "remote_path" varchar, "count" integer DEFAULT 0, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, CONSTRAINT "fk_golang_35031788c2"
FOREIGN KEY ("gif_id")
REFERENCES "gifs" ("id")
);
CREATE INDEX IF NOT EXISTS "index_shared_links_on_id" ON "shared_links" ("id");
CREATE INDEX IF NOT EXISTS "index_shared_links_on_gif_id" ON "shared_links" ("gif_id");
CREATE INDEX IF NOT EXISTS "index_shared_links_on_count" ON "shared_links" ("count");
|
<filename>Miscellaneous/StoredProcedures/Backup_2015 March 23/H3GISearchForOrder_backup_250806.sql
/*********************************************************************************************************************
**
** Procedure Name : dbo.h3giSearchForOrder
** Author : <NAME>
** Date Created : 09/05/2005
** Parameters :
** Return Values :
**Tested
**On all permutations : No
** Version : 1.0.0
** Description : Search for a record given a number of results
**Change Control : 09/11/2005 - <NAME> - Added searchFrom CAF (for retailers creating CAF forms)
** - included filter for RetailerCode and StoreCode
**
** : 07/03/2006 - <NAME> - include PaymentMethod in all searches
** : 30/03/2006 - <NAME> - check h3giSalesCapture_Audit for prepay
** : 25/04/2006 - <NAME> - select registration name and address
** : 19/06/2006 - <NAME> - Allow search for Web PrePay orders
** : 21/07/2006 - <NAME> - Filter out orders which are not Ported for CAF search
**********************************************************************************************************************/
CREATE PROCEDURE [dbo].[H3GISearchForOrder_backup_250806]
@MaxSearchResults INT =10,
@OrderRef INT = -999,
@Address VARCHAR(1000) = '',
@OrderDateFrom VARCHAR(50) = '',
@OrderDateTo VARCHAR(50) = '',
@Status INT = -100,
@ForeName VARCHAR(50) = '',
@SurName VARCHAR(50) = '',
@HomephoneArea VARCHAR(4) = '',
@HomephoneNum VARCHAR(20) = '',
@ContphoneArea VARCHAR(4) = '',
@ContphoneNum VARCHAR(20) = '',
@dobDD INT = -1,
@dobMM INT = -1,
@dobYYYY INT = -1,
@PaymentMethod SMALLINT = -1,
@searchfrom varchar(20) = '',
@RetailerCode varchar(20) = '',
@StoreCode varchar(20) = '',
@Ban varchar(10) = NULL
AS
DECLARE
@Err int,
@SQL NVARCHAR(4000),
@WHERESQL NVARCHAR(4000),
@Params NVARCHAR(1000),
@channelCode VARCHAR(20)
DECLARE @B4Nforename varchar(50)
DECLARE @B4Nsurname varchar(50)
DECLARE @B4Naddress varchar (500)
DECLARE @REGforename varchar(50)
DECLARE @REGsurname varchar(50)
DECLARE @REGaddress varchar (500)
-- Build Insert SQL
SET @SQL = ' SELECT TOP ' + CAST(@MaxSearchResults AS VARCHAR) +' B4N.OrderRef AS orderref, B4N.BillingForeName as Forename,H3G.initials as initials, B4N.BillingSurName AS Surname, B4N.ccNumber AS ccNumber, CHANNEL.channelName as channel, '
SET @SQL = @SQL + ' (SELECT b4nClassDesc FROM dbo.b4nClassCodes WHERE b4nClassSysID= ' +char(39)+'StatusCode' +char(39)+' and b4nClassCode=cast(B4N.Status as varchar(20)) AND b4nValid='+char(39)+'Y'+char(39)+ ') AS Status,'
SET @SQL = @SQL + ' H3G.channelCode AS channelCode, ch.channelName, '
SET @SQL = @SQL + ' H3G.billingHouseNumber as housenumber, H3G.billingHouseName as housename , B4N.billingAddr2 as address2 ,B4N.billingAddr3 as address3, + '
SET @SQL = @SQL + ' B4N.billingCity as city,B4N.billingCounty as county ,B4N.billingCountry as country , '
SET @SQL = @SQL + ' B4N.OrderDate as orderdate, IsNull(sequence_no, 0) as ProvisioningNo, IsNull(AU.userName, '''') as lock, '
SET @SQL = @SQL + ' isnull(UPG.BillingAccountNumber, '''') as BAN, '
SET @SQL = @SQL + ' isnull(VOP.PrePay,''-1'') as PrePay '
--<NAME> - join on the registration table to get a name and address for PrePay orders (defect 751)
SET @SQL = @SQL + ', isnull(REG.firstname, '''') as RegFirstName, isnull(REG.surname, '''') as RegSurName, '
SET @SQL = @SQL + ' isnull(REG.addrHouseNumber, '''') as RegHouseNumber, isnull(REG.addrHouseName, '''') as RegHouseName, '
SET @SQL = @SQL + ' isnull(REG.addrStreetName, '''') as RegStreetName, isnull(REG.addrLocality, '''') as RegLocality, '
SET @SQL = @SQL + ' isnull(REG.addrTownCity, '''') as RegTownCity, isnull(REG.addrCounty, '''') as RegCounty, '
SET @SQL = @SQL + ' isnull(REG.addrCountry, '''') as RegCountry, isnull(REG.middleInitial, '''') as RegInitial '
-- End of defect 751 change
SET @SQL = @SQL + ' FROM b4nOrderHeader B4N JOIN h3giOrderHeader H3G ON B4N.OrderRef = H3G.OrderRef '
SET @SQL = @SQL + ' left outer join h3giSalesCapture_Audit SCA on B4N.OrderRef = SCA.OrderRef '
--Check for PrePay bit
IF(@PaymentMethod <> -1)
BEGIN
SET @SQL = @SQL + ' AND SCA.PrePay = ' + cast(@PaymentMethod as varchar(2))
END
ELSE IF (@searchfrom NOT IN ('view'))
BEGIN
SET @SQL = @SQL + ' AND SCA.PrePay != 2'
END
SET @SQL = @SQL + ' LEFT OUTER JOIN h3giChannel CHANNEL on H3G.channelCode = CHANNEL.channelCode '
SET @SQL = @SQL + ' LEFT OUTER JOIN h3giUpgrade UPG on H3G.upgradeId = UPG.upgradeId '
SET @SQL = @SQL + ' inner join viewOrderPhone VOP on VOP.OrderRef = B4N.OrderRef'
SET @SQL = @SQL + ' left outer join h3giLock L on B4N.OrderRef = L.OrderID AND TypeID = 1 '
SET @SQL = @SQL + ' left outer join smApplicationUsers AU on AU.userID = L.userID '
--<NAME> - join on the registration table to get a name and address for PrePay orders (defect 751)
SET @SQL = @SQL + ' left outer join h3giRegistration REG on REG.orderRef = B4N.OrderRef'
SET @SQL = @SQL + ', h3giChannel ch with(nolock) WHERE H3G.channelcode = ch.channelcode AND'
--Numbers only so must be equal if its not the default
IF(@OrderRef>0) SET @SQL = @SQL+' B4N.OrderRef = @OrderRef AND '
IF((NOT (@searchfrom = 'credit' OR @searchfrom = 'CAF')) AND @Ban IS NULL)
BEGIN
SET @channelCode = (select channelCode from h3gichannel with(nolock) where channelName = '3rd Party Retail')
SET @SQL = @SQL+' H3G.channelCode <> ' + char(39) + @channelCode + char(39) + ' AND '
END
IF(@RetailerCode <> '')
SET @SQL = @SQL+' H3G.RetailerCode = ' + char(39) + @RetailerCode + char(39) + ' AND '
IF(@StoreCode <> '')
SET @SQL = @SQL+' H3G.StoreCode = ' + char(39) + @StoreCode + char(39) + ' AND '
IF(@Ban IS NOT NULL)
SET @SQL = @SQL + ' UPG.BillingAccountNumber = ' + @Ban + ' AND '
IF (@searchfrom = 'CAF')
SET @SQL = @SQL + ' H3G.intentionToPort = ''Y'' AND '
--<NAME> - defect 800 - either search b4OrderHeader or h3giRegistration for name and address
SET @B4Nforename = ' B4N.BillingForeName LIKE @ForeName '
SET @B4Nsurname = ' B4N.BillingSurName LIKE @SurName '
SET @B4Naddress = ' replace(ltrim(rtrim(H3G.billingHouseNumber)), '' '', '''') +
replace(ltrim(rtrim(H3G.billingHouseName)), '' '', '''') +
replace(ltrim(rtrim(billingAddr2)), '' '', '''') +
replace(ltrim(rtrim(billingAddr3)), '' '', '''') +
replace(ltrim(rtrim(billingCity)), '' '', '''') +
replace(ltrim(rtrim(billingCounty)), '' '', '''') +
replace(ltrim(rtrim(billingCountry)), '' '', '''')
LIKE ''%' + @Address + '%'' '
SET @REGforename = ' REG.firstname LIKE @ForeName '
SET @REGsurname = ' REG.surname LIKE @SurName '
SET @REGaddress = ' replace(ltrim(rtrim(REG.addrHouseNumber)), '' '', '''') +
replace(ltrim(rtrim(REG.addrHouseName)), '' '', '''') +
replace(ltrim(rtrim(REG.addrStreetName)), '' '', '''') +
replace(ltrim(rtrim(REG.addrLocality)), '' '', '''') +
replace(ltrim(rtrim(REG.addrTownCity)), '' '', '''') +
replace(ltrim(rtrim(REG.addrCounty)), '' '', '''') +
replace(ltrim(rtrim(REG.addrCountry)), '' '', '''')
LIKE ''%' + @Address + '%'' '
if(@searchfrom = 'ordered') -- Even though they are PrePay, Web orders should not look for registration info
BEGIN
IF(@ForeName <> '') SET @SQL = @SQL + @B4Nforename + ' AND '
IF(@SurName <> '') SET @SQL = @SQL + @B4Nsurname + ' AND '
IF(LEN(@Address) > 0) SET @SQL = @SQL + @B4Naddress + ' AND '
END
ELSE IF (@PaymentMethod = 0) --Contract
BEGIN
IF(@ForeName <> '') SET @SQL = @SQL + @B4Nforename + ' AND '
IF(@SurName <> '') SET @SQL = @SQL + @B4Nsurname + ' AND '
IF(LEN(@Address) > 0) SET @SQL = @SQL + @B4Naddress + ' AND '
END
ELSE IF (@PaymentMethod = 1) --PrePay
BEGIN
IF(@ForeName <> '') SET @SQL = @SQL + @REGforename + ' AND '
IF(@SurName <> '') SET @SQL = @SQL + @REGsurname + ' AND '
IF(LEN(@Address) > 0) SET @SQL = @SQL + @REGaddress + ' AND '
END
ELSE IF (@PaymentMethod = -1)--Either Contract OR PrePay
BEGIN
IF(@ForeName <> '') SET @SQL = @SQL + '(' + @REGforename + ' OR ' + @B4Nforename + ') AND '
IF(@SurName <> '') SET @SQL = @SQL + '(' + @REGsurname + ' OR ' + @B4Nsurname + ') AND '
IF(LEN(@Address) > 0) SET @SQL = @SQL + '(' + @REGaddress + ' OR ' + @B4Naddress + ') AND '
END
--<NAME> - end of change for defect 800
--search by date of birth
IF(@dobDD>0 AND @dobMM>0 AND @dobYYYY>0)
BEGIN
SET @SQL = @SQL +' H3G.dobDD=@dobDD AND H3G.dobMM =@dobMM AND H3G.dobYYYY=@dobYYYY AND '
END
--home phone number
IF(@HomephoneArea <> '')
BEGIN
SET @SQL = @SQL+' H3G.homePhoneAreaCode =@HomephoneArea AND '
END
--home phone number
IF(@HomephoneNum <> '')
BEGIN
SET @SQL =@SQL+' H3G.homePhoneNumber = @HomephoneNum AND '
END
--Day time contact number
IF(@ContphoneArea <>'')
BEGIN
SET @SQL = @SQL+' H3G.daytimecontactAreaCode = @ContphoneArea AND '
END
--Day time contact number
IF(@ContphoneNum <>'')
BEGIN
SET @SQL = @SQL+' H3G.daytimecontactNumber = @ContphoneNum AND '
END
--@OrderDateFrom @OrderDateTo
--if you have a valid range
IF(@OrderDateFrom <> '' and @OrderDateTo <> '')
BEGIN
SET @SQL = @SQL+' B4N.OrderDate BETWEEN CONVERT(SMALLDATETIME, @OrderDateFrom, 103) AND CONVERT(SMALLDATETIME, @OrderDateTo, 103) AND '
END
--filter by status
IF(@Status<900 and @Status>0 )
BEGIN
SET @SQL = @SQL +' B4N.Status = ' + CONVERT(VARCHAR(10), @Status) + ' AND '
END
--bring back all declined
IF(@Status=901 and @Status>0)
BEGIN
SET @SQL = @SQL +' B4N.Status IN(305,304 ) AND '
END
--bring back all credit
IF(@Status=900 and @Status>0)
BEGIN
SET @SQL = @SQL+ ' B4N.Status IN(300,302 ) AND '
END
--bring back all statuses
IF(@Status=902 and @Status>0)
BEGIN
SET @SQL = @SQL+ ' B4N.Status IN(select distinct(b4nClasscode) from b4nclasscodes where b4nclassSysID = '+char(39)+'statuscode'+char(39)+') AND '
END
--Check for PrePay bit
IF(@PaymentMethod <> -1)
BEGIN
SET @SQL = @SQL + ' VOP.PrePay = ' + cast(@PaymentMethod as varchar(2)) + ' AND '
END
ELSE IF (@searchfrom NOT IN ('view'))
BEGIN
SET @SQL = @SQL + ' VOP.PrePay != 2 AND '
END
--check for a trailing and
SET @SQL = RTRIM(@SQL)
SET @SQL = SUBSTRING(@SQL,0,LEN(@SQL)-3)
--order by
SET @SQL = @SQL +' ORDER BY OrderRef asc'
SET @Params = '@MaxSearchResults INT, @OrderRef INT, @ForeName VARCHAR(50),@SurName varchar(50), @dobDD INT ,'
SET @Params = @Params + ' @dobMM INT , @dobYYYY INT, @HomephoneArea VARCHAR(4) ,@HomephoneNum VARCHAR(20), '
SET @Params = @Params + ' @ContphoneArea VARCHAR(4),@ContphoneNum VARCHAR(20), @OrderDateFrom VARCHAR(50), @OrderDateTo VARCHAR(50),@Status INT, @Address VARCHAR(1000) '
SET @Err = @@ERROR
IF (@Err <> 0)
BEGIN
GOTO Fail
END
print(@Sql)
EXEC sp_executesql @SQL, @Params, @MaxSearchResults,@OrderRef,@ForeName,@SurName,@dobDD,@dobMM,@dobYYYY,@HomephoneArea,@HomephoneNum,@ContphoneArea,@ContphoneNum, @OrderDateFrom, @OrderDateTo,@Status,@Address
return @Err
Fail:
RETURN -1
GRANT EXECUTE ON H3GISearchForOrder_backup_250806 TO b4nuser
GO
GRANT EXECUTE ON H3GISearchForOrder_backup_250806 TO ofsuser
GO
GRANT EXECUTE ON H3GISearchForOrder_backup_250806 TO reportuser
GO
|
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author: <NAME>
-- Create date: 01/11/2018
-- Description: Reads Workflow History for a given Release Code
-- exec Workflow_ReadHistory 'okeeffene',43
-- =============================================
CREATE
OR
ALTER PROCEDURE Workflow_ReadHistory @CcnUsername NVARCHAR(256)
,@RlsCode INT
AS
BEGIN
SET NOCOUNT ON;
DECLARE @ccnID INT
SET @ccnID = (
SELECT ccn_id
FROM TD_ACCOUNT
WHERE CCN_DELETE_FLAG = 0
AND CCN_USERNAME = @CcnUsername
)
SELECT DISTINCT rls.RLS_CODE AS RlsCode
,rqs.RQS_CODE AS RqsCode
,rqs.RQS_VALUE AS RqsValue
,wrqCmm.CMM_VALUE AS WrqCmmValue
,wrq.WRQ_DATETIME AS WrqDatetime
,wrq.WRQ_EXCEPTIONAL_FLAG AS WrqExceptionalFlag
,wrq.WRQ_RESERVATION_FLAG AS WrqReservationFlag
,wrq.WRQ_ALERT_FLAG AS WrqAlertFlag
,wrq.WRQ_ARCHIVE_FLAG AS WrqArchiveFlag
,wrqCcn.CCN_USERNAME AS WrqDtgCreateCcnUsername
,wrqDht.DHT_DATETIME AS WrqDtgCreateDatetime
,rsp.RSP_CODE AS RspCode
,rsp.RSP_VALUE AS RspValue
,wrsCmm.CMM_VALUE AS WrsCmmValue
,wrsCcn.CCN_USERNAME AS WrsDtgCreateCcnUsername
,wrsDht.DHT_DATETIME AS WrsDtgCreateDatetime
,sgn.SGN_CODE AS SgnCode
,sgn.SGN_VALUE AS SgnValue
,wsgCmm.CMM_VALUE WsgCmmValue
,wsgCcn.CCN_USERNAME AS WsgDtgCreateCcnUsername
,wsgDht.DHT_DATETIME AS WsgDtgCreateDatetime
FROM TD_RELEASE rls
INNER JOIN TD_MATRIX mtr
ON rls.RLS_ID = mtr.MTR_RLS_ID
AND mtr.MTR_DELETE_FLAG = 0
INNER JOIN TD_WORKFLOW_REQUEST wrq
ON wrq.WRQ_RLS_ID = rls.RLS_ID
AND wrq.WRQ_DELETE_FLAG = 0
INNER JOIN TS_REQUEST rqs
ON rqs.RQS_ID = wrq.WRQ_RQS_ID
AND wrq.WRQ_DELETE_FLAG = 0
INNER JOIN TD_COMMENT wrqCmm
ON wrq.WRQ_CMM_ID = wrqCmm.CMM_ID
AND wrqCmm.CMM_DELETE_FLAG = 0
INNER JOIN TD_AUDITING wrqDtg
ON wrq.WRQ_DTG_ID = wrqDtg.DTG_ID
INNER JOIN TM_AUDITING_HISTORY wrqDht
ON wrqDht.DHT_DTG_ID = wrqDtg.DTG_ID
INNER JOIN TS_AUDITING_TYPE wrqDtp
ON wrqDtp.DTP_ID = wrqDht.DHT_DTP_ID
INNER JOIN TD_ACCOUNT wrqCcn
ON wrqDht.DHT_CCN_ID = wrqCcn.CCN_ID
AND wrqDtp.DTP_CODE = 'CREATED'
LEFT JOIN TD_WORKFLOW_RESPONSE wrs
ON wrq.WRQ_ID = wrs.WRS_WRQ_ID
AND wrq.WRQ_DELETE_FLAG = 0
LEFT JOIN TS_RESPONSE rsp
ON wrs.WRS_RSP_ID = rsp.RSP_ID
LEFT JOIN TD_COMMENT wrsCmm
ON wrs.WRS_CMM_ID = wrsCmm.CMM_ID
LEFT JOIN TD_AUDITING wrsDtg
ON wrs.WRS_DTG_ID = wrsDtg.DTG_ID
LEFT JOIN TM_AUDITING_HISTORY wrsDht
ON wrsDtg.DTG_ID = wrsDht.DHT_DTG_ID
LEFT JOIN TS_AUDITING_TYPE wrsDtp
ON wrsDht.DHT_DTP_ID = wrsDtp.DTP_ID
LEFT JOIN TD_ACCOUNT wrsCcn
ON wrsDht.DHT_CCN_ID = wrsCcn.CCN_ID
AND wrsDtp.DTP_CODE = 'CREATED'
LEFT JOIN TD_WORKFLOW_SIGNOFF wsg
ON wrs.WRS_ID = wsg.WSG_WRS_ID
LEFT JOIN TS_SIGNOFF sgn
ON wsg.WSG_SGN_ID = sgn.SGN_ID
LEFT JOIN TD_COMMENT wsgCmm
ON wsg.WSG_CMM_ID = wsgCmm.CMM_ID
LEFT JOIN TD_AUDITING wsgDtg
ON wsg.WSG_DTG_ID = wsgDtg.DTG_ID
LEFT JOIN TM_AUDITING_HISTORY wsgDht
ON wsgDtg.DTG_ID = wsgDht.DHT_DTG_ID
LEFT JOIN TS_AUDITING_TYPE wsgDtp
ON wsgDht.DHT_DTP_ID = wsgDtp.DTP_ID
LEFT JOIN TD_ACCOUNT wsgCcn
ON wsgDht.DHT_CCN_ID = wsgCcn.CCN_ID
AND wsgDtp.DTP_CODE = 'CREATED'
AND wsgCcn.CCN_DELETE_FLAG = 0
LEFT JOIN TM_GROUP_ACCOUNT gcc
ON rls.RLS_GRP_ID = gcc.GCC_ID
AND gcc.GCC_DELETE_FLAG = 0
AND GCC_CCN_ID = @ccnID
LEFT JOIN TD_ACCOUNT ccn
ON gcc.GCC_CCN_ID = ccn.CCN_ID
AND ccn.CCN_DELETE_FLAG = 0
WHERE rls.RLS_CODE = @RlsCode
AND @CcnUsername IN (
SELECT ccn.CCN_USERNAME
FROM TD_ACCOUNT ccn
INNER JOIN TS_PRIVILEGE prv
ON ccn.CCN_PRV_ID = prv.PRV_ID
AND (
prv.PRV_CODE = 'ADMINISTRATOR'
OR PRV.PRV_CODE = 'POWER_USER'
OR RLS_GRP_ID IN (
SELECT GRP_ID
FROM TD_GROUP
INNER JOIN TM_GROUP_ACCOUNT
ON GRP_ID = GCC_GRP_ID
AND GCC_CCN_ID = @ccnID
)
)
AND ccn.CCN_DELETE_FLAG = 0
)
OR (ccn.CCN_USERNAME = @CcnUsername)
END
GO
|
-- file:plpgsql.sql ln:2033 expect:false
begin
open c1 (p2 := 77)
|
-- file:numerology.sql ln:75 expect:true
SELECT f1 AS two, max(f3) AS max_float, min(f3) AS min_float
FROM TEMP_GROUP
GROUP BY two
ORDER BY two, max_float, min_float
|
DROP TABLE IF EXISTS public.game_state;
DROP TABLE IF EXISTS public.inventory;
DROP TABLE IF EXISTS public.item;
DROP TABLE IF EXISTS public.items;
DROP TABLE IF EXISTS public.player;
DROP TABLE IF EXISTS public.mob;
DROP TABLE IF EXISTS public.mobs;
DROP TABLE IF EXISTS public.map;
CREATE TABLE public.map (
id serial NOT NULL,
level integer NOT NULL,
width integer NOT NULL,
height integer NOT NULL,
terrain text NOT NULL,
PRIMARY KEY (id)
);
CREATE TABLE public.mobs (
symbol "char" NOT NULL,
name character varying(20) NOT NULL UNIQUE,
PRIMARY KEY (symbol)
);
CREATE TABLE public.mob (
id serial NOT NULL,
map_id integer NOT NULL,
type_symbol "char" NOT NULL,
x integer NOT NULL,
y integer NOT NULL,
hp integer NOT NULL,
PRIMARY KEY (id),
CONSTRAINT fk_map_id FOREIGN KEY (map_id)
REFERENCES public.map (id) MATCH SIMPLE
ON UPDATE CASCADE
ON DELETE CASCADE,
CONSTRAINT fk_type_symbol FOREIGN KEY (type_symbol)
REFERENCES public.mobs (symbol) MATCH SIMPLE
ON UPDATE CASCADE
ON DELETE CASCADE
);
CREATE TABLE public.player (
id serial NOT NULL PRIMARY KEY,
name text NOT NULL,
max_hp integer NOT NULL,
hp integer NOT NULL,
attack integer NOT NULL,
x integer NOT NULL,
y integer NOT NULL
);
CREATE TABLE public.items (
symbol "char" NOT NULL,
name character varying(20) NOT NULL UNIQUE,
PRIMARY KEY (symbol)
);
CREATE TABLE public.item (
id serial NOT NULL,
type_symbol "char" NOT NULL,
map_id integer,
x integer,
y integer,
PRIMARY KEY (id),
CONSTRAINT fk_type_symbol FOREIGN KEY (type_symbol)
REFERENCES public.items (symbol) MATCH SIMPLE
ON UPDATE CASCADE
ON DELETE CASCADE,
CONSTRAINT fk_map_id FOREIGN KEY (map_id)
REFERENCES public.map (id) MATCH SIMPLE
ON UPDATE CASCADE
ON DELETE CASCADE
);
CREATE TABLE public.inventory (
id serial NOT NULL,
player_id integer NOT NULL,
item_symbol "char" NOT NULL,
PRIMARY KEY (id),
CONSTRAINT fk_player_id FOREIGN KEY (player_id)
REFERENCES public.player (id) MATCH SIMPLE
ON UPDATE CASCADE
ON DELETE CASCADE ,
CONSTRAINT fk_item_symbol FOREIGN KEY (item_symbol)
REFERENCES public.items (symbol) MATCH SIMPLE
ON UPDATE CASCADE
ON DELETE CASCADE
);
CREATE TABLE public.game_state (
id serial NOT NULL,
name character varying(20) NOT NULL,
saved_at timestamp without time zone NOT NULL DEFAULT CURRENT_TIMESTAMP,
player_id integer NOT NULL,
map_id integer NOT NULL,
PRIMARY KEY (id),
CONSTRAINT fk_player_id FOREIGN KEY (player_id)
REFERENCES public.player (id) MATCH SIMPLE
ON UPDATE CASCADE
ON DELETE CASCADE,
CONSTRAINT fk_map_id FOREIGN KEY (map_id)
REFERENCES public.map (id) MATCH SIMPLE
ON UPDATE CASCADE
ON DELETE CASCADE
);
INSERT INTO mobs (symbol, name)
VALUES ('s', 'Skeleton'),
('g', 'Ghost');
INSERT INTO items (symbol, name)
VALUES ('|', 'Sword'),
('-', 'Armour'),
('y', 'Yellow Key'),
('r', 'Red Key'),
('b', 'Blue Key'),
('+', 'Heal Big'),
('*', 'Heal Small'),
('Y', 'Yellow Door'),
('R', 'Red Door'),
('B', 'Blue Door'),
('^', 'Portal');
|
CREATE DATABASE SALAO;
USE SALAO;
CREATE TABLE USUARIOS
(
ID_USUARIO INT PRIMARY KEY AUTO_INCREMENT,
NOME_USUARIO VARCHAR(80),
TELEFONE_USUARIO VARCHAR(15),
LOGIN_USUARIO VARCHAR(20) NOT NULL UNIQUE,
SENHA_USUARIO VARCHAR(15)
);
CREATE TABLE CLIENTES
(
ID_CLIENTE INT PRIMARY KEY AUTO_INCREMENT,
NOME_CLIENTE VARCHAR(80) NOT NULL,
FONE_CLIENTE VARCHAR(15),
ENDERECO_CLIENTE VARCHAR(80) NOT NULL,
CIDADE_CLIENTE VARCHAR(30) NOT NULL
);
CREATE TABLE FUNCIONARIOS
(
ID_FUNCIONARIO INT PRIMARY KEY AUTO_INCREMENT,
NOME_FUNCIONARIO VARCHAR(80) NOT NULL
);
CREATE TABLE SERVICO
(
ID_SERVICO INT PRIMARY KEY AUTO_INCREMENT,
NOME_SERVICO VARCHAR(20),
VALOR_SERVICO DECIMAL(10,2)
);
CREATE TABLE ORDEM_SERVICO
(
ORDEM_ID INT PRIMARY KEY AUTO_INCREMENT,
ORDEM_DATA TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
ID_CLIENTE INT NOT NULL,
FOREIGN KEY (ID_CLIENTE) REFERENCES CLIENTES(ID_CLIENTE),
ID_FUNCIONARIO INT NOT NULL,
FOREIGN KEY (ID_FUNCIONARIO) REFERENCES FUNCIONARIOS(ID_FUNCIONARIO),
ID_SERVICO INT NOT NULL,
FOREIGN KEY (ID_SERVICO) REFERENCES SERVICO(ID_SERVICO)
);
|
<gh_stars>0
drop table if exists ab_platform.experiment_populations_parents_save_memories_v2_temp;
create table ab_platform.experiment_populations_parents_save_memories_v2_temp
distkey(entity_id)
sortkey(entity_id)
as (
SELECT '01858a04-5ffa-4a43-bbb5-1cf832867b7e' AS experiment_id
, eventvalue as variant
, entityid AS entity_id
, 'Parents' AS entity_type
, min(createdat) AS entered_at
from logs.product_event_no_pii
where eventname = 'ios.experiment.iOS_parentYearbookStoryFeed'
and eventvalue in ('testV2', 'controlV2')
and createdat >= '2020-11-13'
GROUP BY 1, 2, 3, 4
);
begin;
grant all on ab_platform.experiment_populations_parents_save_memories_v2_temp to group team;
grant all on ab_platform.experiment_populations_parents_save_memories_v2_temp to astronomer;
drop table if exists ab_platform.experiment_populations_parents_save_memories_v2 cascade;
alter table ab_platform.experiment_populations_parents_save_memories_v2_temp rename to experiment_populations_parents_save_memories_v2;
commit;
|
select count(1) from usuario where tipoIdentificacion = :tipoDoc and numeroIdentificacion = :documento
|
-- =======================================================================================
-- usage : sqlite3 PetaPocoSample.sqlite3
-- =======================================================================================
-- ---------------------------------------------------------------------------------------
-- CREATE OBJECTS
-- ---------------------------------------------------------------------------------------
DROP VIEW IF EXISTS ViHogeFuga;
DROP TABLE IF EXISTS TrAutoNumber;
DROP TABLE IF EXISTS TrCompositeKey;
DROP TABLE IF EXISTS TrColumns;
-- ---------------------------------------------------------------------------------------
CREATE TABLE IF NOT EXISTS TrCompositeKey (
Key01 nvarchar(2) NOT NULL
, Key02 integer NOT NULL
, ColBool boolean NOT NULL
, ColInt integer
, ColDec decimal(10,2)
, ColVarchar nvarchar(20)
, UpdateBy nvarchar(30) NOT NULL
, UpdateDt datetime NOT NULL
, PRIMARY KEY (Key01, Key02)
);
-- data for TrCompositeKey
INSERT INTO TrCompositeKey VALUES ('01',01,true, 999,123456.78,'北海道','hogeman',datetime('now', 'localtime'));
INSERT INTO TrCompositeKey VALUES ('02',02,false, 999,123456.78,'青森県','hogeman',datetime('now', 'localtime'));
INSERT INTO TrCompositeKey VALUES ('03',03,true, 999,123456.78,'岩手県','hogeman',datetime('now', 'localtime'));
INSERT INTO TrCompositeKey VALUES ('04',04,false, 999,123456.78,'宮城県','hogeman',datetime('now', 'localtime'));
INSERT INTO TrCompositeKey VALUES ('05',05,true, 999,123456.78,'秋田県','hogeman',datetime('now', 'localtime'));
INSERT INTO TrCompositeKey VALUES ('06',06,false, 999,123456.78,'山形県','hogeman',datetime('now', 'localtime'));
INSERT INTO TrCompositeKey VALUES ('07',07,false, 999,123456.78,'福島県','hogeman',datetime('now', 'localtime'));
INSERT INTO TrCompositeKey VALUES ('08',08,true, 999,123456.78,'茨城県','hogeman',datetime('now', 'localtime'));
INSERT INTO TrCompositeKey VALUES ('09',09,false, 999,123456.78,'栃木県','hogeman',datetime('now', 'localtime'));
INSERT INTO TrCompositeKey VALUES ('10',10,true, 999,123456.78,'群馬県','hogeman',datetime('now', 'localtime'));
INSERT INTO TrCompositeKey VALUES ('11',11,false, 999,123456.78,'埼玉県','hogeman',datetime('now', 'localtime'));
INSERT INTO TrCompositeKey VALUES ('12',12,true, 999,123456.78,'千葉県','hogeman',datetime('now', 'localtime'));
INSERT INTO TrCompositeKey VALUES ('13',13,false, 999,123456.78,'東京都','hogeman',datetime('now', 'localtime'));
INSERT INTO TrCompositeKey VALUES ('14',14,true, 999,123456.78,'神奈川県','hogeman',datetime('now', 'localtime'));
INSERT INTO TrCompositeKey VALUES ('15',15,false, 999,123456.78,'新潟県','hogeman',datetime('now', 'localtime'));
-- ---------------------------------------------------------------------------------------
CREATE TABLE IF NOT EXISTS TrAutoNumber (
Key03 integer PRIMARY KEY AUTOINCREMENT NOT NULL
, Key01 nvarchar(2) NOT NULL
, ColInt integer
);
-- ---------------------------------------------------------------------------------------
CREATE VIEW IF NOT EXISTS ViHogeFuga AS
SELECT tbl1.Key01 AS Tbl1Key01
, tbl1.Key02 AS Tbl1Key02
, tbl1.ColBool AS Tbl1ColBool
, tbl1.ColInt AS Tbl1ColInt
, tbl1.ColDec AS Tbl1ColDec
, tbl1.ColVarchar AS Tbl1ColVarchar
, tbl1.UpdateBy AS Tbl1UpdateBy
, tbl1.UpdateDt AS Tbl1UpdateDt
, tbl2.ColInt AS Tbl2ColInt
FROM TrCompositeKey tbl1
LEFT JOIN TrAutoNumber tbl2 ON tbl1.Key01 = tbl2.Key01;
-- ---------------------------------------------------------------------------------------
CREATE TABLE IF NOT EXISTS TrColumns (
Key01 nvarchar(2) PRIMARY KEY NOT NULL
, ColBigInt bigint
, ColInt integer
, ColIntU unsigned integer
, ColSmallInt smallint
, ColTinyInt tinyint
, ColBool bool
, ColDecimal decimal(10,2)
, ColNumeric numeric(12,3)
, ColDouble double(6,2)
, ColFloat float(7,3)
, ColDate date
, ColTime time
, ColDateTime datetime
, ColTimeStamp timestamp
, ColChar char(5)
, ColVarchar varchar(50)
, ColBlob blob
);
|
INVALID TEST
dropCheckConstraint is not supported for MySQL 5.6
--https://docs.liquibase.com/change-types/drop-check-constraint.html
|
<filename>sql_metadb/migration_tables/po_reporting_codes.sql
DROP TABLE IF EXISTS po_reporting_codes;
CREATE TABLE po_reporting_codes AS
SELECT
id::varchar(36),
jsonb_extract_path_text(jsonb, 'code')::varchar(65535) AS code,
jsonb_pretty(jsonb)::json AS data
FROM
folio_orders.reporting_code;
ALTER TABLE po_reporting_codes ADD PRIMARY KEY (id);
CREATE INDEX ON po_reporting_codes (code);
VACUUM ANALYZE po_reporting_codes;
|
/*
* Script: bigquery_billing_export.sql
* Author: freedomofnet
* Description:
* This SQL script transforms the billing export table to anonymize user data
* and included a linear projection for daily running cost. The output table
* powers the Cloud Billing Dashboard
* (https://cloud.google.com/billing/docs/how-to/visualize-data).
*/
WITH
-- Generate dates in the current month.
current_month_dates AS (
SELECT gen_date
FROM
UNNEST(
GENERATE_DATE_ARRAY(
DATE_TRUNC(CURRENT_DATE(), MONTH),
DATE_SUB(DATE_TRUNC(
DATE_ADD(CURRENT_DATE(), INTERVAL 1 MONTH), MONTH),
INTERVAL 1 DAY),
INTERVAL 1 DAY)
) AS gen_date),
-- Calculate daily cost per generated date
daily_cost AS (
SELECT
dates.gen_date,
SUM(billing.cost) AS cost
FROM current_month_dates AS dates
LEFT JOIN `billing.gcp_billing_export_v1*` AS billing -- Update the table name to the correct one.
ON EXTRACT(DATE FROM BILLING._PARTITIONTIME) = dates.gen_date
GROUP BY 1
ORDER BY 1),
-- Calculate average daily cost in a month
avg_daily_cost AS (
SELECT
AVG(daily_cost.cost) AS cost
FROM daily_cost),
-- Calculate projected_running_cost
projected_cost AS (
SELECT
daily_cost.gen_date AS date,
daily_cost.cost AS daily_cost,
avg_daily_cost.cost AS avg_daily_cost,
(DATE_DIFF(daily_cost.gen_date, DATE_TRUNC(CURRENT_DATE, MONTH), DAY) + 1) *
avg_daily_cost.cost AS projected_running_cost
FROM daily_cost
CROSS JOIN avg_daily_cost)
SELECT
projected_cost.*,
-- Anonymize data
TO_BASE64(MD5(billing_account_id)) AS billing_account_id,
STRUCT(
TO_BASE64(MD5(project.id)) AS id,
TO_BASE64(MD5(project.name)) AS name,
TO_BASE64(MD5(project.ancestry_numbers)) AS ancestry_numbers,
project.labels AS labels
) AS project,
billing.* EXCEPT(billing_account_id, project)
-- End anonymize data, for production simiply replace above code with billing.*
FROM `billing.gcp_billing_export_v1*` AS billing -- Update the table name to the correct one.
LEFT JOIN projected_cost
ON EXTRACT(DATE FROM billing._PARTITIONTIME) = projected_cost.date;
|
# --- !Ups
ALTER TABLE users ADD COLUMN see_tag_fix_suggestions BOOLEAN DEFAULT true;;
# --- !Downs
ALTER TABLE IF EXISTS users DROP COLUMN see_tag_fix_suggestions;;
|
<reponame>jason-fox/stellio-context-broker
ALTER TABLE subscription
ADD endpoint_info jsonb;
|
WITH blocks AS (
SELECT
blocking_locks.pid as pid,
blocked_locks.pid as blocked_pid,
blocking_locks.locktype as locktype,
blocking_locks.relation::regclass as relation,
blocking_locks.granted as granted
FROM
pg_catalog.pg_locks blocked_locks
JOIN
pg_catalog.pg_locks blocking_locks
ON blocking_locks.locktype = blocked_locks.locktype
AND blocking_locks.DATABASE IS NOT DISTINCT FROM blocked_locks.DATABASE
AND blocking_locks.relation IS NOT DISTINCT FROM blocked_locks.relation
AND blocking_locks.page IS NOT DISTINCT FROM blocked_locks.page
AND blocking_locks.tuple IS NOT DISTINCT FROM blocked_locks.tuple
AND blocking_locks.virtualxid IS NOT DISTINCT FROM blocked_locks.virtualxid
AND blocking_locks.transactionid IS NOT DISTINCT FROM blocked_locks.transactionid
AND blocking_locks.classid IS NOT DISTINCT FROM blocked_locks.classid
AND blocking_locks.objid IS NOT DISTINCT FROM blocked_locks.objid
AND blocking_locks.objsubid IS NOT DISTINCT FROM blocked_locks.objsubid
AND blocking_locks.pid != blocked_locks.pid
WHERE NOT blocked_locks.granted
)
SELECT
procs.pid AS pid,
application_name,
datname,
usename,
CASE WHEN client_port=-1 THEN 'local pipe'
WHEN length(client_hostname)>0 THEN client_hostname||':'||client_port
ELSE textin(inet_out(client_addr))||':'||client_port
END AS client,
date_trunc('second', backend_start) AS backend_start,
CASE WHEN state='active' THEN date_trunc('second', query_start)::text
ELSE ''
END AS query_start,
date_trunc('second', xact_start) AS xact_start,
state,
date_trunc('second', state_change) AS state_change,
blocks.pid AS blockedby,
/* deprecated
null::text AS blocking_locks,*/
blocks.locktype AS locktype,
blocks.relation AS relation,
blocks.granted AS granted,
query AS query,
CASE WHEN query_start IS NULL OR state<>'active' THEN false
ELSE query_start < now() - '10 seconds'::interval
END AS slowquery
FROM
pg_stat_activity procs
LEFT JOIN blocks
ON blocks.blocked_pid = procs.pid
ORDER BY
pid
|
<reponame>CUBRID/cubrid-testcase
create table tbisnull (a int);
insert into tbisnull values (null), (0), (1);
select isnull (null), isnull (0), isnull (1);
prepare s from 'select isnull( ? ), isnull ( ? ), isnull ( ? )';
execute s using null, 0, 1;
deallocate prepare s;
select a, isnull (a) from tbisnull order by 1;
select a, isnull (a + 1) from tbisnull order by 1;
select a from tbisnull where isnull (a) <> 1 order by 1;
drop table tbisnull;
|
<gh_stars>0
SELECT title
FROM pgweb
WHERE to_tsvector(title || ' ' || body) @@ to_tsquery('create & table')
ORDER BY last_mod_date DESC
LIMIT 10;
|
<gh_stars>0
CREATE DATABASE IF NOT EXISTS `Yii2_GU` /*!40100 DEFAULT CHARACTER SET utf8 */;
USE `Yii2_GU`;
-- MySQL dump 10.13 Distrib 5.7.17, for Win64 (x86_64)
--
-- Host: localhost Database: Yii2_GU
-- ------------------------------------------------------
-- Server version 5.5.5-10.0.34-MariaDB-0ubuntu0.16.04.1
/*!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 `product`
--
DROP TABLE IF EXISTS `product`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `product` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(50) NOT NULL,
`price` varchar(50) NOT NULL,
`created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=15 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `product`
--
LOCK TABLES `product` WRITE;
/*!40000 ALTER TABLE `product` DISABLE KEYS */;
INSERT INTO `product` VALUES (1,'product 1','100','2018-06-12 12:12:54'),(2,'product 2','111','2018-06-12 12:12:54'),(3,'<strong>test</strong>','150','2018-06-14 09:41:51'),(4,'test2','1000','2323-11-23 00:00:00'),(5,'<b>test3</b>','1231','2323-11-23 00:00:00'),(6,'test4 Product','1231','2323-11-23 00:00:00'),(7,'test5 P ','1000','2023-12-31 23:12:00'),(8,'test5 P ','1000','2323-11-23 00:00:00'),(9,'test5 P ','1231','2323-11-23 00:00:00'),(10,'test5 P','1231','2323-11-23 00:00:00'),(11,'test product 3','124','2018-06-15 02:59:23'),(12,'test123','223','2018-06-15 03:07:28'),(13,'test5 P','333','2018-06-15 04:16:48'),(14,'test product 3','222','2018-06-15 04:23:01');
/*!40000 ALTER TABLE `product` 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-06-15 11:28:22
|
<filename>upgrade/2.1/hsqldb_2.0.2_to_2.1.sql<gh_stars>10-100
UPDATE jforum_categories SET display_order = categories_id;
ALTER TABLE jforum_users ADD user_karma DECIMAL(10, 2);
ALTER TABLE jforum_posts ADD attach int DEFAULT '0';
ALTER TABLE jforum_posts ADD need_moderate INT DEFAULT '0';
ALTER TABLE jforum_categories ADD moderated INT DEFAULT '0';
ALTER TABLE jforum_search_topics DROP COLUMN topic_title;
ALTER TABLE jforum_search_topics ADD COLUMN topic_title varchar(100);
--
-- Table structure for table 'jforum_karma'
--
DROP TABLE IF EXISTS jforum_karma;
CREATE TABLE jforum_karma (
karma_id INT GENERATED BY DEFAULT AS IDENTITY (start with 1),
post_id INT NOT NULL,
topic_id INT NOT NULL,
post_user_id INT NOT NULL,
from_user_id INT NOT NULL,
points INT NOT NULL,
PRIMARY KEY(karma_id)
);
CREATE INDEX idx_krm_post ON jforum_karma(post_id);
CREATE INDEX idx_krm_topic ON jforum_karma(topic_id);
CREATE INDEX idx_krm_user ON jforum_karma(post_user_id);
CREATE INDEX idx_krm_from ON jforum_karma(from_user_id);
--
-- Table structure for table 'jforum_bookmark'
--
DROP TABLE IF EXISTS jforum_bookmarks;
CREATE TABLE jforum_bookmarks (
bookmark_id INT GENERATED BY DEFAULT AS IDENTITY (start with 1),
user_id INT NOT NULL,
relation_id INT NOT NULL,
relation_type INT NOT NULL,
public_visible INT DEFAULT 1,
title varchar(255),
description varchar(255),
PRIMARY KEY(bookmark_id)
);
CREATE INDEX idx_bok_user ON jforum_bookmarks(user_id);
CREATE INDEX idx_bok_rel ON jforum_bookmarks(relation_id);
--
-- Table structure for table 'jforum_quota_limit'
--
DROP TABLE IF EXISTS jforum_quota_limit;
CREATE TABLE jforum_quota_limit (
quota_limit_id INT GENERATED BY DEFAULT AS IDENTITY (start with 1),
quota_desc VARCHAR(50) NOT NULL,
quota_limit INT NOT NULL,
quota_type INT DEFAULT 1,
PRIMARY KEY(quota_limit_id)
);
--
-- Table structure for table 'jforum_extension_groups'
--
DROP TABLE IF EXISTS jforum_extension_groups;
CREATE TABLE jforum_extension_groups (
extension_group_id INT GENERATED BY DEFAULT AS IDENTITY (start with 1),
name VARCHAR(100) NOT NULL,
allow INT DEFAULT 1,
upload_icon VARCHAR(100),
download_mode INT DEFAULT 1,
PRIMARY KEY(extension_group_id)
);
--
-- Table structure for table 'jforum_extensions'
--
DROP TABLE IF EXISTS jforum_extensions;
CREATE TABLE jforum_extensions (
extension_id INT GENERATED BY DEFAULT AS IDENTITY (start with 1),
extension_group_id INT NOT NULL,
description VARCHAR(100),
upload_icon VARCHAR(100),
extension VARCHAR(10),
allow INT DEFAULT 1,
PRIMARY KEY(extension_id)
);
CREATE INDEX idx_ext_group ON jforum_extensions(extension_group_id);
CREATE INDEX idx_ext_ext ON jforum_extensions(extension);
--
-- Table structure for table 'jforum_attach'
--
DROP TABLE IF EXISTS jforum_attach;
CREATE TABLE jforum_attach (
attach_id INT GENERATED BY DEFAULT AS IDENTITY (start with 1),
post_id INT,
privmsgs_id INT,
user_id INT NOT NULL,
PRIMARY KEY(attach_id)
);
CREATE INDEX idx_att_post ON jforum_attach(post_id);
CREATE INDEX idx_att_priv ON jforum_attach(privmsgs_id);
CREATE INDEX idx_att_user ON jforum_attach(user_id);
--
-- Table structure for table 'jforum_attach_desc'
--
DROP TABLE IF EXISTS jforum_attach_desc;
CREATE TABLE jforum_attach_desc (
attach_desc_id INT GENERATED BY DEFAULT AS IDENTITY (start with 1),
attach_id INT NOT NULL,
physical_filename VARCHAR(255) NOT NULL,
real_filename VARCHAR(255) NOT NULL,
download_count INT,
description VARCHAR(255),
mimetype VARCHAR(50),
filesize INT,
upload_time DATETIME,
thumb INT DEFAULT 0,
extension_id INT,
PRIMARY KEY(attach_desc_id)
);
CREATE INDEX idx_att_d_att ON jforum_attach_desc(attach_id);
CREATE INDEX idx_att_d_ext ON jforum_attach_desc(extension_id);
--
-- Table structure for table 'jforum_attach_quota'
--
DROP TABLE IF EXISTS jforum_attach_quota;
CREATE TABLE jforum_attach_quota (
attach_quota_id INT GENERATED BY DEFAULT AS IDENTITY (start with 1),
group_id INT NOT NULL,
quota_limit_id INT NOT NULL,
PRIMARY KEY(attach_quota_id)
);
CREATE INDEX idx_aq_group ON jforum_attach_quota(group_id);
CREATE INDEX idx_aq_ql ON jforum_attach_quota(quota_limit_id);
|
<reponame>opengauss-mirror/Yat<gh_stars>0
-- @testpoint: opengauss关键字trusted非保留),作为索引名,部分测试点合理报错
--前置条件,创建一个表
drop table if exists explain_test;
create table explain_test(id int,name varchar(10));
--关键字不带引号-成功
drop index if exists trusted;
create index trusted on explain_test(id);
drop index trusted;
--关键字带双引号-成功
drop index if exists "trusted";
create index "trusted" on explain_test(id);
drop index "trusted";
--关键字带单引号-合理报错
drop index if exists 'trusted';
create index 'trusted' on explain_test(id);
--关键字带反引号-合理报错
drop index if exists `trusted`;
create index `trusted` on explain_test(id);
--清理环境
drop table if exists explain_test;
|
<gh_stars>0
CREATE SCHEMA optimal;
CREATE TABLE boards (
bID int PRIMARY KEY AUTO_INCREMENT,
size nvarchar(1) NOT NULL DEFAULT 'm', -- s,m,l for 5x4,6x5,7x6
pattern nvarchar(42) NOT NULL UNIQUE,
orb_count int NOT NULL
);
CREATE TABLE orbs(
bID int,
FOREIGN KEY (bID) REFERENCES boards(bID) ON DELETE CASCADE,
color nvarchar(1) NOT NULL,
count int NOT NULL,
UNIQUE(bID, color)
);
CREATE TABLE steps(
sID int PRIMARY KEY AUTO_INCREMENT,
bID int NOT NULL,
FOREIGN KEY (bID) REFERENCES boards(bID) ON DELETE CASCADE,
pattern_board nvarchar(42) NOT NULL,
pattern_board_count int NOT NULL,
pattern_match nvarchar(42) NOT NULL,
pattern_match_count int NOT NULL
);
CREATE TABLE combos(
cID int PRIMARY KEY AUTO_INCREMENT,
bID int NOT NULL,
FOREIGN KEY (bID) REFERENCES boards(bID) ON DELETE CASCADE,
sID int NOT NULL,
FOREIGN KEY (sID) REFERENCES steps(sID) ON DELETE CASCADE,
color nvarchar(1) NOT NULL,
length int NOT NULL,
pattern_combo nvarchar(42) NOT NULL
);
CREATE TABLE styles(
cID int NOT NULL,
FOREIGN KEY (cID) REFERENCES combos(cID) ON DELETE CASCADE,
style nvarchar(10) NOT NULL,
UNIQUE(cID, style)
);
|
CREATE TABLE [dbo].[Audit]
(
[Id] INT NOT NULL PRIMARY KEY IDENTITY (1,1),
[OrganisationId] UNIQUEIDENTIFIER NOT NULL,
[UpdatedBy] NVARCHAR(30) NOT NULL,
[UpdatedAt] DATETIME2 NOT NULL,
[AuditData] NVARCHAR(MAX) NOT NULL
)
|
<gh_stars>0
create user 'twitapp'@'localhost' identified by 'tw1t4pp';
create database testdb;
use testdb;
grant all on *.* to 'twitapp'@'localhost';
CREATE TABLE IF NOT EXISTS `admin` (
`id` int(11) NOT NULL,
`name` varchar(30) DEFAULT NULL,
`username` varchar(30) DEFAULT NULL,
`password` varchar(50) DEFAULT NULL,
`email` varchar(30) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;
INSERT INTO `admin` (`id`, `name`, `username`, `password`, `email`) VALUES
(1, 'admin', 'admin', '<PASSWORD>', '<EMAIL>');
DROP TABLE IF EXISTS `progres`;
CREATE TABLE IF NOT EXISTS `progres` (
`id` char(1) NOT NULL,
`name` varchar(30) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
INSERT INTO `progres` (`id`, `name`) VALUES
('0', 'Belum Verifikasi'),
('1', 'Verifikasi'),
('2', 'Pengecekan Lapangan'),
('3', 'Pembahasan'),
('4', 'Jawaban');
DROP TABLE IF EXISTS `lapor`;
CREATE TABLE IF NOT EXISTS `lapor` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`id_twit` BIGINT NOT NULL,
`tanggal` VARCHAR(50) NOT NULL,
`name` VARCHAR(25) NOT NULL,
`isi` VARCHAR (160) NOT NULL,
`id_progres` char(1) NOT NULL,
`lastvisit` date DEFAULT NULL,
`komentar` VARCHAR(300) DEFAULT NULL,
`editor` VARCHAR(300) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=501 ;
INSERT INTO `lapor` (`id`,`id_twit`,`tanggal`,`name`,`isi`,`id_progres`,`lastvisit`) VALUES
(1,529465502553227264,'Tue Nov 04 02:49:47 +0000 2014','@yayaxzz','#JogjaAsat ','1','2012-04-17'),
(2,529465353454112768,'Tue Nov 04 02:49:11 +0000 2014','@yayaxzz','My house . . \"killthedj\'s \"Perjuangan Warga Miliran #JogjaAsat by dodoputrabangsa #JogjaOraDidol\" enters lunch talk. http://t.co/b1r5fdXpJS\"','0','2012-04-17'),
(3,529464169620570113,'Tue Nov 04 02:44:29 +0000 2014','@gabrielalaras','RT @chirpstory: .@killthedj\'s \"Perjuangan Warga Miliran #JogjaAsat by @dodoputrabangsa #JogjaOraDidol\" enters lunch talk. http://t.co/wq8Dn…','0','2012-04-17'),
(4,529462433182523393,'Tue Nov 04 02:37:35 +0000 2014','@st_kurniawan','RT @chirpstory: .@killthedj\'s \"Perjuangan Warga Miliran #JogjaAsat by @dodoputrabangsa #JogjaOraDidol\" enters lunch talk. http://t.co/wq8Dn…','0','2012-04-17'),
(5,529462351913709568,'Tue Nov 04 02:37:16 +0000 2014','@Rio_Ramabaskara','RT @chirpstory: .@killthedj\'s \"Perjuangan Warga Miliran #JogjaAsat by @dodoputrabangsa #JogjaOraDidol\" enters lunch talk. http://t.co/wq8Dn…','0','2012-04-17'),
(6,529461612143341568,'Tue Nov 04 02:34:19 +0000 2014','@killthedj','RT @chirpstory: .@killthedj\'s \"Perjuangan Warga Miliran #JogjaAsat by @dodoputrabangsa #JogjaOraDidol\" enters lunch talk. http://t.co/wq8Dn…','1','2012-04-17'),
(7,529456876480499712,'Tue Nov 04 02:15:30 +0000 2014','@dodoputrabangsa','RT @chirpstory: .@killthedj\'s \"Perjuangan Warga Miliran #JogjaAsat by @dodoputrabangsa #JogjaOraDidol\" enters lunch talk. http://t.co/wq8Dn…','0','2012-04-17'),
(8,529376866042249216,'Mon Nov 03 20:57:34 +0000 2014','@penumpang_gelap','Pak Wali kok ga ada? \"@killthedj\'s \"Perjuangan Warga Miliran #JogjaAsat by @dodoputrabangsa #JogjaOraDidol\" http://t.co/GCLddesCS0 \"','0','2012-04-17'),
(9,529365253227036672,'Mon Nov 03 20:11:26 +0000 2014','@sangkunet','RT @chirpstory: .@killthedj\'s \"Perjuangan Warga Miliran #JogjaAsat by @dodoputrabangsa #JogjaOraDidol\" enters lunch talk. http://t.co/wq8Dn…','0','2012-04-17'),
(10,529364395793473536,'Mon Nov 03 20:08:01 +0000 2014','@chirpstory','.@killthedj\'s \"Perjuangan Warga Miliran #JogjaAsat by @dodoputrabangsa #JogjaOraDidol\" enters lunch talk. http://t.co/wq8DnmUE8U','0','2012-04-17');
DROP TABLE IF EXISTS `mailserver`;
CREATE TABLE `mailserver` (
`username` varchar(30) DEFAULT NULL,
`password` varchar(30) DEFAULT NULL,
`server` varchar(30) DEFAULT NULL,
`port` varchar(10) DEFAULT NULL,
`app` varchar(15) COLLATE utf8_unicode_ci DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
INSERT INTO `mailserver` (`username`, `password`, `server`, `port`, `app`) VALUES
('<EMAIL>', 'cobainaja', 'smtp.gmail.com', '587', `twitter`);
DROP TABLE IF EXISTS `twitter`;
CREATE TABLE `twitter` (
`CONSUMER_KEY` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
`CONSUMER_SECRET` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
`OAUTH_TOKEN` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
`OAUTH_TOKEN_SECRET` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
`HASTAG` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
`app` varchar(15) COLLATE utf8_unicode_ci DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
INSERT INTO `twitter` VALUES ('<KEY>','<KEY>','<KEY>','<KEY>','#JogjaAsat','twitter');
|
set search_path = public, acl, core, client, criminal, jt;
/*
exporta tabela para json
*/
CREATE OR REPLACE FUNCTION db_to_json(path TEXT) RETURNS void AS $$
declare
columns_id TEXT;
tables RECORD;
statement TEXT;
begin
FOR tables IN
SELECT (table_name) AS schema_table
FROM information_schema.tables t INNER JOIN information_schema.schemata s
ON s.schema_name = t.table_schema
WHERE t.table_name IN ('tb_classe_judicial', 'tb_assunto_trf', 'tb_competencia', 'tb_orgao_julgador', 'tb_dimensao_alcada', 'tb_aplicacao_classe', 'tb_jurisdicao', 'tb_localizacao', 'tb_endereco', 'tb_estado', 'tb_cep', 'tb_fluxo', 'tb_tipo_audiencia', 'tb_tipo_parte', 'tb_tipo_parte_trf', 'tb_usuario', 'tb_municipio', 'tb_usuario_login')
ORDER BY schema_table
LOOP
columns_id := (SELECT string_agg(a.attname, ',') FROM pg_index i JOIN pg_attribute a ON a.attrelid = i.indrelid AND a.attnum = ANY(i.indkey) WHERE i.indrelid = tables.schema_table::regclass AND i.indisprimary);
statement := 'COPY ' || ' (select row_to_json(' || tables.schema_table || ') from ' || tables.schema_table || ' order by ' || columns_id || ')' || ' TO ''' || path || '\\' || tables.schema_table || '.json''';
EXECUTE statement;
END LOOP;
return;
end;
$$ LANGUAGE plpgsql;
SELECT db_to_json('C:\\Users\\t0085324\\workspace\\bitbucket\\emacs\\org\\tarefas\\pje\\redmine\\14344\\pjetstlocal');
/*
exporta coluna da tabela para json
*/
CREATE OR REPLACE FUNCTION db_to_json(path TEXT) RETURNS void AS $$
declare
columns_id TEXT;
tables RECORD;
statement TEXT;
begin
FOR tables IN
SELECT (table_name) AS schema_table
FROM information_schema.tables t INNER JOIN information_schema.schemata s
ON s.schema_name = t.table_schema
WHERE t.table_name IN ('tb_classe_judicial', 'tb_assunto_trf', 'tb_competencia', 'tb_orgao_julgador', 'tb_dimensao_alcada', 'tb_aplicacao_classe', 'tb_jurisdicao', 'tb_localizacao', 'tb_endereco', 'tb_estado', 'tb_cep', 'tb_fluxo', 'tb_tipo_audiencia', 'tb_tipo_parte', 'tb_tipo_parte_trf', 'tb_usuario', 'tb_municipio', 'tb_usuario_login')
ORDER BY schema_table
LOOP
columns_id := (SELECT string_agg(a.attname, ',') FROM pg_index i JOIN pg_attribute a ON a.attrelid = i.indrelid AND a.attnum = ANY(i.indkey) WHERE i.indrelid = tables.schema_table::regclass AND i.indisprimary);
statement := 'COPY ' || ' (select row_to_json(t) from ( select ' || columns_id || ' from ' || tables.schema_table || ' order by ' || tables.schema_table || ' ) t )' || ' TO ''' || path || '\\' || tables.schema_table || '_ids' || '.json''';
EXECUTE statement;
END LOOP;
return;
end;
$$ LANGUAGE plpgsql;
SELECT db_to_json('C:\\Users\\t0085324\\workspace\\bitbucket\\emacs\\org\\tarefas\\pje\\redmine\\14344\\pjetstlocal');
|
<reponame>FabianLars/api.fabianlars.de
DROP TABLE IF EXISTS rotations;
CREATE TABLE rotations ( id SERIAL PRIMARY KEY, start_date DATE NOT NULL UNIQUE, end_date DATE NOT NULL, champions TEXT [] NOT NULL );
INSERT INTO rotations(start_date, end_date, champions) VALUES('2009-11-20', '2009-12-01', ARRAY['Ashe', 'Blitzcrank', 'Corki', 'Jax', 'Heimerdinger', 'Master Yi', 'Ryze', 'Sion', 'Taric', 'Warwick']),
('2009-12-01', '2009-12-08', ARRAY['Annie', 'Ashe', 'Blitzcrank', 'Katarina', 'Gangplank', 'Ryze', 'Singed', 'Teemo', 'Udyr', 'Zilean']),
('2009-12-08', '2009-12-15', ARRAY['Alistar', 'Jax', 'Kassadin', 'Kayle', 'Morgana', 'Master Yi', 'Nunu', 'Tristana', 'Twitch', 'Veigar']),
('2009-12-15', '2009-12-22', ARRAY['Amumu', 'Anivia', 'Dr. Mundo', 'Malphite', 'Nasus', 'Nidalee', 'Sion', 'Sivir', 'Soraka', 'Taric']),
('2009-12-22', '2009-12-29', ARRAY['Anivia', 'Annie', 'Cho''Gath', 'Heimerdinger', 'Master Yi', 'Nunu', 'Shaco', 'Tristana', 'Twisted Fate', 'Udyr']),
('2009-12-29', '2010-01-05', ARRAY['Ashe', 'Dr. Mundo', 'Evelynn', 'Janna', 'Karthus', 'Kayle', 'Singed', 'Sivir', 'Warwick', 'Zilean']),
('2010-01-05', '2010-01-12', ARRAY['Alistar', 'Annie', 'Gangplank', 'Morgana', 'Nasus', 'Ryze', 'Taric', 'Teemo', 'Tristana', 'Tryndamere']),
('2010-01-12', '2010-01-19', ARRAY['Blitzcrank', 'Corki', 'Katarina', 'Malphite', 'Poppy', 'Rammus', 'Sivir', 'Soraka', 'Udyr', 'Veigar']),
('2010-01-19', '2010-01-26', ARRAY['Amumu', 'Ashe', 'Cho''Gath', 'Fiddlesticks', 'Heimerdinger', 'Jax', 'Ryze', 'Twitch', 'Warwick', 'Zilean']),
('2010-01-26', '2010-02-02', ARRAY['Annie', 'Dr. Mundo', 'Janna', 'Kassadin', 'Kayle', '<NAME>', 'Morgana', 'Nunu', 'Tristana', 'Twisted Fate']),
('2010-02-02', '2010-02-09', ARRAY['Alistar', 'Anivia', 'Gangplank', 'Gragas', 'Shaco', 'Sivir', 'Taric', 'Tw<NAME>', 'Veigar', 'Zilean']),
('2010-02-09', '2010-02-16', ARRAY['Ashe', 'Blitzcrank', 'Heimerdinger', 'Karthus', 'Nasus', 'Pantheon', 'Ryze', 'Singed', 'Soraka', 'Teemo']),
('2010-02-16', '2010-02-23', ARRAY['Annie', 'Cho''Gath', 'Evelynn', 'Janna', 'Malphite', 'Morgana', 'Rammus', 'Sivir', 'Veigar', 'Poppy']),
('2010-02-23', '2010-03-02', ARRAY['Ashe', 'Kayle', 'Master Yi', 'Nidalee', 'Nunu', 'Ryze', 'Taric', 'Teemo', 'Tryndamere', 'Zilean']),
('2010-03-02', '2010-03-09', ARRAY['Amumu', 'Fiddlesticks', 'Heimerdinger', 'Katarina', 'Mordekaiser', 'Sion', 'Soraka', 'Tristana', 'Twisted Fate', 'Warwick']),
('2010-03-09', '2010-03-16', ARRAY['Ashe', 'Corki', 'Gangplank', 'Gragas', 'Jax', 'Kassadin', 'Malphite', 'Morgana', 'Sivir', 'Veigar']),
('2010-03-16', '2010-03-23', ARRAY['Alistar', 'Annie', 'Blitzcrank', 'Janna', 'Nasus', 'Pantheon', 'Taric', 'Teemo', 'Twitch', 'Zilean']),
('2010-03-23', '2010-03-30', ARRAY['Anivia', 'Ashe', 'Dr. Mundo', 'Fiddlesticks', 'Heimerdinger', 'Kayle', 'Master Yi', 'Singed', 'Tristana', 'Udyr']),
('2010-03-30', '2010-04-06', ARRAY['Cho''Gath', 'Ezreal', 'Karthus', 'Morgana', 'Nunu', 'Ryze', 'Shaco', 'Soraka', 'Twisted Fate', 'Warwick']),
('2010-04-06', '2010-04-13', ARRAY['Evelynn', 'Gangplank', 'Heimerdinger', 'Janna', 'Katarina', 'Rammus', 'Shen', 'Sivir', 'Taric', 'Veigar']),
('2010-04-13', '2010-04-20', ARRAY['Amumu', 'Annie', 'Ashe', 'Nidalee', 'Poppy', 'Ryze', 'Sion', 'Soraka', 'Teemo', 'Zilean']),
('2010-04-20', '2010-04-27', ARRAY['Blitzcrank', 'Fiddlesticks', 'Jax', 'Kassadin', 'Kennen', 'Malphite', 'Singed', 'Sivir', 'Taric', 'Twisted Fate']),
('2010-04-27', '2010-05-04', ARRAY['Alistar', 'Ashe', 'Corki', 'Gragas', 'Heimerdinger', 'Morgana', 'Nasus', 'Tristana', 'Tryndamere', 'Veigar']),
('2010-05-04', '2010-05-11', ARRAY['Anivia', 'Annie', 'Cho''Gath', 'Dr. Mundo', 'Ezreal', 'Kayle', '<NAME>', 'Sivir', 'Soraka', 'Teemo']),
('2010-05-11', '2010-05-18', ARRAY['Garen', 'Janna', 'Karthus', 'Katarina', 'Nunu', 'Rammus', 'Ryze', 'Tristana', 'Warwick', 'Zilean']),
('2010-05-18', '2010-05-25', ARRAY['Ashe', 'Blitzcrank', 'Fiddlesticks', 'Heimerdinger', 'Mordekaiser', 'Shaco', 'Sion', 'Taric', 'Twisted Fate', 'Veigar']),
('2010-05-25', '2010-06-01', ARRAY['Akali', 'Amumu', 'Annie', 'Gangplank', 'Kassadin', 'Morgana', 'Singed', 'Sivir', 'Soraka', 'Tristana']),
('2010-06-01', '2010-06-08', ARRAY['Alistar', 'Ashe', 'Corki', 'Heimerdinger', 'Malphite', 'Master Yi', 'Ryze', 'Shen', 'Teemo', 'Zilean']),
('2010-06-08', '2010-06-15', ARRAY['Cho''Gath', 'Janna', 'Kennen', 'Morgana', 'Nasus', 'Rammus', 'Sivir', 'Taric', 'Tristana', 'Udyr']),
('2010-06-15', '2010-06-22', ARRAY['Annie', 'Ashe', 'Blitzcrank', 'Dr. Mundo', 'Jax', 'Kayle', 'Malzahar', 'Nunu', 'Twisted Fate', 'Zilean']),
('2010-06-22', '2010-06-29', ARRAY['Fiddlesticks', 'Gragas', 'Olaf', 'Shaco', 'Sion', 'Sivir', 'Soraka', 'Tristana', 'Tryndamere', 'Veigar']),
('2010-06-29', '2010-07-06', ARRAY['Amumu', 'Anivia', 'Ashe', 'Cho''Gath', 'Gangplank', 'Heimerdinger', 'Morgana', 'Ryze', 'Twitch', 'Warwick']),
('2010-07-06', '2010-07-13', ARRAY['Alistar', 'Annie', 'Janna', 'Katarina', 'Kayle', 'Kog''Maw', 'Malphite', 'Singed', 'Teemo', 'Zilean']),
('2010-07-13', '2010-07-20', ARRAY['Ezreal', 'Kennen', '<NAME>i', 'Morgana', 'Nunu', 'Poppy', 'Ryze', 'Shen', 'Sivir', 'Taric']),
('2010-07-20', '2010-07-27', ARRAY['Blitzcrank', 'Corki', 'Fiddlesticks', 'Karthus', 'Kassadin', 'Nidalee', 'Rammus', 'Soraka', 'Tristana', 'Zilean']),
('2010-07-27', '2010-08-03', ARRAY['Alistar', 'Annie', 'Ashe', 'Cho''Gath', 'Nasus', 'Mordekaiser', 'Twisted Fate', 'Veigar', '<NAME>', 'Zilean']),
('2010-08-03', '2010-08-10', ARRAY['Amumu', 'Ezreal', 'Garen', 'Janna', 'Kayle', 'Pantheon', 'Ryze', 'Sion', 'Sivir', 'Warwick']),
('2010-08-10', '2010-08-17', ARRAY['Ashe', 'Dr. Mundo', 'Fiddlesticks', 'Gangplank', 'Gragas', 'Teemo', 'Morgana', 'Taric', 'Shen', 'Vladimir']),
('2010-08-17', '2010-08-24', ARRAY['Akali', 'Annie', 'Blitzcrank', 'Corki', 'Heimerdinger', 'Jax', 'Kayle', 'Nunu', 'Tristana', 'Veigar']),
('2010-08-24', '2010-08-31', ARRAY['Anivia', 'Ashe', 'Cho''Gath', 'Fiddlesticks', 'Galio', 'Katarina', 'Soraka', 'Twisted Fate', 'Udyr', 'Zilean']),
('2010-08-31', '2010-09-07', ARRAY['Malphite', 'Malzahar', '<NAME>', 'Morgana', 'Ryze', 'Shen', 'Singed', 'Sivir', 'Taric', 'Teemo']),
('2010-09-07', '2010-09-14', ARRAY['Amumu', 'Annie', 'Ashe', 'Kayle', 'Kennen', 'Tristana', 'Tryndamere', 'Poppy', 'Urgot', 'Zilean']),
('2010-09-14', '2010-09-21', ARRAY['Alistar', 'Corki', 'Fiddlesticks', 'Gangplank', 'Gragas', 'Heimerdinger', 'Janna', 'Morgana', 'Olaf', 'Sivir']),
('2010-09-21', '2010-09-28', ARRAY['Ashe', 'Blitzcrank', 'Kassadin', '<NAME>', 'Nidalee', 'Sion', 'Soraka', 'Veigar', 'Vladimir', 'Zilean']),
('2010-09-28', '2010-10-05', ARRAY['Annie', 'Heimerdinger', 'Fiddlesticks', 'Kog''Maw', 'Rammus', 'Shen', 'Sivir', 'Taric', 'Warwick', '<NAME>']),
('2010-10-05', '2010-10-12', ARRAY['Alistar', 'Ashe', 'Cho''Gath', 'Evelynn', 'Ezreal', 'Karthus', 'Morgana', 'Nasus', 'Ryze', 'Sona']),
('2010-10-12', '2010-10-19', ARRAY['Anivia', 'Corki', 'Katarina', 'Kayle', 'Nunu', 'Pantheon', 'Singed', 'Tristana', 'Veigar', 'Zilean']),
('2010-10-19', '2010-10-26', ARRAY['Annie', 'Blitzcrank', 'Garen', 'Heimerdinger', 'Jax', 'Shen', 'Sivir', 'Soraka', 'Swain', 'Teemo']),
('2010-10-26', '2010-11-02', ARRAY['Ashe', 'Cho''Gath', 'Galio', 'Janna', 'Taric', '<NAME>', 'Udyr', 'Veigar', 'Warwick', 'Zilean']),
('2010-11-02', '2010-11-09', ARRAY['Amumu', 'Dr. Mundo', 'Fiddlesticks', 'Gangplank', 'Gragas', 'Kayle', 'Lux', 'Morgana', 'Sivir', 'Tristana']),
('2010-11-09', '2010-11-16', ARRAY['Akali', 'Annie', 'Ashe', 'Heimerdinger', 'Kog''Maw', 'Poppy', 'Shen', 'Rammus', 'Ryze', 'Taric']),
('2010-11-16', '2010-11-23', ARRAY['Fiddlesticks', 'Garen', 'LeBlanc', 'Morgana', 'Nidalee', 'Nunu', 'Sion', 'Sivir', 'Teemo', 'Zilean']),
('2010-11-23', '2010-11-30', ARRAY['Annie', 'Blitzcrank', 'Corki', 'Heimerdinger', 'Mordekaiser', 'Shen', 'Soraka', 'Tristana', 'Tryndamere', 'Vladimir']),
('2010-11-30', '2010-12-07', ARRAY['Ashe', 'Cho''Gath', 'Gragas', 'Irelia', 'Ryze', 'Shaco', 'Sivir', 'Sona', 'Veigar', 'Zilean']),
('2010-12-07', '2010-12-14', ARRAY['Ezreal', 'Karthus', 'Kennen', 'Malphite', 'Master Yi', 'Morgana', 'Singed', 'Taric', 'Tristana', 'Urgot']),
('2010-12-14', '2010-12-21', ARRAY['Ashe', 'Heimerdinger', 'Janna', 'Kassadin', 'Malzahar', 'Nunu', 'Shen', 'Soraka', 'Teemo', 'Trundle']),
('2010-12-21', '2010-12-28', ARRAY['Anivia', 'Annie', 'Blitzcrank', 'Gangplank', 'Jax', 'Kayle', '<NAME>une', 'Morgana', 'Sion', 'Sivir']),
('2010-12-28', '2011-01-04', ARRAY['Alistar', 'Ashe', 'Cassiopeia', 'Galio', 'Heimerdinger', 'Kennen', 'Olaf', 'Tristana', 'Veigar', 'Zilean']),
('2011-01-04', '2011-01-11', ARRAY['Fiddlesticks', 'Katarina', 'Morgana', 'Ryze', 'Sivir', 'Taric', 'Gragas', 'Kog''Maw', 'Shen', '<NAME>']),
('2011-01-11', '2011-01-18', ARRAY['Annie', 'Ashe', 'Cho''Gath', 'Heimerdinger', 'Tw<NAME>', 'Nidalee', 'Poppy', 'Garen', 'Urgot', 'Swain']),
('2011-01-18', '2011-01-25', ARRAY['Amumu', 'Blitzcrank', 'Caitlyn', 'Dr. Mundo', 'Kayle', 'Morgana', 'Tristana', 'Veigar', 'Vladimir', 'Warwick']),
('2011-01-25', '2011-02-01', ARRAY['Akali', 'Ashe', 'Fiddlesticks', 'Heimerdinger', 'Miss Fortune', 'Nunu', 'Pantheon', 'Rammus', 'Ryze', 'Soraka']),
('2011-02-01', '2011-02-08', ARRAY['Lux', '<NAME>', 'Renekton', 'Shen', 'Singed', 'Sivir', 'Sona', 'Tristana', 'Veigar', 'Zilean']),
('2011-02-08', '2011-02-15', ARRAY['Annie', 'Ashe', 'Corki', 'Galio', 'Gangplank', 'LeBlanc', 'Morgana', 'Sion', 'Taric', 'Udyr']),
('2011-02-15', '2011-02-22', ARRAY['Blitzcrank', 'Ezreal', 'Fiddlesticks', 'Heimerdinger', 'Karma', 'Kayle', 'Malzahar', 'Nunu', 'Sivir', 'Tryndamere']),
('2011-02-22', '2011-03-01', ARRAY['Cho''Gath', 'Gragas', 'Irelia', 'Kassadin', 'Mordekaiser', 'Ryze', 'Soraka', 'Teemo', 'Tristana', 'Veigar']),
('2011-03-01', '2011-03-08', ARRAY['Annie', 'Ashe', 'Janna', 'Malphite', 'Maokai', 'Shen', 'Sivir', 'Taric', 'Trundle', '<NAME>']),
('2011-03-08', '2011-03-15', ARRAY['Alistar', 'Gangplank', 'Garen', 'Jax', 'Kennen', 'Miss Fortune', 'Morgana', 'Singed', 'Swain', 'Tristana']),
('2011-03-15', '2011-03-22', ARRAY['Amumu', 'Cho''Gath', 'Fiddlesticks', '<NAME>', 'Kassadin', 'Katarina', 'Kayle', 'Nasus', 'Teemo', 'Urgot']),
('2011-03-22', '2011-03-29', ARRAY['Caitlyn', 'Galio', 'Kog''Maw', 'Lux', 'Master Yi', 'Mordekaiser', 'Nunu', 'Ryze', 'Shen', 'Taric']),
('2011-03-29', '2011-04-05', ARRAY['Ashe', 'Blitzcrank', 'Heimerdinger', 'Karma', 'Nocturne', 'Poppy', 'Rammus', 'Singed', 'Twitch', 'Veigar']),
('2011-04-05', '2011-04-12', ARRAY['Annie', 'Cassiopeia', 'Cho''Gath', 'Corki', 'Nidalee', 'Olaf', 'Shen', 'Tristana', 'Warwick', 'Zilean']),
('2011-04-12', '2011-04-19', ARRAY['Alistar', 'Anivia', 'Fiddlesticks', 'Janna', '<NAME>', 'Malphite', 'Maokai', '<NAME>une', 'Nasus', 'Sivir']),
('2011-04-19', '2011-04-26', ARRAY['Amumu', 'Ashe', 'Caitlyn', 'Garen', 'Heimerdinger', 'LeBlanc', 'Master Yi', 'Mordekaiser', 'Morgana', 'Rammus']),
('2011-04-26', '2011-05-03', ARRAY['Brand', 'Cho''Gath', 'Irelia', 'Karthus', 'Kog''Maw', 'Nunu', 'Singed', 'Sion', 'Sivir', 'Taric']),
('2011-05-03', '2011-05-10', ARRAY['Ezreal', 'Galio', 'Gangplank', 'Kassadin', 'Katarina', 'Malphite', 'Miss Fortune', 'Renekton', 'Ryze', 'Sona']),
('2011-05-10', '2011-05-17', ARRAY['Ashe', 'Caitlyn', 'Garen', 'Jax', 'Malzahar', 'Maokai', 'Mordekaiser', 'Rumble', 'Shen', 'Soraka']),
('2011-05-17', '2011-05-24', ARRAY['Alistar', 'Heimerdinger', 'Janna', '<NAME>', 'Miss Fortune', 'Rammus', 'Sivir', 'Veigar', 'Warwick', '<NAME>']),
('2011-05-24', '2011-05-31', ARRAY['Amumu', 'Annie', 'Ashe', 'Cho''Gath', 'Dr. Mundo', 'Kennen', '<NAME>', 'Nasus', 'Vayne', 'Zilean']),
('2011-05-31', '2011-06-07', ARRAY['Blitzcrank', 'Kog''Maw', '<NAME>', 'Malphite', 'Morgana', 'Nunu', 'Ryze', 'Singed', 'Swain', 'Teemo']),
('2011-06-07', '2011-06-14', ARRAY['Alistar', 'Caitlyn', 'Corki', 'Galio', 'Gangplank', 'Garen', 'Heimerdinger', 'Janna', 'Nocturne', 'Veigar']),
('2011-06-14', '2011-06-21', ARRAY['Brand', 'Cho''Gath', 'Irelia', 'Maokai', 'Miss Fortune', 'Mordekaiser', 'Orianna', 'Sion', 'Sivir', 'Soraka']),
('2011-06-21', '2011-06-28', ARRAY['Annie', 'Katarina', 'LeBlanc', 'Malphite', 'Rammus', 'Tristana', 'Urgot', 'Veigar', 'Warwick', 'Zilean']),
('2011-06-28', '2011-07-05', ARRAY['Akali', 'Ashe', 'Ezreal', 'Kassadin', 'Kayle', 'Nasus', 'Shen', 'Singed', 'Udyr', 'Vladimir']),
('2011-07-05', '2011-07-12', ARRAY['Alistar', 'Blitzcrank', 'Caitlyn', 'Galio', 'Heimerdinger', 'Kog''Maw', 'Pantheon', 'Ryze', 'Yorick', 'Zilean']),
('2011-07-12', '2011-07-19', ARRAY['Annie', 'Cassiopeia', 'Cho''Gath', 'Fiddlesticks', 'Garen', 'Rammus', 'Renekton', 'Sivir', 'Soraka', 'Vayne']),
('2011-07-19', '2011-07-26', ARRAY['Anivia', 'Ashe', 'Malphite', 'Maokai', '<NAME>', 'Mordekaiser', 'Morgana', 'Poppy', 'Rumble', 'Twisted Fate']),
('2011-07-26', '2011-08-02', ARRAY['Katarina', 'Leona', 'Malzahar', 'Nunu', 'Shen', 'Sion', 'Teemo', 'Urgot', 'Veigar', 'Zilean']),
('2011-08-02', '2011-08-09', ARRAY['Amumu', 'Corki', 'Heimerdinger', 'Jax', 'Miss Fortune', 'Nasus', 'Ryze', 'Singed', 'Taric', 'Trundle']),
('2011-08-09', '2011-08-16', ARRAY['Ashe', 'Brand', 'Dr. Mundo', 'Galio', 'Gangplank', 'Janna', 'Kassadin', 'Malphite', 'Sivir', 'Wukong']),
('2011-08-16', '2011-08-23', ARRAY['Annie', 'Blitzcrank', 'Caitlyn', 'Lux', 'Kog''Maw', 'Maokai', '<NAME>', 'Morgana', 'Rammus', 'Warwick']),
('2011-08-23', '2011-08-30', ARRAY['Cho''Gath', 'Gragas', 'Nidalee', 'Ryze', 'Shen', 'Skarner', 'Teemo', 'Urgot', 'Veigar', 'Zilean']),
('2011-08-30', '2011-09-06', ARRAY['Alistar', 'Ashe', 'Garen', 'Janna', 'Karthus', 'Kassadin', '<NAME>', 'Leona', 'Miss Fortune', 'Sion']),
('2011-09-06', '2011-09-13', ARRAY['Corki', 'Ezreal', 'Fiddlesticks', 'Galio', 'Katarina', 'Malphite', 'Poppy', 'Ryze', 'Shaco', 'Soraka']),
('2011-09-13', '2011-09-20', ARRAY['Amumu', 'Annie', 'Caitlyn', 'Gangplank', 'Karma', 'Nocturne', 'Nunu', 'Singed', 'Sivir', 'Talon']),
('2011-09-20', '2011-09-27', ARRAY['Ashe', 'Blitzcrank', 'Cho''Gath', 'Heimerdinger', 'Mordekaiser', 'Orianna', 'Rammus', 'Taric', 'Twisted Fate', '<NAME>']),
('2011-09-27', '2011-10-04', ARRAY['Alistar', 'Cassiopeia', 'Maokai', 'Master Yi', 'Miss Fortune', 'Rumble', 'Urgot', 'Veigar', 'Wukong', 'Zilean']),
('2011-10-04', '2011-10-11', ARRAY['Fiddlesticks', 'Garen', 'Kassadin', 'Kog''Maw', 'Malphite', 'Morgana', 'Nidalee', 'Riven', 'Shen', 'Vayne']),
('2011-10-11', '2011-10-18', ARRAY['Anivia', 'Ezreal', 'Katarina', 'Leona', 'Ryze', 'Singed', 'Sivir', 'Skarner', 'Sona', 'Yorick']),
('2011-10-18', '2011-10-25', ARRAY['Amumu', 'Annie', 'Ashe', 'Cho''Gath', 'Corki', '<NAME>', 'Master Yi', 'Nasus', 'Soraka', 'Xerath']),
('2011-10-25', '2011-11-01', ARRAY['Alistar', 'Heimerdinger', 'Irelia', 'Kassadin', 'Mordekaiser', 'Nunu', 'Rammus', '<NAME>', 'Urgot', 'Zilean']),
('2011-11-01', '2011-11-08', ARRAY['Galio', 'Gangplank', 'Graves', 'Jax', 'Malzahar', 'Miss Fortune', 'Singed', 'Sona', 'Tryndamere', 'Vladimir']),
('2011-11-08', '2011-11-15', ARRAY['Amumu', 'Caitlyn', 'Fiddlesticks', 'Kayle', 'Nasus', 'Olaf', 'Shen', 'Teemo', 'Veigar', 'Warwick']),
('2011-11-15', '2011-11-22', ARRAY['Blitzcrank', 'Brand', 'Gangplank', 'Kog''Maw', 'Malphite', 'Maokai', 'Ryze', 'Sivir', 'Shyvana', 'Taric']),
('2011-11-22', '2011-11-29', ARRAY['Annie', 'Ashe', 'Cho''Gath', 'Katarina', 'Orianna', 'Rammus', 'Renekton', 'Skarner', 'Soraka', 'Vayne']),
('2011-11-29', '2011-12-06', ARRAY['Fizz', 'Heimerdinger', 'Kassadin', 'Leona', '<NAME>', 'Miss Fortune', 'Morgana', 'Singed', 'Talon', 'Urgot']),
('2011-12-06', '2011-12-13', ARRAY['Alistar', 'Caitlyn', 'Corki', 'LeBlanc', 'Mordekaiser', 'Riven', 'Shen', 'Sion', 'Swain', 'Zilean']),
('2011-12-13', '2011-12-20', ARRAY['Amumu', 'Anivia', 'Ashe', 'Malphite', 'Poppy', 'Sivir', 'Sona', 'Veigar', 'Volibear', 'Wukong']),
('2011-12-20', '2011-12-27', ARRAY['Ezreal', 'Fiddlesticks', 'Galio', 'Karma', 'Katarina', 'Nunu', 'Rammus', 'Ryze', 'Teemo', 'Warwick']),
('2011-12-27', '2012-01-03', ARRAY['Ahri', 'Annie', 'Blitzcrank', 'Cho''Gath', 'Irelia', 'Janna', 'Miss Fortune', 'Shen', 'Skarner', 'Twitch']),
('2012-01-03', '2012-01-10', ARRAY['Alistar', 'Brand', 'Caitlyn', 'Garen', 'Graves', 'Maokai', '<NAME>i', 'Nocturne', 'Xerath', 'Zilean']),
('2012-01-10', '2012-01-17', ARRAY['Amumu', 'Gangplank', 'Heimerdinger', 'Kog''Maw', 'Nasus', 'Pantheon', 'Singed', 'Sivir', 'Taric', 'Viktor']),
('2012-01-17', '2012-01-24', ARRAY['Ashe', 'Kassadin', 'Malphite', 'Morgana', 'Rammus', 'Renekton', 'Shyvana', 'Vayne', 'Veigar', 'Warwick']),
('2012-01-24', '2012-01-31', ARRAY['Cho''Gath', 'Corki', 'Fiddlesticks', 'Katarina', 'Leona', '<NAME>', 'Mordekaiser', 'Sion', 'Soraka', 'Vladimir']),
('2012-01-31', '2012-02-07', ARRAY['Caitlyn', 'Cassiopeia', 'Galio', 'Jax', 'Nunu', 'Ryze', 'Sejuani', 'Shen', 'Urgot', 'Zilean']),
('2012-02-07', '2012-02-14', ARRAY['Amumu', 'Annie', 'Blitzcrank', 'Graves', 'Maokai', 'Nasus', 'Sona', 'Swain', 'Teemo', 'Wukong']),
('2012-02-14', '2012-02-21', ARRAY['Alistar', 'Ashe', 'Gangplank', 'Heimerdinger', 'Janna', '<NAME>', 'Malphite', 'Sivir', 'Volibear', 'Ziggs']),
('2012-02-21', '2012-02-28', ARRAY['Caitlyn', 'Fizz', 'Kassadin', 'Malzahar', 'Master Yi', 'Miss Fortune', 'Rammus', 'Singed', 'Talon', 'Taric']),
('2012-02-28', '2012-03-06', ARRAY['Ashe', 'Cho''Gath', 'Corki', 'Fiddlesticks', 'Garen', '<NAME>', 'Morgana', 'Nautilus', 'Riven', 'Veigar']),
('2012-03-06', '2012-03-13', ARRAY['Ahri', 'Galio', 'Graves', 'Katarina', 'Kog''Maw', 'LeBlanc', 'Shen', 'Skarner', 'Soraka', 'Warwick']),
('2012-03-13', '2012-03-20', ARRAY['Alistar', 'Annie', 'Ezreal', 'Fiora', 'Maokai', 'Mordekaiser', 'Sion', 'Sivir', 'Xerath', 'Zilean']),
('2012-03-20', '2012-03-27', ARRAY['Amumu', 'Blitzcrank', 'Malphite', 'Miss Fortune', 'Nocturne', 'Orianna', 'Ryze', 'Sejuani', 'Sona', 'Vayne']),
('2012-03-27', '2012-04-03', ARRAY['Caitlyn', 'Cho''Gath', 'Gangplank', 'Kassadin', 'Master Yi', 'Nasus', 'Rammus', 'Swain', 'Taric', 'Urgot']),
('2012-04-03', '2012-04-10', ARRAY['Ashe', 'Graves', 'Karthus', 'Leona', 'Singed', 'Trundle', 'Tryndamere', 'Wukong', 'Ziggs', 'Zilean']),
('2012-04-10', '2012-04-17', ARRAY['Annie', 'Gragas', 'Lulu', 'Malphite', 'Miss Fortune', 'Shen', 'Sivir', 'Veigar', '<NAME>', 'Yorick']),
('2012-04-17', '2012-04-24', ARRAY['Alistar', 'Dr. Mundo', 'Galio', 'Heimerdinger', 'Kog''Maw', 'Morgana', 'Poppy', 'Skarner', 'Teemo', 'Viktor']),
('2012-04-24', '2012-05-01', ARRAY['Ahri', 'Corki', 'Graves', 'Maokai', 'Nunu', 'Rammus', 'Ryze', 'Shaco', 'Sion', 'Soraka']),
('2012-05-01', '2012-05-08', ARRAY['Ashe', 'Brand', 'Cho''Gath', 'Fiddlesticks', 'Hecarim', 'Nidalee', 'Singed', 'Udyr', 'Vayne', 'Zilean']),
('2012-05-08', '2012-05-15', ARRAY['Annie', 'Caitlyn', 'Kayle', 'Leona', 'Malphite', 'Olaf', 'Talon', '<NAME>', 'Vladimir', 'Warwick']),
('2012-05-15', '2012-05-22', ARRAY['Cassiopeia', 'Garen', 'Kennen', 'Miss Fortune', 'Mordekaiser', 'Nautilus', 'Shen', 'Shyvana', 'Sivir', 'Sona']),
('2012-05-22', '2012-05-29', ARRAY['Alistar', 'Graves', 'Lux', 'Malzahar', 'Maokai', '<NAME>', 'Morgana', 'Riven', 'Varus', 'Volibear']),
('2012-05-29', '2012-06-05', ARRAY['Amumu', 'Anivia', 'Caitlyn', 'Katarina', 'Kog''Maw', 'Nasus', 'Pantheon', 'Sejuani', 'Soraka', 'Veigar']),
('2012-06-05', '2012-06-12', ARRAY['Cho''Gath', 'Darius', 'Galio', 'Gangplank', 'Heimerdinger', 'Janna', 'Kassadin', 'Urgot', 'Vayne', 'Wukong']),
('2012-06-12', '2012-06-19', ARRAY['Corki', 'Garen', 'Jax', 'Miss Fortune', 'Rammus', 'Ryze', 'Singed', 'Skarner', 'Taric', 'Xerath']),
('2012-06-19', '2012-06-26', ARRAY['Annie', 'Blitzcrank', 'Fiddlesticks', 'Fiora', 'Graves', 'Leona', 'Malphite', 'Rumble', 'Sona', 'Teemo']),
('2012-06-26', '2012-07-03', ARRAY['Alistar', 'Caitlyn', 'Draven', 'Fizz', 'LeBlanc', 'Nunu', 'Orianna', 'Poppy', 'Shen', 'Zilean']),
('2012-07-03', '2012-07-10', ARRAY['Akali', 'Ashe', '<NAME>', 'Kayle', 'Maokai', 'Sejuani', 'Sivir', 'Swain', 'Veigar', 'Warwick']),
('2012-07-10', '2012-07-17', ARRAY['Amumu', 'Cho''Gath', 'Heimerdinger', 'Kog''Maw', '<NAME>', 'Miss Fortune', 'Morgana', 'Renekton', 'Sion', 'Ziggs']),
('2012-07-17', '2012-07-24', ARRAY['Brand', 'Dr. Mundo', 'Ezreal', 'Galio', 'Graves', 'Kassadin', 'Mordekaiser', 'Singed', 'Soraka', 'Wukong']),
('2012-07-24', '2012-07-31', ARRAY['Annie', 'Fiddlesticks', 'Gangplank', 'Lulu', 'Jayce', 'Malphite', 'Nocturne', 'Skarner', 'Urgot', 'Vayne']),
('2012-07-31', '2012-08-07', ARRAY['Alistar', 'Caitlyn', 'Corki', 'Gragas', 'Irelia', 'Karthus', 'Ryze', 'Sejuani', 'Tryndamere', 'Zilean']),
('2012-08-07', '2012-08-14', ARRAY['Ashe', 'Evelynn', 'Garen', 'Hecarim', 'Heimerdinger', 'Rammus', 'Shen', 'Sona', 'Varus', 'Viktor']),
('2012-08-14', '2012-08-21', ARRAY['Amumu', 'Cho''Gath', '<NAME>', 'Nasus', 'Sivir', 'Soraka', 'Twitch', 'Udyr', 'Veigar', 'Zyra']),
('2012-08-21', '2012-08-28', ARRAY['Annie', 'Diana', 'Galio', 'Janna', 'Kassadin', 'Miss Fortune', 'Nunu', 'Singed', 'Twisted Fate', '<NAME>']),
('2012-08-28', '2012-09-04', ARRAY['Ahri', 'Graves', 'Katarina', 'Kennen', 'Leona', 'Master Yi', 'Malphite', 'Taric', 'Teemo', 'Volibear']),
('2012-09-04', '2012-09-11', ARRAY['Alistar', 'Caitlyn', 'Darius', 'Lulu', 'Lux', 'Rengar', 'Ryze', 'Sejuani', 'Talon', 'Vayne']),
('2012-09-11', '2012-09-18', ARRAY['Annie', 'Cho''Gath', 'Corki', 'Dr. Mundo', 'Janna', '<NAME>', 'Mordekaiser', 'Riven', 'Varus', 'Vladimir']),
('2012-09-18', '2012-09-25', ARRAY['Amumu', 'Blitzcrank', 'Jax', '<NAME>', 'Morgana', 'Soraka', '<NAME>', 'Udyr', 'Warwick', 'Zilean']),
('2012-09-25', '2012-10-02', ARRAY['Anivia', 'Ashe', 'Hecarim', 'Nasus', 'Nautilus', 'Ryze', 'Singed', 'Sivir', 'Syndra', 'Taric']),
('2012-10-02', '2012-10-09', ARRAY['Galio', 'Irelia', 'Karthus', 'Kayle', 'Malphite', '<NAME>', 'Sion', 'Teemo', 'Urgot', '<NAME>']),
('2012-10-09', '2012-10-16', ARRAY['Amumu', 'Fiddlesticks', 'Jax', 'Kog''Maw', 'Lux', 'Nunu', 'Pantheon', 'Soraka', 'Tryndamere', 'Twitch']),
('2012-10-16', '2012-10-23', ARRAY['Annie', 'Corki', 'Ezreal', 'Gangplank', 'Kassadin', 'Kennen', 'Kha''Zix', 'Leona', 'Sona', 'Volibear']),
('2012-10-23', '2012-10-30', ARRAY['Alistar', 'Cho''Gath', 'Dr. Mundo', 'Janna', 'Katarina', 'Miss Fortune', 'Skarner', 'Vayne', 'Viktor', 'Ziggs']),
('2012-10-30', '2012-11-06', ARRAY['Ashe', 'Blitzcrank', 'Galio', 'Lulu', 'Morgana', 'Olaf', 'Riven', 'Singed', 'Sivir', 'Talon']),
('2012-11-06', '2012-11-13', ARRAY['Amumu', 'Anivia', 'Annie', 'Caitlyn', 'Corki', 'Nautilus', 'Renekton', 'Sejuani', 'Taric', 'Yorick']),
('2012-11-13', '2012-11-20', ARRAY['Ashe', 'Elise', 'Fiddlesticks', 'Jax', 'Lux', 'Maokai', 'Twitch', 'Vladimir', 'Volibear', 'Wukong']),
('2012-11-20', '2012-11-27', ARRAY['Cho''Gath', 'Dr. Mundo', 'Gangplank', 'Janna', 'Karthus', 'Kog''Maw', 'Malphite', 'Shyvana', 'Teemo', 'Ziggs']),
('2012-11-27', '2012-12-04', ARRAY['Amumu', 'Blitzcrank', 'Evelynn', 'Leona', 'Miss Fortune', 'Riven', 'Udyr', 'Vayne', 'Warwick', 'Xerath']),
('2012-12-04', '2012-12-11', ARRAY['Brand', 'Caitlyn', 'Graves', '<NAME>', 'Morgana', 'Nasus', 'Rammus', 'Sona', 'Twisted Fate', 'Zed']),
('2012-12-11', '2012-12-18', ARRAY['Akali', 'Gragas', 'Jax', 'Kassadin', 'Nautilus', 'Nidalee', 'Singed', 'Taric', 'Urgot', 'Vladimir']),
('2012-12-18', '2012-12-25', ARRAY['Cho''Gath', 'Dr. Mundo', 'Irelia', 'Kog''Maw', 'Lux', 'Mordekaiser', 'Soraka', 'Swain', 'Teemo', 'Twitch']),
('2012-12-25', '2013-01-01', ARRAY['Amumu', 'Ashe', 'Corki', 'Hecarim', 'Nunu', 'Orianna', 'Udyr', 'Viktor', 'Xerath', '<NAME>']),
('2013-01-01', '2013-01-08', ARRAY['Anivia', 'Galio', 'Gangplank', 'Janna', '<NAME>', 'Morgana', 'Nami', 'Nocturne', 'Rammus', 'Varus']),
('2013-01-08', '2013-01-15', ARRAY['Blitzcrank', 'Evelynn', 'Ezreal', 'LeBlanc', 'Renekton', 'Rumble', 'Sejuani', 'Singed', 'Taric', 'Zyra']),
('2013-01-15', '2013-01-22', ARRAY['Ahri', 'Brand', 'Fiddlesticks', 'Jax', 'Kog''Maw', 'Leona', 'Malphite', 'Nasus', 'Urgot', 'Vi']),
('2013-01-22', '2013-01-29', ARRAY['Ashe', 'Cho''Gath', 'Karthus', 'Lux', 'Miss Fortune', 'Shyvana', 'Sion', 'Skarner', 'Sona', 'Wukong']),
('2014-01-29', '2014-02-05', ARRAY['Corki', 'Dr. Mundo', 'Katarina', 'Lulu', 'Malzahar', 'Maokai', 'Riven', 'Sivir', 'Tryndamere', 'Ziggs']),
('2013-02-05', '2013-02-12', ARRAY['Amumu', 'Annie', 'Graves', 'Janna', 'Kayle', 'Nautilus', 'Ryze', 'Udyr', 'Viktor', '<NAME>']),
('2013-02-12', '2013-02-19', ARRAY['Fiora', 'Gangplank', 'Kassadin', '<NAME>', 'Nunu', 'Singed', 'Teemo', 'Thresh', 'Twitch', 'Zyra']),
('2013-02-19', '2013-02-26', ARRAY['Ezreal', 'Fiddlesticks', 'Galio', 'Garen', 'Gragas', 'Morgana', 'Shen', 'Soraka', 'Talon', 'Trundle']),
('2013-02-26', '2013-03-05', ARRAY['Anivia', 'Ashe', 'Brand', 'Caitlyn', 'Jax', 'Olaf', 'Rammus', 'Taric', 'Volibear', 'Wukong']),
('2013-03-05', '2013-03-12', ARRAY['Cho''Gath', 'Corki', 'Janna', 'Karthus', 'Mordekaiser', 'Nasus', 'Skarner', 'Varus', 'Veigar', 'Warwick']),
('2013-03-12', '2013-03-19', ARRAY['Ahri', '<NAME>', 'Kennen', 'Lulu', 'Malphite', 'Miss Fortune', 'Nocturne', 'Shyvana', 'Swain', 'Twisted Fate']),
('2013-03-19', '2013-03-26', ARRAY['Gangplank', 'Irelia', 'Kayle', 'Pantheon', 'Quinn', 'Sejuani', 'Soraka', 'Twitch', 'Vladimir', 'Xerath']),
('2013-03-26', '2013-04-02', ARRAY['Akali', 'Annie', 'Fizz', 'Kha''Zix', 'Kog''Maw', 'Nautilus', 'Riven', 'Sivir', 'Sona', 'Vayne']),
('2013-04-02', '2013-04-09', ARRAY['Amumu', 'Diana', 'Draven', 'Graves', 'Lux', 'Nasus', 'Nidalee', 'Orianna', 'Renekton', 'Zilean']),
('2013-04-09', '2013-04-16', ARRAY['Blitzcrank', 'Caitlyn', 'Ezreal', 'Katarina', 'Leona', 'Malzahar', '<NAME>', 'Nami', 'Ryze', 'Udyr']),
('2013-04-16', '2013-04-23', ARRAY['Ashe', 'Karma', 'Karthus', '<NAME>', 'Maokai', 'Morgana', 'Teemo', 'Wukong', 'Zac', 'Zyra']),
('2013-04-23', '2013-04-30', ARRAY['Dr. Mundo', 'Fiddlesticks', 'Miss Fortune', 'Rammus', 'Shen', 'Thresh', 'Twitch', 'Veigar', '<NAME>', 'Zed']),
('2013-04-30', '2013-05-07', ARRAY['Anivia', 'Ashe', 'Gragas', 'Janna', 'Nunu', 'Olaf', 'Quinn', 'Tryndamere', 'Udyr', 'Volibear']),
('2013-05-07', '2013-05-14', ARRAY['Annie', 'Cassiopeia', 'Corki', 'Darius', 'Jayce', 'Kog''Maw', 'Lulu', 'Sejuani', 'Taric', 'Trundle']),
('2013-05-14', '2013-05-21', ARRAY['Caitlyn', 'Elise', 'Galio', 'Heimerdinger', 'Lissandra', 'Nocturne', 'Rengar', 'Shaco', 'Sivir', 'Sona']),
('2013-05-21', '2013-05-28', ARRAY['Evelynn', 'Malphite', 'Mordekaiser', 'Rumble', 'Soraka', 'Syndra', 'Talon', 'Urgot', 'Varus', 'Vi']),
('2013-05-28', '2013-06-04', ARRAY['Cho''Gath', 'Ezreal', 'Garen', 'Graves', 'Leona', 'Nasus', 'Skarner', 'Viktor', 'Ziggs', 'Zilean']),
('2013-06-04', '2013-06-11', ARRAY['Amumu', 'Brand', 'Hecarim', 'LeBlanc', '<NAME>', 'Nami', 'Nidalee', 'Pantheon', 'Singed', 'Twitch']),
('2013-06-11', '2013-06-18', ARRAY['Ahri', 'Ashe', 'Fiora', 'Janna', 'Kassadin', 'Rammus', 'Shyvana', 'Vayne', '<NAME>', 'Zyra']),
('2013-06-18', '2013-06-25', ARRAY['Blitzcrank', 'Caitlyn', 'Gangplank', '<NAME>', 'Jax', 'Quinn', 'Taric', 'Vladimir', 'Warwick', 'Xerath']),
('2013-06-25', '2013-07-02', ARRAY['Draven', 'Irelia', 'Karma', 'Lux', 'Maokai', 'Renekton', 'Ryze', 'Sivir', '<NAME>', 'Zac']),
('2013-07-02', '2013-07-09', ARRAY['Aatrox', 'Akali', 'Dr. Mundo', 'Ezreal', '<NAME>', '<NAME>une', 'Morgana', 'Orianna', 'Sona', 'Swain']),
('2013-07-09', '2013-07-16', ARRAY['Katarina', 'Kennen', 'Kog''Maw', 'Leona', 'Nunu', 'Riven', 'Teemo', 'Trundle', 'Varus', 'Wukong']),
('2013-07-16', '2013-07-23', ARRAY['Corki', 'Graves', 'Jayce', 'Karthus', 'Malphite', 'Malzahar', 'Olaf', 'Soraka', 'Volibear', 'Zed']),
('2013-07-23', '2013-07-30', ARRAY['Ashe', 'Diana', 'Fiddlesticks', 'Fizz', 'Kha''Zix', 'Nidalee', 'Shen', 'Thresh', 'Twitch', 'Udyr']),
('2013-07-30', '2013-08-06', ARRAY['Annie', 'Fiora', 'Leona', 'Nami', 'Nautilus', 'Sejuani', 'Shyvana', 'Sivir', 'Vayne', 'Veigar']),
('2013-08-06', '2013-08-13', ARRAY['Anivia', 'Caitlyn', 'Cho''Gath', 'Garen', 'Jax', 'Lissandra', 'Lulu', 'Mordekaiser', 'Taric', 'Urgot']),
('2013-08-13', '2013-08-20', ARRAY['Amumu', 'Blitzcrank', 'Darius', '<NAME>', 'Orianna', 'Quinn', 'Tryndamere', 'Vi', 'Ziggs', 'Zilean']),
('2013-08-20', '2013-08-27', ARRAY['Ezreal', 'Gragas', 'Janna', 'Nasus', 'Rumble', 'Sivir', 'Skarner', 'Sona', 'Viktor', 'Zyra']),
('2013-08-27', '2013-09-03', ARRAY['Ahri', 'Draven', 'Kog''Maw', 'LeBlanc', 'Lux', 'Nocturne', 'Rammus', 'Singed', 'Soraka', 'Vladimir']),
('2013-09-03', '2013-09-10', ARRAY['Evelynn', 'Galio', 'Graves', 'Kassadin', 'Kayle', 'Nami', 'Renekton', 'Rengar', 'Thresh', 'Varus']),
('2013-09-10', '2013-09-17', ARRAY['Cassiopeia', 'Elise', 'Janna', 'Leona', 'Lucian', 'Rengar', 'Riven', 'Tw<NAME>', 'Twitch', '<NAME>']),
('2013-09-17', '2013-09-24', ARRAY['Aatrox', 'Ashe', 'Brand', 'Karma', 'Lulu', 'Sejuani', 'Talon', 'Trundle', 'Vayne', 'Warwick']),
('2013-09-24', '2013-10-01', ARRAY['Akali', 'Blitzcrank', 'Caitlyn', 'Malphite', '<NAME>', 'Miss Fortune', 'Pantheon', 'Ryze', 'Taric', 'Zed']),
('2013-10-01', '2013-10-08', ARRAY['Heimerdinger', 'Kennen', 'Morgana', 'Quinn', 'Shyvana', 'Sivir', 'Soraka', 'Syndra', 'Volibear', 'Zyra']),
('2013-10-08', '2013-10-15', ARRAY['Cho''Gath', 'Corki', 'Ezreal', '<NAME>', 'Katarina', '<NAME>', 'Malzahar', 'Nami', 'Sona', 'Wukong']),
('2013-10-15', '2013-10-22', ARRAY['Amumu', 'Annie', 'Diana', 'Draven', 'Gangplank', 'Graves', 'Leona', 'Nautilus', 'Shen', 'Thresh']),
('2013-10-22', '2013-10-29', ARRAY['Janna', 'Jinx', 'Karma', 'Kog''Maw', 'Lux', 'Nunu', 'Rammus', 'Teemo', 'Udyr', 'Xerath']),
('2013-10-29', '2013-11-05', ARRAY['Fiddlesticks', 'Fizz', 'Jax', 'Kha''Zix', 'Lissandra', 'Lucian', 'Lulu', 'Rengar', 'Taric', 'Vayne']),
('2013-11-05', '2013-11-12', ARRAY['Blitzcrank', 'Caitlyn', 'Darius', 'Garen', 'Leona', 'Orianna', 'Skarner', 'Tryndamere', 'Twitch', 'Veigar']),
('2013-11-12', '2013-11-19', ARRAY['Ashe', 'Jayce', 'Karthus', 'Nami', 'Nocturne', 'Olaf', 'Riven', 'Soraka', 'Varus', 'Ziggs']),
('2013-11-19', '2013-11-26', ARRAY['Ahri', 'Anivia', 'Fiora', 'Miss Fortune', 'Pantheon', 'Sivir', 'Sona', 'Trundle', '<NAME>', 'Zyra']),
('2013-11-26', '2013-12-03', ARRAY['Corki', 'Elise', 'Janna', 'Kayle', 'Nasus', 'Quinn', 'Renekton', 'Thresh', 'Vladimir', 'Warwick']),
('2013-12-03', '2013-12-10', ARRAY['Aatrox', 'Cassiopeia', 'Lux', 'Malphite', 'Miss Fortune', 'Nautilus', 'Sivir', 'Talon', 'Taric', 'Wukong']),
('2017-12-10', '2013-12-17', ARRAY['Cho''Gath', 'Graves', 'Heimerdinger', 'Irelia', 'Karma', 'Lulu', '<NAME>', 'Quinn', 'Shaco', 'Twisted Fate']),
('2013-12-17', '2013-12-24', ARRAY['Annie', 'Ashe', 'Draven', 'Morgana', 'Nunu', 'Orianna', 'Sejuani', 'Sona', 'Trundle', 'Volibear']),
('2013-12-24', '2013-12-31', ARRAY['Ezreal', 'Gangplank', '<NAME>', 'Kog''Maw', 'Nami', 'Shen', 'Soraka', 'Syndra', 'Xerath', 'Yasuo']),
('2013-12-31', '2014-01-07', ARRAY['Akali', 'Diana', 'Garen', 'Janna', '<NAME>', 'Leona', 'Ryze', 'Teemo', 'Varus', 'Vayne']),
('2014-01-07', '2014-01-14', ARRAY['Amumu', 'Blitzcrank', 'Brand', 'Fiddlesticks', 'Jax', 'Jinx', 'Lucian', 'Malzahar', 'Shyvana', 'Zyra']),
('2014-01-14', '2014-01-21', ARRAY['Ahri', 'Caitlyn', 'Corki', 'Fizz', 'Kha''Zix', 'Lux', 'Rammus', 'Rengar', 'Taric', 'Udyr']),
('2014-01-21', '2014-01-28', ARRAY['Karma', 'Katarina', 'Lissandra', '<NAME>', 'Olaf', 'Riven', 'Skarner', 'Thresh', 'Tryndamere', 'Twitch']),
('2014-01-28', '2014-02-04', ARRAY['Ashe', 'Fiora', 'Jayce', 'Kennen', 'Lulu', 'Nocturne', 'Pantheon', 'Quinn', 'Sona', '<NAME>']),
('2014-02-04', '2014-02-11', ARRAY['Anivia', 'Draven', 'Elise', 'Karthus', 'Kha''Zix', 'Malphite', 'Nami', 'Orianna', 'Shen', 'Sivir']),
('2014-02-11', '2014-02-18', ARRAY['Aatrox', 'Darius', 'Ezreal', 'Kayle', 'Leona', '<NAME>', 'Soraka', 'Varus', 'Warwick', 'Ziggs']),
('2014-02-18', '2014-02-25', ARRAY['Cho''Gath', 'Fiddlesticks', 'Graves', 'Irelia', 'Janna', 'Quinn', 'Shaco', 'Vladimir', 'Zed', 'Zyra']),
('2014-02-25', '2014-03-04', ARRAY['Annie', 'Blitzcrank', 'Cassiopeia', 'Corki', 'Lucian', 'Nasus', 'Nautilus', 'Taric', 'Trundle', 'Wukong']),
('2014-03-04', '2014-03-11', ARRAY['Kog''Maw', 'Lux', 'Morgana', 'Nunu', 'Renekton', 'Sejuani', 'Thresh', 'Vayne', 'Veigar', 'Volibear']),
('2014-03-11', '2014-03-18', ARRAY['Ashe', 'Gangplank', 'Heimerdinger', 'Jinx', 'Karma', '<NAME>', 'Lulu', 'Shyvana', 'Syndra', 'Vel''Koz']),
('2014-03-18', '2014-03-25', ARRAY['Caitlyn', 'Diana', 'Garen', 'Leona', 'Kha''Zix', 'Nami', 'Rengar', 'Talon', 'Twisted Fate', 'Twitch']),
('2014-03-25', '2014-04-01', ARRAY['Akali', '<NAME>', '<NAME>', 'Sivir', 'Sona', 'Soraka', 'Teemo', 'Xerath', '<NAME>', 'Yasuo']),
('2014-04-01', '2014-04-08', ARRAY['Ahri', 'Draven', 'Janna', 'Jax', 'Nocturne', 'Ryze', 'Skarner', 'Tryndamere', 'Varus', 'Zyra']),
('2014-04-08', '2014-04-15', ARRAY['Amumu', 'Anivia', 'Graves', 'Janna', 'Lissandra', 'Lucian', 'Olaf', 'Riven', 'Shen', 'Taric']),
('2014-04-15', '2014-04-22', ARRAY['Aatrox', 'Blitzcrank', 'Corki', 'Darius', 'Elise', 'Ezreal', 'Fiora', 'Karthus', 'Katarina', 'Thresh']),
('2014-04-22', '2014-04-29', ARRAY['Ashe', 'Irelia', 'Karma', '<NAME>', 'Nami', 'Pantheon', 'Quinn', 'Vladimir', 'Zed', 'Ziggs']),
('2014-04-29', '2014-05-06', ARRAY['Cassiopeia', 'Cho''Gath', 'Jinx', 'Leona', 'Lulu', 'Malphite', 'Nautilus', 'Orianna', 'Sona', 'Trundle']),
('2014-05-06', '2014-05-13', ARRAY['Fiddlesticks', 'Janna', 'Nunu', 'Renekton', 'Shyvana', 'Twitch', 'Urgot', 'Vladimir', 'Zac', 'Zyra']),
('2014-05-13', '2014-05-20', ARRAY['Dr. Mundo', 'Kassadin', 'Kennen', 'Kha''Zix', 'Malzahar', 'Morgana', 'Skarner', 'Soraka', 'Varus', 'Vel''Koz']),
('2014-05-20', '2014-05-27', ARRAY['Hecarim', 'Lux', 'Nasus', 'Nidalee', 'Sejuani', 'Sivir', 'Vayne', 'Vi', 'Viktor', 'Zilean']),
('2014-05-27', '2014-06-03', ARRAY['Ahri', 'Blitzcrank', 'Braum', 'Caitlyn', 'Darius', '<NAME>', '<NAME>', 'Nautilus', 'Singed', 'Volibear']),
('2014-06-03', '2014-06-10', ARRAY['Akali', 'Annie', 'Diana', 'Fizz', 'Gangplank', 'Gragas', 'Kog''Maw', 'Lucian', 'Thresh', 'Wukong']),
('2014-06-10', '2014-06-17', ARRAY['Ashe', 'Corki', 'Evelynn', '<NAME>', 'Karma', 'LeBlanc', 'Lissandra', 'Riven', 'Taric', 'Warwick']),
('2014-06-17', '2014-06-24', ARRAY['Draven', 'Galio', 'Graves', 'Jax', 'Maokai', 'Nami', 'Sona', 'Swain', 'Tryndamere', '<NAME>']),
('2014-06-24', '2014-07-01', ARRAY['Janna', 'Jinx', 'Mordekaiser', 'Quinn', 'Rammus', 'Rumble', 'Shen', 'Soraka', 'Talon', 'Udyr']),
('2014-07-01', '2014-07-08', ARRAY['Brand', 'Jayce', 'Kayle', 'Leona', 'Lulu', 'Nocturne', 'Pantheon', 'Sivir', 'Twitch', 'Yasuo']),
('2014-07-08', '2014-07-15', ARRAY['Amumu', 'Anivia', 'Braum', 'Caitlyn', 'Fiora', 'Renekton', 'Vayne', 'Veigar', 'Vel''Koz', 'Zac']),
('2014-07-15', '2014-07-22', ARRAY['Aatrox', 'Cho''Gath', 'Ezreal', 'Kassadin', 'Kha''Zix', 'Rengar', 'Syndra', 'Varus', 'Zilean', 'Zyra']),
('2014-07-22', '2014-07-29', ARRAY['Blitzcrank', 'Dr. Mundo', 'Gragas', 'Kog''Maw', 'Nasus', 'Skarner', 'Trundle', 'Urgot', 'Xerath', 'Ziggs']),
('2014-07-29', '2014-08-05', ARRAY['Elise', 'Janna', 'Katarina', 'Lucian', 'Malphite', '<NAME>', 'Orianna', 'Ryze', 'Sejuani', 'Sona']),
('2014-08-05', '2014-08-12', ARRAY['Ashe', 'Irelia', 'Jinx', 'Lux', 'Morgana', 'Shyvana', 'Thresh', '<NAME>', 'Vi', 'Zed']),
('2014-08-12', '2014-08-19', ARRAY['Akali', 'Annie', 'Darius', 'Graves', 'Leona', 'Nautilus', 'Nunu', 'Quinn', 'Taric', 'Vladimir']),
('2014-08-19', '2014-08-26', ARRAY['Ahri', 'Caitlyn', 'Draven', 'Karma', '<NAME>', 'Olaf', 'Soraka', 'Teemo', 'Viktor', 'Volibear']),
('2014-08-26', '2014-09-02', ARRAY['Braum', 'Corki', 'Fiddlesticks', 'Gangplank', 'Garen', 'Hecarim', 'Lissandra', 'Malzahar', 'Nami', 'Vayne']),
('2014-09-02', '2014-09-09', ARRAY['Diana', 'Fizz', 'Galio', 'Gnar', 'Jayce', 'Lulu', 'Maokai', 'Sivir', 'Urgot', 'Vel''Koz']),
('2014-09-09', '2014-09-16', ARRAY['Blitzcrank', 'Heimerdinger', '<NAME>', 'Kayle', 'Kennen', '<NAME>', 'Nocturne', 'Shen', 'Twitch', 'Zyra']),
('2014-09-16', '2014-09-23', ARRAY['Aatrox', 'Anivia', 'Graves', 'Janna', 'Karthus', 'Lucian', 'Sona', 'Udyr', 'Yasuo', 'Zac']),
('2014-09-23', '2014-09-30', ARRAY['Fiora', 'Jax', 'Jinx', 'Kha''Zix', 'Quinn', 'Rengar', 'Soraka', 'Talon', 'Taric', 'Ziggs']),
('2014-09-30', '2014-10-07', ARRAY['Ashe', 'Azir', 'Cassiopeia', 'Cho''Gath', 'Kog''Maw', 'Leona', 'Nasus', 'Skarner', 'Thresh', 'Wukong']),
('2014-10-07', '2014-10-14', ARRAY['Caitlyn', 'Ezreal', 'Gragas', 'Kassadin', 'Pantheon', 'Renekton', 'Trundle', 'Veigar', '<NAME>', 'Zilean']),
('2014-10-14', '2014-10-21', ARRAY['Draven', 'Karma', '<NAME>', 'Morgana', 'Rumble', 'Singed', 'Syndra', 'Varus', 'Vi', 'Xerath']),
('2014-10-21', '2014-10-28', ARRAY['Braum', 'Corki', 'Lux', 'Malphite', 'Maokai', 'Orianna', 'Sivir', 'Udyr', 'Vladimir', 'Zed']),
('2014-10-28', '2014-11-04', ARRAY['Brand', 'Lulu', 'Nami', 'Rammus', 'Sejuani', 'Swain', 'Teemo', 'Tryndamere', 'Urgot', 'Vayne']),
('2014-11-04', '2014-11-11', ARRAY['Amumu', 'Blitzcrank', 'Jinx', 'Katarina', 'Lucian', 'Mordekaiser', 'Riven', 'Sion', 'Volibear', 'Zyra']),
('2014-11-11', '2014-11-18', ARRAY['Akali', 'Annie', 'Gangplank', 'Janna', '<NAME>', 'Quinn', 'Shyvana', 'Thresh', 'Varus', 'Viktor']),
('2014-11-18', '2014-11-25', ARRAY['Diana', 'Graves', 'Hecarim', 'Kayle', 'Leona', 'Lissandra', 'Miss Fortune', 'Olaf', 'Soraka', 'Twisted Fate']),
('2014-11-25', '2014-12-02', ARRAY['Ahri', 'Anivia', '<NAME>', 'Kog''Maw', 'Nocturne', 'Nunu', 'Shen', 'Taric', 'Twitch', 'Vel''Koz']),
('2014-12-02', '2014-12-09', ARRAY['Aatrox', 'Ashe', 'Caitlyn', 'Karma', 'Kha''Zix', 'Nidalee', 'Rengar', 'Sona', 'Talon', 'Yasuo']),
('2014-12-09', '2014-12-16', ARRAY['Braum', 'Corki', 'Galio', 'Gragas', 'Heimerdinger', 'Kalista', 'Morgana', 'Ryze', 'Skarner', '<NAME>']),
('2014-12-16', '2014-12-23', ARRAY['Cho''Gath', 'Jax', 'Lucian', 'Lulu', 'Sivir', 'Vi', 'Xerath', 'Zac', 'Ziggs', 'Zilean']),
('2014-12-23', '2014-12-30', ARRAY['Cassiopeia', 'Karthus', 'Malphite', 'Nami', 'Nasus', 'Pantheon', 'Quinn', 'Udyr', 'Urgot', 'Zyra']),
('2014-12-30', '2015-01-06', ARRAY['Blitzcrank', 'Ezreal', 'Kassadin', 'Maokai', 'Rammus', 'Sejuani', 'Thresh', 'Vayne', 'Veigar', 'Zed']),
('2015-01-06', '2015-01-13', ARRAY['Amumu', 'Darius', 'Draven', 'Fiora', 'Fizz', 'Janna', 'LeBlanc', 'Lux', 'Rek''Sai', 'Varus']),
('2015-01-13', '2015-01-20', ARRAY['Annie', 'Braum', 'Graves', 'Irelia', 'Katarina', 'Kog''Maw', 'Shyvana', 'Soraka', 'Trundle', 'Warwick']),
('2015-01-20', '2015-01-27', ARRAY['Ashe', 'Azir', 'Fiddlesticks', 'Gnar', 'Lissandra', 'Morgana', 'Shaco', 'Singed', 'Sona', 'Twitch']),
('2015-01-27', '2015-02-03', ARRAY['Brand', 'Dr. Mundo', 'Jinx', 'Kalista', 'Leona', 'Nautilus', 'Renekton', 'Taric', 'Viktor', 'Volibear']),
('2015-02-03', '2015-02-10', ARRAY['Anivia', 'Corki', 'Karma', '<NAME>', 'Lucian', 'Nunu', 'Rumble', 'Orianna', 'Sion', 'Vel''Koz']),
('2015-02-10', '2015-02-17', ARRAY['Gangplank', 'Heimerdinger', '<NAME>', 'Kayle', 'Kennen', 'Lulu', 'Malzahar', '<NAME>', 'Sivir', 'Zyra']),
('2015-02-17', '2015-02-24', ARRAY['Aatrox', 'Blitzcrank', 'Evelynn', 'Ezreal', 'Gragas', 'Quinn', 'Skarner', 'Syndra', '<NAME>', 'Wukong']),
('2015-02-24', '2015-03-03', ARRAY['Braum', 'Caitlyn', 'Elise', 'Janna', 'Jayce', 'Kha''Zix', 'Nidalee', 'Rengar', 'Ryze', 'Varus']),
('2015-03-03', '2015-03-10', ARRAY['Karthus', 'Olaf', 'Soraka', 'Udyr', 'Urgot', 'Vayne', 'Vladimir', '<NAME>', 'Ziggs', 'Zilean']),
('2015-03-10', '2015-03-17', ARRAY['Ashe', 'Cassiopeia', 'Kalista', 'Nami', 'Rammus', 'Riven', 'Talon', 'Teemo', 'Thresh', 'Zac']),
('2015-03-17', '2015-03-24', ARRAY['Darius', 'Diana', 'Draven', 'Fizz', 'Jax', 'Kog''Maw', 'Lux', 'Morgana', 'Shyvana', 'Warwick']),
('2015-03-24', '2015-03-31', ARRAY['Ahri', 'Amumu', 'Braum', 'Corki', 'Fiddlesticks', 'Graves', 'Malphite', 'Taric', 'Tryndamere', 'Xerath']),
('2015-03-31', '2015-04-07', ARRAY['Akali', 'Bard', 'Garen', 'Hecarim', 'Jinx', 'Kassadin', 'Leona', 'Lucian', 'Mordekaiser', 'Sona']),
('2015-04-07', '2015-04-14', ARRAY['Cho''Gath', 'Karma', 'Lulu', 'Nasus', 'Quinn', 'Sejuani', 'Singed', 'Swain', 'Trundle', 'Twitch']),
('2015-04-14', '2015-04-21', ARRAY['Annie', 'Azir', 'Dr. Mundo', 'Ezreal', 'Gangplank', 'Gnar', 'Rek''Sai', 'Sivir', 'Vel''Koz', 'Zilean']),
('2015-04-21', '2015-04-28', ARRAY['Blitzcrank', 'Brand', 'Caitlyn', 'Heimerdinger', 'Maokai', '<NAME>', 'Nautilus', 'Rumble', 'Warwick', 'Zyra']),
('2015-04-28', '2015-05-05', ARRAY['Ashe', 'Janna', '<NAME>', 'Nami', 'Sion', 'Varus', 'Volibear', 'Wukong', 'Yasuo', 'Zed']),
('2015-05-05', '2015-05-12', ARRAY['Draven', 'Galio', 'Jarvan IV', 'Kalista', 'Katarina', 'Nocturne', 'Ryze', 'Shen', 'Taric', 'Thresh']),
('2015-05-12', '2015-05-19', ARRAY['Aatrox', 'Anivia', 'Evelynn', 'Graves', 'Nunu', 'Pantheon', 'Sona', 'Soraka', 'Urgot', 'Viktor']),
('2015-05-19', '2015-05-26', ARRAY['Braum', 'Corki', 'LeBlanc', 'Kayle', 'Kennen', 'Kha''Zix', 'Malzahar', 'Morgana', 'Rengar', 'Vayne']),
('2015-05-26', '2015-06-02', ARRAY['Bard', 'Elise', 'Ezreal', 'Fiora', 'Jayce', 'Karma', 'Kog''Maw', 'Nidalee', 'Veigar', 'Viktor']),
('2015-06-02', '2015-06-09', ARRAY['Garen', 'Graves', 'Lulu', 'Orianna', 'Quinn', 'Shyvana', 'Skarner', 'Syndra', 'Udyr', 'Zilean']),
('2015-06-09', '2015-06-16', ARRAY['Ekko', 'Leona', 'Lux', 'Nasus', 'Nautilus', 'Olaf', 'Renekton', 'Sivir', 'Twitch', 'Xerath']),
('2015-06-16', '2015-06-23', ARRAY['Akali', 'Amumu', 'Blitzcrank', 'Draven', 'Irelia', 'Lissandra', '<NAME>', 'Miss Fortune', 'Nami', 'Twisted Fate']),
('2015-06-23', '2015-06-30', ARRAY['Ashe', 'Cho''Gath', 'Jax', 'Jinx', 'Karthus', 'Mordekaiser', 'Sejuani', 'Tryndamere', 'Vi', 'Vladimir']),
('2015-06-30', '2015-07-07', ARRAY['Annie', 'Caitlyn', 'Cassiopeia', 'Lucian', 'Shaco', 'Singed', 'Talon', 'Trundle', '<NAME>', 'Zyra']),
('2015-07-07', '2015-07-14', ARRAY['Azir', 'Dr. Mundo', 'Fiddlesticks', 'Gragas', 'Janna', 'Ryze', 'Thresh', 'Urgot', 'Varus', 'Vel''Koz']),
('2015-07-14', '2015-07-21', ARRAY['Ahri', 'Braum', 'Corki', 'Fizz', 'Kalista', 'Rammus', 'Rumble', 'Soraka', 'Teemo', 'Warwick']),
('2015-07-21', '2015-07-28', ARRAY['Brand', 'Ezreal', 'Kassadin', 'Nunu', 'Riven', 'Sona', 'Swain', 'Taric', 'Vayne', 'Zac']),
('2015-07-28', '2015-08-04', ARRAY['Bard', 'Darius', 'Diana', 'Evelynn', 'Kayle', 'Kog''Maw', 'Malphite', 'Quinn', '<NAME>', 'Viktor']),
('2015-08-04', '2015-08-11', ARRAY['Elise', 'Galio', 'Heimerdinger', 'Karma', 'Katarina', 'Shen', 'Sion', 'Twitch', 'Volibear', 'Zilean']),
('2015-08-11', '2015-08-18', ARRAY['Draven', 'Garen', 'Hecarim', '<NAME>', 'Lulu', 'Lux', 'Nidalee', 'Rek''Sai', 'Sivir', 'Veigar']),
('2015-08-18', '2015-08-25', ARRAY['Anivia', 'Ashe', 'Gnar', 'Kalista', 'LeBlanc', '<NAME>', 'Leona', 'Nocturne', 'Shyvana', 'Xerath']),
('2015-08-25', '2015-09-01', ARRAY['Blitzcrank', 'Caitlyn', 'Janna', 'Jinx', 'Malzahar', 'Maokai', 'Wukong', 'Skarner', '<NAME>', 'Udyr']),
('2015-09-01', '2015-09-08', ARRAY['Amumu', 'Fiora', 'Lucian', '<NAME>', 'Nami', 'Renekton', 'Taric', 'Varus', 'Zed', 'Ziggs']),
('2015-09-08', '2015-09-15', ARRAY['Corki', 'Kha''Zix', 'Lissandra', 'Nasus', 'Rengar', 'Soraka', 'Syndra', 'Thresh', 'Vayne', 'Yasuo']),
('2015-09-15', '2015-09-22', ARRAY['Aatrox', 'Annie', 'Kalista', 'Kog''Maw', 'Morgana', 'Orianna', 'Pantheon', 'Singed', 'Talon', 'Vladimir']),
('2015-09-22', '2015-09-29', ARRAY['Braum', 'Cassiopeia', 'Jayce', 'Karma', 'Karthus', 'Olaf', 'Quinn', 'Sejuani', 'Sivir', 'Tryndamere']),
('2015-09-29', '2015-10-06', ARRAY['Akali', 'Azir', 'Cho''Gath', 'Ezreal', 'Graves', 'Kennen', 'Sona', 'Trundle', '<NAME>', 'Zilean']),
('2015-10-06', '2015-10-13', ARRAY['Ashe', 'Brand', 'Dr. Mundo', 'Ekko', 'Fizz', 'Irelia', 'Leona', 'Lulu', 'Twitch', 'Warwick']),
('2015-10-13', '2015-10-20', ARRAY['Ahri', 'Caitlyn', 'Fiddlesticks', 'Gragas', 'Janna', 'Jax', 'Swain', 'Taric', 'Varus', 'Zyra']),
('2015-10-20', '2015-10-27', ARRAY['Blitzcrank', 'Corki', 'Jinx', 'Malphite', 'Nami', 'Ryze', 'Shaco', 'Vel''Koz', 'Vi', 'Viktor']),
('2015-10-27', '2015-11-03', ARRAY['Bard', 'Darius', 'Diana', 'Kindred', 'Lucian', 'Lux', '<NAME>une', 'Nunu', 'Sion', 'Soraka']),
('2015-11-03', '2015-11-10', ARRAY['Draven', 'Gangplank', 'Katarina', 'Rammus', 'Rek''Sai', 'Rumble', 'Sivir', '<NAME>', 'Xerath', 'Zilean']),
('2015-11-10', '2015-11-17', ARRAY['Anivia', 'Ashe', 'Elise', 'Fiora', 'Galio', 'Graves', 'Hecarim', 'Karma', 'Morgana', 'Shyvana']),
('2015-11-17', '2015-11-24', ARRAY['Caitlyn', 'Evelynn', 'Heimerdinger', 'Kog''Maw', 'LeBlanc', 'Lulu', 'Master Yi', 'Shen', 'Sona', 'Syndra']),
('2015-11-24', '2015-12-01', ARRAY['Braum', 'Garen', 'Janna', 'Kassadin', 'Lucian', 'Nasus', 'Nocturne', 'Twitch', 'Udyr', 'Ziggs']),
('2015-12-01', '2015-12-08', ARRAY['Ekko', 'Jinx', '<NAME>', 'Riven', 'Sejuani', 'Soraka', 'Thresh', 'Tryndamere', 'Vayne', 'Veigar']),
('2015-12-08', '2015-12-15', ARRAY['Blitzcrank', 'Cho''Gath', '<NAME>', 'Kalista', 'Karthus', 'Leona', 'Miss Fortune', 'Olaf', 'Twisted Fate', 'Zac']),
('2015-12-15', '2015-12-22', ARRAY['Corki', 'Illaoi', 'Lissandra', 'Morgana', 'Quinn', 'Singed', 'Skarner', 'Taric', 'Warwick', 'Zed']),
('2015-12-22', '2015-12-29', ARRAY['Ezreal', 'Janna', 'Jayce', 'Karma', 'Kayle', 'Kha''Zix', 'Kog''Maw', 'Nautilus', 'Rengar', 'Zyra']),
('2015-12-29', '2016-01-05', ARRAY['Ashe', 'Graves', 'Lulu', 'Malzahar', 'Nidalee', 'Renekton', 'Talon', 'Trundle', 'Volibear', 'Zilean']),
('2016-01-05', '2016-01-12', ARRAY['Caitlyn', 'Irelia', 'Maokai', 'Nami', 'Nunu', 'Orianna', 'Rek''Sai', 'Ryze', '<NAME>', 'Varus']),
('2016-01-12', '2016-01-19', ARRAY['Amumu', 'Bard', 'Braum', 'Cassiopeia', 'Evelynn', 'Gangplank', 'Sivir', 'Vayne', 'Vel''Koz', 'Vladimir']),
('2016-01-19', '2016-01-26', ARRAY['Ahri', 'Azir', 'Dr. Mundo', 'Draven', 'Gnar', 'Leona', 'Lucian', 'Pantheon', 'Sion', 'Soraka']),
('2016-01-26', '2016-02-02', ARRAY['Corki', 'Diana', 'Janna', 'Kennen', '<NAME>', 'Mordekaiser', 'Sona', 'Swain', 'Urgot', '<NAME>']),
('2016-02-02', '2016-02-09', ARRAY['Akali', 'Anivia', 'Blitzcrank', 'Fiddlesticks', 'Gragas', 'Poppy', 'Quinn', 'Thresh', 'Twitch', 'Yasuo']),
('2016-02-09', '2016-02-16', ARRAY['Ashe', 'Fizz', 'Hecarim', 'Kalista', 'Rammus', 'Sejuani', 'Taric', 'Teemo', 'Ziggs', 'Zilean']),
('2016-02-16', '2016-02-23', ARRAY['Ezreal', 'Fiora', 'Graves', 'Jax', 'Karma', 'Lux', 'Nami', 'Shaco', 'Udyr', 'Xerath']),
('2016-02-23', '2016-03-01', ARRAY['Aatrox', 'Annie', 'Brand', 'Elise', 'Jhin', 'Kog''Maw', 'Lulu', 'Malphite', 'Morgana', 'Rumble']),
('2016-03-01', '2016-03-08', ARRAY['Braum', 'Caitlyn', 'Garen', 'Heimerdinger', 'Jinx', 'Katarina', '<NAME>', 'Nautilus', 'Nidalee', 'Viktor']),
('2016-03-08', '2016-03-15', ARRAY['Blitzcrank', 'Cassiopeia', 'Ekko', 'Leona', 'Miss Fortune', 'Wukong', 'Olaf', 'Shen', 'Shyvana', 'Vayne']),
('2016-03-15', '2016-03-22', ARRAY['Draven', 'Kindred', 'Malzahar', 'Nami', 'Nocturne', 'Quinn', 'Riven', 'Singed', 'Taric', 'Twisted Fate']),
('2016-03-22', '2016-03-29', ARRAY['Darius', 'Jayce', 'Kalista', 'Lissandra', 'Renekton', 'Rengar', 'Sona', 'Soraka', 'Twitch', 'Zac']),
('2016-03-29', '2016-04-05', ARRAY['Bard', 'Corki', 'Irelia', 'Karma', 'Karthus', 'Lucian', 'Nasus', 'Syndra', 'Vi', 'Volibear']),
('2016-04-05', '2016-04-12', ARRAY['Ezreal', 'Illaoi', '<NAME>', 'LeBlanc', 'Poppy', 'Rek''Sai', 'Thresh', 'Varus', 'Zilean', 'Zyra']),
('2016-04-12', '2016-04-19', ARRAY['Aurelion Sol', 'Caitlyn', 'Fiddlesticks', 'Galio', 'Jhin', 'Kha''Zix', 'Leona', 'Maokai', 'Nami', 'Ryze']),
('2016-04-19', '2016-04-26', ARRAY['Azir', 'Cho''Gath', 'Graves', 'Janna', 'Morgana', 'Sejuani', 'Talon', 'Vayne', 'Vladimir', '<NAME>']),
('2016-04-26', '2016-05-03', ARRAY['Blitzcrank', 'Gragas', 'Kalista', 'Kassadin', 'Lulu', 'Orianna', 'Sion', 'Sivir', 'Skarner', '<NAME>']),
('2016-05-03', '2016-05-10', ARRAY['Annie', 'Bard', 'Braum', 'Evelynn', 'Fizz', '<NAME>', '<NAME>une', 'Swain', 'Trundle', 'Twitch']),
('2016-05-10', '2016-05-17', ARRAY['Anivia', 'Draven', 'Elise', 'Fiora', 'Jinx', 'Nami', 'Pantheon', 'Rammus', 'Soraka', 'Viktor']),
('2016-05-17', '2016-05-24', ARRAY['Ahri', 'Amumu', 'Brand', 'Graves', 'Hecarim', 'Leona', 'Shaco', 'Taric', 'Tryndamere', 'Varus']),
('2016-05-24', '2016-05-31', ARRAY['Diana', 'Gangplank', 'Janna', 'Jhin', 'Malphite', 'Nidalee', 'Quinn', 'Thresh', 'Vel''Koz', 'Xerath']),
('2016-05-31', '2016-06-07', ARRAY['Ezreal', 'Gnar', 'Lucian', 'Morgana', 'Nunu', '<NAME>', 'Udyr', 'Urgot', 'Zed', 'Ziggs']),
('2016-06-07', '2016-06-14', ARRAY['Aatrox', 'Caitlyn', 'Kalista', 'Karma', 'Malzahar', 'Nasus', 'Shyvana', 'Sona', 'Taliyah', 'Warwick']),
('2016-06-14', '2016-06-21', ARRAY['Garen', 'Kindred', 'Lissandra', 'Lulu', 'Lux', 'Nautilus', 'Syndra', 'Twitch', 'Vayne', 'Volibear']),
('2016-06-21', '2016-06-28', ARRAY['Akali', 'Braum', 'Draven', 'Dr. Mundo', 'Kog''Maw', 'Olaf', 'Rumble', 'Veigar', 'Zac', 'Zilean']),
('2016-06-28', '2016-07-05', ARRAY['Ashe', 'Blitzcrank', 'Corki', 'Ekko', 'Heimerdinger', 'Kha''Zix', 'Rengar', 'Riven', 'Taric', 'Yasuo']),
('2016-07-05', '2016-07-12', ARRAY['Bard', 'Galio', 'Graves', 'Jinx', 'Karthus', '<NAME>', 'Rek''Sai', 'Teemo', 'Thresh', 'Wukong']),
('2016-07-12', '2016-07-19', ARRAY['<NAME>', 'Illaoi', 'Leona', 'Nami', 'Quinn', 'Sejuani', 'Shen', 'Sivir', 'Twisted Fate', 'Vi']),
('2016-07-19', '2016-07-26', ARRAY['Azir', 'Fiddlesticks', 'Jax', 'Karma', 'LeBlanc', 'Lucian', '<NAME>', 'Nocturne', 'Renekton', '<NAME>']),
('2016-07-26', '2016-08-02', ARRAY['Cassiopeia', 'Gragas', 'Irelia', 'Jhin', 'Katarina', 'Maokai', 'Sona', 'Soraka', 'Varus', '<NAME>']),
('2016-08-02', '2016-08-09', ARRAY['Caitlyn', 'Ezreal', 'Gangplank', 'Jayce', '<NAME>', 'Lulu', 'Orianna', 'Shaco', 'Singed', 'Taric']),
('2016-08-09', '2016-08-16', ARRAY['Blitzcrank', 'Draven', 'Evelynn', 'Fiora', 'Fizz', 'Hecarim', 'Leona', 'Talon', 'Tryndamere', 'Vayne']),
('2016-08-16', '2016-08-23', ARRAY['Anivia', 'Corki', 'Darius', 'Kalista', 'Karma', 'Kassadin', 'Morgana', 'Nidalee', 'Trundle', 'Udyr']),
('2016-08-23', '2016-08-30', ARRAY['Ahri', 'Ashe', 'Braum', 'Cho''Gath', '<NAME>', 'Kog''Maw', 'Pantheon', 'Skarner', 'Thresh', 'Zyra']),
('2016-08-30', '2016-09-06', ARRAY['Elise', 'Jinx', 'Kled', 'Quinn', 'Rammus', 'Sona', 'Vel''Koz', 'Vladimir', 'Xerath', 'Zilean']),
('2016-09-06', '2016-09-13', ARRAY['Dr. Mundo', 'Janna', 'Malphite', '<NAME>', 'Nami', 'Rek''Sai', 'Shyvana', 'Syndra', 'Twitch', 'Viktor']),
('2016-09-13', '2016-09-20', ARRAY['Bard', 'Gnar', 'Graves', 'Lucian', 'Malzahar', 'Riven', 'Soraka', 'Volibear', 'Zac', 'Zed']),
('2016-09-20', '2016-09-27', ARRAY['Diana', 'Kha''Zix', 'Lissandra', 'Lulu', 'Nasus', 'Rengar', 'Ryze', '<NAME>', 'Varus', 'Vayne']),
('2016-09-27', '2016-10-04', ARRAY['Jhin', 'Kalista', 'Kindred', 'Leona', 'Mordekaiser', 'Sona', 'Veigar', 'Vi', 'Wukong', 'Yasuo']),
('2016-10-04', '2016-10-11', ARRAY['Ezreal', 'Galio', 'Janna', 'Kog''Maw', 'Lux', 'Maokai', 'Morgana', 'Olaf', 'Skarner', 'Yorick']),
('2016-10-11', '2016-10-18', ARRAY['<NAME>', 'Braum', 'Corki', 'Gragas', 'Karthus', 'Nautilus', 'Nocturne', 'Sivir', 'Swain', 'Taric']),
('2016-10-18', '2016-10-25', ARRAY['Akali', 'Brand', 'Caitlyn', 'Fiddlesticks', 'Jinx', 'Kennen', 'Nami', 'Sejuani', 'Thresh', 'Ziggs']),
('2016-10-25', '2016-11-01', ARRAY['Blitzcrank', 'Illaoi', 'Ivern', 'Karma', 'Katarina', 'LeBlanc', '<NAME>', '<NAME>', 'Quinn', 'Rumble']),
('2016-11-01', '2016-11-08', ARRAY['Bard', 'Draven', 'Ekko', 'Evelynn', 'Hecarim', 'Jax', 'Renekton', '<NAME>', 'Varus', 'Zilean']),
('2016-11-08', '2016-11-15', ARRAY['Aatrox', 'Azir', 'Irelia', 'Kalista', 'Kassadin', 'Lulu', 'Nunu', 'Taric', 'Twitch', 'Volibear']),
('2016-11-15', '2016-11-22', ARRAY['Cassiopeia', 'Gangplank', '<NAME>', 'Jhin', 'Karma', 'Lucian', '<NAME>', 'Soraka', 'Tryndamere', 'Vel''Koz']),
('2016-11-22', '2016-11-29', ARRAY['Ahri', 'Amumu', 'Corki', 'Ezreal', 'Fiora', 'Shaco', 'Lulu', '<NAME>', 'Trundle', 'Xerath']),
('2016-11-29', '2016-12-06', ARRAY['Ashe', 'Bard', 'Darius', 'Karma', 'Nidalee', 'Orianna', 'Rek''Sai', 'Syndra', 'Urgot', 'Vayne']),
('2016-12-06', '2016-12-13', ARRAY['Annie', 'Graves', 'Kayle', 'Kog''Maw', 'Malzahar', 'Nautilus', 'Poppy', 'Shyvana', 'Talon', 'Udyr']),
('2016-12-13', '2016-12-20', ARRAY['Caitlyn', 'Elise', 'Fizz', 'Heimerdinger', 'Jayce', 'Morgana', 'Rammus', 'Sivir', 'Soraka', 'Vladimir']),
('2016-12-20', '2016-12-27', ARRAY['Anivia', 'Garen', 'Jinx', 'Nami', 'Pantheon', 'Quinn', 'Warwick', 'Zac', 'Zed', 'Zyra']),
('2016-12-27', '2017-01-03', ARRAY['Camille', 'Draven', 'Kha''Zix', 'Lux', 'Rengar', 'Riven', 'Ryze', '<NAME>', 'Teemo', 'Varus']),
('2017-01-03', '2017-01-10', ARRAY['Blitzcrank', 'Gnar', '<NAME>', '<NAME>', 'Sejuani', 'Sion', 'Sona', 'Twisted Fate', 'Twitch', 'Yasuo']),
('2017-01-10', '2017-01-17', ARRAY['Corki', 'Janna', 'Kalista', 'Kindred', 'Lissandra', 'Nocturne', 'Rumble', 'Shen', 'Taric', 'Zilean']),
('2017-01-17', '2017-01-24', ARRAY['Akali', 'Evelynn', 'Ezreal', 'Jax', 'Karma', 'Leona', 'Lucian', 'Singed', 'Skarner', 'Viktor']),
('2017-01-24', '2017-01-31', ARRAY['Braum', 'Diana', 'Gragas', 'Hecarim', 'Jhin', 'Lulu', 'Malphite', 'Vayne', 'Veigar', 'Wukong']),
('2017-01-31', '2017-02-07', ARRAY['Ashe', 'Bard', 'Caitlyn', 'LeBlanc', 'Maokai', 'Nasus', 'Nunu', 'Thresh', '<NAME>', 'Ziggs']),
('2017-02-07', '2017-02-14', ARRAY['Jinx', 'Karthus', 'Kassadin', 'Illaoi', 'Nami', 'Renekton', 'Sivir', 'Soraka', 'Vi', 'Volibear']),
('2017-02-14', '2017-02-21', ARRAY['Azir', 'Ekko', 'Fiddlesticks', 'Gangplank', 'Kog''Maw', 'Morgana', 'Nautilus', 'Olaf', 'Varus', 'Xerath']),
('2017-02-21', '2017-02-28', ARRAY['Amumu', 'Brand', 'Cassiopeia', 'Draven', 'Irelia', 'Katarina', '<NAME>', 'Rammus', '<NAME>', 'Yorick']),
('2017-02-28', '2017-03-07', ARRAY['Blitzcrank', 'Corki', 'Fiora', '<NAME>', 'Shaco', 'Swain', 'Talon', 'Trundle', 'Twitch', 'Zyra']),
('2017-03-07', '2017-03-14', ARRAY['Ahri', '<NAME>', 'Garen', 'Kalista', 'Leona', 'Quinn', 'Rek''Sai', 'Shyvana', 'Sona', 'Teemo']),
('2017-03-14', '2017-03-21', ARRAY['Darius', 'Galio', 'Janna', 'Kha''Zix', 'Lucian', 'Poppy', 'Rengar', 'Syndra', 'Urgot', 'Vel''Koz']),
('2017-03-21', '2017-03-28', ARRAY['Elise', 'Ezreal', 'Fizz', 'Jhin', 'Karma', 'Orianna', 'Pantheon', 'Riven', 'Taric', 'Warwick']),
('2017-03-28', '2017-04-04', ARRAY['Anivia', 'Ashe', 'Braum', 'Jayce', 'Lulu', 'Udyr', 'Vayne', 'Vladimir', 'Yasuo', 'Zac']),
('2017-04-04', '2017-04-11', ARRAY['Aatrox', 'Caitlyn', 'Dr. Mundo', 'Jinx', 'Kindred', 'Malzahar', 'Mordekaiser', 'Nidalee', 'Ryze', 'Zilean']),
('2017-04-11', '2017-04-18', ARRAY['Graves', 'Ivern', 'Kog''Maw', 'Lux', 'Sion', 'Soraka', 'Thresh', 'Tryndamere', 'Varus', 'Zed']),
('2017-04-18', '2017-04-25', ARRAY['Annie', 'Camille', 'Cho''Gath', 'Draven', 'Gnar', 'Miss Fortune', 'Nami', 'Nautilus', 'Nocturne', 'Sejuani']),
('2017-04-25', '2017-05-02', ARRAY['Ahri', 'Wukong', 'Nami', 'Rengar', 'Bard', 'Heimerdinger', 'Morgana', '<NAME>', 'Rumble', 'Shen', 'Sivir', 'Skarner', 'Twitch', 'Viktor']),
('2017-05-02', '2017-05-09', ARRAY['Brand', 'Corki', 'Evelynn', 'Hecarim', 'Jax', 'Kalista', 'Lissandra', 'Singed', '<NAME>', 'Twisted Fate']),
('2017-05-09', '2017-05-16', ARRAY['Blitzcrank', 'Diana', 'Lucian', 'Malphite', 'Nasus', 'Rakan', 'Veigar', 'Vi', 'Xayah', '<NAME>']),
('2017-05-16', '2017-05-23', ARRAY['Akali', 'Ezreal', 'Leona', 'Maokai', 'Nunu', 'Olaf', 'Sona', 'Urgot', 'Wukong', 'Ziggs']),
('2017-05-23', '2017-05-30', ARRAY['Gragas', 'Illaoi', 'Janna', 'Jhin', 'Kassadin', 'LeBlanc', 'Renekton', 'Taric', 'Vayne', 'Volibear']),
('2017-05-30', '2017-06-06', ARRAY['Ashe', 'Azir', 'Caitlyn', 'Ekko', 'Fiddlesticks', 'Karma', 'Kennen', 'Rammus', 'Vel''Koz', 'Yorick']),
('2017-06-06', '2017-06-13', ARRAY['Amumu', 'Braum', 'Gangplank', 'Irelia', 'Jinx', 'Karthus', 'Katarina', 'Kog''Maw', 'Lulu', 'Shaco']),
('2017-06-13', '2017-06-20', ARRAY['Draven', 'Elise', 'Fiora', 'Rek''Sai', 'Soraka', 'Talon', 'Teemo', 'Thresh', 'Varus', 'Xerath']),
('2017-06-20', '2017-06-27', ARRAY['Aurelion Sol', 'Bard', 'Cassiopeia', 'Master Yi', 'Miss Fortune', 'Nami', 'Pantheon', 'Shyvana', 'Twitch', 'Vladimir']),
('2017-06-27', '2017-07-04', ARRAY['Corki', 'Fizz', 'Galio', 'Kalista', 'Kayle', 'Kha''Zix', 'Morgana', 'Nautilus', 'Orianna', 'Rengar']),
('2017-07-04', '2017-07-11', ARRAY['Ahri', 'Anivia', 'Blitzcrank', 'Darius', '<NAME>', 'Jayce', 'Jinx', 'Nidalee', 'Sivir', 'Zyra']),
('2017-07-11', '2017-07-18', ARRAY['Dr. Mundo', 'Ezreal', 'Janna', 'Kindred', 'Lucian', 'Lulu', 'Malzahar', 'Sejuani', 'Sion', 'Syndra']),
('2017-07-18', '2017-07-25', ARRAY['Braum', 'Caitlyn', 'Karma', 'Lux', 'Nocturne', 'Ryze', 'Swain', 'Tryndamere', 'Udyr', 'Vayne']),
('2017-07-25', '2017-08-01', ARRAY['Aatrox', 'Annie', 'Jhin', 'Kog''Maw', 'Leona', 'Riven', 'Soraka', 'Warwick', 'Zac', 'Zed']),
('2017-08-01', '2017-08-08', ARRAY['Akali', 'Braum', 'Gnar', 'Graves', '<NAME>', 'Miss Fortune', 'Nasus', 'Sona', 'Taliyah', 'Taric', 'Trundle', 'Twisted Fate', 'Varus', 'Viktor']),
('2017-08-08', '2017-08-15', ARRAY['Brand', 'Heimerdinger', 'Illaoi', 'Irelia', 'Karthus', 'Kayn', 'Maokai', 'Quinn', 'Shaco', 'Singed', 'Sivir', '<NAME>', 'Teemo', 'Twitch']),
('2017-08-15', '2017-08-22', ARRAY['Cassiopeia', 'Darius', 'Draven', 'Ekko', 'Gragas', 'Janna', 'Kalista', 'LeBlanc', 'Nami', 'Olaf', 'Poppy', 'Thresh', 'Urgot', 'Yorick']),
('2017-08-22', '2017-08-29', ARRAY['Ashe', 'Caitlyn', 'Garen', 'Jayce', 'Kennen', 'Kled', 'Lissandra', 'Mordekaiser', 'Nidalee', 'Sion', 'Vi', '<NAME>', 'Zilean', 'Zyra']),
('2017-08-29', '2017-09-05', ARRAY['Ahri', 'Blitzcrank', 'Corki', 'Evelynn', 'Ezreal', 'Ivern', '<NAME>', '<NAME>', 'Nami', 'Rumble', 'Shen', 'Sona', 'Soraka', 'Veigar']),
('2017-09-05', '2017-09-12', ARRAY['<NAME>', 'Bard', 'Cho''Gath', 'Karma', 'Lucian', '<NAME>', 'Orianna', 'Pantheon', 'Renekton', 'Rengar', 'Sejuani', 'Shyvana', 'Vayne', 'Xerath']),
('2017-09-12', '2017-09-19', ARRAY['Anivia', 'Fiddlesticks', 'Galio', 'Jinx', 'Kha''Zix', 'Kindred', 'Lulu', 'Morgana', 'Ornn', 'Ryze', 'Talon', 'Vel''Koz', 'Wukong', 'Ziggs']),
('2017-09-19', '2017-09-26', ARRAY['Braum', 'Diana', 'Elise', 'Fiora', 'Gangplank', 'Graves', 'Hecarim', 'Jhin', 'Kassadin', 'Kayle', 'Leona', 'Rammus', 'Riven', 'Vladimir']),
('2017-09-26', '2017-10-03', ARRAY['Amumu', 'Annie', 'Azir', 'Jax', 'Katarina', 'Kog''Maw', 'Lux', 'Malphite', 'Miss Fortune', 'Nunu', 'Skarner', 'Taric', 'Varus', 'Yasuo']),
('2017-10-03', '2017-10-10', ARRAY['Brand', 'Ekko', 'Kalista', 'Malzahar', 'Nasus', 'Nautilus', 'Rek''Sai', 'Singed', 'Sivir', '<NAME>', 'Trundle', 'Volibear', 'Zed', 'Zyra']),
('2017-10-10', '2017-10-17', ARRAY['Akali', 'Camille', 'Draven', 'Dr. Mundo', 'Janna', 'Maokai', 'Poppy', 'Quinn', 'Syndra', 'Thresh', 'Tryndamere', 'Twitch', 'Udyr', 'Warwick']),
('2017-10-17', '2017-10-24', ARRAY['Ahri', 'Brand', 'Caitlyn', 'Darius', 'Jax', 'Miss Fortune', 'Morgana', 'Nami', 'Nocturne', 'Renekton', 'Sona', '<NAME>', 'Yasuo', 'Ziggs']),
('2017-10-24', '2017-10-31', ARRAY['Cho''Gath', 'Ezreal', 'Garen', 'Gnar', 'Heimerdinger', 'Illaoi', 'Jinx', 'Karthus', 'Mordekaiser', 'Shaco', 'Sion', 'Swain', 'Twisted Fate', 'Zilean']),
('2017-10-31', '2017-11-07', ARRAY['Cassiopeia', 'Corki', 'Galio', 'Irelia', 'Nidalee', 'Olaf', 'Rengar', 'Sona', 'Soraka', 'Teemo', 'Urgot', 'Vayne', 'Vi', 'Xerath']),
('2017-11-07', '2017-11-14', ARRAY['Ahri', 'Bard', 'Darius', 'Evelynn', 'Gragas', 'Ivern', 'Jhin', 'Kennen', 'Lucian', 'Nami', 'Sejuani', 'Shyvana', 'Veigar', 'Ziggs']),
('2017-11-14', '2017-11-21', ARRAY['Aurelion Sol', 'Jayce', 'Kindred', 'Lulu', 'Master Yi', 'Miss Fortune', 'Wukong', 'Pantheon', 'Rumble', 'Ryze', 'Sivir', 'Talon', 'Vel''Koz', 'Yorick']),
('2017-11-21', '2017-11-28', ARRAY['Amumu', 'Braum', 'Diana', 'Ekko', 'Fiora', 'Jhin', 'Katarina', 'Kha''Zix', 'Nautilus', 'Renekton', '<NAME>', 'Twitch', 'Vayne', 'Zyra']),
('2017-11-28', '2017-12-05', ARRAY['Ashe', 'Blitzcrank', 'Graves', 'Hecarim', 'Janna', '<NAME>', '<NAME>', 'Leona', 'Nunu', 'Quinn', 'Rek''Sai', 'Singed', 'Varus', 'Vladimir']),
('2017-12-05', '2017-12-12', ARRAY['Fiddlesticks', 'Kalista', 'Kled', 'Kog''Maw', 'Lux', 'Malzahar', 'Orianna', 'Poppy', 'Rammus', 'Riven', 'Taric', 'Trundle', 'Volibear', 'Zed']),
('2017-12-12', '2017-12-19', ARRAY['Anivia', 'Annie', 'Brand', 'Draven', 'Elise', 'Jinx', 'Kayle', 'Malphite', 'Skarner', 'Soraka', 'Taliyah', 'Thresh', '<NAME>', 'Zoe']),
('2017-12-19', '2017-12-26', ARRAY['Bard', 'Caitlyn', 'Corki', 'Ezreal', 'Garen', 'Heimerdinger', 'Karma', 'Maokai', 'Morgana', 'Nami', 'Nocturne', 'Syndra', 'Tryndamere', '<NAME>']),
('2017-12-26', '2018-01-02', ARRAY['Akali', 'Azir', 'Cho''Gath', 'Galio', 'Kassadin', 'LeBlanc', 'Lucian', 'Nidalee', 'Renekton', 'Sion', 'Sivir', 'Sona', 'Urgot', 'Zilean']),
('2018-01-02', '2018-01-09', ARRAY['Aatrox', 'Ahri', 'Gangplank', 'Jax', 'Jhin', 'Kayn', 'Lulu', 'Nasus', 'Nautilus', 'Shen', 'Twitch', 'Vel''Koz', 'Viktor', 'Yasuo']),
('2018-01-09', '2018-01-16', ARRAY['Amumu', 'Braum', 'Camille', 'Cassiopeia', '<NAME>', 'Gnar', '<NAME>', 'Karthus', '<NAME>', 'Shyvana', '<NAME>', 'Udyr', 'Varus', 'Yorick']),
('2018-01-16', '2018-01-23', ARRAY['Aurelion Sol', 'Ivern', 'Kindred', 'Kog''Maw', 'Leona', 'Lissandra', 'Olaf', 'Quinn', 'Swain', 'Talon', 'Warwick', 'Xerath', 'Zac', 'Ziggs']),
('2018-01-23', '2018-01-30', ARRAY['Blitzcrank', 'Darius', 'Graves', 'Illaoi', 'Janna', 'Wukong', 'Mordekaiser', 'Ornn', 'Rakan', 'Sejuani', 'Vi', 'Xayah', '<NAME>', 'Zyra']),
('2018-01-30', '2018-02-06', ARRAY['Annie', 'Draven', 'Evelynn', 'Fiora', 'Galio', 'Irelia', 'Kalista', 'Katarina', 'Maokai', 'Ryze', 'Shaco', 'Thresh', 'Urgot', 'Veigar']),
('2018-02-06', '2018-02-13', ARRAY['Annie', 'Ashe', 'Diana', 'Ekko', 'Gragas', 'Lux', 'Orianna', 'Poppy', 'Rengar', 'Soraka', 'Taric', 'Teemo', 'Vayne', 'Volibear']),
('2018-02-13', '2018-02-20', ARRAY['Ezreal', 'Hecarim', 'Jayce', 'Jinx', 'Kennen', 'Kha''Zix', '<NAME>', 'Nami', 'Nunu', 'Rammus', 'Rumble', 'Singed', 'Zed', 'Zilean']),
('2018-02-20', '2018-02-27', ARRAY['Caitlyn', 'Jhin', 'Lucian', 'Lulu', 'Malphite', 'Malzahar', 'Morgana', 'Pantheon', 'Renekton', 'Sion', 'Skarner', 'Sona', 'Trundle', 'Vladimir']),
('2018-02-27', '2018-03-06', ARRAY['Akali', 'Anivia', 'Azir', 'Bard', 'Corki', 'Elise', 'Fizz', 'Karma', 'Kled', '<NAME>', 'Nautilus', 'Rek''Sai', 'Sivir', 'Twitch']),
('2018-03-06', '2018-03-13', ARRAY['Camille', 'Fiddlesticks', 'Jax', 'LeBlanc', 'Leona', '<NAME>', 'Nidalee', 'Riven', 'Shen', '<NAME>', 'Taliyah', 'Tryndamere', 'Varus', 'Vel''Koz']),
('2018-03-13', '2018-03-20', ARRAY['<NAME>', 'Braum', 'Dr. Mundo', 'Gangplank', 'Graves', 'Kassadin', 'Kayle', 'Kog''Maw', 'Nocturne', 'Rakan', 'Syndra', 'Udyr', 'Xayah', 'Yasuo']),
('2018-03-20', '2018-03-27', ARRAY['Cassiopeia', 'Cho''Gath', 'Garen', 'Heimerdinger', 'Kalista', 'Kayn', 'Nasus', 'Olaf', 'Quinn', 'Shyvana', '<NAME>', 'Vayne', 'Warwick', 'Yorick']),
('2018-03-27', '2018-04-03', ARRAY['Aatrox', 'Ahri', 'Blitzcrank', 'Brand', 'Draven', 'Kai''Sa', 'Karthus', 'Kindred', 'Swain', 'Thresh', 'Vi', 'Viktor', 'Xerath', '<NAME>']),
('2018-04-03', '2018-04-10', ARRAY['Amumu', 'Galio', 'Gnar', 'Illaoi', 'Janna', 'Jinx', 'Karma', '<NAME>', 'Lucian', 'Riven', 'Yasuo', 'Zac', 'Ziggs', 'Zyra']),
('2018-04-10', '2018-04-17', ARRAY['Caitlyn', 'Darius', 'Evelynn', 'Ezreal', '<NAME>', 'Lissandra', 'Lux', 'Mordekaiser', 'Nunu', 'Orianna', 'Soraka', 'Teemo', 'Urgot', 'Veigar']),
('2018-04-17', '2018-04-24', ARRAY['Bard', 'Ivern', 'Jhin', 'Kha''Zix', 'Lulu', 'Ornn', 'Rammus', 'Rengar', 'Ryze', 'Shaco', 'Talon', 'Taric', 'Twitch', 'Wukong']),
('2018-04-24', '2018-05-01', ARRAY['Corki', 'Diana', 'Fiora', 'Kennen', 'Kog''Maw', 'Maokai', '<NAME>', 'Morgana', 'Nami', 'Poppy', 'Sejuani', 'Sion', 'Volibear', 'Zilean']),
('2018-05-01', '2018-05-08', ARRAY['Braum', 'Fiddlesticks', 'Fizz', 'Gragas', 'Graves', 'Irelia', 'Kalista', 'Katarina', 'Rakan', 'Sona', 'Taliyah', 'Varus', 'Vladimir', 'Xayah']),
('2018-05-08', '2018-05-15', ARRAY['Anivia', 'Annie', 'Camille', 'Ekko', 'Jax', 'Jayce', 'Leona', 'Malphite', 'Pantheon', 'Shen', 'Sivir', 'Udyr', 'Vayne', 'Zed']),
('2018-05-15', '2018-05-22', ARRAY['Ahri', 'Ashe', 'Brand', 'Dr. Mundo', 'Elise', 'Gnar', 'Hecarim', 'Janna', 'LeBlanc', 'Malzahar', '<NAME>', 'Nasus', 'Rumble', 'Tryndamere']),
('2018-05-22', '2018-05-29', ARRAY['Akali', '<NAME>', 'Blitzcrank', 'Draven', 'Karma', 'Lux', 'Quinn', 'Singed', 'Skarner', 'Soraka', 'Trundle', 'Warwick', 'Ziggs', 'Zyra']),
('2018-05-29', '2018-06-05', ARRAY['Fizz', 'Gangplank', 'Garen', 'Heimerdinger', 'Jinx', 'Kindred', '<NAME>', 'Nautilus', 'Nocturne', 'Rek''Sai', 'Renekton', 'Syndra', '<NAME>', 'Yorick']),
('2018-06-05', '2018-06-12', ARRAY['Azir', 'Cho''Gath', 'Ezreal', 'Kayle', 'Kled', 'Lucian', 'Nidalee', 'Olaf', 'Orianna', 'Shyvana', 'Teemo', 'Thresh', 'Vel''Koz', 'Vi']),
('2018-06-12', '2018-06-19', ARRAY['Caitlyn', 'Evelynn', 'Galio', 'Illaoi', 'Jhin', 'Kassadin', 'Lulu', 'Nami', 'Nunu', 'Taric', 'Twisted Fate', 'Viktor', 'Xerath', '<NAME>']),
('2018-06-19', '2018-06-26', ARRAY['Amumu', 'Cassiopeia', 'Darius', 'Fiddlesticks', 'Graves', 'Kalista', 'Karthus', 'Kha''Zix', 'Pyke', 'Rengar', 'Swain', 'Talon', 'Twitch', 'Zilean']),
('2018-06-26', '2018-07-03', ARRAY['Bard', 'Kayn', '<NAME>', 'Maokai', 'Mordekaiser', 'Rakan', 'Rammus', 'Sona', 'Taliyah', 'Urgot', 'Varus', 'Xayah', 'Yasuo', 'Zac']),
('2018-07-03', '2018-07-10', ARRAY['Annie', 'Braum', 'Corki', 'Diana', 'Fiora', '<NAME>', 'Lissandra', 'Pantheon', 'Poppy', 'Sejuani', 'Sion', 'Sivir', 'Thresh', 'Vayne']),
('2018-07-10', '2018-07-17', ARRAY['Akali', 'Anivia', 'Blitzcrank', 'Brand', 'Draven', 'Hecarim', 'Irelia', 'Katarina', 'Malphite', 'Ornn', 'Quinn', 'Rumble', 'Vladimir', 'Wukong']),
('2018-07-17', '2018-07-24', ARRAY['Ahri', 'Ashe', 'Dr. Mundo', 'Ivern', 'Janna', 'Kog''Maw', 'Leona', 'Nasus', 'Riven', 'Ryze', 'Shaco', 'Trundle', 'Tryndamere', 'Veigar']),
('2018-07-24', '2018-07-31', ARRAY['Aatrox', 'Aurelion Sol', 'Ekko', 'Elise', 'Gnar', 'Gragas', 'Jinx', 'Kindred', 'Malzahar', 'Miss Fortune', 'Soraka', '<NAME>', 'Volibear', 'Zyra']),
('2018-07-31', '2018-08-07', ARRAY['Caitlyn', 'Camille', 'Jax', 'Jayce', 'Karma', 'Kennen', 'Lucian', 'Lux', '<NAME>', 'Nautilus', 'Rek''Sai', 'Shen', 'Syndra', 'Zed']),
('2018-08-07', '2018-08-14', ARRAY['Ezreal', 'Fizz', 'Garen', 'Jhin', 'LeBlanc', 'Nidalee', 'Olaf', 'Singed', 'Taric', 'Teemo', 'Udyr', 'Vel''Koz', 'Warwick', 'Yorick']),
('2018-08-14', '2018-08-21', ARRAY['Amumu', 'Cho''Gath', 'Gangplank', 'Illaoi', 'Kalista', 'Kassadin', 'Morgana', 'Nocturne', 'Nunu', 'Renekton', 'Skarner', 'Twitch', 'Ziggs', 'Zilean']),
('2018-08-21', '2018-08-28', ARRAY['Azir', 'Darius', 'Graves', 'Heimerdinger', 'Kled', 'Maokai', 'Mordekaiser', 'Nami', 'Rakan', 'Rammus', 'Talon', 'Urgot', 'Xayah', '<NAME>']),
('2018-08-28', '2018-09-04', ARRAY['Bard', 'Cassiopeia', 'Fiora', 'Kayle', 'Kha''Zix', 'Lulu', 'Rengar', 'Sejuani', 'Shyvana', 'Sion', 'Varus', 'Vayne', 'Vi', 'Xerath']),
('2018-09-04', '2018-09-11', ARRAY['Evelynn', 'Hecarim', '<NAME>', 'Kog''Maw', 'Wukong', 'Orianna', 'Poppy', 'Quinn', 'Sona', 'Swain', 'Taliyah', 'Thresh', '<NAME>', 'Zac']),
('2018-09-11', '2018-09-18', ARRAY['Blitzcrank', 'Brand', 'Braum', 'Draven', 'Fiddlesticks', 'Galio', 'Irelia', 'Karthus', 'Katarina', 'Kayn', 'Lissandra', 'Malphite', 'Sivir', 'Viktor']),
('2018-09-18', '2018-09-25', ARRAY['Anivia', 'Annie', 'Ashe', 'Diana', 'Dr. Mundo', 'Ekko', 'Janna', 'Jinx', '<NAME>', 'Leona', 'Ornn', 'Rumble', 'Trundle', 'Yasuo']),
('2018-09-25', '2018-10-02', ARRAY['Akali', 'Corki', 'Gnar', 'Ivern', 'Jax', 'Karma', 'Kindred', 'Lux', '<NAME>', 'Pantheon', 'Ryze', 'Shaco', '<NAME>', 'Vladimir']),
('2018-10-02', '2018-10-09', ARRAY['Caitlyn', 'Camille', 'Gragas', 'Kennen', 'Lucian', 'Malzahar', '<NAME>', 'Rek''Sai', 'Riven', 'Soraka', 'Tryndamere', 'Udyr', 'Veigar', 'Zyra']),
('2018-10-09', '2018-10-16', ARRAY['Ahri', 'Cho''Gath', 'Elise', 'Fizz', 'Garen', 'Jayce', 'Jhin', 'Nasus', 'Taric', 'Twitch', 'Vel''Koz', 'Volibear', 'Yorick', 'Zed']),
('2018-10-16', '2018-10-23', ARRAY['Aatrox', 'Amumu', '<NAME>', 'Ezreal', 'Graves', 'Heimerdinger', 'Kalista', 'LeBlanc', 'Nami', 'Nidalee', 'Nocturne', 'Renekton', 'Singed', 'Zilean']),
('2018-10-23', '2018-10-30', ARRAY['Lulu', 'Nautilus', 'Olaf', 'Rakan', 'Shen', 'Skarner', 'Syndra', 'Talon', 'Teemo', 'Varus', 'Warwick', 'Xayah', '<NAME>', 'Ziggs']),
('2018-10-30', '2018-11-06', ARRAY['Bard', 'Cassiopeia', 'Gangplank', 'Illaoi', 'Kassadin', 'Mordekaiser', 'Morgana', 'Nunu', 'Quinn', 'Rammus', 'Sona', 'Vayne', 'Vi', 'Xerath']),
('2018-11-06', '2018-11-13', ARRAY['Azir', 'Darius', 'Galio', 'Kayle', 'Kha''Zix', 'Kled', 'Kog''Maw', 'Malphite', 'Orianna', 'Rengar', 'Sivir', 'Taliyah', 'Thresh', 'Viktor']),
('2018-11-13', '2018-11-20', ARRAY['Annie', 'Brand', 'Braum', 'Draven', 'Dr. Mundo', 'Fiddlesticks', 'Katarina', 'Kayn', 'Maokai', 'Sejuani', 'Shyvana', 'Twisted Fate', 'Urgot', 'Yasuo']),
('2018-11-20', '2018-11-27', ARRAY['Ashe', 'Blitzcrank', 'Ekko', 'Evelynn', 'Fiora', 'Hecarim', 'Irelia', 'Janna', '<NAME>', 'Karthus', '<NAME>', 'Ornn', 'Sion', 'Vladimir']),
('2018-11-27', '2018-12-04', ARRAY['Diana', 'Jinx', 'Kindred', '<NAME>', 'Leona', 'Lissandra', 'Malzahar', 'Poppy', 'Soraka', 'Swain', '<NAME>', 'Veigar', 'Wukong', 'Zac']),
('2018-12-04', '2018-12-11', ARRAY['Ahri', 'Corki', 'Ezreal', 'Jax', 'Karma', 'Kha''Zix', 'Lucian', 'Nidalee', 'Ornn', 'Rengar', 'Trundle', 'Tryndamere', 'Zoe', 'Zyra']),
('2018-12-11', '2018-12-18', ARRAY['Akali', 'Anivia', 'Caitlyn', 'Elise', 'Gnar', 'Jayce', 'Jhin', 'Lux', 'Pantheon', 'Rumble', 'Ryze', 'Shaco', 'Taric', 'Vel''Koz']),
('2018-12-18', '2018-12-25', ARRAY['<NAME>', 'Cho''Gath', 'Fizz', 'Garen', 'Ivern', 'Kalista', 'Kennen', '<NAME>', 'Riven', 'Singed', 'Twitch', 'Udyr', 'Zed', 'Zilean']),
('2018-12-25', '2019-01-01', ARRAY['Camille', 'Gragas', 'Graves', 'Heimerdinger', 'Illaoi', 'LeBlanc', 'Nami', 'Neeko', 'Rakan', 'Rek''Sai', 'Teemo', 'Xayah', 'Yorick', 'Ziggs']),
('2019-01-01', '2019-01-08', ARRAY['Aatrox', 'Azir', 'Bard', 'Cassiopeia', 'Lulu', 'Morgana', 'Nasus', 'Nautilus', 'Nocturne', 'Taliyah', 'Talon', 'Varus', 'Vayne', 'Volibear']),
('2019-01-08', '2019-01-15', ARRAY['Darius', 'Draven', 'Fiddlesticks', 'Gangplank', 'Janna', 'Kassadin', 'Kog''Maw', '<NAME>', 'Orianna', 'Rammus', 'Renekton', 'Shen', 'Sona', 'Thresh']),
('2019-01-15', '2019-01-22', ARRAY['Brand', 'Braum', 'Irelia', 'Kled', 'Malphite', 'Maokai', '<NAME>', 'Ornn', 'Sivir', 'Skarner', 'Urgot', 'Vi', 'Viktor', 'Xerath']),
('2019-01-22', '2019-01-29', ARRAY['Amumu', 'Ashe', 'Blitzcrank', 'Jinx', 'Kayn', 'Leona', 'Olaf', 'Poppy', 'Quinn', 'Sejuani', 'Shyvana', 'Tw<NAME>', 'Vladimir', 'Yasuo']),
('2019-01-29', '2019-02-05', ARRAY['Annie', 'Corki', 'Dr. Mundo', 'Fiora', 'Karthus', 'Kayle', 'Lucian', 'Mordekaiser', 'Sion', '<NAME>', 'Warwick', 'Wukong', '<NAME>', 'Zac']),
('2019-02-05', '2019-02-12', ARRAY['Caitlyn', 'Ekko', 'Evelynn', 'Ezreal', 'Fizz', '<NAME>', 'Katarina', '<NAME>', 'Ornn', 'Soraka', 'Sylas', 'Taric', 'Trundle', 'Vel''Koz']),
('2019-02-12', '2019-02-19', ARRAY['Anivia', 'Galio', 'Gnar', 'Hecarim', 'Jax', 'Jayce', 'Jhin', 'Karma', 'Kindred', 'Lissandra', 'Lux', 'Shaco', 'Swain', 'Zyra']),
('2019-02-19', '2019-02-26', ARRAY['Diana', 'Elise', 'Kha''Zix', 'Malzahar', 'Nidalee', 'Pantheon', 'Rakan', 'Rengar', 'Rumble', 'Tryndamere', 'Varus', 'Veigar', 'Xayah', 'Zoe']),
('2019-02-26', '2019-03-05', ARRAY['Ahri', 'Akali', '<NAME>', 'Garen', 'Ivern', 'Kalista', 'Kennen', '<NAME>', 'Riven', 'Ryze', 'Twitch', 'Udyr', 'Zed', 'Zilean']),
('2019-03-05', '2019-03-12', ARRAY['Camille', 'Cassiopeia', 'Cho''Gath', 'Gragas', 'Illaoi', 'Kai''Sa', 'LeBlanc', 'Lulu', 'Morgana', 'Nautilus', 'Singed', 'Syndra', 'Taliyah', 'Vayne']),
('2019-03-12', '2019-03-19', ARRAY['Azir', 'Bard', 'Draven', 'Graves', 'Janna', 'Lucian', 'Nami', 'Nasus', 'Nocturne', 'Rek''Sai', 'Teemo', 'Volibear', 'Yorick', 'Ziggs']),
('2019-03-19', '2019-03-26', ARRAY['Aatrox', 'Braum', 'Fiddlesticks', 'Gangplank', 'Heimerdinger', 'Kled', 'Kog''Maw', 'Nunu & Willump', 'Orianna', 'Rammus', 'Shen', 'Sivir', 'Talon', 'Thresh']),
('2019-03-26', '2019-04-02', ARRAY['Brand', 'Darius', 'Irelia', 'Jinx', 'Kassadin', 'Leona', '<NAME>', 'Renekton', 'Sejuani', 'Sona', 'Urgot', 'Vi', 'Viktor', 'Vladimir']),
('2019-04-02', '2019-04-09', ARRAY['Ashe', 'Blitzcrank', 'Fiora', 'Jhin', 'Malphite', 'Maokai', 'Mordekaiser', 'Pyke', 'Quinn', 'Shyvana', 'Skarner', '<NAME>', 'Xerath', 'Yasuo']),
('2019-04-09', '2019-04-16', ARRAY['Amumu', 'Caitlyn', 'Dr. Mundo', 'Ezreal', 'Karthus', 'Kayle', 'Kayn', 'Olaf', 'Poppy', 'Soraka', 'Taric', 'Twisted Fate', 'Warwick', '<NAME>']),
('2019-04-16', '2019-04-23', ARRAY['Annie', 'Corki', 'Gnar', 'Hecarim', 'Kindred', 'Ornn', 'Sion', 'Trundle', 'Twitch', 'Vel''Koz', 'Wukong', 'Xayah', 'Zac', 'Zyra']),
('2019-04-23', '2019-04-30', ARRAY['Jax', 'Jayce', 'Kalista', 'Karma', 'Katarina', 'Kennen', '<NAME>', 'Lissandra', 'Lux', 'Nidalee', 'Riven', 'Shaco', 'Swain', 'Varus']),
('2019-04-30', '2019-05-07', ARRAY['Akali', 'Diana', 'Draven', 'Ekko', 'Evelynn', 'Fizz', 'Garen', '<NAME>', 'Kai''Sa', 'Rakan', 'Rumble', 'Tryndamere', 'Zed', 'Zilean']),
('2019-05-07', '2019-05-14', ARRAY['Anivia', 'Camille', 'Cho''Gath', 'Elise', 'Illaoi', 'Kha''Zix', 'Lucian', 'Morgana', 'Nautilus', 'Rengar', 'Singed', 'Taliyah', 'Vayne', 'Veigar']),
('2019-05-14', '2019-05-21', ARRAY['Fiddlesticks', 'Galio', 'Kled', 'Kog''Maw', 'Lulu', 'Malphite', '<NAME>', 'Nami', 'Pantheon', 'Shen', 'Sivir', 'Teemo', 'Volibear', 'Zoe']),
('2019-05-21', '2019-05-28', ARRAY['Aatrox', 'Ahri', 'Ashe', 'Aurelion Sol', 'Bard', 'Heimerdinger', 'Ivern', 'Malzahar', '<NAME>une', 'Mordekaiser', 'Ryze', 'Thresh', 'Udyr', 'Yorick']),
('2019-05-28', '2019-06-04', ARRAY['Azir', 'Braum', 'Darius', 'Gangplank', 'Gragas', 'Graves', 'Irelia', 'Janna', 'Jhin', 'Jinx', 'LeBlanc', 'Nasus', 'Syndra', 'Ziggs']),
('2019-06-04', '2019-06-11', ARRAY['Caitlyn', 'Cassiopeia', 'Ezreal', 'Fiora', 'Leona', 'Nocturne', 'Orianna', 'Pyke', 'Quinn', 'Rek''Sai', 'Shyvana', 'Urgot', 'Viktor', 'Yuumi']),
('2019-06-11', '2019-06-18', ARRAY['Annie', 'Blitzcrank', 'Ekko', 'Kassadin', 'Kayle', 'Maokai', 'Nunu & Willump', 'Olaf', 'Renekton', 'Sejuani', 'Sona', 'Talon', 'Twitch', 'Xayah']),
('2019-06-18', '2019-06-25', ARRAY['Brand', 'Dr. Mundo', 'Gnar', 'Kalista', 'Karma', 'Poppy', 'Rammus', 'Sion', '<NAME>', 'Trundle', 'Varus', 'Vi', 'Vladimir', 'Yasuo']),
('2019-06-25', '2019-07-02', ARRAY['Akali', 'Draven', 'Jayce', 'Kai''Sa', 'Kennen', 'Lissandra', 'Ornn', 'Skarner', 'Taric', 'Tw<NAME>', 'Xerath', '<NAME>', 'Zilean', 'Zyra']),
('2019-07-02', '2019-07-09', ARRAY['Amumu', 'Corki', 'Garen', 'Karthus', 'Kayn', 'Lucian', 'Lux', 'Nautilus', 'Riven', 'Rumble', 'Soraka', 'Vayne', 'Veigar', 'Vel''Koz']),
('2019-07-09', '2019-07-16', ARRAY['Camille', 'Fizz', 'Hecarim', 'Kled', 'Kog''Maw', 'Mordekaiser', 'Morgana', 'Pantheon', 'Rakan', 'Singed', 'Sivir', 'Swain', 'Tryndamere', 'Warwick']),
('2019-07-16', '2019-07-23', ARRAY['Ashe', 'Cho''Gath', 'Diana', 'Illaoi', 'Ivern', 'Jax', 'Katarina', 'Lulu', 'Malphite', 'Miss Fortune', 'Qiyana', 'Thresh', 'Wukong', 'Ziggs']),
('2019-07-23', '2019-07-30', ARRAY['Anivia', 'Ezreal', 'Fiddlesticks', 'Jhin', 'Kindred', '<NAME>', 'Nami', 'Nidalee', 'Ryze', 'Shen', 'Teemo', 'Volibear', 'Zac', 'Zed']),
('2019-07-30', '2019-08-06', ARRAY['Bard', 'Braum', 'Caitlyn', 'Elise', 'Galio', 'Heimerdinger', 'Irelia', 'Jinx', 'Kha''Zix', '<NAME>', 'Pyke', 'Shaco', 'Yorick', 'Zoe']),
('2019-08-06', '2019-08-13', ARRAY['Aatrox', 'Ahri', 'Annie', 'Evelynn', 'Gangplank', 'Janna', '<NAME>', 'Karma', 'Leona', 'Malzahar', 'Nasus', 'Shyvana', 'Twitch', 'Xayah']),
('2019-08-13', '2019-08-20', ARRAY['Aurelion Sol', 'Azir', 'Blitzcrank', 'Darius', 'Fiora', 'Kalista', 'Olaf', 'Quinn', 'Rengar', 'Sion', 'Sona', 'Taliyah', 'Varus', 'Yasuo']),
('2019-08-20', '2019-08-27', ARRAY['Brand', 'Draven', 'Graves', 'LeBlanc', 'Renekton', 'Syndra', '<NAME>', 'Taric', 'Udyr', 'Urgot', 'Vayne', 'Veigar', 'Viktor', 'Zilean']),
('2019-08-27', '2019-09-03', ARRAY['Cassiopeia', 'Dr. Mundo', 'Gnar', 'Gragas', 'Kai''Sa', 'Kayle', 'Kennen', 'Lissandra', 'Lucian', 'Nautilus', 'Nocturne', 'Orianna', 'Soraka', 'Xerath']),
('2019-09-03', '2019-09-10', ARRAY['Ekko', 'Jayce', 'Kassadin', 'Kog''Maw', 'Maokai', 'Mordekaiser', '<NAME>', 'Poppy', 'Rek''Sai', 'Sivir', 'Talon', 'Trundle', 'Vel''Koz', 'Vladimir', 'Zyra']),
('2019-09-10', '2019-09-17', ARRAY['Akali', 'Ashe', 'Cho''Gath', 'Karthus', 'Lux', 'Malphite', 'Miss Fortune', 'Morgana', 'Ornn', 'Riven', 'Rumble', 'Sejuani', 'Twisted Fate', 'Vi', 'Wukong']),
('2019-09-17', '2019-09-24', ARRAY['Camille', 'Corki', 'Ezreal', 'Fizz', 'Garen', 'Jhin', 'Kled', 'Lulu', 'Rakan', 'Rammus', 'Singed', 'Swain', 'Tryndamere', 'Volibear', 'Xin Zhao']),
('2019-09-24', '2019-10-01', ARRAY['Caitlyn', 'Diana', 'Galio', 'Heimerdinger', 'Illaoi', 'Ivern', 'Jinx', 'Katarina', 'Kayn', 'Morgana', 'Riven', 'Skarner', 'Teemo', 'Thresh', 'Ziggs']),
('2019-10-01', '2019-10-08', ARRAY['Anivia', 'Fiddlesticks', 'Hecarim', 'Jax', 'Kalista', 'Kindred', 'Lucian', 'Morgana', 'Nami', 'Neeko', 'Quinn', 'Riven', 'Shen', 'Sylas', 'Zed']),
('2019-10-08', '2019-10-15', ARRAY['Ashe', 'Azir', 'Blitzcrank', 'Braum', 'Gangplank', 'Hecarim', '<NAME>', 'Karma', 'Nasus', 'Pantheon', 'Ryze', 'Taliyah', 'Twitch', 'Yorick', 'Zoe']),
('2019-10-15', '2019-10-22', ARRAY['Ahri', 'Ashe', 'Bard', 'Ekko', 'Gnar', 'Hecarim', 'Irelia', 'Janna', 'Malzahar', 'Nidalee', 'Sion', 'Varus', 'Warwick', 'Xayah', 'Yasuo']),
('2019-10-22', '2019-10-29', ARRAY['Alistar', 'Amumu', 'Anivia', 'Annie', 'Ashe', 'Blitzcrank', 'Cho''Gath', 'Corki', 'Dr. Mundo', 'Evelynn', 'Fiddlesticks', 'Gangplank', 'Heimerdinger', 'Janna', 'Jax', 'Karthus', 'Kassadin', 'Katarina', 'Kayle', 'Malphite', 'Master Yi', 'Morgana', 'Nasus', '<NAME>', 'Rammus', 'Ryze', 'Shaco', 'Singed', 'Sion', 'Sivir', 'Soraka', 'Taric', 'Teemo', 'Tristana', 'Tryndamere', 'Twisted Fate', 'Twitch', 'Veigar', 'Warwick', 'Zilean']),
('2019-10-29', '2019-11-05', ARRAY['Amumu', 'Blitzcrank', 'Cassiopeia', 'Fiora', 'Kai''Sa', 'Kassadin', 'Leona', 'Miss Fortune', 'Olaf', 'Poppy', 'Pyke', 'Shaco', 'Syndra', '<NAME>', 'Zac']),
('2019-11-05', '2019-11-12', ARRAY['Aatrox', 'Annie', '<NAME>', 'Brand', 'Dr. Mundo', 'Draven', 'Ekko', 'Elise', '<NAME>', 'Maokai', 'Rakan', 'Swain', 'Urgot', 'Vayne', 'Xerath']),
('2019-11-12', '2019-11-19', ARRAY['Annie', 'Darius', 'Ekko', 'Evelynn', 'Ezreal', 'Jayce', 'Karthus', 'Kayle', 'Kha''Zix', 'LeBlanc', 'Lissandra', 'Sivir', 'Sona', 'Udyr', 'Zilean']),
('2019-11-19', '2019-11-26', ARRAY['Akali', 'Cho''Gath', 'Graves', 'Jinx', 'Kennen', 'Kog''Maw', 'Master Yi', 'Mordekaiser', 'Renekton', 'Shyvana', 'Soraka', 'Twisted Fate', 'Vladimir', 'Volibear', 'Zyra']),
('2019-11-26', '2019-12-03', ARRAY['Caitlyn', 'Kalista', 'Kled', 'Lux', 'Nautilus', 'Nunu & Willump', 'Orianna', 'Rengar', 'Rumble', 'Senna', 'Talon', 'Trundle', 'Veigar', 'Vel''Koz', 'Viktor']),
('2019-12-03', '2019-12-10', ARRAY['Diana', 'Fizz', 'Galio', 'Gragas', 'Jhin', 'Lucian', 'Malphite', 'Nami', 'Neeko', 'Nocturne', 'Sejuani', 'Singed', 'Taric', 'Teemo', 'Wukong']),
('2019-12-10', '2019-12-17', ARRAY['Azir', 'Heimerdinger', 'Illaoi', 'Ivern', 'Kindred', 'Ornn', 'Ryze', 'Sivir', 'Skarner', 'Soraka', 'Thresh', 'Twitch', 'Yuumi', 'Ziggs', 'Zoe']),
('2019-12-17', '2019-12-24', ARRAY['Ashe', 'Corki', 'Garen', 'Jax', 'Karma', 'Morgana', 'Nasus', 'Rammus', 'Rek''Sai', 'Sylas', 'Tryndamere', 'Vi', 'Xayah', 'Yorick', 'Zed']),
('2019-12-24', '2019-12-31', ARRAY['Anivia', 'Braum', 'Camille', 'Draven', 'Irelia', 'Katarina', 'Kayn', 'Lulu', 'Malzahar', 'Nidalee', 'Quinn', 'Shen', 'Swain', 'Varus', '<NAME>']),
('2019-12-31', '2020-01-07', ARRAY['Aatrox', 'Ahri', 'Aphelios', 'Bard', 'Cassiopeia', 'Ezreal', 'Fiddlesticks', 'Fiora', 'Hecarim', '<NAME>', 'Kai''Sa', 'Pantheon', 'Riven', 'Syndra', 'Vladimir']),
('2020-01-07', '2020-01-14', ARRAY['Amumu', '<NAME>', 'Elise', 'Evelynn', 'Gangplank', 'Gnar', 'Janna', 'Jinx', '<NAME>', 'Leona', 'Olaf', '<NAME>', 'Vayne', 'Xerath', 'Yasuo']),
('2020-01-14', '2020-01-21', ARRAY['Blitzcrank', 'Garen', 'Kalista', 'Karthus', 'Kassadin', 'Lissandra', '<NAME>', 'Mordekaiser', 'Poppy', 'Pyke', 'Shaco', 'Sion', 'Taliyah', 'Volibear', 'Warwick']),
('2020-01-21', '2020-01-28', ARRAY['Brand', 'Caitlyn', 'Dr. Mundo', 'Ekko', 'Jayce', 'Jhin', 'LeBlanc', 'Leona', 'Maokai', 'Rengar', 'Sejuani', 'Twisted Fate', 'Urgot', 'Zac', 'Zilean']),
('2020-01-28', '2020-02-04', ARRAY['Akali', 'Annie', 'Ashe', 'Kayle', 'Kha''Zix', 'Kog''Maw', 'Nautilus', 'Nunu & Willump', 'Ornn', 'Rakan', 'Renekton', 'Sett', 'Talon', 'Trundle', 'Wukong']),
('2020-02-04', '2020-02-11', ARRAY['Darius', 'Gragas', 'Graves', 'Jax', 'Karma', 'Kennen', 'Lucian', 'Neeko', 'Orianna', 'Rumble', 'Ryze', 'Sona', 'Udyr', 'Xayah', 'Zyra']),
('2020-02-11', '2020-02-18', ARRAY['Azir', 'Cho''Gath', 'Draven', 'Kled', 'Malphite', '<NAME>', 'Nami', 'Shyvana', 'Sivir', 'Skarner', 'Taric', 'Teemo', 'Vayne', 'Veigar', 'Zoe']),
('2020-02-18', '2020-02-25', ARRAY['Galio', 'Kai''Sa', 'Kindred', 'Morgana', 'Nocturne', 'Qiyana', 'Singed', 'Swain', 'Sylas', 'Tryndamere', 'Twitch', 'Vel''Koz', 'Viktor', '<NAME>', 'Ziggs']),
('2020-02-25', '2020-03-03', ARRAY['Camille', 'Ekko', 'Ezreal', 'Illaoi', 'Katarina', 'Lux', 'Malzahar', 'Mordekaiser', 'Nasus', 'Rek''Sai', 'Soraka', 'Varus', 'Vi', 'Yorick', 'Zed']),
('2020-03-03', '2020-03-10', ARRAY['Ashe', 'Caitlyn', 'Cassiopeia', 'Diana', 'Fizz', 'Heimerdinger', 'Ivern', 'Kayn', '<NAME>', 'Lulu', 'Riven', 'Shen', 'Syndra', 'Volibear', 'Yuumi']),
('2020-03-10', '2020-03-17', ARRAY['Aurelion Sol', 'Braum', 'Corki', 'Evelynn', 'Fiora', 'Garen', '<NAME>', 'Kalista', 'Miss Fortune', 'Neeko', 'Poppy', 'Quinn', 'Rammus', 'Thresh', 'Vladimir']),
('2020-03-17', '2020-03-24', ARRAY['Ahri', 'Annie', 'Blitzcrank', 'Brand', 'Elise', 'Fiddlesticks', 'Irelia', 'Jhin', 'Karthus', 'Lucian', 'Maokai', 'Nidalee', 'Olaf', 'Renekton', 'Zac']),
('2020-03-24', '2020-03-31', ARRAY['Bard', 'Gnar', 'Jinx', 'Karma', 'Kassadin', 'Malphite', 'Ornn', 'Pantheon', 'Pyke', 'Rengar', 'Taliyah', 'Urgot', 'Xayah', 'Xerath', 'Yasuo']),
('2020-03-31', '2020-04-07', ARRAY['Aatrox', 'Anivia', 'Cho''Gath', 'Ezreal', 'Hecarim', 'Janna', 'Kayle', 'Kog''Maw', 'Lissandra', 'Sion', 'Swain', '<NAME>', '<NAME>', 'Udyr', 'Warwick']),
('2020-04-07', '2020-04-14', ARRAY['Akali', 'Amumu', 'Darius', 'Dr. Mundo', 'Gragas', 'Kled', 'LeBlanc', 'Shaco', 'Talon', 'Trundle', 'Varus', 'Vayne', 'Wukong', 'Zilean', 'Zyra']),
('2020-04-14', '2020-04-21', ARRAY['Azir', 'Caitlyn', 'Draven', 'Gangplank', 'Jayce', 'Katarina', 'Kennen', '<NAME>', 'Mordekaiser', 'Nautilus', 'Nocturne', 'Rakan', 'Sejuani', 'Volibear', 'Ziggs']),
('2020-04-21', '2020-04-28', ARRAY['Kha''Zix', 'Leona', 'Lux', '<NAME>', 'Orianna', 'Poppy', 'Riven', 'Shyvana', 'Singed', 'Sivir', 'Skarner', 'Sona', 'Teemo', 'Veigar', 'Zoe']),
('2020-04-28', '2020-05-05', ARRAY['Cassiopeia', 'Galio', 'Graves', 'Illaoi', 'Jax', 'Kai''Sa', 'Nami', 'Neeko', 'Qiyana', 'Rumble', 'Taric', 'Twitch', 'Vel''Koz', 'Viktor', '<NAME>']),
('2020-05-05', '2020-05-12', ARRAY['Heimerdinger', 'Jhin', 'Kalista', 'Kindred', 'Lulu', 'Maokai', 'Nasus', 'Nunu & Willump', 'Rek''Sai', 'Renekton', 'Ryze', 'Sylas', 'Thresh', 'Tryndamere', 'Zed']),
('2020-05-12', '2020-05-19', ARRAY['Ashe', 'Blitzcrank', 'Diana', 'Evelynn', 'Ezreal', 'Fizz', 'Garen', 'Karma', 'Karthus', 'Kayn', 'Morgana', 'Rengar', 'Shen', 'Syndra', 'Yorick']),
('2020-05-19', '2020-05-26', ARRAY['Camille', 'Ekko', 'Fiddlesticks', 'Ivern', 'Kassadin', 'Kayle', '<NAME>', 'Lucian', 'Quinn', 'Soraka', 'Urgot', 'Vi', 'Xayah', 'Yasuo', 'Yuumi']),
('2020-05-26', '2020-06-02', ARRAY['Ahri', '<NAME>', 'Bard', 'Braum', 'Corki', 'Elise', 'Irelia', 'Jinx', 'Malzahar', 'Olaf', 'Ornn', 'Rammus', 'Vayne', 'Xerath', 'Zac']),
('2020-06-02', '2020-06-09', ARRAY['Akali', 'Anivia', 'Annie', 'Caitlyn', 'Fiora', 'Gnar', 'Janna', '<NAME>', 'Malphite', 'Pantheon', 'Rakan', 'Swain', 'Taliyah', 'Varus', 'Ziggs']),
('2020-06-09', '2020-06-16', ARRAY['Aatrox', 'Brand', 'Cho''Gath', 'Darius', 'Draven', 'Gangplank', 'Hecarim', 'Lissandra', 'Nidalee', 'Senna', 'Sivir', 'Talon', 'Vladimir', 'Warwick', 'Wukong']),
('2020-06-16', '2020-06-23', ARRAY['Amumu', 'Azir', 'Dr. Mundo', 'Galio', 'Gragas', 'Karthus', 'Kled', 'Kog''Maw', 'LeBlanc', '<NAME>', 'Mordekaiser', 'Nautilus', 'Tw<NAME>', 'Udyr', 'Zyra']),
('2020-06-23', '2020-06-30', ARRAY['Ashe', 'Cassiopeia', 'Katarina', 'Kennen', 'Leona', 'Lux', '<NAME>', 'Nocturne', 'Orianna', 'Pyke', 'Sejuani', 'Sion', '<NAME>', 'Twitch', 'Volibear']),
('2020-07-07', '2020-07-14', ARRAY['Blitzcrank', 'Diana', 'Heimerdinger', 'Illaoi', 'Jax', 'Jhin', 'Nami', 'Nasus', 'Neeko', 'Ryze', 'Singed', 'Skarner', 'Trundle', 'Tryndamere', 'Xayah']),
('2020-07-14', '2020-07-21', ARRAY['Aphelios', 'Camille', 'Corki', 'Ekko', 'Evelynn', 'Garen', 'Kai''Sa', 'Kassadin', 'Kindred', 'Rek''Sai', 'Renekton', 'Shen', 'Sylas', 'Taric', 'Thresh']),
('2020-07-21', '2020-07-28', ARRAY['Aurelion Sol', 'Fizz', 'Graves', 'Karthus', 'Lucian', 'Maokai', 'Nunu & Willump', 'Rumble', 'Shyvana', 'Varus', 'Vel''Koz', 'Viktor', 'Yuumi', 'Ziggs', 'Zoe']),
('2020-07-28', '2020-08-04', ARRAY['Akali', 'Elise', 'Fiora', 'Jinx', 'Lulu', 'Malzahar', 'Morgana', 'Ornn', 'Rengar', 'Syndra', 'Vayne', 'Vi', 'Volibear', 'Yasuo', 'Yorick']),
('2020-08-04', '2020-08-11', ARRAY['Ahri', 'Braum', 'Darius', 'Draven', 'Fiddlesticks', 'Galio', '<NAME>', 'Kayle', 'Kayn', 'Kled', 'LeBlanc', 'Lillia', 'Pantheon', 'Sivir', 'Swain']),
('2020-08-11', '2020-08-18', ARRAY['Amumu', 'Anivia', 'Bard', 'Caitlyn', 'Cho''Gath', 'Ezreal', 'Irelia', 'Ivern', 'Mordekaiser', 'Quinn', 'Rammus', 'Sett', 'Soraka', 'Vladimir', 'Xerath']),
('2020-08-18', '2020-08-25', ARRAY['Annie', 'Gnar', 'Katarina', 'Kog''Maw', 'Leona', 'Malphite', 'Miss Fortune', 'Nidalee', 'Rakan', 'Taliyah', 'Tw<NAME>', 'Urgot', 'Warwick', 'Yone', 'Zac']),
('2020-08-25', '2020-09-01', ARRAY['Azir', 'Brand', 'Dr. Mundo', 'Gangplank', 'Hecarim', 'Heimerdinger', 'Jhin', 'Kalista', 'Karma', '<NAME>', 'Lissandra', 'Olaf', 'Orianna', 'Wukong', 'Zyra']),
('2020-09-01', '2020-09-08', ARRAY['Aatrox', '<NAME>', 'Diana', 'Janna', 'Jayce', 'Kai''Sa', 'Kennen', 'Kha''Zix', 'Nautilus', 'Nocturne', 'Poppy', 'Twitch', '<NAME>', 'Zilean', 'Zoe']),
('2020-09-08', '2020-09-15', ARRAY['Aphelios', 'Ashe', 'Cassiopeia', 'Illaoi', 'Karthus', 'Lux', 'Ryze', 'Sejuani', 'Senna', 'Shaco', 'Shen', 'Swain', 'Talon', 'Teemo', 'Udyr']),
('2020-09-15', '2020-09-22', ARRAY['Garen', 'Jax', 'Kindred', 'Maokai', '<NAME>', 'Nasus', 'Neeko', 'Pyke', 'Qiyana', 'Riven', 'Sivir', 'Skarner', 'Sylas', '<NAME>', 'Xayah']),
('2020-09-22', '2020-09-29', ARRAY['Draven', 'Galio', 'Gragas', 'Graves', 'Kassadin', 'Malphite', 'Morgana', 'Renekton', 'Sion', 'Taric', 'Trundle', 'Tryndamere', 'Varus', 'Veigar', 'Zed']),
('2020-09-29', '2020-10-06', ARRAY['Blitzcrank', 'Camille', 'Corki', 'Ekko', 'Evelynn', 'Fiora', 'Jinx', 'Lucian', 'Nunu', 'Pantheon', 'Rek''Sai', 'Rumble', 'Sona', 'Yasuo', 'Yorick']),
('2020-10-06', '2020-10-13', ARRAY['Elise', 'Fizz', 'Kayn', 'Kled', 'Ornn', 'Samira', 'Shyvana', 'Thresh', 'Twitch', 'Vayne', 'Vel''Koz', 'Volibear', 'Xerath', 'Yuumi', 'Ziggs']),
('2020-10-13', '2020-10-20', ARRAY['Amumu', 'Anivia', 'Aphelios', 'Caitlyn', 'Cho''Gath', 'Fiddlesticks', 'Karma', 'Kayle', 'LeBlanc', 'Nami', 'Poppy', 'Singed', 'Vi', 'Vladimir', 'Zac']),
('2020-10-20', '2020-10-27', ARRAY['Ahri', 'Akali', 'Annie', 'Braum', 'Gnar', 'Hecarim', 'Karthus', 'Kog''Maw', 'Lulu', 'Miss Fortune', 'Nidalee', 'Rengar', 'Sett', 'Syndra', 'Urgot']),
('2020-10-27', '2020-11-03', ARRAY['Azir', 'Bard', 'Darius', 'Galio', 'Heimerdinger', 'Irelia', '<NAME>', 'Jhin', 'Kai''Sa', 'Katarina', 'Malzahar', 'Rammus', 'Soraka', 'Taliyah', 'Viktor']),
('2020-11-03', '2020-11-10', ARRAY['Ashe', '<NAME>', 'Ezreal', 'Gangplank', '<NAME>', 'Mordekaiser', 'Nocturne', 'Orianna', 'Quinn', 'Rakan', 'Teemo', 'Twisted Fate', '<NAME>', 'Zilean', 'Zyra']),
('2020-11-10', '2020-11-17', ARRAY['Dr. Mundo', 'Garen', 'Ivern', 'Kalista', 'Kha''Zix', 'Leona', 'Lissandra', 'Lux', 'Maokai', 'Sejuani', 'Seraphine', 'Shen', 'Sivir', 'Swain', 'Talon']),
('2020-11-17', '2020-11-24', ARRAY['Ekko', 'Illaoi', 'Jax', 'Jayce', 'Jinx', 'Nautilus', 'Neeko', 'Riven', 'Ryze', 'Senna', 'Skarner', 'Sylas', 'Veigar', 'Warwick', 'Xayah']),
('2020-11-24', '2020-12-01', ARRAY['Aatrox', 'Brand', 'Diana', 'Fizz', 'Janna', 'Karma', 'Kennen', 'Kindred', 'Lucian', 'Pyke', 'Shaco', 'Tryndamere', 'Twitch', 'Wukong', 'Zoe']),
('2020-12-01', '2020-12-08', ARRAY['Blitzcrank', 'Camille', 'Cassiopeia', 'Cho''Gath', 'Corki', 'Draven', 'Malphite', 'Morgana', 'Nasus', 'Nunu & Willump', 'Olaf', 'Renekton', 'Udyr', 'Varus', 'Zed']),
('2020-12-08', '2020-12-15', ARRAY['Annie', 'Caitlyn', 'Galio', 'Gragas', 'Karthus', 'Kled', '<NAME>', '<NAME>', 'Nami', 'Rumble', 'Sion', '<NAME>', 'Trundle', 'Yasuo', 'Ziggs']),
('2020-12-15', '2020-12-22', ARRAY['Aphelios', 'Elise', 'Evelynn', 'Irelia', 'Qiyana', 'Rek''Sai', 'Sett', 'Sona', 'Vayne', 'Vel''Koz', 'Vladimir', 'Volibear', 'Xerath', 'Yorick', 'Yuumi']),
('2020-12-22', '2020-12-29', ARRAY['Akali', 'Anivia', 'Ashe', 'Fiddlesticks', 'Fiora', 'Gnar', 'Graves', 'Hecarim', 'Heimerdinger', 'Kai''Sa', 'Kassadin', 'Poppy', 'Rell', 'Taric', 'Vi']),
('2020-12-29', '2021-01-05', ARRAY['Ahri', 'Amumu', 'Gangplank', 'Jhin', 'Kalista', 'Katarina', 'Kayle', 'Kayn', 'Lulu', 'Malzahar', 'Pantheon', 'Shyvana', 'Thresh', 'Viktor', 'Wukong']),
('2021-01-05', '2021-01-12', ARRAY['Azir', 'Darius', '<NAME>', 'Karma', 'Kog''Maw', 'LeBlanc', 'Neeko', 'Nidalee', 'Ornn', 'Quinn', 'Rammus', 'Sivir', 'Soraka', 'Syndra', 'Zilean']),
('2021-01-12', '2021-01-19', ARRAY['Aurelion Sol', 'Dr. Mundo', 'Ezreal', 'Kha''Zix', '<NAME>', 'Leona', 'Mordekaiser', 'Orianna', 'Rengar', 'Singed', 'Tw<NAME>', 'Urgot', 'Varus', 'Zac', 'Zyra']),
('2021-01-19', '2021-01-26', ARRAY['Aatrox', 'Bard', 'Braum', 'Diana', 'Garen', 'Ivern', 'Jayce', 'Lissandra', 'Maokai', 'Sejuani', 'Skarner', 'Talon', 'Teemo', 'Twitch', 'Xayah']),
('2021-01-26', '2021-02-02', ARRAY['Aphelios', 'Brand', 'Cho''Gath', 'Ekko', 'Illaoi', 'Malphite', 'Rakan', 'Riven', 'Senna', 'Sylas', 'Taliyah', 'Vayne', 'Warwick', '<NAME>', 'Zed']),
('2021-02-02', '2021-02-09', ARRAY['Cassiopeia', 'Galio', 'Jinx', 'Kindred', 'Lucian', 'Lux', 'Nocturne', 'Pyke', 'Rumble', 'Shaco', 'Shen', 'Swain', 'Tryndamere', 'Veigar', 'Viego']),
('2021-02-09', '2021-02-16', ARRAY['Ashe', 'Draven', 'Evelynn', 'Fizz', 'Hecarim', 'Karthus', 'Nasus', 'Nautilus', 'Neeko', 'Olaf', 'Renekton', 'Ryze', 'Sona', 'Udyr', 'Zoe']),
('2021-02-16', '2021-02-23', ARRAY['Anivia', 'Blitzcrank', 'Caitlyn', 'Jax', 'Karma', 'Kennen', 'Kled', 'Lillia', '<NAME>une', 'Sion', '<NAME>', 'Trundle', 'Xerath', 'Yasuo', 'Ziggs']),
('2021-02-23', '2021-03-02', ARRAY['Corki', 'Elise', 'Irelia', 'Janna', 'Jhin', 'Kassadin', 'Kog''Maw', 'Morgana', 'Poppy', 'Qiyana', 'Rek''Sai', 'Sett', 'Vi', 'Volibear']),
('2021-03-02', '2021-03-09', ARRAY['Ahri', 'Annie', 'Camille', 'Gnar', 'Gragas', 'Heimerdinger', 'Kai''Sa', 'Kayle', 'Nami', '<NAME>', 'Shyvana', 'Syndra', 'Varus', 'Vel''Koz', 'Yuumi']),
('2021-03-09', '2021-03-16', ARRAY['Akali', 'Gangplank', 'Graves', 'Kalista', 'Katarina', 'Lulu', 'Malphite', 'Master Yi', 'Nidalee', 'Sivir', 'Taric', 'Viktor', 'Yone', 'Yorick', 'Zilean']),
('2021-03-16', '2021-03-23', ARRAY['Amumu', 'Bard', 'Darius', 'Dr. Mundo', 'Ezreal', 'Fiddlesticks', 'LeBlanc', 'Malzahar', 'Ornn', 'Pantheon', 'Quinn', 'Rammus', 'Singed', 'Vayne', 'Vladimir']),
('2021-03-23', '2021-03-30', ARRAY['Aurelion Sol', 'Azir', 'Braum', 'Diana', 'Fiora', 'Garen', 'Karma', 'Kayn', '<NAME>', 'Sejuani', 'Soraka', 'Teemo', 'Twitch', 'Urgot', 'Xayah']),
('2021-03-30', '2021-04-06', ARRAY['Ekko', 'Jarvan IV.', 'Jayce', 'Jinx', 'Kha''Zix', 'Lucian', 'Maokai', 'Mordekaiser', 'Neeko', 'Orianna', 'Rengar', 'Thresh', 'Twisted Fate', 'Zed', 'Zyra']),
('2021-04-06', '2021-04-13', ARRAY['Aatrox', 'Aphelios', 'Cho''Gath', 'Draven', 'Fizz', 'Galio', 'Leona', 'Lissandra', 'Olaf', 'Senna', 'Swain', 'Sylas', 'Taliyah', '<NAME>', 'Zac']),
('2021-04-13', '2021-04-20', ARRAY['Brand', 'Caitlyn', 'Cassiopeia', 'Illaoi', 'Janna', 'Karthus', 'Kindred', 'Nasus', 'Nocturne', 'Riven', 'Samira', 'Shaco', 'Talon', 'Wukong', 'Zoe']),
('2021-04-20', '2021-04-27', ARRAY['Annie', 'Evelynn', 'Ivern', 'Jhin', 'Lux', 'Malphite', '<NAME>', 'Nautilus', 'Pyke', 'Rumble', 'Sett', 'Skarner', 'Tryndamere', 'Veigar', 'Xerath']),
('2021-04-27', '2021-05-04', ARRAY['Anivia', 'Gnar', 'Gwen', 'Hecarim', 'Heimerdinger', 'Kai''Sa', 'Kassadin', 'Kennen', 'Kog''Maw', 'Lillia', 'Qiyana', 'Rakan', 'Sion', 'Sona', 'Udyr']),
('2021-05-04', '2021-05-11', ARRAY['Ashe', 'Blitzcrank', 'Irelia', 'Kled', 'LeBlanc', 'Malzahar', 'Mordekaiser', 'Rek''Sai', 'Renekton', 'Shen', 'Syndra', 'Varus', 'Vi', 'Warwick', 'Zilean']),
('2021-05-11', '2021-05-18', ARRAY['Gragas', 'Jax', 'Kalista', 'Kayle', 'Lucian', 'Maokai', 'Morgana', 'Poppy', 'Trundle', 'Vel''Koz', 'Volibear', 'Yasuo', 'Yone', 'Yorick', 'Ziggs']);
|
<filename>my_db/migrations.sql
-- phpMyAdmin SQL Dump
-- version 4.9.1
-- https://www.phpmyadmin.net/
--
-- 主機: localhost
-- 產生時間:
-- 伺服器版本: 8.0.17
-- PHP 版本: 7.3.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 */;
--
-- 資料庫: `news`
--
-- --------------------------------------------------------
--
-- 資料表結構 `migrations`
--
CREATE TABLE `migrations` (
`id` int(10) UNSIGNED NOT NULL,
`migration` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`batch` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- 傾印資料表的資料 `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, '2014_10_12_200000_add_two_factor_columns_to_users_table', 1),
(4, '2019_08_19_000000_create_failed_jobs_table', 1),
(5, '2019_12_14_000001_create_personal_access_tokens_table', 1),
(6, '2020_09_24_101938_create_sessions_table', 1);
--
-- 已傾印資料表的索引
--
--
-- 資料表索引 `migrations`
--
ALTER TABLE `migrations`
ADD PRIMARY KEY (`id`);
--
-- 在傾印的資料表使用自動遞增(AUTO_INCREMENT)
--
--
-- 使用資料表自動遞增(AUTO_INCREMENT) `migrations`
--
ALTER TABLE `migrations`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;
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>SQL/Basic_Select/weather11.sql
SELECT DISTINCT(city)
FROM station
WHERE 1=1
AND LEFT(city, 1) NOT IN ('a', 'e', 'i', 'o', 'u')
OR RIGHT(city, 1) NOT IN ('a', 'e', 'i', 'o', 'u');
|
-- phpMyAdmin SQL Dump
-- version 4.8.5
-- https://www.phpmyadmin.net/
--
-- Servidor: localhost:3306
-- Tiempo de generación: 15-07-2019 a las 08:59:25
-- Versión del servidor: 5.6.44
-- Versión de PHP: 7.2.7
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 datos: `alvorgmx_Ne`
--
DELIMITER $$
--
-- Procedimientos
--
DROP PROCEDURE IF EXISTS `actualizartpreal`$$
$$
DROP PROCEDURE IF EXISTS `actualizar_pieza`$$
$$
DROP PROCEDURE IF EXISTS `buscar_entrega`$$
$$
DROP PROCEDURE IF EXISTS `buscar_pieza`$$
$$
DROP PROCEDURE IF EXISTS `buscar_piezaterminada`$$
$$
DROP PROCEDURE IF EXISTS `cnc1`$$
$$
DROP PROCEDURE IF EXISTS `cnc2`$$
$$
DROP PROCEDURE IF EXISTS `cnc3`$$
$$
DROP PROCEDURE IF EXISTS `cnc4`$$
$$
DROP PROCEDURE IF EXISTS `cnc5`$$
$$
DROP PROCEDURE IF EXISTS `cnc6`$$
$$
DROP PROCEDURE IF EXISTS `eliminar_pieza`$$
$$
DROP PROCEDURE IF EXISTS `eliminar_proceso`$$
$$
DROP PROCEDURE IF EXISTS `fecha_cambio`$$
$$
DROP PROCEDURE IF EXISTS `filtrado`$$
$$
DROP PROCEDURE IF EXISTS `fresa1`$$
$$
DROP PROCEDURE IF EXISTS `fresa2`$$
$$
DROP PROCEDURE IF EXISTS `fresa3`$$
$$
DROP PROCEDURE IF EXISTS `fresa4`$$
$$
DROP PROCEDURE IF EXISTS `fresa5`$$
$$
DROP PROCEDURE IF EXISTS `insertar_entrega`$$
$$
DROP PROCEDURE IF EXISTS `insertar_pieza`$$
$$
DROP PROCEDURE IF EXISTS `insertar_procesos`$$
$$
DROP PROCEDURE IF EXISTS `listar_entrega`$$
$$
DROP PROCEDURE IF EXISTS `listar_pieza`$$
$$
DROP PROCEDURE IF EXISTS `listar_pieza2`$$
$$
DROP PROCEDURE IF EXISTS `Pieza_terminada`$$
$$
DROP PROCEDURE IF EXISTS `pruebafecha`$$
$$
DROP PROCEDURE IF EXISTS `pulido`$$
$$
DROP PROCEDURE IF EXISTS `recorrimiento`$$
$$
DROP PROCEDURE IF EXISTS `Rectificado`$$
$$
DROP PROCEDURE IF EXISTS `soldadura`$$
$$
DROP PROCEDURE IF EXISTS `terminar_pieza`$$
$$
DROP PROCEDURE IF EXISTS `terminar_proceso`$$
$$
DROP PROCEDURE IF EXISTS `torno`$$
$$
DROP PROCEDURE IF EXISTS `torno2`$$
$$
DROP PROCEDURE IF EXISTS `tratamiento_termico`$$
$$
DELIMITER ;
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `maquinaria`
--
DROP TABLE IF EXISTS `maquinaria`;
CREATE TABLE `maquinaria` (
`idmaquinaria` int(11) NOT NULL,
`nombre` varchar(50) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
--
-- Volcado de datos para la tabla `maquinaria`
--
INSERT INTO `maquinaria` (`idmaquinaria`, `nombre`) VALUES
(1, 'CNC1'),
(2, 'CNC2'),
(3, 'CNC3'),
(4, 'FRESA1'),
(5, 'FRESA2'),
(6, 'FRESA3'),
(7, 'TORNO1'),
(8, 'TORNO2'),
(9, 'CNC4'),
(10, 'CNC5'),
(11, 'CNC6'),
(12, 'FRESA4'),
(13, 'FRESA5');
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `material`
--
DROP TABLE IF EXISTS `material`;
CREATE TABLE `material` (
`idmaterial` int(11) NOT NULL,
`material` varchar(50) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
--
-- Volcado de datos para la tabla `material`
--
INSERT INTO `material` (`idmaterial`, `material`) VALUES
(1, 'ACETAL NEGRO'),
(2, 'ALUMINIO 6061'),
(3, 'INOXIDABLE 303,304'),
(4, 'ACETAL BLANCO '),
(5, 'ACERO 01'),
(6, 'NYLAMID'),
(7, 'UHMW'),
(8, 'ACERO 4140'),
(9, 'ACERO A36'),
(10, 'ACERO 1045'),
(11, 'ACERO 1018'),
(12, 'LAMINA DE INOXIDABLE'),
(13, 'ACERO 4140T');
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `pieza`
--
DROP TABLE IF EXISTS `pieza`;
CREATE TABLE `pieza` (
`idpieza` int(11) NOT NULL,
`nombre_plano` varchar(50) NOT NULL,
`orden_trabajo` varchar(50) NOT NULL,
`tipo_trabajo` varchar(50) NOT NULL,
`material` varchar(50) NOT NULL,
`fecha_hora` datetime NOT NULL,
`n_proyecto` varchar(50) NOT NULL,
`total_piezas` varchar(50) NOT NULL,
`total_procesos` varchar(50) NOT NULL,
`turno` varchar(50) NOT NULL,
`imagen` varchar(50) NOT NULL,
`estado` tinyint(4) DEFAULT '1',
`tiempo_pieza` varchar(50) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `procesos`
--
DROP TABLE IF EXISTS `procesos`;
CREATE TABLE `procesos` (
`idprocesos` int(11) NOT NULL,
`nombre` varchar(50) NOT NULL,
`nombre_plano` varchar(50) NOT NULL,
`estado` tinyint(4) NOT NULL DEFAULT '1',
`t_estimado` varchar(50) NOT NULL,
`t_real` varchar(50) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `tipo`
--
DROP TABLE IF EXISTS `tipo`;
CREATE TABLE `tipo` (
`idtipo` int(11) NOT NULL,
`tipo` varchar(50) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
--
-- Volcado de datos para la tabla `tipo`
--
INSERT INTO `tipo` (`idtipo`, `tipo`) VALUES
(1, 'URGENCIAS'),
(2, 'RETRABAJOS'),
(3, 'DISEÑO'),
(4, 'MAQUINADO'),
(5, 'NUEVO');
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `turno`
--
DROP TABLE IF EXISTS `turno`;
CREATE TABLE `turno` (
`idturno` int(11) NOT NULL,
`turno` varchar(50) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
--
-- Volcado de datos para la tabla `turno`
--
INSERT INTO `turno` (`idturno`, `turno`) VALUES
(1, '1'),
(2, '2');
--
-- Índices para tablas volcadas
--
--
-- Indices de la tabla `maquinaria`
--
ALTER TABLE `maquinaria`
ADD PRIMARY KEY (`idmaquinaria`),
ADD KEY `ix_tmp_autoinc` (`idmaquinaria`);
--
-- Indices de la tabla `material`
--
ALTER TABLE `material`
ADD PRIMARY KEY (`idmaterial`),
ADD KEY `ix_tmp_autoinc` (`idmaterial`);
--
-- Indices de la tabla `pieza`
--
ALTER TABLE `pieza`
ADD PRIMARY KEY (`idpieza`),
ADD KEY `ix_tmp_autoinc` (`idpieza`);
--
-- Indices de la tabla `procesos`
--
ALTER TABLE `procesos`
ADD PRIMARY KEY (`idprocesos`),
ADD KEY `ix_tmp_autoinc` (`idprocesos`);
--
-- Indices de la tabla `tipo`
--
ALTER TABLE `tipo`
ADD PRIMARY KEY (`idtipo`),
ADD KEY `ix_tmp_autoinc` (`idtipo`);
--
-- Indices de la tabla `turno`
--
ALTER TABLE `turno`
ADD PRIMARY KEY (`idturno`),
ADD KEY `ix_tmp_autoinc` (`idturno`);
--
-- AUTO_INCREMENT de las tablas volcadas
--
--
-- AUTO_INCREMENT de la tabla `maquinaria`
--
ALTER TABLE `maquinaria`
MODIFY `idmaquinaria` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1007;
--
-- AUTO_INCREMENT de la tabla `material`
--
ALTER TABLE `material`
MODIFY `idmaterial` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=14;
--
-- AUTO_INCREMENT de la tabla `pieza`
--
ALTER TABLE `pieza`
MODIFY `idpieza` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT de la tabla `procesos`
--
ALTER TABLE `procesos`
MODIFY `idprocesos` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT de la tabla `tipo`
--
ALTER TABLE `tipo`
MODIFY `idtipo` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
--
-- AUTO_INCREMENT de la tabla `turno`
--
ALTER TABLE `turno`
MODIFY `idturno` 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 */;
|
CREATE OR REPLACE VIEW `Articoli View` AS (SELECT `Articoli Specifici`.*, `Articoli Generici`.`idCategoria`, `Articoli Generici`.`idMarca` ,`Marche`.`Nome` AS `Marca`,`Marche`.`Sito`,`Articoli Generici`.`idUnità`, `Nomi Articoli`.`Nome`, `Descrizioni Articoli`.`Descrizione`, `Immagini Tagliate`.`Path` AS `Path Immagine`, `Immagini Tagliate`.`Thumbnail Base64`, `Categorie Articoli`.`QuantitàEsatte` FROM `Articoli Specifici` LEFT OUTER JOIN `Articoli Generici` ON `Articoli Generici`.`idArticolo` = `Articoli Specifici`.`idArticolo` LEFT OUTER JOIN `Categorie Articoli` ON `Articoli Generici`.`idCategoria` = `Categorie Articoli`.`idCategoria` LEFT OUTER JOIN `Marche` ON `Articoli Generici`.`idMarca` = `Marche`.`idMarca` LEFT OUTER JOIN `Nomi Articoli` ON `Articoli Specifici`.`idArticoloSpecifico` = `Nomi Articoli`.`idArticoloSpecifico` LEFT OUTER JOIN `Descrizioni Articoli` ON `Articoli Specifici`.`idArticoloSpecifico` = `Descrizioni Articoli`.`idArticoloSpecifico` LEFT OUTER JOIN `Immagini Tagliate` ON `Immagini Tagliate`.`idImmagineTagliata` = `Articoli Specifici`.`idImmagineTagliata` WHERE `Nomi Articoli`.`idLingua`=1 AND `Descrizioni Articoli`.`idLingua`=1);
CREATE OR REPLACE VIEW `Clienti View` AS (SELECT `Clienti`.*, `Utenti`.`Nome Utente`, `Utenti`.`Password`, `Utenti`.`Attivazione`, `Utenti`.`Attivo`, `Utenti`.`Data Registrazione`, `Utenti`.`idLingua` FROM `Clienti` JOIN `Utenti` USING(`idUtente`));
|
DROP TABLE courses;
|
<reponame>feluelle/lets-build-data-for
with stg_imdb_movies__directors as (
select unnest(string_to_array(directors, ', ')) as director,
uid,
title_id
from {{ ref('stg_imdb_movies') }}
group by director, uid, title_id
)
select *
from stg_imdb_movies__directors
|
-- Comments start with two hyphens. End each command with a semicolon.
/*
And this is also a comment which is a multiline comment.
It mean that you can type long multiple line comment.
*/
-- SQL is not a case-sensitive about keywords. The sample command here
-- follow the convention of spelling them in upper-case because it makes
-- it easier to distinguish them from database, table, and column names.
-- You can only run SQL once time if they run success you will have data
-- in your machine please check that before run other, make sure that
-- your command highlight is right and run it.
-- SQL isn't like a programming language, it is a structure query
-- language so you should try to familiar with it.
-- WARNING: DO NOT RUN THESE COMMANDS WITHOUT KNOWLEDGE ABOUT SQL
-- TRY TO UNDERSTAND THESE EXAMPLES BEFORE YOU CAN MOVE ON
-- Create a database
CREATE DATABASE Students;
-- Use exists database in local machine
USE Students;
-- Create a table StudentsInfo
CREATE TABLE StudentsInfo(
StudentID int,
StudentName varchar(40),
ParentName varchar(40),
PhoneNumber bigint,
AddressofStudent varchar(100),
City varchar(50),
Country varchar(50)
);
-- Delete table StudentsInfo
DROP TABLE StudentsInfo;
-- Delete database Students
DROP DATABASE Students;
-- Add column BloodGroup
ALTER TABLE StudentsInfo ADD BloodGroup varchar(100);
-- Delete column BloodGroup
ALTER TABLE StudentsInfo DROP COLUMN BloodGroup;
-- Add column DateOfBirth
ALTER TABLE StudentsInfo ADD DateOfBirth DATE;
-- Change to data types for DateOfBirth
ALTER TABLE StudentsInfo ALTER COLUMN DateOfBirth DATETIME;
-- Delete column DateOfBirth
ALTER TABLE StudentsInfo DROP COLUMN DateOfBirth;
-- Add values to table with values
-- Check the table so that you can type in right
INSERT INTO StudentsInfo VALUES ('07', 'Vishal', 'Mishra', '9876543210', 'Nice Road 15', 'Pune', 'India');
INSERT INTO StudentsInfo VALUES ('06', 'Yasuokishara', 'Nashaki', '9876543224', 'Nice Road 10', 'Palulu', 'Damn');
-- Show StundentsInfo table on screen
SELECT * FROM StudentsInfo;
--- Delete all values in table
TRUNCATE TABLE StudentsInfo;
-- Change table name
sp_rename 'StudentsInfo', 'InfoStudents';
sp_rename 'InfoStudents', 'StudentsInfo';
|
/*!50003 DROP FUNCTION IF EXISTS `randomizeVehicleInventory` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
/*!50003 SET character_set_client = utf8 */ ;
/*!50003 SET character_set_results = utf8 */ ;
/*!50003 SET collation_connection = utf8_general_ci */ ;
/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
/*!50003 SET sql_mode = 'NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`dayzhivemind`@`%` FUNCTION `randomizeVehicleInventory`(`c` varchar(255)) RETURNS longtext CHARSET latin1
READS SQL DATA
BEGIN
DECLARE WeaponClasses VARCHAR(255);
DECLARE WeaponAmounts VARCHAR(255);
DECLARE MagazineClasses VARCHAR(512); #changed to 512 since vehicle inventory can be large
DECLARE MagazineAmounts VARCHAR(255);
DECLARE BackpackClasses VARCHAR(255);
DECLARE BackpackAmounts VARCHAR(255);
DECLARE InventoryID INT DEFAULT (SELECT Inventory FROM vehicle_spawns WHERE Classname = c LIMIT 1);
DECLARE MaxWeapons INT DEFAULT (SELECT MaxWeapons FROM vehicle_spawns WHERE Classname = c LIMIT 1);
DECLARE MaxMagazines INT DEFAULT (SELECT MaxMagazines FROM vehicle_spawns WHERE Classname = c LIMIT 1);
DECLARE MaxBackpacks INT DEFAULT (SELECT MaxBackpacks FROM vehicle_spawns WHERE Classname = c LIMIT 1);
IF (ISNULL(InventoryID)) THEN
RETURN "[]";
END IF;
#Weapons
SET @amt := 0;
SET @sum := 0;
SELECT GROUP_CONCAT("\"", Classname, "\""),
GROUP_CONCAT(IF(@sum > MaxWeapons, MaxWeapons - @sum + @amt, @amt))
INTO WeaponClasses, WeaponAmounts
FROM
(
SELECT *
FROM vehicle_inventory
WHERE ID = InventoryID
AND Type = "Weapon"
AND RAND() < Chance
ORDER BY RAND()
) AS x
WHERE (@amt := ROUND(x.MinAmount + RAND() * (x.MaxAmount - x.MinAmount))) IS NOT NULL
AND (@sum := @sum + @amt) IS NOT NULL
AND @sum - @amt < MaxWeapons;
#Magazines
SET @amt := 0;
SET @sum := 0;
SELECT GROUP_CONCAT("\"", Classname, "\""),
GROUP_CONCAT(IF(@sum > MaxMagazines, MaxMagazines - @sum + @amt, @amt))
INTO MagazineClasses, MagazineAmounts
FROM
(
SELECT *
FROM vehicle_inventory
WHERE ID = InventoryID
AND Type = "Magazine"
AND RAND() < Chance
ORDER BY RAND()
) AS x
WHERE (@amt := ROUND(x.MinAmount + RAND() * (x.MaxAmount - x.MinAmount))) IS NOT NULL
AND (@sum := @sum + @amt) IS NOT NULL
AND @sum - @amt < MaxMagazines;
#Backpacks
SET @amt := 0;
SET @sum := 0;
SELECT GROUP_CONCAT("\"", Classname, "\""),
GROUP_CONCAT(IF(@sum > MaxBackpacks, MaxBackpacks - @sum + @amt, @amt))
INTO BackpackClasses, BackpackAmounts
FROM
(
SELECT *
FROM vehicle_inventory
WHERE ID = InventoryID
AND Type = "Backpack"
AND RAND() < Chance
ORDER BY RAND()
) AS x
WHERE (@amt := ROUND(x.MinAmount + RAND() * (x.MaxAmount - x.MinAmount))) IS NOT NULL
AND (@sum := @sum + @amt) IS NOT NULL
AND @sum - @amt < MaxBackpacks;
#Concatenate all classes and amounts into one string in the format:
#[[[<backpack classes>],[<weapon amounts>]],[[<magazine classes>],[<magazine amounts>]],[[<backpack classes>],[<backpack amounts>]]]
RETURN CONCAT_WS
(
"",
"[[[", WeaponClasses,
"], [", WeaponAmounts,
"]], [[", MagazineClasses,
"], [", MagazineAmounts,
"]], [[", BackpackClasses,
"], [", BackpackAmounts,
"]]]"
);
END ;;
DELIMITER ;
/*!50003 SET sql_mode = @saved_sql_mode */ ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.