sql stringlengths 6 1.05M |
|---|
<filename>src/test/resources/sql/insert/41b6461a.sql
-- file:update.sql ln:16 expect:true
INSERT INTO update_test VALUES (5, 10, 'foo')
|
<filename>6_CSDL/script/qltv.sql
create database qltv
go
use qltv
go
create table docgia (
ma_docgia int,
ho nvarchar(50),
tenlot nvarchar(50),
ten nvarchar(50),
ngaysinh date,
primary key(ma_docgia)
)
create table treem (
ma_docgia int,
ma_docgia_nguoilon int,
primary key(ma_docgia)
)
create table nguoilon (
ma_docgia int,
sonha int,
duong nvarchar(50),
quan nvarchar(50),
dienthoai nvarchar(50),
han_sd date,
primary key(ma_docgia)
)
create table tuasach (
ma_tuasach int,
tuasach nvarchar(50),
tacgia nvarchar(50),
tomtat ntext,
primary key(ma_tuasach)
)
create table dausach (
isbn int,
ma_tuasach int,
ngonngu nvarchar(50),
bia nvarchar(50),
trang_thai char(1),
primary key(isbn)
)
create table cuonsach (
isbn int,
ma_cuonsach int,
tinhtrang char(1),
primary key (isbn, ma_cuonsach),
)
create table muon (
isbn int,
ma_cuonsach int,
ma_docgia int,
ngaygio_muon datetime,
ngay_hethan datetime,
primary key (isbn, ma_cuonsach),
)
create table dangky (
isbn int,
ma_docgia int,
ngaygio_dk datetime,
ghichu ntext,
primary key (isbn, ma_docgia),
)
create table quatrinhmuon (
isbn int,
ma_cuonsach int,
ngaygio_muon datetime,
ma_docgia int,
ngay_hethan datetime,
ngaygio_tra datetime,
tien_muon money,
tien_datra money,
tien_datcoc money,
ghichu ntext,
primary key (isbn, ma_cuonsach, ngaygio_muon),
)
go
alter table treem add
constraint fk_treem_mdgnl
foreign key (ma_docgia_nguoilon) references nguoilon(ma_docgia)
alter table dausach add
constraint fk_dausach_mts
foreign key (ma_tuasach) references tuasach(ma_tuasach)
alter table dangky add
constraint fk_dangky_mdg
foreign key (ma_docgia) references docgia(ma_docgia),
constraint fk_dangky_isbn
foreign key (isbn) references dausach(isbn)
alter table muon add
constraint fk_muon_isbnmcs
foreign key (isbn, ma_cuonsach) references cuonsach(isbn, ma_cuonsach),
constraint fk_muon_mdg
foreign key (ma_docgia) references docgia(ma_docgia)
alter table cuonsach add
constraint fk_cuonsach_isbn
foreign key (isbn) references dausach(isbn)
alter table quatrinhmuon add
constraint fk_quatrinhmuon_isbnmcs
foreign key (isbn, ma_cuonsach) references cuonsach(isbn, ma_cuonsach),
constraint fk_quatrinhmuon_mdg
foreign key (ma_docgia) references docgia(ma_docgia)
go
|
<filename>backend/de.metas.adempiere.adempiere/migration/src/main/sql/postgresql/system/10-de.metas.adempiere/5480160_sys_gh3140-picking-wh-group-trl.sql
-- 2017-12-09T13:22:20.981
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-12-09 13:22:20','YYYY-MM-DD HH24:MI:SS'),IsTranslated='Y',Name='Client',Description='',Help='' WHERE AD_Field_ID=560671 AND AD_Language='en_US'
;
-- 2017-12-09T13:22:33.794
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-12-09 13:22:33','YYYY-MM-DD HH24:MI:SS'),IsTranslated='Y',Name='Organisation',Description='',Help='' WHERE AD_Field_ID=560672 AND AD_Language='en_US'
;
-- 2017-12-09T13:22:45.758
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field_Trl SET UpdatedBy=100,Updated=TO_TIMESTAMP('2017-12-09 13:22:45','YYYY-MM-DD HH24:MI:SS'),IsTranslated='Y',Name='Active',Description='',Help='' WHERE AD_Field_ID=560673 AND AD_Language='en_US'
;
|
<gh_stars>1000+
ALTER SESSION SET CONTAINER=CUSTOMSCRIPTS;
CREATE USER TEST IDENTIFIED BY test;
GRANT CONNECT, RESOURCE TO TEST;
ALTER USER TEST QUOTA UNLIMITED ON USERS;
exit;
|
CREATE TABLE log (
id INTEGER PRIMARY KEY AUTOINCREMENT,
facility INTEGER,
severity INTEGER,
socket TEXT NOT NULL,
appname TEXT,
pid INTEGER,
time TEXT,
msg TEXT NOT NULL,
sdata TEXT
) STRICT;
CREATE TRIGGER delete_old AFTER INSERT ON log
BEGIN
DELETE FROM log where id < NEW.id - 16777216;
END;
|
-- 1. for each store show the difference in sales between 2014 and 2015
SELECT
storeId,
SUM(CASE WHEN YEAR(purchaseDate) = 2014 THEN 1 ELSE 0 END) AS VAL14,
SUM(CASE WHEN YEAR(purchaseDate) = 2015 THEN 1 ELSE 0 END) AS VAL15
FROM purchase
GROUP BY storeId;
-- 2. % of all customers that have purchases at least 1 product
SELECT COUNT(DISTINCT p.custId) / COUNT(DISTINCT c.custId)
FROM Customer c LEFT OUTER JOIN Purchase p ON p.custId = c.custId;
SELECT
pcnt.total / ccnt.total
FROM
(SELECT COUNT(DISTINCT custId) total FROM Purchase) AS pcnt,
(SELECT COUNT(custId) total FROM Customer) AS ccnt
-- 3. list all the customers that live in a state 'CA',
-- ordered by the number of unique products they bought
SELECT
custId,
name,
COUNT(DISTINCT productId)
FROM Purchase
JOIN Customer USING(custId)
WHERE stateId = 1
GROUP BY custId
ORDER BY COUNT(DISTINCT productId);
-- 4. Find the earliest born and last born customers, by gender,
-- who have bought at least 1 product.
SELECT DISTINCT
c.custId,
c.name,
c.gender,
c.birthday
FROM
Customer c
JOIN Purchase USING(custId),
(SELECT
gender,
MAX( birthday ) AS lastBorn,
MIN( birthday ) AS firstBorn
FROM
Customer JOIN Purchase USING(custId)
GROUP BY
gender) AS gma
WHERE c.gender = gma.gender
AND ( c.birthday = gma.lastBorn OR c.birthday = gma.firstBorn)
ORDER BY gender, birthday
|
<gh_stars>0
CREATE TABLE IF NOT EXISTS payment_processors (
id int NOT NULL AUTO_INCREMENT,
name varchar(255),
type varchar(255),
apiKey varchar(255),
merchantAccount varchar(255),
loginAccount varchar(255),
loginPassword varchar(255),
secretKey varchar(255),
PRIMARY KEY (id)
);
|
-- Drop table
-- DROP TABLE SGIPD_DEV.dbo.Plazas2021_from_prod;
CREATE TABLE SGIPD_DEV.dbo.Plazas2021_from_prod (
ID_SECUENCIAL bigint NULL,
COD_INFRA bigint NULL,
NOMBRE_CENTRO_EDUCATIVO varchar(83) COLLATE Modern_Spanish_CI_AS NULL,
Departamento varchar(12) COLLATE Modern_Spanish_CI_AS NULL,
Municipio varchar(25) COLLATE Modern_Spanish_CI_AS NULL,
Nivel_Educativo varchar(10) COLLATE Modern_Spanish_CI_AS NULL,
Turno varchar(10) COLLATE Modern_Spanish_CI_AS NULL,
Especialidad varchar(92) COLLATE Modern_Spanish_CI_AS NULL
);
|
<reponame>paullewallencom/joomla-978-1-7821-6837-9<gh_stars>0
ALTER TABLE `#__folio` ADD `checked_out` int(11) NOT NULL DEFAULT '0';
ALTER TABLE `#__folio` ADD `checked_out_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00';
ALTER TABLE `#__folio` ADD `access` int(11) NOT NULL DEFAULT '1';
ALTER TABLE `#__folio` ADD `language` char(7) NOT NULL DEFAULT '';
ALTER TABLE `#__folio` ADD `created` datetime NOT NULL DEFAULT '0000-00-00 00:00:00';
ALTER TABLE `#__folio` ADD `created_by` int(10) unsigned NOT NULL DEFAULT '0';
ALTER TABLE `#__folio` ADD `created_by_alias` varchar(255) NOT NULL DEFAULT '';
ALTER TABLE `#__folio` ADD `modified` datetime NOT NULL DEFAULT '0000-00-00 00:00:00';
ALTER TABLE `#__folio` ADD `modified_by` int(10) unsigned NOT NULL DEFAULT '0';
|
<filename>spring-boot-shiro/src/main/resources/init/sys_user_role.sql<gh_stars>1-10
/*
Navicat Premium Data Transfer
Source Server : local
Source Server Type : MySQL
Source Server Version : 50718
Source Host : localhost:3306
Source Schema : boot
Target Server Type : MySQL
Target Server Version : 50718
File Encoding : 65001
Date: 27/05/2018 22:24:58
*/
SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;
-- ----------------------------
-- Table structure for sys_user_role
-- ----------------------------
DROP TABLE IF EXISTS `sys_user_role`;
CREATE TABLE `sys_user_role` (
`id` int(11) NOT NULL,
`role_id` int(11) DEFAULT NULL,
`user_id` int(11) DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE,
INDEX `user`(`user_id`) USING BTREE,
INDEX `rule_user`(`role_id`) USING BTREE,
CONSTRAINT `user` FOREIGN KEY (`user_id`) REFERENCES `sys_user` (`user_id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
CONSTRAINT `rule_user` FOREIGN KEY (`role_id`) REFERENCES `sys_role` (`role_id`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of sys_user_role
-- ----------------------------
INSERT INTO `sys_user_role` VALUES (1, 1, 2);
INSERT INTO `sys_user_role` VALUES (2, 2, 1);
INSERT INTO `sys_user_role` VALUES (3, 1, 3);
INSERT INTO `sys_user_role` VALUES (4, 3, 4);
INSERT INTO `sys_user_role` VALUES (5, 4, 3);
INSERT INTO `sys_user_role` VALUES (7, 2, 3);
INSERT INTO `sys_user_role` VALUES (8, 2, 4);
INSERT INTO `sys_user_role` VALUES (9, 2, 5);
INSERT INTO `sys_user_role` VALUES (10, 2, 6);
INSERT INTO `sys_user_role` VALUES (11, 1, 3);
INSERT INTO `sys_user_role` VALUES (12, 4, 2);
SET FOREIGN_KEY_CHECKS = 1;
|
<filename>src/main/resources/db/migration/V76__add_uzcard_payment_system.sql
alter type nw.BANK_CARD_PAYMENT_SYSTEM add value 'uzcard';
|
-------------------------------------------------------------------------------
--
-- PLEASE NOTE
--
-- No warranty, no liability, no support.
--
-- This script is 100% at your own risk to use.
--
-------------------------------------------------------------------------------
drop table &&1 cascade constraints purge;
create table &&1
as select d.* from dba_objects d,
( select 1 from dual connect by level <= &&2 );
create index &&1._ix on &&1 ( object_id );
|
UPDATE ACT_DMN_DATABASECHANGELOGLOCK SET LOCKED = 1, LOCKEDBY = '192.168.10.1 (192.168.10.1)', LOCKGRANTED = to_timestamp('2020-10-06 14:12:22.607', 'YYYY-MM-DD HH24:MI:SS.FF') WHERE ID = 1 AND LOCKED = 0;
DROP INDEX ACT_IDX_DEC_TBL_UNIQ;
ALTER TABLE ACT_DMN_DECISION_TABLE RENAME TO ACT_DMN_DECISION;
CREATE UNIQUE INDEX ACT_IDX_DMN_DEC_UNIQ ON ACT_DMN_DECISION(KEY_, VERSION_, TENANT_ID_);
INSERT INTO ACT_DMN_DATABASECHANGELOG (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('7', 'flowable', 'org/flowable/dmn/db/liquibase/flowable-dmn-db-changelog.xml', SYSTIMESTAMP, 6, '7:4b6469565b1b00b428ffca7eab1ef253', 'dropIndex indexName=ACT_IDX_DEC_TBL_UNIQ, tableName=ACT_DMN_DECISION_TABLE; renameTable newTableName=ACT_DMN_DECISION, oldTableName=ACT_DMN_DECISION_TABLE; createIndex indexName=ACT_IDX_DMN_DEC_UNIQ, tableName=ACT_DMN_DECISION', '', 'EXECUTED', NULL, NULL, '3.5.3', '1993542905');
ALTER TABLE ACT_DMN_DECISION ADD DECISION_TYPE_ VARCHAR2(255);
INSERT INTO ACT_DMN_DATABASECHANGELOG (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('8', 'flowable', 'org/flowable/dmn/db/liquibase/flowable-dmn-db-changelog.xml', SYSTIMESTAMP, 7, '7:f83b7b3228be2c4bbb554d6de45307d7', 'addColumn tableName=ACT_DMN_DECISION', '', 'EXECUTED', NULL, NULL, '3.5.3', '1993542905');
UPDATE ACT_DMN_DATABASECHANGELOGLOCK SET LOCKED = 0, LOCKEDBY = NULL, LOCKGRANTED = NULL WHERE ID = 1;
|
<filename>db/game_init_script.sql
/*
Navicat MySQL Data Transfer
Source Server : localhost
Source Server Version : 50553
Source Host : localhost:3306
Source Database : game
Target Server Type : MYSQL
Target Server Version : 50553
File Encoding : 65001
Date: 2017-05-19 05:29:40
*/
SET FOREIGN_KEY_CHECKS=0;
-- ----------------------------
-- Table structure for `biz_apply_audit`
-- ----------------------------
DROP TABLE IF EXISTS `biz_apply_audit`;
CREATE TABLE `biz_apply_audit` (
`userid` int(11) NOT NULL,
`audit_status` smallint(6) NOT NULL,
`remark` varchar(100) DEFAULT NULL,
`audit_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`userid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of biz_apply_audit
-- ----------------------------
-- ----------------------------
-- Table structure for `biz_trade`
-- ----------------------------
DROP TABLE IF EXISTS `biz_trade`;
CREATE TABLE `biz_trade` (
`tradeid` int(11) NOT NULL AUTO_INCREMENT,
`goodid` int(11) NOT NULL,
`userid` int(11) NOT NULL,
`from_game_id` varchar(50) NOT NULL,
`to_game_id` varchar(50) NOT NULL,
`qty` int(11) NOT NULL,
`create_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`expire_time` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`status` smallint(6) NOT NULL DEFAULT '1',
PRIMARY KEY (`tradeid`),
KEY `biz_trade_fk` (`goodid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of biz_trade
-- ----------------------------
-- ----------------------------
-- Table structure for `biz_trade_good`
-- ----------------------------
DROP TABLE IF EXISTS `biz_trade_good`;
CREATE TABLE `biz_trade_good` (
`goodid` int(11) NOT NULL AUTO_INCREMENT,
`goodname` varchar(100) NOT NULL,
`sortno` varchar(3) DEFAULT NULL,
`status` smallint(6) NOT NULL DEFAULT '1',
`create_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`expire_time` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
PRIMARY KEY (`goodid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of biz_trade_good
-- ----------------------------
-- ----------------------------
-- Table structure for `biz_user_game`
-- ----------------------------
DROP TABLE IF EXISTS `biz_user_game`;
CREATE TABLE `biz_user_game` (
`userid` int(11) NOT NULL,
`gameid` varchar(30) NOT NULL,
`status` smallint(6) NOT NULL DEFAULT '1',
PRIMARY KEY (`userid`,`gameid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of biz_games
-- ----------------------------
-- ----------------------------
-- Table structure for `biz_games`
-- ----------------------------
DROP TABLE IF EXISTS `biz_games`;
CREATE TABLE `biz_games` (
`gameid` int(11) NOT NULL,
`gamename` varchar(30) NOT NULL,
`description` varchar(50) NOT NULL,
`avatar` blob NOT NULL,
`status` smallint(6) NOT NULL DEFAULT '1',
PRIMARY KEY (`gameid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of biz_user_game
-- ----------------------------
-- ----------------------------
-- Table structure for `sec_users`
-- ----------------------------
DROP TABLE IF EXISTS `sec_users`;
CREATE TABLE `sec_users` (
`userid` int(11) NOT NULL AUTO_INCREMENT,
`username` varchar(50) NOT NULL,
`nickname` varchar(50) NOT NULL,
`promocode` varchar(20) DEFAULT NULL,
`sex` smallint(6) NOT NULL,
`telephone` varchar(20) NOT NULL,
`markid` varchar(100) NOT NULL,
`introducer` varchar(50) DEFAULT NULL,
`create_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`last_login` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`status` smallint(6) NOT NULL,
PRIMARY KEY (`userid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
<gh_stars>1-10
--Create index on serial column and retrieve information from db_index
create serial seq_test
start with 1
increment by 1
nomaxvalue;
create table ddl_0001(id int primary key, name varchar(20));
insert into ddl_0001 values(seq_test.next_value,'Jerry');
insert into ddl_0001 values(seq_test.next_value,'Tom');
insert into ddl_0001 values(seq_test.next_value,'Hello');
insert into ddl_0001 values(seq_test.next_value,'Dennis');
select * from db_index
where class_name = 'ddl_0001';
drop class ddl_0001;
drop serial seq_test;
|
<reponame>yosuaalvin/direktori-ft
-- phpMyAdmin SQL Dump
-- version 4.6.5.2
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Jun 18, 2017 at 07:48 PM
-- Server version: 10.1.21-MariaDB
-- PHP Version: 5.6.30
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- Database: `manajemen_dosen`
--
-- --------------------------------------------------------
--
-- Table structure for table `pekerjaan`
--
CREATE TABLE `pekerjaan` (
`id` int(11) NOT NULL,
`uid` int(11) NOT NULL,
`tahun` date NOT NULL,
`jabatan` varchar(100) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `pendidikan`
--
CREATE TABLE `pendidikan` (
`id` int(11) NOT NULL,
`uid` int(11) NOT NULL,
`tingkat` enum('D3','S1','S2','S3') NOT NULL,
`nama_pt` varchar(100) NOT NULL,
`bidang_ilmu` int(100) NOT NULL,
`tahun_masuk` year(4) NOT NULL,
`tahun_lulus` year(4) NOT NULL,
`judul_ta` varchar(255) NOT NULL,
`pembimbing` varchar(255) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
--
-- Dumping data for table `pendidikan`
--
INSERT INTO `pendidikan` (`id`, `uid`, `tingkat`, `nama_pt`, `bidang_ilmu`, `tahun_masuk`, `tahun_lulus`, `judul_ta`, `pembimbing`) VALUES
(5, 1, 'S1', 'asdf', 0, 1990, 2000, '12', '12'),
(4, 1, 'D3', '222', 0, 1990, 1999, '111', '111'),
(6, 1, '', 'Gol. IVA', 0, 0000, 0000, '', '');
-- --------------------------------------------------------
--
-- Table structure for table `penelitian`
--
CREATE TABLE `penelitian` (
`id` int(11) NOT NULL,
`uid` int(11) NOT NULL,
`judul` varchar(255) NOT NULL,
`tahun_mulai` year(4) NOT NULL,
`tahun_selesai` year(4) NOT NULL,
`sumber_dana` varchar(255) NOT NULL,
`jumlah_dana` int(11) NOT NULL,
`tipe` enum('penelitian','pengabdian') NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
--
-- Dumping data for table `penelitian`
--
INSERT INTO `penelitian` (`id`, `uid`, `judul`, `tahun_mulai`, `tahun_selesai`, `sumber_dana`, `jumlah_dana`, `tipe`) VALUES
(1, 1, 'asd', 2010, 2014, 'asdf', 214, 'penelitian'),
(2, 1, 'asdf', 2013, 2013, 'KEMENRISTEK', 125, 'penelitian'),
(3, 1, '123', 2013, 2014, '123', 123, 'pengabdian');
-- --------------------------------------------------------
--
-- Table structure for table `prodi`
--
CREATE TABLE `prodi` (
`nm_prodi` varchar(50) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `prodi`
--
INSERT INTO `prodi` (`nm_prodi`) VALUES
('<NAME>'),
('Teknik Mesin'),
('Teknik Sipil'),
('Teknik Arsitektur'),
('Teknik Perencanaan Wilayah dan Kota'),
('Teknik Elektro'),
('Sistem Komputer'),
('Teknik Geodesi'),
('Teknik Geologi'),
('Teknik Industri'),
('Teknik Lingkungan'),
('Teknik Perkapalan');
-- --------------------------------------------------------
--
-- Table structure for table `publikasi`
--
CREATE TABLE `publikasi` (
`id` int(11) NOT NULL,
`uid` int(11) NOT NULL,
`judul` varchar(255) NOT NULL,
`tahun` year(4) NOT NULL,
`nama_jurnal` varchar(255) NOT NULL,
`nomor_jurnal` varchar(255) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `seminar`
--
CREATE TABLE `seminar` (
`id` int(11) NOT NULL,
`uid` int(11) NOT NULL,
`nama_seminar` varchar(255) NOT NULL,
`tema` varchar(255) NOT NULL,
`tempat` varchar(255) NOT NULL,
`waktu` date NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ROW_FORMAT=DYNAMIC;
-- --------------------------------------------------------
--
-- Table structure for table `users`
--
CREATE TABLE `users` (
`uid` int(11) NOT NULL,
`no_induk` varchar(30) NOT NULL,
`password` varchar(60) NOT NULL,
`nama` varchar(100) NOT NULL,
`level` enum('admin','pimpinan','dosen','mahasiswa') NOT NULL,
`nama_lengkap` varchar(255) NOT NULL,
`prodi` varchar(50) NOT NULL,
`jabatan_fungsional` varchar(63) NOT NULL,
`jabatan_struktural` varchar(63) NOT NULL,
`nidn` varchar(30) NOT NULL,
`tempat_lahir` varchar(30) NOT NULL,
`tanggal_lahir` date NOT NULL,
`alamat_rumah` varchar(255) NOT NULL,
`kontak_rumah` varchar(50) NOT NULL,
`kontak_hp` varchar(50) NOT NULL,
`alamat_kantor` varchar(255) NOT NULL,
`kontak_kantor` varchar(50) NOT NULL,
`email` varchar(255) NOT NULL,
`meluluskan` varchar(255) NOT NULL COMMENT 'comma seperated values (tingkatpendidikan_jumlahlulusan,tingkatpendidikan_jumlahlulusan, dst...)',
`mk_diampu` varchar(1000) NOT NULL,
`research_interests` varchar(1000) NOT NULL,
`foto` varchar(255) NOT NULL,
`tanggal_buat` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`tanggal_login` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`aktif` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ROW_FORMAT=DYNAMIC;
--
-- Dumping data for table `users`
--
INSERT INTO `users` (`uid`, `no_induk`, `password`, `nama`, `level`, `nama_lengkap`, `prodi`, `jabatan_fungsional`, `jabatan_struktural`, `nidn`, `tempat_lahir`, `tanggal_lahir`, `alamat_rumah`, `kontak_rumah`, `kontak_hp`, `alamat_kantor`, `kontak_kantor`, `email`, `meluluskan`, `mk_diampu`, `research_interests`, `foto`, `tanggal_buat`, `tanggal_login`, `aktif`) VALUES
(1, 'dosen', 'ce28eed1511f631af6b2a7bb0a85d636', 'Dosen', 'dosen', '<NAME>, M.Eng.', 'Teknik Elektro', 'Pegawai', 'Pegawai', '0001', 'Semarang', '1990-10-13', 'Semarang', '088821222122', '0888121233213', 'Semarang', '088812312312', '<EMAIL>', 'D3:12,S1:13,Pr:12,S2:13,S3:14', '', 'Software Engineering,Algorithm and Data Structure', './files/1dosen/foto/logo-undip.png', '2017-05-10 08:51:21', '2017-06-18 10:36:48', 1);
--
-- Indexes for dumped tables
--
--
-- Indexes for table `pekerjaan`
--
ALTER TABLE `pekerjaan`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `pendidikan`
--
ALTER TABLE `pendidikan`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `uid` (`uid`,`tingkat`);
--
-- Indexes for table `penelitian`
--
ALTER TABLE `penelitian`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `publikasi`
--
ALTER TABLE `publikasi`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `seminar`
--
ALTER TABLE `seminar`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `users`
--
ALTER TABLE `users`
ADD PRIMARY KEY (`uid`),
ADD UNIQUE KEY `username` (`no_induk`),
ADD KEY `nama` (`nama`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `pekerjaan`
--
ALTER TABLE `pekerjaan`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `pendidikan`
--
ALTER TABLE `pendidikan`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;
--
-- AUTO_INCREMENT for table `penelitian`
--
ALTER TABLE `penelitian`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `publikasi`
--
ALTER TABLE `publikasi`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `seminar`
--
ALTER TABLE `seminar`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `users`
--
ALTER TABLE `users`
MODIFY `uid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
insert into departamento (nombre) values( 'Amazonas ');
insert into departamento (nombre) values( 'Antioquia ');
insert into departamento (nombre) values( 'Arauca ');
insert into departamento (nombre) values( 'Atlántico ');
insert into departamento (nombre) values( 'Bolívar ');
insert into departamento (nombre) values( 'Boyacá ');
insert into departamento (nombre) values( 'Caldas ');
insert into departamento (nombre) values( 'Caquetá ');
insert into departamento (nombre) values( 'Casanare ');
insert into departamento (nombre) values( 'Cauca ');
insert into departamento (nombre) values( 'Cesar ');
insert into departamento (nombre) values( 'Chocó ');
insert into departamento (nombre) values( 'Córdoba ');
insert into departamento (nombre) values( 'Cundinamarca ');
insert into departamento (nombre) values( 'Guainía ');
insert into departamento (nombre) values( 'Guaviare ');
insert into departamento (nombre) values( 'Huila ');
insert into departamento (nombre) values( 'La Guajira ');
insert into departamento (nombre) values( 'Magdalena ');
insert into departamento (nombre) values( 'Meta ');
insert into departamento (nombre) values( 'Nariño ');
insert into departamento (nombre) values( 'Norte de Santander ');
insert into departamento (nombre) values( 'Putumayo ');
insert into departamento (nombre) values( 'Quindío ');
insert into departamento (nombre) values( 'Risaralda ');
insert into departamento (nombre) values( 'San Andrés y Providencia ');
insert into departamento (nombre) values( 'Santander ');
insert into departamento (nombre) values( 'Sucre ');
insert into departamento (nombre) values( 'Tolima ');
insert into departamento (nombre) values( 'Valle del Cauca ');
insert into departamento (nombre) values( 'Vaupés ');
insert into departamento (nombre) values( 'Vichada ');
|
<reponame>NexuS-Pt/the-legacy-game<filename>database.sql<gh_stars>0
-- phpMyAdmin SQL Dump
-- version 4.1.6
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Apr 10, 2014 at 01:08
-- Server version: 5.5.36
-- PHP Version: 5.4.25
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
--
-- Database: `test`
--
DELIMITER $$
--
-- Procedures
--
CREATE DEFINER=`root`@`localhost` PROCEDURE `test_multi_sets`()
DETERMINISTIC
begin
select user() as first_col;
select user() as first_col, now() as second_col;
select user() as first_col, now() as second_col, now() as third_col;
end$$
DELIMITER ;
-- --------------------------------------------------------
--
-- Table structure for table `aplication`
--
CREATE TABLE IF NOT EXISTS `aplication` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(250) NOT NULL,
`file_name` varchar(250) NOT NULL,
`descri` text NOT NULL,
`type_asc` int(1) NOT NULL,
`ico_url` varchar(600) NOT NULL,
`publish` int(11) NOT NULL,
`ordem` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=9 ;
--
-- Dumping data for table `aplication`
--
INSERT INTO `aplication` (`id`, `name`, `file_name`, `descri`, `type_asc`, `ico_url`, `publish`, `ordem`) VALUES
(1, 'Facebook', 'facebook', 'Achas que somos bons, então clica em "Like".', 6, 'http://cdn3.iconfinder.com/data/icons/socialnetworking/32/facebook.png', 1, 1),
(5, 'NexuS O Legado', 'game', 'Lançamos o jogo a 16-06-2011, 11 anos e sempre a evoluir, ajuda-nos a evoluir!', 6, 'http://cdn1.iconfinder.com/data/icons/cc_mono_icon_set/blacks/32x32/game_pad.png', 1, 0),
(7, 'Google+ (Plus)', 'google+', 'Adere já ao nosso lado Google!', 6, 'https://ssl.gstatic.com/images/icons/gplus-32.png', 1, 3);
-- --------------------------------------------------------
--
-- Table structure for table `app_data`
--
CREATE TABLE IF NOT EXISTS `app_data` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`data_1` varchar(30) NOT NULL,
`data_2` varchar(30) NOT NULL,
`data_3` varchar(30) NOT NULL,
`data_4` varchar(30) NOT NULL,
`app` varchar(25) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `banner`
--
CREATE TABLE IF NOT EXISTS `banner` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`image_url` varchar(250) NOT NULL,
`url_go_to` varchar(250) NOT NULL,
`name` varchar(250) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=4 ;
--
-- Dumping data for table `banner`
--
INSERT INTO `banner` (`id`, `image_url`, `url_go_to`, `name`) VALUES
(1, 'media/imagens/pub_1.png', './', 'Home'),
(3, './images/banner/pcgamingbanner.jpg', 'http://pcgaming.com.pt/', 'PCGamming');
-- --------------------------------------------------------
--
-- Table structure for table `coins`
--
CREATE TABLE IF NOT EXISTS `coins` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`quant` int(11) NOT NULL,
`type` int(11) NOT NULL,
`user_id_ass` int(11) NOT NULL,
`why` text NOT NULL,
`date` date NOT NULL,
`orderid` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `coins_order`
--
CREATE TABLE IF NOT EXISTS `coins_order` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id_ass` int(11) NOT NULL,
`orderid` int(11) NOT NULL,
`active` int(11) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `comments`
--
CREATE TABLE IF NOT EXISTS `comments` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`writer` int(11) NOT NULL,
`text` text NOT NULL,
`content_id` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `config`
--
CREATE TABLE IF NOT EXISTS `config` (
`config_name` varchar(200) NOT NULL,
`config_value` varchar(200) NOT NULL,
PRIMARY KEY (`config_name`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
--
-- Dumping data for table `config`
--
INSERT INTO `config` (`config_name`, `config_value`) VALUES
('site_name', 'System'),
('site_slogan', 'Community of NexuS'),
('site_estado', '1'),
('nxs_tcg_card_url', ''),
('nxs_tcg_thumb_url', '');
-- --------------------------------------------------------
--
-- Table structure for table `content`
--
CREATE TABLE IF NOT EXISTS `content` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`nome` varchar(250) NOT NULL,
`description` varchar(500) NOT NULL,
`content` text NOT NULL,
`writer` int(11) NOT NULL,
`time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;
--
-- Dumping data for table `content`
--
INSERT INTO `content` (`id`, `nome`, `description`, `content`, `writer`, `time`) VALUES
(1, 'Bem-Vindos', 'Noticia de Obrigado!', '<p align=''justify''>É com muita felicidade nossa que podemos dar asas aos nossos sonhos, perspectivas entre muitas outras coisas. Da-mo-vos as boas-vindas à nossa comunidade, ou como costumamos dizer, à nossa família, é uma plataforma nova totalmente desenvolvida por nós, a NexuS Team, poderão encontrar alguns entraves no sistema, mas contamos convosco para nós informarem dessas avarias, para que possamos corrigir e dar-vos o melhor serviço possivel.<br> Contamos convosco, e o nosso muito obrigado!</p> ', 1, '0000-00-00 00:00:00');
-- --------------------------------------------------------
--
-- Table structure for table `forum_categories`
--
CREATE TABLE IF NOT EXISTS `forum_categories` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(150) NOT NULL,
`acess` int(11) NOT NULL DEFAULT '6',
`publish` int(11) NOT NULL DEFAULT '1',
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;
--
-- Dumping data for table `forum_categories`
--
INSERT INTO `forum_categories` (`id`, `name`, `acess`, `publish`) VALUES
(1, 'Geral', 6, 1);
-- --------------------------------------------------------
--
-- Table structure for table `forum_posts`
--
CREATE TABLE IF NOT EXISTS `forum_posts` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(150) NOT NULL,
`sf_id_ass` int(11) NOT NULL,
`user_id_ass` int(11) NOT NULL,
`text` text NOT NULL,
`position` int(11) NOT NULL,
`post_ass` int(10) DEFAULT NULL,
`publish` int(1) NOT NULL,
`date` bigint(20) NOT NULL,
`edited` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;
--
-- Dumping data for table `forum_posts`
--
INSERT INTO `forum_posts` (`id`, `name`, `sf_id_ass`, `user_id_ass`, `text`, `position`, `post_ass`, `publish`, `date`, `edited`) VALUES
(1, 'NexuS 4.0 - 1st post', 1, 1, '<p align="justify">Boas a todos os que estiverem a ler este tópico, espero que gostem da nossa surpresa de natal, e que vos possa alegrar um pouco mais a vossa vida, deixem aqui as vossas opiniões sobre este novo <strong>NexuS</strong> será muito gratificante para nós.</p>\r\n<p>O nosso muito obrigado, NexuSystem</p>', 1, 1, 0, 1311722474, 1311722474);
-- --------------------------------------------------------
--
-- Table structure for table `forum_sub_forum`
--
CREATE TABLE IF NOT EXISTS `forum_sub_forum` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(150) CHARACTER SET utf8 NOT NULL,
`cat_id_ass` int(11) NOT NULL,
`acess` int(11) NOT NULL DEFAULT '6',
`publish` int(11) NOT NULL DEFAULT '1',
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;
--
-- Dumping data for table `forum_sub_forum`
--
INSERT INTO `forum_sub_forum` (`id`, `name`, `cat_id_ass`, `acess`, `publish`) VALUES
(1, 'Site', 1, 6, 1);
-- --------------------------------------------------------
--
-- Table structure for table `g_bag`
--
CREATE TABLE IF NOT EXISTS `g_bag` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id_ass` int(11) NOT NULL,
`equip_id_ass` int(11) NOT NULL,
`equiped` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `g_char`
--
CREATE TABLE IF NOT EXISTS `g_char` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id_ass` int(11) NOT NULL,
`team_id_ass` int(11) NOT NULL DEFAULT '0',
`gepys` int(11) NOT NULL DEFAULT '0',
`name` varchar(15) NOT NULL,
`img` varchar(50) NOT NULL,
`type` int(11) NOT NULL,
`expirience` bigint(20) NOT NULL DEFAULT '50',
`atk` int(11) NOT NULL DEFAULT '1',
`def` int(11) NOT NULL DEFAULT '1',
`velocidade` int(11) NOT NULL DEFAULT '1',
`vida` int(11) NOT NULL DEFAULT '1',
`win` int(11) NOT NULL DEFAULT '0',
`lose` int(11) NOT NULL DEFAULT '0',
`last_fight` bigint(20) NOT NULL,
`last_fight_with` int(11) NOT NULL,
`register_since` bigint(20) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `g_duo_combat`
--
CREATE TABLE IF NOT EXISTS `g_duo_combat` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`activo` int(11) NOT NULL,
`chefe` int(11) NOT NULL,
`parceiro` int(11) NOT NULL,
`oponente` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `g_equips`
--
CREATE TABLE IF NOT EXISTS `g_equips` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(50) NOT NULL,
`type` int(11) NOT NULL,
`part` varchar(15) NOT NULL,
`mo` int(11) NOT NULL,
`gepys` int(11) NOT NULL,
`atk` int(11) NOT NULL,
`def` int(11) NOT NULL,
`velocidade` int(11) NOT NULL,
`vida` int(11) NOT NULL,
`critical` int(11) NOT NULL,
`img` varchar(100) NOT NULL DEFAULT './media/imagens/character/equips/',
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=186 ;
--
-- Dumping data for table `g_equips`
--
INSERT INTO `g_equips` (`id`, `name`, `type`, `part`, `mo`, `gepys`, `atk`, `def`, `velocidade`, `vida`, `critical`, `img`) VALUES
(63, 'Atlas King', 1, 'head', 700, 0, 0, 0, 0, 300, 25, './media/imagens/character/equips/'),
(62, 'Atlas Mermaid', 1, 'legs', 500, 0, 0, 0, 400, 100, 15, './media/imagens/character/equips/'),
(61, 'Atlas Magnetic Field', 1, 'right', 2100, 0, 0, 1500, 0, 50, 15, './media/imagens/character/equips/'),
(60, 'Atlas Sword', 1, 'left', 2300, 0, 2700, 50, 0, 50, 25, './media/imagens/character/equips/'),
(59, 'Volcano Head', 2, 'head', 1000, 0, 100, 100, 0, 25, 20, './media/imagens/character/equips/'),
(58, 'Volcano Legs', 2, 'legs', 1200, 0, 0, 100, 300, 50, 15, './media/imagens/character/equips/'),
(57, 'Dark Doubler', 5, 'legs', 750, 0, 0, 0, 255, 100, 20, './media/imagens/character/equips/'),
(56, 'Dark Shield', 5, 'left', 1000, 0, 0, 1000, 0, 0, 25, './media/imagens/character/equips/'),
(55, 'Volcano Arm R', 2, 'right', 1450, 0, 1900, 750, 0, 150, 20, './media/imagens/character/equips/'),
(54, 'Dark Absorv', 5, 'right', 1200, 0, 2050, 0, 0, 0, 15, './media/imagens/character/equips/'),
(53, 'Dark Eye', 5, 'head', 1500, 0, 0, 0, 0, 500, 15, './media/imagens/character/equips/'),
(52, 'Mountain Cover', 3, 'head', 750, 0, 0, 100, 50, 100, 10, './media/imagens/character/equips/'),
(51, 'Mountain River', 3, 'legs', 1000, 0, 0, 50, 250, 100, 20, './media/imagens/character/equips/'),
(50, 'Mountain Crash', 3, 'left', 1200, 0, 1300, 750, 2, 50, 25, './media/imagens/character/equips/'),
(49, 'Mountain Smasher', 3, 'right', 1400, 0, 1850, 500, 0, 50, 25, './media/imagens/character/equips/'),
(48, 'Volcano Arm L', 2, 'left', 1500, 0, 1750, 700, 0, 200, 25, './media/imagens/character/equips/'),
(47, 'Electricity Boots', 8, 'legs', 0, 55, 0, 0, 5, 3, 0, './media/imagens/character/equips/'),
(46, 'Electrical Cover', 8, 'head', 0, 60, 0, 10, 0, 5, 0, './media/imagens/character/equips/'),
(45, 'Electric Glove', 8, 'right', 0, 55, 0, 10, 2, 0, 0, './media/imagens/character/equips/'),
(44, 'Knight Mask Shield', 6, 'head', 0, 40, 0, 5, 0, 1, 0, './media/imagens/character/equips/'),
(43, 'Eletric Hand', 8, 'left', 0, 50, 10, 0, 2, 0, 0, './media/imagens/character/equips/'),
(42, 'Knight Legs', 6, 'legs', 0, 43, 0, 1, 7, 3, 0, './media/imagens/character/equips/'),
(41, 'Wood Shield', 6, 'left', 0, 51, 0, 6, 0, 2, 0, './media/imagens/character/equips/'),
(40, 'Light Saber', 6, 'right', 0, 56, 9, 2, 0, 0, 0, './media/imagens/character/equips/'),
(39, 'Iron Mask', 9, 'head', 0, 60, 2, 1, 0, 3, 0, './media/imagens/character/equips/'),
(38, 'Iron Legs', 9, 'legs', 0, 60, 0, 0, 7, 5, 0, './media/imagens/character/equips/'),
(37, 'Wind Crown', 4, 'head', 0, 40, 0, 0, 1, 5, 0, './media/imagens/character/equips/'),
(36, 'Bird Legs', 4, 'legs', 0, 50, 1, 1, 9, 1, 0, './media/imagens/character/equips/'),
(35, 'Iron Shield', 9, 'left', 0, 55, 0, 15, 0, 0, 0, './media/imagens/character/equips/'),
(34, 'Wing R', 4, 'right', 0, 57, 7, 6, 1, 0, 0, './media/imagens/character/equips/'),
(33, 'Iron Sword', 9, 'right', 0, 50, 20, 0, 0, 0, 0, './media/imagens/character/equips/'),
(32, 'Wing L', 4, 'left', 0, 56, 10, 3, 2, 1, 0, './media/imagens/character/equips/'),
(31, 'Ocult Mask', 7, 'head', 0, 60, 0, 3, 1, 5, 0, './media/imagens/character/equips/'),
(30, 'Psychic Shield', 5, 'legs', 0, 30, 0, 0, 0, 5, 0, './media/imagens/character/equips/'),
(29, 'Shadow Boots', 7, 'legs', 0, 59, 0, 2, 5, 0, 0, './media/imagens/character/equips/'),
(28, 'Black Shield', 7, 'right', 0, 45, 0, 10, 0, 0, 0, './media/imagens/character/equips/'),
(27, 'Spoon Mask', 5, 'head', 0, 75, 7, 5, 5, 0, 0, './media/imagens/character/equips/'),
(26, 'Spoon R', 5, 'right', 0, 70, 9, 5, 10, 0, 0, './media/imagens/character/equips/'),
(25, 'Spoon L', 5, 'left', 0, 70, 9, 5, 10, 0, 0, './media/imagens/character/equips/'),
(24, 'Head Rock', 3, 'head', 0, 45, 5, 3, 2, 3, 0, './media/imagens/character/equips/'),
(23, 'Black Saber', 7, 'left', 0, 50, 10, 1, 1, 0, 0, './media/imagens/character/equips/'),
(22, 'Tree Legs', 3, 'legs', 0, 60, 0, 10, 3, 10, 0, './media/imagens/character/equips/'),
(21, 'Wood Hammer L', 3, 'left', 0, 55, 15, 2, 1, 3, 0, './media/imagens/character/equips/'),
(20, 'Wood Hammer R', 3, 'right', 0, 55, 15, 2, 1, 3, 0, './media/imagens/character/equips/'),
(19, 'Water Crown', 1, 'head', 0, 50, 7, 5, 2, 5, 0, './media/imagens/character/equips/'),
(18, 'Mermaid Legs', 1, 'legs', 0, 50, 0, 2, 15, 3, 0, './media/imagens/character/equips/'),
(17, 'Water Sword', 1, 'left', 0, 60, 15, 9, 1, 0, 0, './media/imagens/character/equips/'),
(16, 'Bubble Gun', 1, 'right', 0, 25, 7, 4, 1, 0, 0, './media/imagens/character/equips/'),
(15, 'BumBum Fire Mask', 2, 'head', 0, 95, 5, 5, 3, 1, 0, './media/imagens/character/equips/'),
(14, 'Blue Fire Legs', 2, 'legs', 0, 75, 0, 5, 10, 2, 0, './media/imagens/character/equips/'),
(13, 'Burned Arm', 2, 'right', 0, 75, 20, 1, 0, 0, 0, './media/imagens/character/equips/'),
(12, 'Fire Glove', 2, 'left', 0, 25, 10, 2, 0, 0, 0, './media/imagens/character/equips/'),
(11, 'Shadow Gun', 7, 'right', 0, 25, 6, 1, 1, 0, 0, './media/imagens/character/equips/'),
(10, 'Light Gun', 6, 'left', 0, 25, 7, 0, 0, 0, 1, './media/imagens/character/equips/'),
(9, 'Psychic Cape', 5, 'head', 0, 50, 0, 10, 2, 0, 1, './media/imagens/character/equips/'),
(8, 'Necross Life Smash', 7, 'left', 1950, 50, 1700, 950, 200, 50, 20, './media/imagens/character/equips/'),
(7, 'Sagratus Lighting Legs', 6, 'legs', 2000, 0, 100, 100, 500, 250, 25, './media/imagens/character/equips/'),
(6, 'Sagratus Lighting Mask', 6, 'head', 2000, 0, 250, 1500, 100, 100, 25, './media/imagens/character/equips/'),
(5, 'Sagratus Ligtning Critical', 6, 'left', 2000, 0, 2000, 1000, 250, 100, 25, './media/imagens/character/equips/5.jpg'),
(4, 'Magestic Diamond', 5, 'left', 1500, 0, 1500, 600, 100, 250, 10, './media/imagens/character/equips/4.jpg'),
(3, 'Necross Life Sword', 7, 'right', 2000, 0, 2000, 1000, 250, 100, 25, './media/imagens/character/equips/3.jpg'),
(2, 'Sagratus Lightning Sword', 6, 'right', 2000, 0, 2000, 1000, 250, 100, 25, './media/imagens/character/equips/2.jpg'),
(1, 'Fire Gun', 2, 'left', 0, 25, 5, 0, 0, 0, 1, './media/imagens/character/equips/1.jpg'),
(64, 'Platanium Helmet', 9, 'head', 1500, 0, 0, 500, 0, 50, 20, './media/imagens/character/equips/'),
(65, 'Platanium Gun', 9, 'right', 1700, 0, 1900, 350, 5, 50, 25, './media/imagens/character/equips/'),
(66, 'Platanium Missiles', 9, 'left', 1750, 0, 1970, 350, 5, 100, 25, './media/imagens/character/equips/'),
(67, 'Platanium Runner', 9, 'legs', 1000, 0, 0, 0, 400, 0, 10, './media/imagens/character/equips/'),
(68, 'Electric Stone X', 8, 'head', 1000, 0, 0, 1000, 100, 0, 10, './media/imagens/character/equips/'),
(69, 'Electric Stone Neutron', 8, 'right', 2000, 0, 1500, 500, 0, 250, 25, './media/imagens/character/equips/'),
(70, 'Electric Stone Positron', 8, 'left', 2000, 0, 1900, 600, 0, 250, 25, './media/imagens/character/equips/'),
(71, 'Electric Stone Impulsion', 8, 'legs', 1000, 0, 0, 100, 400, 100, 10, './media/imagens/character/equips/'),
(72, 'Torbinator Cannon', 4, 'head', 700, 0, 500, 100, 200, 0, 15, './media/imagens/character/equips/'),
(73, 'Torbinator R', 4, 'right', 1700, 0, 1300, 300, 100, 100, 25, './media/imagens/character/equips/'),
(74, 'Torbinator L', 4, 'left', 1500, 0, 1500, 300, 100, 100, 25, './media/imagens/character/equips/'),
(75, 'Torbinator Fly', 4, 'legs', 1200, 0, 0, 200, 200, 100, 10, './media/imagens/character/equips/'),
(76, 'Necross Life Consumer', 7, 'head', 1700, 0, 1500, 250, 100, 100, 24, './media/imagens/character/equips/'),
(77, 'Necross Life Pulvarizor', 7, 'legs', 1200, 0, 0, 320, 425, 210, 19, './media/imagens/character/equips/'),
(83, 'Blaster Gun', 8, 'right', 0, 160, 36, 0, 7, 0, 0, './media/imagens/character/equips/'),
(82, 'Golden Helm ', 8, 'head', 0, 130, 0, 25, 0, 13, 0, './media/imagens/character/equips/'),
(81, 'Glacier Legs', 1, 'legs', 0, 170, 0, 40, 10, 70, 0, './media/imagens/character/equips/'),
(80, 'Jet Gun', 1, 'left', 0, 160, 37, 3, 5, 0, 0, './media/imagens/character/equips/'),
(79, 'Bottle Gun', 1, 'right', 0, 100, 27, 10, 11, 0, 0, './media/imagens/character/equips/'),
(78, 'Water Helm\r\n', 1, 'head', 0, 140, 0, 25, 0, 50, 0, './media/imagens/character/equips/'),
(84, 'Laser Gun', 8, 'left', 0, 110, 30, 0, 12, 0, 0, './media/imagens/character/equips/'),
(85, 'Golden Legs', 8, 'legs', 0, 170, 0, 30, 9, 50, 0, './media/imagens/character/equips/'),
(86, 'Garden Heds', 3, 'head', 0, 130, 0, 20, 0, 20, 0, './media/imagens/character/equips/'),
(87, 'Farmers Rake', 3, 'right', 0, 110, 27, 1, 10, 0, 0, './media/imagens/character/equips/'),
(88, 'Earth Wall', 3, 'left', 0, 170, 0, 35, 0, 0, 0, './media/imagens/character/equips/'),
(89, 'Rock Legs', 3, 'legs', 0, 160, 0, 5, 15, 70, 0, './media/imagens/character/equips/'),
(90, 'Black Head ', 7, 'head', 0, 135, 0, 17, 0, 21, 0, './media/imagens/character/equips/'),
(91, 'Darkness Axe ', 7, 'right', 0, 200, 34, 3, 11, 0, 0, './media/imagens/character/equips/'),
(92, 'Shadow<NAME>', 7, 'left', 0, 100, 0, 25, 0, 0, 0, './media/imagens/character/equips/'),
(93, 'Deamon Legs', 7, 'legs', 0, 135, 0, 10, 13, 36, 0, './media/imagens/character/equips/'),
(94, 'Incandescent Helm', 2, 'head', 0, 160, 0, 32, 0, 26, 0, './media/imagens/character/equips/'),
(95, 'Incandescent Solusek', 2, 'right', 0, 140, 31, 0, 3, 0, 0, './media/imagens/character/equips/'),
(96, 'Incandescent Axe', 2, 'left', 0, 140, 25, 0, 0, 0, 0, './media/imagens/character/equips/'),
(97, 'Incandescent Legs', 2, 'legs', 0, 130, 0, 8, 8, 15, 0, './media/imagens/character/equips/'),
(98, 'God Helm', 6, 'head', 0, 175, 0, 28, 0, 30, 0, './media/imagens/character/equips/'),
(99, 'Sword of Revealing Light', 6, 'right', 0, 180, 35, 1, 5, 0, 0, './media/imagens/character/equips/'),
(100, 'God Hand', 6, 'left', 0, 115, 11, 0, 9, 0, 0, './media/imagens/character/equips/'),
(101, 'Energic Walker', 6, 'legs', 0, 100, 0, 6, 17, 23, 0, './media/imagens/character/equips/'),
(102, 'Silver Helm', 9, 'head', 0, 125, 0, 30, 0, 33, 0, './media/imagens/character/equips/'),
(103, 'Silver Dual-Sword', 9, 'right', 0, 150, 27, 10, 5, 0, 0, './media/imagens/character/equips/'),
(104, 'Silver Dual-Sword\r\n', 9, 'left', 0, 150, 27, 10, 5, 0, 0, './media/imagens/character/equips/'),
(105, 'Silver Legs', 9, 'legs', 0, 110, 0, 0, 12, 13, 0, './media/imagens/character/equips/'),
(106, 'Dirty Mind', 5, 'head', 0, 120, 0, 20, 0, 12, 0, './media/imagens/character/equips/'),
(107, 'Mind Reader Stone', 5, 'right', 0, 180, 35, 10, 15, 0, 0, './media/imagens/character/equips/'),
(108, 'Mind Sheild\r\n', 5, 'left', 0, 150, 0, 25, 0, 0, 0, './media/imagens/character/equips/'),
(109, 'Invisible Legs', 5, 'legs', 0, 120, 0, 0, 12, 23, 0, './media/imagens/character/equips/'),
(110, '<NAME>', 4, 'head', 0, 122, 0, 19, 0, 30, 0, './media/imagens/character/equips/'),
(111, 'Air Pression', 4, 'right', 0, 134, 17, 22, 13, 0, 0, './media/imagens/character/equips/'),
(112, 'Air Pression\r\n', 4, 'left', 0, 134, 17, 22, 13, 0, 0, './media/imagens/character/equips/'),
(113, 'Hurricane Legs\r\n', 4, 'legs', 0, 180, 0, 0, 5, 40, 0, './media/imagens/character/equips/'),
(114, 'Ice Crown', 1, 'head', 0, 525, 20, 50, 20, 80, 0, './media/imagens/character/equips/'),
(115, 'Ice Blade', 1, 'right', 0, 602, 30, 40, 25, 60, 0, './media/imagens/character/equips/'),
(116, '<NAME>', 1, 'left', 0, 638, 50, 55, 15, 100, 1, './media/imagens/character/equips/'),
(117, 'Snow Legs', 1, 'legs', 0, 735, 50, 55, 27, 160, 2, './media/imagens/character/equips/'),
(118, 'Flame Head', 2, 'head', 0, 600, 50, 45, 35, 100, 0, './media/imagens/character/equips/'),
(119, 'Burning Sword', 2, 'right', 0, 690, 100, 30, 12, 60, 2, './media/imagens/character/equips/'),
(120, 'Flametongue', 2, 'left', 0, 675, 80, 40, 25, 120, 1, './media/imagens/character/equips/'),
(121, 'Burning Legs', 2, 'legs', 0, 535, 20, 35, 15, 70, 0, './media/imagens/character/equips/'),
(122, 'Stone Mask', 3, 'head', 0, 646, 50, 90, 15, 90, 1, './media/imagens/character/equips/'),
(123, 'Stone Mace', 3, 'right', 0, 617, 85, 40, 25, 100, 0, './media/imagens/character/equips/'),
(124, 'Shell Shield', 3, 'left', 0, 723, 30, 100, 14, 60, 2, './media/imagens/character/equips/'),
(125, 'Wooden Legs', 3, 'legs', 0, 514, 35, 20, 20, 50, 0, './media/imagens/character/equips/'),
(126, 'Air Cap', 4, 'head', 0, 619, 85, 55, 30, 95, 1, './media/imagens/character/equips/'),
(127, 'Wind Bow', 4, 'right', 0, 596, 50, 15, 10, 70, 0, './media/imagens/character/equips/'),
(128, 'Wind Arrows', 4, 'left', 0, 604, 50, 30, 20, 100, 0, './media/imagens/character/equips/'),
(129, 'Breeze Trousers', 4, 'legs', 0, 681, 65, 50, 40, 75, 2, './media/imagens/character/equips/'),
(130, 'Mind of Darkness ', 5, 'head', 0, 785, 110, 80, 35, 125, 3, './media/imagens/character/equips/'),
(131, '<NAME>', 5, 'right', 0, 623, 45, 35, 15, 55, 0, './media/imagens/character/equips/'),
(132, 'Arm of Destiny', 5, 'left', 0, 627, 45, 35, 15, 70, 0, './media/imagens/character/equips/'),
(133, 'Spirit Legs', 5, 'legs', 0, 465, 50, 50, 22, 50, 0, './media/imagens/character/equips/'),
(134, '<NAME>', 6, 'head', 0, 525, 45, 45, 10, 65, 0, './media/imagens/character/equips/'),
(135, '<NAME>', 6, 'right', 0, 535, 55, 35, 15, 65, 0, './media/imagens/character/equips/'),
(136, 'Sword of Kings', 6, 'left', 0, 756, 75, 100, 30, 150, 3, './media/imagens/character/equips/'),
(137, 'Flash Legs', 6, 'legs', 0, 684, 25, 70, 45, 70, 0, './media/imagens/character/equips/'),
(138, 'Dark Iron Head', 7, 'head', 0, 665, 60, 55, 13, 80, 0, './media/imagens/character/equips/'),
(139, 'Axe of Obscurity', 7, 'right', 0, 765, 100, 95, 15, 135, 3, './media/imagens/character/equips/'),
(140, 'Darkbind Fingers', 7, 'left', 0, 548, 50, 30, 20, 60, 0, './media/imagens/character/equips/'),
(141, 'Dark Iron Boots', 7, 'legs', 0, 522, 40, 20, 25, 75, 0, './media/imagens/character/equips/'),
(142, 'Electrostatic Crown', 8, 'head', 0, 687, 55, 50, 15, 60, 0, './media/imagens/character/equips/'),
(143, 'Electrified Spear', 8, 'right', 0, 537, 35, 25, 20, 80, 0, './media/imagens/character/equips/'),
(144, 'Electro Shock Bolt', 8, 'left', 0, 523, 30, 30, 20, 75, 0, './media/imagens/character/equips/'),
(145, 'Electrical Storm Legs', 8, 'legs', 0, 753, 80, 95, 45, 85, 3, './media/imagens/character/equips/'),
(146, 'Gold Cap', 9, 'head', 0, 638, 80, 80, 22, 130, 1, './media/imagens/character/equips/'),
(147, 'Gold Hammer', 9, 'right', 0, 622, 90, 25, 5, 20, 1, './media/imagens/character/equips/'),
(148, 'Gold Shield', 9, 'left', 0, 635, 20, 90, 15, 60, 1, './media/imagens/character/equips/'),
(149, 'Gold Boots', 9, 'legs', 0, 605, 10, 5, 43, 90, 0, './media/imagens/character/equips/'),
(150, 'Crown of Burning Waters', 1, 'head', 0, 740, 75, 150, 60, 230, 0, './media/imagens/character/equips/'),
(151, 'Icebrande', 1, 'right', 0, 1030, 150, 70, 50, 200, 1, './media/imagens/character/equips/'),
(152, 'Cascading Water Shield', 1, 'left', 0, 730, 90, 180, 60, 180, 0, './media/imagens/character/equips/'),
(153, 'Sabots of Red Waters', 1, 'legs', 0, 1500, 85, 100, 80, 190, 3, './media/imagens/character/equips/'),
(154, 'Firehank Hood', 2, 'head', 0, 740, 90, 130, 40, 175, 0, './media/imagens/character/equips/'),
(155, 'Firelit Two-Hand Sword', 2, 'right', 0, 1280, 200, 80, 60, 150, 2, './media/imagens/character/equips/'),
(156, 'Firelit Two-Hand Sword', 2, 'left', 0, 1280, 200, 80, 60, 150, 2, './media/imagens/character/equips/'),
(157, 'Fireweave Legs', 2, 'legs', 0, 700, 110, 110, 90, 125, 0, './media/imagens/character/equips/'),
(158, 'Earthfury Helmet', 3, 'head', 0, 1200, 85, 190, 70, 220, 2, './media/imagens/character/equips/'),
(159, 'Earthen Guard Shield', 3, 'right', 0, 1090, 95, 230, 25, 230, 1, './media/imagens/character/equips/'),
(160, 'Axe of Earthshaker', 3, 'left', 0, 1010, 120, 55, 25, 65, 1, './media/imagens/character/equips/'),
(161, 'Earthforged Legs', 3, 'legs', 0, 700, 100, 125, 80, 85, 0, './media/imagens/character/equips/'),
(162, 'Windchaser Coronet', 4, 'head', 0, 700, 90, 125, 65, 195, 0, './media/imagens/character/equips/'),
(163, 'Windflight Staff', 4, 'right', 0, 730, 165, 65, 20, 145, 0, './media/imagens/character/equips/'),
(164, 'Wind Spirit Staff', 4, 'left', 0, 1120, 175, 85, 85, 115, 1, './media/imagens/character/equips/'),
(165, 'Wind Dancer''s Legguards', 4, 'legs', 0, 1450, 70, 125, 130, 145, 3, './media/imagens/character/equips/'),
(166, 'Cursed Vision of Spirit''s', 5, 'head', 0, 1680, 270, 200, 85, 170, 4, './media/imagens/character/equips/'),
(167, 'Stave of the Spirtcaller', 5, 'right', 0, 800, 125, 85, 25, 65, 0, './media/imagens/character/equips/'),
(168, 'Spirit Channeller''s Rod', 5, 'left', 0, 810, 120, 100, 25, 70, 0, './media/imagens/character/equips/'),
(169, 'Legs of Glorious Spirit', 5, 'legs', 0, 710, 85, 115, 115, 95, 0, './media/imagens/character/equips/'),
(170, 'Lightsworn Helmet', 6, 'head', 0, 760, 95, 150, 50, 160, 0, './media/imagens/character/equips/'),
(171, 'Light Skyforged Greatsword', 6, 'right', 0, 1660, 150, 120, 45, 185, 4, './media/imagens/character/equips/'),
(172, 'Lightning Dagger', 6, 'left', 0, 830, 120, 135, 55, 90, 0, './media/imagens/character/equips/'),
(173, 'Legplates of Blazing Light', 6, 'legs', 0, 750, 35, 95, 150, 65, 0, './media/imagens/character/equips/'),
(174, 'Dark Phoenix Helmet', 7, 'head', 0, 790, 65, 150, 25, 85, 0, './media/imagens/character/equips/'),
(175, 'Darkstone Claymore', 7, 'right', 0, 890, 215, 135, 35, 120, 0, './media/imagens/character/equips/'),
(176, 'Blade os Eternal Darkness', 7, 'left', 0, 1600, 260, 125, 65, 230, 4, './media/imagens/character/equips/'),
(177, 'Darksoul Boots', 7, 'legs', 0, 720, 60, 90, 125, 165, 0, './media/imagens/character/equips/'),
(178, 'Thunderheart Helmet', 8, 'head', 0, 720, 60, 120, 60, 150, 0, './media/imagens/character/equips/'),
(179, 'Thunderstrike Polearm', 8, 'right', 0, 800, 145, 95, 40, 55, 0, './media/imagens/character/equips/'),
(180, 'Thunderstorm Blade', 8, 'left', 0, 830, 175, 90, 40, 65, 0, './media/imagens/character/equips/'),
(181, 'Boots of the five Thunders', 8, 'legs', 0, 1650, 120, 195, 160, 130, 4, './media/imagens/character/equips/'),
(182, 'Diamond Helmet', 9, 'head', 0, 1030, 70, 135, 60, 230, 1, './media/imagens/character/equips/'),
(183, 'Diamond Greatsword', 9, 'right', 0, 1005, 185, 95, 25, 105, 1, './media/imagens/character/equips/'),
(184, 'Diamond Shield', 9, 'left', 0, 1005, 160, 155, 25, 115, 1, './media/imagens/character/equips/'),
(185, 'Diamond Boots', 9, 'legs', 0, 960, 85, 115, 140, 150, 1, './media/imagens/character/equips/');
-- --------------------------------------------------------
--
-- Table structure for table `g_history`
--
CREATE TABLE IF NOT EXISTS `g_history` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id_ass` int(11) NOT NULL,
`frase` text NOT NULL,
`history` text NOT NULL,
`type` varchar(1) NOT NULL,
`time` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `g_monsters`
--
CREATE TABLE IF NOT EXISTS `g_monsters` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(100) NOT NULL,
`type` int(11) NOT NULL,
`exp_min` int(11) NOT NULL DEFAULT '0',
`exp_max` int(11) NOT NULL DEFAULT '0',
`atk` int(11) NOT NULL DEFAULT '1',
`def` int(11) NOT NULL DEFAULT '1',
`velocidade` int(11) NOT NULL DEFAULT '1',
`vida` int(11) NOT NULL DEFAULT '1',
`critical` int(11) NOT NULL DEFAULT '1',
`expirience` int(11) DEFAULT NULL,
`img` varchar(250) DEFAULT NULL,
`gepys` int(11) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=69 ;
--
-- Dumping data for table `g_monsters`
--
INSERT INTO `g_monsters` (`id`, `name`, `type`, `exp_min`, `exp_max`, `atk`, `def`, `velocidade`, `vida`, `critical`, `expirience`, `img`, `gepys`) VALUES
(1, '<NAME>', 2, 0, 0, 1, 1, 1, 1, 1, 100, './media/imagens/character/alixy.jpg', 20),
(2, 'Anifire', 2, 0, 0, 1, 1, 2, 1, 1, 50, './media/imagens/character/anifire.jpg', 10),
(3, 'Snipver', 2, 70, 0, 2, 1, 1, 1, 0, 75, './media/imagens/character/snipver.jpg', 20),
(4, 'Tentic', 6, 0, 0, 1, 2, 2, 1, 0, 125, './media/imagens/character/tentic.jpg', 10),
(5, '<NAME>', 6, 4500, 0, 17, 15, 15, 16, 0, 1200, './media/imagens/character/alienbitef.jpg', 100),
(6, '<NAME>', 7, 4200, 0, 20, 16, 10, 16, 3, 1500, './media/imagens/character/alienbiteg.jpg', 200),
(7, 'Alix-X', 3, 2000, 0, 19, 8, 6, 10, 1, 650, './media/imagens/character/alixx.jpg', 100),
(8, 'Anark', 3, 4000, 0, 50, 25, 50, 27, 6, 1700, './media/imagens/character/anark.jpg', 300),
(9, 'Atlon', 6, 2500, 0, 40, 20, 10, 27, 10, 900, './media/imagens/character/atlon.jpg', 190),
(10, 'Bluebloom', 1, 3600, 0, 50, 25, 25, 35, 0, 1700, './media/imagens/character/bluebloom.jpg', 300),
(11, 'Cátia', 6, 4600, 0, 75, 47, 5, 40, 5, 1900, './media/imagens/character/catia.jpg', 250),
(12, 'Cerberk', 2, 5000, 0, 75, 50, 50, 30, 15, 2000, './media/imagens/character/cerberk.jpg', 400),
(13, '<NAME>', 6, 2700, 0, 50, 31, 31, 31, 5, 213, './media/imagens/character/chamaalada.jpg', 200),
(14, '<NAME>', 2, 0, 0, 1, 1, 1, 1, 0, 50, './media/imagens/character/cometaemchamas.jpg', 50),
(15, 'Draker', 2, 20000, 0, 800, 550, 250, 400, 25, 12000, './media/imagens/character/draker.jpg', 5000),
(16, 'Drakerio', 7, 6000, 0, 100, 75, 50, 70, 15, 3000, './media/imagens/character/drakerio.jpg', 500),
(17, 'Drakeriosk', 7, 2700, 0, 50, 29, 60, 35, 12, 1300, './media/imagens/character/drakeriosk.jpg', 300),
(18, 'Drakerium', 7, 100, 0, 5, 2, 10, 7, 1, 90, './media/imagens/character/drakerium.jpg', 75),
(19, 'Drakero', 4, 10000, 0, 250, 175, 300, 123, 11, 4950, './media/imagens/character/drakero.jpg', 2700),
(20, 'Duentic', 6, 1700, 0, 17, 10, 11, 9, 0, 649, './media/imagens/character/duentic.jpg', 133),
(21, 'Duo-Volt', 8, 3500, 0, 42, 30, 5, 20, 3, 1100, './media/imagens/character/duovolt.jpg', 133),
(22, 'D-Win', 4, 4100, 0, 70, 20, 60, 40, 5, 1853, './media/imagens/character/dwin.jpg', 223),
(23, '<NAME>', 9, 1000, 0, 20, 12, 6, 8, 10, 1000, './media/imagens/character/escaravelhoescorpiao.jpg', 200),
(24, 'Filmi', 9, 300, 0, 6, 6, 2, 5, 0, 500, './media/imagens/character/filmi.jpg', 100),
(25, '<NAME>', 6, 11500, 0, 300, 250, 75, 200, 20, 2500, './media/imagens/character/flamejantealado.jpg', 2000),
(26, 'Freevo', 5, 500, 0, 15, 9, 5, 10, 2, 750, './media/imagens/character/freevo.jpg', 253),
(27, '<NAME>', 6, 2200, 0, 30, 15, 20, 35, 5, 1674, './media/imagens/character/gatostar.jpg', 368),
(28, '<NAME>', 6, 3000, 0, 42, 42, 25, 30, 35, 1208, './media/imagens/character/gerreirastar.jpg', 500),
(29, 'ßθζζ J-Dragon', 7, 6000, 0, 400, 375, 125, 195, 39, 5000, './media/imagens/character/jdragon.jpg', 0),
(30, 'Laiwin', 4, 3900, 0, 135, 40, 18, 30, 7, 750, './media/imagens/character/laiwin.jpg', 375),
(31, 'ßθζζ Lamim', 1, 4000, 0, 80, 60, 40, 20, 40, 2000, './media/imagens/character/lammim.jpg', 0),
(32, 'Lampion', 2, 2400, 0, 16, 16, 16, 12, 0, 300, './media/imagens/character/lampion.jpg', 200),
(33, 'Limeforesto', 3, 425, 0, 20, 30, 10, 35, 2, 350, './media/imagens/character/limeforesto.jpg', 270),
(34, 'Loberk', 2, 370, 0, 28, 20, 30, 25, 10, 290, './media/imagens/character/loberk.jpg', 170),
(35, 'Lopes', 7, 3500, 0, 80, 60, 75, 90, 20, 2500, './media/imagens/character/lopes.jpg', 600),
(36, 'ßθζζ Mestre das Artes Negras', 2, 3750, 0, 350, 300, 100, 150, 30, 3500, './media/imagens/character/mestredasartesnegras.jpg', 0),
(37, 'Milmi', 9, 60, 0, 3, 3, 1, 4, 0, 60, './media/imagens/character/milmi.jpg', 60),
(38, 'Mini Chama Alada', 6, 360, 0, 25, 20, 17, 20, 5, 156, './media/imagens/character/minicahmaalada.jpg', 170),
(39, '<NAME>', 8, 60, 0, 8, 5, 10, 10, 1, 90, './media/imagens/character/minivoltorb.jpg', 85),
(40, 'Mistverde', 3, 800, 0, 25, 15, 25, 15, 1, 670, './media/imagens/character/mistverde.jpg', 280),
(41, 'Monche', 8, 800, 0, 25, 25, 40, 20, 3, 780, './media/imagens/character/monche.jpg', 300),
(42, 'Muffle 1', 8, 65, 0, 5, 2, 2, 3, 0, 75, './media/imagens/character/muffle.jpg', 75),
(43, 'Muffle 2', 8, 400, 0, 20, 15, 12, 17, 3, 185, './media/imagens/character/muffle2.jpg', 180),
(44, 'Muffle 3', 8, 1000, 0, 50, 27, 30, 38, 9, 850, './media/imagens/character/muffle3.jpg', 350),
(45, 'Niitaa', 6, 1000, 0, 45, 45, 30, 50, 10, 880, './media/imagens/character/nitaa.jpg', 390),
(46, 'Perciebes', 4, 0, 0, 3, 1, 5, 2, 1, 55, './media/imagens/character/perciebes.jpg', 60),
(47, 'Perciebes #2', 7, 190, 0, 15, 10, 18, 10, 8, 130, './media/imagens/character/perciebes2.jpg', 180),
(48, 'Pilpup', 4, 70, 0, 5, 2, 2, 5, 0, 75, './media/imagens/character/pilpup.jpg', 75),
(51, 'Psyseed', 5, 100, 0, 10, 3, 5, 2, 1, 90, './media/imagens/character/psyseed.jpg', 90),
(49, '<NAME>', 6, 150, 0, 7, 7, 7, 7, 7, 100, './media/imagens/character/primeiraestrela.jpg', 100),
(52, 'Psymor', 5, 430, 0, 20, 15, 18, 10, 2, 480, './media/imagens/character/psymor.jpg', 200),
(53, 'Psytron', 5, 1700, 0, 65, 30, 35, 20, 10, 1500, './media/imagens/character/psytron.jpg', 430),
(54, '<NAME>', 6, 2000, 0, 55, 60, 60, 55, 15, 2180, './media/imagens/character/rapazstar.jpg', 500),
(55, '<NAME>', 9, 300, 0, 10, 50, 1, 30, 5, 190, './media/imagens/character/rochadenivel.jpg', 260),
(56, 'Serpfire', 2, 10000, 0, 120, 75, 60, 70, 20, 2800, './media/imagens/character/serpfire.jpg', 690),
(57, 'Silencer', 7, 18000, 0, 150, 60, 60, 50, 30, 2930, './media/imagens/character/silencer.jpg', 700),
(58, 'Spidazul', 1, 360, 0, 25, 15, 15, 20, 0, 195, './media/imagens/character/spidazul.jpg', 165),
(59, 'S-Win', 1, 3100, 0, 50, 20, 30, 25, 5, 1150, './media/imagens/character/swin.jpg', 550),
(60, 'Tolmi', 9, 3200, 0, 55, 60, 45, 60, 5, 1250, './media/imagens/character/tolmi.jpg', 580),
(61, 'Totem de Electricidade', 7, 1500, 0, 50, 40, 60, 40, 2, 900, './media/imagens/character/totemdeelectricidade.jpg', 400),
(62, 'Totem de Fogo', 7, 1500, 0, 60, 40, 40, 50, 2, 900, './media/imagens/character/totemdefogo.jpg', 400),
(63, 'Totem de Vento', 7, 1500, 0, 50, 60, 50, 40, 2, 900, './media/imagens/character/totemdevento.jpg', 400),
(64, 'Trifade', 3, 13000, 0, 115, 100, 150, 75, 15, 2850, './media/imagens/character/trifade.jpg', 700),
(65, '<NAME>', 7, 1750, 0, 65, 30, 50, 25, 15, 1950, './media/imagens/character/ovampirodeayamonte.jpg', 480),
(66, 'Volt', 8, 780, 0, 40, 20, 50, 45, 3, 650, './media/imagens/character/volt.jpg', 280),
(67, 'Garius', 1, 35000, 0, 600, 400, 350, 850, 25, 20000, './media/imagens/character/garius.jpg', 6000),
(68, 'Serkin', 3, 50000, 0, 900, 500, 400, 1250, 25, 25000, './media/imagens/character/serkin.jpg', 5000);
-- --------------------------------------------------------
--
-- Table structure for table `g_team`
--
CREATE TABLE IF NOT EXISTS `g_team` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
`tag` varchar(3) COLLATE utf8_unicode_ci NOT NULL,
`logo` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'team-logo-001',
`user_id_ass` int(11) NOT NULL,
`owner_id_ass` int(11) NOT NULL,
`member_combat` text COLLATE utf8_unicode_ci NOT NULL,
`description` text COLLATE utf8_unicode_ci NOT NULL,
`expirience` int(11) NOT NULL DEFAULT '0',
`win` int(11) NOT NULL DEFAULT '0',
`lose` int(11) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `g_team_history`
--
CREATE TABLE IF NOT EXISTS `g_team_history` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`team_id_ass` int(11) NOT NULL,
`frase` text COLLATE utf8_unicode_ci NOT NULL,
`history` text COLLATE utf8_unicode_ci NOT NULL,
`type` varchar(1) COLLATE utf8_unicode_ci NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `g_team_invites`
--
CREATE TABLE IF NOT EXISTS `g_team_invites` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id_ass` int(11) NOT NULL,
`team_id_ass` int(11) NOT NULL,
`publish` tinyint(1) NOT NULL DEFAULT '1',
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `private_messages`
--
CREATE TABLE IF NOT EXISTS `private_messages` (
`id` int(10) NOT NULL AUTO_INCREMENT,
`subject` varchar(150) NOT NULL,
`text` text NOT NULL,
`date` date NOT NULL,
`state` int(11) NOT NULL DEFAULT '1',
`sender` int(10) DEFAULT NULL,
`sender_id` int(10) DEFAULT NULL,
`recep` int(10) DEFAULT NULL,
`recep_id` int(10) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `site_team_promotion`
--
CREATE TABLE IF NOT EXISTS `site_team_promotion` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`value_01` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`value_02` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`value_3` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `status`
--
CREATE TABLE IF NOT EXISTS `status` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id_ass` int(11) NOT NULL,
`profile_id` int(11) NOT NULL,
`text` varchar(100) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `users`
--
CREATE TABLE IF NOT EXISTS `users` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`email` varchar(50) NOT NULL,
`password` varchar(50) NOT NULL,
`type` int(11) NOT NULL,
`username` varchar(25) NOT NULL,
`avatar` varchar(500) NOT NULL,
`coin` int(11) NOT NULL,
`dia` int(11) NOT NULL,
`mes` int(11) NOT NULL,
`ano` int(11) NOT NULL,
`sobremim` text NOT NULL,
`template` int(11) NOT NULL,
`date` date NOT NULL,
`active` int(1) NOT NULL,
`admin_comment` text NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `email` (`email`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;
--
-- Dumping data for table `users`
--
INSERT INTO `users` (`id`, `email`, `password`, `type`, `username`, `avatar`, `coin`, `dia`, `mes`, `ano`, `sobremim`, `template`, `date`, `active`, `admin_comment`) VALUES
(1, '<EMAIL>', '<PASSWORD>', 1, 'administrator', 'http://static.cbl.statdrive.net/avatars/developer_avatar.png', 355, 28, 10, 1991, '<div style="text-align: center;"><font class="Apple-style-span" size="4">~ E-MAIL ~</font></div><div style="text-align: center;"><font class="Apple-style-span" size="6"><b><EMAIL></b></font></div>', 1, '2011-01-05', 1, '');
/*!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>5.2.3/Database/Constraints/AFW_13_PAGE_IR_PK.sql<gh_stars>1-10
SET DEFINE OFF;
ALTER TABLE AFW_13_PAGE_IR ADD (
CONSTRAINT AFW_13_PAGE_IR_PK
PRIMARY KEY
(SEQNC)
ENABLE VALIDATE)
/
|
<filename>migrations/V2017_02_20_06_41_47__mention-fields.sql
-- -*- sql-dialect: postgres; -*-
drop table clippingsbot.mentions;
create table clippingsbot.mentions (
pattern_id bigint not null references clippingsbot.patterns (pattern_id),
feed text not null,
title text not null,
comments_url text not null,
link_url text not null,
created timestamp with time zone not null default current_timestamp,
primary key (pattern_id, feed, link_url)
);
drop table clippingsbot.notifications;
create table clippingsbot.notifications (
team_id text not null references clippingsbot.teams (team_id),
pattern_id bigint not null references clippingsbot.patterns (pattern_id),
feed text not null,
link_url text not null,
created timestamp with time zone not null default current_timestamp,
primary key (team_id, pattern_id, feed, link_url)
);
|
<gh_stars>1-10
----alter length-----
ALTER TABLE eglc_advocate_master ALTER COLUMN specilization TYPE character varying(100);
ALTER TABLE eglc_advocate_master_aud ALTER COLUMN specilization TYPE character varying(100);
|
<reponame>CoralReefCI/coralreefci
-- MySQL dump 10.16 Distrib 10.1.26-MariaDB, for debian-linux-gnu (x86_64)
--
-- Host: 127.0.0.1 Database: heupr
-- ------------------------------------------------------
-- Server version 5.5.8
/*!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 */;
/*!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 `github_event_assignees`
--
DROP TABLE IF EXISTS `github_event_assignees`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `github_event_assignees` (
`id` bigint(11) NOT NULL AUTO_INCREMENT,
`repo_id` int(11) DEFAULT NULL,
`issues_id` int(11) DEFAULT NULL,
`number` int(11) DEFAULT NULL,
`is_closed` tinyint(1) DEFAULT NULL,
`is_pull` tinyint(1) DEFAULT NULL,
PRIMARY KEY (`id`)
) AUTO_INCREMENT=37372;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `github_event_assignees_lk`
--
DROP TABLE IF EXISTS `github_event_assignees_lk`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `github_event_assignees_lk` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`github_event_assignees_fk` bigint(20) DEFAULT NULL,
`assignee` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL,
PRIMARY KEY (`id`)
) AUTO_INCREMENT=37757;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `github_events`
--
DROP TABLE IF EXISTS `github_events`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `github_events` (
`id` bigint(11) NOT NULL AUTO_INCREMENT,
`repo_id` int(11) DEFAULT NULL,
`issues_id` int(11) DEFAULT NULL,
`number` int(11) DEFAULT NULL,
`action` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL,
`is_closed` tinyint(1) DEFAULT NULL,
`closed_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`is_pull` tinyint(1) DEFAULT NULL,
`payload` JSON COLLATE utf8_bin NOT NULL,
PRIMARY KEY (`id`)
) AUTO_INCREMENT=46424;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `integrations`
--
DROP TABLE IF EXISTS `integrations`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `integrations` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`repo_id` int(11) DEFAULT NULL,
`app_id` int(11) DEFAULT NULL,
`installation_id` int(11) DEFAULT NULL,
PRIMARY KEY (`id`)
) AUTO_INCREMENT=360;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `integrations_settings`
--
DROP TABLE IF EXISTS `integrations_settings`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `integrations_settings` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`repo_id` int(11) DEFAULT NULL,
`start_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`email` varchar(25) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL,
`twitter` varchar(25) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL,
`enable_triager` tinyint(1) NOT NULL,
`enable_labeler` tinyint(1) NOT NULL,
PRIMARY KEY (`id`)
) AUTO_INCREMENT=251;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `integrations_settings_ignorelabels_lk`
--
DROP TABLE IF EXISTS `integrations_settings_ignorelabels_lk`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `integrations_settings_ignorelabels_lk` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`integrations_settings_fk` bigint(20) DEFAULT NULL,
`label` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL,
PRIMARY KEY (`id`)
) AUTO_INCREMENT=19;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `integrations_settings_ignoreusers_lk`
--
DROP TABLE IF EXISTS `integrations_settings_ignoreusers_lk`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `integrations_settings_ignoreusers_lk` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`integrations_settings_fk` bigint(20) DEFAULT NULL,
`user` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL,
PRIMARY KEY (`id`)
) AUTO_INCREMENT=11;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `integrations_settings_labels_bif_lk`
--
DROP TABLE IF EXISTS `integrations_settings_labels_bif_lk`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `integrations_settings_labels_bif_lk` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`integrations_settings_fk` bigint(20) DEFAULT NULL,
`repo_id` int(11) DEFAULT NULL,
`bug` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL,
`feature` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL,
`improvement` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL,
PRIMARY KEY (`id`)
) AUTO_INCREMENT=22;
/*!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 2018-11-11 20:09:52
|
<reponame>lzpeng723/minimal-cloud<filename>sql/minimal-cloud.sql
create DATABASE `minimal-system` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
create DATABASE `minimal-tool` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
create DATABASE `minimal-sample-jpa` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
create DATABASE `minimal-demo` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci; |
UPDATE creature_template SET npcflag=npcflag|1, ScriptName='npc_cairne_bloodhoof' WHERE entry=3057;
UPDATE `gameobject_template` SET `ScriptName`='go_barov_journal' WHERE `entry`=180794; |
USE YelpDB
GO
DELETE Tips
DELETE Checkins
DELETE UserFriends
DELETE Users
DELETE BusinessAttributes -- insert not implemented
DELETE Attributes -- insert not implemented
DELETE BusinessCategories
DELETE Categories
DELETE Businesses
DECLARE @YelpUsers TABLE (json_data varchar(max));
DECLARE @YelpBusinesses TABLE (json_data varchar(max));
DECLARE @YelpTips TABLE (json_data varchar(max));
DECLARE @YelpCheckins TABLE (json_data varchar(max));
INSERT INTO @YelpUsers
SELECT json_data
FROM OPENROWSET(BULK 'C:\Users\dmfab\Documents\Visual Studio Projects\WSU\WSU-CS451\YelpJSON-BulkCopy\yelp_user.JSON',
FORMATFILE = 'C:\Users\dmfab\Documents\Visual Studio Projects\WSU\WSU-CS451\YelpJSON-BulkCopy\yelp_format.xml') U;
INSERT INTO @YelpBusinesses
SELECT json_data
FROM OPENROWSET(BULK 'C:\Users\dmfab\Documents\Visual Studio Projects\WSU\WSU-CS451\YelpJSON-BulkCopy\yelp_business.JSON',
FORMATFILE = 'C:\Users\dmfab\Documents\Visual Studio Projects\WSU\WSU-CS451\YelpJSON-BulkCopy\yelp_format.xml') B;
INSERT INTO @YelpTips
SELECT json_data
FROM OPENROWSET(BULK 'C:\Users\dmfab\Documents\Visual Studio Projects\WSU\WSU-CS451\YelpJSON-BulkCopy\yelp_tip.JSON',
FORMATFILE = 'C:\Users\dmfab\Documents\Visual Studio Projects\WSU\WSU-CS451\YelpJSON-BulkCopy\yelp_format.xml') T;
INSERT INTO @YelpCheckins
SELECT json_data
FROM OPENROWSET(BULK 'C:\Users\dmfab\Documents\Visual Studio Projects\WSU\WSU-CS451\YelpJSON-BulkCopy\yelp_checkin.JSON',
FORMATFILE = 'C:\Users\dmfab\Documents\Visual Studio Projects\WSU\WSU-CS451\YelpJSON-BulkCopy\yelp_format.xml') C;
INSERT INTO Users (UserID, Name, YelpingSince, AverageStars, Fans, Cool, Funny, Useful, TipCount)
SELECT JsonUsers.*
FROM @YelpUsers U
CROSS APPLY
OPENJSON (U.json_data) WITH (
[user_id] varchar(50),
[name] varchar(max),
[yelping_since] datetime,
[average_stars] float,
[fans] int,
[cool] int,
[funny] int,
[useful] int,
[tipcount] int
) AS JsonUsers;
INSERT INTO UserFriends(UserID, FriendID)
SELECT JsonUsers.user_id, JsonFriends.value
FROM @YelpUsers U
CROSS APPLY
OPENJSON (U.json_data) WITH (
[user_id] varchar(50),
[friends] nvarchar(max) AS JSON
) AS JsonUsers
CROSS APPLY
OPENJSON (JsonUsers.friends) AS JsonFriends;
INSERT INTO Businesses (BusinessID, Name, Address, City, State, PostalCode, Latitude, Longitude, Stars, ReviewCount, IsOpen)
SELECT JsonBusinesses.*
FROM @YelpBusinesses B
CROSS APPLY
OPENJSON (B.json_data) WITH (
[business_id] varchar(50),
[name] varchar(max),
[address] varchar(max),
[city] varchar(max),
[state] varchar(max),
[postal_code] varchar(max),
[latitude] float,
[longitude] float,
[stars] float,
[review_count] int,
[is_open] int
) AS JsonBusinesses;
INSERT INTO Categories (Name)
SELECT DISTINCT Category=LTRIM(RTRIM(CategoryList.value))
FROM @YelpBusinesses B
CROSS APPLY
OPENJSON (B.json_data) WITH (
[categories] varchar(max)
) AS JsonCategories
CROSS APPLY
STRING_SPLIT(JsonCategories.categories, ',') CategoryList;
INSERT INTO BusinessCategories (BusinessID, CategoryID)
SELECT JsonBusinessCategories.business_id, C.CategoryID
FROM @YelpBusinesses B
CROSS APPLY
OPENJSON (B.json_data) WITH (
[business_id] varchar(50),
[categories] varchar(max)
) AS JsonBusinessCategories
CROSS APPLY
STRING_SPLIT(JsonBusinessCategories.categories, ',') CategoryList
INNER JOIN Categories C ON C.Name=LTRIM(RTRIM(CategoryList.value));
INSERT INTO Checkins(BusinessID, CheckinDate)
SELECT JsonCheckins.business_id, CheckinDates.value
FROM @YelpCheckins C
CROSS APPLY
OPENJSON (C.json_data) WITH (
[business_id] varchar(50),
[date] varchar(max)
) AS JsonCheckins
CROSS APPLY
STRING_SPLIT(JsonCheckins.[date], ',') CheckinDates;
INSERT INTO Tips (BusinessID, UserID, TipDate, Likes, [Text])
SELECT JsonTips.*
FROM @YelpTips T
CROSS APPLY
OPENJSON (T.json_data) WITH (
[business_id] varchar(50),
[user_id] varchar(50),
[date] datetime,
[likes] int,
[text] varchar(max)
) AS JsonTips;
|
<gh_stars>0
ALTER TABLE resource
ADD CONSTRAINT fk_parentid_resourceid FOREIGN KEY (parent_id) REFERENCES resource(id); |
CREATE TABLE [dbo].[Season] (
[SeasonId] UNIQUEIDENTIFIER NOT NULL,
[SeasonDescription] VARCHAR (50) NOT NULL,
[IbaProgramId] UNIQUEIDENTIFIER NOT NULL,
[StartWeek] DATETIME NULL,
[EndWeek] DATETIME NULL,
CONSTRAINT [PK_Season] PRIMARY KEY CLUSTERED ([SeasonId] ASC),
CONSTRAINT [FK_Season__IbaProgram] FOREIGN KEY ([IbaProgramId]) REFERENCES [dbo].[IbaProgram] ([IbaProgramId])
);
|
BEGIN TRANSACTION;
DROP TABLE T9;
COMMIT;
|
-- ADD COLUMN COMMIT_ID IN APPLY_HISTORY TABLE
ALTER TABLE "APPLY_HISTORY" ADD "COMMIT_UUID" VARCHAR2(255);
|
<gh_stars>10-100
ALTER TABLE ${ohdsiSchema}.cohort_definition_details
DROP CONSTRAINT FK_cohort_definition_details_cohort_definition
;
ALTER TABLE ${ohdsiSchema}.cohort_definition_details
ADD CONSTRAINT FK_cohort_definition_details_cohort_definition
FOREIGN KEY (id)
REFERENCES ${ohdsiSchema}.cohort_definition (id)
ON DELETE CASCADE
;
CREATE TABLE ${ohdsiSchema}.cohort_generation_info(
id int NOT NULL,
start_time Timestamp(3) NOT NULL,
execution_duration int NULL,
status int NOT NULL,
is_valid Boolean NOT NULL,
CONSTRAINT PK_cohort_generation_info PRIMARY KEY (id),
CONSTRAINT FK_cohort_generation_info_cohort_definition FOREIGN KEY(id)
REFERENCES ${ohdsiSchema}.cohort_definition (id)
ON UPDATE CASCADE
ON DELETE CASCADE
);
|
<reponame>lmwnshn/postgres
--
-- Tests for procedures / CALL syntax
--
CREATE PROCEDURE test_proc1()
LANGUAGE plpythonu
AS $$
pass
$$;
CALL test_proc1();
-- error: can't return non-None
CREATE PROCEDURE test_proc2()
LANGUAGE plpythonu
AS $$
return 5
$$;
CALL test_proc2();
CREATE TABLE test1 (a int);
CREATE PROCEDURE test_proc3(x int)
LANGUAGE plpythonu
AS $$
plpy.execute("INSERT INTO test1 VALUES (%s)" % x)
$$;
CALL test_proc3(55);
SELECT * FROM test1;
-- output arguments
CREATE PROCEDURE test_proc5(INOUT a text)
LANGUAGE plpythonu
AS $$
return [a + '+' + a]
$$;
CALL test_proc5('abc');
CREATE PROCEDURE test_proc6(a int, INOUT b int, INOUT c int)
LANGUAGE plpythonu
AS $$
return (b * a, c * a)
$$;
CALL test_proc6(2, 3, 4);
DROP PROCEDURE test_proc1;
DROP PROCEDURE test_proc2;
DROP PROCEDURE test_proc3;
DROP TABLE test1;
|
DROP INDEX app_public.parent_dir_idx;
DROP INDEX app_public.page_content_strings_idx;
DROP INDEX app_public.page_page_cs_idx;
DROP INDEX app_public.page_cs_cs_idx;
DROP INDEX app_public.page_page_assets_idx;
DROP INDEX app_public.page_assets_assets_idx;
DROP INDEX app_public.page_gallery_idx;
DROP INDEX app_public.gallery_gallery_assets_idx;
DROP INDEX app_public.gallery_assets_assets_idx;
DROP INDEX app_public.page_page_gallery_idx;
DROP INDEX app_public.page_gallery_gallery_idx;
DROP INDEX app_public.dirs_assets_idx;
DROP INDEX app_public.users_user_roles_idx;
DROP INDEX app_public.user_roles_roles_idx;
SELECT
tablename,
indexname,
indexdef
FROM
pg_indexes
WHERE
schemaname = 'app_public'
ORDER BY
tablename,
indexname; |
<gh_stars>0
-- phpMyAdmin SQL Dump
-- version 4.8.2
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Waktu pembuatan: 27 Sep 2019 pada 08.58
-- Versi server: 10.1.34-MariaDB
-- Versi 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 */;
--
-- Database: `erp_smesco`
--
-- --------------------------------------------------------
--
-- Struktur dari tabel `user`
--
CREATE TABLE `user` (
`id` int(11) NOT NULL,
`nama` varchar(25) NOT NULL,
`alamat` text NOT NULL,
`no_telepon` varchar(12) NOT NULL,
`user_level_id` int(11) NOT NULL,
`username` varchar(25) NOT NULL,
`email` varchar(25) NOT NULL,
`password` varchar(50) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data untuk tabel `user`
--
INSERT INTO `user` (`id`, `nama`, `alamat`, `no_telepon`, `user_level_id`, `username`, `email`, `password`) VALUES
(1, 'super admin', '<PASSWORD>', '<PASSWORD>', 1, 'sadmin', '<EMAIL>', '<PASSWORD>'),
(2, 'admin_marketing', 'bandung', '08080808', 2, 'admin_marketing', '<EMAIL>', '<PASSWORD>'),
(3, 'admin_bisnis', 'bandung', '08080808', 3, 'admin_bisnis', '<EMAIL>', '<PASSWORD>'),
(4, 'Admin_keuangan', 'bandung', '08080808', 4, 'admin_keuangan', '<EMAIL>', 'a4151d4b2856ec6336<PASSWORD>'),
(5, 'User Marketing', 'Bandung', '08080808', 5, 'user_marketing', '<EMAIL>', '<PASSWORD>'),
(6, 'User Bisnis', 'Bandung', '08080808', 6, 'user_bisnis', '<EMAIL>', '<PASSWORD>'),
(7, 'User Keuangan', 'Bandung', '08080808', 7, 'user_keuangan', '<EMAIL>', 'a4151d4b2856ec63368a7c784b1f0a6e');
-- --------------------------------------------------------
--
-- Struktur dari tabel `user_level`
--
CREATE TABLE `user_level` (
`id` int(11) NOT NULL,
`user_level` varchar(25) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data untuk tabel `user_level`
--
INSERT INTO `user_level` (`id`, `user_level`) VALUES
(1, 'super admin'),
(2, 'admin_marketing'),
(3, 'admin_bisnis'),
(4, 'admin_keuangan'),
(5, 'user_marketing'),
(6, 'user_bisnis'),
(7, 'user_keuangan');
--
-- Indexes for dumped tables
--
--
-- Indeks untuk tabel `user`
--
ALTER TABLE `user`
ADD PRIMARY KEY (`id`),
ADD KEY `user_level_id` (`user_level_id`);
--
-- Indeks untuk tabel `user_level`
--
ALTER TABLE `user_level`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT untuk tabel yang dibuang
--
--
-- AUTO_INCREMENT untuk tabel `user`
--
ALTER TABLE `user`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;
--
-- AUTO_INCREMENT untuk tabel `user_level`
--
ALTER TABLE `user_level`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;
--
-- Ketidakleluasaan untuk tabel pelimpahan (Dumped Tables)
--
--
-- Ketidakleluasaan untuk tabel `user`
--
ALTER TABLE `user`
ADD CONSTRAINT `user_ibfk_1` FOREIGN KEY (`user_level_id`) REFERENCES `user_level` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;
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>djpagan/sql/detail_student.sql
--
-- PROGRAM_ENROLLMENT
--
SELECT
id_rec.id, trim(firstname) as firstname, trim(lastname) as lastname,
prog, subprog, major1, major2, major3, nurs_prog, cl, cohort_yr,
cohort_ctgry, acst, plan_grad_yr, plan_grad_sess, deg, tle
FROM
id_rec, prog_enr_rec
WHERE
id_rec.id = prog_enr_rec.id
AND
id_rec.id =
--
-- SUBSIDIARY_BALANCES
--
SELECT
id, subs, bal_act, def_pmt_terms, stat, ent_no, cr_rating, descr,
dunning_letter, interest_wvd, written_off, collect_agc,
ccresrc as payment_group
FROM
suba_rec
WHERE
id =
--
-- ACCOUNT_NOTES
--
SELECT
suba_rec.subs, suba_rec.id, suba_blob.comm
FROM
suba_blob, suba_rec
WHERE
suba_blob.bsuba_no = suba_rec.bsuba_no
AND
suba_blob.comm is not null
AND
suba_rec.id =
--
-- ORDERED_TERMS_TEMP
--
SELECT
rank() over (order by end_date) as latest,
prog, yr, sess, subsess, acyr, beg_date, end_date
FROM
acad_cal_rec
WHERE
beg_date > '2010-01-01'
AND
end_date < CURRENT
AND
subsess = ""
ORDER BY
end_date DESC
INTO TEMP
ordered_terms
--
-- SESSION_DETAILS
--
SELECT
stu_acad_rec.id, stu_acad_rec.sess, stu_acad_rec.yr, stu_acad_rec.prog,
stu_acad_rec.subprog,
ordered_terms.latest,
stu_acad_rec.cl, stu_acad_rec.reg_stat, stu_acad_rec.reg_hrs,
stu_acad_rec.acst, stu_acad_rec.fin_clr,
stu_serv_rec.rsv_stat, stu_serv_rec.offcampus_res_appr,
stu_serv_rec.intend_hsg, stu_serv_rec.bldg, stu_serv_rec.room,
stu_serv_rec.suite, stu_serv_rec.bill_code, stu_serv_rec.spec_flag,
stu_serv_rec.hlth_ins_wvd, stu_serv_rec.meal_plan_type,
stu_serv_rec.meal_plan_wvd, stu_serv_rec.res_asst, stu_serv_rec.stat,
stu_serv_rec.park_prmt_no, stu_serv_rec.park_prmt_exp_date,
stu_serv_rec.park_location, stu_serv_rec.lot_no
FROM
stu_acad_rec
LEFT JOIN
stu_serv_rec
ON (
stu_acad_rec.id = stu_serv_rec.id
AND
stu_acad_rec.yr = stu_serv_rec.yr
AND
stu_acad_rec.sess = stu_serv_rec.sess
)
, ordered_terms
WHERE
1 = 1
AND stu_acad_rec.yr = ordered_terms.yr
AND stu_acad_rec.sess = ordered_terms.sess
AND stu_acad_rec.prog = ordered_terms.prog
AND
stu_acad_rec.id =
ORDER BY
ordered_terms.latest desc;
--
-- SEARCH_STUDENTS
--
SELECT
id_rec.id, trim(firstname) as firstname, trim(lastname) as lastname,
prog, subprog, cl, nurs_prog, cohort_yr,
acst, bal_act as SA_balance, descr, dunning_letter, interest_wvd
FROM
prog_enr_rec, id_rec
LEFT JOIN
suba_rec
ON
id_rec.id = suba_rec.id
AND
suba_rec.subs= "S/A"
WHERE
id_rec.id = prog_enr_rec.id
AND
LOWER(lastname) = TRIM(LOWER("SMITH "))
AND
prog_enr_rec.acst = "GOOD"
ORDER BY
lastname, firstname
|
<gh_stars>0
create or replace procedure seq_timestamp (
seq_value_out out pls_integer
, seq_timestamp_out out timestamp
, enable_locking boolean default true
)
as
seqValueOut pls_integer;
seqTimestamp timestamp;
lockHandle varchar2(128);
lockAcquired boolean := false;
glockResult integer;
localInstanceNumber integer;
sleptTime number;
-- if lock not obtained within ~0.25 seconds, then return false
-- the transaction should proceed without the lock and log the issue
function get_lock (lockHandleIn varchar2, sleptTimeInOut in out number ) return boolean
is
type backoffTyp is table of number;
-- new in 18c - initialize and assign in one command
--timeoutBackoff backoffTyp := backoffTyp(0.01,0.05,0.07,0.10);
-- try very hard to get the lock
timeoutBackoff backoffTyp := backoffTyp(0.01,0.05,0.07,0.10,0.25,0.5,1.0,2.0,3.0);
flockResult integer;
begin
--dbms_output.enable(null);
sleptTimeInOut := 0;
for i in timeoutBackoff.first .. timeoutBackoff.last
loop
flockResult := dbms_lock.request (
lockhandle => lockHandleIn,
lockmode => dbms_lock.x_mode,
timeout => 0,
release_on_commit => TRUE /* default is false */
);
if flockResult = 0 then
return true;
end if;
sleptTimeInOut := timeoutBackoff(i);
dbms_lock.sleep(timeoutBackoff(i));
end loop;
return false;
end;
procedure allocate_lock (lockHandleIN out varchar2)
is
pragma autonomous_transaction;
begin
dbms_lock.allocate_unique(
lockName => 'SEQ_TIMESTAMP_COORD',
lockHandle => lockHandleIn
);
end;
procedure log_lock_failure (
idIn number
, seqTimeIn timestamp
, sleptTimeIn number
, instIdIn number
)
is
pragma autonomous_transaction;
begin
insert into seq_test_log(id,seq_time,slept_time,inst_id)
values(idIn,seqTimeIn,sleptTimeIn,instIdIn);
commit;
end;
begin
select instance_number into localInstanceNumber from v$instance;
-- serialize with dbms_lock
if enable_locking then
allocate_lock(lockHandle);
--dbms_output.put_line('lock handle: ' || lockHandle);
-- if lock is not acquired, do not fail the function
-- this is where failing to get the lock would be logged
lockAcquired := get_lock(lockHandle,sleptTime);
end if;
select seq_cache_test.nextval, systimestamp into seq_value_out, seq_timestamp_out from dual; --@timekeeper;
if enable_locking then
if lockAcquired then
glockResult := dbms_lock.release(
lockHandle => lockHandle
);
else
-- here is where to log the failure to obtain the lock
log_lock_failure(seq_value_out,seq_timestamp_out,sleptTime,localInstanceNumber);
end if;
end if;
end;
/
show error procedure seq_timestamp
|
<reponame>hec3555/wildcart
-- phpMyAdmin SQL Dump
-- version 4.8.2
-- https://www.phpmyadmin.net/
--
-- Servidor: localhost:3306
-- Tiempo de generación: 20-12-2018 a las 11:10:56
-- Versión del servidor: 5.7.23
-- Versión de PHP: 7.1.21
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: `wildcart`
--
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `factura`
--
CREATE TABLE `factura` (
`id` int(11) NOT NULL,
`fecha` datetime DEFAULT NULL,
`iva` float DEFAULT NULL,
`id_usuario` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
--
-- Volcado de datos para la tabla `factura`
--
INSERT INTO `factura` (`id`, `fecha`, `iva`, `id_usuario`) VALUES
(1, '2018-12-03 00:00:00', 985, 3),
(2, NULL, 21, 1),
(3, '2018-12-04 00:00:00', 21, 1),
(4, NULL, 20, 1),
(5, '2018-12-04 00:00:00', 21, 1),
(6, '2018-12-07 00:00:00', 21, 1),
(10, '2018-12-11 00:00:00', 21, 1),
(11, '2018-12-10 00:00:00', 0, 1),
(12, NULL, 31, 1),
(13, '2018-12-05 00:00:00', 31, 4),
(14, '2018-01-02 00:00:00', 24, 2),
(15, '2018-02-06 00:00:00', 112, 1),
(16, '2018-12-11 00:00:00', 44, 2),
(17, '2018-12-11 00:00:00', 44, 1),
(18, '2018-12-11 00:00:00', 21, 1),
(19, '2018-12-14 00:00:00', 56, 5),
(21, '2018-12-14 00:00:00', 14233300000, 2),
(22, '2018-12-19 00:00:00', 21, 1),
(23, '2018-12-19 00:00:00', 21, 1);
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `linea`
--
CREATE TABLE `linea` (
`id` int(11) NOT NULL,
`cantidad` int(11) DEFAULT NULL,
`id_producto` int(11) DEFAULT NULL,
`id_factura` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
--
-- Volcado de datos para la tabla `linea`
--
INSERT INTO `linea` (`id`, `cantidad`, `id_producto`, `id_factura`) VALUES
(1, 5, 28, 1),
(3, 1, 3, 3),
(4, 1, 3, 4),
(5, 1, 3, 5),
(6, 1, 1, 5),
(7, 1, 5, 5),
(8, 1, 9, 5),
(9, 1, 10, 5),
(10, 1, 2, 6),
(11, 1, 2, 10),
(12, 1, 3, 10),
(13, 1, 1, 10),
(14, 1, 6, 18),
(15, 8, 9, 18),
(16, 123, 3, 1),
(17, 66, 2, 1),
(18, 999999999, 56, 1),
(19, 554, 21, 1),
(20, 123, 4, 1),
(21, 324234, 1, 1),
(22, 123456789, 4, 1),
(23, 999999999, 2, 1),
(24, 999999999, 2, 1),
(25, 1, 1, 22),
(26, 1, 2, 22),
(27, 1, 3, 22),
(28, 1, 6, 22),
(29, 1, 5, 22),
(30, 1, 4, 22),
(31, 1, 7, 22),
(32, 1, 8, 22),
(33, 1, 9, 22),
(34, 1, 10, 22),
(35, 1, 11, 22),
(36, 1, 12, 22),
(37, 1, 13, 22),
(38, 1, 14, 22),
(39, 1, 15, 22),
(40, 1, 16, 22),
(41, 1, 17, 22),
(42, 1, 18, 22),
(43, 1, 19, 22),
(44, 1, 20, 22),
(45, 1, 1, 23),
(46, 1, 2, 23),
(47, 1, 3, 23);
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `producto`
--
CREATE TABLE `producto` (
`id` int(11) NOT NULL,
`codigo` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`desc` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`existencias` int(11) DEFAULT NULL,
`precio` float DEFAULT NULL,
`foto` varchar(512) COLLATE utf8_unicode_ci DEFAULT NULL,
`id_tipoProducto` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
--
-- Volcado de datos para la tabla `producto`
--
INSERT INTO `producto` (`id`, `codigo`, `desc`, `existencias`, `precio`, `foto`, `id_tipoProducto`) VALUES
(1, 'HEC3555', 'sistema trabajo', 8, 100.23, 'minions.jpg', 4),
(2, 'holi', 'tubo tubos', 11, 79.97, 'minions.jpg', 2),
(3, 'DP7J843K9F', 'tubo trabajo', 56, 26.6, 'minions.jpg', 2),
(4, 'POLHU234', 'soporte capilar', 61, 28.53, '', 1),
(5, 'POLHU234', 'tubo tubos', 60, 69.7, '', 5),
(6, 'OJ563S', 'tubo tubos', 19, 8.65, '', 2),
(7, 'OJ563S', ' accesorio tubos', 20, 40.91, '', 2),
(8, 'OJ563S', 'soporte tren', 20, 59.65, '', 5),
(9, '99OPED', ' accesorio trabajo', 5, 3.06, '', 1),
(10, 'POLHU234', ' accesorio coche', 83, 42.78, '', 3),
(11, 'HEC3555', 'estaci�n capilar', 61, 2.44, '', 4),
(12, 'HEC3555', 'soporte tren', 20, 93.73, '', 5),
(13, 'OJ563S', 'estaci�n tubos', 11, 56.8, '', 2),
(14, 'OJ563S', 'tubo tubos', 14, 95.39, '', 3),
(15, 'OJ563S', 'soporte tren', 84, 1.84, '', 1),
(16, 'OJ563S', 'sistema coche', 84, 85.48, '', 3),
(17, 'HEC3555', ' accesorio tubos', 20, 6.95, '', 4),
(18, 'DP7J843K9F', 'tubo capilar', 14, 1.44, '', 4),
(19, 'OJ563S', ' accesorio capilar', 61, 62.65, '', 5),
(20, 'POLHU234', ' accesorio capilar', 11, 86.95, '', 2),
(21, 'POLHU234', 'estaci�n tubos', 15, 19.48, '', 5),
(22, 'DP7J843K9F', 'estaci�n tubos', 12, 40.7, '', 5),
(23, 'POLHU234', 'soporte tubos', 12, 18.72, '', 3),
(24, 'POLHU234', ' accesorio tubos', 85, 78.79, '', 4),
(25, 'DP7J843K9F', 'estaci�n capilar', 12, 100.69, '', 3),
(26, '99OPED', 'sistema tren', 85, 7.38, '', 5),
(27, 'OJ563S', 'sistema tren', 12, 6.66, '', 4),
(28, 'DP7J843K9F', 'tubo coche', 15, 61.33, '', 2),
(29, 'DP7J843K9F', 'tubo capilar', 21, 3.82, '', 4),
(30, 'OJ563S', 'soporte trabajo', 21, 58.92, '', 3),
(31, 'DP7J843K9F', 'sistema capilar', 85, 61.95, '', 5),
(32, 'DP7J843K9F', ' accesorio tren', 85, 50.41, '', 4),
(33, '99OPED', 'estaci�n tren', 62, 93.05, '', 3),
(34, '99OPED', 'sistema trabajo', 21, 1.33, '', 2),
(35, 'HEC3555', ' accesorio tren', 12, 32.33, '', 1),
(36, 'OJ563S', 'sistema tubos', 62, 47.89, '', 1),
(37, 'POLHU234', 'soporte trabajo', 15, 91.05, '', 5),
(38, 'HEC3555', 'estaci�n capilar', 62, 93.59, '', 3),
(39, 'POLHU234', 'tubo trabajo', 15, 47.27, '', 5),
(40, 'POLHU234', 'soporte coche', 62, 81.7, '', 1),
(41, 'POLHU234', ' accesorio tren', 62, 61.27, '', 5),
(42, 'POLHU234', 'tubo tubos', 85, 78.36, '', 1),
(43, 'OJ563S', 'soporte coche', 85, 7.12, '', 3),
(44, 'HEC3555', ' accesorio trabajo', 12, 35.47, '', 3),
(45, '99OPED', 'estaci�n tubos', 62, 1.04, '', 2),
(46, '99OPED', 'sistema tren', 12, 71.67, '', 3),
(47, 'OJ563S', 'estaci�n capilar', 21, 80.58, '', 5),
(48, 'DP7J843K9F', 'estaci�n capilar', 12, 12.5, '', 5),
(49, 'POLHU234', 'tubo tren', 15, 46.88, '', 2),
(50, 'POLHU234', 'estaci�n coche', 12, 68.79, '', 1),
(51, 'HEC3555', 'tubo trabajo', 85, 24.21, '', 3),
(52, 'OJ563S', 'tubo capilar', 62, 4.16, '', 5),
(53, 'OJ563S', 'soporte trabajo', 15, 17.9, '', 5),
(54, '99OPED', 'soporte capilar', 62, 48.79, '', 5),
(55, 'HEC3555', 'sistema trabajo', 15, 62.66, '', 1),
(56, 'OJ563S', 'soporte trabajo', 62, 57.53, '', 4),
(57, 'POLHU234', ' accesorio capilar', 15, 48.74, '', 5),
(58, 'HEC3555', 'sistema tubos', 15, 85.26, '', 2),
(59, 'POLHU234', 'soporte tubos', 21, 93.26, '', 1),
(60, 'POLHU234', 'estaci�n tren', 62, 62.22, '', 4),
(61, 'OJ563S', 'sistema tubos', 15, 87.98, '', 2),
(62, 'POLHU234', 'sistema capilar', 12, 95.5, '', 4),
(63, 'OJ563S', 'tubo capilar', 62, 3.61, '', 4),
(64, 'DP7J843K9F', ' accesorio tren', 12, 1.37, '', 3),
(65, 'DP7J843K9F', 'soporte tubos', 85, 63.37, '', 1),
(66, 'OJ563S', 'sistema trabajo', 85, 85.71, '', 1),
(67, 'DP7J843K9F', 'estaci�n tren', 15, 15.99, '', 5),
(68, 'OJ563S', 'sistema capilar', 62, 36.58, '', 3),
(69, 'POLHU234', 'estaci�n tubos', 62, 39.99, '', 5),
(70, 'POLHU234', 'tubo coche', 85, 74.54, '', 2),
(71, 'HEC3555', ' accesorio tren', 85, 97.02, '', 2),
(72, 'HEC3555', 'tubo tren', 12, 21.93, '', 3),
(73, 'POLHU234', 'soporte coche', 15, 22.49, '', 1),
(74, 'HEC3555', ' accesorio tren', 85, 2.43, '', 3),
(75, 'HEC3555', 'estaci�n tren', 15, 96.53, '', 1),
(76, 'DP7J843K9F', 'soporte tubos', 21, 66.78, '', 3),
(77, 'DP7J843K9F', 'tubo tubos', 15, 77.55, '', 4),
(78, 'DP7J843K9F', 'tubo tubos', 15, 59.18, '', 3),
(79, 'OJ563S', 'sistema tubos', 15, 3.99, '', 5),
(80, 'DP7J843K9F', 'tubo coche', 62, 92.44, '', 5),
(81, 'DP7J843K9F', ' accesorio tubos', 12, 77.91, '', 3),
(82, 'HEC3555', ' accesorio coche', 85, 87.14, '', 4),
(83, '99OPED', 'soporte coche', 15, 36.5, '', 5),
(84, 'OJ563S', 'tubo tren', 85, 52.51, '', 2),
(85, 'POLHU234', ' accesorio tren', 62, 93.86, '', 4),
(86, '99OPED', 'soporte tren', 12, 42.5, '', 2),
(87, 'POLHU234', 'estaci�n tubos', 21, 96.79, '', 4),
(88, '99OPED', 'soporte coche', 21, 11.93, '', 2),
(89, 'OJ563S', 'estaci�n tren', 62, 83.64, '', 5),
(90, 'POLHU234', 'sistema tubos', 21, 22.02, '', 2),
(91, 'HEC3555', ' accesorio tren', 15, 64.92, '', 1),
(92, 'POLHU234', 'sistema tren', 85, 4.57, '', 1),
(93, 'OJ563S', 'soporte trabajo', 15, 58.72, '', 2),
(94, 'HEC3555', ' accesorio tubos', 15, 87.71, '', 5),
(95, 'POLHU234', 'tubo capilar', 62, 12.46, '', 1),
(96, '99OPED', ' accesorio trabajo', 85, 14.29, '', 1),
(97, 'DP7J843K9F', 'soporte capilar', 15, 25.26, '', 3),
(98, 'HEC3555', 'tubo tubos', 12, 46.8, '', 2),
(99, 'DP7J843K9F', 'soporte tren', 15, 52.77, '', 3),
(100, 'OJ563S', 'soporte capilar', 62, 49.44, '', 5),
(101, 'B2', 'Herramienta Largo para desbrozar', 1, 18.63, 'minions.jpg', 1),
(102, 'B2', 'Mecanismo Electrico para cortar', 2, 35.36, 'minions.jpg', 1),
(103, 'K4', 'Aparejo Facil para perforar', 3, 13.04, 'minions.jpg', 1),
(104, 'U8', 'Aparejo Facil para lijar', 4, 100.34, 'minions.jpg', 1),
(105, 'C3', 'Mecanismo Circular para romper', 4, 11.7, 'minions.jpg', 1),
(106, 'sdaf2', 'fsafdsa', 4, 2, NULL, 1),
(107, 'AAAAAAAAAAAAAAAA', 'AAAAAAAAAAAAAAAA', 55, 4.32, NULL, 5),
(108, 'asfda', 'sdf', 3, 9.51, NULL, 1),
(109, 'GGGG', 'GGGG', 2, 2.12434, NULL, 3);
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `tipoproducto`
--
CREATE TABLE `tipoproducto` (
`id` int(11) NOT NULL,
`desc` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
--
-- Volcado de datos para la tabla `tipoproducto`
--
INSERT INTO `tipoproducto` (`id`, `desc`) VALUES
(1, 'Juegos'),
(2, 'Vehiculos'),
(3, 'Oficina'),
(4, 'Consumibles'),
(5, 'Herramientas'),
(6, 'Gafas');
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `tipousuario`
--
CREATE TABLE `tipousuario` (
`id` int(11) NOT NULL,
`desc` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
--
-- Volcado de datos para la tabla `tipousuario`
--
INSERT INTO `tipousuario` (`id`, `desc`) VALUES
(1, 'Administrador'),
(2, 'jajaja'),
(3, 'Cliente');
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `usuario`
--
CREATE TABLE `usuario` (
`id` int(11) NOT NULL,
`dni` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`nombre` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`ape1` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`ape2` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`login` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`pass` varchar(512) COLLATE utf8_unicode_ci DEFAULT NULL,
`id_tipoUsuario` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
--
-- Volcado de datos para la tabla `usuario`
--
INSERT INTO `usuario` (`id`, `dni`, `nombre`, `ape1`, `ape2`, `login`, `pass`, `id_tipoUsuario`) VALUES
(1, '04631408N', 'hector', 'martinez', '<PASSWORD>', '<PASSWORD>', '<PASSWORD>', 1),
(2, '78451627G', 'CSGO', 'ROCKET', 'Escribano', 'usua666', '8C5FD24986A4248CEBF8BE6F4AA27CAB81412C1CA042830765EAC60544F880C5', 3),
(3, '14756425l', 'Maria', 'Gomez', 'Gomez', 'usua6', NULL, 2),
(4, '7845162f', 'Marcos', 'Escribano', 'Belmonte', 'usuar5', NULL, 2),
(5, '54698532o', 'Marcos', 'Belmonte', 'Belmonte', 'us2', NULL, 2),
(6, '7845162f', 'Lidia', 'Perez', 'Belmonte', 'usua6', NULL, 1),
(7, '14756425l', 'Lidia', 'Belmonte', 'Pozuelo', 'usu435', NULL, 1),
(8, '54698532o', 'Hector', 'Martinez', 'Escribano', 'usua95f', NULL, 2),
(9, '7845162f', 'Hector', 'Gomez', 'Escribano', 'usua6', NULL, 2),
(10, '54698532o', 'Pedro', 'Escribano', 'Escribano', 'usuar5', NULL, 1),
(11, '54698532o', 'Maria', 'Belmonte', 'Gomez', 'usu435', NULL, 2),
(12, '14756425l', 'Hector', 'Martinez', 'Escribano', 'us2', NULL, 1),
(13, '04631408j', 'kevin', 'Gomez', 'Perez', 'usuar5', NULL, 1),
(14, '04631408j', 'Hector', 'Escribano', 'Perez', 'usua6', NULL, 1),
(15, '54698532o', 'Alex', 'Escribano', 'Belmonte', 'usuar5', NULL, 2),
(16, '54698532o', 'Maria', 'Martinez', 'Belmonte', 'usuar5', NULL, 2),
(17, '04631408j', 'Alex', 'Pozuelo', 'Belmonte', 'usua6', NULL, 3),
(18, '7845162f', 'Alex', 'Perez', 'Pozuelo', 'us2', NULL, 3),
(19, '7845162f', 'kevin', 'Perez', 'Escribano', 'us2', NULL, 1),
(20, '04631408j', 'Marcos', 'Pozuelo', 'Belmonte', 'us2', NULL, 1),
(21, '04631408j', 'Hector', 'Escribano', 'Escribano', 'us2', NULL, 1),
(22, '54698532o', 'Maria', 'Gomez', 'Belmonte', 'usua95f', NULL, 2),
(23, '54698532o', 'Marcos', 'Pozuelo', 'Perez', 'usua95f', NULL, 1),
(24, '54698532o', 'Alex', 'Gomez', 'Escribano', 'usu435', NULL, 1),
(25, '14756425l', 'kevin', 'Pozuelo', 'Escribano', 'us2', NULL, 2),
(26, '04631408j', 'kevin', 'Gomez', 'Perez', 'us2', NULL, 1),
(27, '14756425l', 'Marcos', 'Belmonte', 'Escribano', 'usuar5', NULL, 1),
(28, '7845162f', 'Pedro', 'Escribano', 'Perez', 'usu435', NULL, 2),
(29, '54698532o', 'Marcos', 'Martinez', 'Belmonte', 'usuar5', NULL, 2),
(30, '54698532o', 'Lidia', 'Martinez', 'Pozuelo', 'usuar5', NULL, 1),
(31, '04631408j', 'Hector', 'Belmonte', 'Escribano', 'usuar5', NULL, 1),
(32, '04631408j', 'Lidia', 'Gomez', 'Martinez', 'usuar5', NULL, 2),
(33, '04631408j', 'Marcos', 'Gomez', 'Belmonte', 'us2', NULL, 1),
(34, '7845162f', 'kevin', 'Pozuelo', 'Belmonte', 'usua95f', NULL, 2),
(35, '54698532o', 'Maria', 'Gomez', 'Martinez', 'usu435', NULL, 1),
(36, '7845162f', 'Alex', 'Pozuelo', 'Pozuelo', 'usua95f', NULL, 1),
(37, '14756425l', 'Lidia', 'Perez', 'Escribano', 'usua95f', NULL, 1),
(38, '14756425l', 'Pedro', 'Belmonte', 'Martinez', 'us2', NULL, 1),
(39, '54698532o', 'Pedro', 'Gomez', 'Martinez', 'usua6', NULL, 2),
(40, '14756425l', 'Maria', 'Gomez', 'Perez', 'usu435', NULL, 1),
(41, '7845162f', 'Hector', 'Escribano', 'Pozuelo', 'usua95f', NULL, 2),
(42, '7845162f', 'Maria', 'Gomez', 'Martinez', 'us2', NULL, 1),
(43, '04631408j', 'Hector', 'Perez', 'Perez', 'usuar5', NULL, 1),
(44, '54698532o', 'kevin', 'Martinez', 'Martinez', 'usua6', NULL, 2),
(45, '7845162f', 'Marcos', 'Escribano', 'Martinez', 'usu435', NULL, 1),
(46, '04631408j', 'Maria', 'Gomez', 'Pozuelo', 'us2', NULL, 2),
(47, '14756425l', 'Hector', 'Belmonte', 'Gomez', 'usua95f', NULL, 2),
(48, '54698532o', 'Maria', 'Belmonte', 'Gomez', 'usua95f', NULL, 1),
(49, '7845162f', 'kevin', 'Martinez', 'Gomez', 'usuar5', NULL, 1),
(50, '7845162f', 'Maria', 'Belmonte', 'Belmonte', 'usuar5', NULL, 1),
(51, '14756425l', 'Marcos', 'Perez', 'Perez', 'usuar5', NULL, 1),
(52, '54698532o', 'Alex', 'Perez', 'Escribano', 'us2', NULL, 1),
(53, '54698532o', 'kevin', 'Martinez', 'Escribano', 'us2', NULL, 2),
(54, '54698532o', 'kevin', 'Belmonte', 'Martinez', 'usua6', NULL, 1),
(55, '14756425l', 'Maria', 'Belmonte', 'Gomez', 'usu435', NULL, 1),
(56, '7845162f', 'Hector', 'Pozuelo', 'Pozuelo', 'us2', NULL, 2),
(57, '04631408j', 'Maria', 'Escribano', 'Perez', 'usu435', NULL, 2),
(58, '7845162f', 'Lidia', 'Gomez', 'Perez', 'us2', NULL, 2),
(59, '14756425l', 'Alex', 'Gomez', 'Pozuelo', 'us2', NULL, 1),
(60, '7845162f', 'kevin', 'Belmonte', 'Gomez', 'usua6', NULL, 1),
(61, '54698532o', 'Maria', 'Escribano', 'Perez', 'usua6', NULL, 1),
(62, '04631408j', 'kevin', 'Pozuelo', 'Escribano', 'us2', NULL, 1),
(63, '54698532o', 'kevin', 'Belmonte', 'Pozuelo', 'us2', NULL, 1),
(64, '7845162f', 'kevin', 'Pozuelo', 'Pozuelo', 'usuar5', NULL, 1),
(65, '04631408j', 'Lidia', 'Gomez', 'Pozuelo', 'usua6', NULL, 1),
(66, '14756425l', 'Hector', 'Escribano', 'Belmonte', 'usua95f', NULL, 1),
(67, '14756425l', 'Marcos', 'Martinez', 'Belmonte', 'usua95f', NULL, 2),
(68, '04631408j', 'Alex', 'Pozuelo', 'Gomez', 'usu435', NULL, 1),
(69, '54698532o', 'Lidia', 'Escribano', 'Escribano', 'us2', NULL, 2),
(70, '7845162f', 'Hector', 'Escribano', 'Belmonte', 'usuar5', NULL, 2),
(71, '04631408j', 'Marcos', 'Martinez', 'Escribano', 'us2', NULL, 2),
(72, '04631408j', 'Pedro', 'Perez', 'Martinez', 'us2', NULL, 2),
(73, '54698532o', 'Alex', 'Gomez', 'Martinez', 'usua95f', NULL, 2),
(74, '54698532o', 'kevin', 'Escribano', 'Escribano', 'usua6', NULL, 1),
(75, '54698532o', 'Marcos', 'Martinez', 'Pozuelo', 'usuar5', NULL, 2),
(76, '54698532o', 'Lidia', 'Belmonte', 'Martinez', 'usu435', NULL, 2),
(77, '04631408j', 'Marcos', 'Gomez', 'Belmonte', 'usuar5', NULL, 2),
(78, '14756425l', 'Maria', 'Perez', 'Martinez', 'usu435', NULL, 1),
(79, '7845162f', 'Marcos', 'Martinez', 'Belmonte', 'usu435', NULL, 2),
(80, '14756425l', 'Marcos', 'Martinez', 'Gomez', 'usuar5', NULL, 2),
(81, '14756425l', 'Hector', 'Pozuelo', 'Belmonte', 'usua6', NULL, 1),
(82, '14756425l', 'Maria', 'Belmonte', 'Escribano', 'usu435', NULL, 2),
(83, '04631408j', 'kevin', 'Pozuelo', 'Perez', 'usua6', NULL, 2),
(84, '7845162f', 'kevin', 'Pozuelo', 'Gomez', 'usu435', NULL, 2),
(85, '04631408j', 'Pedro', 'Escribano', 'Pozuelo', 'usuar5', NULL, 2),
(86, '7845162f', 'Alex', 'Belmonte', 'Perez', 'usuar5', NULL, 2),
(87, '14756425l', 'Pedro', 'Pozuelo', 'Perez', 'usuar5', NULL, 2),
(88, '14756425l', 'Pedro', 'Martinez', 'Martinez', 'usuar5', NULL, 1),
(89, '04631408j', 'Hector', 'Pozuelo', 'Martinez', 'us2', NULL, 1),
(90, '04631408j', 'Marcos', 'Pozuelo', 'Escribano', 'usuar5', NULL, 1),
(91, '7845162f', 'Lidia', 'Gomez', 'Belmonte', 'us2', NULL, 1),
(92, '14756425l', 'Lidia', 'Perez', 'Gomez', 'usuar5', NULL, 1),
(93, '04631408j', 'kevin', 'Gomez', 'Escribano', 'usua6', NULL, 1),
(94, '7845162f', 'Hector', 'Escribano', 'Martinez', 'us2', NULL, 1),
(95, '54698532o', 'Marcos', 'Pozuelo', 'Gomez', 'us2', NULL, 2),
(96, '14756425l', 'Pedro', 'Gomez', 'Escribano', 'usua6', NULL, 1),
(97, '04631408j', 'Lidia', 'Pozuelo', 'Perez', 'usua6', NULL, 2),
(99, '04631408j', 'Alex', 'Escribano', 'Escribano', 'usuar5', NULL, 2),
(100, '14756425l', 'kevin', 'Belmonte', 'Perez', 'usua6', NULL, 1),
(101, '04631408j', 'Hector', 'Pozuelo', 'Perez', 'usuar5', NULL, 1),
(102, '54698532o', 'Pedro', 'Pozuelo', 'Martinez', 'usua6', NULL, 1),
(103, '14756425l', 'kevin', 'Belmonte', 'Escribano', 'usu435', NULL, 2),
(104, '7845162f', 'Lidia', 'Pozuelo', 'Martinez', 'usu435', NULL, 1),
(105, '04631408j', 'Maria', 'Belmonte', 'Gomez', 'usua6', NULL, 1),
(106, '14756425l', 'Marcos', 'Belmonte', 'Martinez', 'usuar5', NULL, 1),
(107, '76567856A', 'yytur', 'tyuty', 'utyu', 'yt', '70626D4B2FF263500A9354F703F41BDE3EA0B81FD1C873A8E3F0BEAECD2F052C', 2);
--
-- Índices para tablas volcadas
--
--
-- Indices de la tabla `factura`
--
ALTER TABLE `factura`
ADD PRIMARY KEY (`id`),
ADD KEY `fk_factura_usuario1_idx` (`id_usuario`);
--
-- Indices de la tabla `linea`
--
ALTER TABLE `linea`
ADD PRIMARY KEY (`id`),
ADD KEY `fk_linea_producto1_idx` (`id_producto`),
ADD KEY `fk_linea_factura1_idx` (`id_factura`);
--
-- Indices de la tabla `producto`
--
ALTER TABLE `producto`
ADD PRIMARY KEY (`id`),
ADD KEY `fk_producto_tipoProducto1_idx` (`id_tipoProducto`);
--
-- Indices de la tabla `tipoproducto`
--
ALTER TABLE `tipoproducto`
ADD PRIMARY KEY (`id`);
--
-- Indices de la tabla `tipousuario`
--
ALTER TABLE `tipousuario`
ADD PRIMARY KEY (`id`);
--
-- Indices de la tabla `usuario`
--
ALTER TABLE `usuario`
ADD PRIMARY KEY (`id`),
ADD KEY `fk_usuario_tipoUsuario_idx` (`id_tipoUsuario`);
--
-- AUTO_INCREMENT de las tablas volcadas
--
--
-- AUTO_INCREMENT de la tabla `factura`
--
ALTER TABLE `factura`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=24;
--
-- AUTO_INCREMENT de la tabla `linea`
--
ALTER TABLE `linea`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=48;
--
-- AUTO_INCREMENT de la tabla `producto`
--
ALTER TABLE `producto`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=110;
--
-- AUTO_INCREMENT de la tabla `tipoproducto`
--
ALTER TABLE `tipoproducto`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;
--
-- AUTO_INCREMENT de la tabla `tipousuario`
--
ALTER TABLE `tipousuario`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT de la tabla `usuario`
--
ALTER TABLE `usuario`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=108;
--
-- Restricciones para tablas volcadas
--
--
-- Filtros para la tabla `factura`
--
ALTER TABLE `factura`
ADD CONSTRAINT `fk_factura_usuario1` FOREIGN KEY (`id_usuario`) REFERENCES `usuario` (`id`) ON DELETE SET NULL ON UPDATE CASCADE;
--
-- Filtros para la tabla `linea`
--
ALTER TABLE `linea`
ADD CONSTRAINT `fk_linea_factura1` FOREIGN KEY (`id_factura`) REFERENCES `factura` (`id`) ON DELETE SET NULL ON UPDATE CASCADE,
ADD CONSTRAINT `fk_linea_producto1` FOREIGN KEY (`id_producto`) REFERENCES `producto` (`id`) ON DELETE SET NULL ON UPDATE CASCADE;
--
-- Filtros para la tabla `producto`
--
ALTER TABLE `producto`
ADD CONSTRAINT `fk_producto_tipoProducto1` FOREIGN KEY (`id_tipoProducto`) REFERENCES `tipoproducto` (`id`) ON DELETE SET NULL ON UPDATE CASCADE;
--
-- Filtros para la tabla `usuario`
--
ALTER TABLE `usuario`
ADD CONSTRAINT `fk_usuario_tipoUsuario` FOREIGN KEY (`id_tipoUsuario`) REFERENCES `tipousuario` (`id`) ON DELETE SET NULL ON UPDATE CASCADE;
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 setup development
-- Script for create database and user in testDatabase
CREATE DATABASE IF NOT EXISTS hbnb_test_db;
CREATE USER IF NOT EXISTS 'hbnb_test'@'localhost' IDENTIFIED BY 'hbnb_test_pwd';
GRANT ALL PRIVILEGES ON hbnb_test_db.* TO 'hbnb_test'@'localhost';
GRANT SELECT ON performance_schema.* TO 'hbnb_test'@'localhost';
|
<filename>database/sql/daftar.sql
INSERT INTO `daftar` (`id`, `barang_bukti`, `no_stnk_sim`, `nama`, `no_kendaraan`, `tanggal_tilang`, `tanggal_sidang`, `status_penilangan`, `pelanggaran`, `total_denda`,`tempat_sidang`, `alamat`,`keterangan`,`surat_tilang`) VALUES
(1,'STNK', 32032411, 'Nama Anda 1','F5685XR', '2000-01-10','2000-01-17','Berjalan','Tidak Mempunyai SIM',100000,'Kejasaan Negri Bandung','Jl. Sunda No. 2','-','profil.png'),
(2, 'SIM', 42032511, 'Nama Anda 2','D5586DDA', '2000-02-11','2000-02-18','Sudah Selesai','Melanggar Lampu merah',75000,'Porlestabes Bandung','Jl. Jakarta 45','-','profil2.png');
|
-- phpMyAdmin SQL Dump
-- version 3.3.9
-- http://www.phpmyadmin.net
--
-- Servidor: localhost
-- Tiempo de generación: 21-10-2018 a las 23:52:55
-- Versión del servidor: 5.5.8
-- Versión de PHP: 5.3.5
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
/*!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 */;
--
-- Base de datos: `bdpymeasy`
--
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `tbl_abonos`
--
CREATE TABLE IF NOT EXISTS `tbl_abonos` (
`idabono` int(11) NOT NULL AUTO_INCREMENT,
`fkventa` int(11) NOT NULL,
`monto` double(11,2) NOT NULL,
`modalidad_pago` varchar(20) COLLATE utf8_spanish2_ci NOT NULL,
`fecha` date NOT NULL,
`nro_referencia` varchar(20) COLLATE utf8_spanish2_ci DEFAULT NULL,
`estatus_abono` varchar(10) COLLATE utf8_spanish2_ci NOT NULL,
PRIMARY KEY (`idabono`),
KEY `fkventa` (`fkventa`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_spanish2_ci AUTO_INCREMENT=6 ;
--
-- Volcar la base de datos para la tabla `tbl_abonos`
--
INSERT INTO `tbl_abonos` (`idabono`, `fkventa`, `monto`, `modalidad_pago`, `fecha`, `nro_referencia`, `estatus_abono`) VALUES
(5, 19, 121200.00, 'CHEQUE', '2018-10-21', '565656565', 'PAGADO');
--
-- (Evento) desencadenante `tbl_abonos`
--
DROP TRIGGER IF EXISTS `trigger_upd_cuenta_cobrar`;
DELIMITER //
CREATE TRIGGER `trigger_upd_cuenta_cobrar` AFTER INSERT ON `tbl_abonos`
FOR EACH ROW BEGIN
update tbl_cuentas_cobrar set monto_haber=monto_haber+new.monto, monto_debe=monto_debe-new.monto where fkventa=new.fkventa;
update tbl_cuentas_cobrar set estatus='PAGADO' where monto_haber>=monto_total and fkventa=new.fkventa;
END
//
DELIMITER ;
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `tbl_auditorias`
--
CREATE TABLE IF NOT EXISTS `tbl_auditorias` (
`idauditoria` int(11) NOT NULL AUTO_INCREMENT,
`actividad` varchar(200) COLLATE utf8_spanish2_ci NOT NULL,
`login` varchar(6) COLLATE utf8_spanish2_ci NOT NULL,
`fecha` datetime NOT NULL,
PRIMARY KEY (`idauditoria`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_spanish2_ci AUTO_INCREMENT=212 ;
--
-- Volcar la base de datos para la tabla `tbl_auditorias`
--
INSERT INTO `tbl_auditorias` (`idauditoria`, `actividad`, `login`, `fecha`) VALUES
(197, 'Nuevo inicio de sesion', 'rlunar', '2018-10-20 19:16:23'),
(198, 'Registro de producto: ARROZ BLANCO', 'rlunar', '2018-10-20 19:34:47'),
(199, 'Registro de producto: PASTA LARGA', 'rlunar', '2018-10-20 19:35:15'),
(200, 'Registro de Nuevo Proveedor: <NAME>', 'rlunar', '2018-10-20 19:36:01'),
(201, 'Registro de Pedido: 16', 'rlunar', '2018-10-20 19:37:35'),
(202, 'Actualizacion de Pedido: 16', 'rlunar', '2018-10-20 19:38:49'),
(203, 'Pago de Pedido: 16', 'rlunar', '2018-10-20 19:58:52'),
(204, 'Registro de Nuevo Vendedor: ROBERTO', 'rlunar', '2018-10-20 20:01:33'),
(205, 'Registro de Precio Producto ID: 6.- Bs.3000', 'rlunar', '2018-10-20 20:03:47'),
(206, 'Registro de Precio Producto ID: 6.- Bs.2600', 'rlunar', '2018-10-20 20:03:47'),
(207, 'Registro de Precio Producto ID: 7.- Bs.6000', 'rlunar', '2018-10-20 20:04:37'),
(208, 'Registro de Precio Producto ID: 7.- Bs.3900', 'rlunar', '2018-10-20 20:04:37'),
(209, 'Registro de Venta: 18', 'rlunar', '2018-10-20 20:06:27'),
(210, 'Registro de Venta: 19', 'rlunar', '2018-10-20 20:12:21'),
(211, 'Nuevo inicio de sesion', 'rlunar', '2018-10-21 16:07:34');
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `tbl_cierres_diarios_inv`
--
CREATE TABLE IF NOT EXISTS `tbl_cierres_diarios_inv` (
`idcierre` int(11) NOT NULL AUTO_INCREMENT,
`fkproducto` int(11) NOT NULL,
`fecha` datetime NOT NULL,
`cantidad_unidades` int(11) NOT NULL,
`cantidad_blt` int(11) NOT NULL,
`cant_unidades_en_blt` int(11) NOT NULL,
`observacion` varchar(500) COLLATE utf8_spanish2_ci DEFAULT NULL,
`responsable` varchar(50) COLLATE utf8_spanish2_ci NOT NULL,
`estatus_cierre` varchar(10) COLLATE utf8_spanish2_ci NOT NULL,
PRIMARY KEY (`idcierre`),
KEY `fkproducto` (`fkproducto`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_spanish2_ci AUTO_INCREMENT=1 ;
--
-- Volcar la base de datos para la tabla `tbl_cierres_diarios_inv`
--
--
-- (Evento) desencadenante `tbl_cierres_diarios_inv`
--
DROP TRIGGER IF EXISTS `trigger_actualizar_producto`;
DELIMITER //
CREATE TRIGGER `trigger_actualizar_producto` AFTER INSERT ON `tbl_cierres_diarios_inv`
FOR EACH ROW BEGIN
update tbl_productos set
cantidad_blt = NEW.cantidad_blt,
cantidad_unitaria = NEW.cantidad_unidades,
cant_unidades_en_blt = NEW.cant_unidades_en_blt
where idproducto = NEW.fkproducto;
update tbl_productos set estatus_prod='ACTIVO'
where idproducto = NEW.fkproducto and cantidad_unitaria >0;
update tbl_productos set estatus_prod='INACTIVO'
where idproducto = NEW.fkproducto and cantidad_unitaria <=0;
END
//
DELIMITER ;
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `tbl_clientes`
--
CREATE TABLE IF NOT EXISTS `tbl_clientes` (
`idcliente` int(11) NOT NULL AUTO_INCREMENT,
`rif` varchar(12) COLLATE utf8_spanish2_ci NOT NULL,
`razon_social` varchar(50) COLLATE utf8_spanish2_ci NOT NULL,
`representante_legal` varchar(50) COLLATE utf8_spanish2_ci DEFAULT NULL,
`direccion` varchar(500) COLLATE utf8_spanish2_ci DEFAULT NULL,
`fono` varchar(20) COLLATE utf8_spanish2_ci DEFAULT NULL,
`email` varchar(100) COLLATE utf8_spanish2_ci DEFAULT NULL,
`estatus_cliente` varchar(10) COLLATE utf8_spanish2_ci NOT NULL DEFAULT 'ACTIVO',
PRIMARY KEY (`idcliente`),
UNIQUE KEY `rif` (`rif`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_spanish2_ci AUTO_INCREMENT=54 ;
--
-- Volcar la base de datos para la tabla `tbl_clientes`
--
INSERT INTO `tbl_clientes` (`idcliente`, `rif`, `razon_social`, `representante_legal`, `direccion`, `fono`, `email`, `estatus_cliente`) VALUES
(2, 'V12003177', 'VICTOR SANVICENTE', 'VICTOR SANVICENTE', '', '', '', 'ACTIVO'),
(3, 'COMERCIALPER', 'COMERCIAL PEREZ', 'COMERCIAL PEREZ', '', '', '', 'ACTIVO'),
(4, 'J306364234', 'COMERCIAL EL ENCANTO', 'COMERCIAL EL ENCANTO', '', '', '', 'ACTIVO'),
(5, 'J410151927', 'INVERSIONES AMISHA EXPRESS', 'INVERSIONES AMISHA EXPRESS', '', '', '', 'ACTIVO'),
(6, 'J41108384-4', 'INVERSIONES J Y Y RONDON ', 'INVERSIONES J Y Y RONDON ', '', '', '', 'ACTIVO'),
(7, 'J40566966', 'INVERSIONES VAIVEN', 'INVERSIONES VAIVEN', '', '', '', 'ACTIVO'),
(8, 'J296684073', 'INVERSIONES PALMA REAL', 'INVERSIONES PALMA REAL', '', '', '', 'ACTIVO'),
(9, 'J402474067', 'CARNICERIA EL TORO DE ORO', 'CARNICERIA EL TORO DE ORO', NULL, NULL, NULL, 'ACTIVO'),
(10, 'J307470615', 'EXQUISITESES PANADERIA SALTO ANGEL', 'EXQUISITESES PANADERIA SALTO ANGEL', NULL, NULL, NULL, 'ACTIVO'),
(11, 'J407844016', 'INVERSIONES ALLOPY', 'INVERSIONES ALLOPY', NULL, NULL, NULL, 'ACTIVO'),
(12, 'J407530763', 'DALIDY FESTEJOS Y SUMINISTROS C.A', 'DALIDY FESTEJOS Y SUMINISTROS C.A', NULL, NULL, NULL, 'ACTIVO'),
(13, 'V113363025', 'INVERSIONES JOSE MANUEL FIGUEROA URETRA', 'INVERSIONES JOSE MANUEL FIGUEROA URETRA', NULL, NULL, NULL, 'ACTIVO'),
(14, 'J298483229', 'CHARCUTERIA GL, C.A', 'CHARCUTERIA GL, C.A', NULL, NULL, NULL, 'ACTIVO'),
(15, 'J402862768', 'INVERSIONES MARCANO PEREZ', 'INVERSIONES MARCANO PEREZ', NULL, NULL, NULL, 'ACTIVO'),
(16, 'V110081185', '<NAME>', 'OVI, C.A', NULL, NULL, NULL, 'ACTIVO'),
(17, 'J403117152', '<NAME>', '<NAME>', '', '', '', 'ACTIVO'),
(18, 'J405873922', 'INVERSIONES Y SERVICIOS YELI', 'INVERSIONES Y SERVICIOS YELI', NULL, NULL, NULL, 'ACTIVO'),
(19, 'J409707555', 'SUPERFERIA LA TOMATINA', 'SUPERFERIA LA TOMATINA', NULL, NULL, NULL, 'ACTIVO'),
(20, 'J409238652', '<NAME>', '<NAME>', NULL, NULL, NULL, 'ACTIVO'),
(21, 'J309655507', '<NAME>', '<NAME>', NULL, NULL, NULL, 'ACTIVO'),
(38, 'J403084165', '<NAME>', '<NAME>', NULL, NULL, NULL, 'ACTIVO'),
(39, 'J407510320', '<NAME>', '<NAME>', '', '', '', 'INACTIVO'),
(40, 'J312148578', '<NAME>', 'CHAR<NAME>', NULL, NULL, NULL, 'ACTIVO'),
(41, 'V121261908', 'CHARCUTERIA KASUPO AMADO DAVID', 'CHARCUTERIA KASUPO AMADO DAVID', NULL, NULL, NULL, 'ACTIVO'),
(42, 'J407769308', 'INVERSIONES DAVI Y WILLIAN', 'INVERSIONES DAVI Y WILLIAN', NULL, NULL, NULL, 'ACTIVO'),
(43, 'J405655933', 'INVERSIONES LA POPULAR', 'INVERSIONES LA POPULAR', NULL, NULL, NULL, 'ACTIVO'),
(44, 'J408129035', '<NAME>', '<NAME>', NULL, NULL, NULL, 'ACTIVO'),
(45, 'V216769798', '<NAME>', 'JULIE DEBRA', NULL, NULL, NULL, 'ACTIVO'),
(46, 'J407742850', 'MULTIVARIEDADES MIS DOS ESTRELLAS', 'MULTIVARIEDADES MIS DOS ESTRELLAS', NULL, NULL, NULL, 'ACTIVO'),
(47, 'J408729652', 'INVERSIONES MI PROVISION', 'INVERSIONES MI PROVISION', NULL, NULL, NULL, 'ACTIVO'),
(48, 'J40599830', 'INVERSIONES LA BEDICION DE DIOS', 'INVERSIONES LA BEDICION DE DIOS', NULL, NULL, NULL, 'ACTIVO'),
(49, '<NAME>', 'KA VALLENILLA', 'KA VALLENILLA', NULL, NULL, NULL, 'ACTIVO'),
(50, '<NAME>', '<NAME>', 'OVI, C.A', NULL, NULL, NULL, 'ACTIVO'),
(51, 'V113392157', 'LOS PANES DE ARELYS', 'LOS PANES DE ARELYS', NULL, NULL, NULL, 'ACTIVO'),
(52, '123456', 'prueba 2', 'prueba 2', 'prueba 2', 'prueba 2', '<EMAIL>', 'ACTIVO'),
(53, '1234567', 'prueba 4', '', 'NULL', 'prueba 4', 'prueba 4@prueba .cpm', 'ACTIVO');
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `tbl_cuentas_bancarias`
--
CREATE TABLE IF NOT EXISTS `tbl_cuentas_bancarias` (
`idcuenta_bnc` int(11) NOT NULL AUTO_INCREMENT,
`nro_cuenta` varchar(20) COLLATE utf8_spanish2_ci NOT NULL,
`banco` varchar(30) COLLATE utf8_spanish2_ci NOT NULL,
`tipo` varchar(10) COLLATE utf8_spanish2_ci NOT NULL,
PRIMARY KEY (`idcuenta_bnc`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_spanish2_ci AUTO_INCREMENT=1 ;
--
-- Volcar la base de datos para la tabla `tbl_cuentas_bancarias`
--
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `tbl_cuentas_cobrar`
--
CREATE TABLE IF NOT EXISTS `tbl_cuentas_cobrar` (
`idcuenta_cob` int(11) NOT NULL AUTO_INCREMENT,
`fkventa` int(11) NOT NULL,
`monto_total` double(11,2) NOT NULL,
`monto_debe` double(11,2) NOT NULL,
`monto_haber` double(11,2) DEFAULT '0.00',
`estatus` varchar(10) COLLATE utf8_spanish2_ci DEFAULT 'PENDIENTE',
PRIMARY KEY (`idcuenta_cob`),
KEY `fkventa` (`fkventa`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_spanish2_ci AUTO_INCREMENT=8 ;
--
-- Volcar la base de datos para la tabla `tbl_cuentas_cobrar`
--
INSERT INTO `tbl_cuentas_cobrar` (`idcuenta_cob`, `fkventa`, `monto_total`, `monto_debe`, `monto_haber`, `estatus`) VALUES
(6, 18, 102000.00, 102000.00, 0.00, 'PENDIENTE'),
(7, 19, 121200.00, 0.00, 121200.00, 'PAGADO');
--
-- (Evento) desencadenante `tbl_cuentas_cobrar`
--
DROP TRIGGER IF EXISTS `trigger_validar_venta`;
DELIMITER //
CREATE TRIGGER `trigger_validar_venta` AFTER UPDATE ON `tbl_cuentas_cobrar`
FOR EACH ROW begin
update tbl_ventas set estatus_venta='PAGADA' where total_neto<=new.monto_haber and idventa=new.fkventa and estatus_venta='PENDIENTE';
end
//
DELIMITER ;
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `tbl_cuentas_pagar`
--
CREATE TABLE IF NOT EXISTS `tbl_cuentas_pagar` (
`idcuenta_pag` int(11) NOT NULL AUTO_INCREMENT,
`fkdeuda` int(11) NOT NULL,
`tipo_deuda` varchar(10) COLLATE utf8_spanish2_ci NOT NULL,
`tabla` varchar(50) COLLATE utf8_spanish2_ci NOT NULL,
`monto_total` double(11,2) NOT NULL,
`monto_pagar` double(11,2) DEFAULT '0.00',
`monto_debe` double(11,2) NOT NULL,
`estatus_ctapag` varchar(10) COLLATE utf8_spanish2_ci NOT NULL,
`fecha` date NOT NULL,
PRIMARY KEY (`idcuenta_pag`),
KEY `fkdeuda` (`fkdeuda`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_spanish2_ci AUTO_INCREMENT=11 ;
--
-- Volcar la base de datos para la tabla `tbl_cuentas_pagar`
--
INSERT INTO `tbl_cuentas_pagar` (`idcuenta_pag`, `fkdeuda`, `tipo_deuda`, `tabla`, `monto_total`, `monto_pagar`, `monto_debe`, `estatus_ctapag`, `fecha`) VALUES
(8, 16, 'PEDIDO', 'tbl_pedidos', 60000.00, 55000.00, 5000.00, 'POR PAGAR', '2018-10-20'),
(9, 18, 'VENDEDOR', 'tbl_precios_ventas_vendedores', 22000.00, 22000.00, 0.00, 'POR PAGAR', '2018-10-20'),
(10, 19, 'VENDEDOR', 'tbl_precios_ventas_vendedores', 34800.00, 34800.00, 0.00, 'POR PAGAR', '2018-10-20');
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `tbl_detalles_pedidos`
--
CREATE TABLE IF NOT EXISTS `tbl_detalles_pedidos` (
`iddetalle_ped` int(11) NOT NULL AUTO_INCREMENT,
`fkpedido` int(11) NOT NULL,
`fkproducto` int(11) NOT NULL,
`cantidad` int(11) NOT NULL,
`medida` varchar(10) COLLATE utf8_spanish2_ci DEFAULT NULL,
`precio_unitario` double(11,2) DEFAULT NULL,
`precio_blt` double(11,2) DEFAULT NULL,
`subtotal` double(11,2) DEFAULT NULL,
`estatus_det_pedido` varchar(10) COLLATE utf8_spanish2_ci DEFAULT 'EN ESPERA',
PRIMARY KEY (`iddetalle_ped`),
KEY `fkpedido` (`fkpedido`),
KEY `fkproducto` (`fkproducto`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_spanish2_ci AUTO_INCREMENT=5 ;
--
-- Volcar la base de datos para la tabla `tbl_detalles_pedidos`
--
INSERT INTO `tbl_detalles_pedidos` (`iddetalle_ped`, `fkpedido`, `fkproducto`, `cantidad`, `medida`, `precio_unitario`, `precio_blt`, `subtotal`, `estatus_det_pedido`) VALUES
(3, 16, 7, 12, 'BLT.', NULL, 3000.00, 36000.00, 'POR PAGAR'),
(4, 16, 6, 12, 'BLT.', NULL, 2000.00, 24000.00, 'POR PAGAR');
--
-- (Evento) desencadenante `tbl_detalles_pedidos`
--
DROP TRIGGER IF EXISTS `aumento_inventario`;
DELIMITER //
CREATE TRIGGER `aumento_inventario` AFTER UPDATE ON `tbl_detalles_pedidos`
FOR EACH ROW BEGIN
IF NEW.estatus_det_pedido = 'POR PAGAR' THEN
update tbl_productos set
cantidad_blt = cantidad_blt + NEW.cantidad,
cantidad_unitaria = cantidad_unitaria + (cant_unidades_en_blt * NEW.cantidad)
where idproducto = NEW.fkproducto;
update tbl_productos set estatus_prod='ACTIVO'
where idproducto = NEW.fkproducto and cantidad_unitaria >0;
update tbl_productos set estatus_prod='INACTIVO'
where idproducto = NEW.fkproducto and cantidad_unitaria <=0;
ELSEIF NEW.estatus_det_pedido = 'ANULADO' THEN
update tbl_productos set
cantidad_blt = cantidad_blt - NEW.cantidad,
cantidad_unitaria = cantidad_unitaria - (cant_unidades_en_blt * NEW.cantidad)
where idproducto = NEW.fkproducto;
update tbl_productos set estatus_prod='ACTIVO'
where idproducto = NEW.fkproducto and cantidad_unitaria >0;
update tbl_productos set estatus_prod='INACTIVO'
where idproducto = NEW.fkproducto and cantidad_unitaria <=0;
END IF;
END
//
DELIMITER ;
DROP TRIGGER IF EXISTS `disminuir_inventario`;
DELIMITER //
CREATE TRIGGER `disminuir_inventario` AFTER DELETE ON `tbl_detalles_pedidos`
FOR EACH ROW BEGIN
IF OLD.estatus_det_pedido = 'PAGADO' THEN
update tbl_productos set
cantidad_blt = cantidad_blt - OLD.cantidad,
cantidad_unitaria = cantidad_unitaria - (cant_unidades_en_blt * OLD.cantidad)
where idproducto = OLD.fkproducto;
update tbl_productos set estatus_prod='ACTIVO'
where idproducto = OLD.fkproducto and cantidad_unitaria >0;
update tbl_productos set estatus_prod='INACTIVO'
where idproducto = OLD.fkproducto and cantidad_unitaria <=0;
END IF;
END
//
DELIMITER ;
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `tbl_detalles_ventas`
--
CREATE TABLE IF NOT EXISTS `tbl_detalles_ventas` (
`fkventa` int(11) NOT NULL,
`fkproducto` int(11) NOT NULL,
`cantidad` int(11) NOT NULL,
`medida` varchar(10) COLLATE utf8_spanish2_ci NOT NULL,
`precio` double(11,2) NOT NULL,
`precio_total` double(11,2) NOT NULL,
`costo_prod` double(11,2) DEFAULT NULL,
`precio_factura` double(11,2) DEFAULT NULL,
KEY `fkproducto` (`fkproducto`),
KEY `fkventa` (`fkventa`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_spanish2_ci;
--
-- Volcar la base de datos para la tabla `tbl_detalles_ventas`
--
INSERT INTO `tbl_detalles_ventas` (`fkventa`, `fkproducto`, `cantidad`, `medida`, `precio`, `precio_total`, `costo_prod`, `precio_factura`) VALUES
(18, 7, 12, 'BLT.', 6000.00, 72000.00, 3000.00, 6500.00),
(18, 6, 10, 'BLT.', 3000.00, 30000.00, 2000.00, 3500.00),
(19, 7, 15, 'BLT.', 6000.00, 90000.00, 3000.00, 8500.00),
(19, 6, 12, 'BLT.', 2600.00, 31200.00, 2000.00, 3500.00);
--
-- (Evento) desencadenante `tbl_detalles_ventas`
--
DROP TRIGGER IF EXISTS `trigger_restar_inventario`;
DELIMITER //
CREATE TRIGGER `trigger_restar_inventario` AFTER INSERT ON `tbl_detalles_ventas`
FOR EACH ROW BEGIN
DECLARE y INT DEFAULT 0;
DECLARE x DOUBLE (11,2) DEFAULT 0.0;
DECLARE z INT DEFAULT 0;
DECLARE cantuniblt INT DEFAULT 0;
IF NEW.medida='BLT.' THEN
UPDATE tbl_productos SET cantidad_blt=cantidad_blt-NEW.cantidad, cantidad_unitaria=cantidad_unitaria-cant_unidades_en_blt WHERE idproducto=NEW.fkproducto;
ELSE
SELECT cant_unidades_en_blt INTO cantuniblt FROM tbl_productos WHERE idproducto=NEW.fkproducto;
IF NEW.cantidad >= cantuniblt THEN
SET y:=NEW.cantidad / cantuniblt;
SET x:=(NEW.cantidad / cantuniblt) - y;
SET z:= x*cantuniblt;
UPDATE tbl_productos SET cantidad_unitaria=cantidad_unitaria-NEW.cantidad, cantidad_blt=cantidad_blt-y WHERE idproducto=NEW.fkproducto;
ELSE
UPDATE tbl_productos SET cantidad_unitaria=cantidad_unitaria-NEW.cantidad WHERE idproducto=NEW.fkproducto;
END IF;
END IF;
END
//
DELIMITER ;
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `tbl_fletes`
--
CREATE TABLE IF NOT EXISTS `tbl_fletes` (
`idflete` int(11) NOT NULL AUTO_INCREMENT,
`fecha` datetime NOT NULL,
`transportista` varchar(200) COLLATE utf8_spanish2_ci NOT NULL,
`fkpedido` int(11) NOT NULL,
`costo` double(11,2) NOT NULL,
`estatus_flete` varchar(20) COLLATE utf8_spanish2_ci NOT NULL,
PRIMARY KEY (`idflete`),
KEY `fkpedido` (`fkpedido`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_spanish2_ci AUTO_INCREMENT=3 ;
--
-- Volcar la base de datos para la tabla `tbl_fletes`
--
--
-- (Evento) desencadenante `tbl_fletes`
--
DROP TRIGGER IF EXISTS `trigger_cta_pagar_flete`;
DELIMITER //
CREATE TRIGGER `trigger_cta_pagar_flete` AFTER INSERT ON `tbl_fletes`
FOR EACH ROW begin
if new.estatus_flete='PAGADO' then
insert into tbl_cuentas_pagar (fkdeuda, tipo_deuda, tabla, monto_total, monto_pagar, monto_debe, estatus_ctapag, fecha)
values (new.idflete, 'FLETE' , 'tbl_fletes', new.costo, new.costo, 0, new.estatus_flete, now());
end if;
end
//
DELIMITER ;
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `tbl_modalidades_pagos`
--
CREATE TABLE IF NOT EXISTS `tbl_modalidades_pagos` (
`idmodalidad` int(11) NOT NULL AUTO_INCREMENT,
`descripcion` varchar(20) COLLATE utf8_spanish2_ci NOT NULL,
PRIMARY KEY (`idmodalidad`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_spanish2_ci AUTO_INCREMENT=10 ;
--
-- Volcar la base de datos para la tabla `tbl_modalidades_pagos`
--
INSERT INTO `tbl_modalidades_pagos` (`idmodalidad`, `descripcion`) VALUES
(1, '--'),
(2, 'TRANSFERENCIA'),
(3, 'DEPOSITO'),
(4, 'EFECTIVO'),
(5, 'TDD'),
(6, 'TDC'),
(7, 'CHEQUE');
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `tbl_nros_cuentas_vendedores`
--
CREATE TABLE IF NOT EXISTS `tbl_nros_cuentas_vendedores` (
`fkvendedor` int(11) NOT NULL,
`banco` varchar(50) COLLATE utf8_spanish2_ci NOT NULL,
`cuenta` varchar(20) COLLATE utf8_spanish2_ci NOT NULL,
`tipo_cuenta` varchar(10) COLLATE utf8_spanish2_ci NOT NULL,
`estatus_cta_vend` varchar(10) COLLATE utf8_spanish2_ci NOT NULL,
KEY `fkvendedor` (`fkvendedor`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_spanish2_ci;
--
-- Volcar la base de datos para la tabla `tbl_nros_cuentas_vendedores`
--
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `tbl_pagos`
--
CREATE TABLE IF NOT EXISTS `tbl_pagos` (
`idpago` int(11) NOT NULL AUTO_INCREMENT,
`fkdeuda` int(11) NOT NULL,
`tipo_pago` varchar(10) COLLATE utf8_spanish2_ci NOT NULL,
`monto` double(11,2) NOT NULL,
`modalidad_pago` varchar(20) COLLATE utf8_spanish2_ci NOT NULL,
`banco` varchar(50) COLLATE utf8_spanish2_ci NOT NULL,
`fecha` date NOT NULL,
`nro_referencia` varchar(20) COLLATE utf8_spanish2_ci DEFAULT NULL,
`estatus_pago` varchar(10) COLLATE utf8_spanish2_ci NOT NULL,
PRIMARY KEY (`idpago`),
KEY `fkdeuda` (`fkdeuda`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_spanish2_ci AUTO_INCREMENT=4 ;
--
-- Volcar la base de datos para la tabla `tbl_pagos`
--
INSERT INTO `tbl_pagos` (`idpago`, `fkdeuda`, `tipo_pago`, `monto`, `modalidad_pago`, `banco`, `fecha`, `nro_referencia`, `estatus_pago`) VALUES
(3, 16, 'PEDIDO', 5000.00, 'CHEQUE', 'vene', '2018-10-20', '6y6y6', 'PAGADO');
--
-- (Evento) desencadenante `tbl_pagos`
--
DROP TRIGGER IF EXISTS `trigger_pagos`;
DELIMITER //
CREATE TRIGGER `trigger_pagos` AFTER INSERT ON `tbl_pagos`
FOR EACH ROW begin
UPDATE tbl_cuentas_pagar SET
monto_pagar=monto_pagar-new.monto,
monto_debe=monto_debe+new.monto
WHERE tipo_deuda=new.tipo_pago AND fkdeuda=new.fkdeuda;
UPDATE tbl_cuentas_pagar SET
estatus_ctapag='PAGADO'
WHERE tipo_deuda=new.tipo_pago AND fkdeuda=new.fkdeuda AND (monto_pagar<=0 OR monto_debe>=monto_total);
UPDATE tbl_cuentas_pagar SET
estatus_ctapag='POR PAGAR'
WHERE tipo_deuda=new.tipo_pago AND fkdeuda=new.fkdeuda AND (monto_pagar>0 OR monto_debe<monto_total);
end
//
DELIMITER ;
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `tbl_parametros`
--
CREATE TABLE IF NOT EXISTS `tbl_parametros` (
`iva` double(11,2) DEFAULT NULL,
`nombre_empresa` varchar(50) COLLATE utf8_spanish2_ci DEFAULT NULL,
`rif` varchar(12) COLLATE utf8_spanish2_ci DEFAULT NULL,
`direccion` varchar(500) COLLATE utf8_spanish2_ci DEFAULT NULL,
`ciudad` varchar(50) COLLATE utf8_spanish2_ci DEFAULT NULL,
`region` varchar(50) COLLATE utf8_spanish2_ci DEFAULT NULL,
`nombre_encargado` varchar(50) COLLATE utf8_spanish2_ci DEFAULT NULL,
`fono` varchar(50) COLLATE utf8_spanish2_ci DEFAULT NULL,
`porc_ganancia` double(11,2) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_spanish2_ci;
--
-- Volcar la base de datos para la tabla `tbl_parametros`
--
INSERT INTO `tbl_parametros` (`iva`, `nombre_empresa`, `rif`, `direccion`, `ciudad`, `region`, `nombre_encargado`, `fono`, `porc_ganancia`) VALUES
(16.00, 'DISTRIBUIDORA MERITZE ORTEGA, C.A', 'J-30953444-0', 'CALLE MISISSIPI CASA NRO. 2 URB FCO. DE MIRANDA SAN FELIX - EDO. BOLIVAR', 'Guayana', 'San Felix', 'Carmen Monterola', '0414-', 30.00);
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `tbl_pedidos`
--
CREATE TABLE IF NOT EXISTS `tbl_pedidos` (
`idpedido` int(11) NOT NULL AUTO_INCREMENT,
`fecha_pedido` datetime NOT NULL,
`fkproveedor` int(11) NOT NULL,
`forma_pago` varchar(20) COLLATE utf8_spanish2_ci DEFAULT NULL,
`nro_operacion` varchar(20) COLLATE utf8_spanish2_ci DEFAULT NULL,
`fecha_llegada` date DEFAULT NULL,
`subtotal` double(11,2) DEFAULT NULL,
`iva` double(11,2) DEFAULT NULL,
`total_pedido` double(11,2) DEFAULT NULL,
`estatus_pedido` varchar(10) COLLATE utf8_spanish2_ci DEFAULT 'EN ESPERA',
PRIMARY KEY (`idpedido`),
KEY `fkproveedor` (`fkproveedor`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_spanish2_ci AUTO_INCREMENT=17 ;
--
-- Volcar la base de datos para la tabla `tbl_pedidos`
--
INSERT INTO `tbl_pedidos` (`idpedido`, `fecha_pedido`, `fkproveedor`, `forma_pago`, `nro_operacion`, `fecha_llegada`, `subtotal`, `iva`, `total_pedido`, `estatus_pedido`) VALUES
(16, '2018-10-20 19:37:35', 3, '', '', '2018-10-20', 60000.00, 0.00, 60000.00, 'POR PAGAR');
--
-- (Evento) desencadenante `tbl_pedidos`
--
DROP TRIGGER IF EXISTS `trigger_cta_pagar_pedido`;
DELIMITER //
CREATE TRIGGER `trigger_cta_pagar_pedido` AFTER UPDATE ON `tbl_pedidos`
FOR EACH ROW begin
IF NEW.estatus_pedido='POR PAGAR' THEN
IF EXISTS(SELECT fkdeuda FROM tbl_cuentas_pagar WHERE tipo_deuda='PEDIDO' AND fkdeuda=NEW.idpedido) THEN
UPDATE tbl_cuentas_pagar SET
monto_total=NEW.total_pedido,
monto_pagar=NEW.total_pedido
WHERE tipo_deuda='PEDIDO' AND fkdeuda=NEW.idpedido;
ELSE
insert into tbl_cuentas_pagar (fkdeuda, tipo_deuda, tabla, monto_total, monto_pagar, monto_debe, estatus_ctapag, fecha)
values (new.idpedido, 'PEDIDO' , 'tbl_pedidos', new.total_pedido, new.total_pedido, 0, 'POR PAGAR', now());
END IF;
END IF;
IF NEW.estatus_pedido='EN ESPERA' THEN
UPDATE tbl_cuentas_pagar SET
estatus_ctapag='POR PAGAR'
WHERE tipo_deuda='PEDIDO' AND fkdeuda=NEW.idpedido;
END IF;
UPDATE tbl_cuentas_pagar SET
estatus_ctapag='PAGADA'
WHERE tipo_deuda='PEDIDO' AND fkdeuda=NEW.idpedido AND (monto_pagar<=0 OR monto_debe>=monto_total);
UPDATE tbl_cuentas_pagar SET
estatus_ctapag='POR PAGAR'
WHERE tipo_deuda='PEDIDO' AND fkdeuda=NEW.idpedido AND (monto_pagar>0 OR monto_debe<monto_total);
IF NEW.estatus_pedido='ANULADO' THEN
UPDATE tbl_cuentas_pagar SET
estatus_ctapag='ANULADA'
WHERE tipo_deuda='PEDIDO' AND fkdeuda=NEW.idpedido;
END IF;
end
//
DELIMITER ;
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `tbl_precios_productos`
--
CREATE TABLE IF NOT EXISTS `tbl_precios_productos` (
`fkproducto` int(11) NOT NULL,
`descripcion_precio` varchar(30) COLLATE utf8_spanish2_ci NOT NULL,
`precio_unitario` double(11,2) DEFAULT NULL,
`precio_blt` double(11,2) DEFAULT NULL,
`estatus_precio` varchar(10) COLLATE utf8_spanish2_ci NOT NULL DEFAULT 'ACTIVO',
`fecha_ultim_actualizacion` date NOT NULL,
KEY `fkproducto` (`fkproducto`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_spanish2_ci;
--
-- Volcar la base de datos para la tabla `tbl_precios_productos`
--
INSERT INTO `tbl_precios_productos` (`fkproducto`, `descripcion_precio`, `precio_unitario`, `precio_blt`, `estatus_precio`, `fecha_ultim_actualizacion`) VALUES
(6, 'USUARA', 125.00, 3000.00, 'ACTIVO', '2018-10-20'),
(6, 'Precio Regulado', 108.33, 2600.00, 'ACTIVO', '2018-10-20'),
(7, 'USURA', 250.00, 6000.00, 'ACTIVO', '2018-10-20'),
(7, 'Precio Regulado', 162.50, 3900.00, 'ACTIVO', '2018-10-20');
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `tbl_precios_ventas_vendedores`
--
CREATE TABLE IF NOT EXISTS `tbl_precios_ventas_vendedores` (
`fkventa` int(11) NOT NULL,
`fkproducto` int(11) NOT NULL,
`precio_vendedor` double(11,2) NOT NULL,
`cantidad` int(11) NOT NULL,
`total` double(11,2) NOT NULL,
KEY `fkventa` (`fkventa`),
KEY `fkproducto` (`fkproducto`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_spanish2_ci;
--
-- Volcar la base de datos para la tabla `tbl_precios_ventas_vendedores`
--
INSERT INTO `tbl_precios_ventas_vendedores` (`fkventa`, `fkproducto`, `precio_vendedor`, `cantidad`, `total`) VALUES
(18, 7, 4000.00, 12, 48000.00),
(18, 6, 5000.00, 10, 50000.00),
(19, 7, 3000.00, 15, 36000.00),
(19, 6, 8000.00, 12, 120000.00);
--
-- (Evento) desencadenante `tbl_precios_ventas_vendedores`
--
DROP TRIGGER IF EXISTS `trigger_cta_pagar_vendedor`;
DELIMITER //
CREATE TRIGGER `trigger_cta_pagar_vendedor` AFTER INSERT ON `tbl_precios_ventas_vendedores`
FOR EACH ROW begin
IF EXISTS(SELECT fkdeuda FROM tbl_cuentas_pagar WHERE tipo_deuda='VENDEDOR' AND fkdeuda=NEW.fkventa) THEN
UPDATE tbl_cuentas_pagar SET
monto_total=monto_total+NEW.total,
monto_pagar=monto_pagar+NEW.total
WHERE tipo_deuda='VENDEDOR' AND fkdeuda=NEW.fkventa;
ELSE
INSERT INTO tbl_cuentas_pagar (fkdeuda, tipo_deuda, tabla, monto_total, monto_pagar, monto_debe, estatus_ctapag, fecha)
VALUES (NEW.fkventa, 'VENDEDOR' , 'tbl_precios_ventas_vendedores', NEW.total, NEW.total, 0, 'POR PAGAR', now());
END IF;
end
//
DELIMITER ;
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `tbl_productos`
--
CREATE TABLE IF NOT EXISTS `tbl_productos` (
`idproducto` int(11) NOT NULL AUTO_INCREMENT,
`descripcion_prod` varchar(50) COLLATE utf8_spanish2_ci NOT NULL,
`marca` varchar(30) COLLATE utf8_spanish2_ci NOT NULL,
`cantidad_unitaria` int(11) NOT NULL,
`cantidad_blt` int(11) NOT NULL,
`cant_unidades_en_blt` int(11) NOT NULL,
`costo` double(11,2) DEFAULT NULL,
`estatus_prod` varchar(10) COLLATE utf8_spanish2_ci NOT NULL DEFAULT 'ACTIVO',
PRIMARY KEY (`idproducto`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_spanish2_ci AUTO_INCREMENT=8 ;
--
-- Volcar la base de datos para la tabla `tbl_productos`
--
INSERT INTO `tbl_productos` (`idproducto`, `descripcion_prod`, `marca`, `cantidad_unitaria`, `cantidad_blt`, `cant_unidades_en_blt`, `costo`, `estatus_prod`) VALUES
(6, 'AR<NAME>', 'MARY', 240, 110, 24, 2000.00, 'ACTIVO'),
(7, 'PASTA LARGA', 'RONCO', 240, 35, 24, 3000.00, 'ACTIVO');
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `tbl_proveedores`
--
CREATE TABLE IF NOT EXISTS `tbl_proveedores` (
`idproveedor` int(11) NOT NULL AUTO_INCREMENT,
`rif` varchar(12) COLLATE utf8_spanish2_ci NOT NULL,
`razon_social` varchar(50) COLLATE utf8_spanish2_ci NOT NULL,
`representante_legal` varchar(50) COLLATE utf8_spanish2_ci DEFAULT NULL,
`direccion` varchar(500) COLLATE utf8_spanish2_ci DEFAULT NULL,
`fono` varchar(20) COLLATE utf8_spanish2_ci DEFAULT NULL,
`email` varchar(100) COLLATE utf8_spanish2_ci DEFAULT NULL,
`estatus_prov` varchar(10) COLLATE utf8_spanish2_ci NOT NULL DEFAULT 'ACTIVO',
PRIMARY KEY (`idproveedor`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_spanish2_ci AUTO_INCREMENT=4 ;
--
-- Volcar la base de datos para la tabla `tbl_proveedores`
--
INSERT INTO `tbl_proveedores` (`idproveedor`, `rif`, `razon_social`, `representante_legal`, `direccion`, `fono`, `email`, `estatus_prov`) VALUES
(3, '0000000', '<NAME>', '<NAME>', '', '', '', 'ACTIVO');
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `tbl_regalias`
--
CREATE TABLE IF NOT EXISTS `tbl_regalias` (
`idregalia` int(11) NOT NULL AUTO_INCREMENT,
`fkpedido` int(11) NOT NULL,
`fecha` datetime NOT NULL,
`observacion` varchar(200) COLLATE utf8_spanish2_ci DEFAULT NULL,
`beneficiario` varchar(100) COLLATE utf8_spanish2_ci NOT NULL,
`responsable` varchar(100) COLLATE utf8_spanish2_ci DEFAULT NULL,
`fkproducto` int(11) NOT NULL,
`cantidad` int(11) NOT NULL,
`medicion` varchar(10) COLLATE utf8_spanish2_ci NOT NULL,
`estatus_reg` varchar(10) COLLATE utf8_spanish2_ci NOT NULL,
PRIMARY KEY (`idregalia`),
KEY `fkproducto` (`fkproducto`),
KEY `fkpedido` (`fkpedido`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_spanish2_ci AUTO_INCREMENT=1 ;
--
-- Volcar la base de datos para la tabla `tbl_regalias`
--
--
-- (Evento) desencadenante `tbl_regalias`
--
DROP TRIGGER IF EXISTS `trigger_restar_inventario_regalia`;
DELIMITER //
CREATE TRIGGER `trigger_restar_inventario_regalia` AFTER INSERT ON `tbl_regalias`
FOR EACH ROW BEGIN
DECLARE y INT DEFAULT 0;
DECLARE x DOUBLE (11,2) DEFAULT 0.0;
DECLARE z INT DEFAULT 0;
DECLARE cantuniblt INT DEFAULT 0;
IF NEW.medicion='BLT.' THEN
UPDATE tbl_productos SET cantidad_blt=cantidad_blt-NEW.cantidad, cantidad_unitaria=cantidad_unitaria-cant_unidades_en_blt WHERE idproducto=NEW.fkproducto;
ELSE
SELECT cant_unidades_en_blt INTO cantuniblt FROM tbl_productos WHERE idproducto=NEW.fkproducto;
IF NEW.cantidad >= cantuniblt THEN
SET y:=NEW.cantidad / cantuniblt;
SET x:=(NEW.cantidad / cantuniblt) - y;
SET z:= x*cantuniblt;
UPDATE tbl_productos SET cantidad_unitaria=cantidad_unitaria-NEW.cantidad, cantidad_blt=cantidad_blt-y WHERE idproducto=NEW.fkproducto;
ELSE
UPDATE tbl_productos SET cantidad_unitaria=cantidad_unitaria-NEW.cantidad WHERE idproducto=NEW.fkproducto;
END IF;
END IF;
END
//
DELIMITER ;
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `tbl_usuarios`
--
CREATE TABLE IF NOT EXISTS `tbl_usuarios` (
`login` varchar(6) COLLATE utf8_spanish2_ci NOT NULL,
`passw` varchar(32) COLLATE utf8_spanish2_ci NOT NULL,
`user_name` varchar(30) COLLATE utf8_spanish2_ci NOT NULL,
`nivel` int(11) NOT NULL,
`email` varchar(80) COLLATE utf8_spanish2_ci NOT NULL,
`pregunta_secreta_1` varchar(30) COLLATE utf8_spanish2_ci NOT NULL,
`respuesta_secreta_1` varchar(30) COLLATE utf8_spanish2_ci NOT NULL,
`pregunta_secreta_2` varchar(30) COLLATE utf8_spanish2_ci NOT NULL,
`respuesta_secreta_2` varchar(30) COLLATE utf8_spanish2_ci NOT NULL,
`estatus_user` varchar(10) COLLATE utf8_spanish2_ci NOT NULL DEFAULT 'ACTIVO',
PRIMARY KEY (`login`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_spanish2_ci;
--
-- Volcar la base de datos para la tabla `tbl_usuarios`
--
INSERT INTO `tbl_usuarios` (`login`, `passw`, `user_name`, `nivel`, `email`, `pregunta_secreta_1`, `respuesta_secreta_1`, `pregunta_secreta_2`, `respuesta_secreta_2`, `estatus_user`) VALUES
('rlunar', '<PASSWORD>', '<NAME>', 1, 'roberto_lunar@<EMAIL>.', '-', '-', '-', '-', 'ACTIVO');
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `tbl_vendedores`
--
CREATE TABLE IF NOT EXISTS `tbl_vendedores` (
`idvendedor` int(11) NOT NULL AUTO_INCREMENT,
`rif` varchar(12) COLLATE utf8_spanish2_ci NOT NULL,
`nombres` varchar(100) COLLATE utf8_spanish2_ci NOT NULL,
`email` varchar(100) COLLATE utf8_spanish2_ci DEFAULT NULL,
`fono` varchar(20) COLLATE utf8_spanish2_ci DEFAULT NULL,
`estatus_vend` varchar(10) COLLATE utf8_spanish2_ci NOT NULL DEFAULT 'ACTIVO',
PRIMARY KEY (`idvendedor`),
UNIQUE KEY `rif` (`rif`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_spanish2_ci AUTO_INCREMENT=4 ;
--
-- Volcar la base de datos para la tabla `tbl_vendedores`
--
INSERT INTO `tbl_vendedores` (`idvendedor`, `rif`, `nombres`, `email`, `fono`, `estatus_vend`) VALUES
(3, '16395343', 'ROBERTO', '<EMAIL>', '04140952386', 'ACTIVO');
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `tbl_ventas`
--
CREATE TABLE IF NOT EXISTS `tbl_ventas` (
`idventa` int(11) NOT NULL AUTO_INCREMENT,
`fkvendedor` int(11) NOT NULL,
`fecha` datetime NOT NULL,
`fkcliente` int(11) NOT NULL,
`iva` varchar(12) COLLATE utf8_spanish2_ci NOT NULL,
`subtotal` double(11,2) NOT NULL,
`total_neto` double(11,2) NOT NULL,
`excento` double(11,2) NOT NULL,
`estatus_venta` varchar(10) COLLATE utf8_spanish2_ci NOT NULL COMMENT 'pendiente, pagada, anulada',
PRIMARY KEY (`idventa`),
KEY `fkcliente` (`fkcliente`),
KEY `fkvendedor` (`fkvendedor`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_spanish2_ci AUTO_INCREMENT=20 ;
--
-- Volcar la base de datos para la tabla `tbl_ventas`
--
INSERT INTO `tbl_ventas` (`idventa`, `fkvendedor`, `fecha`, `fkcliente`, `iva`, `subtotal`, `total_neto`, `excento`, `estatus_venta`) VALUES
(18, 3, '2018-10-20 20:06:27', 38, '16', 102000.00, 102000.00, 0.00, 'PENDIENTE'),
(19, 3, '2018-10-20 20:12:21', 12, '16', 121200.00, 121200.00, 0.00, 'PAGADA');
--
-- (Evento) desencadenante `tbl_ventas`
--
DROP TRIGGER IF EXISTS `trigger_cuenta_por_cobrar`;
DELIMITER //
CREATE TRIGGER `trigger_cuenta_por_cobrar` AFTER INSERT ON `tbl_ventas`
FOR EACH ROW BEGIN
insert into tbl_cuentas_cobrar (fkventa, monto_total, monto_debe, monto_haber, estatus) values (new.idventa, new.total_neto, new.total_neto, 0.0, new.estatus_venta);
END
//
DELIMITER ;
DROP TRIGGER IF EXISTS `trigger_borrarcuenta_por_pagar`;
DELIMITER //
CREATE TRIGGER `trigger_borrarcuenta_por_pagar` AFTER UPDATE ON `tbl_ventas`
FOR EACH ROW begin
if new.estatus_venta='ANULADA' then
delete from cuentas_cobrar where fkventa=new.idventa;
delete from cuentas_pagar where fkdeuda=new.idventa and tipo_deuda='VENDEDOR';
end if;
end
//
DELIMITER ;
-- --------------------------------------------------------
--
-- Estructura Stand-in para la vista `vw_abonos`
--
CREATE TABLE IF NOT EXISTS `vw_abonos` (
`idabono` int(11)
,`fkventa` int(11)
,`monto` double(11,2)
,`modalidad_pago` varchar(20)
,`fecha_abono` date
,`nro_referencia` varchar(20)
,`fkvendedor` int(11)
,`fecha_venta` varchar(10)
,`fkcliente` int(11)
,`total_neto` double(11,2)
,`estatus_venta` varchar(10)
,`vendedor` varchar(117)
,`nombre_cliente` varchar(67)
);
-- --------------------------------------------------------
--
-- Estructura Stand-in para la vista `vw_cuentas_cobrar`
--
CREATE TABLE IF NOT EXISTS `vw_cuentas_cobrar` (
`idcuenta_cob` int(11)
,`fkventa` int(11)
,`monto_total` double(11,2)
,`monto_debe` double(11,2)
,`monto_haber` double(11,2)
,`estatus` varchar(10)
,`fkvendedor` int(11)
,`fecha` varchar(10)
,`estatus_venta` varchar(10)
,`fkcliente` int(11)
,`vendedor` varchar(113)
,`cliente` varchar(63)
);
-- --------------------------------------------------------
--
-- Estructura Stand-in para la vista `vw_cuentas_pagar`
--
CREATE TABLE IF NOT EXISTS `vw_cuentas_pagar` (
`idcuenta_pag` int(11)
,`fkdeuda` int(11)
,`tipo_deuda` varchar(10)
,`tabla` varchar(50)
,`monto_total` double(11,2)
,`monto_pagar` double(11,2)
,`monto_debe` double(11,2)
,`estatus_ctapag` varchar(10)
,`fecha` date
,`fk` int(11)
,`descripcion` varchar(200)
);
-- --------------------------------------------------------
--
-- Estructura Stand-in para la vista `vw_formas_pagos`
--
CREATE TABLE IF NOT EXISTS `vw_formas_pagos` (
`idpago` int(11)
,`fkdeuda` int(11)
,`tipo_pago` varchar(10)
,`monto` double(11,2)
,`modalidad_pago` varchar(20)
,`banco` varchar(50)
,`fecha` date
,`nro_referencia` varchar(20)
,`estatus_pago` varchar(10)
,`descripcion` varchar(200)
,`fkacreedor` int(11)
);
-- --------------------------------------------------------
--
-- Estructura Stand-in para la vista `vw_graficos_1`
--
CREATE TABLE IF NOT EXISTS `vw_graficos_1` (
`label` varchar(8)
,`dato` double(19,2)
);
-- --------------------------------------------------------
--
-- Estructura Stand-in para la vista `vw_graficos_2`
--
CREATE TABLE IF NOT EXISTS `vw_graficos_2` (
`label` varchar(8)
,`dato` double(19,2)
);
-- --------------------------------------------------------
--
-- Estructura Stand-in para la vista `vw_precios_productos_blt`
--
CREATE TABLE IF NOT EXISTS `vw_precios_productos_blt` (
`descripcion_precio` varchar(46)
,`precio` double(11,2)
,`fkproducto` int(11)
);
-- --------------------------------------------------------
--
-- Estructura Stand-in para la vista `vw_precios_productos_unit`
--
CREATE TABLE IF NOT EXISTS `vw_precios_productos_unit` (
`descripcion_precio` varchar(46)
,`precio` double(11,2)
,`fkproducto` int(11)
);
-- --------------------------------------------------------
--
-- Estructura Stand-in para la vista `vw_productos`
--
CREATE TABLE IF NOT EXISTS `vw_productos` (
`idproducto` int(11)
,`descripcion` varchar(81)
,`estatus_prod` varchar(10)
);
-- --------------------------------------------------------
--
-- Estructura Stand-in para la vista `vw_productos_pedidos`
--
CREATE TABLE IF NOT EXISTS `vw_productos_pedidos` (
`fkproducto` int(11)
,`fkpedido` int(11)
,`producto` varchar(81)
);
-- --------------------------------------------------------
--
-- Estructura Stand-in para la vista `vw_resumen_general`
--
CREATE TABLE IF NOT EXISTS `vw_resumen_general` (
`idventa` int(11)
,`fkvendedor` int(11)
,`fecha` datetime
,`fkcliente` int(11)
,`iva` varchar(12)
,`subtotal` double(11,2)
,`estatus_venta` varchar(10)
,`cliente` varchar(63)
,`vendedor` varchar(113)
,`fkproducto` int(11)
,`cantidad` varchar(21)
,`precio` double(11,2)
,`monto_venta` double(11,2)
,`producto` varchar(81)
,`monto` double(11,2)
,`modalidad_pago` varchar(20)
,`fecha_abono` date
,`nro_referencia` varchar(20)
,`precio_vendedor` double(11,2)
,`total_venta_vendedor` double(11,2)
,`precio_venta` double(11,2)
,`pago_vendedor` double(19,2)
,`ganancia` double(19,2)
);
-- --------------------------------------------------------
--
-- Estructura Stand-in para la vista `vw_vendedores_ctaspagar`
--
CREATE TABLE IF NOT EXISTS `vw_vendedores_ctaspagar` (
`fk` int(11)
,`descripcion` varchar(200)
);
-- --------------------------------------------------------
--
-- Estructura Stand-in para la vista `vw_ventas`
--
CREATE TABLE IF NOT EXISTS `vw_ventas` (
`idventa` int(11)
,`idvendedor` int(11)
,`rif_vendedor` varchar(12)
,`nombres` varchar(100)
,`idcliente` int(11)
,`rif_cliente` varchar(12)
,`razon_social` varchar(50)
,`fecha` datetime
,`subtotal` double(11,2)
,`total_neto` double(11,2)
,`excento` double(11,2)
,`estatus_venta` varchar(10)
);
-- --------------------------------------------------------
--
-- Estructura para la vista `vw_abonos`
--
DROP TABLE IF EXISTS `vw_abonos`;
CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vw_abonos` AS select `tbl_abonos`.`idabono` AS `idabono`,`tbl_abonos`.`fkventa` AS `fkventa`,`tbl_abonos`.`monto` AS `monto`,`tbl_abonos`.`modalidad_pago` AS `modalidad_pago`,`tbl_abonos`.`fecha` AS `fecha_abono`,`tbl_abonos`.`nro_referencia` AS `nro_referencia`,`tbl_ventas`.`fkvendedor` AS `fkvendedor`,date_format(`tbl_ventas`.`fecha`,'%Y-%m-%d') AS `fecha_venta`,`tbl_ventas`.`fkcliente` AS `fkcliente`,`tbl_ventas`.`total_neto` AS `total_neto`,`tbl_ventas`.`estatus_venta` AS `estatus_venta`,concat(`tbl_vendedores`.`nombres`,' Rif.',`tbl_vendedores`.`rif`) AS `vendedor`,concat(`tbl_clientes`.`razon_social`,' Rif.',`tbl_clientes`.`rif`) AS `nombre_cliente` from (((`tbl_abonos` join `tbl_ventas` on((`tbl_abonos`.`fkventa` = `tbl_ventas`.`idventa`))) join `tbl_vendedores` on((`tbl_ventas`.`fkvendedor` = `tbl_vendedores`.`idvendedor`))) join `tbl_clientes` on((`tbl_ventas`.`fkcliente` = `tbl_clientes`.`idcliente`))) order by `tbl_abonos`.`fecha` desc;
-- --------------------------------------------------------
--
-- Estructura para la vista `vw_cuentas_cobrar`
--
DROP TABLE IF EXISTS `vw_cuentas_cobrar`;
CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vw_cuentas_cobrar` AS select `tbl_cuentas_cobrar`.`idcuenta_cob` AS `idcuenta_cob`,`tbl_cuentas_cobrar`.`fkventa` AS `fkventa`,`tbl_cuentas_cobrar`.`monto_total` AS `monto_total`,`tbl_cuentas_cobrar`.`monto_debe` AS `monto_debe`,`tbl_cuentas_cobrar`.`monto_haber` AS `monto_haber`,`tbl_cuentas_cobrar`.`estatus` AS `estatus`,`tbl_ventas`.`fkvendedor` AS `fkvendedor`,date_format(`tbl_ventas`.`fecha`,'%Y-%m-%d') AS `fecha`,`tbl_ventas`.`estatus_venta` AS `estatus_venta`,`tbl_ventas`.`fkcliente` AS `fkcliente`,concat(`tbl_vendedores`.`nombres`,' ',`tbl_vendedores`.`rif`) AS `vendedor`,concat(`tbl_clientes`.`razon_social`,' ',`tbl_clientes`.`rif`) AS `cliente` from (((`tbl_cuentas_cobrar` join `tbl_ventas` on((`tbl_cuentas_cobrar`.`fkventa` = `tbl_ventas`.`idventa`))) join `tbl_vendedores` on((`tbl_ventas`.`fkvendedor` = `tbl_vendedores`.`idvendedor`))) join `tbl_clientes` on((`tbl_ventas`.`fkcliente` = `tbl_clientes`.`idcliente`))) order by `tbl_ventas`.`fecha` desc;
-- --------------------------------------------------------
--
-- Estructura para la vista `vw_cuentas_pagar`
--
DROP TABLE IF EXISTS `vw_cuentas_pagar`;
CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vw_cuentas_pagar` AS select `tbl_cuentas_pagar`.`idcuenta_pag` AS `idcuenta_pag`,`tbl_cuentas_pagar`.`fkdeuda` AS `fkdeuda`,`tbl_cuentas_pagar`.`tipo_deuda` AS `tipo_deuda`,`tbl_cuentas_pagar`.`tabla` AS `tabla`,`tbl_cuentas_pagar`.`monto_total` AS `monto_total`,`tbl_cuentas_pagar`.`monto_pagar` AS `monto_pagar`,`tbl_cuentas_pagar`.`monto_debe` AS `monto_debe`,`tbl_cuentas_pagar`.`estatus_ctapag` AS `estatus_ctapag`,`tbl_cuentas_pagar`.`fecha` AS `fecha`,`tbl_pedidos`.`fkproveedor` AS `fk`,concat(`tbl_proveedores`.`razon_social`,' ',`tbl_proveedores`.`rif`) AS `descripcion` from ((`tbl_cuentas_pagar` join `tbl_pedidos` on((`tbl_cuentas_pagar`.`fkdeuda` = `tbl_pedidos`.`idpedido`))) join `tbl_proveedores` on((`tbl_pedidos`.`fkproveedor` = `tbl_proveedores`.`idproveedor`))) where (`tbl_cuentas_pagar`.`tipo_deuda` = 'PEDIDO') union select `tbl_cuentas_pagar`.`idcuenta_pag` AS `idcuenta_pag`,`tbl_cuentas_pagar`.`fkdeuda` AS `fkdeuda`,`tbl_cuentas_pagar`.`tipo_deuda` AS `tipo_deuda`,`tbl_cuentas_pagar`.`tabla` AS `tabla`,`tbl_cuentas_pagar`.`monto_total` AS `monto_total`,`tbl_cuentas_pagar`.`monto_pagar` AS `monto_pagar`,`tbl_cuentas_pagar`.`monto_debe` AS `monto_debe`,`tbl_cuentas_pagar`.`estatus_ctapag` AS `estatus_ctapag`,`tbl_cuentas_pagar`.`fecha` AS `fecha`,`tbl_fletes`.`fkpedido` AS `fk`,`tbl_fletes`.`transportista` AS `descripcion` from (`tbl_cuentas_pagar` join `tbl_fletes` on((`tbl_cuentas_pagar`.`fkdeuda` = `tbl_fletes`.`idflete`))) where (`tbl_cuentas_pagar`.`tipo_deuda` = 'FLETE') union select `tbl_cuentas_pagar`.`idcuenta_pag` AS `idcuenta_pag`,`tbl_cuentas_pagar`.`fkdeuda` AS `fkdeuda`,`tbl_cuentas_pagar`.`tipo_deuda` AS `tipo_deuda`,`tbl_cuentas_pagar`.`tabla` AS `tabla`,`tbl_cuentas_pagar`.`monto_total` AS `monto_total`,`tbl_cuentas_pagar`.`monto_pagar` AS `monto_pagar`,`tbl_cuentas_pagar`.`monto_debe` AS `monto_debe`,`tbl_cuentas_pagar`.`estatus_ctapag` AS `estatus_ctapag`,`tbl_cuentas_pagar`.`fecha` AS `fecha`,`tbl_ventas`.`fkvendedor` AS `fk`,concat(`tbl_vendedores`.`nombres`,' ',`tbl_vendedores`.`rif`) AS `descripcion` from ((`tbl_cuentas_pagar` join `tbl_ventas` on((`tbl_cuentas_pagar`.`fkdeuda` = `tbl_ventas`.`idventa`))) join `tbl_vendedores` on((`tbl_ventas`.`fkvendedor` = `tbl_vendedores`.`idvendedor`))) where (`tbl_cuentas_pagar`.`tipo_deuda` = 'VENDEDOR');
-- --------------------------------------------------------
--
-- Estructura para la vista `vw_formas_pagos`
--
DROP TABLE IF EXISTS `vw_formas_pagos`;
CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vw_formas_pagos` AS select `tbl_pagos`.`idpago` AS `idpago`,`tbl_pagos`.`fkdeuda` AS `fkdeuda`,`tbl_pagos`.`tipo_pago` AS `tipo_pago`,`tbl_pagos`.`monto` AS `monto`,`tbl_pagos`.`modalidad_pago` AS `modalidad_pago`,`tbl_pagos`.`banco` AS `banco`,`tbl_pagos`.`fecha` AS `fecha`,`tbl_pagos`.`nro_referencia` AS `nro_referencia`,`tbl_pagos`.`estatus_pago` AS `estatus_pago`,concat(`tbl_proveedores`.`razon_social`,' ',`tbl_proveedores`.`rif`) AS `descripcion`,`tbl_pedidos`.`fkproveedor` AS `fkacreedor` from ((`tbl_pagos` join `tbl_pedidos` on((`tbl_pagos`.`fkdeuda` = `tbl_pedidos`.`idpedido`))) join `tbl_proveedores` on((`tbl_pedidos`.`fkproveedor` = `tbl_proveedores`.`idproveedor`))) where (`tbl_pagos`.`tipo_pago` = 'PEDIDO') union select `tbl_pagos`.`idpago` AS `idpago`,`tbl_pagos`.`fkdeuda` AS `fkdeuda`,`tbl_pagos`.`tipo_pago` AS `tipo_pago`,`tbl_pagos`.`monto` AS `monto`,`tbl_pagos`.`modalidad_pago` AS `modalidad_pago`,`tbl_pagos`.`banco` AS `banco`,`tbl_pagos`.`fecha` AS `fecha`,`tbl_pagos`.`nro_referencia` AS `nro_referencia`,`tbl_pagos`.`estatus_pago` AS `estatus_pago`,`tbl_fletes`.`transportista` AS `descripcion`,`tbl_fletes`.`fkpedido` AS `fkacreedor` from (`tbl_pagos` join `tbl_fletes` on((`tbl_pagos`.`fkdeuda` = `tbl_fletes`.`idflete`))) where (`tbl_pagos`.`tipo_pago` = 'FLETE') union select `tbl_pagos`.`idpago` AS `idpago`,`tbl_pagos`.`fkdeuda` AS `fkdeuda`,`tbl_pagos`.`tipo_pago` AS `tipo_pago`,`tbl_pagos`.`monto` AS `monto`,`tbl_pagos`.`modalidad_pago` AS `modalidad_pago`,`tbl_pagos`.`banco` AS `banco`,`tbl_pagos`.`fecha` AS `fecha`,`tbl_pagos`.`nro_referencia` AS `nro_referencia`,`tbl_pagos`.`estatus_pago` AS `estatus_pago`,concat(`tbl_vendedores`.`nombres`,' ',`tbl_vendedores`.`rif`) AS `descripcion`,`tbl_ventas`.`fkvendedor` AS `fkacreedor` from ((`tbl_pagos` join `tbl_ventas` on((`tbl_pagos`.`fkdeuda` = `tbl_ventas`.`idventa`))) join `tbl_vendedores` on((`tbl_ventas`.`fkvendedor` = `tbl_vendedores`.`idvendedor`))) where (`tbl_pagos`.`tipo_pago` = 'VENDEDOR');
-- --------------------------------------------------------
--
-- Estructura para la vista `vw_graficos_1`
--
DROP TABLE IF EXISTS `vw_graficos_1`;
CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vw_graficos_1` AS select date_format(`tbl_cuentas_pagar`.`fecha`,'%d-%m-%y') AS `label`,sum(`tbl_cuentas_pagar`.`monto_pagar`) AS `dato` from `tbl_cuentas_pagar` where ((cast(`tbl_cuentas_pagar`.`fecha` as date) >= cast((now() - interval 7 day) as date)) and (`tbl_cuentas_pagar`.`estatus_ctapag` = 'POR PAGAR')) group by date_format(`tbl_cuentas_pagar`.`fecha`,'%d-%m-%y') order by `tbl_cuentas_pagar`.`fecha`;
-- --------------------------------------------------------
--
-- Estructura para la vista `vw_graficos_2`
--
DROP TABLE IF EXISTS `vw_graficos_2`;
CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vw_graficos_2` AS select date_format(`tbl_ventas`.`fecha`,'%d-%m-%y') AS `label`,sum(`tbl_cuentas_cobrar`.`monto_debe`) AS `dato` from (`tbl_cuentas_cobrar` join `tbl_ventas` on((`tbl_cuentas_cobrar`.`fkventa` = `tbl_ventas`.`idventa`))) where ((cast(`tbl_ventas`.`fecha` as date) >= cast((now() - interval 7 day) as date)) and (`tbl_cuentas_cobrar`.`estatus` = 'PENDIENTE')) group by date_format(`tbl_ventas`.`fecha`,'%d-%m-%y') order by `tbl_ventas`.`fecha`;
-- --------------------------------------------------------
--
-- Estructura para la vista `vw_precios_productos_blt`
--
DROP TABLE IF EXISTS `vw_precios_productos_blt`;
CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vw_precios_productos_blt` AS select concat(`tbl_precios_productos`.`descripcion_precio`,' Bs. ',convert(`tbl_precios_productos`.`precio_blt` using utf8)) AS `descripcion_precio`,`tbl_precios_productos`.`precio_blt` AS `precio`,`tbl_precios_productos`.`fkproducto` AS `fkproducto` from `tbl_precios_productos` where (`tbl_precios_productos`.`estatus_precio` = 'ACTIVO') order by `tbl_precios_productos`.`descripcion_precio`;
-- --------------------------------------------------------
--
-- Estructura para la vista `vw_precios_productos_unit`
--
DROP TABLE IF EXISTS `vw_precios_productos_unit`;
CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vw_precios_productos_unit` AS select concat(`tbl_precios_productos`.`descripcion_precio`,' Bs. ',convert(`tbl_precios_productos`.`precio_unitario` using utf8)) AS `descripcion_precio`,`tbl_precios_productos`.`precio_unitario` AS `precio`,`tbl_precios_productos`.`fkproducto` AS `fkproducto` from `tbl_precios_productos` where (`tbl_precios_productos`.`estatus_precio` = 'ACTIVO') order by `tbl_precios_productos`.`descripcion_precio`;
-- --------------------------------------------------------
--
-- Estructura para la vista `vw_productos`
--
DROP TABLE IF EXISTS `vw_productos`;
CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vw_productos` AS select `tbl_productos`.`idproducto` AS `idproducto`,concat(`tbl_productos`.`descripcion_prod`,' ',`tbl_productos`.`marca`) AS `descripcion`,`tbl_productos`.`estatus_prod` AS `estatus_prod` from `tbl_productos`;
-- --------------------------------------------------------
--
-- Estructura para la vista `vw_productos_pedidos`
--
DROP TABLE IF EXISTS `vw_productos_pedidos`;
CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vw_productos_pedidos` AS select `tbl_detalles_pedidos`.`fkproducto` AS `fkproducto`,`tbl_detalles_pedidos`.`fkpedido` AS `fkpedido`,concat(`tbl_productos`.`descripcion_prod`,' ',`tbl_productos`.`marca`) AS `producto` from (`tbl_detalles_pedidos` join `tbl_productos` on((`tbl_detalles_pedidos`.`fkproducto` = `tbl_productos`.`idproducto`))) order by `tbl_productos`.`descripcion_prod`;
-- --------------------------------------------------------
--
-- Estructura para la vista `vw_resumen_general`
--
DROP TABLE IF EXISTS `vw_resumen_general`;
CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vw_resumen_general` AS select `tbl_ventas`.`idventa` AS `idventa`,`tbl_ventas`.`fkvendedor` AS `fkvendedor`,`tbl_ventas`.`fecha` AS `fecha`,`tbl_ventas`.`fkcliente` AS `fkcliente`,`tbl_ventas`.`iva` AS `iva`,`tbl_ventas`.`subtotal` AS `subtotal`,`tbl_ventas`.`estatus_venta` AS `estatus_venta`,concat(`tbl_clientes`.`razon_social`,' ',`tbl_clientes`.`rif`) AS `cliente`,concat(`tbl_vendedores`.`nombres`,' ',`tbl_vendedores`.`rif`) AS `vendedor`,`tbl_detalles_ventas`.`fkproducto` AS `fkproducto`,concat(convert(`tbl_detalles_ventas`.`cantidad` using utf8),`tbl_detalles_ventas`.`medida`) AS `cantidad`,`tbl_detalles_ventas`.`precio` AS `precio`,`tbl_detalles_ventas`.`precio_total` AS `monto_venta`,concat(`tbl_productos`.`descripcion_prod`,' ',`tbl_productos`.`marca`) AS `producto`,`tbl_abonos`.`monto` AS `monto`,`tbl_abonos`.`modalidad_pago` AS `modalidad_pago`,`tbl_abonos`.`fecha` AS `fecha_abono`,`tbl_abonos`.`nro_referencia` AS `nro_referencia`,`tbl_precios_ventas_vendedores`.`precio_vendedor` AS `precio_vendedor`,`tbl_precios_ventas_vendedores`.`total` AS `total_venta_vendedor`,`tbl_detalles_ventas`.`precio_total` AS `precio_venta`,(`tbl_precios_ventas_vendedores`.`total` - `tbl_detalles_ventas`.`precio_total`) AS `pago_vendedor`,(`tbl_detalles_ventas`.`precio_total` - (`tbl_detalles_ventas`.`costo_prod` * `tbl_detalles_ventas`.`cantidad`)) AS `ganancia` from ((((((`tbl_ventas` join `tbl_detalles_ventas` on((`tbl_detalles_ventas`.`fkventa` = `tbl_ventas`.`idventa`))) join `tbl_productos` on((`tbl_detalles_ventas`.`fkproducto` = `tbl_productos`.`idproducto`))) join `tbl_clientes` on((`tbl_ventas`.`fkcliente` = `tbl_clientes`.`idcliente`))) join `tbl_vendedores` on((`tbl_ventas`.`fkvendedor` = `tbl_vendedores`.`idvendedor`))) join `tbl_precios_ventas_vendedores` on(((`tbl_precios_ventas_vendedores`.`fkventa` = `tbl_detalles_ventas`.`fkventa`) and (`tbl_detalles_ventas`.`fkproducto` = `tbl_precios_ventas_vendedores`.`fkproducto`)))) left join `tbl_abonos` on((`tbl_abonos`.`fkventa` = `tbl_ventas`.`idventa`))) order by `tbl_ventas`.`fecha` desc;
-- --------------------------------------------------------
--
-- Estructura para la vista `vw_vendedores_ctaspagar`
--
DROP TABLE IF EXISTS `vw_vendedores_ctaspagar`;
CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vw_vendedores_ctaspagar` AS select `vw_cuentas_pagar`.`fk` AS `fk`,`vw_cuentas_pagar`.`descripcion` AS `descripcion` from `vw_cuentas_pagar` where ((`vw_cuentas_pagar`.`estatus_ctapag` = 'POR PAGAR') and (`vw_cuentas_pagar`.`tipo_deuda` = 'VENDEDOR')) group by `vw_cuentas_pagar`.`fk`,`vw_cuentas_pagar`.`descripcion`;
-- --------------------------------------------------------
--
-- Estructura para la vista `vw_ventas`
--
DROP TABLE IF EXISTS `vw_ventas`;
CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vw_ventas` AS select `tbl_ventas`.`idventa` AS `idventa`,`tbl_vendedores`.`idvendedor` AS `idvendedor`,`tbl_vendedores`.`rif` AS `rif_vendedor`,`tbl_vendedores`.`nombres` AS `nombres`,`tbl_clientes`.`idcliente` AS `idcliente`,`tbl_clientes`.`rif` AS `rif_cliente`,`tbl_clientes`.`razon_social` AS `razon_social`,`tbl_ventas`.`fecha` AS `fecha`,`tbl_ventas`.`subtotal` AS `subtotal`,`tbl_ventas`.`total_neto` AS `total_neto`,`tbl_ventas`.`excento` AS `excento`,`tbl_ventas`.`estatus_venta` AS `estatus_venta` from ((`tbl_ventas` join `tbl_vendedores` on((`tbl_ventas`.`fkvendedor` = `tbl_vendedores`.`idvendedor`))) join `tbl_clientes` on((`tbl_ventas`.`fkcliente` = `tbl_clientes`.`idcliente`))) order by `tbl_ventas`.`fecha` desc;
--
-- Filtros para las tablas descargadas (dump)
--
--
-- Filtros para la tabla `tbl_abonos`
--
ALTER TABLE `tbl_abonos`
ADD CONSTRAINT `tbl_abonos_ibfk_1` FOREIGN KEY (`fkventa`) REFERENCES `tbl_ventas` (`idventa`) ON DELETE CASCADE ON UPDATE CASCADE;
--
-- Filtros para la tabla `tbl_cierres_diarios_inv`
--
ALTER TABLE `tbl_cierres_diarios_inv`
ADD CONSTRAINT `tbl_cierres_diarios_inv_ibfk_1` FOREIGN KEY (`fkproducto`) REFERENCES `tbl_productos` (`idproducto`) ON DELETE CASCADE ON UPDATE CASCADE;
--
-- Filtros para la tabla `tbl_cuentas_cobrar`
--
ALTER TABLE `tbl_cuentas_cobrar`
ADD CONSTRAINT `tbl_cuentas_cobrar_ibfk_1` FOREIGN KEY (`fkventa`) REFERENCES `tbl_ventas` (`idventa`) ON DELETE CASCADE ON UPDATE CASCADE;
--
-- Filtros para la tabla `tbl_detalles_pedidos`
--
ALTER TABLE `tbl_detalles_pedidos`
ADD CONSTRAINT `tbl_detalles_pedidos_ibfk_1` FOREIGN KEY (`fkpedido`) REFERENCES `tbl_pedidos` (`idpedido`) ON DELETE CASCADE ON UPDATE CASCADE,
ADD CONSTRAINT `tbl_detalles_pedidos_ibfk_2` FOREIGN KEY (`fkproducto`) REFERENCES `tbl_productos` (`idproducto`);
--
-- Filtros para la tabla `tbl_detalles_ventas`
--
ALTER TABLE `tbl_detalles_ventas`
ADD CONSTRAINT `tbl_detalles_ventas_ibfk_1` FOREIGN KEY (`fkproducto`) REFERENCES `tbl_productos` (`idproducto`),
ADD CONSTRAINT `tbl_detalles_ventas_ibfk_2` FOREIGN KEY (`fkventa`) REFERENCES `tbl_ventas` (`idventa`) ON DELETE CASCADE ON UPDATE CASCADE;
--
-- Filtros para la tabla `tbl_fletes`
--
ALTER TABLE `tbl_fletes`
ADD CONSTRAINT `tbl_fletes_ibfk_1` FOREIGN KEY (`fkpedido`) REFERENCES `tbl_pedidos` (`idpedido`) ON DELETE CASCADE ON UPDATE CASCADE;
--
-- Filtros para la tabla `tbl_nros_cuentas_vendedores`
--
ALTER TABLE `tbl_nros_cuentas_vendedores`
ADD CONSTRAINT `tbl_nros_cuentas_vendedores_ibfk_1` FOREIGN KEY (`fkvendedor`) REFERENCES `tbl_vendedores` (`idvendedor`) ON DELETE CASCADE ON UPDATE CASCADE;
--
-- Filtros para la tabla `tbl_pedidos`
--
ALTER TABLE `tbl_pedidos`
ADD CONSTRAINT `tbl_pedidos_ibfk_1` FOREIGN KEY (`fkproveedor`) REFERENCES `tbl_proveedores` (`idproveedor`);
--
-- Filtros para la tabla `tbl_precios_productos`
--
ALTER TABLE `tbl_precios_productos`
ADD CONSTRAINT `tbl_precios_productos_ibfk_1` FOREIGN KEY (`fkproducto`) REFERENCES `tbl_productos` (`idproducto`) ON DELETE CASCADE ON UPDATE CASCADE;
--
-- Filtros para la tabla `tbl_precios_ventas_vendedores`
--
ALTER TABLE `tbl_precios_ventas_vendedores`
ADD CONSTRAINT `tbl_precios_ventas_vendedores_ibfk_1` FOREIGN KEY (`fkventa`) REFERENCES `tbl_ventas` (`idventa`) ON DELETE CASCADE ON UPDATE CASCADE,
ADD CONSTRAINT `tbl_precios_ventas_vendedores_ibfk_2` FOREIGN KEY (`fkproducto`) REFERENCES `tbl_productos` (`idproducto`) ON DELETE NO ACTION ON UPDATE NO ACTION;
--
-- Filtros para la tabla `tbl_regalias`
--
ALTER TABLE `tbl_regalias`
ADD CONSTRAINT `tbl_regalias_ibfk_1` FOREIGN KEY (`fkproducto`) REFERENCES `tbl_productos` (`idproducto`),
ADD CONSTRAINT `tbl_regalias_ibfk_2` FOREIGN KEY (`fkpedido`) REFERENCES `tbl_pedidos` (`idpedido`) ON DELETE CASCADE ON UPDATE CASCADE;
--
-- Filtros para la tabla `tbl_ventas`
--
ALTER TABLE `tbl_ventas`
ADD CONSTRAINT `tbl_ventas_ibfk_1` FOREIGN KEY (`fkcliente`) REFERENCES `tbl_clientes` (`idcliente`),
ADD CONSTRAINT `tbl_ventas_ibfk_2` FOREIGN KEY (`fkvendedor`) REFERENCES `tbl_vendedores` (`idvendedor`);
|
<reponame>jgebal/bitmap_set_index
ALTER SESSION SET PLSQL_WARNINGS = 'ENABLE:ALL';
ALTER SESSION SET PLSQL_CODE_TYPE = NATIVE;
/
ALTER SESSION SET PLSQL_OPTIMIZE_LEVEL = 3;
/
CREATE OR REPLACE PACKAGE BODY bmap_segment_builder AS
--PRIVATE SPECIFICATIONS
ge_subscript_beyond_count EXCEPTION;
PRAGMA EXCEPTION_INIT(ge_subscript_beyond_count,-6533);
FUNCTION init_bit_values_in_byte RETURN BMAP_SEGMENT;
gc_bit_values_in_byte CONSTANT BMAP_SEGMENT := init_bit_values_in_byte();
PROCEDURE init_if_needed( p_int_matrix IN OUT NOCOPY BMAP_SEGMENT ) IS
c_height BINARY_INTEGER := C_SEGMENT_HEIGHT;
x BMAP_SEGMENT_LEVEL;
BEGIN
IF p_int_matrix IS NULL OR p_int_matrix.COUNT = 0 THEN
FOR i IN 1 .. c_height LOOP
p_int_matrix( i ) := x;
END LOOP;
END IF;
END init_if_needed;
FUNCTION bitor(
p_left IN BINARY_INTEGER,
p_right IN BINARY_INTEGER
) RETURN BINARY_INTEGER DETERMINISTIC IS
BEGIN
RETURN p_left + (p_right - BITAND(p_left, p_right));
END bitor;
PROCEDURE set_bit_in_element(
p_bitmap_tree_level IN OUT NOCOPY BMAP_SEGMENT_LEVEL,
p_bit_number BINARY_INTEGER
) IS
v_bit_number_in_segment BINARY_INTEGER := 0;
v_segment_number BINARY_INTEGER := 0;
BEGIN
v_bit_number_in_segment := MOD( p_bit_number - 1, C_ELEMENT_CAPACITY );
v_segment_number := CEIL( p_bit_number / C_ELEMENT_CAPACITY );
IF NOT p_bitmap_tree_level.EXISTS( v_segment_number ) THEN
p_bitmap_tree_level( v_segment_number ) := POWER( 2, v_bit_number_in_segment );
ELSE
PRAGMA INLINE(bitor,'YES');
p_bitmap_tree_level( v_segment_number ) := bitor( p_bitmap_tree_level( v_segment_number ), POWER( 2, v_bit_number_in_segment ) );
END IF;
END set_bit_in_element;
PROCEDURE encode_leaf_segment_level(
p_bmap_segment_level IN OUT NOCOPY BMAP_SEGMENT_LEVEL,
p_bit_numbers_set BIN_INT_LIST
) IS
v_bit_number_idx BINARY_INTEGER;
BEGIN
v_bit_number_idx := p_bit_numbers_set.FIRST;
LOOP
EXIT WHEN v_bit_number_idx IS NULL;
PRAGMA INLINE(set_bit_in_element,'YES');
set_bit_in_element( p_bmap_segment_level, p_bit_numbers_set( v_bit_number_idx ) );
v_bit_number_idx := p_bit_numbers_set.NEXT( v_bit_number_idx );
END LOOP;
END encode_leaf_segment_level;
PROCEDURE encode_segment_level(
p_bmap_segment IN OUT NOCOPY BMAP_SEGMENT,
p_bmap_segment_level_no BINARY_INTEGER
) IS
v_node BINARY_INTEGER;
BEGIN
v_node := p_bmap_segment( p_bmap_segment_level_no - 1 ).FIRST;
LOOP
EXIT WHEN v_node IS NULL;
PRAGMA INLINE(set_bit_in_element,'YES');
set_bit_in_element( p_bmap_segment( p_bmap_segment_level_no ), v_node );
v_node := p_bmap_segment( p_bmap_segment_level_no - 1 ).NEXT( v_node );
END LOOP;
END encode_segment_level;
PROCEDURE encode_bmap_segment(
p_bit_no_list BIN_INT_LIST,
p_bmap_segment IN OUT NOCOPY BMAP_SEGMENT
) IS
BEGIN
IF p_bit_no_list IS NULL OR p_bit_no_list.COUNT = 0 THEN
RETURN;
END IF;
init_if_needed( p_bmap_segment );
PRAGMA INLINE(encode_leaf_segment_level, 'YES');
encode_leaf_segment_level( p_bmap_segment( 1 ), p_bit_no_list );
FOR bit_map_level_number IN 2 .. C_SEGMENT_HEIGHT LOOP
PRAGMA INLINE(encode_segment_level, 'YES');
encode_segment_level( p_bmap_segment, bit_map_level_number );
END LOOP;
END encode_bmap_segment;
FUNCTION encode_bmap_segment(
p_bit_no_list BIN_INT_LIST
) RETURN BMAP_SEGMENT IS
v_bmap_segment BMAP_SEGMENT;
BEGIN
encode_bmap_segment( p_bit_no_list, v_bmap_segment );
RETURN v_bmap_segment;
END encode_bmap_segment;
PROCEDURE decode_bmap_element(
p_element_value BINARY_INTEGER,
p_bit_number_list IN OUT NOCOPY BIN_INT_LIST,
p_bit_pos_offset BINARY_INTEGER DEFAULT 0
) IS
v_byte_values_list BMAP_SEGMENT_LEVEL;
v_remaining_value BINARY_INTEGER;
v_bit_pos BINARY_INTEGER := 0;
v_byte_values_idx BINARY_INTEGER;
BEGIN
v_remaining_value := p_element_value;
WHILE v_remaining_value != 0 LOOP
v_byte_values_idx := MOD( v_remaining_value, 1024 );
IF v_byte_values_idx > 0 THEN
v_byte_values_list := gc_bit_values_in_byte( v_byte_values_idx );
FOR i IN v_byte_values_list.FIRST .. v_byte_values_list.LAST LOOP
p_bit_number_list.EXTEND;
p_bit_number_list( p_bit_number_list.LAST ) := v_byte_values_list(i)+v_bit_pos+p_bit_pos_offset;
END LOOP;
END IF;
v_remaining_value := FLOOR(v_remaining_value / 1024);
v_bit_pos := v_bit_pos + 10;
END LOOP;
END decode_bmap_element;
FUNCTION decode_bmap_element(
p_element_value BINARY_INTEGER
) RETURN BIN_INT_LIST IS
v_bit_numbers_list BIN_INT_LIST := BIN_INT_LIST( );
BEGIN
decode_bmap_element(p_element_value,v_bit_numbers_list);
RETURN v_bit_numbers_list;
END decode_bmap_element;
FUNCTION decode_bmap_segment_level(
p_bmap_element_list BMAP_SEGMENT_LEVEL
) RETURN BIN_INT_LIST IS
v_bit_numbers_list BIN_INT_LIST := BIN_INT_LIST( );
v_byte_values_list BIN_INT_LIST;
v_element_position BINARY_INTEGER;
v_remaining_value BINARY_INTEGER;
v_bit_pos_offset BINARY_INTEGER;
v_byte_values_idx BINARY_INTEGER;
BEGIN
v_element_position := p_bmap_element_list.FIRST;
LOOP
EXIT WHEN v_element_position IS NULL;
v_bit_pos_offset := C_ELEMENT_CAPACITY * ( v_element_position - 1 );
decode_bmap_element( p_bmap_element_list( v_element_position ), v_bit_numbers_list, v_bit_pos_offset );
v_element_position := p_bmap_element_list.NEXT( v_element_position );
END LOOP;
RETURN v_bit_numbers_list;
END decode_bmap_segment_level;
FUNCTION decode_bmap_segment(
p_bitmap_tree BMAP_SEGMENT
) RETURN BIN_INT_LIST IS
BEGIN
IF p_bitmap_tree IS NULL OR p_bitmap_tree.COUNT = 0 THEN
RETURN BIN_INT_LIST( );
END IF;
RETURN decode_bmap_segment_level( p_bitmap_tree(1) );
END decode_bmap_segment;
PROCEDURE segment_level_bit_and(
p_bmap_left BMAP_SEGMENT,
p_bmap_right BMAP_SEGMENT,
p_level BINARY_INTEGER,
p_node BINARY_INTEGER,
p_bmap_result IN OUT NOCOPY BMAP_SEGMENT
) IS
v_node_value BINARY_INTEGER;
v_child_node_list BIN_INT_LIST;
BEGIN
v_node_value := BITAND( p_bmap_left( p_level )( p_node ), p_bmap_right( p_level )( p_node ) );
IF v_node_value > 0 THEN
p_bmap_result( p_level )( p_node ) := v_node_value;
IF p_level - 1 > 0 THEN
v_child_node_list := decode_bmap_element( v_node_value );
FOR i IN 1 .. CARDINALITY( v_child_node_list ) LOOP
segment_level_bit_and(
p_bmap_left,
p_bmap_right,
p_level - 1,
v_child_node_list(i) + C_ELEMENT_CAPACITY * ( p_node - 1 ),
p_bmap_result
);
END LOOP;
END IF;
END IF;
END segment_level_bit_and;
PROCEDURE segment_level_bit_or(
p_bmap_left BMAP_SEGMENT,
p_bmap_right BMAP_SEGMENT,
p_level BINARY_INTEGER,
p_node BINARY_INTEGER,
p_bmap_result IN OUT NOCOPY BMAP_SEGMENT
) IS
v_node_value BINARY_INTEGER;
v_child_node_list BIN_INT_LIST;
BEGIN
IF NOT p_bmap_left( p_level ).EXISTS( p_node ) THEN
v_node_value := p_bmap_right( p_level )( p_node );
ELSIF NOT p_bmap_right( p_level ).EXISTS( p_node ) THEN
v_node_value := p_bmap_left( p_level )( p_node );
ELSE
PRAGMA INLINE (bitor, 'YES');
v_node_value := bitor( p_bmap_left( p_level )( p_node ), p_bmap_right( p_level )( p_node ) );
END IF;
IF v_node_value > 0 THEN
p_bmap_result( p_level )( p_node ) := v_node_value;
IF p_level -1 > 0 THEN
v_child_node_list := decode_bmap_element( v_node_value );
FOR i IN 1 .. CARDINALITY( v_child_node_list ) LOOP
segment_level_bit_or(
p_bmap_left,
p_bmap_right,
p_level - 1,
v_child_node_list(i) + C_ELEMENT_CAPACITY * ( p_node - 1 ),
p_bmap_result
);
END LOOP;
END IF;
END IF;
END segment_level_bit_or;
PROCEDURE segment_level_bit_minus(
p_bmap_left IN OUT NOCOPY BMAP_SEGMENT,
p_bmap_right BMAP_SEGMENT,
p_level BINARY_INTEGER,
p_node BINARY_INTEGER
) IS
v_node_value BINARY_INTEGER;
v_child_node_list BIN_INT_LIST;
i BINARY_INTEGER;
BEGIN
v_node_value := p_bmap_left( p_level )( p_node ) - BITAND( p_bmap_left( p_level )( p_node ), p_bmap_right( p_level )( p_node ) );
IF p_level - 1 > 0 THEN
v_child_node_list := decode_bmap_element( p_bmap_left( p_level )( p_node ) );
FOR i IN 1 .. CARDINALITY( v_child_node_list ) LOOP
segment_level_bit_minus(
p_bmap_left,
p_bmap_right,
p_level - 1,
v_child_node_list(i) + C_ELEMENT_CAPACITY * ( p_node - 1 )
);
END LOOP;
END IF;
IF v_node_value > 0 THEN
p_bmap_left( p_level )( p_node ) := v_node_value;
ELSE
p_bmap_left( p_level ).DELETE( p_node );
END IF;
EXCEPTION WHEN NO_DATA_FOUND OR ge_subscript_beyond_count THEN
NULL;
END segment_level_bit_minus;
FUNCTION segment_bit_and(
p_bmap_left BMAP_SEGMENT,
p_bmap_right BMAP_SEGMENT
) RETURN BMAP_SEGMENT IS
v_result_bmap BMAP_SEGMENT;
BEGIN
IF p_bmap_left IS NULL OR p_bmap_right IS NULL OR p_bmap_left.COUNT = 0 OR
p_bmap_right.COUNT = 0 THEN
RETURN v_result_bmap;
END IF;
init_if_needed( v_result_bmap );
segment_level_bit_and(
p_bmap_left,
p_bmap_right,
C_SEGMENT_HEIGHT,
1,
v_result_bmap );
RETURN v_result_bmap;
END segment_bit_and;
FUNCTION segment_bit_or(
p_bmap_left BMAP_SEGMENT,
p_bmap_right BMAP_SEGMENT
) RETURN BMAP_SEGMENT IS
v_result_bmap BMAP_SEGMENT;
BEGIN
IF p_bmap_left IS NULL OR p_bmap_right IS NULL OR p_bmap_left.COUNT = 0 OR
p_bmap_right.COUNT = 0 THEN
RETURN v_result_bmap;
END IF;
init_if_needed( v_result_bmap );
segment_level_bit_or(
p_bmap_left,
p_bmap_right,
C_SEGMENT_HEIGHT,
1,
v_result_bmap );
RETURN v_result_bmap;
END segment_bit_or;
FUNCTION segment_bit_minus(
p_bmap_left BMAP_SEGMENT,
p_bmap_right BMAP_SEGMENT
) RETURN BMAP_SEGMENT IS
v_result_bmap BMAP_SEGMENT := p_bmap_left;
BEGIN
IF p_bmap_left IS NULL OR p_bmap_right IS NULL OR p_bmap_left.COUNT = 0 OR
p_bmap_right.COUNT = 0 THEN
RETURN v_result_bmap;
END IF;
segment_level_bit_minus( v_result_bmap, p_bmap_right, C_SEGMENT_HEIGHT, 1 );
RETURN v_result_bmap;
END segment_bit_minus;
PROCEDURE convert_for_storage(
p_bitmap_list BMAP_SEGMENT,
p_level_list IN OUT NOCOPY STOR_BMAP_SEGMENT
) IS
v_node_list STOR_BMAP_LEVEL := STOR_BMAP_LEVEL();
v_level_list STOR_BMAP_SEGMENT := STOR_BMAP_SEGMENT();
v_node STOR_BMAP_NODE := STOR_BMAP_NODE(0,0);
BEGIN
p_level_list.DELETE;
IF NOT (p_bitmap_list IS NULL OR p_bitmap_list.COUNT = 0) THEN
p_level_list.EXTEND( p_bitmap_list.COUNT );
FOR i IN p_bitmap_list.FIRST .. p_bitmap_list.LAST LOOP
v_node_list.EXTEND( p_bitmap_list(i).COUNT );
v_node.node_index := p_bitmap_list(i).FIRST;
FOR j IN v_node_list.FIRST .. v_node_list.LAST LOOP
v_node.node_value := p_bitmap_list(i)( v_node.node_index );
v_node_list( j ) := v_node;
v_node.node_index := p_bitmap_list(i).NEXT( v_node.node_index );
END LOOP;
p_level_list( i ) := v_node_list;
v_node_list.DELETE;
END LOOP;
END IF;
END convert_for_storage;
FUNCTION convert_for_storage(
p_bitmap_list BMAP_SEGMENT
) RETURN STOR_BMAP_SEGMENT IS
v_level_list STOR_BMAP_SEGMENT := STOR_BMAP_SEGMENT();
BEGIN
convert_for_storage( p_bitmap_list, v_level_list );
RETURN v_level_list;
END convert_for_storage;
FUNCTION convert_for_processing(
p_bitmap_list STOR_BMAP_SEGMENT
) RETURN BMAP_SEGMENT IS
v_level_list BMAP_SEGMENT;
j BINARY_INTEGER;
BEGIN
IF NOT (p_bitmap_list IS NULL OR p_bitmap_list.COUNT = 0) THEN
FOR i IN p_bitmap_list.FIRST .. p_bitmap_list.LAST LOOP
FOR j IN p_bitmap_list(i).FIRST .. p_bitmap_list(i).LAST LOOP
v_level_list(i)(p_bitmap_list(i)(j).node_index) := p_bitmap_list(i)(j).node_value;
END LOOP;
END LOOP;
END IF;
RETURN v_level_list;
END convert_for_processing;
FUNCTION segment_bit_and(
p_bmap_left STOR_BMAP_SEGMENT,
p_bmap_right STOR_BMAP_SEGMENT
) RETURN BMAP_SEGMENT
IS
BEGIN
RETURN segment_bit_and( convert_for_processing( p_bmap_left ), convert_for_processing( p_bmap_right ) );
END segment_bit_and;
FUNCTION encode_and_convert(
p_bit_no_list BIN_INT_LIST
) RETURN STOR_BMAP_SEGMENT
IS
BEGIN
RETURN convert_for_storage( encode_bmap_segment( p_bit_no_list ) );
END encode_and_convert;
/**
* Package constant initialization function - do not modify this code
* if you dont know what you're doing
* Function returns a PL/SQL TABLE in format:
* initBitValuesInByte('00') -> ()
* initBitValuesInByte('01') -> (1)
* ...
* initBitValuesInByte('0F') -> (1,2,3,4,5,6,7,8)
* ...
* initBitValuesInByte('FF') -> (1,2,3,4,5,6,7,8..., 16)
*/
FUNCTION init_bit_values_in_byte RETURN BMAP_SEGMENT
IS
v_low_values_in_byte BMAP_SEGMENT;
v_high_values_in_byte BMAP_SEGMENT;
v_result BMAP_SEGMENT;
idx BINARY_INTEGER;
FUNCTION get_bmap_node_list(p_lst int_list) RETURN BMAP_SEGMENT_LEVEL IS
v_res BMAP_SEGMENT_LEVEL;
BEGIN
FOR i IN 1 .. p_lst.COUNT loop
v_res(i) := p_lst(i);
END LOOP;
RETURN v_res;
END get_bmap_node_list;
FUNCTION multiset_union_all(p_left BMAP_SEGMENT_LEVEL, p_right BMAP_SEGMENT_LEVEL) RETURN BMAP_SEGMENT_LEVEL IS
v_res BMAP_SEGMENT_LEVEL;
i BINARY_INTEGER;
j BINARY_INTEGER := 0;
BEGIN
i := p_left.FIRST;
LOOP
EXIT WHEN i IS NULL;
j := j + 1;
v_res(j) := p_left(i);
i := p_left.NEXT(i);
END LOOP;
i := p_right.FIRST;
LOOP
EXIT WHEN i IS NULL;
j := j + 1;
v_res(j) := p_right(i);
i := p_right.NEXT(i);
END LOOP;
RETURN v_res;
END multiset_union_all;
BEGIN
v_low_values_in_byte( 1) := get_bmap_node_list(INT_LIST(1));
v_low_values_in_byte( 2) := get_bmap_node_list(INT_LIST(2));
v_low_values_in_byte( 3) := get_bmap_node_list(INT_LIST(1,2));
v_low_values_in_byte( 4) := get_bmap_node_list(INT_LIST(3));
v_low_values_in_byte( 5) := get_bmap_node_list(INT_LIST(1,3));
v_low_values_in_byte( 6) := get_bmap_node_list(INT_LIST(2,3));
v_low_values_in_byte( 7) := get_bmap_node_list(INT_LIST(1,2,3));
v_low_values_in_byte( 8) := get_bmap_node_list(INT_LIST(4));
v_low_values_in_byte( 9) := get_bmap_node_list(INT_LIST(1,4));
v_low_values_in_byte(10) := get_bmap_node_list(INT_LIST(2,4));
v_low_values_in_byte(11) := get_bmap_node_list(INT_LIST(1,2,4));
v_low_values_in_byte(12) := get_bmap_node_list(INT_LIST(3,4));
v_low_values_in_byte(13) := get_bmap_node_list(INT_LIST(1,3,4));
v_low_values_in_byte(14) := get_bmap_node_list(INT_LIST(2,3,4));
v_low_values_in_byte(15) := get_bmap_node_list(INT_LIST(1,2,3,4));
v_low_values_in_byte(16) := get_bmap_node_list(INT_LIST(5));
v_low_values_in_byte(17) := get_bmap_node_list(INT_LIST(1,5));
v_low_values_in_byte(18) := get_bmap_node_list(INT_LIST(2,5));
v_low_values_in_byte(19) := get_bmap_node_list(INT_LIST(1,2,5));
v_low_values_in_byte(20) := get_bmap_node_list(INT_LIST(3,5));
v_low_values_in_byte(21) := get_bmap_node_list(INT_LIST(1,3,5));
v_low_values_in_byte(22) := get_bmap_node_list(INT_LIST(2,3,5));
v_low_values_in_byte(23) := get_bmap_node_list(INT_LIST(1,2,3,5));
v_low_values_in_byte(24) := get_bmap_node_list(INT_LIST(4,5));
v_low_values_in_byte(25) := get_bmap_node_list(INT_LIST(1,4,5));
v_low_values_in_byte(26) := get_bmap_node_list(INT_LIST(2,4,5));
v_low_values_in_byte(27) := get_bmap_node_list(INT_LIST(1,2,4,5));
v_low_values_in_byte(28) := get_bmap_node_list(INT_LIST(3,4,5));
v_low_values_in_byte(29) := get_bmap_node_list(INT_LIST(1,3,4,5));
v_low_values_in_byte(30) := get_bmap_node_list(INT_LIST(2,3,4,5));
v_low_values_in_byte(31) := get_bmap_node_list(INT_LIST(1,2,3,4,5));
v_low_values_in_byte(32) := get_bmap_node_list(INT_LIST());
FOR h IN 1 .. v_low_values_in_byte.COUNT LOOP
v_high_values_in_byte(h) := v_low_values_in_byte(h);
FOR x IN 1 .. v_high_values_in_byte( h ).COUNT LOOP
v_high_values_in_byte( h )( x ) := v_high_values_in_byte( h )( x ) + 5;
END LOOP;
END LOOP;
FOR h IN 1 .. v_high_values_in_byte.COUNT LOOP
FOR l IN 1 .. v_low_values_in_byte.COUNT LOOP
idx := MOD( h, 32 )*32 + MOD( l, 32 );
IF idx > 0 THEN
v_result( idx ) := multiset_union_all( v_low_values_in_byte( l ), v_high_values_in_byte( h ) );
END IF;
END LOOP;
END LOOP;
RETURN v_result;
END init_bit_values_in_byte;
END bmap_segment_builder;
/
SHOW ERRORS
/
|
<filename>Exams/Supermarket29.08.2018(AwfulDB)/Update.sql<gh_stars>1-10
UPDATE Items
SET Price *= 1.27
WHERE CategoryId IN (1,2,3) |
select COUNT(*) from empty_table e1, empty_table e2 where e1.col0 = e2.col0; |
<reponame>quchunguang/test<filename>testpostgresql/arg.sql
SELECT * FROM weather WHERE city=:city::varchar(20) AND prcp > 0.0;
|
<reponame>jjromannet/node-red-projects
CREATE TABLE `current-config-ogrzewanie` (
`idconfig` int(11) NOT NULL AUTO_INCREMENT,
`tempZadana` decimal(4,2) NOT NULL,
`tempZadzialania` decimal(4,2) NOT NULL,
`minimalneZalaczenie` int(11) NOT NULL,
PRIMARY KEY (`idconfig`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COLLATE=utf8_polish_ci;
|
<reponame>tymowskyy/to-do<gh_stars>1-10
CREATE TABLE `lists` (
`list_id` int(11) NOT NULL,
`user_id` int(11) NOT NULL,
`name` varchar(255) NOT NULL,
`last_edit` datetime NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
CREATE TABLE `tasks` (
`task_id` int(11) NOT NULL,
`list_id` int(11) NOT NULL,
`content` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
CREATE TABLE `users` (
`user_id` int(11) NOT NULL,
`email` varchar(255) NOT NULL,
`password` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
ALTER TABLE `lists`
ADD PRIMARY KEY (`list_id`),
ADD KEY `user_FK` (`user_id`);
ALTER TABLE `tasks`
ADD PRIMARY KEY (`task_id`),
ADD KEY `list_FK` (`list_id`);
ALTER TABLE `users`
ADD PRIMARY KEY (`user_id`),
ADD UNIQUE KEY `email` (`email`);
ALTER TABLE `lists`
MODIFY `list_id` int(11) NOT NULL AUTO_INCREMENT;
ALTER TABLE `tasks`
MODIFY `task_id` int(11) NOT NULL AUTO_INCREMENT;
ALTER TABLE `users`
MODIFY `user_id` int(11) NOT NULL AUTO_INCREMENT;
ALTER TABLE `lists`
ADD CONSTRAINT `user_FK` FOREIGN KEY (`user_id`) REFERENCES `users` (`user_id`) ON DELETE CASCADE ON UPDATE CASCADE;
ALTER TABLE `tasks`
ADD CONSTRAINT `list_FK` FOREIGN KEY (`list_id`) REFERENCES `lists` (`list_id`) ON DELETE CASCADE ON UPDATE CASCADE; |
create table if not exists business (
"business_id" VARCHAR NULL,
"name" VARCHAR NULL,
"address" VARCHAR NULL,
"city" VARCHAR NULL,
"state" VARCHAR NULL,
"postal_code" VARCHAR NULL,
"latitude" VARCHAR NULL,
"longitude" VARCHAR NULL,
"stars" VARCHAR NULL,
"review_count" VARCHAR NULL,
"is_open" VARCHAR NULL,
"attributes" VARCHAR NULL,
"categories" VARCHAR NULL,
"hours" VARCHAR NULL
);
--
create table if not exists checkin (
"business_id" VARCHAR NULL,
"date" VARCHAR NULL
);
--
create table if not exists review (
"review_id" VARCHAR NULL,
"user_id" VARCHAR NULL,
"business_id" VARCHAR NULL,
"stars" VARCHAR NULL,
"useful" VARCHAR NULL,
"funny" VARCHAR NULL,
"cool" VARCHAR NULL,
"text" VARCHAR NULL,
"date" VARCHAR NULL
);
--
create table if not exists tip (
"user_id" VARCHAR NULL,
"business_id" VARCHAR NULL,
"text" VARCHAR NULL,
"date" VARCHAR NULL,
"compliment_count" VARCHAR NULL
);
--
create table if not exists "user" (
"user_id" VARCHAR NULL,
"name" VARCHAR NULL,
"review_count" VARCHAR NULL,
"yelping_since" VARCHAR NULL,
"useful" VARCHAR NULL,
"funny" VARCHAR NULL,
"cool" VARCHAR NULL,
"elite" VARCHAR NULL,
"friends" VARCHAR NULL,
"fans" VARCHAR NULL,
"average_stars" VARCHAR NULL,
"compliment_hot" VARCHAR NULL,
"compliment_more" VARCHAR NULL,
"compliment_profile" VARCHAR NULL,
"compliment_cute" VARCHAR NULL,
"compliment_list" VARCHAR NULL,
"compliment_note" VARCHAR NULL,
"compliment_plain" VARCHAR NULL,
"compliment_cool" VARCHAR NULL,
"compliment_funny" VARCHAR NULL,
"compliment_writer" VARCHAR NULL,
"compliment_photos" VARCHAR NULL
);
--
create table if not exists precipitation (
"date" VARCHAR NULL,
"precipitation" VARCHAR NULL,
"precipitation_normal" VARCHAR NULL
);
--
create table if not exists temperature (
"date" VARCHAR NULL,
"min" VARCHAR NULL,
"max" VARCHAR NULL,
"normal_min" VARCHAR NULL,
"normal_max" VARCHAR NULL
);
--
create index if not exists business_idx on business (
"business_id"
);
--
create index if not exists checkin_idx on checkin (
"business_id"
);
--
create index if not exists review_idx on review (
"review_id",
"user_id",
"business_id"
);
--
create index if not exists tip_idx on tip (
"user_id",
"business_id"
);
--
create index if not exists user_idx on "user" (
"user_id"
);
--
create index if not exists precipitation_idx on precipitation (
"date"
);
--
create index if not exists temperature_idx on temperature (
"date"
);
--
--
--
copy business (
"business_id",
"name",
"address",
"city",
"state",
"postal_code",
"latitude",
"longitude",
"stars",
"review_count",
"is_open",
"attributes",
"categories",
"hours"
) from '/data/yelp_academic_dataset_business.json.csv'
delimiter ','
quote '"'
csv header;
--
copy checkin (
"business_id",
"date"
) from '/data/yelp_academic_dataset_checkin.json.csv'
delimiter ','
quote '"'
csv header;
--
copy review (
"review_id",
"user_id",
"business_id",
"stars",
"useful",
"funny",
"cool",
"text",
"date"
) from '/data/yelp_academic_dataset_review.json.csv'
delimiter ','
quote '"'
csv header;
--
copy tip (
"user_id",
"business_id",
"text",
"date",
"compliment_count"
) from '/data/yelp_academic_dataset_tip.json.csv'
delimiter ','
quote '"'
csv header;
--
copy "user" (
"user_id",
"name",
"review_count",
"yelping_since",
"useful",
"funny",
"cool",
"elite",
"friends",
"fans",
"average_stars",
"compliment_hot",
"compliment_more",
"compliment_profile",
"compliment_cute",
"compliment_list",
"compliment_note",
"compliment_plain",
"compliment_cool",
"compliment_funny",
"compliment_writer",
"compliment_photos"
) from '/data/yelp_academic_dataset_user.json.csv'
delimiter ','
quote '"'
csv header;
--
copy precipitation (
"date",
"precipitation",
"precipitation_normal"
) from '/data/USW00023169-LAS_VEGAS_MCCARRAN_INTL_AP-precipitation-inch.csv'
delimiter ','
csv header;
--
copy temperature (
"date",
"min",
"max",
"normal_min",
"normal_max"
) from '/data/USW00023169-temperature-degreeF.csv'
delimiter ','
csv header; |
SELECT short_name, unit_of_measurement, description FROM {{ .schema }}.met_element_definitions
|
<reponame>Datasilk/Connector
CREATE PROCEDURE [dbo].[User_Create]
@name nvarchar(64),
@email nvarchar(64),
@username nvarchar(64),
@password nvarchar(255),
@photo bit = 0,
@status smallint = 1
AS
DECLARE @id int = NEXT VALUE FOR SequenceUsers
INSERT INTO Users (userId, [name], email, username, [password], photo, [status])
VALUES (@id, @name, @email, @username, @password, @photo, @status)
SELECT @id |
CREATE KEYSPACE IF NOT EXISTS fmke
WITH REPLICATION = {
'class': 'SimpleStrategy',
'replication_factor': 1
};
CREATE TABLE IF NOT EXISTS fmke.patients (
ID int PRIMARY KEY,
Name text,
Address text,
);
CREATE TABLE IF NOT EXISTS fmke.pharmacies (
ID int PRIMARY KEY,
Name text,
Address text,
);
CREATE TABLE IF NOT EXISTS fmke.medical_staff (
ID int PRIMARY KEY,
Name text,
Address text,
Speciality text,
);
CREATE TABLE IF NOT EXISTS fmke.treatment_facilities (
ID int PRIMARY KEY,
Name text,
Address text,
Type text,
);
CREATE TABLE IF NOT EXISTS fmke.prescriptions (
ID int,
PatID int,
DocID int,
PharmID int,
DatePrescribed timestamp,
DateProcessed timestamp,
PRIMARY KEY (ID)
);
CREATE TABLE IF NOT EXISTS fmke.patient_prescriptions (
PatientID int,
PrescriptionID int,
PRIMARY KEY (PatientID, PrescriptionID)
);
CREATE TABLE IF NOT EXISTS fmke.pharmacy_prescriptions (
PharmacyID int,
PrescriptionID int,
PRIMARY KEY (PharmacyID, PrescriptionID)
);
CREATE TABLE IF NOT EXISTS fmke.staff_prescriptions (
StaffID int,
PrescriptionID int,
PRIMARY KEY (StaffID, PrescriptionID)
);
CREATE TABLE IF NOT EXISTS fmke.prescription_drugs (
PrescriptionID int,
Drug text,
PRIMARY KEY (PrescriptionID, Drug)
);
exit
|
-- Regel: Ausdauer im Kampf
INSERT INTO Regeln (Name, Anwenden, Typ, Beschreibung) VALUES ('AusdauerImKampf', 1, 'Optional', 'Kampf: Ausdauerverlust (WdS 83)')
GO
-- Miserable Eigenschaft bugfix, Tags für Ausrüstung, Handelsgut Name not null
UPDATE [VorNachteil] set Vorteil=0, Nachteil=1, Typ='Nachteile' where VorNachteilID Between 340 and 347
GO
ALTER TABLE [Ausrüstung] Add Tags ntext NULL
GO
DELETE FROM [Handelsgut]
GO
ALTER TABLE [Handelsgut] alter column Name nvarchar(500) NOT NULL
GO
-- Myranor und Dunkle Zeiten Daten, Munitionstabellenänderungen
ALTER TABLE [Munition] Add Setting nvarchar(100) NULL
GO
ALTER TABLE [Munition] Add Probe int NOT NULL default(0)
GO
ALTER TABLE [Munition] Add Spitze nvarchar(50) NULL
GO
ALTER TABLE [Munition] ALTER COLUMN [Bemerkungen] ntext NULL
GO
ALTER TABLE [Munition] ALTER COLUMN Name nvarchar(100) NOT NULL
GO
ALTER TABLE [Handelsgut] Add Setting nvarchar(100) NULL
GO
DELETE FROM [Munition]
GO
INSERT INTO [Munition] ([MunitionGUID],[Art],[Name],[Preismodifikator],[Bemerkungen],[Literatur],[Setting],[Probe],[Spitze]) VALUES ('00000000-0000-0000-000f-000000000001','Schleuderblei','Stein',0,NULL,'AA 21','Aventurien',0,NULL)
GO
INSERT INTO [Munition] ([MunitionGUID],[Art],[Name],[Preismodifikator],[Bemerkungen],[Literatur],[Setting],[Probe],[Spitze]) VALUES ('00000000-0000-0000-000f-000000000002','Schleuderblei','Schleuderblei',1,'Fernkampf um 1 erleichtert, TP + 1','AA 21','Aventurien',0,NULL)
GO
INSERT INTO [Munition] ([MunitionGUID],[Art],[Name],[Preismodifikator],[Bemerkungen],[Literatur],[Setting],[Probe],[Spitze]) VALUES ('00000000-0000-0000-000f-000000000003','Pfeil','Jagdpfeil',1,'wiederverwendbar','AA 46 / MyA 105','Aventurien, Myranor',0,'Klingenspitze')
GO
INSERT INTO [Munition] ([MunitionGUID],[Art],[Name],[Preismodifikator],[Bemerkungen],[Literatur],[Setting],[Probe],[Spitze]) VALUES ('00000000-0000-0000-000f-000000000004','Pfeil','Kriegspfeil',1,'Bei Wunde: pro KR 1W6 SP(A) oder bei Bewegung 1W6 SP, siehe Ogerfänger','AA 46 / MyA 106','Aventurien, Myranor',2,'Widerhaken-Spitze')
GO
INSERT INTO [Munition] ([MunitionGUID],[Art],[Name],[Preismodifikator],[Bemerkungen],[Literatur],[Setting],[Probe],[Spitze]) VALUES ('00000000-0000-0000-000f-000000000005','Pfeil','Gehärteter Kriegspfeil',4,'RS/2, Bei Wunde: pro KR 1W6 SP(A) oder bei Bewegung 1W6 SP, siehe Ogerfänger','AA 47 / MyA 105, 106','Aventurien, Myranor',4,'Gehärtete Widerhaken-Spitze')
GO
INSERT INTO [Munition] ([MunitionGUID],[Art],[Name],[Preismodifikator],[Bemerkungen],[Literatur],[Setting],[Probe],[Spitze]) VALUES ('00000000-0000-0000-000f-000000000006','Pfeil','Kettenbrecher',3,'RS durch Kettengeflecht wird ignoriert, RS von Mischrüstungen (Spiegelpanzer, Baburiner Hut, ...) wird halbiert','AA 47 / MyA 105','Aventurien, Myranor',4,'Kettenstecher-Spitze')
GO
INSERT INTO [Munition] ([MunitionGUID],[Art],[Name],[Preismodifikator],[Bemerkungen],[Literatur],[Setting],[Probe],[Spitze]) VALUES ('00000000-0000-0000-000f-000000000007','Pfeil','Stumpfer Pfeil',2,'Halbe Reichweite, richtet TP(A) an, Scharfschütze kann einen gezielten Schuß +4 zum niederwerfen machen (KK + TP(A)/2 oder man liegt am Boden)','AA 47 / MyA 106','Aventurien, Myranor',2,'Stumpfe Spitze')
GO
INSERT INTO [Munition] ([MunitionGUID],[Art],[Name],[Preismodifikator],[Bemerkungen],[Literatur],[Setting],[Probe],[Spitze]) VALUES ('00000000-0000-0000-000f-000000000008','Pfeil','Sehnen-Seilschneider',3,'TP+1W6, RS*2, Halbe Reichweite, siehe Ogerfänger','AA 47 / MyA 106','Aventurien, Myranor',4,'Mondsichel-Spitze')
GO
INSERT INTO [Munition] ([MunitionGUID],[Art],[Name],[Preismodifikator],[Bemerkungen],[Literatur],[Setting],[Probe],[Spitze]) VALUES ('00000000-0000-0000-000f-000000000009','Pfeil','Brandpfeil',8,'Halbe Reichweite, wie stumpfer Pfeil','AA 48 / MyA 106','Aventurien, Myranor',4,'Brandkorbspitze')
GO
INSERT INTO [Munition] ([MunitionGUID],[Art],[Name],[Preismodifikator],[Bemerkungen],[Literatur],[Setting],[Probe],[Spitze]) VALUES ('00000000-0000-0000-000f-000000000010','Pfeil','Singender Pfeil',2,'macht Geräusche im Flug, je nach Qualität bis zehnfacher Preis und TP Abzug bis zu 2','AA 48','Aventurien',4,NULL)
GO
INSERT INTO [Munition] ([MunitionGUID],[Art],[Name],[Preismodifikator],[Bemerkungen],[Literatur],[Setting],[Probe],[Spitze]) VALUES ('00000000-0000-0000-000f-000000000011','Bolzen','Jagdbolzen',1,'wiederverwendbar','AA 46 / MyA 105','Aventurien, Myranor',0,'Klingenspitze')
GO
INSERT INTO [Munition] ([MunitionGUID],[Art],[Name],[Preismodifikator],[Bemerkungen],[Literatur],[Setting],[Probe],[Spitze]) VALUES ('00000000-0000-0000-000f-000000000012','Bolzen','Kriegsbolzen',1,'Bei Wunde: pro KR 1W6 SP(A) oder bei Bewegung 1W6 SP, siehe Ogerfänger','AA 46 / MyA 106','Aventurien, Myranor',2,'Widerhaken-Spitze')
GO
INSERT INTO [Munition] ([MunitionGUID],[Art],[Name],[Preismodifikator],[Bemerkungen],[Literatur],[Setting],[Probe],[Spitze]) VALUES ('00000000-0000-0000-000f-000000000013','Bolzen','Gehärteter Kriegsbolzen',4,'RS/2, Bei Wunde: pro KR 1W6 SP(A) oder bei Bewegung 1W6 SP, siehe Ogerfänger','AA 47 / MyA 105, 106','Aventurien, Myranor',4,'Gehärtete Widerhaken-Spitze')
GO
INSERT INTO [Munition] ([MunitionGUID],[Art],[Name],[Preismodifikator],[Bemerkungen],[Literatur],[Setting],[Probe],[Spitze]) VALUES ('00000000-0000-0000-000f-000000000014','Bolzen','Kettenbrecher',3,'RS durch Kettengeflecht wird ignoriert, RS von Mischrüstungen (Spiegelpanzer, Baburiner Hut, ...) wird halbiert','AA 47 / MyA 105','Aventurien, Myranor',4,'Kettenstecher-Spitze')
GO
INSERT INTO [Munition] ([MunitionGUID],[Art],[Name],[Preismodifikator],[Bemerkungen],[Literatur],[Setting],[Probe],[Spitze]) VALUES ('00000000-0000-0000-000f-000000000015','Bolzen','<NAME>',2,'Halbe Reichweite, richtet TP(A) an, Scharfschütze kann einen gezielten Schuß +4 zum niederwerfen machen (KK + TP(A)/2 oder man liegt am Boden)','AA 47 / MyA 106','Aventurien, Myranor',2,'Stumpfe Spitze')
GO
INSERT INTO [Munition] ([MunitionGUID],[Art],[Name],[Preismodifikator],[Bemerkungen],[Literatur],[Setting],[Probe],[Spitze]) VALUES ('00000000-0000-0000-000f-000000000016','Bolzen','Sehnen-Seilschneider',3,'TP+1W6, RS*2, Halbe Reichweite, siehe Ogerfänger','AA 47 / MyA 106','Aventurien, Myranor',4,'Mondsichel-Spitze')
GO
INSERT INTO [Munition] ([MunitionGUID],[Art],[Name],[Preismodifikator],[Bemerkungen],[Literatur],[Setting],[Probe],[Spitze]) VALUES ('00000000-0000-0000-000f-000000000017','Bolzen','Brandbolzen',8,'Halbe Reichweite, wie stumpfer Bolzen','AA 48 / MyA 106','Aventurien, Myranor',4,'Brandkorb-Spitze')
GO
INSERT INTO [Munition] ([MunitionGUID],[Art],[Name],[Preismodifikator],[Bemerkungen],[Literatur],[Setting],[Probe],[Spitze]) VALUES ('00000000-0000-0000-000f-000000000018','Bolzen','Singender Bolzen',2,'macht Geräusche im Flug, je nach Qualität bis zehnfacher Preis und TP Abzug bis zu 2','AA 48','Aventurien',4,NULL)
GO
INSERT INTO [Munition] ([MunitionGUID],[Art],[Name],[Preismodifikator],[Bemerkungen],[Literatur],[Setting],[Probe],[Spitze]) VALUES ('00000000-0000-0000-000f-000000000019','Blasrohrpfeil','Blasrohrpfeil',1,'vergiftet','','Aventurien',0,NULL)
GO
INSERT INTO [Munition] ([MunitionGUID],[Art],[Name],[Preismodifikator],[Bemerkungen],[Literatur],[Setting],[Probe],[Spitze]) VALUES ('00000000-0000-0000-000f-000000000020','Speer','Schleuderspeer',1,'Geschoß für eine Speerschleuder','AA 22','Aventurien',0,NULL)
GO
INSERT INTO [Munition] ([MunitionGUID],[Art],[Name],[Preismodifikator],[Bemerkungen],[Literatur],[Setting],[Probe],[Spitze]) VALUES ('00000000-0000-0000-000f-000000000021','Kugel','Bleikugel',1,NULL,'AA 40','Aventurien',0,NULL)
GO
INSERT INTO [Munition] ([MunitionGUID],[Art],[Name],[Preismodifikator],[Bemerkungen],[Literatur],[Setting],[Probe],[Spitze]) VALUES ('00000000-0000-0000-000f-000000000022','Pfeil','Plattenstecher',4,'RS aus allen Formen von künstlichen Rüstungen wird halbiert. Natürlicher RS wirkt normal.','MyA 105','Myranor',4,'Plattenstecher-Spitze')
GO
INSERT INTO [Munition] ([MunitionGUID],[Art],[Name],[Preismodifikator],[Bemerkungen],[Literatur],[Setting],[Probe],[Spitze]) VALUES ('00000000-0000-0000-000f-000000000023','Pfeil','<NAME>',12,'Durch Kettengeflecht und Stoff gelieferter RS kann ignoriert werden. Der RS aus Mischrüstungen und Lederrüstungen wird geviertelt. Auflistung siehe Arsenal. Jeglicher sonstige RS des Opfers wird halbiert.','MyA 105','Myranor',4,'Gehärtete Kettenstecher-Spitze')
GO
INSERT INTO [Munition] ([MunitionGUID],[Art],[Name],[Preismodifikator],[Bemerkungen],[Literatur],[Setting],[Probe],[Spitze]) VALUES ('00000000-0000-0000-000f-000000000024','Pfeil','<NAME>',16,'RS aus allen Formen von künstlichen Rüstungen wird geviertelt. Natürlicher RS wird halbiert.','MyA 105','Myranor',4,'Gehärtete Plattenstecher-Spitze')
GO
INSERT INTO [Munition] ([MunitionGUID],[Art],[Name],[Preismodifikator],[Bemerkungen],[Literatur],[Setting],[Probe],[Spitze]) VALUES ('00000000-0000-0000-000f-000000000025','Bolzen','Plattenstecher',4,'RS aus allen Formen von künstlichen Rüstungen wird halbiert. Natürlicher RS wirkt normal.','MyA 105','Myranor',4,'Plattenstecher-Spitze')
GO
INSERT INTO [Munition] ([MunitionGUID],[Art],[Name],[Preismodifikator],[Bemerkungen],[Literatur],[Setting],[Probe],[Spitze]) VALUES ('00000000-0000-0000-000f-000000000026','Pfeil','Gehärteter Jagdpfeil',5,'wiederverwendbar, RS des Opfers wird halbiert.','MyA 105','Myranor',4,'Gehärtete Klingenspitze')
GO
INSERT INTO [Munition] ([MunitionGUID],[Art],[Name],[Preismodifikator],[Bemerkungen],[Literatur],[Setting],[Probe],[Spitze]) VALUES ('00000000-0000-0000-000f-000000000027','Pfeil','Ge<NAME>ilschneider',12,'Reichweite wird halbiert. Über Probeaufschläge auf Seile entscheidet der Spielleiter anhand der genauen Situation, ebenso über Auswirkungen, die ein durchtrenntes Seil hat. Bei Einsatz auf Lebewesen verursacht die Spitze 1W6 TP zusätzlich.','MyA 105, 106','Myranor',4,'Gehärtete Mondsichel-Spitze')
GO
INSERT INTO [Munition] ([MunitionGUID],[Art],[Name],[Preismodifikator],[Bemerkungen],[Literatur],[Setting],[Probe],[Spitze]) VALUES ('00000000-0000-0000-000f-000000000028','Bolzen','Gehärteter Kettenbrecher',12,'Durch Kettengeflecht und Stoff gelieferter RS kann ignoriert werden. Der RS aus Mischrüstungen und Lederrüstungen wird geviertelt. Auflistung siehe Arsenal. Jeglicher sonstige RS des Opfers wird halbiert.','MyA 105','Myranor',4,'Gehärtete Kettenstecher-Spitze')
GO
INSERT INTO [Munition] ([MunitionGUID],[Art],[Name],[Preismodifikator],[Bemerkungen],[Literatur],[Setting],[Probe],[Spitze]) VALUES ('00000000-0000-0000-000f-000000000029','Bolzen','Gehärteter Plattenstecher',16,'RS aus allen Formen von künstlichen Rüstungen wird geviertelt. Natürlicher RS wird halbiert.','MyA 105','Myranor',4,'Gehärtete Plattenstecher-Spitze')
GO
INSERT INTO [Munition] ([MunitionGUID],[Art],[Name],[Preismodifikator],[Bemerkungen],[Literatur],[Setting],[Probe],[Spitze]) VALUES ('00000000-0000-0000-000f-000000000030','Bolzen','Gehärteter Sehnen-Seilschneider',12,'Reichweite wird halbiert. Über Probeaufschläge auf Seile entscheidet der Spielleiter anhand der genauen Situation, ebenso über Auswirkungen, die ein durchtrenntes Seil hat. Bei Einsatz auf Lebewesen verursacht die Spitze 1W6 TP zusätzlich.','MyA 105, 106','Myranor',4,'Gehärtete Mondsichel-Spitze')
GO
INSERT INTO [Munition] ([MunitionGUID],[Art],[Name],[Preismodifikator],[Bemerkungen],[Literatur],[Setting],[Probe],[Spitze]) VALUES ('00000000-0000-0000-000f-000000000031','Bolzen','<NAME>',4,'wiederverwendbar, RS des Opfers wird halbiert.','MyA 105','Myranor',4,'Gehärtete Klingenspitze')
GO
Update [Ausrüstung] set Setting = 'Aventurien' WHERE Setting is null
GO
Update [Ausrüstung] set Literatur = Replace(Literatur,' , ',', ') WHERE Literatur like '% , %'
GO
/* Audio Tabellenänderungen */
ALTER TABLE [Audio_Playlist_Titel] ADD Speed float NOT NULL DEFAULT 1
GO
ALTER TABLE [Audio_Playlist_Titel] ADD TeilAbspielen bit NOT NULL DEFAULT 0
GO
ALTER TABLE [Audio_Playlist_Titel] ADD TeilStart float NULL
GO
ALTER TABLE [Audio_Playlist_Titel] ADD TeilEnde float NULL
GO
CREATE TABLE [Audio_Theme] (
[Audio_ThemeGUID] uniqueidentifier NOT NULL ROWGUIDCOL DEFAULT newid(),
[Name] nvarchar(100) NOT NULL,
CONSTRAINT [PK_Audio_Theme] PRIMARY KEY ([Audio_ThemeGUID])
)
GO
CREATE TABLE [Audio_Theme_Playlist] (
[Audio_ThemeGUID] uniqueidentifier NOT NULL default '00000000-0000-0000-0000-000000000000',
[Audio_PlaylistGUID] uniqueidentifier NOT NULL default '00000000-0000-0000-0000-000000000000',
CONSTRAINT [PK_Audio_Theme_Playlist] PRIMARY KEY ([Audio_ThemeGUID], [Audio_PlaylistGUID]),
CONSTRAINT fk_Audio_Theme_Playlist_Playlist FOREIGN KEY ([Audio_PlaylistGUID])
REFERENCES Audio_Playlist ([Audio_PlaylistGUID])
ON UPDATE CASCADE ON DELETE CASCADE
)
GO |
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600509',@CutoffDate = N'2017-09-30',@EPS = N'0.318',@EPSDeduct = N'0',@Revenue = N'28.75亿',@RevenueYoy = N'8.32',@RevenueQoq = N'13.07',@Profit = N'2.87亿',@ProfitYoy = N'5.00',@ProfiltQoq = N'778.99',@NAVPerUnit = N'5.4576',@ROE = N'5.89',@CashPerUnit = N'0.9201',@GrossProfitRate = N'31.99',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2017-10-25'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600509',@CutoffDate = N'2017-09-30',@EPS = N'0.318',@EPSDeduct = N'0',@Revenue = N'28.75亿',@RevenueYoy = N'8.32',@RevenueQoq = N'13.07',@Profit = N'2.87亿',@ProfitYoy = N'5.00',@ProfiltQoq = N'778.99',@NAVPerUnit = N'5.4576',@ROE = N'5.89',@CashPerUnit = N'0.9201',@GrossProfitRate = N'31.99',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2017-10-25'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600509',@CutoffDate = N'2016-12-31',@EPS = N'0.35',@EPSDeduct = N'0.3',@Revenue = N'36.36亿',@RevenueYoy = N'4.36',@RevenueQoq = N'4.89',@Profit = N'3.13亿',@ProfitYoy = N'0.05',@ProfiltQoq = N'-72.76',@NAVPerUnit = N'5.2475',@ROE = N'6.69',@CashPerUnit = N'0.6702',@GrossProfitRate = N'31.24',@Distribution = N'10派1.07',@DividenRate = N'1.44',@AnnounceDate = N'2017-04-27'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600509',@CutoffDate = N'2017-06-30',@EPS = N'0.17',@EPSDeduct = N'0.17',@Revenue = N'18.95亿',@RevenueYoy = N'10.29',@RevenueQoq = N'-15.60',@Profit = N'1.50亿',@ProfitYoy = N'15.27',@ProfiltQoq = N'-88.38',@NAVPerUnit = N'5.4131',@ROE = N'3.11',@CashPerUnit = N'0.7063',@GrossProfitRate = N'31.66',@Distribution = N'不分配不转增',@DividenRate = N'-',@AnnounceDate = N'2017-08-24'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600509',@CutoffDate = N'2016-09-30',@EPS = N'0.302',@EPSDeduct = N'0',@Revenue = N'26.54亿',@RevenueYoy = N'3.03',@RevenueQoq = N'11.38',@Profit = N'2.74亿',@ProfitYoy = N'-7.81',@ProfiltQoq = N'180.20',@NAVPerUnit = N'5.2044',@ROE = N'5.80',@CashPerUnit = N'0.5840',@GrossProfitRate = N'32.83',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2017-10-25'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600509',@CutoffDate = N'2017-03-31',@EPS = N'0.15',@EPSDeduct = N'0',@Revenue = N'10.27亿',@RevenueYoy = N'17.12',@RevenueQoq = N'4.62',@Profit = N'1.34亿',@ProfitYoy = N'70.24',@ProfiltQoq = N'243.91',@NAVPerUnit = N'5.3959',@ROE = N'2.79',@CashPerUnit = N'0.1421',@GrossProfitRate = N'34.39',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2017-04-27'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600509',@CutoffDate = N'2015-12-31',@EPS = N'0.35',@EPSDeduct = N'0.25',@Revenue = N'34.84亿',@RevenueYoy = N'-2.11',@RevenueQoq = N'4.76',@Profit = N'3.12亿',@ProfitYoy = N'-10.01',@ProfiltQoq = N'-83.16',@NAVPerUnit = N'5.1023',@ROE = N'6.95',@CashPerUnit = N'0.7132',@GrossProfitRate = N'30.06',@Distribution = N'10派2',@DividenRate = N'2.68',@AnnounceDate = N'2017-04-27'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600509',@CutoffDate = N'2016-06-30',@EPS = N'0.14',@EPSDeduct = N'0.1',@Revenue = N'17.18亿',@RevenueYoy = N'0.51',@RevenueQoq = N'-4.17',@Profit = N'1.30亿',@ProfitYoy = N'-35.95',@ProfiltQoq = N'-35.14',@NAVPerUnit = N'5.2460',@ROE = N'2.78',@CashPerUnit = N'-0.0310',@GrossProfitRate = N'31.35',@Distribution = N'不分配不转增',@DividenRate = N'-',@AnnounceDate = N'2017-08-24'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600509',@CutoffDate = N'2015-06-30',@EPS = N'0.224',@EPSDeduct = N'0.21',@Revenue = N'17.09亿',@RevenueYoy = N'6.46',@RevenueQoq = N'-20.34',@Profit = N'2.03亿',@ProfitYoy = N'9.08',@ProfiltQoq = N'-42.68',@NAVPerUnit = N'5.0859',@ROE = N'4.51',@CashPerUnit = N'0.4256',@GrossProfitRate = N'31.54',@Distribution = N'不分配不转增',@DividenRate = N'-',@AnnounceDate = N'2016-08-27'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600509',@CutoffDate = N'2015-03-31',@EPS = N'0.14',@EPSDeduct = N'0',@Revenue = N'9.51亿',@RevenueYoy = N'14.52',@RevenueQoq = N'0.43',@Profit = N'1.29亿',@ProfitYoy = N'7.55',@ProfiltQoq = N'82.67',@NAVPerUnit = N'5.0042',@ROE = N'2.89',@CashPerUnit = N'-0.0463',@GrossProfitRate = N'29.48',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2016-04-23'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600509',@CutoffDate = N'2014-12-31',@EPS = N'0.38',@EPSDeduct = N'0.31',@Revenue = N'35.59亿',@RevenueYoy = N'14.53',@RevenueQoq = N'-5.89',@Profit = N'3.47亿',@ProfitYoy = N'28.01',@ProfiltQoq = N'-21.73',@NAVPerUnit = N'4.8616',@ROE = N'8.01',@CashPerUnit = N'0.7138',@GrossProfitRate = N'26.13',@Distribution = N'10派1.16',@DividenRate = N'1.04',@AnnounceDate = N'2016-04-23'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600509',@CutoffDate = N'2016-03-31',@EPS = N'0.09',@EPSDeduct = N'0',@Revenue = N'8.77亿',@RevenueYoy = N'-7.79',@RevenueQoq = N'-3.40',@Profit = N'7892.28万',@ProfitYoy = N'-38.88',@ProfiltQoq = N'400.92',@NAVPerUnit = N'5.1895',@ROE = N'1.69',@CashPerUnit = N'-0.2368',@GrossProfitRate = N'29.21',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2017-04-27'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600509',@CutoffDate = N'2014-06-30',@EPS = N'0.206',@EPSDeduct = N'0.18',@Revenue = N'16.05亿',@RevenueYoy = N'15.84',@RevenueQoq = N'-6.74',@Profit = N'1.86亿',@ProfitYoy = N'26.81',@ProfiltQoq = N'-44.89',@NAVPerUnit = N'4.6803',@ROE = N'4.22',@CashPerUnit = N'0.4335',@GrossProfitRate = N'26.61',@Distribution = N'不分配不转增',@DividenRate = N'-',@AnnounceDate = N'2015-08-29'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600509',@CutoffDate = N'2014-03-31',@EPS = N'0.13',@EPSDeduct = N'0',@Revenue = N'8.31亿',@RevenueYoy = N'15.22',@RevenueQoq = N'-11.08',@Profit = N'1.20亿',@ProfitYoy = N'17.38',@ProfiltQoq = N'342.07',@NAVPerUnit = N'4.9072',@ROE = N'2.74',@CashPerUnit = N'0.0059',@GrossProfitRate = N'27.92',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2015-04-29'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600509',@CutoffDate = N'2013-12-31',@EPS = N'0.32',@EPSDeduct = N'0.23',@Revenue = N'31.08亿',@RevenueYoy = N'6.48',@RevenueQoq = N'18.61',@Profit = N'2.71亿',@ProfitYoy = N'5.70',@ProfiltQoq = N'-72.07',@NAVPerUnit = N'4.7746',@ROE = N'7.13',@CashPerUnit = N'0.7059',@GrossProfitRate = N'26.51',@Distribution = N'10派3',@DividenRate = N'3.85',@AnnounceDate = N'2015-04-29'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600509',@CutoffDate = N'2015-09-30',@EPS = N'0.328',@EPSDeduct = N'0',@Revenue = N'25.76亿',@RevenueYoy = N'-1.37',@RevenueQoq = N'14.40',@Profit = N'2.97亿',@ProfitYoy = N'7.30',@ProfiltQoq = N'26.45',@NAVPerUnit = N'5.0732',@ROE = N'6.57',@CashPerUnit = N'1.0282',@GrossProfitRate = N'30.26',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2016-10-29'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600509',@CutoffDate = N'2013-06-30',@EPS = N'0.188',@EPSDeduct = N'0.15',@Revenue = N'13.86亿',@RevenueYoy = N'13.98',@RevenueQoq = N'-7.78',@Profit = N'1.47亿',@ProfitYoy = N'42.86',@ProfiltQoq = N'-56.43',@NAVPerUnit = N'4.7776',@ROE = N'6.05',@CashPerUnit = N'0.2945',@GrossProfitRate = N'29.13',@Distribution = N'不分配不转增',@DividenRate = N'-',@AnnounceDate = N'2014-08-27'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600509',@CutoffDate = N'2012-12-31',@EPS = N'0.39',@EPSDeduct = N'0.29',@Revenue = N'29.18亿',@RevenueYoy = N'21.68',@RevenueQoq = N'26.90',@Profit = N'2.57亿',@ProfitYoy = N'-35.69',@ProfiltQoq = N'-45.71',@NAVPerUnit = N'3.5868',@ROE = N'11.35',@CashPerUnit = N'0.0204',@GrossProfitRate = N'25.81',@Distribution = N'10派1.4',@DividenRate = N'1.73',@AnnounceDate = N'2014-04-18'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600509',@CutoffDate = N'2012-09-30',@EPS = N'0.31',@EPSDeduct = N'0.259',@Revenue = N'19.66亿',@RevenueYoy = N'19.26',@RevenueQoq = N'8.62',@Profit = N'2.02亿',@ProfitYoy = N'-6.06',@ProfiltQoq = N'186.95',@NAVPerUnit = N'3.5043',@ROE = N'8.88',@CashPerUnit = N'-0.3402',@GrossProfitRate = N'26.72',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2013-10-31'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600509',@CutoffDate = N'2012-06-30',@EPS = N'0.157',@EPSDeduct = N'0.14',@Revenue = N'12.16亿',@RevenueYoy = N'26.88',@RevenueQoq = N'31.61',@Profit = N'1.03亿',@ProfitYoy = N'10.50',@ProfiltQoq = N'-48.94',@NAVPerUnit = N'3.3522',@ROE = N'4.52',@CashPerUnit = N'-0.2844',@GrossProfitRate = N'25.49',@Distribution = N'不分配不转增',@DividenRate = N'-',@AnnounceDate = N'2013-08-29'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600509',@CutoffDate = N'2012-03-31',@EPS = N'0.104',@EPSDeduct = N'0.083',@Revenue = N'5.25亿',@RevenueYoy = N'32.90',@RevenueQoq = N'-29.99',@Profit = N'6805.08万',@ProfitYoy = N'20.49',@ProfiltQoq = N'-62.92',@NAVPerUnit = N'3.5310',@ROE = N'2.98',@CashPerUnit = N'-0.2436',@GrossProfitRate = N'31.69',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2013-04-25'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600509',@CutoffDate = N'2011-12-31',@EPS = N'0.61',@EPSDeduct = N'0.2',@Revenue = N'23.98亿',@RevenueYoy = N'27.58',@RevenueQoq = N'8.60',@Profit = N'3.99亿',@ProfitYoy = N'174.38',@ProfiltQoq = N'49.78',@NAVPerUnit = N'3.4272',@ROE = N'18.92',@CashPerUnit = N'-0.4762',@GrossProfitRate = N'31.18',@Distribution = N'10派2.3',@DividenRate = N'2.52',@AnnounceDate = N'2013-04-25'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600509',@CutoffDate = N'2011-09-30',@EPS = N'0.329',@EPSDeduct = N'0.306',@Revenue = N'16.49亿',@RevenueYoy = N'30.79',@RevenueQoq = N'22.60',@Profit = N'2.16亿',@ProfitYoy = N'78.88',@ProfiltQoq = N'235.22',@NAVPerUnit = N'3.1500',@ROE = N'10.57',@CashPerUnit = N'-0.1417',@GrossProfitRate = N'38.85',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2012-10-20'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600509',@CutoffDate = N'2011-06-30',@EPS = N'0.142',@EPSDeduct = N'0.136',@Revenue = N'9.58亿',@RevenueYoy = N'28.54',@RevenueQoq = N'42.59',@Profit = N'9302.79万',@ProfitYoy = N'153.30',@ProfiltQoq = N'-35.28',@NAVPerUnit = N'3.1200',@ROE = N'4.65',@CashPerUnit = N'-0.1920',@GrossProfitRate = N'36.10',@Distribution = N'不分配不转增',@DividenRate = N'-',@AnnounceDate = N'2012-08-31'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600509',@CutoffDate = N'2011-03-31',@EPS = N'0.09',@EPSDeduct = N'0.08',@Revenue = N'3.95亿',@RevenueYoy = N'6.71',@RevenueQoq = N'-36.24',@Profit = N'5647.78万',@ProfitYoy = N'140.01',@ProfiltQoq = N'126.45',@NAVPerUnit = N'3.0700',@ROE = N'2.85',@CashPerUnit = N'-0.0247',@GrossProfitRate = N'38.66',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2012-04-28'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600509',@CutoffDate = N'2010-12-31',@EPS = N'0.22',@EPSDeduct = N'0.2',@Revenue = N'18.80亿',@RevenueYoy = N'13.99',@RevenueQoq = N'20.25',@Profit = N'1.45亿',@ProfitYoy = N'76.82',@ProfiltQoq = N'-70.23',@NAVPerUnit = N'2.9808',@ROE = N'7.60',@CashPerUnit = N'1.2854',@GrossProfitRate = N'32.40',@Distribution = N'10派1.6',@DividenRate = N'1.34',@AnnounceDate = N'2012-03-10'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600509',@CutoffDate = N'2010-09-30',@EPS = N'0.184',@EPSDeduct = N'0.17',@Revenue = N'12.61亿',@RevenueYoy = N'22.81',@RevenueQoq = N'37.27',@Profit = N'1.21亿',@ProfitYoy = N'137.17',@ProfiltQoq = N'534.90',@NAVPerUnit = N'2.9400',@ROE = N'6.31',@CashPerUnit = N'1.2443',@GrossProfitRate = N'33.67',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2011-10-24'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600509',@CutoffDate = N'2010-06-30',@EPS = N'0.056',@EPSDeduct = N'0.05',@Revenue = N'7.45亿',@RevenueYoy = N'18.10',@RevenueQoq = N'1.38',@Profit = N'3672.58万',@ProfitYoy = N'110.55',@ProfiltQoq = N'-43.93',@NAVPerUnit = N'2.8951',@ROE = N'1.95',@CashPerUnit = N'0.8035',@GrossProfitRate = N'31.50',@Distribution = N'不分配不转增',@DividenRate = N'-',@AnnounceDate = N'2011-08-22'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600509',@CutoffDate = N'2010-03-31',@EPS = N'0.04',@EPSDeduct = N'0.04',@Revenue = N'3.70亿',@RevenueYoy = N'24.53',@RevenueQoq = N'-40.57',@Profit = N'2353.10万',@ProfitYoy = N'132.08',@ProfiltQoq = N'-25.17',@NAVPerUnit = N'2.8700',@ROE = N'1.24',@CashPerUnit = N'0.0260',@GrossProfitRate = N'29.70',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2011-04-22'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600509',@CutoffDate = N'2009-12-31',@EPS = N'0.13',@EPSDeduct = N'0.09',@Revenue = N'16.49亿',@RevenueYoy = N'21.75',@RevenueQoq = N'57.59',@Profit = N'8225.42万',@ProfitYoy = N'24.42',@ProfiltQoq = N'-5.74',@NAVPerUnit = N'2.8400',@ROE = N'4.52',@CashPerUnit = N'1.3509',@GrossProfitRate = N'31.05',@Distribution = N'10派0.8',@DividenRate = N'0.89',@AnnounceDate = N'2011-04-12'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600509',@CutoffDate = N'2009-09-30',@EPS = N'0.08',@EPSDeduct = N'0.072',@Revenue = N'10.26亿',@RevenueYoy = N'14.71',@RevenueQoq = N'18.35',@Profit = N'5080.65万',@ProfitYoy = N'3.46',@ProfiltQoq = N'356.79',@NAVPerUnit = N'2.7900',@ROE = N'-',@CashPerUnit = N'0.6450',@GrossProfitRate = N'30.44',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2010-10-29'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600509',@CutoffDate = N'2009-06-30',@EPS = N'0.03',@EPSDeduct = N'0.02',@Revenue = N'6.31亿',@RevenueYoy = N'13.97',@RevenueQoq = N'12.35',@Profit = N'1744.29万',@ProfitYoy = N'-39.50',@ProfiltQoq = N'-27.96',@NAVPerUnit = N'2.8100',@ROE = N'0.95',@CashPerUnit = N'0.5960',@GrossProfitRate = N'26.87',@Distribution = N'不分配不转增',@DividenRate = N'-',@AnnounceDate = N'2010-08-25'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600509',@CutoffDate = N'2009-03-31',@EPS = N'0.015',@EPSDeduct = N'0.012',@Revenue = N'2.97亿',@RevenueYoy = N'0.53',@RevenueQoq = N'-35.36',@Profit = N'1013.91万',@ProfitYoy = N'-33.13',@ProfiltQoq = N'-40.38',@NAVPerUnit = N'2.8000',@ROE = N'-',@CashPerUnit = N'0.0163',@GrossProfitRate = N'26.38',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2010-04-30'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600509',@CutoffDate = N'2008-12-31',@EPS = N'0.09',@EPSDeduct = N'0.09',@Revenue = N'13.55亿',@RevenueYoy = N'13.46',@RevenueQoq = N'34.84',@Profit = N'6611.22万',@ProfitYoy = N'-19.78',@ProfiltQoq = N'-16.13',@NAVPerUnit = N'2.7800',@ROE = N'3.60',@CashPerUnit = N'0.4040',@GrossProfitRate = N'29.54',@Distribution = N'10派0.7',@DividenRate = N'0.67',@AnnounceDate = N'2010-04-30'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600509',@CutoffDate = N'2008-09-30',@EPS = N'0.07',@EPSDeduct = N'0.0664',@Revenue = N'8.95亿',@RevenueYoy = N'9.23',@RevenueQoq = N'32.12',@Profit = N'4910.71万',@ProfitYoy = N'-12.07',@ProfiltQoq = N'48.31',@NAVPerUnit = N'2.8039',@ROE = N'-',@CashPerUnit = N'0.1022',@GrossProfitRate = N'30.69',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2009-10-30'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600509',@CutoffDate = N'2008-06-30',@EPS = N'0.04',@EPSDeduct = N'0.04',@Revenue = N'5.54亿',@RevenueYoy = N'13.10',@RevenueQoq = N'-12.70',@Profit = N'2883.22万',@ProfitYoy = N'-2.17',@ProfiltQoq = N'-9.83',@NAVPerUnit = N'2.7700',@ROE = N'1.57',@CashPerUnit = N'0.0908',@GrossProfitRate = N'30.08',@Distribution = N'不分配不转增',@DividenRate = N'-',@AnnounceDate = N'2009-08-25'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600509',@CutoffDate = N'2008-03-31',@EPS = N'0.1',@EPSDeduct = N'0.05',@Revenue = N'2.96亿',@RevenueYoy = N'12.93',@RevenueQoq = N'-21.10',@Profit = N'1516.13万',@ProfitYoy = N'15.47',@ProfiltQoq = N'-42.94',@NAVPerUnit = N'5.6400',@ROE = N'-',@CashPerUnit = N'0.0362',@GrossProfitRate = N'27.93',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2009-04-30'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600509',@CutoffDate = N'2007-12-31',@EPS = N'0.32',@EPSDeduct = N'0.33',@Revenue = N'11.94亿',@RevenueYoy = N'20.98',@RevenueQoq = N'13.72',@Profit = N'8241.60万',@ProfitYoy = N'127.25',@ProfiltQoq = N'0.74',@NAVPerUnit = N'5.6000',@ROE = N'10.51',@CashPerUnit = N'1.4716',@GrossProfitRate = N'32.34',@Distribution = N'10转10派1.4',@DividenRate = N'1.13',@AnnounceDate = N'2009-04-30'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600509',@CutoffDate = N'2007-09-30',@EPS = N'0.22',@EPSDeduct = N'0.22',@Revenue = N'8.19亿',@RevenueYoy = N'32.10',@RevenueQoq = N'44.64',@Profit = N'5584.53万',@ProfitYoy = N'985.62',@ProfiltQoq = N'61.40',@NAVPerUnit = N'2.9000',@ROE = N'-',@CashPerUnit = N'0.1704',@GrossProfitRate = N'30.83',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2008-10-30'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600509',@CutoffDate = N'2007-06-30',@EPS = N'0.12',@EPSDeduct = N'0.12',@Revenue = N'4.90亿',@RevenueYoy = N'26.36',@RevenueQoq = N'-12.98',@Profit = N'2947.07万',@ProfitYoy = N'775.45',@ProfiltQoq = N'24.46',@NAVPerUnit = N'2.7900',@ROE = N'4.07',@CashPerUnit = N'0.1313',@GrossProfitRate = N'27.42',@Distribution = N'不分配不转增',@DividenRate = N'-',@AnnounceDate = N'2008-08-14'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600509',@CutoffDate = N'2007-03-31',@EPS = N'0.05',@EPSDeduct = N'0',@Revenue = N'2.62亿',@RevenueYoy = N'12.54',@RevenueQoq = N'-28.61',@Profit = N'1312.96万',@ProfitYoy = N'225.89',@ProfiltQoq = N'-57.81',@NAVPerUnit = N'2.8700',@ROE = N'-',@CashPerUnit = N'0.0637',@GrossProfitRate = N'26.80',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2008-04-29'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600509',@CutoffDate = N'2006-12-31',@EPS = N'0.14',@EPSDeduct = N'0.14',@Revenue = N'9.87亿',@RevenueYoy = N'20.92',@RevenueQoq = N'57.50',@Profit = N'3626.60万',@ProfitYoy = N'-43.28',@ProfiltQoq = N'1882.69',@NAVPerUnit = N'2.8000',@ROE = N'4.82',@CashPerUnit = N'1.4252',@GrossProfitRate = N'28.87',@Distribution = N'10派1.5',@DividenRate = N'0.59',@AnnounceDate = N'2008-03-21'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600509',@CutoffDate = N'2014-09-30',@EPS = N'0.305',@EPSDeduct = N'0',@Revenue = N'26.12亿',@RevenueYoy = N'20.17',@RevenueQoq = N'29.93',@Profit = N'2.77亿',@ProfitYoy = N'13.30',@ProfiltQoq = N'36.49',@NAVPerUnit = N'4.7800',@ROE = N'6.33',@CashPerUnit = N'0.4227',@GrossProfitRate = N'26.28',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2015-10-31'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600509',@CutoffDate = N'2013-03-31',@EPS = N'0.16',@EPSDeduct = N'0.131',@Revenue = N'7.21亿',@RevenueYoy = N'37.34',@RevenueQoq = N'-24.29',@Profit = N'1.02亿',@ProfitYoy = N'50.30',@ProfiltQoq = N'88.97',@NAVPerUnit = N'4.7284',@ROE = N'4.26',@CashPerUnit = N'0.2143',@GrossProfitRate = N'30.47',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2014-04-18'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600509',@CutoffDate = N'2006-06-30',@EPS = N'0.0141',@EPSDeduct = N'0',@Revenue = N'3.88亿',@RevenueYoy = N'11.03',@RevenueQoq = N'-33.43',@Profit = N'336.63万',@ProfitYoy = N'-89.93',@ProfiltQoq = N'-116.44',@NAVPerUnit = N'2.7900',@ROE = N'0.51',@CashPerUnit = N'0.3220',@GrossProfitRate = N'25.07',@Distribution = N'不分配不转增',@DividenRate = N'-',@AnnounceDate = N'2007-07-24'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600509',@CutoffDate = N'2005-12-31',@EPS = N'0.25',@EPSDeduct = N'0',@Revenue = N'8.16亿',@RevenueYoy = N'15.93',@RevenueQoq = N'15.53',@Profit = N'6393.78万',@ProfitYoy = N'6.16',@ProfiltQoq = N'-7.45',@NAVPerUnit = N'2.7800',@ROE = N'9.16',@CashPerUnit = N'0.9281',@GrossProfitRate = N'31.93',@Distribution = N'10派2',@DividenRate = N'2.84',@AnnounceDate = N'2007-03-21'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600509',@CutoffDate = N'2005-09-30',@EPS = N'0',@EPSDeduct = N'0',@Revenue = N'5.66亿',@RevenueYoy = N'7.84',@RevenueQoq = N'18.09',@Profit = N'4927.43万',@ProfitYoy = N'-9.32',@ProfiltQoq = N'-8.01',@NAVPerUnit = N'2.7200',@ROE = N'-',@CashPerUnit = N'0.1547',@GrossProfitRate = N'33.09',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2006-10-27'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600509',@CutoffDate = N'2005-06-30',@EPS = N'0.13',@EPSDeduct = N'0',@Revenue = N'3.49亿',@RevenueYoy = N'1.60',@RevenueQoq = N'10.92',@Profit = N'3343.12万',@ProfitYoy = N'-0.04',@ProfiltQoq = N'6.25',@NAVPerUnit = N'2.6600',@ROE = N'4.96',@CashPerUnit = N'0.0389',@GrossProfitRate = N'34.74',@Distribution = N'不分配不转增',@DividenRate = N'-',@AnnounceDate = N'2006-08-11'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600509',@CutoffDate = N'2006-03-31',@EPS = N'0',@EPSDeduct = N'0',@Revenue = N'2.33亿',@RevenueYoy = N'40.59',@RevenueQoq = N'-7.10',@Profit = N'402.89万',@ProfitYoy = N'-75.14',@ProfiltQoq = N'-72.52',@NAVPerUnit = N'2.7900',@ROE = N'-',@CashPerUnit = N'0.0956',@GrossProfitRate = N'24.84',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2007-04-26'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600509',@CutoffDate = N'2006-09-30',@EPS = N'0',@EPSDeduct = N'0',@Revenue = N'6.20亿',@RevenueYoy = N'9.61',@RevenueQoq = N'50.37',@Profit = N'514.41万',@ProfitYoy = N'-89.56',@ProfiltQoq = N'336.92',@NAVPerUnit = N'2.6000',@ROE = N'-',@CashPerUnit = N'0.1470',@GrossProfitRate = N'27.45',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2007-10-24'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600509',@CutoffDate = N'2013-09-30',@EPS = N'0.3',@EPSDeduct = N'0',@Revenue = N'21.73亿',@RevenueYoy = N'10.54',@RevenueQoq = N'18.47',@Profit = N'2.44亿',@ProfitYoy = N'20.54',@ProfiltQoq = N'118.18',@NAVPerUnit = N'4.7449',@ROE = N'6.66',@CashPerUnit = N'0.5408',@GrossProfitRate = N'28.24',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2014-10-30' |
<filename>install/db/mysql8/install.sql<gh_stars>0
-- таблица мультикорзин
CREATE TABLE IF NOT EXISTS `germes_multibasket` (
`ID` INT(18) NOT NULL AUTO_INCREMENT, -- просто строчки
`ACTIVE` CHAR(1) NOT NULL DEFAULT 'Y', -- активность слепка корзины
`USER_ID` INT(18) NOT NULL, -- ID пользователя
`ACCOUNT_NUMBER` VARCHAR(50) NOT NULL, -- Номер корзины и будущего заказа
`CONTRAGENT_ID` INT(18) NULL, -- ID контрагента
`CONTRAGENT_UNIT_ID` INT(18) NULL, -- ID адреса контрагента
`BASKET_ITEMS_ID` VARCHAR (65536) NOT NULL, -- список ID+количество товаров в корзине
`SORT` INT(18) DEFAULT 500, -- сортировка корзины
`TIMESTAMP` TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, -- дата изменения
`DATE_INSERT` TIMESTAMP DEFAULT CURRENT_TIMESTAMP, -- дата добавления
`SUMM_PRICE` FLOAT(36) NULL, -- сумма корзины для определения различий/обновления
`COMMENTS` VARCHAR(65536) NULL, -- комментарий к корзине
`IP_CREATE` VARCHAR(50) NOT NULL, -- IP пользователя, создавшего заказ
PRIMARY KEY(ID),
INDEX g_user_id (`USER_ID`),
INDEX g_account_number (`ACCOUNT_NUMBER`),
INDEX g_user_id_account_number (`USER_ID`,`ACCOUNT_NUMBER`),
INDEX g_user_id_account_number_contragent_id (`USER_ID`,`ACCOUNT_NUMBER`,`CONTRAGENT_ID`),
INDEX g_user_id_contragent_id_contragent_unit_id (`USER_ID`,`CONTRAGENT_UNIT_ID`,`CONTRAGENT_ID`),
unique IXS_ACCOUNT_NUMBER(ACCOUNT_NUMBER)
);
ALTER TABLE `germes_multibasket` ADD IF NOT EXISTS `COUNT` FLOAT(36) NULL;
ALTER TABLE `germes_multibasket` MODIFY `COUNT` FLOAT(36) NULL;
ALTER TABLE `germes_multibasket` ADD IF NOT EXISTS `SUMM_PRICE` FLOAT(36) NULL;
ALTER TABLE `germes_multibasket` MODIFY `SUMM_PRICE` FLOAT(36) NULL;
ALTER TABLE `germes_multibasket` ADD IF NOT EXISTS `COMMENTS` TEXT(65536) NULL;
ALTER TABLE `germes_multibasket` MODIFY `COMMENTS` TEXT(65536) NULL;
ALTER TABLE `germes_multibasket` ADD IF NOT EXISTS `IP_CREATE` VARCHAR(50) NOT NULL;
ALTER TABLE `germes_multibasket` MODIFY `IP_CREATE` VARCHAR(50) NOT NULL;
-- таблица товаров в мультикорзинах
CREATE TABLE IF NOT EXISTS `germes_multibasket_items` (
`ID` INT(18) NOT NULL AUTO_INCREMENT,
`BASKET_ID` INT(18) NOT NULL, -- ID корзины
`PRODUCT_ID` INT(18) NOT NULL, -- ID единицы
`PRODUCT_XML_ID` VARCHAR (36) NOT NULL, -- внешний код единицы
`PRODUCT_BAR_CODE` VARCHAR (255) NULL, -- штрих код единицы
`NAME` TEXT (65536) NOT NULL, -- наименование единицы
`QUANTITY` REAL NOT NULL, -- количество товара
`LINK` VARCHAR (255) NOT NULL, -- ссылка на единицу товара
`IMAGE` VARCHAR (255) NULL, -- ссылка на картинку товара
`PRICE` REAL NOT NULL, -- цена товара
`CURRENCY` VARCHAR (36) NOT NULL, -- цена товара
`PROPS` TEXT (65536) NULL, -- JSON строка доп. параметров товара
`DATE_UPDATE` TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`DATE_INSERT` TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY(ID),
INDEX PRODUCT_ID (`PRODUCT_ID`),
INDEX PRODUCT_XML_ID (`PRODUCT_XML_ID`(36)),
INDEX BASKET_ID_PRODUCT_ID (`BASKET_ID`,`PRODUCT_ID`),
INDEX BASKET_ID_PRODUCT_XML_ID (`BASKET_ID`,`PRODUCT_XML_ID`(36)),
UNIQUE KEY BASKET_ID_PRODUCT_ID_PRODUCT_XML_ID (`BASKET_ID`,`PRODUCT_ID`,`PRODUCT_XML_ID`(36))
);
ALTER TABLE `germes_multibasket_items` ADD IF NOT EXISTS `WEIGHT` FLOAT(36) NULL;
ALTER TABLE `germes_multibasket_items` MODIFY `WEIGHT` FLOAT(36) NULL;
ALTER TABLE `germes_multibasket_items` ADD IF NOT EXISTS `PRODUCT_BAR_CODE` VARCHAR(255) NULL;
ALTER TABLE `germes_multibasket_items` MODIFY `PRODUCT_BAR_CODE` VARCHAR(255) NULL;
ALTER TABLE `germes_multibasket_items` ADD IF NOT EXISTS `ITEM_IMAGE` VARCHAR(255) NULL;
ALTER TABLE `germes_multibasket_items` MODIFY `ITEM_IMAGE` VARCHAR(255) NULL;
-- таблица истории мультикорзин
CREATE TABLE IF NOT EXISTS `germes_multibasket_history` (
`ID` INT(18) NOT NULL AUTO_INCREMENT,
`ACCOUNT_NUMBER` VARCHAR(50) NOT NULL, -- Номер корзины и будущего заказа
`TYPE` VARCHAR (256) NOT NULL DEFAULT 'INFO',
`BASKET_ITEM_ROW` TEXT (65536) NOT NULL,
`DESCRIPTION` TEXT (65536) NOT NULL,
`PRODUCT_ID` INT(18) NULL,
`TIMESTAMP` TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`USER_ID` INT(18) NOT NULL, -- ID пользователя
`IP_CREATE` VARCHAR(50) NOT NULL, -- IP пользователя, создавшего заказ
PRIMARY KEY(ID),
INDEX g_account_number (`ACCOUNT_NUMBER`),
INDEX g_product_id (`PRODUCT_ID`),
INDEX g_account_number_product_id (`ACCOUNT_NUMBER`,`PRODUCT_ID`)
);
ALTER TABLE `germes_multibasket_history` RENAME COLUMN `BASKET_ITEM_ROW` TO `DATA`;
ALTER TABLE `germes_multibasket_history` ADD IF NOT EXISTS `DATA` TEXT (65536) NOT NULL;
ALTER TABLE `germes_multibasket_history` MODIFY IF EXISTS `DATA` TEXT (65536) NOT NULL;
ALTER TABLE `germes_multibasket_history` MODIFY IF EXISTS `PRODUCT_ID` INT(18) NULL;
-- таблица связей пользователя и контрагентов
CREATE TABLE IF NOT EXISTS `germes_user_contragents` (
`ID` INT(18) NOT NULL AUTO_INCREMENT,
`ID_USER` INT(18) NOT NULL, -- внутренний ИД пользователя
`XML_ID_USER` VARCHAR(36) NULL, -- внешний ИД пользователя
`XML_ID_CONTRAGENT` VARCHAR(36) NOT NULL, -- внешний ИД контрагента
`MAIN` CHAR(1) NOT NULL DEFAULT 'N', -- основной контрагент
`SORT` INT(18) NOT NULL DEFAULT 100, -- сортировка связи
`ACTIVE` CHAR(1) NOT NULL DEFAULT 'Y', -- активность связи
`DATE_INSERT` DATETIME DEFAULT CURRENT_TIMESTAMP, -- дата добавления строки
`DATE_UPDATE` DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, -- дата обновления строки
PRIMARY KEY(ID),
INDEX ID_USER (`ID_USER`),
INDEX XML_ID_USER (`XML_ID_USER`(36)),
INDEX XML_ID_CONTRAGENT (`XML_ID_CONTRAGENT`(36)),
UNIQUE KEY ID_USER_XML_ID_CONTRAGENT (`ID_USER`,`XML_ID_CONTRAGENT`(36))
);
-- таблица операторов для контрагентов
CREATE TABLE IF NOT EXISTS `b_operatory` (
`ID` INT(18) NOT NULL AUTO_INCREMENT,
`NAME` VARCHAR(36) NULL, -- название акции
`XML_ID` VARCHAR(36) NOT NULL, -- внешний ИД
`VERSION` VARCHAR(36) NOT NULL DEFAULT 1, -- версионность
`DESCRIPTION` TEXT(65536) NULL, -- полное описание
`ACTIVE` CHAR(1) NOT NULL DEFAULT 'Y', -- активность
`PHONE` TEXT(65536) NULL, -- phone
`EMAIL` TEXT(65536) NULL, -- email
`SOURCE` VARCHAR(36) NULL, -- источник
`SORT` INT(18) NOT NULL DEFAULT 100, -- сортировка
`DATE_INSERT` DATETIME DEFAULT CURRENT_TIMESTAMP, -- дата добавления строки
`DATE_UPDATE` DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, -- дата обновления строки
PRIMARY KEY(XML_ID),
INDEX XML_ID (`XML_ID`(36)),
UNIQUE KEY ID_XML_ID (`ID`,`XML_ID`(36))
);
-- таблица менеджеров для контрагентов
CREATE TABLE IF NOT EXISTS `b_menedzhery` (
`ID` INT(18) NOT NULL AUTO_INCREMENT,
`NAME` VARCHAR(36) NULL, -- название акции
`XML_ID` VARCHAR(36) NOT NULL, -- внешний ИД
`VERSION` VARCHAR(36) NOT NULL DEFAULT 1, -- версионность
`DESCRIPTION` TEXT(65536) NULL, -- полное описание
`ACTIVE` CHAR(1) NOT NULL DEFAULT 'Y', -- активность
`PHONE` TEXT(65536) NULL, -- phone
`EMAIL` TEXT(65536) NULL, -- email
`SOURCE` VARCHAR(36) NULL, -- источник
`SORT` INT(18) NOT NULL DEFAULT 100, -- сортировка
`DATE_INSERT` DATETIME DEFAULT CURRENT_TIMESTAMP, -- дата добавления строки
`DATE_UPDATE` DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, -- дата обновления строки
PRIMARY KEY(XML_ID),
INDEX XML_ID (`XML_ID`(36)),
UNIQUE KEY ID_XML_ID (`ID`,`XML_ID`(36))
);
-- таблица акций и контрагентов
CREATE TABLE IF NOT EXISTS `b_actions` (
`ID` INT(18) NOT NULL AUTO_INCREMENT,
`NAME` VARCHAR(36) NULL, -- название акции
`PREVIEW` TEXT(65536) NULL, -- короткое описание
`DESCRIPTION` TEXT(65536) NULL, -- полное описание
`XML_ID` VARCHAR(36) NOT NULL, -- внешний ИД
`TYPE` VARCHAR(36) NULL, -- тип акции
`VERSION` VARCHAR(36) NOT NULL DEFAULT 1, -- версионность
`SOURCE` VARCHAR(36) NULL, -- источник
`MORE_PHOTO` CHAR(1) NOT NULL DEFAULT 'N', -- основной контрагент
`SORT` INT(18) NOT NULL DEFAULT 100, -- сортировка
`ACTIVE` CHAR(1) NOT NULL DEFAULT 'Y', -- активность
`DATE_ACTIVE_FROM` DATETIME DEFAULT CURRENT_TIMESTAMP, -- дата активации
`DATE_ACTIVE_END` DATETIME DEFAULT CURRENT_TIMESTAMP, -- дата завершения
`DATE_INSERT` DATETIME DEFAULT CURRENT_TIMESTAMP, -- дата добавления строки
`DATE_UPDATE` DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, -- дата обновления строки
PRIMARY KEY(XML_ID),
INDEX XML_ID (`XML_ID`(36)),
UNIQUE KEY ID_XML_ID (`ID`,`XML_ID`(36))
);
-- таблица товаров для акции
CREATE TABLE IF NOT EXISTS `b_actions_item` (
`ID` INT(18) NOT NULL AUTO_INCREMENT,
`XML_ID` VARCHAR(36) NOT NULL, -- внешний ИД акции
`PRODUCT_XML_ID` VARCHAR(36) NULL, -- внешний ИД товара
`VERSION` VARCHAR(36) NOT NULL DEFAULT 1, -- версионность
`SOURCE` VARCHAR(36) NULL, -- источник
`SORT` INT(18) NOT NULL DEFAULT 100, -- сортировка
`DATE_INSERT` DATETIME DEFAULT CURRENT_TIMESTAMP, -- дата добавления строки
`DATE_UPDATE` DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, -- дата обновления строки
PRIMARY KEY(ID),
UNIQUE KEY XML_ID_PRODUCT_XML_ID (`XML_ID`(36),`PRODUCT_XML_ID`(36))
);
-- таблица контрагентов для акции
CREATE TABLE IF NOT EXISTS `b_actions_contragent` (
`ID` INT(18) NOT NULL AUTO_INCREMENT,
`XML_ID` VARCHAR(36) NOT NULL, -- внешний ИД акции
`CONTAGENT_XML_ID` VARCHAR(36) NULL, -- внешний ИД контрагента
`SALE_SUMM` VARCHAR(36) NOT NULL DEFAULT 0, -- сумма покупок контрагента по акции
`VERSION` VARCHAR(36) NOT NULL DEFAULT 1, -- версионность
`SOURCE` VARCHAR(36) NULL, -- источник
`SORT` INT(18) NOT NULL DEFAULT 100, -- сортировка
`DATE_INSERT` DATETIME DEFAULT CURRENT_TIMESTAMP, -- дата добавления строки
`DATE_UPDATE` DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, -- дата обновления строки
PRIMARY KEY(ID),
UNIQUE KEY XML_ID_PRODUCT_XML_ID (`XML_ID`(36),`PRODUCT_XML_ID`(36))
);
-- таблица файлов для акции
CREATE TABLE IF NOT EXISTS `b_actions_files` (
`ID` INT(18) NOT NULL AUTO_INCREMENT,
`XML_ID` VARCHAR(36) NOT NULL, -- внешний ИД акции
`FILE_PATH` VARCHAR(256) NULL, -- url к файлу
`DESCRIPTION` TEXT(65536) NULL, -- полное описание
`VERSION` VARCHAR(36) NOT NULL DEFAULT 1, -- версионность
`SOURCE` VARCHAR(36) NULL, -- источник
`SORT` INT(18) NOT NULL DEFAULT 100, -- сортировка
`DATE_INSERT` DATETIME DEFAULT CURRENT_TIMESTAMP, -- дата добавления строки
`DATE_UPDATE` DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, -- дата обновления строки
PRIMARY KEY(ID),
UNIQUE KEY XML_ID_FILE_PATH (`XML_ID`(36),`FILE_PATH`(256))
);
|
<reponame>carry0987/SitemapGenerator<gh_stars>0
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/* create article */
CREATE TABLE IF NOT EXISTS article (
id int(3) UNSIGNED NOT NULL AUTO_INCREMENT,
freq varchar(10) NOT NULL,
priority char(3) NOT NULL DEFAULT '0.5',
lastmod datetime NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
<gh_stars>0
/*
* Desarrollado por : DennisM.Andino
* Contactame a mi correo : <EMAIL>
* mi canal de Youtube: CodigoCompartido
* proyecto disponible en : https://github.com/dennis-andino/GT
*/
CREATE VIEW VW_SCHEDULES as
select s.id as id, s.availability,s.tutor as tutorid, l.alias as tutor, s2.starttime, s2.finishtime, c.id as course, c.coursename
from sch_tut as s
inner join logins as l on s.tutor = l.id
inner join schedules as s2 on s.schedule = s2.id
inner join courses as c on s.course = c.id;
CREATE VIEW VW_NEXTUTORIALS AS
SELECT T.id,
T.petitioner,
C.career,
T.score,
T.subject,
C.coursename,
T.reservdate,
T.initialtime AS starttime,
T.finaltime AS finishtime,
T.status,
TU.alias AS tutor,
IF(T.modality=0,'Presencial','Virtual') AS modalidad,
T.space
FROM TUTORIALS AS T
INNER JOIN COURSES AS C ON T.asignatura = C.id
INNER JOIN LOGINS TU ON T.tutor = TU.id;
CREATE VIEW VW_ALLTUTORIALS AS
SELECT T.id,
T.reservdate,
CONCAT(T.initialtime, '-', T.finaltime) AS schedule,
T.status,
C.coursename,
TU.alias AS tutor,
PE.alias AS student
FROM TUTORIALS AS T
INNER JOIN COURSES AS C ON T.asignatura = C.id
INNER JOIN LOGINS TU ON T.tutor = TU.id
INNER JOIN LOGINS PE ON T.petitioner = PE.id;
CREATE VIEW GETTUTORIALINFO AS
SELECT T.id,
CONCAT(T.initialtime,'-',T.finaltime) AS schedule,
PE.alias AS studentname,
TU.alias AS tutorname,
T.subject,
T.details,
T.reservdate,
T.requestdate,
T.filename,
T.status,
T.score,
T.starttime,
T.finishtime,
T.stucomment,
T.tutcomment,
T.modality,
T.space,
P.description AS period,
C.coursename,
CO.alias AS approvedby
FROM TUTORIALS AS T
INNER JOIN PERIODS P ON T.period_ = P.id
INNER JOIN COURSES AS C ON T.asignatura = C.id
INNER JOIN LOGINS CO ON T.approvedby = CO.id
INNER JOIN LOGINS TU ON T.tutor = TU.id
INNER JOIN LOGINS PE ON T.petitioner = PE.id;
CREATE VIEW VW_TUTBYTUTORS AS
SELECT T.id,
PE.alias AS student,
C.coursename,
T.subject,
T.details,
T.filename,
T.reservdate,
CONCAT(T.initialtime, '-', T.finaltime) as schedule,
T.status,
T.score,
TU.id as tutorid
FROM TUTORIALS AS T
INNER JOIN COURSES AS C ON T.asignatura = C.id
INNER JOIN LOGINS TU ON T.tutor = TU.id
INNER JOIN LOGINS PE ON T.petitioner = PE.id;
CREATE VIEW GET_USER_INFO AS
SELECT L.id,
L.username,
L.fullname,
L.alias,
L.email,
L.phone,
L.account,
L.birthDate,
L.admissionDate,
L.createOn,
L.lastUpdate,
L.photo,
L.availability,
L.generalPoint,
L.observations,
C.description as campus,
C2.description as career,
R.privilege,
R.baseon
FROM LOGINS AS L
INNER JOIN CAMPUS C on L.campus = C.id
INNER JOIN CAREERS C2 on L.career = C2.id
INNER JOIN ROLES R on L.userRole = R.id;
CREATE VIEW GET_SCH_BYTUTORS AS
SELECT SC.id, SC.tutor, CONCAT(SCH.starttime, '-', SCH.finishtime) AS schedule, C.coursename, SC.availability
FROM sch_tut AS SC
INNER JOIN schedules AS SCH ON SC.schedule = SCH.id
INNER JOIN courses C on SC.course = C.id;
CREATE VIEW UserInfoEdit AS
select L.id,
L.fullname,
L.email,
L.phone,
L.birthDate,
L.account,
L.career as careerid,
CA.description as career,
R.privilege,
R.id as roleid,
C.id as campusid,
C.description AS campus,
L.observations
from logins as L
inner join ROLES as R on L.userRole = R.id
inner join campus as C on L.campus = C.id
inner join careers as CA on L.career = CA.id;
CREATE VIEW GET_EVALUATION AS
SELECT CASE score
WHEN 1 THEN 'Malo'
WHEN 2 THEN 'Regular'
WHEN 3 THEN 'Muy bueno'
WHEN 4 THEN 'Excelente'
ELSE 'Sin Calificar'
END AS evaluation,COUNT(*) AS total,tutor FROM TUTORIALS GROUP BY evaluation;
CREATE VIEW GET_GUEST_ASSISTANCE AS
SELECT DISTINCT T.id,
C.coursename,
T.subject,
T.reservdate,
concat(T.initialtime, '-', T.finaltime) AS schedule,
l.alias AS tutor,
T.space,
T.status,
IF(T.modality = 0, 'Presencial', 'Virtual') AS modalidad,
T.score,
T.petitioner,
ma.student
FROM members_assistance AS ma
INNER JOIN TUTORIALS AS T ON ma.tutorial = T.id
INNER JOIN courses AS C ON T.asignatura = C.id
INNER JOIN logins AS l ON T.tutor = l.id;
|
<gh_stars>0
USE `Schedule`;
SELECT `Flight`.`ICAONumber` AS `FlightNumber`,
`Schedule`.`Status` AS `Status`,
`Departure`.`ICAOCode` AS `Departure`,
`Arrival`.`ICAOCode` AS `Arrival`,
`Departure`.`ScheduledTime` AS `ScheduledDeparture`,
`Arrival`.`ScheduledTime` AS `ScheduledArrival`,
`Departure`.`ActualTime` AS `ActualDeparture`,
`Arrival`.`ActualTime` AS `ActualArrival`
FROM `Schedule`
INNER JOIN `Flight`
ON `Schedule`.`FlightID` = `Flight`.`FlightID`
INNER JOIN `Departure`
ON `Schedule`.`ScheduleID` = `Departure`.`ScheduleID`
INNER JOIN `Arrival`
ON `Schedule`.`ScheduleID` = `Arrival`.`ScheduleID`
WHERE `Schedule`.`Type` = 'departure'
ORDER BY `Departure`.`ScheduledTime` ASC |
-- saldo_name: workday,
-- unit_name: WORK_DAY, WORK_WEEK, WORK_HOUR
--// if saldo_active = 1 then:
--// its converted and not more used, beacuse not existing, but for show, the history of changes, and leave the parent_id connection
CREATE TABLE "main"."users" (
"id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-- details about user
"description" TEXT NOT NULL
"first_name" TEXT NOT NULL,
"last_name" TEXT NOT NULL,
"email" TEXT NOT NULL,
"username" TEXT NOT NULL,
"password" TEXT NOT NULL,
-- timestamp
"date" INTEGER NOT NULL,
-- created / deleted / suspended / in review / blocked
"status" INTEGER NOT NULL DEFAULT (1),
);
-- tworzenie kolejkki transferow, planowanie terminow transferow, np jesli ktos chce zlecic, albo system ma wykonac o okreslonej porze
CREATE TABLE "main"."orders" (
"order_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
"sender_user_id" INTEGER NOT NULL,
"recipient_user_id" INTEGER NOT NULL,
"before_account_id" INTEGER NOT NULL,
"after_account_id" INTEGER NOT NULL,
"amount_id" INTEGER NOT NULL,
"description" TEXT NOT NULL
-- if date not exist, do immediately
-- timestamp
"execute_date" INTEGER NOT NULL,
-- timestamp
"status_date" INTEGER NOT NULL,
-- created / deleted /mirror for another unit
"status" INTEGER NOT NULL DEFAULT (1),
);
-- HR, BOSS, WORKER1, WORKER2
-- transakcje miedzy kontami i uzytkownikami
CREATE TABLE "main"."transfers" (
"transfer_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
"sender_user_id" INTEGER NOT NULL,
"recipient_user_id" INTEGER NOT NULL,
"before_account_id" INTEGER NOT NULL,
"after_account_id" INTEGER NOT NULL,
"amount_id" INTEGER NOT NULL,
"description" TEXT NOT NULL
);
-- EXAMPLE
-- from ASSIGNED to AVAILABLE
-- from BOSS to WORKER, HR to WORKER
-- question for special holiday, ASSIGNED = WORKER -> BOSS
-- approve holiday, AVAILABLE = BOSS -> WORKER
-- holidaybank
-- Konto dla urlopow to samo jak pieniadze
-- Definicje kont, jakie beda uzywane
-- schemat procesow, jakie zachodza w firmie, to samo dla ticketow: PROBLEM->SOLUTION: QUESTION->ANSWER
CREATE TABLE "main"."accounts" (
"account_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
"parent_account_id" INTEGER NOT NULL,
-- ASSIGNED, AVAILABLE, USED, EXPIRED, PAYOUT
"name" TEXT NOT NULL,
"description" TEXT NOT NULL
-- CONTRACT, ANNUAL, EXPIRED, REST
"saldo_name" TEXT NOT NULL,
-- Hourly, Every 8 Hours, Daily, Every second day, Weekly, Mothly, Quarterly, Semiannually, Annually
"saldo_period" TEXT NOT NULL,
-- -1 / +1
"saldo_sign" INTEGER NOT NULL DEFAULT (1),
---- timestamp
-- "saldo_date_from" INTEGER NOT NULL,
---- timestamp
-- "saldo_date_to" INTEGER NOT NULL,
"timepoint_id" INTEGER NOT NULL,
}
-- konieczne stworzenie subkonta dla kazdego pracownika, gdzie w ciagu dnia / tygodnia / roku beda okreslane limity
-- w ten sposob, kazdy w cyklach bedzie mial ograniczone ilosci
-- dzieki wyslaniu od do, mozna ustalic limity na urlopy, dla kazdego usera oddzielnie,
-- sender_id, to moze byc subkonto usera, gdzie sa podane podstawowe ograniczenia
-- przechowuje dla kazdego usera dane o jego ograniczeniach
-- zasada przy tworzeniu rekordow
-- kazdy rekord jest unikalny i moze byc jedynie dodany, nie mozna usuwac
-- jesli zostal popelniony blad, drugi wiersz powinien pozwolic na usuniecie tego bledu
-- k
CREATE TABLE "main"."amounts" (
"amount_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
"parent_amount_id" INTEGER NOT NULL,
-- w przypadku delgeacji, czy grupy roznych ludzi, gdzie lokalizacja ma znaczenia, swieta lokalne
"localisation_id" INTEGER NOT NULL,
"description" TEXT NOT NULL
-- timestamp
"timestamp" INTEGER NOT NULL,
-- created / deleted /mirror for another unit
"status" INTEGER NOT NULL DEFAULT (1),
-- Dla wymiany walut, to moze byc przydatne rowniez, na ktory dzien byl kurs brany pod uwage
-- rok, dla ktorego jest jednostka aktualna
-- "unit_year" INTEGER NOT NULL,
---- dzien roku, tydzien roku, miesiac roku
-- "unit_no" INTEGER NOT NULL,
"timepoint_id" INTEGER NOT NULL,
-- WORKDAY, WORKWEEK, WORKMONTH
"unit_name" TEXT NOT NULL,
-- 1, 7 , 31, 1000 000, przemnozenie przez aktualna wartosc
"unit_factor" INTEGER NOT NULL DEFAULT (1),
-- wartosc z przecinkami, float, +/-
"unit_value" REAL NOT NULL DEFAULT (1),
);
-- timepoint resolution
-- dotyczy okreslenia punktu w kalendarzu, aby moc rozliczac te same okresy, np tygodniowe, roczne, kwartalne
-- jesli timepoint jest ten sam, to mozna robic dzialania pomiedzy nimi, bo dotycza tego samego.
-- timepoint dla sumowanie rozliczen z tego samego dnia
-- siatka punktow
CREATE TABLE "main"."timepoints" (
"timepoint_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
-- nazwa, moze dotyczyc kolejnego dnia w roku,
"name" TEXT NOT NULL,
-- rok, dla ktorego jest jednostka aktualna
"year" INTEGER NOT NULL,
-- kwartal w roku
"querter_year" INTEGER NOT NULL,
-- miesiac w roku
"month_year" INTEGER NOT NULL,
-- dzien w roku
"day_year" INTEGER NOT NULL,
-- dzien roku, tydzien roku, miesiac roku
"day_week" INTEGER NOT NULL,
-- dzien roku, tydzien roku, miesiac roku
"week_year" INTEGER NOT NULL,
--- dzien miesiaca
"day_month" INTEGER NOT NULL,
--- godzina dnia
"hour_day" INTEGER NOT NULL,
--- querter of hour
"quart_day" INTEGER NOT NULL,
--- querter of hour
"quart_hour" INTEGER NOT NULL,
-- timestamp
"time_from" INTEGER NOT NULL,
-- timestamp
"time_to" INTEGER NOT NULL,
);
-- szukanie odpowiedniego
SELECT "main"."timepoints"."quart_hour" FROM "main"."timepoints"
-- generowanie punktow: wszytskie dni pracy konkretnego pracownika / miejsca pracy / grupy
-- generowanie punktow dla rocznego planu
-- nakladanie naplan, wydarzenia wewnetrzne i zewnetrzne
-- dla jednych to beda swieta, dla innych praca w nadgodziny
-- czas jest ten sam dla wszytskich tylko lokalizacja jest inna, i godzina inna jest pokazywana
-- dlatego timepoin jest niezalezny od lokalizacji i tym samym czasu swiatowego
-- tworzenie workspace dla czasu, klockow w ktore wmozna wpasowac zdarzenia.
-- timepoint dla godzin/cwiartek/dni
-- tworzenie mapy urpaszcza procedury, jesli godzimy sie na pojedyncze godziny lub polowki godzin, cwiartki, jako urlopy
-- cwiartki dnia, godzin, roku, miesiaca
-- to daje przewage przy organizacji czasu bo wiadomo z jaka czestoscia cos bylo zmieniane a nie co do minuty czy godziny.
-- wczesniej stworzona mapa dla calej, grupy, organizacji jest adaptowana do grafiku konkretnej osoby
-- mapowanie siatki wydarzen
CREATE TABLE "main"."schedules" (
"schedule_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
"user_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
"timepoint_id" INTEGER NOT NULL,
"time_to" INTEGER NOT NULL,
);
-- mapowanie siatki wydarzen na uzytkownika
CREATE TABLE "main"."schedules_users" (
"schedule_id" INTEGER NOT NULL,
"user_id" INTEGER NOT NULL,
"saldo_id" INTEGER NOT NULL,
PRIMARY KEY (timepoint_id, user_id),
FOREIGN KEY (timepoint_id) REFERENCES timepoints (timepoint_id)
ON DELETE CASCADE ON UPDATE NO ACTION,
FOREIGN KEY (user_id) REFERENCES users (user_id)
ON DELETE CASCADE ON UPDATE NO ACTION
);
-- zapytanie, pobierz sume wszystkich pobranych urlopow z rocznego, gdzie jednsotka to workday
-- TAGI: saldo_name: ANNUAL, USED (saldo_sign: -1), unit_name: WORKDAY, ABS, SUM
-- localisation PL_pl, De_de, if different countries
CREATE TABLE "main"."localisations" (
"localisation_id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
"language" TEXT NOT NULL,
"country" TEXT NOT NULL,
"region" TEXT NOT NULL,
);
-- Jak stworzyc blokade na rachunku
-- Jak stworzyc blokade czasowa i potem automatycznie powraca, np nie mozna pobierac urlopu w czasie gdy jest sie chorym
|
<gh_stars>0
/* This is a csv file from the website https://transtats.bts.gov
The timeline is from 2012-10-01 to 2012-11-30
It contains flights data from six airports
- ['BOS', 'EWR', 'JFK', 'MIA', 'PHL', 'SJU']
- Boston (BOS)
- Miami (MIA)
- Newark (EWR)
- New York (JFK)
- Philadelphia (PHL)
- Purto Rico (SJU)
*/
-- Show all data
SELECT * FROM flights_api_proj_gr4 AS f
-- get the latitude, longitude or city names for the airpots in the list
SELECT a.faa,
a.name AS name,
a.lat,
a.lon,
a.alt,
a.city
FROM flights_api_proj_gr4 f
LEFT JOIN airports a
ON f.origin = a.faa
GROUP BY a.faa, a.name, a.lat, a.lon, a.alt
HAVING faa IN ( 'BOS', 'EWR', 'JFK', 'MIA', 'PHL', 'SJU' )
ORDER BY faa;
-- time period and amount of data
SELECT MIN(flight_date), MAX(flight_date), COUNT(*) FROM flights_api_proj_gr4;
-- aggregated data: flights cancelled
SELECT flight_date, count(*)
FROM flights_api_proj_gr4 f
GROUP BY flight_date, cancelled
HAVING cancelled = 1
ORDER BY count(*) DESC
LIMIT 8;
-- Aggregated data: delay
SELECT AVG(dep_delay) AS dep_delay_avg,
MIN(dep_delay) AS dep_delay_min,
MAX(dep_delay) AS dep_delay_max,
AVG(arr_delay) AS arr_delay_avg,
MIN(arr_delay) AS arr_delay_min,
MAX(arr_delay) AS arr_delay_max,
(SELECT COUNT(*) FROM flights_api_proj_gr4 WHERE diverted = 1) AS diverted,
(SELECT COUNT(*) FROM flights_api_proj_gr4 WHERE cancelled = 1) AS cancelled
FROM flights_api_proj_gr4 f;
-- Which columns/data do we need?
SELECT flight_date,
origin,
dest,
-- dep_time,
MAKE_TIME(FLOOR(f.dep_time/100)::int, (f.dep_time::int%100), 0) AS dep_time_f, -- CONVERT DATA TYPE
-- arr_time,
MAKE_TIME(FLOOR(f.arr_time/100)::int, (f.arr_time::int%100), 0) AS arr_time_f,
MAKE_TIME(FLOOR(f.arr_time/100)::int, (f.arr_time::int%100), 0) - MAKE_TIME(FLOOR(f.dep_time/100)::int, (f.dep_time::int%100), 0) AS delta_air_time,
-- air_time,
MAKE_INTERVAL(mins => (f.air_time::int)) AS air_time_f,
-- dep_delay,
MAKE_INTERVAL(mins => (f.dep_delay ::int)) AS dep_delay_f,
-- arr_delay,
MAKE_INTERVAL(mins => (f.arr_delay ::int)) AS arr_delay_f,
airline, -- Difference between airlines
tail_number,
diverted,
cancelled
FROM flights_api_proj_gr4 f;
-- experimental
SELECT a.tz AS origin_tz,
a.tz AS dest_tz,
f.origin,
f.dest,
--f.dep_time,
--f.arr_time,
--f.air_time,
MAKE_TIME(FLOOR(f.dep_time/100)::int, (f.dep_time::int%100), 0) AS dep_time_f,
MAKE_TIME(FLOOR(f.arr_time/100)::int, (f.arr_time::int%100), 0) AS arr_time_f,
MAKE_TIME(FLOOR(f.arr_time/100)::int, (f.arr_time::int%100), 0) - MAKE_TIME(FLOOR(f.dep_time/100)::int, (f.dep_time::int%100), 0) AS calc_air_time,
MAKE_INTERVAL(mins => (f.air_time::int)) AS air_time_f
FROM flights_api_proj_gr4 f
LEFT JOIN airports a
ON f.origin = a.faa
WHERE MAKE_TIME(FLOOR(arr_time/100)::int, (arr_time::int%100), 0) - MAKE_TIME(FLOOR(dep_time/100)::int, (dep_time::int%100), 0) != MAKE_INTERVAL(mins => (air_time::int)); |
<gh_stars>0
-- phpMyAdmin SQL Dump
-- version 4.9.2deb1
-- https://www.phpmyadmin.net/
--
-- Host: localhost:3306
-- Waktu pembuatan: 10 Des 2019 pada 16.18
-- Versi server: 10.3.15-MariaDB-1
-- Versi PHP: 7.3.12-1+0~20191128.49+debian10~1.gbp24559b
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: `iaps`
--
-- --------------------------------------------------------
--
-- Struktur dari tabel `admin`
--
CREATE TABLE `admin` (
`id_admin` int(11) NOT NULL,
`username_admin` varchar(20) NOT NULL,
`password_admin` varchar(50) NOT NULL,
`nama_admin` varchar(20) NOT NULL,
`level_admin` varchar(20) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data untuk tabel `admin`
--
INSERT INTO `admin` (`id_admin`, `username_admin`, `password_admin`, `nama_admin`, `level_admin`) VALUES
(2, 'rifqihakim95', '<PASSWORD>', '<PASSWORD>', 'root');
-- --------------------------------------------------------
--
-- Struktur dari tabel `tbl_assessment`
--
CREATE TABLE `tbl_assessment` (
`id_assessment` int(11) NOT NULL,
`id_jenjang` int(11) NOT NULL,
`indicator_assessment` varchar(100) NOT NULL,
`parameter_assessment_0` varchar(100) NOT NULL,
`parameter_assessment_1` varchar(100) NOT NULL,
`parameter_assessment_2` varchar(100) NOT NULL,
`parameter_assessment_3` varchar(100) NOT NULL,
`parameter_assessment_4` varchar(100) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- Struktur dari tabel `tbl_fakultas`
--
CREATE TABLE `tbl_fakultas` (
`id_fakultas` int(11) NOT NULL,
`id_jenjang` int(11) NOT NULL,
`nama_fakultas` varchar(20) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- Struktur dari tabel `tbl_jenjang`
--
CREATE TABLE `tbl_jenjang` (
`id_jenjang` int(11) NOT NULL,
`nama_jenjang` varchar(20) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data untuk tabel `tbl_jenjang`
--
INSERT INTO `tbl_jenjang` (`id_jenjang`, `nama_jenjang`) VALUES
(1, 'S-1'),
(2, 'D-III');
-- --------------------------------------------------------
--
-- Struktur dari tabel `tbl_peserta`
--
CREATE TABLE `tbl_peserta` (
`id_peserta` int(11) NOT NULL,
`id_prodi` int(11) NOT NULL,
`id_jenjang` int(11) NOT NULL,
`id_fakultas` int(11) NOT NULL,
`username_peserta` varchar(20) NOT NULL,
`password_peserta` varchar(50) NOT NULL,
`nama_peserta` varchar(20) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- Struktur dari tabel `tbl_prodi`
--
CREATE TABLE `tbl_prodi` (
`id_prodi` int(11) NOT NULL,
`id_jenjang` int(11) NOT NULL,
`id_fakultas` int(11) NOT NULL,
`nama_prodi` varchar(20) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Indexes for dumped tables
--
--
-- Indeks untuk tabel `admin`
--
ALTER TABLE `admin`
ADD PRIMARY KEY (`id_admin`);
--
-- Indeks untuk tabel `tbl_assessment`
--
ALTER TABLE `tbl_assessment`
ADD PRIMARY KEY (`id_assessment`),
ADD KEY `id_jenjang` (`id_jenjang`);
--
-- Indeks untuk tabel `tbl_fakultas`
--
ALTER TABLE `tbl_fakultas`
ADD PRIMARY KEY (`id_fakultas`),
ADD KEY `id_jenjang` (`id_jenjang`);
--
-- Indeks untuk tabel `tbl_jenjang`
--
ALTER TABLE `tbl_jenjang`
ADD PRIMARY KEY (`id_jenjang`);
--
-- Indeks untuk tabel `tbl_peserta`
--
ALTER TABLE `tbl_peserta`
ADD PRIMARY KEY (`id_peserta`),
ADD KEY `id_prodi` (`id_prodi`),
ADD KEY `id_jenjang` (`id_jenjang`),
ADD KEY `id_fakultas` (`id_fakultas`);
--
-- Indeks untuk tabel `tbl_prodi`
--
ALTER TABLE `tbl_prodi`
ADD PRIMARY KEY (`id_prodi`),
ADD KEY `id_jenjang` (`id_jenjang`),
ADD KEY `id_fakultas` (`id_fakultas`);
--
-- AUTO_INCREMENT untuk tabel yang dibuang
--
--
-- AUTO_INCREMENT untuk tabel `admin`
--
ALTER TABLE `admin`
MODIFY `id_admin` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT untuk tabel `tbl_assessment`
--
ALTER TABLE `tbl_assessment`
MODIFY `id_assessment` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT untuk tabel `tbl_fakultas`
--
ALTER TABLE `tbl_fakultas`
MODIFY `id_fakultas` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT untuk tabel `tbl_jenjang`
--
ALTER TABLE `tbl_jenjang`
MODIFY `id_jenjang` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT untuk tabel `tbl_peserta`
--
ALTER TABLE `tbl_peserta`
MODIFY `id_peserta` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT untuk tabel `tbl_prodi`
--
ALTER TABLE `tbl_prodi`
MODIFY `id_prodi` int(11) NOT NULL AUTO_INCREMENT;
--
-- Ketidakleluasaan untuk tabel pelimpahan (Dumped Tables)
--
--
-- Ketidakleluasaan untuk tabel `tbl_assessment`
--
ALTER TABLE `tbl_assessment`
ADD CONSTRAINT `tbl_assessment_ibfk_1` FOREIGN KEY (`id_jenjang`) REFERENCES `tbl_jenjang` (`id_jenjang`) ON DELETE CASCADE ON UPDATE CASCADE;
--
-- Ketidakleluasaan untuk tabel `tbl_fakultas`
--
ALTER TABLE `tbl_fakultas`
ADD CONSTRAINT `tbl_fakultas_ibfk_1` FOREIGN KEY (`id_jenjang`) REFERENCES `tbl_jenjang` (`id_jenjang`) ON DELETE CASCADE ON UPDATE CASCADE;
--
-- Ketidakleluasaan untuk tabel `tbl_peserta`
--
ALTER TABLE `tbl_peserta`
ADD CONSTRAINT `tbl_peserta_ibfk_1` FOREIGN KEY (`id_fakultas`) REFERENCES `tbl_fakultas` (`id_fakultas`) ON DELETE CASCADE ON UPDATE CASCADE,
ADD CONSTRAINT `tbl_peserta_ibfk_2` FOREIGN KEY (`id_jenjang`) REFERENCES `tbl_jenjang` (`id_jenjang`) ON DELETE CASCADE ON UPDATE CASCADE,
ADD CONSTRAINT `tbl_peserta_ibfk_3` FOREIGN KEY (`id_prodi`) REFERENCES `tbl_prodi` (`id_prodi`) ON DELETE CASCADE ON UPDATE CASCADE;
--
-- Ketidakleluasaan untuk tabel `tbl_prodi`
--
ALTER TABLE `tbl_prodi`
ADD CONSTRAINT `tbl_prodi_ibfk_1` FOREIGN KEY (`id_jenjang`) REFERENCES `tbl_jenjang` (`id_jenjang`) ON DELETE CASCADE ON UPDATE CASCADE,
ADD CONSTRAINT `tbl_prodi_ibfk_2` FOREIGN KEY (`id_fakultas`) REFERENCES `tbl_fakultas` (`id_fakultas`) ON DELETE CASCADE ON UPDATE CASCADE;
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 */;
|
-- decimal numbers
-- numeric(precision), real, double precision
CREATE TABLE table_numbers (
number_id SERIAL PRIMARY KEY,
col_numeric numeric(20, 5),
col_real real,
col_double double precision
);
SELECT
*
FROM table_numbers;
INSERT INTO table_numbers (col_numeric, col_real, col_double) VALUES
(.9, .9, .9),
(3.13175, 3.13175, 3.13175),
(4.1234567891, 4.1234567891, 4.1234567891);
SELECT
*
FROM table_numbers; |
-- --------------------------------------------------------
-- Host: 127.0.0.1
-- Versión del servidor: 10.1.22-MariaDB - mariadb.org binary distribution
-- SO del servidor: Win32
-- HeidiSQL Versión: 9.5.0.5196
-- --------------------------------------------------------
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET NAMES utf8 */;
/*!50503 SET NAMES utf8mb4 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
-- Volcando estructura de base de datos para mydb
DROP DATABASE IF EXISTS `mydb`;
CREATE DATABASE IF NOT EXISTS `mydb` /*!40100 DEFAULT CHARACTER SET latin1 */;
USE `mydb`;
-- Volcando estructura para tabla mydb.academico
DROP TABLE IF EXISTS `academico`;
CREATE TABLE IF NOT EXISTS `academico` (
`Id_Academico` int(11) NOT NULL AUTO_INCREMENT,
`Usuarios_idUsuarios` int(11) NOT NULL,
`Nombre` varchar(20) NOT NULL,
PRIMARY KEY (`Id_Academico`),
KEY `fk_Academico_Usuarios1_idx` (`Usuarios_idUsuarios`),
CONSTRAINT `fk_Academico_Usuarios1` FOREIGN KEY (`Usuarios_idUsuarios`) REFERENCES `login` (`Id_Usuario`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- Volcando datos para la tabla mydb.academico: ~0 rows (aproximadamente)
/*!40000 ALTER TABLE `academico` DISABLE KEYS */;
/*!40000 ALTER TABLE `academico` ENABLE KEYS */;
-- Volcando estructura para tabla mydb.anuncio
DROP TABLE IF EXISTS `anuncio`;
CREATE TABLE IF NOT EXISTS `anuncio` (
`Id_Anuncio` int(11) NOT NULL AUTO_INCREMENT,
`Nombre` varchar(45) NOT NULL,
`Fecha_Inicio` date NOT NULL,
`Fecha_Fin` varchar(45) NOT NULL,
`Imagen` varchar(100) NOT NULL,
`Descripcion` tinytext NOT NULL,
`Usuarios_idUsuarios` int(11) NOT NULL,
PRIMARY KEY (`Id_Anuncio`),
KEY `fk_Anuncio_Usuarios1_idx` (`Usuarios_idUsuarios`),
CONSTRAINT `fk_Anuncio_Usuarios1` FOREIGN KEY (`Usuarios_idUsuarios`) REFERENCES `login` (`Id_Usuario`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- Volcando datos para la tabla mydb.anuncio: ~0 rows (aproximadamente)
/*!40000 ALTER TABLE `anuncio` DISABLE KEYS */;
/*!40000 ALTER TABLE `anuncio` ENABLE KEYS */;
-- Volcando estructura para tabla mydb.login
DROP TABLE IF EXISTS `login`;
CREATE TABLE IF NOT EXISTS `login` (
`Id_Usuario` int(11) NOT NULL AUTO_INCREMENT,
`Usuario` varchar(45) NOT NULL,
`Correo` varchar(255) NOT NULL,
`Contraseña` varchar(70) NOT NULL,
PRIMARY KEY (`Id_Usuario`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- Volcando datos para la tabla mydb.login: ~0 rows (aproximadamente)
/*!40000 ALTER TABLE `login` DISABLE KEYS */;
/*!40000 ALTER TABLE `login` ENABLE KEYS */;
-- Volcando estructura para tabla mydb.preferencias
DROP TABLE IF EXISTS `preferencias`;
CREATE TABLE IF NOT EXISTS `preferencias` (
`Id_Usuario` int(11) NOT NULL,
`Id_Tag` int(11) NOT NULL,
PRIMARY KEY (`Id_Usuario`,`Id_Tag`),
KEY `fk_Usuarios_has_Tag_Tag1_idx` (`Id_Tag`),
KEY `fk_Usuarios_has_Tag_Usuarios1_idx` (`Id_Usuario`),
CONSTRAINT `fk_Usuarios_has_Tag_Tag1` FOREIGN KEY (`Id_Tag`) REFERENCES `tag` (`Id_Tag`) ON DELETE NO ACTION ON UPDATE NO ACTION,
CONSTRAINT `fk_Usuarios_has_Tag_Usuarios1` FOREIGN KEY (`Id_Usuario`) REFERENCES `login` (`Id_Usuario`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- Volcando datos para la tabla mydb.preferencias: ~0 rows (aproximadamente)
/*!40000 ALTER TABLE `preferencias` DISABLE KEYS */;
/*!40000 ALTER TABLE `preferencias` ENABLE KEYS */;
-- Volcando estructura para tabla mydb.roles
DROP TABLE IF EXISTS `roles`;
CREATE TABLE IF NOT EXISTS `roles` (
`Id_Rol` int(11) NOT NULL AUTO_INCREMENT,
`Nombre` varchar(45) NOT NULL,
PRIMARY KEY (`Id_Rol`),
UNIQUE KEY `Nombre_UNIQUE` (`Nombre`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- Volcando datos para la tabla mydb.roles: ~0 rows (aproximadamente)
/*!40000 ALTER TABLE `roles` DISABLE KEYS */;
/*!40000 ALTER TABLE `roles` ENABLE KEYS */;
-- Volcando estructura para tabla mydb.rolusuarios
DROP TABLE IF EXISTS `rolusuarios`;
CREATE TABLE IF NOT EXISTS `rolusuarios` (
`Id_Rol` int(11) NOT NULL,
`Id_Usuario` int(11) NOT NULL,
PRIMARY KEY (`Id_Rol`,`Id_Usuario`),
KEY `fk_Roles_has_Usuarios_Usuarios1_idx` (`Id_Usuario`),
KEY `fk_Roles_has_Usuarios_Roles1_idx` (`Id_Rol`),
CONSTRAINT `fk_Roles_has_Usuarios_Roles1` FOREIGN KEY (`Id_Rol`) REFERENCES `roles` (`Id_Rol`) ON DELETE NO ACTION ON UPDATE NO ACTION,
CONSTRAINT `fk_Roles_has_Usuarios_Usuarios1` FOREIGN KEY (`Id_Usuario`) REFERENCES `login` (`Id_Usuario`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- Volcando datos para la tabla mydb.rolusuarios: ~0 rows (aproximadamente)
/*!40000 ALTER TABLE `rolusuarios` DISABLE KEYS */;
/*!40000 ALTER TABLE `rolusuarios` ENABLE KEYS */;
-- Volcando estructura para tabla mydb.tag
DROP TABLE IF EXISTS `tag`;
CREATE TABLE IF NOT EXISTS `tag` (
`Id_Tag` int(11) NOT NULL AUTO_INCREMENT,
`Nombre` varchar(45) NOT NULL,
PRIMARY KEY (`Id_Tag`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- Volcando datos para la tabla mydb.tag: ~0 rows (aproximadamente)
/*!40000 ALTER TABLE `tag` DISABLE KEYS */;
/*!40000 ALTER TABLE `tag` ENABLE KEYS */;
-- Volcando estructura para tabla mydb.tag_anuncio
DROP TABLE IF EXISTS `tag_anuncio`;
CREATE TABLE IF NOT EXISTS `tag_anuncio` (
`Id_Anuncio` int(11) NOT NULL,
`Id_Tag` int(11) NOT NULL,
PRIMARY KEY (`Id_Anuncio`,`Id_Tag`),
KEY `fk_Anuncio_has_Tag_Tag1_idx` (`Id_Tag`),
KEY `fk_Anuncio_has_Tag_Anuncio1_idx` (`Id_Anuncio`),
CONSTRAINT `fk_Anuncio_has_Tag_Anuncio1` FOREIGN KEY (`Id_Anuncio`) REFERENCES `anuncio` (`Id_Anuncio`) ON DELETE NO ACTION ON UPDATE NO ACTION,
CONSTRAINT `fk_Anuncio_has_Tag_Tag1` FOREIGN KEY (`Id_Tag`) REFERENCES `tag` (`Id_Tag`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- Volcando datos para la tabla mydb.tag_anuncio: ~0 rows (aproximadamente)
/*!40000 ALTER TABLE `tag_anuncio` DISABLE KEYS */;
/*!40000 ALTER TABLE `tag_anuncio` ENABLE KEYS */;
-- Volcando estructura para tabla mydb.usuarios
DROP TABLE IF EXISTS `usuarios`;
CREATE TABLE IF NOT EXISTS `usuarios` (
`Id` int(11) NOT NULL AUTO_INCREMENT,
`Usuarios_idUsuarios` int(11) NOT NULL,
`Tipo` varchar(45) NOT NULL,
`Nombre` varchar(45) NOT NULL,
`Nombre2` varchar(45) DEFAULT NULL,
`Apellido` varchar(45) NOT NULL,
`Apellido2` varchar(45) DEFAULT NULL,
PRIMARY KEY (`Id`),
KEY `fk_Usuarios1` (`Usuarios_idUsuarios`) USING BTREE,
CONSTRAINT `fk_Profesores_Usuarios1` FOREIGN KEY (`Usuarios_idUsuarios`) REFERENCES `login` (`Id_Usuario`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- Volcando datos para la tabla mydb.usuarios: ~0 rows (aproximadamente)
/*!40000 ALTER TABLE `usuarios` DISABLE KEYS */;
/*!40000 ALTER TABLE `usuarios` ENABLE KEYS */;
/*!40101 SET SQL_MODE=IFNULL(@OLD_SQL_MODE, '') */;
/*!40014 SET FOREIGN_KEY_CHECKS=IF(@OLD_FOREIGN_KEY_CHECKS IS NULL, 1, @OLD_FOREIGN_KEY_CHECKS) */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
|
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10000020','5 E LTD.','Private Sector Public Funded', '97.4', NULL,'922','473','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10000028','WOODSPEEN TRAINING LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10000055','ABINGDON AND WITNEY COLLEGE','General FE and Tertiary College', '90.1', NULL,'5315','240','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10000060','ACACIA TRAINING AND DEVELOPMENT LTD','Private Sector Public Funded', '94.8', NULL,'1031','397','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10000061','ACACIA TRAINING LIMITED','Private Sector Public Funded', '88.8', NULL,'1512','670','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10000080','ACCESS TO MUSIC LIMITED','Private Sector Public Funded', '81.3', NULL,'3105','494','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10000082','TRN (TRAIN) LTD.','Private Sector Public Funded', '91.6', NULL,'748','461','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10000093','ACCRINGTON AND ROSSENDALE COLLEGE','General FE and Tertiary College', '90.6', NULL,'2100','547','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10000099','ACHIEVEMENT TRAINING LIMITED','Private Sector Public Funded', '96.8', NULL,'565','400','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10000105','APPRENTICESHIP LEARNING SOLUTIONS LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10000108','ACORN TRAINING CONSULTANTS LIMITED','Private Sector Public Funded', '85', NULL,'329','153','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10000115','A4E LTD','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10000119','ACTIVE LEARNING & DEVELOPMENT LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10000143','BARKING & DAGENHAM LONDON BOROUGH COUNCIL','Other Public Funded', '97', NULL,'974','612','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10000146','BEXLEY LONDON BOROUGH COUNCIL','Other Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10000147','ADULT TRAINING NETWORK LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10000191','ACADEMY EDUCATION LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10000201','ALDER TRAINING LIMITED','Private Sector Public Funded', '87.2', NULL,'386','240','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10000238','ALLIANCE LEARNING','Private Sector Public Funded', '84.8', NULL,'460','342','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10000239','PRE-SCHOOL LEARNING ALLIANCE','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10000267','AMACSPORTS LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10000285','ANDREW COLLINGE TRAINING LIMITED','Private Sector Public Funded', '93', NULL,'162','128','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10000291','ANGLIA RUSKIN UNIVERSITY','Other Public Funded', NULL, 'Data will be available in a later refresh','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10000311','APCYMRU LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10000350','<NAME>','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10000385','ARTS UNIVERSITY BOURNEMOUTH, THE','Other Public Funded', NULL, 'Data will be available in a later refresh','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10000415','<NAME>','Specialist College', '79.2', NULL,'3124','1228','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10000417','ASPECT TRAINING LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10000421','ASPIRATION TRAINING LIMITED','Private Sector Public Funded', '90.2', NULL,'2459','541','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10000427','ASSET TRAINING & CONSULTANCY LIMITED','Private Sector Public Funded', '97.2', NULL,'892','323','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10000446','KAPLAN FINANCIAL LIMITED','Private Sector Public Funded', '61.9', NULL,'8365','732','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10000452','AURELIA TRAINING LIMITED','Private Sector Public Funded', '98.3', NULL,'320','190','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10000470','AXIA SOLUTIONS LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10000473','AYLESBURY COLLEGE','General FE and Tertiary College', '71.6', NULL,'4157','786','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10000476','ATG TRAINING','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10000486','B L TRAINING LIMITED','Private Sector Public Funded', '90.6', NULL,'175','108','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10000488','B-SKILL LIMITED','Private Sector Public Funded', '89.9', NULL,'975','335','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10000494','BABINGTON BUSINESS COLLEGE LIMITED','Private Sector Public Funded', '70.3', NULL,'5282','576','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10000501','BAE SYSTEMS PLC','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10000524','BARCHESTER HEALTHCARE LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10000528','BARKING AND DAGENHAM COLLEGE','General FE and Tertiary College', '77.9', NULL,'6153','947','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10000532','BARNARDO''S','Private Sector Public Funded', '86.3', NULL,'327','185','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10000533','BARNET & SOUTHGATE COLLEGE','General FE and Tertiary College', '80.8', NULL,'8225','714','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10000534','BARNFIELD COLLEGE','General FE and Tertiary College', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10000536','BARNSLEY COLLEGE','General FE and Tertiary College', '87.7', NULL,'6907','890','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10000538','BARNSLEY METROPOLITAN BOROUGH COUNCIL','Other Public Funded', '96.4', NULL,'848','302','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10000560','BASINGSTOKE COLLEGE OF TECHNOLOGY','General FE and Tertiary College', '85', NULL,'4023','685','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10000561','BASINGSTOKE ITEC LIMITED','Private Sector Public Funded', '88.9', NULL,'131','104','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10000565','NOTTINGHAMSHIRE TRAINING GROUP LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10000599','BEAUMONT COLLEGE - A SALUTEM/AMBITO COLLEGE','Other Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10000610','BEDFORD COLLEGE','General FE and Tertiary College', '81.1', NULL,'11796','1061','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10000612','BEDFORDSHIRE & LUTON EDUCATION BUSINESS PARTNERSHIP','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10000631','BELLIS TRAINING LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10000654','BERKSHIRE COLLEGE OF AGRICULTURE, THE (BCA)','Specialist College', '77.3', NULL,'1570','909','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10000673','LONDON SKILLS FOR GROWTH LIMITED','Private Sector Public Funded', '82.4', NULL,'491','276','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10000688','BIFFA WASTE SERVICES LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10000703','BIRMINGHAM CITY COUNCIL','Other Public Funded', '95.8', NULL,'5189','910','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10000712','UNIVERSITY COLLEGE BIRMINGHAM','Other Public Funded', NULL, 'Data will be available in a later refresh','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10000715','BIRMINGHAM ELECTRICAL TRAINING LTD','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10000720','BISHOP AUCKLAND COLLEGE','General FE and Tertiary College', '89.5', NULL,'1962','717','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10000721','BISHOP BURTON COLLEGE','Specialist College', '82.2', NULL,'2245','1038','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10000747','BLACKBURN COLLEGE','General FE and Tertiary College', '76.8', NULL,'4954','999','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10000748','BLACKBURN WITH DARWEN BOROUGH COUNCIL','Other Public Funded', '97.8', NULL,'560','226','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10000754','BLACKPOOL AND THE FYLDE COLLEGE','General FE and Tertiary College', '83.7', NULL,'5205','756','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10000755','BLACKPOOL COUNCIL','Other Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10000794','BOLTON COLLEGE','General FE and Tertiary College', '84.4', NULL,'5291','2019','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10000795','BOLTON METROPOLITAN BOROUGH COUNCIL','Other Public Funded', '96', NULL,'1398','177','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10000812','BOSTON COLLEGE','General FE and Tertiary College', '85.9', NULL,'3412','528','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10000820','BOURNEMOUTH AND POOLE COLLEGE, THE','General FE and Tertiary College', '80.5', NULL,'5821','1176','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10000831','BPP HOLDINGS LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10000833','BRACKNELL AND WOKINGHAM COLLEGE','General FE and Tertiary College', '83.8', NULL,'2777','769','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10000834','BRACKNELL FOREST BOROUGH COUNCIL','Other Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10000840','BRADFORD COLLEGE','General FE and Tertiary College', '83.6', NULL,'9437','876','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10000848','APPRIS CHARITY LIMITED','Private Sector Public Funded', '75.6', NULL,'293','183','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10000850','BRADFORD CITY COUNCIL','Other Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10000863','BRENT LONDON BOROUGH COUNCIL','Other Public Funded', '95.7', NULL,'1361','474','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10000874','BRIDGE TRAINING LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10000878','BRIDGWATER AND TAUNTON COLLEGE','General FE and Tertiary College', '82.5', NULL,'10453','710','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10000883','BRIGHTON & HOVE CITY COUNCIL','Other Public Funded', '96.9', NULL,'287','138','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10000886','UNIVERSITY OF BRIGHTON','Other Public Funded', NULL, 'Data will be available in a later refresh','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10000896','BRISTOL CITY COUNCIL','Other Public Funded', '96.1', NULL,'1313','802','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10000915','BRITISH GAS SERVICES LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10000929','BRITISH PRINTING INDUSTRIES FEDERATION LTD','Private Sector Public Funded', '80.5', NULL,'457','273','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10000944','BROCKENHURST COLLEGE','General FE and Tertiary College', '85.1', NULL,'4718','979','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10000948','BROMLEY COLLEGE OF FURTHER AND HIGHER EDUCATION','General FE and Tertiary College', '75.8', NULL,'7476','1166','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10000950','BROOKLANDS COLLEGE','General FE and Tertiary College', '66.8', NULL,'3391','759','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10000952','BMC (BROOKSBY MELTON COLLEGE)','Specialist College', '72.6', NULL,'1844','622','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10000975','BUCKINGHAMSHIRE NEW UNIVERSITY','Other Public Funded', NULL, 'Data will be available in a later refresh','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10000976','BUCKINGHAMSHIRE COUNTY COUNCIL','Other Public Funded', '93.3', NULL,'3211','832','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10000994','MARTINEX LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10001000','BURNLEY COLLEGE','General FE and Tertiary College', '89.6', NULL,'4929','819','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10001004','BURTON AND SOUTH DERBYSHIRE COLLEGE','General FE and Tertiary College', '84.2', NULL,'3604','858','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10001005','BURY COLLEGE','General FE and Tertiary College', '68.4', NULL,'5538','1282','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10001008','BURY METROPOLITAN BOROUGH COUNCIL','Other Public Funded', '98', NULL,'699','529','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10001013','THINK EMPLOYMENT LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10001041','GLOUCESTERSHIRE ENTERPRISE LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10001055','BUSINESS MANAGEMENT RESOURCES (UK) LTD','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10001078','CABLECOM TRAINING LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10001093','CALDERDALE COLLEGE','General FE and Tertiary College', '80.5', NULL,'3386','686','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10001094','CALDERDALE METROPOLITAN BOROUGH COUNCIL','Other Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10001116','CAMBRIDGE REGIONAL COLLEGE','General FE and Tertiary College', '85.1', NULL,'7391','748','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10001123','CAMBRIDGESHIRE COUNTY COUNCIL','Other Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10001143','CANTERBURY CHRIST CHURCH UNIVERSITY','Other Public Funded', NULL, 'Data will be available in a later refresh','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10001145','CANTO LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10001148','<NAME> COLLEGE','Specialist College', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10001149','CAPITA PLC','Private Sector Public Funded', '52.7', NULL,'3171','530','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10001174','CT SKILLS LIMITED','Private Sector Public Funded', '93.1', NULL,'1295','415','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10001182','ASPIRE-IGEN GROUP LTD','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10001196','CARLISLE COLLEGE','General FE and Tertiary College', '84.2', NULL,'2401','420','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10001235','CATTEN COLLEGE LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10001259','CENTRAL TRAINING ACADEMY LIMITED','Private Sector Public Funded', '89.6', NULL,'895','340','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10001263','CENTRAL MANCHESTER UNIVERSITY HOSPITALS NHS FOUNDATION TRUST','Other Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10001282','UNIVERSITY OF NORTHUMBRIA AT NEWCASTLE','Other Public Funded', NULL, 'Data will be available in a later refresh','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10001309','COVENTRY AND WARWICKSHIRE CHAMBERS OF COMMERCE TRAINING LIMITED','Private Sector Public Funded', '90.4', NULL,'611','398','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10001310','CHAMBER TRAINING (HUMBER) LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10001328','THE CHARTERED INSTITUTE OF HOUSING','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10001353','CHELMSFORD COLLEGE','General FE and Tertiary College', '66.7', NULL,'2533','600','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10001378','CHESTERFIELD COLLEGE','General FE and Tertiary College', '84.6', NULL,'5404','751','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10001394','CHILTERN TRAINING LIMITED','Private Sector Public Funded', '88.3', NULL,'397','227','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10001436','CITB','Other Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10001463','THE CITY LITERARY INSTITUTE','Specialist College', '97.7', NULL,'17055','568','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10001464','WESTMINSTER CITY COUNCIL','Other Public Funded', '92.1', NULL,'3250','699','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10001465','BATH COLLEGE','General FE and Tertiary College', '82.7', NULL,'3545','613','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10001467','CITY OF BRISTOL COLLEGE','General FE and Tertiary College', '78', NULL,'7453','1782','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10001473','STOKE-ON-TRENT CITY COUNCIL','Other Public Funded', '94.7', NULL,'731','861','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10001475','CITY OF SUNDERLAND COLLEGE','General FE and Tertiary College', '86.8', NULL,'7340','2890','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10001476','UNITED COLLEGES GROUP','General FE and Tertiary College', '83.3', NULL,'10158','1503','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10001477','CITY OF YORK COUNCIL','Other Public Funded', '95', NULL,'2350','757','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10001478','CITY, UNIVERSITY OF LONDON','Other Public Funded', NULL, 'Data will be available in a later refresh','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10001503','THE NORTHERN SCHOOL OF ART','Specialist College', '92.4', NULL,'477','282','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10001515','C.M.S. VOCATIONAL TRAINING LIMITED','Private Sector Public Funded', '84.1', NULL,'197','150','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10001531','COGENT SSC LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10001535','COLCHESTER INSTITUTE','General FE and Tertiary College', '75.8', NULL,'6219','1567','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10001538','COLEG ELIDYR','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10001539','THE COLLEGE OF ANIMAL WELFARE LIMITED','Private Sector Public Funded', '76.6', NULL,'906','304','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10001585','CERT LTD','Private Sector Public Funded', '90.5', NULL,'11','10','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10001602','COMMUNITY TRAINING SERVICES LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10001647','FUTURES ADVICE, SKILLS AND EMPLOYMENT LIMITED','Private Sector Public Funded', '87.3', NULL,'226','274','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10001648','CXK LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10001664','CONSTRUCTION TRAINING SPECIALISTS LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10001695','THE CORNWALL COUNCIL','Other Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10001696','CORNWALL COLLEGE','General FE and Tertiary College', '77.9', NULL,'7856','956','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10001710','COUNCIL OF THE ISLES OF SCILLY','Other Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10001723','COVENTRY CITY COUNCIL','Other Public Funded', '95.2', NULL,'3544','1073','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10001726','COVENTRY UNIVERSITY','Other Public Funded', NULL, 'Data will be available in a later refresh','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10001736','CRACKERJACK TRAINING LIMITED','Private Sector Public Funded', '73.2', NULL,'213','104','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10001743','CRAVEN COLLEGE','General FE and Tertiary College', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10001777','ALT VALLEY COMMUNITY TRUST LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10001778','CROYDON COLLEGE','General FE and Tertiary College', '75.9', NULL,'3053','480','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10001786','CSM CONSULTING LIMITED','Private Sector Public Funded', '97.7', NULL,'275','128','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10001787','VOLUNTEERING MATTERS','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10001800','CUMBRIA COUNTY COUNCIL','Other Public Funded', '93.4', NULL,'2259','549','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10001828','DART LIMITED','Private Sector Public Funded', '95.4', NULL,'430','304','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10001831','DAMAR LIMITED','Private Sector Public Funded', '67.4', NULL,'1807','871','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10001848','DARLINGTON BOROUGH COUNCIL','Other Public Funded', '95.8', NULL,'549','178','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10001850','DARLINGTON COLLEGE','General FE and Tertiary College', '80.7', NULL,'2676','604','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10001867','THE DAVID LEWIS CENTRE','Other Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10001869','DAVIDSON TRAINING UK LIMITED','Private Sector Public Funded', '93.5', NULL,'127','83','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10001883','DE MONTFORT UNIVERSITY','Other Public Funded', NULL, 'Data will be available in a later refresh','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10001918','DERBY CITY COUNCIL','Other Public Funded', '95.2', NULL,'1428','675','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10001919','DERBY COLLEGE','General FE and Tertiary College', '80.2', NULL,'9101','1883','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10001927','EAST MIDLANDS CHAMBER (DERBYSHIRE, NOTTINGHAMSHIRE, LEICESTERSHIRE)','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10001928','DERBYSHIRE COUNTY COUNCIL','Other Public Funded', '95.6', NULL,'3837','1475','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10001929','DERWEN COLLEGE','Other Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10001934','DERWENTSIDE COLLEGE','General FE and Tertiary College', '92.8', NULL,'3762','718','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10001944','HUMANKIND CHARITY','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10001947','DEVELOPMENT PROCESSES GROUP PLC','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10001951','DEVON COUNTY COUNCIL','Other Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10001967','DIDAC LIMITED','Private Sector Public Funded', '80.6', NULL,'194','118','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10001971','DIMENSIONS TRAINING SOLUTIONS LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10002006','COMMUNICATION SPECIALIST COLLEGE - DONCASTER','Private Sector Public Funded', '91.3', NULL,'83','59','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10002008','DONCASTER METROPOLITAN BOROUGH COUNCIL','Other Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10002009','DONCASTER ROTHERHAM AND DISTRICT MOTOR TRADES GROUP TRAINING ASSOCIATION LIMITED','Private Sector Public Funded', '88.9', NULL,'188','141','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10002054','DUDLEY METROPOLITAN BOROUGH COUNCIL','Other Public Funded', '93.8', NULL,'1136','205','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10002061','CENTRAL BEDFORDSHIRE COLLEGE','General FE and Tertiary College', '76.1', NULL,'2670','1131','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10002064','COUNTY DURHAM COUNCIL','Other Public Funded', '92.8', NULL,'1474','1134','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10002073','BIG CREATIVE TRAINING LTD','Private Sector Public Funded', '69', NULL,'351','225','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10002078','E-TRAINING LIMITED','Private Sector Public Funded', '96.2', NULL,'273','197','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10002084','THE TECH PARTNERSHIP','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10002085','E.QUALITY TRAINING LIMITED','Private Sector Public Funded', '92.4', NULL,'180','108','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10002094','EALING, HAMMERSMITH & WEST LONDON COLLEGE','General FE and Tertiary College', '74.1', NULL,'5611','668','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10002098','EASI HAIRDRESSING ACADEMY LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10002107','THE WINDSOR FOREST COLLEGES GROUP','General FE and Tertiary College', '75.7', NULL,'5010','1358','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10002111','EAST DURHAM COLLEGE','General FE and Tertiary College', '82.3', NULL,'3590','615','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10002118','EAST LONDON ADVANCED TECHNOLOGY TRAINING','Private Sector Public Funded', '92.9', NULL,'435','256','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10002120','DIGITAL SKILLS SOLUTIONS LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10002126','EAST RIDING COLLEGE','General FE and Tertiary College', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10002130','EAST SURREY COLLEGE','General FE and Tertiary College', '80.9', NULL,'3667','1181','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10002131','EAST SUSSEX COUNTY COUNCIL','Other Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10002143','EASTLEIGH COLLEGE','General FE and Tertiary College', '88', NULL,'8103','1739','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10002187','EDUCATION AND TRAINING SKILLS LTD','Private Sector Public Funded', '84.3', NULL,'257','161','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10002214','ELFRIDA RATHBONE CAMDEN - LEIGHTON EDUCATION PROJECT','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10002230','BAUER RADIO LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10002244','SHEFFIELD CITY COUNCIL','Other Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10002247','SEMTA INTERNATIONAL LTD.','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10002260','ENFIELD LONDON BOROUGH COUNCIL','Other Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10002264','QINETIQ LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10002304','E.Q.V. (UK) LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10002327','ESSEX COUNTY COUNCIL','Other Public Funded', '94.7', NULL,'5408','1600','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10002331','EMBS COMMUNITY COLLEGE LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10002345','EDUCATION AND SERVICES FOR PEOPLE WITH AUTISM LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10002370','EXETER COLLEGE','General FE and Tertiary College', '83.3', NULL,'8878','2072','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10002387','F1 COMPUTER SERVICES & TRAINING LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10002396','FAIRFIELD FARM COLLEGE (FAIRFIELD FARM TRUST)','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10002407','FAREPORT TRAINING ORGANISATION LIMITED','Private Sector Public Funded', '81.7', NULL,'681','387','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10002409','FARLEIGH FURTHER EDUCATION COLLEGE - FROME','Other Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10002412','FARNBOROUGH COLLEGE OF TECHNOLOGY','General FE and Tertiary College', '78.1', NULL,'3275','1577','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10002424','FNTC TRAINING AND CONSULTANCY LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10002463','FINNING (UK) LTD.','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10002471','EAST LINDSEY INFORMATION TECHNOLOGY CENTRE','Private Sector Public Funded', '93', NULL,'202','130','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10002483','FIRST RUNG LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10002489','MOSAIC SPA AND HEALTH CLUBS (CONTRACT MANAGEMENT) LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10002527','THE FOOTBALL ASSOCIATION PREMIER LEAGUE LIMITED','Private Sector Public Funded', '75.7', NULL,'414','350','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10002546','THE FORTUNE CENTRE OF RIDING THERAPY','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10002560','FOXES ACADEMY','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10002565','FRANCESCO GROUP (HOLDINGS) LIMITED','Private Sector Public Funded', '85.6', NULL,'203','140','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10002578','FRIENDS CENTRE','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10002599','FURNESS COLLEGE','General FE and Tertiary College', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10002618','G B TRAINING (UK) LTD','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10002638','GATESHEAD COLLEGE','General FE and Tertiary College', '80.1', NULL,'5579','1120','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10002639','GATESHEAD COUNCIL','Other Public Funded', '94', NULL,'2183','780','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10002655','GENII ENGINEERING & TECHNOLOGY TRAINING LIMITED','Private Sector Public Funded', '83.2', NULL,'1255','603','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10002670','TEMPEST MANAGEMENT TRAINING LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10002696','GLOUCESTERSHIRE COLLEGE','General FE and Tertiary College', '83.9', NULL,'6587','1112','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10002697','GLOUCESTERSHIRE COUNTY COUNCIL','Other Public Funded', '96.2', NULL,'1320','338','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10002704','GLOUCESTERSHIRE ENGINEERING TRAINING LIMITED','Private Sector Public Funded', '65', NULL,'346','215','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10002743','GRANTHAM COLLEGE','General FE and Tertiary College', '74.6', NULL,'1622','652','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10002767','GREENBANK PROJECT (THE)','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10002801','GROUNDWORK OLDHAM & ROCHDALE','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10002815','GUILDFORD COLLEGE OF FURTHER AND HIGHER EDUCATION','General FE and Tertiary College', '73.7', NULL,'3501','924','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10002834','HAIR AND BEAUTY INDUSTRY TRAINING LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10002836','HCT GROUP','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10002841','HADDON TRAINING LIMITED','Private Sector Public Funded', '92.2', NULL,'499','171','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10002843','HADLOW COLLEGE','Specialist College', '76.5', NULL,'1617','629','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10002850','HAIR ACADEMY SOUTH WEST LIMITED','Private Sector Public Funded', '92.7', NULL,'310','239','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10002852','HALESOWEN COLLEGE','General FE and Tertiary College', '77.1', NULL,'5062','665','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10002859','<NAME>','Other Public Funded', '97.5', NULL,'975','405','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10002861','<NAME>','Other Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10002863','RIVERSIDE COLLEGE','General FE and Tertiary College', '83.9', NULL,'4869','643','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10002868','HAMMERSMITH AND <NAME>GH COUNCIL','Other Public Funded', '97.2', NULL,'2518','318','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10002872','HAMPSHIRE COUNTY COUNCIL','Other Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10002888','HAPPY COMPUTERS LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10002896','HARINGTON SCHEME LIMITED(THE)','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10002899','HARLOW COLLEGE','General FE and Tertiary College', '76.5', NULL,'3883','1650','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10002910','HARROW LONDON BOROUGH COUNCIL','Other Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10002916','HARTLEPOOL BOROUGH COUNCIL','Other Public Funded', '89', NULL,'396','132','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10002917','HARTLEPOOL COLLEGE OF FURTHER EDUCATION','General FE and Tertiary College', '84.7', NULL,'2568','580','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10002919','HARTPURY COLLEGE','Specialist College', '86.8', NULL,'2159','1204','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10002923','EAST SUSSEX COLLEGE GROUP','General FE and Tertiary College', '78.2', NULL,'10885','2188','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10002935','HAVERING COLLEGE OF FURTHER AND HIGHER EDUCATION','General FE and Tertiary College', '82.6', NULL,'4347','658','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10002976','HEART OF ENGLAND TRAINING LIMITED','Private Sector Public Funded', '92.7', NULL,'959','495','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10002979','HEATHERCROFT TRAINING SERVICES LIMITED','Private Sector Public Funded', '97.2', NULL,'208','117','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10003010','COVENTRY COLLEGE','General FE and Tertiary College', '77.8', NULL,'5314','2058','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10003022','HEREFORD COLLEGE OF ARTS','Specialist College', '83.1', NULL,'409','301','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10003023','HEREFORDSHIRE AND LUDLOW COLLEGE','General FE and Tertiary College', '90.6', NULL,'5585','1698','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10003025','HEREFORDSHIRE COUNCIL','Other Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10003026','HEREFORDSHIRE GROUP TRAINING ASSOCIATION LIMITED','Private Sector Public Funded', '92.9', NULL,'532','310','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10003029','HEREWARD COLLEGE OF FURTHER EDUCATION','General FE and Tertiary College', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10003035','HERTFORD REGIONAL COLLEGE','General FE and Tertiary College', '79.2', NULL,'3307','1269','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10003039','HERTFORDSHIRE COUNTY COUNCIL','Other Public Funded', '93.7', NULL,'1438','769','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10003085','HILL HOLT WOOD','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10003088','RICHMOND AND HILLCROFT ADULT AND COMMUNITY COLLEGE','Specialist College', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10003089','HILLINGDON LONDON BOROUGH COUNCIL','Other Public Funded', '94.9', NULL,'1736','639','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10003093','HILLINGDON TRAINING LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10003136','HOMEFIELD COLLEGE','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10003146','HOPWOOD HALL COLLEGE','General FE and Tertiary College', '78', NULL,'4566','2610','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10003161','BABCOCK TRAINING LIMITED','Private Sector Public Funded', '84.5', NULL,'8226','640','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10003162','HTP APPRENTICESHIP COLLEGE LTD','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10003165','HOUNSLOW LONDON BOROUGH COUNCIL','Other Public Funded', '97.4', NULL,'1277','824','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10003189','KIRKLEES COLLEGE','General FE and Tertiary College', '75.1', NULL,'6952','1090','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10003190','HUDDERSFIELD TEXTILE TRAINING LIMITED','Private Sector Public Funded', '87.6', NULL,'63','54','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10003193','HUGH BAIRD COLLEGE','General FE and Tertiary College', '79.8', NULL,'3572','1596','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10003197','HULL BUSINESS TRAINING CENTRE LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10003198','KINGSTON UPON HULL CITY COUNCIL','Other Public Funded', '89', NULL,'2074','430','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10003200','HULL COLLEGE','General FE and Tertiary College', '79', NULL,'7782','1239','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10003206','HUMBERSIDE ENGINEERING TRAINING ASSOCIATION LIMITED','Private Sector Public Funded', '82.7', NULL,'514','185','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10003207','HUMBER LEARNING CONSORTIUM','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10003219','HYA TRAINING LIMITED','Private Sector Public Funded', '95.5', NULL,'188','118','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10003231','EXG LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10003234','IBM UNITED KINGDOM LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10003240','ICON VOCATIONAL TRAINING LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10003252','CILEX LAW SCHOOL LIMITED','Private Sector Public Funded', '72.7', NULL,'510','353','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10003256','WESTWARD PATHFINDER','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10003274','LEAN EDUCATION AND DEVELOPMENT LIMITED','Private Sector Public Funded', '79.5', NULL,'904','367','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10003280','IN-COMM TRAINING AND BUSINESS SERVICES LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10003289','INDEPENDENT TRAINING SERVICES LIMITED','Private Sector Public Funded', '87.4', NULL,'759','312','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10003317','INSTEP UK LIMITED','Private Sector Public Funded', '83.1', NULL,'421','199','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10003345','THERMAL INSULATION CONTRACTORS ASSOCIATION','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10003347','INTEC BUSINESS COLLEGES LIMITED','Private Sector Public Funded', '85.5', NULL,'1449','466','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10003354','INTER TRAINING SERVICES LIMITED','Private Sector Public Funded', '86.5', NULL,'83','76','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10003375','QA LIMITED','Private Sector Public Funded', '57.2', NULL,'6975','1245','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10003380','INTROTRAIN & FORUM LIMITED','Private Sector Public Funded', '97.6', NULL,'105','78','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10003382','INTUITIONS LIMITED','Private Sector Public Funded', '87.6', NULL,'186','161','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10003385','IPS INTERNATIONAL LIMITED','Private Sector Public Funded', '89.6', NULL,'535','279','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10003402','ENGINEERING TRUST TRAINING LIMITED','Private Sector Public Funded', '88.4', NULL,'182','153','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10003406','ISLE OF WIGHT COLLEGE','General FE and Tertiary College', '88.2', NULL,'2710','557','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10003407','ISLE OF WIGHT COUNCIL','Other Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10003414','<NAME>','Other Public Funded', '97.9', NULL,'650','219','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10003429','ITEC LEARNING TECHNOLOGIES LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10003430','ITEC NORTH EAST LIMITED','Private Sector Public Funded', '95.5', NULL,'255','173','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10003440','J & E TRAINING CONSULTANTS LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10003455','JARROLD & SONS LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10003456','JARVIS TRAINING MANAGEMENT LIMITED','Private Sector Public Funded', '91.9', NULL,'1216','481','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10003478','JOBWISE TRAINING LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10003490','JOHN LAING TRAINING LIMITED','Private Sector Public Funded', '90.4', NULL,'205','139','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10003526','JTL','Private Sector Public Funded', '75.2', NULL,'7316','773','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10003529','JUNIPER TRAINING LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10003538','KASHMIR YOUTH PROJECT','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10003558','KENDAL COLLEGE','General FE and Tertiary College', '89.8', NULL,'2350','526','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10003564','KENSINGTON AND CHELSEA COLLEGE','General FE and Tertiary College', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10003570','KENT COUNTY COUNCIL','Other Public Funded', '90.5', NULL,'11423','1252','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10003571','KEITS TRAINING SERVICES LTD','Private Sector Public Funded', '79.1', NULL,'849','414','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10003586','KETTERING BOROUGH COUNCIL','Other Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10003593','KEY TRAINING LIMITED','Private Sector Public Funded', '70.8', NULL,'1745','543','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10003614','UNIVERSITY OF WINCHESTER','Other Public Funded', NULL, 'Data will be available in a later refresh','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10003674','SOUTH THAMES COLLEGES GROUP','General FE and Tertiary College', '70.2', NULL,'11840','1062','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10003676','KINGSTON MAURWARD COLLEGE','Specialist College', '76.3', NULL,'1195','398','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10003678','KINGSTON UNIVERSITY','Other Public Funded', NULL, 'Data will be available in a later refresh','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10003688','KIRKDALE INDUSTRIAL TRAINING SERVICES LIMITED','Private Sector Public Funded', '63.7', NULL,'330','133','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10003692','KIRKLEES METROPOLITAN COUNCIL','Other Public Funded', '98.3', NULL,'224','124','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10003709','KNOWSLEY METROPOLITAN BOROUGH COUNCIL','Other Public Funded', '97.5', NULL,'827','353','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10003717','KPMG LLP','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10003724','KWIK-FIT (GB) LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10003728','L.I.T.S. LIMITED','Private Sector Public Funded', '82.9', NULL,'67','47','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10003744','LAGAT LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10003748','MARITIME + ENGINEERING COLLEGE NORTH WEST','Private Sector Public Funded', '80.5', NULL,'316','251','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10003753','LAKES COLLEGE WEST CUMBRIA','General FE and Tertiary College', '79.9', NULL,'2459','705','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10003755','LAMBETH COLLEGE','General FE and Tertiary College', '79.2', NULL,'4988','766','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10003768','LANCASTER AND MORECAMBE COLLEGE','General FE and Tertiary College', '85.1', NULL,'3051','984','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10003771','LANCASTER TRAINING SERVICES LIMITED','Private Sector Public Funded', '78.3', NULL,'42','35','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10003774','LANDMARKS','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10003775','<NAME>','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10003784','GENIUS SOLUTIONS LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10003808','LEAGUE FOOTBALL EDUCATION','Private Sector Public Funded', '80.1', NULL,'1241','438','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10003834','LEARNING INNOVATIONS TRAINING TEAM LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10003841','V LEARNING NET','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10003853','LEEDS CITY COUNCIL','Other Public Funded', '95.8', NULL,'2910','969','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10003854','LEEDS ARTS UNIVERSITY','Other Public Funded', NULL, 'Data will be available in a later refresh','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10003855','LEEDS COLLEGE OF BUILDING','General FE and Tertiary College', '82.1', NULL,'3124','708','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10003861','LEEDS BECKETT UNIVERSITY','Other Public Funded', NULL, 'Data will be available in a later refresh','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10003863','LEEDS TRINITY UNIVERSITY','Other Public Funded', NULL, 'Data will be available in a later refresh','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10003866','LEICESTER CITY COUNCIL','Other Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10003867','LEICESTER COLLEGE','General FE and Tertiary College', '78.8', NULL,'9974','1490','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10003872','LEICESTERSHIRE COUNTY COUNCIL','Other Public Funded', '94.2', NULL,'2744','887','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10003889','LESLIE FRANCES (HAIR FASHIONS) LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10003894','LE<NAME>K COLLEGE','General FE and Tertiary College', '81.3', NULL,'4859','1060','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10003895','LE<NAME>GH COUNCIL','Other Public Funded', '95', NULL,'2375','251','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10003909','LIFESKILLS SOLUTIONS LIMITED','Private Sector Public Funded', '90.8', NULL,'877','390','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10003915','LIFETIME TRAINING GROUP LIMITED','Private Sector Public Funded', '86.3', NULL,'30454','849','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10003919','THELIGHTBULB LTD','Private Sector Public Funded', '88.6', NULL,'219','170','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10003928','LINCOLN COLLEGE','General FE and Tertiary College', '82.3', NULL,'6461','585','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10003932','LINCOLNSHIRE COUNTY COUNCIL','Other Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10003940','LINKAGE COMMUNITY TRUST','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10003954','LIVERPOOL CITY COUNCIL','Other Public Funded', '94.5', NULL,'1989','344','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10003955','THE CITY OF LIVERPOOL COLLEGE','General FE and Tertiary College', '72.9', NULL,'6624','675','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10003957','LIVERPOOL JOHN MOORES UNIVERSITY','Other Public Funded', NULL, 'Data will be available in a later refresh','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10003976','LOCOMOTIVATION LTD.','Private Sector Public Funded', '91.3', NULL,'188','117','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10003979','AZESTA LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10003981','LOMAX TRAINING SERVICES LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10003987','BROMLEY LONDON BOROUGH COUNCIL','Other Public Funded', '91.6', NULL,'2054','458','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10003988','CAMDEN LONDON BOROUGH COUNCIL','Other Public Funded', '99', NULL,'1124','202','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10003989','CROYDON LONDON BOROUGH COUNCIL','Other Public Funded', '96.6', NULL,'2470','490','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10003990','ROYAL BOROUGH OF GREENWICH','Other Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10003993','HAVERING LONDON BOROUGH COUNCIL','Other Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10003995','LAMBETH LONDON BOROUGH COUNCIL','Other Public Funded', '98.8', NULL,'863','488','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10003996','MERTON BOROUGH COUNCIL','Other Public Funded', '97.1', NULL,'979','315','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10003997','NEWHAM LONDON BOROUGH COUNCIL','Other Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10004000','SUTTON LONDON BOROUGH COUNCIL','Other Public Funded', '92.5', NULL,'2065','484','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10004002','WANDSWORTH LONDON BOROUGH COUNCIL','Other Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10004013','THE LONDON COLLEGE OF BEAUTY THERAPY LIMITED','Private Sector Public Funded', '64.3', NULL,'826','528','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10004048','LONDON METROPOLITAN UNIVERSITY','Other Public Funded', NULL, 'Data will be available in a later refresh','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10004078','LONDON SOUTH BANK UNIVERSITY','Other Public Funded', NULL, 'Data will be available in a later refresh','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10004112','LOUGHBOROUGH COLLEGE','General FE and Tertiary College', '77.4', NULL,'5905','607','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10004113','LOUGHBOROUGH UNIVERSITY','Other Public Funded', NULL, 'Data will be available in a later refresh','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10004116','EAST COAST COLLEGE','General FE and Tertiary College', '80.4', NULL,'4127','1885','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10004123','TUI UK LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10004124','LUTON BOROUGH COUNCIL','Other Public Funded', '94.9', NULL,'1173','404','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10004140','MEAT EAST ANGLIA TRADES (IPSWICH) LIMITED','Private Sector Public Funded', '100', NULL,'77','71','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10004144','MACCLESFIELD COLLEGE','General FE and Tertiary College', '73.3', NULL,'2130','245','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10004175','MANCHESTER CITY COUNCIL','Other Public Funded', '97.5', NULL,'4149','666','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10004177','THE GROWTH COMPANY LIMITED','Private Sector Public Funded', '80.2', NULL,'3615','594','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10004180','MANCHESTER METROPOLITAN UNIVERSITY','Other Public Funded', NULL, 'Data will be available in a later refresh','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10004181','MANTRA LEARNING LIMITED','Private Sector Public Funded', '89.5', NULL,'699','307','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10004222','MARSHALL OF CAMBRIDGE AEROSPACE LIMITED','Private Sector Public Funded', '76.7', NULL,'117','108','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10004223','MARSON GARAGES (WOLSTANTON) LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10004240','MATRIX TRAINING AND DEVELOPMENT LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10004257','MCARTHUR DEAN TRAINING LIMITED','Private Sector Public Funded', '81.1', NULL,'348','208','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10004283','MEDIVET GROUP LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10004285','MEDWAY COUNCIL','Other Public Funded', '94.7', NULL,'1845','881','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10004303','MERCIA PARTNERSHIP (UK) LTD','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10004319','METSKILL LIMITED','Private Sector Public Funded', '74.9', NULL,'343','129','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10004327','WIRRAL METROPOLITAN BOROUGH COUNCIL','Other Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10004340','MID-KENT COLLEGE','General FE and Tertiary College', '78.2', NULL,'5346','686','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10004343','MIDDLESBROUGH COUNCIL','Other Public Funded', '96', NULL,'803','417','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10004344','MIDDLESBROUGH COLLEGE','General FE and Tertiary College', '83.4', NULL,'7518','736','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10004351','MIDDLESEX UNIVERSITY','Other Public Funded', NULL, 'Data will be available in a later refresh','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10004355','MIDLAND GROUP TRAINING SERVICES LIMITED','Private Sector Public Funded', '83.2', NULL,'594','261','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10004370','YOUNGSAVE COMPANY LIMITED','Private Sector Public Funded', '87.5', NULL,'215','116','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10004374','MILTON KEYNES CHRISTIAN FOUNDATION LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10004375','MILTON KEYNES COLLEGE','General FE and Tertiary College', '75.3', NULL,'5262','1852','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10004376','<NAME>','Other Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10004399','DOOSAN BABCOCK LIMITED','Private Sector Public Funded', '78.4', NULL,'85','76','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10004404','MOBILE CARE QUALIFICATIONS LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10004406','MODE TRAINING LTD','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10004432','MORLEY COLLEGE LIMITED','Specialist College', '95.5', NULL,'6762','935','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10004434','MORTHYNG GROUP LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10004440','M I T SKILLS LIMITED','Private Sector Public Funded', '93.5', NULL,'878','434','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10004442','MOULTON COLLEGE','Specialist College', '65.1', NULL,'2198','464','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10004444','THE MOUNT CAMPHILL COMMUNITY LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10004464','THE MUATH TRUST','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10004478','MYERSCOUGH COLLEGE','Specialist College', '85.7', NULL,'2682','1089','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10004484','N & B TRAINING COMPANY LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10004486','NACRO','Private Sector Public Funded', '87.2', NULL,'1731','290','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10004499','NATIONAL BUSINESS COLLEGE LIMITED','Private Sector Public Funded', '91', NULL,'91','72','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10004502','THE NATIONAL CENTRE FOR YOUNG PEOPLE WITH EPILEPSY CHARITABLE TRUST','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10004512','NATIONAL GRID PLC','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10004527','NATIONAL STAR COLLEGE','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10004530','NATIONAL TYRE SERVICE LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10004547','NORTH EAST EMPLOYMENT & TRAINING AGENCY LTD','Private Sector Public Funded', '100', NULL,'70','58','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10004552','NELSON AND COLNE COLLEGE','General FE and Tertiary College', '96.5', NULL,'7191','1665','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10004576','NEW COLLEGE DURHAM','General FE and Tertiary College', '86.8', NULL,'4494','1264','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10004577','NOTTINGHAM COLLEGE','General FE and Tertiary College', '78.5', NULL,'14192','3072','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10004579','NEW COLLEGE SWINDON','General FE and Tertiary College', '72.5', NULL,'5159','638','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10004589','TTE TRAINING LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10004596','NEWBURY COLLEGE','General FE and Tertiary College', '83.6', NULL,'1525','853','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10004601','NEWCASTLE UPON TYNE CITY COUNCIL','Other Public Funded', '94', NULL,'2080','391','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10004603','NEWCASTLE AND STAFFORD COLLEGES GROUP','General FE and Tertiary College', '87.1', NULL,'6957','1503','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10004607','NEWHAM COLLEGE OF FURTHER EDUCATION','General FE and Tertiary College', '87.1', NULL,'7682','2010','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10004609','NEWHAM TRAINING AND EDUCATION CENTRE','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10004632','NHTA LIMITED','Private Sector Public Funded', '94.9', NULL,'247','144','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10004643','NORTHAMPTONSHIRE INDUSTRIAL TRAINING ASSOCIATION LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10004657','NORFOLK COUNTY COUNCIL','Other Public Funded', '84.8', NULL,'1605','312','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10004665','NORMAN MACKIE & ASSOCIATES LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10004676','PETROC','General FE and Tertiary College', '77', NULL,'6024','731','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10004684','NORTH EAST LINCOLNSHIRE COUNCIL','Other Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10004686','NORTH EAST SURREY COLLEGE OF TECHNOLOGY (NESCOT)','General FE and Tertiary College', '81.4', NULL,'4672','854','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10004690','NORTH HERTFORDSHIRE COLLEGE','General FE and Tertiary College', '91.7', NULL,'4873','576','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10004692','NORTH LANCS. TRAINING GROUP LIMITED(THE)','Private Sector Public Funded', '83.9', NULL,'1718','414','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10004694','NORTH LINCOLNSHIRE COUNCIL','Other Public Funded', '95.9', NULL,'717','288','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10004695','DN COLLEGES GROUP','General FE and Tertiary College', '82.5', NULL,'9073','2152','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10004714','NORTH TYNESIDE METROPOLITAN BOROUGH COUNCIL','Other Public Funded', '95.8', NULL,'698','414','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10004718','NORTH WARWICKSHIRE AND SOUTH LEICESTERSHIRE COLLEGE','General FE and Tertiary College', '80.3', NULL,'7187','1760','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10004720','NORTH WEST COMMUNITY SERVICES TRAINING LTD','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10004721','NORTH KENT COLLEGE','General FE and Tertiary College', '88.8', NULL,'3387','694','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10004723','NORTH WEST TRAINING COUNCIL','Private Sector Public Funded', '60.9', NULL,'326','245','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10004727','NORTH YORKSHIRE COUNTY COUNCIL','Other Public Funded', '96', NULL,'1635','225','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10004733','NORTHAMPTONSHIRE COUNTY COUNCIL','Other Public Funded', '88.3', NULL,'1889','314','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10004736','GREATER BRIGHTON METROPOLITAN COLLEGE','General FE and Tertiary College', '81', NULL,'7212','2684','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10004739','NORTHERN COLLEGE FOR RESIDENTIAL ADULT EDUCATION LIMITED(THE)','Specialist College', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10004748','NORTHERN RACING COLLEGE','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10004760','NORTHUMBERLAND COLLEGE','General FE and Tertiary College', '72.6', NULL,'2785','1248','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10004762','THE NORTHUMBERLAND COUNCIL','Other Public Funded', '93.1', NULL,'1849','804','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10004772','CITY COLLEGE NORWICH','General FE and Tertiary College', '75.9', NULL,'6741','1760','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10004788','THE VOLUNTARY AND COMMUNITY SECTOR LEARNING AND SKILLS CONSORTIUM','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10004791','NOTTINGHAM CITY COUNCIL','Other Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10004797','NOTTINGHAM TRENT UNIVERSITY','Other Public Funded', NULL, 'Data will be available in a later refresh','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10004801','NOTTINGHAMSHIRE COUNTY COUNCIL','Other Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10004807','NOTTINGHAMSHIRE TRAINING NETWORK LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10004823','PROGRESS TO EXCELLENCE LTD','Private Sector Public Funded', '85', NULL,'3844','800','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10004835','OAKLANDS COLLEGE','General FE and Tertiary College', '80.4', NULL,'5001','520','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10004841','PHOENIX LEARNING AND CARE LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10004856','OLDHAM ENGINEERING GROUP TRAINING ASSOCIATION LIMITED (THE)','Private Sector Public Funded', '71.6', NULL,'186','98','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10004858','OLDHAM METROPOLITAN BOROUGH COUNCIL','Other Public Funded', '97.3', NULL,'2126','878','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10004866','OMEGA TRAINING SERVICES LIMITED','Private Sector Public Funded', '86.3', NULL,'539','231','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10004895','ORACLE TRAINING CONSULTANTS LIMITED','Private Sector Public Funded', '98.9', NULL,'135','98','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10004927','ACTIVATE LEARNING','General FE and Tertiary College', '72.9', NULL,'9071','1785','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10004930','OXFORD BROOKES UNIVERSITY','Other Public Funded', NULL, 'Data will be available in a later refresh','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10004977','PARAGON EDUCATION & SKILLS LIMITED','Private Sector Public Funded', '89', NULL,'2933','869','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10005017','PDM TRAINING & CONSULTANCY LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10005032','SALFORD CITY COLLEGE','General FE and Tertiary College', '80.6', NULL,'7343','479','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10005036','PENNINE CAMPHILL COMMUNITY','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10005064','PETA LIMITED','Private Sector Public Funded', '67.5', NULL,'538','455','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10005074','PETERBOROUGH CITY COUNCIL','Other Public Funded', '94.2', NULL,'1580','530','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10005077','PETERBOROUGH REGIONAL COLLEGE','General FE and Tertiary College', '60.7', NULL,'4345','194','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10005086','PGL TRAVEL LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10005089','PHILIPS HAIR SALONS LIMITED','Private Sector Public Funded', '93.2', NULL,'109','92','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10005094','PHOENIX TRAINING SERVICES (MIDLANDS) LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10005101','PILOT IMS LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10005109','DERBY BUSINESS COLLEGE LIMITED','Private Sector Public Funded', '89.3', NULL,'394','292','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10005113','SLOUGH PIT STOP PROJECT LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10005124','PLUMPTON COLLEGE','Specialist College', '68.3', NULL,'1569','185','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10005126','PLYMOUTH CITY COUNCIL','Other Public Funded', '95.8', NULL,'822','338','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10005127','PLYMOUTH COLLEGE OF ART','Other Public Funded', NULL, 'Data will be available in a later refresh','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10005128','CITY COLLEGE PLYMOUTH','General FE and Tertiary College', '93.9', NULL,'5034','606','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10005143','BOROUGH OF POOLE','Other Public Funded', '94.5', NULL,'2540','1202','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10005150','XTP INTERNATIONAL LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10005151','PORTLAND COLLEGE','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10005157','PORTSMOUTH CITY COUNCIL','Other Public Funded', '97', NULL,'633','188','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10005172','POULTEC TRAINING LIMITED','Private Sector Public Funded', '93.5', NULL,'737','379','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10005192','PREMIER TRAINING INTERNATIONAL LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10005200','PRESTON COLLEGE','General FE and Tertiary College', '83', NULL,'4972','852','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10005204','PREVISTA LTD','Private Sector Public Funded', '85.1', NULL,'2694','836','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10005222','PRIORITY MANAGEMENT LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10005237','PROFESSIONAL BUSINESS & TRAINING SOLUTIONS LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10005250','PROJECT MANAGEMENT (STAFFORDSHIRE) LIMITED','Private Sector Public Funded', '83.7', NULL,'1018','274','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10005261','PROSPECT TRAINING SERVICES (GLOUCESTER) LIMITED','Private Sector Public Funded', '83.5', NULL,'182','125','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10005264','MILLBROOK MANAGEMENT SERVICES LIMITED','Private Sector Public Funded', '87.9', NULL,'253','155','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10005268','TRANSWORLD PUBLICATIONS SERVICES LIMITED','Private Sector Public Funded', '92.7', NULL,'94','81','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10005277','SKILLS TO GROUP LIMITED','Private Sector Public Funded', '92.6', NULL,'1327','491','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10005310','EDUC8 TRAINING (ENGLAND) LIMITED','Private Sector Public Funded', '94', NULL,'22','18','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10005319','QUBE QUALIFICATIONS AND DEVELOPMENT LIMITED','Private Sector Public Funded', '88.2', NULL,'3253','1095','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10005320','<NAME>','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10005389','RAVENSBOURNE UNIVERSITY LONDON','Other Public Funded', NULL, 'Data will be available in a later refresh','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10005398','READING BOROUGH COUNCIL','Other Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10005404','REASEHEATH COLLEGE','Specialist College', '76.8', NULL,'2617','1012','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10005412','REDBRIDGE LONDON BOROUGH COUNCIL','Other Public Funded', '97.7', NULL,'2459','615','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10005413','REDCAR AND CLEVELAND BOROUGH COUNCIL','Other Public Funded', '92.8', NULL,'406','312','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10005422','REED BUSINESS SCHOOL LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10005426','HOUSE OF CLIVE (HAIR AND BEAUTY) LIMITED','Private Sector Public Funded', '94.7', NULL,'650','363','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10005457','REWARDS TRAINING RECRUITMENT CONSULTANCY LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10005469','<NAME> <NAME>','General FE and Tertiary College', '74.5', NULL,'2236','519','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10005488','RIVERSIDE TRAINING LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10005509','ROCHDALE TRAINING ASSOCIATION LIMITED','Private Sector Public Funded', '82', NULL,'1033','437','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10005513','SOUTH WEST HIGHWAYS LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10005514','ROCKET TRAINING LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10005520','ROLLS-ROYCE PLC','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10005521','ROMNEY RESOURCE 2000 LTD','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10005522','ROOTS AND SHOOTS','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10005534','RNN GROUP','General FE and Tertiary College', '76.1', NULL,'8591','2620','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10005548','ROYAL BOROUGH OF KENSINGTON AND CHELSEA','Other Public Funded', '97.3', NULL,'975','283','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10005549','ROYAL BOROUGH OF KINGSTON UPON THAMES','Other Public Funded', '94.7', NULL,'715','413','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10005557','ROYAL MENCAP SOCIETY','Private Sector Public Funded', '85.2', NULL,'118','90','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10005558','ROYAL NATIONAL COLLEGE FOR THE BLIND','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10005575','RUNSHAW COLLEGE','General FE and Tertiary College', '85', NULL,'5481','830','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10005583','RUSKIN COLLEGE','Specialist College', '91.9', NULL,'926','211','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10005586','RUTLAND COUNTY COUNCIL','Other Public Funded', '96.9', NULL,'346','207','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10005588','RWP TRAINING LIMITED','Private Sector Public Funded', '81.9', NULL,'220','162','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10005599','S & B AUTOMOTIVE ACADEMY LIMITED','Private Sector Public Funded', '81.3', NULL,'530','236','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10005642','SAKS (EDUCATION) LIMITED','Private Sector Public Funded', '92.1', NULL,'538','231','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10005669','SANDWELL COLLEGE','General FE and Tertiary College', '82.6', NULL,'6493','774','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10005671','SANDWELL METROPOLITAN BOROUGH COUNCIL','Other Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10005735','SEETEC BUSINESS TECHNOLOGY CENTRE LIMITED','Private Sector Public Funded', '80.1', NULL,'762','464','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10005736','SEEVIC COLLEGE','General FE and Tertiary College', '70', NULL,'3680','709','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10005738','SEFTON METROPOLITAN BOROUGH COUNCIL','Other Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10005741','SELBY COLLEGE','General FE and Tertiary College', '83.2', NULL,'2111','737','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10005744','SELETA TRAINING AND PERSONNEL SERVICES LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10005748','SENSE COLLEGE','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10005752','SERCO LIMITED','Private Sector Public Funded', '70.6', NULL,'441','212','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10005760','SOUTHAMPTON ENGINEERING TRAINING ASSOCIATION LIMITED (THE)','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10005769','SEYMOUR DAVIES LTD.','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10005775','CLEVELAND YOUTH ASSOCIATION','Private Sector Public Funded', '95', NULL,'186','114','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10005781','AZURE CHARITABLE ENTERPRISES','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10005788','SHEFFIELD COLLEGE, THE','General FE and Tertiary College', '72.8', NULL,'10436','665','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10005790','SHEFFIELD HALLAM UNIVERSITY','Other Public Funded', NULL, 'Data will be available in a later refresh','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10005810','SHIPLEY COLLEGE','General FE and Tertiary College', '89.3', NULL,'2469','440','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10005814','EVERTON IN THE COMMUNITY','Private Sector Public Funded', '100', NULL,'56','40','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10005839','SIGTA LIMITED','Private Sector Public Funded', '75.9', NULL,'51','40','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10005883','SKEGNESS COLLEGE OF VOCATIONAL TRAINING LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10005891','SKILLNET LIMITED','Private Sector Public Funded', '72.7', NULL,'1610','475','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10005894','THE SKILLS PARTNERSHIP LIMITED','Private Sector Public Funded', '89.4', NULL,'599','323','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10005897','SKILLS TRAINING UK LIMITED','Private Sector Public Funded', '85.4', NULL,'2366','618','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10005899','SCREENSKILLS LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10005916','SLOUGH BOROUGH COUNCIL','Other Public Funded', '97.2', NULL,'1280','350','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10005926','MARDELL ASSOCIATES LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10005927','SMART TRAINING AND RECRUITMENT LIMITED','Private Sector Public Funded', '85.2', NULL,'913','165','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10005946','SOLIHULL COLLEGE AND UNIVERSITY CENTRE','General FE and Tertiary College', '85.5', NULL,'8137','928','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10005967','SOUTH & CITY COLLEGE BIRMINGHAM','General FE and Tertiary College', '81.9', NULL,'12320','3255','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10005972','CHESHIRE COLLEGE SOUTH AND WEST','General FE and Tertiary College', '74.7', NULL,'7078','1915','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10005977','SOUTH DEVON COLLEGE','General FE and Tertiary College', '96', NULL,'6172','695','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10005979','HAVANT AND SOUTH DOWNS COLLEGE','General FE and Tertiary College', '80.4', NULL,'5130','1339','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10005981','SOUTH ESSEX COLLEGE OF FURTHER AND HIGHER EDUCATION','General FE and Tertiary College', '67.4', NULL,'6707','309','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10005998','THE TRAFFORD COLLEGE GROUP','General FE and Tertiary College', '76.7', NULL,'8509','2038','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10005999','TYNE COAST COLLEGE','General FE and Tertiary College', '81.1', NULL,'4995','1356','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10006000','SOUTH TYNESIDE COUNCIL','Other Public Funded', '97.2', NULL,'819','370','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10006005','S.W. DURHAM TRAINING LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10006020','SOUTHAMPTON CITY COLLEGE','General FE and Tertiary College', '80.3', NULL,'2766','644','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10006021','SOUTHAMPTON CITY COUNCIL','Other Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10006022','SOLENT UNIVERSITY','Other Public Funded', NULL, 'Data will be available in a later refresh','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10006029','SOUTHEND-ON-SEA BOROUGH COUNCIL','Other Public Funded', '93.1', NULL,'1362','473','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10006038','SOUTHPORT COLLEGE','General FE and Tertiary College', '81', NULL,'3389','800','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10006042','SOUTHWARK LONDON BOROUGH COUNCIL','Other Public Funded', '98.6', NULL,'759','671','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10006050','SPARSHOLT COLLEGE','Specialist College', '74.4', NULL,'3489','1242','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10006086','SPRINGBOARD SUNDERLAND TRUST','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10006159','ST ELIZABETH''S COLLEGE (THE CONGREGATION OF THE DAUGHTERS OF THE CROSS OF THE LIEGE)','Other Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10006173','ST HELENS CHAMBER LIMITED','Private Sector Public Funded', '92.2', NULL,'995','444','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10006174','ST HELENS COLLEGE','General FE and Tertiary College', '78.9', NULL,'5531','629','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10006175','ST HELENS METROPOLITAN BOROUGH COUNCIL','Other Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10006199','ST JOHN''S SCHOOL AND COLLEGE','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10006296','STAFFORDSHIRE COUNTY COUNCIL','Other Public Funded', '96.6', NULL,'1345','176','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10006299','STAFFORDSHIRE UNIVERSITY','Other Public Funded', NULL, 'Data will be available in a later refresh','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10006303','NEW COLLEGE STAMFORD','General FE and Tertiary College', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10006317','SALFORD AND TRAFFORD ENGINEERING GROUP TRAINING ASSOCIATION LIMITED','Private Sector Public Funded', '72.1', NULL,'509','339','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10006322','STEPHENSON COLLEGE','General FE and Tertiary College', '78.5', NULL,'3207','512','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10006326','STEVE WILLIS TRAINING LTD.','Private Sector Public Funded', '96', NULL,'143','128','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10006332','STOCKPORT ENGINEERING TRAINING ASSOCIATION LIMITED(THE)','Private Sector Public Funded', '84', NULL,'247','179','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10006335','STOCKPORT METROPOLITAN BOROUGH COUNCIL','Other Public Funded', '93.6', NULL,'533','341','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10006337','STOCKTON-ON-TEES BOROUGH COUNCIL','Other Public Funded', '94.8', NULL,'852','179','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10006341','STOCKTON RIVERSIDE COLLEGE','General FE and Tertiary College', '88.1', NULL,'4978','898','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10006349','STOKE ON TRENT COLLEGE','General FE and Tertiary College', '82.8', NULL,'4743','796','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10006365','STRAIGHT A TRAINING LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10006374','STRATHMORE COLLEGE','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10006378','STRODE COLLEGE','General FE and Tertiary College', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10006387','STUBBING COURT TRAINING LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10006398','SUFFOLK NEW COLLEGE','General FE and Tertiary College', '84', NULL,'3780','1366','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10006399','SUFFOLK COUNTY COUNCIL','Other Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10006407','SUNDERLAND CITY METROPOLITAN BOROUGH COUNCIL','Other Public Funded', '91.9', NULL,'531','199','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10006408','SUNDERLAND ENGINEERING TRAINING ASSOCIATION LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10006426','SURREY COUNTY COUNCIL','Other Public Funded', '94.3', NULL,'7667','459','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10006427','UNIVERSITY FOR THE CREATIVE ARTS','Other Public Funded', NULL, 'Data will be available in a later refresh','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10006438','SUTTON AND DISTRICT TRAINING LIMITED','Private Sector Public Funded', '83.8', NULL,'240','120','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10006442','BIRMINGHAM METROPOLITAN COLLEGE','General FE and Tertiary College', '79.5', NULL,'12151','2671','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10006458','SWARTHMORE EDUCATION CENTRE','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10006462','SWINDON BOROUGH COUNCIL','Other Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10006463','SWINDON COLLEGE','General FE and Tertiary College', '74.4', NULL,'2608','870','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10006472','SYSTEM GROUP LIMITED','Private Sector Public Funded', '88.5', NULL,'2194','599','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10006494','TAMESIDE COLLEGE','General FE and Tertiary College', '85.2', NULL,'4510','642','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10006495','TAMESIDE METROPOLITAN BOROUGH COUNCIL','Other Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10006517','TDR TRAINING LIMITED','Private Sector Public Funded', '87.5', NULL,'591','361','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10006519','TEAM ENTERPRISES LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10006521','TEAM WEARSIDE LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10006531','TEES, ESK AND WEAR VALLEYS NHS FOUNDATION TRUST','Other Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10006547','BOROUGH OF TELFORD AND WREKIN','Other Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10006549','TELFORD COLLEGE','General FE and Tertiary College', '68.8', NULL,'4374','1324','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10006554','TEMP DENT DENTAL AGENCY LIMITED','Private Sector Public Funded', '86.6', NULL,'511','372','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10006566','THE UNIVERSITY OF WEST LONDON','Other Public Funded', NULL, 'Data will be available in a later refresh','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10006570','EKC GROUP','General FE and Tertiary College', '81.5', NULL,'8281','3238','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10006571','THATCHAM RESEARCH','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10006574','THE ACADEMY HAIR & BEAUTY LTD','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10006600','BCTG LIMITED','Private Sector Public Funded', '94.6', NULL,'3246','712','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10006622','THE CARE LEARNING CENTRE (ISLE OF WIGHT) LIMITED','Private Sector Public Funded', '98.4', NULL,'432','254','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10006651','THE DERBYSHIRE NETWORK','Private Sector Public Funded', '94.5', NULL,'480','237','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10006710','JGA LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10006734','THE LEARNING CURVE (VOLUNTARY SECTOR DEVELOPMENT)','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10006735','THE LEARNING PARTNERSHIP FOR CORNWALL AND THE ISLES OF SCILLY LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10006770','THE OLDHAM COLLEGE','General FE and Tertiary College', '76.5', NULL,'4073','1397','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10006797','THE REYNOLDS GROUP LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10006841','THE UNIVERSITY OF BOLTON','Other Public Funded', NULL, 'Data will be available in a later refresh','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10006845','VIRTUAL COLLEGE LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10006847','THE VOCATIONAL COLLEGE LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10006901','APM LEARNING AND EDUCATION ALLIANCE LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10006907','THURROCK COUNCIL','Other Public Funded', '96.1', NULL,'741','369','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10006942','ASPIRE TRAINING TEAM LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10006963','NEW CITY COLLEGE','General FE and Tertiary College', '78.8', NULL,'11708','2552','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10006964','TOWER HAMLETS LONDON BOROUGH COUNCIL','Other Public Funded', '97', NULL,'2614','526','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10006986','THE TRAINING & RECRUITMENT PARTNERSHIP LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10006987','TRAINING 2000 LIMITED','Private Sector Public Funded', '89.1', NULL,'1098','439','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10007002','<NAME> TRAINING LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10007011','NORTHAMPTON COLLEGE','General FE and Tertiary College', '78.5', NULL,'5770','960','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10007013','TRAINING PLUS (MERSEYSIDE) LIMITED','Private Sector Public Funded', '96.8', NULL,'273','133','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10007015','TRAINING SERVICES 2000 LTD','Private Sector Public Funded', '90.4', NULL,'520','343','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10007031','TRELOAR COLLEGE','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10007063','TRURO AND PENWITH COLLEGE','General FE and Tertiary College', '90.6', NULL,'6878','863','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10007070','THE TTE TECHNICAL TRAINING GROUP','Private Sector Public Funded', '82.9', NULL,'244','147','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10007100','TYNE NORTH TRAINING LIMITED','Private Sector Public Funded', '94.1', NULL,'370','287','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10007123','UK TRAINING & DEVELOPMENT LIMITED','Private Sector Public Funded', '92.2', NULL,'304','183','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10007137','THE UNIVERSITY OF CHICHESTER','Other Public Funded', NULL, 'Data will be available in a later refresh','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10007139','UNIVERSITY OF WORCESTER','Other Public Funded', NULL, 'Data will be available in a later refresh','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10007140','BIRMINGHAM CITY UNIVERSITY','Other Public Funded', NULL, 'Data will be available in a later refresh','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10007141','UNIVERSITY OF CENTRAL LANCASHIRE','Other Public Funded', NULL, 'Data will be available in a later refresh','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10007143','UNIVERSITY OF DURHAM','Other Public Funded', NULL, 'Data will be available in a later refresh','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10007144','UNIVERSITY OF EAST LONDON','Other Public Funded', NULL, 'Data will be available in a later refresh','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10007145','UNIVERSITY OF GLOUCESTERSHIRE','Other Public Funded', NULL, 'Data will be available in a later refresh','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10007146','UNIVERSITY OF GREENWICH','Other Public Funded', NULL, 'Data will be available in a later refresh','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10007147','UNIVERSITY OF HERTFORDSHIRE','Other Public Funded', NULL, 'Data will be available in a later refresh','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10007148','THE UNIVERSITY OF HUDDERSFIELD','Other Public Funded', NULL, 'Data will be available in a later refresh','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10007149','THE UNIVERSITY OF HULL','Other Public Funded', NULL, 'Data will be available in a later refresh','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10007150','THE UNIVERSITY OF KENT','Other Public Funded', NULL, 'Data will be available in a later refresh','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10007151','UNIVERSITY OF LINCOLN','Other Public Funded', NULL, 'Data will be available in a later refresh','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10007152','UNIVERSITY OF BEDFORDSHIRE','Other Public Funded', NULL, 'Data will be available in a later refresh','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10007155','UNIVERSITY OF PORTSMOUTH','Other Public Funded', NULL, 'Data will be available in a later refresh','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10007156','UNIVERSITY OF SALFORD, THE','Other Public Funded', NULL, 'Data will be available in a later refresh','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10007157','THE UNIVERSITY OF SHEFFIELD','Other Public Funded', NULL, 'Data will be available in a later refresh','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10007159','UNIVERSITY OF SUNDERLAND','Other Public Funded', NULL, 'Data will be available in a later refresh','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10007161','TEESSIDE UNIVERSITY','Other Public Funded', NULL, 'Data will be available in a later refresh','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10007162','UNIVERSITY OF THE ARTS, LONDON','Other Public Funded', NULL, 'Data will be available in a later refresh','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10007163','THE UNIVERSITY OF WARWICK','Other Public Funded', NULL, 'Data will be available in a later refresh','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10007164','UNIVERSITY OF THE WEST OF ENGLAND, BRISTOL','Other Public Funded', NULL, 'Data will be available in a later refresh','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10007166','UNIVERSITY OF WOLVERHAMPTON','Other Public Funded', NULL, 'Data will be available in a later refresh','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10007193','HCUC','General FE and Tertiary College', '84.1', NULL,'8823','1448','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10007214','VAUXHALL NEIGHBOURHOOD COUNCIL LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10007289','WAKEFIELD COLLEGE','General FE and Tertiary College', '75.6', NULL,'5086','856','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10007291','WAKEFIELD CITY COUNCIL','Other Public Funded', '95.2', NULL,'646','352','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10007299','NORTH SHROPSHIRE COLLEGE','General FE and Tertiary College', '81.1', NULL,'1289','491','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10007315','WALSALL COLLEGE','General FE and Tertiary College', '89.6', NULL,'7660','1749','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10007318','WALSALL METROPOLITAN BOROUGH COUNCIL','Other Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10007320','WALTHAM FOREST CHAMBER OF COMMERCE TRAINING TRUST LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10007321','WALTHAM FOREST COLLEGE','General FE and Tertiary College', '88', NULL,'4414','957','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10007322','WALTHAM FOREST LONDON BOROUGH COUNCIL','Other Public Funded', '97.3', NULL,'1411','194','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10007339','WARRINGTON & VALE ROYAL COLLEGE','General FE and Tertiary College', '84.2', NULL,'5327','976','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10007348','WARWICKSHIRE COUNTY COUNCIL','Other Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10007362','<NAME>ON THAMES LONDON BOROUGH COUNCIL','Other Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10007364','WORKERS'' EDUCATIONAL ASSOCIATION','Specialist College', '94.2', NULL,'25425','1174','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10007375','WEBS TRAINING LIMITED','Private Sector Public Funded', '84.4', NULL,'164','111','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10007377','WEIR TRAINING LIMITED','Private Sector Public Funded', '88.1', NULL,'141','114','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10007396','WEST ANGLIA TRAINING ASSOCIATION LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10007398','WEST BERKSHIRE COUNCIL','Other Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10007402','WEST BERKSHIRE TRAINING CONSORTIUM','Private Sector Public Funded', '86.4', NULL,'711','226','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10007405','YMCA TRAINING','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10007417','WEST HERTS COLLEGE','General FE and Tertiary College', '81.8', NULL,'5844','2067','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10007419','WEST KENT AND ASHFORD COLLEGE','General FE and Tertiary College', '74.8', NULL,'3225','1587','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10007424','THE WEST MIDLANDS CREATIVE ALLIANCE LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10007427','WEST NOTTINGHAMSHIRE COLLEGE','General FE and Tertiary College', '72.7', NULL,'6837','528','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10007431','WEST SUFFOLK COLLEGE','General FE and Tertiary College', '86.9', NULL,'5751','587','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10007432','WEST SUSSEX COUNTY COUNCIL','Other Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10007434','WEST THAMES COLLEGE','General FE and Tertiary College', '69.1', NULL,'3723','673','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10007444','WESTERN POWER DISTRIBUTION (SOUTH WEST) PLC','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10007455','THE WKCIC GROUP','General FE and Tertiary College', '84', NULL,'21619','1531','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10007459','WESTON COLLEGE OF FURTHER AND HIGHER EDUCATION','General FE and Tertiary College', '83.1', NULL,'6474','867','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10007469','WEYMOUTH COLLEGE','General FE and Tertiary College', '84.3', NULL,'2005','590','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10007484','THE WHITE ROSE SCHOOL OF BEAUTY AND COMPLEMENTARY THERAPIES LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10007500','WIGAN AND LEIGH COLLEGE','General FE and Tertiary College', '89.4', NULL,'6076','703','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10007502','WIGAN METROPOLITAN BOROUGH COUNCIL','Other Public Funded', '95.1', NULL,'715','163','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10007514','WILLIAM MORRIS CAMPHILL COMMUNITY','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10007527','WILTSHIRE COLLEGE AND UNIVERSITY CENTRE','General FE and Tertiary College', '77.2', NULL,'6929','1091','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10007528','THE WILTSHIRE COUNCIL','Other Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10007553','WIRRAL METROPOLITAN COLLEGE','General FE and Tertiary College', '85.9', NULL,'4028','758','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10007567','WOKINGHAM COUNCIL','Other Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10007576','WOLVERHAMPTON CITY COUNCIL','Other Public Funded', '97.8', NULL,'1414','519','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10007578','CITY OF WOLVERHAMPTON COLLEGE','General FE and Tertiary College', '88.4', NULL,'5414','1054','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10007594','WOMEN''S TECHNOLOGY TRAINING LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10007623','WORCESTERSHIRE COUNTY COUNCIL','Other Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10007635','WORKING LINKS (EMPLOYMENT) LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10007636','WORKING MEN''S COLLEGE CORPORATION','Specialist College', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10007643','WORTHING COLLEGE','General FE and Tertiary College', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10007657','WRITTLE UNIVERSITY COLLEGE','Other Public Funded', NULL, 'Data will be available in a later refresh','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10007659','W S TRAINING LTD.','Private Sector Public Funded', '77.4', NULL,'446','190','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10007661','MAXIMUS PEOPLE SERVICES LTD','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10007696','YEOVIL COLLEGE','General FE and Tertiary College', '77.4', NULL,'3070','553','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10007697','YH TRAINING SERVICES LIMITED','Private Sector Public Funded', '90.3', NULL,'1158','287','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10007698','YMCA DERBYSHIRE.','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10007706','ACTIV8 LEARNING','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10007709','YORK COLLEGE','General FE and Tertiary College', '73', NULL,'5134','302','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10007722','YORKSHIRE TRAINING PARTNERSHIP LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10007755','ITL TRAINING LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10007759','ASTON UNIVERSITY','Other Public Funded', NULL, 'Data will be available in a later refresh','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10007760','BIRKBECK COLLEGE','Other Public Funded', NULL, 'Data will be available in a later refresh','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10007768','THE UNIVERSITY OF LANCASTER','Other Public Funded', NULL, 'Data will be available in a later refresh','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10007773','THE OPEN UNIVERSITY','Other Public Funded', NULL, 'Data will be available in a later refresh','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10007775','QUEEN MARY UNIVERSITY OF LONDON','Other Public Funded', NULL, 'Data will be available in a later refresh','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10007782','ST. GEORGE''S HOSPITAL MEDICAL SCHOOL','Other Public Funded', NULL, 'Data will be available in a later refresh','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10007785','THE UNIVERSITY OF BRADFORD','Other Public Funded', NULL, 'Data will be available in a later refresh','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10007789','THE UNIVERSITY OF EAST ANGLIA','Other Public Funded', NULL, 'Data will be available in a later refresh','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10007791','THE UNIVERSITY OF ESSEX','Other Public Funded', NULL, 'Data will be available in a later refresh','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10007792','UNIVERSITY OF EXETER','Other Public Funded', NULL, 'Data will be available in a later refresh','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10007795','THE UNIVERSITY OF LEEDS','Other Public Funded', NULL, 'Data will be available in a later refresh','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10007801','UNIVERSITY OF PLYMOUTH','Other Public Funded', NULL, 'Data will be available in a later refresh','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10007802','THE UNIVERSITY OF READING','Other Public Funded', NULL, 'Data will be available in a later refresh','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10007807','UNIVERSITY OF ULSTER','Other Public Funded', NULL, 'Data will be available in a later refresh','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10007811','BISHOP GROSSETESTE UNIVERSITY','Other Public Funded', NULL, 'Data will be available in a later refresh','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10007817','CHICHESTER COLLEGE GROUP','General FE and Tertiary College', '83.6', NULL,'10125','1774','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10007822','CRANFIELD UNIVERSITY','Other Public Funded', NULL, 'Data will be available in a later refresh','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10007823','EDGE HILL UNIVERSITY','Other Public Funded', NULL, 'Data will be available in a later refresh','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10007842','THE UNIVERSITY OF CUMBRIA','Other Public Funded', NULL, 'Data will be available in a later refresh','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10007848','UNIVERSITY OF CHESTER','Other Public Funded', NULL, 'Data will be available in a later refresh','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10007851','UNIVERSITY OF DERBY','Other Public Funded', NULL, 'Data will be available in a later refresh','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10007859','WARWICKSHIRE COLLEGE','General FE and Tertiary College', '66.9', NULL,'7764','919','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10007872','SOUTH WEST REGIONAL ASSESSMENT CENTRE LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10007875','MARY WARD SETTLEMENT','Specialist College', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10007916','THE COLLEGE OF WEST ANGLIA','General FE and Tertiary College', '87.1', NULL,'5263','714','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10007922','DERBY SKILLBUILD','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10007924','DUDLEY COLLEGE OF TECHNOLOGY','General FE and Tertiary College', '82.4', NULL,'8730','1823','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10007928','FAREHAM COLLEGE','General FE and Tertiary College', '85.8', NULL,'2489','655','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10007929','PRIORY COLLEGE SWINDON','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10007938','GRIMSBY INSTITUTE OF FURTHER AND HIGHER EDUCATION','General FE and Tertiary College', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10007945','HIGHBURY COLLEGE PORTSMOUTH','General FE and Tertiary College', '70.2', NULL,'3337','553','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10007977','HEART OF WORCESTERSHIRE COLLEGE','General FE and Tertiary College', '80.7', NULL,'5849','1066','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10008024','WILTSHIRE TRANSPORT TRAINING & DEVELOPMENT LIMITED','Private Sector Public Funded', '92', NULL,'115','102','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10008037','WATERSIDE TRAINING LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10008081','AWE PLC','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10008135','BUZZ LEARNING LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10008159','CHEYNE''S (MANAGEMENT) LIMITED','Private Sector Public Funded', '92', NULL,'512','244','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10008173','UNIVERSITY COLLEGE OF ESTATE MANAGEMENT','Private Sector Public Funded', '81.6', NULL,'677','291','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10008227','ESSENTIAL LEARNING COMPANY LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10008354','LITE (STOCKPORT) LIMITED','Private Sector Public Funded', '97.2', NULL,'148','118','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10008362','LONDON SCHOOL OF SCIENCE & TECHNOLOGY LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10008426','PGL TRAINING (PLUMBING) LIMITED','Private Sector Public Funded', '92.8', NULL,'373','232','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10008456','REGENT COLLEGE','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10008591','WEST YORKSHIRE LEARNING PROVIDERS LTD','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10008641','FIRCROFT COLLEGE OF ADULT EDUCATION','Specialist College', '96.3', NULL,'159','101','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10008699','YORKSHIRE COLLEGE OF BEAUTY LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10008816','NORTHERN SCHOOL OF CONTEMPORARY DANCE','Other Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10008883','WDR LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10008893','POPLAR HOUSING AND REGENERATION COMMUNITY ASSOCIATION LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10008899','THE ASHRIDGE (BONAR LAW MEMORIAL) TRUST','Other Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10008915','COMMON COUNCIL OF THE CITY OF LONDON','Other Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10008919','EAST RIDING OF YORKSHIRE COUNCIL','Other Public Funded', '98.1', NULL,'1081','476','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10008920','ENHAM TRUST','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10008935','LEARNING CURVE GROUP LIMITED','Private Sector Public Funded', '77.2', NULL,'4061','275','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10008947','MANATEC LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10008986','WAVERLEY BOROUGH COUNCIL','Other Public Funded', '82.9', NULL,'963','314','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10009005','BRENIKOV ASSOCIATES LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10009031','RUSKIN MILL COLLEGE','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10009059','ACCESS TRAINING LIMITED','Private Sector Public Funded', '89.3', NULL,'420','181','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10009063','BUILDING CRAFTS COLLEGE','Other Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10009069','DORTON COLLEGE','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10009072','THE HEADMASTERS PARTNERSHIP LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10009085','NORTH HUMBERSIDE MOTOR TRADES GROUP TRAINING ASSOCIATION','Other Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10009091','SPAN TRAINING & DEVELOPMENT LIMITED','Private Sector Public Funded', '83.3', NULL,'155','103','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10009095','TENDRING DISTRICT COUNCIL','Other Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10009099','URDANG SCHOOLS LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10009111','ORPHEUS CENTRE','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10009120','CONDOVER COLLEGE LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10009206','EALING LONDON BOROUGH COUNCIL','Other Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10009213','FASHION RETAIL ACADEMY','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10009257','NORTH LONDON GARAGES GTA','Private Sector Public Funded', '71.3', NULL,'89','87','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10009263','CITY COLLEGE NOTTINGHAM','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10009326','CARE TRAINING SOLUTIONS LTD','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10009389','DERWENT TRAINING ASSOCIATION','Private Sector Public Funded', '63.1', NULL,'79','72','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10009439','STANMORE COLLEGE','General FE and Tertiary College', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10009450','VOCATIONAL TRAINING SERVICES CARE SECTOR LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10009491','MAINSTREAM TRAINING LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10009600','HAWK MANAGEMENT (UK) LIMITED','Private Sector Public Funded', '94.6', NULL,'2000','614','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10009688','ENERGY AND UTILITY SKILLS LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10009777','THORNBECK COLLEGE - NORTH EAST AUTISM SOCIETY','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10009831','PRICEWATERHOUSECOOPERS LLP','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10009970','STANFORD MANAGEMENT PROCESSES LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10010134','STANDGUIDE LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10010178','DIP (BATLEY) LTD','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10010335','FIREBRAND TRAINING LIMITED','Private Sector Public Funded', '64.4', NULL,'371','161','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10010401','FOCUS TRAINING LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10010435','GREATER MANCHESTER CHAMBER OF COMMERCE','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10010523','SKILLS FOR SECURITY LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10010534','LEARNING CONCEPTS LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10010548','SPRINGFIELDS FUELS LIMITED','Private Sector Public Funded', '90.1', NULL,'64','64','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10010549','C & G ASSESSMENTS AND TRAINING LIMITED','Private Sector Public Funded', '89.8', NULL,'168','285','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10010570','POOLE HOSPITAL NHS FOUNDATION TRUST','Other Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10010571','FIRST CITY TRAINING LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10010584','ACCESS TRAINING (EAST MIDLANDS) LTD','Private Sector Public Funded', '90.2', NULL,'624','300','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10010586','CJI SOLUTIONS LIMITED','Private Sector Public Funded', '100', NULL,'281','156','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10010616','WALSALL HEALTHCARE NATIONAL HEALTH SERVICE TRUST','Other Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10010623','UNIVERSITY HOSPITAL BIRMINGHAM NHS FOUNDATION TRUST','Other Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10010631','ALM TRAINING SERVICES LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10010635','SANDWELL AND WEST BIRMINGHAM HOSPITALS NATIONAL HEALTH SERVICE TRUST','Other Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10010672','TRAIN''D UP RAILWAY RESOURCING LIMITED','Private Sector Public Funded', '72.5', NULL,'345','246','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10010792','HACKNEY LONDON BOROUGH COUNCIL','Other Public Funded', '99', NULL,'1191','255','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10010845','ROYAL BRITISH LEGION INDUSTRIES LTD.','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10010905','MEADOWHALL TRAINING LIMITED','Private Sector Public Funded', '88.5', NULL,'439','231','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10010912','THE NEWCASTLE UPON TYNE HOSPITALS NHS FOUNDATION TRUST','Other Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10010939','TQ WORKFORCE DEVELOPMENT LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10010940','INSPIRE 2 INDEPENDENCE (I2I) LTD','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10011018','LANCASHIRE TEACHING HOSPITALS NHS FOUNDATION TRUST','Other Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10011055','NUFFIELD HEALTH','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10011056','GEDLING BOROUGH COUNCIL','Other Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10011058','DEFENCE, MINISTRY OF (MOD)','Other Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10011088','SOUTH TEES HOSPITALS NHS FOUNDATION TRUST','Other Public Funded', '88', NULL,'132','102','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10011092','HER MAJESTY''S PRISON SERVICE (NOMS) (MOJ)','Other Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10011106','WIGAN LEISURE AND CULTURE TRUST','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10011138','LEEDS TEACHING HOSPITALS NATIONAL HEALTH SERVICE TRUST','Other Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10011147','GUY''S AND ST THOMAS'' NHS FOUNDATION TRUST','Other Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10011159','TEMPUS TRAINING LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10011286','GILLIAN NEIGHBOUR','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10011332','<NAME>','Private Sector Public Funded', '100', NULL,'26','21','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10011880','P.T.P. TRAINING LIMITED','Private Sector Public Funded', '93.7', NULL,'1244','463','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10011941','HONDA MOTOR EUROPE LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10012171','GHQ TRAINING LIMITED','Private Sector Public Funded', '93.4', NULL,'330','179','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10012179','PHX TRAINING LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10012454','PERTEMPS RECRUITMENT PARTNERSHIP LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10012467','HIT TRAINING LTD','Private Sector Public Funded', '89.9', NULL,'7897','915','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10012477','LOOKFANTASTIC TRAINING LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10012756','SOUTH EAST COAST AMBULANCE SERVICE NHS FOUNDATION TRUST','Other Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10012772','HER MAJESTY''S REVENUE AND CUSTOMS (HMRC)','Other Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10012804','CAMBIAN LUFTON COLLEGE','Other Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10012810','LIVABILITY NASH COLLEGE','Other Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10012814','HENSHAWS COLLEGE','Other Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10012822','CAMBIAN DILSTON COLLEGE','Other Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10012825','WESC FOUNDATION COLLEGE','Other Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10012834','SKILLS TEAM LTD','Private Sector Public Funded', '80.2', NULL,'647','216','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10012892','MIC<NAME>','Private Sector Public Funded', '100', NULL,'273','205','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10012951','KING''S COLLEGE HOSPITAL NHS FOUNDATION TRUST','Other Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10013042','SHEFFIELD INDEPENDENT FILM AND TELEVISION LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10013110','CARE FIRST TRAINING LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10013122','SYSCO BUSINESS SKILLS ACADEMY LIMITED','Private Sector Public Funded', '90.4', NULL,'924','441','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10013180','YOUTRAIN LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10013198','PEACH ORATOR LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10013222','CITRUS TRAINING SOLUTIONS LTD.','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10013225','HALIFAX OPPORTUNITIES TRUST','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10013362','SIEMENS PUBLIC LIMITED COMPANY','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10013486','NUMIDIA EDUCATION AND TRAINING LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10013515','NORTHERN CARE TRAINING LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10013548','ENGLAND AND WALES CRICKET BOARD LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10013570','BUTTERCUPS TRAINING LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10013658','PROSPECT TRAINING (YORKSHIRE) LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10013665','KT ASSOCIATES','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10014001','UNIVERSITY OF SUFFOLK','Other Public Funded', NULL, 'Data will be available in a later refresh','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10014196','<NAME>','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10014199','VEOLIA ENVIRONNEMENT DEVELOPMENT CENTRE LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10014226','CVQO LTD','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10015932','BUSINESS TRAINING VENTURES LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10015933','ALAN HESTER ASSOCIATES LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10016399','MANUFACTURING EXCELLENCE LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10018297','NORTON WEBB LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10018328','MI COMPUTSOLUTIONS INCORPORATED','Private Sector Public Funded', '100', NULL,'315','192','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10018331','STREETVIBES YOUTH LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10018344','BESTLAND SOLUTIONS LIMITED','Private Sector Public Funded', '95.3', NULL,'541','180','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10018361','CENTRE FOR ADVANCED STUDIES LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10018436','AWAAZ ENTERPRISES LTD','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10018916','IMPACT FUTURES TRAINING LIMITED','Private Sector Public Funded', '94.7', NULL,'593','358','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10018942','STEADFAST TRAINING LTD','Private Sector Public Funded', '84.3', NULL,'991','208','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10018959','BRATHAY TRUST','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10019026','BALTIC TRAINING SERVICES LIMITED','Private Sector Public Funded', '75.7', NULL,'915','372','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10019041','ENGAGE TRAINING AND DEVELOPMENT LTD','Private Sector Public Funded', '100', NULL,'35','33','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10019048','DEVELOPING PERFORMANCE PARTNERSHIP LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10019065','CALEX UK LTD','Private Sector Public Funded', '88', NULL,'328','217','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10019096','THOMAS COOK UK LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10019105','RAPID IMPROVEMENT LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10019155','ADVANCED PERSONNEL MANAGEMENT GROUP (UK) LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10019217','SPS TRAINING SOLUTIONS LIMITED','Private Sector Public Funded', '88.5', NULL,'96','89','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10019227','BE TOTALLY YOU','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10019237','ACTIVATE COMMUNITY AND EDUCATION SERVICES','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10019276','EUROSOURCE SOLUTIONS LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10019293','ASPHALEIA LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10019300','INTEGER TRAINING LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10019304','EBENEZER COMMUNITY COLLEGE LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10019314','JBC SKILLS TRAINING LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10019380','PADDINGTON DEVELOPMENT TRUST','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10019383','CITY GATEWAY','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10019431','ACHIEVE THROUGH LEARNING LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10019565','J & S BLACKHURST LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10019581','THE CONSULTANCY HOME COUNTIES LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10019646','ABIS RESOURCES LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10019650','HAVILAH PROSPECTS LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10019700','SHAW HEALTHCARE (GROUP) LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10019736','UNIQUE TRAINING SOLUTIONS LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10019798','INTERLEARN LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10019812','EAST BIRMINGHAM COMMUNITY FORUM LTD.','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10019839','START TRAINING LTD','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10019914','EDEN COLLEGE OF HUMAN RESOURCE DEVELOPMENT AND MANAGEMENT STUDIES LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10020019','EGLANTINE CATERING LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10020068','COMMUNITY TRAINING PORTAL LIMITED','Private Sector Public Funded', '96.7', NULL,'205','125','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10020123','BECKETT CORPORATION LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10020172','CARE-EX SERVICES LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10020198','CONSTRUCTION WORKS (HULL) LIMITED','Private Sector Public Funded', '82.9', NULL,'41','36','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10020244','TRAINING ASSESSMENT & CONSULTANCY SERVICES LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10020303','DEVELOP TRAINING LIMITED','Private Sector Public Funded', '60.3', NULL,'64','52','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10020307','ASTUTE MINDS LTD','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10020395','PEOPLE AND BUSINESS DEVELOPMENT LTD','Private Sector Public Funded', '86.1', NULL,'374','151','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10020604','LRTT LIMITED','Private Sector Public Funded', '79.9', NULL,'137','119','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10020811','SUPERDRUG STORES PLC','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10020867','GK TRAINING SERVICES LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10020884','THE DEVELOPMENT MANAGER LTD','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10021018','QDOS TRAINING LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10021021','URBAN FUTURES LONDON LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10021133','THE EMPLOYERS FORUM FOR SHARROW, HEELEY AND NORFOLK PARK LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10021185','GROUNDWORK SOUTH TYNESIDE AND NEWCASTLE','Private Sector Public Funded', '74.4', NULL,'14','10','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10021221','MERSEY CARE NHS FOUNDATION TRUST','Other Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10021243','OXFORD HEALTH NHS FOUNDATION TRUST','Other Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10021254','JFC TRAINING COLLEGE LTD','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10021278','HIGHFIELDS COMMUNITY ASSOCIATION','Private Sector Public Funded', '100', NULL,'100','92','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10021292','QUALITY TRANSPORT TRAINING LTD','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10021303','HOME GROUP LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10021306','NORTH WEST AMBULANCE SERVICE NATIONAL HEALTH SERVICE TRUST','Other Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10021314','THE FEDERATION OF GROUNDWORK TRUSTS','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10021391','PROFESSIONAL TRAINING SOLUTIONS LIMITED','Private Sector Public Funded', '81.8', NULL,'596','241','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10021539','PET-XI TRAINING LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10021563','CENTREPOINT SOHO','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10021650','GREENDALE LIMITED','Private Sector Public Funded', '90.9', NULL,'11','11','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10021665','HEALTH & SAFETY TRAINING LIMITED','Private Sector Public Funded', NULL, NULL,'0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10021684','LONDON LEARNING CONSORTIUM COMMUNITY INTEREST COMPANY','Private Sector Public Funded', '92.9', NULL,'1522','553','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10021754','PARENTA TRAINING LIMITED','Private Sector Public Funded', '90.4', NULL,'22','21','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10021755','TOTAL PEOPLE LIMITED','Private Sector Public Funded', '56.4', NULL,'4299','195','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10021793','PATHWAY FIRST LIMITED','Private Sector Public Funded', '91.9', NULL,'1025','583','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10021842','PROCO NW LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10022070','ALPHA CARE AGENCY LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10022117','DAWN HODGE ASSOCIATES LIMITED','Private Sector Public Funded', '93.1', NULL,'835','391','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10022133','HEALTH AND FITNESS EDUCATION LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10022210','ANNE CLARKE ASSOCIATES LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10022237','SOFTMIST LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10022358','PROFOUND SERVICES LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10022362','UTILITY & CONSTRUCTION TRAINING LIMITED','Private Sector Public Funded', '88.2', NULL,'113','86','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10022405','VQ SOLUTIONS LTD','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10022410','LIRAL VEGET TRAINING AND RECRUITMENT LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10022439','OUTSOURCE VOCATIONAL LEARNING LIMITED','Private Sector Public Funded', '47.6', NULL,'1000','477','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10022461','CAPITAL ENGINEERING GROUP HOLDINGS LTD','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10022489','STREET LEAGUE','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10022503','PROVQ LIMITED','Private Sector Public Funded', '73.4', NULL,'529','261','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10022507','LONDON SKILLS & DEVELOPMENT NETWORK LIMITED','Private Sector Public Funded', '99', NULL,'292','292','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10022513','AVANT PARTNERSHIP LIMITED','Private Sector Public Funded', '99.5', NULL,'183','160','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10022567','SIMIAN RISK MANAGEMENT LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10022570','TOWER COLLEGE OF FURTHER AND HIGHER EDUCATION LONDON LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10022627','IMPACT LEARNING & DATA SOLUTIONS LIMITED','Private Sector Public Funded', '88.6', NULL,'218','243','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10022654','LAWN TENNIS ASSOCIATION LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10022721','UNIVERSITY HOSPITALS OF LEICESTER NATIONAL HEALTH SERVICE TRUST','Other Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10022729','SELECTION TRAINING LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10022763','THE INTRAINING GROUP LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10022788','THE CHILD CARE COMPANY (OLD WINDSOR) LIMITED','Private Sector Public Funded', '94.7', NULL,'996','591','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10022805','UNIVERSITY HOSPITAL SOUTHAMPTON NHS FOUNDATION TRUST','Other Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10022856','MERCEDES-BENZ CARS UK LIMITED','Private Sector Public Funded', '77.8', NULL,'612','249','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10023047','REMIT GROUP LIMITED','Private Sector Public Funded', '85.6', NULL,'3950','883','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10023085','DOVE NEST MANAGEMENT TRAINING AND DEVELOPMENT LIMITED','Private Sector Public Funded', '68.6', NULL,'209','146','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10023139','LTE GROUP','General FE and Tertiary College', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10023196','GO TRAIN LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10023313','ASPIRE TO LEARN LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10023357','ACHIEVING EXCELLENCE UK LTD','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10023368','SSE SERVICES PLC','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10023415','TONI & GUY UK TRAINING LIMITED','Private Sector Public Funded', '81.3', NULL,'127','87','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10023434','LONDON SCHOOL OF COMMERCE & IT LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10023489','ACORN TRAINING LTD','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10023492','TEMPLEGATE TRAINING ACADEMY C.I.C.','Private Sector Public Funded', '100', NULL,'138','89','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10023496','SHL TRAINING SOLUTIONS LTD','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10023516','ESSEX PARTNERSHIP UNIVERSITY NHS FOUNDATION TRUST','Other Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10023526','SOUTH STAFFORDSHIRE COLLEGE','General FE and Tertiary College', '77.5', NULL,'4039','1203','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10023538','YOUTH FORCE LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10023592','PLATO TRAINING (UK) LTD','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10023705','BEST PRACTICE TRAINING & DEVELOPMENT LIMITED','Private Sector Public Funded', '94.8', NULL,'329','190','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10023776','POSITIVE APPROACH ACADEMY FOR HAIR LIMITED','Private Sector Public Funded', '88.5', NULL,'121','87','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10023808','S.A.M.B.','Private Sector Public Funded', '77.3', NULL,'24','22','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10023829','GLOBAL SKILLS TRAINING LTD','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10023871','RESULTS CONSORTIUM LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10023896','MPOWER TRAINING SOLUTIONS LTD','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10023898','ENABLING DEVELOPMENT OPPORTUNITIES LTD','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10023918','ANDERSON STOCKLEY ACCREDITED TRAINING LTD','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10023925','VIRGIN MEDIA LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10024015','CAPELLA ASSOCIATES LTD','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10024018','AGILITY PEOPLE SERVICES LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10024055','MITRE GROUP LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10024088','NISAI VIRTUAL ACADEMY LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10024124','MARR CORPORATION LIMITED','Private Sector Public Funded', '91.5', NULL,'3489','926','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10024163','AREA 51 EDUCATION LTD','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10024278','BCB TRADING LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10024292','CENTRAL BEDFORDSHIRE COUNCIL','Other Public Funded', '89.7', NULL,'491','241','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10024293','CHESHIRE EAST COUNCIL','Other Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10024294','CHESHIRE WEST AND CHESTER COUNCIL','Other Public Funded', '99', NULL,'195','100','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10024320','CHRYSOS H.R. SOLUTIONS LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10024404','LONDON VESTA COLLEGE LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10024415','KEYSTONE TRAINING LTD','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10024426','VECTOR AEROSPACE INTERNATIONAL LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10024547','PREMIER PEOPLE SOLUTIONS LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10024597','ACADEMY TRAINING GROUP LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10024603','CHAPMAN BENNETT ASSOCIATES LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10024686','RESOURCES (N E) LIMITED','Private Sector Public Funded', '94.4', NULL,'333','230','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10024704','RAYTHEON SYSTEMS LIMITED','Private Sector Public Funded', '82.4', NULL,'311','242','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10024714','DHL INTERNATIONAL (UK) LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10024751','FW SOLUTIONS LIMITED','Private Sector Public Funded', '97.6', NULL,'215','134','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10024771','EXETER ROYAL ACADEMY FOR DEAF EDUCATION','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10024772','ROYAL COLLEGE MANCHESTER (SEASHELL TRUST)','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10024806','ACCESS SKILLS LTD','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10024815','ROSEWOOD MANAGEMENT SERVICES LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10024833','NTG TRAINING LTD','Private Sector Public Funded', '87.4', NULL,'310','163','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10024836','TRIAGE CENTRAL LIMITED','Private Sector Public Funded', '92.1', NULL,'239','223','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10024872','IMPROVE LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10024921','CREATIVE SUPPORT LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10024962','LEEDS CITY COLLEGE','General FE and Tertiary College', '81.4', NULL,'14376','994','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10025133','SOLVEWAY LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10025171','THE BRITISH ENGINEERING MANUFACTURERS'' ASSOCIATION LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10025197','UNIVERSITY CENTRE QUAYSIDE LIMITED','Private Sector Public Funded', '91.3', NULL,'61','76','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10025267','BOCK CONSULTANCY & PERSONNEL DEVELOPMENT LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10025330','RELEASE POTENTIAL LTD','Private Sector Public Funded', '93.8', NULL,'413','474','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10025384','EEF LIMITED','Private Sector Public Funded', '58', NULL,'1165','802','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10025390','CLARKSON EVANS TRAINING LIMITED','Private Sector Public Funded', '80.7', NULL,'310','169','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10025697','PARETO LAW LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10025700','VISION TRAINING (NORTH EAST) LIMITED','Private Sector Public Funded', '97.3', NULL,'70','74','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10025712','NEW GENERATION TRAINING AND CONSULTANCY LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10025727','CATCH 22 CHARITY LIMITED','Private Sector Public Funded', '82', NULL,'655','226','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10025914','GLASSHOUSE COLLEGE','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10025915','FREEMAN COLLEGE','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10025961','CQM TRAINING AND CONSULTANCY LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10025998','UNIVERSAL LEARNING STREAMS (USL) LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10026002','GREENBANK SERVICES LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10026094','VALKYRIE SUPPORT SERVICES LTD','Private Sector Public Funded', '84.9', NULL,'113','90','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10026238','FASHION - ENTER LTD','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10026311','LUL NOMINEE BCV LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10026317','FLEETMASTER TRAINING LIMITED','Private Sector Public Funded', '83', NULL,'217','139','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10026331','TRAINPLUS LTD','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10026397','THE NVQ TRAINING CENTRE LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10026575','NATIONAL SKILLS ACADEMY FOR NUCLEAR LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10026576','COGENT SKILLS TRAINING LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10026590','FOCUS TRAINING (SW) LIMITED','Private Sector Public Funded', '85.2', NULL,'631','338','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10026620','HYBRID TECHNICAL SERVICES LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10026650','N-GAGED TRAINING & RECRUITMENT LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10026702','NISSAN MOTOR MANUFACTURING (UK) LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10026843','ELIESHA TRAINING LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10027269','WORKFORCE TRAINING & DEVELOPMENT LTD','Private Sector Public Funded', '61.8', NULL,'35','29','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10027272','STAFF SELECT LTD','Private Sector Public Funded', '84.8', NULL,'2385','979','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10027317','BE A BETTER YOU TRAINING LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10027384','RNIB COLLEGE LOUGHBOROUGH','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10027433','CONSTRUCTION GATEWAY LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10027438','QUALITRAIN LIMITED','Private Sector Public Funded', '75.6', NULL,'486','333','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10027444','THE KNOWLEDGE ACADEMY LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10027453','LONDON PROFESSIONAL COLLEGE LTD','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10027498','TRAVIS PERKINS PLC','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10027518','MILLENNIUM ACADEMY LTD','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10027599','FLOORTRAIN (GB) LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10027616','LINDEN MANAGEMENT (UK) LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10027655','STARTING OFF (NORTHAMPTON) LIMITED','Private Sector Public Funded', '83', NULL,'294','185','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10027662','BRITISH TELECOMMUNICATIONS PUBLIC LIMITED COMPANY','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10027693','ALL TRADES TRAINING LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10027766','EDEN TRAINING SOLUTIONS LIMITED','Private Sector Public Funded', '92.8', NULL,'1093','316','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10027769','PROMISE TRAINING CENTRE LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10027803','LD TRAINING SERVICES LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10027873','TRAINING STRATEGIES LTD.','Private Sector Public Funded', '98.3', NULL,'529','319','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10027893','GK APPRENTICESHIPS LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10027935','PROSPECTS TRAINING INTERNATIONAL LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10028075','REGIS UK LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10028094','SKILLS NORTH EAST LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10028120','TOUCHSTONE EDUCATIONAL SOLUTIONS LTD','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10028342','THE FINANCE AND MANAGEMENT BUSINESS SCHOOL LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10028366','THE PENNINE ACUTE HOSPITALS NATIONAL HEALTH SERVICE TRUST','Other Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10028480','CARETRADE CHARITABLE TRUST','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10028500','BEMIX C.I.C.','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10028626','EVOLVE EDUCATION LTD','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10028742','SOCIAL ENTERPRISE KENT CIC','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10028909','MEDI PROSPECTS LTD','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10028938','PROFILE DEVELOPMENT AND TRAINING LIMITED','Private Sector Public Funded', '95.8', NULL,'41','51','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10028965','SIMPLY ONE STOP LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10029097','UNIVERSITY HOSPITALS BRISTOL NHS FOUNDATION TRUST','Other Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10029195','RHG CONSULT LTD','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10029234','N A COLLEGE TRUST','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10029308','THE SKILLS NETWORK LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10029426','ABM TRAINING (UK) LTD','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10029478','KIDS ALLOWED LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10029676','WINNOVATION LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10029699','AIM SKILLS DEVELOPMENT LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10029736','IGNITE SPORT UK LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10029823','DV8 TRAINING (BRIGHTON) LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10029843','WALTHAM INTERNATIONAL COLLEGE LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10029887','GECKO PROGRAMMES LIMITED','Private Sector Public Funded', '98.9', NULL,'82','69','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10029907','FELIGRACE LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10029952','BPP PROFESSIONAL EDUCATION LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10029974','RITA''S TRAINING SERVICES','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10029981','STEPPING STONES EDUCATION AND TRAINING LIMITED','Private Sector Public Funded', '95', NULL,'85','64','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10030102','MERIT SKILLS LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10030120','HAYS TRAVEL LIMITED','Private Sector Public Funded', '80.3', NULL,'242','166','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10030249','SKILLS EDGE TRAINING LTD','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10030285','PLYMOUTH HOSPITALS NATIONAL HEALTH SERVICE TRUST','Other Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10030408','GOWER COLLEGE SWANSEA','General FE and Tertiary College', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10030462','VOYAGE GROUP LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10030502','GROUP HORIZON LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10030520','SELECT SERVICE PARTNER UK LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10030637','BUSY BEES NURSERIES LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10030670','THE REAL APPRENTICESHIP COMPANY LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10030688','OPEN DOOR ADULT LEARNING CENTRE','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10030740','NSL LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10030758','SOMAX LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10030838','GTG TRAINING LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10030870','NIE PROFESSIONAL LEARNING LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10030871','WATERTRAIN LIMITED','Private Sector Public Funded', '62.6', NULL,'177','119','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10030926','FIRST INTUITION CAMBRIDGE LIMITED','Private Sector Public Funded', '90', NULL,'206','113','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10030935','FREE TO LEARN LTD','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10030984','WEALDEN LEISURE LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10031028','GLAS BUSINESS SOLUTIONS LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10031093','TRAINING EVENT SAFETY SOLUTIONS LTD','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10031127','DUTTON FISHER ASSOCIATES LIMITED','Private Sector Public Funded', '80', NULL,'251','227','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10031146','D MANTLE LIMITED','Private Sector Public Funded', '80.9', NULL,'648','287','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10031151','SCL SECURITY LTD','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10031230','MERCIA COLLEGE LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10031241','ASPIRE ACHIEVE ADVANCE LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10031326','WELL ASSOCIATES LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10031331','ELMS ASSOCIATES LTD','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10031399','<NAME> TRAINING LIMITED','Private Sector Public Funded', '73', NULL,'223','177','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10031408','TRAINING FUTURES (UK) LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10031424','<NAME>','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10031543','THE DEVELOPMENT FUND LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10031544','ANY DRIVER LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10031662','ASPECTS CARE LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10031745','LONDON CACTUS LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10031812','JT DEVELOPMENT SOLUTIONS LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10031825','EXETER COLLEGE APPRENTICES LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10031876','FIT UK TRAINING & EDUCATION LTD','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10031912','DEBUT TRAINING ACADEMY LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10031971','FUTURE LDN LTD','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10031982','BPP UNIVERSITY LIMITED','Other Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10031984','DYNAMIC TRAINING UK LIMITED','Private Sector Public Funded', '68.2', NULL,'834','357','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10032017','COMMUNITY LEARNING IN PARTNERSHIP (CLIP) CIC','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10032029','ASPIRE SPORTING ACADEMY LTD','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10032052','TRAIN TOGETHER LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10032064','THE SANDWELL COMMUNITY CARING TRUST','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10032119','SOUTH WEST ASSOCIATION OF TRAINING PROVIDERS LIMITED','Private Sector Public Funded', '89.1', NULL,'1545','357','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10032126','MYF TRAINING LIMITED','Private Sector Public Funded', '100', NULL,'67','65','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10032147','SPECIALIST TRADE COURSES LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10032250','LIONHEART IN THE COMMUNITY LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10032256','OASIS CARE AND TRAINING AGENCY (OCTA)','Other Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10032396','ENCOMPASS CONSULTANCY LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10032404','APPRENTICESHIPS & TRAINING SERVICES CONSORTIUM LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10032448','EAT THAT FROG C.I.C.','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10032616','QOMMUNICATE LTD','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10032653','LOUISE SETTON','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10032683','NORTHERN CONSTRUCTION TRAINING AND REGENERATION COMMUNITY INTEREST COMPANY','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10032740','LEARNING SKILLS PARTNERSHIP LTD','Private Sector Public Funded', '76', NULL,'513','353','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10032778','GSS SOLUTIONS LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10032857','HARRIET ELLIS TRAINING SOLUTIONS LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10032896','KNIGHTS TRAINING ACADEMY LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10032898','TRINITY SPECIALIST COLLEGE LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10032931','INTERTRAIN UK LTD.','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10032936','EMD UK LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10033156','BACK 2 WORK COMPLETE TRAINING LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10033193','THE NUMBER 4 GROUP LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10033408','CORNWALL MARINE NETWORK LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10033438','ROYAL NAVY','Other Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10033440','BRITISH ARMY','Other Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10033441','ROYAL AIR FORCE','Other Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10033482','CONSORTIA TRAINING LIMITED','Private Sector Public Funded', '91.8', NULL,'212','152','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10033536','AWC TRAINING LTD','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10033547','CONSORTIUM OF VOCATIONAL AND EDUCATIONAL TRAINERS LIMITED','Private Sector Public Funded', '88.9', NULL,'116','193','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10033608','BEACON EDUCATION PARTNERSHIP LIMITED','Private Sector Public Funded', '100', NULL,'115','99','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10033640','TRAIN 2 TRAIN LIMITED','Private Sector Public Funded', '100', NULL,'20','17','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10033710','BRIGHT DIRECTION TRAINING LIMITED','Private Sector Public Funded', '91.8', NULL,'18','50','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10033746','SBC TRAINING LIMITED','Private Sector Public Funded', '85.6', NULL,'369','303','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10033758','IXION HOLDINGS (CONTRACTS) LIMITED','Private Sector Public Funded', '93.5', NULL,'3044','309','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10033815','GREY SEAL ACADEMY LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10033904','LIFECARE QUALIFICATIONS LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10034001','ASHLEY HUNTER LTD','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10034022','INTROTRAIN (ACE) LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10034044','NEW LONDON EDUCATIONAL TRUST','Private Sector Public Funded', '97.5', NULL,'307','130','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10034050','ULTIMA SKILLS LTD','Private Sector Public Funded', '100', NULL,'21','17','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10034055','ACE TRAINING AND CONSULTANCY LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10034128','ALWAYS CONSULT LTD','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10034240','NOTTINGHAM CITY TRANSPORT LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10034279','DHUNAY CORPORATION LTD','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10034309','INTERSERVE LEARNING & EMPLOYMENT (SERVICES) LIMITED','Private Sector Public Funded', '83.6', NULL,'5001','965','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10034315','LIGA (UK) LTD','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10034346','SALFORD ROYAL NHS FOUNDATION TRUST','Other Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10034368','GREATER MANCHESTER MENTAL HEALTH NHS FOUNDATION TRUST','Other Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10034387','NORSE COMMERCIAL SERVICES LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10034416','CSR SCIENTIFIC TRAINING LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10034423','ACTIV FIRST LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10034450','CARDIFF AND VALE COLLEGE','General FE and Tertiary College', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10034517','RIGHT TRACK SOCIAL ENTERPRISE LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10034887','DEERE APPRENTICESHIPS LTD','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10034931','BRIGHTER BEGINNINGS DAY NURSERY LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10034940','JUST IT TRAINING LIMITED','Private Sector Public Funded', '75.6', NULL,'386','202','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10034944','PORTSLADE ALDRIDGE COMMUNITY ACADEMY','Other Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10034952','CROSBY MANAGEMENT TRAINING LTD','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10035171','THE LONDON HAIRDRESSING APPRENTICESHIP ACADEMY LIMITED','Private Sector Public Funded', '95.9', NULL,'707','219','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10035183','ACTIVE LIFESTYLES PSP LTD','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10035270','TRAINING SYNERGY LIMITED','Private Sector Public Funded', '91.8', NULL,'63','51','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10035281','ABACUS TRAINING GROUP LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10035301','SAMANTHA WARREN','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10035380','PROACTIVE IN PARTNERSHIP TRAINING LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10035469','SIGMA UK GROUP LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10035541','FIRST FOR TRAINING LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10035735','PRESIDENCY LONDON COLLEGE LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10036006','LIFELONG OPPORTUNITIES LTD','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10036049','CARE ASSESSMENT TRAINING SERVICES LTD','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10036106','THE TRAINING BROKERS LIMITED','Private Sector Public Funded', '100', NULL,'88','82','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10036134','QTS-GLOBAL LTD','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10036142','VISTA TRAINING SOLUTIONS LIMITED','Private Sector Public Funded', '85', NULL,'208','193','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10036143','SOUTH GLOUCESTERSHIRE AND STROUD COLLEGE','General FE and Tertiary College', '78', NULL,'6697','1616','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10036176','MIDDLETONMURRAY LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10036202','FLT TRAINING (LIVERPOOL) LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10036227','ABSOLUTE CARE TRAINING & EDUCATION LTD','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10036255','THE TERRI BROOKE SCHOOL OF NAILS AND BEAUTY LTD','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10036333','HOOPLE LTD','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10036345','RATHBONE TRAINING','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10036350','SR SUPPLY CHAIN CONSULTANTS LTD','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10036431','PEOPLEPLUS GROUP LIMITED','Private Sector Public Funded', '67.9', NULL,'6896','361','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10036516','QUEST TRAINING SOUTH EAST LTD','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10036548','PARTNERSHIP TRAINING LIMITED','Private Sector Public Funded', '98.3', NULL,'384','243','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10036558','STREETGAMES UK','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10036578','THE APPRENTICE ACADEMY LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10036585','CIVIL CEREMONIES LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10036736','K S TRAINING LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10036794','SCCU LTD','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10036802','CHOSEN CARE GROUP LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10036807','CAN TRAINING LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10036868','THE WHITE ROOM CONSULTANCY LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10036952','GP STRATEGIES TRAINING LIMITED','Private Sector Public Funded', '94.4', NULL,'4391','621','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10037126','BLUE APPLE TRAINING LTD','Private Sector Public Funded', '91.9', NULL,'33','51','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10037276','ROVE LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10037289','WORKPAYS LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10037337','ASSOCIATED TRAINING SOLUTIONS LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10037344','EASTON AND OTLEY COLLEGE','Specialist College', '48.7', NULL,'2311','234','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10037345','THE TEACHING & LEARNING GROUP LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10037348','BABCOCK SKILLS DEVELOPMENT AND TRAINING LIMITED','Private Sector Public Funded', '88.1', NULL,'623','248','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10037682','W PEOPLE LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10037715','BARRETT BELL LTD','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10037723','EXCEL TRAINING LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10037798','CROWN VOCATIONAL TRAINING LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10037830','TERENCE PAUL ENTERPRISES LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10037909','CHOICE TRAINING LTD.','Private Sector Public Funded', '92.1', NULL,'105','113','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10037935','BIRMINGHAM WOMEN''S AND CHILDREN''S NHS FOUNDATION TRUST','Other Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10037945','BRIGHTER FUTURES MERSEYSIDE LIMITED','Private Sector Public Funded', '80.3', NULL,'346','223','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10038020','GREEN INC (EU) LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10038023','A R C ACADEMY UK LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10038077','TDLC LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10038110','JACOBS E&C LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10038112','THE WORKFORCE DEVELOPMENT TRUST LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10038140','VIRGIN ACTIVE LIMITED','Private Sector Public Funded', '91.8', NULL,'64','52','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10038201','ASHLEY COMMUNITY & HOUSING LTD','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10038228','VH DOCTORS LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10038368','TRAIN 4 LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10038387','NOVA PAYROLL MANAGEMENT SERVICES LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10038501','N D A FOUNDATION','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10038772','BRITISH ACADEMY OF JEWELLERY LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10038823','THE WORLD OF WORK LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10038829','DIVA APPRENTICESHIPS LTD','Private Sector Public Funded', '43.8', NULL,'16','35','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10038872','GENIUS SOFTWARE SOLUTIONS LIMITED','Private Sector Public Funded', '91.9', NULL,'24','26','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10038922','CAPITAL 4 TRAINING LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10038931','PENSHAW VIEW TRAINING LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10038939','THE FOOTBALL LEAGUE (COMMUNITY) LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10038981','SHEILING COLLEGE','Other Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10038982','KNOWLEDGEBRIEF LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10039140','THE RECALVI ENTERPRISE LTD','Private Sector Public Funded', '81.4', NULL,'484','193','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10039242','TRS TRAINING LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10039668','UMBRELLA TRAINING AND EMPLOYMENT SOLUTIONS LIMITED','Private Sector Public Funded', '95.7', NULL,'332','258','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10039793','ELITE TRAINING, ASSESSING AND DEVELOPMENT CIC','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10039810','GOODWIN INTERNATIONAL LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10039821','CATALYST LEARNING AND DEVELOPMENT LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10039859','ACADEMY TRANSFORMATION TRUST','Private Sector Public Funded', '93.5', NULL,'351','241','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10039882','GI GROUP RECRUITMENT LTD','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10039956','THE UNIVERSITY OF LAW LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10040011','RM TRAINING (UK) LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10040038','PENDERSONS LTD','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10040097','SEMBCORP UTILITIES (UK) LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10040240','LEAN ENGINEERING AND MANUFACTURING ACADEMY LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10040263','BEYOND 2030 LTD.','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10040329','QUEST VOCATIONAL TRAINING LIMITED','Private Sector Public Funded', '89.6', NULL,'762','229','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10040334','SYSTEM PEOPLE LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10040368','JM RECRUITMENT EDUCATION & TRAINING LTD','Private Sector Public Funded', '87.6', NULL,'476','284','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10040374','ST MARTINS CENTRE (ST ROSES SCHOOL)','Other Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10040375','LAKESIDE EARLY ADULT PROVISION - LEAP COLLEGE (WARGRAVE HOUSE LTD)','Other Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10040417','PIER TECHNOLOGY LTD','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10040440','FLM TRAINING LTD','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10040525','UNITED UTILITIES WATER LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10040561','MANCHESTER AIRPORT PLC','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10040664','LET ME PLAY LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10040684','ANGLIA PROFESSIONAL TRAINING LIMITED','Private Sector Public Funded', '76.5', NULL,'87','63','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10040718','FIRST INTUITION READING LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10040775','KAINUU LTD','Private Sector Public Funded', '73.1', NULL,'71','50','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10040803','DENNE CONSTRUCTION LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10040882','FREEDOM COMMUNICATIONS (U.K.) LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10040888','THE INSTITUTE OF CAST METALS ENGINEERS','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10040909','FAIRWAY TRAINING (HEALTHCARE) LIMITED','Private Sector Public Funded', '79.2', NULL,'11','9','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10040925','BALFOUR BEATTY GROUP LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10041031','THE CHALLENGE NETWORK','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10041073','R S FLEET INSTALLATIONS LTD','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10041127','ZENITH PEOPLE LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10041149','XTOL DEVELOPMENT SERVICES LIMITED','Private Sector Public Funded', '95.6', NULL,'75','63','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10041165','PORT OF TILBURY LONDON LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10041170','EXPANSE GROUP LTD','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10041236','NCAL LTD','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10041272','LIBERTY TRAINING LTD','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10041311','CHIC BEAUTY ACADEMY LTD','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10041319','SHREEJI TRAINING LTD','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10041332','HEALTH EDUCATION ENGLAND NORTH EAST','Other Public Funded', '88.4', NULL,'90','80','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10041422','GREENWICH LEISURE LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10041486','NORTHWEST EDUCATION AND TRAINING LIMITED','Private Sector Public Funded', '93.3', NULL,'198','134','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10041501','WEST MIDLANDS AMBULANCE SERVICE NHS FOUNDATION TRUST','Other Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10041773','OXFORD ENERGY ACADEMY LIMITED','Private Sector Public Funded', '93.7', NULL,'42','41','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10041891','EMA TRAINING LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10041952','COMPLETE TRAINING & ASSESSMENT LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10041997','EMPOWERMENT CENTRE, TRAINING AND CONSULTANCY SERVICES LTD','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10042003','FIRST INTUITION CHELMSFORD LIMITED','Private Sector Public Funded', '94.8', NULL,'118','75','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10042014','KINGSWOOD LEARNING AND LEISURE GROUP LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10042119','AIM 2 LEARN LTD','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10042126','VISION EXPRESS (UK) LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10042132','SPECSAVERS OPTICAL SUPERSTORES LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10042149','THE BEAUTY ACADEMY LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10042152','SIMPLY ACADEMY LTD','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10042155','LONDON AMBULANCE SERVICE NHS TRUST','Other Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10042166','TRAININGPLATFORM LTD','Private Sector Public Funded', '90.8', NULL,'44','42','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10042171','CENTRAL AND NORTH WEST LONDON NHS FOUNDATION TRUST','Other Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10042190','JANCETT CHILDCARE & JACE TRAINING LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10042241','THE IT SKILLS MANAGEMENT COMPANY LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10042357','MOORESKILLS LTD','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10042437','NORTH WEST SKILLS ACADEMY LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10042505','SOMERSET SKILLS & LEARNING CIC','Private Sector Public Funded', '87.2', NULL,'1186','390','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10042570','PEARSON COLLEGE LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10042735','ACCOUNTANCY LEARNING LTD','Private Sector Public Funded', '86.3', NULL,'58','45','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10042795','UKFAST.NET LIMITED','Private Sector Public Funded', '82.4', NULL,'23','21','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10042819','VOCATIONAL SKILLS SOLUTIONS LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10042884','BOSCH AUTOMOTIVE SERVICE SOLUTIONS LTD','Private Sector Public Funded', '79.4', NULL,'439','192','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10042906','ENTRUST SUPPORT SERVICES LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10042974','C2C TRAINING LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10043062','CALDERDALE AND HUDDERSFIELD NHS FOUNDATION TRUST','Other Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10043112','CANAL ENGINEERING LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10043126','VOGAL GROUP LIMITED','Private Sector Public Funded', '72', NULL,'17','25','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10043208','SCL EDUCATION & TRAINING LIMITED','Private Sector Public Funded', '83.6', NULL,'1287','493','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10043250','EAST MIDLANDS AMBULANCE SERVICE NHS TRUST','Other Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10043333','ANTREC LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10043389','EXCELLENCE-SOLUTIONS LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10043482','TVS EDUCATION LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10043485','THE OXFORD SCHOOL OF DRAMA TRUST','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10043533','LEWTAY TRAINING LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10043571','GORDON FRANKS TRAINING LIMITED','Private Sector Public Funded', '83.8', NULL,'292','180','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10043575','PIZZA HUT (U.K.) LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10043588','G''S GROWERS LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10043612','FOCUS FITNESS UK LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10043661','OPTIMUM SKILLS LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10043685','SUMMERHOUSE EQUESTRIAN AND TRAINING CENTRE LLP','Private Sector Public Funded', '91.1', NULL,'695','292','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10043793','APPRENTICE TEAM LTD','Private Sector Public Funded', '93.4', NULL,'188','127','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10043831','INTERNATIONAL CORRESPONDENCE SCHOOLS LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10043865','ADALTA DEVELOPMENT LTD','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10043980','REAL SKILLS TRAINING LTD','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10044028','EQL SOLUTIONS LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10044197','PERSONAL TRACK SAFETY LTD','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10044321','FURTHER TRAINING LIMITED','Private Sector Public Funded', '95', NULL,'122','86','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10044379','BIS HENDERSON LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10044457','I & F LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10044607','BOOM TRAINING LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10044749','THE BUSINESS PORTFOLIO (UK) LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10044778','HOB SALONS LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10044879','ON COURSE SOUTH WEST CIC','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10044946','BROGDALE CIC','Other Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10045062','FRESH TRAINING SERVICES (UK) LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10045070','<NAME> LEARNING & DEVELOPMENT LLP','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10045077','LEARNMORE NETWORK LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10045085','KIWI EDUCATION LTD','Private Sector Public Funded', '92.5', NULL,'206','134','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10045119','VSS TRAINING AND DEVELOPMENT LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10045135','BIOR BUSINESS SCHOOL LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10045136','ELMHOUSE CHILDCARE LTD','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10045159','BNG TRAINING LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10045166','MANAGEMENT FOCUS TRAINING SOLUTIONS LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10045231','NETCOM TRAINING LTD','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10045305','TOTAL TRAINING COMPANY (UK) LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10045306','STRIVE TRAINING (LONDON) LIMITED','Private Sector Public Funded', '94.1', NULL,'103','168','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10045339','BEATS LEARNING LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10045348','TRAINSPEOPLE LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10045359','BE WISER INSURANCE SERVICES LTD','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10045389','CARESHIELD LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10045505','INNOVATIVE ALLIANCE LTD','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10045776','JB SKILLS TRAINING LTD','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10045798','FRESHFIELD TRAINING ASSOCIATES LTD','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10045935','SUPAJAM EDUCATION IN MUSIC AND MEDIA LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10045955','BESPOKE PROFESSIONAL DEVELOPMENT AND TRAINING LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10046149','FWD TRAINING & CONSULTANCY LIMITED','Private Sector Public Funded', '69.2', NULL,'814','403','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10046346','HOLT GREEN TRAINING LTD','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10046354','PROSPECTS COLLEGE OF ADVANCED TECHNOLOGY','General FE and Tertiary College', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10046413','BANHAM ACADEMY LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10046430','PRINCIPAL SKILLS LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10046498','1ST CARE TRAINING LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10046499','NORTH EAST AMBULANCE SERVICE NHS FOUNDATION TRUST','Other Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10046552','HALFORDS LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10046663','BLINC TRAINING SOLUTIONS LTD','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10046672','JAG TRAINING LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10046674','UK POWER NETWORKS (OPERATIONS) LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10046677','SPORTING FUTURES TRAINING (UK) LTD','Private Sector Public Funded', '89.2', NULL,'152','117','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10046692','ENSIS SOLUTIONS LIMITED','Private Sector Public Funded', '85.2', NULL,'153','106','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10046704','UPLANDS EDUCATIONAL TRUST','Private Sector Public Funded', '81.8', NULL,'68','62','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10046705','KICKSTART2EMPLOYMENT LTD','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10046797','BC ARCH LIMITED','Private Sector Public Funded', '66.1', NULL,'2166','986','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10046840','HEART OF BIRMINGHAM VOCATIONAL COLLEGE LTD','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10046850','BLUE SKY ASSESSING & CONSULTANCY LTD','Private Sector Public Funded', '85.9', NULL,'19','21','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10046979','THE PORTLAND TRAINING COMPANY LIMITED','Private Sector Public Funded', '93.4', NULL,'111','197','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10046997','GLP TRAINING LTD','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10047111','THE APPRENTICESHIP COLLEGE LTD','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10047125','DARWIN TRAINING LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10047170','TRAINING 4 CAREERS (UK) LIMITED','Other Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10047306','THE BOSCO CENTRE','Other Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10047322','CARE VOCATIONAL','Other Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10047357','CPC TRAINING CONSULTANTS LTD','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10047671','TAGADVANCE LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10047679','CREATIVE PROCESS DIGITAL LTD','Private Sector Public Funded', '56.6', NULL,'17','12','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10048106','UNIPRES (UK) LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10048177','ESTIO TRAINING LIMITED','Private Sector Public Funded', '77.4', NULL,'966','478','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10048217','SOLVO VIR LTD','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10048284','EDLOUNGE LTD','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10048290','BLUE ARROW LTD.','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10048326','IC TRAINING CENTRE LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10048380','GINGER NUT MEDIA LIMITED','Private Sector Public Funded', '64.3', NULL,'154','124','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10048409','BRS EDUCATION LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10048801','SHOWCASE TRAINING LTD','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10048848','TRAINING WORKS (NW) LTD','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10048865','AGINCARE GROUP LIMITED','Private Sector Public Funded', '89.3', NULL,'166','92','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10048886','INTEGRITY IT SOLUTIONS LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10048902','T.M.S LEARNING AND SKILLS SUPPORT LTD.','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10049051','CHATSWORTH FUTURES LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10049052','NORTHUMBRIA HEALTHCARE NHS FOUNDATION TRUST','Other Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10049099','ASSIST KNOWLEDGE DEVELOPMENT LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10049149','RUNWAY APPRENTICESHIPS LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10049448','UTILITIES ACADEMY LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10049460','BYHEART LEARNING LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10049461','TALENTED TRAINING LIMITED','Private Sector Public Funded', '94.7', NULL,'95','91','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10049552','REED SPECIALIST RECRUITMENT LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10049678','DECIDEBLOOM LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10049732','KEY6 GROUP LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10049737','THE MTC - ADVANCED MANUFACTURING TRAINING CENTRE LIMITED','Private Sector Public Funded', '90.7', NULL,'117','89','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10052437','THE EDUCATION AND SKILLS PARTNERSHIP LTD','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10052473','TENDEAN LIMITED','Private Sector Public Funded', '90.2', NULL,'37','42','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10052538','VANTEC EUROPE LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10052576','GREATER MANCHESTER COMBINED AUTHORITY','Other Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10052606','REMPLOY LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10052607','PERFORMANCE LEARNING GROUP LTD','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10052638','EDUCATION AND SKILLS TRAINING & DEVELOPMENT LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10052724','YOUNG & CO''S BREWERY PLC','Other Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10052815','TRAINING SKILLS UK LTD','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10052863','FE BUSINESS LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10052892','CULTURE, LEARNING AND LIBRARIES (MIDLANDS)','Other Public Funded', '47.2', NULL,'22','19','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10052968','APPRENTICESHIP RECRUITMENT SERVICE LTD','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10052994','CARE UK COMMUNITY PARTNERSHIPS LTD','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10053055','AB EDUCATION CONSULTANTS LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10053076','ACADEMY FOR PROJECT MANAGEMENT LTD','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10053529','SOUTH WEST SKILLS ACADEMY LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10053852','BARTS HEALTH NHS TRUST','Other Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10053869','LIGHTHOUSE (TRAINING AND DEVELOPMENT) LTD','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10053902','PREMIER NURSING AGENCY LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10053960','KIDDERMINSTER COLLEGE','General FE and Tertiary College', '82.9', NULL,'2686','414','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10053961','WEST LANCASHIRE COLLEGE','General FE and Tertiary College', '81.3', NULL,'2020','541','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10053962','NEWCASTLE COLLEGE','General FE and Tertiary College', '77.3', NULL,'9320','2477','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10054055','ASPIRE DEVELOPMENT (UK) LTD','Private Sector Public Funded', '86.4', NULL,'308','233','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10054118','BESPOKE CONSULTANCY & EDUCATION LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10054216','MBKB LTD','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10054451','PIPER TRAINING LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10054499','MEARS LEARNING LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10054558','WOLSELEY UK LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10054692','ALTAMIRA ART & DESIGN LTD','Private Sector Public Funded', '99.6', NULL,'147','236','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10054735','SPRINGFIELD TRAINING LIMITED','Private Sector Public Funded', '95.3', NULL,'52','61','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10054747','ORCHARD HILL COLLEGE','Other Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10054751','VALUE GROUP TRAINING SERVICES LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10054760','JRV ASSOCIATES LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10054802','RPC CONTAINERS LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10054804','PRIMARY GOAL LTD','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10054816','DIVAD TRAINING LIMITED','Private Sector Public Funded', '83.8', NULL,'247','332','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10054819','CREATIVE SPORT & LEISURE LTD','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10054856','OBSCURANT LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10054875','Y TRAIN LTD','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10054898','CSJ TRAINING LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10054962','SECURITAS SECURITY SERVICES (UK) LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10055054','COMPLETE LEAN SOLUTIONS LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10055259','MERLIN SUPPLY CHAIN SOLUTIONS LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10055337','AMS NATIONWIDE LTD','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10055371','COMMUNITY COLLEGE INITIATIVE LTD','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10055652','NC TRAINING LTD','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10055749','CALL WISER LTD','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10055771','2 SISTERS FOOD GROUP LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10055777','HTFT PARTNERSHIP LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10055844','THE ACADEMY HUB LTD','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10055883','CLIFFORD COLLEGE LTD','Private Sector Public Funded', '83.9', NULL,'38','32','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10055902','WHITEHAT GROUP LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10055995','MITCHELLS & BUTLERS PLC','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10056018','LINCOLNSHIRE COMMUNITY HEALTH SERVICES NHS TRUST','Other Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10056050','FIRST INTUITION LEEDS LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10056190','ARRIVA LONDON NORTH LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10056315','PARAGON TRAINING ACADEMY LTD','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10056323','MENTOR TRAINING SOLUTIONS LIMITED','Private Sector Public Funded', '52.5', NULL,'23','21','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10056694','UNIPER TECHNOLOGIES LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10056711','CS TRAINING UK LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10056735','NATIONAL TRAINING & SKILLS LTD','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10056737','CONTRACTING SERVICES (EDUCATION AND SKILLS) LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10056738','FIRST INTUITION LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10056749','ERNST & YOUNG LLP','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10056750','KINGS TRAINING ACADEMY LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10056801','METRO BANK PLC','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10057037','DEARING LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10057288','STAFFORDSHIRE COMBINED FIRE AND RESCUE AUTHORITY','Other Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10057328','AZZURRI RESTAURANTS LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10057497','LEADERSHIP IN ACTION LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10057616','THREE DIMENSIONAL TRAINING LIMITED','Private Sector Public Funded', '92.6', NULL,'28','37','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10057981','ADA NATIONAL COLLEGE FOR DIGITAL SKILLS','General FE and Tertiary College', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10058007','TECHNICAL PROFESSIONALS LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10058012','ACCIPIO LIMITED','Private Sector Public Funded', '75.7', NULL,'36','30','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10058019','APPRENTICE ASSESSMENTS LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10058059','THE MANAGEMENT ACADEMY LTD','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10058111','FUEL LEARNING LIMITED','Private Sector Public Funded', '82.9', NULL,'287','237','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10058228','THE PRIORY FEDERATION OF ACADEMIES','Private Sector Public Funded', '82.5', NULL,'20','21','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10059658','HERTFORDSHIRE CATERING LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10061102','360 RECRUITMENT LIMITED','Private Sector Public Funded', '88.7', NULL,'19','24','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10061144','RANDSTAD SOLUTIONS LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10061302','VIRGIN TRAINS SALES LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10061316','PROFESSIONAL FUTURES LIMITED','Private Sector Public Funded', '100', NULL,'12','10','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10061402','SOUTH LONDON AND MAUDSLEY NHS FOUNDATION TRUST','Other Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10061407','CORNDEL LIMITED','Private Sector Public Funded', '90.5', NULL,'1821','582','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10061421','LEONARDO MW LTD','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10061438','CADENT GAS LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10061462','AAA TRAINING SOLUTIONS LIMITED','Private Sector Public Funded', '84.3', NULL,'495','273','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10061475','THE NATIONAL COLLEGE FOR HIGH SPEED RAIL LIMITED','Other Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10061491','THE NATIONAL COLLEGE FOR THE CREATIVE AND CULTURAL INDUSTRIES','General FE and Tertiary College', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10061524','BPP ACTUARIAL EDUCATION LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10061548','MOOR TRAINING LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10061581','C. & J. CLARK INTERNATIONAL LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10061591','KRESTON REEVES LLP','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10061604','STYLE TRAINING (UK) LTD','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10061675','AVENSYS UK TRAINING LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10061684','ALL SPRING MEDIA LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10061783','CERTAS ENERGY UK LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10061789','TOOK US A LONG TIME LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10061794','FLIGHT CENTRE (UK) LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10061797','MOY PARK LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10061799','RICOH UK LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10061808','F-TEC FORKLIFT TRAINING ENGINEERING CENTRE LTD','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10061826','DEVELOPING `U` LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10061833','SKILLCERT LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10061840','GATESHEAD HEALTH NHS FOUNDATION TRUST','Other Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10061857','ABSOLUTE HR SOLUTIONS LTD.','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10061867','NEW MODEL BUSINESS ACADEMY LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10061888','PEACOCKS STORES LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10061905','ALSTOM TRANSPORT UK LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10061920','GOODMAN MASSON LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10061968','THE NATIONAL LOGISTICS ACADEMY LTD','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10062023','COLAS RAIL LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10062030','ISS FACILITY SERVICES LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10062039','DUNBIA (ENGLAND)','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10062041','SKILLS4STEM LTD.','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10062042','FIRST INTUITION BRISTOL LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10062059','RENTOKIL INITIAL (1896) LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10062064','IODA LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10062065','OXFORD UNIVERSITY HOSPITALS NHS FOUNDATION TRUST','Other Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10062076','THE SOCIETY OF LOCAL AUTHORITY CHIEF EXECUTIVES AND SENIOR MANAGERS (SOLACE GROUP) LTD','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10062088','BARCLAYS BANK PLC','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10062117','INVISAGE LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10062166','E.J.MARKHAM & SON LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10062322','INTELLIGENCIA TRAINING LIMITED','Private Sector Public Funded', '90.3', NULL,'206','115','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10062470','VORTEX TRAINING SOLUTIONS LTD','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10062562','SECOM PLC','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10062656','AMDAS CONSULTANCY LTD','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10062703','HARVEY NICHOLS AND COMPANY LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10062798','CENTRAL LONDON COMMUNITY HEALTHCARE NHS TRUST','Other Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10062918','BLACKROCK (LONDON) LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10062950','MY HOME MOVE LTD','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10063020','BLENDED PEOPLE DEVELOPMENT LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10063252','SKILLS REPUBLIC LTD','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10063330','THE CHIEF CONSTABLE OF THAMES VALLEY','Other Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10063435','JUICE TALENT DEVELOPMENT LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10063438','CSA (SERVICES) LTD','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10063508','NORTHERN POWERGRID (YORKSHIRE) PLC','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10063530','ZHQ LIMITED','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10063574','CIPFA BUSINESS LIMITED','Private Sector Public Funded', '73.4', NULL,'279','243','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10064084','HEALTH EDUCATION ENGLAND','Other Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10064221','FOLKESTONE & HYTHE DISTRICT COUNCIL','Other Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10064516','CALMAN COLAISTE (KISIMUL GROUP)','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10065593','NEBULA CONSULTANCY SERVICES LTD','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10065642','INSIGHT DEVELOPMENT & CONSULTANCY LTD','Private Sector Public Funded', '75.4', NULL,'582','181','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10065648','EFFECTIVE OPERATIONAL SOLUTIONS LTD.','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10065710','GEM PARTNERSHIP LIMITED','Private Sector Public Funded', '70', NULL,'56','47','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10065827','E G S NATIONWIDE LIMITED','Private Sector Public Funded', NULL, 'There was not enough data to award a score','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10065854','MANCHESTER UNIVERSITY NHS FOUNDATION TRUST','Other Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
INSERT INTO [dbo].[LearnerSatisfaction] VALUES ('10065989','IMPELLAM GROUP PLC','Private Sector Public Funded', NULL, 'This organisation did not participate in the survey','0','0','2018/2019', 2019)
GO
|
SELECT pl.[Name], pl.Seats, COUNT(t.Id) AS [Passengers Count]
FROM Planes AS pl
LEFT JOIN Flights AS f ON pl.Id = f.PlaneId
LEFT JOIN Tickets AS t ON f.Id = t.FlightId
GROUP BY pl.[Name], pl.Seats
ORDER BY [Passengers Count] DESC, pl.[Name], pl.[Seats] |
/*
Warnings:
- You are about to drop the column `user_id` on the `ShoppingCard` table. All the data in the column will be lost.
- You are about to alter the column `expired_at` on the `user_active_session` table. The data in that column could be lost. The data in that column will be cast from `Timestamp(0)` to `Timestamp`.
*/
-- AlterTable
ALTER TABLE `ShoppingCard` DROP COLUMN `user_id`,
ADD COLUMN `userUser_id` INTEGER UNSIGNED;
-- AlterTable
ALTER TABLE `user_active_session` MODIFY `expired_at` TIMESTAMP NOT NULL;
-- AddForeignKey
ALTER TABLE `ShoppingCard` ADD FOREIGN KEY (`userUser_id`) REFERENCES `User`(`user_id`) ON DELETE SET NULL ON UPDATE CASCADE;
|
-- file:tstypes.sql ln:176 expect:true
SELECT ts_rank_cd(' a:1 s:2 d:2A g'::tsvector, 'a <-> s')
|
<reponame>flexsocialbox/una
-- FORMS
UPDATE `sys_form_inputs` SET `db_pass`='<PASSWORD>' WHERE `object`='bx_posts' AND `name`='published';
|
-- 2020-12-09T09:12:57.491Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET IsUseDocSequence='N',Updated=TO_TIMESTAMP('2020-12-09 11:12:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=550503
;
|
<filename>services/common/src/main/resources/db/postgresql/tenants/pahma/fnc-utils-getnagpra-nuxeo_pahma.sql<gh_stars>0
CREATE OR REPLACE FUNCTION utils.getnagpra(cocid character varying)
RETURNS SETOF nagpratype
LANGUAGE plpgsql
STRICT
AS $function$
DECLARE
updsql text;
t varchar[];
reptabs varchar[] := array[['collectionobjects_pahma_pahmaobjectstatuslist', 'objectStatus']
, ['collectionobjects_nagpra_nagprainventorynames', 'nagpraInventoryName']
, ['collectionobjects_nagpra_nagpracategories', 'nagpraCategory']
, ['collectionobjects_nagpra_graveassoccodes', 'graveAssocCode']
, ['collectionobjects_nagpra_repatriationnotes', 'repatriationNote']
, ['collectionobjects_nagpra_nagpraculturaldeterminations', 'nagpraCulturalDetermination']];
updcol text;
col varchar;
tempcols varchar[] := array['pos',
'objectNumber',
'sortableObjectNumber',
'objectStatus',
'nagpraInventoryName',
'nagpraCategory',
'graveAssocCode',
'repatriationNote',
'nagpraCulturalDetermination',
'nagpraDetermCulture',
'nagpraDetermType',
'nagpraDetermBy',
'nagpraDetermNote',
'nagpraReportFiled',
'nagpraReportFiledWith',
'nagpraReportFiledBy',
'nagpraReportFiledDate',
'nagpraReportFiledNote',
'reference',
'referenceNote'];
BEGIN
DROP TABLE IF EXISTS getnagpra_temp;
-- create temp table for processed data
CREATE TEMP TABLE getnagpra_temp (
cocsid varchar,
coid varchar,
pos varchar,
objectNumber varchar,
sortableObjectNumber varchar,
objectStatus varchar,
nagpraInventoryName varchar,
nagpraCategory varchar,
graveAssocCode varchar,
repatriationNote varchar,
nagpraCulturalDetermination varchar,
nagpraDetermCulture varchar,
nagpraDetermType varchar,
nagpraDetermBy varchar,
nagpraDetermNote varchar,
nagpraReportFiled varchar,
nagpraReportFiledWith varchar,
nagpraReportFiledBy varchar,
nagpraReportFiledDate varchar,
nagpraReportFiledNote varchar,
reference varchar,
referenceNote varchar
);
-- get unique positions for repeating fields/groups.
INSERT INTO getnagpra_temp (coid, pos)
SELECT id, pos FROM collectionobjects_pahma_pahmaobjectstatuslist WHERE id = cocid
UNION
SELECT id, pos FROM collectionobjects_nagpra_nagprainventorynames WHERE id = cocid
UNION
SELECT id, pos FROM collectionobjects_nagpra_nagpracategories WHERE id = cocid
UNION
SELECT id, pos FROM collectionobjects_nagpra_graveassoccodes WHERE id = cocid
UNION
SELECT id, pos FROM collectionobjects_nagpra_repatriationnotes WHERE id = cocid
UNION
SELECT id, pos FROM collectionobjects_nagpra_nagpraculturaldeterminations WHERE id = cocid
UNION
SELECT parentid, pos FROM hierarchy WHERE parentid = cocid AND primarytype = 'nagpraDetermGroup'
UNION
SELECT parentid, pos FROM hierarchy WHERE parentid = cocid AND primarytype = 'nagpraReportFiledGroup'
UNION
SELECT parentid, pos FROM hierarchy WHERE parentid = cocid AND primarytype = 'referenceGroup';
-- get csid, objectnumber, sortableobjectnumber for collection object record.
UPDATE getnagpra_temp SET cocsid = h.name FROM hierarchy h WHERE getnagpra_temp.coid = h.id;
UPDATE getnagpra_temp SET objectNumber = c.objectnumber FROM collectionobjects_common c WHERE getnagpra_temp.coid = c.id;
UPDATE getnagpra_temp SET sortableobjectnumber = c.sortableobjectnumber FROM collectionobjects_pahma c WHERE getnagpra_temp.coid = c.id;
-- get displaynames for refnames in repeating fields
FOREACH t SLICE 1 IN ARRAY reptabs LOOP
updsql := 'UPDATE getnagpra_temp SET '|| t[2] || ' = getdispl(n.item) ' ||
'FROM ' || t[1] || ' n ' ||
'WHERE getnagpra_temp.coid = n.id AND getnagpra_temp.pos = n.pos;';
--RAISE NOTICE 'updsql for %: %', t[1], updsql;
EXECUTE updsql;
END LOOP;
-- get displaynames/notes for nagpraDetermGroup data.
UPDATE getnagpra_temp
SET nagpraDetermCulture = getdispl(n.nagpradetermculture),
nagpraDetermType = getdispl(n.nagpradetermtype),
nagpraDetermBy = getdispl(n.nagpradetermby),
nagpraDetermNote = n.nagpradetermnote
FROM nagpradetermgroup n join hierarchy h on (n.id = h.id)
WHERE getnagpra_temp.coid = h.parentid
AND h.primarytype = 'nagpraDetermGroup'
AND getnagpra_temp.pos = h.pos;
-- get displaynames/notes for nagpraReportFiledGroup data.
UPDATE getnagpra_temp
SET nagpraReportFiled = n.nagprareportfiled::text,
nagpraReportFiledWith = getdispl(n.nagprareportfiledwith),
nagpraReportFiledBy = getdispl(n.nagprareportfiledby),
nagpraReportFiledNote = n.nagprareportfilednote
FROM nagprareportfiledgroup n join hierarchy h on (n.id = h.id)
WHERE getnagpra_temp.coid = h.parentid
AND h.primarytype = 'nagpraReportFiledGroup'
AND getnagpra_temp.pos = h.pos;
-- get displaydate for nagpraReportFiledGroup data.
UPDATE getnagpra_temp
SET nagpraReportFiledDate = s.datedisplaydate
FROM hierarchy hn join hierarchy hs on (hn.id = hs.parentid)
join structureddategroup s on (hs.id = s.id)
WHERE getnagpra_temp.coid = hn.parentid
AND hs.name = 'nagpraReportFiledDate';
-- get displaynames/notes for referenceGroup data.
UPDATE getnagpra_temp
SET reference = getdispl(n.reference),
referenceNote = n.referencenote
FROM referencegroup n join hierarchy h on (n.id = h.id)
WHERE getnagpra_temp.coid = h.parentid
AND h.primarytype = 'referenceGroup'
AND getnagpra_temp.pos = h.pos;
-- convert returns and newlines to '\n'.
UPDATE getnagpra_temp SET
repatriationNote = regexp_replace(repatriationNote, E'[\n\r]+', '\n', 'g'),
nagpraCulturalDetermination = regexp_replace(nagpraCulturalDetermination, E'[\n\r]+', '\n', 'g');
FOREACH col in ARRAY tempcols LOOP
updcol := 'UPDATE getnagpra_temp SET ' || col || ' = ''%NULLVALUE%'' ' ||
'WHERE ' || col || ' is NULL;';
EXECUTE updcol;
END LOOP;
RETURN QUERY SELECT * FROM getnagpra_temp;
END;
$function$
|
CREATE OR REPLACE FUNCTION water_class(waterway TEXT) RETURNS TEXT AS $$
SELECT CASE WHEN waterway='' THEN 'lake' ELSE 'river' END;
$$ LANGUAGE SQL IMMUTABLE;
DROP VIEW IF EXISTS water_z0_3575;
CREATE VIEW water_z0_3575 AS (
-- etldoc: ne_110m_ocean -> water_z0
SELECT geometry, 'ocean'::text AS class FROM split_water_polygons_3575 WHERE zoom = 0 AND min_area >= 256000000
UNION ALL
-- etldoc: ne_110m_lakes -> water_z0
SELECT geometry, 'lake'::text AS class FROM ne_110m_lakes
);
DROP VIEW IF EXISTS water_z1_3575;
CREATE VIEW water_z1_3575 AS (
-- etldoc: ne_110m_ocean -> water_z1
SELECT geometry, 'ocean'::text AS class FROM split_water_polygons_3575 WHERE zoom = 1 AND min_area >= 64000000
UNION ALL
-- etldoc: ne_110m_lakes -> water_z1
SELECT geometry, 'lake'::text AS class FROM ne_110m_lakes
);
DROP VIEW IF EXISTS water_z2_3575;
CREATE VIEW water_z2_3575 AS (
-- etldoc: ne_50m_ocean -> water_z2
SELECT geometry, 'ocean'::text AS class FROM split_water_polygons_3575 WHERE zoom = 2 AND min_area >= 16000000
UNION ALL
-- etldoc: ne_50m_lakes -> water_z2
SELECT geometry, 'lake'::text AS class FROM ne_50m_lakes
);
DROP VIEW IF EXISTS water_z3_3575;
CREATE VIEW water_z3_3575 AS (
-- etldoc: ne_50m_ocean -> water_z3
SELECT geometry, 'ocean'::text AS class FROM split_water_polygons_3575 WHERE zoom = 3 AND min_area >= 4000000
UNION ALL
-- etldoc: ne_50m_lakes -> water_z3
SELECT geometry, 'lake'::text AS class FROM ne_50m_lakes
);
DROP VIEW IF EXISTS water_z4_3575;
CREATE VIEW water_z4_3575 AS (
-- etldoc: ne_50m_ocean -> water_z4
SELECT geometry, 'ocean'::text AS class FROM split_water_polygons_3575 WHERE zoom = 4 AND min_area >= 1000000
UNION ALL
-- etldoc: ne_50m_lakes -> water_z4
SELECT geometry, 'lake'::text AS class FROM ne_50m_lakes
);
DROP VIEW IF EXISTS water_z5_3575;
CREATE VIEW water_z5_3575 AS (
-- etldoc: ne_10m_ocean -> water_z5
SELECT geometry, 'ocean'::text AS class FROM split_water_polygons_3575 WHERE zoom = 5 AND min_area >= 250000
UNION ALL
-- etldoc: ne_10m_lakes -> water_z5
SELECT geometry, 'lake'::text AS class FROM ne_10m_lakes
);
DROP VIEW IF EXISTS water_z6_3575;
CREATE VIEW water_z6_3575 AS (
-- etldoc: ne_10m_ocean -> water_z6
SELECT geometry, 'ocean'::text AS class FROM split_water_polygons_3575 WHERE zoom = 6 AND min_area >= 40000
UNION ALL
-- etldoc: osm_water_polygon_gen6 -> water_z6
SELECT geometry, 'lake' AS class FROM osm_water_polygon_gen5
);
DROP VIEW IF EXISTS water_z7_3575;
CREATE VIEW water_z7_3575 AS (
-- etldoc: ne_10m_ocean -> water_z7
SELECT geometry, 'ocean'::text AS class FROM split_water_polygons_3575 WHERE zoom = 7 AND min_area >= 10000
UNION ALL
-- etldoc: osm_water_polygon_gen5 -> water_z7
SELECT geometry, 'lake' AS class FROM osm_water_polygon_gen5
);
DROP VIEW IF EXISTS water_z8_3575;
CREATE VIEW water_z8_3575 AS (
-- etldoc: osm_ocean_polygon_gen4 -> water_z8
SELECT geometry, 'ocean'::text AS class FROM split_water_polygons_3575 WHERE zoom = 8 AND min_area >= 2500
UNION ALL
-- etldoc: osm_water_polygon_gen4 -> water_z8
SELECT geometry, 'lake'::text AS class FROM osm_water_polygon_gen4
);
-- CREATE TABLE north_osm_land_polygons_gen4 AS SELECT ST_MakeValid(ST_Simplify(geometry, 160)) AS geometry FROM north_osm_land_polygons_3575;
-- CREATE TABLE north_osm_land_polygons_gen3 AS SELECT ST_MakeValid(ST_Simplify(geometry, 80)) AS geometry FROM north_osm_land_polygons_3575;
-- CREATE TABLE north_osm_land_polygons_gen2 AS SELECT ST_MakeValid(ST_Simplify(geometry, 40)) AS geometry FROM north_osm_land_polygons_3575;
-- CREATE TABLE north_osm_land_polygons_gen1 AS SELECT ST_MakeValid(ST_Simplify(geometry, 20)) AS geometry FROM north_osm_land_polygons_3575;
DROP VIEW IF EXISTS water_z9_3575;
CREATE VIEW water_z9_3575 AS (
-- etldoc: osm_ocean_polygon_gen3 -> water_z9
-- SELECT geometry, 'ocean'::text AS class FROM north_osm_land_polygons_gen2
-- UNION ALL
-- etldoc: osm_water_polygon_gen3 -> water_z9
SELECT geometry, 'lake'::text AS class FROM osm_water_polygon_gen3
);
DROP VIEW IF EXISTS water_z10_3575;
CREATE VIEW water_z10_3575 AS (
-- etldoc: osm_ocean_polygon_gen2 -> water_z10
-- SELECT geometry, 'ocean'::text AS class FROM north_osm_land_polygons_gen2
-- UNION ALL
-- etldoc: osm_water_polygon_gen2 -> water_z10
SELECT geometry, 'lake'::text AS class FROM osm_water_polygon_gen2
);
DROP VIEW IF EXISTS water_z11_3575;
CREATE VIEW water_z11_3575 AS (
-- etldoc: osm_ocean_polygon_gen1 -> water_z11
-- SELECT geometry, 'ocean'::text AS class FROM north_osm_land_polygons_gen2
-- UNION ALL
-- etldoc: osm_water_polygon_gen1 -> water_z11
SELECT geometry, water_class(waterway) AS class FROM osm_water_polygon_gen1
);
DROP VIEW IF EXISTS water_z12_3575;
CREATE VIEW water_z12_3575 AS (
-- etldoc: osm_ocean_polygon_gen1 -> water_z12
-- SELECT geometry, 'ocean'::text AS class FROM north_osm_land_polygons_gen1
-- UNION ALL
-- etldoc: osm_water_polygon -> water_z12
SELECT geometry, water_class(waterway) AS class FROM osm_water_polygon
);
DROP VIEW IF EXISTS water_z13_3575;
CREATE VIEW water_z13_3575 AS (
-- etldoc: osm_ocean_polygon -> water_z13
-- SELECT st_makevalid AS geometry, 'ocean'::text AS class FROM north_osm_land_polygons_3575
-- UNION ALL
-- etldoc: osm_water_polygon -> water_z13
SELECT geometry, water_class(waterway) AS class FROM osm_water_polygon WHERE area > 4.0e-7
);
DROP VIEW IF EXISTS water_z14_3575;
CREATE VIEW water_z14_3575 AS (
-- etldoc: osm_ocean_polygon -> water_z14
-- SELECT st_makevalid AS geometry, 'ocean'::text AS class FROM north_osm_land_polygons_3575
-- UNION ALL
-- etldoc: osm_water_polygon -> water_z14
SELECT geometry, water_class(waterway) AS class FROM osm_water_polygon
);
-- etldoc: layer_water [shape=record fillcolor=lightpink, style="rounded,filled",
-- etldoc: label="layer_water |<z0> z0|<z1>z1|<z2>z2|<z3>z3 |<z4> z4|<z5>z5|<z6>z6|<z7>z7| <z8> z8 |<z9> z9 |<z10> z10 |<z11> z11 |<z12> z12|<z13> z13|<z14_> z14+" ] ;
DROP FUNCTION IF EXISTS layer_water_3575 (bbox geometry, zoom_level int);
CREATE OR REPLACE FUNCTION layer_water_3575 (bbox geometry, zoom_level int)
RETURNS TABLE(geometry geometry, class text) AS $$
SELECT geometry, class::text FROM (
-- etldoc: water_z0 -> layer_water:z0
SELECT * FROM water_z0_3575 WHERE zoom_level = 0
UNION ALL
-- etldoc: water_z1 -> layer_water:z1
SELECT * FROM water_z1_3575 WHERE zoom_level = 1
UNION ALL
-- etldoc: water_z2 -> layer_water:z2
SELECT * FROM water_z2_3575 WHERE zoom_level = 2
UNION ALL
-- etldoc: water_z2 -> layer_water:z3
SELECT * FROM water_z3_3575 WHERE zoom_level = 3
UNION ALL
-- etldoc: water_z4 -> layer_water:z4
SELECT * FROM water_z4_3575 WHERE zoom_level = 4
UNION ALL
-- etldoc: water_z5 -> layer_water:z5
SELECT * FROM water_z5_3575 WHERE zoom_level = 5
UNION ALL
-- etldoc: water_z6 -> layer_water:z6
SELECT * FROM water_z6_3575 WHERE zoom_level = 6
UNION ALL
-- etldoc: water_z7 -> layer_water:z7
SELECT * FROM water_z7_3575 WHERE zoom_level = 7
UNION ALL
-- etldoc: water_z8 -> layer_water:z8
SELECT * FROM water_z8_3575 WHERE zoom_level = 8
UNION ALL
-- etldoc: water_z9 -> layer_water:z9
SELECT * FROM water_z9_3575 WHERE zoom_level = 9
UNION ALL
SELECT * FROM (SELECT COALESCE(ST_Difference(bbox, ST_Union(ST_Intersection(geometry, bbox))), bbox) AS geometry, 'ocean'::text FROM north_osm_land_polygons_gen2 WHERE geometry && bbox) x WHERE zoom_level = 9
UNION ALL
-- etldoc: water_z10 -> layer_water:z10
SELECT * FROM water_z10_3575 WHERE zoom_level = 10
UNION ALL
SELECT * FROM (SELECT COALESCE(ST_Difference(bbox, ST_Union(ST_Intersection(geometry, bbox))), bbox) AS geometry, 'ocean'::text FROM north_osm_land_polygons_gen2 WHERE geometry && bbox) x WHERE zoom_level = 10
UNION ALL
-- etldoc: water_z11 -> layer_water:z11
SELECT * FROM water_z11_3575 WHERE zoom_level = 11
UNION ALL
SELECT * FROM (SELECT COALESCE(ST_Difference(bbox, ST_Union(ST_Intersection(geometry, bbox))), bbox) AS geometry, 'ocean'::text FROM north_osm_land_polygons_gen2 WHERE geometry && bbox) x WHERE zoom_level = 11
UNION ALL
-- etldoc: water_z12 -> layer_water:z12
SELECT * FROM water_z12_3575 WHERE zoom_level = 12
UNION ALL
SELECT * FROM (SELECT COALESCE(ST_Difference(bbox, ST_Union(ST_Intersection(geometry, bbox))), bbox) AS geometry, 'ocean'::text FROM north_osm_land_polygons_gen1 WHERE geometry && bbox) x WHERE zoom_level = 12
UNION ALL
-- etldoc: water_z13 -> layer_water:z13
SELECT * FROM water_z13_3575 WHERE zoom_level = 13
UNION ALL
SELECT * FROM (SELECT COALESCE(ST_Difference(bbox, ST_Union(ST_Intersection(geometry, bbox))), bbox) AS geometry, 'ocean'::text FROM north_osm_land_polygons_3575 WHERE geometry && bbox) x WHERE zoom_level = 13
UNION ALL
-- etldoc: water_z14 -> layer_water:z14_
SELECT * FROM water_z14_3575 WHERE zoom_level >= 14
UNION ALL
SELECT * FROM (SELECT COALESCE(ST_Difference(bbox, ST_Union(ST_Intersection(geometry, bbox))), bbox) AS geometry, 'ocean'::text FROM north_osm_land_polygons_3575 WHERE geometry && bbox) x WHERE zoom_level >= 14
) AS zoom_levels
WHERE geometry && bbox;
$$ LANGUAGE SQL IMMUTABLE;
|
-- Repeat all tests with the new function names.
-- postgis-users/2006-July/012764.html
SELECT ST_SRID(ST_Collect('SRID=32749;POINT(0 0)', 'SRID=32749;POINT(1 1)'));
SELECT ST_Collect('SRID=32749;POINT(0 0)', 'SRID=32740;POINT(1 1)');
select ST_asewkt(ST_makeline('SRID=3;POINT(0 0)', 'SRID=3;POINT(1 1)'));
select ST_makeline('POINT(0 0)', 'SRID=3;POINT(1 1)');
select 'ST_MakeLine1', ST_AsText(ST_MakeLine(
'POINT(0 0)'::geometry,
'LINESTRING(1 1, 10 0)'::geometry
));
-- postgis-devel/2016-February/025634.html for repeated point background
select 'ST_MakeLine_agg1', ST_AsText(ST_MakeLine(g)) from (
values ('POINT(0 0)'),
('LINESTRING(1 1, 10 0)'),
('LINESTRING(10 0, 20 20)'),
('POINT(40 4)'),
('POINT(40 4)'),
('POINT(40 5)'),
('MULTIPOINT(40 5, 40 6, 40 6, 40 7)'),
('LINESTRING(40 7, 40 8)')
) as foo(g);
select 'ST_MakeLine_agg2', ST_AsText(ST_MakeLine(g)) from (
values ('POINT(0 0)'),
('LINESTRING(0 0, 1 0)'),
('POINT(1 0)')
) as foo(g);
-- postgis-users/2006-July/012788.html
select ST_makebox2d('SRID=3;POINT(0 0)', 'SRID=3;POINT(1 1)');
select ST_makebox2d('POINT(0 0)', 'SRID=3;POINT(1 1)');
select ST_3DMakeBox('SRID=3;POINT(0 0)', 'SRID=3;POINT(1 1)');
select ST_3DMakeBox('POINT(0 0)', 'SRID=3;POINT(1 1)');
|
<reponame>SI-SOFIA/sisofia
-- phpMyAdmin SQL Dump
-- version 4.5.1
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: Apr 14, 2016 at 05:30 PM
-- Server version: 10.1.10-MariaDB
-- PHP Version: 7.0.4
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: `sofia`
--
-- --------------------------------------------------------
--
-- Table structure for table `alokasi`
--
CREATE TABLE `alokasi` (
`id_booking` int(11) NOT NULL,
`id_ruangan` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `alokasi`
--
INSERT INTO `alokasi` (`id_booking`, `id_ruangan`) VALUES
(1, 1),
(2, 2),
(3, 3),
(4, 4),
(5, 5),
(6, 6),
(7, 7),
(8, 8),
(9, 9),
(10, 10),
(11, 11),
(12, 12),
(13, 13),
(14, 14),
(15, 15),
(16, 16),
(17, 17),
(18, 18),
(19, 19),
(20, 20),
(21, 21),
(22, 22),
(23, 23),
(24, 24),
(25, 25);
-- --------------------------------------------------------
--
-- Table structure for table `booking`
--
CREATE TABLE `booking` (
`id` int(11) NOT NULL,
`id_pelanggan` int(11) NOT NULL,
`status` varchar(10) NOT NULL,
`tanggal_pemesanan` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`tanggal_checkin` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`tanggal_checkout` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`jumlah` int(11) NOT NULL,
`jenis` varchar(10) NOT NULL,
`total_harga` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `booking`
--
INSERT INTO `booking` (`id`, `id_pelanggan`, `status`, `tanggal_pemesanan`, `tanggal_checkin`, `tanggal_checkout`, `jumlah`, `jenis`, `total_harga`) VALUES
(1, 1, 'paid', '2016-04-13 17:00:00', '2016-04-13 17:00:00', '2016-04-14 17:00:00', 1, 'single', 200000),
(2, 2, 'paid', '2016-04-13 17:00:00', '2016-04-13 17:00:00', '2016-04-14 17:00:00', 1, 'single', 200000),
(3, 3, 'cancel', '2016-04-13 17:00:00', '2016-04-13 17:00:00', '2016-04-14 17:00:00', 1, 'double', 200000),
(4, 4, 'pending', '2016-04-13 17:00:00', '2016-04-13 17:00:00', '2016-04-14 17:00:00', 1, 'single', 200000),
(5, 5, 'pending', '2016-04-13 17:00:00', '2016-04-13 17:00:00', '2016-04-14 17:00:00', 1, 'double', 200000),
(6, 6, 'cancel', '2016-04-13 17:00:00', '2016-04-13 17:00:00', '2016-04-14 17:00:00', 1, 'executive', 200000),
(7, 7, 'cancel', '2016-04-13 17:00:00', '2016-04-13 17:00:00', '2016-04-14 17:00:00', 1, 'single', 200000),
(8, 8, 'paid', '2016-04-13 17:00:00', '2016-04-13 17:00:00', '2016-04-14 17:00:00', 1, 'single', 200000),
(9, 9, 'cancel', '2016-04-13 17:00:00', '2016-04-13 17:00:00', '2016-04-14 17:00:00', 1, 'single', 200000),
(10, 10, 'paid', '2016-04-13 17:00:00', '2016-04-13 17:00:00', '2016-04-14 17:00:00', 1, 'double', 200000),
(11, 11, 'paid', '2016-04-13 17:00:00', '2016-04-13 17:00:00', '2016-04-14 17:00:00', 1, 'executive', 200000),
(12, 12, 'pending', '2016-04-13 17:00:00', '2016-04-13 17:00:00', '2016-04-14 17:00:00', 1, 'double', 200000),
(13, 13, 'pending', '2016-04-13 17:00:00', '2016-04-13 17:00:00', '2016-04-14 17:00:00', 1, 'single', 200000),
(14, 14, 'cancel', '2016-04-13 17:00:00', '2016-04-13 17:00:00', '2016-04-14 17:00:00', 1, 'executive', 200000),
(15, 15, 'pending', '2016-04-13 17:00:00', '2016-04-13 17:00:00', '2016-04-14 17:00:00', 1, 'single', 200000),
(16, 16, 'paid', '2016-04-13 17:00:00', '2016-04-13 17:00:00', '2016-04-14 17:00:00', 1, 'single', 200000),
(17, 17, 'pending', '2016-04-13 17:00:00', '2016-04-13 17:00:00', '2016-04-14 17:00:00', 1, 'executive', 200000),
(18, 18, 'pending', '2016-04-13 17:00:00', '2016-04-13 17:00:00', '2016-04-14 17:00:00', 1, 'single', 200000),
(19, 19, 'paid', '2016-04-13 17:00:00', '2016-04-13 17:00:00', '2016-04-14 17:00:00', 1, 'executive', 200000),
(20, 20, 'pending', '2016-04-13 17:00:00', '2016-04-13 17:00:00', '2016-04-14 17:00:00', 1, 'single', 200000),
(21, 21, 'pending', '2016-04-13 17:00:00', '2016-04-13 17:00:00', '2016-04-14 17:00:00', 1, 'single', 200000),
(22, 22, 'paid', '2016-04-13 17:00:00', '2016-04-13 17:00:00', '2016-04-14 17:00:00', 1, 'single', 200000),
(23, 23, 'pending', '2016-04-13 17:00:00', '2016-04-13 17:00:00', '2016-04-14 17:00:00', 1, 'executive', 200000),
(24, 24, 'cancel', '2016-04-13 17:00:00', '2016-04-13 17:00:00', '2016-04-14 17:00:00', 1, 'full-day', 200000),
(25, 25, 'cancel', '2016-04-13 17:00:00', '2016-04-13 17:00:00', '2016-04-14 17:00:00', 1, 'full-day', 200000);
-- --------------------------------------------------------
--
-- Table structure for table `kamar`
--
CREATE TABLE `kamar` (
`id_ruangan` int(11) NOT NULL,
`jenis_kamar` varchar(10) NOT NULL,
`harga_kamar` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `kamar`
--
INSERT INTO `kamar` (`id_ruangan`, `jenis_kamar`, `harga_kamar`) VALUES
(1, 'executive', 200000),
(2, 'single', 200000),
(3, 'single', 200000),
(4, 'executive', 200000),
(5, 'single', 200000),
(6, 'double', 200000),
(7, 'executive', 200000),
(8, 'single', 200000),
(9, 'single', 200000),
(10, 'double', 200000),
(11, 'double', 200000),
(12, 'executive', 200000),
(13, 'double', 200000),
(14, 'single', 200000),
(15, 'double', 200000),
(16, 'single', 200000),
(17, 'executive', 200000),
(18, 'single', 200000),
(19, 'executive', 200000),
(20, 'single', 200000),
(21, 'double', 200000),
(22, 'double', 200000),
(23, 'single', 200000);
-- --------------------------------------------------------
--
-- Table structure for table `konfirmasi`
--
CREATE TABLE `konfirmasi` (
`id` int(11) NOT NULL,
`id_booking` int(11) NOT NULL,
`tanggal_konfirmasi` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`jenis_pembayaran` varchar(10) NOT NULL,
`nominal` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `konfirmasi`
--
INSERT INTO `konfirmasi` (`id`, `id_booking`, `tanggal_konfirmasi`, `jenis_pembayaran`, `nominal`) VALUES
(1, 1, '2016-04-13 17:00:00', 'lunas', 200000),
(2, 2, '2016-04-13 17:00:00', 'dp', 100000),
(3, 3, '2016-04-13 17:00:00', 'lunas', 200000),
(4, 4, '2016-04-13 17:00:00', 'dp', 100000),
(5, 5, '2016-04-13 17:00:00', 'dp', 100000),
(6, 6, '2016-04-13 17:00:00', 'lunas', 200000),
(7, 7, '2016-04-13 17:00:00', 'dp', 100000),
(8, 8, '2016-04-13 17:00:00', 'lunas', 100000),
(9, 9, '2016-04-13 17:00:00', 'dp', 200000),
(10, 10, '2016-04-13 17:00:00', 'lunas', 100000),
(11, 11, '2016-04-13 17:00:00', 'dp', 100000),
(12, 12, '2016-04-13 17:00:00', 'dp', 100000),
(13, 13, '2016-04-13 17:00:00', 'dp', 200000),
(14, 14, '2016-04-13 17:00:00', 'dp', 200000),
(15, 15, '2016-04-13 17:00:00', 'dp', 100000),
(16, 16, '2016-04-13 17:00:00', 'dp', 200000),
(17, 17, '2016-04-13 17:00:00', 'lunas', 200000),
(18, 18, '2016-04-13 17:00:00', 'dp', 200000),
(19, 19, '2016-04-13 17:00:00', 'lunas', 200000),
(20, 20, '2016-04-13 17:00:00', 'lunas', 100000),
(21, 21, '2016-04-13 17:00:00', 'dp', 100000),
(22, 22, '2016-04-13 17:00:00', 'lunas', 200000),
(23, 23, '2016-04-13 17:00:00', 'lunas', 100000),
(24, 24, '2016-04-13 17:00:00', 'lunas', 100000),
(25, 25, '2016-04-13 17:00:00', 'dp', 200000);
-- --------------------------------------------------------
--
-- Table structure for table `paket_meeting_room`
--
CREATE TABLE `paket_meeting_room` (
`paket` varchar(10) NOT NULL,
`harga` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `paket_meeting_room`
--
INSERT INTO `paket_meeting_room` (`paket`, `harga`) VALUES
('full-day', 200000),
('half-day', 100000);
-- --------------------------------------------------------
--
-- Table structure for table `pelanggan`
--
CREATE TABLE `pelanggan` (
`id` int(11) NOT NULL,
`nama` varchar(40) NOT NULL,
`alamat` varchar(60) NOT NULL,
`email` varchar(20) NOT NULL,
`nomor_hp` varchar(12) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `pelanggan`
--
INSERT INTO `pelanggan` (`id`, `nama`, `alamat`, `email`, `nomor_hp`) VALUES
(1, '<NAME>', '<NAME>, Sawoo, Ponorogo', '<EMAIL>', '082116826050'),
(2, '<NAME>', 'Jl. Kalibaru Barat Iv Rt.001/07 No.38 Cilincing, Jakarta Uta', '<EMAIL>', '08568141566'),
(3, '<NAME>', 'Jl. Sultan Syahrir no. 147 Silaing Bawah, Padang Panjang', 'hfrazier2<EMAIL>', '085740300724'),
(4, '<NAME>', 'Jl. Merkuri Utara 4 no.10 blok W133 Margahayu Raya, Bandung', '<EMAIL>', '085730354203'),
(5, '<NAME>', 'Jln Rambutan No.1066 A, Palembang', '<EMAIL>', '081224185310'),
(6, '<NAME>', 'Kp. Pekopen Rt 06/Rw 07 Desa Tambun Kec. Tambun Selatan Kab.', '<EMAIL>', '085793350088'),
(7, '<NAME>', 'Jl Jembatan Gambang Ii B/21, Jakarta Utara, Dki Jakarta', '<EMAIL>', '089665406740'),
(8, '<NAME>', 'Jl. Pengasinan Ii No.28 Rt02/002 Bekasi Timur 17115', '<EMAIL>', '085263716795'),
(9, '<NAME>', 'Jl. Sumber Resik No. 4', '<EMAIL>', '087824778650'),
(10, '<NAME>', 'Jalan Anggrek No. 35, Payakumbuh', '<EMAIL>', '085664938135'),
(11, '<NAME>', 'Kalideres Permai Blok G6 No 20 Rt 005/ Rw 014. Kalideres. Ja', '<EMAIL>', '089627761245'),
(12, '<NAME>', 'Aglik Selatan Rt3 Rw6 Semawung Daleman, Kutoarjo, Purworejo,', '<EMAIL>', '083876757757'),
(13, '<NAME>', 'Jl. Tritura No. 161-B Medan', '<EMAIL>', '081514289944'),
(14, '<NAME>', 'Cipaku Indah V no 51', '<EMAIL>', '081320397886'),
(15, '<NAME>', 'Jln. Ciwaregu No. 3B, Bandung 40121', '<EMAIL>', '08972501470'),
(16, '<NAME>', 'Jl. Urea No. 3 Komp. Pusri Kebon Sirih Kenten Palembang', '<EMAIL>', '089637983208'),
(17, '<NAME>', 'Jl. Taman Duren Sawit B1/5', '<EMAIL>', '08995179942'),
(18, '<NAME>', 'Jln. Biologi 7, Bandung', '<EMAIL>', '08566334900'),
(19, '<NAME>', 'Jalan Hijau Daun C1 No 17, Kelapa Gading, Jakarta Utara', '<EMAIL>', '087775452541'),
(20, '<NAME>', 'Jl. Kalingga No. 3 Medan 20112', '<EMAIL>', '081219705514'),
(21, '<NAME>', 'Harapan Indah Regency Bc/2, Bekasi Barat', '<EMAIL>', '081373611126'),
(22, '<NAME>', 'Jl. Danau Melintang No. 124A Medan', '<EMAIL>', '085710093690'),
(23, '<NAME>', 'Jl. Cempaka Putih Barat 21 no. 20 Jakarta Pusat 10520', '<EMAIL>', '08562113917'),
(24, '<NAME>', 'Apartemen Ambassador 2 Lt. 17 No. 2 Jalan Prof Dr.Satrio, Ja', '<EMAIL>', '08999737598'),
(25, '<NAME>', 'Jl. Sutomo No. 29 D', '<EMAIL>', '087869565758');
-- --------------------------------------------------------
--
-- Table structure for table `ruangan`
--
CREATE TABLE `ruangan` (
`id` int(11) NOT NULL,
`status` varchar(10) NOT NULL,
`kapasitas` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `ruangan`
--
INSERT INTO `ruangan` (`id`, `status`, `kapasitas`) VALUES
(1, 'available', 4),
(2, 'booked', 4),
(3, 'available', 4),
(4, 'booked', 4),
(5, 'used', 4),
(6, 'used', 4),
(7, 'available', 4),
(8, 'booked', 4),
(9, 'used', 4),
(10, 'available', 4),
(11, 'used', 4),
(12, 'used', 4),
(13, 'used', 4),
(14, 'available', 4),
(15, 'available', 4),
(16, 'used', 4),
(17, 'booked', 4),
(18, 'used', 4),
(19, 'available', 4),
(20, 'booked', 4),
(21, 'used', 4),
(22, 'used', 4),
(23, 'booked', 4),
(24, 'available', 50),
(25, 'available', 50);
-- --------------------------------------------------------
--
-- Table structure for table `ruang_pertemuan`
--
CREATE TABLE `ruang_pertemuan` (
`id_ruangan` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `ruang_pertemuan`
--
INSERT INTO `ruang_pertemuan` (`id_ruangan`) VALUES
(24),
(25);
--
-- Indexes for dumped tables
--
--
-- Indexes for table `alokasi`
--
ALTER TABLE `alokasi`
ADD PRIMARY KEY (`id_booking`,`id_ruangan`),
ADD KEY `id_ruangan` (`id_ruangan`);
--
-- Indexes for table `booking`
--
ALTER TABLE `booking`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `id_pelanggan` (`id_pelanggan`);
--
-- Indexes for table `kamar`
--
ALTER TABLE `kamar`
ADD UNIQUE KEY `id_ruangan` (`id_ruangan`);
--
-- Indexes for table `konfirmasi`
--
ALTER TABLE `konfirmasi`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `id_booking` (`id_booking`);
--
-- Indexes for table `paket_meeting_room`
--
ALTER TABLE `paket_meeting_room`
ADD PRIMARY KEY (`paket`);
--
-- Indexes for table `pelanggan`
--
ALTER TABLE `pelanggan`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `ruangan`
--
ALTER TABLE `ruangan`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `ruang_pertemuan`
--
ALTER TABLE `ruang_pertemuan`
ADD UNIQUE KEY `id_ruangan` (`id_ruangan`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `booking`
--
ALTER TABLE `booking`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=26;
--
-- AUTO_INCREMENT for table `konfirmasi`
--
ALTER TABLE `konfirmasi`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=26;
--
-- AUTO_INCREMENT for table `pelanggan`
--
ALTER TABLE `pelanggan`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=26;
--
-- AUTO_INCREMENT for table `ruangan`
--
ALTER TABLE `ruangan`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=26;
--
-- Constraints for dumped tables
--
--
-- Constraints for table `alokasi`
--
ALTER TABLE `alokasi`
ADD CONSTRAINT `alokasi_ibfk_1` FOREIGN KEY (`id_booking`) REFERENCES `booking` (`id`),
ADD CONSTRAINT `alokasi_ibfk_2` FOREIGN KEY (`id_ruangan`) REFERENCES `ruangan` (`id`);
--
-- Constraints for table `booking`
--
ALTER TABLE `booking`
ADD CONSTRAINT `booking_ibfk_1` FOREIGN KEY (`id_pelanggan`) REFERENCES `pelanggan` (`id`);
--
-- Constraints for table `kamar`
--
ALTER TABLE `kamar`
ADD CONSTRAINT `kamar_ibfk_1` FOREIGN KEY (`id_ruangan`) REFERENCES `ruangan` (`id`);
--
-- Constraints for table `konfirmasi`
--
ALTER TABLE `konfirmasi`
ADD CONSTRAINT `konfirmasi_ibfk_1` FOREIGN KEY (`id_booking`) REFERENCES `booking` (`id`);
--
-- Constraints for table `ruang_pertemuan`
--
ALTER TABLE `ruang_pertemuan`
ADD CONSTRAINT `ruang_pertemuan_ibfk_1` FOREIGN KEY (`id_ruangan`) REFERENCES `ruangan` (`id`);
/*!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 -u root -p
use mysql;
select user,host,authentication_string from mysql.user;
CREATE USER 'flowable'@'%' IDENTIFIED BY 'flowable';
update user set host='%' where user='flowable';
SELECT User, Host from mysql.user;
#GRANT ALL PRIVILEGES ON *.* TO 'flowable'@'localhost';
GRANT ALL PRIVILEGES ON *.* TO 'flowable'@'%';
FLUSH PRIVILEGES;
source /DockerDataDir/jeect-boo-db.conf/flowable-mysql-5.7.sql;
#修改root密码
mysql -u root -p
use mysql;
update mysql.user set authentication_string=password('<PASSWORD>') where user='root';
|
<reponame>allixender/gwml2-geoappschema-sql<gh_stars>0
-- downs
DROP table if exists public.aquifertypeterm;
drop SEQUENCE IF EXISTS public.aquifertypeterm_id_seq;
Drop INDEX if EXISTS aquifertypeterm_id_uindex;
Drop INDEX if EXISTS aquifertypeterm_gml_id_uindex;
-- downs
DROP table if exists public.bholeinclinationtypeterm;
drop SEQUENCE IF EXISTS public.bholeinclinationtypeterm_id_seq;
Drop INDEX if EXISTS bholeinclinationtypeterm_id_uindex;
Drop INDEX if EXISTS bholeinclinationtypeterm_gml_id_uindex;
-- downs
DROP table if exists public.bholestartpointtypeterm;
drop SEQUENCE IF EXISTS public.bholestartpointtypeterm_id_seq;
Drop INDEX if EXISTS bholestartpointtypeterm_id_uindex;
Drop INDEX if EXISTS bholestartpointtypeterm_gml_id_uindex;
-- downs
DROP table if exists public.chemicaltypeterm;
drop SEQUENCE IF EXISTS public.chemicaltypeterm_id_seq;
Drop INDEX if EXISTS chemicaltypeterm_id_uindex;
Drop INDEX if EXISTS chemicaltypeterm_gml_id_uindex;
-- downs
DROP table if exists public.conductivityconfinementtypeterm;
drop SEQUENCE IF EXISTS public.conductivityconfinementtypeterm_id_seq;
Drop INDEX if EXISTS conductivityconfinementtypeterm_id_uindex;
Drop INDEX if EXISTS conductivityconfinementtypeterm_gml_id_uindex;
-- downs
DROP table if exists public.constituentrelationmechanismtypeterm;
drop SEQUENCE IF EXISTS public.constituentrelationmechanismtypeterm_id_seq;
Drop INDEX if EXISTS constituentrelationmechanismtypeterm_id_uindex;
Drop INDEX if EXISTS constituentrelationmechanismtypeterm_gml_id_uindex;
-- downs
DROP table if exists public.constituentrelationtypeterm;
drop SEQUENCE IF EXISTS public.constituentrelationtypeterm_id_seq;
Drop INDEX if EXISTS constituentrelationtypeterm_id_uindex;
Drop INDEX if EXISTS constituentrelationtypeterm_gml_id_uindex;
-- downs
DROP table if exists public.constituentrelationtypeterm;
drop SEQUENCE IF EXISTS public.constituentrelationtypeterm_id_seq;
Drop INDEX if EXISTS constituentrelationtypeterm_id_uindex;
Drop INDEX if EXISTS constituentrelationtypeterm_gml_id_uindex;
-- downs
DROP table if exists public.elevationtypeterm;
drop SEQUENCE IF EXISTS public.elevationtypeterm_id_seq;
Drop INDEX if EXISTS elevationtypeterm_id_uindex;
Drop INDEX if EXISTS elevationtypeterm_gml_id_uindex;
-- downs
DROP table if exists public.environmentaldomaintypeterm;
drop SEQUENCE IF EXISTS public.environmentaldomaintypeterm_id_seq;
Drop INDEX if EXISTS environmentaldomaintypeterm_id_uindex;
Drop INDEX if EXISTS environmentaldomaintypeterm_gml_id_uindex;
-- downs
DROP table if exists public.flowpersistencetypeterm;
drop SEQUENCE IF EXISTS public.flowpersistencetypeterm_id_seq;
Drop INDEX if EXISTS flowpersistencetypeterm_id_uindex;
Drop INDEX if EXISTS flowpersistencetypeterm_gml_id_uindex;
-- downs
DROP table if exists public.headworktypeterm;
drop SEQUENCE IF EXISTS public.headworktypeterm_id_seq;
Drop INDEX if EXISTS headworktypeterm_id_uindex;
Drop INDEX if EXISTS headworktypeterm_gml_id_uindex;
-- downs
DROP table if exists public.mixturetypeterm;
drop SEQUENCE IF EXISTS public.mixturetypeterm_id_seq;
Drop INDEX if EXISTS mixturetypeterm_id_uindex;
Drop INDEX if EXISTS mixturetypeterm_gml_id_uindex;
-- downs
DROP table if exists public.organismtypeterm;
drop SEQUENCE IF EXISTS public.organismtypeterm_id_seq;
Drop INDEX if EXISTS organismtypeterm_id_uindex;
Drop INDEX if EXISTS organismtypeterm_gml_id_uindex;
-- downs
DROP table if exists public.porositytypeterm;
drop SEQUENCE IF EXISTS public.porositytypeterm_id_seq;
Drop INDEX if EXISTS porositytypeterm_id_uindex;
Drop INDEX if EXISTS porositytypeterm_gml_id_uindex;
-- downs
DROP table if exists public.sitetypeterm;
drop SEQUENCE IF EXISTS public.sitetypeterm_id_seq;
Drop INDEX if EXISTS sitetypeterm_id_uindex;
Drop INDEX if EXISTS sitetypeterm_gml_id_uindex;
-- downs
DROP table if exists public.spatialconfinementtypeterm;
drop SEQUENCE IF EXISTS public.spatialconfinementtypeterm_id_seq;
Drop INDEX if EXISTS spatialconfinementtypeterm_id_uindex;
Drop INDEX if EXISTS spatialconfinementtypeterm_gml_id_uindex;
-- downs
DROP table if exists public.specialisedzoneareatypeterm;
drop SEQUENCE IF EXISTS public.specialisedzoneareatypeterm_id_seq;
Drop INDEX if EXISTS specialisedzoneareatypeterm_id_uindex;
Drop INDEX if EXISTS specialisedzoneareatypeterm_gml_id_uindex;
-- downs
DROP table if exists public.springcausetypeterm;
drop SEQUENCE IF EXISTS public.springcausetypeterm_id_seq;
Drop INDEX if EXISTS springcausetypeterm_id_uindex;
Drop INDEX if EXISTS springcausetypeterm_gml_id_uindex;
-- downs
DROP table if exists public.springconstructiontypeterm;
drop SEQUENCE IF EXISTS public.springconstructiontypeterm_id_seq;
Drop INDEX if EXISTS springconstructiontypeterm_id_uindex;
Drop INDEX if EXISTS springconstructiontypeterm_gml_id_uindex;
-- downs
DROP table if exists public.springtypeterm;
drop SEQUENCE IF EXISTS public.springtypeterm_id_seq;
Drop INDEX if EXISTS springtypeterm_id_uindex;
Drop INDEX if EXISTS springtypeterm_gml_id_uindex;
-- downs
DROP table if exists public.statetypeterm;
drop SEQUENCE IF EXISTS public.statetypeterm_id_seq;
Drop INDEX if EXISTS statetypeterm_id_uindex;
Drop INDEX if EXISTS statetypeterm_gml_id_uindex;
-- downs
DROP table if exists public.surfacetypeterm;
drop SEQUENCE IF EXISTS public.surfacetypeterm_id_seq;
Drop INDEX if EXISTS surfacetypeterm_id_uindex;
Drop INDEX if EXISTS surfacetypeterm_gml_id_uindex;
-- downs
DROP table if exists public.waterwellusetypeterm;
drop SEQUENCE IF EXISTS public.waterwellusetypeterm_id_seq;
Drop INDEX if EXISTS waterwellusetypeterm_id_uindex;
Drop INDEX if EXISTS waterwellusetypeterm_gml_id_uindex;
-- downs
DROP table if exists public.wellstatustypeterm;
drop SEQUENCE IF EXISTS public.wellstatustypeterm_id_seq;
Drop INDEX if EXISTS wellstatustypeterm_id_uindex;
Drop INDEX if EXISTS wellstatustypeterm_gml_id_uindex;
|
<filename>tests/unittests/general/variable_3.sql
--------------------------------------------------------------------------
-- testing variables
--------------------------------------------------------------------------
.eval print(parent);
.eval parent = "asdf";
.eval print(parent);
.eval print(asdf);
|
<reponame>Rob--W/phabricator<gh_stars>1000+
RENAME TABLE {$NAMESPACE}_pastebin.pastebin_pastetransaction_comment
TO {$NAMESPACE}_paste.paste_transaction_comment;
|
<filename>db_schema.sql
-- MySQL dump 10.13 Distrib 5.1.43, for redhat-linux-gnu (x86_64)
--
-- Host: localhost Database: ircplanet_services
-- ------------------------------------------------------
-- Server version 5.1.43
/*!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 `accounts`
--
DROP TABLE IF EXISTS `accounts`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `accounts` (
`account_id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(20) NOT NULL DEFAULT '',
`password` varchar(32) NOT NULL DEFAULT '',
`email` varchar(100) NOT NULL DEFAULT '',
`info_line` varchar(150) NOT NULL DEFAULT '',
`fakehost` varchar(100) NOT NULL,
`register_ts` int(11) NOT NULL DEFAULT '0',
`lastseen_ts` int(11) NOT NULL DEFAULT '0',
`suspend` tinyint(1) NOT NULL DEFAULT '0',
`no_purge` tinyint(1) NOT NULL DEFAULT '0',
`auto_op` tinyint(1) NOT NULL DEFAULT '1',
`auto_voice` tinyint(1) NOT NULL DEFAULT '1',
`enforce_nick` tinyint(1) NOT NULL DEFAULT '0',
`create_date` datetime DEFAULT NULL,
`update_date` datetime DEFAULT NULL,
PRIMARY KEY (`account_id`),
KEY `name` (`name`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 PACK_KEYS=1 COMMENT='User accounts';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `channel_access`
--
DROP TABLE IF EXISTS `channel_access`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `channel_access` (
`access_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`chan_id` int(11) NOT NULL DEFAULT '0',
`user_id` int(11) NOT NULL DEFAULT '0',
`level` smallint(6) NOT NULL DEFAULT '0',
`suspend` tinyint(1) NOT NULL DEFAULT '0',
`protect` tinyint(1) NOT NULL DEFAULT '0',
`auto_op` tinyint(1) NOT NULL DEFAULT '1',
`auto_voice` tinyint(1) NOT NULL DEFAULT '0',
PRIMARY KEY (`access_id`),
KEY `chan_id` (`chan_id`),
KEY `user_id` (`user_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT='Channel Access Records';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `channel_bans`
--
DROP TABLE IF EXISTS `channel_bans`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `channel_bans` (
`ban_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`chan_id` int(11) NOT NULL DEFAULT '0',
`user_id` int(11) NOT NULL DEFAULT '0',
`set_ts` int(11) NOT NULL DEFAULT '0',
`expire_ts` int(11) NOT NULL DEFAULT '0',
`level` smallint(6) NOT NULL DEFAULT '0',
`mask` varchar(100) NOT NULL DEFAULT '',
`reason` varchar(100) NOT NULL DEFAULT '',
PRIMARY KEY (`ban_id`),
KEY `chan_id` (`chan_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `channels`
--
DROP TABLE IF EXISTS `channels`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `channels` (
`channel_id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) NOT NULL DEFAULT '',
`register_ts` int(11) NOT NULL DEFAULT '0',
`create_ts` int(11) NOT NULL DEFAULT '0',
`register_date` datetime DEFAULT NULL,
`create_date` datetime DEFAULT NULL,
`update_date` datetime DEFAULT NULL,
`purpose` varchar(200) NOT NULL DEFAULT '',
`url` varchar(255) NOT NULL DEFAULT '',
`def_topic` varchar(255) NOT NULL DEFAULT '',
`def_modes` varchar(20) NOT NULL DEFAULT 'nt',
`info_lines` tinyint(1) NOT NULL DEFAULT '0',
`suspend` tinyint(1) NOT NULL DEFAULT '0',
`no_purge` tinyint(1) NOT NULL DEFAULT '0',
`auto_op` tinyint(1) NOT NULL DEFAULT '1',
`auto_op_all` tinyint(1) NOT NULL DEFAULT '0',
`auto_voice` tinyint(1) NOT NULL DEFAULT '0',
`auto_voice_all` tinyint(1) NOT NULL DEFAULT '0',
`auto_limit` tinyint(1) NOT NULL DEFAULT '0',
`auto_limit_buffer` tinyint(4) NOT NULL DEFAULT '5',
`auto_limit_wait` tinyint(4) NOT NULL DEFAULT '30',
`auto_topic` tinyint(1) NOT NULL DEFAULT '0',
`strict_op` tinyint(1) NOT NULL DEFAULT '0',
`strict_voice` tinyint(1) NOT NULL DEFAULT '0',
`strict_modes` tinyint(1) NOT NULL DEFAULT '0',
`strict_topic` tinyint(1) NOT NULL DEFAULT '0',
`topic_lock` tinyint(1) NOT NULL DEFAULT '0',
`no_op` tinyint(1) NOT NULL DEFAULT '0',
`no_voice` tinyint(1) NOT NULL DEFAULT '0',
PRIMARY KEY (`channel_id`),
KEY `name` (`name`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT='Registered Channels';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `cs_admins`
--
DROP TABLE IF EXISTS `cs_admins`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `cs_admins` (
`user_id` int(11) NOT NULL DEFAULT '0',
`level` int(11) NOT NULL DEFAULT '0',
PRIMARY KEY (`user_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT='Nickserv Admins';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `cs_badchans`
--
DROP TABLE IF EXISTS `cs_badchans`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `cs_badchans` (
`badchan_id` int(11) NOT NULL AUTO_INCREMENT,
`chan_mask` varchar(50) NOT NULL,
`create_date` datetime DEFAULT NULL,
PRIMARY KEY (`badchan_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT='CS Bad Channels';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `ds_admins`
--
DROP TABLE IF EXISTS `ds_admins`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ds_admins` (
`user_id` int(11) NOT NULL DEFAULT '0',
`level` int(11) DEFAULT NULL,
PRIMARY KEY (`user_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT='Defense Service Admins';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `ds_whitelist`
--
DROP TABLE IF EXISTS `ds_whitelist`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ds_whitelist` (
`whitelist_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`mask` varchar(200) NOT NULL,
`create_date` datetime NOT NULL,
`update_date` datetime NOT NULL,
PRIMARY KEY (`whitelist_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `help`
--
DROP TABLE IF EXISTS `help`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `help` (
`service` varchar(5) NOT NULL DEFAULT '',
`minlevel` int(11) NOT NULL DEFAULT '0',
`topic` varchar(20) NOT NULL DEFAULT '',
`text` text NOT NULL,
PRIMARY KEY (`service`,`topic`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT='Commands Help';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `help`
--
LOCK TABLES `help` WRITE;
/*!40000 ALTER TABLE `help` DISABLE KEYS */;
INSERT INTO `help` VALUES
('CS',0,'access','Displays access level information for users having access on\r\nthe specified channel. The search mask can either be a service\r\naccount name or a search mask (where * and ? are wildcards).\r\n\r\n%BExample:%B /msg %N access #southpole brian\r\n /msg %N access #southpole br*\r\n /msg %N access #southpole *'),
('CS',0,'adduser','Grants a user access to the channel. You may optionally\r\nspecify the user\'s level. If no level is provided, the\r\ndefault of 100 is used.\r\n'),
('CS',0,'ban','Sets a ban in the specified channel. An optional ban duration,\r\naccess level, and reason may be provided.\r\n\r\nDurations must use the following format: %B<number><unit>%B\r\nThe unit can be any of the following and can be combined as\r\nlong as larger units come first.\r\n %Bw%B - weeks\r\n %Bd%B - days\r\n %Bh%B - hours\r\n %Bm%B - minutes\r\n %Bs%B - seconds\r\n\r\nExamples:\r\n %B2w%B - Two weeks.\r\n %B5d12h%B - Five days and twelve hours.\r\n %B90s%B - Ninety seconds.\r\n\r\nAn access level can be provided to prevent other users with\r\nlower access levels from removing the ban. For example, a ban\r\nwith a level of 200 would prevent anyone with less than level\r\n200 access from removing the ban. You cannot use a level\r\nthat is higher than your own.\r\n\r\n%BExamples:%B /msg %N ban #southpole *!*flooder@*.aol.com\r\n /msg %N ban #southpole *!*@*.ca 5w 200 No canadians.\r\n /msg %N ban #southpole flooder 30d'),
('CS',0,'banlist','Shows the channel\'s current ban list. An optional search mask\r\nmay be used in order to find information on a specific ban.\r\n\r\n%BExamples:%B /msg %N banlist #southpole *flooder*\r\n /msg %N banlist #southpole <EMAIL>'),
('CS',0,'chaninfo','Displays various channel settings for the specified channel, if it \r\nis registered.\r\n\r\n%BExample:%B /msg %N chaninfo #southpole'),
('CS',0,'clearbans','Clears all bans in the channel.\r\n'),
('CS',0,'clearmodes','Clears all modes in the specified channel.'),
('CS',0,'deop','Removes op status from the specified user(s) in the channel.\r\nIf no nicks are provided, %N will deop you.'),
('CS',0,'deopall','Removes op status from every user in the specified channel.\r\n'),
('CS',0,'devoice','Removes a voice from the specified user(s) in the channel. If\r\nno nicks are provided, %N will devoice you.'),
('CS',0,'devoiceall','Removes voices from every user in the specified channel.'),
('CS',0,'do','Has the bot perform a public action (/me) in the channel.'),
('CS',0,'help','%N is a channel service designed to help users maintain\r\nownership and control over their channels. Channels are\r\nregistered on a first-come, first-served basis. Users can\r\nregister up to %MAX_CHAN_REGS% channels with the %Bregister%B command.\r\n\r\nTo get a list of commands that are available to you, simply\r\ntype %Bshowcommands%B. To get a list of commands available\r\nto you on a specific channel, type %Bshowcommands #channel%B.\r\n\r\nIf you wish to look up usage information about a command,\r\ntype %Bhelp commandname%B, where commandname is the command\r\nyou need help with.'),
('CS',0,'invite','Invites the specified user(s) to the channel. If no nicks are\r\nspecified, %N will only invite you.\r\n\r\n%BExamples:%B invite #southpole brian tsunam1\r\n invite #southpole'),
('CS',0,'kick','Kicks the specified user from the channel. An optional reason\r\nmay be specified for the kick.'),
('CS',0,'kickall','Kicks all users from the specified channel. The user issuing this\r\ncommand will not be kicked.\r\n'),
('CS',0,'kickban','Kicks and bans the specified user from the channel. A hostmask\r\nmay be specified instead of a nickname, in which case %N\r\nwill kick and ban all users matching that mask.\r\n\r\nBans set as a result of this command will last for one hour,\r\nand will have a level of 75.\r\n\r\n%BExamples:%B kickban #southpole lamer\r\n kickban #southpole whoremonger Quiet please.\r\n kickban #southpole *!*<EMAIL> Down with AOL.'),
('CS',0,'kickbanall','Deops, kicks and bans all users from the specified channel. The user\r\nissuing this command will not be kicked or banned.\r\n'),
('CS',0,'mode','Sets the specified mode(s) in the channel.'),
('CS',0,'moderate','Moderates the channel (+m) and grants voice status to every\r\nnon-op.\r\n'),
('CS',0,'moduser autoop','%BSyntax:%B moduser <channel> <username> autoop [on|off]\r\n\r\nSets whether the specified user will be auto-opped on the channel\r\nonce they have logged in to their account and joined the channel.\r\n\r\nOmitting the ON or OFF parameter will cause the user\'s existing\r\nauto-op setting to be toggled.\r\n\r\n%BExample:%B /msg %N moduser #southpole brian autoop on\r\n /msg %N moduser #southpole brian autoop'),
('CS',0,'moduser autovoice','%BSyntax:%B moduser <channel> <username> autovoice [on|off]\r\n\r\nSets whether the specified user will be auto-voiced on the channel\r\nonce they have logged in to their account and joined the channel.\r\n\r\nOmitting the ON or OFF parameter will cause the user\'s existing\r\nauto-voice setting to be toggled.\r\n\r\n%BExample:%B /msg %N moduser #southpole brian autovoice on\r\n /msg %N moduser #southpole brian autovoice'),
('CS',0,'moduser level','%BSyntax:%B moduser <channel> <username> level <level>\r\n\r\nChanges the specified user\'s access level on the channel. Access \r\nlevels range from 1 to 500, and you may only set someone\'s access\r\nlevel to be less than your own.\r\n\r\n%BExample:%B /msg %N moduser #southpole tsunam1 level 499'),
('CS',0,'moduser protect','%BSyntax:%B moduser <channel> <username> protect [on|off]\r\n\r\nSets whether the specified user will be protected from kicks, bans,\r\ndeops, and devoices on the channel that are performed by persons\r\nwith either no access, or lesser access.\r\n\r\nOmitting the ON or OFF parameter will cause the user\'s existing\r\nprotection setting to be toggled.\r\n\r\n%BExample:%B /msg %N moduser #southpole brian protect on\r\n /msg %N moduser #southpole brian protect'),
('CS',0,'moduser','Modifies a user\'s access record on the channel. The following\r\naccess settings may be modified with this command:\r\n\r\n%BLEVEL%B [new level] Sets the user\'s access level.\r\n%BAUTOOP%B [on|off] Toggles the user\'s autoop flag.\r\n%BAUTOVOICE%B [on|off] Toggles the user\'s autovoice flag.\r\n\r\nNote: The autoop and autovoice flags may be ignored if the\r\nuser turns them off for their user account, or if the channel\r\nautoop and autovoice flags are turned off.\r\n\r\n%BExamples:%B moduser #southpole tsunam1 level 499\r\n moduser #southpole brian autoop on\r\n'),
('CS',0,'op','Grants op status to the specified user(s) in the channel. If\r\nno nicks are provided, %N will op you.'),
('CS',0,'opall','Grants op status to every user in the specified channel.\r\n'),
('CS',0,'part','Causes %N to part the specified channel.\r\n\r\n%BExample:%B /msg %N part #southpole'),
('CS',0,'quote','Sends the specified line as raw text to %S\'s uplink.\r\n\r\n%BUSE WITH CAUTION. RAW TEXT IS NOT PARSED FOR ACCURACY NOR IS ITS%B\r\n%BEFFECTS PERSISTED IN MEMORY BEFORE BEING SENT ACROSS THE WIRE.%B\r\n\r\n%BYOU SHOULD BE WELL-VERSED IN RAW P10 PROTOCOL BEFORE USING THIS.%B'),
('CS',0,'rdefmodes','Resets the channel modes to the default. Use the %Bset defmodes%B\r\ncommand to set the default channel modes.\r\n'),
('CS',0,'rdeftopic','Resets the topic to the default topic. Use the %Bset deftopic%B\r\ncommand to set the default topic.'),
('CS',0,'register','Registers a channel with the specified purpose. You may \r\nregister up to %MAX_CHAN_REGS% channels.'),
('CS',0,'remuser','Removes a user\'s access from the channel. You may use the \r\n%Baccess%B command to see who has channel access.\r\n'),
('CS',0,'say','Has the bot speak publicly in the channel.'),
('CS',0,'set autolimit','%BSyntax:%B set <channel> autolimit [on|off]\r\n\r\nToggles automatic size limiting for the channel. If this\r\nsetting is enabled, %N will automatically set a size limit\r\non the channel approximately N seconds after a user joins,\r\nwhere N is the number of seconds specified by the \r\nAUTOLIMITWAIT setting. The size limit it sets will be\r\nequivalent to the number of users in the channel plus Z,\r\nwhere Z is the number specified by the AUTOLIMITBUFFER\r\nsetting.\r\n\r\nFor example, assume the following settings for #southpole:\r\n autolimit: on\r\n autolimitwait: 30\r\n autolimitbuffer: 5\r\n\r\n30 seconds after a user joins #southpole, %N will wait 30\r\nseconds before setting a limit of N+5, where N is the current\r\nnumber of users in the channel.\r\n\r\nIf a user joins #southpole 30 seconds after the first user,\r\n%N will wait an additional 30 seconds before setting the\r\nnew limit.\r\n\r\n%BExamples:%B /msg %N set #southpole autolimit on\r\n /msg %N set #southpole autolimit off'),
('CS',0,'set autolimitbuffer','%BSyntax:%B set <channel> autolimitbuffer <number>\r\n\r\nSets the auto limit buffer, or the number that will be added\r\nto the current channel user count when %N sets an automatic\r\nlimit. The buffer must be between %MIN_CHAN_AUTOLIMIT_BUFFER% and %MAX_CHAN_AUTOLIMIT_BUFFER%.\r\n\r\n%BExample:%B set #southpole autolimitbuffer 5\r\n\r\nFor more information, use %Bhelp set autolimit%B.'),
('CS',0,'set autolimitwait','%BSyntax:%B set <channel> autolimitwait <seconds>\r\n\r\nSets the number of seconds that %N will wait before\r\nsetting an auto limit. The number of seconds must\r\nbe between %MIN_CHAN_AUTOLIMIT_WAIT% and %MAX_CHAN_AUTOLIMIT_WAIT% seconds.\r\n\r\n%BExample:%B set #southpole autolimitwait 60\r\n\r\nFor more information, use %Bhelp set autolimit%B.'),
('CS',0,'set autoop','%BSyntax:%B set <channel> autoop [on|off]\r\n\r\nToggles automatic ops for users who have proper access.\r\nThis setting may be ignored if a user has autoop turned off\r\nfor their user account, or if their channel access has the\r\nautoop flag turned off (see the %Bmoduser%B command).'),
('CS',0,'set autoopall','%BSyntax:%B set <channel> autoopall [on|off]\r\n\r\nToggles automatic ops for everyone that enters the channel,\r\neven if they are not registered with services.'),
('CS',0,'set autotopic','%BSyntax:%B set <channel> autotopic [on|off]\r\n\r\nToggles automatic topic reset every 30 minutes when the channel\r\nis active (if someone has joined recently). The topic will be\r\nreset to the default topic.'),
('CS',0,'set autovoice','%BSyntax:%B set <channel> autovoice [on|off]\r\n\r\nToggles automatic voices for users who have proper access.\r\nThis setting may be ignored if a user has autovoice turned off\r\nfor their user account, or if their channel access has the\r\nautovoice flag turned off (see the %Bmoduser%B command).'),
('CS',0,'set autovoiceall','%BSyntax:%B set <channel> autovoiceall [on|off]\r\n\r\nToggles automatic voices for everyone that enters the channel,\r\neven if they are not registered with services.'),
('CS',0,'set defmodes','%BSyntax:%B set <channel> defmodes [modes]\r\n\r\nSets the default channel modes, which are automatically set\r\nwhen %N joins the network.\r\n\r\n%BExamples:%B set defmodes +nt\r\n set defmodes +ntsk key\r\n set defmodes +ntl 20\r\n'),
('CS',0,'set deftopic','%BSyntax:%B set <channel> deftopic [topic]\r\n\r\n\r\nSets the default topic, which is automatically set when %N\r\njoins the network.'),
('CS',0,'set infolines','%BSyntax:%B set <channel> infolines [on|off]\r\n\r\nToggles the display of infolines when a registered user with\r\nan infoline joins the channel.'),
('CS',0,'set purpose','%BSyntax:% set <channel> purpose [purpose]\r\n\r\nSets the channel\'s purpose.\r\n'),
('CS',0,'set strictmodes','%BSyntax:%B set <channel> strictmodes [on|off]\r\n\r\nToggles strict modes. If enabled, %N will undo any channel\r\nmode changes that are not performed with the %Bmode%B command.\r\n\r\n%BExample:%B set #southpole strictmodes on\r\n set #southpole strictmodes off'),
('CS',0,'set strictop','%BSyntax:%B set <channel> strictop [on|off]\r\n\r\nToggles strict ops. If enabled, %N will always deop any\r\nusers that do not have channel access.\r\n\r\n%BExample:%B set #southpole strictop on\r\n set #southpole strictop off'),
('CS',0,'set stricttopic','%BSyntax:%B set <channel> stricttopic [on|off]\r\n\r\nToggles strict topic. If enabled, %N will reset the \r\ntopic if anyone tries to change it without using the %Btopic%B\r\ncommand.\r\n\r\n%BExample:%B set #southpole stricttopic on\r\n set #southpole stricttopic off'),
('CS',0,'set strictvoice','%BSyntax:%B set <channel> strictvoice [on|off]\r\n\r\nToggles strict voices. If enabled, %N will always devoice\r\nany users that do not have channel access.\r\n\r\n%BExample:%B set #southpole strictvoice on\r\n set #southpole strictvoice off'),
('CS',0,'set topiclock','%BSyntax:%B set <channel> topiclock [on|off]\r\n\r\nToggles a complete lock of the topic to prevent it from being\r\nchanged with /topic, even by channel operators. It must be changed\r\nvia the TOPIC command.'),
('CS',0,'set url','%BSyntax:%B set <channel> url [address]\r\n\r\nSets the channel\'s web site address.\r\n'),
('CS',0,'set','Changes various channel settings. The following is a list\r\nof all settings that can be changed with this command:\r\n\r\n%BPURPOSE%B Purpose\r\n%BURL%B Web site address\r\n%BDEFTOPIC%B Default topic\r\n%BDEFMODES%B Default channel modes\r\n%BINFOLINES%B Display user info lines upon join\r\n%BAUTOOP%B Enables auto opping\r\n%BAUTOOPALL%B Automatically ops everyone upon join\r\n%BAUTOVOICE%B Enables auto voicing\r\n%BAUTOVOICEALL%B Automatically voices everyone upon join\r\n%BAUTOLIMIT%B Enables automatic channel limits\r\n%BAUTOLIMITBUFFER%B Buffer for autolimit\r\n%BAUTOLIMITWAIT%B Delay for autolimit (in seconds)\r\n%BAUTOTOPIC%B Resets topic every 30 mins\r\n%BTOPICLOCK%B Protects against topic changes via /topic\r\n%BSTRICTOP%B Enables strict ops\r\n%BSTRICTVOICE%B Enables strict voices\r\n%BSTRICTTOPIC%B Enables strict topic\r\n%BSTRICTMODES%B Enables strict channel modes\r\n\r\nFor more details on a setting, /msg %N help set <setting>.\r\nFor example: /msg %N help set autoop\r\n'),
('CS',0,'showcommands','Lists all commands available to you.'),
('CS',0,'topic','Sets the topic in the specified channel.'),
('CS',0,'unban','Removes a ban in the specified channel.'),
('CS',0,'unreg','Unregisters the specified channel. All channel settings, access\r\ninformation, and bans will be %Bpermanently deleted.%B\r\n\r\n%BPLEASE USE THIS COMMAND WITH CAUTION.%B\r\n%BDeleted channel data CANNOT be recovered.%B\r\n\r\n%BExample:%B /msg %N unreg #southpole'),
('CS',0,'uptime','Shows %N\'s running time and bandwidth usage.'),
('CS',0,'verify','Tells whether the specified nickname is a valid channel services\r\nadministrator or representative, or if they are simply a user.\r\n\r\n%BExample:%B /msg %N verify brian'),
('CS',0,'voice','Grants a voice to the specified user(s) in the channel. If no\r\nnicks are provided, %N will voice you.'),
('CS',0,'voiceall','Grants voices to every user in the specified channel.'),
('CS',501,'addadmin','Adds a user to %N\'s administrator access list with the specified\r\nlevel.\r\n\r\n%BExamples:%B /msg %N addadmin s1amson 800\r\n\r\n'),
('CS',501,'addbad','Adds a word to the bad words list, which prevents users from\r\nregistering a channel whose name contains that word.\r\n\r\n%BExample:%B /msg %N addbad warez'),
('CS',501,'adminreg','Registers the specified channel and sets the specified user name as\r\nthe new channel\'s owner. You may optionally specify the channel\'s\r\npurpose.\r\n\r\n%BExample:%B /msg %N adminreg #help HelpfulGuy Official help channel\r\n /msg %N adminreg #opers AdminGal'),
('CS',501,'deladmin','Removes a user from %N\'s administrator access list.\r\n\r\n%BExamples:%B /msg %N deladmin fiddy\r\n\r\n'),
('CS',501,'delchan','Unregisters the specified channel. All channel settings, access\r\ninformation, and bans will be %Bpermanently deleted.%B\r\n\r\n%BPLEASE USE THIS COMMAND WITH CAUTION.%B\r\n%BDeleted channel data CANNOT be recovered.%B\r\n\r\n%BExample:%B /msg %N delchan #warez'),
('CS',501,'die','Use the %Bdie%B command to terminate the service, effectively\r\nremoving it from the network. You may optionally provide a\r\nreason that will be used in each bot\'s quit message, as well\r\nas the server quit message.\r\n\r\nUse this command carefully.'),
('CS',501,'rembad','Removes a word from the list of words that cannot appear in\r\nregistered channel names.\r\n\r\n%BExample:%B /msg %N rembad warez'),
('CS',501,'reop','Forces %S to reop %N in any channels where it\r\ndoes not currently have chanop status.'),
('CS',501,'set nopurge','%BSyntax:%B set <channel> nopurge [on|off]\r\n\r\nToggles the channel\'s nopurge setting, which, if turned ON, will\r\nprevent %N from unregistering the channel when any 500-level owner\r\non the channel has not logged in for an extended period of time.'),
('CS',501,'show admins','Displays %N\'s administrator access list with each administrator\'s\r\nname, level, and e-mail address.\r\n\r\n%BExample:%B /msg %N show admins'),
('CS',501,'show bad','Displays the list of words that are not allowed to appear in \r\nregistered channel names.'),
('CS',501,'show','Displays details on various admin-level settings. The following \r\nis a list of all settings whose details can be shown.\r\n\r\n%BADMINS%B The list of users with admin-level access to %N.\r\n%BBAD%B The list of words that are not allowed to appear in\r\n registered channel names.\r\n\r\n%BExample:%B /msg %N show admins\r\n\r\nFor more details on a setting, /msg %N help show <setting>.\r\n%BExample:%B /msg %N help show admins'),
('DS',0,'help','%N is a service designed to protect the network from unwanted\r\nspam and abuse.\r\n\r\nTo get a list of commands that are available to you, simply\r\ntype %B/msg %N showcommands%B.\r\n\r\nIf you wish to look up usage information about a command,\r\ntype %B/msg %N help commandname%B, where commandname is the \r\ncommand you need help with.'),
('DS',0,'showcommands','Lists all commands available to you.'),
('DS',0,'uptime','Show\'s the bot\'s running time and bandwidth usage.'),
('DS',500,'access','Displays access level information for users having access on %N.\r\nAn account name mask or a full account name can be specified.\r\n\r\n%BExamples:%B /msg %N access brian\r\n /msg %N access br*\r\n /msg %N access *'),
('DS',500,'adduser','Adds a user to %N\'s access list with the specified level.\r\n\r\n%BExamples:%B adduser s1amson 800'),
('DS',500,'addwhite','Adds a nick!user@host mask to the white list of masks that should \r\nbe exempt from scanning and G-lining by %N.\r\n\r\nThis is especially helpful if you have recurring false positives\r\nthat follow a particular nick!user@host pattern.\r\n\r\n%BExamples:%B /msg %N addwhite *@192.168.127.12\r\n /msg %N addwhite coderman!*coderman@*\r\n /msg %N addwhite coderman*@*'),
('DS',500,'inviteme','Invites you to %N\'s command reporting channel.'),
('DS',500,'moduser level','Update\'s the specified user\'s access level on %N.\r\n\r\n%BExample:%B /msg %N moduser s1amson level 900'),
('DS',500,'moduser','Allows you to change settings for a user in %N\'s access list.\r\nThe list of allowed settings are as follows:\r\n\r\n%BLEVEL%B Change the user\'s access level.\r\n\r\nFor more information on a specific setting, please use\r\n/msg %N help moduser <setting>'),
('DS',500,'quote','Sends the specified line as raw text to %S\'s uplink.\r\n\r\n%BUSE WITH CAUTION. RAW TEXT IS NOT PARSED FOR ACCURACY NOR IS ITS%B\r\n%BEFFECTS PERSISTED IN MEMORY BEFORE BEING SENT ACROSS THE WIRE.%B\r\n\r\n%BYOU SHOULD BE WELL-VERSED IN RAW P10 PROTOCOL BEFORE USING THIS.%B'),
('DS',500,'remuser','Removes a user from %N\'s access list.\r\n\r\n%BExamples:%B /msg %N remuser fiddy'),
('DS',500,'remwhite','Removes a mask from the white list of nick!user@host masks that \r\nshould be exempt from scanning and G-lining by %N.\r\n\r\n%BExample:%B /msg %N remwhite *@172.16.58.31\r\n'),
('DS',500,'showwhite','Shows all nick!user@host masks that are on the white list of masks \r\nthat should be exempt from scanning and G-lining by %N.'),
('DS',500,'die','Use the %Bdie%B command to terminate the service, effectively\r\nremoving it from the network. You may optionally provide a\r\nreason that will be used in each bot\'s quit message, as well\r\nas the server quit message.\r\n\r\nUse this command carefully.'),
('NS',0,'ghost','Logs you in to your account on %N, and issues a KILL against\r\nsomeone who is using your nick, or your ghost if you were \r\ndisconnected and it has not timed out yet. Note that you %Bmust%B \r\nuse this command securely.\r\n\r\nIf you do not provide an account name and password, %N will assume \r\nyou want to ghost your current logged-in account name.\r\n\r\n\r\n%BExample:%B /msg %N@%S ghost myaccount myPassword'),
('NS',0,'help','%N is a nickname and account service designed as a central\r\nauthentication point for all other network services.\r\n\r\nTo get a list of commands that are available to you, simply\r\ntype %B/msg %N showcommands%B.\r\n\r\nIf you wish to look up usage information about a command,\r\ntype %B/msg %N help commandname%B, where commandname is the command\r\nyou need help with.'),
('NS',0,'info','Displays information about the specified account name.\r\n\r\n%BExample:%B\r\n /msg %N info joebob'),
('NS',0,'inviteme','Invites you to %N\'s command reporting channel.'),
('NS',0,'login','Logs you in to your account on %N. Note that you %Bmust%B use\r\nthis command securely. If you do not provide an account name,\r\n%N will assume the account name is the same as your current\r\nnickname.\r\n\r\nFor example, if your nick is JoeBob, the below line would log\r\nyou in to the account JoeBob:\r\n /msg %N@%S login myPassword\r\n\r\nIf your nick is taken, or your account name is different than\r\nyour nickname, you can specify an account to log in to:\r\n /msg %N@%S login myaccount myPassword\r\n\r\nThe only way to log out of your account is by using /quit.'),
('NS',0,'quote','Sends the specified line as raw text to %S\'s uplink.\r\n\r\n%BUSE WITH CAUTION. RAW TEXT IS NOT PARSED FOR ACCURACY NOR IS ITS%B\r\n%BEFFECTS PERSISTED IN MEMORY BEFORE BEING SENT ACROSS THE WIRE.%B\r\n\r\n%BYOU SHOULD BE WELL-VERSED IN RAW P10 PROTOCOL BEFORE USING THIS.%B'),
('NS',0,'register','Creates an account that you can use on all network services.\r\nYou must provide a password and valid e-mail address.\r\n\r\n%BExample:%B\r\n /%N register myPassword <EMAIL>.com\r\n\r\nUpon registering, you will be automagically logged in.'),
('NS',0,'set autoop','%BSyntax:%B set autoop [on|off]\r\n\r\nUpdates the auto op flag on your account, which will prevent you\r\nfrom being auto-opped in any channels where you have sufficient\r\naccess.'),
('NS',0,'set autovoice','%BSyntax:%B set autovoice [on|off]\r\n\r\nUpdates the auto voice flag on your account, which will prevent you\r\nfrom being auto-voiced in any channels where you have sufficient\r\naccess.'),
('NS',0,'set email','%BSyntax:%B set email <address>\r\n\r\nUpdates the e-mail address on your account.\r\n'),
('NS',0,'set enforce','%BSyntax:%B set enforce [on|off]\r\n\r\nWhen toggled on, will cause %N to issue a KILL to anyone who \r\nattempts to use your nick without logging in to %N within a\r\nshort amount of time.'),
('NS',0,'set info','%BSyntax:%B set info [text]\r\n\r\nUpdates the info line on your account, which will be displayed\r\nevery time you enter a channel where you have access.\r\n\r\nNote that the channel owner must enable the infolines option\r\nin order for any user\'s info line to be displayed upon joining.\r\n'),
('NS',0,'showcommands','Lists all commands available to you.'),
('NS',0,'uptime','Show\'s the bot\'s running time and bandwidth usage.'),
('NS',0,'newpass','Changes your network account password. Note that you %Bmust%B\r\nuse this command securely.\r\n\r\n%BExample:%B\r\n /msg %N@%S newpass my<PASSWORD>'),
('NS',0,'set','Use the %Bset%B command to modify various aspects of your\r\naccount on %N. The following options may be used:\r\n\r\n %BEMAIL%B Updates your e-mail address.\r\n\r\n %BINFO%B Changes your info line. This line is sent to\r\n a channel when you join it, but will only be\r\n shown on channels that have the infolines\r\n setting enabled.\r\n\r\n %BAUTOOP%B Toggles whether or not you should be auto-opped\r\n on channels where you have proper access. \r\n Can be set to %Bon%B or %Boff%B. Note that\r\n being auto-opped may also depend on channel\r\n settings and the auto-op flag in your channel\r\n access record.\r\n\r\n %BAUTOVOICE%B Toggles your global auto-voice preference.\r\n Can be set to %Bon%B or %Boff%B. Works the same\r\n as the %Bauto op%B setting.\r\n\r\n %BENFORCE%B Instructs %N to kill unauthorized users of\r\n your nick if they do not log in after 30 seconds.\r\n\r\n%BExamples:%B\r\n /msg %N set email mynew@emailaddress.com\r\n /msg %N set info Bow before your king...\r\n /msg %N set autoop on\r\n /msg %N set autovoice off\r\n /msg %N set enforce on'),
('NS',500,'drop','Permanently deletes a registered nick from %N. All of the user\'s\r\nregistered channels, and channel access will also be erased.\r\n\r\n%BExample:%B /msg %N drop hater'),
('NS',500,'addadmin','Adds a user to %N\'s administrator access list with the specified\r\nlevel.\r\n\r\n%BExamples:%B addadmin s1amson 800\r\n\r\n'),
('NS',500,'addbad','Adds a word to the bad words list, which prevents users from\r\nregistering a nickname that contains that word.\r\n\r\n%BExample:%B /msg %N addbad ircplanet'),
('NS',500,'adminlist','Displays %N\'s administrator access list with each administrator\'s\r\nname, level, and e-mail address.\r\n\r\n%BExample:%B /msg %N adminlist\r\n\r\n'),
('NS',500,'deladmin','Removes a user from %N\'s administrator access list.\r\n\r\n%BExamples:%B /msg %N deladmin fiddy\r\n\r\n'),
('NS',500,'die','Use the %Bdie%B command to terminate the service, effectively\r\nremoving it from the network. You may optionally provide a\r\nreason that will be used in each bot\'s quit message, as well\r\nas the server quit message.\r\n\r\nUse this command carefully.'),
('NS',500,'rembad','Removes a word from the list of words that cannot appear in\r\nregistered nick names.\r\n\r\n%BExample:%B /msg %N rembad ircplanet'),
('NS',500,'set host','%BSyntax:%B set [account] host [hostname]\r\n\r\nUpdates the hidden host on your account, which you will receive\r\nonce you log in to %N. The hidden host will only be shown once\r\nyou have set user mode +x on yourself.\r\n\r\nAs an admin, you may optionally specify the account name of the\r\nuser whose hidden host you wish to update.\r\n\r\nIf you do not specify a hostname, it will be cleared and you will\r\nnot receive a hidden host upon future logins.'),
('NS',500,'set nopurge','%BSyntax:%B set [account] nopurge [on|off]\r\n\r\nWhen toggled on, will prevent %N from purging the account\r\nfor inactivity.\r\n\r\nAs an admin, you may optionally specify an account name for\r\nthe person whose nopurge flag you wish to update.'),
('NS',500,'set suspend','%BSyntax:%B set [account] suspend [on|off]\r\n\r\nWhen toggled on, will prevent the specified account from logging\r\nin or using their account.\r\n\r\nAs an admin, you may optionally specify an account name for\r\nthe person whose suspend flag you wish to update.'),
('OS',0,'access','Displays access level information for users having access on %N.\r\nAn account name mask or a full account name can be specified.\r\n\r\n%BExamples:%B /msg %N access brian\r\n /msg %N access br*\r\n /msg %N access *'),
('OS',0,'addbad','Adds a word to the bad words list, which causes %S \r\nto set +s on any channel whose name contains the specified word.\r\nIf any channel users attempt to remove +s, it is re-applied.\r\n\r\n%BExample:%B /msg %N addbad warez'),
('OS',0,'addgchan','Immediately kicks users from the specified channel and prevents\r\nany other users (except IRC operators) from entering the channel.\r\nThe channel G-line will be active for the specified duration and\r\nthe reason will be shown to users as the kick reason.\r\n\r\nDurations must use the following format: %B<number><unit>%B\r\nThe unit can be any of the following and can be combined as\r\nlong as larger units come first.\r\n %Bw%B - weeks\r\n %Bd%B - days\r\n %Bh%B - hours\r\n %Bm%B - minutes\r\n %Bs%B - seconds\r\n\r\nExamples:\r\n %B2w%B - Two weeks.\r\n %B5d12h%B - Five days and twelve hours.\r\n %B90s%B - Ninety seconds.\r\n\r\n%BExamples:%B /msg %N addgchan #warez 5y No warez.\r\n /msg %N addgchan #!!!dronecontrolchan 5y Take your drones elsewhere.'),
('OS',0,'addgname','Immediately disconnects users from the network whose real name\r\nfield matches the specified G-line mask, for the provided \r\nduration. The reason will be shown to affected users upon their\r\nbeing disconnected.\r\n\r\nDurations must use the following format: %B<number><unit>%B\r\nThe unit can be any of the following and can be combined as\r\nlong as larger units come first.\r\n %Bw%B - weeks\r\n %Bd%B - days\r\n %Bh%B - hours\r\n %Bm%B - minutes\r\n %Bs%B - seconds\r\n\r\nExamples:\r\n %B2w%B - Two weeks.\r\n %B5d12h%B - Five days and twelve hours.\r\n %B90s%B - Ninety seconds.\r\n\r\n%BExamples:%B /msg %N addgname *sub7* 5y You are infected with a trojan.\r\n /msg %N addgname [WarBot]* 5y You are infected with a trojan.'),
('OS',0,'adduser','Adds a user to %N\'s access list with the specified level.\r\n\r\n%BExamples:%B adduser s1amson 800'),
('OS',0,'ban','Sets a ban in the specified channel. An optional kick reason may \r\nbe provided.\r\n\r\nDurations must use the following format: %B<number><unit>%B\r\nThe unit can be any of the following and can be combined as\r\nlong as larger units come first.\r\n %Bw%B - weeks\r\n %Bd%B - days\r\n %Bh%B - hours\r\n %Bm%B - minutes\r\n %Bs%B - seconds\r\n\r\nExamples:\r\n %B2w%B - Two weeks.\r\n %B5d12h%B - Five days and twelve hours.\r\n %B90s%B - Ninety seconds.\r\n\r\n%BExamples:%B /msg %N ban #southpole *!*flooder@*.aol.com\r\n /msg %N ban #southpole *!*@*.ca No canadians.\r\n /msg %N ban #southpole flooder'),
('OS',0,'banlist','Shows the channel\'s current ban list. An optional search mask\r\nmay be used in order to find information on a specific ban.\r\n\r\n%BExamples:%B /msg %N banlist #southpole *flooder*\r\n /msg %N banlist #southpole *@aol.com'),
('OS',0,'broadcast','Sends a broadcast NOTICE to all users on the network.\r\n\r\n%BExample:%B /msg %N broadcast Nickname and channel services will be restarting momentarily for an upgrade. Please come see us in #support if you have any questions.'),
('OS',0,'chaninfo','Displays various information about the specified channel\'s current\r\nstate, including modes and topic.\r\n\r\n%BExample:%B /msg %N chaninfo #southpole'),
('OS',0,'chanlist','Displays a list of channels whose name matches the specified mask,\r\nadditionally displaying their currently set modes and user count.\r\n\r\n%BExamples:%B /msg %N chanlist *mp3*\r\n /msg %N chanlist #warez*\r\n /msg %N chanlist *'),
('OS',0,'clearchan','Clears channel modes, users, bans, ops, and/or voices, in accordance\r\nwith the flags you specify. Flags can be specified in any order,\r\nand you can include as many as are necessary.\r\n\r\nThe following are flags that can be specified as part of the flag list:\r\n %Bm%B Clears all channel modes.\r\n %Bk%B Kicks all users from the channel, except you.\r\n %Bo%B Deops all opped users in the channel.\r\n %Bv%B Devoices all voiced users in the channel.\r\n %Bb%B Clears all channel bans.\r\n %Bg%B Issues G-lines for all users in the channel, except you.\r\n\r\n%BExamples%B: To kick all users:\r\n /msg %N clearchan #hackage k Kicking all users...\r\n\r\n To clear all modes, bans, ops, and voices:\r\n /msg %N clearchan #brasil mbov\r\n\r\n To clear all modes and ops:\r\n /msg %N clearchan #takenover om\r\n\r\n To issue a 30-minute G-line for all channel users:\r\n /msg %N clearchan #drones g 30m'),
('OS',0,'clearmodes','Clears all modes in the specified channel.'),
('OS',0,'deop','Removes op status from the specified user(s) in the channel.\r\nIf no nicks are provided, %N will deop you.'),
('OS',0,'deopall','Removes op status from every user in the specified channel.\r\n'),
('OS',0,'devoice','Removes a voice from the specified user(s) in the channel. If\r\nno nicks are provided, %N will devoice you.'),
('OS',0,'devoiceall','Removes voices from every user in the specified channel.'),
('OS',0,'die','Use the %Bdie%B command to terminate the service, effectively\r\nremoving it from the network. You may optionally provide a\r\nreason that will be used in each bot\'s quit message, as well\r\nas the server quit message.\r\n\r\nUse this command carefully.'),
('OS',0,'fakehost','Sets a user\'s fake/hidden host to the specified hostname. The user\r\nmust have user mode +x set on themselves in order for the hostname\r\nto appear.\r\n\r\n%BExample:%B /msg %N fakehost s1amson svcadmin.virtuanet.org'),
('OS',0,'gline','Immediately disconnects users from the network whose user@host \r\nmatches the specified G-line mask, for the provided duration.\r\nThe reason will be shown to affected users upon their \r\nbeing disconnected.\r\n\r\nDurations must use the following format: %B<number><unit>%B\r\nThe unit can be any of the following and can be combined as\r\nlong as larger units come first.\r\n %Bw%B - weeks\r\n %Bd%B - days\r\n %Bh%B - hours\r\n %Bm%B - minutes\r\n %Bs%B - seconds\r\n\r\nExamples:\r\n %B2w%B - Two weeks.\r\n %B5d12h%B - Five days and twelve hours.\r\n %B90s%B - Ninety seconds.\r\n\r\n%BExamples:%B /msg %N gline *@*.<EMAIL> 90d No AOL users.\r\n /msg %N gline *@172.16.17.32 30m Please get your connection under control.'),
('OS',0,'help','%N is a service designed to help administrators and operators \r\nmonitor and maintain the network through added visibility, as\r\nwell as provide enhanced methods of intervening in situations\r\nwhere normal operator privileges aren\'t enough.\r\n\r\nTo get a list of commands that are available to you, simply\r\ntype %B/msg %N showcommands%B.\r\n\r\nIf you wish to look up usage information about a command,\r\ntype %B/msg %N help commandname%B, where commandname is the \r\ncommand you need help with.'),
('OS',0,'inviteme','Invites you to %N\'s command reporting and network event reporting channels.'),
('OS',0,'jupe','Jupes the specified server to prevent it from connecting to the \r\nnetwork for the given duration.\r\n\r\n%BExample:%B /msg %N jupe Provo.UT.US.ircPlanet.net 10y No servers from ultraconservative cities allowed'),
('OS',0,'kick','Kicks the specified user from the channel. An optional reason\r\nmay be specified for the kick.'),
('OS',0,'kickall','Kicks all users from the specified channel. The user issuing this\r\ncommand will not be kicked.\r\n'),
('OS',0,'kickban','Kicks and bans the specified user from the channel. A hostmask\r\nmay be specified instead of a nickname, in which case %N\r\nwill kick and ban all users matching that mask.\r\n\r\n%BExamples:%B /msg %N kickban #southpole lamer\r\n /msg %N kickban #southpole britneyspears Quiet please.\r\n /msg %N kickban #southpole *!*@*.aol.com Down with AOL.'),
('OS',0,'kickbanall','Deops, kicks and bans all users from the specified channel. The user\r\nissuing this command will not be kicked or banned.\r\n'),
('OS',0,'mode','Sets the specified mode(s) in the channel.'),
('OS',0,'moderate','Moderates the channel (+m) and grants voice status to every\r\nnon-op.\r\n'),
('OS',0,'moduser level','Update\'s the specified user\'s access level on %N.\r\n\r\n%BExample:%B /msg %N moduser s1amson level 900'),
('OS',0,'moduser','Allows you to change settings for a user in %N\'s access list.\r\nThe list of allowed settings are as follows:\r\n\r\n%BLEVEL%B Change the user\'s access level.\r\n\r\nFor more information on a specific setting, please use\r\n/msg %N help moduser <setting>'),
('OS',0,'op','Grants op status to the specified user(s) in the channel. If\r\nno nicks are provided, %N will op you.'),
('OS',0,'opall','Grants op status to every user in the specified channel.\r\n'),
('OS',0,'opermsg','Sends a broadcast NOTICE to all IRC operators on the network.\r\n\r\n%BExample:%B /msg %N broadcast Training on the new set of oper service commands will begin in 30 mins in #opers.'),
('OS',0,'quote','Sends the specified line as raw text to %S\'s uplink.\r\n\r\n%BUSE WITH CAUTION. RAW TEXT IS NOT PARSED FOR ACCURACY NOR IS ITS%B\r\n%BEFFECTS PERSISTED IN MEMORY BEFORE BEING SENT ACROSS THE WIRE.%B\r\n\r\n%BYOU SHOULD BE WELL-VERSED IN RAW P10 PROTOCOL BEFORE USING THIS.%B'),
('OS',0,'refreshg','Reissues all current G-lines, in the event any server has a \r\ndesynced list of G-lines.'),
('OS',0,'rembad','Removes a word from the list of words that cannot appear in\r\npublicly-listed channel names.\r\n\r\n%BExample:%B /msg %N rembad warez'),
('OS',0,'remgchan','Deactivates a channel G-line, which will allow users to join any \r\nthe specified channel.\r\n\r\nExisting channel G-lines can be listed with %Bshow glines%B.\r\n\r\n%BExample:%B /msg %N remgchan #warez'),
('OS',0,'remgline','Deactivates a G-line, which will allow any affected users to \r\nreconnect to the network.\r\n\r\nExisting G-lines can be listed with the %Bshow glines%B command.\r\n\r\n%BExample:%B /msg %N remgline *@*.<EMAIL>'),
('OS',0,'remgname','Deactivates a realname G-line, which will allow users whose real\r\nname field matches the given G-line mask.\r\n\r\nExisting realname G-lines can be listed with %Bshow glines%B.\r\n\r\n%BExample:%B /msg %N remgname *sub7*'),
('OS',0,'remuser','Removes a user from %N\'s access list.\r\n\r\n%BExamples:%B /msg %N remuser fiddy'),
('OS',0,'scan','Displays a list of all users whose user@host/IP mask matches\r\nthe specified mask, additionally displaying their full hostmask,\r\nIP address, and the server they\'re using.\r\n\r\n%BExamples:%B /msg %N scan brian*\r\n /msg %N scan *@ircplanet.net\r\n /msg %N scan *ident@*\r\n /msg %N scan *'),
('OS',0,'settime','Instructs all servers to update their internal clocks in ircu with\r\nthe specified timestamp. This does %Bnot%B update the system-level clock\r\non each server.'),
('OS',0,'showcommands','Lists all commands available to you.'),
('OS',0,'topic','Sets the topic in the specified channel.'),
('OS',0,'unjupe','Deactivates an existing jupe for the specified server to allow it\r\nto connect to the network again.\r\n\r\n%BExample:%B /msg %N unjupe moonbus.ircplanet.net'),
('OS',0,'uptime','Show\'s the bot\'s running time and bandwidth usage.'),
('OS',0,'voice','Grants a voice to the specified user(s) in the channel. If no\r\nnicks are provided, %N will voice you.'),
('OS',0,'voiceall','Grants voices to every user in the specified channel.'),
('OS',0,'whois','Displays detailed information about the specified user.'),
('OS',0,'whoison','Displays a list of all users currently in the specified channel,\r\nadditionally denoting ops and voices.'),
('OS',0,'show','Displays details on various statistics and settings. The following \r\nis a list of all settings and statistics whose details can be shown.\r\n\r\n%BBAD%B The list of words that are not allowed to appear in\r\n public channel names.\r\n%BCLONES%B All users who have clones on the network.\r\n%BGLINES%B All G-lines.\r\n%BJUPES%B All server jupes.\r\n%BOPERS%B All signed-on IRC operators.\r\n\r\n%BExamples:%B /msg %N show opers\r\n /msg %N show clones'),
('SS',0,'help','%N is a service designed to maintain various live statistics\r\nand historical data about the network.\r\n\r\nTo get a list of commands that are available to you, simply\r\ntype %B/msg %N showcommands%B.\r\n\r\nIf you wish to look up usage information about a command,\r\ntype %B/msg %N help commandname%B, where commandname is the \r\ncommand you need help with.'),
('SS',0,'showcommands','Lists all commands available to you.'),
('SS',0,'uptime','Show\'s the bot\'s running time and bandwidth usage.'),
('SS',500,'access','Displays access level information for users having access on %N.\r\nAn account name mask or a full account name can be specified.\r\n\r\n%BExamples:%B /msg %N access brian\r\n /msg %N access br*\r\n /msg %N access *'),
('SS',500,'adduser','Adds a user to %N\'s access list with the specified level.\r\n\r\n%BExamples:%B adduser s1amson 800'),
('SS',500,'inviteme','Invites you to %N\'s command reporting channel.'),
('SS',500,'moduser level','Update\'s the specified user\'s access level on %N.\r\n\r\n%BExample:%B /msg %N moduser s1amson level 900'),
('SS',500,'moduser','Allows you to change settings for a user in %N\'s access list.\r\nThe list of allowed settings are as follows:\r\n\r\n%BLEVEL%B Change the user\'s access level.\r\n\r\nFor more information on a specific setting, please use\r\n/msg %N help moduser <setting>'),
('SS',500,'quote','Sends the specified line as raw text to %S\'s uplink.\r\n\r\n%BUSE WITH CAUTION. RAW TEXT IS NOT PARSED FOR ACCURACY NOR IS ITS%B\r\n%BEFFECTS PERSISTED IN MEMORY BEFORE BEING SENT ACROSS THE WIRE.%B\r\n\r\n%BYOU SHOULD BE WELL-VERSED IN RAW P10 PROTOCOL BEFORE USING THIS.%B'),
('SS',500,'remuser','Removes a user from %N\'s access list.\r\n\r\n%BExamples:%B /msg %N remuser fiddy'),
('SS',500,'die','Use the %Bdie%B command to terminate the service, effectively\r\nremoving it from the network. You may optionally provide a\r\nreason that will be used in each bot\'s quit message, as well\r\nas the server quit message.\r\n\r\nUse this command carefully.');
/*!40000 ALTER TABLE `help` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `ns_admins`
--
DROP TABLE IF EXISTS `ns_admins`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ns_admins` (
`user_id` int(11) NOT NULL DEFAULT '0',
`level` int(11) NOT NULL DEFAULT '0',
PRIMARY KEY (`user_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT='Nickserv Admins';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `ns_badnicks`
--
DROP TABLE IF EXISTS `ns_badnicks`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ns_badnicks` (
`badnick_id` int(11) NOT NULL AUTO_INCREMENT,
`nick_mask` varchar(50) NOT NULL,
`create_date` datetime DEFAULT NULL,
PRIMARY KEY (`badnick_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT='Bad Nick Words/Masks';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `os_admins`
--
DROP TABLE IF EXISTS `os_admins`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `os_admins` (
`user_id` int(11) NOT NULL DEFAULT '0',
`level` int(11) NOT NULL DEFAULT '0',
PRIMARY KEY (`user_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT='Operserv Admins';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `os_badchans`
--
DROP TABLE IF EXISTS `os_badchans`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `os_badchans` (
`badchan_id` int(11) NOT NULL AUTO_INCREMENT,
`chan_mask` varchar(50) NOT NULL,
`create_date` datetime DEFAULT NULL,
PRIMARY KEY (`badchan_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT='Bad Channel Words/Masks';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `os_glines`
--
DROP TABLE IF EXISTS `os_glines`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `os_glines` (
`gline_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`set_ts` int(11) NOT NULL DEFAULT '0',
`expire_ts` int(11) NOT NULL DEFAULT '0',
`mask` varchar(100) NOT NULL DEFAULT '',
`reason` varchar(100) NOT NULL DEFAULT '',
PRIMARY KEY (`gline_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `stats_channel_users`
--
DROP TABLE IF EXISTS `stats_channel_users`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `stats_channel_users` (
`channel_name` varchar(255) NOT NULL,
`nick` varchar(15) NOT NULL,
`is_op` smallint(5) unsigned NOT NULL,
`is_voice` smallint(5) unsigned NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `stats_channels`
--
DROP TABLE IF EXISTS `stats_channels`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `stats_channels` (
`channel_name` varchar(255) NOT NULL,
`topic` varchar(255) NOT NULL,
`modes` varchar(45) NOT NULL,
PRIMARY KEY (`channel_name`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `stats_history`
--
DROP TABLE IF EXISTS `stats_history`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `stats_history` (
`date` datetime NOT NULL,
`servers` int(10) unsigned NOT NULL,
`users` int(10) unsigned NOT NULL,
`channels` int(10) unsigned NOT NULL,
`accounts` int(10) unsigned NOT NULL,
`opers` int(10) unsigned NOT NULL,
`services` int(10) unsigned NOT NULL,
`service_servers` int(10) unsigned NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `stats_servers`
--
DROP TABLE IF EXISTS `stats_servers`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `stats_servers` (
`server_name` varchar(100) NOT NULL,
`desc` varchar(100) NOT NULL,
`start_date` datetime DEFAULT NULL,
`max_users` int(10) unsigned NOT NULL,
`is_service` smallint(5) unsigned NOT NULL,
PRIMARY KEY (`server_name`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `stats_users`
--
DROP TABLE IF EXISTS `stats_users`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `stats_users` (
`nick` varchar(15) NOT NULL,
`ident` varchar(15) NOT NULL,
`host` varchar(80) NOT NULL,
`name` varchar(100) NOT NULL,
`server` varchar(60) NOT NULL,
`modes` varchar(10) NOT NULL,
`account` varchar(15) NOT NULL,
`signon_date` datetime DEFAULT NULL,
PRIMARY KEY (`nick`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
/*!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 2010-05-30 1:06:36
|
ALTER TABLE `avm_transactions` MODIFY `canonical_serialization` MEDIUMBLOB;
ALTER TABLE `pvm_blocks` MODIFY `serialization` MEDIUMBLOB;
ALTER TABLE `avm_transactions` MODIFY `created_at` timestamp(6) not null default current_timestamp(6);
alter table `avm_outputs` MODIFY `created_at` timestamp(6) not null default current_timestamp(6);
alter table `avm_outputs_redeeming` MODIFY `created_at` timestamp(6) not null default current_timestamp(6);
alter table `avm_outputs_redeeming` MODIFY `redeemed_at` timestamp(6) not null default current_timestamp(6);
alter table `pvm_blocks` MODIFY `created_at` timestamp(6) not null default current_timestamp(6);
alter table `avm_assets` MODIFY `created_at` timestamp(6) not null default current_timestamp(6);
alter table `cvm_transactions` MODIFY `created_at` timestamp(6) not null default current_timestamp(6);
alter table `cvm_blocks` MODIFY `created_at` timestamp(6) not null default current_timestamp(6);
alter table `cvm_addresses` MODIFY `created_at` timestamp(6) not null default current_timestamp(6);
alter table `address_chain` MODIFY `created_at` timestamp(6) not null default current_timestamp(6);
alter table `addresses` MODIFY `created_at` timestamp(6) not null default current_timestamp(6);
alter table `avm_output_addresses` MODIFY `created_at` timestamp(6) not null default current_timestamp(6);
alter table `rewards` MODIFY `created_at` timestamp(6) not null default current_timestamp(6);
alter table `transactions_epoch` MODIFY `created_at` timestamp(6) not null default current_timestamp(6);
alter table `transactions_block` MODIFY `created_at` timestamp(6) not null default current_timestamp(6);
alter table `transactions_validator` MODIFY `created_at` timestamp(6) not null default current_timestamp(6);
alter table `cvm_transactions` add column `serialization` mediumblob;
create index cvm_transactions_block ON cvm_transactions (block);
|
DROP DATABASE IF EXISTS burgers_db;
CREATE DATABASE burgers_db;
USE burgers_db;
DROP TABLE IF EXISTS burgers;
CREATE TABLE burgers (
id INT (50) AUTO_INCREMENT NOT NULL PRIMARY KEY,
burger_name VARCHAR (300),
devoured boolean DEFAULT FALSE,
createdAt TIMESTAMP NOT NULL Default CURRENT_TIMESTAMP
); |
<gh_stars>0
INSERT INTO eventos (nombre,tematica, descripcion , fecha_evento, hora_evento, idCategoria, idPonente) VALUES ('Responsive Web Design','Desarrollo Web','Evento de web','2021-12-09', '10:00:00', '3', '1');
INSERT INTO eventos (nombre,tematica, descripcion , fecha_evento, hora_evento, idCategoria, idPonente) VALUES ('Flexbox','Desarrollo Web','Evento de web', '2021-12-09', '12:00:00', '3', '2');
INSERT INTO eventos (nombre,tematica, descripcion , fecha_evento, hora_evento, idCategoria, idPonente) VALUES ('HTML5 y CSS3','Desarrollo Web','Evento de web', '2021-12-09', '14:00:00', '3', '3');
INSERT INTO eventos (nombre,tematica, descripcion , fecha_evento, hora_evento, idCategoria, idPonente) VALUES ('Drupal','Desarrollo Web','Evento de web', '2021-12-09', '17:00:00', '3', '4');
INSERT INTO eventos (nombre,tematica, descripcion , fecha_evento, hora_evento, idCategoria, idPonente) VALUES ('WordPress','Desarrollo Web','Evento de web', '2021-12-09', '19:00:00', '3', '5');
INSERT INTO eventos (nombre,tematica, descripcion , fecha_evento, hora_evento, idCategoria, idPonente) VALUES ('Como ser freelancer','Desarrollo Web','Evento de web', '2021-12-09', '10:00:00', '2', '6');
INSERT INTO eventos (nombre,tematica, descripcion , fecha_evento, hora_evento, idCategoria, idPonente) VALUES ('Tecnologías del Futuro','Desarrollo Web','Evento de web', '2021-12-09', '17:00:00', '2', '1');
INSERT INTO eventos (nombre,tematica, descripcion , fecha_evento, hora_evento, idCategoria, idPonente) VALUES ('Seguridad en la Web','Desarrollo Web','Evento de web', '2021-12-09', '19:00:00', '2', '2');
INSERT INTO eventos (nombre,tematica, descripcion , fecha_evento, hora_evento, idCategoria, idPonente) VALUES ('Diseño UI y UX para móviles','Desarrollo Web','Evento de web', '2021-12-09', '10:00:00', '1', '6');
INSERT INTO eventos (nombre,tematica, descripcion , fecha_evento, hora_evento, idCategoria, idPonente) VALUES ('AngularJS','Desarrollo Web','Evento de web', '2021-12-10', '10:00:00', '3', '1');
INSERT INTO eventos (nombre,tematica, descripcion , fecha_evento, hora_evento, idCategoria, idPonente) VALUES ('PHP y MySQL','Desarrollo Web','Evento de web', '2021-12-10', '12:00:00', '3', '2');
INSERT INTO eventos (nombre,tematica, descripcion , fecha_evento, hora_evento, idCategoria, idPonente) VALUES ('JavaScript Avanzado','Desarrollo Web','Evento de web', '2021-12-10', '14:00:00', '3', '3');
INSERT INTO eventos (nombre,tematica, descripcion , fecha_evento, hora_evento, idCategoria, idPonente) VALUES ('SEO en Google','Desarrollo Web','Evento de web', '2021-12-10', '17:00:00', '3', '4');
INSERT INTO eventos (nombre,tematica, descripcion , fecha_evento, hora_evento, idCategoria, idPonente) VALUES ('De Photoshop a HTML5 y CSS3','Desarrollo Web','Evento de web', '2021-12-10', '19:00:00', '3', '5');
INSERT INTO eventos (nombre,tematica, descripcion , fecha_evento, hora_evento, idCategoria, idPonente) VALUES ('PHP Intermedio y Avanzado','Desarrollo Web','Evento de web', '2021-12-10', '21:00:00', '3', '6');
INSERT INTO eventos (nombre,tematica, descripcion , fecha_evento, hora_evento, idCategoria, idPonente) VALUES ('Como crear una tienda online','Desarrollo Web','Evento de web', '2021-12-10', '10:00:00', '2', '6');
INSERT INTO eventos (nombre,tematica, descripcion , fecha_evento, hora_evento, idCategoria, idPonente) VALUES ('Lugares para encontrar trabajo','Desarrollo Web','Evento de web', '2021-12-10', '17:00:00', '2', '1');
INSERT INTO eventos (nombre,tematica, descripcion , fecha_evento, hora_evento, idCategoria, idPonente) VALUES ('Pasos para crear un negocio rentable ','Desarrollo Web','Evento de web', '2021-12-10', '19:00:00', '2', '2');
INSERT INTO eventos (nombre,tematica, descripcion , fecha_evento, hora_evento, idCategoria, idPonente) VALUES ('Aprende a Programar en una mañana','Desarrollo Web','Evento de web', '2021-12-10', '10:00:00', '1', '3');
INSERT INTO eventos (nombre,tematica, descripcion , fecha_evento, hora_evento, idCategoria, idPonente) VALUES ('Diseño UI y UX para móviles','Desarrollo Web','Evento de web', '2021-12-10', '17:00:00', '1', '5');
INSERT INTO eventos (nombre,tematica, descripcion , fecha_evento, hora_evento, idCategoria, idPonente) VALUES ('Laravel','Desarrollo Web','Evento de web', '2021-12-11', '10:00:00', '3', '1');
INSERT INTO eventos (nombre,tematica, descripcion , fecha_evento, hora_evento, idCategoria, idPonente) VALUES ('Crea tu propia API','Desarrollo Web','Evento de web', '2021-12-11', '12:00:00', '3', '2');
INSERT INTO eventos (nombre,tematica, descripcion , fecha_evento, hora_evento, idCategoria, idPonente) VALUES ('JavaScript y jQuery','Desarrollo Web','Evento de web', '2021-12-11', '14:00:00', '3', '3');
INSERT INTO eventos (nombre,tematica, descripcion , fecha_evento, hora_evento, idCategoria, idPonente) VALUES ('Creando Plantillas para WordPress','Desarrollo Web','Evento de web', '2021-12-11', '17:00:00', '3', '4');
INSERT INTO eventos (nombre,tematica, descripcion , fecha_evento, hora_evento, idCategoria, idPonente) VALUES ('Tiendas Virtuales en Magento','Desarrollo Web','Evento de web', '2021-12-11', '19:00:00', '3', '5');
INSERT INTO eventos (nombre,tematica, descripcion , fecha_evento, hora_evento, idCategoria, idPonente) VALUES ('Como hacer Marketing en línea','Desarrollo Web','Evento de web', '2021-12-11', '10:00:00', '2', '6');
INSERT INTO eventos (nombre,tematica, descripcion , fecha_evento, hora_evento, idCategoria, idPonente) VALUES ('¿Con que lenguaje debo empezar?','Desarrollo Web','Evento de web', '2021-12-11', '17:00:00', '2', '2');
INSERT INTO eventos (nombre,tematica, descripcion , fecha_evento, hora_evento, idCategoria, idPonente) VALUES ('Frameworks y librerias Open Source','Desarrollo Web','Evento de web', '2021-12-11', '19:00:00', '2', '3');
INSERT INTO eventos (nombre,tematica, descripcion , fecha_evento, hora_evento, idCategoria, idPonente) VALUES ('Creando una App en Android en una mañana','Desarrollo Web','Evento de web', '2021-12-11', '10:00:00', '1', '4');
INSERT INTO eventos (nombre,tematica, descripcion , fecha_evento, hora_evento, idCategoria, idPonente) VALUES ('Creando una App en iOS en una tarde','Desarrollo Web','Evento de web', '2021-12-11', '17:00:00', '1', '1'); |
<filename>benchmark/Hatred/queries-vectorwise-disabled/32.sql
--SELECT "Hatred_1"."State" AS "State", SUM(1) AS "TEMP(Calculation_-454863522739130367)(2109769841)(0)" FROM "Hatred_1" WHERE (("Hatred_1"."State" NOT IN ('', 'AK', 'DC')) AND ("Hatred_1"."Keyword" = 'slut')) GROUP BY 1;
|
<filename>Src/QueueDb.Sql/AppDbo/Tables/AgentRegistration.sql<gh_stars>0
CREATE TABLE [AppDbo].[AgentRegistration] (
[AgentId] [dbo].[KeyIdType] IDENTITY (1, 1) NOT NULL,
[AgentName] [dbo].[AgentNameType] NOT NULL,
[_createdDate] [dbo].[DateType] CONSTRAINT [DF_AgentRegistration__createdDate] DEFAULT (getutcdate()) NULL,
CONSTRAINT [PK_AgentRegistration] PRIMARY KEY CLUSTERED ([AgentId] ASC)
);
GO
CREATE UNIQUE NONCLUSTERED INDEX [IX_AgentRegistration]
ON [AppDbo].[AgentRegistration]([AgentName] ASC);
|
-- phpMyAdmin SQL Dump
-- version 5.0.4
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Jan 14, 2021 at 04:26 PM
-- Server version: 10.4.17-MariaDB
-- PHP Version: 8.0.0
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: `onlinebookingsystem_db`
--
-- --------------------------------------------------------
--
-- Table structure for table `account_types`
--
CREATE TABLE `account_types` (
`id` int(1) NOT NULL,
`account_type` varchar(50) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `account_types`
--
INSERT INTO `account_types` (`id`, `account_type`) VALUES
(1, 'Individual'),
(2, 'Corporate');
-- --------------------------------------------------------
--
-- Table structure for table `booking_status`
--
CREATE TABLE `booking_status` (
`id` int(2) NOT NULL,
`status` varchar(100) NOT NULL,
`created` datetime NOT NULL,
`modified` datetime DEFAULT NULL,
`color` varchar(50) NOT NULL,
`action` varchar(100) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `booking_status`
--
INSERT INTO `booking_status` (`id`, `status`, `created`, `modified`, `color`, `action`) VALUES
(1, 'For Approval', '2021-01-11 22:00:13', '2021-01-11 22:00:13', 'warning', 'Approve Booking'),
(2, 'Booking Approved', '2021-01-11 22:00:13', '2021-01-11 22:00:13', 'info', 'Work Done'),
(3, 'Successful Business', '2021-01-13 11:52:08', '2021-01-13 11:52:08', 'success', 'Book Closed'),
(4, 'Canceled. Explanation required', '2021-01-13 11:54:34', '2021-01-13 11:54:34', 'danger', 'This Book was Canceled.'),
(5, 'Canceled. Explanation Denied', '2021-01-13 11:59:33', '2021-01-13 11:59:33', 'danger', 'Canceled and Denied Explanation.'),
(6, 'Canceled. Explanation Accepted', '2021-01-13 12:32:28', '2021-01-13 12:32:28', 'success', 'Canceled but Accepted Explanation.'),
(7, 'Reported!', '2021-01-13 12:36:50', '2021-01-13 12:36:50', 'danger', 'This book has a history.');
-- --------------------------------------------------------
--
-- Table structure for table `books`
--
CREATE TABLE `books` (
`id` int(200) NOT NULL,
`service` int(100) NOT NULL,
`consumer` int(11) NOT NULL,
`created` datetime NOT NULL,
`modified` datetime NOT NULL,
`status` int(1) NOT NULL DEFAULT 1,
`date_time_from_to` varchar(100) NOT NULL,
`rating` int(1) DEFAULT 0,
`rating_to_consumer` int(1) DEFAULT 0
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- Table structure for table `categories`
--
CREATE TABLE `categories` (
`id` int(3) NOT NULL,
`category` varchar(50) NOT NULL,
`created` datetime NOT NULL,
`modified` datetime NOT NULL,
`picture` varchar(300) NOT NULL,
`picture_position` varchar(20) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `categories`
--
INSERT INTO `categories` (`id`, `category`, `created`, `modified`, `picture`, `picture_position`) VALUES
(6, 'plumbing', '2021-01-05 17:21:17', '2021-01-05 17:21:17', 'plumbing.jpg', ''),
(7, 'electrical', '2021-01-05 17:21:17', '2021-01-05 17:21:17', 'electrical.jpg', ''),
(8, 'food', '2021-01-05 17:21:17', '2021-01-05 17:21:17', 'food.jpg', ''),
(9, 'roof', '2021-01-05 17:21:17', '2021-01-05 17:21:17', 'roof.jpg', ''),
(10, 'gardening', '2021-01-05 17:21:17', '2021-01-05 17:21:17', 'gardening.jpg', 'bottom center'),
(11, 'floor', '2021-01-05 17:21:17', '2021-01-05 17:21:17', 'floor.jpg', ''),
(12, 'wastes', '2021-01-05 17:21:17', '2021-01-05 17:21:17', 'wastes.jpg', '');
-- --------------------------------------------------------
--
-- Table structure for table `definitions`
--
CREATE TABLE `definitions` (
`id` int(2) NOT NULL,
`definition` varchar(20) NOT NULL,
`created` datetime NOT NULL,
`modified` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `definitions`
--
INSERT INTO `definitions` (`id`, `definition`, `created`, `modified`) VALUES
(1, 'provider', '2021-01-05 17:38:30', '2021-01-05 17:38:30'),
(2, 'consumer', '2021-01-05 17:38:30', '2021-01-05 17:38:30');
-- --------------------------------------------------------
--
-- Table structure for table `messages`
--
CREATE TABLE `messages` (
`id` int(11) NOT NULL,
`message` text NOT NULL,
`sender` int(11) NOT NULL,
`booking` int(100) NOT NULL,
`created` datetime NOT NULL,
`modified` datetime NOT NULL,
`seen` int(1) NOT NULL DEFAULT 0,
`status_update` int(1) DEFAULT 0
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- Table structure for table `services`
--
CREATE TABLE `services` (
`id` int(50) NOT NULL,
`title` varchar(100) NOT NULL,
`owner` int(11) NOT NULL,
`description` text NOT NULL,
`created` datetime NOT NULL,
`modified` datetime NOT NULL,
`category` int(4) NOT NULL,
`availability` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- Table structure for table `users`
--
CREATE TABLE `users` (
`id` int(11) NOT NULL,
`username` varchar(50) NOT NULL,
`password` varchar(100) NOT NULL,
`picture` varchar(200) NOT NULL,
`created` datetime NOT NULL,
`modified` datetime NOT NULL,
`first_name` varchar(100) NOT NULL,
`last_name` varchar(100) NOT NULL,
`email` varchar(100) NOT NULL,
`phone_number` varchar(50) NOT NULL,
`account_type` int(1) NOT NULL,
`primary_category` int(3) NOT NULL DEFAULT 1,
`definition` int(1) NOT NULL,
`online_status` int(1) NOT NULL DEFAULT 1
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Indexes for dumped tables
--
--
-- Indexes for table `account_types`
--
ALTER TABLE `account_types`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `booking_status`
--
ALTER TABLE `booking_status`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `books`
--
ALTER TABLE `books`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `categories`
--
ALTER TABLE `categories`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `definitions`
--
ALTER TABLE `definitions`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `messages`
--
ALTER TABLE `messages`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `services`
--
ALTER TABLE `services`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `users`
--
ALTER TABLE `users`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `username` (`username`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `account_types`
--
ALTER TABLE `account_types`
MODIFY `id` int(1) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT for table `booking_status`
--
ALTER TABLE `booking_status`
MODIFY `id` int(2) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=17;
--
-- AUTO_INCREMENT for table `books`
--
ALTER TABLE `books`
MODIFY `id` int(200) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=49;
--
-- AUTO_INCREMENT for table `categories`
--
ALTER TABLE `categories`
MODIFY `id` int(3) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13;
--
-- AUTO_INCREMENT for table `definitions`
--
ALTER TABLE `definitions`
MODIFY `id` int(2) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `messages`
--
ALTER TABLE `messages`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=639;
--
-- AUTO_INCREMENT for table `services`
--
ALTER TABLE `services`
MODIFY `id` int(50) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=30;
--
-- AUTO_INCREMENT for table `users`
--
ALTER TABLE `users`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=53;
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>SGershman/simpleimpact<filename>Procedures/dbo.uspLoadSWOTStrategy_LivableStreets.sql
EXEC dbo.uspAddSWOTStrategy @strategy_name = 'Political Leaders Emerging', @strategy_type_name = 'Opportunity', @strategy_category_name = 'Political';
EXEC dbo.uspAddSWOTStrategy @strategy_name = 'Boston leaders say all the right things', @strategy_type_name = 'Opportunity', @strategy_category_name = 'Political';
EXEC dbo.uspAddSWOTStrategy @strategy_name = 'Loudest Neighborhoods get non-motorized infrastructure', @strategy_type_name = 'Opportunity', @strategy_category_name = 'Political';
EXEC dbo.uspAddSWOTStrategy @strategy_name = 'Boston is thinking long-term; more on the table', @strategy_type_name = 'Opportunity', @strategy_category_name = 'Political';
EXEC dbo.uspAddSWOTStrategy @strategy_name = 'Goals more accepted by the public leadership', @strategy_type_name = 'Opportunity', @strategy_category_name = 'Political';
EXEC dbo.uspAddSWOTStrategy @strategy_name = 'Increased inner city wealth driving better transit', @strategy_type_name = 'Opportunity', @strategy_category_name = 'Economic';
EXEC dbo.uspAddSWOTStrategy @strategy_name = 'Increased MBTA ridership', @strategy_type_name = 'Opportunity', @strategy_category_name = 'Economic';
EXEC dbo.uspAddSWOTStrategy @strategy_name = 'Climate change mitigation', @strategy_type_name = 'Opportunity', @strategy_category_name = 'Economic';
EXEC dbo.uspAddSWOTStrategy @strategy_name = 'Businesses benefit from complete streets', @strategy_type_name = 'Opportunity', @strategy_category_name = 'Economic';
EXEC dbo.uspAddSWOTStrategy @strategy_name = 'Membership area populations growing', @strategy_type_name = 'Opportunity', @strategy_category_name = 'Economic';
EXEC dbo.uspAddSWOTStrategy @strategy_name = 'Increased support for sustainable transportation', @strategy_type_name = 'Opportunity', @strategy_category_name = 'Social';
EXEC dbo.uspAddSWOTStrategy @strategy_name = 'Increased focus on equity in transportation', @strategy_type_name = 'Opportunity', @strategy_category_name = 'Social';
EXEC dbo.uspAddSWOTStrategy @strategy_name = 'Culture growing around biking and transportation', @strategy_type_name = 'Opportunity', @strategy_category_name = 'Social';
EXEC dbo.uspAddSWOTStrategy @strategy_name = 'Neighborhood Leaders Emerging', @strategy_type_name = 'Opportunity', @strategy_category_name = 'Social';
EXEC dbo.uspAddSWOTStrategy @strategy_name = 'Individual Leaders Emerging', @strategy_type_name = 'Opportunity', @strategy_category_name = 'Social';
EXEC dbo.uspAddSWOTStrategy @strategy_name = 'Demographic opportunities in churches, large universities, neighborhood groups, elderly folks', @strategy_type_name = 'Opportunity', @strategy_category_name = 'Social';
EXEC dbo.uspAddSWOTStrategy @strategy_name = 'Unique activist network centralized support', @strategy_type_name = 'Opportunity', @strategy_category_name = 'Social';
EXEC dbo.uspAddSWOTStrategy @strategy_name = 'Role as consensus-builder', @strategy_type_name = 'Opportunity', @strategy_category_name = 'Social';
EXEC dbo.uspAddSWOTStrategy @strategy_name = 'Accept all projects our constituents request', @strategy_type_name = 'Opportunity', @strategy_category_name = 'Social';
EXEC dbo.uspAddSWOTStrategy @strategy_name = 'Demographic shifts (equity atlas)', @strategy_type_name = 'Opportunity', @strategy_category_name = 'Social';
EXEC dbo.uspAddSWOTStrategy @strategy_name = 'Demand-based parking pricing', @strategy_type_name = 'Opportunity', @strategy_category_name = 'Technological';
EXEC dbo.uspAddSWOTStrategy @strategy_name = 'Private services using old rail lines', @strategy_type_name = 'Opportunity', @strategy_category_name = 'Technological';
EXEC dbo.uspAddSWOTStrategy @strategy_name = 'Congestion tolls', @strategy_type_name = 'Opportunity', @strategy_category_name = 'Technological';
EXEC dbo.uspAddSWOTStrategy @strategy_name = 'All-door boarding of buses and light-rail trains', @strategy_type_name = 'Opportunity', @strategy_category_name = 'Technological';
EXEC dbo.uspAddSWOTStrategy @strategy_name = 'Automated walk signals', @strategy_type_name = 'Opportunity', @strategy_category_name = 'Technological';
EXEC dbo.uspAddSWOTStrategy @strategy_name = 'Protected bike lines', @strategy_type_name = 'Opportunity', @strategy_category_name = 'Technological';
EXEC dbo.uspAddSWOTStrategy @strategy_name = 'Traffic signal timing', @strategy_type_name = 'Opportunity', @strategy_category_name = 'Technological';
EXEC dbo.uspAddSWOTStrategy @strategy_name = 'Increased mapping data being utilized', @strategy_type_name = 'Opportunity', @strategy_category_name = 'Technological';
EXEC dbo.uspAddSWOTStrategy @strategy_name = 'Divide between Boston leaders talk and actions', @strategy_type_name = 'Threat', @strategy_category_name = 'Political';
EXEC dbo.uspAddSWOTStrategy @strategy_name = 'Streets not yet considered public spaces', @strategy_type_name = 'Threat', @strategy_category_name = 'Political';
EXEC dbo.uspAddSWOTStrategy @strategy_name = 'Political election process puts streets on the backburner', @strategy_type_name = 'Threat', @strategy_category_name = 'Political';
EXEC dbo.uspAddSWOTStrategy @strategy_name = 'Fiscal Tightness', @strategy_type_name = 'Threat', @strategy_category_name = 'Political';
EXEC dbo.uspAddSWOTStrategy @strategy_name = 'Transit will not get the funding it needs', @strategy_type_name = 'Threat', @strategy_category_name = 'Political';
EXEC dbo.uspAddSWOTStrategy @strategy_name = 'Lack of activity in Mattapan and Dorchester, 128 corridor', @strategy_type_name = 'Threat', @strategy_category_name = 'Political';
EXEC dbo.uspAddSWOTStrategy @strategy_name = 'Increased Cost of Housing', @strategy_type_name = 'Threat', @strategy_category_name = 'Economic';
EXEC dbo.uspAddSWOTStrategy @strategy_name = 'Urban displacement', @strategy_type_name = 'Threat', @strategy_category_name = 'Economic';
EXEC dbo.uspAddSWOTStrategy @strategy_name = 'Relationship between access to transportation and jobs', @strategy_type_name = 'Threat', @strategy_category_name = 'Economic';
EXEC dbo.uspAddSWOTStrategy @strategy_name = 'Same routes as 50 years ago for bus systems', @strategy_type_name = 'Threat', @strategy_category_name = 'Economic';
EXEC dbo.uspAddSWOTStrategy @strategy_name = 'Not enough fiscal oversight, control, and visibility', @strategy_type_name = 'Threat', @strategy_category_name = 'Economic';
EXEC dbo.uspAddSWOTStrategy @strategy_name = 'Image problem for transportation agencies', @strategy_type_name = 'Threat', @strategy_category_name = 'Economic';
EXEC dbo.uspAddSWOTStrategy @strategy_name = 'Lack of housing to places near train stations', @strategy_type_name = 'Threat', @strategy_category_name = 'Economic';
EXEC dbo.uspAddSWOTStrategy @strategy_name = 'Polarization of rich and poor, related to geography', @strategy_type_name = 'Threat', @strategy_category_name = 'Social';
EXEC dbo.uspAddSWOTStrategy @strategy_name = 'Population growth', @strategy_type_name = 'Threat', @strategy_category_name = 'Social';
EXEC dbo.uspAddSWOTStrategy @strategy_name = 'More congestion', @strategy_type_name = 'Threat', @strategy_category_name = 'Social';
EXEC dbo.uspAddSWOTStrategy @strategy_name = 'Little media usage', @strategy_type_name = 'Threat', @strategy_category_name = 'Social';
EXEC dbo.uspAddSWOTStrategy @strategy_name = 'No one knows who LivableStreets is', @strategy_type_name = 'Threat', @strategy_category_name = 'Social';
EXEC dbo.uspAddSWOTStrategy @strategy_name = 'Attend more public meetings', @strategy_type_name = 'Threat', @strategy_category_name = 'Social';
EXEC dbo.uspAddSWOTStrategy @strategy_name = 'Not good at attracting drivers', @strategy_type_name = 'Threat', @strategy_category_name = 'Social';
EXEC dbo.uspAddSWOTStrategy @strategy_name = 'Need to proactively empower other communities', @strategy_type_name = 'Threat', @strategy_category_name = 'Social';
EXEC dbo.uspAddSWOTStrategy @strategy_name = 'Stratification of modes of transport with infighting', @strategy_type_name = 'Threat', @strategy_category_name = 'Social';
EXEC dbo.uspAddSWOTStrategy @strategy_name = 'Cars still the priority mode of transportation', @strategy_type_name = 'Threat', @strategy_category_name = 'Technological';
EXEC dbo.uspAddSWOTStrategy @strategy_name = 'Not leveraging best practices of other organizations', @strategy_type_name = 'Threat', @strategy_category_name = 'Technological';
EXEC dbo.uspAddSWOTStrategy @strategy_name = 'Could utilize technology as an organization better', @strategy_type_name = 'Threat', @strategy_category_name = 'Technological';
EXEC dbo.uspAddSWOTStrategy @strategy_name = 'Cannot rely on technology to solve problems', @strategy_type_name = 'Threat', @strategy_category_name = 'Technological';
EXEC dbo.uspAddSWOTStrategy @strategy_name = 'Systems and technologies complicate rather than simplify', @strategy_type_name = 'Threat', @strategy_category_name = 'Technological';
EXEC dbo.uspAddSWOTStrategy @strategy_name = 'Lots of infrastructure to maintain and understand', @strategy_type_name = 'Threat', @strategy_category_name = 'Technological';
EXEC dbo.uspAddSWOTStrategy @strategy_name = 'Big money being diverted to technology solutions', @strategy_type_name = 'Threat', @strategy_category_name = 'Technological';
EXEC dbo.uspAddSWOTStrategy @strategy_name = 'Tools being used to plan -- ex: traffic -- widely criticized and not matching updated guidebooks', @strategy_type_name = 'Threat', @strategy_category_name = 'Technological';
EXEC dbo.uspAddSWOTStrategy @strategy_name = 'Strong reputation in community', @strategy_type_name = 'Strength', @strategy_category_name = 'Unknown';
EXEC dbo.uspAddSWOTStrategy @strategy_name = 'Respected as thought leaders', @strategy_type_name = 'Strength', @strategy_category_name = 'Unknown';
EXEC dbo.uspAddSWOTStrategy @strategy_name = 'Brand identity', @strategy_type_name = 'Strength', @strategy_category_name = 'Unknown';
EXEC dbo.uspAddSWOTStrategy @strategy_name = 'Access to government at high levels', @strategy_type_name = 'Strength', @strategy_category_name = 'Unknown';
EXEC dbo.uspAddSWOTStrategy @strategy_name = 'Ability to balance influence and advocacy', @strategy_type_name = 'Strength', @strategy_category_name = 'Unknown';
EXEC dbo.uspAddSWOTStrategy @strategy_name = 'Consensus building', @strategy_type_name = 'Strength', @strategy_category_name = 'Unknown';
EXEC dbo.uspAddSWOTStrategy @strategy_name = 'Network of related organizations and volunteers', @strategy_type_name = 'Strength', @strategy_category_name = 'Unknown';
EXEC dbo.uspAddSWOTStrategy @strategy_name = 'Strong outreach capacity to current audiences', @strategy_type_name = 'Strength', @strategy_category_name = 'Unknown';
EXEC dbo.uspAddSWOTStrategy @strategy_name = 'Connections and collaborations', @strategy_type_name = 'Strength', @strategy_category_name = 'Unknown';
EXEC dbo.uspAddSWOTStrategy @strategy_name = 'Dedicated network of volunteers', @strategy_type_name = 'Strength', @strategy_category_name = 'Unknown';
EXEC dbo.uspAddSWOTStrategy @strategy_name = '4 effective full-time employees', @strategy_type_name = 'Strength', @strategy_category_name = 'Unknown';
EXEC dbo.uspAddSWOTStrategy @strategy_name = 'Ability to motivate and inspire', @strategy_type_name = 'Strength', @strategy_category_name = 'Unknown';
EXEC dbo.uspAddSWOTStrategy @strategy_name = 'Engaged Board of Directors', @strategy_type_name = 'Strength', @strategy_category_name = 'Unknown';
EXEC dbo.uspAddSWOTStrategy @strategy_name = 'High-capacity, technically capable committees', @strategy_type_name = 'Strength', @strategy_category_name = 'Unknown';
EXEC dbo.uspAddSWOTStrategy @strategy_name = 'Strong growth trajectory', @strategy_type_name = 'Strength', @strategy_category_name = 'Unknown';
EXEC dbo.uspAddSWOTStrategy @strategy_name = 'Diverse skillsets, age, and gender', @strategy_type_name = 'Strength', @strategy_category_name = 'Unknown';
EXEC dbo.uspAddSWOTStrategy @strategy_name = 'Self-Critical', @strategy_type_name = 'Strength', @strategy_category_name = 'Unknown';
EXEC dbo.uspAddSWOTStrategy @strategy_name = 'Planning and visibility', @strategy_type_name = 'Strength', @strategy_category_name = 'Unknown';
EXEC dbo.uspAddSWOTStrategy @strategy_name = 'Multi-modal', @strategy_type_name = 'Strength', @strategy_category_name = 'Unknown';
EXEC dbo.uspAddSWOTStrategy @strategy_name = 'Accessible to some newcomers and community', @strategy_type_name = 'Strength', @strategy_category_name = 'Unknown';
EXEC dbo.uspAddSWOTStrategy @strategy_name = 'Proven track record of successes', @strategy_type_name = 'Strength', @strategy_category_name = 'Unknown';
EXEC dbo.uspAddSWOTStrategy @strategy_name = 'Diverse funding sources', @strategy_type_name = 'Strength', @strategy_category_name = 'Unknown';
EXEC dbo.uspAddSWOTStrategy @strategy_name = 'Use of development technology', @strategy_type_name = 'Strength', @strategy_category_name = 'Unknown';
EXEC dbo.uspAddSWOTStrategy @strategy_name = 'Media plan, relationships with media', @strategy_type_name = 'Weakness', @strategy_category_name = 'Unknown';
EXEC dbo.uspAddSWOTStrategy @strategy_name = 'Relationships with business leaders', @strategy_type_name = 'Weakness', @strategy_category_name = 'Unknown';
EXEC dbo.uspAddSWOTStrategy @strategy_name = 'Impact on non-Cambridge neighborhoods', @strategy_type_name = 'Weakness', @strategy_category_name = 'Unknown';
EXEC dbo.uspAddSWOTStrategy @strategy_name = 'Sharing our stories and successes', @strategy_type_name = 'Weakness', @strategy_category_name = 'Unknown';
EXEC dbo.uspAddSWOTStrategy @strategy_name = 'Social Media', @strategy_type_name = 'Weakness', @strategy_category_name = 'Unknown';
EXEC dbo.uspAddSWOTStrategy @strategy_name = 'Coordinated Communications Plan', @strategy_type_name = 'Weakness', @strategy_category_name = 'Unknown';
EXEC dbo.uspAddSWOTStrategy @strategy_name = 'Leadership development in volunteers / Board', @strategy_type_name = 'Weakness', @strategy_category_name = 'Unknown';
EXEC dbo.uspAddSWOTStrategy @strategy_name = 'Lack of HR / Admin staff', @strategy_type_name = 'Weakness', @strategy_category_name = 'Unknown';
EXEC dbo.uspAddSWOTStrategy @strategy_name = 'Need more support staff', @strategy_type_name = 'Weakness', @strategy_category_name = 'Unknown';
EXEC dbo.uspAddSWOTStrategy @strategy_name = 'Top-heavy', @strategy_type_name = 'Weakness', @strategy_category_name = 'Unknown';
EXEC dbo.uspAddSWOTStrategy @strategy_name = 'Staff / Volunteer growth plan', @strategy_type_name = 'Weakness', @strategy_category_name = 'Unknown';
EXEC dbo.uspAddSWOTStrategy @strategy_name = 'No Finance Committee', @strategy_type_name = 'Weakness', @strategy_category_name = 'Unknown';
EXEC dbo.uspAddSWOTStrategy @strategy_name = 'Dependent on a few individuals', @strategy_type_name = 'Weakness', @strategy_category_name = 'Unknown';
EXEC dbo.uspAddSWOTStrategy @strategy_name = 'No Vice Chairs of committees', @strategy_type_name = 'Weakness', @strategy_category_name = 'Unknown';
EXEC dbo.uspAddSWOTStrategy @strategy_name = 'Day-to-Day Roles and Responsibilities', @strategy_type_name = 'Weakness', @strategy_category_name = 'Unknown';
EXEC dbo.uspAddSWOTStrategy @strategy_name = 'Saying no to many good initiatives', @strategy_type_name = 'Weakness', @strategy_category_name = 'Unknown';
EXEC dbo.uspAddSWOTStrategy @strategy_name = 'Addressing external changes / rapid response', @strategy_type_name = 'Weakness', @strategy_category_name = 'Unknown';
EXEC dbo.uspAddSWOTStrategy @strategy_name = 'Lack of fundraising experience on Board + Staff', @strategy_type_name = 'Weakness', @strategy_category_name = 'Unknown';
EXEC dbo.uspAddSWOTStrategy @strategy_name = 'Unclear value proposition to members', @strategy_type_name = 'Weakness', @strategy_category_name = 'Unknown';
EXEC dbo.uspAddSWOTStrategy @strategy_name = 'Untapped funding potential', @strategy_type_name = 'Weakness', @strategy_category_name = 'Unknown';
EXEC dbo.uspAddSWOTStrategy @strategy_name = 'Diversity in race, ethnicity, socioeconomic', @strategy_type_name = 'Weakness', @strategy_category_name = 'Unknown';
EXEC dbo.uspAddSWOTStrategy @strategy_name = 'Young, predominately white image', @strategy_type_name = 'Weakness', @strategy_category_name = 'Unknown';
EXEC dbo.uspAddSWOTStrategy @strategy_name = 'Diversity within the organization', @strategy_type_name = 'Weakness', @strategy_category_name = 'Unknown';
EXEC dbo.uspAddSWOTStrategy @strategy_name = 'Non-development technology', @strategy_type_name = 'Weakness', @strategy_category_name = 'Unknown';
EXEC dbo.uspAddSWOTStrategy @strategy_name = 'Evaluation and Measurement', @strategy_type_name = 'Weakness', @strategy_category_name = 'Unknown'; |
<reponame>ogulcan99/webfitness-website
-- phpMyAdmin SQL Dump
-- version 5.1.0
-- https://www.phpmyadmin.net/
--
-- Anamakine: 127.0.0.1
-- Üretim Zamanı: 22 May 2021, 21:45:23
-- Sunucu sürümü: 10.4.19-MariaDB
-- PHP Sürümü: 8.0.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 */;
--
-- Veritabanı: `webfitness`
--
CREATE DATABASE IF NOT EXISTS `webfitness` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
USE `webfitness`;
-- --------------------------------------------------------
--
-- Tablo için tablo yapısı `bmi_index`
--
CREATE TABLE `bmi_index` (
`bmi_index_id` int(11) NOT NULL,
`uid` varchar(11) NOT NULL,
`last_edit` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
`height` varchar(6) NOT NULL,
`weight` varchar(6) NOT NULL,
`bmi` varchar(6) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
--
-- Tablo döküm verisi `bmi_index`
--
INSERT INTO `bmi_index` (`bmi_index_id`, `uid`, `last_edit`, `height`, `weight`, `bmi`) VALUES
(72, '1', '2021-05-22 19:40:10', '1.8', '81', '25'),
(61, '13', '2021-05-21 22:54:10', '1.79', '110.5', '34.487');
-- --------------------------------------------------------
--
-- Tablo için tablo yapısı `plans`
--
CREATE TABLE `plans` (
`plan_id` int(5) NOT NULL,
`plan_title` text CHARACTER SET latin1 NOT NULL,
`plan_desc` text CHARACTER SET latin1 NOT NULL,
`plan_bmi_min` varchar(10) COLLATE utf8_turkish_ci NOT NULL,
`plan_bmi_max` varchar(10) COLLATE utf8_turkish_ci NOT NULL,
`plan_price` varchar(10) CHARACTER SET latin1 NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_turkish_ci;
--
-- Tablo döküm verisi `plans`
--
INSERT INTO `plans` (`plan_id`, `plan_title`, `plan_desc`, `plan_bmi_min`, `plan_bmi_max`, `plan_price`) VALUES
(1, 'EGG DIET & HALF CARDIO', '<p>1 day</p>\r\n<p>Breakfast: White coffee, 1 slice of whole wheat bread, 1 boiled egg</p>\r\n<p>Snack: 1 fruit (the choice is yours)</p>\r\n<p>Lunch: 150 grams of boiled chicken, vegetable soup, green salad with chopped eggs</p>\r\n<p>Snack: 1 fruit (the choice is yours)</p>\r\n<p>Dinner: 1 small tuna, 1 slice of whole wheat bread, 1 tomato</p>\r\n<p>Chest and triceps 5x5</p>\r\n<p><br></p>\r\n<p>2 days</p>\r\n<p>Breakfast: White coffee, 1 slice of whole wheat bread, 1 boiled egg</p>\r\n<p>Snack: Fruit yogurt</p>\r\n<p>Lunch: 150 grams of white fish, chicken soup, 100 grams of tomato salad (prepared with olive oil)</p>\r\n<p>Snack: 2 boiled eggs</p>\r\n<p>Dinner: Vegetable soup, 1 slice of whole wheat bread</p>\r\n<p>leg muscles and abdominal muscles 5x5</p>\r\n<p><br></p>\r\n<p>3 days</p>\r\n<p>Breakfast: White coffee, 1 slice of whole wheat bread, 1 small pate</p>\r\n<p>Snack: 2 boiled eggs</p>\r\n<p>Lunch: 200 grams of spaghetti with meatballs, meat soup, green salad</p>\r\n<p>Snack: Fruit yogurt</p>\r\n<p>Dinner: 2 omelettes, 1 slice of whole wheat bread</p>\r\n<p> back and biceps 5x5 </p>\r\n<p><br></p>\r\n<p><br></p>\r\n<p>4 days</p>\r\n<p>Breakfast: 1 cup tea, 1 slice of whole wheat bread, 1 tablespoon butter, 1 tablespoon organic honey</p>\r\n<p>Snack: 1 fruit (the choice is yours)</p>\r\n<p>Lunch: 200 grams of beef, spinach soup, green salad</p>\r\n<p>Snack: 1 fruit (the choice is yours)</p>\r\n<p>Dinner: 1 slice of whole wheat bread, 1 green pepper, 50 grams of boiled rice, 100 grams of chicken mea</p>\r\n<p>leg muscles and abdominal muscles 5x5</p>\r\n<p><br></p>\r\n<p>5 days</p>\r\n<p>Breakfast: 1 glass of lemonade, 1 slice of whole wheat bread, 1 hot dog, 1 tablespoon of mustard</p>\r\n<p>Snack: 1 boiled egg</p>\r\n<p>Lunch: 150 grams of chicken meat, 100 grams of boiled green beans, 1 slice of whole wheat bread</p>\r\n<p>Snack: Fruit yogurt</p>\r\n<p>Dinner: 1 slice of wholemeal bread, 2 salami and salad of your choice,</p>\r\n<p> back and biceps 5x5 </p>\r\n<p><br></p>\r\n<p><br></p>\r\n<p><br></p>\r\n<p>5 days after following this diet, take a break for 2 days and then repeat the diet 2 more times, and then of course another break. Try this diet and let us know your thoughts in the comments.</p>\r\n<p><br></p>\r\n<p><br></p>', '20', '25', '40'),
(2, 'CANDIDA DIET & LIGHT CARDIO', '<p>n this sample menu, there are foods that can be accepted in the candida diet. You can arrange the menu according to your own preferences.</p>\r\n<p><br></p>\r\n<p>Monday</p>\r\n<p>Breakfast: Scrambled eggs with tomatoes and avocado</p>\r\n<p>Lunch: Turkey salad with greens, avocado slices, kale, broccoli, and olive oil</p>\r\n<p>Dinner: fried quinoa, chicken breast, steamed boiled vegetables, and coconut sauce</p>\r\n<p>JOGGING 30 MIN push-ups 5x5 sit-ups 5x5</p>\r\n<p><br></p>\r\n<p><br></p>\r\n<p>Tuesday</p>\r\n<p>Breakfast: Strained yoghurt, 25 gr. up to berry fruits, cinnamon, almonds</p>\r\n<p>Lunch: Chicken with red curry</p>\r\n<p>Dinner: Salmon with boiled broccoli and bone broth</p>\r\n<p>JOGGING 30 MIN push-ups 5x5 sit-ups 5x5</p>\r\n<p><br></p>\r\n<p><br></p>\r\n<p>Wednesday</p>\r\n<p>Breakfast: Turkey sausage and brussel sprouts</p>\r\n<p>Lunch: Lemon fried chicken and green salad</p>\r\n<p>Dinner: Breadless burger with avocado, boiled vegetables and sauerkraut</p>\r\n<p>JOGGING 30 MIN push-ups 5x5 sit-ups 5x5</p>\r\n<p><br></p>\r\n<p>Thursday</p>\r\n<p>Breakfast: Vegetable omelette, shallots, spinach, tomatoes</p>\r\n<p>Lunch: Turkey sausages from the previous day, with cabbage sauté</p>\r\n<p>Dinner: Coconut chicken with quinoa and boiled vegetables.</p>\r\n<p>MIN push-ups 5x5 sit-ups 5x5</p>\r\n<p><br></p>\r\n<p><br></p>\r\n<p>Friday</p>\r\n<p>Breakfast: Red pepper omelet, onion, kale, fried egg</p>\r\n<p>Lunch: Turkey meatballs with collard greens, millet sauced with butter</p>\r\n<p>Dinner: Salmon with lemon and dill, with asparagus on the side.</p>\r\n<p>JOGGING 30 MIN push-ups 5x5 sit-ups 5x5</p>\r\n<p><br></p>\r\n<p><br></p>\r\n<p>Saturday</p>\r\n<p>Breakfast: Buckwheat muffins with chicory coffee on the side.</p>\r\n<p>Lunch: Coconut chicken leftovers, along with quinoa and boiled vegetables</p>\r\n<p>Dinner: Chicken, garlic, pesto and zucchini with olive oil</p>\r\n<p>JOGGING 30 MIN push-ups 5x5 sit-ups 5x5</p>\r\n<p><br></p>\r\n<p><br></p>', '0', '19.9', '60'),
(3, 'CABBAGE DIET & FULL CARDIO', '<p>1 day</p>\r\n<p>You can eat unlimited fruits. Avoid eating melon, watermelon, banana, as they can block the intestines. You can drink tea without sugar. You can drink unlimitedly the soup you prepare in the morning, lunch and evening. You should drink 8 glasses of water.</p>\r\n<p>JOGGING 30 MIN push-ups 5x5 sit-ups 5x5</p>\r\n<p><br></p>\r\n<p><br></p>\r\n<p>2 days</p>\r\n<p>You can eat unlimited fresh vegetables with 1 boiled potato. Drink 3 meals of cabbage soup as you wish. You should drink 8 glasses of water.</p>\r\n<p>JOGGING 30 MIN push-ups 5x5 sit-ups 5x5</p>\r\n<p><br></p>\r\n<p><br></p>\r\n<p>3 days</p>\r\n<p>You can eat unlimited fruits. You can drink tea without sugar. You can drink as much as you want from the soup you have prepared in the morning, lunch and evening. You should drink 8 glasses of water.</p>\r\n<p>JOGGING 30 MIN push-ups 5x5 sit-ups 5x5</p>\r\n<p><br></p>\r\n<p><br></p>\r\n<p>4 days</p>\r\n<p>You can drink unlimited cabbage diet. 3 bananas and lean free. You should drink 8 glasses of water.</p>\r\n<p>JOGGING 30 MIN push-ups 5x5 sit-ups 5x5</p>\r\n<p><br></p>\r\n<p><br></p>\r\n<p>5 days</p>\r\n<p>You can drink unlimited cabbage soup in the morning, a total of 250 grams at noon and in the evening. You can eat fish, red or white meat. You have the right to eat unlimited tomatoes. Don't forget to drink 8 glasses of water.</p>\r\n<p><br></p>\r\n<p>JOGGING 30 MIN push-ups 5x5 sit-ups 5x5</p>\r\n<p><br></p>\r\n<p>6 days</p>\r\n<p>You can eat unlimited fresh or steamed lean vegetables, 1 portion of fish, red or white meat at lunch and dinner. Unlimited lean green salad can accompany your meals.</p>\r\n<p>CYLING 20MIN JIGGING 40 MIN</p>\r\n<p>7 days</p>\r\n<p>Unlimited fruit, lean vegetables and fresh juice day.</p>\r\n<p>CYLING 20MIN JIGGING 40 MIN</p>\r\n<p><br></p>\r\n<p><br></p>', '25', '30', '40'),
(4, 'FAST WEIGHT LOSS DIET & FULL CARDIO', '<p>Monday</p>\r\n<p>Breakfast: 1 orange (can be grapefruit, peach, pineapple or other fruit except banana), 2 crackers (whole wheat or cereal), unsweetened coffee or tea</p>\r\n<p>Lunch: 1 orange, 1 boiled egg, yogurt.</p>\r\n<p>Dinner: 2 boiled eggs, 2 tomatoes, 500g vegetable salad, 2 cookies.</p>\r\n<p>JOGGING 20 MIN CYLING 20 MIN </p>\r\n<p>Chest and triceps 5x5</p>\r\n<p>push-ups 5x5 sit-ups 5x5</p>\r\n<p><br></p>\r\n<p>Tuesday</p>\r\n<p>Breakfast: same as Monday's breakfast</p>\r\n<p>Lunch: 1 orange, 1 boiled egg, yogurt, 2 crackers.</p>\r\n<p>Dinner: 120g meat (preferably beef), 1 tomato, 1 cookie.</p>\r\n<p>JOGGING 20 MIN CYLING 20 MIN </p>\r\n<p>Chest and triceps 5x5</p>\r\n<p>push-ups 5x5 sit-ups 5x5</p>\r\n<p><br></p>\r\n<p><br></p>\r\n<p>Wednesday</p>\r\n<p>Breakfast: same as Monday's breakfast</p>\r\n<p>Lunch: 1 orange, 1 boiled egg, yogurt and vegetable salad.</p>\r\n<p>Dinner: 120 gr beef, 1 orange, 1 biscuit, coffee or tea</p>\r\n<p>JOGGING 20 MIN CYLING 20 MIN </p>\r\n<p>Chest and triceps 5x5</p>\r\n<p>push-ups 5x5 sit-ups 5x5</p>\r\n<p><br></p>\r\n<p><br></p>\r\n<p>Thursday</p>\r\n<p>Breakfast: same as Monday's breakfast</p>\r\n<p>Lunch: 120 grams of low-fat cheese or curd cheese, 1 tomato, 1 cookie.</p>\r\n<p>Dinner: 120 grams of meat, 2 tomatoes, 1 apple, 1 cookie</p>\r\n<p>JOGGING 20 MIN CYLING 20 MIN </p>\r\n<p>Chest and triceps 5x5</p>\r\n<p>push-ups 5x5 sit-ups 5x5</p>\r\n<p><br></p>\r\n<p><br></p>\r\n<p>Friday</p>\r\n<p>Breakfast: same as Monday's breakfast</p>\r\n<p>Lunch: 200g of steamed fish, 1 tomato, 1 cookie.</p>\r\n<p>Dinner: 500g of boiled or steamed vegetables (carrots, onions, cabbage, potatoes, beans), 1 boiled egg, 1 tomato.</p>\r\n<p>JOGGING 20 MIN CYLING 20 MIN </p>\r\n<p>Chest and triceps 5x5</p>\r\n<p>push-ups 5x5 sit-ups 5x5</p>\r\n<p><br></p>\r\n<p>By avoiding alcohol and processed foods and reducing salt intake on weekends, you can eat normally without overdoing it.</p', '30.1', '90', '80');
-- --------------------------------------------------------
--
-- Tablo için tablo yapısı `plans_users`
--
CREATE TABLE `plans_users` (
`index_id` int(11) NOT NULL,
`uid` varchar(10) NOT NULL,
`plan_id` varchar(10) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Tablo döküm verisi `plans_users`
--
INSERT INTO `plans_users` (`index_id`, `uid`, `plan_id`) VALUES
(7, '1', '3');
-- --------------------------------------------------------
--
-- Tablo için tablo yapısı `users`
--
CREATE TABLE `users` (
`uid` int(11) NOT NULL,
`email` varchar(100) COLLATE utf8_turkish_ci NOT NULL,
`password` varchar(100) COLLATE utf8_turkish_ci NOT NULL,
`last_seen` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp()
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_turkish_ci;
--
-- Tablo döküm verisi `users`
--
INSERT INTO `users` (`uid`, `email`, `password`, `last_seen`) VALUES
(1, '<EMAIL>', '<PASSWORD>', '2021-05-21 18:01:59'),
(11, '<EMAIL>', '<PASSWORD>', '2021-05-21 21:21:20'),
(15, '<EMAIL>', '12345', '2021-05-22 10:59:43');
--
-- Dökümü yapılmış tablolar için indeksler
--
--
-- Tablo için indeksler `bmi_index`
--
ALTER TABLE `bmi_index`
ADD PRIMARY KEY (`bmi_index_id`);
--
-- Tablo için indeksler `plans`
--
ALTER TABLE `plans`
ADD PRIMARY KEY (`plan_id`);
--
-- Tablo için indeksler `plans_users`
--
ALTER TABLE `plans_users`
ADD PRIMARY KEY (`index_id`);
--
-- Tablo için indeksler `users`
--
ALTER TABLE `users`
ADD PRIMARY KEY (`uid`);
--
-- Dökümü yapılmış tablolar için AUTO_INCREMENT değeri
--
--
-- Tablo için AUTO_INCREMENT değeri `bmi_index`
--
ALTER TABLE `bmi_index`
MODIFY `bmi_index_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=73;
--
-- Tablo için AUTO_INCREMENT değeri `plans`
--
ALTER TABLE `plans`
MODIFY `plan_id` int(5) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
--
-- Tablo için AUTO_INCREMENT değeri `plans_users`
--
ALTER TABLE `plans_users`
MODIFY `index_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;
--
-- Tablo için AUTO_INCREMENT değeri `users`
--
ALTER TABLE `users`
MODIFY `uid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=16;
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>1-10
CREATE VIEW [dbo].[dnn_vw_Portals]
AS
SELECT
P.PortalID,
P.PortalGroupID,
PL.PortalName,
dbo.dnn_FilePath(PL.LogoFile) AS LogoFile,
PL.FooterText,
P.ExpiryDate,
P.UserRegistration,
P.BannerAdvertising,
P.AdministratorId,
P.Currency,
P.HostFee,
P.HostSpace,
P.PageQuota,
P.UserQuota,
P.AdministratorRoleId,
P.RegisteredRoleId,
PL.Description,
PL.KeyWords,
dbo.dnn_FilePath(PL.BackgroundFile) AS BackgroundFile,
P.GUID,
P.PaymentProcessor,
P.ProcessorUserId,
P.ProcessorPassword,
P.SiteLogHistory,
U.Email,
P.DefaultLanguage,
P.TimezoneOffset,
PL.AdminTabId,
P.HomeDirectory,
PL.SplashTabId,
PL.HomeTabId,
PL.LoginTabId,
PL.RegisterTabId,
PL.UserTabId,
PL.SearchTabId,
PL.Custom404TabId,
PL.Custom500TabId,
dbo.dnn_SuperUserTabID() AS SuperTabId,
P.CreatedByUserID,
P.CreatedOnDate,
P.LastModifiedByUserID,
P.LastModifiedOnDate,
PL.CultureCode
FROM dbo.dnn_Portals AS P
INNER JOIN dbo.dnn_PortalLocalization AS PL ON P.PortalID = PL.PortalID
LEFT JOIN dbo.dnn_Users AS U ON P.AdministratorId = U.UserID
|
-- phpMyAdmin SQL Dump
-- version 4.6.5.2
-- https://www.phpmyadmin.net/
--
-- Host: localhost:3306
-- Generation Time: Nov 25, 2017 at 02:13 PM
-- Server version: 5.6.34
-- PHP Version: 7.1.0
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
--
-- Database: `golang_rest`
--
-- --------------------------------------------------------
--
-- Table structure for table `articles`
--
CREATE TABLE `articles` (
`id` int(11) NOT NULL,
`created_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
`updated_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
`deleted_at` timestamp NULL DEFAULT NULL,
`user_id` int(11) DEFAULT NULL,
`title` varchar(100) COLLATE utf8mb4_bin DEFAULT NULL,
`content` text COLLATE utf8mb4_bin
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;
--
-- Dumping data for table `articles`
--
INSERT INTO `articles` (`id`, `created_at`, `updated_at`, `deleted_at`, `user_id`, `title`, `content`) VALUES
(1, '2017-11-24 20:06:05', '2017-11-24 20:06:05', NULL, 1, '第一手', '内容要多'),
(2, '2017-11-24 20:06:15', '2017-11-24 20:06:15', NULL, 1, '第二手', '内容要多22222'),
(3, '2017-11-24 21:44:39', '2017-11-24 21:44:39', NULL, 1, '第二手', '内容要多22222');
-- --------------------------------------------------------
--
-- Table structure for table `products`
--
CREATE TABLE `products` (
`id` int(11) NOT NULL,
`created_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
`updated_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
`deleted_at` timestamp NULL DEFAULT NULL,
`title` varchar(100) COLLATE utf8mb4_bin DEFAULT NULL,
`external_code` varchar(255) COLLATE utf8mb4_bin DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;
-- --------------------------------------------------------
--
-- Table structure for table `records`
--
CREATE TABLE `records` (
`id` int(11) NOT NULL,
`created_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
`updated_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
`deleted_at` timestamp NULL DEFAULT NULL,
`wareroom_id` varchar(100) COLLATE utf8mb4_bin DEFAULT NULL,
`product_id` varchar(100) COLLATE utf8mb4_bin DEFAULT NULL,
`quantity` varchar(100) COLLATE utf8mb4_bin DEFAULT NULL,
`sales` varchar(100) COLLATE utf8mb4_bin DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;
-- --------------------------------------------------------
--
-- Table structure for table `users`
--
CREATE TABLE `users` (
`id` int(11) NOT NULL,
`created_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
`updated_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
`deleted_at` timestamp NULL DEFAULT NULL,
`username` varchar(100) COLLATE utf8mb4_bin DEFAULT NULL,
`email` varchar(100) COLLATE utf8mb4_bin DEFAULT NULL,
`password` varchar(255) COLLATE utf8mb4_bin DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;
--
-- Dumping data for table `users`
--
INSERT INTO `users` (`id`, `created_at`, `updated_at`, `deleted_at`, `username`, `email`, `password`) VALUES
(1, '2017-11-24 20:04:17', '2017-11-24 20:04:17', NULL, 'zan', '<EMAIL>', <PASSWORD>'),
(2, '2017-11-24 21:28:01', '2017-11-24 21:28:01', NULL, 'zan2', '<EMAIL>', <PASSWORD>');
-- --------------------------------------------------------
--
-- Table structure for table `warerooms`
--
CREATE TABLE `warerooms` (
`id` int(11) NOT NULL,
`created_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
`updated_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
`deleted_at` timestamp NULL DEFAULT NULL,
`title` varchar(100) COLLATE utf8mb4_bin DEFAULT NULL,
`numbering` varchar(100) COLLATE utf8mb4_bin DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;
--
-- Indexes for dumped tables
--
--
-- Indexes for table `articles`
--
ALTER TABLE `articles`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `products`
--
ALTER TABLE `products`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `records`
--
ALTER TABLE `records`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `users`
--
ALTER TABLE `users`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `username` (`username`),
ADD UNIQUE KEY `email` (`email`);
--
-- Indexes for table `warerooms`
--
ALTER TABLE `warerooms`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `articles`
--
ALTER TABLE `articles`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `products`
--
ALTER TABLE `products`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `records`
--
ALTER TABLE `records`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `users`
--
ALTER TABLE `users`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `warerooms`
--
ALTER TABLE `warerooms`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; |
<filename>mysql/init/init.sql
CREATE USER 'username'@'%' IDENTIFIED BY 'password';
GRANT All privileges ON *.* TO 'username'@'%';
CREATE DATABASE IF NOT EXISTS LabelMe;
use LabelMe;
create table user(
id INT NOT NULL AUTO_INCREMENT,
username VARCHAR(100) NOT NULL,
password VARCHAR(40) NOT NULL,
PRIMARY KEY ( id )
);
INSERT INTO user(username,password)
VALUES ('user1','<PASSWORD>');
|
<filename>dic.sql
column table_name format a30
select table_name from dictionary where table_name like upper('%&mascara%')
/
|
<reponame>pavel-voinov/oracle-dba-workspace<filename>scripts/sysdba/kill_sessions_by_event.sql
set serveroutput on size unlimited verify off timing off feedback off linesize 1024 pagesize 9999 heading off long 32000 autotrace off newpage none
set termout off
define fmask=''
column time_stamp new_value fmask
SELECT 'kill_sessions_' || to_char(sysdate, 'YYYYMMDDHH24MISS') || '.sql' as time_stamp FROM dual
/
set termout on
column status format a10
column machine format a30
column program format a30
column username format a20
column osuser format a10
SELECT s.inst_id, s.sid, s.serial#, s.username, s.osuser, s.machine, s.program, s.status, s.event, p.spid
FROM gv$session s, gv$process p
WHERE upper(s.event) = upper('&1') AND s.username like upper('&2.%') AND s.paddr = p.addr AND s.inst_id = p.inst_id
ORDER BY 1, 2, 4
/
spool /tmp/&fmask
column sql_text format a1024 word_wrapped
set termout on
PROMPT set echo on timing on
SELECT 'ALTER SYSTEM KILL SESSION ''' || sid || ',' || serial# || ',@' || inst_id || ''' IMMEDIATE;' as sql_text
FROM gv$session
WHERE upper(event) = upper('&1') AND username like upper('&2.%')
/
PROMPT set echo off
PROMPT pause
PROMPT host rm -i /tmp/&fmask
set termout off
spool off
set termout on
PROMPT Press Ctrl-C to exit or any other key to start &fmask script
pause
@/tmp/&fmask
|
<reponame>woorim960/woowahan-agile-codingtest
-- 코드를 입력하세요
SELECT ANIMAL_ID, NAME, SEX_UPON_INTAKE
FROM ANIMAL_INS
WHERE NAME = 'Lucy' or NAME = 'Pickle' or NAME = 'Rogan' or NAME = 'Sabrina' or NAME = 'Mitty' or NAME = 'Ella'; |
<filename>queries/Failing Tasks - Last Day.sql
select
title,
completed_at at time zone 'utc' as time_since_failure_pst,
wb.updated_at,
coalesce(su.name || '@twitter.com', '<EMAIL>') as wb_owner,
notes
from background_jobs bj
left join workbooks wb on wb.name = bj.title and bj.site_id = wb.site_id
left join users u on u.id = wb.owner_id
left join system_users su on su.id = u.system_user_id
where job_name in ('Refresh Extracts', 'Increment Extracts')
and finish_code = 1
and progress = 100
and now() at time zone 'utc' < completed_at + interval '1 day'
order by completed_at desc |
<filename>src/jk64reportmap_action_pkg.sql
-- jk64 ReportMap Action v1.0 Aug 2020
-- https://github.com/jeffreykemp/jk64-plugin-reportmap
-- Copyright (c) 2020 <NAME>
-- Released under the MIT licence: http://opensource.org/licenses/mit-license
subtype plugin_attr is varchar2(32767);
function render
( p_dynamic_action apex_plugin.t_dynamic_action
, p_plugin apex_plugin.t_plugin
) return apex_plugin.t_dynamic_action_render_result is
l_action plugin_attr := p_dynamic_action.attribute_01;
l_source_type plugin_attr := p_dynamic_action.attribute_02;
l_page_item plugin_attr := p_dynamic_action.attribute_03;
l_selector plugin_attr := p_dynamic_action.attribute_04;
l_static_value plugin_attr := p_dynamic_action.attribute_05;
l_js_expression plugin_attr := p_dynamic_action.attribute_06;
l_option plugin_attr := p_dynamic_action.attribute_07;
l_action_js varchar2(32767);
l_val_js varchar2(32767);
l_result apex_plugin.t_dynamic_action_render_result;
begin
if apex_application.g_debug then
apex_plugin_util.debug_dynamic_action
(p_plugin => p_plugin
,p_dynamic_action => p_dynamic_action);
end if;
l_action_js := case l_action
when 'deleteAllFeatures' then
'$("#map_"+e.id).reportmap("deleteAllFeatures");'
when 'deleteSelectedFeatures' then
'$("#map_"+e.id).reportmap("deleteSelectedFeatures");'
when 'fitBounds' then
'$("#map_"+e.id).reportmap("fitBounds",#VAL#);'
when 'geolocate' then
'$("#map_"+e.id).reportmap("geolocate");'
when 'getAddressByPos' then
'var pos = $("#map_"+e.id).reportmap("instance").parseLatLng(#VAL#);'
|| '$("#map_"+e.id).reportmap("getAddressByPos",pos.lat(),pos.lng());'
when 'gotoAddress' then
'$("#map_"+e.id).reportmap("gotoAddress",#VAL#);'
when 'gotoPosByString' then
'$("#map_"+e.id).reportmap("gotoPosByString",#VAL#);'
when 'hideMessage' then
'$("#map_"+e.id).reportmap("hideMessage");'
when 'loadGeoJsonString' then
'$("#map_"+e.id).reportmap("loadGeoJsonString",#VAL#);'
when 'panTo' then
'$("#map_"+e.id).reportmap("panToByString",#VAL#);'
when 'restrictTo' then
'$("#map_"+e.id).reportmap("instance").map.setOptions({restriction:{latLngBounds:#VAL#}});'
when 'restrictToStrict' then
'$("#map_"+e.id).reportmap("instance").map.setOptions({restriction:{latLngBounds:#VAL#,strictBounds:true}});'
when 'setOption' then
'$("#map_"+e.id).reportmap("option","' || l_option || '",#VAL#);'
when 'showMessage' then
'$("#map_"+e.id).reportmap("showMessage",#VAL#);'
end;
if l_action_js is null then
raise_application_error(-20000, 'Plugin error: unrecognised action (' || l_action || ')');
end if;
if instr(l_action_js,'#VAL#') > 0 then
l_action_js := replace(l_action_js, '#VAL#', 'val');
l_val_js :=
case l_source_type
when 'triggeringElement' then
'var val=$v(this.triggeringElement);'
when 'pageItem' then
'var val=$v("' || apex_javascript.escape(l_page_item) || '");'
when 'jquerySelector' then
'var val=$("' || apex_javascript.escape(l_selector) || '").val();'
when 'javascriptExpression' then
'var val=' || l_js_expression || ';'
when 'static' then
'var val="' || apex_javascript.escape(l_static_value) || '";'
end;
if l_val_js is null then
raise_application_error(-20000, 'Plugin error: unrecognised source type (' || l_source_type || ')');
end if;
end if;
l_result.javascript_function
:= 'function(){'
|| 'apex.debug("ReportMap Action:","'|| l_action || '");'
|| l_val_js
|| 'this.affectedElements.each(function(i,e){'
|| l_action_js
|| '});'
|| '}';
return l_result;
exception
when others then
apex_debug.error(sqlerrm);
apex_debug.message(dbms_utility.format_error_stack);
apex_debug.message(dbms_utility.format_call_stack);
raise;
end render; |
INSERT INTO axtInfo VALUES ('hg12','Blastz Best in Genome','chr1','/cluster/store2/mm.2002.02/mm2/bed/blastz.gs13.2002-08-30/axtBest/chr1.axt');
INSERT INTO axtInfo VALUES ('hg12','Blastz Best in Genome','chr12','/cluster/store2/mm.2002.02/mm2/bed/blastz.gs13.2002-08-30/axtBest/chr12.axt');
INSERT INTO axtInfo VALUES ('hg12','Blastz Best in Genome','chr15','/cluster/store2/mm.2002.02/mm2/bed/blastz.gs13.2002-08-30/axtBest/chr15.axt');
INSERT INTO axtInfo VALUES ('hg12','Blastz Best in Genome','chr18','/cluster/store2/mm.2002.02/mm2/bed/blastz.gs13.2002-08-30/axtBest/chr18.axt');
INSERT INTO axtInfo VALUES ('hg12','Blastz Best in Genome','chr3','/cluster/store2/mm.2002.02/mm2/bed/blastz.gs13.2002-08-30/axtBest/chr3.axt');
INSERT INTO axtInfo VALUES ('hg12','Blastz Best in Genome','chr6','/cluster/store2/mm.2002.02/mm2/bed/blastz.gs13.2002-08-30/axtBest/chr6.axt');
INSERT INTO axtInfo VALUES ('hg12','Blastz Best in Genome','chr9','/cluster/store2/mm.2002.02/mm2/bed/blastz.gs13.2002-08-30/axtBest/chr9.axt');
INSERT INTO axtInfo VALUES ('hg12','Blastz Best in Genome','chr10','/cluster/store2/mm.2002.02/mm2/bed/blastz.gs13.2002-08-30/axtBest/chr10.axt');
INSERT INTO axtInfo VALUES ('hg12','Blastz Best in Genome','chr13','/cluster/store2/mm.2002.02/mm2/bed/blastz.gs13.2002-08-30/axtBest/chr13.axt');
INSERT INTO axtInfo VALUES ('hg12','Blastz Best in Genome','chr16','/cluster/store2/mm.2002.02/mm2/bed/blastz.gs13.2002-08-30/axtBest/chr16.axt');
INSERT INTO axtInfo VALUES ('hg12','Blastz Best in Genome','chr19','/cluster/store2/mm.2002.02/mm2/bed/blastz.gs13.2002-08-30/axtBest/chr19.axt');
INSERT INTO axtInfo VALUES ('hg12','Blastz Best in Genome','chr4','/cluster/store2/mm.2002.02/mm2/bed/blastz.gs13.2002-08-30/axtBest/chr4.axt');
INSERT INTO axtInfo VALUES ('hg12','Blastz Best in Genome','chr7','/cluster/store2/mm.2002.02/mm2/bed/blastz.gs13.2002-08-30/axtBest/chr7.axt');
INSERT INTO axtInfo VALUES ('hg12','Blastz Best in Genome','chrUn','/cluster/store2/mm.2002.02/mm2/bed/blastz.gs13.2002-08-30/axtBest/chrUn.axt');
INSERT INTO axtInfo VALUES ('hg12','Blastz Best in Genome','chr11','/cluster/store2/mm.2002.02/mm2/bed/blastz.gs13.2002-08-30/axtBest/chr11.axt');
INSERT INTO axtInfo VALUES ('hg12','Blastz Best in Genome','chr14','/cluster/store2/mm.2002.02/mm2/bed/blastz.gs13.2002-08-30/axtBest/chr14.axt');
INSERT INTO axtInfo VALUES ('hg12','Blastz Best in Genome','chr17','/cluster/store2/mm.2002.02/mm2/bed/blastz.gs13.2002-08-30/axtBest/chr17.axt');
INSERT INTO axtInfo VALUES ('hg12','Blastz Best in Genome','chr2','/cluster/store2/mm.2002.02/mm2/bed/blastz.gs13.2002-08-30/axtBest/chr2.axt');
INSERT INTO axtInfo VALUES ('hg12','Blastz Best in Genome','chr5','/cluster/store2/mm.2002.02/mm2/bed/blastz.gs13.2002-08-30/axtBest/chr5.axt');
INSERT INTO axtInfo VALUES ('hg12','Blastz Best in Genome','chr8','/cluster/store2/mm.2002.02/mm2/bed/blastz.gs13.2002-08-30/axtBest/chr8.axt');
INSERT INTO axtInfo VALUES ('hg12','Blastz Best in Genome','chrX','/cluster/store2/mm.2002.02/mm2/bed/blastz.gs13.2002-08-30/axtBest/chrX.axt');
INSERT INTO axtInfo VALUES ('mm2','Best Mouse Mouse','chr14','/cluster/store2/mm.2002.02/mm2/bed/blastz.mm2mm2.2002-05-22/axtBest/chr14.axt');
INSERT INTO axtInfo VALUES ('mm2','Best Mouse Mouse','chr1','/cluster/store2/mm.2002.02/mm2/bed/blastz.mm2mm2.2002-05-22/axtBest/chr1.axt');
INSERT INTO axtInfo VALUES ('mm2','Best Mouse Mouse','chr2','/cluster/store2/mm.2002.02/mm2/bed/blastz.mm2mm2.2002-05-22/axtBest/chr2.axt');
INSERT INTO axtInfo VALUES ('mm2','Best Mouse Mouse','chr3','/cluster/store2/mm.2002.02/mm2/bed/blastz.mm2mm2.2002-05-22/axtBest/chr3.axt');
INSERT INTO axtInfo VALUES ('mm2','Best Mouse Mouse','chr4','/cluster/store2/mm.2002.02/mm2/bed/blastz.mm2mm2.2002-05-22/axtBest/chr4.axt');
INSERT INTO axtInfo VALUES ('mm2','Best Mouse Mouse','chr5','/cluster/store2/mm.2002.02/mm2/bed/blastz.mm2mm2.2002-05-22/axtBest/chr5.axt');
INSERT INTO axtInfo VALUES ('mm2','Best Mouse Mouse','chr6','/cluster/store2/mm.2002.02/mm2/bed/blastz.mm2mm2.2002-05-22/axtBest/chr6.axt');
INSERT INTO axtInfo VALUES ('mm2','Best Mouse Mouse','chr7','/cluster/store2/mm.2002.02/mm2/bed/blastz.mm2mm2.2002-05-22/axtBest/chr7.axt');
INSERT INTO axtInfo VALUES ('mm2','Best Mouse Mouse','chr8','/cluster/store2/mm.2002.02/mm2/bed/blastz.mm2mm2.2002-05-22/axtBest/chr8.axt');
INSERT INTO axtInfo VALUES ('mm2','Best Mouse Mouse','chr10','/cluster/store2/mm.2002.02/mm2/bed/blastz.mm2mm2.2002-05-22/axtBest/chr10.axt');
INSERT INTO axtInfo VALUES ('mm2','Best Mouse Mouse','chr11','/cluster/store2/mm.2002.02/mm2/bed/blastz.mm2mm2.2002-05-22/axtBest/chr11.axt');
INSERT INTO axtInfo VALUES ('mm2','Best Mouse Mouse','chr12','/cluster/store2/mm.2002.02/mm2/bed/blastz.mm2mm2.2002-05-22/axtBest/chr12.axt');
INSERT INTO axtInfo VALUES ('mm2','Best Mouse Mouse','chr13','/cluster/store2/mm.2002.02/mm2/bed/blastz.mm2mm2.2002-05-22/axtBest/chr13.axt');
INSERT INTO axtInfo VALUES ('mm2','Best Mouse Mouse','chr15','/cluster/store2/mm.2002.02/mm2/bed/blastz.mm2mm2.2002-05-22/axtBest/chr15.axt');
INSERT INTO axtInfo VALUES ('mm2','Best Mouse Mouse','chr16','/cluster/store2/mm.2002.02/mm2/bed/blastz.mm2mm2.2002-05-22/axtBest/chr16.axt');
INSERT INTO axtInfo VALUES ('mm2','Best Mouse Mouse','chr17','/cluster/store2/mm.2002.02/mm2/bed/blastz.mm2mm2.2002-05-22/axtBest/chr17.axt');
INSERT INTO axtInfo VALUES ('mm2','Best Mouse Mouse','chr18','/cluster/store2/mm.2002.02/mm2/bed/blastz.mm2mm2.2002-05-22/axtBest/chr18.axt');
INSERT INTO axtInfo VALUES ('mm2','Best Mouse Mouse','chr19','/cluster/store2/mm.2002.02/mm2/bed/blastz.mm2mm2.2002-05-22/axtBest/chr19.axt');
INSERT INTO axtInfo VALUES ('mm2','Best Mouse Mouse','chrX','/cluster/store2/mm.2002.02/mm2/bed/blastz.mm2mm2.2002-05-22/axtBest/chrX.axt');
INSERT INTO axtInfo VALUES ('mm2','Best Mouse Mouse','chrUn','/cluster/store2/mm.2002.02/mm2/bed/blastz.mm2mm2.2002-05-22/axtBest/chrUn.axt');
|
<gh_stars>100-1000
CREATE PROCEDURE [dbo].[usp_sqlwatch_logger_hadr_database_replica_states]
AS
declare @snapshot_type_id tinyint = 29
declare @date_snapshot_current datetime2(0)
--get snapshot header
exec [dbo].[usp_sqlwatch_internal_insert_header]
@snapshot_time_new = @date_snapshot_current OUTPUT,
@snapshot_type_id = @snapshot_type_id
insert into [dbo].[sqlwatch_logger_hadr_database_replica_states]
(
[hadr_group_name] ,
[replica_server_name] ,
[availability_mode] ,
[failover_mode] ,
[database_name],
--[sqlwatch_database_id] ,
[is_local] ,
[is_primary_replica] ,
[synchronization_state] ,
[is_commit_participant] ,
[synchronization_health] ,
[database_state] ,
[is_suspended] ,
[suspend_reason] ,
[log_send_queue_size] ,
[log_send_rate] ,
[redo_queue_size] ,
[redo_rate] ,
[filestream_send_rate] ,
[secondary_lag_seconds] ,
[last_commit_time] ,
[snapshot_type_id] ,
[snapshot_time] ,
[sql_instance]
)
select
hadr_group_name = ag.name
,ar.replica_server_name
,ar.availability_mode
,ar.failover_mode
--,db.sqlwatch_database_id
,[database_name] = dbs.name
,rs.is_local
,[is_primary_replica] = null --rs.[is_primary_replica] --2014 onwards
,rs.[synchronization_state]
,rs.[is_commit_participant]
,rs.[synchronization_health]
,rs.[database_state]
,rs.[is_suspended]
,rs.[suspend_reason]
,rs.[log_send_queue_size]
,rs.[log_send_rate]
,rs.[redo_queue_size]
,rs.[redo_rate]
,rs.[filestream_send_rate]
,[secondary_lag_seconds] = null --rs.[secondary_lag_seconds] --2014 onwards
,rs.[last_commit_time]
,[snapshot_type_id]=@snapshot_type_id
,[snapshot_time]=@date_snapshot_current
,[sql_instance]=[dbo].[ufn_sqlwatch_get_servername]()
from sys.dm_hadr_database_replica_states rs
inner join sys.availability_replicas ar
on ar.group_id = rs.group_id
and ar.replica_id = rs.replica_id
inner join sys.availability_groups ag
on ag.group_id = rs.group_id
inner join sys.databases dbs
on dbs.database_id = rs.database_id
--inner join dbo.vw_sqlwatch_sys_databases sdb
-- on sdb.database_id = rs.database_id
--inner join dbo.sqlwatch_meta_database db
-- on db.database_name = sdb.name
-- and db.database_create_date = sdb.create_date |
<gh_stars>0
-- noinspection SqlNoDataSourceInspectionForFile
-- create chromosome table
DROP TABLE IF EXISTS chromosomes;
CREATE TABLE chromosomes (
_chromosomes_key INTEGER,
chromosome_num INTEGER,
chromosome TEXT,
species_id TEXT,
PRIMARY KEY (_chromosomes_key)
);
-- insert chromosome data
INSERT INTO chromosomes VALUES (null, 1, '1', 'Mm');
INSERT INTO chromosomes VALUES (null, 2, '2', 'Mm');
INSERT INTO chromosomes VALUES (null, 3, '3', 'Mm');
INSERT INTO chromosomes VALUES (null, 4, '4', 'Mm');
INSERT INTO chromosomes VALUES (null, 5, '5', 'Mm');
INSERT INTO chromosomes VALUES (null, 6, '6', 'Mm');
INSERT INTO chromosomes VALUES (null, 7, '7', 'Mm');
INSERT INTO chromosomes VALUES (null, 8, '8', 'Mm');
INSERT INTO chromosomes VALUES (null, 9, '9', 'Mm');
INSERT INTO chromosomes VALUES (null, 10, '10', 'Mm');
INSERT INTO chromosomes VALUES (null, 11, '11', 'Mm');
INSERT INTO chromosomes VALUES (null, 12, '12', 'Mm');
INSERT INTO chromosomes VALUES (null, 13, '13', 'Mm');
INSERT INTO chromosomes VALUES (null, 14, '14', 'Mm');
INSERT INTO chromosomes VALUES (null, 15, '15', 'Mm');
INSERT INTO chromosomes VALUES (null, 16, '16', 'Mm');
INSERT INTO chromosomes VALUES (null, 17, '17', 'Mm');
INSERT INTO chromosomes VALUES (null, 18, '18', 'Mm');
INSERT INTO chromosomes VALUES (null, 19, '19', 'Mm');
INSERT INTO chromosomes VALUES (null, 20, 'X', 'Mm');
INSERT INTO chromosomes VALUES (null, 21, 'Y', 'Mm');
INSERT INTO chromosomes VALUES (null, 22, 'MT', 'Mm');
INSERT INTO chromosomes VALUES (null, 1, '1', 'Hs');
INSERT INTO chromosomes VALUES (null, 2, '2', 'Hs');
INSERT INTO chromosomes VALUES (null, 3, '3', 'Hs');
INSERT INTO chromosomes VALUES (null, 4, '4', 'Hs');
INSERT INTO chromosomes VALUES (null, 5, '5', 'Hs');
INSERT INTO chromosomes VALUES (null, 6, '6', 'Hs');
INSERT INTO chromosomes VALUES (null, 7, '7', 'Hs');
INSERT INTO chromosomes VALUES (null, 8, '8', 'Hs');
INSERT INTO chromosomes VALUES (null, 9, '9', 'Hs');
INSERT INTO chromosomes VALUES (null, 10, '10', 'Hs');
INSERT INTO chromosomes VALUES (null, 11, '11', 'Hs');
INSERT INTO chromosomes VALUES (null, 12, '12', 'Hs');
INSERT INTO chromosomes VALUES (null, 13, '13', 'Hs');
INSERT INTO chromosomes VALUES (null, 14, '14', 'Hs');
INSERT INTO chromosomes VALUES (null, 15, '15', 'Hs');
INSERT INTO chromosomes VALUES (null, 16, '16', 'Hs');
INSERT INTO chromosomes VALUES (null, 17, '17', 'Hs');
INSERT INTO chromosomes VALUES (null, 18, '18', 'Hs');
INSERT INTO chromosomes VALUES (null, 19, '19', 'Hs');
INSERT INTO chromosomes VALUES (null, 20, '20', 'Hs');
INSERT INTO chromosomes VALUES (null, 21, '21', 'Hs');
INSERT INTO chromosomes VALUES (null, 22, '22', 'Hs');
INSERT INTO chromosomes VALUES (null, 23, 'X', 'Hs');
INSERT INTO chromosomes VALUES (null, 24, 'Y', 'Hs');
INSERT INTO chromosomes VALUES (null, 25, 'MT', 'Hs');
-- create chromosome indices
CREATE INDEX idx_chromosomes_cnum ON chromosomes (chromosome_num ASC);
CREATE INDEX idx_chromosomes_chrom ON chromosomes (chromosome ASC);
CREATE INDEX idx_chromosomes_species ON chromosomes (species_id ASC);
-- remove the data for the chromosomes we aren't bothering with
DELETE FROM ensembl_genes_tmp WHERE chromosome_name NOT IN (SELECT chromosome FROM chromosomes);
-- create some indices to speed up updates and lookups
CREATE INDEX idx_crossref ON mgi_ensemblids_tmp (crossReferences_identifier ASC);
CREATE INDEX idx_crossref_externalid ON ensembl_genes_tmp (external_id ASC);
CREATE INDEX idx_species_id_tmp ON ensembl_genes_tmp (species_id ASC);
CREATE INDEX idx_mgi_genes_tmp ON mgi_genes_tmp (primaryIdentifier ASC);
-- update the mgi_ids
UPDATE ensembl_genes_tmp
SET external_id = (SELECT primaryIdentifier
FROM mgi_ensemblids_tmp
WHERE crossReferences_identifier = ensembl_genes_tmp.ensembl_gene_id)
WHERE species_id = 'Mm'
AND external_gene_db != 'MGI Symbol';
/*
-- DEBUGGING
-- ensembl ids with multiple mgi ids
select count(1), ensembl_gene_id
from ensembl_genes_tmp
group by ensembl_gene_id
and species_id = 'Mm'
having count(1) > 1;
-- mgi ids with multiple ensembl ids
select count(1), mgi_id
from ensembl_genes_mm_tmp
group by mgi_id
having count(1) > 1;
select * from ensembl_genes_mm_tmp where ensembl_gene_id in (select ensembl_gene_id from (select count(1), ensembl_gene_id
from ensembl_genes_mm_tmp
group by ensembl_gene_id
having count(1) > 1));
*/
-- there is a primary mgi_id, so let's get it
ALTER TABLE ensembl_genes_tmp ADD COLUMN primary_mgi_id TEXT;
UPDATE ensembl_genes_tmp
SET primary_mgi_id = external_id
WHERE ensembl_gene_id IN (SELECT ensembl_gene_id
FROM (SELECT count(1), ensembl_gene_id
FROM ensembl_genes_tmp
WHERE species_id = 'Mm'
GROUP BY ensembl_gene_id
HAVING count(1) > 1)
)
AND description like '%'||external_id||']'
AND species_id ='Mm';
CREATE INDEX idx_primary_mgi_id_tmp ON ensembl_genes_tmp (primary_mgi_id ASC);
DROP TABLE IF EXISTS updater;
CREATE TEMP TABLE updater AS
SELECT *
FROM ensembl_genes_tmp
WHERE ensembl_gene_id in (SELECT ensembl_gene_id
FROM (SELECT count(1), ensembl_gene_id
FROM ensembl_genes_tmp
WHERE species_id = 'Mm'
GROUP BY ensembl_gene_id
HAVING count(1) > 1)
)
AND primary_mgi_id is not null
AND species_id = 'Mm';
UPDATE ensembl_genes_tmp
SET primary_mgi_id = (SELECT primary_mgi_id
FROM updater
WHERE ensembl_gene_id = ensembl_genes_tmp.ensembl_gene_id)
WHERE ensembl_gene_id in (SELECT ensembl_gene_id
FROM updater)
AND species_id = 'Mm';
UPDATE ensembl_genes_tmp
SET primary_mgi_id = external_id
WHERE primary_mgi_id is null
AND species_id = 'Mm';
-- create the ensembl_genes table
DROP TABLE IF EXISTS ensembl_genes;
CREATE TABLE ensembl_genes (
_ensembl_genes_key INTEGER,
ensembl_gene_id TEXT,
external_id TEXT,
species_id TEXT,
symbol TEXT,
name TEXT,
description TEXT,
synonyms TEXT,
chromosome TEXT,
start_position INTEGER,
end_position INTEGER,
strand INTEGER,
PRIMARY KEY (_ensembl_genes_key)
);
DELETE
FROM ensembl_genes_tmp
WHERE species_id = 'Mm'
AND external_id IS NOT NULL
AND external_id != primary_mgi_id;
-- insert the mouse data
INSERT
INTO ensembl_genes
SELECT distinct null,
e.ensembl_gene_id,
e.primary_mgi_id,
'Mm',
m.symbol,
m.name,
m.description,
null,
e.chromosome_name,
e.start_position,
e.end_position,
e.strand
FROM ensembl_genes_tmp e, mgi_genes_tmp m
WHERE e.primary_mgi_id = m.primaryIdentifier
AND e.species_id = 'Mm';
-- there could be multiple records not yet ported
UPDATE ensembl_genes_tmp
SET external_id = null,
primary_mgi_id = null
WHERE species_id = 'Mm'
AND ensembl_gene_id NOT IN (SELECT ensembl_gene_id
FROM ensembl_genes
WHERE species_id = 'Mm');
INSERT
INTO ensembl_genes
SELECT distinct null,
e.ensembl_gene_id,
e.primary_mgi_id,
'Mm',
e.external_gene_symbol,
null,
e.description,
null,
e.chromosome_name,
e.start_position,
e.end_position,
e.strand
FROM ensembl_genes_tmp e
WHERE e.ensembl_gene_id NOT IN (SELECT ensembl_gene_id FROM ensembl_genes WHERE species_id = 'Mm')
AND e.species_id = 'Mm';
-- should be no rows
SELECT count(1), ensembl_gene_id
FROM ensembl_genes
GROUP BY ensembl_gene_id
HAVING count(1) > 1;
-- create some indices on the human data
CREATE INDEX hugo_genes_tmp_idx1 ON hugo_genes_tmp (hugo_id ASC);
CREATE INDEX hugo_genes_tmp_idx2 ON hugo_genes_tmp (ensembl_gene_id ASC);
-- update the external_id
UPDATE ensembl_genes_tmp
SET external_id = (SELECT hugo_id
FROM hugo_genes_tmp
WHERE ensembl_gene_id = ensembl_genes_tmp.ensembl_gene_id
AND ensembl_genes_tmp.species_id = 'Hs')
WHERE external_id = 'HGNC:'
AND species_id = 'Hs';
-- there is a primary hugo_id, so let's get it
ALTER TABLE ensembl_genes_tmp ADD COLUMN primary_hgnc_id TEXT;
UPDATE ensembl_genes_tmp
SET primary_hgnc_id = external_id
WHERE species_id = 'Hs'
AND ensembl_gene_id in (SELECT ensembl_gene_id
FROM (SELECT count(1), ensembl_gene_id
FROM ensembl_genes_tmp
WHERE species_id = 'Hs'
GROUP BY ensembl_gene_id
HAVING count(1) > 1)
)
AND description like '%'||substr(external_id,6)||']';
DROP TABLE IF EXISTS updater;
CREATE TEMP TABLE updater AS
SELECT *
FROM ensembl_genes_tmp
WHERE ensembl_gene_id in (SELECT ensembl_gene_id
FROM (SELECT count(1), ensembl_gene_id
FROM ensembl_genes_tmp
WHERE species_id = 'Hs'
GROUP BY ensembl_gene_id
HAVING count(1) > 1)
)
AND primary_hgnc_id is not null
AND species_id = 'Hs';
UPDATE ensembl_genes_tmp
SET primary_hgnc_id = (SELECT primary_hgnc_id
FROM updater
WHERE ensembl_gene_id = ensembl_genes_tmp.ensembl_gene_id
AND ensembl_genes_tmp.species_id ='Hs')
WHERE ensembl_gene_id in (SELECT ensembl_gene_id
FROM updater)
AND species_id = 'Hs';
UPDATE ensembl_genes_tmp
SET primary_hgnc_id = external_id
WHERE primary_hgnc_id is null
AND species_id = 'Hs';
CREATE INDEX idx_primary_hgnc_id_tmp ON ensembl_genes_tmp (primary_hgnc_id ASC);
DELETE
FROM ensembl_genes_tmp
WHERE species_id = 'Hs'
AND external_id IS NOT NULL
AND external_id != primary_hgnc_id;
-- insert the human data
INSERT
INTO ensembl_genes
SELECT distinct null,
e.ensembl_gene_id,
e.primary_hgnc_id,
'Hs',
h.gene_symbol,
h.gene_name,
null,
null,
e.chromosome_name,
e.start_position,
e.end_position,
e.strand
FROM ensembl_genes_tmp e, hugo_genes_tmp h
WHERE e.primary_hgnc_id = h.hugo_id
AND e.species_id = 'Hs'
UNION
SELECT distinct null,
e.ensembl_gene_id,
e.primary_hgnc_id,
'Hs',
e.external_id,
null,
e.description,
null,
e.chromosome_name,
e.start_position,
e.end_position,
e.strand
FROM ensembl_genes_tmp e
WHERE (length(e.external_id) = 0 or e.external_id is null)
AND e.species_id = 'Hs';
UPDATE ensembl_genes_tmp
SET external_id = null,
primary_hgnc_id = null
WHERE species_id = 'Hs'
AND ensembl_gene_id NOT IN (SELECT ensembl_gene_id
FROM ensembl_genes
WHERE species_id = 'Hs');
INSERT
INTO ensembl_genes
SELECT distinct null,
e.ensembl_gene_id,
e.primary_hgnc_id,
'Hs',
e.external_gene_symbol,
null,
e.description,
null,
e.chromosome_name,
e.start_position,
e.end_position,
e.strand
FROM ensembl_genes_tmp e
WHERE e.ensembl_gene_id NOT IN (SELECT ensembl_gene_id FROM ensembl_genes WHERE species_id = 'Hs')
AND e.species_id = 'Hs';
-- should be no rows
SELECT count(1), ensembl_gene_id
FROM ensembl_genes
GROUP BY ensembl_gene_id
HAVING count(1) > 1;
UPDATE ensembl_genes
SET description = null
WHERE description = ''
OR description = '\N';
UPDATE ensembl_genes
SET synonyms = null
WHERE synonyms = ''
OR synonyms = '\N';
UPDATE ensembl_genes
SET external_id = null
WHERE length(external_id) = 0;
UPDATE ensembl_genes
SET symbol = null
WHERE length(symbol) = 0;
UPDATE ensembl_genes
SET name = null
WHERE length(name) = 0;
UPDATE ensembl_genes
SET description = null
WHERE length(description) = 0;
UPDATE ensembl_genes
SET synonyms = null
WHERE length(synonyms) = 0;
--update the gtep table with blank protein ids
UPDATE ensembl_gtep_tmp
SET protein_id = null
WHERE protein_id = '';
-- create the lookup table
DROP TABLE IF EXISTS ensembl_genes_lookup;
CREATE TABLE ensembl_genes_lookup (
_ensembl_genes_lookup_key INTEGER,
ensembl_gene_id TEXT,
lookup_value TEXT COLLATE NOCASE,
ranking_id TEXT,
species_id TEXT,
PRIMARY KEY (_ensembl_genes_lookup_key)
);
DROP TABLE IF EXISTS ensembl_genes_lookup_tmp;
CREATE TABLE ensembl_genes_lookup_tmp (
ensembl_gene_id TEXT,
lookup_value TEXT,
ranking_id TEXT,
species_id TEXT
);
-- insert ensembl genes
INSERT
INTO ensembl_genes_lookup_tmp
SELECT distinct
e.ensembl_gene_id,
e.ensembl_gene_id,
'EG',
e.species_id
FROM ensembl_genes e;
-- insert gene symbols
INSERT
INTO ensembl_genes_lookup_tmp
SELECT distinct
e.ensembl_gene_id,
e.symbol,
'GS',
e.species_id
FROM ensembl_genes e
WHERE e.symbol is not null;
-- insert gene names
INSERT
INTO ensembl_genes_lookup_tmp
SELECT distinct
e.ensembl_gene_id,
e.name,
'GN',
e.species_id
FROM ensembl_genes e
WHERE e.name is not null;
-- insert mgi ids
INSERT
INTO ensembl_genes_lookup_tmp
SELECT distinct e.ensembl_gene_id,
e.external_id,
'MI',
'Mm'
FROM ensembl_genes_tmp e
WHERE e.species_id = 'Mm';
-- insert hugo/hgnc ids
INSERT
INTO ensembl_genes_lookup_tmp
SELECT distinct
e.ensembl_gene_id,
e.external_id,
'HI',
'Hs'
FROM ensembl_genes_tmp e
WHERE e.species_id = 'Hs';
-- insert mouse synonyms
INSERT
INTO ensembl_genes_lookup_tmp
SELECT distinct
e.ensembl_gene_id,
m.synonyms_value,
'GY',
e.species_id
FROM ensembl_genes e,
mgi_synonyms_tmp m
WHERE m.primaryIdentifier = e.external_id
AND m.symbol != m.synonyms_value;
-- insert human synonyms
INSERT
INTO ensembl_genes_lookup_tmp
SELECT distinct
e.ensembl_gene_id,
h.synonym_type,
'GY',
e.species_id
FROM ensembl_genes e,
hugo_synonyms_tmp h
WHERE e.ensembl_gene_id = h.ensembl_gene_id
AND h.synonym = 'Y';
-- insert exon_ids
INSERT
INTO ensembl_genes_lookup_tmp
SELECT distinct
e.ensembl_gene_id,
m.exon_id,
'EE',
e.species_id
FROM ensembl_genes e,
ensembl_gtep_tmp m
WHERE e.ensembl_gene_id = m.gene_id;
-- insert transcript ids
INSERT
INTO ensembl_genes_lookup_tmp
SELECT distinct
e.ensembl_gene_id,
m.transcript_id,
'ET',
e.species_id
FROM ensembl_genes e,
ensembl_gtep_tmp m
WHERE e.ensembl_gene_id = m.gene_id;
-- insert protein ids
INSERT
INTO ensembl_genes_lookup_tmp
SELECT distinct
e.ensembl_gene_id,
m.protein_id,
'EP',
e.species_id
FROM ensembl_genes e,
ensembl_gtep_tmp m
WHERE e.ensembl_gene_id = m.gene_id;
-- insert all the data
INSERT
INTO ensembl_genes_lookup
SELECT distinct null,
ensembl_gene_id,
lookup_value,
ranking_id,
species_id TEXT
FROM ensembl_genes_lookup_tmp
WHERE lookup_value is not null
ORDER BY ensembl_gene_id, lookup_value, ranking_id;
-- create some indices
CREATE INDEX idx_lookup_ensembl_gene_id ON ensembl_genes_lookup (ensembl_gene_id ASC);
CREATE INDEX idx_lookup_value ON ensembl_genes_lookup (lookup_value ASC);
CREATE INDEX idx_lookup_id ON ensembl_genes_lookup (ranking_id ASC);
CREATE INDEX idx_lookup_species_id ON ensembl_genes_lookup (species_id ASC);
-- see how much data we have
SELECT count(1), ranking_id
FROM ensembl_genes_lookup
GROUP BY ranking_id;
-- EP Ensembl Protein ID
-- EE Ensembl Exon ID
-- EG Ensembl Gene ID
-- ET Ensembl Transcript ID
-- GN Gene Name
-- GS Gene Symbol
-- GY Gene Synonym
-- HI Hugo ID
-- MI MGI ID
-- create the scoring/ranking table
DROP TABLE IF EXISTS search_ranking;
CREATE TABLE search_ranking (
_search_ranking_key INTEGER,
ranking_id TEXT,
score INTEGER,
description TEXT,
PRIMARY KEY (_search_ranking_key)
);
-- insert the rankings
INSERT INTO search_ranking VALUES (null, 'EE',7000,'Ensembl Exon ID');
INSERT INTO search_ranking VALUES (null, 'EP',6500,'Ensembl Protein ID');
INSERT INTO search_ranking VALUES (null, 'EG',10000,'Ensembl Gene ID');
INSERT INTO search_ranking VALUES (null, 'ET',7500,'Ensembl Transcript ID');
INSERT INTO search_ranking VALUES (null, 'GN',5000,'Gene Name');
INSERT INTO search_ranking VALUES (null, 'GS',6000,'Gene Symbol');
INSERT INTO search_ranking VALUES (null, 'GY',2500,'Gene Synonym');
INSERT INTO search_ranking VALUES (null, 'HI',8000,'HGNC ID');
INSERT INTO search_ranking VALUES (null, 'MI',9000,'MGI ID');
-- create ranking indices
CREATE INDEX idx_search_ranking_ranking_id ON search_ranking (ranking_id ASC);
CREATE INDEX idx_search_ranking_score ON search_ranking (score ASC);
-- make sure we have the synonyms
CREATE INDEX idx_mgi_synonyms_oneline_tmp ON mgi_synonyms_oneline_tmp (primaryIdentifier ASC);
UPDATE ensembl_genes
SET synonyms = (SELECT synonyms
FROM mgi_synonyms_oneline_tmp
WHERE primaryIdentifier = ensembl_genes.external_id)
WHERE species_id = 'Mm';
UPDATE ensembl_genes
SET synonyms = (SELECT replace(synonyms, ', ', '||')
FROM hugo_genes_tmp
WHERE ensembl_gene_id = ensembl_genes.ensembl_gene_id)
WHERE species_id = 'Hs';
-- qtep
CREATE TABLE ensembl_gtep (
_ensembl_gtep_key INTEGER,
chromosome TEXT,
strand INTEGER,
gene_id TEXT,
gene_start INTEGER,
gene_end INTEGER,
transcript_id TEXT,
transcript_start INTEGER,
transcript_end INTEGER,
transcript_count INTEGER,
exon_id TEXT,
exon_start INTEGER,
exon_end INTEGER,
exon_rank INTEGER,
protein_id TEXT,
species_id TEXT,
PRIMARY KEY (_ensembl_gtep_key)
);
INSERT
INTO ensembl_gtep
SELECT distinct null,
chromosome,
strand,
gene_id,
gene_start,
gene_end,
transcript_id,
transcript_start,
transcript_end,
transcript_count,
exon_id,
exon_start,
exon_end,
exon_rank,
protein_id,
species_id
FROM ensembl_gtep_tmp
ORDER BY species_id, chromosome, gene_start, transcript_start, exon_rank, protein_id;
CREATE INDEX idx_chromosome_qtep ON ensembl_gtep (chromosome ASC);
CREATE INDEX idx_species_id_qtep ON ensembl_gtep (species_id ASC);
CREATE INDEX idx_gene_id_qtep ON ensembl_gtep (gene_id ASC);
CREATE INDEX idx_transcript_id_qtep ON ensembl_gtep (transcript_id ASC);
CREATE INDEX idx_exon_id_qtep ON ensembl_gtep (exon_id ASC);
CREATE INDEX idx_protein_id_qtep ON ensembl_gtep (protein_id ASC);
CREATE INDEX idx_gene_start_qtep ON ensembl_gtep (gene_start ASC);
CREATE INDEX idx_transcript_start_qtep ON ensembl_gtep (transcript_start ASC);
CREATE INDEX idx_exon_start_qtep ON ensembl_gtep (exon_start ASC);
-- cleanup
DELETE
FROM ensembl_genes_lookup
WHERE length(lookup_value) = 0;
-- create another important index
CREATE INDEX idx_ensembl_gene_id ON ensembl_genes (ensembl_gene_id ASC);
-- create the search table
CREATE VIRTUAL TABLE ensembl_search USING fts4(_ensembl_genes_lookup_key, lookup_value);
INSERT
INTO ensembl_search
SELECT _ensembl_genes_lookup_key, lookup_value
FROM ensembl_genes_lookup;
-- drop some tables
DROP TABLE ensembl_genes_tmp;
DROP TABLE mgi_genes_tmp;
DROP TABLE mgi_ensemblids_tmp;
DROP TABLE mgi_synonyms_tmp;
DROP TABLE mgi_synonyms_oneline_tmp;
DROP TABLE hugo_genes_tmp;
DROP TABLE hugo_synonyms_tmp;
DROP TABLE ensembl_gtep_tmp;
DROP TABLE ensembl_genes_lookup_tmp;
|
/* ALTER TABLE: https://www.postgresql.org/docs/current/sql-altertable.html */
ALTER TABLE IF EXISTS ONLY name*
RENAME COLUMN column_name TO new_column_name;
ALTER TABLE IF EXISTS name
RENAME column_name TO new_column_name;
ALTER TABLE name
RENAME CONSTRAINT constraint_name TO new_constraint_name;
ALTER TABLE name
RENAME TO new_name;
ALTER TABLE IF EXISTS name
SET SCHEMA /* comment goes here; */ new_schema;
ALTER TABLE ALL IN TABLESPACE name OWNED BY role_name
SET TABLESPACE new_tablespace NOWAIT;
ALTER TABLE ALL IN TABLESPACE name
SET TABLESPACE new_tablespace;
ALTER TABLE ALL IN TABLESPACE name OWNED BY role_name1, role_name2,role_name3, role_name4
SET TABLESPACE new_tablespace;
ALTER TABLE IF EXISTS name
ATTACH PARTITION partition_name FOR VALUES partition_bound_spec;
ALTER TABLE name
ATTACH PARTITION partition_name DEFAULT;
ALTER TABLE IF EXISTS name
DETACH PARTITION /* comment goes here; */ partition_name CONCURRENTLY;
ALTER TABLE name
DETACH PARTITION partition_name FINALIZE;
ALTER TABLE IF EXISTS ONLY name*
ADD COLUMN IF NOT EXISTS column_name data_type COLLATE collation,
DROP COLUMN IF EXISTS column_name CASCADE,
ALTER COLUMN column_name SET DATA TYPE data_type COLLATE collation USING expression,
ALTER COLUMN column_name SET DEFAULT expression,
ALTER COLUMN column_name DROP DEFAULT,
ALTER COLUMN column_name SET NOT NULL,
ALTER COLUMN column_name DROP NOT NULL,
ALTER COLUMN column_name DROP EXPRESSION IF EXISTS,
ALTER COLUMN column_name ADD GENERATED ALWAYS AS IDENTITY,
ALTER COLUMN column_name SET GENERATED ALWAYS,
ALTER COLUMN column_name DROP IDENTITY IF EXISTS,
ALTER COLUMN column_name SET STATISTICS integer,
ALTER COLUMN column_name SET ( attribute_option = value, attr2 = val2 ),
ALTER COLUMN column_name RESET ( attribute_option, attr2, attr3),
ALTER COLUMN column_name SET STORAGE MAIN,
ALTER COLUMN column_name SET COMPRESSION compression_method,
ALTER CONSTRAINT constraint_name,
VALIDATE CONSTRAINT constraint_name,
DROP CONSTRAINT IF EXISTS constraint_name CASCADE,
DISABLE TRIGGER ALL,
ENABLE TRIGGER ALL,
ENABLE REPLICA TRIGGER trigger_name,
ENABLE ALWAYS TRIGGER trigger_name,
DISABLE RULE rewrite_rule_name,
ENABLE RULE rewrite_rule_name,
/* comment goes here; */
ENABLE REPLICA RULE rewrite_rule_name,
ENABLE ALWAYS RULE rewrite_rule_name,
DISABLE ROW LEVEL SECURITY,
ENABLE ROW LEVEL SECURITY,
FORCE ROW LEVEL SECURITY,
NO FORCE ROW LEVEL SECURITY,
CLUSTER ON index_name,
SET WITHOUT CLUSTER,
SET WITHOUT OIDS,
SET TABLESPACE new_tablespace,
SET LOGGED,
SET (storage_parameter = value),
RESET (storage_parameter),
INHERIT parent_table,
NO INHERIT parent_table,
OF type_name,
NOT OF,
OWNER TO CURRENT_USER,
REPLICA IDENTITY DEFAULT
;
/* Other ALTER syntax: https://www.postgresql.org/docs/current/sql-commands.html */
ALTER AGGREGATE myavg(integer) RENAME TO my_average;
ALTER AGGREGATE myavg(integer) OWNER TO joe;
ALTER COLLATION "de_DE" RENAME /* ; */TO
-- ;;;
german;
ALTER CONVERSION /* random comment; */ iso_8859_1_to_utf8 RENAME TO latin1_to_unicode;
ALTER DEFAULT PRIVILEGES IN SCHEMA myschema GRANT SELECT ON TABLES TO PUBLIC;
ALTER DEFAULT PRIVILEGES IN SCHEMA myschema GRANT INSERT ON TABLES TO webuser;
ALTER DOMAIN zipcode SET NOT NULL;
ALTER EVENT TRIGGER name DISABLE;
ALTER EXTENSION hstore UPDATE TO '2.0';
ALTER FOREIGN DATA WRAPPER dbi OPTIONS (ADD foo '1', DROP 'bar');
ALTER FOREIGN TABLE myschema.distributors OPTIONS (ADD opt1 'value', SET opt2 'value2', DROP opt3 'value3');
ALTER FUNCTION sqrt(integer) OWNER TO joe;
ALTER GROUP staff ADD USER karl, john;
ALTER GROUP workers DROP USER beth;
ALTER INDEX distributors RENAME TO suppliers;
ALTER INDEX distributors SET TABLESPACE fasttablespace;
ALTER MATERIALIZED VIEW foo RENAME TO bar;
ALTER OPERATOR && (_int4, _int4) SET (RESTRICT = _int_contsel, JOIN = _int_contjoinsel);
ALTER OPERATOR FAMILY integer_ops USING btree ADD
-- int4 vs int2
OPERATOR 1 < (int4, int2) ,
OPERATOR 2 <= (int4, int2) ,
OPERATOR 3 = (int4, int2) ,
OPERATOR 4 >= (int4, int2) ,
OPERATOR 5 > (int4, int2) ,
FUNCTION 1 btint42cmp(int4, int2) ,
-- int2 vs int4
OPERATOR 1 < (int2, int4) ,
OPERATOR 2 <= (int2, int4) ,
OPERATOR 3 = (int2, int4) ,
OPERATOR 4 >= (int2, int4) ,
OPERATOR 5 > (int2, int4) ,
FUNCTION 1 btint24cmp(int2, int4) ;
ALTER OPERATOR FAMILY integer_ops USING btree ADD
-- int4 vs int2
OPERATOR 1 < (int4, int2) ,
OPERATOR 2 <= (int4, int2) ,
OPERATOR 3 = (int4, int2) ,
OPERATOR 4 >= (int4, int2) ,
OPERATOR 5 > (int4, int2) ,
FUNCTION 1 btint42cmp(int4, int2) ,
-- int2 vs int4
OPERATOR 1 < (int2, int4) ,
OPERATOR 2 <= (int2, int4) ,
OPERATOR 3 = (int2, int4) ,
OPERATOR 4 >= (int2, int4) ,
OPERATOR 5 > (int2, int4) ,
FUNCTION 1 btint24cmp(int2, int4) ;
ALTER POLICY name ON table_name RENAME TO new_name;
ALTER PROCEDURE insert_data(integer, integer) RENAME TO insert_record;
ALTER PUBLICATION noinsert SET (publish = 'update, delete');
ALTER ROLE chris VALID UNTIL 'May 4 12:00:00 2015 +1';
ALTER ROUTINE foo(integer) RENAME TO foobar;
ALTER RULE notify_all ON emp RENAME TO notify_me;
ALTER SCHEMA name RENAME TO new_name;
ALTER SEQUENCE serial RESTART WITH 105;
ALTER SERVER foo VERSION '8.4' OPTIONS (SET host 'baz');
ALTER SUBSCRIPTION mysub SET PUBLICATION insert_only;
ALTER SYSTEM SET wal_level = replica;
ALTER TABLESPACE index_space RENAME TO fast_raid;
ALTER TEXT SEARCH CONFIGURATION my_config
ALTER MAPPING REPLACE english WITH swedish;
ALTER TEXT SEARCH DICTIONARY my_dict ( StopWords = newrussian );
ALTER TEXT SEARCH PARSER name RENAME TO new_name;
ALTER TEXT SEARCH PARSER name SET SCHEMA new_schema;
ALTER TEXT SEARCH TEMPLATE name RENAME TO new_name;
ALTER TEXT SEARCH TEMPLATE name SET SCHEMA new_schema;
ALTER TRIGGER emp_stamp ON emp RENAME TO emp_track_chgs;
ALTER TYPE electronic_mail RENAME TO email;
ALTER USER name RENAME TO new_name;
ALTER USER MAPPING FOR bob SERVER foo OPTIONS (SET password 'public');
ALTER VIEW foo RENAME TO bar;
ALTER TABLE organization_units OWNER TO "user";
ALTER TABLE table_name ADD COLUMN valid BOOLEAN; |
<filename>base/src/main/resources/org/ambraproject/service/migration/migrate_ambra_1004.sql
alter table userProfile
add column passwordReset bit(1) NOT NULL DEFAULT b'0' after password;
|
<filename>zm-db-conf/src/db/mysql/create_database.sql
--
-- ***** BEGIN LICENSE BLOCK *****
-- Zimbra Collaboration Suite Server
-- Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016 Synacor, Inc.
--
-- This program is free software: you can redistribute it and/or modify it under
-- the terms of the GNU General Public License as published by the Free Software Foundation,
-- version 2 of the License.
--
-- This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
-- without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
-- See the GNU General Public License for more details.
-- You should have received a copy of the GNU General Public License along with this program.
-- If not, see <https://www.gnu.org/licenses/>.
-- ***** END LICENSE BLOCK *****
--
CREATE DATABASE ${DATABASE_NAME}
DEFAULT CHARACTER SET utf8;
CREATE TABLE IF NOT EXISTS ${DATABASE_NAME}.mail_item (
mailbox_id INTEGER UNSIGNED NOT NULL,
id INTEGER UNSIGNED NOT NULL,
type TINYINT NOT NULL, -- 1 = folder, 5 = message, etc.
parent_id INTEGER UNSIGNED,
folder_id INTEGER UNSIGNED,
prev_folders TEXT, -- e.g. "101:2;110:5", before mod_metadata 101, this item was in folder 2, before 110, it was in 5
index_id INTEGER UNSIGNED,
imap_id INTEGER UNSIGNED,
date INTEGER UNSIGNED NOT NULL, -- stored as a UNIX-style timestamp
size BIGINT UNSIGNED NOT NULL,
locator VARCHAR(1024),
blob_digest VARCHAR(44) BINARY, -- reference to blob
unread INTEGER UNSIGNED, -- stored separately from the other flags so we can index it
flags INTEGER NOT NULL DEFAULT 0,
tags BIGINT NOT NULL DEFAULT 0,
tag_names TEXT,
sender VARCHAR(128),
recipients VARCHAR(128),
subject TEXT,
name VARCHAR(255), -- namespace entry for item (e.g. tag name, folder name, document filename)
metadata MEDIUMTEXT,
mod_metadata INTEGER UNSIGNED NOT NULL, -- change number for last row modification
change_date INTEGER UNSIGNED, -- UNIX-style timestamp for last row modification
mod_content INTEGER UNSIGNED NOT NULL, -- change number for last change to "content" (e.g. blob)
uuid VARCHAR(127), -- e.g. "d94e42c4-1636-11d9-b904-4dd689d02402"
PRIMARY KEY (mailbox_id, id),
INDEX i_type (mailbox_id, type), -- for looking up folders and tags
INDEX i_parent_id (mailbox_id, parent_id),-- for looking up a parent\'s children
INDEX i_folder_id_date (mailbox_id, folder_id, date), -- for looking up by folder and sorting by date
INDEX i_index_id (mailbox_id, index_id), -- for looking up based on search results
INDEX i_date (mailbox_id, date), -- fallback index in case other constraints are not specified
INDEX i_mod_metadata (mailbox_id, mod_metadata), -- used by the sync code
INDEX i_uuid (mailbox_id, uuid), -- for looking up by uuid
UNIQUE INDEX i_name_folder_id (mailbox_id, folder_id, name), -- for namespace uniqueness
CONSTRAINT fk_mail_item_mailbox_id FOREIGN KEY (mailbox_id) REFERENCES zimbra.mailbox(id),
CONSTRAINT fk_mail_item_parent_id FOREIGN KEY (mailbox_id, parent_id) REFERENCES ${DATABASE_NAME}.mail_item(mailbox_id, id),
CONSTRAINT fk_mail_item_folder_id FOREIGN KEY (mailbox_id, folder_id) REFERENCES ${DATABASE_NAME}.mail_item(mailbox_id, id)
) ENGINE = InnoDB;
CREATE TABLE IF NOT EXISTS ${DATABASE_NAME}.mail_item_dumpster (
mailbox_id INTEGER UNSIGNED NOT NULL,
id INTEGER UNSIGNED NOT NULL,
type TINYINT NOT NULL, -- 1 = folder, 5 = message, etc.
parent_id INTEGER UNSIGNED,
folder_id INTEGER UNSIGNED,
prev_folders TEXT, -- e.g. "101:2;110:5", before mod_metadata 101, this item was in folder 2, before 110, it was in 5
index_id INTEGER UNSIGNED,
imap_id INTEGER UNSIGNED,
date INTEGER UNSIGNED NOT NULL, -- stored as a UNIX-style timestamp
size BIGINT UNSIGNED NOT NULL,
locator VARCHAR(1024),
blob_digest VARCHAR(44) BINARY, -- reference to blob
unread INTEGER UNSIGNED, -- stored separately from the other flags so we can index it
flags INTEGER NOT NULL DEFAULT 0,
tags BIGINT NOT NULL DEFAULT 0,
tag_names TEXT,
sender VARCHAR(128),
recipients VARCHAR(128),
subject TEXT,
name VARCHAR(255), -- namespace entry for item (e.g. tag name, folder name, document filename)
metadata MEDIUMTEXT,
mod_metadata INTEGER UNSIGNED NOT NULL, -- change number for last row modification
change_date INTEGER UNSIGNED, -- UNIX-style timestamp for last row modification
mod_content INTEGER UNSIGNED NOT NULL, -- change number for last change to "content" (e.g. blob)
uuid VARCHAR(127), -- e.g. "d94e42c4-1636-11d9-b904-4dd689d02402"
PRIMARY KEY (mailbox_id, id),
INDEX i_type (mailbox_id, type), -- for looking up folders and tags
INDEX i_parent_id (mailbox_id, parent_id),-- for looking up a parent\'s children
INDEX i_folder_id_date (mailbox_id, folder_id, date), -- for looking up by folder and sorting by date
INDEX i_index_id (mailbox_id, index_id), -- for looking up based on search results
INDEX i_date (mailbox_id, date), -- fallback index in case other constraints are not specified
INDEX i_mod_metadata (mailbox_id, mod_metadata), -- used by the sync code
INDEX i_uuid (mailbox_id, uuid), -- for looking up by uuid
-- Must not enforce unique index on (mailbox_id, folder_id, name) for the dumpster version!
CONSTRAINT fk_mail_item_dumpster_mailbox_id FOREIGN KEY (mailbox_id) REFERENCES zimbra.mailbox(id)
) ENGINE = InnoDB;
CREATE TABLE IF NOT EXISTS ${DATABASE_NAME}.revision (
mailbox_id INTEGER UNSIGNED NOT NULL,
item_id INTEGER UNSIGNED NOT NULL,
version INTEGER UNSIGNED NOT NULL,
date INTEGER UNSIGNED NOT NULL, -- stored as a UNIX-style timestamp
size BIGINT UNSIGNED NOT NULL,
locator VARCHAR(1024),
blob_digest VARCHAR(44) BINARY, -- reference to blob
name VARCHAR(255), -- namespace entry for item (e.g. tag name, folder name, document filename)
metadata MEDIUMTEXT,
mod_metadata INTEGER UNSIGNED NOT NULL, -- change number for last row modification
change_date INTEGER UNSIGNED, -- UNIX-style timestamp for last row modification
mod_content INTEGER UNSIGNED NOT NULL, -- change number for last change to "content" (e.g. blob)
PRIMARY KEY (mailbox_id, item_id, version),
CONSTRAINT fk_revision_mailbox_id FOREIGN KEY (mailbox_id) REFERENCES zimbra.mailbox(id),
CONSTRAINT fk_revision_item_id FOREIGN KEY (mailbox_id, item_id) REFERENCES ${DATABASE_NAME}.mail_item(mailbox_id, id) ON DELETE CASCADE
) ENGINE = InnoDB;
CREATE TABLE IF NOT EXISTS ${DATABASE_NAME}.revision_dumpster (
mailbox_id INTEGER UNSIGNED NOT NULL,
item_id INTEGER UNSIGNED NOT NULL,
version INTEGER UNSIGNED NOT NULL,
date INTEGER UNSIGNED NOT NULL, -- stored as a UNIX-style timestamp
size BIGINT UNSIGNED NOT NULL,
locator VARCHAR(1024),
blob_digest VARCHAR(44) BINARY, -- reference to blob
name VARCHAR(255), -- namespace entry for item (e.g. tag name, folder name, document filename)
metadata MEDIUMTEXT,
mod_metadata INTEGER UNSIGNED NOT NULL, -- change number for last row modification
change_date INTEGER UNSIGNED, -- UNIX-style timestamp for last row modification
mod_content INTEGER UNSIGNED NOT NULL, -- change number for last change to "content" (e.g. blob)
PRIMARY KEY (mailbox_id, item_id, version),
CONSTRAINT fk_revision_dumpster_mailbox_id FOREIGN KEY (mailbox_id) REFERENCES zimbra.mailbox(id),
CONSTRAINT fk_revision_dumpster_item_id FOREIGN KEY (mailbox_id, item_id) REFERENCES ${DATABASE_NAME}.mail_item_dumpster(mailbox_id, id) ON DELETE CASCADE
) ENGINE = InnoDB;
CREATE TABLE IF NOT EXISTS ${DATABASE_NAME}.tag (
mailbox_id INTEGER UNSIGNED NOT NULL,
id INTEGER NOT NULL,
name VARCHAR(128) NOT NULL,
color BIGINT,
item_count INTEGER NOT NULL DEFAULT 0,
unread INTEGER NOT NULL DEFAULT 0,
listed BOOLEAN NOT NULL DEFAULT FALSE,
sequence INTEGER UNSIGNED NOT NULL, -- change number for rename/recolor/etc.
policy VARCHAR(1024),
PRIMARY KEY (mailbox_id, id),
UNIQUE INDEX i_tag_name (mailbox_id, name),
CONSTRAINT fk_tag_mailbox_id FOREIGN KEY (mailbox_id) REFERENCES zimbra.mailbox(id)
) ENGINE = InnoDB;
CREATE TABLE IF NOT EXISTS ${DATABASE_NAME}.tagged_item (
mailbox_id INTEGER UNSIGNED NOT NULL,
tag_id INTEGER NOT NULL,
item_id INTEGER UNSIGNED NOT NULL,
UNIQUE INDEX i_tagged_item_unique (mailbox_id, tag_id, item_id),
CONSTRAINT fk_tagged_item_tag FOREIGN KEY (mailbox_id, tag_id) REFERENCES ${DATABASE_NAME}.tag(mailbox_id, id) ON DELETE CASCADE,
CONSTRAINT fk_tagged_item_item FOREIGN KEY (mailbox_id, item_id) REFERENCES ${DATABASE_NAME}.mail_item(mailbox_id, id) ON DELETE CASCADE
) ENGINE = InnoDB;
CREATE TABLE IF NOT EXISTS ${DATABASE_NAME}.open_conversation (
mailbox_id INTEGER UNSIGNED NOT NULL,
hash CHAR(28) BINARY NOT NULL,
conv_id INTEGER UNSIGNED NOT NULL,
PRIMARY KEY (mailbox_id, hash),
INDEX i_conv_id (mailbox_id, conv_id),
CONSTRAINT fk_open_conversation_mailbox_id FOREIGN KEY (mailbox_id) REFERENCES zimbra.mailbox(id),
CONSTRAINT fk_open_conversation_conv_id FOREIGN KEY (mailbox_id, conv_id) REFERENCES ${DATABASE_NAME}.mail_item(mailbox_id, id) ON DELETE CASCADE
) ENGINE = InnoDB;
CREATE TABLE IF NOT EXISTS ${DATABASE_NAME}.appointment (
mailbox_id INTEGER UNSIGNED NOT NULL,
uid VARCHAR(255) NOT NULL,
item_id INTEGER UNSIGNED NOT NULL,
start_time DATETIME NOT NULL,
end_time DATETIME,
PRIMARY KEY (mailbox_id, uid),
CONSTRAINT fk_appointment_mailbox_id FOREIGN KEY (mailbox_id) REFERENCES zimbra.mailbox(id),
CONSTRAINT fk_appointment_item_id FOREIGN KEY (mailbox_id, item_id) REFERENCES ${DATABASE_NAME}.mail_item(mailbox_id, id) ON DELETE CASCADE
) ENGINE = InnoDB;
CREATE UNIQUE INDEX i_item_id ON ${DATABASE_NAME}.appointment (mailbox_id, item_id);
CREATE TABLE IF NOT EXISTS ${DATABASE_NAME}.appointment_dumpster (
mailbox_id INTEGER UNSIGNED NOT NULL,
uid VARCHAR(255) NOT NULL,
item_id INTEGER UNSIGNED NOT NULL,
start_time DATETIME NOT NULL,
end_time DATETIME,
PRIMARY KEY (mailbox_id, uid),
CONSTRAINT fk_appointment_dumpster_mailbox_id FOREIGN KEY (mailbox_id) REFERENCES zimbra.mailbox(id),
CONSTRAINT fk_appointment_dumpster_item_id FOREIGN KEY (mailbox_id, item_id) REFERENCES ${DATABASE_NAME}.mail_item_dumpster(mailbox_id, id) ON DELETE CASCADE
) ENGINE = InnoDB;
CREATE UNIQUE INDEX i_item_id ON ${DATABASE_NAME}.appointment_dumpster (mailbox_id, item_id);
CREATE TABLE IF NOT EXISTS ${DATABASE_NAME}.tombstone (
mailbox_id INTEGER UNSIGNED NOT NULL,
sequence INTEGER UNSIGNED NOT NULL, -- change number for deletion
date INTEGER UNSIGNED NOT NULL, -- deletion date as a UNIX-style timestamp
type TINYINT, -- 1 = folder, 3 = tag, etc.
ids TEXT,
INDEX i_sequence (mailbox_id, sequence),
CONSTRAINT fk_tombstone_mailbox_id FOREIGN KEY (mailbox_id) REFERENCES zimbra.mailbox(id)
) ENGINE = InnoDB;
-- Tracks UID's of messages on remote POP3 servers
CREATE TABLE IF NOT EXISTS ${DATABASE_NAME}.pop3_message (
mailbox_id INTEGER UNSIGNED NOT NULL,
data_source_id CHAR(36) NOT NULL,
uid VARCHAR(255) BINARY NOT NULL,
item_id INTEGER UNSIGNED NOT NULL,
PRIMARY KEY (mailbox_id, item_id),
CONSTRAINT fk_pop3_message_mailbox_id FOREIGN KEY (mailbox_id) REFERENCES zimbra.mailbox(id)
) ENGINE = InnoDB;
CREATE UNIQUE INDEX i_uid_pop3_id ON ${DATABASE_NAME}.pop3_message (uid, data_source_id);
-- Tracks folders on remote IMAP servers
CREATE TABLE IF NOT EXISTS ${DATABASE_NAME}.imap_folder (
mailbox_id INTEGER UNSIGNED NOT NULL,
item_id INTEGER UNSIGNED NOT NULL,
data_source_id CHAR(36) NOT NULL,
local_path VARCHAR(1000) NOT NULL,
remote_path VARCHAR(1000) NOT NULL,
uid_validity INTEGER UNSIGNED,
PRIMARY KEY (mailbox_id, item_id),
CONSTRAINT fk_imap_folder_mailbox_id FOREIGN KEY (mailbox_id) REFERENCES zimbra.mailbox(id) ON DELETE CASCADE
) ENGINE = InnoDB;
CREATE UNIQUE INDEX i_local_path
ON ${DATABASE_NAME}.imap_folder (local_path(200), data_source_id, mailbox_id);
CREATE UNIQUE INDEX i_remote_path
ON ${DATABASE_NAME}.imap_folder (remote_path(200), data_source_id, mailbox_id);
-- Tracks messages on remote IMAP servers
CREATE TABLE IF NOT EXISTS ${DATABASE_NAME}.imap_message (
mailbox_id INTEGER UNSIGNED NOT NULL,
imap_folder_id INTEGER UNSIGNED NOT NULL,
uid BIGINT NOT NULL,
item_id INTEGER UNSIGNED NOT NULL,
flags INTEGER NOT NULL DEFAULT 0,
PRIMARY KEY (mailbox_id, item_id),
CONSTRAINT fk_imap_message_mailbox_id FOREIGN KEY (mailbox_id)
REFERENCES zimbra.mailbox(id) ON DELETE CASCADE,
CONSTRAINT fk_imap_message_imap_folder_id FOREIGN KEY (mailbox_id, imap_folder_id)
REFERENCES ${DATABASE_NAME}.imap_folder(mailbox_id, item_id) ON DELETE CASCADE
) ENGINE = InnoDB;
CREATE UNIQUE INDEX i_uid_imap_id ON ${DATABASE_NAME}.imap_message (mailbox_id, imap_folder_id, uid);
-- Tracks local MailItem created from remote objects via DataSource
CREATE TABLE IF NOT EXISTS ${DATABASE_NAME}.data_source_item (
mailbox_id INTEGER UNSIGNED NOT NULL,
data_source_id CHAR(36) NOT NULL,
item_id INTEGER UNSIGNED NOT NULL,
folder_id INTEGER UNSIGNED NOT NULL DEFAULT 0,
remote_id VARCHAR(255) BINARY NOT NULL,
metadata MEDIUMTEXT,
PRIMARY KEY (mailbox_id, item_id),
UNIQUE INDEX i_remote_id (mailbox_id, data_source_id, remote_id), -- for reverse lookup
CONSTRAINT fk_data_source_item_mailbox_id FOREIGN KEY (mailbox_id) REFERENCES zimbra.mailbox(id) ON DELETE CASCADE
) ENGINE = InnoDB;
CREATE TABLE IF NOT EXISTS ${DATABASE_NAME}.purged_conversations (
mailbox_id INTEGER UNSIGNED NOT NULL,
data_source_id CHAR(36) NOT NULL,
item_id INTEGER UNSIGNED NOT NULL,
hash CHAR(28) BINARY NOT NULL,
PRIMARY KEY (mailbox_id, data_source_id, hash),
CONSTRAINT fk_purged_conversation_mailbox_id FOREIGN KEY (mailbox_id) REFERENCES zimbra.mailbox(id) ON DELETE CASCADE
) ENGINE = InnoDB;
CREATE TABLE IF NOT EXISTS ${DATABASE_NAME}.purged_messages (
mailbox_id INTEGER UNSIGNED NOT NULL,
data_source_id CHAR(36) NOT NULL,
item_id INTEGER UNSIGNED NOT NULL,
parent_id INTEGER UNSIGNED,
remote_id VARCHAR(255) BINARY NOT NULL,
remote_folder_id VARCHAR(255) BINARY NOT NULL,
purge_date INTEGER UNSIGNED,
PRIMARY KEY (mailbox_id, data_source_id, item_id),
CONSTRAINT fk_purged_message_mailbox_id FOREIGN KEY (mailbox_id) REFERENCES zimbra.mailbox(id) ON DELETE CASCADE
) ENGINE = InnoDB;
CREATE TABLE IF NOT EXISTS ${DATABASE_NAME}.event (
mailbox_id INTEGER UNSIGNED NOT NULL,
account_id VARCHAR(36) NOT NULL, -- user performing the action (email address or guid)
item_id INTEGER NOT NULL, -- itemId for the event
folder_id INTEGER NOT NULL, -- folderId for the item in the event
op TINYINT NOT NULL, -- operation
ts INTEGER NOT NULL, -- timestamp
version INTEGER, -- version of the item
user_agent VARCHAR(128), -- identifier of device if available
arg VARCHAR(10240), -- operation specific argument
CONSTRAINT fk_event_mailbox_id FOREIGN KEY (mailbox_id) REFERENCES zimbra.mailbox(id) ON DELETE CASCADE
) ENGINE = InnoDB;
CREATE TABLE IF NOT EXISTS ${DATABASE_NAME}.watch (
mailbox_id INTEGER UNSIGNED NOT NULL,
target VARCHAR(36) NOT NULL, -- watch target account id
item_id INTEGER NOT NULL, -- target item id
PRIMARY KEY (mailbox_id, target, item_id)
) ENGINE = InnoDB;
|
<filename>_includes/tutorials/joining-table-table/ksql/code/tutorial-steps/dev/transient-join.sql
SELECT M.ID, M.TITLE, M.RELEASE_YEAR, L.ACTOR_NAME
FROM MOVIES M
INNER JOIN LEAD_ACTOR L
ON M.ROWKEY=L.ROWKEY
LIMIT 3;
|
TRUNCATE transactions;
ALTER TABLE transactions ADD COLUMN hash VARCHAR NOT NULL UNIQUE; |
\connect compass
COPY applications(id,tenant,name) from '/docker-entrypoint-initdb.d/03_app.csv' DELIMITER ',' CSV;
COPY apis(id,name,app_id) from '/docker-entrypoint-initdb.d/04_api.csv' DELIMITER ',' CSV;
COPY events(id,name,app_id) from '/docker-entrypoint-initdb.d/05_ev.csv' DELIMITER ',' CSV;
COPY documents(id,name,app_id) from '/docker-entrypoint-initdb.d/06_doc.csv' DELIMITER ',' CSV;
insert into custom(id,data) values(1,'{"name":"John", "age":33}');
insert into custom(id,data) values(2,'{"name":"Tom", "age":44}'); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.