text stringlengths 6 9.38M |
|---|
-- list all shows, and all gender for each show
-- from the database 'hbtn_0d_tvshows'.
SELECT tv_shows.title, tv_genres.name
FROM tv_shows
LEFT JOIN tv_show_genres ON tv_shows.id = tv_show_genres.show_id
LEFT JOIN tv_genres ON tv_show_genres.genre_id = tv_genres.id
ORDER BY tv_shows.title ASC, tv_genres.name; |
INSERT INTO `categories` (`id`, `category`) VALUES
(1, 'rings'),
(2, 'earrings'),
(3, 'pendants'),
(4, 'necklaces'),
(5, 'bracelets'); |
/* Создание таблицы действий */
CREATE TABLE /*PREFIX*/ACTIONS
(
ACTION_ID VARCHAR(32) NOT NULL,
NAME VARCHAR(100) NOT NULL,
DESCRIPTION VARCHAR(250),
PURPOSE INTEGER NOT NULL,
PRIMARY KEY (ACTION_ID)
)
--
/* Создание просмотра таблицы действий */
CREATE VIEW /*PREFIX*/S_ACTIONS
AS
SELECT * FROM /*PREFIX*/ACTIONS
--
/* Создание процедуры добавления действия */
CREATE PROCEDURE /*PREFIX*/I_ACTION
@ACTION_ID VARCHAR(32),
@NAME VARCHAR(100),
@DESCRIPTION VARCHAR(250),
@PURPOSE INTEGER
AS
BEGIN
INSERT INTO /*PREFIX*/ACTIONS (ACTION_ID,NAME,DESCRIPTION,PURPOSE)
VALUES (@ACTION_ID,@NAME,@DESCRIPTION,@PURPOSE);
END;
--
/* Создание процедуры изменения действия */
CREATE PROCEDURE /*PREFIX*/U_ACTION
@ACTION_ID VARCHAR(32),
@NAME VARCHAR(100),
@DESCRIPTION VARCHAR(250),
@PURPOSE INTEGER,
@OLD_ACTION_ID VARCHAR(32)
AS
BEGIN
UPDATE /*PREFIX*/ACTIONS
SET ACTION_ID=@ACTION_ID,
NAME=@NAME,
DESCRIPTION=@DESCRIPTION,
PURPOSE=@PURPOSE
WHERE ACTION_ID=@OLD_ACTION_ID;
END;
--
/* Создание процедуры удаления действия */
CREATE PROCEDURE /*PREFIX*/D_ACTION
@OLD_ACTION_ID VARCHAR(32)
AS
BEGIN
DELETE FROM /*PREFIX*/ACTIONS
WHERE ACTION_ID=@OLD_ACTION_ID;
END;
-- |
--Wipe Non Developed Upgradeables 1.298
--(Wipes 2880 Item Total)
--Can_SnoxD
--
USE KN_online
--
--Daggers
DELETE FROM ITEM WHERE DexB BETWEEN 2 AND 18 and ItemType = '5' and kind like '11'
DELETE FROM ITEM WHERE FireR BETWEEN 3 AND 27 and ItemType = '5' and kind like '11'
--Axe
DELETE FROM ITEM WHERE StrB BETWEEN 2 AND 18 and ItemType = '5' and kind like '31'
DELETE FROM ITEM WHERE ColdR BETWEEN 3 AND 27 and ItemType = '5' and kind like '31'
--X Mace
DELETE FROM ITEM WHERE StaB BETWEEN 2 AND 18 and ItemType = '5' and kind like '42'
DELETE FROM ITEM WHERE ColdR BETWEEN 3 AND 27 and ItemType = '5' and kind like '42'
--Spear
DELETE FROM ITEM WHERE DexB BETWEEN 2 AND 18 and ItemType = '5' and kind like '51'
DELETE FROM ITEM WHERE LightningR BETWEEN 3 AND 27 and ItemType = '5' and kind like '51'
--X Axe
DELETE FROM ITEM WHERE StrB BETWEEN 2 AND 18 and ItemType = '5' and kind like '32'
DELETE FROM ITEM WHERE ColdR BETWEEN 3 AND 27 and ItemType = '5' and kind like '32'
--Swords
DELETE FROM ITEM WHERE StrB BETWEEN 2 AND 18 and ItemType = '5' and kind like '21'
DELETE FROM ITEM WHERE FireR BETWEEN 3 AND 27 and ItemType = '5' and kind like '21'
--X Swords
DELETE FROM ITEM WHERE StrB BETWEEN 2 AND 18 and ItemType = '5' and kind like '22'
DELETE FROM ITEM WHERE FireR BETWEEN 3 AND 27 and ItemType = '5' and kind like '22'
--Mace
DELETE FROM ITEM WHERE StaB BETWEEN 2 AND 18 and ItemType = '5' and kind like '41'
DELETE FROM ITEM WHERE ColdR BETWEEN 3 AND 27 and ItemType = '5' and kind like '41'
--X Spear
DELETE FROM ITEM WHERE StrB BETWEEN 2 AND 18 and ItemType = '5' and kind like '52'
DELETE FROM ITEM WHERE LightningR BETWEEN 3 AND 27 and ItemType = '5' and kind like '52'
--Bow
DELETE FROM ITEM WHERE DexB BETWEEN 2 AND 18 and ItemType = '5' and kind like '70'
DELETE FROM ITEM WHERE MagicR BETWEEN 3 AND 27 and ItemType = '5' and kind like '70'
--Staff
DELETE FROM ITEM WHERE ChaB BETWEEN 2 AND 18 and ItemType = '5' and kind like '110'
DELETE FROM ITEM WHERE MagicR BETWEEN 3 AND 27 and ItemType = '5' and kind like '110'
--X Bow
DELETE FROM ITEM WHERE DexB BETWEEN 2 AND 18 and ItemType = '5' and kind like '71'
DELETE FROM ITEM WHERE MagicR BETWEEN 3 AND 27 and ItemType = '5' and kind like '71' |
-- phpMyAdmin SQL Dump
-- version 4.6.5.2
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: May 28, 2017 at 03:45 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: `ecommerce`
--
-- --------------------------------------------------------
--
-- Table structure for table `category`
--
CREATE TABLE `category` (
`categoryid` int(11) NOT NULL,
`categoryname` varchar(255) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `products`
--
CREATE TABLE `products` (
`productid` int(11) NOT NULL,
`productname` varchar(255) DEFAULT NULL,
`productcode` varchar(255) NOT NULL,
`productprice` varchar(255) DEFAULT NULL,
`productdetails` varchar(255) DEFAULT NULL,
`productimage` longblob
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `users`
--
CREATE TABLE `users` (
`userid` int(11) NOT NULL,
`userName` varchar(255) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Indexes for dumped tables
--
--
-- Indexes for table `category`
--
ALTER TABLE `category`
ADD PRIMARY KEY (`categoryid`);
--
-- Indexes for table `products`
--
ALTER TABLE `products`
ADD PRIMARY KEY (`productid`);
--
-- Indexes for table `users`
--
ALTER TABLE `users`
ADD PRIMARY KEY (`userid`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `products`
--
ALTER TABLE `products`
MODIFY `productid` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `users`
--
ALTER TABLE `users`
MODIFY `userid` int(11) NOT NULL AUTO_INCREMENT;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
select * from units
join users
on units.owner_id = users.id
where unit_id = $1
|
-- phpMyAdmin SQL Dump
-- version 4.1.12
-- http://www.phpmyadmin.net
--
-- Client : localhost
-- Généré le : Ven 30 Mai 2014 à 16:32
-- Version du serveur : 5.6.16
-- Version de PHP : 5.5.11
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 */;
--
-- Base de données : `projet`
--
-- --------------------------------------------------------
--
-- Structure de la table `preset`
--
CREATE TABLE IF NOT EXISTS `preset` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(256) NOT NULL,
`description` mediumtext NOT NULL,
`lenght` tinyint(1) NOT NULL,
`number_port` tinyint(1) NOT NULL,
`cpu` tinyint(1) NOT NULL,
`frequence` tinyint(1) NOT NULL,
`ram` tinyint(1) NOT NULL,
`hard_drive` tinyint(1) NOT NULL,
`gpu` tinyint(1) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Table qui stock les preset pour chaque type d''objects' AUTO_INCREMENT=2 ;
--
-- Contenu de la table `preset`
--
INSERT INTO `preset` (`id`, `name`, `description`, `lenght`, `number_port`, `cpu`, `frequence`, `ram`, `hard_drive`, `gpu`) VALUES
(1, 'PC', 'Les ordinateurs du Xid', 0, 0, 1, 1, 1, 1, 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 */;
|
-- CRUD (Create Read Update Delete)
use dbinfox;
-- inspecionar tabelas no banco de dados
show tables;
-- O código abaixo cria uma tabela
create table tb_usuarios(
iduser int primary key,
usuario varchar(50) not null,
fone varchar(15),
login varchar(50) not null unique,
senha varchar(50) not null,
perfil varchar(50) not null);
describe tb_usuarios;
-- inserindo dados na tabela (CRUD - Create)
insert into tb_usuarios values
(1, 'Gabriel David Barbosa Miranda','4002-8922','gabrieldavid', '123@senac', 'Aluno');
insert into tb_usuarios values
(2, 'Isabella da Silva','1111-1111', 'isasilva', '123@senac', 'Aluna');
insert into tb_usuarios values
(3, 'Cristiano Ronaldo','3333-3333','cristianoronaldo', '123@senac', 'Aluno');
select * from tb_usuarios;
-- CRUD (Create Read Update Delete)
use dbinfox;
-- O código abaixo cria uma tabela
create table tb_cliente(
idcli int auto_increment primary key,
cpfcli varchar (15) unique,
nomecli varchar(50) not null,
cep varchar (20) not null,
tipo varchar (20) not null,
logradouro varchar (50) not null,
numero varchar (20) not null,
complemento varchar (50),
bairro varchar (50) not null,
cidade varchar (50) not null,
uf char (2) not null,
fone1 varchar(15) not null,
fone2 varchar (15),
emailcli varchar (50) not null);
describe tb_cliente;
-- Inserindo dados na tabela
insert into tb_cliente values
(null, '123.456.789-10', 'Gabriel David Barbosa Miranda','49044-499', 'Rua', 'A7', '20', 'Padaria do Zé', 'Santa Maria', 'Aracaju', 'SE',
'(79)4002-8922', '(79)9002-8922', 'GABRIEL@GMAIL.COM');
select * from tb_cliente;
insert into tb_cliente values
(null, '111.111.111-11', 'Isabella Panda','11111-111', 'Avenida', 'Aricanduva', '1', 'Residencial Aricanduva', 'São Matheus', 'São Paulo', 'SP',
'(11)1111-1111', '(11)2222-2222', 'ISA@GMAIL.COM');
insert into tb_cliente values
(null, '333.333.333-33', 'Cristiano','33333-333', 'Rua', 'Katiau', '3', 'Sesc', 'São Matheus', 'São Paulo', 'SP',
'(33)3333-3333', '(33)4444-4444', 'CRISTANO@GMAIL.COM');
insert into tb_cliente values
(null, '444.444.444-44', 'Rafa','44444-444', 'Rua', 'Maronez', '4', 'Pizzaria Orlean', 'Nove de Julho', 'São Paulo', 'SP',
'(44)4444-4444', '(44)5555-5555', 'rafa@gmail.com');
insert into tb_cliente values
(null, '555.555.555-55', 'Sabrina','55555-555', 'Rua', 'Maua', '5', 'Academia Fit', 'Nove de Maio', 'São Paulo', 'SP',
'(55)5555-5555', '(55)6666-6666', 'sabrina@gmail.com');
select * from tb_cliente;
use dbinfox;
create table tb_os(
idos int auto_increment primary key,
tipo varchar (15) not null,
situacao varchar(20) not null,
equipamento varchar(200) not null,
defeito varchar(200) not null,
servico varchar(200),
tecnico varchar(200),
valor decimal(10,2));
describe tb_os;
-- Adicionando data e hora automática
alter table tb_os add data_os timestamp default current_timestamp
after idos;
-- Comando para alterar o start do inicio do auto incremento
alter table tb_os auto_increment = 10000;
-- Relacionando
alter table tb_os add idcli int;
alter table tb_os add constraint cliente_os
foreign key(idcli)
references tb_cliente(idcli)
on delete no action;
-- Criando um cliente
insert into tb_cliente values
(NULL, '123.456.789-11', 'Gabriel David','49044-499', 'Rua', 'A8', '21', 'Padaria do Z', 'Santa Maria', 'Aracaju', 'SE',
'(79)4002-8921', '(79)9002-8932', 'GABRIELDAVID@GMAIL.COM');
update tb_cliente set fone1= '4201-8329' where idcli = 6;
select * from tb_cliente;
-- Cadastrando OS
insert into tb_os (idcli,tipo,situacao,equipamento,defeito,servico,tecnico,valor)
values ('1','Conserto','Aprovado','Celular','Display quebrado','Troca de display','Gabriel Barbosa','200');
insert into tb_os (idcli,tipo,situacao,equipamento,defeito,servico,tecnico,valor)
values ('6','Conserto','Aprovado','PC','Não Liga','Troca de Fonte','Gabriel Barbosa','250');
insert into tb_os (idcli,tipo,situacao,equipamento,defeito,servico,tecnico,valor)
values ('6','Conserto','Aprovado','PC','Vírus','Formatação','Gabriel Barbosa','80');
select * from tb_os;
-- Emitindo um relátorio personalizado, unindo todos os dados da OS
select
O.idos as OS, equipamento as Equipamento, valor as Valor, C.nomecli as Nome, fonecli as Telefone,
emailcli as Email, defeito as Defeito, situacao as Situação, servico as Serviço, tecnico as Técnico, tipo as Tipo
from tb_os as O
inner join tb_clientes as C on (O.idcli = C.idcli);
|
/* Poblar Programs*/
insert into Program values (1,'Ingenieria Civil',10)
insert into Program values (2,'Ingenieria Electronica',10)
insert into Program values (3,'Ingenieria Electrica',10)
insert into Program values (4,'Ingenieria De Sistemas',10)
insert into Program values (5,'Ingenieria Industrial',10)
insert into Program values (6,'Matematicas',10)
insert into Program values (7,'Economia',10)
insert into Program values (8,'Administracion de Empresas',10)
insert into Program values (9,'Ingenieria Mecanica',10)
insert into Program values (10,'Ingenieria Biomedica',10)
/*Insertar usuarios*/
insert into User values(1032483872,'Hernan Felipe','Losada Calderon','hernan.losada@gmail.com','2697490','+573158207964',4,2018,'1996-07-29',2)
insert into User values(2105409,'Pipe','Losada','hernan.losada@mail.escuelaing.edu.co','2697490','+17868182661',4,2018,'1996-07-29',2)
/* Insertar Request */
insert into Request values(1032483872,1,'2016-10-9','Probando el envio de correos desaprobados','R')
insert into Request values(1032483872,2,'2016-11-9','Probando el envio de correos desaprobados','A')
|
if (select count(*) from CourtTimes) = 0
BEGIN
insert into CourtTimes (StartTime, CourtId, IsAvailable)
values
('10/1/2016 8am', 1, 1), ('10/1/2016 9:30am', 1, 1), ('10/1/2016 11am', 1, 1), ('10/1/2016 12:30pm', 1, 1), ('10/1/2016 2pm', 1, 1), ('10/1/2016 3:30pm', 1, 1)
END |
select * from circunscricao cc left join circunscricao_cidade on (circunscricoes_id=cc.id) left join cidade cid on (cidades_id=cid.id)
where cid.nome='Pedro II'
select * from circunscricaobairro cb left join circunscricaobairro_bairro cbb on (cb.id=circunscricoes_id) left join bairro b on (b.id=bairros_id)
where b.nome='Campestre' |
INSERT INTO books values ('The Philosopher''s Stone', 'J. K. Rowling', 1997);
INSERT INTO books values ('The Chamber of Secrets', 'J. K. Rowling', 1998);
INSERT INTO books values ('The Prisoner of Azkaban', 'J. K. Rowling', 1999);
INSERT INTO books values ('The Goblet of Fire', 'J. K. Rowling', 2000);
INSERT INTO books values ('The Order of the Phoenix', 'J. K. Rowling', 2003);
INSERT INTO books values ('The Half-Blood Prince', 'J. K. Rowling', 2005);
INSERT INTO books values ('The Deathly Hallows', 'J. K. Rowling', 2007);
INSERT INTO books values ('The Fellowship of the Ring', 'J.R.R. Tolkien', 1954);
INSERT INTO books values ('The Two Towers', 'J.R.R. Tolkien', 1954);
INSERT INTO books values ('The Return of the King', 'J.R.R. Tolkien', 1955);
|
-- phpMyAdmin SQL Dump
-- version 4.9.5deb2
-- https://www.phpmyadmin.net/
--
-- Host: localhost:3306
-- Generation Time: Dec 03, 2020 at 09:15 AM
-- Server version: 10.3.25-MariaDB-0ubuntu0.20.04.1
-- PHP Version: 7.4.3
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: `nova`
--
-- --------------------------------------------------------
--
-- Table structure for table `admin`
--
CREATE TABLE `admin` (
`id` int(11) NOT NULL,
`username` varchar(50) NOT NULL,
`email` varchar(50) NOT NULL,
`password` varchar(50) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `admin`
--
INSERT INTO `admin` (`id`, `username`, `email`, `password`) VALUES
(1, 'admin', 'admin@admin.com', md5('admin123'));
-- --------------------------------------------------------
--
-- Table structure for table `chat`
--
CREATE TABLE `chat` (
`chatid` int(11) NOT NULL,
`sender_userid` int(11) DEFAULT NULL,
`receiver_userid` int(11) DEFAULT NULL,
`message` text DEFAULT NULL,
`timestamp` timestamp NULL DEFAULT current_timestamp(),
`status` int(1) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `deleteduser`
--
CREATE TABLE `deleteduser` (
`id` int(11) NOT NULL,
`email` varchar(50) NOT NULL,
`deltime` timestamp NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `login_details`
--
CREATE TABLE `login_details` (
`id` int(11) NOT NULL,
`userid` int(11) DEFAULT NULL,
`last_activity` timestamp NULL DEFAULT current_timestamp(),
`is_typing` enum('no','yes') DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `users`
--
CREATE TABLE `users` (
`id` int(11) NOT NULL,
`name` varchar(50) NOT NULL,
`email` varchar(50) NOT NULL,
`password` varchar(50) NOT NULL,
`profile` varchar(255) DEFAULT NULL,
`current_session` int(11) DEFAULT NULL,
`online` int(11) DEFAULT NULL,
`last_login` timestamp NULL DEFAULT NULL,
`first_name` varchar(50) DEFAULT NULL,
`last_name` varchar(50) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Indexes for dumped tables
--
--
-- Indexes for table `admin`
--
ALTER TABLE `admin`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `chat`
--
ALTER TABLE `chat`
ADD PRIMARY KEY (`chatid`);
--
-- Indexes for table `deleteduser`
--
ALTER TABLE `deleteduser`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `login_details`
--
ALTER TABLE `login_details`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `users`
--
ALTER TABLE `users`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `admin`
--
ALTER TABLE `admin`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `deleteduser`
--
ALTER TABLE `deleteduser`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=22;
--
-- AUTO_INCREMENT for table `users`
--
ALTER TABLE `users`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=44;
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 */;
|
--Nashville Housing Data Clean
SELECT *
FROM nashvillehousing
--standardize date formatting
SELECT SaleDate,CONVERT(date,SaleDate)
FROM nashvillehousing
ALTER TABLE nashvillehousing
ADD SaleDateConverted date;
UPDATE nashvillehousing
SET saledateconverted = CONVERT(date,SaleDate)
SELECT SaleDateConverted,CONVERT(date,SaleDate)
FROM nashvillehousing
-- populate property address data
SELECT *
FROM nashvillehousing
--WHERE PropertyAddress is NULL
ORDER BY ParcelID
SELECT nh1.ParcelID,nh1.PropertyAddress,nh2.ParcelID,nh2.PropertyAddress,ISNULL(nh1.PropertyAddress,nh2.PropertyAddress)
FROM nashvillehousing nh1
join nashvillehousing nh2 on nh1.ParcelID = nh2.ParcelID
AND nh1.UniqueID <> nh2.UniqueID
WHERE nh1.PropertyAddress is null
UPDATE nh1
SET PropertyAddress = ISNULL(nh1.PropertyAddress,nh2.PropertyAddress)
FROM nashvillehousing nh1
join nashvillehousing nh2 on nh1.ParcelID = nh2.ParcelID
AND nh1.UniqueID <> nh2.UniqueID
WHERE nh1.PropertyAddress is null
-- breaking out address into address,city,state
SELECT PropertyAddress
FROM nashvillehousing
SELECT SUBSTRING(PropertyAddress,1,CHARINDEX(',',PropertyAddress)-1)[Address],
SUBSTRING(PropertyAddress,CHARINDEX(',',PropertyAddress)+1,LEN(PropertyAddress))[City]
FROM nashvillehousing
ALTER TABLE nashvillehousing
Add PropertySplitAddress nvarchar(255);
UPDATE nashvillehousing
SET PropertySplitAddress = SUBSTRING(PropertyAddress,1,CHARINDEX(',',PropertyAddress)-1)
ALTER TABLE nashvillehousing
Add PropertySplitCity nvarchar(255);
UPDATE nashvillehousing
SET PropertySplitCity = SUBSTRING(PropertyAddress,CHARINDEX(',',PropertyAddress)+1,LEN(PropertyAddress))
SELECT PropertySplitAddress,PropertySplitCity
FROM nashvillehousing
SELECT owneraddress
FROM nashvillehousing
SELECT PARSENAME(REPLACE(OwnerAddress,',','.'),3),
PARSENAME(REPLACE(OwnerAddress,',','.'),2),
PARSENAME(REPLACE(OwnerAddress,',','.'),1)
FROM nashvillehousing
ALTER TABLE nashvillehousing
Add OwnerSplitAddress nvarchar(255);
UPDATE nashvillehousing
SET OwnerSplitAddress = PARSENAME(REPLACE(OwnerAddress,',','.'),3)
FROM nashvillehousing
ALTER TABLE nashvillehousing
Add OwnerSplitCity nvarchar(255);
UPDATE nashvillehousing
SET OwnerSplitCity = PARSENAME(REPLACE(OwnerAddress,',','.'),2)
FROM nashvillehousing
ALTER TABLE nashvillehousing
Add OwnerSplitState nvarchar(255);
UPDATE nashvillehousing
SET OwnerSplitState = PARSENAME(REPLACE(OwnerAddress,',','.'),1)
FROM nashvillehousing
SELECT *
FROM nashvillehousing
-- Clean up SoldasVacant field
SELECT DISTINCT(SoldasVacant),Count(SoldasVacant)
FROM nashvillehousing
GROUP BY SoldAsVacant
ORDER BY 2
SELECT SoldAsVacant,
CASE WHEN SoldasVacant = 'Y' THEN 'YES'
WHEN SoldasVacant = 'N' THEN 'NO'
ELSE SoldasVacant END AS SoldasVacant
FROM nashvillehousing
UPDATE nashvillehousing
SET SoldAsVacant = CASE WHEN SoldasVacant = 'Y' THEN 'YES'
WHEN SoldasVacant = 'N' THEN 'NO'
ELSE SoldasVacant END
-- remove duplicates
WITH RowNumCTE AS (
Select *,
ROW_NUMBER() OVER (
PARTITION BY ParcelID,
PropertyAddress,
SalePrice,
SaleDate,
LegalReference
ORDER BY UniqueID)
row_num
FROM nashvillehousing
)
DELETE
FROM RowNumCTE
WHERE row_num > 1
WITH RowNumCTE AS (
Select *,
ROW_NUMBER() OVER (
PARTITION BY ParcelID,
PropertyAddress,
SalePrice,
SaleDate,
LegalReference
ORDER BY UniqueID)
row_num
FROM nashvillehousing
)
SELECT *
FROM RowNumCTE
WHERE row_num > 1
-- delete unused columns
SELECT *
FROM nashvillehousing
order by UniqueID
ALTER TABLE nashvillehousing
DROP COLUMN PropertyAddress,OwnerAddress,TaxDistrict,SaleDate
|
CREATE TABLE IF NOT EXISTS `ORDER` (
`id` BIGINT PRIMARY KEY AUTO_INCREMENT NOT NULL,
`user_id` BIGINT DEFAULT NULL,
`amount` DOUBLE DEFAULT NULL,
`time_created` DATETIME DEFAULT NULL
);
CREATE TABLE IF NOT EXISTS `USER` (
`id` BIGINT PRIMARY KEY AUTO_INCREMENT NOT NULL,
`name` VARCHAR(64) DEFAULT NULL,
`points` INT DEFAULT NULL,
`type` INT DEFAULT NULL,
`email` VARCHAR(64) DEFAULT NULL,
`city` VARCHAR(64) DEFAULT NULL,
);
|
-- phpMyAdmin SQL Dump
-- version 2.11.9.2
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: May 30, 2010 at 11:57 AM
-- Server version: 5.0.67
-- PHP Version: 5.2.6
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 */;
--
-- Database: `vdb`
--
-- --------------------------------------------------------
--
-- Table structure for table `admin_user`
--
CREATE TABLE IF NOT EXISTS `admin_user` (
`id` int(10) NOT NULL auto_increment,
`uname` varchar(30) NOT NULL,
`upass` varchar(30) NOT NULL,
`login` varchar(40) NOT NULL,
`logout` varchar(40) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;
--
-- Dumping data for table `admin_user`
--
INSERT INTO `admin_user` (`id`, `uname`, `upass`, `login`, `logout`) VALUES
(1, 'admin', 'admin', '', '');
-- --------------------------------------------------------
--
-- Table structure for table `bookings`
--
CREATE TABLE IF NOT EXISTS `bookings` (
`bid` int(10) NOT NULL auto_increment,
`uid` int(10) NOT NULL,
`u_name` varchar(40) NOT NULL,
`v_name` varchar(50) NOT NULL,
`d_name` varchar(50) NOT NULL,
`sdate` varchar(30) NOT NULL,
`edate` varchar(30) NOT NULL,
`nod` int(10) NOT NULL,
`km` varbinary(10) NOT NULL,
`no_of_seats` int(10) NOT NULL,
`status` varchar(20) NOT NULL,
`b_date` varchar(40) NOT NULL,
PRIMARY KEY (`bid`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=4 ;
--
-- Dumping data for table `bookings`
--
INSERT INTO `bookings` (`bid`, `uid`, `u_name`, `v_name`, `d_name`, `sdate`, `edate`, `nod`, `km`, `no_of_seats`, `status`, `b_date`) VALUES
(1, 1, 'Nitish', 'Honda Accord', 'Siddharth', '2010-04-21', '2010-04-23', 3, '1200', 5, 'Approved', '2010-04-02 21:26:05'),
(2, 2, 'vaibhav', 'Chevrolet Tavera', 'Arun Kumbhar', '2010-04-21', '2010-04-23', 3, '800', 6, 'Pending', '2010-04-03 12:27:31'),
(3, 2, 'vaibhav', 'Toyota Innova', 'Siddharth', '2010-04-15', '2010-04-20', 6, '2300', 5, 'Approved', '2010-04-03 12:29:02');
-- --------------------------------------------------------
--
-- Table structure for table `driver`
--
CREATE TABLE IF NOT EXISTS `driver` (
`id` int(10) NOT NULL auto_increment,
`name` varchar(40) NOT NULL,
`l_name` varchar(40) NOT NULL,
`address` varchar(100) NOT NULL,
`image` varchar(100) NOT NULL,
`city` varchar(40) NOT NULL,
`state` varchar(30) NOT NULL,
`mob` varchar(15) NOT NULL,
`lic_no` varchar(20) NOT NULL,
`exp` varchar(20) NOT NULL,
`experiance` int(4) NOT NULL,
`note` varchar(200) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=16 ;
--
-- Dumping data for table `driver`
--
INSERT INTO `driver` (`id`, `name`, `l_name`, `address`, `image`, `city`, `state`, `mob`, `lic_no`, `exp`, `experiance`, `note`) VALUES
(2, 'Siddharth', 'Siddharth', 'New Modern Colony', 'any', 'Dhule', 'Maharashtra', '9089878765', 'MH23-X2uW', '2022-03-04', 6, 'Siddharth'),
(3, 'Umesh Patil', 'Umesh Patil', '34, Near Petrol Pump', 'any', 'Jalgaon', 'Maharashtra', '9809878767', 'MH23XD34', '2033-03-17', 3, 'Umesh is having 3 year of Expericance'),
(4, 'Kiran Sonone', 'Kiran Sonone', '2/12, Ishwar Colony', 'any', 'Bhusawal', 'Maharashtra', '9578733322', 'MH12XKD', '2010-03-26', 4, 'Kiran is having 4 year fo Exp. He is Good and Intelligent and First Choice of Customers.'),
(5, 'Asmit Patel', 'Asmit Patel', '34, New Baji market', 'any', 'Surat', 'Gujarat', '8909898767', 'GJ-34XW3', '2016-03-17', 6, 'Well Known in Gujarat.'),
(6, 'Sachin Jha', 'Sachin Jha', '34, New Baji market', 'images/', 'Dhule', 'Maharashtra', '8909898767', 'MH12XKD', '2010-03-26', 4, 'rec'),
(10, 'Yuvraj Tare', 'Yuvraj Tare', '34, Near Petrol Pump', 'images/images/ims.gif', 'Bhusawal', 'Gujarat', '9089878765', 'GJ-34XCC', '2010-03-03', 1, 'asdasd\r\nsadsa\r\nd'),
(11, 'Asim Abbas', 'Asim Abbas', 'New Modern Colony', 'images/rdc.gif', 'Dhule', 'Maharashtra', '9089878765', 'MH10-X2juW', '2010-03-16', 1, 'asdasd'),
(15, 'nitish', 'kumar', '290, shani peth,', 'No', 'bukaro', 'jharkhand', '9089878765', 'MH10-X2juW', '2010-04-29', 3, 'sadas');
-- --------------------------------------------------------
--
-- Table structure for table `fuel_details`
--
CREATE TABLE IF NOT EXISTS `fuel_details` (
`fid` int(10) NOT NULL auto_increment,
`v_name` varchar(50) NOT NULL,
`d_name` varchar(50) NOT NULL,
`date` varchar(40) NOT NULL,
`f_type` varchar(40) NOT NULL,
`qty` varchar(10) NOT NULL,
`cost` int(10) NOT NULL,
`note` varchar(200) NOT NULL,
PRIMARY KEY (`fid`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=5 ;
--
-- Dumping data for table `fuel_details`
--
INSERT INTO `fuel_details` (`fid`, `v_name`, `d_name`, `date`, `f_type`, `qty`, `cost`, `note`) VALUES
(1, 'Swing XLS', 'Tousif Khan', '2010-03-18', 'Diesel', '12', 600, 'Diesel Added'),
(2, 'HUNDAI Sonata', 'Asmit Patel', '2010-03-09', 'Diesel', '30', 1500, 'Asmit Goes to full the fuel and fill the tank. the bill was 1500 Rs.'),
(4, 'TATA Nano XL', 'Kiran Sonone', '2010-03-25', 'Pertol', '23', 1250, 'Filled in Nano.');
-- --------------------------------------------------------
--
-- Table structure for table `oil_detail`
--
CREATE TABLE IF NOT EXISTS `oil_detail` (
`id` int(11) NOT NULL auto_increment,
`v_name` varchar(50) NOT NULL,
`d_name` varchar(50) NOT NULL,
`date` varchar(40) NOT NULL,
`cost` int(10) NOT NULL,
`o_type` varchar(30) NOT NULL,
`odometer` varchar(20) NOT NULL,
`note` varchar(200) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=5 ;
--
-- Dumping data for table `oil_detail`
--
INSERT INTO `oil_detail` (`id`, `v_name`, `d_name`, `date`, `cost`, `o_type`, `odometer`, `note`) VALUES
(4, 'Toyota Camry', 'Asmit Patel', '2010-04-20', 500, 'Synthetic', '67000', 'gdgfdg');
-- --------------------------------------------------------
--
-- Table structure for table `repair`
--
CREATE TABLE IF NOT EXISTS `repair` (
`id` int(10) NOT NULL auto_increment,
`v_name` varchar(50) NOT NULL,
`g_name` varchar(50) NOT NULL,
`d_name` varchar(50) NOT NULL,
`date` varchar(40) NOT NULL,
`odometer` varchar(20) NOT NULL,
`cost` int(10) NOT NULL,
`note` varchar(200) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=4 ;
--
-- Dumping data for table `repair`
--
INSERT INTO `repair` (`id`, `v_name`, `g_name`, `d_name`, `date`, `odometer`, `cost`, `note`) VALUES
(1, 'Swing XLS', 'Kerala Garage', 'Siddharth', '2010-03-11', '23423', 1200, 'Repairs'),
(2, 'TATA Nano XL', 'Nisar Autoo Garage', 'Kiran Sonone', '2009-03-05', '23000', 23000, 'Problem is Nano then repaired by Nisar Bhai and Delivered in 4 Days.');
-- --------------------------------------------------------
--
-- Table structure for table `users`
--
CREATE TABLE IF NOT EXISTS `users` (
`id` int(10) NOT NULL auto_increment,
`name` varchar(50) NOT NULL,
`pass` varchar(50) NOT NULL,
`add1` varchar(200) NOT NULL,
`city` varchar(40) NOT NULL,
`state` varchar(30) NOT NULL,
`mobile` varchar(15) NOT NULL,
`email` varchar(30) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ;
--
-- Dumping data for table `users`
--
INSERT INTO `users` (`id`, `name`, `pass`, `add1`, `city`, `state`, `mobile`, `email`) VALUES
(1, 'Nitish', 'nitish123', '2, saraswati road', 'Faizpur', 'Maharashtra', '9898987876', 'nitish@gmail.com'),
(2, 'vaibhav', 'vaibhav', 'XYZ', 'jalgaon', 'Maharashtra', '8909898767', 'vaibhav@gmail.com');
-- --------------------------------------------------------
--
-- Table structure for table `vmast`
--
CREATE TABLE IF NOT EXISTS `vmast` (
`id` int(10) NOT NULL auto_increment,
`v_name` varchar(40) NOT NULL,
`v_no` varchar(40) NOT NULL,
`make` varchar(20) NOT NULL,
`fuel_type` varchar(40) NOT NULL,
`kmr` double NOT NULL,
`avg` varchar(10) NOT NULL,
`cost` int(10) NOT NULL,
`image` varchar(50) NOT NULL,
`v_type` varchar(40) NOT NULL,
`insurer` varchar(50) NOT NULL,
`company` varchar(50) NOT NULL,
`date` varchar(40) NOT NULL,
`exp_date` varchar(40) NOT NULL,
`driver_name` varchar(40) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=21 ;
--
-- Dumping data for table `vmast`
--
INSERT INTO `vmast` (`id`, `v_name`, `v_no`, `make`, `fuel_type`, `kmr`, `avg`, `cost`, `image`, `v_type`, `insurer`, `company`, `date`, `exp_date`, `driver_name`) VALUES
(1, 'Mercedes (S Class)', 'MH-19 8990', 'Mercedes', 'Pertol', 8, '20', 5000000, 'cars/mercedes-s-class.jpg', 'Luxury Cars', 'Shashank Agrawal', 'ICICI bank', '2010-03-02', '2020-03-24', 'Tousif Khan'),
(2, 'Mercedes (E Class)', 'MH 19 2334', 'Mercedes', 'Diesel', 5.2, '22', 180000, 'cars/mercedes-e-class.jpg', 'Luxury Cars', 'Vilas Mahajan', 'HDFC Bank', '2010-03-17', '2016-03-11', 'Tousif Khan'),
(3, 'Toyota Camry', 'MH 20 232', 'Toyota', 'Gas', 4.5, '15', 350000, 'cars/toyota--camry.jpg', 'Luxury Cars', 'Bhushan Patil', 'LIC Finance Ltd.', '2009-03-02', '2015-03-11', 'Siddharth'),
(4, 'Honda Accord', 'MH 09 234', 'Honda', 'Pertol', 4.4, '18', 340000, 'cars/honda-accord.jpg', 'Luxury Cars', 'Asif Khan', 'Bajaj Finance Ltd.', '2003-03-13', '2012-09-13', 'Tousif Khan'),
(5, 'Skoda Octavia ', 'MH 23 8987', 'Skoda', 'Gas', 6, '22', 340000, 'cars/skoda-octavia.jpg', 'Luxury Cars', 'Aakash Saxena', 'Bajaj Finance Ltd.', '2010-03-15', '2022-03-12', 'Kiran Sonone'),
(6, 'Toyota Commuter', 'MH-12 9898', 'Toyota', 'Petrol', 20, '12', 220000, 'cars/toyota_commuter.jpg', 'Mini Vans & Large Coaches', 'Amit Sharma', 'ICICI Bank Ltd.', '', '', ''),
(7, ' Deluxe A/c Coach (18 Seater)', 'MH-12 2333', ' TATA', 'Petrol', 12, '12', 2300000, 'cars/deluxe-ac-coach-3.jpg', 'Mini Vans & Large Coaches', 'Amit Sharma', 'ICICI Bank Ltd.', '', '', ''),
(8, 'Deluxe A/c Coach (35 Seater )', 'MH-12 2122', 'Toyota', 'Petrol', 12, '12', 5000000, 'cars/deluxe-volovo-coach.jpg', 'Mini Vans & Large Coaches', 'Amit Sharma', 'ICICI Bank Ltd.', '', '', ''),
(9, 'Luxury Traveller', 'MH-12 2355', 'Tempo', 'Desial', 12, '12', 220000, 'cars/tempo-travellers-a.jpg', 'Mini Vans & Large Coaches', 'Amit Sharma', 'ICICI Bank Ltd.', '', '', ''),
(10, ' Mercedes Viano', 'MH-12 2199', ' Mercedes', 'Desial', 12, '12', 5000000, 'cars/mercedes-viano.jpg', 'Mini Vans & Large Coaches', 'Amit Sharma', 'ICICI Bank Ltd.', '', '', ''),
(11, 'Maruti Baleno', 'MH 12 MC 234', 'Maruti', 'Diesel', 20, '15', 4000000, 'cars/maruti--baleno.jpg', 'Executive Cars ', 'Aakash Saxena', 'ICICI bank', '2004-04-13', '2012-09-27', 'Abid Khan'),
(12, 'Ford Fiesta', 'MH 12 8787', 'Ford', 'Diesel', 24, '21', 2300000, 'cars/ford-fiesta.jpg', 'Executive Cars', 'Asif Khan', 'HDFC Bank', '2010-04-22', '2022-04-13', 'Kiran Sonone'),
(13, 'Toyota Corolla', 'MH 23 2234', 'Toyota', 'Pertol', 23, '15', 5500000, 'cars/toyota-corolla.jpg', 'Executive Cars ', 'Aakash Saxena', 'ICICI bank', '2010-04-14', '2033-04-19', 'Abid Khan'),
(14, 'Honda Civic', 'MH 23 K878', 'Honda', 'Pertol', 18, '12', 3500000, 'cars/honda-civic.jpg', 'Executive Cars ', 'Shashank Agrawal', 'LIC Finance Ltd.', '2005-04-20', '2018-04-18', 'Kiran Sonone'),
(15, 'Tata Indica', 'MH 12 BC12 ', 'Tata', 'Diesel', 10, '22', 450000, 'cars/tata-indica.jpg', 'Economy Cars', 'Bhushan Patil', 'Bajaj Finance Ltd.', '2009-02-11', '2012-04-19', 'Sachin Jha'),
(16, 'Maruti Swift', 'MH 24 898', 'Maruti', 'Diesel', 12, '23', 340000, 'cars/swift.jpg', 'Economy Cars', 'Bhushan Patil', 'Bajaj Finance Ltd.', '2005-11-24', '2012-04-11', 'Yuvraj Tare'),
(17, 'Wagon R', 'MH 23', 'Wagon R', 'Diesel', 10, '15', 2300000, 'cars/wagnor.jpg', 'Economy Cars', 'Bhushan Patil', 'Bajaj Finance Ltd.', '2005-09-29', '2010-04-23', 'Kiran Sonone'),
(18, 'Chevrolet Tavera', 'MH 12 8787', 'Chevrolet', 'Diesel', 10, '12', 700000, 'cars/chevrolet-tavera.jpg', 'MUVs & SUVs', 'Vilas Mahajan', 'Bajaj Finance Ltd.', '2007-04-25', '2019-04-24', 'Yuvraj Tare'),
(19, 'Ford Endeavour', 'MH 23 c876', 'Ford', 'Diesel', 18, '18', 780000, 'cars/ford-endeavour.jpg', 'MUVs & SUVs', 'Vilas Mahajan', 'LIC Finance Ltd.', '2004-04-23', '2016-12-22', 'Asim Abbas'),
(20, 'Toyota Innova', 'Mh 23 N676', 'Toyota', 'Diesel', 23, '15', 800000, 'cars/toyota-innova.jpg', 'MUVs & SUVs', 'Vilas Mahajan', 'LIC Finance Ltd.', '2004-07-15', '2016-10-19', 'Asmit Patel');
|
INSERT INTO partners( name, surname, email, create_at, photo) VALUES('drohne','Enhord','drohne@gmail.com','2019-10-11', '');
INSERT INTO partners( name, surname, email, create_at, photo) VALUES('pepone','toblerone','pepone@gmail.com','2019-10-11', '');
INSERT INTO partners( name, surname, email, create_at, photo) VALUES('Rul','Rul','rul@gmail.com','2019-10-11', '');
INSERT INTO partners( name, surname, email, create_at, photo) VALUES('BugFixer','BugFixer','BugFixer@gmail.com','2019-10-11', '');
INSERT INTO partners( name, surname, email, create_at, photo) VALUES('qwerty','qwerty','qwerty@gmail.com','2019-10-11', '');
INSERT INTO partners( name, surname, email, create_at, photo) VALUES('Enhord','Enhord','Enhord@gmail.com','2019-10-11', '');
INSERT INTO partners( name, surname, email, create_at, photo) VALUES('drohne','Enhord','drohne@gmail.com','2019-10-11', '');
INSERT INTO partners( name, surname, email, create_at, photo) VALUES('pepone','toblerone','pepone@gmail.com','2019-10-11', '');
INSERT INTO partners( name, surname, email, create_at, photo) VALUES('Rul','Rul','rul@gmail.com','2019-10-11', '');
INSERT INTO partners( name, surname, email, create_at, photo) VALUES('BugFixer','BugFixer','BugFixer@gmail.com','2019-10-11', '');
INSERT INTO partners( name, surname, email, create_at, photo) VALUES('qwerty','qwerty','qwerty@gmail.com','2019-10-11', '');
INSERT INTO partners( name, surname, email, create_at, photo) VALUES('Enhord','Enhord','Enhord@gmail.com','2019-10-11', '');
INSERT INTO partners( name, surname, email, create_at, photo) VALUES('drohne','Enhord','drohne@gmail.com','2019-10-11', '');
INSERT INTO partners( name, surname, email, create_at, photo) VALUES('pepone','toblerone','pepone@gmail.com','2019-10-11', '');
INSERT INTO partners( name, surname, email, create_at, photo) VALUES('Rul','Rul','rul@gmail.com','2019-10-11', '');
INSERT INTO partners( name, surname, email, create_at, photo) VALUES('BugFixer','BugFixer','BugFixer@gmail.com','2019-10-11', '');
INSERT INTO partners( name, surname, email, create_at, photo) VALUES('qwerty','qwerty','qwerty@gmail.com','2019-10-11', '');
INSERT INTO partners( name, surname, email, create_at, photo) VALUES('Enhord','Enhord','Enhord@gmail.com','2019-10-11', '');
INSERT INTO partners( name, surname, email, create_at, photo) VALUES('drohne','Enhord','drohne@gmail.com','2019-10-11', '');
INSERT INTO partners( name, surname, email, create_at, photo) VALUES('pepone','toblerone','pepone@gmail.com','2019-10-11', '');
INSERT INTO partners( name, surname, email, create_at, photo) VALUES('Rul','Rul','rul@gmail.com','2019-10-11', '');
INSERT INTO partners( name, surname, email, create_at, photo) VALUES('BugFixer','BugFixer','BugFixer@gmail.com','2019-10-11', '');
INSERT INTO partners( name, surname, email, create_at, photo) VALUES('qwerty','qwerty','qwerty@gmail.com','2019-10-11', '');
INSERT INTO partners( name, surname, email, create_at, photo) VALUES('Enhord','Enhord','Enhord@gmail.com','2019-10-11', '');
INSERT INTO partners( name, surname, email, create_at, photo) VALUES('drohne','Enhord','drohne@gmail.com','2019-10-11', '');
INSERT INTO partners( name, surname, email, create_at, photo) VALUES('pepone','toblerone','pepone@gmail.com','2019-10-11', '');
INSERT INTO partners( name, surname, email, create_at, photo) VALUES('Rul','Rul','rul@gmail.com','2019-10-11', '');
INSERT INTO partners( name, surname, email, create_at, photo) VALUES('BugFixer','BugFixer','BugFixer@gmail.com','2019-10-11', '');
INSERT INTO partners( name, surname, email, create_at, photo) VALUES('qwerty','qwerty','qwerty@gmail.com','2019-10-11', '');
INSERT INTO partners( name, surname, email, create_at, photo) VALUES('Enhord','Enhord','Enhord@gmail.com','2019-10-11', '');
INSERT INTO partners( name, surname, email, create_at, photo) VALUES('drohne','Enhord','drohne@gmail.com','2019-10-11', '');
INSERT INTO partners( name, surname, email, create_at, photo) VALUES('pepone','toblerone','pepone@gmail.com','2019-10-11', '');
INSERT INTO partners( name, surname, email, create_at, photo) VALUES('Rul','Rul','rul@gmail.com','2019-10-11', '');
INSERT INTO partners( name, surname, email, create_at, photo) VALUES('BugFixer','BugFixer','BugFixer@gmail.com','2019-10-11', '');
INSERT INTO partners( name, surname, email, create_at, photo) VALUES('qwerty','qwerty','qwerty@gmail.com','2019-10-11', '');
INSERT INTO partners( name, surname, email, create_at, photo) VALUES('Enhord','Enhord','Enhord@gmail.com','2019-10-11', '');
/*Products*/
INSERT INTO products (name, price, create_at) VALUES('Keyboard',10.00,NOW());
INSERT INTO products (name, price, create_at) VALUES('Mouse',7.00,NOW());
INSERT INTO products (name, price, create_at) VALUES('Monitor',65.00,NOW());
/*SaleOrders*/
INSERT INTO sales_order(description, obserbation,partner_id, create_at) VALUES('Office material','',1, NOW());
INSERT INTO sale_order_line(quantiy, product_id, sale_order_id) VALUES(3,1,1);
INSERT INTO sale_order_line(quantiy, product_id, sale_order_id) VALUES(3,2,1);
INSERT INTO sale_order_line(quantiy, product_id, sale_order_id) VALUES(1,3,1);
INSERT INTO sales_order(description, obserbation,partner_id, create_at) VALUES('Monitor',null,1, NOW());
INSERT INTO sale_order_line(quantiy, product_id, sale_order_id) VALUES(2,3,2);
--/*Users*/
INSERT INTO users(username, password, enabled) VALUES ('admin', '$2a$10$AWPQMgBxJktzfAIBnQbHL./esGUzjSPjcA..1zb4Pee.MUFkULnVW', true);
INSERT INTO users(username, password, enabled) VALUES ('drohne', '$2a$10$9RXByRBy4ajtYayxP9r6vOeHH4p5TE/2PGsK.aYbxSZrQHEC9FX7W', true);
--/*Roles*/
INSERT INTO authorities( user_id, authority) VALUES(1,'ROLE_ADMIN');
INSERT INTO authorities( user_id, authority) VALUES(1,'ROLE_USER');
INSERT INTO authorities( user_id, authority) VALUES(2,'ROLE_USER'); |
SELECT Name, BeardYesOrNo, Intention, Temper, Type
FROM Gnome
Inner join Temper ON TemperId = Temper.Id
Left join Type ON TypeId = Type.Id
Left join Beard ON BeardId = Beard.Id
Left join Intention ON IntentionId = Intention.Id
|
CREATE TABLE chronicle_clients (
`id` BIGINT UNSIGNED PRIMARY KEY AUTO_INCREMENT,
`publicid` VARCHAR(128) NOT NULL,
`publickey` TEXT NOT NULL,
`isAdmin` BOOLEAN NOT NULL DEFAULT FALSE,
`comment` TEXT,
`created` DATETIME DEFAULT CURRENT_TIMESTAMP,
`modified` DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE NOW()
);
CREATE INDEX chronicle_clients_clientid_idx ON chronicle_clients(`publicid`);
CREATE TABLE chronicle_chain (
`id` BIGINT UNSIGNED PRIMARY KEY AUTO_INCREMENT,
`data` TEXT NOT NULL,
`prevhash` VARCHAR(128) NULL,
`currhash` VARCHAR(128) NOT NULL,
`hashstate` TEXT NOT NULL,
`summaryhash` VARCHAR(128) NOT NULL,
`publickey` TEXT NOT NULL,
`signature` TEXT NOT NULL,
`created` DATETIME DEFAULT CURRENT_TIMESTAMP,
INDEX(`prevhash`),
INDEX(`currhash`),
INDEX(`summaryhash`),
FOREIGN KEY (`prevhash`) REFERENCES chronicle_chain(`currhash`) ON DELETE RESTRICT ON UPDATE RESTRICT,
UNIQUE(`prevhash`),
UNIQUE(`currhash`)
); |
drop table if exists legal_person;
create table legal_person
(
id_customers numeric,
cnpj varchar(18),
contact varchar(50)
);
insert into legal_person(id_customers,cnpj,contact)
values
(4,'85883842000191','99767-0562'),
(5,'47773848000117','99100-8965');
--search
select customers.name from customers
join legal_person on legal_person.id_customers=customers.id
|
INSERT INTO role (rolename,role_desc) VALUES ('ADMIN', 'Administrator Role');
INSERT INTO users (username,name,password,role_id) VALUES ('ashish', 'Ashish Mondal', 'ashish',1);
INSERT INTO users (username,name,password) VALUES ('kumar', 'Ashish Kumar Mondal', 'ashish');
INSERT INTO users (username,name,password) VALUES ('mondal', 'Ashish Kumar Mondal', 'ashish');
INSERT INTO environment_master (env_name,env_desc) VALUES ('DEV', 'Development');
INSERT INTO module (module_name,description) VALUES ('iDesk', 'Desktop');
INSERT INTO module_env (module_id,env_id) VALUES (1, 1);
|
-- --------------------------------------------------------
-- Host: localhost
-- Server version: 5.6.22-log - MySQL Community Server (GPL)
-- Server OS: Win64
-- HeidiSQL Version: 9.3.0.4984
-- --------------------------------------------------------
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET NAMES utf8mb4 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
-- Dumping database structure for coopadmin
USE `coopadmin`;
-- Dumping structure for procedure coopadmin.truncateTables_coopadmin
DROP PROCEDURE IF EXISTS `truncateTables_coopadmin`;
DELIMITER //
CREATE DEFINER=`root`@`localhost` PROCEDURE `truncateTables_coopadmin`()
BEGIN
DECLARE n INT DEFAULT 0;
DECLARE i INT DEFAULT 0;
DECLARE q VARCHAR(2000);
DROP TEMPORARY TABLE IF EXISTS tempTbl;
CREATE TEMPORARY TABLE IF NOT EXISTS tempTbl (
`query` VARCHAR(50)
);
INSERT INTO tempTbl SELECT CONCAT('truncate table ',table_name,';')
FROM INFORMATION_SCHEMA.TABLES
WHERE TABLE_SCHEMA = 'coopadmin'
AND TABLE_TYPE = 'BASE TABLE';
SELECT COUNT(*) FROM tempTbl INTO n;
SET i=0;
SET FOREIGN_KEY_CHECKS=0;
WHILE i<n DO
SELECT query into @q FROM tempTbl LIMIT i,1;
PREPARE stmt3 FROM @q;
EXECUTE stmt3;
DEALLOCATE PREPARE stmt3;
SET i = i + 1;
END WHILE;
SET FOREIGN_KEY_CHECKS=1;
END//
DELIMITER ;
/*!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 */;
|
SET FOREIGN_KEY_CHECKS=0;
drop table if exists oauth_client_details;
drop table if exists oauth_access_token;
drop table if exists oauth_refresh_token;
drop table if exists oauth_code;
create table oauth_client_details (
client_id VARCHAR(50) PRIMARY KEY,
resource_ids VARCHAR(256),
client_secret VARCHAR(256),
scope VARCHAR(256),
`access_token_validity` int(11) DEFAULT NULL,
`refresh_token_validity` int(11) DEFAULT NULL,
`additional_information` varchar(4096) DEFAULT NULL,
`autoapprove` varchar(255) DEFAULT NULL,
authorized_grant_types VARCHAR(256),
web_server_redirect_uri VARCHAR(256),
authorities VARCHAR(256)
);
create table oauth_access_token (
token_id VARCHAR(256),
token blob,
authentication_id VARCHAR(256),
authentication blob,
refresh_token VARCHAR(256)
);
create table oauth_refresh_token (
token_id VARCHAR(256),
token blob,
authentication blob
);
create table oauth_code (
code VARCHAR(256),
authentication blob
);
INSERT INTO `oauth_client_details` (`client_id`, `resource_ids`, `client_secret`, `scope`, `access_token_validity`, `refresh_token_validity`, `additional_information`, `autoapprove`, `authorized_grant_types`, `web_server_redirect_uri`, `authorities`) VALUES
('dataagg', 'security', 'secret', 'account_role', 3600, 3600, '{"scopRangeBy":"role"}', NULL, 'password', NULL, 'ROLE_CLIENT');
|
create table product_nav_data_import (
product_id int not null,
UnitPrice double null,
UnitPricePerSalesUOM double null,
UnitPricePerSalesUOMVAT double null,
UnitCost double null,
updated_at timestamp default '2019-01-01 01:00:00' not null,
created_at timestamp default CURRENT_TIMESTAMP not null,
constraint product_nav_data_import_product_id_fk
foreign key (product_id) references product (id)
on delete cascade
);
ALTER TABLE product ADD last_nav_sync_date TIMESTAMP default '2019-01-01 00:00' NULL; |
-- store
-- creates a trigger that decreases
CREATE TRIGGER orderdata
BEFORE INSERT ON orders
FOR EACH ROW UPDATE items SET quantity = quantity - NEW.number WHERE name = NEW.item_name; |
select
s.severite_name as "Severidade",
r.rule_set as "Nome da regra",
sum(fpv.quantiy_Violation) as "Quantidade"
from
F_Project_Violation fpv,
D_Release re,
D_Severite s,
D_Rules r
where
fpv.D_Release_idRelease = re.idRelease
and fpv.D_Class_Violation_idSeverite = s.idSeverite
and fpv.D_Class_Violation_idRules = r.idRules
and re.release_name = "912"
group by
s.severite_name,
r.rule_name |
CREATE PROCEDURE [Person].[InsertAddress] (
@addressLine1 NVARCHAR(60),
@addressLine2 NVARCHAR(60),
@city NVARCHAR(30),
@stateProvinceID INT,
@postalCode NVARCHAR(15)
)
AS
BEGIN
SET NOCOUNT ON;
INSERT INTO [Person].[Address] (
[AddressLine1],
[AddressLine2],
[City],
[StateProvinceID],
[PostalCode]
)
VALUES (
@addressLine1,
@addressLine2,
@city,
@stateProvinceID,
@postalCode
);
SELECT ModifiedDate,
rowguid,
AddressID
FROM Person.[Address]
WHERE AddressID = SCOPE_IDENTITY()
AND @@ROWCOUNT = 1;
END |
--------------------------------------------------------------------------------------------------------------------------------------------------------------
CREATE PROCedure sprc_sales_by_ItemCategory_Beat_Items(@CATERY int,
@Beatid int,
@Customerid nvarchar(15),
@FROMDATE DATETIME,
@TODATE DATETIME)
As
create table #temp (Product_Code nvarchar(15), ProductName nvarchar(255) , TotalValue decimal(18,2))
insert into #temp
Select Items.Product_Code,"ProductName" = Items.ProductName,
"TotalValue" = isnull(sum(invoicedetail.Amount) ,0)
from invoicedetail,InvoiceAbstract,ItemCategories,Items , customer
where invoiceAbstract.InvoiceID=InvoiceDetail.InvoiceID
and invoiceabstract.beatid = @beatid
and customer.customerid = invoiceabstract.customerid
and invoicedate between @FROMDATE and @TODATE
And InvoiceAbstract.Status&128=0 and InvoiceAbstract.InvoiceType in (1,3)
And ItemCategories.CategoryID = @CATERY
and items.CategoryID=Itemcategories.CategoryID
and items.product_Code=invoiceDetail.product_Code and
InvoiceAbstract.CustomerID like @CustomerID
Group by Items.Product_Code,Items.ProductName
insert into #temp
Select Items.Product_Code,"Product Name" = Items.ProductName,
"TotalValue" = (0 - isnull(sum(InvoiceDetail.Amount),0))
from invoicedetail,InvoiceAbstract,ItemCategories,Items , customer
where invoiceAbstract.InvoiceID=InvoiceDetail.InvoiceID
and invoiceabstract.beatid = @beatid
and customer.customerid = invoiceabstract.customerid
and invoicedate between @FROMDATE and @TODATE
And InvoiceAbstract.Status&128=0 and InvoiceAbstract.InvoiceType = 4
And ItemCategories.CategoryID = @CATERY
and items.CategoryID=Itemcategories.CategoryID
and items.product_Code=invoiceDetail.product_Code and
InvoiceAbstract.CustomerID like @CustomerID
Group by Items.Product_Code,Items.ProductName
select "Product_Code" = #temp.Product_Code ,
"ProductName" = #temp.ProductName,
"TotalValue" = isnull(sum(#temp.TotalValue),0)
from #temp
group by #temp.Product_Code, #temp.ProductName
drop table #temp
|
CREATE TABLE `football_club` (
`footballClubId` int(11) NOT NULL AUTO_INCREMENT,
`footballClubName` varchar(50) NOT NULL,
`footballClubCityId` int(11) NOT NULL,
`footballClubLeaguaId` int(11) NOT NULL,
`footballClubLogo` mediumblob,
PRIMARY KEY (`footballClubId`),
KEY `FK_FOOTBALL_CLUB_footballClubCityId` (`footballClubCityId`),
KEY `FK_FOOTBALL_CLUB_footballClubLeaguaId` (`footballClubLeaguaId`),
CONSTRAINT `FK_FOOTBALL_CLUB_footballClubCityId` FOREIGN KEY (`footballClubCityId`) REFERENCES `city` (`cityId`),
CONSTRAINT `FK_FOOTBALL_CLUB_footballClubLeaguaId` FOREIGN KEY (`footballClubLeaguaId`) REFERENCES `league` (`leagueId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
use rpay;
select * from Admin;
select * from Users;
select * from Operator;
select * from Plans;
select * from Transactions; |
DELETE FROM DEPARTMENT;
DELETE FROM TASK_STATUS;
DELETE FROM PROJECT;
DELETE FROM STAGE;
DELETE FROM DEVELOPER;
DELETE FROM TASK;
DELETE FROM SKILL;
DELETE FROM DEVELOPER_TASK;
DELETE FROM DEVELOPER_SKILL;
DELETE FROM TEAM;
DELETE FROM TEAM_PROJECT;
DELETE FROM TEAM_DEVELOPER;
DELETE FROM PROJECT_DEVELOPER_ROLE;
DELETE FROM ROLE;
DELETE FROM DATA_TABLE;
|
-- 3. Selecione as cidades que contenham no ‘apar’ em qualquer parte do nome
SELECT
cidade
FROM cidades
WHERE cidade LIKE '%apar%'; |
/*
Navicat Premium Data Transfer
Source Server : xiaopu_dev
Source Server Type : MySQL
Source Server Version : 50715
Source Host : 10.25.18.254
Source Database : xiaopu
Target Server Type : MySQL
Target Server Version : 50715
File Encoding : utf-8
Date: 12/12/2016 13:13:47 PM
*/
SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;
-- ----------------------------
-- Table structure for `anchor_position`
-- ----------------------------
DROP TABLE IF EXISTS `anchor_position`;
CREATE TABLE `anchor_position` (
`anchor_id` int(11) NOT NULL,
`position_id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- ----------------------------
-- Table structure for `channels`
-- ----------------------------
DROP TABLE IF EXISTS `channels`;
CREATE TABLE `channels` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(100) DEFAULT NULL,
`slogan` varchar(255) DEFAULT NULL,
`desc` varchar(1000) DEFAULT NULL,
`poster_img` varchar(50) DEFAULT NULL,
`sort` int(11) DEFAULT NULL COMMENT '排序',
`more` int(1) DEFAULT '0' COMMENT '是否显示更多,0:不显示,1:显示不服来战,2:其他',
`type` int(1) DEFAULT '1' COMMENT 'type = 1 :图文父频道 type= 2 :音频父频道',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- ----------------------------
-- Table structure for `channel_anchor`
-- ----------------------------
DROP TABLE IF EXISTS `channel_anchor`;
CREATE TABLE `channel_anchor` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`channel_id` int(11) NOT NULL COMMENT '频道ID',
`anchor_id` int(11) NOT NULL COMMENT '主播ID',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- ----------------------------
-- Table structure for `channel_associated`
-- ----------------------------
DROP TABLE IF EXISTS `channel_associated`;
CREATE TABLE `channel_associated` (
`p_channel_id` int(11) NOT NULL,
`channel_id` int(11) NOT NULL,
`sort` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- ----------------------------
-- Table structure for `event_lottery`
-- ----------------------------
DROP TABLE IF EXISTS `event_lottery`;
CREATE TABLE `event_lottery` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`event_id` int(11) NOT NULL,
`event_name` varchar(255) DEFAULT NULL,
`stauts` tinyint(1) DEFAULT '0' COMMENT '抽奖状态,0:未抽奖,1:抽奖结束',
`create_time` datetime DEFAULT CURRENT_TIMESTAMP,
`update_time` datetime DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8mb4;
-- ----------------------------
-- Table structure for `event_lottery_user`
-- ----------------------------
DROP TABLE IF EXISTS `event_lottery_user`;
CREATE TABLE `event_lottery_user` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) NOT NULL,
`lottery_id` int(11) NOT NULL,
`event_id` int(11) NOT NULL,
`event_name` varchar(255) DEFAULT NULL,
`round` int(11) DEFAULT NULL,
`create_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '抽奖轮次。',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- ----------------------------
-- Table structure for `event_user_msgs`
-- ----------------------------
DROP TABLE IF EXISTS `event_user_msgs`;
CREATE TABLE `event_user_msgs` (
`id` int(11) NOT NULL,
`user_id` int(11) NOT NULL,
`event_id` int(11) NOT NULL,
`event_name` varchar(255) DEFAULT NULL,
`content` varchar(400) NOT NULL,
`type` tinyint(1) NOT NULL DEFAULT '1' COMMENT '消息类型,1:文字,2:图片',
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4mb4;
-- ----------------------------
-- Table structure for `notifys`
-- ----------------------------
DROP TABLE IF EXISTS `notifys`;
CREATE TABLE `notifys` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`content` varchar(1000) DEFAULT NULL,
`type` varchar(255) DEFAULT NULL COMMENT '消息的类型,1: 公告 Announce,2: 提醒 Remind,3:信息 Message',
`target_id` int(11) DEFAULT NULL COMMENT '目标ID',
`target_type` varchar(255) DEFAULT NULL COMMENT '目标类型;1:用户,2:活动,3:社团,4:图文,5:奖品',
`action` int(11) DEFAULT NULL COMMENT '提醒信息的动作类型',
`sender` int(11) DEFAULT NULL COMMENT '发送者ID',
`create_time` datetime DEFAULT CURRENT_TIMESTAMP,
`parameter` varchar(255) DEFAULT NULL COMMENT '消息参数,JSON格式',
`further` varchar(4000) DEFAULT NULL COMMENT '扩展字段 JSON格式',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- ----------------------------
-- Table structure for `positions`
-- ----------------------------
DROP TABLE IF EXISTS `positions`;
CREATE TABLE `positions` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`position_name` varchar(255) DEFAULT NULL,
`type` int(11) DEFAULT '1' COMMENT '类型,暂时不用',
`create_time` datetime DEFAULT CURRENT_TIMESTAMP,
`is_official` tinyint(1) DEFAULT '1' COMMENT '是否官方职位,0:非官方,1:官方',
`available` tinyint(1) DEFAULT '1' COMMENT '是否启用;0:未启用,1:启用',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- ----------------------------
-- Table structure for `recommend`
-- ----------------------------
DROP TABLE IF EXISTS `recommend`;
CREATE TABLE `recommend` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`pid` int(11) NOT NULL,
`sort` int(5) NOT NULL COMMENT '越大 推荐越靠前',
`recommend_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`parent_type` int(5) NOT NULL DEFAULT '1' COMMENT '1:频道热门推荐 2:首页图文推荐 3:首页奖品推荐4:音频贴推荐 5:音频置顶',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- ----------------------------
-- Table structure for `tickets`
-- ----------------------------
DROP TABLE IF EXISTS `tickets`;
CREATE TABLE `tickets` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`ticket_name` varchar(50) DEFAULT NULL,
`description` varchar(255) DEFAULT NULL,
`business_id` int(11) NOT NULL DEFAULT '1' COMMENT '对应类型的ID,1:活动门票(business_id对应为event_id);其他待定',
`business_type` tinyint(1) NOT NULL DEFAULT '1' COMMENT '门票类型',
`ticket_cnt` int(11) DEFAULT NULL COMMENT '门票数量',
`remaining_cnt` int(11) DEFAULT NULL COMMENT '剩余数量',
`create_id` int(11) DEFAULT NULL,
`create_time` datetime DEFAULT CURRENT_TIMESTAMP,
`expire_time` datetime DEFAULT NULL COMMENT '失效时间',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- ----------------------------
-- Table structure for `topic_play`
-- ----------------------------
DROP TABLE IF EXISTS `topic_play`;
CREATE TABLE `topic_play` (
`topic_id` int(11) NOT NULL,
`play_cnt` int(11) DEFAULT '0' COMMENT '播放数量',
`update_time` datetime DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`topic_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- ----------------------------
-- Table structure for `user_channel_subscribe`
-- ----------------------------
DROP TABLE IF EXISTS `user_channel_subscribe`;
CREATE TABLE `user_channel_subscribe` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) NOT NULL,
`channel_id` int(11) NOT NULL,
`subscribe_time` datetime DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- ----------------------------
-- Table structure for `user_fans`
-- ----------------------------
DROP TABLE IF EXISTS `user_fans`;
CREATE TABLE `user_fans` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) NOT NULL COMMENT '用户ID',
`fans_id` int(11) NOT NULL COMMENT '粉丝ID',
`is_focus` varchar(255) DEFAULT '0' COMMENT '是否相互关注,0:未相互关注,1:相互关注',
`foncus_time` datetime DEFAULT CURRENT_TIMESTAMP,
`update_time` datetime DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`,`user_id`,`fans_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- ----------------------------
-- Table structure for `user_focus_anchor`
-- ----------------------------
DROP TABLE IF EXISTS `user_focus_anchor`;
CREATE TABLE `user_focus_anchor` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) NOT NULL,
`focus_user_id` int(11) NOT NULL,
`focus_time` datetime DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- ----------------------------
-- Table structure for `user_notify`
-- ----------------------------
DROP TABLE IF EXISTS `user_notify`;
CREATE TABLE `user_notify` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`is_read` tinyint(255) DEFAULT '0' COMMENT '是否阅读;0:未读,1:已读',
`user_id` int(11) NOT NULL COMMENT '用户消息所属者',
`notify_id` int(11) NOT NULL,
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`is_delete` tinyint(255) DEFAULT '0' COMMENT '是否删除,0:未删除:1:删除',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- ----------------------------
-- Table structure for `user_ticket`
-- ----------------------------
DROP TABLE IF EXISTS `user_ticket`;
CREATE TABLE `user_ticket` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) NOT NULL,
`ticket_id` int(11) NOT NULL,
`qrcode` varchar(255) DEFAULT NULL,
`business_id` int(11) NOT NULL COMMENT '业务类型,根据type判断所属哪个业务。',
`business_type` tinyint(1) DEFAULT '1' COMMENT '对应类型的ID,1:活动门票(business_id对应为event_id);其他待定',
`create_time` datetime DEFAULT CURRENT_TIMESTAMP,
`update_time` datetime DEFAULT CURRENT_TIMESTAMP,
`status` tinyint(1) DEFAULT '0' COMMENT '扫码状态,0:未扫码;1:已扫码; 2:已失效',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
insert into `roles` ( `id`, `role_key`, `role_name`, `create_by`, `create_time`, `update_by`, `update_time`, `available`) values ( '4', 'anchor', '主播', '1', '2016-12-07 10:52:20', '1', '2016-12-07 10:52:25', '1');
SET FOREIGN_KEY_CHECKS = 1;
|
----------------------------------------------------
-- Hibernate sequence reset
DROP SEQUENCE IF EXISTS hibernate_sequence;
-- Initially, we're going with a universal id
CREATE SEQUENCE hibernate_sequence START WITH 1000000;
-----------------------------------------------------------
-- Gemini laser night
DROP TABLE IF EXISTS lch_laser_nights CASCADE;
CREATE TABLE lch_laser_nights (
id integer,
site text,
starts timestamp with time zone,
ends timestamp with time zone,
latestPrmSent timestamp with time zone,
latestPamReceived timestamp with time zone,
pamradecreporttime timestamp with time zone,
pamazelreporttime timestamp with time zone
);
-- indices
ALTER TABLE lch_laser_nights ADD PRIMARY KEY (id);
CREATE INDEX lch_laser_nights_site ON lch_laser_nights(site);
CREATE INDEX lch_laser_nights_starts ON lch_laser_nights(starts);
CREATE INDEX lch_laser_nights_ends ON lch_laser_nights(ends);
-- constraints
-----------------------------------------------------------
-- Gemini lch events
DROP TABLE IF EXISTS lch_events CASCADE;
CREATE TABLE lch_events (
id integer,
night_id integer,
event_time timestamp with time zone,
message text
);
-- indices
ALTER TABLE lch_events ADD PRIMARY KEY (id);
CREATE INDEX lch_events_time ON lch_events(event_time);
-- constraints
ALTER TABLE lch_events ADD FOREIGN KEY (night_id) REFERENCES lch_laser_nights(id) ON DELETE CASCADE DEFERRABLE;
-----------------------------------------------------------
-- Files
DROP TABLE IF EXISTS lch_files CASCADE;
CREATE TABLE lch_files (
id integer,
event_id integer,
type text,
name text,
content text
);
-- indices
ALTER TABLE lch_files ADD PRIMARY KEY (id);
-- constraints
ALTER TABLE lch_files ADD FOREIGN KEY (event_id) REFERENCES lch_events(id) ON DELETE CASCADE DEFERRABLE;
-----------------------------------------------------------
-- Observations
DROP TABLE IF EXISTS lch_observations CASCADE;
CREATE TABLE lch_observations (
id integer,
type text,
night_id integer,
observation_id text
);
-- indices
ALTER TABLE lch_observations ADD PRIMARY KEY (id);
-- constraints
ALTER TABLE lch_observations ADD FOREIGN KEY (night_id) REFERENCES lch_laser_nights(id) ON DELETE CASCADE DEFERRABLE;
-----------------------------------------------------------
-- Gemini laser target (corresponds to an LCH target, may cover multiple observation targets)
DROP TABLE IF EXISTS lch_laser_targets CASCADE;
CREATE TABLE lch_laser_targets (
id integer,
type text,
night_id integer,
transmitted boolean,
degrees1 double precision,
degrees2 double precision,
risesAboveHorizon timestamp with time zone,
risesAboveLimit timestamp with time zone,
setsBelowLimit timestamp with time zone,
setsBelowHorizon timestamp with time zone
);
-- indices
ALTER TABLE lch_laser_targets ADD PRIMARY KEY (id);
CREATE INDEX lch_laser_targets_type_index ON lch_laser_targets(type);
CREATE INDEX lch_laser_targets_degrees1_index ON lch_laser_targets(degrees1, degrees2);
-- constraints
ALTER TABLE lch_laser_targets ADD FOREIGN KEY (night_id) REFERENCES lch_laser_nights(id) ON DELETE CASCADE DEFERRABLE;
----------------------------------------------------
-- Gemini observation target visibilities
DROP TABLE IF EXISTS lch_windows CASCADE;
CREATE TABLE lch_windows (
id integer,
target_id integer,
starts timestamp with time zone,
ends timestamp with time zone
);
-- indices
ALTER TABLE lch_windows ADD PRIMARY KEY (id);
CREATE INDEX lch_window_starts_index ON lch_windows(starts);
CREATE INDEX lch_window_ends_index ON lch_windows(ends);
-- constraints
ALTER TABLE lch_windows ADD FOREIGN KEY (target_id) REFERENCES lch_laser_targets(id) ON DELETE CASCADE DEFERRABLE;
-----------------------------------------------------------
-- Observation targets
DROP TABLE IF EXISTS lch_observation_targets CASCADE;
CREATE TABLE lch_observation_targets (
id integer,
type text,
state text,
observation_id integer,
target_id integer,
name text,
targettype text,
horizons_id integer,
degrees1 double precision,
degrees2 double precision
);
-- indices
ALTER TABLE lch_observation_targets ADD PRIMARY KEY (id);
-- constraints
ALTER TABLE lch_observation_targets ADD FOREIGN KEY (observation_id) REFERENCES lch_observations(id) ON DELETE CASCADE DEFERRABLE;
ALTER TABLE lch_observation_targets ADD FOREIGN KEY (target_id) REFERENCES lch_laser_targets(id) ON DELETE CASCADE DEFERRABLE;
----------------------------------------------------
-- Manual closures.
DROP TABLE IF EXISTS lch_closures CASCADE;
CREATE TABLE lch_closures (
id integer,
night_id integer,
starts timestamp with time zone,
ends timestamp with time zone
);
-- indices
ALTER TABLE lch_closures ADD PRIMARY KEY (id);
CREATE INDEX lch_closure_starts_index ON lch_closures(starts);
CREATE INDEX lch_closure_ends_index ON lch_closures(ends);
-- constraints
ALTER TABLE lch_closures ADD FOREIGN KEY (night_id) REFERENCES lch_laser_nights(id) ON DELETE CASCADE DEFERRABLE;
-----------------------------------------------------------
-- Additional engineering targets (AltAz targets)
DROP TABLE IF EXISTS lch_engineering_targets CASCADE;
CREATE TABLE lch_engineering_targets (
id integer,
site text,
active boolean,
altitude double precision,
azimuth double precision
);
-- indices
ALTER TABLE lch_engineering_targets ADD PRIMARY KEY (id);
----------------------------------------------------
-- Holidays we need to take into account.
DROP TABLE IF EXISTS lch_holidays CASCADE;
CREATE TABLE lch_holidays (
id integer,
name text,
actual date,
observed date
);
-- indices
ALTER TABLE lch_holidays ADD PRIMARY KEY (id);
CREATE INDEX lch_holidays_index ON lch_holidays(observed);
-----------------------------------------------------------
-- LCH configuration entries
DROP TABLE IF EXISTS lch_configuration_entries CASCADE;
CREATE TABLE lch_configuration_entries (
id integer,
type text,
isList bool,
canBeEmpty bool,
minValue double precision,
maxValue double precision,
regExp text,
groupName text,
paramName text,
label text,
description text
);
-- indices
ALTER TABLE lch_configuration_entries ADD PRIMARY KEY (id);
CREATE INDEX lch_configuration_entries_group_index ON lch_configuration_entries(groupName);
CREATE UNIQUE INDEX lch_configuration_entries_name_index ON lch_configuration_entries(paramName);
-----------------------------------------------------------
-- LCH configuration entries
DROP TABLE IF EXISTS lch_configuration_values CASCADE;
CREATE TABLE lch_configuration_values (
id integer,
entry_id integer,
site text,
paramValue text
);
-- indices
ALTER TABLE lch_configuration_values ADD PRIMARY KEY (id);
-- constraints
ALTER TABLE lch_configuration_values ADD FOREIGN KEY (entry_id) REFERENCES lch_configuration_entries(id) ON DELETE CASCADE DEFERRABLE;
-----------------------------------------------------------
-----------------------------------------------------------
-- load with default configuration data
COPY lch_configuration_entries (id, type, isList, canBeEmpty, minValue, maxValue, regExp, groupName, paramName, label, description) from stdin with delimiter ',';
100,DOUBLE,false,false,1,1,x,Visibility,VISIBILITY_MIN_ALTITUDE,Minimal Altitude,Minimal altitude in degrees.
101,DOUBLE,false,false,1,1,x,Sidereal,NEARBY_GROUP_MAX_DISTANCE,Maximal Distance,Maximal distance between observations represented by a single laser target in degrees.
102,INTEGER,false,false,60,3600,x,Horizons,HORIZONS_STEP_WIDTH,Step Width,Step width for horizons service in arcseconds (must be between 60 and 3600).
103,INTEGER,false,false,10,1,x,Emails,NEW_MAIL_POLL_INTERVAL,Poll Intervall Duration,Duration between checks for incoming emails in seconds (bigger than 10).
104,TEXT,false,false,1,1,x,PRM,PRM_HEADER_TEMPLATE,Header Template,Template for PRM file header.
105,TEXT,false,false,1,1,x,PRM,PRM_RADEC_TARGET_TEMPLATE,RaDec Target Template,Template for PRM file ra/dec targets. Will be repeated for each target.
106,TEXT,false,false,1,1,x,PRM,PRM_AZEL_TARGET_TEMPLATE,AzEl Target Template,Template for PRM file az/el targets. Will be repeated for each target.
107,TEXT,false,false,1,1,x,PRM,PRM_FILENAME_TEMPLATE,File Name Template,Template for PRM file name.
108,TEXT,false,false,1,1,x,PRM,PRM_TARGET_SEPARATOR_TEMPLATE,Target Separation Template,Template used between targets. Will be repeated after each target except for last one.
109,TEXT,false,false,1,1,x,PRM,PRM_FOOTER_TEMPLATE,Footer Template,Template for footer of PRM file. Will be used after last target.
110,STRING,false,false,1,1,x,Emails,EMAILS_LCH_TO_ADDRESSES,LCH Email,Email address to be used for emails going to LCH.
111,STRING,true,false,1,1,x,Emails,EMAILS_INTERNAL_TO_ADDRESSES,Internal Email,Internal email address to be used for error messages and informational emails.
112,STRING,false,false,1,1,x,Emails,EMAILS_ACCOUNT_USER,LTTS Email User,User name for LTTS email account.
113,STRING,false,false,1,1,x,Emails,EMAILS_ACCOUNT_PASSWORD,LTTS Email Password,Password for LTTS email account.
114,STRING,false,false,1,1,x,Emails,EMAILS_FROM_ADDRESS,From Address,From address to be used for all emails sent by LTTS.
115,PERIOD,true,false,1,1,x,Scheduler,SCHEDULER_PROCESS_NIGHTS_SCHEDULE,Process nights,Daily schedule used to update and process nights. This includes creating and sending PRM files and generating warnings for unsent targets and overdue PAM files.
116,STRING,true,false,1,1,x,Emails,EMAILS_LCH_CC_ADDRESSES,LCH Email CCs,Email cc addresses to be used for emails going to LCH.
117,STRING,true,false,1,1,x,Emails,EMAILS_LCH_BCC_ADDRESSES,LCH EmailBCCs,Email bcc addresses to be used for emails going to LCH.
118,STRING,true,false,1,1,x,Emails,EMAILS_INTERNAL_CC_ADDRESSES,Internal Email CC,Internal email bcc addresses to be used for error messages and informational emails.
119,STRING,true,false,1,1,x,Emails,EMAILS_INTERNAL_BCC_ADDRESSES,Internal Email BCC,Internal email bcc addresses to be used for error messages and informational emails.
120,STRING,false,false,1,1,x,Emails,EMAILS_PRM_EMAIL_SUBJECT_TEMPLATE,PRM Email Subject,Template for the subject of emails used to send PRM files to LCH.
121,TEXT,false,false,1,1,x,Emails,EMAILS_PRM_EMAIL_BODY_TEMPLATE,PRM Email Body,Template for the body of emails used to send PRM files to LCH.
122,STRING,false,false,1,1,x,Emails,EMAILS_PRM_ADDENDUM_EMAIL_SUBJECT_TEMPLATE,PRM Addendum Email Subject,Template for the subject of emails used to send addendum PRM files to LCH.
123,TEXT,false,false,1,1,x,Emails,EMAILS_PRM_ADDENDUM_EMAIL_BODY_TEMPLATE,PRM Addendum Email Body,Template for the body of emails used to send addendum PRM files to LCH.
124,STRING,false,false,1,1,x,Emails,EMAILS_PAM_MISSING_EMAIL_SUBJECT_TEMPLATE,Missing PAM Email Subject,Template for the subject of emails used to warn when PAM file for a night is late.
125,TEXT,false,false,1,1,x,Emails,EMAILS_PAM_MISSING_EMAIL_BODY_TEMPLATE,Missing PAM Email Body,Template for the body of emails used to warn when PAM file for a night is late.
126,INTEGER,false,false,1,1,x,PRM,PRM_MAX_NUMBER_OF_TARGETS,Maximum targets,The maximum number of targets per File.
128,INTEGER,false,false,1,1,x,Visibility,VISIBILITY_MIN_DURATION,Minimal Duration,Minimal duration in minutes a target has to be above the minimal altitude to be considered.
129,SELECTION,true,false,1,1,Twilight,Visibility,VISIBILITY_TWILIGHT,Twilight,Name of twilight that is considered as start or end for visibility of targets.
130,STRING,false,false,1,1,x,Miscellaneous,HELP_URL,Help URL,URL of web page providing help for LTTS.
131,STRING,false,false,1,1,x,Miscellaneous,ODB_URL,ODB URL,URL of server hosting the ODB.
132,STRING,true,true,1,1,x,Miscellaneous,SCIENCE_QUERY,ODB Science Query,Query for getting the science targets from the ODB.
133,STRING,true,true,1,1,x,Miscellaneous,ENGINEERING_QUERY,ODB Engineering Query,Query for getting the engineering targets from the ODB.
134,INTEGER,false,true,1,1,x,Miscellaneous,TIME_ZONE_OFFSET,Time Zone Offset,Number of hours local time is offset to GMT/UTC time; if empty the system time of the server is used.
135,STRING,false,false,1,1,x,Emails,EMAILS_NEW_TARGETS_EMAIL_SUBJECT_TEMPLATE,New Laser Targets Email Subject,Template for the subject of emails used to warn when there are unsent laser targets.
136,TEXT,false,false,1,1,x,Emails,EMAILS_NEW_TARGETS_EMAIL_BODY_TEMPLATE,New Laser Targets Email Body,Template for the body of emails used to warn when there are unsent laser targets.
137,INTEGER,false,false,1,1,x,Emails,EMAILS_PRM_SEND_WORK_DAYS_AHEAD,Send Limit for PRM Files,Number of work days before start of laser night PRM files are sent to LCH.
138,STRING,false,false,1,1,x,Miscellaneous,LTCS_URL,LTCS URL,URL of server hosting the LTCS.
139,INTEGER,false,false,0,1,x,LIS,LIS_BUFFER_BEFORE_SHUTTER_WINDOW,Safety buffer before,Seconds the laser should be shuttered before the actual shuttering window.
140,INTEGER,false,false,0,1,x,LIS,LIS_BUFFER_AFTER_SHUTTER_WINDOW,Safety buffer after,Seconds the laser should be kept shuttered after the actual shuttering window.
141,STRING,false,false,1,1,x,Emails,EMAILS_REPLY_TO_ADDRESS,Reply-To Address,Reply-To address set in outgoing emails.
142,STRING,false,false,1,1,x,Miscellaneous,EPICS_ADDRESS_LIST,EPICS Address List,A list of IP addresses for communicating with EPICS.
143,STRING,true,true,1,1,x,Miscellaneous,TEST_SCIENCE_QUERY,ODB Test Science Query,Query for getting the test science targets from the ODB.
144,DOUBLE,false,false,1,3600,x,LIS,ERROR_CONE_ANGLE,Error Cone Size,Diameter of error cone in arcseconds.
\.
-- (NOTE: every parameter must exist for each site!)
COPY lch_configuration_values (id, entry_id, site, paramValue) from stdin with delimiter ',';
500,100,NORTH,35.0
501,100,SOUTH,35.0
502,101,NORTH,0.035
503,101,SOUTH,0.035
504,102,NORTH,120
505,102,SOUTH,120
506,103,NORTH,60
507,103,SOUTH,60
508,107,NORTH,PRM_Gemini North_589nm_14W_884nrad_76MHz_${{TARGET-TYPE}}_${{NIGHT-START_UTC_yyyyMMdd}}${{FILE-NUMBER}}.txt
509,107,SOUTH,PRM_Gemini South_589nm_50W_884nrad_76MHz_${{TARGET-TYPE}}_${{NIGHT-START_UTC_yyyyMMdd}}${{FILE-NUMBER}}.txt
510,108,NORTH,\n
511,108,SOUTH,\n
512,109,NORTH,END OF FILE
513,109,SOUTH,END OF FILE
514,110,NORTH,fnussberger@gemini.edu
515,110,SOUTH,fnussberger@gemini.edu
516,111,NORTH,fnussberger@gemini.edu
517,111,SOUTH,fnussberger@gemini.edu
518,112,NORTH,gn-lch
519,112,SOUTH,gs-lch
520,113,NORTH,LaserGuide*
521,113,SOUTH,LaserGuide*
522,114,NORTH,fnussberger@gemini.edu
523,114,SOUTH,fnussberger@gemini.edu
524,115,NORTH,06:00:00
525,115,SOUTH,06:00:00
526,116,NORTH,
527,116,SOUTH,
528,117,NORTH,
529,117,SOUTH,
530,118,NORTH,
531,118,SOUTH,
532,119,NORTH,
533,119,SOUTH,
534,120,NORTH,Gemini North Observatory Predictive Avoidance Request for the Night ${{NIGHT-START_UTC_yyyy-MM-dd (DDD) z}}
535,120,SOUTH,Gemini South Observatory Predictive Avoidance Request for the Night ${{NIGHT-START_UTC_yyyy-MM-dd (DDD) z}}
536,122,NORTH,Addendum: Gemini North Observatory Predictive Avoidance Request for the Night ${{NIGHT-START_UTC_yyyy-MM-dd (DDD) z}}
537,122,SOUTH,Addendum: Gemini South Observatory Predictive Avoidance Request for the Night ${{NIGHT-START_UTC_yyyy-MM-dd (DDD) z}}
538,124,NORTH,LTTS: WARNING: PAM file for night ${{NIGHT-START_UTC_yyyy-MM-dd (DDD) z}} is missing!
539,124,SOUTH,LTTS: WARNING: PAM file for night ${{NIGHT-START_UTC_yyyy-MM-dd (DDD) z}} is missing!
540,126,NORTH,150
541,126,SOUTH,150
544,128,NORTH,30
545,128,SOUTH,30
546,129,NORTH,CIVIL
547,129,SOUTH,CIVIL
556,134,NORTH,
557,134,SOUTH,
548,130,NORTH,http://swg.wikis-internal.gemini.edu/index.php/LTTS
549,130,SOUTH,http://swg.wikis-internal.gemini.edu/index.php/LTTS
550,131,NORTH,http://gnodb.hi.gemini.edu:8442/odbbrowser/targets
551,131,SOUTH,http://gsodb.cl.gemini.edu:8442/odbbrowser/targets
560,135,NORTH,LTTS: Night ${{NIGHT-START_UTC_yyyy-MM-dd (DDD) z}} has unsent laser targets
561,135,SOUTH,LTTS: Night ${{NIGHT-START_UTC_yyyy-MM-dd (DDD) z}} has unsent laser targets
562,137,NORTH,4
563,137,SOUTH,4
564,138,NORTH,http://mko-ltcs/ltcs/screens/query.php
565,138,SOUTH,http://cpltcs01.cl.gemini.edu/ltcs/screens/query.php
566,139,NORTH,10
567,139,SOUTH,10
568,140,NORTH,10
569,140,SOUTH,10
570,141,NORTH,fnussberger@gemini.edu
571,141,SOUTH,fnussberger@gemini.edu
572,142,NORTH,10.2.2.255
573,142,SOUTH,172.17.2.255
574,144,NORTH,600
575,144,SOUTH,700
\.
INSERT INTO lch_configuration_values(id, entry_id, site, paramValue) VALUES (552, 132, 'NORTH', 'programSemester=${{SEMESTER_-2}}|${{SEMESTER_-1}}|${{SEMESTER}}|${{SEMESTER_1}},programActive=Yes,observationAo=Altair + LGS,observationStatus=Phase 2|For Review|In Review|For Activation|On Hold|Ready|Ongoing|Inactive,observationClass=Science|Nighttime Partner Calibration|Nighttime Program Calibration');
INSERT INTO lch_configuration_values(id, entry_id, site, paramValue) VALUES (553, 132, 'SOUTH', 'programSemester=${{SEMESTER_-2}}|${{SEMESTER_-1}}|${{SEMESTER}}|${{SEMESTER_1}},programActive=Yes,observationInstrument=GSAOI,observationStatus=Phase 2|For Review|In Review|For Activation|On Hold|Ready|Ongoing|Inactive,observationClass=Science|Nighttime Partner Calibration|Nighttime Program Calibration');
INSERT INTO lch_configuration_values(id, entry_id, site, paramValue) VALUES (554, 133, 'NORTH', 'programReference=Chad-LGS,observationStatus=Ready');
INSERT INTO lch_configuration_values(id, entry_id, site, paramValue) VALUES (555, 133, 'SOUTH', 'programReference=TO_BE_DEFINED');
INSERT INTO lch_configuration_values(id, entry_id, site, paramValue) VALUES (558, 143, 'NORTH', 'programReference=LTTS-Test-Targets');
INSERT INTO lch_configuration_values(id, entry_id, site, paramValue) VALUES (559, 143, 'SOUTH', 'programReference=LTTS-Test-Targets');
-- ===================== PAM TEMPLATES =====================
-- GN PAM HEADER AND TARGETS TEMPLATE
INSERT INTO lch_configuration_values (id, entry_id, site, paramValue) VALUES (700, 104, 'NORTH',
'Classification: Unclassified
File Name: ${{FILE-NAME}}
Message Purpose: Request for Predictive Avoidance Support
Message Date/Time (UTC): ${{NOW_UTC_yyyy MMM dd (DDD) HH:mm:ss}}
Type Windows Requested: Open
Point of Contact: Gemini System Support Associate on duty at Mauna Kea summit
(Voice) (808) 974 2650
(Fax) (808) 974 2589
(E-mail) gnlgsops@gemini.edu
Emergency Phone # at Operations Site: (808) 974 2650
Remarks: Targets for date ${{NIGHT-START_UTC_yyyy MMM dd (DDD) z}}.
MISSION INFORMATION
---------------------------
Owner/Operator: Gemini North Observatory
Mission Name/Number: Gemini North_589nm_14W_884nrad_76MHz
Target Type: Right Ascension and Declination
Location: Gemini North Observatory, Mauna Kea, Hawaii, USA
Start Date/Time (UTC): ${{NIGHT-START_UTC_yyyy MMM dd (DDD) HH:mm:ss}}
End Date/Time (UTC): ${{NIGHT-END_UTC_yyyy MMM dd (DDD) HH:mm:ss}}
Duration (HH:MM:SS): ${{NIGHT-DURATION}}
LASER INFORMATION
---------------------------
Laser: Gemini North_589nm_14W_884nrad_76MHz
SOURCE INFORMATION
------------------------------------
Method: Fixed Point
Latitude: 19.8238 degrees N
Longitude: 155.4690 degrees W
Altitude: 4.2134 km
TARGET INFORMATION
------------------------------------
');
INSERT INTO lch_configuration_values (id, entry_id, site, paramValue) VALUES (701, 105, 'NORTH',
'Method: Right Ascension and Declination
Catalog Date: J2000
Right Ascension: ${{TARGET-RA-DEGREES_%.3f}}
Declination: ${{TARGET-DEC-DEGREES_%.3f}}
');
INSERT INTO lch_configuration_values (id, entry_id, site, paramValue) VALUES (702, 106, 'NORTH',
'Method: Fixed Azimuth/Elevation
Azimuth: ${{TARGET-AZ-DEGREES_%.3f}}
Elevation: ${{TARGET-EL-DEGREES_%.3f}}
');
INSERT INTO lch_configuration_values (id, entry_id, site, paramValue) VALUES (703, 121, 'NORTH',
'Aloha
Attached please find the Predictive Avoidance Request for the night of ${{NIGHT-START_UTC_EEEE, MMM dd, yyyy (DDD) z}}.
Thank you.
');
INSERT INTO lch_configuration_values (id, entry_id, site, paramValue) VALUES (704, 123, 'NORTH',
'Aloha
Attached please find an Addendum to the Predictive Avoidance Request which was
forwarded to your office on ${{NIGHT-PRM-SENT_UTC_EEEE, MMM dd, yyyy (DDD) HH:mm z}}.
This addendum contains the original list along with the additional
targets for the night of ${{NIGHT-START_UTC_EEEE, MMM dd, yyyy (DDD) HH:mm z}}.
Should you have any questions, please contact our office for resolution.
Thanks.
');
INSERT INTO lch_configuration_values (id, entry_id, site, paramValue) VALUES (705, 125, 'NORTH',
'No clearance windows for the laser night starting on
${{NIGHT-START_UTC_yyyy-MM-dd (DDD) z}}
${{NIGHT-START_LOCAL_yyyy-MM-dd (DDD) z}}
have been received so far.
Please contact Space Command.
');
INSERT INTO lch_configuration_values (id, entry_id, site, paramValue) VALUES (706, 136, 'NORTH',
'The set of observation targets has been changed and new laser targets have been created to cover them which have not yet been sent to LCH.
Consider resending PRMs.
');
-- ======================
-- GS PAM HEADER AND TARGETS TEMPLATE
INSERT INTO lch_configuration_values (id, entry_id, site, paramValue) VALUES (800, 104, 'SOUTH',
'Classification: Unclassified
File Name: ${{FILE-NAME}}
Message Purpose: Request for Predictive Avoidance Support
Message Date/Time (UTC): ${{NOW_UTC_yyyy MMM dd (DDD) HH:mm:ss}}
Type Windows Requested: Open
Point of Contact: Gemini System Support Associate on duty at Cerro Pachon summit
(Voice) +56 (51) 205-701
(Fax) +56 (51) 205-650
(E-mail) gslgsops@gemini.edu
Emergency Phone # at Operations Site :+56 (51) 205-701
Remarks: Targets for date ${{NIGHT-START_UTC_yyyy MMM dd (DDD) z}}.
MISSION INFORMATION
---------------------------
Owner/Operator: Gemini South Observatory
Mission Name/Number: Gemini South_589nm_50W_884nrad_76MHz
Target Type: Right Ascension and Declination
Location: Gemini South Observatory, Cerro Pachon, Coquimbo, CHILE
Start Date/Time (UTC): ${{NIGHT-START_UTC_yyyy MMM dd (DDD) HH:mm:ss}}
End Date/Time (UTC): ${{NIGHT-END_UTC_yyyy MMM dd (DDD) HH:mm:ss}}
Duration (HH:MM:SS): ${{NIGHT-DURATION}}
LASER INFORMATION
---------------------------
Laser: Gemini South_589nm_50W_884nrad_76MHz
SOURCE INFORMATION
------------------------------------
Method: Fixed Point
Latitude: 30.2408 degrees S
Longitude: 70.7367 degrees W
Altitude: 2.722 km
TARGET INFORMATION
------------------------------------
');
INSERT INTO lch_configuration_values (id, entry_id, site, paramValue) VALUES (801, 105, 'SOUTH',
'Method: Right Ascension and Declination
Catalog Date: J2000
Right Ascension: ${{TARGET-RA-DEGREES_%.3f}}
Declination: ${{TARGET-DEC-DEGREES_%.3f}}
');
INSERT INTO lch_configuration_values (id, entry_id, site, paramValue) VALUES (802, 106, 'SOUTH',
'Method: Fixed Azimuth/Elevation
Azimuth: ${{TARGET-AZ-DEGREES_%.3f}}
Elevation: ${{TARGET-EL-DEGREES_%.3f}}
');
INSERT INTO lch_configuration_values (id, entry_id, site, paramValue) VALUES (803, 121, 'SOUTH',
'To Whom It May Concern,
Attached please find the Predictive Avoidance Request for the night of ${{NIGHT-START_UTC_EEEE, MMM dd, yyyy (DDD) z}}.
Thank you.
');
INSERT INTO lch_configuration_values (id, entry_id, site, paramValue) VALUES (804, 123, 'SOUTH',
'To Whom It May Concern,
Attached please find an Addendum to the Predictive Avoidance Request which was
forwarded to your office on ${{NIGHT-PRM-SENT_UTC_EEEE, MMM dd, yyyy (DDD) HH:mm z}}.
This addendum contains the original list along with the additional
targets for the night of ${{NIGHT-START_UTC_EEEE, MMM dd, yyyy (DDD) HH:mm z}}.
Should you have any questions, please contact our office for resolution.
Thanks.
');
INSERT INTO lch_configuration_values (id, entry_id, site, paramValue) VALUES (805, 125, 'SOUTH',
'No clearance windows for the laser night starting on
${{NIGHT-START_UTC_yyyy-MM-dd (DDD) z}}
${{NIGHT-START_LOCAL_yyyy-MM-dd (DDD) z}}
have been received so far.
Please contact Space Command.
');
INSERT INTO lch_configuration_values (id, entry_id, site, paramValue) VALUES (806, 136, 'SOUTH',
'The set of observation targets has been changed and new laser targets have been created to cover them which have not yet been sent to LCH.
Consider resending PRMs.
');
-- Engineering targets
COPY lch_engineering_targets (id, site, active, altitude, azimuth) from stdin with delimiter ',';
900,NORTH,true,90.0,0.0
950,SOUTH,true,90.0,0.0
951,SOUTH,true,85.0,0.0
952,SOUTH,true,85.0,90.0
953,SOUTH,true,85.0,180.0
954,SOUTH,true,85.0,270.0
955,SOUTH,true,80.0,0.0
956,SOUTH,true,80.0,90.0
957,SOUTH,true,80.0,180.0
958,SOUTH,true,80.0,270.0
959,SOUTH,true,75.0,0.0
960,SOUTH,true,75.0,90.0
961,SOUTH,true,75.0,180.0
962,SOUTH,true,75.0,270.0
963,SOUTH,true,70.0,0.0
964,SOUTH,true,70.0,90.0
965,SOUTH,true,70.0,180.0
966,SOUTH,true,70.0,270.0
967,SOUTH,true,65.0,0.0
968,SOUTH,true,65.0,90.0
969,SOUTH,true,65.0,180.0
970,SOUTH,true,65.0,270.0
971,SOUTH,true,60.0,0.0
972,SOUTH,true,60.0,90.0
973,SOUTH,true,60.0,180.0
974,SOUTH,true,60.0,270.0
975,SOUTH,true,55.0,0.0
976,SOUTH,true,55.0,90.0
977,SOUTH,true,55.0,180.0
978,SOUTH,true,55.0,270.0
979,SOUTH,true,50.0,0.0
980,SOUTH,true,50.0,90.0
981,SOUTH,true,50.0,180.0
982,SOUTH,true,50.0,270.0
983,SOUTH,true,45.0,0.0
984,SOUTH,true,45.0,90.0
985,SOUTH,true,45.0,180.0
986,SOUTH,true,45.0,270.0
\.
-- US FEDERAL HOLIDAYS; Source: http://www.opm.gov/Operating_Status_Schedules/fedhol/2012.asp
COPY lch_holidays (id, name, actual, observed) from stdin with delimiter ';';
1000;New Year’s Day;2012-01-01;2012-01-02
1001;Birthday of Martin Luther King, Jr.;2012-01-16;2012-01-16
1002;Washington’s Birthday;2012-02-20;2012-02-20
1003;Memorial Day;2012-05-28;2012-05-28
1004;Independence Day;2012-07-04;2012-07-04
1005;Labor Day;2012-09-03;2012-09-03
1006;Columbus Day;2012-10-08;2012-10-08
1007;Veterans Day;2012-11-11;2012-11-12
1008;Thanksgiving Day;2012-11-22;2012-11-22
1009;Christmas Day;2012-12-25;2012-12-25
1010;New Year’s Day;2013-01-01;2013-01-01
1011;Birthday of Martin Luther King, Jr.;2013-01-21;2013-01-21
1012;Washington’s Birthday;2013-02-18;2013-02-18
1013;Memorial Day;2013-05-27;2013-05-27
1014;Independence Day;2013-07-04;2013-07-04
1015;Labor Day;2013-09-02;2013-09-02
1016;Columbus Day;2013-10-14;2013-10-14
1017;Veterans Day;2013-11-11;2013-11-11
1018;Thanksgiving Day;2013-11-28;2013-11-28
1019;Christmas Day;2013-12-25;2013-12-25
1020;New Year’s Day;2014-01-01;2014-01-01
1021;Birthday of Martin Luther King, Jr.;2014-01-20;2014-01-20
1022;Washington’s Birthday;2014-02-17;2014-02-17
1023;Memorial Day;2014-05-26;2014-05-26
1024;Independence Day;2014-07-04;2014-07-04
1025;Labor Day;2014-09-01;2014-09-01
1026;Columbus Day;2014-10-13;2014-10-13
1027;Veterans Day;2014-11-11;2014-11-11
1028;Thanksgiving Day;2014-11-27;2014-11-27
1029;Christmas Day;2014-12-25;2014-12-25
1030;New Year’s Day;2015-01-01;2015-01-01
1031;Birthday of Martin Luther King, Jr.;2015-01-19;2015-01-19
1032;Washington’s Birthday;2015-02-16;2015-02-16
1033;Memorial Day;2015-05-25;2015-05-25
1034;Independence Day;2015-07-04;2015-07-03
1035;Labor Day;2015-09-07;2015-09-07
1036;Columbus Day;2015-10-12;2015-10-12
1037;Veterans Day;2015-11-11;2015-11-11
1038;Thanksgiving Day;2015-11-26;2015-11-26
1039;Christmas Day;2015-12-25;2015-12-25
1040;New Year’s Day;2016-01-01;2016-01-01
1041;Birthday of Martin Luther King, Jr.;2016-01-18;2016-01-18
1042;Washington’s Birthday;2016-02-15;2016-02-15
1043;Memorial Day;2016-05-30;2016-05-30
1044;Independence Day;2016-07-04;2016-07-04
1045;Labor Day;2016-09-05;2016-09-05
1046;Columbus Day;2016-10-10;2016-10-10
1047;Veterans Day;2016-11-11;2016-11-11
1048;Thanksgiving Day;2016-11-24;2016-11-24
1049;Christmas Day;2016-12-25;2016-12-26
1050;New Year’s Day;2017-01-01;2017-01-02
1051;Birthday of Martin Luther King, Jr.;2017-01-16;2017-01-16
1052;Washington’s Birthday;2017-02-20;2017-02-20
1053;Memorial Day;2017-05-29;2017-05-29
1054;Independence Day;2017-07-04;2017-07-04
1055;Labor Day;2017-09-04;2017-09-04
1056;Columbus Day;2017-10-09;2017-10-09
1057;Veterans Day;2017-11-11;2017-11-10
1058;Thanksgiving Day;2017-11-23;2017-11-23
1059;Christmas Day;2017-12-25;2017-12-25
1060;New Year’s Day;2018-01-01;2018-01-01
1061;Birthday of Martin Luther King, Jr.;2018-01-15;2018-01-15
1062;Washington’s Birthday;2018-02-19;2018-02-19
1063;Memorial Day;2018-05-28;2018-05-28
1064;Independence Day;2018-07-04;2018-07-04
1065;Labor Day;2018-09-03;2018-09-03
1066;Columbus Day;2018-10-08;2018-10-08
1067;Veterans Day;2018-11-11;2018-11-12
1068;Thanksgiving Day;2018-11-22;2018-11-22
1069;Christmas Day;2018-12-25;2018-12-25
\.
|
-- FOOD Recipe app
-- Food 1 ---
INSERT INTO Recipe (recipe_name, instructions, cuisine) VALUES ('Vegetable Egg Omelette', 'Add veggies to whipped eggs. Add salt and pepper to taste. Cook in a non-stick skillet.', 'Breakfast');
INSERT INTO Ingredient (ingredient_name, category) VALUES('Eggs', 'Proteins'), ('Spinach', 'Vegetables'), ('Bell Peppers', 'Vegetables'), ('Onions', 'Vegetables'), ('Salt', 'Spices'), ('Pepper', 'Spices');
-- Food 2 --
INSERT INTO Recipe (recipe_name, instructions, cuisine) VALUES ('Zucchini Pasta', 'Cut zucchini into thin strips. Cook in boiling water for one minute. Add cooked zucchini and pesto to a non-stick skillet. Cook on medium heat.', 'Lunch');
INSERT INTO Ingredient (ingredient_name, Category) VALUES('Zucchini', 'Vegetables'), ('Pesto', 'Sauces');
-- Users --
INSERT INTO users (username, password ) VALUES('Fred', 'password');
-- Users 2 --
--INSERT INTO users (username) VALUES('test@test.ca');--
- Users registering
INSERT INTO usersregister (username, password ) VALUES('Fred', 'password');
-- View Ingredients and recipes and favorites in the food database --
SELECT * FROM Ingredient
SELECT * FROM Recipe
SELECT * FROM Favorites
|
create table truck_geo_events_2
(eventTime string, eventTimeLong bigint , eventSource string, truckId int,
driverId int, driverName string,
routeId int, route string, eventType string,
latitude double, longitude double, correlationId int,
primary key (eventTimeLong)
) |
-- +migrate Up
CREATE TABLE whitelisted_addresses (
ip_address inet NOT NULL,
instance_id integer NOT NULL REFERENCES instances (id) ON DELETE CASCADE,
created_at timestamptz NOT NULL,
updated_at timestamptz NOT NULL,
PRIMARY KEY (ip_address, instance_id)
);
-- +migrate Down
DROP TABLE whitelisted_addresses;
|
-- 1173. 即时食物配送 I
-- 配送表: Delivery
--
-- +-----------------------------+---------+
-- | Column Name | Type |
-- +-----------------------------+---------+
-- | delivery_id | int |
-- | customer_id | int |
-- | order_date | date |
-- | customer_pref_delivery_date | date |
-- +-----------------------------+---------+
-- delivery_id 是表的主键。
-- 该表保存着顾客的食物配送信息,顾客在某个日期下了订单,并指定了一个期望的配送日期(和下单日期相同或者在那之后)。
--
--
-- 如果顾客期望的配送日期和下单日期相同,则该订单称为 「即时订单」,否则称为「计划订单」。
--
-- 写一条 SQL 查询语句获取即时订单所占的百分比, 保留两位小数。
--
-- 查询结果如下所示:
--
-- Delivery 表:
-- +-------------+-------------+------------+-----------------------------+
-- | delivery_id | customer_id | order_date | customer_pref_delivery_date |
-- +-------------+-------------+------------+-----------------------------+
-- | 1 | 1 | 2019-08-01 | 2019-08-02 |
-- | 2 | 5 | 2019-08-02 | 2019-08-02 |
-- | 3 | 1 | 2019-08-11 | 2019-08-11 |
-- | 4 | 3 | 2019-08-24 | 2019-08-26 |
-- | 5 | 4 | 2019-08-21 | 2019-08-22 |
-- | 6 | 2 | 2019-08-11 | 2019-08-13 |
-- +-------------+-------------+------------+-----------------------------+
--
-- Result 表:
-- +----------------------+
-- | immediate_percentage |
-- +----------------------+
-- | 33.33 |
-- +----------------------+
-- 2 和 3 号订单为即时订单,其他的为计划订单。
--
-- 来源:力扣(LeetCode)
-- 链接:https://leetcode-cn.com/problems/immediate-food-delivery-i
-- 著作权归领扣网络所有。商业转载请联系官方授权,非商业转载请注明出处。
SELECT
round(
( SELECT count( * ) FROM Delivery WHERE order_date = customer_pref_delivery_date ) /
( SELECT count( * ) FROM Delivery ) * 100,
2
) AS immediate_percentage; |
ALTER TABLE seminar
ADD COLUMN costFree BIT(1) DEFAULT 0
; |
-- Aug 21, 2008 3:09:16 PM EEST
--
UPDATE AD_Column SET FieldLength=255,Updated=TO_TIMESTAMP('2008-08-21 15:09:16','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=4656
;
-- Aug 21, 2008 3:09:19 PM EEST
--
insert into t_alter_column values('ad_process','Classname','VARCHAR(255)',null,'NULL')
;
-- Aug 21, 2008 3:10:08 PM EEST
--
UPDATE AD_Column SET AD_Reference_ID=10,Updated=TO_TIMESTAMP('2008-08-21 15:10:08','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=50182
;
|
/*
Name: Listing Ingestion Status - Old
Data source: 4
Created By: Admin
Last Update At: 2016-08-26T19:31:19.870960+00:00
*/
SELECT Listings_Ingested_For,
Last_Modification_Listing_table,
Status,
(CASE
WHEN (DATE(Creation_Date_Table_Listings) = current_Date() AND Current_day !=2 ) /*ingestion ok*/
THEN 'The ingestion for '+ STRING(DATE(Listings_Ingested_For)) +' ran succesfully and the listing table on BigQuery database was updated with information taken from ' + STRING(DATE(Listings_Ingested_For))
WHEN (DATE(Creation_Date_Table_Listings) = current_Date() AND Current_day =2 ) /*ingestion ok lunes*/
THEN 'The ingestion for '+STRING(DATE(Listings_Ingested_For))+' ran succesfully and the listing table on BigQuery database was updated with information taken from ' + STRING(DATE(Listings_Ingested_For))
WHEN (Current_day = 1 OR Current_day=7) /*weekend*/ THEN 'There not exists information at weekend'
WHEN (DATE(Creation_Date_Table_Listings) != current_Date()) THEN 'The ingestion on Bigquery for ' + current_date() +' failed. For this reason the information for the previous ingestion will not be available.'
ELSE 'Failed'
END)AS Details,
FROM(
SELECT
(CASE
WHEN (DATE(Creation_Date_Table_Listings) = current_Date() /*Tuesday to FRIDAY*/
AND Current_day !=2)
THEN
string(STRFTIME_UTC_USEC(DATE(DATE_ADD(TIMESTAMP(Date(Creation_Date_Table_Listings)),-1, "DAY")),"%Y%m%d"))
WHEN (DATE(Creation_Date_Table_Listings) = current_Date() /*MONDAY*/
AND Current_day =2)
THEN string(STRFTIME_UTC_USEC(DATE(DATE_ADD(TIMESTAMP(current_Date()),-3, "DAY")),"%Y%m%d")) /*FRIDAY*/
WHEN (Current_day = 1 OR Current_day=7 ) /*SATURDAY OR SUNDAY*/
THEN 'No data available at weekends'
ELSE ''
END)AS Last_Modification_Listing_table,
(CASE
WHEN (DATE(Creation_Date_Table_Listings) = current_Date() /*Tuesday to FRIDAY*/
AND Current_day !=2 ) THEN 'Success'
WHEN (DATE(Creation_Date_Table_Listings) = current_Date() /*MONDAY*/
AND Current_day =2 ) THEN 'Success'
WHEN (Current_day = 1 OR Current_day=7 ) /*SATURDAY OR SUNDAY*/
THEN 'Failed'
ELSE 'Failed'
END)AS Status,
(CASE
WHEN (DATE(Creation_Date_Table_Listings) = current_Date() AND Current_day !=2) /*ingestion ok tuesday to friday*/
THEN
string(STRFTIME_UTC_USEC(DATE(DATE_ADD(TIMESTAMP(current_Date()),-1, "DAY")),"%Y%m%d"))
WHEN (DATE(Creation_Date_Table_Listings) = current_Date() /*ingestion ok on monday*/
AND Current_day =2)
THEN string(STRFTIME_UTC_USEC(DATE(DATE_ADD(TIMESTAMP(current_Date()),-3, "DAY")),"%Y%m%d"))
ELSE 'Error'
END)AS Listings_Ingested_For,
Creation_Date_Table_Listings, Current_day
FROM(
SELECT DAYOFWEEK(TIMESTAMP(CURRENT_TIMESTAMP())) AS Current_day /*1 (Sunday) and 7 (Saturday), */,
string(STRFTIME_UTC_USEC(DATE(MSEC_TO_TIMESTAMP(creation_time)), "%Y%m%d")) as Creation_Date_Table_Listings
FROM djomniture:devspark.__TABLES__
WHERE table_id='MG_Listings' )
)
|
.read data.sql
CREATE TABLE bluedog AS
SELECT color, pet FROM students
WHERE color = 'blue' AND pet = 'dog';
CREATE TABLE bluedog_songs AS
SELECT color, pet, song FROM students
WHERE color = 'blue' AND pet = 'dog';
CREATE TABLE smallest_int AS
SELECT time, smallest FROM students
WHERE smallest > 2
ORDER BY smallest ASC
LIMIT 20;
CREATE TABLE matchmaker AS
SELECT a.pet, a.song, a.color, b.color
FROM students AS a, students AS b
WHERE a.time != b.time AND a.time < b.time AND a.pet = b.pet AND a.song = b.song;
CREATE TABLE sevens AS
SELECT c.seven
FROM students AS c, numbers AS d
WHERE c.time = d.time AND c.number = 7 AND d."7" = "True";
|
/*
-- Query: select concat('update image set filename_overlay=\',filename_overlay,'\' where id=',id,';') from `tmi_test_myrboa`.`image` where filename_overlay is not null
LIMIT 0, 10000
-- Date: 2013-12-07 22:53
*/
update image set filename_overlay='Apatite_1_MDS_cp.png' where id=263;
update image set filename_overlay='Apatite_1_MDS_pp.png' where id=264;
update image set filename_overlay='rhodochrosite_MDS_cp1.png' where id=270;
update image set filename_overlay='rhodocrosite_MDS_cp2.png' where id=271;
update image set filename_overlay='rhodochrosite_MDS_cp3.png' where id=272;
update image set filename_overlay='rhodochrosite_MDS_pp1.png' where id=273;
update image set filename_overlay='rhodochrosite_MDS_pp2.png' where id=274;
update image set filename_overlay='rhodochrosite_MDS_pp3.png' where id=275;
update image set filename_overlay='vivianite_MDS_cp1.png' where id=276;
update image set filename_overlay='vivianite_MDS_pp1.png' where id=277;
update image set filename_overlay='biotite_xp_02.png' where id=278;
update image set filename_overlay='biotite_pp_01.png' where id=279;
update image set filename_overlay='biotite_pp_02.png' where id=280;
update image set filename_overlay='calcite_xp_01.png' where id=281;
update image set filename_overlay='calcite_xp_02.png' where id=282;
update image set filename_overlay='calcite_pp_01.png' where id=283;
update image set filename_overlay='calcite_pp_02.png' where id=284;
update image set filename_overlay='pyrite_pp_01.png' where id=292;
update image set filename_overlay='pyrite_pp_02.png' where id=293;
update image set filename_overlay='quartz_xp_01.png' where id=294;
update image set filename_overlay='quartz_xp_02.png' where id=295;
update image set filename_overlay='quartz_pp_01.png' where id=296;
update image set filename_overlay='quartz_pp_02.png' where id=297;
update image set filename_overlay='siderite_01_xp.png' where id=298;
update image set filename_overlay='siderite_01_pp.png' where id=299;
update image set filename_overlay='tourmaline_xp_01.png' where id=303;
update image set filename_overlay='tourmaline_pp_01.png' where id=304;
update image set filename_overlay='TWTW-SLIDE1CP_01.png' where id=305;
update image set filename_overlay='TWTW-SLIDE1PP_01.png' where id=306;
update image set filename_overlay='vivianite_pp_01.png' where id=311;
update image set filename_overlay='Angular_quartz.png' where id=319;
update image set filename_overlay='Aragonite_1ppl.png' where id=320;
update image set filename_overlay='Biotite_1ppl1.png' where id=327;
update image set filename_overlay='Biotite_2ppl.png' where id=328;
update image set filename_overlay='Biotite_3ppl.png' where id=329;
update image set filename_overlay='Biotite_4ppl.png' where id=330;
update image set filename_overlay='Dolomite_1.png' where id=332;
update image set filename_overlay='Glauconite_1.png' where id=340;
update image set filename_overlay='Glauconite_1_GR.png' where id=341;
update image set filename_overlay='Glauconite_2.png' where id=342;
update image set filename_overlay='Glauconite_3.png' where id=343;
update image set filename_overlay='Green_biotite.png' where id=344;
update image set filename_overlay='Palagonite_1ppl.png' where id=353;
update image set filename_overlay='Palagonite_2ppl.png' where id=354;
update image set filename_overlay='Phillipsite_10_GR.png' where id=355;
update image set filename_overlay='Phillipsite_11_GR.png' where id=356;
update image set filename_overlay='Phillipsite_12_GR.png' where id=357;
update image set filename_overlay='Phillipsite_13_GR.png' where id=358;
update image set filename_overlay='Phillipsite_1ppl.png' where id=359;
update image set filename_overlay='Phillipsite_2ppl.png' where id=360;
update image set filename_overlay='Phillipsite_3ppl.png' where id=361;
update image set filename_overlay='Plagioclase.png' where id=362;
update image set filename_overlay='Pyrite_10_GR.png' where id=364;
update image set filename_overlay='Pyrite_pyritohedra_1ppl.png' where id=366;
update image set filename_overlay='Pyrite_pyritohedra_2ppl.png' where id=367;
update image set filename_overlay='Tritiform_aragonite_1ppl.png' where id=378;
update image set filename_overlay='Tritiform_aragonite_1xp.png' where id=379;
update image set filename_overlay='Tritiform_aragonite_2ppl.png' where id=380;
update image set filename_overlay='Zircon_2ppl.png' where id=383;
update image set filename_overlay='Zircon_3ppl.png' where id=384;
update image set filename_overlay='Zoned_feldspar_1.png' where id=385;
update image set filename_overlay='Framboidal_pyrite_3ppl.png' where id=386;
update image set filename_overlay='Pyrite_framboids_1ppl.png' where id=387;
update image set filename_overlay='Volcanic_glass_1_ppl.png' where id=389;
update image set filename_overlay='Volcanic_glass_2_ppl.png' where id=390;
update image set filename_overlay='Biotite_MR_BV_cp.png' where id=392;
update image set filename_overlay='Biotite_MR_BV_pp.png' where id=393;
update image set filename_overlay='calcite_aggregate_MR_BV_CP.png' where id=394;
update image set filename_overlay='calcite_aggregate_MR_BV_PP.png' where id=395;
update image set filename_overlay='Detrital_Calcite_MR_BV_cp.png' where id=396;
update image set filename_overlay='Detrital_Calcite_MR_BV_pp.png' where id=398;
update image set filename_overlay='Dolomite_01_MR_BV_CP.png' where id=399;
update image set filename_overlay='Dolomite_01_MR_BV_PP.png' where id=400;
update image set filename_overlay='Dolomite_MR_BV_CC.png' where id=401;
update image set filename_overlay='Dolomite_MR_BV_PP.png' where id=402;
update image set filename_overlay='gypsum_2_MR_BV_CP.png' where id=411;
update image set filename_overlay='gypsum_2_MR_BV_PP.png' where id=412;
update image set filename_overlay='Gypsum_3_MR_BV_CP.png' where id=413;
update image set filename_overlay='Gypsum_3_MR_BV_PP.png' where id=414;
update image set filename_overlay='gypsum_MR_BV_CP.png' where id=415;
update image set filename_overlay='gypsum_MR_BV_PP.png' where id=416;
update image set filename_overlay='pyrite_MR_BV_PP.png' where id=430;
update image set filename_overlay='Sulfur_MR_BV_CP.png' where id=431;
update image set filename_overlay='Sulfur_MR_BV_PP.png' where id=432;
update image set filename_overlay='vivianite.MR_BV_CP.png' where id=436;
update image set filename_overlay='vivianite.MR_BV_PP.png' where id=437;
update image set filename_overlay='Apatite_01_pp_AB.png' where id=472;
update image set filename_overlay='Apatite_01_xp_AB.png' where id=473;
update image set filename_overlay='Biotite_01_pp_AB.png' where id=474;
update image set filename_overlay='Biotite_01_xp_AB.png' where id=475;
update image set filename_overlay='Calcite_01_pp_AB_limestone.png' where id=476;
update image set filename_overlay='Calcite_01_xp_AB_limestone.png' where id=477;
update image set filename_overlay='Calcite_02_pp_AB_tufa.png' where id=478;
update image set filename_overlay='Calcite_02_xp_AB_tufa.png' where id=479;
update image set filename_overlay='Gypsum_01_pp_AB.png' where id=488;
update image set filename_overlay='Gypsum_01_xp_AB.png' where id=489;
update image set filename_overlay='Gypsum_02_pp_AB_detrital.png' where id=490;
update image set filename_overlay='Gypsum_02_xp_AB_detrital.png' where id=491;
update image set filename_overlay='Magadiite_01_pp_AB.png' where id=492;
update image set filename_overlay='Microcline_01_pp_AB.png' where id=493;
update image set filename_overlay='Plagioclase_01_pp_AB.png' where id=500;
update image set filename_overlay='Quartz_02_xp_AB.png' where id=505;
update image set filename_overlay='Magadiite_01_xp_AB.png' where id=507;
update image set filename_overlay='Brine_shrimp_fecal_pellet.png' where id=508;
update image set filename_overlay='Microcline_01_xp_AB.png' where id=538;
update image set filename_overlay='Microcline_02_pp_AB.png' where id=539;
update image set filename_overlay='Microcline_02_xp_AB.png' where id=540;
update image set filename_overlay='Opal_01_pp_AB.png' where id=541;
update image set filename_overlay='Plagioclase_01_xp_AB.png' where id=544;
update image set filename_overlay='Quartz_01_pp_AB_undulose_extinction.png' where id=545;
update image set filename_overlay='Quartz_01_xp_AB_undulose_extinction.png' where id=546;
update image set filename_overlay='Quartz_02_pp_AB.png' where id=547;
update image set filename_overlay='aragonite_cumulus_PL_JS.png' where id=552;
update image set filename_overlay='calcite_OL_JS.png' where id=555;
update image set filename_overlay='carbonate_rock_frag_BL_JS.png' where id=556;
update image set filename_overlay='clay_matrix_2_xp_JS.png' where id=560;
update image set filename_overlay='clay_matrix_2_JS.png' where id=561;
update image set filename_overlay='clay_matrix_with_calcite_needles_2_xp_JS.png' where id=562;
update image set filename_overlay='clay_matrix_with_calcite_needles_2_JS.png' where id=563;
update image set filename_overlay='clay_matrix_JS.png' where id=566;
update image set filename_overlay='dolomite_cumulus_PL_JS.png' where id=570;
update image set filename_overlay='dolomite_cumulus_xp_PL_JS.png' where id=571;
update image set filename_overlay='fecal_pellet_PL_JS.png' where id=572;
update image set filename_overlay='feldspar_grain_BL_JS.png' where id=573;
update image set filename_overlay='feldspar_grain_xp_BL_JS.png' where id=574;
update image set filename_overlay='feldspathic_rock_fragment_BL_JS.png' where id=575;
update image set filename_overlay='glauconite_grain_OL_JS.png' where id=578;
update image set filename_overlay='pirssonite_OL_xp_JS.png' where id=585;
update image set filename_overlay='trona_OL_JS.png' where id=588;
update image set filename_overlay='trona_OL_xp_JS.png' where id=589;
update image set filename_overlay='feldspathic_rock_fragment_xp_BL_JS.png' where id=618;
update image set filename_overlay='calcite_01_cp_BVG.png' where id=623;
update image set filename_overlay='calcite_01_pp_BVG.png' where id=624;
update image set filename_overlay='calcite_02_cp_BVG.png' where id=625;
update image set filename_overlay='calcite_02_pp_BVG.png' where id=626;
update image set filename_overlay='calcite_03_cp_BVG.png' where id=627;
update image set filename_overlay='calcite_03_pp_BVG.png' where id=628;
update image set filename_overlay='calcite_04_cp_BVG.png' where id=629;
update image set filename_overlay='calcite_04_pp_BVG.png' where id=630;
update image set filename_overlay='gypsum_01_cp_BVG.png' where id=631;
update image set filename_overlay='gypsum_01_pp_BVG.png' where id=632;
update image set filename_overlay='muscovite_01_cp_BVG.png' where id=633;
update image set filename_overlay='muscovite_01_pp_BVG.png' where id=634;
update image set filename_overlay='muscovite_03_cp_BVG.png' where id=635;
update image set filename_overlay='muscovite_03_pp_BVG.png' where id=636;
update image set filename_overlay='muscovite_cp_02_BVG.png' where id=637;
update image set filename_overlay='muscovite_pp_02_BVG.png' where id=638;
update image set filename_overlay='plagioclase_01_cp_BVG.png' where id=645;
update image set filename_overlay='plagioclase_01_pp_BVG.png' where id=646;
update image set filename_overlay='plagioclase_02_cp_BVG.png' where id=647;
update image set filename_overlay='plagioclase_02_pp_BVG.png' where id=648;
update image set filename_overlay='plagioclase_03_cp_BVG.png' where id=649;
update image set filename_overlay='plagioclase_03_pp_BVG.png' where id=650;
update image set filename_overlay='Pyrite_01_pp_BVG.png' where id=651;
update image set filename_overlay='brine_shrimp_fecal_pellet_RL.png' where id=654;
update image set filename_overlay='olivine01AM.png' where id=697;
update image set filename_overlay='olivine01AMxp.png' where id=698;
update image set filename_overlay='olivine02AMxp.png' where id=699;
update image set filename_overlay='olivine02AMcp.png' where id=700;
update image set filename_overlay='CHAL_vivianite_cp.png' where id=708;
update image set filename_overlay='CHAL_vivianite_pp.png' where id=709;
update image set filename_overlay='CHAL_vivianite_pp_blue.png' where id=710;
update image set filename_overlay='opx_cp3RUD11.png' where id=713;
update image set filename_overlay='opx_pp1RUD11.png' where id=714;
update image set filename_overlay='opx_pp2RUD11.png' where id=715;
update image set filename_overlay='opx_pp3RUD11.png' where id=716;
update image set filename_overlay='bubble01pp.png' where id=717;
update image set filename_overlay='bubble01cp.png' where id=718;
update image set filename_overlay='bubble02pp.png' where id=719;
update image set filename_overlay='bubble02cp.png' where id=720;
update image set filename_overlay='toothpick_pp.png' where id=721;
update image set filename_overlay='toothpick_cp.png' where id=722;
update image set filename_overlay='BOS_rutile_cp.png' where id=725;
update image set filename_overlay='BOS_rutile_pp.png' where id=726;
update image set filename_overlay='ISCAY_biotite_cp.png' where id=732;
update image set filename_overlay='ISCAY_biotite_pp.png' where id=733;
update image set filename_overlay='GNRP_B10_D1_80cm_repl_sulf.png' where id=734;
update image set filename_overlay='Karupa-UPK10-2E-1P1.png' where id=735;
update image set filename_overlay='CHI-HL06-1B-2U-2_gypsum1_pp.png' where id=736;
update image set filename_overlay='CHI-HL06-1B-2U-2_gypsum1_xp.png' where id=737;
update image set filename_overlay='CHI-HL06-1B-2U-2_gypsum2_pp.png' where id=738;
update image set filename_overlay='CHI-HL06-1B-2U-2_gypsum2_xp.png' where id=739;
update image set filename_overlay='CHI-HL06-1B-2U-2_gypsum3_pp.png' where id=740;
update image set filename_overlay='CHI-HL06-1B-2U-2_gypsum3_xp.png' where id=741;
update image set filename_overlay='GLAD6-BOS04-5A-20H-2_10.7_cm_dolomite_cp.png' where id=742;
update image set filename_overlay='GLAD6-BOS04-5A-20H-2_10.7_cm_dolomite_pp.png' where id=743;
update image set filename_overlay='EYASI_microcline_polysynth.png' where id=745;
update image set filename_overlay='EYASI_microcline_cp.png' where id=746;
update image set filename_overlay='EYASI_microcline_pp.png' where id=747;
update image set filename_overlay='TAS-ARTH11-1B-1P-1_94cm_tourmaline1_pp.png' where id=753;
update image set filename_overlay='TAS-ARTH11-1B-1P-1_94cm_tourmaline2_pp.png' where id=754;
update image set filename_overlay='TAS-ARTH11-1B-1P-1_94cm_tourmaline3_pp.png' where id=755;
update image set filename_overlay='TAS-ARTH11-1B-1P-1_94cm_tourmaline3_cp.png' where id=756;
update image set filename_overlay='TAS-MACK11-1A-2B-1_5.5cm_hematite_cp.png' where id=757;
update image set filename_overlay='TAS-MACK11-1A-2B-1_5.5cm_hematite_pp.png' where id=758;
update image set filename_overlay='Amphibole_5_GR.png' where id=763;
update image set filename_overlay='Amphibole_6_GR.png' where id=764;
update image set filename_overlay='Amphibole_7_GR.png' where id=765;
update image set filename_overlay='Amphibole_8_GR.png' where id=766;
update image set filename_overlay='Amphibole_1_GR.png' where id=767;
update image set filename_overlay='Amphibole_2_GR.png' where id=768;
update image set filename_overlay='chiro-026-IRW.jpg.png' where id=805;
update image set filename_overlay='Fiber-02_JB.png' where id=881;
update image set filename_overlay='YELL2-FD2-9_106.7_cm_xpl.png' where id=889;
update image set filename_overlay='YELL2-FD2-9_106.7_cm_cpx.png' where id=890;
update image set filename_overlay='YELL2-FD2-9_106.7CM_PP_AMPH_63X.png' where id=891;
update image set filename_overlay='YELL2-FD2-9-106.7CM-AMPH-CP-63X.png' where id=892;
update image set filename_overlay='YELL2-FD2-9_106.7CM_GLASS_BUBBLES_63X_PP.png' where id=893;
update image set filename_overlay='YELL2-FD2-9-106.7CM-GREEN_VOLX.png' where id=894;
update image set filename_overlay='YELL2-FD2-9-106.7CM_GREEN_VOLX_CP_40X.png' where id=895;
update image set filename_overlay='YELL2-FD2-9_106.7CM_63X_GLASS_INCLUSIONS.png' where id=896;
update image set filename_overlay='YELL2-FD-2-9-18.7CM_OPX_PP_63X.png' where id=897;
update image set filename_overlay='YELL2-FD-2-9_18.7CM_CP_63X_OPX.png' where id=898;
update image set filename_overlay='YELL92-FD-2-9_18.7CM_PP_40X_BT.png' where id=899;
update image set filename_overlay='FD-92-2-6_90.1CM_40X_PP_CRACKED_PLAG.png' where id=900;
update image set filename_overlay='FD-92-2-6_90.1CM_40X_CP_CRACKED_PLAG.png' where id=901;
update image set filename_overlay='FD-92-2-6_90.1CM_PP_63X_BLUE_GREEN_AMPH.png' where id=902;
update image set filename_overlay='YELL92-FD2-9_20.1CM_CP_63X_LAMELLAE.png' where id=903;
update image set filename_overlay='YELL92-FD2-9_20.1CM_63X_PP_LAMELLAE.png' where id=904;
update image set filename_overlay='PD08-1B-7L-1_3.5CM_10X_CP_LITHIC.png' where id=905;
update image set filename_overlay='PD08-1B-7L-1_3.5CM_10X_PP_LITHIC_FRAG.png' where id=906;
update image set filename_overlay='PD08-1B-7L-1_3.5CM_CP_10X_LITHIC_FRAG.png' where id=907;
update image set filename_overlay='PD08-1B-7L-1_35.5CM_AMPH_10X_CP.png' where id=908;
update image set filename_overlay='PD08-1B-7L-1_35.5CM_PP_10X_AMPH.png' where id=910;
update image set filename_overlay='JH08-1A-2L-1_50CM_AMPH_PP_40X.png' where id=911;
update image set filename_overlay='JH08-1A-2L-1_50CM_AMPH_40X_CP.png' where id=912;
update image set filename_overlay='JH08-1B-1L-1_92CM_40X_CP_EXSOLUTION.png' where id=913;
update image set filename_overlay='JH08-1B-1L-1_92CM_40X_PP_PLG.png' where id=914;
update image set filename_overlay='GLAD5-VC04-1A-22H-1_146.8cm_pp_40x_viv.png' where id=915;
update image set filename_overlay='Shuman_Bufflehead_K_22cm_40x_pp.png' where id=916;
update image set filename_overlay='Shuman_Bufflehead_22cm_40x_cp.png' where id=917;
update image set filename_overlay='YELL_Lewis_LL92-1-2K-4_79.5cm_tephra_40x_pp.png' where id=919;
update image set filename_overlay='calcite_ironoxide_40x_pp.png' where id=920;
update image set filename_overlay='calcite_ironoxide_40x_cp.png' where id=921;
update image set filename_overlay='ironoxide_40x_pp.png' where id=922;
update image set filename_overlay='RD08-1D-1L-1_77.5cm_pp_10x_chl.png' where id=923;
update image set filename_overlay='RD08-1D-1L-1_77.5cm_cp_10x_chl_anom.png' where id=924;
update image set filename_overlay='RD08-1D-2L-1_37.5cm_pp_63x_rounded_Gt.png' where id=925;
update image set filename_overlay='RD08-1D-2L-1_92cm_pp_40x_Bt_pleo_halo.png' where id=927;
update image set filename_overlay='TAJ-KAR08-1B-1P-1_82cm_40x_ppl_green.png' where id=928;
update image set filename_overlay='TAJ-KAR08-1B-1P-1_82cm_xpl_40x_green_pleo.png' where id=929;
update image set filename_overlay='TAJ-KAR08-1B-1P-1_82cm_ppl_40x_Bt.png' where id=930;
update image set filename_overlay='TAJ-KAR08-2A-1P-1_24cm_xpl_40x_inclusions.png' where id=931;
update image set filename_overlay='TAS-WDS11_1A-2B-1_84.2cm_40x_ppl_Zr.png' where id=932;
update image set filename_overlay='TAS-WDS11-1A-2B-1_84.2cm_xpl_40x_Zr.png' where id=933;
update image set filename_overlay='TAS-WDS11-1A-2B-1_84.2cm_ppl_40x_Zr2.png' where id=934;
update image set filename_overlay='TAS-WDS11-1A-2B-1_84.2cm_xpl_40x_Zr2.png' where id=935;
update image set filename_overlay='TAS-WDS11-1A-2B-1_84.2cm_ppl_40x_Zr3.png' where id=936;
update image set filename_overlay='TAS-WDS11-1A-2B-1_84.2cm_xpl_40x_Zr3.png' where id=937;
update image set filename_overlay='TAS-WDS11-1A-2B-1_89.4cm_ppl_40x_hex_frag.png' where id=938;
update image set filename_overlay='TAS-WDS11-1A-2B-1_89.4cm_xpl_40x_hex_frag.png' where id=939;
update image set filename_overlay='TAS-ARTH11-1B-1P-1_6CM_PPL_40X_QZ_INCLUSIONS.png' where id=940;
update image set filename_overlay='TAS-ARTH11-1B-1P-1_80CM_PP_63X_BLK_TRML.png' where id=941;
update image set filename_overlay='IRONFEST_10x_ppl_vivianite_limonite_pyrite.png' where id=942;
update image set filename_overlay='ironfest_10x_ppl_oxidation_viv_lim_pyr.png' where id=944;
update image set filename_overlay='SILV_Gnt.png' where id=946;
update image set filename_overlay='IRONFEST_10x_xpl_vivianite_limonite_pyrite.png' where id=1219;
update image set filename_overlay='RD08-1D-2L-1_92cm_40x_cp_contaminant.png' where id=1221;
update image set filename_overlay='iron_oxides_cp_BVG.png' where id=1224;
update image set filename_overlay='iron_oxides_pp_BVG.png' where id=1225;
update image set filename_overlay='Tephra_01_pp_AB.png' where id=1268;
update image set filename_overlay='Mazama_tephra_1_MDS_cp.png' where id=1269;
update image set filename_overlay='Mazama_tephra_1_MDS_pp.png' where id=1270;
update image set filename_overlay='Mazama_tephra_2_MDS_pp.png' where id=1271;
update image set filename_overlay='RDF_2A1K6_79_6_microtubule_400X_PP.png' where id=1416;
update image set filename_overlay='RDF_2A1K6_79_6_microtubule_XP.png' where id=1417;
update image set filename_overlay='TAHL_PC3_4_85_5_400X_pp.png' where id=1418;
update image set filename_overlay='TAHL_PC3_4_85.5_400X_cp.png' where id=1419;
update image set filename_overlay='TAHL_PC3_2_137_2_400X_PP.png' where id=1420;
update image set filename_overlay='TAHL_PC3_2_137_2_400X_xp.png' where id=1421;
update image set filename_overlay='MOMOS-WOO06-5A-1K-3_132_Ol_ppx_40x.png' where id=1422;
update image set filename_overlay='MOMOS-WOO06-5A-1K-5_140_plag_ppl_63x.png' where id=1423;
update image set filename_overlay='MOMOS-WOO06-5A-1K-5_140_plag_xpl_63x.png' where id=1424;
update image set filename_overlay='MOMOS-WOO06-5A-1K-5_141_Ol_ppx_40x.png' where id=1425;
update image set filename_overlay='MOMOS-WOO06-7A-1P-4_148_pyx_ppl_40x.png' where id=1426;
update image set filename_overlay='MOMOS-WOO06-7A-1P-4_148_pyx_xpl_40x.png' where id=1427;
update image set filename_overlay='RDF_3A1K2_122_8_cryst_tephra_100_cp.png' where id=1428;
update image set filename_overlay='RDF_3A1K2_122_8_cryst_tephra_100_pp.png' where id=1429;
update image set filename_overlay='RDF_3A1K2_122_8_cryst_tephra_400_cp.png' where id=1430;
update image set filename_overlay='RDF_3A1K2_122_8_cryst_tephra_400_pp.png' where id=1431;
update image set filename_overlay='RDF_3A1K2_123_2_glassy_feld_400_cp.png' where id=1432;
update image set filename_overlay='RDF_3A1K2_123_2_glassy_feldspar_400_pp.png' where id=1433;
update image set filename_overlay='RDF_2A1K6_79_6_400X_CP.png' where id=1460;
update image set filename_overlay='RDF_2A1K6_79_6_400X_PP.png' where id=1461;
update image set filename_overlay='HELL13_1B4_61_5_cp.png' where id=1462;
update image set filename_overlay='HELL13_1B4_61_5_pp.png' where id=1463;
update image set filename_overlay='L_Harding_Z_sec_5_1287_rutile_I_CP.png' where id=1527;
update image set filename_overlay='L_Harding_Z_sec_5_1287_rutile_I_PP.png' where id=1528;
update image set filename_overlay='L_Harding_Z_sec_5_1287_rutile_II_CP.png' where id=1529;
update image set filename_overlay='L_Harding_Z_sec_5_1287_rutile_II_PP.png' where id=1530;
update image set filename_overlay='calcite_ironoxide_40x_opaque_pp.png' where id=1531;
update image set filename_overlay='calcite_ironoxide_40x_opaque_cp.png' where id=1532;
|
-- 1 cities of agents booking order whose cid = c02
SELECT city
FROM agents
WHERE aid in (SELECT aid
FROM orders
WHERE cid = 'c002');
-- 2 ids of products ordered through any agent who takes at least one order from a customer in dallas DESC
SELECT pid
FROM products
WHERE pid in (SElECT pid
FROM orders
WHERE cid in ( SELECT cid
FROM customers
WHERE city = 'Dallas')
)
ORDER BY pid DESC;
--3 ids and names of customers who did not order through a01
SELECT cid, name
FROM customers
WHERE cid in (SELECT cid
FROM orders
WHERE aid != 'a01');
--4 ids of customers who ordered both p01 and p07
SELECT cid
FROM customers
WHERE cid in (SELECT cid
FROM orders
WHERE pid = 'p01')
AND cid in ( SELECT cid
FROM orders
WHERE pid = 'p07');
--5 ids of products not ordered by any customers through a07 DESC
SELECT pid
FROM products
WHERE pid not in (SELECT pid
FROM orders
WHERE aid = 'a07')
ORDER BY pid DESC;
--6 name discounts and city for all customers placed order thru agents in new york or london
SELECT name, discount, city
FROM customers
WHERE cid in (SELECT cid
FROM orders
WHERE aid in (SELECT aid
FROM agents
WHERE city in ('London', 'New York'))
);
--7 all customers who have the same discount of any customers in dallas or london
SELECT *
FROM customers
WHERE discount in (SELECT discount
FROM customers
WHERE city in ('Dallas', 'London'));
--8
--Check constraints check a value being entered and must meet the guidelines in order to be entered. They are good for keeping out unwanted/unecessary data and adding rules to the database. An advantage of this is to add guidelines to the database, add restrictions, and make the data fit for its implementation. A good example could be a table including customers who bought alcohol where age needs to be over 21.
-- CREATE TABLE CUSTOMERS(
-- ID INT NOT NULL,
-- NAME VARCHAR (20) NOT NULL,
-- AGE INT NOT NULL CHECK(AGE >=21)
-- );
--A bad example could be a table that using an english check constraint in a spanish speaking workplace because people would try to enter 'chico' or 'chica' and not be able to enter the data
-- CREATE TABLE WORKERS(
-- ID INT NOT NULL,
-- NAME VARCHAR(20),
-- GENDER TEXT NOT NULL CHECK (GENDER = 'Boy' OR GENDER = 'Girl')
-- );
--The differences between the examples is that the good is practical, relevant, and easy to implement to the database, while the bad one is not. |
create table AUTH_GROUP_AUTHORITY (
GROUP_ID bigint not null,
AUTHORITY_ID bigint not null
);
create table AUTH_USER_GROUP (
USER_ID bigint not null,
GROUP_ID bigint not null
);
create table AUX_IDENTIFIERS (
id bigint not null auto_increment,
CREATION_DATE datetime not null,
IS_DELETED bit not null,
DELETED_DATE datetime,
NOTIFICATION_DATE datetime,
IS_PRIMARY bit not null,
IDENTIFIER varchar(100) not null,
PROGRAM_ID bigint not null,
IDENTIFIER_T bigint not null,
primary key (id),
unique (IDENTIFIER_T, IDENTIFIER)
);
create table AUX_PROGRAMS (
id bigint not null auto_increment,
AFFILIATION_DATE date not null,
PROGRAM_NAME varchar(255) not null,
SPONSOR_ID bigint not null,
TERMINATION_DATE date,
SPONSOR_T bigint not null,
primary key (id)
);
create table SpringSecurityRevisionEntity (
id integer not null auto_increment,
timestamp bigint not null,
username varchar(255),
primary key (id)
);
create table aud_AUTH_GROUP_AUTHORITY (
REV integer not null,
GROUP_ID bigint not null,
AUTHORITY_ID bigint not null,
REVTYPE tinyint,
primary key (REV, GROUP_ID, AUTHORITY_ID)
);
create table aud_AUTH_USER_GROUP (
REV integer not null,
USER_ID bigint not null,
GROUP_ID bigint not null,
REVTYPE tinyint,
primary key (REV, USER_ID, GROUP_ID)
);
create table aud_AUX_IDENTIFIERS (
id bigint not null,
REV integer not null,
REVTYPE tinyint,
CREATION_DATE datetime,
IS_DELETED bit,
DELETED_DATE datetime,
NOTIFICATION_DATE datetime,
IS_PRIMARY bit,
IDENTIFIER varchar(100),
PROGRAM_ID bigint,
IDENTIFIER_T bigint,
primary key (id, REV)
);
create table aud_AUX_PROGRAMS (
id bigint not null,
REV integer not null,
REVTYPE tinyint,
AFFILIATION_DATE date,
PROGRAM_NAME varchar(255),
SPONSOR_ID bigint,
TERMINATION_DATE date,
SPONSOR_T bigint,
primary key (id, REV)
);
create table aud_auth_authorities (
id bigint not null,
REV integer not null,
REVTYPE tinyint,
AUTHORITY_NAME varchar(255),
DESCRIPTION varchar(255),
primary key (id, REV)
);
create table aud_auth_groups (
id bigint not null,
REV integer not null,
REVTYPE tinyint,
DESCRIPTION varchar(255),
IS_ENABLED bit,
GROUP_NAME varchar(255),
primary key (id, REV)
);
create table aud_auth_users (
id bigint not null,
REV integer not null,
REVTYPE tinyint,
DESCRIPTION varchar(255),
IS_ENABLED bit,
PASSWORD varchar(255),
USER_NAME varchar(255),
primary key (id, REV)
);
create table aud_ctd_countries (
id bigint not null,
REV integer not null,
REVTYPE tinyint,
code varchar(3),
name varchar(100),
primary key (id, REV)
);
create table aud_ctd_regions (
id bigint not null,
REV integer not null,
REVTYPE tinyint,
code varchar(3),
name varchar(100),
country_id bigint,
primary key (id, REV)
);
create table aud_ctx_data_types (
id bigint not null,
REV integer not null,
REVTYPE tinyint,
data_type varchar(100),
description varchar(100),
primary key (id, REV)
);
create table aud_drd_organizational_units (
id bigint not null,
REV integer not null,
REVTYPE tinyint,
code varchar(100),
name varchar(100),
campus_id bigint,
parent_organizational_unit_id bigint,
organizational_unit_t bigint,
primary key (id, REV)
);
create table aud_prc_addresses (
id bigint not null,
REV integer not null,
REVTYPE tinyint,
bldg_no varchar(10),
city varchar(100),
line1 varchar(100),
line2 varchar(100),
line3 varchar(100),
postal_code varchar(9),
room_no varchar(11),
update_date datetime,
country_id bigint,
region_id bigint,
role_record_id bigint,
address_t bigint,
primary key (id, REV)
);
create table aud_prc_contact_emails (
id bigint not null,
REV integer not null,
REVTYPE tinyint,
address varchar(100),
email_address_t bigint,
primary key (id, REV)
);
create table aud_prc_contact_phones (
id bigint not null,
REV integer not null,
REVTYPE tinyint,
area_code varchar(5),
country_code varchar(5),
extension varchar(5),
phone_number varchar(10),
phone_line_order integer,
update_date datetime,
address_t bigint,
phone_t bigint,
primary key (id, REV)
);
create table aud_prc_disclosure (
id bigint not null,
REV integer not null,
REVTYPE tinyint,
disclosure_code varchar(10),
updated_date datetime,
within_grace_period bit,
person_id bigint,
primary key (id, REV)
);
create table aud_prc_disclosure_address (
id bigint not null,
REV integer not null,
REVTYPE tinyint,
bldg_room_date datetime,
bldg_room_ind bit,
address_date datetime,
address_ind bit,
city_region_date datetime,
city_region_ind bit,
address_t bigint,
affiliation_t bigint,
disclosure_record_id bigint,
primary key (id, REV)
);
create table aud_prc_disclosure_email (
id bigint not null,
REV integer not null,
REVTYPE tinyint,
public_date datetime,
public_ind bit,
affiliation_t bigint,
disclosure_record_id bigint,
address_t bigint,
primary key (id, REV)
);
create table aud_prc_disclosure_phone (
id bigint not null,
REV integer not null,
REVTYPE tinyint,
public_date datetime,
public_ind bit,
address_t bigint,
affiliation_t bigint,
disclosure_record_id bigint,
phone_t bigint,
primary key (id, REV)
);
create table aud_prc_disclosure_url (
id bigint not null,
REV integer not null,
REVTYPE tinyint,
public_date datetime,
public_ind bit,
affiliation_t bigint,
disclosure_record_id bigint,
address_t bigint,
primary key (id, REV)
);
create table aud_prc_emails (
id bigint not null,
REV integer not null,
REVTYPE tinyint,
address varchar(100),
role_record_id bigint,
address_t bigint,
primary key (id, REV)
);
create table aud_prc_identifiers (
id bigint not null,
REV integer not null,
REVTYPE tinyint,
change_expiration_date datetime,
changeable bit,
creation_date datetime,
is_deleted bit,
deleted_date datetime,
notification_date datetime,
is_primary bit,
identifier varchar(100),
person_id bigint,
identifier_t bigint,
primary key (id, REV)
);
create table aud_prc_leaves_of_absence (
id bigint not null,
REV integer not null,
REVTYPE tinyint,
end_date date,
start_date date,
leave_t bigint,
role_record_id bigint,
primary key (id, REV)
);
create table aud_prc_names (
id bigint not null,
REV integer not null,
REVTYPE tinyint,
family_name varchar(100),
family_comparison_value varchar(100),
given_name varchar(100),
given_comparison_value varchar(100),
middle_name varchar(100),
is_official_name bit,
is_preferred_name bit,
prefix varchar(5),
name_source_id bigint,
suffix varchar(5),
person_id bigint,
name_t bigint,
primary key (id, REV)
);
create table aud_prc_persons (
id bigint not null,
REV integer not null,
REVTYPE tinyint,
act_key_end_date datetime,
act_key_lock varchar(255),
act_key_lock_expiration datetime,
act_key_start_date datetime,
activation_key varchar(255),
date_of_birth date,
gender varchar(1),
contact_email_id bigint,
contact_phone_id bigint,
primary key (id, REV)
);
create table aud_prc_phones (
id bigint not null,
REV integer not null,
REVTYPE tinyint,
area_code varchar(5),
country_code varchar(5),
extension varchar(5),
phone_number varchar(10),
phone_line_order integer,
update_date datetime,
address_t bigint,
phone_t bigint,
role_record_id bigint,
primary key (id, REV)
);
create table aud_prc_role_records (
id bigint not null,
REV integer not null,
REVTYPE tinyint,
termination_date date,
percent_time integer,
prs_role_id bigint,
sponsor_id bigint,
affiliation_date date,
title varchar(100),
affiliation_t bigint,
organizational_unit_id bigint,
person_id bigint,
person_status_t bigint,
sponsor_t bigint,
termination_t bigint,
primary key (id, REV)
);
create table aud_prc_urls (
id bigint not null,
REV integer not null,
REVTYPE tinyint,
url varchar(500),
role_record_id bigint,
address_t bigint,
primary key (id, REV)
);
create table aud_prd_campuses (
id bigint not null,
REV integer not null,
REVTYPE tinyint,
code varchar(2),
name varchar(100),
primary key (id, REV)
);
create table aud_prd_identifier_types (
identifier_t bigint not null,
REV integer not null,
REVTYPE tinyint,
deleted bit,
description varchar(200),
format varchar(100),
modifiable bit,
name varchar(100),
notifiable bit,
private bit,
primary key (identifier_t, REV)
);
create table aud_prd_system_of_record (
id bigint not null,
REV integer not null,
REVTYPE tinyint,
sor_id varchar(100),
primary key (id, REV)
);
create table aud_prs_addresses (
id bigint not null,
REV integer not null,
REVTYPE tinyint,
bldg_no varchar(10),
city varchar(100),
line1 varchar(100),
line2 varchar(100),
line3 varchar(100),
postal_code varchar(9),
room_no varchar(11),
update_date datetime,
country_id bigint,
region_id bigint,
role_record_id bigint,
address_t bigint,
primary key (id, REV)
);
create table aud_prs_disclosure (
id bigint not null,
REV integer not null,
REVTYPE tinyint,
disclosure_code varchar(10),
updated_date datetime,
within_grace_period bit,
sor_person_id bigint,
primary key (id, REV)
);
create table aud_prs_emails (
id bigint not null,
REV integer not null,
REVTYPE tinyint,
address varchar(100),
address_t bigint,
role_record_id bigint,
primary key (id, REV)
);
create table aud_prs_leaves_of_absence (
id bigint not null,
REV integer not null,
REVTYPE tinyint,
end_date date,
start_date date,
leave_t bigint,
role_record_id bigint,
primary key (id, REV)
);
create table aud_prs_names (
id bigint not null,
REV integer not null,
REVTYPE tinyint,
family_name varchar(100),
given_name varchar(100),
middle_name varchar(100),
prefix varchar(5),
suffix varchar(5),
sor_person_id bigint,
name_t bigint,
primary key (id, REV)
);
create table aud_prs_phones (
id bigint not null,
REV integer not null,
REVTYPE tinyint,
area_code varchar(5),
country_code varchar(5),
extension varchar(5),
phone_number varchar(10),
phone_line_order integer,
update_date datetime,
address_t bigint,
phone_t bigint,
role_record_id bigint,
primary key (id, REV)
);
create table aud_prs_role_records (
record_id bigint not null,
REV integer not null,
REVTYPE tinyint,
termination_date date,
percent_time integer,
id varchar(255),
sponsor_id bigint,
affiliation_date date,
title varchar(100),
affiliation_t bigint,
organizational_unit_id bigint,
sor_person_id bigint,
person_status_t bigint,
sponsor_t bigint,
system_of_record_id bigint,
termination_t bigint,
primary key (record_id, REV)
);
create table aud_prs_sor_persons (
record_id bigint not null,
REV integer not null,
REVTYPE tinyint,
date_of_birth date,
gender varchar(1),
person_id bigint,
id varchar(255),
source_sor_id varchar(255),
ssn varchar(9),
primary key (record_id, REV)
);
create table aud_prs_sor_persons_loc_attr (
REV integer not null,
sor_person_record_id bigint not null,
attribute_value varchar(255) not null,
attribute_type varchar(255) not null,
REVTYPE tinyint,
primary key (REV, sor_person_record_id, attribute_value, attribute_type)
);
create table aud_prs_urls (
id bigint not null,
REV integer not null,
REVTYPE tinyint,
url varchar(500),
role_record_id bigint,
address_t bigint,
primary key (id, REV)
);
create table auth_authorities (
id bigint not null auto_increment,
AUTHORITY_NAME varchar(255) not null,
DESCRIPTION varchar(255),
primary key (id)
);
create table auth_groups (
id bigint not null auto_increment,
DESCRIPTION varchar(255),
IS_ENABLED bit not null,
GROUP_NAME varchar(255) not null,
primary key (id)
);
create table auth_users (
id bigint not null auto_increment,
DESCRIPTION varchar(255),
IS_ENABLED bit not null,
PASSWORD varchar(255),
USER_NAME varchar(255) not null,
primary key (id)
);
create table ctd_countries (
id bigint not null auto_increment,
code varchar(3) not null,
name varchar(100) not null,
primary key (id)
);
create table ctd_regions (
id bigint not null auto_increment,
code varchar(3) not null,
name varchar(100) not null,
country_id bigint not null,
primary key (id),
unique (country_id, code)
);
create table ctx_data_types (
id bigint not null auto_increment,
data_type varchar(100) not null,
description varchar(100) not null,
primary key (id),
unique (data_type, description)
);
create table drd_organizational_units (
id bigint not null auto_increment,
code varchar(100),
name varchar(100) not null,
campus_id bigint,
parent_organizational_unit_id bigint,
organizational_unit_t bigint not null,
primary key (id)
);
create table prc_addresses (
id bigint not null auto_increment,
bldg_no varchar(10),
city varchar(100) not null,
line1 varchar(100),
line2 varchar(100),
line3 varchar(100),
postal_code varchar(9),
room_no varchar(11),
update_date datetime not null,
country_id bigint,
region_id bigint,
role_record_id bigint not null,
address_t bigint,
primary key (id),
unique (address_t, role_record_id)
);
create table prc_contact_emails (
id bigint not null auto_increment,
address varchar(100),
email_address_t bigint,
primary key (id)
);
create table prc_contact_phones (
id bigint not null auto_increment,
area_code varchar(5),
country_code varchar(5),
extension varchar(5),
phone_number varchar(10),
phone_line_order integer,
update_date datetime not null,
address_t bigint,
phone_t bigint,
primary key (id)
);
create table prc_disclosure (
id bigint not null auto_increment,
disclosure_code varchar(10),
updated_date datetime not null,
within_grace_period bit not null,
person_id bigint not null,
primary key (id),
unique (person_id)
);
create table prc_disclosure_address (
id bigint not null auto_increment,
bldg_room_date datetime not null,
bldg_room_ind bit not null,
address_date datetime not null,
address_ind bit not null,
city_region_date datetime not null,
city_region_ind bit not null,
address_t bigint not null,
affiliation_t bigint not null,
disclosure_record_id bigint not null,
primary key (id),
unique (address_t, affiliation_t, disclosure_record_id)
);
create table prc_disclosure_email (
id bigint not null auto_increment,
public_date datetime not null,
public_ind bit not null,
affiliation_t bigint not null,
disclosure_record_id bigint not null,
address_t bigint not null,
primary key (id),
unique (address_t, affiliation_t, disclosure_record_id)
);
create table prc_disclosure_phone (
id bigint not null auto_increment,
public_date datetime not null,
public_ind bit not null,
address_t bigint not null,
affiliation_t bigint not null,
disclosure_record_id bigint not null,
phone_t bigint not null,
primary key (id),
unique (address_t, phone_t, affiliation_t, disclosure_record_id)
);
create table prc_disclosure_url (
id bigint not null auto_increment,
public_date datetime not null,
public_ind bit not null,
affiliation_t bigint not null,
disclosure_record_id bigint not null,
address_t bigint not null,
primary key (id),
unique (address_t, affiliation_t, disclosure_record_id)
);
create table prc_emails (
id bigint not null auto_increment,
address varchar(100) not null,
role_record_id bigint not null,
address_t bigint not null,
primary key (id),
unique (address_t, role_record_id)
);
create table prc_identifiers (
id bigint not null auto_increment,
change_expiration_date datetime,
changeable bit,
creation_date datetime not null,
is_deleted bit not null,
deleted_date datetime,
notification_date datetime,
is_primary bit not null,
identifier varchar(100) not null,
person_id bigint not null,
identifier_t bigint not null,
primary key (id),
unique (identifier_t, identifier)
);
create table prc_leaves_of_absence (
id bigint not null auto_increment,
end_date date,
start_date date,
leave_t bigint not null,
role_record_id bigint not null,
primary key (id)
);
create table prc_names (
id bigint not null auto_increment,
family_name varchar(100),
family_comparison_value varchar(100),
given_name varchar(100) not null,
given_comparison_value varchar(100),
middle_name varchar(100),
is_official_name bit not null,
is_preferred_name bit not null,
prefix varchar(5),
name_source_id bigint not null,
suffix varchar(5),
person_id bigint not null,
name_t bigint not null,
primary key (id)
);
create table prc_persons (
id bigint not null auto_increment,
act_key_end_date datetime,
act_key_lock varchar(255),
act_key_lock_expiration datetime,
act_key_start_date datetime,
activation_key varchar(255),
date_of_birth date,
gender varchar(1),
contact_email_id bigint,
contact_phone_id bigint,
primary key (id)
);
create table prc_phones (
id bigint not null auto_increment,
area_code varchar(5) not null,
country_code varchar(5) not null,
extension varchar(5),
phone_number varchar(10) not null,
phone_line_order integer not null,
update_date datetime not null,
address_t bigint not null,
phone_t bigint not null,
role_record_id bigint not null,
primary key (id),
unique (phone_t, address_t, phone_line_order, role_record_id)
);
create table prc_role_records (
id bigint not null auto_increment,
termination_date date,
percent_time integer not null,
prs_role_id bigint,
sponsor_id bigint not null,
affiliation_date date not null,
title varchar(100) not null,
affiliation_t bigint not null,
organizational_unit_id bigint not null,
person_id bigint not null,
person_status_t bigint not null,
sponsor_t bigint not null,
termination_t bigint,
primary key (id),
unique (person_id, affiliation_t, organizational_unit_id)
);
create table prc_urls (
id bigint not null auto_increment,
url varchar(500) not null,
role_record_id bigint not null,
address_t bigint not null,
primary key (id)
);
create table prd_campuses (
id bigint not null auto_increment,
code varchar(2) not null,
name varchar(100) not null,
primary key (id),
unique (code, name)
);
create table prd_identifier_types (
identifier_t bigint not null auto_increment,
deleted bit not null,
description varchar(200) not null,
format varchar(100) not null,
modifiable bit not null,
name varchar(100) not null,
notifiable bit not null,
private bit not null,
primary key (identifier_t),
unique (name)
);
create table prd_system_of_record (
id bigint not null auto_increment,
sor_id varchar(100) not null unique,
primary key (id)
);
create table prs_addresses (
id bigint not null auto_increment,
bldg_no varchar(10),
city varchar(100) not null,
line1 varchar(100) not null,
line2 varchar(100),
line3 varchar(100),
postal_code varchar(9),
room_no varchar(11),
update_date datetime not null,
country_id bigint not null,
region_id bigint,
role_record_id bigint not null,
address_t bigint not null,
primary key (id),
unique (address_t, role_record_id)
);
create table prs_disclosure (
id bigint not null auto_increment,
disclosure_code varchar(10) not null,
updated_date datetime not null,
within_grace_period bit not null,
sor_person_id bigint not null,
primary key (id),
unique (sor_person_id)
);
create table prs_emails (
id bigint not null auto_increment,
address varchar(100) not null,
address_t bigint not null,
role_record_id bigint not null,
primary key (id),
unique (address_t, role_record_id)
);
create table prs_leaves_of_absence (
id bigint not null auto_increment,
end_date date,
start_date date not null,
leave_t bigint not null,
role_record_id bigint not null,
primary key (id)
);
create table prs_names (
id bigint not null auto_increment,
family_name varchar(100),
given_name varchar(100) not null,
middle_name varchar(100),
prefix varchar(5),
suffix varchar(5),
sor_person_id bigint not null,
name_t bigint not null,
primary key (id)
);
create table prs_phones (
id bigint not null auto_increment,
area_code varchar(5) not null,
country_code varchar(5) not null,
extension varchar(5),
phone_number varchar(10) not null,
phone_line_order integer not null,
update_date datetime not null,
address_t bigint not null,
phone_t bigint not null,
role_record_id bigint not null,
primary key (id),
unique (phone_t, address_t, phone_line_order, role_record_id)
);
create table prs_role_records (
record_id bigint not null auto_increment,
termination_date date,
percent_time integer not null,
id varchar(255) not null,
sponsor_id bigint not null,
affiliation_date date not null,
title varchar(100) not null,
affiliation_t bigint not null,
organizational_unit_id bigint not null,
sor_person_id bigint not null,
person_status_t bigint not null,
sponsor_t bigint not null,
system_of_record_id bigint not null,
termination_t bigint,
primary key (record_id),
unique (system_of_record_id, id, affiliation_t)
);
create table prs_sor_persons (
record_id bigint not null auto_increment,
date_of_birth date,
gender varchar(1),
person_id bigint,
id varchar(255),
source_sor_id varchar(255) not null,
ssn varchar(9),
primary key (record_id)
);
create table prs_sor_persons_loc_attr (
sor_person_record_id bigint not null,
attribute_value varchar(255),
attribute_type varchar(255) not null,
primary key (sor_person_record_id, attribute_type)
);
create table prs_urls (
id bigint not null auto_increment,
url varchar(500) not null,
role_record_id bigint not null,
address_t bigint not null,
primary key (id)
);
alter table AUTH_GROUP_AUTHORITY
add index FK9884C0AC417C4AB9 (AUTHORITY_ID),
add constraint FK9884C0AC417C4AB9
foreign key (AUTHORITY_ID)
references auth_authorities (id);
alter table AUTH_GROUP_AUTHORITY
add index FK9884C0ACAD419AB9 (GROUP_ID),
add constraint FK9884C0ACAD419AB9
foreign key (GROUP_ID)
references auth_groups (id);
alter table AUTH_USER_GROUP
add index FK435AE7E2DE47541B (USER_ID),
add constraint FK435AE7E2DE47541B
foreign key (USER_ID)
references auth_users (id);
alter table AUTH_USER_GROUP
add index FK435AE7E2AD419AB9 (GROUP_ID),
add constraint FK435AE7E2AD419AB9
foreign key (GROUP_ID)
references auth_groups (id);
create index AUX_PROGRAM_IDX on AUX_IDENTIFIERS (PROGRAM_ID);
create index AUX_IDENTIFIER_IDX on AUX_IDENTIFIERS (IDENTIFIER);
create index AUX_ID_ID_TYPE_IDX on AUX_IDENTIFIERS (IDENTIFIER, IDENTIFIER_T);
alter table AUX_IDENTIFIERS
add index FK793103AF4CBB02D1 (IDENTIFIER_T),
add constraint FK793103AF4CBB02D1
foreign key (IDENTIFIER_T)
references prd_identifier_types (identifier_t);
alter table AUX_IDENTIFIERS
add index FK793103AF25BEDB04 (PROGRAM_ID),
add constraint FK793103AF25BEDB04
foreign key (PROGRAM_ID)
references AUX_PROGRAMS (id);
create index AUTH_PROGRAM_NAME_IDX on AUX_PROGRAMS (PROGRAM_NAME);
alter table AUX_PROGRAMS
add index FK55A90DAA27B2F539 (SPONSOR_T),
add constraint FK55A90DAA27B2F539
foreign key (SPONSOR_T)
references ctx_data_types (id);
alter table aud_AUTH_GROUP_AUTHORITY
add index FK36C6EEDB3C81FA73 (REV),
add constraint FK36C6EEDB3C81FA73
foreign key (REV)
references SpringSecurityRevisionEntity (id);
alter table aud_AUTH_USER_GROUP
add index FK3F1258533C81FA73 (REV),
add constraint FK3F1258533C81FA73
foreign key (REV)
references SpringSecurityRevisionEntity (id);
alter table aud_AUX_IDENTIFIERS
add index FK74E874203C81FA73 (REV),
add constraint FK74E874203C81FA73
foreign key (REV)
references SpringSecurityRevisionEntity (id);
alter table aud_AUX_PROGRAMS
add index FK9C77DAD93C81FA73 (REV),
add constraint FK9C77DAD93C81FA73
foreign key (REV)
references SpringSecurityRevisionEntity (id);
alter table aud_auth_authorities
add index FK4878B0B93C81FA73 (REV),
add constraint FK4878B0B93C81FA73
foreign key (REV)
references SpringSecurityRevisionEntity (id);
alter table aud_auth_groups
add index FK16FE1D3C3C81FA73 (REV),
add constraint FK16FE1D3C3C81FA73
foreign key (REV)
references SpringSecurityRevisionEntity (id);
alter table aud_auth_users
add index FK649C3DA03C81FA73 (REV),
add constraint FK649C3DA03C81FA73
foreign key (REV)
references SpringSecurityRevisionEntity (id);
alter table aud_ctd_countries
add index FK6D6BB4393C81FA73 (REV),
add constraint FK6D6BB4393C81FA73
foreign key (REV)
references SpringSecurityRevisionEntity (id);
alter table aud_ctd_regions
add index FK4A5B6EC43C81FA73 (REV),
add constraint FK4A5B6EC43C81FA73
foreign key (REV)
references SpringSecurityRevisionEntity (id);
alter table aud_ctx_data_types
add index FK7732C62B3C81FA73 (REV),
add constraint FK7732C62B3C81FA73
foreign key (REV)
references SpringSecurityRevisionEntity (id);
alter table aud_drd_organizational_units
add index FKE8A152463C81FA73 (REV),
add constraint FKE8A152463C81FA73
foreign key (REV)
references SpringSecurityRevisionEntity (id);
alter table aud_prc_addresses
add index FKC94BEC353C81FA73 (REV),
add constraint FKC94BEC353C81FA73
foreign key (REV)
references SpringSecurityRevisionEntity (id);
alter table aud_prc_contact_emails
add index FKDD2810A33C81FA73 (REV),
add constraint FKDD2810A33C81FA73
foreign key (REV)
references SpringSecurityRevisionEntity (id);
alter table aud_prc_contact_phones
add index FKEFAD59113C81FA73 (REV),
add constraint FKEFAD59113C81FA73
foreign key (REV)
references SpringSecurityRevisionEntity (id);
alter table aud_prc_disclosure
add index FK2AD20BBA3C81FA73 (REV),
add constraint FK2AD20BBA3C81FA73
foreign key (REV)
references SpringSecurityRevisionEntity (id);
alter table aud_prc_disclosure_address
add index FK2B76F46F3C81FA73 (REV),
add constraint FK2B76F46F3C81FA73
foreign key (REV)
references SpringSecurityRevisionEntity (id);
alter table aud_prc_disclosure_email
add index FK410386D73C81FA73 (REV),
add constraint FK410386D73C81FA73
foreign key (REV)
references SpringSecurityRevisionEntity (id);
alter table aud_prc_disclosure_phone
add index FK419C78A93C81FA73 (REV),
add constraint FK419C78A93C81FA73
foreign key (REV)
references SpringSecurityRevisionEntity (id);
alter table aud_prc_disclosure_url
add index FK173E936A3C81FA73 (REV),
add constraint FK173E936A3C81FA73
foreign key (REV)
references SpringSecurityRevisionEntity (id);
alter table aud_prc_emails
add index FK3FD4B8A43C81FA73 (REV),
add constraint FK3FD4B8A43C81FA73
foreign key (REV)
references SpringSecurityRevisionEntity (id);
alter table aud_prc_identifiers
add index FK499E80BD3C81FA73 (REV),
add constraint FK499E80BD3C81FA73
foreign key (REV)
references SpringSecurityRevisionEntity (id);
alter table aud_prc_leaves_of_absence
add index FK90A030EB3C81FA73 (REV),
add constraint FK90A030EB3C81FA73
foreign key (REV)
references SpringSecurityRevisionEntity (id);
alter table aud_prc_names
add index FKF204895B3C81FA73 (REV),
add constraint FKF204895B3C81FA73
foreign key (REV)
references SpringSecurityRevisionEntity (id);
alter table aud_prc_persons
add index FKF3F449113C81FA73 (REV),
add constraint FKF3F449113C81FA73
foreign key (REV)
references SpringSecurityRevisionEntity (id);
alter table aud_prc_phones
add index FK525A01123C81FA73 (REV),
add constraint FK525A01123C81FA73
foreign key (REV)
references SpringSecurityRevisionEntity (id);
alter table aud_prc_role_records
add index FK6178D2063C81FA73 (REV),
add constraint FK6178D2063C81FA73
foreign key (REV)
references SpringSecurityRevisionEntity (id);
alter table aud_prc_urls
add index FK185628713C81FA73 (REV),
add constraint FK185628713C81FA73
foreign key (REV)
references SpringSecurityRevisionEntity (id);
alter table aud_prd_campuses
add index FK5C265FF93C81FA73 (REV),
add constraint FK5C265FF93C81FA73
foreign key (REV)
references SpringSecurityRevisionEntity (id);
alter table aud_prd_identifier_types
add index FK6101BB8F3C81FA73 (REV),
add constraint FK6101BB8F3C81FA73
foreign key (REV)
references SpringSecurityRevisionEntity (id);
alter table aud_prd_system_of_record
add index FKC7035FD53C81FA73 (REV),
add constraint FKC7035FD53C81FA73
foreign key (REV)
references SpringSecurityRevisionEntity (id);
alter table aud_prs_addresses
add index FK179718453C81FA73 (REV),
add constraint FK179718453C81FA73
foreign key (REV)
references SpringSecurityRevisionEntity (id);
alter table aud_prs_disclosure
add index FKA5EC61AA3C81FA73 (REV),
add constraint FKA5EC61AA3C81FA73
foreign key (REV)
references SpringSecurityRevisionEntity (id);
alter table aud_prs_emails
add index FKBDE786943C81FA73 (REV),
add constraint FKBDE786943C81FA73
foreign key (REV)
references SpringSecurityRevisionEntity (id);
alter table aud_prs_leaves_of_absence
add index FK6B464CFB3C81FA73 (REV),
add constraint FK6B464CFB3C81FA73
foreign key (REV)
references SpringSecurityRevisionEntity (id);
alter table aud_prs_names
add index FK40683D6B3C81FA73 (REV),
add constraint FK40683D6B3C81FA73
foreign key (REV)
references SpringSecurityRevisionEntity (id);
alter table aud_prs_phones
add index FKD06CCF023C81FA73 (REV),
add constraint FKD06CCF023C81FA73
foreign key (REV)
references SpringSecurityRevisionEntity (id);
alter table aud_prs_role_records
add index FK7F556BF63C81FA73 (REV),
add constraint FK7F556BF63C81FA73
foreign key (REV)
references SpringSecurityRevisionEntity (id);
alter table aud_prs_sor_persons
add index FK196F3DF83C81FA73 (REV),
add constraint FK196F3DF83C81FA73
foreign key (REV)
references SpringSecurityRevisionEntity (id);
alter table aud_prs_sor_persons_loc_attr
add index FKB11B21F73C81FA73 (REV),
add constraint FKB11B21F73C81FA73
foreign key (REV)
references SpringSecurityRevisionEntity (id);
alter table aud_prs_urls
add index FK33A3B2613C81FA73 (REV),
add constraint FK33A3B2613C81FA73
foreign key (REV)
references SpringSecurityRevisionEntity (id);
create index AUTH_AUTHORITY_NAME_IDX on auth_authorities (AUTHORITY_NAME);
create index AUTH_GROUP_NAME_IDX on auth_groups (GROUP_NAME);
create index AUTH_USERS_NAME_IDX on auth_users (USER_NAME);
create index COUNTRY_CODE_INDEX on ctd_countries (code);
create index COUNTRY_NAME_INDEX on ctd_countries (name);
create index REGION_COUNTRY_CODE_INDEX on ctd_regions (code, country_id);
alter table ctd_regions
add index FKFDC01DD33AAF30A (country_id),
add constraint FKFDC01DD33AAF30A
foreign key (country_id)
references ctd_countries (id);
create index TYPE_INDEX on ctx_data_types (data_type);
alter table drd_organizational_units
add index FKB08FD397919104A (campus_id),
add constraint FKB08FD397919104A
foreign key (campus_id)
references prd_campuses (id);
alter table drd_organizational_units
add index FKB08FD39773ABFE4 (organizational_unit_t),
add constraint FKB08FD39773ABFE4
foreign key (organizational_unit_t)
references ctx_data_types (id);
alter table drd_organizational_units
add index FKB08FD39749A1A6FC (parent_organizational_unit_id),
add constraint FKB08FD39749A1A6FC
foreign key (parent_organizational_unit_id)
references drd_organizational_units (id);
create index PRC_ADDRESSES_COUNTRY_ID_IDX on prc_addresses (country_id);
create index PRC_ADDRESSES_REGION_ID_IDX on prc_addresses (region_id);
create index ADDRESS_INDEX on prc_addresses (line1, city, postal_code);
alter table prc_addresses
add index FK3641138460051F26 (role_record_id),
add constraint FK3641138460051F26
foreign key (role_record_id)
references prc_role_records (id);
alter table prc_addresses
add index FK364113843AAF30A (country_id),
add constraint FK364113843AAF30A
foreign key (country_id)
references ctd_countries (id);
alter table prc_addresses
add index FK36411384C43B49AA (region_id),
add constraint FK36411384C43B49AA
foreign key (region_id)
references ctd_regions (id);
alter table prc_addresses
add index FK364113849C806F93 (address_t),
add constraint FK364113849C806F93
foreign key (address_t)
references ctx_data_types (id);
create index CONTACT_EMAIL_ADDRESS_INDEX on prc_contact_emails (address);
create index PRC_CONTACT_EMAILS_EM_ADD_IDX on prc_contact_emails (email_address_t);
alter table prc_contact_emails
add index FK552222B43ABEE2B0 (email_address_t),
add constraint FK552222B43ABEE2B0
foreign key (email_address_t)
references ctx_data_types (id);
create index CONTACT_PHONE_INDEX on prc_contact_phones (country_code, area_code, phone_number);
create index PRC_CONTACT_PHONES_PHONE_T_IDX on prc_contact_phones (phone_t);
create index PRC_CONTACT_PHONES_ADDR_T_IDX on prc_contact_phones (address_t);
alter table prc_contact_phones
add index FK67A76B2244E19A8D (phone_t),
add constraint FK67A76B2244E19A8D
foreign key (phone_t)
references ctx_data_types (id);
alter table prc_contact_phones
add index FK67A76B229C806F93 (address_t),
add constraint FK67A76B229C806F93
foreign key (address_t)
references ctx_data_types (id);
alter table prc_disclosure
add index FK5C81CE4B91BFC98A (person_id),
add constraint FK5C81CE4B91BFC98A
foreign key (person_id)
references prc_persons (id);
alter table prc_disclosure_address
add index FK15079600AED9AB97 (disclosure_record_id),
add constraint FK15079600AED9AB97
foreign key (disclosure_record_id)
references prc_disclosure (id);
alter table prc_disclosure_address
add index FK150796005D70878F (affiliation_t),
add constraint FK150796005D70878F
foreign key (affiliation_t)
references ctx_data_types (id);
alter table prc_disclosure_address
add index FK150796009C806F93 (address_t),
add constraint FK150796009C806F93
foreign key (address_t)
references ctx_data_types (id);
alter table prc_disclosure_email
add index FKA2C158A8AED9AB97 (disclosure_record_id),
add constraint FKA2C158A8AED9AB97
foreign key (disclosure_record_id)
references prc_disclosure (id);
alter table prc_disclosure_email
add index FKA2C158A85D70878F (affiliation_t),
add constraint FKA2C158A85D70878F
foreign key (affiliation_t)
references ctx_data_types (id);
alter table prc_disclosure_email
add index FKA2C158A89C806F93 (address_t),
add constraint FKA2C158A89C806F93
foreign key (address_t)
references ctx_data_types (id);
alter table prc_disclosure_phone
add index FKA35A4A7AAED9AB97 (disclosure_record_id),
add constraint FKA35A4A7AAED9AB97
foreign key (disclosure_record_id)
references prc_disclosure (id);
alter table prc_disclosure_phone
add index FKA35A4A7A5D70878F (affiliation_t),
add constraint FKA35A4A7A5D70878F
foreign key (affiliation_t)
references ctx_data_types (id);
alter table prc_disclosure_phone
add index FKA35A4A7A44E19A8D (phone_t),
add constraint FKA35A4A7A44E19A8D
foreign key (phone_t)
references ctx_data_types (id);
alter table prc_disclosure_phone
add index FKA35A4A7A9C806F93 (address_t),
add constraint FKA35A4A7A9C806F93
foreign key (address_t)
references ctx_data_types (id);
alter table prc_disclosure_url
add index FK8F38A57BAED9AB97 (disclosure_record_id),
add constraint FK8F38A57BAED9AB97
foreign key (disclosure_record_id)
references prc_disclosure (id);
alter table prc_disclosure_url
add index FK8F38A57B5D70878F (affiliation_t),
add constraint FK8F38A57B5D70878F
foreign key (affiliation_t)
references ctx_data_types (id);
alter table prc_disclosure_url
add index FK8F38A57B9C806F93 (address_t),
add constraint FK8F38A57B9C806F93
foreign key (address_t)
references ctx_data_types (id);
create index EMAIL_ADDRESS_INDEX on prc_emails (address);
alter table prc_emails
add index FK66A66BB560051F26 (role_record_id),
add constraint FK66A66BB560051F26
foreign key (role_record_id)
references prc_role_records (id);
alter table prc_emails
add index FK66A66BB59C806F93 (address_t),
add constraint FK66A66BB59C806F93
foreign key (address_t)
references ctx_data_types (id);
create index ID_ID_TYPE_INDEX on prc_identifiers (identifier, identifier_t);
create index PRC_IDENTIF_PERSON_IDX on prc_identifiers (person_id);
create index ID_IDENTIFIER_INDEX on prc_identifiers (identifier);
alter table prc_identifiers
add index FK4DE7104C4CBB02D1 (identifier_t),
add constraint FK4DE7104C4CBB02D1
foreign key (identifier_t)
references prd_identifier_types (identifier_t);
alter table prc_identifiers
add index FK4DE7104C91BFC98A (person_id),
add constraint FK4DE7104C91BFC98A
foreign key (person_id)
references prc_persons (id);
create index PRC_LEAVE_OF_ABS_ROLE_REC_IDX on prc_leaves_of_absence (role_record_id);
create index PRC_LEAVE_OF_ABSENCE_LEAVE_IDX on prc_leaves_of_absence (leave_t);
alter table prc_leaves_of_absence
add index FK669C993A60051F26 (role_record_id),
add constraint FK669C993A60051F26
foreign key (role_record_id)
references prc_role_records (id);
alter table prc_leaves_of_absence
add index FK669C993A6B687D96 (leave_t),
add constraint FK669C993A6B687D96
foreign key (leave_t)
references ctx_data_types (id);
create index PRC_NAMES_NAME_T_IDX on prc_names (name_t);
create index PRC_NAMES_PERSON_ID_IDX on prc_names (person_id);
create index NAME_GIVEN_FAMILY_INDEX on prc_names (given_name, family_name);
create index PRC_NAMES_OFF_NAME_IDX on prc_names (is_official_name);
create index PRC_NAMES_PREF_NAME_IDX on prc_names (is_preferred_name);
create index NAME_FAMILY_INDEX on prc_names (family_name);
create index NAME_GIVEN_INDEX on prc_names (given_name);
alter table prc_names
add index FK3D97B02A299F046A (name_t),
add constraint FK3D97B02A299F046A
foreign key (name_t)
references ctx_data_types (id);
alter table prc_names
add index FK3D97B02A91BFC98A (person_id),
add constraint FK3D97B02A91BFC98A
foreign key (person_id)
references prc_persons (id);
create index PRC_PERSONS_CONTACT_PHONE_IDX on prc_persons (contact_phone_id);
create index PRC_PERSONS_CONTACT_EMAIL_IDX on prc_persons (contact_email_id);
alter table prc_persons
add index FKA758F820A2BC9F69 (contact_phone_id),
add constraint FKA758F820A2BC9F69
foreign key (contact_phone_id)
references prc_contact_phones (id);
alter table prc_persons
add index FKA758F8203B0602E5 (contact_email_id),
add constraint FKA758F8203B0602E5
foreign key (contact_email_id)
references prc_contact_emails (id);
create index PHONE_INDEX on prc_phones (country_code, area_code, phone_number);
alter table prc_phones
add index FK792BB42360051F26 (role_record_id),
add constraint FK792BB42360051F26
foreign key (role_record_id)
references prc_role_records (id);
alter table prc_phones
add index FK792BB42344E19A8D (phone_t),
add constraint FK792BB42344E19A8D
foreign key (phone_t)
references ctx_data_types (id);
alter table prc_phones
add index FK792BB4239C806F93 (address_t),
add constraint FK792BB4239C806F93
foreign key (address_t)
references ctx_data_types (id);
create index PRC_ROLE_RECORDS_PRS_STAT_IDX on prc_role_records (person_status_t);
create index PRC_ROLE_RECORDS_SPONSOR_IDX on prc_role_records (sponsor_t);
create index PRC_ROLE_REC_PRS_ROLE_REC_IDX on prc_role_records (prs_role_id);
create index PRC_ROLE_RECORDS_TERM_IDX on prc_role_records (termination_t);
alter table prc_role_records
add index FKE642345727B2F539 (sponsor_t),
add constraint FKE642345727B2F539
foreign key (sponsor_t)
references ctx_data_types (id);
alter table prc_role_records
add index FKE64234575D70878F (affiliation_t),
add constraint FKE64234575D70878F
foreign key (affiliation_t)
references ctx_data_types (id);
alter table prc_role_records
add index FKE64234575ABC21BB (person_status_t),
add constraint FKE64234575ABC21BB
foreign key (person_status_t)
references ctx_data_types (id);
alter table prc_role_records
add index FKE642345730C4EFC7 (organizational_unit_id),
add constraint FKE642345730C4EFC7
foreign key (organizational_unit_id)
references drd_organizational_units (id);
alter table prc_role_records
add index FKE642345791BFC98A (person_id),
add constraint FKE642345791BFC98A
foreign key (person_id)
references prc_persons (id);
alter table prc_role_records
add index FKE64234571FEF16A3 (termination_t),
add constraint FKE64234571FEF16A3
foreign key (termination_t)
references ctx_data_types (id);
create index PRC_URLS_ADDRESS_T_IDX on prc_urls (address_t);
create index PRC_URLS_ROLE_RECORD_ID_IDX on prc_urls (role_record_id);
alter table prc_urls
add index FKAF6B6BC260051F26 (role_record_id),
add constraint FKAF6B6BC260051F26
foreign key (role_record_id)
references prc_role_records (id);
alter table prc_urls
add index FKAF6B6BC29C806F93 (address_t),
add constraint FKAF6B6BC29C806F93
foreign key (address_t)
references ctx_data_types (id);
create index PRS_ADDRESSES_REGION_ID_IDX on prs_addresses (region_id);
create index PRS_ADDRESS_ROLE_INDEX on prs_addresses (role_record_id);
create index PRS_ADDRESSES_COUNTRY_ID_IDX on prs_addresses (country_id);
alter table prs_addresses
add index FK848C3F94F396A254 (role_record_id),
add constraint FK848C3F94F396A254
foreign key (role_record_id)
references prs_role_records (record_id);
alter table prs_addresses
add index FK848C3F943AAF30A (country_id),
add constraint FK848C3F943AAF30A
foreign key (country_id)
references ctd_countries (id);
alter table prs_addresses
add index FK848C3F94C43B49AA (region_id),
add constraint FK848C3F94C43B49AA
foreign key (region_id)
references ctd_regions (id);
alter table prs_addresses
add index FK848C3F949C806F93 (address_t),
add constraint FK848C3F949C806F93
foreign key (address_t)
references ctx_data_types (id);
alter table prs_disclosure
add index FKD79C243BF6F86DCF (sor_person_id),
add constraint FKD79C243BF6F86DCF
foreign key (sor_person_id)
references prs_sor_persons (record_id);
create index PRS_EMAIL_ROLE_INDEX on prs_emails (role_record_id);
alter table prs_emails
add index FKE4B939A5F396A254 (role_record_id),
add constraint FKE4B939A5F396A254
foreign key (role_record_id)
references prs_role_records (record_id);
alter table prs_emails
add index FKE4B939A59C806F93 (address_t),
add constraint FKE4B939A59C806F93
foreign key (address_t)
references ctx_data_types (id);
create index PRS_LEAV_ABSENCE_LEAVE_T_IDX on prs_leaves_of_absence (leave_t);
create index PRS_LOA_ROLE_INDEX on prs_leaves_of_absence (role_record_id);
alter table prs_leaves_of_absence
add index FK4142B54AF396A254 (role_record_id),
add constraint FK4142B54AF396A254
foreign key (role_record_id)
references prs_role_records (record_id);
alter table prs_leaves_of_absence
add index FK4142B54A6B687D96 (leave_t),
add constraint FK4142B54A6B687D96
foreign key (leave_t)
references ctx_data_types (id);
create index PRS_NAMES_NAME_T_IDX on prs_names (name_t);
create index PRS_NAME_PERSON_INDEX on prs_names (sor_person_id);
alter table prs_names
add index FK8BFB643A299F046A (name_t),
add constraint FK8BFB643A299F046A
foreign key (name_t)
references ctx_data_types (id);
alter table prs_names
add index FK8BFB643AF6F86DCF (sor_person_id),
add constraint FK8BFB643AF6F86DCF
foreign key (sor_person_id)
references prs_sor_persons (record_id);
create index PRS_PHONE_ROLE_INDEX on prs_phones (role_record_id);
alter table prs_phones
add index FKF73E8213F396A254 (role_record_id),
add constraint FKF73E8213F396A254
foreign key (role_record_id)
references prs_role_records (record_id);
alter table prs_phones
add index FKF73E821344E19A8D (phone_t),
add constraint FKF73E821344E19A8D
foreign key (phone_t)
references ctx_data_types (id);
alter table prs_phones
add index FKF73E82139C806F93 (address_t),
add constraint FKF73E82139C806F93
foreign key (address_t)
references ctx_data_types (id);
create index PRS_ROLE_REC_PERS_STAT_T_IDX on prs_role_records (person_status_t);
create index PRS_ROLE_RECORDS_SPONSOR_T_IDX on prs_role_records (sponsor_t);
create index PRS_ROLE_REC_ORG_UNIT_ID_IDX on prs_role_records (organizational_unit_id);
create index PRS_ROLE_SOR_PERSON_INDEX on prs_role_records (sor_person_id);
create index PRS_ROLE_REC_TERM_T_IDX on prs_role_records (termination_t);
alter table prs_role_records
add index FK41ECE4727B2F539 (sponsor_t),
add constraint FK41ECE4727B2F539
foreign key (sponsor_t)
references ctx_data_types (id);
alter table prs_role_records
add index FK41ECE475D70878F (affiliation_t),
add constraint FK41ECE475D70878F
foreign key (affiliation_t)
references ctx_data_types (id);
alter table prs_role_records
add index FK41ECE475ABC21BB (person_status_t),
add constraint FK41ECE475ABC21BB
foreign key (person_status_t)
references ctx_data_types (id);
alter table prs_role_records
add index FK41ECE4730C4EFC7 (organizational_unit_id),
add constraint FK41ECE4730C4EFC7
foreign key (organizational_unit_id)
references drd_organizational_units (id);
alter table prs_role_records
add index FK41ECE47F6F86DCF (sor_person_id),
add constraint FK41ECE47F6F86DCF
foreign key (sor_person_id)
references prs_sor_persons (record_id);
alter table prs_role_records
add index FK41ECE471FEF16A3 (termination_t),
add constraint FK41ECE471FEF16A3
foreign key (termination_t)
references ctx_data_types (id);
alter table prs_role_records
add index FK41ECE4796BAEDE0 (system_of_record_id),
add constraint FK41ECE4796BAEDE0
foreign key (system_of_record_id)
references prd_system_of_record (id);
create index SOR_PERSON_SOURCE_AND_ID_INDEX on prs_sor_persons (source_sor_id, id);
alter table prs_sor_persons_loc_attr
add index FK7909A348167CE9DB (sor_person_record_id),
add constraint FK7909A348167CE9DB
foreign key (sor_person_record_id)
references prs_sor_persons (record_id);
create index PRS_URL_ROLE_INDEX on prs_urls (role_record_id);
create index PRS_URLS_ADDRESS_T_IDX on prs_urls (address_t);
alter table prs_urls
add index FKCAB8F5B2F396A254 (role_record_id),
add constraint FKCAB8F5B2F396A254
foreign key (role_record_id)
references prs_role_records (record_id);
alter table prs_urls
add index FKCAB8F5B29C806F93 (address_t),
add constraint FKCAB8F5B29C806F93
foreign key (address_t)
references ctx_data_types (id);
|
CREATE OR REPLACE PUBLIC SYNONYM eh_users_pkg FOR orient.eh_users_pkg; |
DROP TABLE brand;
DROP TABLE company;
CREATE TABLE "brand" (
"index" INT NOT NULL,
"Brand" VARCHAR NOT NULL,
"Country" VARCHAR,
"Whiskies" INT,
"Votes" INT,
"Rating" NUMERIC(5,2),
"Brand_Ranking" VARCHAR NOT NULL
);
CREATE TABLE "company" (
"index" INT NOT NULL,
"Company" VARCHAR NOT NULL,
"Country" VARCHAR,
"Rating" NUMERIC(5,2),
"Whisky" INT,
"Collection" INT,
lon NUMERIC(10,7) NOT NULL,
lat NUMERIC(10,7) NOT NULL
);
SELECT * FROM "brand";
SELECT * FROM "company"; |
Create Procedure mERP_sp_GetLatestIni(@Transaction nVarchar(255),@PrintMode Int = 0)
As
Begin
If @PrintMode = 0
Select IniName,isNull(PrintMode,0) From tbl_mERP_TransactionIni
Where TransactionName = @Transaction And Active = 1
Else
Select IniName,isNull(PrintMode,0) From tbl_mERP_TransactionIni
Where TransactionName = @Transaction And Active = 1 And PrintMode = @PrintMode
End
|
DROP TABLE `alerts` IF EXISTS;
CREATE TABLE `alerts` (
`id` bigint(20) NOT NULL,
`alert` varchar(255) NOT NULL,
`created_at` date NOT NULL,
`updated_at` date NOT NULL,
PRIMARY KEY (`id`)
);
DROP TABLE `annotations` IF EXISTS;
CREATE TABLE `annotations` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`date` date NOT NULL,
`annotation_type` varchar(255) NOT NULL,
`note` text NOT NULL,
`updater_user_id` int(11) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
`deleted` tinyint(1) NOT NULL DEFAULT '0',
`annotateable_type` varchar(255) DEFAULT NULL,
`annotateable_id` int(11) DEFAULT NULL,
PRIMARY KEY (`id`)
);
DROP TABLE `backfills` IF EXISTS;
CREATE TABLE `backfills` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`backfillable_type` varchar(255) NOT NULL,
`backfillable_id` int(11) NOT NULL,
`start_time` datetime NOT NULL,
`end_time` datetime DEFAULT NULL,
`from_date` date NOT NULL,
`to_date` date NOT NULL,
`contact_email` varchar(255) DEFAULT NULL,
`progress` decimal(5,2) DEFAULT '0.00',
`finished` tinyint(1) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`)
);
DROP TABLE `bad_parses` IF EXISTS;
CREATE TABLE `bad_parses` (
`keyword_id` int(11) NOT NULL,
`created_at` date NOT NULL
);
DROP TABLE `bulk_jobs` IF EXISTS;
CREATE TABLE `bulk_jobs` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`uuid` varchar(36) NOT NULL,
`api` varchar(255) DEFAULT NULL,
`job` varchar(255) NOT NULL,
`status` varchar(255) NOT NULL DEFAULT 'NotStarted',
`vars` longtext,
`output` varchar(255) DEFAULT NULL,
`created_at` datetime DEFAULT NULL,
`updated_at` datetime DEFAULT NULL,
`params_file_name` varchar(255) DEFAULT NULL,
`requested_date` datetime DEFAULT NULL,
`expected_count` int(11) DEFAULT NULL,
`actual_count` int(11) DEFAULT NULL,
PRIMARY KEY (`id`)
);
DROP TABLE `calendar` IF EXISTS;
CREATE TABLE `calendar` (
`c_date` date DEFAULT NULL
);
DROP TABLE `crawl_keywords` IF EXISTS;
CREATE TABLE `crawl_keywords` (
`keyword_id` int(11) NOT NULL,
`created_at` date NOT NULL
);
DROP TABLE `crawl_states` IF EXISTS;
CREATE TABLE `crawl_states` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`engine` varchar(255) NOT NULL,
`crawl_keywords_count` bigint(20) NOT NULL,
`engine_count` bigint(20) NOT NULL,
`unknown_count` bigint(20) DEFAULT NULL,
`percentage_done` decimal(7,4) DEFAULT NULL,
`unknown_percentage` decimal(7,4) DEFAULT NULL,
`crawl_date` date NOT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`)
);
DROP TABLE `devices` IF EXISTS;
CREATE TABLE `devices` (
`id` tinyint(4) NOT NULL AUTO_INCREMENT,
`name` varchar(32) NOT NULL,
PRIMARY KEY (`id`)
);
DROP TABLE `keyword_annotations` IF EXISTS;
CREATE TABLE `keyword_annotations` (
`id` bigint(20) NOT NULL,
`keyword_id` bigint(20) NOT NULL,
`rank_id` int(11) NOT NULL,
`annotation_type` varchar(255) NOT NULL,
`date` varchar(255) NOT NULL,
`note` varchar(255) NOT NULL,
`created_at` date NOT NULL,
`updated_at` datetime DEFAULT NULL
);
DROP TABLE `keyword_daily_ranks` IF EXISTS;
CREATE TABLE `keyword_daily_ranks` (
`id` bigint(20) NOT NULL,
`keyword_id` bigint(20) NOT NULL,
`google_rank` int(11) DEFAULT NULL,
`google_base_rank` int(11) DEFAULT NULL,
`google_display_rank` int(11) DEFAULT NULL,
`google_movement` int(11) NOT NULL,
`gurl_id` int(11) DEFAULT NULL,
`yahoo_rank` int(11) DEFAULT NULL,
`yahoo_movement` int(11) NOT NULL,
`yurl_id` int(11) DEFAULT NULL,
`bing_rank` int(11) DEFAULT NULL,
`bing_movement` int(11) NOT NULL,
`burl_id` int(11) DEFAULT NULL,
`advertiser_competition` float DEFAULT NULL,
`global_monthly_searches` int(11) DEFAULT NULL,
`regional_monthly_searches` int(11) DEFAULT NULL,
`cpc` decimal(5,2) DEFAULT NULL,
`google_results` bigint(20) DEFAULT NULL,
`google_kei` float DEFAULT NULL,
`created_at` date NOT NULL,
PRIMARY KEY (`id`)
);
DROP TABLE `keyword_google_local_ranks` IF EXISTS;
CREATE TABLE `keyword_google_local_ranks` (
`id` bigint(20) NOT NULL,
`keyword_id` bigint(20) NOT NULL,
`rank` int(11) DEFAULT NULL,
`display_rank` int(11) DEFAULT NULL,
`base_rank` int(11) DEFAULT NULL,
`movement` int(11) DEFAULT NULL,
`url_id` int(11) DEFAULT NULL,
`created_at` date NOT NULL,
`updated_at` date DEFAULT NULL
);
DROP TABLE `keyword_google_ranks` IF EXISTS;
CREATE TABLE `keyword_google_ranks` (
`id` bigint(20) NOT NULL,
`keyword_id` bigint(20) NOT NULL,
`rank` int(11) DEFAULT NULL,
`display_rank` int(11) DEFAULT NULL,
`base_rank` int(11) DEFAULT NULL,
`movement` int(11) DEFAULT NULL,
`url_id` int(11) DEFAULT NULL,
`created_at` date NOT NULL,
`updated_at` date NOT NULL
);
DROP TABLE `keyword_highest_ranks` IF EXISTS;
CREATE TABLE `keyword_highest_ranks` (
`id` bigint(20) NOT NULL,
`keyword_id` bigint(20) NOT NULL,
`google_rank` int(11) DEFAULT NULL,
`google_display_rank` int(11) DEFAULT NULL,
`google_base_rank` int(11) DEFAULT NULL,
`google_movement` int(11) NOT NULL,
`gurl_id` int(11) DEFAULT NULL,
`yahoo_rank` int(11) DEFAULT NULL,
`yahoo_movement` int(11) NOT NULL,
`yurl_id` int(11) DEFAULT NULL,
`bing_rank` int(11) DEFAULT NULL,
`bing_movement` int(11) NOT NULL,
`burl_id` int(11) DEFAULT NULL,
`created_at` date NOT NULL,
`updated_at` date NOT NULL
);
DROP TABLE `keyword_stats` IF EXISTS;
CREATE TABLE `keyword_stats` (
`id` bigint(20) NOT NULL,
`keyword_id` bigint(20) NOT NULL,
`google_results` bigint(20) DEFAULT NULL,
`google_kei` float DEFAULT NULL,
`yahoo_results` bigint(20) DEFAULT NULL,
`yahoo_kei` float DEFAULT NULL,
`bing_results` bigint(20) DEFAULT NULL,
`bing_kei` float DEFAULT NULL,
`created_at` date NOT NULL,
`updated_at` date DEFAULT NULL
);
DROP TABLE `keywords` IF EXISTS;
CREATE TABLE `keywords` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`site_id` bigint(20) NOT NULL,
`keyword` varchar(255) NOT NULL,
`translation` varchar(255) DEFAULT NULL,
`checksum` varchar(255) DEFAULT NULL,
`tracking` tinyint(1) NOT NULL DEFAULT '1',
`created_at` datetime DEFAULT NULL,
`updated_at` datetime DEFAULT NULL,
`device_id` tinyint(4) NOT NULL DEFAULT '1',
`location` varchar(255) DEFAULT NULL,
`deleted` tinyint(1) NOT NULL DEFAULT '0',
`market_id` int(11) NOT NULL,
PRIMARY KEY (`id`)
);
DROP TABLE `keywords_search_volumes` IF EXISTS;
CREATE TABLE `keywords_search_volumes` (
`keyword_id` bigint(20) NOT NULL,
`search_volume_id` bigint(20) NOT NULL,
PRIMARY KEY (`keyword_id`,`search_volume_id`)
);
DROP TABLE `keywords_tags` IF EXISTS;
CREATE TABLE `keywords_tags` (
`keyword_id` bigint(20) NOT NULL,
`tag_id` bigint(20) NOT NULL,
`created_at` date NOT NULL,
`updated_at` date NOT NULL,
`deleted` tinyint(1) NOT NULL DEFAULT '0',
PRIMARY KEY (`keyword_id`,`tag_id`)
);
DROP TABLE `markets` IF EXISTS;
CREATE TABLE `markets` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`region` varchar(255) NOT NULL,
`lang` varchar(255) NOT NULL,
`region_name` varchar(255) NOT NULL,
`lang_name` varchar(255) NOT NULL,
PRIMARY KEY (`id`)
);
DROP TABLE `persistent_logins` IF EXISTS;
CREATE TABLE `persistent_logins` (
`login` varchar(255) NOT NULL,
`series` varchar(64) NOT NULL,
`token` varchar(64) NOT NULL,
`last_used` timestamp NOT NULL,
PRIMARY KEY (`series`)
);
DROP TABLE `report_attributes` IF EXISTS;
CREATE TABLE `report_attributes` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`report_id` int(11) NOT NULL,
`attribute_name` varchar(255) NOT NULL,
`attribute_value` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`)
);
DROP TABLE `reportable_objects` IF EXISTS;
CREATE TABLE `reportable_objects` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`scheduled_report_id` int(11) NOT NULL,
`reportable_id` int(11) NOT NULL,
`reportable_type` varchar(255) NOT NULL,
`deleted` tinyint(1) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`)
);
DROP TABLE `reports` IF EXISTS;
CREATE TABLE `reports` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`uuid` varchar(36) NOT NULL,
`file_name` varchar(255) NOT NULL,
`created_at` date NOT NULL,
`updated_at` date NOT NULL,
`deleted` tinyint(1) NOT NULL DEFAULT '0',
`state` varchar(255) NOT NULL DEFAULT 'waiting',
`progress` decimal(5,2) NOT NULL DEFAULT '0.00',
`scheduled_report_id` int(11) NOT NULL,
PRIMARY KEY (`id`)
);
DROP TABLE `routine_histories` IF EXISTS;
CREATE TABLE `routine_histories` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`crawl_date` date DEFAULT NULL,
`routine` varchar(255) NOT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`)
);
DROP TABLE `scheduled_report_attributes` IF EXISTS;
CREATE TABLE `scheduled_report_attributes` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`scheduled_report_id` bigint(20) NOT NULL,
`attribute_name` varchar(255) NOT NULL,
`attribute_value` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`)
);
DROP TABLE `scheduled_reports` IF EXISTS;
CREATE TABLE `scheduled_reports` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`report_name` varchar(255) NOT NULL,
`report_description` text,
`email` varchar(255) DEFAULT NULL,
`created_at` date NOT NULL,
`updated_at` date NOT NULL,
`deleted` tinyint(1) NOT NULL DEFAULT '0',
`schedule_interval` varchar(32) NOT NULL DEFAULT 'never',
`granularity` varchar(255) DEFAULT NULL,
`report_type` varchar(255) NOT NULL DEFAULT 'RankingsReport',
PRIMARY KEY (`id`)
);
DROP TABLE `scheduled_reports_sites` IF EXISTS;
CREATE TABLE `scheduled_reports_sites` (
`site_id` bigint(20) NOT NULL,
`scheduled_report_id` bigint(20) NOT NULL,
`deleted` tinyint(1) NOT NULL DEFAULT '0',
PRIMARY KEY (`site_id`,`scheduled_report_id`)
);
DROP TABLE `search_volumes` IF EXISTS;
CREATE TABLE `search_volumes` (
`id` bigint(20) NOT NULL,
`advertiser_competition` float DEFAULT NULL,
`global_monthly_searches` int(11) DEFAULT NULL,
`regional_monthly_searches` int(11) DEFAULT NULL,
`year_avg` text,
`cpc` decimal(5,2) DEFAULT NULL,
`created_at` date NOT NULL,
`updated_at` date DEFAULT NULL,
`latest_google_month` tinyint(4) DEFAULT NULL,
PRIMARY KEY (`id`)
);
DROP TABLE `site_distribs` IF EXISTS;
CREATE TABLE `site_distribs` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`site_id` bigint(20) NOT NULL,
`crawl_date` int(8) NOT NULL,
`one` int(11) DEFAULT NULL,
`two` int(11) DEFAULT NULL,
`three` int(11) DEFAULT NULL,
`four` int(11) DEFAULT NULL,
`five` int(11) DEFAULT NULL,
`six_to_ten` int(11) DEFAULT NULL,
`eleven_to_twenty` int(11) DEFAULT NULL,
`twenty_one_to_thirty` int(11) DEFAULT NULL,
`thirty_one_to_forty` int(11) DEFAULT NULL,
`forty_one_to_fifty` int(11) DEFAULT NULL,
`fifty_one_to_hundred` int(11) DEFAULT NULL,
`non_ranking` int(11) DEFAULT NULL,
`created_at` datetime DEFAULT NULL,
`updated_at` datetime DEFAULT NULL,
PRIMARY KEY (`id`)
);
DROP TABLE `site_search_volumes` IF EXISTS;
CREATE TABLE `site_search_volumes` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`site_id` bigint(20) NOT NULL,
`crawl_date` int(8) NOT NULL,
`global_aggregate_sv` bigint(20) DEFAULT NULL,
`global_average_sv` decimal(15,4) DEFAULT NULL,
`regional_aggregate_sv` bigint(20) DEFAULT NULL,
`regional_average_sv` decimal(15,4) DEFAULT NULL,
`created_at` datetime DEFAULT NULL,
`updated_at` datetime DEFAULT NULL,
PRIMARY KEY (`id`)
);
DROP TABLE `site_stats` IF EXISTS;
CREATE TABLE `site_stats` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`site_id` bigint(20) NOT NULL,
`crawl_date` int(8) NOT NULL,
`backlinks` bigint(20) DEFAULT NULL,
`indexed` bigint(20) DEFAULT NULL,
`pagerank` int(11) DEFAULT '0',
`non_ranking_value` int(11) DEFAULT NULL,
`total_keywords` int(11) DEFAULT NULL,
`tracked_keywords` int(11) DEFAULT NULL,
`ranking_keywords` int(11) DEFAULT NULL,
`untracked_keywords` int(11) DEFAULT NULL,
`unique_keywords` int(11) DEFAULT NULL,
`non_unique_keywords` int(11) DEFAULT NULL,
`google_ranking_keywords` int(11) DEFAULT NULL,
`google_base_ranking_keywords` int(11) DEFAULT NULL,
`google_top_ten_keywords` int(11) DEFAULT NULL,
`google_average` float DEFAULT NULL,
`google_base_average` float DEFAULT NULL,
`created_at` datetime DEFAULT NULL,
`updated_at` datetime DEFAULT NULL,
PRIMARY KEY (`id`)
);
DROP TABLE `sites` IF EXISTS;
CREATE TABLE `sites` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`user_id` bigint(20) NOT NULL,
`title` varchar(255) NOT NULL,
`url` varchar(255) NOT NULL,
`created_at` date DEFAULT NULL,
`updated_at` date DEFAULT NULL,
`tracking` tinyint(1) NOT NULL DEFAULT '1',
`deleted` tinyint(1) NOT NULL DEFAULT '0',
`drop_www_prefix` tinyint(1) NOT NULL DEFAULT '1',
`drop_directories` tinyint(1) NOT NULL DEFAULT '0',
`contact_email` varchar(255) DEFAULT NULL,
`treat_non_ranking_as` float DEFAULT NULL,
`non_ranking_value` int(11) DEFAULT NULL,
PRIMARY KEY (`id`)
);
DROP TABLE `sites_alerts` IF EXISTS;
CREATE TABLE `sites_alerts` (
`site_id` bigint(20) NOT NULL,
`alert_id` bigint(20) NOT NULL,
PRIMARY KEY (`site_id`,`alert_id`)
);
DROP TABLE `sites_annotations` IF EXISTS;
CREATE TABLE `sites_annotations` (
`site_id` bigint(20) NOT NULL,
`annotation_id` bigint(20) NOT NULL,
PRIMARY KEY (`site_id`,`annotation_id`)
);
DROP TABLE `tag_distribs` IF EXISTS;
CREATE TABLE `tag_distribs` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`tag_id` bigint(20) NOT NULL,
`crawl_date` int(8) NOT NULL,
`one` int(11) DEFAULT NULL,
`two` int(11) DEFAULT NULL,
`three` int(11) DEFAULT NULL,
`four` int(11) DEFAULT NULL,
`five` int(11) DEFAULT NULL,
`six_to_ten` int(11) DEFAULT NULL,
`eleven_to_twenty` int(11) DEFAULT NULL,
`twenty_one_to_thirty` int(11) DEFAULT NULL,
`thirty_one_to_forty` int(11) DEFAULT NULL,
`forty_one_to_fifty` int(11) DEFAULT NULL,
`fifty_one_to_hundred` int(11) DEFAULT NULL,
`non_ranking` int(11) DEFAULT NULL,
`created_at` datetime DEFAULT NULL,
`updated_at` datetime DEFAULT NULL,
PRIMARY KEY (`id`)
);
DROP TABLE `tag_search_volumes` IF EXISTS;
CREATE TABLE `tag_search_volumes` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`tag_id` bigint(20) NOT NULL,
`crawl_date` int(8) NOT NULL,
`global_aggregate_sv` bigint(20) DEFAULT NULL,
`global_average_sv` decimal(15,4) DEFAULT NULL,
`regional_aggregate_sv` bigint(20) DEFAULT NULL,
`regional_average_sv` decimal(15,4) DEFAULT NULL,
`created_at` datetime DEFAULT NULL,
`updated_at` datetime DEFAULT NULL,
PRIMARY KEY (`id`)
);
DROP TABLE `tag_stats` IF EXISTS;
CREATE TABLE `tag_stats` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`tag_id` bigint(20) NOT NULL,
`crawl_date` int(8) NOT NULL,
`total_keywords` int(11) DEFAULT NULL,
`tracked_keywords` int(11) DEFAULT NULL,
`ranking_keywords` int(11) DEFAULT NULL,
`google_ranking_keywords` int(11) DEFAULT NULL,
`google_base_ranking_keywords` int(11) DEFAULT NULL,
`google_top_ten_keywords` int(11) DEFAULT NULL,
`google_average` float DEFAULT NULL,
`google_base_average` float DEFAULT NULL,
`created_at` datetime DEFAULT NULL,
`updated_at` datetime DEFAULT NULL,
PRIMARY KEY (`id`)
);
DROP TABLE `tags` IF EXISTS;
CREATE TABLE `tags` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`site_id` bigint(20) NOT NULL,
`tag` varchar(255) NOT NULL,
`created_at` date DEFAULT NULL,
`updated_at` date DEFAULT NULL,
`deleted` tinyint(1) NOT NULL DEFAULT '0',
`report_tag` tinyint(1) NOT NULL DEFAULT '0',
`filter_refresh` varchar(255) DEFAULT NULL,
`backfill_id` int(11) DEFAULT NULL,
PRIMARY KEY (`id`)
);
DROP TABLE `url_infos` IF EXISTS;
CREATE TABLE `url_infos` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`url_id` bigint(20) DEFAULT NULL,
`created_by` varchar(255) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
`malware` tinyint(1) DEFAULT NULL,
`domain_name` varchar(255) DEFAULT NULL,
`query_string` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`)
);
DROP TABLE `urls` IF EXISTS;
CREATE TABLE `urls` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`value` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`)
);
DROP TABLE `user_apis` IF EXISTS;
CREATE TABLE `user_apis` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`user_id` bigint(20) NOT NULL,
`api_key` varchar(255) NOT NULL,
`ips` varchar(255) DEFAULT NULL,
`count` int(11) NOT NULL DEFAULT '0',
`api_limit` int(11) NOT NULL DEFAULT '1000',
`created_at` date DEFAULT NULL,
`updated_at` date DEFAULT NULL,
`deleted` tinyint(1) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`)
);
DROP TABLE `users` IF EXISTS;
CREATE TABLE `users` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`login` varchar(255) DEFAULT NULL,
`email` varchar(255) DEFAULT NULL,
`deleted_at` datetime DEFAULT NULL,
`updated_at` datetime DEFAULT NULL,
`created_at` datetime DEFAULT NULL,
`deleted` tinyint(1) DEFAULT '0',
`password` varchar(100) NOT NULL,
`nicename` varchar(255) NOT NULL,
PRIMARY KEY (`id`)
);
|
-- Create table with 5hr clean regions for reverse engineering IAC
use janice;
DROP TABLE if exists clean_regions_5hr;
CREATE TABLE clean_regions_5hr (
rtime datetime NOT NULL PRIMARY KEY,
bg0 integer,
bg1 integer,
bolus float
);
|
CREATE DATABASE server2;
\c server2
DROP TABLE IF EXISTS workshop;
CREATE TABLE workshop (
id SERIAL PRIMARY KEY,
title TEXT,
date DATE,
location TEXT,
maxseats INTEGETER,
instructor TEXT,
seatsTaken TEXT
);
DROP TABLE IF EXISTS workshop;
CREATE TABLE users (
firstname TEXT,
lastname TEXT,
username TEXT PRIMARY KEY,
email TEXT
);
DROP TABLE IF EXISTS enroll;
CREATE TABLE enroll (
id INTEGER REFERENCES workshop(id),
username TEXT REFERENCES users(username),
PRIMARY KEY (id,username)
);
|
Select *
from libro
where
id IN (
Select prestamo_detalle.libro_id as id
from prestamo
left join prestamo_detalle on prestamo_detalle.prestamo_id = prestamo.id
where fecha_salida > '2020-03-01'
)
order by id; |
--ALTER VIEW Z_IMINVLOC_QOO AS
--Created: 9/6/12 By: BG
--Last Updated: 9/6/12 By: BG
--Purpose: View for calculating quantity on order. Used in nightly update job
--Last changes:
SELECT item_no, stk_loc, SUM(qty_ordered - qty_received) AS qty_on_ord
FROM dbo.poordhdr_sql PH JOIN dbo.poordlin_sql PL ON PL.ord_no = PH.ord_no
WHERE PH.ord_status != 'X' AND PL.ord_status != 'X' AND qty_received < qty_ordered --AND item_no = 'KR4204 OAK TB'
GROUP BY item_no, stk_loc
|
-- phpMyAdmin SQL Dump
-- version 2.10.2
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Sep 13, 2012 at 03:33 PM
-- Server version: 5.0.45
-- PHP Version: 5.2.3
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
--
-- Database: `mail`
--
-- --------------------------------------------------------
--
-- Table structure for table `oasys_akun_pegawai`
--
CREATE TABLE `oasys_akun_pegawai` (
`NIP` varchar(20) NOT NULL,
`PASSWORD` varchar(255) NOT NULL,
`LAST_LOGIN` timestamp NOT NULL default '0000-00-00 00:00:00',
PRIMARY KEY (`NIP`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `oasys_arsip`
--
CREATE TABLE `oasys_arsip` (
`KD_ARSIP` int(11) NOT NULL auto_increment,
`NOMOR_DOKUMEN` varchar(255) NOT NULL,
`NIP` varchar(20) NOT NULL,
`TANGGAL` date NOT NULL default '0000-00-00',
`PERIHAL` varchar(255) NOT NULL,
`KEPADA` varchar(255) NOT NULL,
`INSTITUSI` varchar(255) NOT NULL,
`ALAMAT` text NOT NULL,
`KD_JENIS_DOKUMEN` varchar(20) NOT NULL,
`JUMLAH_DOKUMEN` varchar(10) default NULL,
`NAMA_DOKUMEN` varchar(255) NOT NULL,
`UKURAN_DOKUMEN` int(11) NOT NULL,
`TIPE_DOKUMEN` varchar(255) NOT NULL,
`DIREKTORI_DOKUMEN` varchar(255) NOT NULL,
`TANGGAL_MASUK_DOKUMEN` date NOT NULL default '0000-00-00',
`TANGGAL_RETENSI` date NOT NULL default '0000-00-00',
PRIMARY KEY (`KD_ARSIP`),
KEY `fk_dokumen_nip` (`NIP`),
KEY `fk_dokumen_jenis_dokumen` (`KD_JENIS_DOKUMEN`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ;
-- --------------------------------------------------------
--
-- Table structure for table `oasys_bidang`
--
CREATE TABLE `oasys_bidang` (
`KD_BIDANG` varchar(20) NOT NULL,
`BIDANG` varchar(255) NOT NULL,
PRIMARY KEY (`KD_BIDANG`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `oasys_disposisi`
--
CREATE TABLE `oasys_disposisi` (
`KD_DISPOSISI` int(11) NOT NULL auto_increment,
`KD_SURAT` int(11) NOT NULL,
`NIP` varchar(20) NOT NULL,
`TANGGAL` timestamp NOT NULL default '0000-00-00 00:00:00',
`DARI` varchar(255) NOT NULL,
`TANGGAL_MASUK` timestamp NOT NULL default '0000-00-00 00:00:00',
`TANGGAL_SURAT` date NOT NULL,
`SIFAT_SURAT` varchar(20) NOT NULL,
`NOMOR_SURAT` varchar(255) NOT NULL,
`PERIHAL` varchar(255) NOT NULL,
`ISI_SURAT` text NOT NULL,
`KOMENTAR` text NOT NULL,
`NAMA_FILE` varchar(255) default NULL,
`UKURAN_FILE` int(11) default NULL,
`TIPE_FILE` varchar(255) default NULL,
`DIREKTORI_FILE` varchar(255) default NULL,
PRIMARY KEY (`KD_DISPOSISI`),
KEY `fk_disposisi` (`NIP`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=5 ;
-- --------------------------------------------------------
--
-- Table structure for table `oasys_email_konsep_surat_keluar_eksternal`
--
CREATE TABLE `oasys_email_konsep_surat_keluar_eksternal` (
`KD_EMAIL_KONSEP_SURAT_KELUAR_EKSTERNAL` int(11) NOT NULL auto_increment,
`KD_SURAT` int(11) NOT NULL,
`EMAIL` varchar(255) default NULL,
PRIMARY KEY (`KD_EMAIL_KONSEP_SURAT_KELUAR_EKSTERNAL`),
KEY `fk_email_konsep_surat_keluar_eksternal` (`KD_SURAT`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `oasys_email_surat_keluar_eksternal`
--
CREATE TABLE `oasys_email_surat_keluar_eksternal` (
`KD_EMAIL_SURAT_KELUAR_EKSTERNAL` int(11) NOT NULL auto_increment,
`KD_SURAT` int(11) NOT NULL,
`EMAIL` varchar(255) default NULL,
PRIMARY KEY (`KD_EMAIL_SURAT_KELUAR_EKSTERNAL`),
KEY `fk_email_surat_keluar_eksternal_kd_surat` (`KD_SURAT`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=7 ;
-- --------------------------------------------------------
--
-- Table structure for table `oasys_institusi`
--
CREATE TABLE `oasys_institusi` (
`KD_INSTITUSI` varchar(20) NOT NULL,
`NAMA_INSTITUSI` varchar(255) NOT NULL,
`ALAMAT` text,
`TELEPON` varchar(100) default NULL,
`EMAIL` varchar(100) default NULL,
PRIMARY KEY (`KD_INSTITUSI`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `oasys_jabatan_struktural`
--
CREATE TABLE `oasys_jabatan_struktural` (
`KD_JS` varchar(20) NOT NULL,
`KD_INSTITUSI` varchar(20) NOT NULL,
`NAMA_JABATAN` varchar(255) NOT NULL,
`KD_UNIT` varchar(255) NOT NULL,
`UNIT` varchar(255) NOT NULL,
PRIMARY KEY (`KD_JS`,`KD_UNIT`,`UNIT`),
KEY `fk_jabatan_struktural` (`KD_INSTITUSI`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `oasys_jabatan_struktural_pegawai`
--
CREATE TABLE `oasys_jabatan_struktural_pegawai` (
`NIP` varchar(20) NOT NULL,
`KD_JA` varchar(20) NOT NULL,
`KD_JS` varchar(20) NOT NULL,
`KD_UNIT` varchar(255) NOT NULL,
`UNIT` varchar(255) NOT NULL,
PRIMARY KEY (`NIP`,`KD_JS`),
KEY `fk_jabatan_struktural_pegawai_js` (`KD_JS`,`KD_UNIT`,`UNIT`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `oasys_jenis_dokumen`
--
CREATE TABLE `oasys_jenis_dokumen` (
`KD_JENIS_DOKUMEN` varchar(20) NOT NULL,
`JENIS_DOKUMEN` varchar(2) NOT NULL,
PRIMARY KEY (`KD_JENIS_DOKUMEN`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `oasys_kategori`
--
CREATE TABLE `oasys_kategori` (
`KATEGORI` varchar(255) NOT NULL,
`KD_BIDANG` varchar(20) NOT NULL,
PRIMARY KEY (`KATEGORI`),
KEY `fk_kategori` (`KD_BIDANG`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `oasys_kepada_disposisi`
--
CREATE TABLE `oasys_kepada_disposisi` (
`KD_KEPADA_DISPOSISI` int(11) NOT NULL auto_increment,
`KD_STATUS` varchar(20) NOT NULL default 'unread',
`KD_DISPOSISI` int(11) NOT NULL,
`KEPADA` varchar(20) NOT NULL,
PRIMARY KEY (`KD_KEPADA_DISPOSISI`),
KEY `fk_kepada_disposisi_kd_status` (`KD_STATUS`),
KEY `fk_kepada_disposisi_kd_disposisi` (`KD_DISPOSISI`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=5 ;
-- --------------------------------------------------------
--
-- Table structure for table `oasys_kepada_konsep_surat_internal`
--
CREATE TABLE `oasys_kepada_konsep_surat_internal` (
`KD_KEPADA_KONSEP_SURAT_INTERNAL` int(11) NOT NULL auto_increment,
`KD_SURAT` int(11) NOT NULL,
`KEPADA` varchar(20) NOT NULL,
PRIMARY KEY (`KD_KEPADA_KONSEP_SURAT_INTERNAL`),
KEY `fk_kepada_konsep_surat_internal` (`KD_SURAT`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `oasys_kepada_konsep_surat_keluar_eksternal`
--
CREATE TABLE `oasys_kepada_konsep_surat_keluar_eksternal` (
`KD_KEPADA_KONSEP_SURAT_KELUAR_EKSTERNAL` int(11) NOT NULL auto_increment,
`KD_SURAT` int(11) NOT NULL,
`KEPADA` varchar(20) NOT NULL,
PRIMARY KEY (`KD_KEPADA_KONSEP_SURAT_KELUAR_EKSTERNAL`),
KEY `fk_kepada_konsep_surat_keluar_eksternal` (`KD_SURAT`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `oasys_kepada_surat_internal`
--
CREATE TABLE `oasys_kepada_surat_internal` (
`KD_KEPADA_SURAT_INTERNAL` int(11) NOT NULL auto_increment,
`KD_STATUS` varchar(20) NOT NULL default 'unread',
`KD_SURAT` int(11) NOT NULL,
`KEPADA` varchar(20) NOT NULL,
PRIMARY KEY (`KD_KEPADA_SURAT_INTERNAL`),
KEY `fk_kepada_surat_internal_kd_status` (`KD_STATUS`),
KEY `fk_kepada_surat_internal_kd_surat` (`KD_SURAT`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=12 ;
-- --------------------------------------------------------
--
-- Table structure for table `oasys_kepada_surat_keluar_eksternal`
--
CREATE TABLE `oasys_kepada_surat_keluar_eksternal` (
`KD_KEPADA_SURAT_KELUAR_EKSTERNAL` int(11) NOT NULL auto_increment,
`KD_SURAT` int(11) NOT NULL,
`KEPADA` varchar(20) NOT NULL,
PRIMARY KEY (`KD_KEPADA_SURAT_KELUAR_EKSTERNAL`),
KEY `fk_kepada_surat_keluar_eksternal_kd_surat` (`KD_SURAT`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=7 ;
-- --------------------------------------------------------
--
-- Table structure for table `oasys_kepada_surat_masuk_eksternal`
--
CREATE TABLE `oasys_kepada_surat_masuk_eksternal` (
`KD_KEPADA_SURAT_MASUK_EKSTERNAL` int(11) NOT NULL auto_increment,
`KD_STATUS` varchar(20) NOT NULL default 'unread',
`KD_SURAT` int(11) NOT NULL,
`KEPADA` varchar(20) NOT NULL,
PRIMARY KEY (`KD_KEPADA_SURAT_MASUK_EKSTERNAL`),
KEY `fk_kepada_surat_masuk_eksternal_kd_status` (`KD_STATUS`),
KEY `fk_kepada_surat_masuk_eksternal_kd_surat` (`KD_SURAT`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=3 ;
-- --------------------------------------------------------
--
-- Table structure for table `oasys_kepada_verifikasi`
--
CREATE TABLE `oasys_kepada_verifikasi` (
`KD_KEPADA_VERIFIKASI` int(11) NOT NULL auto_increment,
`KD_STATUS` varchar(20) NOT NULL default 'unread',
`KD_VERIFIKASI` int(11) NOT NULL,
`KEPADA` varchar(20) NOT NULL,
PRIMARY KEY (`KD_KEPADA_VERIFIKASI`),
KEY `fk_kepada_verifikasi_kd_status` (`KD_STATUS`),
KEY `fk_kepada_verifikasi_kd_verifikasi` (`KD_VERIFIKASI`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=6 ;
-- --------------------------------------------------------
--
-- Table structure for table `oasys_klasifikasi`
--
CREATE TABLE `oasys_klasifikasi` (
`KD_KLASIFIKASI` varchar(20) NOT NULL,
`KATEGORI` varchar(255) NOT NULL,
`KLASIFIKASI` varchar(255) NOT NULL,
`RUANG_LINGKUP` varchar(255) default NULL,
PRIMARY KEY (`KD_KLASIFIKASI`),
KEY `fk_klasifikasi` (`KATEGORI`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `oasys_konsep_surat_internal`
--
CREATE TABLE `oasys_konsep_surat_internal` (
`KD_SURAT` int(11) NOT NULL auto_increment,
`NIP` varchar(20) NOT NULL,
`TANGGAL` timestamp NOT NULL default '0000-00-00 00:00:00',
`TANGGAL_SURAT` date NOT NULL,
`SIFAT_SURAT` varchar(20) NOT NULL,
`NOMOR_SURAT` varchar(255) NOT NULL,
`PERIHAL` varchar(255) NOT NULL,
`ISI_SURAT` text NOT NULL,
`NAMA_FILE` varchar(255) default NULL,
`UKURAN_FILE` int(11) default NULL,
`TIPE_FILE` varchar(255) default NULL,
`DIREKTORI_FILE` varchar(255) default NULL,
PRIMARY KEY (`KD_SURAT`),
KEY `fk_konsep_surat_internal_nip` (`NIP`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `oasys_konsep_surat_keluar_eksternal`
--
CREATE TABLE `oasys_konsep_surat_keluar_eksternal` (
`KD_SURAT` int(11) NOT NULL auto_increment,
`NIP` varchar(20) NOT NULL,
`TANGGAL` timestamp NOT NULL default '0000-00-00 00:00:00',
`TANGGAL_SURAT` date NOT NULL,
`SIFAT_SURAT` varchar(20) NOT NULL,
`NOMOR_SURAT` varchar(255) NOT NULL,
`PERIHAL` varchar(255) NOT NULL,
`ALAMAT` text,
`ISI_SURAT` text NOT NULL,
`NAMA_FILE` varchar(255) default NULL,
`UKURAN_FILE` int(11) default NULL,
`TIPE_FILE` varchar(255) default NULL,
`DIREKTORI_FILE` varchar(255) default NULL,
PRIMARY KEY (`KD_SURAT`),
KEY `fk_konsep_surat_keluar_eksternal_nip` (`NIP`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `oasys_letak_arsip`
--
CREATE TABLE `oasys_letak_arsip` (
`KD_LETAK` int(11) NOT NULL auto_increment,
`KD_ARSIP` int(11) NOT NULL,
`LEMARI` varchar(20) NOT NULL,
`RAK` varchar(20) NOT NULL,
`FOLDER` varchar(20) NOT NULL,
`MAP` varchar(20) NOT NULL,
`POSISI` varchar(20) NOT NULL,
PRIMARY KEY (`KD_LETAK`),
KEY `fk_letak_dokumen` (`KD_ARSIP`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ;
-- --------------------------------------------------------
--
-- Table structure for table `oasys_pegawai`
--
CREATE TABLE `oasys_pegawai` (
`NIP` varchar(20) NOT NULL,
`NAMA` varchar(100) default NULL,
`TELEPON` varchar(100) default NULL,
`EMAIL` varchar(255) default NULL,
PRIMARY KEY (`NIP`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `oasys_status_surat`
--
CREATE TABLE `oasys_status_surat` (
`KD_STATUS` varchar(20) NOT NULL,
`STATUS_SURAT` varchar(255) NOT NULL,
PRIMARY KEY (`KD_STATUS`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `oasys_surat_internal`
--
CREATE TABLE `oasys_surat_internal` (
`KD_SURAT` int(11) NOT NULL auto_increment,
`NIP` varchar(20) NOT NULL,
`TANGGAL` timestamp NOT NULL default '0000-00-00 00:00:00',
`TANGGAL_SURAT` date NOT NULL,
`SIFAT_SURAT` varchar(20) NOT NULL,
`NOMOR` int(11) NOT NULL default '0',
`KD_INSTITUSI` varchar(20) NOT NULL,
`NOMOR_SURAT` varchar(255) NOT NULL,
`PERIHAL` varchar(255) NOT NULL,
`ISI_SURAT` text NOT NULL,
`NAMA_FILE` varchar(255) default NULL,
`UKURAN_FILE` int(11) default NULL,
`TIPE_FILE` varchar(255) default NULL,
`DIREKTORI_FILE` varchar(255) default NULL,
PRIMARY KEY (`KD_SURAT`),
KEY `fk_surat_internal_nip` (`NIP`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=12 ;
-- --------------------------------------------------------
--
-- Table structure for table `oasys_surat_keluar_eksternal`
--
CREATE TABLE `oasys_surat_keluar_eksternal` (
`KD_SURAT` int(11) NOT NULL auto_increment,
`NIP` varchar(20) NOT NULL,
`TANGGAL` timestamp NOT NULL default '0000-00-00 00:00:00',
`TANGGAL_SURAT` date NOT NULL,
`SIFAT_SURAT` varchar(20) NOT NULL,
`NOMOR` int(11) NOT NULL default '0',
`KD_INSTITUSI` varchar(20) NOT NULL,
`NOMOR_SURAT` varchar(255) NOT NULL,
`PERIHAL` varchar(255) NOT NULL,
`ALAMAT` text,
`ISI_SURAT` text NOT NULL,
`NAMA_FILE` varchar(255) default NULL,
`UKURAN_FILE` int(11) default NULL,
`TIPE_FILE` varchar(255) default NULL,
`DIREKTORI_FILE` varchar(255) default NULL,
PRIMARY KEY (`KD_SURAT`),
KEY `fk_surat_keluar_eksternal_nip` (`NIP`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=7 ;
-- --------------------------------------------------------
--
-- Table structure for table `oasys_surat_masuk_eksternal`
--
CREATE TABLE `oasys_surat_masuk_eksternal` (
`KD_SURAT` int(11) NOT NULL auto_increment,
`NIP` varchar(20) NOT NULL,
`TANGGAL` timestamp NOT NULL default '0000-00-00 00:00:00',
`DARI` varchar(20) NOT NULL,
`ALAMAT` text,
`TANGGAL_DITERIMA` date NOT NULL,
`TANGGAL_SURAT` date NOT NULL,
`SIFAT_SURAT` varchar(20) NOT NULL,
`NOMOR_SURAT` varchar(255) NOT NULL,
`PERIHAL` varchar(255) NOT NULL,
`KOMENTAR` text NOT NULL,
`NAMA_FILE` varchar(255) default NULL,
`UKURAN_FILE` int(11) default NULL,
`TIPE_FILE` varchar(255) default NULL,
`DIREKTORI_FILE` varchar(255) default NULL,
PRIMARY KEY (`KD_SURAT`),
KEY `fk_surat_masuk_eksternal_nip` (`NIP`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ;
-- --------------------------------------------------------
--
-- Table structure for table `oasys_tembusan_konsep_surat_internal`
--
CREATE TABLE `oasys_tembusan_konsep_surat_internal` (
`KD_TEMBUSAN_KONSEP_SURAT_INTERNAL` int(11) NOT NULL auto_increment,
`KD_SURAT` int(11) NOT NULL,
`TEMBUSAN` varchar(20) default NULL,
PRIMARY KEY (`KD_TEMBUSAN_KONSEP_SURAT_INTERNAL`),
KEY `fk_tembusan_konsep_surat_internal` (`KD_SURAT`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `oasys_tembusan_konsep_surat_keluar_eksternal`
--
CREATE TABLE `oasys_tembusan_konsep_surat_keluar_eksternal` (
`KD_TEMBUSAN_KONSEP_SURAT_KELUAR_EKSTERNAL` int(11) NOT NULL auto_increment,
`KD_SURAT` int(11) NOT NULL,
`TEMBUSAN` varchar(20) default NULL,
PRIMARY KEY (`KD_TEMBUSAN_KONSEP_SURAT_KELUAR_EKSTERNAL`),
KEY `fk_tembusan_konsep_surat_keluar_eksternal` (`KD_SURAT`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `oasys_tembusan_surat_internal`
--
CREATE TABLE `oasys_tembusan_surat_internal` (
`KD_TEMBUSAN_SURAT_INTERNAL` int(11) NOT NULL auto_increment,
`KD_STATUS` varchar(20) NOT NULL default 'unread',
`KD_SURAT` int(11) NOT NULL,
`TEMBUSAN` varchar(20) default NULL,
PRIMARY KEY (`KD_TEMBUSAN_SURAT_INTERNAL`),
KEY `fk_tembusan_surat_internal_kd_status` (`KD_STATUS`),
KEY `fk_tembusan_surat_internal_kd_surat` (`KD_SURAT`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=5 ;
-- --------------------------------------------------------
--
-- Table structure for table `oasys_tembusan_surat_keluar_eksternal`
--
CREATE TABLE `oasys_tembusan_surat_keluar_eksternal` (
`KD_TEMBUSAN_SURAT_KELUAR_EKSTERNAL` int(11) NOT NULL auto_increment,
`KD_SURAT` int(11) NOT NULL,
`TEMBUSAN` varchar(20) default NULL,
PRIMARY KEY (`KD_TEMBUSAN_SURAT_KELUAR_EKSTERNAL`),
KEY `fk_tembusan_surat_keluar_eksternal_kd_surat` (`KD_SURAT`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=7 ;
-- --------------------------------------------------------
--
-- Table structure for table `oasys_tembusan_surat_masuk_eksternal`
--
CREATE TABLE `oasys_tembusan_surat_masuk_eksternal` (
`KD_TEMBUSAN_SURAT_MASUK_EKSTERNAL` int(11) NOT NULL auto_increment,
`KD_STATUS` varchar(20) NOT NULL default 'unread',
`KD_SURAT` int(11) NOT NULL,
`TEMBUSAN` varchar(20) default NULL,
PRIMARY KEY (`KD_TEMBUSAN_SURAT_MASUK_EKSTERNAL`),
KEY `fk_tembusan_surat_masuk_eksternal_kd_status` (`KD_STATUS`),
KEY `fk_tembusan_surat_masuk_eksternal_kd_surat` (`KD_SURAT`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `oasys_verifikasi`
--
CREATE TABLE `oasys_verifikasi` (
`KD_VERIFIKASI` int(11) NOT NULL auto_increment,
`NIP` varchar(20) NOT NULL,
`TANGGAL` timestamp NOT NULL default '0000-00-00 00:00:00',
`TANGGAL_SURAT` date NOT NULL,
`SIFAT_SURAT` varchar(20) NOT NULL,
`NOMOR_SURAT` varchar(255) NOT NULL,
`PERIHAL` varchar(255) NOT NULL,
`ISI_SURAT` text NOT NULL,
`NAMA_FILE` varchar(255) default NULL,
`UKURAN_FILE` int(11) default NULL,
`TIPE_FILE` varchar(255) default NULL,
`DIREKTORI_FILE` varchar(255) default NULL,
PRIMARY KEY (`KD_VERIFIKASI`),
KEY `fk_verifikasi_surat_nip` (`NIP`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=16 ;
--
-- Constraints for dumped tables
--
--
-- Constraints for table `oasys_akun_pegawai`
--
ALTER TABLE `oasys_akun_pegawai`
ADD CONSTRAINT `fk_akun_pegawai` FOREIGN KEY (`NIP`) REFERENCES `oasys_pegawai` (`NIP`);
--
-- Constraints for table `oasys_arsip`
--
ALTER TABLE `oasys_arsip`
ADD CONSTRAINT `fk_dokumen_jenis_dokumen` FOREIGN KEY (`KD_JENIS_DOKUMEN`) REFERENCES `oasys_jenis_dokumen` (`KD_JENIS_DOKUMEN`),
ADD CONSTRAINT `fk_dokumen_nip` FOREIGN KEY (`NIP`) REFERENCES `oasys_pegawai` (`NIP`);
--
-- Constraints for table `oasys_disposisi`
--
ALTER TABLE `oasys_disposisi`
ADD CONSTRAINT `fk_disposisi` FOREIGN KEY (`NIP`) REFERENCES `oasys_pegawai` (`NIP`);
--
-- Constraints for table `oasys_email_konsep_surat_keluar_eksternal`
--
ALTER TABLE `oasys_email_konsep_surat_keluar_eksternal`
ADD CONSTRAINT `fk_email_konsep_surat_keluar_eksternal` FOREIGN KEY (`KD_SURAT`) REFERENCES `oasys_konsep_surat_keluar_eksternal` (`KD_SURAT`);
--
-- Constraints for table `oasys_email_surat_keluar_eksternal`
--
ALTER TABLE `oasys_email_surat_keluar_eksternal`
ADD CONSTRAINT `fk_email_surat_keluar_eksternal_kd_surat` FOREIGN KEY (`KD_SURAT`) REFERENCES `oasys_surat_keluar_eksternal` (`KD_SURAT`);
--
-- Constraints for table `oasys_jabatan_struktural`
--
ALTER TABLE `oasys_jabatan_struktural`
ADD CONSTRAINT `fk_jabatan_struktural` FOREIGN KEY (`KD_INSTITUSI`) REFERENCES `oasys_institusi` (`KD_INSTITUSI`);
--
-- Constraints for table `oasys_jabatan_struktural_pegawai`
--
ALTER TABLE `oasys_jabatan_struktural_pegawai`
ADD CONSTRAINT `fk_jabatan_struktural_pegawai_js` FOREIGN KEY (`KD_JS`, `KD_UNIT`, `UNIT`) REFERENCES `oasys_jabatan_struktural` (`KD_JS`, `KD_UNIT`, `UNIT`),
ADD CONSTRAINT `fk_jabatan_struktural_pegawai_nip` FOREIGN KEY (`NIP`) REFERENCES `oasys_pegawai` (`NIP`);
--
-- Constraints for table `oasys_kategori`
--
ALTER TABLE `oasys_kategori`
ADD CONSTRAINT `fk_kategori` FOREIGN KEY (`KD_BIDANG`) REFERENCES `oasys_bidang` (`KD_BIDANG`);
--
-- Constraints for table `oasys_kepada_disposisi`
--
ALTER TABLE `oasys_kepada_disposisi`
ADD CONSTRAINT `fk_kepada_disposisi_kd_disposisi` FOREIGN KEY (`KD_DISPOSISI`) REFERENCES `oasys_disposisi` (`KD_DISPOSISI`),
ADD CONSTRAINT `fk_kepada_disposisi_kd_status` FOREIGN KEY (`KD_STATUS`) REFERENCES `oasys_status_surat` (`KD_STATUS`);
--
-- Constraints for table `oasys_kepada_konsep_surat_internal`
--
ALTER TABLE `oasys_kepada_konsep_surat_internal`
ADD CONSTRAINT `fk_kepada_konsep_surat_internal` FOREIGN KEY (`KD_SURAT`) REFERENCES `oasys_konsep_surat_internal` (`KD_SURAT`);
--
-- Constraints for table `oasys_kepada_konsep_surat_keluar_eksternal`
--
ALTER TABLE `oasys_kepada_konsep_surat_keluar_eksternal`
ADD CONSTRAINT `fk_kepada_konsep_surat_keluar_eksternal` FOREIGN KEY (`KD_SURAT`) REFERENCES `oasys_konsep_surat_keluar_eksternal` (`KD_SURAT`);
--
-- Constraints for table `oasys_kepada_surat_internal`
--
ALTER TABLE `oasys_kepada_surat_internal`
ADD CONSTRAINT `fk_kepada_surat_internal_kd_status` FOREIGN KEY (`KD_STATUS`) REFERENCES `oasys_status_surat` (`KD_STATUS`),
ADD CONSTRAINT `fk_kepada_surat_internal_kd_surat` FOREIGN KEY (`KD_SURAT`) REFERENCES `oasys_surat_internal` (`KD_SURAT`);
--
-- Constraints for table `oasys_kepada_surat_keluar_eksternal`
--
ALTER TABLE `oasys_kepada_surat_keluar_eksternal`
ADD CONSTRAINT `fk_kepada_surat_keluar_eksternal_kd_surat` FOREIGN KEY (`KD_SURAT`) REFERENCES `oasys_surat_keluar_eksternal` (`KD_SURAT`);
--
-- Constraints for table `oasys_kepada_surat_masuk_eksternal`
--
ALTER TABLE `oasys_kepada_surat_masuk_eksternal`
ADD CONSTRAINT `fk_kepada_surat_masuk_eksternal_kd_status` FOREIGN KEY (`KD_STATUS`) REFERENCES `oasys_status_surat` (`KD_STATUS`),
ADD CONSTRAINT `fk_kepada_surat_masuk_eksternal_kd_surat` FOREIGN KEY (`KD_SURAT`) REFERENCES `oasys_surat_masuk_eksternal` (`KD_SURAT`);
--
-- Constraints for table `oasys_kepada_verifikasi`
--
ALTER TABLE `oasys_kepada_verifikasi`
ADD CONSTRAINT `fk_kepada_verifikasi_kd_status` FOREIGN KEY (`KD_STATUS`) REFERENCES `oasys_status_surat` (`KD_STATUS`),
ADD CONSTRAINT `fk_kepada_verifikasi_kd_verifikasi` FOREIGN KEY (`KD_VERIFIKASI`) REFERENCES `oasys_verifikasi` (`KD_VERIFIKASI`);
--
-- Constraints for table `oasys_klasifikasi`
--
ALTER TABLE `oasys_klasifikasi`
ADD CONSTRAINT `fk_klasifikasi` FOREIGN KEY (`KATEGORI`) REFERENCES `oasys_kategori` (`KATEGORI`);
--
-- Constraints for table `oasys_konsep_surat_internal`
--
ALTER TABLE `oasys_konsep_surat_internal`
ADD CONSTRAINT `fk_konsep_surat_internal_nip` FOREIGN KEY (`NIP`) REFERENCES `oasys_pegawai` (`NIP`);
--
-- Constraints for table `oasys_konsep_surat_keluar_eksternal`
--
ALTER TABLE `oasys_konsep_surat_keluar_eksternal`
ADD CONSTRAINT `fk_konsep_surat_keluar_eksternal_nip` FOREIGN KEY (`NIP`) REFERENCES `oasys_pegawai` (`NIP`);
--
-- Constraints for table `oasys_letak_arsip`
--
ALTER TABLE `oasys_letak_arsip`
ADD CONSTRAINT `fk_letak_dokumen` FOREIGN KEY (`KD_ARSIP`) REFERENCES `oasys_arsip` (`KD_ARSIP`);
--
-- Constraints for table `oasys_surat_internal`
--
ALTER TABLE `oasys_surat_internal`
ADD CONSTRAINT `fk_surat_internal_nip` FOREIGN KEY (`NIP`) REFERENCES `oasys_pegawai` (`NIP`);
--
-- Constraints for table `oasys_surat_keluar_eksternal`
--
ALTER TABLE `oasys_surat_keluar_eksternal`
ADD CONSTRAINT `fk_surat_keluar_eksternal_nip` FOREIGN KEY (`NIP`) REFERENCES `oasys_pegawai` (`NIP`);
--
-- Constraints for table `oasys_surat_masuk_eksternal`
--
ALTER TABLE `oasys_surat_masuk_eksternal`
ADD CONSTRAINT `fk_surat_masuk_eksternal_nip` FOREIGN KEY (`NIP`) REFERENCES `oasys_pegawai` (`NIP`);
--
-- Constraints for table `oasys_tembusan_konsep_surat_internal`
--
ALTER TABLE `oasys_tembusan_konsep_surat_internal`
ADD CONSTRAINT `fk_tembusan_konsep_surat_internal` FOREIGN KEY (`KD_SURAT`) REFERENCES `oasys_konsep_surat_internal` (`KD_SURAT`);
--
-- Constraints for table `oasys_tembusan_konsep_surat_keluar_eksternal`
--
ALTER TABLE `oasys_tembusan_konsep_surat_keluar_eksternal`
ADD CONSTRAINT `fk_tembusan_konsep_surat_keluar_eksternal` FOREIGN KEY (`KD_SURAT`) REFERENCES `oasys_konsep_surat_keluar_eksternal` (`KD_SURAT`);
--
-- Constraints for table `oasys_tembusan_surat_internal`
--
ALTER TABLE `oasys_tembusan_surat_internal`
ADD CONSTRAINT `fk_tembusan_surat_internal_kd_status` FOREIGN KEY (`KD_STATUS`) REFERENCES `oasys_status_surat` (`KD_STATUS`),
ADD CONSTRAINT `fk_tembusan_surat_internal_kd_surat` FOREIGN KEY (`KD_SURAT`) REFERENCES `oasys_surat_internal` (`KD_SURAT`);
--
-- Constraints for table `oasys_tembusan_surat_keluar_eksternal`
--
ALTER TABLE `oasys_tembusan_surat_keluar_eksternal`
ADD CONSTRAINT `fk_tembusan_surat_keluar_eksternal_kd_surat` FOREIGN KEY (`KD_SURAT`) REFERENCES `oasys_surat_keluar_eksternal` (`KD_SURAT`);
--
-- Constraints for table `oasys_tembusan_surat_masuk_eksternal`
--
ALTER TABLE `oasys_tembusan_surat_masuk_eksternal`
ADD CONSTRAINT `fk_tembusan_surat_masuk_eksternal_kd_status` FOREIGN KEY (`KD_STATUS`) REFERENCES `oasys_status_surat` (`KD_STATUS`),
ADD CONSTRAINT `fk_tembusan_surat_masuk_eksternal_kd_surat` FOREIGN KEY (`KD_SURAT`) REFERENCES `oasys_surat_masuk_eksternal` (`KD_SURAT`);
--
-- Constraints for table `oasys_verifikasi`
--
ALTER TABLE `oasys_verifikasi`
ADD CONSTRAINT `fk_verifikasi_surat_nip` FOREIGN KEY (`NIP`) REFERENCES `oasys_pegawai` (`NIP`);
|
-- +migrate Up
CREATE TABLE IF NOT EXISTS `order_status_lead_times`(
`id` BIGINT UNSIGNED PRIMARY KEY AUTO_INCREMENT,
`status_id` TINYINT UNSIGNED NOT NULL,
`created_at` TIMESTAMP NULL
);
-- +migrate Down
DROP TABLE `order_status_lead_times`; |
CREATE DATABASE IF NOT EXISTS `webpomodoro` /*!40100 DEFAULT CHARACTER SET latin1 */;
USE `webpomodoro`;
-- MySQL dump 10.13 Distrib 5.5.28, for debian-linux-gnu (i686)
--
-- Host: 127.0.0.1 Database: webpomodoro
-- ------------------------------------------------------
-- Server version 5.5.28-0ubuntu0.12.10.2
/*!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 */;
--
-- Temporary table structure for view `statistics`
--
DROP TABLE IF EXISTS `statistics`;
/*!50001 DROP VIEW IF EXISTS `statistics`*/;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
/*!50001 CREATE TABLE `statistics` (
`task_id` tinyint NOT NULL,
`pomodoro_date` tinyint NOT NULL,
`task` tinyint NOT NULL,
`user` tinyint NOT NULL,
`pomodoro_planned` tinyint NOT NULL,
`pomodoro_done` tinyint NOT NULL,
`completed` tinyint NOT NULL
) ENGINE=MyISAM */;
SET character_set_client = @saved_cs_client;
--
-- Table structure for table `tasklog`
--
DROP TABLE IF EXISTS `tasklog`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `tasklog` (
`tasklog_id` int(11) NOT NULL AUTO_INCREMENT,
`date` datetime DEFAULT NULL,
`task_id` int(11) NOT NULL,
PRIMARY KEY (`tasklog_id`),
UNIQUE KEY `pomodoro_id_UNIQUE` (`tasklog_id`)
) ENGINE=InnoDB AUTO_INCREMENT=19 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `tasklog`
--
LOCK TABLES `tasklog` WRITE;
/*!40000 ALTER TABLE `tasklog` DISABLE KEYS */;
INSERT INTO `tasklog` VALUES (1,'2012-12-13 00:00:00',1),(4,'2012-12-05 00:00:00',1),(7,'2012-12-13 08:28:47',1),(8,'2012-12-18 07:11:00',50),(9,'2012-12-18 07:20:59',50),(11,'2012-12-18 07:31:16',50),(12,'2012-12-18 07:31:32',50),(13,'2012-12-18 07:33:46',52),(14,'2012-12-18 07:38:21',52),(15,'2012-12-18 07:39:00',56),(16,'2012-12-18 09:27:03',56),(17,'2012-12-18 09:27:32',58),(18,'2013-01-14 03:39:33',52);
/*!40000 ALTER TABLE `tasklog` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `user`
--
DROP TABLE IF EXISTS `user`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `user` (
`user_id` int(11) NOT NULL AUTO_INCREMENT,
`email` varchar(45) DEFAULT NULL,
`nickname` varchar(45) DEFAULT NULL,
`token` varchar(255) DEFAULT NULL,
PRIMARY KEY (`user_id`),
UNIQUE KEY `user_id_UNIQUE` (`user_id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `user`
--
LOCK TABLES `user` WRITE;
/*!40000 ALTER TABLE `user` DISABLE KEYS */;
INSERT INTO `user` VALUES (1,'alexander@gmail.com','Ts Alexander','8bf968a415cc3cd63930fec8e3e164a4'),(2,'serg@saint.com','Igor Slavin',NULL),(3,'alt@mail.ru','John Professor','a53977b191d482947fc3618cd6614c5b');
/*!40000 ALTER TABLE `user` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `task`
--
DROP TABLE IF EXISTS `task`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `task` (
`task_id` int(11) NOT NULL AUTO_INCREMENT,
`title` varchar(255) NOT NULL,
`estimated` int(11) NOT NULL DEFAULT '0',
`actual` int(11) NOT NULL DEFAULT '0',
`completed` tinyint(4) DEFAULT '0',
`completed_date` datetime DEFAULT NULL,
`user_id` int(11) NOT NULL,
PRIMARY KEY (`task_id`),
UNIQUE KEY `task_id_UNIQUE` (`task_id`)
) ENGINE=InnoDB AUTO_INCREMENT=70 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `task`
--
LOCK TABLES `task` WRITE;
/*!40000 ALTER TABLE `task` DISABLE KEYS */;
INSERT INTO `task` VALUES (1,'setup database',1,3,1,'2013-01-10 00:00:00',2),(50,'123',12,4,1,'2013-01-13 00:00:00',1),(52,'make coffee',1,3,0,NULL,2),(56,'fix bugs',3,2,1,'2013-01-12 00:00:00',1),(57,'sing a song ',2,0,0,NULL,2),(58,'112',3,1,1,'2013-01-13 00:00:00',1),(59,'set up website ',1,0,0,'2013-01-12 00:00:00',1),(62,'0000000000000',3,0,1,'2013-01-10 00:00:00',2),(63,'make tea',1,0,0,NULL,3),(64,'do something',3,0,0,NULL,3),(65,'fix session ',1,0,0,NULL,3),(66,'fix session bugs',1,0,0,NULL,3);
/*!40000 ALTER TABLE `task` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Final view structure for view `statistics`
--
/*!50001 DROP TABLE IF EXISTS `statistics`*/;
/*!50001 DROP VIEW IF EXISTS `statistics`*/;
/*!50001 SET @saved_cs_client = @@character_set_client */;
/*!50001 SET @saved_cs_results = @@character_set_results */;
/*!50001 SET @saved_col_connection = @@collation_connection */;
/*!50001 SET character_set_client = utf8 */;
/*!50001 SET character_set_results = utf8 */;
/*!50001 SET collation_connection = utf8_general_ci */;
/*!50001 CREATE ALGORITHM=UNDEFINED */
/*!50013 DEFINER=`root`@`localhost` SQL SECURITY DEFINER */
/*!50001 VIEW `statistics` AS select `tl`.`task_id` AS `task_id`,date_format(`tl`.`date`,'%Y-%m-%d') AS `pomodoro_date`,`t`.`title` AS `task`,`u`.`nickname` AS `user`,`t`.`estimated` AS `pomodoro_planned`,`t`.`actual` AS `pomodoro_done`,`t`.`completed` AS `completed` from ((`tasklog` `tl` left join `task` `t` on((`tl`.`task_id` = `t`.`task_id`))) left join `user` `u` on((`t`.`user_id` = `u`.`user_id`))) group by date_format(`tl`.`date`,'%Y-%m-%d'),`tl`.`task_id`,`t`.`title`,`u`.`nickname` order by `tl`.`date` desc */;
/*!50001 SET character_set_client = @saved_cs_client */;
/*!50001 SET character_set_results = @saved_cs_results */;
/*!50001 SET collation_connection = @saved_col_connection */;
--
-- Dumping routines for database 'webpomodoro'
--
/*!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 2013-01-14 14:47:20
|
CREATE PROCEDURE Sp_Ser_Insert_GeneralMaster
(@Description nvarchar(255),
@Type int
)
AS
if Not Exists(Select * from generalmaster where Description = @Description
and Type = @Type)
Begin
INSERT INTO GENERALMASTER(Description,Type)VALUES(@Description,@Type)
End
SELECT Code from generalmaster where Description = @Description
and Type = @Type
|
--日期:2012-08-28
--修改人:张培
--修改内容:新增脚本证券账户表、证券账户关系维护表主键生成方式由原来Sequence为Table
INSERT INTO TB_GENERATOR
(ID, GEN_NAME, GEN_VALUE)
VALUES
((SELECT MAX(ID) + 1 FROM TB_GENERATOR), 'NIS_SEC_SECURITIES_ID', 1);
INSERT INTO TB_GENERATOR
(ID, GEN_NAME, GEN_VALUE)
VALUES
((SELECT MAX(ID) + 1 FROM TB_GENERATOR), 'NIS_SEC_RELATION_ID', 1);
COMMIT;
|
CREATE OR REPLACE VIEW `infoCliente` AS
select c.id numeroCliente, c.nombre nombreCliente,
c.apellido apellidoCliente, c.email CorreoCliente,
r.id numeroRegion, r.nombre nombreRegion
from clientes as c
inner join regiones as r on (c.region_id = r.id);
DELIMITER $$
CREATE PROCEDURE `cantidadFacturasTodosClientes`()
BEGIN
select c.nombre nombreCliente, c.apellido apellidoCliente,c.email emailCliente, count(c.id) cantidadFacturas
from clientes as c
inner join facturas as f on (c.id = f.cliente_id)
group by c.nombre, c.apellido,c.email;
END$$
DELIMITER ;
DELIMITER $$
CREATE PROCEDURE `contarClientePorRegion`(
IN idRegion integer,
out cantidad integer)
BEGIN
select count(id) into cantidad from clientes as c
where region_id = idRegion;
END$$
DELIMITER ;
DELIMITER $$
CREATE PROCEDURE `contarClientes`(out cantidad integer)
BEGIN
select count(id) into cantidad from clientes as c;
END$$
DELIMITER ;
DELIMITER $$
CREATE PROCEDURE `contarClientesEntero`()
BEGIN
select count(id) from clientes as c;
END$$
DELIMITER ;
DELIMITER $$
CREATE PROCEDURE `facturasClientePorEmail`(IN correoCliente VARCHAR(255))
BEGIN
select
f.id idFactura, f.cliente_id idCliente, f.descripcion descripcionFactura,
f.observacion observacionFactura,c.email emailCliente, c.nombre nombreCliente, c.apellido apellidoCliente
from facturas as f
inner join clientes as c on (f.cliente_id = c.id)
where c.email = correoCliente;
END$$
DELIMITER ;
DELIMITER $$
CREATE PROCEDURE `infoClientePorCorreo`(IN correoCliente VARCHAR(255))
BEGIN
select c.id numberClient, c.nombre firtsNameClient, c.apellido lastNameClient, c.email emailCliente, r.id numberRegion, r.nombre nameRegion
from clientes as c
inner join regiones as r on (c.region_id = r.id)
where c.email = correoCliente;
END$$
DELIMITER ;
DELIMITER $$
CREATE PROCEDURE `infoClientesTodos`()
BEGIN
select * from clientes;
END$$
DELIMITER ;
DELIMITER $$
CREATE PROCEDURE `findProductosByNombreContains`(IN nombre_in VARCHAR(255))
BEGIN
select * from productos where nombre like CONCAT('%', nombre_in , '%');
END$$
DELIMITER ;
|
# (1)创建新的库
CREATE DATABASE schedule;
# (2)进入schedule数据库
USE schedule;
# (3)在schedule数据库下创建表
CREATE TABLE plan_task (
id INT UNSIGNED PRIMARY KEY AUTO_INCREMENT NOT NULL, # 主键
creat_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, # 创建时间
task_no INT UNSIGNED NOT NULL DEFAULT 0, # 任务编号
execute_type TINYINT NOT NULL DEFAULT 0, # 执行任务类型
execute_status TINYINT NOT NULL DEFAULT 0, # 当前执行状态
background_color MEDIUMINT UNSIGNED NOT NULL DEFAULT 0, # 背景颜色
font_color MEDIUMINT UNSIGNED NOT NULL DEFAULT 0, # 字体颜色
start_time INT UNSIGNED NOT NULL DEFAULT 0, # 任务开始时间
end_time INT UNSIGNED NOT NULL DEFAULT 0 # 任务结束时间
)ENGINE myisam DEFAULT CHARSET utf8;
# (4)模拟数据生成器函数(在规定范围随机生成),用来填充表数据
# 注意,这个函数不能在终端执行,因为分号冲突,需要使用phpstorm或phpMyadmin执行
CREATE PROCEDURE generate_data(cnt INT)
BEGIN
DECLARE st INT UNSIGNED DEFAULT 0;
DECLARE et INT UNSIGNED DEFAULT 0;
WHILE cnt > 0 DO
SET cnt := cnt - 1;
SET st := floor(rand() * 31622401) + 1451577600;
SET et := st + floor(rand() * 1740) + 60;
INSERT INTO plan_task (task_no, execute_type, execute_status, background_color, font_color, start_time, end_time)
VALUES (floor(rand() * 100), floor(rand() * 2), floor(rand() * 5), floor(rand() * 16777216),
floor(rand() * 16777216), st, et);
END WHILE;
END;
# (5)添加150000000行数据,随机生成
CALL generate_data(5000000);
CALL generate_data(5000000);
CALL generate_data(5000000);
|
select SAL from
(
select distinct SAL from emp
Order by SAL desc limit 10
) as employments
order by SAL limit 1;
create table users
( user_id numeric,
username varchar2(30) ) ;
create table training_details
( user_training_id numeric,
user_id numeric,
training_id numeric,
training_date date ) ;
insert into users values
(1, "John Doe"),
(2, "Jane Don"),
(3, "Alice Jones"),
(4, "Lisa Romero") ;
Insert into training_details values
(1, 1, 1, "2015-08-02"),
(2, 2, 1, "2015-08-03"),
(3, 3, 2, "2015-08-02"),
(4, 4, 2, "2015-08-04"),
(5, 2, 2, "2015-08-03"),
(6, 1, 1, "2015-08-02"),
(7, 3, 2, "2015-08-04"),
(8, 4, 3, "2015-08-03"),
(9, 1, 4, "2015-08-03"),
(10, 3, 1, "2015-08-02"),
(11, 4, 2, "2015-08-04"),
(12, 3, 2, "2015-08-02"),
(13, 1, 1, "2015-08-02"),
(14, 4, 3, "2015-08-03") ;
/* this is a comment */
select
u.user_id,
username,
training_id,
training_date,
count ( user_training_id) as count
from
users u join training_details t on t.user_id = u.user_id
group by
u.user_id,
training_id,
training_date
having count ( user_training_id ) >1
order by training_date desc;
/* sql interview practice excercises */
create table Salesperson
( ID integer,
Name Varchar2(30),
Age numeric,
Salary numeric) ;
create table Customer_2
( ID integer,
Name Varchar2(30),
City Varchar2(30),
Industry_type Varchar) ;
create table Orders
( Number numeric,
order_date date,
cust_id integer,
salesperson_id integer,
Amount numeric);
insert into Salesperson values
(1, "Abe", 61, 140000),
(2, "Bob", 34, 44000),
(5, "Chris", 34, 40000),
(7, "Dan", 41, 52000),
(8, "Ken", 57, 115000),
(11, "Joe", 38, 38000) ;
insert into Customer_2 values
(4, "Samsonic", "pleasant", "J"),
(6, "Panasung", "oaktown", "J"),
(7, "Samony", "jackson", "B"),
(9, "Orange", "Jackson", "B") ;
insert into Orders values
(10, "8/2/96", 4, 2, 540),
(20, "1/30/99", 4, 8, 1800),
(30, "7/14/95", 9, 1, 460),
(40, "1/29/98", 7, 2, 2400),
(50, "2/3/98", 6, 7, 600),
(60, "3/2/98", 6, 7, 720),
(70, "5/6/98", 9, 7, 150) ;
/* the names of all salespeople that have an order with Samsonic. */
select s.ID, s.Name
from Salesperson s , ( select salesperson_id
from Orders, Customer_2 c
where cust_id = c.ID and c.Name = "Samsonic" )
where s.ID = salesperson_id ;
/* the name of all salespeople that do not have any order with Samsonic. */
select s.ID, s.Name
from Salesperson s
except
select s.ID, s.Name
from Salesperson s , ( select salesperson_id
from Orders, Customer_2 c
where cust_id = c.ID and c.Name = "Samsonic" )
where s.ID = salesperson_id ;
/*the names of salespeople that have 2 or more orders */
select Name
from Salesperson,
(
select count(salesperson_id) as count, salesperson_id
from Orders
group by salesperson_id
having count(salesperson_id) >1)
where ID = salesperson_id;
/* write a SQL statement to insert rows into a table called highAchiever (Name, age), where a
salesperson must have a salary of 100,00 or greater to be included in the table. */
create table highAchiever
( Name Varchar(30),
Age numeric);
insert into highAchiever (Name, Age)
(select s.Name, s.Age from salesperson s where s.Salary > 100000) ;
/* I cannot make this one work.... why???? */
|
Create PROCEDURE sp_get_POInvalidItems_ITC(@PONumber INT)
AS
SELECT PODetailReceived.Product_Code
FROM PODetailReceived
WHERE PONumber = @PONumber AND
(
Isnull(PODetailReceived.Product_Code,N'') NOT IN (SELECT PRODUCT_CODE FROM Items)
or
Isnull(PODetailReceived.Product_Code,N'') in (select product_code from Items where active = 0)
)
|
CREATE TABLE IF NOT EXISTS words (
word_id int(10) UNSIGNED AUTO_INCREMENT PRIMARY KEY,
word varchar(255) NOT NULL,
is_positive SMALLINT(1) NOT NULL
);
|
--2.unit_priceの合計が、仕入れ単価の合計の1.5倍より大きいgroupingを求める
SELECT
grouping,
SUM(unit_price) AS sum_unit,
SUM(cost_price) AS sum_cost
FROM
items
GROUP BY
grouping
HAVING
SUM(unit_price) > SUM(cost_price) * 1.5
ORDER BY
sum_unit DESC
;
--3.
SELECT
*
FROM
items
ORDER BY
created_at DESC,
unit_price
;
SELECT
grouping,
MAX(unit_price) AS max_unit
FROM
items
GROUP BY
grouping
; |
/**
* Arquivo pre que desfaz as alterações do pre (up)
*/
/*
*
* TIME Tributário
*
*
*/
delete from db_sysarqcamp where codcam in (20555,20556,20557,20558);
delete from db_syscampodef where codcam in (20555,20556,20557,20558);
delete from db_syscampo where codcam in (20555,20556,20557,20558);
update db_modulos set nome_modulo = 'Dívida Ativa', descr_modulo = 'Divida Ativa' where id_item = 81;
update db_modulos set nome_modulo = 'Orcamento', descr_modulo = 'Orcamento' where id_item = 116;
update db_modulos set nome_modulo = 'Licitacoes', descr_modulo = 'Licitacoes' where id_item = 381;
update db_modulos set nome_modulo = 'Site', descr_modulo = 'site' where id_item = 420;
update db_modulos set nome_modulo = 'Ipasem', descr_modulo = 'ipasem' where id_item = 576;
update db_modulos set nome_modulo = 'Veiculos', descr_modulo = 'Veiculos' where id_item = 633;
update db_modulos set nome_modulo = 'Agua', descr_modulo = 'Agua' where id_item = 4555;
update db_modulos set nome_modulo = 'Biblioteca', descr_modulo = 'biblioteca' where id_item = 1100625;
update db_modulos set nome_modulo = 'Prefeitura On-Line', descr_modulo = 'prefeitura' where id_item = 394;
update db_modulos set nome_modulo = 'SAMU', descr_modulo = 'Modulo SAMU' where id_item = 9101;
update db_modulos set nome_modulo = 'Escola', descr_modulo = 'escola' where id_item = 1100747;
update db_modulos set nome_modulo = 'Matricula On-Line', descr_modulo = 'Matricula On-line' where id_item = 2000112;
update db_modulos set nome_modulo = 'Patrimonio', descr_modulo = 'Patrimonio' where id_item = 439;
--Tarefa 93126 - Certidão Baixa
update db_itensmenu set id_item = 6996, descricao = 'Numeração certidão de baixa', help = 'Numeração certidão de baixa', funcao = 'iss4_certbaixanumero002.php', itemativo = '1', manutencao = '1', desctec = 'Controla numeração da certidão de baixa', libcliente = 'true' where id_item = 6996;
insert into db_menu ( id_item, id_item_filho, menusequencia, modulo) values (32,2334, 20, 40);
delete from db_sysarqcamp where codcam = 20592;
delete from db_sysarqcamp where codcam = 20593;
delete from db_syscampo where codcam = 20592;
delete from db_syscampo where codcam = 20593;
delete from db_documentotemplatepadrao where db81_templatetipo = 46;
delete from db_documentotemplatetipo where db80_sequencial = 46;
/*
* Inicio Tarefa 93560
*/
-- Tolerância de Crédito
delete from db_sysarqcamp where codcam = 20614;
delete from db_syscampo where codcam = 20614;
-- Geração pagamento taxa bancária
delete from db_sysprikey where codarq = 3716;
delete from db_sysforkey where codarq = 3716 and referen = 116;
delete from db_sysforkey where codarq = 3716 and referen = 79;
delete from db_sysarqcamp where codarq = 3716;
delete from db_syscampo where codcam = 20630;
delete from db_syscampo where codcam = 20631;
delete from db_syscampo where codcam = 20632;
delete from db_sysarqmod where codarq = 3716;
delete from db_sysarquivo where codarq = 3716;
delete from db_syscadind where codind = 4083;
delete from db_sysindices where codind = 4083;
delete from db_syscadind where codind = 4084;
delete from db_sysindices where codind = 4084;
delete from db_syssequencia where codsequencia = 1000376;
/*
* Fim Tarefa 93560
*/
/*
*
* FIM TIME Tributário
*
*/
/*
*
* TIME B
*
*/
update db_itensmenu set libcliente = true where id_item in (9533, 5262);
-- desfaz menus mensageria
delete from db_itensfilho where id_item = 9947;
delete from db_menu where id_item in (9946,9947,9945);
delete from db_itensmenu where id_item in (9946,9947,9945);
-- mensageriaacordo
delete from db_sysarqmod where codmod = 69 and codarq = 3701;
delete from db_sysarqcamp where codarq = 3701;
delete from db_sysarquivo where codarq = 3701;
delete from db_sysprikey where codarq = 3701;
delete from db_syssequencia where codsequencia = 1000363;
delete from db_syscampo where codcam = 20573;
delete from db_syscampo where codcam = 20574;
delete from db_syscampo where codcam = 20575;
--mensageriaacordodb_usuario
delete from db_syssequencia where codsequencia = 1000364;
delete from db_sysforkey where codarq = 3702;
delete from db_sysprikey where codarq = 3702;
delete from db_sysarqcamp where codarq = 3702;
delete from db_syscampo where codcam in (20577, 20579, 20580);
delete from db_sysarqmod where codarq = 3702;
delete from db_sysarquivo where codarq = 3702;
-- mensageriaacordoprocessados
delete from db_sysarqmod where codmod = 69 and codarq = 3705;
delete from db_sysarqcamp where codarq = 3705;
delete from db_sysprikey where codarq = 3705;
delete from db_sysindices where codind = 4066;
delete from db_syscadind where codind = 4066;
delete from db_sysindices where codind = 4067;
delete from db_syscadind where codind = 4067;
delete from db_syssequencia where codsequencia = 1000367;
delete from db_sysforkey where codarq = 3705;
delete from db_syscampo where codcam = 20589;
delete from db_syscampo where codcam = 20590;
delete from db_syscampo where codcam = 20591;
delete from db_sysarquivo where codarq = 3705;
-- vinculos de processos
delete from db_sysarqmod where codarq in (3712, 3713, 3714);
delete from db_sysarqcamp where codarq in (3712, 3713, 3714);
delete from db_sysprikey where codarq in (3712, 3713, 3714);
delete from db_sysforkey where codarq in (3712, 3713, 3714);
delete from db_sysindices where codarq in (3712, 3713, 3714);
delete from db_syscadind where codind in (4079, 4080, 4081);
delete from db_syssequencia where codsequencia in (1000372, 1000373, 1000374);
delete from db_syscampo where codcam in (20618, 20619, 20620, 20621, 20622, 20623, 20624, 20625, 20626);
delete from db_sysarquivo where codarq in (3712, 3713, 3714);
delete from db_sysarqmod where codarq in (3715);
delete from db_sysarqcamp where codarq in (3715);
delete from db_sysprikey where codarq in (3715);
delete from db_sysforkey where codarq in (3715);
delete from db_sysindices where codarq in (3715);
delete from db_syscadind where codind in (4082);
delete from db_syssequencia where codsequencia in (1000375);
delete from db_syscampo where codcam in (20627, 20628, 20629);
delete from db_sysarquivo where codarq in (3715);
delete from db_sysarqmod where codarq in (3717);
delete from db_sysarqcamp where codarq in (3717);
delete from db_sysprikey where codarq in (3717);
delete from db_sysforkey where codarq in (3717);
delete from db_sysindices where codarq in (3717);
delete from db_syscadind where codind in (4085);
delete from db_syssequencia where codsequencia in (1000377);
delete from db_syscampo where codcam in (20636, 20637, 20638);
delete from db_sysarquivo where codarq in (3717);
update db_itensmenu set libcliente = false where id_item in (9829, 9830, 9831, 9912, 9869, 9896, 9870, 9852);
/*
*
* FIM TIME B
*
*/
/*
*
* TIME C
*
*
*/
update db_syscampo set nomecam = 'ed254_i_atolegal',
conteudo = 'int8',
descricao = 'Ato Legal',
valorinicial = '0',
rotulo = 'Ato Legal',
nulo = 'f',
tamanho = 20,
maiusculo = 'f',
autocompl = 'f',
aceitatipo = 1,
tipoobj = 'text',
rotulorel = 'Ato Legal'
where codcam = 12551;
delete from db_sysarqcamp where codarq = 2571 and codcam = 20559;
delete from db_syscampodef where codcam = 20559;
delete from db_syscampo where codcam = 20559;
/**
* T91754
*/
-- Tabela rechumanomovimentacao
delete from db_sysarqcamp where codarq = 3699 and codcam = 20560;
delete from db_syssequencia where codsequencia = 1000360;
delete from db_syscadind where codind in (4059, 4060, 4061);
delete from db_sysindices where codind in (4059, 4060, 4061);
delete from db_sysforkey where codarq = 3699 and codcam in (20561, 20562, 20563);
delete from db_sysprikey where codarq = 3699 and codcam = 20560;
delete from db_sysarqcamp where codarq = 3699 and codcam in (20560, 20561, 20562, 20563, 20564, 20565, 20566);
delete from db_syscampo where codcam in (20560, 20561, 20562, 20563, 20564, 20565, 20566);
delete from db_sysarqmod where codmod = 1008004 and codarq = 3699;
delete from db_sysarquivo where codarq = 3699;
delete from db_syscampo where codcam in (20560, 20561, 20562, 20563, 20564, 20565, 20566);
-- Tabela rechumanohoradisp
insert into db_sysforkey values (1010091, 1008529, 1, 1010087, 0);
delete from db_sysforkey where codarq = 1010091 and referen = 1010094;
delete from db_sysforkey where codarq = 1010091 and codcam in (20568);
delete from db_sysarqcamp where codarq = 1010091;
insert into db_sysarqcamp values(1010091, 1008528, 1, 1000152);
insert into db_sysarqcamp values(1010091, 1008529, 2, 0);
insert into db_sysarqcamp values(1010091, 1008530, 3, 0);
insert into db_sysarqcamp values(1010091, 1008531, 4, 0);
delete from db_syscampo where codcam in (20568, 20567);
delete from db_menu where id_item = 3470 and id_item_filho = 9054 and modulo = 6877;
delete from db_menu where id_item = 9054 and id_item_filho = 2467 and modulo = 6877;
delete from db_menu where id_item = 9054 and id_item_filho = 8012 and modulo = 6877;
delete from db_menu where id_item = 9054 and id_item_filho = 8013 and modulo = 6877;
/**
* T 91754
*/
update db_itensmenu set libcliente = false where id_item = 9941;
/**
* T93234
*/
-- lab_requiitem
delete from db_sysarqcamp where codarq = 2771 and codcam = 20635;
delete from db_syscampo where codcam = 20635;
/*
*
* FIM TIME C
*
*/
/*
*
* INICIO TIME D
* T 93849
*/
delete from db_sysarqcamp where codarq = 48;
delete from db_syscampo where codcam = 20585;
/*
*
* FIM TIME D
*/
|
alter table students
drop (STUDENT_NAME, DEPARTMENT, ADDRESS, BIRTHDATE, GENDER);
alter table students
rename column student_id to id;
alter table students
add constraint "fk: students::id -> users::id" foreign key (id) references users (id); |
-- active_status.sql
-- show only active sessions
-- if not on a wait event, then on CPU
set linesize 200 trimspool on
set pagesize 60
col event format a30
SELECT
NVL(s.username,s.program) username
, s.sid sid
, s.serial# serial
, s.sql_hash_value sql_hash_value
, SUBSTR(DECODE(w.wait_time
, 0, w.event
, 'ON CPU'),1,15) event
, w.p1 p1
, w.p2 p2
, w.p3 p3
from v$session s
, v$session_wait w
where w.sid=s.sid
and s.status='ACTIVE'
AND s.type='USER';
|
drop table if exists TORG;
CREATE TABLE TORG (
C_ORGID VARCHAR(100),
C_ORGNAME VARCHAR(100),
C_ORGCODE VARCHAR(100),
C_ORGFULLCODE VARCHAR(100),
C_PARENTFULLCODE VARCHAR(100),
C_ORGTYPE VARCHAR(100),
C_CREATEDBYID VARCHAR(100),
D_CREATEDTIME DATE,
C_LASTMODIFIEDBYID VARCHAR(100),
D_LASTMODIFIEDTIME DATE
);
|
INSERT INTO `ssaif_prod_abril`.`tbtemporadas`
(`idtemporadas`,
`temporada`)
SELECT `temporadas`.`temporadaid`,
`temporadas`.`descripcion`
FROM `ssaif_back_abril`.`temporadas`;
|
--
-- Drop all tables
--
DROP TABLE "generic_scheduler_items";
DROP TABLE "generic_config_items";
DROP TABLE "generic_devices";
DROP TABLE "generic_scheduler_config_items";
DROP TABLE "generic_scheduler_configs";
DROP TABLE "generic_configs";
DROP TABLE "generic_items";
DROP TABLE "generic_schedulers";
DROP TABLE "generic_templates";
DROP TABLE "kinect_items_download";
DROP TABLE "kinect_scheduler_items";
DROP TABLE "kinect_scheduler_configs";
DROP TABLE "kinect_scheduler_config_items";
DROP TABLE "kinect_devices";
DROP TABLE "kinect_config_items";
DROP TABLE "kinect_configs";
DROP TABLE "kinect_items";
DROP TABLE "kinect_schedulers";
DROP TABLE "kinect_templates";
DROP TABLE "password_resets";
DROP TABLE "users";
-- --------------------------------------------------------
--
-- Estrutura da tabela `users`
--
CREATE TABLE "users" (
"id" INT NOT NULL IDENTITY(1,1),
"name" VARCHAR(255) NOT NULL,
"email" VARCHAR(255) NOT NULL UNIQUE,
"password" VARCHAR(60) NOT NULL,
"remember_token" VARCHAR(100) DEFAULT NULL,
"created_at" DATETIME DEFAULT (getdate()) NOT NULL,
"updated_at" DATETIME DEFAULT (getdate()) NOT NULL,
PRIMARY KEY NONCLUSTERED ("id")
);
-- --------------------------------------------------------
--
-- Estrutura da tabela `password_resets`
--
CREATE TABLE "password_resets" (
"email" VARCHAR(255) NOT NULL,
"token" VARCHAR(255) NOT NULL,
"created_at" DATETIME DEFAULT (getdate()) NOT NULL
);
-- --------------------------------------------------------
--
-- Estrutura da tabela `kinect_templates`
--
CREATE TABLE "kinect_templates" (
"id" INT NOT NULL IDENTITY(1,1),
"title" VARCHAR(255) NOT NULL,
"description" ntext NOT NULL,
"path" VARCHAR(255) NOT NULL,
"preview" VARCHAR(255) NOT NULL,
"created_at" DATETIME DEFAULT (getdate()) NOT NULL,
"updated_at" DATETIME DEFAULT (getdate()) NOT NULL,
PRIMARY KEY NONCLUSTERED ("id")
);
-- --------------------------------------------------------
--
-- Estrutura da tabela `kinect_schedulers`
--
CREATE TABLE "kinect_schedulers" (
"id" INT NOT NULL IDENTITY(1,1),
"title" VARCHAR(255) NOT NULL,
"description" ntext NOT NULL,
"status" tinyint NOT NULL DEFAULT '1',
"created_at" DATETIME DEFAULT (getdate()) NOT NULL,
"updated_at" DATETIME DEFAULT (getdate()) NOT NULL,
PRIMARY KEY NONCLUSTERED ("id")
);
-- --------------------------------------------------------
--
-- Estrutura da tabela `kinect_items`
--
CREATE TABLE "kinect_items" (
"id" INT NOT NULL IDENTITY(1,1),
"title" VARCHAR(255) NOT NULL,
"description" ntext NOT NULL,
"dll" VARCHAR(255) NOT NULL,
"config" VARCHAR(255) NOT NULL,
"version" VARCHAR(255) NOT NULL,
"created_at" DATETIME DEFAULT (getdate()) NOT NULL,
"updated_at" DATETIME DEFAULT (getdate()) NOT NULL,
PRIMARY KEY NONCLUSTERED ("id")
);
-- --------------------------------------------------------
--
-- Estrutura da tabela `kinect_configs`
--
CREATE TABLE "kinect_configs" (
"id" INT NOT NULL IDENTITY(1,1),
"template_id" INT NOT NULL,
"scheduler_id" INT NOT NULL,
"title" VARCHAR(255) NOT NULL,
"description" ntext NOT NULL,
"default" tinyint NOT NULL,
"status" tinyint NOT NULL DEFAULT '1',
"created_at" DATETIME DEFAULT (getdate()) NOT NULL,
"updated_at" DATETIME DEFAULT (getdate()) NOT NULL,
PRIMARY KEY NONCLUSTERED ("id"),
FOREIGN KEY ([template_id]) REFERENCES [kinect_templates] ([id]),
FOREIGN KEY ([scheduler_id]) REFERENCES [kinect_schedulers] ([id])
);
-- --------------------------------------------------------
--
-- Estrutura da tabela `kinect_config_items`
--
CREATE TABLE "kinect_config_items" (
"id" INT NOT NULL IDENTITY(1,1),
"config_id" INT NOT NULL,
"item_id" INT NOT NULL,
"status" tinyint NOT NULL DEFAULT '1',
"priority" INT NOT NULL,
"created_at" DATETIME DEFAULT (getdate()) NOT NULL,
"updated_at" DATETIME DEFAULT (getdate()) NOT NULL,
PRIMARY KEY NONCLUSTERED ("id"),
FOREIGN KEY ([config_id]) REFERENCES [kinect_configs] ([id]),
FOREIGN KEY ([item_id]) REFERENCES [kinect_items] ([id])
);
-- --------------------------------------------------------
--
-- Estrutura da tabela `kinect_devices`
--
CREATE TABLE "kinect_devices" (
"id" INT NOT NULL IDENTITY(1,1),
"config_id" INT NOT NULL,
"title" VARCHAR(255) NOT NULL,
"description" ntext NOT NULL,
"location" VARCHAR(255) NOT NULL,
"ip" VARCHAR(255) NOT NULL,
"status" tinyint NOT NULL,
"created_at" DATETIME DEFAULT (getdate()) NOT NULL,
"updated_at" DATETIME DEFAULT (getdate()) NOT NULL,
PRIMARY KEY NONCLUSTERED ("id"),
FOREIGN KEY ([config_id]) REFERENCES [kinect_configs] ([id])
);
-- --------------------------------------------------------
--
-- Estrutura da tabela `kinect_scheduler_config_items`
--
CREATE TABLE "kinect_scheduler_config_items" (
"id" INT NOT NULL IDENTITY(1,1),
"title" VARCHAR(255) NOT NULL,
"description" ntext NOT NULL,
"file" VARCHAR(255) NOT NULL,
"preview" VARCHAR(255) NOT NULL,
"created_at" DATETIME DEFAULT (getdate()) NOT NULL,
"updated_at" DATETIME DEFAULT (getdate()) NOT NULL,
PRIMARY KEY NONCLUSTERED ("id")
);
-- --------------------------------------------------------
--
-- Estrutura da tabela `kinect_scheduler_configs`
--
CREATE TABLE "kinect_scheduler_configs" (
"id" INT NOT NULL IDENTITY(1,1),
"item_id" INT NOT NULL,
"title" VARCHAR(255) NOT NULL,
"description" ntext NOT NULL,
"status" tinyint NOT NULL DEFAULT '1',
"startat" DATETIME DEFAULT (getdate()) NOT NULL,
"endat" DATETIME DEFAULT (getdate()) NOT NULL,
"monday" tinyint NOT NULL DEFAULT '1',
"tuesday" tinyint NOT NULL DEFAULT '1',
"wednesday" tinyint NOT NULL DEFAULT '1',
"thursday" tinyint NOT NULL DEFAULT '1',
"friday" tinyint NOT NULL DEFAULT '1',
"saturday" tinyint NOT NULL DEFAULT '1',
"sunday" tinyint NOT NULL DEFAULT '1',
"starthour" INT NOT NULL,
"endhour" INT NOT NULL,
"startminute" INT NOT NULL,
"endminute" INT NOT NULL,
"startsecond" INT NOT NULL,
"endsecond" INT NOT NULL,
"created_at" DATETIME DEFAULT (getdate()) NOT NULL,
"updated_at" DATETIME DEFAULT (getdate()) NOT NULL,
PRIMARY KEY NONCLUSTERED ("id"),
FOREIGN KEY ([item_id]) REFERENCES [kinect_scheduler_config_items] ([id])
);
-- --------------------------------------------------------
--
-- Estrutura da tabela `kinect_scheduler_items`
--
CREATE TABLE "kinect_scheduler_items" (
"id" INT NOT NULL IDENTITY(1,1),
"config_id" INT NOT NULL,
"scheduler_id" INT NOT NULL,
"status" tinyint NOT NULL DEFAULT '1',
"priority" INT NOT NULL,
"created_at" DATETIME DEFAULT (getdate()) NOT NULL,
"updated_at" DATETIME DEFAULT (getdate()) NOT NULL,
PRIMARY KEY NONCLUSTERED ("id"),
FOREIGN KEY ([config_id]) REFERENCES [kinect_scheduler_configs] ([id]),
FOREIGN KEY ([scheduler_id]) REFERENCES [kinect_schedulers] ([id])
);
-- --------------------------------------------------------
--
-- Estrutura da tabela `kinect_items_download`
--
CREATE TABLE "kinect_items_download" (
"id" INT NOT NULL IDENTITY(1,1),
"device_id" INT NOT NULL,
"item_id" INT NOT NULL,
"version" VARCHAR(255) NOT NULL,
"created_at" DATETIME DEFAULT (getdate()) NOT NULL,
"updated_at" DATETIME DEFAULT (getdate()) NOT NULL,
PRIMARY KEY NONCLUSTERED ("id"),
FOREIGN KEY ([device_id]) REFERENCES [kinect_devices] ([id]),
FOREIGN KEY ([item_id]) REFERENCES [kinect_items] ([id])
);
-- --------------------------------------------------------
--
-- Estrutura da tabela `generic_templates`
--
CREATE TABLE "generic_templates" (
"id" INT NOT NULL IDENTITY(1,1),
"title" VARCHAR(255) NOT NULL,
"description" ntext NOT NULL,
"view" VARCHAR(255) NOT NULL,
"status" tinyint NOT NULL,
"preview" VARCHAR(255) NOT NULL,
"created_at" DATETIME DEFAULT (getdate()) NOT NULL,
"updated_at" DATETIME DEFAULT (getdate()) NOT NULL,
PRIMARY KEY NONCLUSTERED ("id")
);
-- --------------------------------------------------------
--
-- Estrutura da tabela `generic_schedulers`
--
CREATE TABLE "generic_schedulers" (
"id" INT NOT NULL IDENTITY(1,1),
"title" VARCHAR(255) NOT NULL,
"description" ntext NOT NULL,
"status" tinyint NOT NULL DEFAULT '1',
"created_at" DATETIME DEFAULT (getdate()) NOT NULL,
"updated_at" DATETIME DEFAULT (getdate()) NOT NULL,
PRIMARY KEY NONCLUSTERED ("id")
);
-- --------------------------------------------------------
--
-- Estrutura da tabela `generic_items`
--
CREATE TABLE "generic_items" (
"id" INT NOT NULL IDENTITY(1,1),
"title" VARCHAR(255) NOT NULL,
"description" ntext NOT NULL,
"file" VARCHAR(255) NOT NULL,
"type" tinyint NOT NULL,
"code" ntext NOT NULL,
"preview" VARCHAR(255) NOT NULL,
"created_at" DATETIME DEFAULT (getdate()) NOT NULL,
"updated_at" DATETIME DEFAULT (getdate()) NOT NULL,
PRIMARY KEY NONCLUSTERED ("id")
);
-- --------------------------------------------------------
--
-- Estrutura da tabela `generic_scheduler_configs`
--
CREATE TABLE "generic_scheduler_configs" (
"id" INT NOT NULL IDENTITY(1,1),
"template_id" INT NOT NULL,
"scheduler_id" INT NOT NULL,
"title" VARCHAR(255) NOT NULL,
"description" ntext NOT NULL,
"status" tinyint NOT NULL DEFAULT '1',
"startat" DATETIME DEFAULT (getdate()) NOT NULL,
"endat" DATETIME DEFAULT (getdate()) NOT NULL,
"monday" tinyint NOT NULL DEFAULT '1',
"tuesday" tinyint NOT NULL DEFAULT '1',
"wednesday" tinyint NOT NULL DEFAULT '1',
"thursday" tinyint NOT NULL DEFAULT '1',
"friday" tinyint NOT NULL DEFAULT '1',
"saturday" tinyint NOT NULL DEFAULT '1',
"sunday" tinyint NOT NULL DEFAULT '1',
"starthour" INT NOT NULL,
"endhour" INT NOT NULL,
"startminute" INT NOT NULL,
"endminute" INT NOT NULL,
"startsecond" INT NOT NULL,
"endsecond" INT NOT NULL,
"created_at" DATETIME DEFAULT (getdate()) NOT NULL,
"updated_at" DATETIME DEFAULT (getdate()) NOT NULL,
PRIMARY KEY NONCLUSTERED ("id"),
FOREIGN KEY ([template_id]) REFERENCES [generic_templates] ([id])
);
-- --------------------------------------------------------
--
-- Estrutura da tabela `generic_scheduler_config_items`
--
CREATE TABLE "generic_scheduler_config_items" (
"id" INT NOT NULL IDENTITY(1,1),
"item_id" INT NOT NULL,
"status" tinyint NOT NULL DEFAULT '1',
"priority" INT NOT NULL,
"created_at" DATETIME DEFAULT (getdate()) NOT NULL,
"updated_at" DATETIME DEFAULT (getdate()) NOT NULL,
PRIMARY KEY NONCLUSTERED ("id"),
FOREIGN KEY ([item_id]) REFERENCES [generic_items] ([id])
);
-- --------------------------------------------------------
--
-- Estrutura da tabela `generic_configs`
--
CREATE TABLE "generic_configs" (
"id" INT NOT NULL IDENTITY(1,1),
"template_id" INT NOT NULL,
"scheduler_id" INT NOT NULL,
"title" VARCHAR(255) NOT NULL,
"description" ntext NOT NULL,
"default" tinyint NOT NULL,
"status" tinyint NOT NULL DEFAULT '1',
"created_at" DATETIME DEFAULT (getdate()) NOT NULL,
"updated_at" DATETIME DEFAULT (getdate()) NOT NULL,
PRIMARY KEY NONCLUSTERED ("id"),
FOREIGN KEY ([template_id]) REFERENCES [generic_templates] ([id]),
FOREIGN KEY ([scheduler_id]) REFERENCES [generic_schedulers] ([id])
);
-- --------------------------------------------------------
--
-- Estrutura da tabela `generic_devices`
--
CREATE TABLE "generic_devices" (
"id" INT NOT NULL IDENTITY(1,1),
"config_id" INT NOT NULL,
"title" VARCHAR(255) NOT NULL,
"description" ntext NOT NULL,
"location" VARCHAR(255) NOT NULL,
"ip" VARCHAR(255) NOT NULL,
"status" tinyint NOT NULL,
"created_at" DATETIME DEFAULT (getdate()) NOT NULL,
"updated_at" DATETIME DEFAULT (getdate()) NOT NULL,
PRIMARY KEY NONCLUSTERED ("id"),
FOREIGN KEY ([config_id]) REFERENCES [generic_configs] ([id])
);
-- --------------------------------------------------------
--
-- Estrutura da tabela `generic_config_items`
--
CREATE TABLE "generic_config_items" (
"id" INT NOT NULL IDENTITY(1,1),
"config_id" INT NOT NULL,
"item_id" INT NOT NULL,
"status" tinyint NOT NULL DEFAULT '1',
"priority" INT NOT NULL,
"created_at" DATETIME DEFAULT (getdate()) NOT NULL,
"updated_at" DATETIME DEFAULT (getdate()) NOT NULL,
PRIMARY KEY NONCLUSTERED ("id"),
FOREIGN KEY ([config_id]) REFERENCES [generic_configs] ([id]),
FOREIGN KEY ([item_id]) REFERENCES [generic_items] ([id])
);
-- --------------------------------------------------------
--
-- Estrutura da tabela `generic_scheduler_items`
--
CREATE TABLE "generic_scheduler_items" (
"id" INT NOT NULL IDENTITY(1,1),
"scheduler_id" INT NOT NULL,
"config_id" INT NOT NULL,
"created_at" DATETIME DEFAULT (getdate()) NOT NULL,
"updated_at" DATETIME DEFAULT (getdate()) NOT NULL,
PRIMARY KEY NONCLUSTERED ("id"),
FOREIGN KEY ([scheduler_id]) REFERENCES [generic_schedulers] ([id]),
FOREIGN KEY ([config_id]) REFERENCES [generic_scheduler_configs] ([id])
);
-- --------------------------------------------------------
-- --------------------------------------------------------
--
-- Seed
--
INSERT INTO [users] ([name], [email], [password]) VALUES ('admin', 'user@ua.pt', 'userpass');
--INSERT INTO [kinect_templates] ([title], [description], [path], [preview]) VALUES ('Default', 'Default Template', '', ''); |
-- MySQL Script generated by MySQL Workbench
-- 07/02/16 13:59:48
-- Model: New Model Version: 1.0
-- MySQL Workbench Forward Engineering
SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0;
SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0;
SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='TRADITIONAL,ALLOW_INVALID_DATES';
-- -----------------------------------------------------
-- Schema mydb
-- -----------------------------------------------------
-- -----------------------------------------------------
-- Schema txstexe
-- -----------------------------------------------------
DROP SCHEMA IF EXISTS `txstexe` ;
-- -----------------------------------------------------
-- Schema txstexe
-- -----------------------------------------------------
CREATE SCHEMA IF NOT EXISTS `txstexe` DEFAULT CHARACTER SET utf8 ;
USE `txstexe` ;
-- -----------------------------------------------------
-- Table `txstexe`.`Club`
-- -----------------------------------------------------
DROP TABLE IF EXISTS `txstexe`.`Club` ;
CREATE TABLE IF NOT EXISTS `txstexe`.`Club` (
`club_name` VARCHAR(20) NOT NULL,
`contact_email` VARCHAR(20) NULL DEFAULT NULL,
`building` VARCHAR(20) NULL DEFAULT NULL,
`room` VARCHAR(10) NULL DEFAULT NULL,
PRIMARY KEY (`club_name`))
ENGINE = InnoDB
DEFAULT CHARACTER SET = utf8;
-- -----------------------------------------------------
-- Table `txstexe`.`Member`
-- -----------------------------------------------------
DROP TABLE IF EXISTS `txstexe`.`Member` ;
CREATE TABLE IF NOT EXISTS `txstexe`.`Member` (
`member_id` BIGINT(20) NOT NULL AUTO_INCREMENT,
`club_name` VARCHAR(20) NULL DEFAULT NULL,
`fname` VARCHAR(25) NULL DEFAULT NULL,
`mi` VARCHAR(1) NULL DEFAULT NULL,
`lname` VARCHAR(25) NULL DEFAULT NULL,
`email` VARCHAR(100) NULL DEFAULT NULL,
`email_hash` VARCHAR(100) NULL DEFAULT NULL,
`major` VARCHAR(25) NULL DEFAULT NULL,
`class` VARCHAR(10) NULL DEFAULT NULL,
`grad_date` DATE NULL DEFAULT NULL,
`tshirt_size` VARCHAR(6) NULL DEFAULT NULL,
`paid` TINYINT(1) NULL DEFAULT '0',
`post_count` BIGINT(20) NULL DEFAULT '0',
`points` BIGINT(20) NULL DEFAULT '0',
`start_date` DATE NULL DEFAULT NULL,
`end_date` DATE NULL DEFAULT NULL,
`facebook_id` VARCHAR(50) NULL DEFAULT NULL,
`facebook_token` VARCHAR(50) NULL DEFAULT NULL,
`subscribe` TINYINT(1) NULL DEFAULT '0',
`privs` BIGINT(1) NULL DEFAULT '0',
PRIMARY KEY (`member_id`),
INDEX `club_name_idx` (`club_name` ASC),
CONSTRAINT `club_name`
FOREIGN KEY (`club_name`)
REFERENCES `txstexe`.`Club` (`club_name`)
ON DELETE NO ACTION
ON UPDATE NO ACTION)
ENGINE = InnoDB
AUTO_INCREMENT = 5
DEFAULT CHARACTER SET = utf8;
-- -----------------------------------------------------
-- Table `txstexe`.`Forum`
-- -----------------------------------------------------
DROP TABLE IF EXISTS `txstexe`.`Forum` ;
CREATE TABLE IF NOT EXISTS `txstexe`.`Forum` (
`forum_id` BIGINT(20) NOT NULL AUTO_INCREMENT,
`forum_name` VARCHAR(25) NOT NULL,
`club_name` VARCHAR(20) NULL DEFAULT NULL,
PRIMARY KEY (`forum_id`),
INDEX `club_name_idx` (`club_name` ASC),
CONSTRAINT `club_name_forum`
FOREIGN KEY (`club_name`)
REFERENCES `txstexe`.`Club` (`club_name`)
ON DELETE NO ACTION
ON UPDATE NO ACTION)
ENGINE = InnoDB
AUTO_INCREMENT = 3
DEFAULT CHARACTER SET = utf8;
-- -----------------------------------------------------
-- Table `txstexe`.`Topic`
-- -----------------------------------------------------
DROP TABLE IF EXISTS `txstexe`.`Topic` ;
CREATE TABLE IF NOT EXISTS `txstexe`.`Topic` (
`topic_id` BIGINT(20) NOT NULL AUTO_INCREMENT,
`forum_id` BIGINT(20) NULL DEFAULT NULL,
`topic_name` VARCHAR(45) NULL DEFAULT NULL,
`topic_description` MEDIUMTEXT NULL DEFAULT NULL,
`post_count` BIGINT(20) NULL DEFAULT '0',
PRIMARY KEY (`topic_id`),
INDEX `forum_name_idx` (`forum_id` ASC),
CONSTRAINT `forum_id`
FOREIGN KEY (`forum_id`)
REFERENCES `txstexe`.`Forum` (`forum_id`)
ON DELETE NO ACTION
ON UPDATE NO ACTION)
ENGINE = InnoDB
AUTO_INCREMENT = 3
DEFAULT CHARACTER SET = utf8;
-- -----------------------------------------------------
-- Table `txstexe`.`Thread`
-- -----------------------------------------------------
DROP TABLE IF EXISTS `txstexe`.`Thread` ;
CREATE TABLE IF NOT EXISTS `txstexe`.`Thread` (
`thread_id` BIGINT(20) NOT NULL AUTO_INCREMENT,
`thread_name` VARCHAR(45) NULL DEFAULT NULL,
`topic_id` BIGINT(20) NULL DEFAULT NULL,
`thread_op_id` BIGINT(20) NULL DEFAULT NULL,
`datetime` DATETIME NULL DEFAULT NULL,
`post_count` BIGINT(20) NULL DEFAULT '0',
PRIMARY KEY (`thread_id`),
INDEX `topic_name_idx` (`topic_id` ASC),
INDEX `op_idx` (`thread_op_id` ASC),
CONSTRAINT `op`
FOREIGN KEY (`thread_op_id`)
REFERENCES `txstexe`.`Member` (`member_id`)
ON DELETE NO ACTION
ON UPDATE NO ACTION,
CONSTRAINT `topic_id`
FOREIGN KEY (`topic_id`)
REFERENCES `txstexe`.`Topic` (`topic_id`)
ON DELETE NO ACTION
ON UPDATE NO ACTION)
ENGINE = InnoDB
DEFAULT CHARACTER SET = utf8;
-- -----------------------------------------------------
-- Table `txstexe`.`Comment`
-- -----------------------------------------------------
DROP TABLE IF EXISTS `txstexe`.`Comment` ;
CREATE TABLE IF NOT EXISTS `txstexe`.`Comment` (
`comment_id` BIGINT(20) NOT NULL AUTO_INCREMENT,
`thread_id` BIGINT(20) NULL DEFAULT NULL,
`member_id` BIGINT(20) NULL DEFAULT NULL,
`comment` MEDIUMTEXT NULL DEFAULT NULL,
`datetime` DATETIME NULL DEFAULT NULL,
PRIMARY KEY (`comment_id`),
INDEX `member_id_idx` (`member_id` ASC),
INDEX `thread_id_idx` (`thread_id` ASC),
CONSTRAINT `member_id_comment`
FOREIGN KEY (`member_id`)
REFERENCES `txstexe`.`Member` (`member_id`)
ON DELETE NO ACTION
ON UPDATE NO ACTION,
CONSTRAINT `thread_id`
FOREIGN KEY (`thread_id`)
REFERENCES `txstexe`.`Thread` (`thread_id`)
ON DELETE NO ACTION
ON UPDATE NO ACTION)
ENGINE = InnoDB
DEFAULT CHARACTER SET = utf8;
-- -----------------------------------------------------
-- Table `txstexe`.`Credential`
-- -----------------------------------------------------
DROP TABLE IF EXISTS `txstexe`.`Credential` ;
CREATE TABLE IF NOT EXISTS `txstexe`.`Credential` (
`credential_id` BIGINT(20) NOT NULL AUTO_INCREMENT,
`member_id` BIGINT(20) NULL DEFAULT NULL,
`password` VARCHAR(100) NULL DEFAULT NULL,
PRIMARY KEY (`credential_id`),
INDEX `member` (`member_id` ASC),
CONSTRAINT `member`
FOREIGN KEY (`member_id`)
REFERENCES `txstexe`.`Member` (`member_id`)
ON DELETE CASCADE
ON UPDATE NO ACTION)
ENGINE = InnoDB
AUTO_INCREMENT = 5
DEFAULT CHARACTER SET = utf8;
-- -----------------------------------------------------
-- Table `txstexe`.`Donor`
-- -----------------------------------------------------
DROP TABLE IF EXISTS `txstexe`.`Donor` ;
CREATE TABLE IF NOT EXISTS `txstexe`.`Donor` (
`donor_id` BIGINT(20) NOT NULL AUTO_INCREMENT,
`fname` VARCHAR(25) NULL DEFAULT NULL,
`mi` VARCHAR(1) NULL DEFAULT NULL,
`lname` VARCHAR(25) NULL DEFAULT NULL,
`email` VARCHAR(100) NULL DEFAULT NULL,
PRIMARY KEY (`donor_id`))
ENGINE = InnoDB
DEFAULT CHARACTER SET = utf8;
-- -----------------------------------------------------
-- Table `txstexe`.`Donation`
-- -----------------------------------------------------
DROP TABLE IF EXISTS `txstexe`.`Donation` ;
CREATE TABLE IF NOT EXISTS `txstexe`.`Donation` (
`donation_id` BIGINT(20) NOT NULL,
`donor_id` BIGINT(20) NULL DEFAULT NULL,
`amount` DECIMAL(10,2) NULL DEFAULT NULL,
`date` DATE NULL DEFAULT NULL,
PRIMARY KEY (`donation_id`),
INDEX `donor_id_idx` (`donor_id` ASC),
CONSTRAINT `donor_id`
FOREIGN KEY (`donor_id`)
REFERENCES `txstexe`.`Donor` (`donor_id`)
ON DELETE NO ACTION
ON UPDATE NO ACTION)
ENGINE = InnoDB
DEFAULT CHARACTER SET = utf8;
-- -----------------------------------------------------
-- Table `txstexe`.`MailingList`
-- -----------------------------------------------------
DROP TABLE IF EXISTS `txstexe`.`MailingList` ;
CREATE TABLE IF NOT EXISTS `txstexe`.`MailingList` (
`mail_list_id` BIGINT(20) NOT NULL AUTO_INCREMENT,
`club_name` VARCHAR(20) NULL DEFAULT NULL,
`member_id` BIGINT(20) NULL DEFAULT NULL,
`mail_list_name` VARCHAR(25) NULL DEFAULT NULL,
PRIMARY KEY (`mail_list_id`),
INDEX `member_id_idx` (`member_id` ASC),
INDEX `club_name_idx` (`club_name` ASC),
CONSTRAINT `club_name_ml`
FOREIGN KEY (`club_name`)
REFERENCES `txstexe`.`Club` (`club_name`)
ON DELETE NO ACTION
ON UPDATE NO ACTION,
CONSTRAINT `member_id_ml`
FOREIGN KEY (`member_id`)
REFERENCES `txstexe`.`Member` (`member_id`)
ON DELETE NO ACTION
ON UPDATE NO ACTION)
ENGINE = InnoDB
DEFAULT CHARACTER SET = utf8;
-- -----------------------------------------------------
-- Table `txstexe`.`News`
-- -----------------------------------------------------
DROP TABLE IF EXISTS `txstexe`.`News` ;
CREATE TABLE IF NOT EXISTS `txstexe`.`News` (
`news_item_id` BIGINT(20) NOT NULL AUTO_INCREMENT,
`club_name` VARCHAR(20) NULL DEFAULT NULL,
`news_item` MEDIUMTEXT NULL DEFAULT NULL,
`date` DATE NULL DEFAULT NULL,
`time` TIME NULL DEFAULT NULL,
PRIMARY KEY (`news_item_id`),
INDEX `club_name_idx` (`club_name` ASC),
CONSTRAINT `club_name_news`
FOREIGN KEY (`club_name`)
REFERENCES `txstexe`.`Club` (`club_name`)
ON DELETE NO ACTION
ON UPDATE NO ACTION)
ENGINE = InnoDB
DEFAULT CHARACTER SET = utf8;
-- -----------------------------------------------------
-- Table `txstexe`.`Officer`
-- -----------------------------------------------------
DROP TABLE IF EXISTS `txstexe`.`Officer` ;
CREATE TABLE IF NOT EXISTS `txstexe`.`Officer` (
`officer_id` BIGINT(20) NOT NULL AUTO_INCREMENT,
`club_name` VARCHAR(20) NULL DEFAULT NULL,
`member_id` BIGINT(20) NULL DEFAULT NULL,
`date_elected` DATE NULL DEFAULT NULL,
PRIMARY KEY (`officer_id`),
INDEX `club_name_idx` (`club_name` ASC),
INDEX `member_id_idx` (`member_id` ASC),
CONSTRAINT `club_name_officer`
FOREIGN KEY (`club_name`)
REFERENCES `txstexe`.`Club` (`club_name`)
ON DELETE NO ACTION
ON UPDATE NO ACTION,
CONSTRAINT `member_id_officer`
FOREIGN KEY (`member_id`)
REFERENCES `txstexe`.`Member` (`member_id`)
ON DELETE NO ACTION
ON UPDATE NO ACTION)
ENGINE = InnoDB
DEFAULT CHARACTER SET = utf8;
-- -----------------------------------------------------
-- Table `txstexe`.`ProjectGroup`
-- -----------------------------------------------------
DROP TABLE IF EXISTS `txstexe`.`ProjectGroup` ;
CREATE TABLE IF NOT EXISTS `txstexe`.`ProjectGroup` (
`proj_group_id` BIGINT(20) NOT NULL AUTO_INCREMENT,
`club_name` VARCHAR(20) NULL DEFAULT NULL,
`proj_lead_id` BIGINT(20) NULL DEFAULT NULL,
`building` VARCHAR(25) NULL DEFAULT NULL,
`room` VARCHAR(10) NULL DEFAULT NULL,
`datetime` DATETIME NULL DEFAULT NULL,
`description` MEDIUMTEXT NULL DEFAULT NULL,
PRIMARY KEY (`proj_group_id`),
INDEX `club_name_idx` (`club_name` ASC),
CONSTRAINT `club_name_projectgroup`
FOREIGN KEY (`club_name`)
REFERENCES `txstexe`.`Club` (`club_name`)
ON DELETE NO ACTION
ON UPDATE NO ACTION)
ENGINE = InnoDB
DEFAULT CHARACTER SET = utf8;
-- -----------------------------------------------------
-- Table `txstexe`.`Event`
-- -----------------------------------------------------
DROP TABLE IF EXISTS `txstexe`.`Event` ;
CREATE TABLE IF NOT EXISTS `txstexe`.`Event` (
`event_id` VARCHAR(50) NOT NULL,
`points` BIGINT(20) NULL,
`event_id_remote` VARCHAR(45) NULL,
INDEX `oncampusevent_id_idx` (`event_id` ASC),
PRIMARY KEY (`event_id`))
ENGINE = InnoDB
DEFAULT CHARACTER SET = utf8;
-- -----------------------------------------------------
-- Table `txstexe`.`ProjectGroup_has_Member`
-- -----------------------------------------------------
DROP TABLE IF EXISTS `txstexe`.`ProjectGroup_has_Member` ;
CREATE TABLE IF NOT EXISTS `txstexe`.`ProjectGroup_has_Member` (
`ProjectGroup_proj_group_id` BIGINT(20) NOT NULL,
`Member_member_id` BIGINT(20) NOT NULL,
PRIMARY KEY (`ProjectGroup_proj_group_id`, `Member_member_id`),
INDEX `fk_ProjectGroup_has_Member_Member1_idx` (`Member_member_id` ASC),
INDEX `fk_ProjectGroup_has_Member_ProjectGroup1_idx` (`ProjectGroup_proj_group_id` ASC),
CONSTRAINT `fk_ProjectGroup_has_Member_ProjectGroup1`
FOREIGN KEY (`ProjectGroup_proj_group_id`)
REFERENCES `txstexe`.`ProjectGroup` (`proj_group_id`)
ON DELETE NO ACTION
ON UPDATE NO ACTION,
CONSTRAINT `fk_ProjectGroup_has_Member_Member1`
FOREIGN KEY (`Member_member_id`)
REFERENCES `txstexe`.`Member` (`member_id`)
ON DELETE NO ACTION
ON UPDATE NO ACTION)
ENGINE = InnoDB
DEFAULT CHARACTER SET = utf8;
-- -----------------------------------------------------
-- Table `txstexe`.`Member_has_Event`
-- -----------------------------------------------------
DROP TABLE IF EXISTS `txstexe`.`Member_has_Event` ;
CREATE TABLE IF NOT EXISTS `txstexe`.`Member_has_Event` (
`Member_member_id` BIGINT(20) NOT NULL,
`Event_event_id` VARCHAR(50) NOT NULL,
PRIMARY KEY (`Member_member_id`, `Event_event_id`),
INDEX `fk_Member_has_Event1_Event1_idx` (`Event_event_id` ASC),
INDEX `fk_Member_has_Event1_Member1_idx` (`Member_member_id` ASC),
CONSTRAINT `fk_Member_has_Event1_Member1`
FOREIGN KEY (`Member_member_id`)
REFERENCES `txstexe`.`Member` (`member_id`)
ON DELETE NO ACTION
ON UPDATE NO ACTION,
CONSTRAINT `fk_Member_has_Event1_Event1`
FOREIGN KEY (`Event_event_id`)
REFERENCES `txstexe`.`Event` (`event_id`)
ON DELETE NO ACTION
ON UPDATE NO ACTION)
ENGINE = InnoDB
DEFAULT CHARACTER SET = utf8;
USE `txstexe`;
DELIMITER $$
USE `txstexe`$$
DROP TRIGGER IF EXISTS `txstexe`.`add_start_date` $$
USE `txstexe`$$
CREATE
DEFINER=`root`@`localhost`
TRIGGER `txstexe`.`add_start_date`
BEFORE INSERT ON `txstexe`.`Member`
FOR EACH ROW
BEGIN
set NEW.start_date = NOW();
END$$
USE `txstexe`$$
DROP TRIGGER IF EXISTS `txstexe`.`add_thread_date` $$
USE `txstexe`$$
CREATE
DEFINER=`root`@`localhost`
TRIGGER `txstexe`.`add_thread_date`
BEFORE INSERT ON `txstexe`.`Thread`
FOR EACH ROW
BEGIN
set NEW.datetime = NOW();
END$$
USE `txstexe`$$
DROP TRIGGER IF EXISTS `txstexe`.`add_post_date` $$
USE `txstexe`$$
CREATE
DEFINER=`root`@`localhost`
TRIGGER `txstexe`.`add_post_date`
BEFORE INSERT ON `txstexe`.`Comment`
FOR EACH ROW
BEGIN
set NEW.datetime = NOW();
END$$
USE `txstexe`$$
DROP TRIGGER IF EXISTS `txstexe`.`update_post_date` $$
USE `txstexe`$$
CREATE
DEFINER=`root`@`localhost`
TRIGGER `txstexe`.`update_post_date`
BEFORE UPDATE ON `txstexe`.`Comment`
FOR EACH ROW
BEGIN
set NEW.datetime = NOW();
END$$
DELIMITER ;
SET SQL_MODE=@OLD_SQL_MODE;
SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS;
SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS;
|
-- Intro to PL/SQL
-- Lab Assignment 12, Practice 14
-- Wolfgang C. Strack
-- Student ID#: ****7355
-- Due Date: 13 November 2015
-- Date Handed In: 13 November 2015
-----
----- 1.
--- a. Create a DROP_TABLE procedure that drops the table specified in the
--- input parameter. Use the procedures and functions from the supplied
--- DBMS_SQL package.
CREATE OR REPLACE PROCEDURE drop_table(p_table_name IN VARCHAR2)
IS
c_dbms_cursor INTEGER;
v_temp NUMBER;
BEGIN
c_dbms_cursor := DBMS_SQL.OPEN_CURSOR;
DBMS_SQL.PARSE(c_dbms_cursor, 'DROP TABLE '||p_table_name, DBMS_SQL.NATIVE);
v_temp := DBMS_SQL.EXECUTE(c_dbms_cursor);
DBMS_SQL.CLOSE_CURSOR(c_dbms_cursor);
END drop_table;
/
--- b. To test the DROP_TABLE procedure, first create a new table called
--- EMP_DUP as a copy of the EMPLOYEES table.
CREATE TABLE emp_dup AS
SELECT * FROM employees;
--- c. Execute the DROP_TABLE procedure to drop the EMP_DUP table.
EXECUTE drop_table('emp_dup');
-----
----- 2.
--- a. Create another procedure called DROP_TABLE2 that drops the table
--- specified in the input parameter. Use the EXECUTE IMMEDIATE statement.
CREATE OR REPLACE PROCEDURE drop_table2(p_table_name IN VARCHAR2) IS
BEGIN
EXECUTE IMMEDIATE('DROP TABLE ' || p_table_name);
END drop_table2;
--- b. Repeat the test outlined in steps 1-b and 1-c.
CREATE TABLE emp_dup AS
SELECT * FROM employees;
EXECUTE drop_table('emp_dup');
-----
----- 3.
--- a. Create a procedure called ANALYZE_OBJECT that analyzes the given object
--- that you specified in the input parameters. Use the DBMS_DDL package, and
--- use the COMPUTE method.
CREATE OR REPLACE PROCEDURE analyze_object
(p_object_type IN VARCHAR2,
p_object_owner IN VARCHAR2,
p_object_name IN VARCHAR2)
IS
v_last_analyzed_date DATE;
BEGIN
DBMS_DDL.ANALYZE_OBJECT(p_object_type, p_object_owner, p_object_name, 'COMPUTE');
SELECT last_analyzed INTO v_last_analyzed_date
FROM user_tables WHERE table_name = UPPER('EMPLOYEES');
DBMS_OUTPUT.PUT_LINE(
'Last analysis date of ' || p_object_name ||
' updated to: ' || v_last_analyzed_date
);
END analyze_object;
/
--- b. Test the procedure using the EMPLOYEES table. Confirm that the
--- ANALYZE_OBJECT procedure has run by querying the LAST_ANALYZED column in
--- the USER_TABLES data dictionary view.
SET SERVEROUTPUT ON;
EXECUTE analyze_object('TABLE', 'sqluser35', 'employees');
-----
----- 4.
--- a. Schedule ANALYZE_OBJECT by using DBMS_JOB. Analyze the DEPARTMENTS table,
--- and schedule the job to run in five minutes time from now. (To start the
--- job in five minutes from now, set the parameter NEXT_DATE = 5/(24*60) = 1/288.)
SET SERVEROUTPUT ON;
VARIABLE v_dbms_job_no NUMBER;
BEGIN
DBMS_JOB.SUBMIT(
:v_dbms_job_no,
'analyze_object(''TABLE'', ''sqluser35'', ''departments'');',
SYSDATE + (5 / (24 * 60))
);
DBMS_OUTPUT.PUT_LINE('Job no.: ' || :v_dbms_job_no);
END;
/
--- b. Confirm that the job has been scheduled by using USER_JOBS.
SELECT job FROM user_jobs WHERE job = :v_dbms_job_no;
-----
/*
----- 5. Create a procedure called CROSS_AVGSAL that generates a text file
----- report of employees who have exceeded the average salary of their
----- department. The partial code is provided for you in the file lab14_5.sql.
--- a. Your program should accept two parameters. The first parameter
--- identifies the output directory. The second parameter identifies the text
--- file name to which your procedure writes.
--& b. Your instructor will inform you of the directory location. When you
--- invoke the program, name the second parameter sal_rptxx.txt where xx stands
--- for your user number, such as 01, 15, and so on.
--& c. Add an exception handling section to handle errors that may be
--- encountered from using the UTL_FILE package.
---Sample output from this file follows:
EMPLOYEES OVER THE AVERAGE SALARY OF THEIR DEPARTMENT:
REPORT GENERATED ON 26-FEB-01
Hartstein 20 $13,000.00
Raphaely 30 $11,000.00
Marvis 40 $6,500.00
...
*** END OF REPORT ***
CREATE OR REPLACE PROCEDURE cross_avgsal
(p_filedir IN VARCHAR2, p_filename1 IN VARCHAR2)
IS
v_fh_1 UTL_FILE.FILE_TYPE;
CURSOR cross_avg IS
SELECT last_name, department_id, salary
FROM employees outer
WHERE salary > (SELECT AVG(salary)
FROM employees inner
GROUP BY outer.department_id)
ORDER BY department_id;
BEGIN
v_fh_1 := UTL_FILE.FOPEN(p_filedir, p_filename1,'w');
UTL_FILE.PUTF(v_fh_1, 'Employees who earn more than average salary: \n');
UTL_FILE.PUTF(v_fh_1, 'REPORT GENERATED ON %s\n\n', SYSDATE);
FOR v_emp_info IN cross_avg LOOP
UTL_FILE.PUTF(v_fh_1, '%s %s \n',
RPAD(v_emp_info.last_name, 30, ' '),
LPAD(TO_CHAR(v_emp_info.salary, '$99,999.00'), 12, ' '));
END LOOP;
UTL_FILE.NEW_LINE(v_fh_1);
UTL_FILE.PUT_LINE(v_fh_1, '*** END OF REPORT ***');
UTL_FILE.FCLOSE(v_fh_1);
EXCEPTION
WHEN UTL_FILE.INVALID_FILEHANDLE THEN
RAISE_APPLICATION_ERROR (-20001, 'Invalid File.');
UTL_FILE.FCLOSE_ALL;
WHEN UTL_FILE.WRITE_ERROR THEN
RAISE_APPLICATION_ERROR (-20002,
'Unable to write to file');
UTL_FILE.FCLOSE_ALL;
END cross_avgsal;
/
-- TODO: substitute path to directory UTL_FILE (currently unknown)
EXECUTE cross_avgsal('', 'sal_rpt35.txt');
*/
|
create sequence sq_geconsul
increment by 1
start with 1
nocache;
|
with
ss
as
(
select i_manufact_id
, sum(ss_ext_sales_price) total_sales
from store_sales
, date_dim
, customer_address
, item
where i_manufact_id in (
select i_manufact_id
from item
where i_category in ('Books')
)
and ss_item_sk = i_item_sk
and ss_sold_date_sk = d_date_sk
and d_year = 1999
and d_moy = 3
and ss_addr_sk = ca_address_sk
and ca_gmt_offset = -6
group by i_manufact_id
),
cs
as
(
select i_manufact_id
, sum(cs_ext_sales_price) total_sales
from catalog_sales
, date_dim
, customer_address
, item
where i_manufact_id in (
select i_manufact_id
from item
where i_category in ('Books')
)
and cs_item_sk = i_item_sk
and cs_sold_date_sk = d_date_sk
and d_year = 1999
and d_moy = 3
and cs_bill_addr_sk = ca_address_sk
and ca_gmt_offset = -6
group by i_manufact_id
),
ws
as
(
select i_manufact_id
, sum(ws_ext_sales_price) total_sales
from web_sales
, date_dim
, customer_address
, item
where i_manufact_id in (
select i_manufact_id
from item
where i_category in ('Books')
)
and ws_item_sk = i_item_sk
and ws_sold_date_sk = d_date_sk
and d_year = 1999
and d_moy = 3
and ws_bill_addr_sk = ca_address_sk
and ca_gmt_offset = -6
group by i_manufact_id
)
select i_manufact_id
, sum(total_sales) total_sales
from (
select *
from ss
union all
select *
from cs
union all
select *
from ws
) tmp1
group by i_manufact_id
order by total_sales
limit 100
; |
I create and populate a table, then create a package and procedure:
CREATE TABLE plch_invasives
(
species_name VARCHAR2 (100),
original_location VARCHAR2 (100),
damage_done VARCHAR2 (100)
)
/
BEGIN
INSERT INTO plch_invasives
VALUES ('Kudzu', 'Japan', 'Everything covered over');
INSERT INTO plch_invasives
VALUES ('Buckthorn', 'Europe', 'Dead birds');
COMMIT;
END;
/
CREATE OR REPLACE PACKAGE plch_pkg
IS
TYPE invasives_t IS TABLE OF plch_invasives%ROWTYPE
INDEX BY PLS_INTEGER;
g_invasives invasives_t;
CURSOR invasives_cur
IS
SELECT * FROM plch_invasives;
PROCEDURE show_count;
END plch_pkg;
/
CREATE OR REPLACE PACKAGE BODY plch_pkg
IS
PROCEDURE show_count
IS
l_count PLS_INTEGER;
BEGIN
SELECT COUNT (*) INTO l_count FROM plch_invasives;
DBMS_OUTPUT.put_line (l_count);
END show_count;
PROCEDURE remove_invasives
IS
BEGIN
DELETE FROM plch_invasives;
END remove_invasives;
BEGIN
remove_invasives;
END plch_pkg;
/
CREATE OR REPLACE PROCEDURE plch_show_count
IS
l_count PLS_INTEGER;
BEGIN
SELECT COUNT (*) INTO l_count FROM plch_invasives;
DBMS_OUTPUT.put_line ('Count=' || l_count);
END plch_show_count;
/
(in a different session) What will display this block call? Explain why:
BEGIN
DBMS_OUTPUT.put_line (plch_pkg.g_invasives.COUNT);
plch_show_count;
END;
/
(in a different session) What will display this block call? Explain why:
DECLARE
l_invasives plch_pkg.invasives_t;
BEGIN
plch_show_count;
END;
/
-- Le-am rulat si testat si mi-a dat urmatoarea afirmatie : "PL/SQL procedure successfully completed.". O sa-mi afiseze la primul BEGIN count = 0 pentru ca am introdus doar 2 inregistrari care sunt incarcate in record-ul g_invasives.
-- Al doilea begin o sa-mi afiseze toate inregistrarile din table invasives_t cu toate inregistrarile din record-urile g_invasives. |
/*
Navicat Premium Data Transfer
Source Server : localhost_3306
Source Server Type : MySQL
Source Server Version : 50018
Source Host : localhost:3306
Source Schema : data_downshift
Target Server Type : MySQL
Target Server Version : 50018
File Encoding : 65001
Date: 27/08/2018 00:37:32
*/
SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;
-- ----------------------------
-- Table structure for model_table
-- ----------------------------
DROP TABLE IF EXISTS `model_table`;
CREATE TABLE `model_table` (
`MODEL_ID` varchar(8) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '',
`SEQ_NUM` int(11) NOT NULL DEFAULT '',
`MODEL_DESC` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
`COLUME_TYPE` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
`COLUME_START_POSITION` int(255) NULL DEFAULT NULL,
`COLUME_LENGTH` int(255) NULL DEFAULT NULL,
`MAIN_COLUME_TAG` varchar(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
`CSV_COLUME_TAG` varchar(10) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
`FILE_ORG_TYPE` varchar(10) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
PRIMARY KEY USING BTREE (`MODEL_ID`, `SEQ_NUM`)
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Compact;
-- ----------------------------
-- Records of model_table
-- ----------------------------
INSERT INTO `model_table` VALUES ('1', 1, '1', 'String', 1, 1, 'Y', '1', 'CSV');
INSERT INTO `model_table` VALUES ('3', 1, '1', 'Decimal', 1, 1, '1', '1', '1');
INSERT INTO `model_table` VALUES ('41', 23, '你好', '8', 1, 2, 'sk', 'iii', 'oo');
INSERT INTO `model_table` VALUES ('am_01', 7, 'nihao', 'string', 1, 2, 'A', 'right', 'e');
INSERT INTO `model_table` VALUES ('am_01', 9, 'nihao', 'string', 1, 2, 'A', 'right', 'e');
INSERT INTO `model_table` VALUES ('am_01', 10, 'nihao', 'string', 1, 2, 'A', 'right', 'e');
INSERT INTO `model_table` VALUES ('am_01', 11, 'nihao', 'string', 1, 2, 'A', 'right', 'e');
INSERT INTO `model_table` VALUES ('am_01', 12, 'nihao', 'string', 1, 2, 'A', 'right', 'e');
INSERT INTO `model_table` VALUES ('am_01', 13, 'nihao', 'string', 1, 2, 'A', 'right', 'e');
INSERT INTO `model_table` VALUES ('am_01', 14, 'nihao', 'string', 1, 2, 'A', 'right', 'e');
INSERT INTO `model_table` VALUES ('am_01', 15, 'nihao', 'string', 1, 2, 'A', 'right', 'e');
INSERT INTO `model_table` VALUES ('am_01', 16, 'nihao', 'string', 1, 2, 'A', 'right', 'e');
INSERT INTO `model_table` VALUES ('am_01', 17, 'nihao', 'string', 1, 2, 'A', 'right', 'e');
INSERT INTO `model_table` VALUES ('am_01', 18, 'nihao', 'string', 1, 2, 'A', 'right', 'e');
INSERT INTO `model_table` VALUES ('am_01', 19, 'nihao', 'string', 1, 2, 'A', 'right', 'e');
INSERT INTO `model_table` VALUES ('am_01', 20, 'nihao', 'string', 1, 2, 'A', 'right', 'e');
INSERT INTO `model_table` VALUES ('am_01', 21, 'nihao', 'string', 1, 2, 'A', 'right', 'e');
INSERT INTO `model_table` VALUES ('am_01', 22, 'nihao', 'string', 1, 2, 'A', 'right', 'e');
INSERT INTO `model_table` VALUES ('am_01', 23, 'nihao', 'string', 1, 2, 'A', 'right', 'e');
INSERT INTO `model_table` VALUES ('am_01', 24, 'nihao', 'string', 1, 2, 'A', 'right', 'e');
INSERT INTO `model_table` VALUES ('am_01', 25, 'nihao', 'string', 1, 2, 'A', 'right', 'e');
INSERT INTO `model_table` VALUES ('am_01', 26, 'nihao', 'string', 1, 2, 'A', 'right', 'e');
INSERT INTO `model_table` VALUES ('am_01', 27, 'nihao', 'string', 1, 2, 'A', 'right', 'e');
INSERT INTO `model_table` VALUES ('am_01', 28, 'nihao', 'string', 1, 2, 'A', 'right', 'e');
INSERT INTO `model_table` VALUES ('am_01', 29, 'nihao', 'string', 1, 2, 'A', 'right', 'f');
INSERT INTO `model_table` VALUES ('am_02', 9, 'sd', 'sd', 3, 2, 'l', 'left', '8');
INSERT INTO `model_table` VALUES ('am_03', 6, 'nihao', 'string', 1, 2, 'A', 'right', 'e');
INSERT INTO `model_table` VALUES ('am_k1', 1, 'nihsodfosdjflskjdfwojflskdjglskjglsfkg', 'Int', 1, 12, 'N', 'dd', 'FIX');
INSERT INTO `model_table` VALUES ('jkl', 2, 'sdf', '字符串', 1, 2, '是', 'df', 'CSV');
INSERT INTO `model_table` VALUES ('kk', 2, 'skd', 'Int', 3, 3, 'd', 'd', 'd');
INSERT INTO `model_table` VALUES ('sd', 30, 'd', 'd', 1, 2, 'd', 'd', 'f');
SET FOREIGN_KEY_CHECKS = 1;
|
# ************************************************************
# Sequel Pro SQL dump
# Version 4541
#
# http://www.sequelpro.com/
# https://github.com/sequelpro/sequelpro
#
# Host: 127.0.0.1 (MySQL 5.6.32)
# Database: interview
# Generation Time: 2017-11-08 00:52:31 +0000
# ************************************************************
/*!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 */;
/*!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 */;
# Dump of table users
# ------------------------------------------------------------
DROP TABLE IF EXISTS `users`;
CREATE TABLE `users` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`first_name` varchar(255) NOT NULL DEFAULT '',
`last_name` varchar(255) NOT NULL DEFAULT '',
`email` varchar(255) NOT NULL DEFAULT '',
`date_joined` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
LOCK TABLES `users` WRITE;
/*!40000 ALTER TABLE `users` DISABLE KEYS */;
INSERT INTO `users` (`id`, `first_name`, `last_name`, `email`, `date_joined`)
VALUES
(1,'Perry','Miranda','perrymiranda@interview.fff','2017-11-05 05:55:39'),
(2,'Olivia','Lopez','olivialopez@interview.fff','2017-11-05 05:55:39'),
(3,'Andrea','Frank','andreafrank@interview.fff','2017-11-05 05:55:39'),
(4,'Marcus','Wilkerson','marcuswilkerson@interview.fff','2017-11-05 17:55:42'),
(5,'Robert','Bennett','robertbennett@interview.fff','2017-11-01 21:55:17'),
(6,'Kelly','Vasquez','kellyvasquez@interview.fff','2017-11-07 03:34:50'),
(7,'Samantha','Lewis','samanthalewis@interview.fff','2017-11-07 03:37:05'),
(8,'Adam','Baker','adambaker@interview.fff','2017-11-03 02:38:35'),
(9,'Jessica','Meyer','jessicameyer@interview.fff','2017-10-30 05:01:50'),
(10,'Marcia','Brown','marciabrown@interview.fff','2017-10-30 14:14:15'),
(11,'Ruth','Smith','ruthsmith@interview.fff','2017-11-03 14:17:07'),
(12,'Melissa','Costa','melissacosta@interview.fff','2017-11-07 13:39:48'),
(13,'Timothy','Cruz','timothycruz@interview.fff','2017-10-31 04:43:46'),
(14,'Julie','Beasley','juliebeasley@interview.fff','2017-11-01 20:12:42'),
(15,'Katherine','Tucker','katherinetucker@interview.fff','2017-11-04 09:55:16'),
(16,'Andrea','Boyd','andreaboyd@interview.fff','2017-11-05 07:13:28'),
(17,'Jamie','Garner','jamiegarner@interview.fff','2017-11-03 19:38:22'),
(18,'April','Foster','aprilfoster@interview.fff','2017-11-04 20:50:37'),
(19,'Jessica','Schroeder','jessicaschroeder@interview.fff','2017-11-04 12:36:47'),
(20,'Ashlee','Davidson','ashleedavidson@interview.fff','2017-10-31 02:50:42'),
(21,'Jennifer','Rodriguez','jenniferrodriguez@interview.fff','2017-10-31 19:43:38'),
(22,'Ruben','Parker','rubenparker@interview.fff','2017-11-06 06:34:05'),
(23,'Evan','Chapman','evanchapman@interview.fff','2017-10-28 21:57:47'),
(24,'Steven','Gray','stevengray@interview.fff','2017-11-05 14:26:45'),
(25,'Travis','Clements','travisclements@interview.fff','2017-11-04 21:24:32'),
(26,'Kayla','Bailey','kaylabailey@interview.fff','2017-11-02 03:37:36'),
(27,'Austin','Williams','austinwilliams@interview.fff','2017-10-31 15:20:43'),
(28,'Sheila','Jones','sheilajones@interview.fff','2017-11-06 02:12:52'),
(29,'Megan','Elliott','meganelliott@interview.fff','2017-11-06 10:06:47'),
(30,'Anna','Sullivan','annasullivan@interview.fff','2017-10-31 14:14:50'),
(31,'Hunter','Lawrence','hunterlawrence@interview.fff','2017-10-31 13:42:22'),
(32,'Raymond','Andrews','raymondandrews@interview.fff','2017-10-30 04:38:13'),
(33,'Rickey','Deleon','rickeydeleon@interview.fff','2017-10-31 14:06:22'),
(34,'Kenneth','Gibson','kennethgibson@interview.fff','2017-11-05 05:55:39'),
(35,'Christopher','Martin','christophermartin@interview.fff','2017-11-04 09:02:39'),
(36,'Lisa','Branch','lisabranch@interview.fff','2017-10-28 20:47:16'),
(37,'David','Kelley','davidkelley@interview.fff','2017-11-02 21:28:48'),
(38,'Darren','Wright','darrenwright@interview.fff','2017-11-02 17:01:24'),
(39,'Matthew','Hartman','matthewhartman@interview.fff','2017-10-28 18:42:15'),
(40,'Joseph','Rivas','josephrivas@interview.fff','2017-11-05 23:06:13'),
(41,'Gary','Walker','garywalker@interview.fff','2017-11-06 21:01:02'),
(42,'Laura','Torres','lauratorres@interview.fff','2017-11-03 00:33:54'),
(43,'Nicole','Pena','nicolepena@interview.fff','2017-10-28 20:24:12'),
(44,'Chelsea','Freeman','chelseafreeman@interview.fff','2017-11-06 05:12:01'),
(45,'Joshua','Cantrell','joshuacantrell@interview.fff','2017-11-04 20:40:07'),
(46,'Brianna','Schultz','briannaschultz@interview.fff','2017-10-31 17:34:03'),
(47,'Rebecca','Johnson','rebeccajohnson@interview.fff','2017-10-30 05:07:34'),
(48,'Craig','Robertson','craigrobertson@interview.fff','2017-10-30 04:46:25'),
(49,'Kristina','Harris','kristinaharris@interview.fff','2017-10-30 20:46:00'),
(50,'Vincent','Arnold','vincentarnold@interview.fff','2017-10-29 21:30:19'),
(51,'Jose','Boyer','joseboyer@interview.fff','2017-11-02 15:07:38'),
(52,'Lindsey','Wilkerson','lindseywilkerson@interview.fff','2017-11-05 08:04:56'),
(53,'Craig','Brown','craigbrown@interview.fff','2017-10-28 23:33:56'),
(54,'Christopher','Simmons','christophersimmons@interview.fff','2017-10-30 04:31:53'),
(55,'Hailey','Martin','haileymartin@interview.fff','2017-11-05 02:33:00'),
(56,'Brian','Chase','brianchase@interview.fff','2017-10-30 12:17:54'),
(57,'Richard','Bailey','richardbailey@interview.fff','2017-11-03 19:48:17'),
(58,'Heather','Baker','heatherbaker@interview.fff','2017-10-31 16:16:38'),
(59,'Lisa','Powers','lisapowers@interview.fff','2017-11-01 05:44:17'),
(60,'Clinton','Melton','clintonmelton@interview.fff','2017-11-02 21:19:56'),
(61,'Gregory','Lopez','gregorylopez@interview.fff','2017-10-30 05:20:54'),
(62,'Tyler','Paul','tylerpaul@interview.fff','2017-10-30 17:47:28'),
(63,'Sheila','Harding','sheilaharding@interview.fff','2017-11-03 10:15:12'),
(64,'Jack','Barnes','jackbarnes@interview.fff','2017-11-05 00:59:10'),
(65,'Kimberly','Johnson','kimberlyjohnson@interview.fff','2017-11-04 12:28:25'),
(66,'Leslie','Arroyo','lesliearroyo@interview.fff','2017-11-04 18:29:06'),
(67,'Duane','Glenn','duaneglenn@interview.fff','2017-11-07 12:40:26'),
(68,'Jacob','Johnson','jacobjohnson@interview.fff','2017-11-03 22:25:23'),
(69,'Colleen','Smith','colleensmith@interview.fff','2017-11-01 11:00:21'),
(70,'Savannah','Wilson','savannahwilson@interview.fff','2017-11-03 04:35:14'),
(71,'Ashley','Bailey','ashleybailey@interview.fff','2017-10-31 23:49:25'),
(72,'Tiffany','Gates','tiffanygates@interview.fff','2017-11-02 21:24:54'),
(73,'Joshua','Reed','joshuareed@interview.fff','2017-11-07 00:06:21'),
(74,'Brittney','Mendoza','brittneymendoza@interview.fff','2017-11-04 09:06:07'),
(75,'Olivia','Hooper','oliviahooper@interview.fff','2017-11-02 10:42:04'),
(76,'Sarah','Patton','sarahpatton@interview.fff','2017-11-04 16:58:41'),
(77,'Shari','Aguilar','shariaguilar@interview.fff','2017-10-30 15:31:31'),
(78,'Linda','Hernandez','lindahernandez@interview.fff','2017-10-29 10:27:12'),
(79,'Shelby','Morgan','shelbymorgan@interview.fff','2017-10-29 19:57:22'),
(80,'Anthony','Hicks','anthonyhicks@interview.fff','2017-10-29 00:24:49'),
(81,'Shane','Steele','shanesteele@interview.fff','2017-10-31 06:42:38'),
(82,'Victoria','Zhang','victoriazhang@interview.fff','2017-11-04 20:45:13'),
(83,'Laura','Sanchez','laurasanchez@interview.fff','2017-11-06 07:40:21'),
(84,'Julie','Johnson','juliejohnson@interview.fff','2017-10-31 07:29:57'),
(85,'Crystal','Barnes','crystalbarnes@interview.fff','2017-11-04 12:23:06'),
(86,'Joseph','Brown','josephbrown@interview.fff','2017-11-02 07:17:18'),
(87,'John','Wagner','johnwagner@interview.fff','2017-10-31 22:06:33'),
(88,'Tyrone','Boone','tyroneboone@interview.fff','2017-11-02 09:35:31'),
(89,'Kelsey','Barker','kelseybarker@interview.fff','2017-11-07 15:22:52'),
(90,'Crystal','Gonzalez','crystalgonzalez@interview.fff','2017-11-03 17:24:10'),
(91,'Daniel','Woodard','danielwoodard@interview.fff','2017-10-31 06:27:35'),
(92,'Donald','Gillespie','donaldgillespie@interview.fff','2017-11-03 10:20:40'),
(93,'Erica','Cole','ericacole@interview.fff','2017-11-07 06:55:07'),
(94,'Tyler','Sandoval','tylersandoval@interview.fff','2017-11-02 12:51:01'),
(95,'Laura','Ramos','lauraramos@interview.fff','2017-11-03 23:10:20'),
(96,'Christopher','Levine','christopherlevine@interview.fff','2017-11-03 13:00:09'),
(97,'Shannon','King','shannonking@interview.fff','2017-11-07 01:41:01'),
(98,'Alexandra','Stephenson','alexandrastephenson@interview.fff','2017-11-04 20:23:10'),
(99,'Derek','Kim','derekkim@interview.fff','2017-10-29 12:29:27'),
(100,'April','Herman','aprilherman@interview.fff','2017-11-03 03:04:46'),
(101,'Patricia','Lambert','patricialambert@interview.fff','2017-11-02 05:39:31'),
(102,'Adam','Long','adamlong@interview.fff','2017-11-02 16:28:30'),
(103,'Charles','Guzman','charlesguzman@interview.fff','2017-10-31 14:29:33'),
(104,'Kevin','Jenkins','kevinjenkins@interview.fff','2017-10-30 10:44:03'),
(105,'Justin','Mercado','justinmercado@interview.fff','2017-10-30 14:09:13'),
(106,'Stephanie','Torres','stephanietorres@interview.fff','2017-11-04 11:48:37'),
(107,'Mitchell','Bush','mitchellbush@interview.fff','2017-10-30 07:53:49'),
(108,'William','Roy','williamroy@interview.fff','2017-11-04 06:55:56'),
(109,'Brenda','Sanchez','brendasanchez@interview.fff','2017-11-05 19:55:09'),
(110,'Steven','Francis','stevenfrancis@interview.fff','2017-11-04 02:47:44'),
(111,'William','Martinez','williammartinez@interview.fff','2017-11-07 16:33:02'),
(112,'John','Parks','johnparks@interview.fff','2017-11-06 22:08:03'),
(113,'Michael','Simmons','michaelsimmons@interview.fff','2017-11-02 02:44:29'),
(114,'Melissa','Hickman','melissahickman@interview.fff','2017-11-04 02:02:48'),
(115,'Joshua','Chandler','joshuachandler@interview.fff','2017-11-04 17:20:05'),
(116,'George','Woodward','georgewoodward@interview.fff','2017-11-05 22:00:51'),
(117,'Dakota','Thompson','dakotathompson@interview.fff','2017-11-07 03:46:30'),
(118,'Robert','Martinez','robertmartinez@interview.fff','2017-10-30 07:47:46'),
(119,'Theresa','Barnett','theresabarnett@interview.fff','2017-11-07 07:53:52'),
(120,'John','Walter','johnwalter@interview.fff','2017-11-04 18:00:39'),
(121,'Michael','Harris','michaelharris@interview.fff','2017-11-04 07:54:06'),
(122,'Lawrence','Flores','lawrenceflores@interview.fff','2017-10-31 22:31:02'),
(123,'Todd','Barnes','toddbarnes@interview.fff','2017-11-04 16:38:24'),
(124,'Patrick','Peterson','patrickpeterson@interview.fff','2017-10-31 15:24:21'),
(125,'Shawn','Lopez','shawnlopez@interview.fff','2017-11-02 01:34:50'),
(126,'Mary','Fields','maryfields@interview.fff','2017-11-01 17:21:20'),
(127,'Beverly','Merritt','beverlymerritt@interview.fff','2017-10-31 18:54:56'),
(128,'Melissa','Lynch','melissalynch@interview.fff','2017-11-02 14:02:30'),
(129,'Amy','Hicks','amyhicks@interview.fff','2017-10-31 00:04:21'),
(130,'Sandra','Martinez','sandramartinez@interview.fff','2017-10-29 15:54:02'),
(131,'David','Conley','davidconley@interview.fff','2017-10-29 07:06:19'),
(132,'Caitlyn','Williams','caitlynwilliams@interview.fff','2017-10-29 20:55:03'),
(133,'Amber','Mendoza','ambermendoza@interview.fff','2017-11-06 07:06:50'),
(134,'Roy','Parker','royparker@interview.fff','2017-10-30 14:42:43'),
(135,'Jason','Riggs','jasonriggs@interview.fff','2017-11-02 05:07:57'),
(136,'John','Gomez','johngomez@interview.fff','2017-11-06 19:30:04'),
(137,'Michelle','Herman','michelleherman@interview.fff','2017-10-31 20:37:52'),
(138,'Cody','Blackwell','codyblackwell@interview.fff','2017-10-29 06:36:12'),
(139,'Daniel','Mccoy','danielmccoy@interview.fff','2017-11-01 01:40:56'),
(140,'George','Benton','georgebenton@interview.fff','2017-10-30 01:32:00'),
(141,'Adam','Morrison','adammorrison@interview.fff','2017-10-30 16:31:32'),
(142,'Edwin','Stewart','edwinstewart@interview.fff','2017-11-06 20:37:23'),
(143,'Dawn','Zavala','dawnzavala@interview.fff','2017-11-03 04:52:01'),
(144,'Joe','Cook','joecook@interview.fff','2017-11-03 22:52:21'),
(145,'Melissa','Richard','melissarichard@interview.fff','2017-10-31 22:57:07'),
(146,'Jessica','Bridges','jessicabridges@interview.fff','2017-10-29 18:34:03'),
(147,'Samuel','Graham','samuelgraham@interview.fff','2017-11-04 07:07:52'),
(148,'Cody','Allen','codyallen@interview.fff','2017-11-06 12:22:43'),
(149,'Carlos','Turner','carlosturner@interview.fff','2017-10-29 23:30:37'),
(150,'Kathy','Jennings','kathyjennings@interview.fff','2017-10-29 11:04:08'),
(151,'William','Thompson','williamthompson@interview.fff','2017-10-30 22:31:37'),
(152,'Jasmine','Stephens','jasminestephens@interview.fff','2017-11-06 21:02:37'),
(153,'Andrew','Hayes','andrewhayes@interview.fff','2017-11-02 17:46:14'),
(154,'Maria','Hartman','mariahartman@interview.fff','2017-11-03 18:40:53'),
(155,'Robert','Smith','robertsmith@interview.fff','2017-10-31 13:18:02'),
(156,'Kristen','Ramirez','kristenramirez@interview.fff','2017-11-06 10:04:11'),
(157,'Michael','Hurst','michaelhurst@interview.fff','2017-10-30 09:33:36'),
(158,'Michael','Cunningham','michaelcunningham@interview.fff','2017-11-06 23:32:26'),
(159,'Jessica','Johnston','jessicajohnston@interview.fff','2017-11-02 15:34:23'),
(160,'Felicia','Jones','feliciajones@interview.fff','2017-10-31 00:05:18'),
(161,'Jennifer','Dalton','jenniferdalton@interview.fff','2017-11-02 00:28:10'),
(162,'Hector','Russell','hectorrussell@interview.fff','2017-11-06 14:16:45'),
(163,'Lucas','Kaufman','lucaskaufman@interview.fff','2017-10-29 10:04:14'),
(164,'Lisa','Garner','lisagarner@interview.fff','2017-11-04 23:21:07'),
(165,'Marcus','Chapman','marcuschapman@interview.fff','2017-11-07 04:28:31'),
(166,'Robin','Mcintosh','robinmcintosh@interview.fff','2017-11-03 21:23:10'),
(167,'April','Walker','aprilwalker@interview.fff','2017-11-01 23:11:11'),
(168,'Karen','Bush','karenbush@interview.fff','2017-11-03 18:41:33'),
(169,'Keith','Benjamin','keithbenjamin@interview.fff','2017-10-31 15:14:53'),
(170,'Eric','Wilson','ericwilson@interview.fff','2017-11-02 00:26:09'),
(171,'Troy','Walls','troywalls@interview.fff','2017-10-30 05:18:34'),
(172,'Dennis','Orozco','dennisorozco@interview.fff','2017-11-04 04:53:16'),
(173,'Patricia','James','patriciajames@interview.fff','2017-11-07 15:18:46'),
(174,'Anthony','Young','anthonyyoung@interview.fff','2017-11-03 11:10:52'),
(175,'Shawn','Silva','shawnsilva@interview.fff','2017-11-05 10:14:07'),
(176,'Marvin','Gibbs','marvingibbs@interview.fff','2017-11-05 03:06:41'),
(177,'Shannon','Alexander','shannonalexander@interview.fff','2017-11-03 11:27:47'),
(178,'Dean','Espinoza','deanespinoza@interview.fff','2017-11-03 17:29:42'),
(179,'Rebecca','Hill','rebeccahill@interview.fff','2017-11-07 03:29:31'),
(180,'Travis','Booth','travisbooth@interview.fff','2017-11-05 04:31:46'),
(181,'Corey','Hill','coreyhill@interview.fff','2017-11-07 06:20:26'),
(182,'Scott','Morgan','scottmorgan@interview.fff','2017-10-30 07:57:25'),
(183,'Rebecca','Myers','rebeccamyers@interview.fff','2017-11-04 08:31:49'),
(184,'Leroy','Ramirez','leroyramirez@interview.fff','2017-10-31 14:30:50'),
(185,'Lynn','Powell','lynnpowell@interview.fff','2017-11-07 01:40:06'),
(186,'Dana','Smith','danasmith@interview.fff','2017-11-02 18:24:33'),
(187,'Vicki','Clark','vickiclark@interview.fff','2017-11-01 10:24:56'),
(188,'Joseph','Fitzgerald','josephfitzgerald@interview.fff','2017-11-03 02:59:46'),
(189,'Todd','Fleming','toddfleming@interview.fff','2017-11-05 17:52:06'),
(190,'Julia','Sanchez','juliasanchez@interview.fff','2017-10-30 22:54:45'),
(191,'Denise','Gordon','denisegordon@interview.fff','2017-11-01 10:31:18'),
(192,'Peter','Brown','peterbrown@interview.fff','2017-11-04 15:53:05'),
(193,'James','Williams','jameswilliams@interview.fff','2017-11-01 18:19:53'),
(194,'Lauren','Kramer','laurenkramer@interview.fff','2017-11-03 23:46:58'),
(195,'Tracy','Weber','tracyweber@interview.fff','2017-11-03 04:46:27'),
(196,'Craig','Hull','craighull@interview.fff','2017-10-30 17:16:46'),
(197,'Wayne','Jones','waynejones@interview.fff','2017-11-07 11:35:47'),
(198,'Brian','Lewis','brianlewis@interview.fff','2017-10-29 18:59:03'),
(199,'Brittany','Jones','brittanyjones@interview.fff','2017-10-31 12:15:26'),
(200,'Shannon','Smith','shannonsmith@interview.fff','2017-11-02 10:18:04'),
(201,'Danielle','Farmer','daniellefarmer@interview.fff','2017-10-31 05:40:38'),
(202,'Jennifer','Potter','jenniferpotter@interview.fff','2017-11-06 17:46:44'),
(203,'Amy','Hendricks','amyhendricks@interview.fff','2017-10-30 17:29:35'),
(204,'Megan','Curtis','megancurtis@interview.fff','2017-10-29 21:06:44'),
(205,'Paula','Williams','paulawilliams@interview.fff','2017-11-07 02:42:40'),
(206,'Larry','Spencer','larryspencer@interview.fff','2017-11-03 11:54:15'),
(207,'David','Whitehead','davidwhitehead@interview.fff','2017-10-31 12:30:22'),
(208,'Dana','Berger','danaberger@interview.fff','2017-10-30 19:43:44'),
(209,'Laura','Castro','lauracastro@interview.fff','2017-11-06 09:50:17'),
(210,'Joshua','Deleon','joshuadeleon@interview.fff','2017-11-06 18:59:03'),
(211,'Erica','Acevedo','ericaacevedo@interview.fff','2017-11-05 10:16:07'),
(212,'Raymond','Burton','raymondburton@interview.fff','2017-11-05 02:41:52'),
(213,'Steven','Hill','stevenhill@interview.fff','2017-11-06 16:01:44'),
(214,'Julie','Joseph','juliejoseph@interview.fff','2017-11-04 19:12:23'),
(215,'Frank','Jackson','frankjackson@interview.fff','2017-11-03 10:00:39'),
(216,'Troy','Montes','troymontes@interview.fff','2017-11-04 14:31:09'),
(217,'Thomas','Ramirez','thomasramirez@interview.fff','2017-11-01 01:27:11'),
(218,'Erik','Harper','erikharper@interview.fff','2017-11-05 01:04:45'),
(219,'Alfred','Andersen','alfredandersen@interview.fff','2017-11-01 01:26:38'),
(220,'David','Gomez','davidgomez@interview.fff','2017-10-30 16:41:36'),
(221,'Trevor','Guerra','trevorguerra@interview.fff','2017-10-31 09:19:33'),
(222,'Michael','Simpson','michaelsimpson@interview.fff','2017-11-07 09:30:14'),
(223,'Christian','Ramirez','christianramirez@interview.fff','2017-11-01 14:43:06'),
(224,'Jamie','Clark','jamieclark@interview.fff','2017-10-31 15:52:37'),
(225,'Jason','Bennett','jasonbennett@interview.fff','2017-11-04 15:02:33'),
(226,'Christopher','James','christopherjames@interview.fff','2017-10-30 06:54:45'),
(227,'Amber','Hopkins','amberhopkins@interview.fff','2017-10-30 06:39:28'),
(228,'Leslie','Beck','lesliebeck@interview.fff','2017-10-31 05:41:31'),
(229,'Matthew','Gonzalez','matthewgonzalez@interview.fff','2017-10-30 15:28:39'),
(230,'Steve','Allison','steveallison@interview.fff','2017-10-30 10:27:54'),
(231,'Nicole','Miller','nicolemiller@interview.fff','2017-10-30 21:57:30'),
(232,'Lynn','Burnett','lynnburnett@interview.fff','2017-10-29 23:39:09'),
(233,'John','Johnson','johnjohnson@interview.fff','2017-10-29 23:47:52'),
(234,'Matthew','Edwards','matthewedwards@interview.fff','2017-11-06 15:37:53'),
(235,'Isaac','Bailey','isaacbailey@interview.fff','2017-11-03 00:56:39'),
(236,'William','Dixon','williamdixon@interview.fff','2017-11-07 06:13:35'),
(237,'Brandon','Wagner','brandonwagner@interview.fff','2017-11-05 14:39:01'),
(238,'Megan','Wolf','meganwolf@interview.fff','2017-10-29 19:31:18'),
(239,'Rachel','Roy','rachelroy@interview.fff','2017-10-30 20:20:42'),
(240,'Jennifer','Bennett','jenniferbennett@interview.fff','2017-11-03 13:47:16'),
(241,'Derek','Vasquez','derekvasquez@interview.fff','2017-10-29 14:58:47'),
(242,'Brandon','Smith','brandonsmith@interview.fff','2017-11-04 22:16:41'),
(243,'Veronica','Montoya','veronicamontoya@interview.fff','2017-11-07 00:50:35'),
(244,'Seth','Rose','sethrose@interview.fff','2017-10-30 06:46:44'),
(245,'Garrett','Haley','garretthaley@interview.fff','2017-10-31 17:48:07'),
(246,'John','Hudson','johnhudson@interview.fff','2017-11-06 08:17:11'),
(247,'Lacey','Johns','laceyjohns@interview.fff','2017-11-02 14:52:36'),
(248,'Ryan','Taylor','ryantaylor@interview.fff','2017-11-04 12:17:59'),
(249,'Anthony','Gomez','anthonygomez@interview.fff','2017-10-31 17:49:35'),
(250,'Mark','Wise','markwise@interview.fff','2017-11-01 21:40:22'),
(251,'Marcus','White','marcuswhite@interview.fff','2017-11-02 03:38:10'),
(252,'Clifford','Smith','cliffordsmith@interview.fff','2017-11-02 14:30:17'),
(253,'Ryan','Hobbs','ryanhobbs@interview.fff','2017-11-03 15:54:06'),
(254,'Emily','Robbins','emilyrobbins@interview.fff','2017-10-28 16:54:24'),
(255,'Eric','Gonzalez','ericgonzalez@interview.fff','2017-11-01 22:56:31'),
(256,'Troy','Nelson','troynelson@interview.fff','2017-11-03 17:12:05'),
(257,'Christopher','Wilson','christopherwilson@interview.fff','2017-11-07 06:45:52'),
(258,'Jasmine','Huffman','jasminehuffman@interview.fff','2017-11-03 21:00:23'),
(259,'Kimberly','Gutierrez','kimberlygutierrez@interview.fff','2017-11-05 05:18:45'),
(260,'Dawn','Allen','dawnallen@interview.fff','2017-10-30 10:10:47'),
(261,'James','Burns','jamesburns@interview.fff','2017-11-01 12:18:24'),
(262,'Nicole','Cervantes','nicolecervantes@interview.fff','2017-10-30 13:48:48'),
(263,'Tim','Miller','timmiller@interview.fff','2017-10-29 02:47:04'),
(264,'Darryl','Munoz','darrylmunoz@interview.fff','2017-11-04 13:55:44'),
(265,'Kathy','Johnson','kathyjohnson@interview.fff','2017-11-06 09:59:14'),
(266,'Julie','Frazier','juliefrazier@interview.fff','2017-10-29 06:07:17'),
(267,'Shelia','Mills','sheliamills@interview.fff','2017-11-01 06:38:43'),
(268,'Thomas','Bass','thomasbass@interview.fff','2017-11-07 01:19:08'),
(269,'Melissa','Owens','melissaowens@interview.fff','2017-10-29 06:31:24'),
(270,'Sydney','Reed','sydneyreed@interview.fff','2017-11-06 22:27:11'),
(271,'Donna','Rasmussen','donnarasmussen@interview.fff','2017-11-04 12:19:49'),
(272,'Alicia','Price','aliciaprice@interview.fff','2017-11-02 05:26:12'),
(273,'Christopher','Copeland','christophercopeland@interview.fff','2017-11-06 03:54:38'),
(274,'Keith','Chen','keithchen@interview.fff','2017-11-05 17:26:44'),
(275,'Laura','Duncan','lauraduncan@interview.fff','2017-11-05 03:38:03'),
(276,'John','Jacobs','johnjacobs@interview.fff','2017-10-30 21:32:59'),
(277,'Christie','Henson','christiehenson@interview.fff','2017-10-30 14:51:07'),
(278,'Mark','Sexton','marksexton@interview.fff','2017-11-02 08:23:37'),
(279,'Maureen','Montes','maureenmontes@interview.fff','2017-10-31 22:02:34'),
(280,'Patrick','Walker','patrickwalker@interview.fff','2017-11-07 13:12:59'),
(281,'Jessica','Hernandez','jessicahernandez@interview.fff','2017-10-30 14:15:57'),
(282,'John','Phelps','johnphelps@interview.fff','2017-11-02 03:58:09'),
(283,'Emily','Cruz','emilycruz@interview.fff','2017-11-07 00:38:46'),
(284,'Robert','Rowland','robertrowland@interview.fff','2017-11-07 15:42:04'),
(285,'Anthony','Gray','anthonygray@interview.fff','2017-11-05 15:54:27'),
(286,'Amy','Jimenez','amyjimenez@interview.fff','2017-10-31 12:22:24'),
(287,'William','Thomas','williamthomas@interview.fff','2017-11-06 08:09:51'),
(288,'Heidi','Rodriguez','heidirodriguez@interview.fff','2017-10-29 03:56:12'),
(289,'Catherine','Wiggins','catherinewiggins@interview.fff','2017-10-30 00:53:10'),
(290,'George','White','georgewhite@interview.fff','2017-11-01 23:29:44'),
(291,'Elizabeth','Mora','elizabethmora@interview.fff','2017-11-04 01:38:12'),
(292,'Robin','Miller','robinmiller@interview.fff','2017-10-30 04:14:28'),
(293,'Derek','Rodriguez','derekrodriguez@interview.fff','2017-11-04 08:39:40'),
(294,'Wendy','Conrad','wendyconrad@interview.fff','2017-10-31 10:49:33'),
(295,'Heidi','Browning','heidibrowning@interview.fff','2017-11-02 23:17:43'),
(296,'Cynthia','Mendoza','cynthiamendoza@interview.fff','2017-11-02 20:51:44'),
(297,'Michael','Rodgers','michaelrodgers@interview.fff','2017-11-04 15:50:45'),
(298,'Lauren','Norton','laurennorton@interview.fff','2017-11-03 18:17:18'),
(299,'Melissa','Pham','melissapham@interview.fff','2017-10-28 20:15:23'),
(300,'Adam','Watson','adamwatson@interview.fff','2017-11-01 23:12:29'),
(301,'Michael','Larson','michaellarson@interview.fff','2017-11-05 02:57:44'),
(302,'Brent','Nguyen','brentnguyen@interview.fff','2017-10-28 19:37:51'),
(303,'John','Garcia','johngarcia@interview.fff','2017-10-30 05:06:57'),
(304,'Megan','Foley','meganfoley@interview.fff','2017-10-29 20:29:11'),
(305,'Adrian','Hinton','adrianhinton@interview.fff','2017-11-02 10:01:57'),
(306,'Joshua','Jenkins','joshuajenkins@interview.fff','2017-10-31 20:07:30'),
(307,'Becky','Moss','beckymoss@interview.fff','2017-11-02 18:02:33'),
(308,'David','Sandoval','davidsandoval@interview.fff','2017-10-31 06:09:43'),
(309,'Timothy','Castillo','timothycastillo@interview.fff','2017-10-29 07:59:30'),
(310,'Heidi','Robles','heidirobles@interview.fff','2017-11-03 20:27:24'),
(311,'Renee','Rose','reneerose@interview.fff','2017-10-30 10:59:21'),
(312,'Carol','Walker','carolwalker@interview.fff','2017-10-28 16:51:40'),
(313,'Ray','Trujillo','raytrujillo@interview.fff','2017-11-05 09:39:45'),
(314,'April','Smith','aprilsmith@interview.fff','2017-10-30 10:42:17'),
(315,'Richard','Molina','richardmolina@interview.fff','2017-11-06 13:40:22'),
(316,'Tina','Braun','tinabraun@interview.fff','2017-10-29 21:52:27'),
(317,'Michael','Warren','michaelwarren@interview.fff','2017-11-07 00:38:47'),
(318,'Roger','Wilson','rogerwilson@interview.fff','2017-11-06 03:46:45'),
(319,'Maria','Hart','mariahart@interview.fff','2017-11-05 01:44:04'),
(320,'Teresa','Silva','teresasilva@interview.fff','2017-11-04 01:58:58'),
(321,'Catherine','Swanson','catherineswanson@interview.fff','2017-11-06 21:37:53'),
(322,'Stacey','Henson','staceyhenson@interview.fff','2017-10-28 21:57:54'),
(323,'Erik','Miller','erikmiller@interview.fff','2017-11-01 09:37:21'),
(324,'Jason','Steele','jasonsteele@interview.fff','2017-11-04 02:48:45'),
(325,'Bryan','Cochran','bryancochran@interview.fff','2017-11-02 20:43:01'),
(326,'Brenda','Tran','brendatran@interview.fff','2017-11-01 16:54:29'),
(327,'Kimberly','Perez','kimberlyperez@interview.fff','2017-11-02 06:48:21'),
(328,'Eric','Leonard','ericleonard@interview.fff','2017-11-02 12:25:54'),
(329,'Michael','Mcdonald','michaelmcdonald@interview.fff','2017-11-02 12:36:11'),
(330,'Michelle','Weaver','michelleweaver@interview.fff','2017-10-29 09:51:11'),
(331,'Shannon','Price','shannonprice@interview.fff','2017-11-05 04:15:12'),
(332,'Jessica','Howell','jessicahowell@interview.fff','2017-11-07 03:42:14'),
(333,'Tammy','Rogers','tammyrogers@interview.fff','2017-11-06 13:53:19'),
(334,'Ryan','King','ryanking@interview.fff','2017-10-29 07:27:36'),
(335,'Monica','Bennett','monicabennett@interview.fff','2017-10-29 11:55:03'),
(336,'Tabitha','Soto','tabithasoto@interview.fff','2017-11-04 04:04:32'),
(337,'Sara','Golden','saragolden@interview.fff','2017-10-29 22:35:55'),
(338,'Maria','Hughes','mariahughes@interview.fff','2017-10-31 06:49:42'),
(339,'John','Espinoza','johnespinoza@interview.fff','2017-11-04 10:05:03'),
(340,'Charles','Sullivan','charlessullivan@interview.fff','2017-11-01 09:25:21'),
(341,'Ruben','West','rubenwest@interview.fff','2017-11-07 08:20:17'),
(342,'Michelle','Schwartz','michelleschwartz@interview.fff','2017-11-07 13:12:51'),
(343,'Natasha','Allison','natashaallison@interview.fff','2017-10-29 16:31:10'),
(344,'John','Scott','johnscott@interview.fff','2017-11-02 23:14:48'),
(345,'Steven','Johnson','stevenjohnson@interview.fff','2017-10-29 04:39:27'),
(346,'Tyrone','Solis','tyronesolis@interview.fff','2017-10-30 10:49:08'),
(347,'Tiffany','Cunningham','tiffanycunningham@interview.fff','2017-11-01 11:53:01'),
(348,'Monica','Brady','monicabrady@interview.fff','2017-11-01 03:01:01'),
(349,'Heather','Stone','heatherstone@interview.fff','2017-11-03 12:45:25'),
(350,'Carol','Richards','carolrichards@interview.fff','2017-10-30 09:11:59'),
(351,'Daniel','Bates','danielbates@interview.fff','2017-11-04 13:55:53'),
(352,'Matthew','Schmitt','matthewschmitt@interview.fff','2017-11-02 11:14:05'),
(353,'Lisa','Anderson','lisaanderson@interview.fff','2017-10-30 07:32:37'),
(354,'Alexis','Miranda','alexismiranda@interview.fff','2017-11-05 09:38:00'),
(355,'Jack','Rivas','jackrivas@interview.fff','2017-10-31 11:05:34'),
(356,'Jessica','Thomas','jessicathomas@interview.fff','2017-11-06 22:31:41'),
(357,'Desiree','Camacho','desireecamacho@interview.fff','2017-11-02 01:47:31'),
(358,'Dorothy','Vincent','dorothyvincent@interview.fff','2017-10-29 18:30:48'),
(359,'Megan','Munoz','meganmunoz@interview.fff','2017-11-06 12:52:19'),
(360,'Kenneth','Patrick','kennethpatrick@interview.fff','2017-11-02 23:25:44'),
(361,'Mary','Howard','maryhoward@interview.fff','2017-11-06 00:00:02'),
(362,'Joshua','Mann','joshuamann@interview.fff','2017-11-06 22:10:25'),
(363,'Miguel','Mills','miguelmills@interview.fff','2017-11-07 07:22:04'),
(364,'Jacob','Campbell','jacobcampbell@interview.fff','2017-11-05 00:05:08'),
(365,'Rachel','Hicks','rachelhicks@interview.fff','2017-11-06 03:52:27'),
(366,'Isabel','Christensen','isabelchristensen@interview.fff','2017-10-31 19:24:37'),
(367,'Derek','Jackson','derekjackson@interview.fff','2017-11-07 12:58:49'),
(368,'Jeremy','Potter','jeremypotter@interview.fff','2017-11-02 08:46:03'),
(369,'Zachary','Smith','zacharysmith@interview.fff','2017-11-03 06:57:35'),
(370,'Rachel','Dixon','racheldixon@interview.fff','2017-11-02 15:53:15'),
(371,'David','Underwood','davidunderwood@interview.fff','2017-11-01 19:35:21'),
(372,'Taylor','Glenn','taylorglenn@interview.fff','2017-11-06 11:04:36'),
(373,'Molly','Harrison','mollyharrison@interview.fff','2017-10-30 08:14:05'),
(374,'Ronald','Duran','ronaldduran@interview.fff','2017-10-30 20:55:45'),
(375,'Tracey','Porter','traceyporter@interview.fff','2017-10-30 22:41:57'),
(376,'Aaron','Cox','aaroncox@interview.fff','2017-11-04 07:04:06'),
(377,'Jennifer','Kirk','jenniferkirk@interview.fff','2017-11-03 12:16:22'),
(378,'Shane','Adams','shaneadams@interview.fff','2017-11-06 00:39:16'),
(379,'Troy','Parker','troyparker@interview.fff','2017-11-05 07:12:58'),
(380,'Jocelyn','Jones','jocelynjones@interview.fff','2017-11-03 17:14:41'),
(381,'Christopher','Wise','christopherwise@interview.fff','2017-11-02 05:01:50'),
(382,'Amy','Macdonald','amymacdonald@interview.fff','2017-11-04 07:09:39'),
(383,'Kimberly','Garcia','kimberlygarcia@interview.fff','2017-11-04 02:34:15'),
(384,'Mitchell','Pitts','mitchellpitts@interview.fff','2017-11-03 08:32:07'),
(385,'Troy','Mills','troymills@interview.fff','2017-11-06 01:07:56'),
(386,'Erik','Morris','erikmorris@interview.fff','2017-11-02 12:54:22'),
(387,'Roberto','Cook','robertocook@interview.fff','2017-11-06 01:19:51'),
(388,'Jane','Thompson','janethompson@interview.fff','2017-10-31 08:42:38'),
(389,'Micheal','Smith','michealsmith@interview.fff','2017-10-28 19:01:43'),
(390,'Monica','Wilson','monicawilson@interview.fff','2017-11-05 09:40:28'),
(391,'Lisa','Johnson','lisajohnson@interview.fff','2017-11-06 14:03:25'),
(392,'Mark','Miller','markmiller@interview.fff','2017-11-06 02:24:54'),
(393,'Wayne','Aguilar','wayneaguilar@interview.fff','2017-10-31 06:46:40'),
(394,'Teresa','Johnson','teresajohnson@interview.fff','2017-11-05 20:39:26'),
(395,'Rita','Evans','ritaevans@interview.fff','2017-11-01 09:17:52'),
(396,'Timothy','Berry','timothyberry@interview.fff','2017-11-02 15:22:18'),
(397,'Lori','White','loriwhite@interview.fff','2017-11-02 03:55:39'),
(398,'Michelle','Roberts','michelleroberts@interview.fff','2017-10-30 22:05:28'),
(399,'Jesse','Mccarthy','jessemccarthy@interview.fff','2017-10-31 08:08:53'),
(400,'Linda','Frazier','lindafrazier@interview.fff','2017-11-01 18:31:15'),
(401,'Michelle','Washington','michellewashington@interview.fff','2017-11-03 10:57:54'),
(402,'Shelly','Smith','shellysmith@interview.fff','2017-11-05 17:30:00'),
(403,'Susan','Rogers','susanrogers@interview.fff','2017-11-04 23:03:48'),
(404,'Marvin','Brown','marvinbrown@interview.fff','2017-11-04 04:22:37'),
(405,'Aaron','Zimmerman','aaronzimmerman@interview.fff','2017-11-04 20:41:28'),
(406,'Crystal','Ross','crystalross@interview.fff','2017-11-03 03:08:56'),
(407,'Victor','Hughes','victorhughes@interview.fff','2017-10-29 11:49:43'),
(408,'Garrett','Grant','garrettgrant@interview.fff','2017-11-01 21:02:51'),
(409,'Nichole','Roberts','nicholeroberts@interview.fff','2017-10-28 23:53:57'),
(410,'William','Nelson','williamnelson@interview.fff','2017-11-04 01:14:22'),
(411,'Sheila','Smith','sheilasmith@interview.fff','2017-11-02 03:14:36'),
(412,'Logan','Mcgee','loganmcgee@interview.fff','2017-11-04 09:42:50'),
(413,'Dustin','Nelson','dustinnelson@interview.fff','2017-11-04 13:56:50'),
(414,'Tim','Larson','timlarson@interview.fff','2017-10-29 07:46:23'),
(415,'Christina','Cox','christinacox@interview.fff','2017-11-03 09:46:33'),
(416,'David','Robinson','davidrobinson@interview.fff','2017-11-03 08:24:16'),
(417,'Devon','Johnson','devonjohnson@interview.fff','2017-11-04 23:36:36'),
(418,'Kelly','Carr','kellycarr@interview.fff','2017-11-06 19:44:43'),
(419,'Grace','Bradshaw','gracebradshaw@interview.fff','2017-10-29 02:03:04'),
(420,'Peter','Logan','peterlogan@interview.fff','2017-10-29 21:34:21'),
(421,'Troy','Anderson','troyanderson@interview.fff','2017-11-06 05:31:00'),
(422,'Nicole','Brown','nicolebrown@interview.fff','2017-11-01 00:24:14'),
(423,'Jared','Davis','jareddavis@interview.fff','2017-10-29 23:06:23'),
(424,'Ronald','Singleton','ronaldsingleton@interview.fff','2017-10-29 12:35:34'),
(425,'Michael','Williams','michaelwilliams@interview.fff','2017-11-03 21:20:52'),
(426,'Virginia','Jones','virginiajones@interview.fff','2017-11-06 04:46:51'),
(427,'Charles','Roth','charlesroth@interview.fff','2017-11-05 01:14:08'),
(428,'Mikayla','Kent','mikaylakent@interview.fff','2017-11-04 22:13:22'),
(429,'Devin','Keller','devinkeller@interview.fff','2017-11-01 16:35:01'),
(430,'Stacey','Gomez','staceygomez@interview.fff','2017-11-03 02:28:27'),
(431,'Alexander','Manning','alexandermanning@interview.fff','2017-10-31 21:46:19'),
(432,'Jennifer','Calderon','jennifercalderon@interview.fff','2017-11-03 06:55:49'),
(433,'Frederick','Kim','frederickkim@interview.fff','2017-10-31 11:10:31'),
(434,'Tina','Kline','tinakline@interview.fff','2017-11-03 23:55:52'),
(435,'Tammy','Collins','tammycollins@interview.fff','2017-10-31 22:03:24'),
(436,'Brett','Shannon','brettshannon@interview.fff','2017-11-01 14:03:38'),
(437,'Kristy','George','kristygeorge@interview.fff','2017-11-07 09:42:55'),
(438,'Jonathan','Rollins','jonathanrollins@interview.fff','2017-11-06 12:58:57'),
(439,'Stephanie','Martin','stephaniemartin@interview.fff','2017-10-31 14:16:11'),
(440,'John','Sullivan','johnsullivan@interview.fff','2017-11-06 18:31:35'),
(441,'Steven','Ellis','stevenellis@interview.fff','2017-11-03 02:44:16'),
(442,'Anthony','Brooks','anthonybrooks@interview.fff','2017-10-29 12:23:41'),
(443,'Holly','Conner','hollyconner@interview.fff','2017-11-03 11:17:46'),
(444,'Caitlin','Martinez','caitlinmartinez@interview.fff','2017-11-01 17:15:31'),
(445,'Christina','Barrera','christinabarrera@interview.fff','2017-10-31 05:18:16'),
(446,'Steven','Huynh','stevenhuynh@interview.fff','2017-11-04 05:47:36'),
(447,'Ariel','Jarvis','arieljarvis@interview.fff','2017-11-06 02:02:04'),
(448,'Kathleen','Thompson','kathleenthompson@interview.fff','2017-10-30 13:42:31'),
(449,'Norman','Whitehead','normanwhitehead@interview.fff','2017-10-30 14:57:55'),
(450,'Sherry','Lee','sherrylee@interview.fff','2017-11-06 10:22:44'),
(451,'William','White','williamwhite@interview.fff','2017-11-06 02:09:46'),
(452,'Eric','Gray','ericgray@interview.fff','2017-10-29 11:35:23'),
(453,'Michael','Thomas','michaelthomas@interview.fff','2017-10-31 04:38:41'),
(454,'Crystal','Jensen','crystaljensen@interview.fff','2017-11-03 07:01:04'),
(455,'Steven','Herrera','stevenherrera@interview.fff','2017-11-02 07:59:19'),
(456,'Stefanie','Parks','stefanieparks@interview.fff','2017-11-01 19:18:51'),
(457,'Ashley','Owen','ashleyowen@interview.fff','2017-10-29 23:51:03'),
(458,'Eric','Greene','ericgreene@interview.fff','2017-10-30 14:49:40'),
(459,'Jamie','Miller','jamiemiller@interview.fff','2017-10-31 20:23:28'),
(460,'Autumn','Allen','autumnallen@interview.fff','2017-11-05 06:07:55'),
(461,'Jennifer','Smith','jennifersmith@interview.fff','2017-11-06 05:46:28'),
(462,'Sheila','Wagner','sheilawagner@interview.fff','2017-11-07 02:38:59'),
(463,'Sarah','Martin','sarahmartin@interview.fff','2017-10-30 13:12:10'),
(464,'Jason','Bauer','jasonbauer@interview.fff','2017-10-29 17:09:17'),
(465,'Debra','Ashley','debraashley@interview.fff','2017-10-28 18:37:50'),
(466,'Samuel','Scott','samuelscott@interview.fff','2017-11-06 00:29:59'),
(467,'Barbara','Stone','barbarastone@interview.fff','2017-11-05 13:02:53'),
(468,'Terry','Vazquez','terryvazquez@interview.fff','2017-11-02 00:48:58'),
(469,'Jocelyn','Chandler','jocelynchandler@interview.fff','2017-10-28 23:15:31'),
(470,'Michael','Mason','michaelmason@interview.fff','2017-11-02 20:56:53'),
(471,'Courtney','Henderson','courtneyhenderson@interview.fff','2017-11-07 10:07:11'),
(472,'Felicia','Taylor','feliciataylor@interview.fff','2017-11-01 03:42:09'),
(473,'Jason','Garcia','jasongarcia@interview.fff','2017-11-01 14:20:36'),
(474,'Kelly','Mcguire','kellymcguire@interview.fff','2017-10-30 10:33:40'),
(475,'Rachel','Phillips','rachelphillips@interview.fff','2017-10-31 16:22:50'),
(476,'Jennifer','Gonzalez','jennifergonzalez@interview.fff','2017-11-03 10:47:40'),
(477,'Sara','Gonzalez','saragonzalez@interview.fff','2017-11-04 09:05:08'),
(478,'William','Baker','williambaker@interview.fff','2017-10-30 03:14:44'),
(479,'Sandra','Cherry','sandracherry@interview.fff','2017-11-06 12:19:54'),
(480,'Alexander','Bradley','alexanderbradley@interview.fff','2017-11-07 11:01:00'),
(481,'Tracy','Gonzalez','tracygonzalez@interview.fff','2017-11-03 05:30:54'),
(482,'Todd','Clay','toddclay@interview.fff','2017-11-05 02:46:36'),
(483,'Cynthia','White','cynthiawhite@interview.fff','2017-10-31 02:36:46'),
(484,'Justin','Dodson','justindodson@interview.fff','2017-11-05 03:19:26'),
(485,'Sandra','Rodriguez','sandrarodriguez@interview.fff','2017-11-06 18:23:37'),
(486,'Thomas','Miller','thomasmiller@interview.fff','2017-11-07 09:40:47'),
(487,'Tara','Ray','tararay@interview.fff','2017-10-31 19:34:36'),
(488,'Kimberly','Lewis','kimberlylewis@interview.fff','2017-10-29 07:24:19'),
(489,'Heather','Kim','heatherkim@interview.fff','2017-11-01 08:18:04'),
(490,'Tyrone','Hart','tyronehart@interview.fff','2017-11-03 12:51:56'),
(491,'Jennifer','Waller','jenniferwaller@interview.fff','2017-11-01 05:38:10'),
(492,'Cindy','Haynes','cindyhaynes@interview.fff','2017-11-07 07:41:36'),
(493,'Patricia','Maldonado','patriciamaldonado@interview.fff','2017-10-30 22:02:04'),
(494,'Leslie','Russell','leslierussell@interview.fff','2017-11-05 01:58:05'),
(495,'Samuel','Reynolds','samuelreynolds@interview.fff','2017-11-01 04:41:47'),
(496,'Renee','Lawrence','reneelawrence@interview.fff','2017-10-29 09:57:22'),
(497,'Sydney','Reyes','sydneyreyes@interview.fff','2017-11-06 18:28:33'),
(498,'Shelia','Ward','sheliaward@interview.fff','2017-11-02 23:04:09'),
(499,'Marcus','Miller','marcusmiller@interview.fff','2017-10-29 16:45:33'),
(500,'Jennifer','Thomas','jenniferthomas@interview.fff','2017-10-31 13:13:46'),
(501,'Robert','Heath','robertheath@interview.fff','2017-11-03 03:34:42'),
(502,'Charles','Wood','charleswood@interview.fff','2017-10-30 21:11:33'),
(503,'Joel','Hill','joelhill@interview.fff','2017-11-01 17:54:29'),
(504,'Deborah','Patrick','deborahpatrick@interview.fff','2017-11-05 05:36:46'),
(505,'Dominic','Scott','dominicscott@interview.fff','2017-11-02 01:56:52'),
(506,'Kimberly','Hicks','kimberlyhicks@interview.fff','2017-11-04 06:31:52'),
(507,'Ana','Thomas','anathomas@interview.fff','2017-11-04 23:57:19'),
(508,'Justin','Hernandez','justinhernandez@interview.fff','2017-10-30 23:45:02'),
(509,'Joanne','Morgan','joannemorgan@interview.fff','2017-10-29 14:01:52'),
(510,'Alexander','Curry','alexandercurry@interview.fff','2017-11-04 16:23:57'),
(511,'Stacey','Johnson','staceyjohnson@interview.fff','2017-11-03 00:49:58'),
(512,'Jamie','Johnson','jamiejohnson@interview.fff','2017-11-03 14:50:54'),
(513,'Alicia','Garner','aliciagarner@interview.fff','2017-11-02 09:09:04'),
(514,'Lisa','Pena','lisapena@interview.fff','2017-11-03 08:27:21'),
(515,'Sean','Obrien','seanobrien@interview.fff','2017-11-07 08:57:24'),
(516,'Kevin','Peterson','kevinpeterson@interview.fff','2017-11-06 09:57:43'),
(517,'Matthew','Gutierrez','matthewgutierrez@interview.fff','2017-11-01 06:23:17'),
(518,'Kelsey','Brown','kelseybrown@interview.fff','2017-10-28 17:18:00'),
(519,'Charles','Morris','charlesmorris@interview.fff','2017-11-02 04:20:52'),
(520,'Holly','Chapman','hollychapman@interview.fff','2017-11-06 21:39:43'),
(521,'Robert','Mccann','robertmccann@interview.fff','2017-11-04 18:15:21'),
(522,'Vanessa','Nguyen','vanessanguyen@interview.fff','2017-11-03 06:33:47'),
(523,'Allison','Wilson','allisonwilson@interview.fff','2017-11-05 07:26:01'),
(524,'Edwin','Lewis','edwinlewis@interview.fff','2017-11-03 09:15:43'),
(525,'Samantha','Thompson','samanthathompson@interview.fff','2017-11-02 00:42:40'),
(526,'Suzanne','Peterson','suzannepeterson@interview.fff','2017-11-03 10:51:00'),
(527,'Elizabeth','Burke','elizabethburke@interview.fff','2017-11-02 01:53:28'),
(528,'Jessica','Spence','jessicaspence@interview.fff','2017-11-02 09:56:58'),
(529,'Ashley','Dillon','ashleydillon@interview.fff','2017-10-29 01:36:32'),
(530,'Eric','Briggs','ericbriggs@interview.fff','2017-11-07 00:22:58'),
(531,'Danielle','Abbott','danielleabbott@interview.fff','2017-11-01 05:57:14'),
(532,'Michael','Lee','michaellee@interview.fff','2017-11-03 04:50:57'),
(533,'Tracy','Elliott','tracyelliott@interview.fff','2017-11-05 08:06:04'),
(534,'Frank','Reed','frankreed@interview.fff','2017-10-30 16:25:19'),
(535,'Laura','Thompson','laurathompson@interview.fff','2017-10-29 16:38:50'),
(536,'Robert','Gibson','robertgibson@interview.fff','2017-10-31 07:41:28'),
(537,'Alyssa','Hodge','alyssahodge@interview.fff','2017-11-06 21:44:08'),
(538,'Laura','Bailey','laurabailey@interview.fff','2017-10-28 20:05:54'),
(539,'Kevin','Orozco','kevinorozco@interview.fff','2017-11-02 03:37:32'),
(540,'Ashley','Garcia','ashleygarcia@interview.fff','2017-11-03 10:49:00'),
(541,'Richard','Meyer','richardmeyer@interview.fff','2017-11-02 13:44:43'),
(542,'Eric','Lucas','ericlucas@interview.fff','2017-10-31 15:39:29'),
(543,'Angel','Meza','angelmeza@interview.fff','2017-11-06 06:58:39'),
(544,'Brittany','Crawford','brittanycrawford@interview.fff','2017-10-31 23:40:06'),
(545,'Michael','Beard','michaelbeard@interview.fff','2017-11-07 11:21:44'),
(546,'Robert','Lee','robertlee@interview.fff','2017-11-05 12:12:23'),
(547,'Alexis','Bender','alexisbender@interview.fff','2017-11-06 13:25:04'),
(548,'Mario','Lee','mariolee@interview.fff','2017-11-04 21:02:49'),
(549,'Kevin','Campbell','kevincampbell@interview.fff','2017-10-29 06:49:25'),
(550,'Robert','Riley','robertriley@interview.fff','2017-10-30 21:26:14'),
(551,'Brenda','Baker','brendabaker@interview.fff','2017-10-31 03:37:21'),
(552,'Juan','Cunningham','juancunningham@interview.fff','2017-11-01 00:32:28'),
(553,'Heather','Smith','heathersmith@interview.fff','2017-10-29 00:29:40'),
(554,'Caitlin','Miller','caitlinmiller@interview.fff','2017-11-07 02:42:23'),
(555,'Toni','Hernandez','tonihernandez@interview.fff','2017-11-04 22:57:47'),
(556,'James','Hall','jameshall@interview.fff','2017-11-01 00:47:12'),
(557,'James','Hicks','jameshicks@interview.fff','2017-11-04 21:44:24'),
(558,'Sandra','Kerr','sandrakerr@interview.fff','2017-11-01 05:45:55'),
(559,'Daniel','Ryan','danielryan@interview.fff','2017-11-04 09:39:16'),
(560,'Gregory','Bryant','gregorybryant@interview.fff','2017-11-04 23:40:46'),
(561,'Christopher','Crane','christophercrane@interview.fff','2017-10-30 17:52:31'),
(562,'Nicole','Mckenzie','nicolemckenzie@interview.fff','2017-10-29 18:20:07'),
(563,'Thomas','Stephens','thomasstephens@interview.fff','2017-10-30 20:17:13'),
(564,'Brian','Mitchell','brianmitchell@interview.fff','2017-11-03 07:43:24'),
(565,'Anthony','Hendricks','anthonyhendricks@interview.fff','2017-11-02 16:28:08'),
(566,'Kara','King','karaking@interview.fff','2017-10-29 19:18:52'),
(567,'Adam','Carr','adamcarr@interview.fff','2017-11-04 02:01:57'),
(568,'Justin','White','justinwhite@interview.fff','2017-10-29 08:46:52'),
(569,'Kristy','Delgado','kristydelgado@interview.fff','2017-11-03 14:01:22'),
(570,'Nicholas','Padilla','nicholaspadilla@interview.fff','2017-10-29 06:39:54'),
(571,'Mark','Silva','marksilva@interview.fff','2017-11-04 07:28:22'),
(572,'Matthew','Myers','matthewmyers@interview.fff','2017-11-06 19:22:33'),
(573,'Ethan','Smith','ethansmith@interview.fff','2017-11-05 20:10:40'),
(574,'Dennis','Raymond','dennisraymond@interview.fff','2017-11-03 16:29:15'),
(575,'Crystal','Wright','crystalwright@interview.fff','2017-10-29 15:16:22'),
(576,'Paul','Oneal','pauloneal@interview.fff','2017-10-28 22:59:47'),
(577,'Joshua','Burton','joshuaburton@interview.fff','2017-11-03 17:16:32'),
(578,'Amy','Cummings','amycummings@interview.fff','2017-11-06 05:27:42'),
(579,'Nicole','Contreras','nicolecontreras@interview.fff','2017-11-05 16:41:19'),
(580,'Jessica','Anderson','jessicaanderson@interview.fff','2017-11-05 15:26:45'),
(581,'Michelle','Smith','michellesmith@interview.fff','2017-11-03 23:08:49'),
(582,'Rebecca','Patrick','rebeccapatrick@interview.fff','2017-10-31 11:10:47'),
(583,'Edward','Yoder','edwardyoder@interview.fff','2017-11-02 04:03:44'),
(584,'James','Cole','jamescole@interview.fff','2017-11-01 07:28:08'),
(585,'Dylan','Fleming','dylanfleming@interview.fff','2017-11-05 19:31:55'),
(586,'Adam','Hart','adamhart@interview.fff','2017-11-03 01:33:16'),
(587,'Kelli','Boyd','kelliboyd@interview.fff','2017-11-07 11:09:27'),
(588,'David','Johnson','davidjohnson@interview.fff','2017-11-01 13:55:51'),
(589,'Sylvia','Brooks','sylviabrooks@interview.fff','2017-11-03 06:48:36'),
(590,'Amanda','Marquez','amandamarquez@interview.fff','2017-11-03 11:11:02'),
(591,'Amy','Thomas','amythomas@interview.fff','2017-11-04 02:37:01'),
(592,'Paul','Smith','paulsmith@interview.fff','2017-10-29 09:30:55'),
(593,'Melanie','Harris','melanieharris@interview.fff','2017-11-02 16:57:27'),
(594,'Stacy','Torres','stacytorres@interview.fff','2017-11-05 13:25:36'),
(595,'Diana','Brown','dianabrown@interview.fff','2017-11-03 22:06:33'),
(596,'Erin','Osborne','erinosborne@interview.fff','2017-11-01 19:00:10'),
(597,'Brandon','Mann','brandonmann@interview.fff','2017-11-01 08:40:29'),
(598,'Matthew','Smith','matthewsmith@interview.fff','2017-11-01 03:20:04'),
(599,'Sonya','Hernandez','sonyahernandez@interview.fff','2017-11-02 02:44:49'),
(600,'Michael','Dillon','michaeldillon@interview.fff','2017-11-04 03:19:23'),
(601,'Mary','Taylor','marytaylor@interview.fff','2017-11-02 23:41:21'),
(602,'Ross','Smith','rosssmith@interview.fff','2017-11-06 02:55:49'),
(603,'Scott','Pearson','scottpearson@interview.fff','2017-11-02 09:47:42'),
(604,'Steven','Davis','stevendavis@interview.fff','2017-11-01 07:38:32'),
(605,'Leroy','Pierce','leroypierce@interview.fff','2017-10-28 23:13:38'),
(606,'Grant','Terrell','grantterrell@interview.fff','2017-10-29 12:52:38'),
(607,'April','Ford','aprilford@interview.fff','2017-11-04 18:03:23'),
(608,'Michael','Tran','michaeltran@interview.fff','2017-11-04 22:04:33'),
(609,'Chad','Scott','chadscott@interview.fff','2017-11-05 09:38:47'),
(610,'Ross','Murphy','rossmurphy@interview.fff','2017-11-05 05:25:24'),
(611,'Matthew','Miller','matthewmiller@interview.fff','2017-10-30 08:11:24'),
(612,'Christopher','Moore','christophermoore@interview.fff','2017-11-01 04:59:05'),
(613,'Sherri','Lee','sherrilee@interview.fff','2017-11-07 02:34:20'),
(614,'Nathan','Grant','nathangrant@interview.fff','2017-10-30 20:08:47'),
(615,'Shannon','Anderson','shannonanderson@interview.fff','2017-11-02 04:31:12'),
(616,'Melissa','Adams','melissaadams@interview.fff','2017-11-03 03:47:58'),
(617,'Elizabeth','Decker','elizabethdecker@interview.fff','2017-11-06 03:53:27'),
(618,'Michael','Cook','michaelcook@interview.fff','2017-11-01 18:57:24'),
(619,'Brian','Baker','brianbaker@interview.fff','2017-11-06 09:55:18'),
(620,'Jesus','Watson','jesuswatson@interview.fff','2017-11-02 10:11:56'),
(621,'Kyle','French','kylefrench@interview.fff','2017-11-04 16:14:49'),
(622,'Melvin','Espinoza','melvinespinoza@interview.fff','2017-11-04 06:03:40'),
(623,'Glenn','Moore','glennmoore@interview.fff','2017-11-01 06:37:48'),
(624,'Veronica','Rowe','veronicarowe@interview.fff','2017-11-06 02:05:56'),
(625,'Steve','Clark','steveclark@interview.fff','2017-11-04 00:02:10'),
(626,'Steven','Dudley','stevendudley@interview.fff','2017-11-03 03:00:49'),
(627,'David','Johnston','davidjohnston@interview.fff','2017-11-07 00:45:25'),
(628,'Mary','Navarro','marynavarro@interview.fff','2017-11-03 06:01:01'),
(629,'John','Daniels','johndaniels@interview.fff','2017-11-04 11:01:38'),
(630,'Colleen','Turner','colleenturner@interview.fff','2017-10-31 14:59:07'),
(631,'Olivia','Klein','oliviaklein@interview.fff','2017-11-07 06:18:48'),
(632,'Heather','Lopez','heatherlopez@interview.fff','2017-11-02 22:42:47'),
(633,'Katherine','Hall','katherinehall@interview.fff','2017-11-05 03:12:41'),
(634,'Megan','Allison','meganallison@interview.fff','2017-10-31 19:55:34'),
(635,'Peter','Madden','petermadden@interview.fff','2017-10-28 20:35:30'),
(636,'Zachary','Turner','zacharyturner@interview.fff','2017-11-05 06:40:11'),
(637,'Brian','Carney','briancarney@interview.fff','2017-10-31 00:44:05'),
(638,'Cody','Taylor','codytaylor@interview.fff','2017-10-29 07:06:19'),
(639,'Kimberly','Clayton','kimberlyclayton@interview.fff','2017-11-01 18:50:28'),
(640,'Evan','Foster','evanfoster@interview.fff','2017-11-03 22:33:50'),
(641,'Brandon','Schwartz','brandonschwartz@interview.fff','2017-10-31 18:53:32'),
(642,'Tiffany','Molina','tiffanymolina@interview.fff','2017-11-06 06:02:02'),
(643,'Jasmine','Carter','jasminecarter@interview.fff','2017-10-28 23:12:14'),
(644,'Shannon','Jefferson','shannonjefferson@interview.fff','2017-10-31 14:03:18'),
(645,'Stephanie','Montgomery','stephaniemontgomery@interview.fff','2017-10-30 01:05:57'),
(646,'Zachary','Moore','zacharymoore@interview.fff','2017-11-07 00:57:11'),
(647,'William','Green','williamgreen@interview.fff','2017-10-29 10:12:22'),
(648,'Jennifer','Perry','jenniferperry@interview.fff','2017-10-29 10:07:28'),
(649,'Greg','Smith','gregsmith@interview.fff','2017-11-04 22:37:49'),
(650,'Chelsea','Phillips','chelseaphillips@interview.fff','2017-11-04 17:43:38'),
(651,'Kathleen','Brown','kathleenbrown@interview.fff','2017-11-05 07:25:46'),
(652,'Brian','Sanchez','briansanchez@interview.fff','2017-11-05 00:04:09'),
(653,'Charles','Ellis','charlesellis@interview.fff','2017-11-07 14:57:35'),
(654,'Kelly','Smith','kellysmith@interview.fff','2017-11-04 10:55:13'),
(655,'Janice','Gay','janicegay@interview.fff','2017-11-04 20:41:33'),
(656,'Alice','Jones','alicejones@interview.fff','2017-11-07 13:34:46'),
(657,'Kimberly','Jacobson','kimberlyjacobson@interview.fff','2017-11-03 09:57:54'),
(658,'Amanda','Rowe','amandarowe@interview.fff','2017-10-28 22:34:14'),
(659,'Paul','Morris','paulmorris@interview.fff','2017-11-05 08:24:46'),
(660,'Monique','Gibson','moniquegibson@interview.fff','2017-11-06 12:21:52'),
(661,'Michael','Smith','michaelsmith@interview.fff','2017-11-02 04:44:25'),
(662,'Jenny','Kelly','jennykelly@interview.fff','2017-10-30 02:36:47'),
(663,'Chad','Rosario','chadrosario@interview.fff','2017-11-01 15:31:44'),
(664,'Amber','Ramirez','amberramirez@interview.fff','2017-11-05 08:42:57'),
(665,'Ashley','Brewer','ashleybrewer@interview.fff','2017-11-04 00:45:48'),
(666,'Rachel','Harris','rachelharris@interview.fff','2017-11-07 02:25:42'),
(667,'Michael','Garcia','michaelgarcia@interview.fff','2017-11-04 00:09:38'),
(668,'Thomas','Blanchard','thomasblanchard@interview.fff','2017-10-30 08:38:18'),
(669,'Kenneth','Rose','kennethrose@interview.fff','2017-11-05 07:44:41'),
(670,'Linda','Mcclain','lindamcclain@interview.fff','2017-11-04 20:44:16'),
(671,'Michelle','Cunningham','michellecunningham@interview.fff','2017-11-02 15:14:38'),
(672,'Laura','Butler','laurabutler@interview.fff','2017-11-04 15:51:05'),
(673,'Joseph','Melendez','josephmelendez@interview.fff','2017-11-02 13:56:00'),
(674,'Shawn','Montgomery','shawnmontgomery@interview.fff','2017-11-03 15:31:39'),
(675,'Dustin','Estrada','dustinestrada@interview.fff','2017-11-04 02:41:20'),
(676,'Michael','Gonzalez','michaelgonzalez@interview.fff','2017-11-03 17:14:01'),
(677,'Thomas','Underwood','thomasunderwood@interview.fff','2017-11-02 17:52:02'),
(678,'Ryan','Jones','ryanjones@interview.fff','2017-11-01 09:54:46'),
(679,'Lindsay','Price','lindsayprice@interview.fff','2017-11-03 07:32:05'),
(680,'Roberto','Krause','robertokrause@interview.fff','2017-10-31 18:25:17'),
(681,'Charles','Lee','charleslee@interview.fff','2017-11-05 23:13:47'),
(682,'Randall','Smith','randallsmith@interview.fff','2017-11-01 18:40:53'),
(683,'Robert','Fowler','robertfowler@interview.fff','2017-10-28 21:07:13'),
(684,'Mary','Miranda','marymiranda@interview.fff','2017-11-06 14:17:23'),
(685,'Raymond','Nelson','raymondnelson@interview.fff','2017-10-30 13:51:30'),
(686,'Shelly','Compton','shellycompton@interview.fff','2017-11-05 12:23:28'),
(687,'Sarah','Davis','sarahdavis@interview.fff','2017-11-02 21:11:58'),
(688,'Gabriella','Bailey','gabriellabailey@interview.fff','2017-10-31 21:23:48'),
(689,'Charles','Greer','charlesgreer@interview.fff','2017-11-05 00:09:54'),
(690,'Nancy','Sanchez','nancysanchez@interview.fff','2017-11-02 18:58:45'),
(691,'Rita','Mcmahon','ritamcmahon@interview.fff','2017-10-29 02:01:40'),
(692,'Annette','Wall','annettewall@interview.fff','2017-10-29 15:10:22'),
(693,'Samantha','Weaver','samanthaweaver@interview.fff','2017-11-05 19:43:14'),
(694,'Tony','Perez','tonyperez@interview.fff','2017-10-29 02:15:38'),
(695,'Benjamin','Hamilton','benjaminhamilton@interview.fff','2017-11-01 22:35:33'),
(696,'Katherine','Smith','katherinesmith@interview.fff','2017-11-05 09:25:46'),
(697,'Cynthia','Bernard','cynthiabernard@interview.fff','2017-10-31 16:51:42'),
(698,'John','Brooks','johnbrooks@interview.fff','2017-11-02 03:56:12'),
(699,'Blake','Flores','blakeflores@interview.fff','2017-11-04 15:56:58'),
(700,'David','Hamilton','davidhamilton@interview.fff','2017-11-07 16:20:47'),
(701,'Roger','Vazquez','rogervazquez@interview.fff','2017-11-02 06:38:08'),
(702,'Susan','Owens','susanowens@interview.fff','2017-10-31 00:07:17'),
(703,'Jessica','Thornton','jessicathornton@interview.fff','2017-11-07 04:23:29'),
(704,'Tiffany','Johnson','tiffanyjohnson@interview.fff','2017-11-02 09:20:52'),
(705,'Jared','Perez','jaredperez@interview.fff','2017-11-04 23:03:15'),
(706,'Rebekah','Mann','rebekahmann@interview.fff','2017-10-29 00:08:04'),
(707,'Ashley','Clark','ashleyclark@interview.fff','2017-11-02 21:56:43'),
(708,'Vanessa','Nelson','vanessanelson@interview.fff','2017-10-29 16:02:56'),
(709,'Timothy','Harris','timothyharris@interview.fff','2017-11-04 23:58:33'),
(710,'Scott','Oliver','scottoliver@interview.fff','2017-10-29 13:11:23'),
(711,'Andrew','Carr','andrewcarr@interview.fff','2017-11-05 17:59:13'),
(712,'Jason','Simon','jasonsimon@interview.fff','2017-11-02 10:46:17'),
(713,'James','Melendez','jamesmelendez@interview.fff','2017-10-29 00:36:43'),
(714,'Michelle','Neal','michelleneal@interview.fff','2017-10-29 04:54:44'),
(715,'Robin','Medina','robinmedina@interview.fff','2017-11-02 09:07:12'),
(716,'Jill','Thomas','jillthomas@interview.fff','2017-11-06 17:08:05'),
(717,'Sydney','Booth','sydneybooth@interview.fff','2017-10-30 01:22:03'),
(718,'Jane','Blair','janeblair@interview.fff','2017-11-06 21:19:34'),
(719,'Victoria','Young','victoriayoung@interview.fff','2017-11-06 02:29:45'),
(720,'Derek','Conrad','derekconrad@interview.fff','2017-10-31 00:42:53'),
(721,'Andrew','Boyd','andrewboyd@interview.fff','2017-10-30 21:02:22'),
(722,'Amanda','Bass','amandabass@interview.fff','2017-11-07 03:55:30'),
(723,'Charlene','Carter','charlenecarter@interview.fff','2017-11-05 08:26:56'),
(724,'Kathy','Henry','kathyhenry@interview.fff','2017-10-30 18:12:15'),
(725,'Christopher','Anderson','christopheranderson@interview.fff','2017-11-02 15:26:33'),
(726,'Maria','Alvarado','mariaalvarado@interview.fff','2017-10-30 04:14:22'),
(727,'Timothy','Martinez','timothymartinez@interview.fff','2017-10-29 22:05:04'),
(728,'Eric','Butler','ericbutler@interview.fff','2017-11-04 10:30:34'),
(729,'Rachel','Rodriguez','rachelrodriguez@interview.fff','2017-10-30 09:23:47'),
(730,'Ryan','Rose','ryanrose@interview.fff','2017-10-29 10:36:58'),
(731,'Michelle','Hudson','michellehudson@interview.fff','2017-11-01 15:53:21'),
(732,'David','Gonzalez','davidgonzalez@interview.fff','2017-10-30 21:09:41'),
(733,'Joshua','Barnes','joshuabarnes@interview.fff','2017-10-29 15:26:37'),
(734,'Brian','Perry','brianperry@interview.fff','2017-11-01 13:30:46'),
(735,'Matthew','Oneal','matthewoneal@interview.fff','2017-10-30 11:30:36'),
(736,'Tammie','Hurley','tammiehurley@interview.fff','2017-11-02 16:30:53'),
(737,'Amanda','Anderson','amandaanderson@interview.fff','2017-11-01 09:29:11'),
(738,'Lisa','Black','lisablack@interview.fff','2017-10-31 20:06:16'),
(739,'Allen','Obrien','allenobrien@interview.fff','2017-10-29 02:16:51'),
(740,'Michael','Nguyen','michaelnguyen@interview.fff','2017-11-01 10:59:28'),
(741,'Amy','Williams','amywilliams@interview.fff','2017-11-07 06:03:48'),
(742,'Ryan','Carter','ryancarter@interview.fff','2017-10-30 14:14:56'),
(743,'Kenneth','Valenzuela','kennethvalenzuela@interview.fff','2017-11-04 00:36:00'),
(744,'Melissa','Porter','melissaporter@interview.fff','2017-11-01 13:29:27'),
(745,'Rebecca','Gardner','rebeccagardner@interview.fff','2017-10-29 19:22:49'),
(746,'Paul','Thompson','paulthompson@interview.fff','2017-11-06 23:53:46'),
(747,'Kathleen','Woods','kathleenwoods@interview.fff','2017-11-03 12:48:52'),
(748,'James','Woods','jameswoods@interview.fff','2017-11-07 01:25:05'),
(749,'Mark','Castillo','markcastillo@interview.fff','2017-11-04 21:23:53'),
(750,'Ryan','Thomas','ryanthomas@interview.fff','2017-10-31 16:04:50'),
(751,'Kelly','Long','kellylong@interview.fff','2017-11-01 05:12:06'),
(752,'Brett','Owens','brettowens@interview.fff','2017-11-04 09:23:25'),
(753,'Catherine','Cobb','catherinecobb@interview.fff','2017-10-29 18:53:19'),
(754,'Carolyn','Hudson','carolynhudson@interview.fff','2017-11-03 14:08:27'),
(755,'Joshua','Shaw','joshuashaw@interview.fff','2017-11-04 03:49:57'),
(756,'Pamela','Delacruz','pameladelacruz@interview.fff','2017-11-05 16:17:31'),
(757,'David','Porter','davidporter@interview.fff','2017-10-28 19:35:24'),
(758,'Carrie','Kirk','carriekirk@interview.fff','2017-10-31 11:03:07'),
(759,'Eric','Smith','ericsmith@interview.fff','2017-11-06 13:14:24'),
(760,'Cathy','Moreno','cathymoreno@interview.fff','2017-10-30 14:34:07'),
(761,'Wendy','Nielsen','wendynielsen@interview.fff','2017-11-01 09:33:14'),
(762,'Madison','Hill','madisonhill@interview.fff','2017-10-31 06:45:59'),
(763,'Scott','Dudley','scottdudley@interview.fff','2017-10-30 10:31:51'),
(764,'Emily','Matthews','emilymatthews@interview.fff','2017-11-03 11:17:43'),
(765,'Colton','Gomez','coltongomez@interview.fff','2017-11-07 12:16:36'),
(766,'Daniel','Miller','danielmiller@interview.fff','2017-11-07 02:40:01'),
(767,'Michael','Benjamin','michaelbenjamin@interview.fff','2017-11-03 19:59:32'),
(768,'Brooke','Anderson','brookeanderson@interview.fff','2017-10-31 10:36:11'),
(769,'Lee','Norman','leenorman@interview.fff','2017-10-29 21:22:05'),
(770,'Jeffrey','Smith','jeffreysmith@interview.fff','2017-10-31 01:21:18'),
(771,'Molly','Garner','mollygarner@interview.fff','2017-11-04 08:30:28'),
(772,'Benjamin','Robinson','benjaminrobinson@interview.fff','2017-10-30 15:58:04'),
(773,'Kimberly','Weaver','kimberlyweaver@interview.fff','2017-11-07 13:18:17'),
(774,'Nicole','Simpson','nicolesimpson@interview.fff','2017-11-07 14:47:04'),
(775,'Jessica','Gomez','jessicagomez@interview.fff','2017-11-02 20:34:55'),
(776,'Mary','Matthews','marymatthews@interview.fff','2017-10-30 17:06:49'),
(777,'Stacy','Sanchez','stacysanchez@interview.fff','2017-11-04 18:56:38'),
(778,'Frederick','Stephens','frederickstephens@interview.fff','2017-11-05 18:06:57'),
(779,'John','Price','johnprice@interview.fff','2017-11-05 11:42:32'),
(780,'Nicole','Garcia','nicolegarcia@interview.fff','2017-11-06 10:52:10'),
(781,'Michael','Ballard','michaelballard@interview.fff','2017-10-31 01:21:23'),
(782,'Alex','Ramos','alexramos@interview.fff','2017-11-01 17:29:44'),
(783,'Angela','Humphrey','angelahumphrey@interview.fff','2017-11-06 07:45:48'),
(784,'William','Barber','williambarber@interview.fff','2017-10-29 02:00:12'),
(785,'Christina','King','christinaking@interview.fff','2017-11-07 08:46:03'),
(786,'Sandra','Kirk','sandrakirk@interview.fff','2017-11-02 02:27:01'),
(787,'Matthew','Ruiz','matthewruiz@interview.fff','2017-11-02 02:57:34'),
(788,'Jeremy','Gutierrez','jeremygutierrez@interview.fff','2017-11-03 21:01:07'),
(789,'William','Gonzales','williamgonzales@interview.fff','2017-11-05 11:07:33'),
(790,'Holly','Clark','hollyclark@interview.fff','2017-10-29 09:58:40'),
(791,'Mary','Shepherd','maryshepherd@interview.fff','2017-11-06 06:16:54'),
(792,'James','Bryan','jamesbryan@interview.fff','2017-11-02 14:06:16'),
(793,'Michael','English','michaelenglish@interview.fff','2017-11-03 15:59:02'),
(794,'Misty','Heath','mistyheath@interview.fff','2017-11-01 07:12:21'),
(795,'Shaun','Russell','shaunrussell@interview.fff','2017-10-30 10:05:21'),
(796,'Amanda','Nelson','amandanelson@interview.fff','2017-11-02 16:45:34'),
(797,'Paul','Bush','paulbush@interview.fff','2017-11-07 12:31:22'),
(798,'Matthew','Bowers','matthewbowers@interview.fff','2017-11-03 14:28:27'),
(799,'Joshua','Ochoa','joshuaochoa@interview.fff','2017-11-01 01:54:01'),
(800,'Nicole','Stein','nicolestein@interview.fff','2017-11-01 01:41:24'),
(801,'Kimberly','Clark','kimberlyclark@interview.fff','2017-11-01 03:12:13'),
(802,'Sharon','Thompson','sharonthompson@interview.fff','2017-10-30 19:59:06'),
(803,'Jennifer','Smith','jennifersmith@interview.fff','2017-11-03 03:11:47'),
(804,'Rachel','Walker','rachelwalker@interview.fff','2017-11-05 10:43:36'),
(805,'James','Russell','jamesrussell@interview.fff','2017-10-30 23:09:19'),
(806,'Juan','Myers','juanmyers@interview.fff','2017-11-03 10:59:59'),
(807,'Jeanette','Garcia','jeanettegarcia@interview.fff','2017-10-31 17:13:34'),
(808,'Travis','Pierce','travispierce@interview.fff','2017-10-30 20:33:25'),
(809,'Katie','Wong','katiewong@interview.fff','2017-11-07 02:44:44'),
(810,'Justin','Copeland','justincopeland@interview.fff','2017-11-03 02:34:22'),
(811,'Jonathan','Ramirez','jonathanramirez@interview.fff','2017-11-06 13:46:12'),
(812,'Julia','Gomez','juliagomez@interview.fff','2017-11-01 21:26:01'),
(813,'Tammy','Middleton','tammymiddleton@interview.fff','2017-11-03 09:14:17'),
(814,'John','Porter','johnporter@interview.fff','2017-11-05 07:35:10'),
(815,'Randy','Henry','randyhenry@interview.fff','2017-11-06 17:17:32'),
(816,'Lauren','Holland','laurenholland@interview.fff','2017-11-04 07:59:41'),
(817,'Joseph','Smith','josephsmith@interview.fff','2017-10-29 09:21:05'),
(818,'Scott','Walker','scottwalker@interview.fff','2017-10-29 04:45:20'),
(819,'Jean','Burns','jeanburns@interview.fff','2017-10-29 12:08:17'),
(820,'Steven','Jensen','stevenjensen@interview.fff','2017-11-04 16:11:58'),
(821,'Victoria','Beard','victoriabeard@interview.fff','2017-11-03 04:51:33'),
(822,'Christopher','Coleman','christophercoleman@interview.fff','2017-11-04 04:48:12'),
(823,'Emily','Lee','emilylee@interview.fff','2017-11-06 06:56:18'),
(824,'Glenn','Mccullough','glennmccullough@interview.fff','2017-11-01 08:45:53'),
(825,'Laura','Watkins','laurawatkins@interview.fff','2017-11-02 02:28:14'),
(826,'Debra','Cole','debracole@interview.fff','2017-11-06 01:53:50'),
(827,'Justin','Sanchez','justinsanchez@interview.fff','2017-11-03 23:11:00'),
(828,'Douglas','Wiley','douglaswiley@interview.fff','2017-10-30 04:37:48'),
(829,'Teresa','Jones','teresajones@interview.fff','2017-11-02 20:20:52'),
(830,'Shawn','Jones','shawnjones@interview.fff','2017-11-02 23:34:36'),
(831,'Richard','Garcia','richardgarcia@interview.fff','2017-11-06 10:56:31'),
(832,'Jessica','Moore','jessicamoore@interview.fff','2017-11-03 21:03:18'),
(833,'Christopher','Montgomery','christophermontgomery@interview.fff','2017-11-04 15:34:56'),
(834,'Sherri','Harper','sherriharper@interview.fff','2017-11-02 07:07:29'),
(835,'Richard','Thomas','richardthomas@interview.fff','2017-11-04 05:14:33'),
(836,'Heidi','Scott','heidiscott@interview.fff','2017-10-29 12:10:17'),
(837,'Kristina','Butler','kristinabutler@interview.fff','2017-11-05 03:29:47'),
(838,'Catherine','Johnson','catherinejohnson@interview.fff','2017-11-01 09:54:17'),
(839,'Shirley','Wilson','shirleywilson@interview.fff','2017-11-03 12:53:32'),
(840,'Erin','Carson','erincarson@interview.fff','2017-10-30 16:06:42'),
(841,'Tracy','Fischer','tracyfischer@interview.fff','2017-11-04 20:30:54'),
(842,'Paul','Rodriguez','paulrodriguez@interview.fff','2017-10-29 03:13:31'),
(843,'Denise','Joyce','denisejoyce@interview.fff','2017-10-30 20:36:19'),
(844,'Jacob','Moore','jacobmoore@interview.fff','2017-10-30 02:59:42'),
(845,'Paula','Baker','paulabaker@interview.fff','2017-11-01 07:51:13'),
(846,'Tracy','Peterson','tracypeterson@interview.fff','2017-10-29 21:39:00'),
(847,'David','Weaver','davidweaver@interview.fff','2017-11-04 03:31:41'),
(848,'David','Miller','davidmiller@interview.fff','2017-11-07 10:21:22'),
(849,'Jeanne','Smith','jeannesmith@interview.fff','2017-11-03 08:56:37'),
(850,'Amy','Kaiser','amykaiser@interview.fff','2017-10-29 04:13:25'),
(851,'Brandon','Pham','brandonpham@interview.fff','2017-11-03 22:41:27'),
(852,'Mark','Braun','markbraun@interview.fff','2017-10-31 19:05:30'),
(853,'Wendy','Rodriguez','wendyrodriguez@interview.fff','2017-10-30 21:23:50'),
(854,'Amanda','Hardin','amandahardin@interview.fff','2017-10-29 16:50:06'),
(855,'Maria','Castillo','mariacastillo@interview.fff','2017-11-01 18:00:08'),
(856,'Lisa','Thomas','lisathomas@interview.fff','2017-11-07 11:03:54'),
(857,'Jose','Brown','josebrown@interview.fff','2017-11-02 05:30:43'),
(858,'Brittany','Sanders','brittanysanders@interview.fff','2017-11-04 16:57:21'),
(859,'Linda','Barnes','lindabarnes@interview.fff','2017-11-02 12:20:14'),
(860,'Thomas','Woods','thomaswoods@interview.fff','2017-10-31 04:51:41'),
(861,'Micheal','Herman','michealherman@interview.fff','2017-11-02 20:02:45'),
(862,'Kristen','Hansen','kristenhansen@interview.fff','2017-11-07 10:16:36'),
(863,'April','White','aprilwhite@interview.fff','2017-11-03 08:21:19'),
(864,'Laura','Wells','laurawells@interview.fff','2017-11-06 06:31:35'),
(865,'Susan','Williams','susanwilliams@interview.fff','2017-11-01 00:45:20'),
(866,'Erika','Rhodes','erikarhodes@interview.fff','2017-10-29 23:45:20'),
(867,'Ashley','Wilkins','ashleywilkins@interview.fff','2017-11-03 11:49:54'),
(868,'Theresa','Bridges','theresabridges@interview.fff','2017-11-01 20:21:37'),
(869,'Michael','Hogan','michaelhogan@interview.fff','2017-10-28 18:20:46'),
(870,'Ronald','Wagner','ronaldwagner@interview.fff','2017-11-04 10:26:38'),
(871,'Parker','Henson','parkerhenson@interview.fff','2017-10-30 22:27:19'),
(872,'Patricia','Hopkins','patriciahopkins@interview.fff','2017-11-02 11:22:32'),
(873,'Wayne','Marshall','waynemarshall@interview.fff','2017-11-04 00:04:47'),
(874,'Christopher','Kelley','christopherkelley@interview.fff','2017-11-03 18:15:48'),
(875,'Ashley','Payne','ashleypayne@interview.fff','2017-10-31 14:21:47'),
(876,'Valerie','Wiley','valeriewiley@interview.fff','2017-11-05 09:50:50'),
(877,'Anne','Bonilla','annebonilla@interview.fff','2017-10-31 12:03:33'),
(878,'Tiffany','Ali','tiffanyali@interview.fff','2017-11-06 11:28:58'),
(879,'Steven','Williams','stevenwilliams@interview.fff','2017-10-28 19:54:08'),
(880,'Glenda','Kaiser','glendakaiser@interview.fff','2017-11-04 21:48:23'),
(881,'Daniel','Jones','danieljones@interview.fff','2017-11-06 17:18:05'),
(882,'Jessica','Browning','jessicabrowning@interview.fff','2017-11-04 21:32:43'),
(883,'Colton','Glenn','coltonglenn@interview.fff','2017-10-30 22:06:20'),
(884,'Stephen','Murphy','stephenmurphy@interview.fff','2017-10-31 08:11:33'),
(885,'Bethany','Anderson','bethanyanderson@interview.fff','2017-11-02 01:43:20'),
(886,'Dylan','Barajas','dylanbarajas@interview.fff','2017-10-28 17:52:19'),
(887,'John','Berger','johnberger@interview.fff','2017-11-03 12:20:11'),
(888,'Robert','Brown','robertbrown@interview.fff','2017-11-07 08:27:14'),
(889,'Edward','Taylor','edwardtaylor@interview.fff','2017-11-04 04:26:28'),
(890,'Teresa','Rivera','teresarivera@interview.fff','2017-11-02 22:03:06'),
(891,'Alice','Marshall','alicemarshall@interview.fff','2017-10-30 14:36:38'),
(892,'Courtney','Underwood','courtneyunderwood@interview.fff','2017-10-29 09:35:23'),
(893,'Shawn','Richards','shawnrichards@interview.fff','2017-11-06 16:54:31'),
(894,'Caitlin','Mcgee','caitlinmcgee@interview.fff','2017-11-06 18:15:04'),
(895,'Thomas','Hawkins','thomashawkins@interview.fff','2017-11-06 23:11:20'),
(896,'Linda','Powell','lindapowell@interview.fff','2017-11-06 19:37:43'),
(897,'Erin','Walker','erinwalker@interview.fff','2017-10-30 13:34:18'),
(898,'Christopher','Henry','christopherhenry@interview.fff','2017-10-29 11:27:44'),
(899,'Sharon','Zavala','sharonzavala@interview.fff','2017-11-05 13:56:50'),
(900,'Jennifer','Adkins','jenniferadkins@interview.fff','2017-10-31 06:57:59'),
(901,'Andrea','Bates','andreabates@interview.fff','2017-11-01 20:31:30'),
(902,'Michael','Jordan','michaeljordan@interview.fff','2017-11-01 13:07:57'),
(903,'Michelle','Sosa','michellesosa@interview.fff','2017-11-02 14:35:25'),
(904,'Albert','Romero','albertromero@interview.fff','2017-11-03 21:11:54'),
(905,'Natalie','Bell','nataliebell@interview.fff','2017-11-07 04:18:14'),
(906,'Jay','Williams','jaywilliams@interview.fff','2017-11-06 07:33:46'),
(907,'Gloria','Martinez','gloriamartinez@interview.fff','2017-11-03 18:24:12'),
(908,'Carrie','Cox','carriecox@interview.fff','2017-10-31 06:32:42'),
(909,'Dalton','Blevins','daltonblevins@interview.fff','2017-10-28 18:41:51'),
(910,'Andrew','Miller','andrewmiller@interview.fff','2017-11-04 07:34:00'),
(911,'Arthur','Hughes','arthurhughes@interview.fff','2017-10-30 11:42:03'),
(912,'Valerie','Morris','valeriemorris@interview.fff','2017-10-31 00:33:11'),
(913,'Denise','Mason','denisemason@interview.fff','2017-11-04 12:02:21'),
(914,'Joshua','Lam','joshualam@interview.fff','2017-11-06 22:26:58'),
(915,'Timothy','Hayes','timothyhayes@interview.fff','2017-11-05 11:34:44'),
(916,'Meagan','Jones','meaganjones@interview.fff','2017-11-07 13:39:12'),
(917,'Robert','Miranda','robertmiranda@interview.fff','2017-11-05 19:42:01'),
(918,'Victoria','Cooke','victoriacooke@interview.fff','2017-11-05 22:17:22'),
(919,'Yvette','Ramirez','yvetteramirez@interview.fff','2017-10-28 18:53:15'),
(920,'Kelli','Snyder','kellisnyder@interview.fff','2017-11-03 12:46:33'),
(921,'Katherine','Boyle','katherineboyle@interview.fff','2017-10-29 04:17:38'),
(922,'Courtney','Gill','courtneygill@interview.fff','2017-11-04 09:23:37'),
(923,'John','Tran','johntran@interview.fff','2017-11-06 10:46:03'),
(924,'Kathy','Miller','kathymiller@interview.fff','2017-11-01 19:45:03'),
(925,'Susan','Morris','susanmorris@interview.fff','2017-11-02 00:38:50'),
(926,'Matthew','Mitchell','matthewmitchell@interview.fff','2017-11-06 17:16:42'),
(927,'Rebecca','Smith','rebeccasmith@interview.fff','2017-11-05 01:30:49'),
(928,'Monica','Lewis','monicalewis@interview.fff','2017-10-28 22:40:16'),
(929,'Dawn','Gentry','dawngentry@interview.fff','2017-10-29 19:37:04'),
(930,'Roger','Alexander','rogeralexander@interview.fff','2017-10-28 17:40:42'),
(931,'Zachary','Garcia','zacharygarcia@interview.fff','2017-11-03 07:14:32'),
(932,'Brett','Mendez','brettmendez@interview.fff','2017-11-02 12:45:45'),
(933,'Robert','Harrington','robertharrington@interview.fff','2017-11-04 23:31:53'),
(934,'Christopher','West','christopherwest@interview.fff','2017-10-30 14:39:12'),
(935,'Danielle','Elliott','danielleelliott@interview.fff','2017-11-04 08:45:13'),
(936,'Jeanne','Lambert','jeannelambert@interview.fff','2017-10-29 23:05:31'),
(937,'Bruce','Rose','brucerose@interview.fff','2017-11-06 17:22:30'),
(938,'Alison','Tucker','alisontucker@interview.fff','2017-10-30 22:50:03'),
(939,'Madison','Walker','madisonwalker@interview.fff','2017-11-06 02:39:20'),
(940,'Victor','Jones','victorjones@interview.fff','2017-11-03 19:59:46'),
(941,'Stephen','Kelly','stephenkelly@interview.fff','2017-11-02 14:04:45'),
(942,'Melissa','Sampson','melissasampson@interview.fff','2017-11-01 13:30:50'),
(943,'Nathaniel','Morales','nathanielmorales@interview.fff','2017-11-01 12:16:17'),
(944,'Shannon','Miller','shannonmiller@interview.fff','2017-10-29 01:52:58'),
(945,'Tammy','Burton','tammyburton@interview.fff','2017-10-31 00:54:10'),
(946,'Robert','Clark','robertclark@interview.fff','2017-11-05 21:22:25'),
(947,'Robin','Smith','robinsmith@interview.fff','2017-11-03 10:40:42'),
(948,'Allison','Nichols','allisonnichols@interview.fff','2017-11-02 08:48:32'),
(949,'Maria','Morris','mariamorris@interview.fff','2017-10-29 01:31:58'),
(950,'Martin','Williams','martinwilliams@interview.fff','2017-10-29 21:49:32'),
(951,'Alejandro','Wheeler','alejandrowheeler@interview.fff','2017-10-30 09:49:05'),
(952,'Sabrina','Smith','sabrinasmith@interview.fff','2017-11-06 01:29:42'),
(953,'Stephanie','Villanueva','stephanievillanueva@interview.fff','2017-11-04 21:41:07'),
(954,'Sara','Meadows','sarameadows@interview.fff','2017-11-02 12:09:35'),
(955,'Mark','Kelly','markkelly@interview.fff','2017-11-05 14:52:14'),
(956,'William','Lindsey','williamlindsey@interview.fff','2017-11-06 20:00:41'),
(957,'Timothy','Crane','timothycrane@interview.fff','2017-10-31 07:17:53'),
(958,'Lisa','Wallace','lisawallace@interview.fff','2017-10-29 16:00:46'),
(959,'Rebecca','Adams','rebeccaadams@interview.fff','2017-10-29 06:49:12'),
(960,'Justin','Bolton','justinbolton@interview.fff','2017-10-29 06:50:51'),
(961,'Walter','Porter','walterporter@interview.fff','2017-10-31 10:02:00'),
(962,'Maria','Reese','mariareese@interview.fff','2017-10-28 21:31:36'),
(963,'Benjamin','Gray','benjamingray@interview.fff','2017-11-02 06:20:58'),
(964,'Stanley','Lawson','stanleylawson@interview.fff','2017-11-03 01:03:29'),
(965,'Jennifer','Hays','jenniferhays@interview.fff','2017-10-31 10:12:32'),
(966,'Sarah','Ramos','sarahramos@interview.fff','2017-10-29 17:43:30'),
(967,'Scott','Kelley','scottkelley@interview.fff','2017-11-05 18:35:47'),
(968,'Larry','Caldwell','larrycaldwell@interview.fff','2017-11-01 18:58:09'),
(969,'Timothy','Lane','timothylane@interview.fff','2017-11-06 17:13:35'),
(970,'Eddie','Jones','eddiejones@interview.fff','2017-10-30 03:07:00'),
(971,'Christine','Foster','christinefoster@interview.fff','2017-11-01 15:26:26'),
(972,'Stacey','Davis','staceydavis@interview.fff','2017-11-01 02:31:27'),
(973,'Elizabeth','Murphy','elizabethmurphy@interview.fff','2017-11-05 07:53:52'),
(974,'Gabrielle','Navarro','gabriellenavarro@interview.fff','2017-10-28 19:59:20'),
(975,'Chad','Harrison','chadharrison@interview.fff','2017-10-31 11:31:12'),
(976,'Mary','Olson','maryolson@interview.fff','2017-11-06 19:07:58'),
(977,'Theresa','Perez','theresaperez@interview.fff','2017-11-01 11:24:35'),
(978,'Emily','Taylor','emilytaylor@interview.fff','2017-10-29 06:02:11'),
(979,'Taylor','Warren','taylorwarren@interview.fff','2017-11-03 20:09:33'),
(980,'Charles','Thomas','charlesthomas@interview.fff','2017-11-05 11:31:44'),
(981,'Wendy','Peterson','wendypeterson@interview.fff','2017-10-29 21:45:57'),
(982,'Mary','Wilson','marywilson@interview.fff','2017-11-07 04:50:49'),
(983,'Maria','Cook','mariacook@interview.fff','2017-11-05 18:19:20'),
(984,'Rebecca','Martinez','rebeccamartinez@interview.fff','2017-11-05 16:57:56'),
(985,'Jeffrey','Simmons','jeffreysimmons@interview.fff','2017-11-05 07:37:13'),
(986,'John','Medina','johnmedina@interview.fff','2017-11-06 23:40:56'),
(987,'Steven','Rodriguez','stevenrodriguez@interview.fff','2017-11-04 03:01:58'),
(988,'Jamie','Jackson','jamiejackson@interview.fff','2017-10-30 09:44:55'),
(989,'Jennifer','Davis','jenniferdavis@interview.fff','2017-10-31 03:55:20'),
(990,'Nicholas','Gilbert','nicholasgilbert@interview.fff','2017-10-28 19:37:03'),
(991,'Joshua','Smith','joshuasmith@interview.fff','2017-11-04 08:44:14'),
(992,'Claudia','Perez','claudiaperez@interview.fff','2017-11-05 13:44:59'),
(993,'Matthew','Esparza','matthewesparza@interview.fff','2017-11-06 14:04:10'),
(994,'Daniel','Larson','daniellarson@interview.fff','2017-11-07 10:20:11'),
(995,'Dwayne','Harrison','dwayneharrison@interview.fff','2017-11-06 13:15:16'),
(996,'Russell','James','russelljames@interview.fff','2017-11-04 14:42:53'),
(997,'Michael','Barnes','michaelbarnes@interview.fff','2017-10-31 05:31:30'),
(998,'Christopher','Davis','christopherdavis@interview.fff','2017-11-07 03:28:49'),
(999,'Alexandra','Proctor','alexandraproctor@interview.fff','2017-10-29 18:47:18'),
(1000,'Chelsea','Casey','chelseacasey@interview.fff','2017-11-01 05:28:53'),
(1001,'Lisa','Gregory','lisagregory@interview.fff','2017-11-06 01:01:08'),
(1002,'Jacqueline','Fry','jacquelinefry@interview.fff','2017-11-02 21:44:08'),
(1003,'Mark','Werner','markwerner@interview.fff','2017-11-04 15:06:37'),
(1004,'Charles','Jones','charlesjones@interview.fff','2017-10-28 16:57:48'),
(1005,'Jack','Graves','jackgraves@interview.fff','2017-11-05 21:02:44'),
(1006,'Amy','Patel','amypatel@interview.fff','2017-10-30 09:15:17'),
(1007,'Vanessa','Guzman','vanessaguzman@interview.fff','2017-11-06 18:09:20'),
(1008,'Nathaniel','Hopkins','nathanielhopkins@interview.fff','2017-10-28 23:18:32'),
(1009,'Shawn','Thomas','shawnthomas@interview.fff','2017-10-30 13:45:26'),
(1010,'Brett','Graves','brettgraves@interview.fff','2017-11-06 10:17:19'),
(1011,'Lisa','Miller','lisamiller@interview.fff','2017-11-07 03:06:01'),
(1012,'Justin','Michael','justinmichael@interview.fff','2017-11-05 09:38:04'),
(1013,'Shane','Williams','shanewilliams@interview.fff','2017-11-05 15:57:20'),
(1014,'Maureen','Hopkins','maureenhopkins@interview.fff','2017-11-07 07:33:28'),
(1015,'Kyle','Ramirez','kyleramirez@interview.fff','2017-11-02 23:42:22'),
(1016,'Sean','Carroll','seancarroll@interview.fff','2017-11-01 17:40:42'),
(1017,'Danielle','Ramirez','danielleramirez@interview.fff','2017-11-03 17:18:05'),
(1018,'Patrick','Hickman','patrickhickman@interview.fff','2017-11-01 14:44:00'),
(1019,'Alexandra','Gonzalez','alexandragonzalez@interview.fff','2017-10-30 19:20:30'),
(1020,'Scott','Bauer','scottbauer@interview.fff','2017-11-01 13:11:46'),
(1021,'Sonia','Cook','soniacook@interview.fff','2017-10-31 16:46:48'),
(1022,'Monica','Miller','monicamiller@interview.fff','2017-11-02 12:47:17'),
(1023,'Jaime','Rogers','jaimerogers@interview.fff','2017-10-31 14:44:15'),
(1024,'Cole','Robinson','colerobinson@interview.fff','2017-11-06 11:27:10'),
(1025,'Jeremy','Serrano','jeremyserrano@interview.fff','2017-11-06 05:45:31'),
(1026,'Tracie','Fox','traciefox@interview.fff','2017-11-04 01:54:51'),
(1027,'Frank','Park','frankpark@interview.fff','2017-11-02 04:39:52'),
(1028,'Kayla','Walker','kaylawalker@interview.fff','2017-11-06 05:34:30'),
(1029,'Brooke','Thompson','brookethompson@interview.fff','2017-11-06 07:35:26'),
(1030,'John','Moody','johnmoody@interview.fff','2017-10-31 02:25:13'),
(1031,'Cesar','Murillo','cesarmurillo@interview.fff','2017-11-02 03:13:47'),
(1032,'Joshua','Mcclure','joshuamcclure@interview.fff','2017-11-03 11:08:05'),
(1033,'James','Smith','jamessmith@interview.fff','2017-11-07 14:06:58'),
(1034,'Matthew','Johnson','matthewjohnson@interview.fff','2017-11-03 15:41:38'),
(1035,'Courtney','Smith','courtneysmith@interview.fff','2017-11-05 14:51:27'),
(1036,'Ryan','Rasmussen','ryanrasmussen@interview.fff','2017-11-07 08:18:35'),
(1037,'Carrie','Costa','carriecosta@interview.fff','2017-11-06 10:20:50'),
(1038,'Leroy','Santos','leroysantos@interview.fff','2017-11-07 10:14:44'),
(1039,'Robert','Porter','robertporter@interview.fff','2017-11-05 03:11:58'),
(1040,'Eric','Chapman','ericchapman@interview.fff','2017-11-04 10:46:33'),
(1041,'Catherine','Smith','catherinesmith@interview.fff','2017-11-03 01:36:57'),
(1042,'Gregory','Dawson','gregorydawson@interview.fff','2017-11-03 20:05:38'),
(1043,'Charles','Herrera','charlesherrera@interview.fff','2017-11-06 11:04:30'),
(1044,'Stephanie','Brown','stephaniebrown@interview.fff','2017-11-03 04:15:54'),
(1045,'Michelle','Wagner','michellewagner@interview.fff','2017-11-05 15:00:49'),
(1046,'Jason','Powers','jasonpowers@interview.fff','2017-11-02 16:00:22'),
(1047,'Christopher','Clements','christopherclements@interview.fff','2017-11-01 23:40:24'),
(1048,'David','Benson','davidbenson@interview.fff','2017-11-02 20:43:20'),
(1049,'Ian','Johnston','ianjohnston@interview.fff','2017-11-06 12:03:40'),
(1050,'Melissa','Flowers','melissaflowers@interview.fff','2017-10-30 12:08:14'),
(1051,'Jasmine','Barnes','jasminebarnes@interview.fff','2017-10-28 16:57:24'),
(1052,'Susan','Allen','susanallen@interview.fff','2017-10-29 03:18:01'),
(1053,'Jason','Parker','jasonparker@interview.fff','2017-11-07 12:36:10'),
(1054,'Lisa','Keller','lisakeller@interview.fff','2017-11-04 07:51:43'),
(1055,'Christopher','Grant','christophergrant@interview.fff','2017-10-29 07:04:26'),
(1056,'Brian','Hood','brianhood@interview.fff','2017-11-04 15:24:48'),
(1057,'Ashley','Morton','ashleymorton@interview.fff','2017-11-03 16:19:23'),
(1058,'James','Mercer','jamesmercer@interview.fff','2017-11-05 04:10:33'),
(1059,'Kenneth','Rojas','kennethrojas@interview.fff','2017-10-29 17:28:25'),
(1060,'Kelli','Huynh','kellihuynh@interview.fff','2017-10-30 06:38:17'),
(1061,'Ruben','Trujillo','rubentrujillo@interview.fff','2017-11-02 23:42:52'),
(1062,'David','Baker','davidbaker@interview.fff','2017-10-30 02:38:58'),
(1063,'James','Johnson','jamesjohnson@interview.fff','2017-11-07 06:27:11'),
(1064,'Nicole','Mitchell','nicolemitchell@interview.fff','2017-11-07 00:56:41'),
(1065,'Chad','Hunt','chadhunt@interview.fff','2017-10-29 21:56:18'),
(1066,'Kaitlyn','Morris','kaitlynmorris@interview.fff','2017-11-07 14:43:53'),
(1067,'Travis','Rose','travisrose@interview.fff','2017-10-29 03:17:05'),
(1068,'Patricia','Brown','patriciabrown@interview.fff','2017-11-05 23:58:20'),
(1069,'Elizabeth','Owen','elizabethowen@interview.fff','2017-11-05 14:14:54'),
(1070,'Katherine','Hicks','katherinehicks@interview.fff','2017-10-31 12:03:21'),
(1071,'Megan','Lopez','meganlopez@interview.fff','2017-11-05 18:33:52'),
(1072,'Charles','Williamson','charleswilliamson@interview.fff','2017-11-02 04:38:33'),
(1073,'Luis','Davis','luisdavis@interview.fff','2017-10-29 19:54:52'),
(1074,'Cassandra','Bell','cassandrabell@interview.fff','2017-11-06 23:14:19'),
(1075,'Kristina','Hartman','kristinahartman@interview.fff','2017-11-05 09:39:31'),
(1076,'Tammy','Davis','tammydavis@interview.fff','2017-10-31 20:49:55'),
(1077,'Christopher','Hurley','christopherhurley@interview.fff','2017-11-01 23:44:09'),
(1078,'Charlene','Rivera','charlenerivera@interview.fff','2017-11-02 22:47:52'),
(1079,'Samuel','Lloyd','samuellloyd@interview.fff','2017-11-05 23:00:40'),
(1080,'Chris','Mcmahon','chrismcmahon@interview.fff','2017-11-01 13:05:20'),
(1081,'Linda','Butler','lindabutler@interview.fff','2017-10-31 23:48:54'),
(1082,'Jason','Peck','jasonpeck@interview.fff','2017-10-29 01:45:16'),
(1083,'Jennifer','Hayes','jenniferhayes@interview.fff','2017-11-03 06:29:14'),
(1084,'Dustin','Jenkins','dustinjenkins@interview.fff','2017-11-06 12:22:08'),
(1085,'Raymond','Henderson','raymondhenderson@interview.fff','2017-11-02 03:07:46'),
(1086,'Stephen','Soto','stephensoto@interview.fff','2017-10-29 05:41:15'),
(1087,'Linda','Matthews','lindamatthews@interview.fff','2017-10-29 19:50:35'),
(1088,'Raymond','Brown','raymondbrown@interview.fff','2017-11-02 07:35:43'),
(1089,'Sarah','Martinez','sarahmartinez@interview.fff','2017-11-01 10:56:49'),
(1090,'Mark','Ashley','markashley@interview.fff','2017-11-04 12:16:41'),
(1091,'Patricia','Ochoa','patriciaochoa@interview.fff','2017-11-04 10:30:40'),
(1092,'Deborah','Oneal','deborahoneal@interview.fff','2017-10-31 19:35:08'),
(1093,'Scott','Willis','scottwillis@interview.fff','2017-11-05 04:38:51'),
(1094,'Louis','Pace','louispace@interview.fff','2017-11-03 08:22:27'),
(1095,'Joseph','Winters','josephwinters@interview.fff','2017-11-01 14:56:47'),
(1096,'Melissa','Short','melissashort@interview.fff','2017-11-02 19:25:00'),
(1097,'Dawn','Young','dawnyoung@interview.fff','2017-10-30 03:42:36'),
(1098,'Jennifer','Snyder','jennifersnyder@interview.fff','2017-10-31 02:55:42'),
(1099,'Carl','Potts','carlpotts@interview.fff','2017-10-31 10:30:26'),
(1100,'James','Griffith','jamesgriffith@interview.fff','2017-11-04 12:04:43'),
(1101,'Steven','Smith','stevensmith@interview.fff','2017-11-07 15:19:00'),
(1102,'Amber','Gonzalez','ambergonzalez@interview.fff','2017-10-31 05:20:32'),
(1103,'Robert','Good','robertgood@interview.fff','2017-11-02 09:20:15'),
(1104,'Riley','Wang','rileywang@interview.fff','2017-11-05 15:09:44'),
(1105,'Earl','Baker','earlbaker@interview.fff','2017-10-30 23:23:20'),
(1106,'Diane','Johnson','dianejohnson@interview.fff','2017-11-02 20:03:13'),
(1107,'Mary','Little','marylittle@interview.fff','2017-11-01 18:58:08'),
(1108,'Julia','Graham','juliagraham@interview.fff','2017-11-03 09:19:53'),
(1109,'Tina','Bishop','tinabishop@interview.fff','2017-11-02 07:53:20'),
(1110,'Ashley','Mack','ashleymack@interview.fff','2017-11-03 21:20:49'),
(1111,'Lindsey','Myers','lindseymyers@interview.fff','2017-11-01 00:22:24'),
(1112,'Alan','Taylor','alantaylor@interview.fff','2017-11-05 01:50:43'),
(1113,'Audrey','Gay','audreygay@interview.fff','2017-11-01 23:49:56'),
(1114,'Justin','Ferguson','justinferguson@interview.fff','2017-10-31 22:29:34'),
(1115,'Christopher','Jones','christopherjones@interview.fff','2017-10-31 17:13:45'),
(1116,'Andrew','Sampson','andrewsampson@interview.fff','2017-10-30 08:22:58'),
(1117,'Roger','Griffin','rogergriffin@interview.fff','2017-10-29 19:34:45'),
(1118,'David','Owens','davidowens@interview.fff','2017-11-02 03:44:50'),
(1119,'Tyler','Townsend','tylertownsend@interview.fff','2017-11-07 05:55:48'),
(1120,'Michael','Martin','michaelmartin@interview.fff','2017-11-02 15:38:20'),
(1121,'William','Morales','williammorales@interview.fff','2017-10-31 00:13:30'),
(1122,'Heather','Lucas','heatherlucas@interview.fff','2017-11-03 12:07:02'),
(1123,'Justin','Brown','justinbrown@interview.fff','2017-11-03 21:33:49'),
(1124,'Jonathan','Perkins','jonathanperkins@interview.fff','2017-11-02 03:21:35'),
(1125,'Michael','Wolfe','michaelwolfe@interview.fff','2017-11-01 16:03:55'),
(1126,'Daniel','Brown','danielbrown@interview.fff','2017-11-04 13:23:06'),
(1127,'Matthew','Phillips','matthewphillips@interview.fff','2017-11-03 00:26:42'),
(1128,'Anthony','Willis','anthonywillis@interview.fff','2017-10-31 05:51:11'),
(1129,'Deborah','Cruz','deborahcruz@interview.fff','2017-10-28 17:16:58'),
(1130,'Eric','Richardson','ericrichardson@interview.fff','2017-11-02 19:50:13'),
(1131,'Timothy','Warren','timothywarren@interview.fff','2017-11-06 15:51:29'),
(1132,'Pamela','Rodriguez','pamelarodriguez@interview.fff','2017-11-07 12:20:09'),
(1133,'Matthew','Salinas','matthewsalinas@interview.fff','2017-11-04 16:19:19'),
(1134,'Diana','Reilly','dianareilly@interview.fff','2017-11-02 20:00:22'),
(1135,'Miguel','Brown','miguelbrown@interview.fff','2017-10-30 19:18:31'),
(1136,'Mallory','Wu','mallorywu@interview.fff','2017-11-03 02:54:20'),
(1137,'Paula','Hoffman','paulahoffman@interview.fff','2017-11-05 05:04:37'),
(1138,'Sheryl','Meyer','sherylmeyer@interview.fff','2017-10-30 12:52:46'),
(1139,'Dean','Graham','deangraham@interview.fff','2017-11-06 20:51:39'),
(1140,'Belinda','Jackson','belindajackson@interview.fff','2017-11-02 22:07:40'),
(1141,'Kevin','Cunningham','kevincunningham@interview.fff','2017-11-06 01:52:21'),
(1142,'Shannon','Freeman','shannonfreeman@interview.fff','2017-11-02 21:34:56'),
(1143,'Justin','Wagner','justinwagner@interview.fff','2017-11-05 10:34:11'),
(1144,'Angelica','Mendez','angelicamendez@interview.fff','2017-11-06 11:10:24'),
(1145,'Sarah','Bass','sarahbass@interview.fff','2017-11-01 09:46:44'),
(1146,'Adam','Daniels','adamdaniels@interview.fff','2017-10-31 13:38:24'),
(1147,'Mark','Vasquez','markvasquez@interview.fff','2017-10-31 20:59:58'),
(1148,'Donald','Phelps','donaldphelps@interview.fff','2017-10-29 21:47:03'),
(1149,'Maria','Mcgee','mariamcgee@interview.fff','2017-11-07 09:07:26'),
(1150,'Timothy','Wright','timothywright@interview.fff','2017-11-07 03:03:13'),
(1151,'Jacob','Webb','jacobwebb@interview.fff','2017-11-01 12:50:45'),
(1152,'Brent','Wells','brentwells@interview.fff','2017-10-30 15:38:24'),
(1153,'Lauren','Day','laurenday@interview.fff','2017-11-04 21:29:43'),
(1154,'Madison','Bauer','madisonbauer@interview.fff','2017-11-02 12:45:46'),
(1155,'Sheila','Barrett','sheilabarrett@interview.fff','2017-11-05 15:10:21'),
(1156,'Kelli','Garcia','kelligarcia@interview.fff','2017-10-30 04:07:36'),
(1157,'Carly','Griffin','carlygriffin@interview.fff','2017-11-02 18:55:40'),
(1158,'Zachary','Kim','zacharykim@interview.fff','2017-11-01 07:17:51'),
(1159,'Thomas','Schroeder','thomasschroeder@interview.fff','2017-10-29 22:04:49'),
(1160,'Jerry','Hess','jerryhess@interview.fff','2017-11-03 17:02:50'),
(1161,'Donna','Mcmillan','donnamcmillan@interview.fff','2017-10-30 22:22:14'),
(1162,'Christopher','Guzman','christopherguzman@interview.fff','2017-11-03 15:59:53'),
(1163,'Kaitlyn','Johnson','kaitlynjohnson@interview.fff','2017-11-04 20:00:56'),
(1164,'Thomas','Wall','thomaswall@interview.fff','2017-11-07 11:21:01'),
(1165,'Samantha','Wright','samanthawright@interview.fff','2017-11-05 23:28:23'),
(1166,'Martha','Deleon','marthadeleon@interview.fff','2017-11-05 20:17:22'),
(1167,'Jasmine','Norton','jasminenorton@interview.fff','2017-11-04 02:51:36'),
(1168,'Sharon','Clark','sharonclark@interview.fff','2017-10-29 23:01:43'),
(1169,'Michele','Stewart','michelestewart@interview.fff','2017-10-31 05:54:01'),
(1170,'Charles','Parsons','charlesparsons@interview.fff','2017-11-05 16:28:10'),
(1171,'Nicholas','Richardson','nicholasrichardson@interview.fff','2017-11-05 22:04:56'),
(1172,'Brian','Bradshaw','brianbradshaw@interview.fff','2017-11-06 03:29:58'),
(1173,'Melissa','Brown','melissabrown@interview.fff','2017-11-01 07:11:12'),
(1174,'Glen','Hawkins','glenhawkins@interview.fff','2017-11-02 17:32:22'),
(1175,'Eddie','Shields','eddieshields@interview.fff','2017-11-03 04:25:53'),
(1176,'Caleb','Hunt','calebhunt@interview.fff','2017-11-04 18:49:50'),
(1177,'Christopher','Berry','christopherberry@interview.fff','2017-11-01 00:00:44'),
(1178,'Meredith','Byrd','meredithbyrd@interview.fff','2017-11-04 19:18:48'),
(1179,'Brittany','Murillo','brittanymurillo@interview.fff','2017-11-03 22:43:05'),
(1180,'Joshua','Miller','joshuamiller@interview.fff','2017-11-01 01:50:57'),
(1181,'Tabitha','Price','tabithaprice@interview.fff','2017-11-06 23:42:48'),
(1182,'Julie','Jordan','juliejordan@interview.fff','2017-11-05 01:47:56'),
(1183,'Jose','Thomas','josethomas@interview.fff','2017-10-30 16:41:53'),
(1184,'David','Lewis','davidlewis@interview.fff','2017-11-05 14:01:56'),
(1185,'Allison','Barber','allisonbarber@interview.fff','2017-10-30 12:07:10'),
(1186,'Kristen','Knight','kristenknight@interview.fff','2017-11-04 08:36:41'),
(1187,'Janet','Mendoza','janetmendoza@interview.fff','2017-11-06 11:52:23'),
(1188,'Bradley','Barnett','bradleybarnett@interview.fff','2017-10-29 17:11:34'),
(1189,'Nathan','Hughes','nathanhughes@interview.fff','2017-11-06 04:37:13'),
(1190,'Elizabeth','Gomez','elizabethgomez@interview.fff','2017-10-31 09:34:35'),
(1191,'Jim','Williams','jimwilliams@interview.fff','2017-11-03 09:30:12'),
(1192,'Connor','Bass','connorbass@interview.fff','2017-11-01 16:43:42'),
(1193,'Dawn','Stewart','dawnstewart@interview.fff','2017-10-29 05:11:00'),
(1194,'Gina','Simpson','ginasimpson@interview.fff','2017-10-29 01:26:18'),
(1195,'Breanna','Davis','breannadavis@interview.fff','2017-11-03 03:41:41'),
(1196,'Susan','Browning','susanbrowning@interview.fff','2017-11-06 06:44:34'),
(1197,'Alicia','Dawson','aliciadawson@interview.fff','2017-11-02 01:05:19'),
(1198,'Daniel','Hughes','danielhughes@interview.fff','2017-10-29 17:32:16'),
(1199,'Carlos','Simmons','carlossimmons@interview.fff','2017-10-29 02:41:49'),
(1200,'Scott','Marquez','scottmarquez@interview.fff','2017-11-01 10:05:51'),
(1201,'Samantha','Brock','samanthabrock@interview.fff','2017-11-06 19:01:34'),
(1202,'Nathaniel','Martin','nathanielmartin@interview.fff','2017-11-03 12:45:29'),
(1203,'Cindy','Gardner','cindygardner@interview.fff','2017-10-31 06:41:06'),
(1204,'Lisa','Zavala','lisazavala@interview.fff','2017-11-03 10:13:40'),
(1205,'Paul','Marsh','paulmarsh@interview.fff','2017-11-03 02:33:35'),
(1206,'Ashley','Craig','ashleycraig@interview.fff','2017-11-01 18:45:43'),
(1207,'Diana','Smith','dianasmith@interview.fff','2017-11-02 04:16:50'),
(1208,'Kent','Rodgers','kentrodgers@interview.fff','2017-11-07 05:49:12'),
(1209,'Jason','Kent','jasonkent@interview.fff','2017-11-02 18:57:28'),
(1210,'Debbie','Randolph','debbierandolph@interview.fff','2017-11-03 00:40:29'),
(1211,'Annette','Brooks','annettebrooks@interview.fff','2017-10-31 16:53:35'),
(1212,'Denise','Greene','denisegreene@interview.fff','2017-11-06 14:27:47'),
(1213,'John','Brown','johnbrown@interview.fff','2017-11-03 13:01:38'),
(1214,'Heather','Terrell','heatherterrell@interview.fff','2017-11-06 11:25:38'),
(1215,'Lisa','Harper','lisaharper@interview.fff','2017-10-29 16:45:11'),
(1216,'Laura','Taylor','laurataylor@interview.fff','2017-11-01 11:59:24'),
(1217,'Stacey','Curtis','staceycurtis@interview.fff','2017-11-04 10:19:43'),
(1218,'Gary','Pitts','garypitts@interview.fff','2017-10-31 03:27:13'),
(1219,'Lawrence','Clarke','lawrenceclarke@interview.fff','2017-11-02 03:38:58'),
(1220,'John','Hernandez','johnhernandez@interview.fff','2017-10-31 15:38:09'),
(1221,'Tammy','Cox','tammycox@interview.fff','2017-11-04 13:15:03'),
(1222,'Amber','Bender','amberbender@interview.fff','2017-10-31 12:49:34'),
(1223,'Miranda','Davis','mirandadavis@interview.fff','2017-10-31 02:57:36'),
(1224,'David','Adams','davidadams@interview.fff','2017-10-30 00:08:01'),
(1225,'Zachary','Sullivan','zacharysullivan@interview.fff','2017-11-07 16:04:46'),
(1226,'Jody','Hughes','jodyhughes@interview.fff','2017-11-05 04:20:30'),
(1227,'Barbara','Smith','barbarasmith@interview.fff','2017-10-30 09:39:11'),
(1228,'Cassandra','Smith','cassandrasmith@interview.fff','2017-10-31 16:17:05'),
(1229,'Rita','Benson','ritabenson@interview.fff','2017-10-31 05:45:39'),
(1230,'Jessica','Jones','jessicajones@interview.fff','2017-11-05 02:44:10'),
(1231,'Annette','Beck','annettebeck@interview.fff','2017-10-30 22:20:35'),
(1232,'Darrell','Matthews','darrellmatthews@interview.fff','2017-10-29 10:47:38'),
(1233,'Amber','Schultz','amberschultz@interview.fff','2017-10-29 10:22:05'),
(1234,'Jonathan','Frazier','jonathanfrazier@interview.fff','2017-10-31 02:16:20'),
(1235,'Robin','Curry','robincurry@interview.fff','2017-11-01 09:43:39'),
(1236,'Nicole','Ayers','nicoleayers@interview.fff','2017-11-05 15:19:11'),
(1237,'Teresa','Miller','teresamiller@interview.fff','2017-11-02 08:01:52'),
(1238,'Katie','Jennings','katiejennings@interview.fff','2017-10-31 00:28:43'),
(1239,'Timothy','Ritter','timothyritter@interview.fff','2017-10-31 01:12:14'),
(1240,'Jason','Aguilar','jasonaguilar@interview.fff','2017-11-07 07:57:44'),
(1241,'Tyler','Watkins','tylerwatkins@interview.fff','2017-11-03 19:54:15'),
(1242,'Grant','Morgan','grantmorgan@interview.fff','2017-11-03 11:40:44'),
(1243,'Amber','Austin','amberaustin@interview.fff','2017-10-30 11:36:49'),
(1244,'Margaret','Bullock','margaretbullock@interview.fff','2017-11-04 03:54:46'),
(1245,'Brian','Craig','briancraig@interview.fff','2017-10-30 10:35:33'),
(1246,'Joy','Cox','joycox@interview.fff','2017-10-29 11:57:52'),
(1247,'John','Carlson','johncarlson@interview.fff','2017-10-29 17:10:25'),
(1248,'Joshua','Jones','joshuajones@interview.fff','2017-11-01 21:24:46'),
(1249,'Marissa','Butler','marissabutler@interview.fff','2017-10-29 00:27:23'),
(1250,'Brooke','Brock','brookebrock@interview.fff','2017-11-06 16:38:33'),
(1251,'Andrew','Carlson','andrewcarlson@interview.fff','2017-11-03 12:14:17'),
(1252,'Christopher','Wright','christopherwright@interview.fff','2017-10-30 02:25:41'),
(1253,'Samuel','Cohen','samuelcohen@interview.fff','2017-11-06 03:12:19'),
(1254,'Tiffany','Garcia','tiffanygarcia@interview.fff','2017-11-05 10:59:10'),
(1255,'Michael','Roy','michaelroy@interview.fff','2017-10-29 04:56:30'),
(1256,'Sheila','Garza','sheilagarza@interview.fff','2017-11-07 10:32:18'),
(1257,'Samantha','Hayes','samanthahayes@interview.fff','2017-11-05 07:44:23'),
(1258,'Shannon','Lee','shannonlee@interview.fff','2017-11-01 00:07:29'),
(1259,'Patrick','Burns','patrickburns@interview.fff','2017-11-02 07:47:06'),
(1260,'James','Lopez','jameslopez@interview.fff','2017-11-04 08:33:46'),
(1261,'Debbie','Waller','debbiewaller@interview.fff','2017-11-03 06:22:13'),
(1262,'Carl','Roberts','carlroberts@interview.fff','2017-11-07 13:58:44'),
(1263,'Joseph','Ramos','josephramos@interview.fff','2017-10-30 15:10:42'),
(1264,'Tanner','Compton','tannercompton@interview.fff','2017-10-31 18:21:03'),
(1265,'Tyler','Ruiz','tylerruiz@interview.fff','2017-10-29 09:44:48'),
(1266,'Blake','Williams','blakewilliams@interview.fff','2017-10-31 06:54:32'),
(1267,'Gordon','Robinson','gordonrobinson@interview.fff','2017-10-29 21:12:43'),
(1268,'Jane','Huang','janehuang@interview.fff','2017-11-04 15:35:03'),
(1269,'Marisa','Valencia','marisavalencia@interview.fff','2017-11-04 12:42:23'),
(1270,'William','Young','williamyoung@interview.fff','2017-11-07 02:00:39'),
(1271,'Douglas','Decker','douglasdecker@interview.fff','2017-10-31 19:25:14'),
(1272,'Michelle','Adams','michelleadams@interview.fff','2017-10-30 17:57:05'),
(1273,'Kenneth','Leon','kennethleon@interview.fff','2017-11-03 12:02:10'),
(1274,'Michelle','Morrison','michellemorrison@interview.fff','2017-11-06 07:59:18'),
(1275,'Jessica','Mcdonald','jessicamcdonald@interview.fff','2017-11-01 03:32:10'),
(1276,'Diana','Davis','dianadavis@interview.fff','2017-10-30 00:10:01'),
(1277,'Jessica','Rodriguez','jessicarodriguez@interview.fff','2017-11-07 03:21:39'),
(1278,'Willie','Miles','williemiles@interview.fff','2017-11-02 06:46:45'),
(1279,'Crystal','Mccullough','crystalmccullough@interview.fff','2017-11-06 05:48:59'),
(1280,'George','Wilson','georgewilson@interview.fff','2017-10-31 09:41:53'),
(1281,'Nichole','Wang','nicholewang@interview.fff','2017-10-28 23:07:36'),
(1282,'Nancy','Rivera','nancyrivera@interview.fff','2017-10-29 20:03:56'),
(1283,'Michael','Kerr','michaelkerr@interview.fff','2017-11-01 20:18:29'),
(1284,'Holly','Richard','hollyrichard@interview.fff','2017-11-02 20:50:37'),
(1285,'Crystal','Rivers','crystalrivers@interview.fff','2017-10-30 14:26:11'),
(1286,'James','Edwards','jamesedwards@interview.fff','2017-11-05 02:26:49'),
(1287,'Michael','Brennan','michaelbrennan@interview.fff','2017-11-06 04:27:01'),
(1288,'Joshua','Marshall','joshuamarshall@interview.fff','2017-10-29 19:21:36'),
(1289,'Kyle','Williams','kylewilliams@interview.fff','2017-11-01 13:56:51'),
(1290,'Kathleen','Owen','kathleenowen@interview.fff','2017-10-29 20:30:51'),
(1291,'John','Hanson','johnhanson@interview.fff','2017-10-31 10:14:29'),
(1292,'Shawn','Reynolds','shawnreynolds@interview.fff','2017-10-30 07:30:54'),
(1293,'Stacy','Sparks','stacysparks@interview.fff','2017-11-05 22:53:30'),
(1294,'Leah','Valencia','leahvalencia@interview.fff','2017-10-30 03:03:50'),
(1295,'Tyler','Willis','tylerwillis@interview.fff','2017-11-06 13:15:39'),
(1296,'George','Spencer','georgespencer@interview.fff','2017-10-30 20:20:00'),
(1297,'John','Davis','johndavis@interview.fff','2017-10-31 20:05:39'),
(1298,'Michelle','Lewis','michellelewis@interview.fff','2017-11-06 16:23:28'),
(1299,'Marc','Smith','marcsmith@interview.fff','2017-10-31 05:26:01'),
(1300,'Brian','Franklin','brianfranklin@interview.fff','2017-11-04 05:06:29'),
(1301,'Deborah','Lewis','deborahlewis@interview.fff','2017-11-02 10:25:21'),
(1302,'Lauren','Barton','laurenbarton@interview.fff','2017-11-05 07:13:43'),
(1303,'Katherine','Garcia','katherinegarcia@interview.fff','2017-10-30 17:01:20'),
(1304,'Lee','Hernandez','leehernandez@interview.fff','2017-10-31 21:07:24'),
(1305,'Jared','Garcia','jaredgarcia@interview.fff','2017-11-03 07:00:42'),
(1306,'Samuel','Kirk','samuelkirk@interview.fff','2017-11-03 22:49:13'),
(1307,'Carrie','Garza','carriegarza@interview.fff','2017-11-03 21:16:37'),
(1308,'Victoria','Melendez','victoriamelendez@interview.fff','2017-10-30 15:24:48'),
(1309,'Nicholas','Young','nicholasyoung@interview.fff','2017-11-05 10:00:15'),
(1310,'Matthew','Flores','matthewflores@interview.fff','2017-11-02 02:01:22'),
(1311,'Mary','Nunez','marynunez@interview.fff','2017-10-31 20:56:02'),
(1312,'William','Deleon','williamdeleon@interview.fff','2017-11-01 17:15:24'),
(1313,'Vanessa','Collins','vanessacollins@interview.fff','2017-11-02 11:21:18'),
(1314,'Christopher','Lee','christopherlee@interview.fff','2017-11-02 08:07:14'),
(1315,'Stanley','Hall','stanleyhall@interview.fff','2017-11-01 09:43:24'),
(1316,'Benjamin','Brown','benjaminbrown@interview.fff','2017-10-30 05:10:19'),
(1317,'Devin','Barnett','devinbarnett@interview.fff','2017-11-03 15:13:28'),
(1318,'Jeffrey','Boyd','jeffreyboyd@interview.fff','2017-11-07 15:45:54'),
(1319,'Diane','Mason','dianemason@interview.fff','2017-10-30 10:09:46'),
(1320,'Walter','Miranda','waltermiranda@interview.fff','2017-10-31 04:59:53'),
(1321,'Ashley','Taylor','ashleytaylor@interview.fff','2017-11-01 21:24:35'),
(1322,'Christopher','Thompson','christopherthompson@interview.fff','2017-10-30 02:56:25'),
(1323,'Christopher','Mcclure','christophermcclure@interview.fff','2017-11-06 01:37:19'),
(1324,'Andrew','Hunter','andrewhunter@interview.fff','2017-11-01 06:39:12'),
(1325,'Jessica','Briggs','jessicabriggs@interview.fff','2017-11-02 07:19:22'),
(1326,'Cindy','Myers','cindymyers@interview.fff','2017-11-03 21:09:29'),
(1327,'Rachel','Avery','rachelavery@interview.fff','2017-11-04 17:57:05'),
(1328,'Sarah','Tate','sarahtate@interview.fff','2017-11-07 00:15:01'),
(1329,'Laura','Collins','lauracollins@interview.fff','2017-11-05 02:49:49'),
(1330,'Leah','Bryant','leahbryant@interview.fff','2017-10-31 09:11:19'),
(1331,'Shannon','Wilson','shannonwilson@interview.fff','2017-10-31 20:27:23'),
(1332,'James','Wagner','jameswagner@interview.fff','2017-11-05 03:34:48'),
(1333,'Sheena','Diaz','sheenadiaz@interview.fff','2017-11-01 23:23:23'),
(1334,'William','Smith','williamsmith@interview.fff','2017-11-06 20:04:32'),
(1335,'Lindsay','Gallegos','lindsaygallegos@interview.fff','2017-11-03 03:58:17'),
(1336,'Stephanie','Kelly','stephaniekelly@interview.fff','2017-11-03 01:32:46'),
(1337,'Adam','Patterson','adampatterson@interview.fff','2017-10-30 12:09:30'),
(1338,'Amy','Mcdonald','amymcdonald@interview.fff','2017-11-02 00:10:01'),
(1339,'Brett','Green','brettgreen@interview.fff','2017-11-03 14:44:49'),
(1340,'Wesley','Bell','wesleybell@interview.fff','2017-11-06 05:47:40'),
(1341,'Kimberly','Palmer','kimberlypalmer@interview.fff','2017-11-01 10:22:04'),
(1342,'Linda','Mcdaniel','lindamcdaniel@interview.fff','2017-11-01 06:32:18'),
(1343,'Nathan','Mcintyre','nathanmcintyre@interview.fff','2017-10-29 19:38:40'),
(1344,'Patricia','Gutierrez','patriciagutierrez@interview.fff','2017-11-05 06:58:46'),
(1345,'Joseph','Thomas','josephthomas@interview.fff','2017-10-30 02:02:17'),
(1346,'Laurie','Dixon','lauriedixon@interview.fff','2017-10-31 16:18:13'),
(1347,'Brooke','Bennett','brookebennett@interview.fff','2017-11-04 06:10:01'),
(1348,'Douglas','Park','douglaspark@interview.fff','2017-11-02 19:30:54'),
(1349,'Michelle','Lopez','michellelopez@interview.fff','2017-11-02 17:27:50'),
(1350,'Kyle','Turner','kyleturner@interview.fff','2017-11-06 14:12:58'),
(1351,'Edward','Webb','edwardwebb@interview.fff','2017-11-04 21:48:05'),
(1352,'Benjamin','Salas','benjaminsalas@interview.fff','2017-10-30 13:27:56'),
(1353,'Tonya','Mccullough','tonyamccullough@interview.fff','2017-11-04 02:57:50'),
(1354,'Tracy','Hood','tracyhood@interview.fff','2017-10-28 23:30:31'),
(1355,'Sarah','Malone','sarahmalone@interview.fff','2017-11-03 10:42:26'),
(1356,'Sean','Taylor','seantaylor@interview.fff','2017-10-29 09:02:59'),
(1357,'Emily','Smith','emilysmith@interview.fff','2017-11-01 09:13:30'),
(1358,'Duane','Caldwell','duanecaldwell@interview.fff','2017-10-30 05:54:25'),
(1359,'Cheryl','Brown','cherylbrown@interview.fff','2017-11-05 21:13:27'),
(1360,'Carla','Harrison','carlaharrison@interview.fff','2017-11-04 06:37:07'),
(1361,'Joseph','Dean','josephdean@interview.fff','2017-11-07 00:36:52'),
(1362,'Megan','Hunt','meganhunt@interview.fff','2017-10-31 05:01:52'),
(1363,'Todd','Morris','toddmorris@interview.fff','2017-11-04 06:07:03'),
(1364,'Julian','Wiley','julianwiley@interview.fff','2017-11-05 19:17:25'),
(1365,'Lynn','Glass','lynnglass@interview.fff','2017-10-30 05:41:57'),
(1366,'Ashley','Thomas','ashleythomas@interview.fff','2017-11-01 11:40:18'),
(1367,'Nichole','Wilcox','nicholewilcox@interview.fff','2017-11-02 06:25:47'),
(1368,'Sarah','Graham','sarahgraham@interview.fff','2017-11-04 14:00:56'),
(1369,'Stacey','White','staceywhite@interview.fff','2017-11-02 00:04:24'),
(1370,'Sean','Phillips','seanphillips@interview.fff','2017-11-03 21:25:59'),
(1371,'Michael','Anderson','michaelanderson@interview.fff','2017-11-06 15:54:42'),
(1372,'Francisco','Le','franciscole@interview.fff','2017-10-30 17:55:33'),
(1373,'Melissa','Smith','melissasmith@interview.fff','2017-11-03 16:34:14'),
(1374,'Trevor','Reeves','trevorreeves@interview.fff','2017-11-04 01:31:17'),
(1375,'Gerald','Beck','geraldbeck@interview.fff','2017-10-28 23:32:13'),
(1376,'Elizabeth','Mason','elizabethmason@interview.fff','2017-10-29 00:47:20'),
(1377,'Colton','Johnson','coltonjohnson@interview.fff','2017-10-29 23:06:17'),
(1378,'Amber','Garza','ambergarza@interview.fff','2017-11-05 23:36:08'),
(1379,'Lauren','Gordon','laurengordon@interview.fff','2017-11-07 01:26:54'),
(1380,'Patrick','Wilson','patrickwilson@interview.fff','2017-11-04 03:12:28'),
(1381,'Karen','Boyd','karenboyd@interview.fff','2017-11-06 06:18:41'),
(1382,'Victoria','Wheeler','victoriawheeler@interview.fff','2017-10-31 05:01:23'),
(1383,'Casey','Johnson','caseyjohnson@interview.fff','2017-10-30 21:08:10'),
(1384,'Amy','Morton','amymorton@interview.fff','2017-11-05 20:15:56'),
(1385,'Tabitha','Dixon','tabithadixon@interview.fff','2017-11-05 16:44:31'),
(1386,'Emily','Thomas','emilythomas@interview.fff','2017-11-04 09:30:25'),
(1387,'Laura','Roach','lauraroach@interview.fff','2017-10-31 09:56:21'),
(1388,'Victoria','Harmon','victoriaharmon@interview.fff','2017-11-06 03:02:40'),
(1389,'Devin','Barton','devinbarton@interview.fff','2017-10-29 11:59:19'),
(1390,'Kimberly','Lang','kimberlylang@interview.fff','2017-10-28 23:24:44'),
(1391,'Jeffrey','Long','jeffreylong@interview.fff','2017-11-01 22:24:59'),
(1392,'James','Flores','jamesflores@interview.fff','2017-11-04 07:18:38'),
(1393,'Christopher','Tucker','christophertucker@interview.fff','2017-10-29 20:48:19'),
(1394,'Gina','Garza','ginagarza@interview.fff','2017-11-07 03:11:57'),
(1395,'Amanda','Hayden','amandahayden@interview.fff','2017-11-02 17:10:36'),
(1396,'Curtis','Cruz','curtiscruz@interview.fff','2017-11-01 07:09:06'),
(1397,'Candace','Williams','candacewilliams@interview.fff','2017-10-30 18:03:56'),
(1398,'Brenda','Willis','brendawillis@interview.fff','2017-11-07 01:41:29'),
(1399,'Heather','Beck','heatherbeck@interview.fff','2017-10-31 04:55:55'),
(1400,'Jason','Watson','jasonwatson@interview.fff','2017-11-01 06:03:18'),
(1401,'Julie','Garcia','juliegarcia@interview.fff','2017-11-06 10:53:17'),
(1402,'Renee','Maxwell','reneemaxwell@interview.fff','2017-10-30 22:53:31'),
(1403,'Robert','Williams','robertwilliams@interview.fff','2017-10-31 06:45:38'),
(1404,'Cassandra','Coffey','cassandracoffey@interview.fff','2017-11-04 05:34:32'),
(1405,'Edward','Ryan','edwardryan@interview.fff','2017-10-30 16:39:03'),
(1406,'Dawn','Bailey','dawnbailey@interview.fff','2017-11-04 17:07:53'),
(1407,'Beth','Jimenez','bethjimenez@interview.fff','2017-11-01 23:25:46'),
(1408,'Martin','Brown','martinbrown@interview.fff','2017-11-03 20:46:51'),
(1409,'Jesse','Rodriguez','jesserodriguez@interview.fff','2017-11-02 19:17:35'),
(1410,'Paul','Walter','paulwalter@interview.fff','2017-11-04 17:48:44'),
(1411,'Cole','Collins','colecollins@interview.fff','2017-11-06 07:23:39'),
(1412,'Laura','Rosales','laurarosales@interview.fff','2017-11-01 05:40:04'),
(1413,'Sandra','Jones','sandrajones@interview.fff','2017-11-02 11:44:44'),
(1414,'Misty','Wagner','mistywagner@interview.fff','2017-10-30 15:42:17'),
(1415,'Beth','Joyce','bethjoyce@interview.fff','2017-11-03 00:41:45'),
(1416,'Christina','Mercado','christinamercado@interview.fff','2017-11-05 00:52:17'),
(1417,'Vicki','Adams','vickiadams@interview.fff','2017-10-31 05:52:25'),
(1418,'Leslie','Khan','lesliekhan@interview.fff','2017-10-30 02:29:20'),
(1419,'Sheena','Jackson','sheenajackson@interview.fff','2017-11-01 12:12:19'),
(1420,'Michael','Armstrong','michaelarmstrong@interview.fff','2017-11-02 21:10:11'),
(1421,'Michele','Hart','michelehart@interview.fff','2017-11-05 06:31:48'),
(1422,'Wayne','Diaz','waynediaz@interview.fff','2017-11-02 18:05:10'),
(1423,'Regina','Campbell','reginacampbell@interview.fff','2017-11-01 19:50:10'),
(1424,'Stacey','Haney','staceyhaney@interview.fff','2017-10-30 18:52:57'),
(1425,'Grace','Moore','gracemoore@interview.fff','2017-10-30 15:26:23'),
(1426,'Anthony','Adams','anthonyadams@interview.fff','2017-11-02 00:43:42'),
(1427,'Glenda','Vaughan','glendavaughan@interview.fff','2017-11-01 17:16:14'),
(1428,'Margaret','Owens','margaretowens@interview.fff','2017-10-29 23:36:51'),
(1429,'Nancy','Harrison','nancyharrison@interview.fff','2017-10-29 11:27:13'),
(1430,'Shannon','Adkins','shannonadkins@interview.fff','2017-11-04 14:59:21'),
(1431,'Denise','Fisher','denisefisher@interview.fff','2017-10-30 20:22:48'),
(1432,'Tammy','Hernandez','tammyhernandez@interview.fff','2017-11-04 09:15:41'),
(1433,'Christina','Perez','christinaperez@interview.fff','2017-11-05 05:12:22'),
(1434,'Robert','Morrow','robertmorrow@interview.fff','2017-11-05 22:29:15'),
(1435,'Shannon','Gibson','shannongibson@interview.fff','2017-11-06 22:57:53'),
(1436,'Jessica','Taylor','jessicataylor@interview.fff','2017-10-30 16:58:35'),
(1437,'Natalie','Baldwin','nataliebaldwin@interview.fff','2017-11-07 13:37:31'),
(1438,'Andrew','Gonzales','andrewgonzales@interview.fff','2017-11-06 19:04:14'),
(1439,'Tyler','Hayden','tylerhayden@interview.fff','2017-10-29 15:02:01'),
(1440,'Steven','West','stevenwest@interview.fff','2017-11-03 23:59:20'),
(1441,'William','Brady','williambrady@interview.fff','2017-11-07 16:44:06'),
(1442,'John','Curry','johncurry@interview.fff','2017-11-01 16:14:31'),
(1443,'Patrick','Reed','patrickreed@interview.fff','2017-11-02 05:20:21'),
(1444,'Patricia','Manning','patriciamanning@interview.fff','2017-11-03 02:51:34'),
(1445,'Ann','Lopez','annlopez@interview.fff','2017-11-04 19:21:22'),
(1446,'Amanda','Harrison','amandaharrison@interview.fff','2017-10-31 14:58:02'),
(1447,'Megan','Chen','meganchen@interview.fff','2017-10-30 08:33:51'),
(1448,'Jodi','Cox','jodicox@interview.fff','2017-10-29 23:37:05'),
(1449,'Ian','Johnson','ianjohnson@interview.fff','2017-11-06 13:45:57'),
(1450,'Janet','Elliott','janetelliott@interview.fff','2017-10-31 05:15:58'),
(1451,'Lisa','Delgado','lisadelgado@interview.fff','2017-10-28 22:31:32'),
(1452,'Kristina','Olson','kristinaolson@interview.fff','2017-11-04 15:59:38'),
(1453,'Jessica','Norris','jessicanorris@interview.fff','2017-11-06 11:11:36'),
(1454,'Travis','Yates','travisyates@interview.fff','2017-11-04 00:34:15'),
(1455,'Claire','Burns','claireburns@interview.fff','2017-11-01 17:21:44'),
(1456,'Matthew','Stephenson','matthewstephenson@interview.fff','2017-11-03 04:52:33'),
(1457,'Nicole','Sweeney','nicolesweeney@interview.fff','2017-11-07 06:29:50'),
(1458,'Connor','Bradley','connorbradley@interview.fff','2017-11-07 07:55:35'),
(1459,'James','Morris','jamesmorris@interview.fff','2017-10-31 03:49:18'),
(1460,'Timothy','Mullins','timothymullins@interview.fff','2017-11-04 03:21:07'),
(1461,'Deborah','Calderon','deborahcalderon@interview.fff','2017-10-31 12:02:19'),
(1462,'Adam','Williams','adamwilliams@interview.fff','2017-10-29 08:23:10'),
(1463,'William','Andersen','williamandersen@interview.fff','2017-10-29 16:38:07'),
(1464,'James','Hayes','jameshayes@interview.fff','2017-11-05 12:48:25'),
(1465,'Jack','Poole','jackpoole@interview.fff','2017-11-07 10:15:54'),
(1466,'Kenneth','Schwartz','kennethschwartz@interview.fff','2017-11-03 09:22:10'),
(1467,'Jeffrey','Barnett','jeffreybarnett@interview.fff','2017-11-04 18:05:17'),
(1468,'Joy','Vaughn','joyvaughn@interview.fff','2017-11-03 17:02:45'),
(1469,'John','Moss','johnmoss@interview.fff','2017-10-30 15:08:18'),
(1470,'Erica','Wilson','ericawilson@interview.fff','2017-11-06 20:42:58'),
(1471,'Christina','Evans','christinaevans@interview.fff','2017-10-29 06:58:09'),
(1472,'Jennifer','Smith','jennifersmith@interview.fff','2017-10-29 23:35:48'),
(1473,'Sabrina','Reed','sabrinareed@interview.fff','2017-11-07 14:55:48'),
(1474,'William','Ruiz','williamruiz@interview.fff','2017-10-29 05:11:46'),
(1475,'Tyler','Richardson','tylerrichardson@interview.fff','2017-11-03 05:04:39'),
(1476,'Tara','Scott','tarascott@interview.fff','2017-11-05 23:22:23'),
(1477,'Sandra','Hoffman','sandrahoffman@interview.fff','2017-11-05 14:04:36'),
(1478,'Mark','Jackson','markjackson@interview.fff','2017-11-05 05:21:53'),
(1479,'Christopher','Hall','christopherhall@interview.fff','2017-10-28 22:44:22'),
(1480,'Kevin','Pope','kevinpope@interview.fff','2017-10-31 19:57:31'),
(1481,'Joshua','Reilly','joshuareilly@interview.fff','2017-11-04 05:30:40'),
(1482,'Kelly','Macdonald','kellymacdonald@interview.fff','2017-11-06 00:02:24'),
(1483,'Lindsey','Price','lindseyprice@interview.fff','2017-10-31 16:24:53'),
(1484,'Marissa','Garcia','marissagarcia@interview.fff','2017-11-04 22:19:43'),
(1485,'Andrew','Gomez','andrewgomez@interview.fff','2017-11-07 01:36:33'),
(1486,'Mallory','Romero','malloryromero@interview.fff','2017-11-02 16:08:05'),
(1487,'Lisa','Gardner','lisagardner@interview.fff','2017-10-29 16:51:43'),
(1488,'Patrick','Jordan','patrickjordan@interview.fff','2017-11-02 05:11:24'),
(1489,'William','Gamble','williamgamble@interview.fff','2017-11-03 05:24:32'),
(1490,'Christian','Davis','christiandavis@interview.fff','2017-11-06 04:41:21'),
(1491,'Donald','Whitehead','donaldwhitehead@interview.fff','2017-11-05 05:20:34'),
(1492,'Rebekah','Caldwell','rebekahcaldwell@interview.fff','2017-11-03 09:56:48'),
(1493,'Erin','Maldonado','erinmaldonado@interview.fff','2017-10-29 23:37:07'),
(1494,'Zachary','Wilson','zacharywilson@interview.fff','2017-10-31 23:06:55'),
(1495,'James','Mason','jamesmason@interview.fff','2017-10-29 03:18:18'),
(1496,'Austin','Coleman','austincoleman@interview.fff','2017-11-02 23:31:30'),
(1497,'Allison','Murray','allisonmurray@interview.fff','2017-10-30 06:48:50'),
(1498,'Matthew','Campbell','matthewcampbell@interview.fff','2017-11-05 01:53:37'),
(1499,'Gabriel','Bryant','gabrielbryant@interview.fff','2017-11-03 13:14:30'),
(1500,'Jeffrey','Stephens','jeffreystephens@interview.fff','2017-11-02 05:11:48'),
(1501,'Erin','Wolf','erinwolf@interview.fff','2017-10-30 07:22:39'),
(1502,'Beth','Dodson','bethdodson@interview.fff','2017-10-30 08:16:09'),
(1503,'Sarah','Williams','sarahwilliams@interview.fff','2017-11-07 01:47:55'),
(1504,'Rebecca','Chen','rebeccachen@interview.fff','2017-11-03 17:08:22'),
(1505,'Yvette','Wells','yvettewells@interview.fff','2017-11-04 06:45:05'),
(1506,'Michelle','Garner','michellegarner@interview.fff','2017-11-06 23:32:49'),
(1507,'Curtis','Estes','curtisestes@interview.fff','2017-11-01 02:53:31'),
(1508,'Michael','Nunez','michaelnunez@interview.fff','2017-10-29 16:22:43'),
(1509,'Kristen','Zimmerman','kristenzimmerman@interview.fff','2017-10-29 03:52:57'),
(1510,'Mandy','Rowe','mandyrowe@interview.fff','2017-10-30 22:18:37'),
(1511,'Kimberly','Wright','kimberlywright@interview.fff','2017-11-01 05:30:59'),
(1512,'Toni','Delgado','tonidelgado@interview.fff','2017-11-05 13:05:54'),
(1513,'Cassandra','Price','cassandraprice@interview.fff','2017-11-05 19:36:40'),
(1514,'Lisa','Hunter','lisahunter@interview.fff','2017-11-06 20:50:27'),
(1515,'Steven','Gonzales','stevengonzales@interview.fff','2017-10-31 19:37:12'),
(1516,'Richard','Nelson','richardnelson@interview.fff','2017-11-04 20:12:38'),
(1517,'Jake','Green','jakegreen@interview.fff','2017-11-05 16:24:33'),
(1518,'Jennifer','Williams','jenniferwilliams@interview.fff','2017-10-31 06:13:33'),
(1519,'Daniel','Ross','danielross@interview.fff','2017-10-30 09:53:09'),
(1520,'Mary','Price','maryprice@interview.fff','2017-11-07 05:59:17'),
(1521,'Jamie','Jones','jamiejones@interview.fff','2017-10-31 08:45:23'),
(1522,'Hailey','Thomas','haileythomas@interview.fff','2017-11-05 06:56:19'),
(1523,'Tommy','Perry','tommyperry@interview.fff','2017-11-02 11:23:49'),
(1524,'Jose','Howard','josehoward@interview.fff','2017-11-06 00:43:14'),
(1525,'Karen','Chase','karenchase@interview.fff','2017-11-07 08:01:11'),
(1526,'Willie','Townsend','willietownsend@interview.fff','2017-10-31 06:12:00'),
(1527,'Katherine','Lopez','katherinelopez@interview.fff','2017-10-28 19:28:46'),
(1528,'Eric','Ayala','ericayala@interview.fff','2017-11-03 06:47:11'),
(1529,'Lindsey','Chan','lindseychan@interview.fff','2017-11-04 13:06:46'),
(1530,'Becky','Houston','beckyhouston@interview.fff','2017-11-05 02:16:49'),
(1531,'Lynn','Rivera','lynnrivera@interview.fff','2017-11-01 20:59:32'),
(1532,'Cameron','Foster','cameronfoster@interview.fff','2017-10-29 17:01:41'),
(1533,'Noah','Jones','noahjones@interview.fff','2017-11-04 21:24:40'),
(1534,'Veronica','Edwards','veronicaedwards@interview.fff','2017-11-03 17:00:25'),
(1535,'Calvin','Thomas','calvinthomas@interview.fff','2017-11-05 04:34:22'),
(1536,'Greg','Grant','greggrant@interview.fff','2017-11-05 15:38:25'),
(1537,'Steven','Porter','stevenporter@interview.fff','2017-10-31 13:46:26'),
(1538,'Daniel','Benitez','danielbenitez@interview.fff','2017-11-01 12:23:51'),
(1539,'Tiffany','Jones','tiffanyjones@interview.fff','2017-10-30 07:15:45'),
(1540,'Melinda','Smith','melindasmith@interview.fff','2017-10-29 16:16:34'),
(1541,'Summer','Bush','summerbush@interview.fff','2017-11-05 03:16:22'),
(1542,'Jessica','Serrano','jessicaserrano@interview.fff','2017-10-31 01:42:14'),
(1543,'Sean','Lee','seanlee@interview.fff','2017-11-05 14:28:55'),
(1544,'Ashley','Davis','ashleydavis@interview.fff','2017-11-03 00:50:37'),
(1545,'Michael','Sims','michaelsims@interview.fff','2017-11-04 08:44:52'),
(1546,'Erik','Hawkins','erikhawkins@interview.fff','2017-11-05 13:39:31'),
(1547,'Evan','Martin','evanmartin@interview.fff','2017-10-30 13:36:03'),
(1548,'Timothy','Sims','timothysims@interview.fff','2017-11-07 05:27:18'),
(1549,'Sarah','Strickland','sarahstrickland@interview.fff','2017-10-31 05:51:51'),
(1550,'Lindsey','Patterson','lindseypatterson@interview.fff','2017-11-03 03:23:05'),
(1551,'Katherine','Mckenzie','katherinemckenzie@interview.fff','2017-10-31 23:21:54'),
(1552,'Dean','Holden','deanholden@interview.fff','2017-10-31 09:23:40'),
(1553,'Tyler','Waller','tylerwaller@interview.fff','2017-11-04 08:49:28'),
(1554,'Tracy','Rodriguez','tracyrodriguez@interview.fff','2017-11-03 19:38:49'),
(1555,'Roger','Vincent','rogervincent@interview.fff','2017-10-30 01:37:42'),
(1556,'Katherine','Cox','katherinecox@interview.fff','2017-11-01 08:33:51'),
(1557,'Victoria','Jennings','victoriajennings@interview.fff','2017-11-04 02:51:38'),
(1558,'Sarah','Ortega','sarahortega@interview.fff','2017-11-05 02:02:37'),
(1559,'Adrienne','Smith','adriennesmith@interview.fff','2017-11-07 03:40:15'),
(1560,'Craig','White','craigwhite@interview.fff','2017-10-30 13:41:27'),
(1561,'Aaron','Ward','aaronward@interview.fff','2017-11-06 02:13:03'),
(1562,'Vanessa','Gay','vanessagay@interview.fff','2017-10-30 05:54:29'),
(1563,'Jennifer','Monroe','jennifermonroe@interview.fff','2017-11-05 02:54:09'),
(1564,'Lindsey','Martinez','lindseymartinez@interview.fff','2017-10-30 02:01:12'),
(1565,'Noah','Gallegos','noahgallegos@interview.fff','2017-10-29 17:51:33'),
(1566,'Chad','Mcdaniel','chadmcdaniel@interview.fff','2017-10-31 14:51:28'),
(1567,'Megan','Morris','meganmorris@interview.fff','2017-11-03 03:33:59'),
(1568,'Elizabeth','Dickerson','elizabethdickerson@interview.fff','2017-11-01 01:34:04'),
(1569,'Stephanie','Smith','stephaniesmith@interview.fff','2017-11-01 05:55:54'),
(1570,'Teresa','Reyes','teresareyes@interview.fff','2017-11-06 22:31:11'),
(1571,'Laura','Wilson','laurawilson@interview.fff','2017-11-01 14:06:42'),
(1572,'Jordan','Collins','jordancollins@interview.fff','2017-10-31 06:29:16'),
(1573,'Aaron','Schneider','aaronschneider@interview.fff','2017-10-30 14:21:20'),
(1574,'Peter','Richard','peterrichard@interview.fff','2017-10-29 17:17:53'),
(1575,'Travis','Goodwin','travisgoodwin@interview.fff','2017-11-06 03:36:34'),
(1576,'Tanner','Montes','tannermontes@interview.fff','2017-11-01 07:41:43'),
(1577,'Erin','Church','erinchurch@interview.fff','2017-11-07 14:54:17'),
(1578,'Michele','Smith','michelesmith@interview.fff','2017-11-06 21:19:56'),
(1579,'Austin','Thomas','austinthomas@interview.fff','2017-11-04 15:34:24'),
(1580,'Joshua','Goodman','joshuagoodman@interview.fff','2017-10-29 07:43:50'),
(1581,'Anna','Burton','annaburton@interview.fff','2017-11-07 11:05:14'),
(1582,'Cindy','Lee','cindylee@interview.fff','2017-11-07 04:16:35'),
(1583,'Ralph','Smith','ralphsmith@interview.fff','2017-11-01 15:46:09'),
(1584,'Kimberly','Sandoval','kimberlysandoval@interview.fff','2017-10-29 00:34:06'),
(1585,'David','Thomas','davidthomas@interview.fff','2017-11-04 13:31:07'),
(1586,'Jeffrey','Clark','jeffreyclark@interview.fff','2017-11-05 00:41:04'),
(1587,'Wesley','Ortiz','wesleyortiz@interview.fff','2017-10-29 00:51:00'),
(1588,'Lori','Clark','loriclark@interview.fff','2017-10-29 10:41:59'),
(1589,'Paul','Whitney','paulwhitney@interview.fff','2017-11-03 07:53:58'),
(1590,'Kelly','Tucker','kellytucker@interview.fff','2017-10-31 20:12:41'),
(1591,'Denise','Todd','denisetodd@interview.fff','2017-11-05 02:59:24'),
(1592,'Gavin','Wright','gavinwright@interview.fff','2017-11-06 19:42:04'),
(1593,'Keith','Lawrence','keithlawrence@interview.fff','2017-10-31 00:05:16'),
(1594,'Maria','Lambert','marialambert@interview.fff','2017-10-31 10:51:43'),
(1595,'Jill','Benjamin','jillbenjamin@interview.fff','2017-11-04 15:46:55'),
(1596,'Amber','Harvey','amberharvey@interview.fff','2017-11-02 22:42:24'),
(1597,'Kevin','Gutierrez','kevingutierrez@interview.fff','2017-10-28 23:50:22'),
(1598,'William','Gordon','williamgordon@interview.fff','2017-10-31 00:42:18'),
(1599,'Matthew','Keith','matthewkeith@interview.fff','2017-10-31 15:24:02'),
(1600,'Russell','Clark','russellclark@interview.fff','2017-11-01 20:02:24'),
(1601,'Danny','Moses','dannymoses@interview.fff','2017-11-02 03:29:30'),
(1602,'Christopher','Rhodes','christopherrhodes@interview.fff','2017-10-31 17:01:11'),
(1603,'Kimberly','Riley','kimberlyriley@interview.fff','2017-10-31 05:14:15'),
(1604,'Cassandra','Torres','cassandratorres@interview.fff','2017-10-31 23:03:54'),
(1605,'Colleen','Freeman','colleenfreeman@interview.fff','2017-10-29 06:31:40'),
(1606,'Sarah','Johnson','sarahjohnson@interview.fff','2017-11-04 19:02:55'),
(1607,'Janet','Barnes','janetbarnes@interview.fff','2017-11-02 14:37:49'),
(1608,'Heidi','Johnston','heidijohnston@interview.fff','2017-11-07 09:07:59'),
(1609,'Courtney','Jones','courtneyjones@interview.fff','2017-10-30 10:54:21'),
(1610,'Jennifer','Mills','jennifermills@interview.fff','2017-11-05 14:59:58'),
(1611,'Lorraine','Raymond','lorraineraymond@interview.fff','2017-10-30 13:41:18'),
(1612,'Brent','Hernandez','brenthernandez@interview.fff','2017-10-29 06:50:49'),
(1613,'Richard','Robinson','richardrobinson@interview.fff','2017-11-06 13:36:51'),
(1614,'Trevor','Salazar','trevorsalazar@interview.fff','2017-11-07 13:26:53'),
(1615,'Richard','Mckay','richardmckay@interview.fff','2017-11-03 12:10:50'),
(1616,'Kristina','Jackson','kristinajackson@interview.fff','2017-11-06 00:55:09'),
(1617,'Angela','Harper','angelaharper@interview.fff','2017-11-01 00:54:05'),
(1618,'Michele','Elliott','micheleelliott@interview.fff','2017-10-31 06:44:13'),
(1619,'Jeremy','Jenkins','jeremyjenkins@interview.fff','2017-10-30 15:32:54'),
(1620,'Trevor','Brown','trevorbrown@interview.fff','2017-11-02 02:16:22'),
(1621,'Andrew','Davis','andrewdavis@interview.fff','2017-11-05 14:52:46'),
(1622,'Jessica','Smith','jessicasmith@interview.fff','2017-10-31 01:57:11'),
(1623,'Christina','Shaw','christinashaw@interview.fff','2017-10-31 17:33:30'),
(1624,'Gregory','Day','gregoryday@interview.fff','2017-10-31 22:29:34'),
(1625,'Lisa','Rodriguez','lisarodriguez@interview.fff','2017-11-05 17:51:00'),
(1626,'Alejandro','Johnson','alejandrojohnson@interview.fff','2017-10-31 21:32:26'),
(1627,'Nicholas','Simon','nicholassimon@interview.fff','2017-11-04 03:55:22'),
(1628,'Daniel','Johnson','danieljohnson@interview.fff','2017-11-01 08:47:26'),
(1629,'Julie','Good','juliegood@interview.fff','2017-10-30 13:17:04'),
(1630,'Hannah','Marshall','hannahmarshall@interview.fff','2017-10-31 10:28:45'),
(1631,'Brandy','Rivas','brandyrivas@interview.fff','2017-11-07 13:29:34'),
(1632,'Teresa','Greene','teresagreene@interview.fff','2017-10-30 02:03:15'),
(1633,'Jennifer','Chambers','jenniferchambers@interview.fff','2017-10-29 20:52:55'),
(1634,'Steven','Nelson','stevennelson@interview.fff','2017-11-02 06:27:25'),
(1635,'Elizabeth','Wilson','elizabethwilson@interview.fff','2017-11-04 23:27:18'),
(1636,'Elizabeth','Smith','elizabethsmith@interview.fff','2017-10-29 11:06:01'),
(1637,'Benjamin','Simpson','benjaminsimpson@interview.fff','2017-11-05 21:57:31'),
(1638,'Robert','Kim','robertkim@interview.fff','2017-10-30 18:12:55'),
(1639,'Carla','Fields','carlafields@interview.fff','2017-11-01 14:01:06'),
(1640,'Melanie','Oliver','melanieoliver@interview.fff','2017-11-04 20:29:34'),
(1641,'Laura','Savage','laurasavage@interview.fff','2017-11-02 19:01:42'),
(1642,'Melissa','Ashley','melissaashley@interview.fff','2017-10-31 09:28:14'),
(1643,'John','Cohen','johncohen@interview.fff','2017-11-01 05:58:46'),
(1644,'Manuel','Gonzales','manuelgonzales@interview.fff','2017-10-29 06:46:31'),
(1645,'John','Leon','johnleon@interview.fff','2017-11-01 03:18:08'),
(1646,'Angela','Moore','angelamoore@interview.fff','2017-10-31 19:17:06'),
(1647,'James','Mills','jamesmills@interview.fff','2017-10-28 22:24:26'),
(1648,'Benjamin','Ortega','benjaminortega@interview.fff','2017-11-02 16:34:11'),
(1649,'Adam','Hogan','adamhogan@interview.fff','2017-10-31 16:55:06'),
(1650,'Natasha','King','natashaking@interview.fff','2017-11-05 06:48:12'),
(1651,'Rebecca','Evans','rebeccaevans@interview.fff','2017-10-31 08:56:11'),
(1652,'Tracy','Cantrell','tracycantrell@interview.fff','2017-10-29 13:38:54'),
(1653,'Joseph','Long','josephlong@interview.fff','2017-11-06 01:09:10'),
(1654,'Lisa','Rice','lisarice@interview.fff','2017-11-06 12:53:17'),
(1655,'Kristie','Avery','kristieavery@interview.fff','2017-10-30 20:37:38'),
(1656,'Tara','Gardner','taragardner@interview.fff','2017-10-29 19:50:38'),
(1657,'Barry','Barnes','barrybarnes@interview.fff','2017-11-01 19:19:54'),
(1658,'Tammy','Williams','tammywilliams@interview.fff','2017-10-31 05:22:27'),
(1659,'Alan','Wilkinson','alanwilkinson@interview.fff','2017-11-02 19:18:17'),
(1660,'Dawn','Wood','dawnwood@interview.fff','2017-10-30 05:06:14'),
(1661,'Brandon','Carter','brandoncarter@interview.fff','2017-11-03 04:40:43'),
(1662,'Caitlin','Gonzalez','caitlingonzalez@interview.fff','2017-11-04 14:39:18'),
(1663,'Christina','Clark','christinaclark@interview.fff','2017-11-07 09:15:12'),
(1664,'Patrick','Pope','patrickpope@interview.fff','2017-11-03 19:49:19'),
(1665,'Michael','Taylor','michaeltaylor@interview.fff','2017-11-05 06:28:42'),
(1666,'Joseph','Jones','josephjones@interview.fff','2017-11-06 01:36:39'),
(1667,'Anthony','Russell','anthonyrussell@interview.fff','2017-11-07 11:25:35'),
(1668,'Melissa','Olson','melissaolson@interview.fff','2017-11-07 08:10:58'),
(1669,'Christina','Castillo','christinacastillo@interview.fff','2017-11-05 14:33:22'),
(1670,'Ryan','Webb','ryanwebb@interview.fff','2017-10-31 06:30:26'),
(1671,'William','Boyle','williamboyle@interview.fff','2017-10-28 19:18:11'),
(1672,'Danielle','Peters','daniellepeters@interview.fff','2017-10-31 11:42:51'),
(1673,'Samantha','Pope','samanthapope@interview.fff','2017-11-06 00:01:38'),
(1674,'Shelby','Evans','shelbyevans@interview.fff','2017-11-06 15:55:09'),
(1675,'Emily','Adams','emilyadams@interview.fff','2017-10-31 08:09:07'),
(1676,'Amy','Guzman','amyguzman@interview.fff','2017-11-06 22:13:59'),
(1677,'Lauren','Smith','laurensmith@interview.fff','2017-11-05 16:47:53'),
(1678,'Joseph','Nguyen','josephnguyen@interview.fff','2017-11-02 14:40:21'),
(1679,'Justin','Cooke','justincooke@interview.fff','2017-11-01 02:36:50'),
(1680,'Nicholas','Martinez','nicholasmartinez@interview.fff','2017-11-02 00:35:23'),
(1681,'Jacob','Jenkins','jacobjenkins@interview.fff','2017-11-02 20:06:15'),
(1682,'Jaime','Diaz','jaimediaz@interview.fff','2017-11-07 01:13:24'),
(1683,'Elizabeth','Serrano','elizabethserrano@interview.fff','2017-11-03 14:27:51'),
(1684,'James','Klein','jamesklein@interview.fff','2017-11-07 00:14:49'),
(1685,'David','Brown','davidbrown@interview.fff','2017-11-06 21:39:20'),
(1686,'James','Choi','jameschoi@interview.fff','2017-11-05 10:11:43'),
(1687,'Martin','Cardenas','martincardenas@interview.fff','2017-11-04 00:05:56'),
(1688,'Scott','Thompson','scottthompson@interview.fff','2017-11-02 07:11:37'),
(1689,'Destiny','Smith','destinysmith@interview.fff','2017-11-04 15:06:11'),
(1690,'Eric','Flores','ericflores@interview.fff','2017-11-04 12:52:14'),
(1691,'Mark','Juarez','markjuarez@interview.fff','2017-11-01 08:27:57'),
(1692,'Michael','Kaiser','michaelkaiser@interview.fff','2017-11-05 01:04:48'),
(1693,'Joy','Bowman','joybowman@interview.fff','2017-11-07 11:05:56'),
(1694,'Katie','Jackson','katiejackson@interview.fff','2017-11-01 06:45:40'),
(1695,'Nicholas','Novak','nicholasnovak@interview.fff','2017-11-05 17:44:41'),
(1696,'Mark','Foster','markfoster@interview.fff','2017-10-29 11:00:26'),
(1697,'Michael','Brown','michaelbrown@interview.fff','2017-11-03 13:03:05'),
(1698,'Sara','Cooper','saracooper@interview.fff','2017-10-31 20:02:20'),
(1699,'Jeremy','Lane','jeremylane@interview.fff','2017-11-01 02:42:30'),
(1700,'Jacqueline','Castillo','jacquelinecastillo@interview.fff','2017-11-01 07:43:43'),
(1701,'Gary','Holt','garyholt@interview.fff','2017-11-04 03:26:31'),
(1702,'James','Mclean','jamesmclean@interview.fff','2017-11-04 18:12:05'),
(1703,'Timothy','Snyder','timothysnyder@interview.fff','2017-11-07 10:19:11'),
(1704,'Nicole','Hood','nicolehood@interview.fff','2017-10-31 08:21:36'),
(1705,'Patty','Rice','pattyrice@interview.fff','2017-10-29 12:39:50'),
(1706,'Nathan','David','nathandavid@interview.fff','2017-11-07 14:03:44'),
(1707,'Terrance','Pittman','terrancepittman@interview.fff','2017-11-02 09:00:20'),
(1708,'Michelle','Nguyen','michellenguyen@interview.fff','2017-11-04 01:16:44'),
(1709,'Steven','Fox','stevenfox@interview.fff','2017-10-29 00:51:57'),
(1710,'Tammy','Craig','tammycraig@interview.fff','2017-11-07 13:01:01'),
(1711,'James','Lee','jameslee@interview.fff','2017-11-01 07:48:58'),
(1712,'Amber','Li','amberli@interview.fff','2017-11-06 15:50:06'),
(1713,'Christina','Holland','christinaholland@interview.fff','2017-11-01 16:10:04'),
(1714,'Travis','Smith','travissmith@interview.fff','2017-11-07 16:33:08'),
(1715,'David','Williams','davidwilliams@interview.fff','2017-10-31 13:39:33'),
(1716,'Michael','Fields','michaelfields@interview.fff','2017-11-07 08:27:31'),
(1717,'Wendy','Johnson','wendyjohnson@interview.fff','2017-11-04 22:37:54'),
(1718,'Juan','Smith','juansmith@interview.fff','2017-11-02 04:43:55'),
(1719,'Christine','Lee','christinelee@interview.fff','2017-11-02 00:21:03'),
(1720,'Yvonne','Jones','yvonnejones@interview.fff','2017-10-29 06:39:44'),
(1721,'Stephanie','Mills','stephaniemills@interview.fff','2017-10-29 07:56:07'),
(1722,'David','White','davidwhite@interview.fff','2017-10-31 10:13:13'),
(1723,'Nicole','Jones','nicolejones@interview.fff','2017-11-01 09:28:14'),
(1724,'Christine','Garcia','christinegarcia@interview.fff','2017-11-02 23:39:22'),
(1725,'Daniel','Rivera','danielrivera@interview.fff','2017-10-31 15:11:58'),
(1726,'Donald','Hanson','donaldhanson@interview.fff','2017-11-03 08:35:14'),
(1727,'Patrick','Evans','patrickevans@interview.fff','2017-11-03 22:11:36'),
(1728,'Melanie','Johnson','melaniejohnson@interview.fff','2017-11-01 08:05:48'),
(1729,'Christopher','Smith','christophersmith@interview.fff','2017-11-04 00:39:30'),
(1730,'Anthony','Torres','anthonytorres@interview.fff','2017-11-07 13:28:38'),
(1731,'Janet','Daniels','janetdaniels@interview.fff','2017-10-29 04:14:01'),
(1732,'Jody','Decker','jodydecker@interview.fff','2017-11-02 15:44:38'),
(1733,'Anna','Francis','annafrancis@interview.fff','2017-10-29 12:22:16'),
(1734,'Jonathan','Morris','jonathanmorris@interview.fff','2017-11-04 18:05:03'),
(1735,'Louis','Taylor','louistaylor@interview.fff','2017-11-06 08:52:31'),
(1736,'Robert','Wright','robertwright@interview.fff','2017-10-31 01:37:03'),
(1737,'Andrea','Gonzalez','andreagonzalez@interview.fff','2017-11-03 07:10:58'),
(1738,'Nancy','Stone','nancystone@interview.fff','2017-11-06 10:15:49'),
(1739,'Matthew','Mack','matthewmack@interview.fff','2017-10-31 21:14:21'),
(1740,'Lisa','Bailey','lisabailey@interview.fff','2017-10-29 21:18:17'),
(1741,'Anne','Mcclure','annemcclure@interview.fff','2017-11-06 17:20:32'),
(1742,'Jennifer','Anderson','jenniferanderson@interview.fff','2017-11-04 14:31:06'),
(1743,'Zachary','Simmons','zacharysimmons@interview.fff','2017-11-05 09:50:07'),
(1744,'Ian','Davis','iandavis@interview.fff','2017-11-05 11:26:59'),
(1745,'Christopher','Johnson','christopherjohnson@interview.fff','2017-11-01 15:26:35'),
(1746,'Chelsea','Miller','chelseamiller@interview.fff','2017-10-30 11:30:18'),
(1747,'April','Davis','aprildavis@interview.fff','2017-11-03 04:48:04'),
(1748,'Edward','Fuentes','edwardfuentes@interview.fff','2017-10-29 20:37:38'),
(1749,'Crystal','Franco','crystalfranco@interview.fff','2017-10-29 20:52:06'),
(1750,'Ashley','Montgomery','ashleymontgomery@interview.fff','2017-10-31 07:25:25'),
(1751,'Tyler','Santiago','tylersantiago@interview.fff','2017-11-07 12:07:20'),
(1752,'Ashley','Dickerson','ashleydickerson@interview.fff','2017-10-31 20:11:42'),
(1753,'Amanda','Lopez','amandalopez@interview.fff','2017-10-29 02:59:29'),
(1754,'Alexandria','Peterson','alexandriapeterson@interview.fff','2017-11-01 03:55:43'),
(1755,'Janice','Arnold','janicearnold@interview.fff','2017-10-30 06:51:58'),
(1756,'Matthew','Thompson','matthewthompson@interview.fff','2017-10-31 03:39:46'),
(1757,'Dustin','Young','dustinyoung@interview.fff','2017-11-07 02:33:13'),
(1758,'Thomas','Jimenez','thomasjimenez@interview.fff','2017-10-28 20:50:30'),
(1759,'Matthew','Davidson','matthewdavidson@interview.fff','2017-10-30 05:36:18'),
(1760,'William','Glass','williamglass@interview.fff','2017-11-05 06:53:46'),
(1761,'Jamie','Vargas','jamievargas@interview.fff','2017-10-29 06:22:00'),
(1762,'Emma','Webb','emmawebb@interview.fff','2017-11-01 08:49:16'),
(1763,'Adam','Miller','adammiller@interview.fff','2017-10-31 08:23:23'),
(1764,'Mary','Peters','marypeters@interview.fff','2017-11-05 19:00:22'),
(1765,'Christian','Smith','christiansmith@interview.fff','2017-11-01 08:48:58'),
(1766,'Cassandra','Kelley','cassandrakelley@interview.fff','2017-10-29 08:03:05'),
(1767,'Robert','Turner','robertturner@interview.fff','2017-11-01 17:37:34'),
(1768,'Nicolas','Wade','nicolaswade@interview.fff','2017-11-03 07:10:23'),
(1769,'Alexander','Jimenez','alexanderjimenez@interview.fff','2017-11-07 07:18:10'),
(1770,'Anita','Cook','anitacook@interview.fff','2017-11-05 18:03:05'),
(1771,'Linda','Rosales','lindarosales@interview.fff','2017-11-04 06:00:46'),
(1772,'Dawn','Lee','dawnlee@interview.fff','2017-11-01 07:08:21'),
(1773,'George','Williams','georgewilliams@interview.fff','2017-11-02 03:17:11'),
(1774,'Cameron','Taylor','camerontaylor@interview.fff','2017-11-03 02:15:15'),
(1775,'Kristopher','Johnson','kristopherjohnson@interview.fff','2017-11-01 05:05:16'),
(1776,'Anthony','Bishop','anthonybishop@interview.fff','2017-11-02 14:12:20'),
(1777,'Michael','Johnson','michaeljohnson@interview.fff','2017-11-07 04:49:13'),
(1778,'Ryan','Gonzalez','ryangonzalez@interview.fff','2017-10-31 22:46:30'),
(1779,'Bryce','Davis','brycedavis@interview.fff','2017-11-03 11:35:07'),
(1780,'John','Mathis','johnmathis@interview.fff','2017-11-05 17:11:39'),
(1781,'Robert','Roy','robertroy@interview.fff','2017-10-29 18:27:24'),
(1782,'John','Jenkins','johnjenkins@interview.fff','2017-11-02 09:38:56'),
(1783,'Michelle','Russell','michellerussell@interview.fff','2017-11-05 11:43:37'),
(1784,'Desiree','Martin','desireemartin@interview.fff','2017-11-03 20:00:15'),
(1785,'Renee','Anderson','reneeanderson@interview.fff','2017-11-05 15:28:35'),
(1786,'Joseph','Alvarado','josephalvarado@interview.fff','2017-11-04 13:31:21'),
(1787,'Angela','Zimmerman','angelazimmerman@interview.fff','2017-10-28 19:29:23'),
(1788,'Mary','Ayers','maryayers@interview.fff','2017-10-28 20:56:15'),
(1789,'Barbara','Young','barbarayoung@interview.fff','2017-10-29 03:41:27'),
(1790,'Ryan','Tucker','ryantucker@interview.fff','2017-10-31 11:07:58'),
(1791,'Andrea','Newman','andreanewman@interview.fff','2017-10-31 19:32:42'),
(1792,'Jonathan','Davis','jonathandavis@interview.fff','2017-10-31 15:06:31'),
(1793,'Amy','Vazquez','amyvazquez@interview.fff','2017-11-06 19:47:09'),
(1794,'Scott','Coleman','scottcoleman@interview.fff','2017-11-02 03:59:16'),
(1795,'Sherri','Rice','sherririce@interview.fff','2017-11-01 05:57:15'),
(1796,'Laura','Walker','laurawalker@interview.fff','2017-11-02 09:06:51'),
(1797,'Amy','Thornton','amythornton@interview.fff','2017-11-06 12:14:28'),
(1798,'Richard','Powell','richardpowell@interview.fff','2017-11-01 07:50:57'),
(1799,'Heidi','White','heidiwhite@interview.fff','2017-11-05 13:30:45'),
(1800,'Joshua','Thompson','joshuathompson@interview.fff','2017-11-03 12:04:10'),
(1801,'Steven','Patton','stevenpatton@interview.fff','2017-10-30 22:12:50'),
(1802,'Adam','Kirk','adamkirk@interview.fff','2017-11-01 19:25:19'),
(1803,'Bryan','Smith','bryansmith@interview.fff','2017-11-06 09:32:05'),
(1804,'Patricia','Griffin','patriciagriffin@interview.fff','2017-11-03 12:17:26'),
(1805,'Kristen','Castillo','kristencastillo@interview.fff','2017-10-29 16:35:39'),
(1806,'Michael','Miller','michaelmiller@interview.fff','2017-10-30 15:29:03'),
(1807,'Tyrone','Gardner','tyronegardner@interview.fff','2017-11-02 00:26:37'),
(1808,'Kevin','Davis','kevindavis@interview.fff','2017-11-02 06:25:32'),
(1809,'Anthony','Ramos','anthonyramos@interview.fff','2017-10-30 12:20:45'),
(1810,'Nathan','Curry','nathancurry@interview.fff','2017-11-03 08:06:39'),
(1811,'Stephanie','Hunt','stephaniehunt@interview.fff','2017-10-29 02:20:17'),
(1812,'Jennifer','Jackson','jenniferjackson@interview.fff','2017-11-02 22:01:40'),
(1813,'Robert','Davila','robertdavila@interview.fff','2017-11-02 17:29:18'),
(1814,'Amy','Colon','amycolon@interview.fff','2017-10-31 16:44:54'),
(1815,'Aaron','House','aaronhouse@interview.fff','2017-11-06 04:21:45'),
(1816,'Wyatt','Williams','wyattwilliams@interview.fff','2017-10-30 21:21:02'),
(1817,'Bradley','Olsen','bradleyolsen@interview.fff','2017-10-31 12:41:44'),
(1818,'Crystal','Carr','crystalcarr@interview.fff','2017-10-28 23:09:10'),
(1819,'Richard','Lopez','richardlopez@interview.fff','2017-10-31 09:28:57'),
(1820,'Amy','Schwartz','amyschwartz@interview.fff','2017-10-30 01:38:06'),
(1821,'Eric','Olsen','ericolsen@interview.fff','2017-10-30 05:54:07'),
(1822,'Bridget','Miller','bridgetmiller@interview.fff','2017-11-05 05:23:05'),
(1823,'Andrew','Butler','andrewbutler@interview.fff','2017-11-06 19:27:56'),
(1824,'Samantha','Gregory','samanthagregory@interview.fff','2017-10-30 21:53:40'),
(1825,'Heather','Pierce','heatherpierce@interview.fff','2017-11-02 01:44:26'),
(1826,'John','Richardson','johnrichardson@interview.fff','2017-10-31 15:30:35'),
(1827,'Lisa','Rojas','lisarojas@interview.fff','2017-10-31 11:30:17'),
(1828,'Gary','Brown','garybrown@interview.fff','2017-10-31 06:17:38'),
(1829,'Brandon','Anderson','brandonanderson@interview.fff','2017-11-05 23:10:27'),
(1830,'Connie','Mcclure','conniemcclure@interview.fff','2017-11-06 17:25:25'),
(1831,'Edward','Butler','edwardbutler@interview.fff','2017-11-06 16:45:55'),
(1832,'Edward','Cook','edwardcook@interview.fff','2017-10-29 06:47:50'),
(1833,'Sarah','Tanner','sarahtanner@interview.fff','2017-10-29 10:34:10'),
(1834,'Holly','Johnson','hollyjohnson@interview.fff','2017-11-03 17:49:18'),
(1835,'Lindsay','Brown','lindsaybrown@interview.fff','2017-10-31 15:01:57'),
(1836,'Heather','Mccall','heathermccall@interview.fff','2017-10-29 09:13:55'),
(1837,'Morgan','Mathis','morganmathis@interview.fff','2017-10-30 21:50:51'),
(1838,'Jeffrey','Thomas','jeffreythomas@interview.fff','2017-10-29 13:45:06'),
(1839,'William','Davis','williamdavis@interview.fff','2017-11-04 19:40:21'),
(1840,'Nancy','Salinas','nancysalinas@interview.fff','2017-11-06 00:23:52'),
(1841,'Tabitha','Fisher','tabithafisher@interview.fff','2017-10-30 22:16:31'),
(1842,'Bryan','Decker','bryandecker@interview.fff','2017-11-03 14:11:44'),
(1843,'Matthew','Wang','matthewwang@interview.fff','2017-10-30 22:20:14'),
(1844,'Mark','Gordon','markgordon@interview.fff','2017-10-30 01:22:52'),
(1845,'Eric','Barton','ericbarton@interview.fff','2017-11-03 05:58:17'),
(1846,'William','Ramirez','williamramirez@interview.fff','2017-11-07 08:13:46'),
(1847,'Jessica','Martinez','jessicamartinez@interview.fff','2017-11-03 22:40:48'),
(1848,'Jeremy','Sparks','jeremysparks@interview.fff','2017-10-30 19:46:36'),
(1849,'Diane','Davis','dianedavis@interview.fff','2017-10-30 22:16:15'),
(1850,'Joseph','Wright','josephwright@interview.fff','2017-10-31 14:22:37'),
(1851,'Billy','Hall','billyhall@interview.fff','2017-11-02 21:35:08'),
(1852,'Jesse','Smith','jessesmith@interview.fff','2017-11-01 19:32:43'),
(1853,'Brian','Brooks','brianbrooks@interview.fff','2017-11-03 16:20:25'),
(1854,'Mark','Carpenter','markcarpenter@interview.fff','2017-11-03 02:55:42'),
(1855,'Edward','Bonilla','edwardbonilla@interview.fff','2017-11-02 01:00:15'),
(1856,'Tyler','Frey','tylerfrey@interview.fff','2017-10-30 06:25:35'),
(1857,'Phillip','Evans','phillipevans@interview.fff','2017-11-01 15:44:22'),
(1858,'Cathy','Little','cathylittle@interview.fff','2017-11-02 13:15:58'),
(1859,'Paul','Johnson','pauljohnson@interview.fff','2017-11-03 20:52:15'),
(1860,'Austin','Gonzalez','austingonzalez@interview.fff','2017-11-05 00:34:50'),
(1861,'Robert','Adams','robertadams@interview.fff','2017-11-06 11:24:42'),
(1862,'Diane','Copeland','dianecopeland@interview.fff','2017-11-03 07:16:17'),
(1863,'Sara','Pace','sarapace@interview.fff','2017-11-04 17:54:05'),
(1864,'Nicholas','Clayton','nicholasclayton@interview.fff','2017-11-01 23:16:40'),
(1865,'Melissa','White','melissawhite@interview.fff','2017-11-05 08:17:58'),
(1866,'Benjamin','Olson','benjaminolson@interview.fff','2017-10-30 19:10:36'),
(1867,'Patrick','Williams','patrickwilliams@interview.fff','2017-11-07 02:26:44'),
(1868,'Misty','Miranda','mistymiranda@interview.fff','2017-10-29 04:50:43'),
(1869,'Erica','Barton','ericabarton@interview.fff','2017-10-31 17:32:52'),
(1870,'Jose','Rodgers','joserodgers@interview.fff','2017-11-02 06:28:49'),
(1871,'William','Pena','williampena@interview.fff','2017-11-03 04:23:19'),
(1872,'Shannon','Davis','shannondavis@interview.fff','2017-10-31 06:32:30'),
(1873,'Lawrence','Shaw','lawrenceshaw@interview.fff','2017-11-06 10:46:27'),
(1874,'Karen','Johnston','karenjohnston@interview.fff','2017-11-07 13:54:36'),
(1875,'Michael','Parker','michaelparker@interview.fff','2017-10-31 21:23:25'),
(1876,'Kelli','Jennings','kellijennings@interview.fff','2017-11-03 19:41:02'),
(1877,'Tiffany','Olson','tiffanyolson@interview.fff','2017-11-05 14:32:04'),
(1878,'Steven','Meadows','stevenmeadows@interview.fff','2017-11-05 05:14:48'),
(1879,'James','Garza','jamesgarza@interview.fff','2017-10-29 16:50:58'),
(1880,'Diane','Alvarado','dianealvarado@interview.fff','2017-11-02 21:15:34'),
(1881,'Michelle','Diaz','michellediaz@interview.fff','2017-11-07 13:14:17'),
(1882,'Annette','Watson','annettewatson@interview.fff','2017-11-04 12:32:54'),
(1883,'Dylan','Ortiz','dylanortiz@interview.fff','2017-10-31 01:49:04'),
(1884,'James','Hamilton','jameshamilton@interview.fff','2017-11-03 07:32:38'),
(1885,'Drew','Perry','drewperry@interview.fff','2017-11-06 02:15:44'),
(1886,'Debbie','Zimmerman','debbiezimmerman@interview.fff','2017-10-29 12:04:29'),
(1887,'Becky','King','beckyking@interview.fff','2017-11-01 18:28:12'),
(1888,'Betty','Austin','bettyaustin@interview.fff','2017-10-30 01:31:08'),
(1889,'Heather','Miller','heathermiller@interview.fff','2017-11-02 03:40:01'),
(1890,'Randall','James','randalljames@interview.fff','2017-11-03 09:50:44'),
(1891,'Michael','Rojas','michaelrojas@interview.fff','2017-11-06 20:41:16'),
(1892,'Christine','Yu','christineyu@interview.fff','2017-11-02 03:50:52'),
(1893,'Jacob','Reynolds','jacobreynolds@interview.fff','2017-11-01 15:34:00'),
(1894,'Collin','Davis','collindavis@interview.fff','2017-11-05 05:08:43'),
(1895,'David','Smith','davidsmith@interview.fff','2017-11-01 03:23:13'),
(1896,'Robert','Cooley','robertcooley@interview.fff','2017-11-06 17:42:43'),
(1897,'Heather','Carpenter','heathercarpenter@interview.fff','2017-11-03 11:08:10'),
(1898,'Jonathan','Christian','jonathanchristian@interview.fff','2017-11-02 09:12:11'),
(1899,'Sherri','Beard','sherribeard@interview.fff','2017-10-28 22:09:44'),
(1900,'Jodi','Irwin','jodiirwin@interview.fff','2017-10-29 18:00:05'),
(1901,'Daniel','Rodriguez','danielrodriguez@interview.fff','2017-11-03 00:14:59'),
(1902,'Anthony','Gonzalez','anthonygonzalez@interview.fff','2017-11-05 11:25:39'),
(1903,'Melissa','Holmes','melissaholmes@interview.fff','2017-11-03 02:02:49'),
(1904,'Michael','Small','michaelsmall@interview.fff','2017-10-31 08:03:57'),
(1905,'Monica','Mcclain','monicamcclain@interview.fff','2017-11-05 06:13:50'),
(1906,'Samantha','Crawford','samanthacrawford@interview.fff','2017-11-03 20:27:52'),
(1907,'Elizabeth','Dougherty','elizabethdougherty@interview.fff','2017-11-01 12:38:10'),
(1908,'Robert','Sullivan','robertsullivan@interview.fff','2017-10-29 08:24:42'),
(1909,'Patrick','Kennedy','patrickkennedy@interview.fff','2017-11-03 16:18:20'),
(1910,'Jesse','Obrien','jesseobrien@interview.fff','2017-11-03 18:22:58'),
(1911,'Steven','Taylor','steventaylor@interview.fff','2017-10-30 13:12:34'),
(1912,'Connor','Yates','connoryates@interview.fff','2017-10-29 18:07:19'),
(1913,'Michael','Burns','michaelburns@interview.fff','2017-11-01 08:26:16'),
(1914,'Mark','Bishop','markbishop@interview.fff','2017-11-04 04:15:42'),
(1915,'Marcus','Hall','marcushall@interview.fff','2017-10-31 05:01:38'),
(1916,'Jonathan','Trevino','jonathantrevino@interview.fff','2017-10-30 10:30:30'),
(1917,'Lisa','Simon','lisasimon@interview.fff','2017-11-05 23:23:16'),
(1918,'Daniel','Ward','danielward@interview.fff','2017-11-04 06:00:06'),
(1919,'Roger','Fox','rogerfox@interview.fff','2017-11-01 14:09:42'),
(1920,'Diana','Guzman','dianaguzman@interview.fff','2017-10-29 01:46:53'),
(1921,'Brooke','Fernandez','brookefernandez@interview.fff','2017-10-29 03:42:10'),
(1922,'Jacqueline','Cook','jacquelinecook@interview.fff','2017-11-01 18:48:22'),
(1923,'James','Cuevas','jamescuevas@interview.fff','2017-11-02 17:32:34'),
(1924,'David','Lucas','davidlucas@interview.fff','2017-11-01 04:56:36'),
(1925,'Kyle','Gonzalez','kylegonzalez@interview.fff','2017-10-31 04:31:04'),
(1926,'Christina','Johnson','christinajohnson@interview.fff','2017-11-02 05:45:21'),
(1927,'Marc','Nelson','marcnelson@interview.fff','2017-10-30 07:44:34'),
(1928,'Christopher','Hubbard','christopherhubbard@interview.fff','2017-11-04 21:00:39'),
(1929,'Jerry','Newman','jerrynewman@interview.fff','2017-10-31 05:59:31'),
(1930,'Timothy','Wolfe','timothywolfe@interview.fff','2017-11-07 12:08:39'),
(1931,'Heather','Dean','heatherdean@interview.fff','2017-10-30 10:59:34'),
(1932,'Tiffany','Wood','tiffanywood@interview.fff','2017-10-30 23:46:06'),
(1933,'Michael','Rocha','michaelrocha@interview.fff','2017-11-07 13:18:00'),
(1934,'Patricia','Nelson','patricianelson@interview.fff','2017-11-01 06:10:58'),
(1935,'Wanda','Mccarthy','wandamccarthy@interview.fff','2017-10-30 17:54:15'),
(1936,'Mary','Brown','marybrown@interview.fff','2017-10-28 20:33:30'),
(1937,'Elijah','Evans','elijahevans@interview.fff','2017-11-02 12:08:38'),
(1938,'Marcia','Butler','marciabutler@interview.fff','2017-11-03 10:48:57'),
(1939,'Harold','Skinner','haroldskinner@interview.fff','2017-11-05 13:08:07'),
(1940,'Hannah','Franklin','hannahfranklin@interview.fff','2017-11-02 08:15:01'),
(1941,'Pamela','Garcia','pamelagarcia@interview.fff','2017-11-04 10:39:36'),
(1942,'Rebekah','Zamora','rebekahzamora@interview.fff','2017-10-30 11:40:47'),
(1943,'Tiffany','Zhang','tiffanyzhang@interview.fff','2017-11-03 20:19:29'),
(1944,'Christopher','Hardin','christopherhardin@interview.fff','2017-11-07 03:59:53'),
(1945,'Derek','Richardson','derekrichardson@interview.fff','2017-10-31 18:15:24'),
(1946,'Bruce','Smith','brucesmith@interview.fff','2017-11-06 19:29:49'),
(1947,'Matthew','Neal','matthewneal@interview.fff','2017-11-02 03:49:54'),
(1948,'Sharon','Mercer','sharonmercer@interview.fff','2017-10-31 04:01:59'),
(1949,'Lori','Brown','loribrown@interview.fff','2017-11-02 19:14:52'),
(1950,'Kenneth','Martinez','kennethmartinez@interview.fff','2017-11-05 00:31:38'),
(1951,'Larry','Swanson','larryswanson@interview.fff','2017-11-02 21:41:56'),
(1952,'Melinda','Norton','melindanorton@interview.fff','2017-11-05 11:30:48'),
(1953,'Mathew','Moore','mathewmoore@interview.fff','2017-11-06 23:36:14'),
(1954,'Barbara','Long','barbaralong@interview.fff','2017-10-31 21:01:56'),
(1955,'Lisa','Whitney','lisawhitney@interview.fff','2017-11-01 02:02:04'),
(1956,'Dennis','Ramirez','dennisramirez@interview.fff','2017-11-07 11:15:37'),
(1957,'Hannah','Hodges','hannahhodges@interview.fff','2017-10-29 18:57:15'),
(1958,'Rachel','Young','rachelyoung@interview.fff','2017-11-06 06:18:47'),
(1959,'Robert','Lewis','robertlewis@interview.fff','2017-11-06 15:02:50'),
(1960,'Renee','Wilson','reneewilson@interview.fff','2017-11-01 18:24:28'),
(1961,'Sheri','Jones','sherijones@interview.fff','2017-11-03 11:14:26'),
(1962,'Debra','Gomez','debragomez@interview.fff','2017-10-30 21:52:05'),
(1963,'Brandon','Valdez','brandonvaldez@interview.fff','2017-11-03 07:40:30'),
(1964,'Melissa','Trevino','melissatrevino@interview.fff','2017-11-04 02:20:22'),
(1965,'John','Campbell','johncampbell@interview.fff','2017-10-30 00:31:37'),
(1966,'Robert','Byrd','robertbyrd@interview.fff','2017-11-06 20:26:52'),
(1967,'William','Wade','williamwade@interview.fff','2017-11-05 17:01:05'),
(1968,'Kristen','Reyes','kristenreyes@interview.fff','2017-11-01 04:32:17'),
(1969,'Emily','Gaines','emilygaines@interview.fff','2017-11-04 10:46:45'),
(1970,'Natalie','Johnson','nataliejohnson@interview.fff','2017-10-31 04:59:32'),
(1971,'Matthew','George','matthewgeorge@interview.fff','2017-10-29 13:07:28'),
(1972,'Jesse','Lewis','jesselewis@interview.fff','2017-11-01 12:46:22'),
(1973,'Ariel','Brown','arielbrown@interview.fff','2017-11-05 20:50:40'),
(1974,'Gary','Lester','garylester@interview.fff','2017-11-01 21:59:06'),
(1975,'Miguel','Hall','miguelhall@interview.fff','2017-10-30 07:35:42'),
(1976,'Vanessa','Lawrence','vanessalawrence@interview.fff','2017-11-05 14:09:15'),
(1977,'Alison','Wood','alisonwood@interview.fff','2017-11-06 08:10:23'),
(1978,'Benjamin','Murray','benjaminmurray@interview.fff','2017-11-02 10:25:31'),
(1979,'Michael','Rose','michaelrose@interview.fff','2017-10-29 20:55:03'),
(1980,'Dana','Hancock','danahancock@interview.fff','2017-11-03 13:30:47'),
(1981,'Mary','Stone','marystone@interview.fff','2017-11-05 00:02:10'),
(1982,'Kim','Hughes','kimhughes@interview.fff','2017-10-29 17:06:05'),
(1983,'Sydney','Jackson','sydneyjackson@interview.fff','2017-11-01 12:15:19'),
(1984,'Andrew','Leonard','andrewleonard@interview.fff','2017-10-28 21:32:14'),
(1985,'Mario','Brown','mariobrown@interview.fff','2017-11-03 14:19:54'),
(1986,'Amy','Simpson','amysimpson@interview.fff','2017-11-03 16:38:22'),
(1987,'Christine','Peterson','christinepeterson@interview.fff','2017-10-30 06:12:03'),
(1988,'Joseph','Lee','josephlee@interview.fff','2017-11-03 06:53:15'),
(1989,'Alfred','Lee','alfredlee@interview.fff','2017-11-07 05:39:36'),
(1990,'Bradley','Mcdowell','bradleymcdowell@interview.fff','2017-11-06 20:05:47'),
(1991,'Noah','Johnson','noahjohnson@interview.fff','2017-10-30 20:37:26'),
(1992,'Thomas','Mendez','thomasmendez@interview.fff','2017-11-02 22:56:19'),
(1993,'Hailey','Johnston','haileyjohnston@interview.fff','2017-10-29 16:59:52'),
(1994,'Brian','Jimenez','brianjimenez@interview.fff','2017-10-30 12:57:43'),
(1995,'Daisy','Howard','daisyhoward@interview.fff','2017-10-30 13:34:34'),
(1996,'Brooke','Novak','brookenovak@interview.fff','2017-10-30 20:02:03'),
(1997,'Wendy','Johnston','wendyjohnston@interview.fff','2017-11-01 18:33:49'),
(1998,'Christopher','Thompson','christopherthompson@interview.fff','2017-11-07 05:50:42'),
(1999,'Valerie','Ramirez','valerieramirez@interview.fff','2017-11-04 05:16:47'),
(2000,'Sara','Harvey','saraharvey@interview.fff','2017-10-30 07:09:05'),
(2001,'Christopher','Vang','christophervang@interview.fff','2017-10-29 05:48:17'),
(2002,'Scott','Vincent','scottvincent@interview.fff','2017-11-04 20:37:19'),
(2003,'Michael','Ramirez','michaelramirez@interview.fff','2017-10-31 18:57:21'),
(2004,'Abigail','Wheeler','abigailwheeler@interview.fff','2017-10-30 17:12:33'),
(2005,'Michael','Vega','michaelvega@interview.fff','2017-11-02 23:05:38'),
(2006,'Samantha','Patel','samanthapatel@interview.fff','2017-10-28 20:06:22'),
(2007,'Amy','Lopez','amylopez@interview.fff','2017-11-06 18:58:01'),
(2008,'Holly','Thomas','hollythomas@interview.fff','2017-11-03 04:18:37'),
(2009,'John','Castro','johncastro@interview.fff','2017-11-04 01:05:57'),
(2010,'Michael','Blankenship','michaelblankenship@interview.fff','2017-10-28 17:51:36'),
(2011,'James','Taylor','jamestaylor@interview.fff','2017-11-02 03:43:33'),
(2012,'Derrick','Cox','derrickcox@interview.fff','2017-11-03 15:11:30'),
(2013,'Ryan','Harvey','ryanharvey@interview.fff','2017-11-04 13:34:08'),
(2014,'Janice','Hernandez','janicehernandez@interview.fff','2017-10-28 23:29:33'),
(2015,'Tanya','Kim','tanyakim@interview.fff','2017-11-02 21:36:56'),
(2016,'Haley','Thomas','haleythomas@interview.fff','2017-11-07 05:25:50'),
(2017,'Sandra','Russell','sandrarussell@interview.fff','2017-11-03 02:29:08'),
(2018,'Corey','Carney','coreycarney@interview.fff','2017-10-31 20:12:50'),
(2019,'Shannon','Ryan','shannonryan@interview.fff','2017-10-29 05:32:00'),
(2020,'Bruce','Chavez','brucechavez@interview.fff','2017-11-05 01:46:45'),
(2021,'Carl','Vincent','carlvincent@interview.fff','2017-10-30 15:41:27'),
(2022,'Jesse','Todd','jessetodd@interview.fff','2017-11-04 05:14:53'),
(2023,'Melissa','Oconnell','melissaoconnell@interview.fff','2017-10-30 09:06:15'),
(2024,'Joe','Gonzalez','joegonzalez@interview.fff','2017-11-05 09:20:27'),
(2025,'Jonathan','Smith','jonathansmith@interview.fff','2017-11-06 03:27:10'),
(2026,'Amanda','Fields','amandafields@interview.fff','2017-11-06 18:52:45'),
(2027,'Jessica','Jackson','jessicajackson@interview.fff','2017-11-07 03:21:27'),
(2028,'Laura','Ward','lauraward@interview.fff','2017-10-31 17:28:36'),
(2029,'Alyssa','Walker','alyssawalker@interview.fff','2017-11-02 23:52:34'),
(2030,'Matthew','Marsh','matthewmarsh@interview.fff','2017-11-06 10:37:17'),
(2031,'Stephanie','Hamilton','stephaniehamilton@interview.fff','2017-11-05 04:34:39'),
(2032,'Ashley','Evans','ashleyevans@interview.fff','2017-11-05 02:50:12'),
(2033,'Harold','Watkins','haroldwatkins@interview.fff','2017-11-03 03:52:10'),
(2034,'Gerald','Walker','geraldwalker@interview.fff','2017-11-04 19:39:16'),
(2035,'John','Allison','johnallison@interview.fff','2017-10-30 21:07:32'),
(2036,'Linda','Hunt','lindahunt@interview.fff','2017-10-31 14:27:58'),
(2037,'Aaron','Baker','aaronbaker@interview.fff','2017-11-05 18:15:51'),
(2038,'Harold','Schneider','haroldschneider@interview.fff','2017-11-07 07:51:34'),
(2039,'Laura','Hunt','laurahunt@interview.fff','2017-11-03 23:14:17'),
(2040,'Ashley','Alexander','ashleyalexander@interview.fff','2017-11-04 17:08:08'),
(2041,'Melissa','Young','melissayoung@interview.fff','2017-10-29 08:32:19'),
(2042,'Jacqueline','Deleon','jacquelinedeleon@interview.fff','2017-10-29 12:28:05'),
(2043,'Craig','Johnson','craigjohnson@interview.fff','2017-10-29 23:23:10'),
(2044,'Alexis','Douglas','alexisdouglas@interview.fff','2017-10-30 17:52:04'),
(2045,'Robin','Clark','robinclark@interview.fff','2017-11-04 22:42:14'),
(2046,'Jason','Pope','jasonpope@interview.fff','2017-11-05 14:38:02'),
(2047,'Charles','Rodriguez','charlesrodriguez@interview.fff','2017-10-29 04:15:42'),
(2048,'Roger','Smith','rogersmith@interview.fff','2017-11-04 06:28:09'),
(2049,'Emily','Nichols','emilynichols@interview.fff','2017-11-05 06:57:30'),
(2050,'Brian','Coleman','briancoleman@interview.fff','2017-11-07 08:41:46'),
(2051,'Brian','Pope','brianpope@interview.fff','2017-11-02 22:38:12'),
(2052,'Eric','Holland','ericholland@interview.fff','2017-10-29 16:21:26'),
(2053,'Jennifer','Watts','jenniferwatts@interview.fff','2017-11-01 14:58:35'),
(2054,'Brianna','Singh','briannasingh@interview.fff','2017-11-05 12:26:40'),
(2055,'Daisy','White','daisywhite@interview.fff','2017-10-29 16:43:13'),
(2056,'Anna','Reid','annareid@interview.fff','2017-10-31 04:10:54'),
(2057,'Chelsea','Chavez','chelseachavez@interview.fff','2017-11-07 12:18:31'),
(2058,'Kelly','Trevino','kellytrevino@interview.fff','2017-11-03 10:41:17'),
(2059,'Ricardo','Johnson','ricardojohnson@interview.fff','2017-11-04 07:58:39'),
(2060,'Jeffrey','Irwin','jeffreyirwin@interview.fff','2017-10-29 08:31:49'),
(2061,'Jill','Drake','jilldrake@interview.fff','2017-11-04 01:09:30'),
(2062,'Donald','Howard','donaldhoward@interview.fff','2017-11-03 11:19:22');
/*!40000 ALTER TABLE `users` ENABLE KEYS */;
UNLOCK TABLES;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_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 */;
|
insert into Marketing (mar_contact, mar_types) values ('Amalle Cristofvao', false);
insert into Marketing (mar_contact, mar_types) values ('Maison Jephcote', false);
insert into Marketing (mar_contact, mar_types) values ('Diana Temple', true);
insert into Marketing (mar_contact, mar_types) values ('Ciel Petran', true);
insert into Marketing (mar_contact, mar_types) values ('Lynde Van Geffen', true);
insert into Marketing (mar_contact, mar_types) values ('Briggs Joist', false);
insert into Marketing (mar_contact, mar_types) values ('Jone Lumb', true);
insert into Marketing (mar_contact, mar_types) values ('Carolin Petheridge', true);
insert into Marketing (mar_contact, mar_types) values ('Edwin Doogood', false);
insert into Marketing (mar_contact, mar_types) values ('Madge Twells', true); |
-- Consultas
-- Utilizar uma operação matemática:
select round(preco-(preco*0.30),2) as 'Valores 30% de Desconto' from tb_produto;
-- Utilizar a função de soma (sum):
select idCliente, sum(valor_Parcial) as 'Valor Total' from tb_compra where idCliente=1;
-- Utilizar a função de média (avg):
select idCliente, round(avg(valor_Parcial),2) as 'Média dos valores pagos em compras por Cliente' from tb_compra where idCliente=1;
-- Utilizar a função 'count':
select count(qtd_Produto) as 'Total de produtos vendidos até o momento' from tb_compra;
-- Utilizar a função 'group by':
select idCliente, sum(valor_Parcial) from tb_compra group by idCliente;
-- Utilizar 'having':
select* from tb_categoria group by idCategoria having qtd_Produto < 150;
-- Utilizar 'order by':
select* from tb_compra order by _Data;
-- Utilizar 'inner join':
select nome_Cliente as Cliente,
cpf as CPF,
nome_Prod as Produto,
qtd_Produto as Quantidade,
valor_Parcial as Valor,
Hora as 'Hora da Compra',
_Data as 'Data da Compra'
from tb_compra as tbco
inner join tb_cliente as tbcl
on tbco.idCliente = tbcl.idCliente
inner join tb_produto as tbp on tbco.idProduto = tbp.idProduto
where valor_Parcial<2550 order by Produto;
-- Utilizar 'left join':
select nome_Prod as Produto,
nome as Categoria,
preco as 'Preço do Produto' from tb_produto as tbp
left join tb_categoria as tbc on tbp.idCategoria = tbc.idCategoria
order by Produto;
-- Utilizar 'where com and':
|
-- maxext3.sql
-- find tables/indexes with only 1 or 2 extents to go before
-- hitting maxextents
-- OR
-- will be unable to allocate an extent due to space limitations
-- jkstill 08/13/2001
clear break
clear computes
clear col
btitle off
set trimspool on
set pause off verify off echo off feed on term on
col segment_owner format a10 head 'OWNER'
col segment_type format a5 head 'TYPE'
col segment_name format a30 head 'NAME'
col extent_count format 999 head 'NUM|EXT'
--col max_extents format 9,999,999,999 head 'MAX|EXT'
col max_extents format a14
col next_extent format 99,999,999,999 head 'NEXT|EXTENT|BYTES'
col tablespace_name format a15 head 'TABLESPACE|NAME'
col num_extents_available format a14 head 'NUM EXTENTS|AVAILABLE'
col max_bytes_free format 99,999,999,999 head 'MAX|BYTES|FREE'
--@@title132 'Frag/Filled Extent Report for Multiple Extents For '
@title 'Table With Impending Extent Allocation Problems' 132
set verify off pause off echo off
set pages 66 term on feed on line 132
break on segment_owner skip 1 on segment_type skip 1 on segment_name on report
--spool /tmp/maxextr.&&dbname..txt
--spool $HOME/tmp/&&dbname/maxextr.txt
select
s.owner segment_owner
, s.segment_name
, s.segment_type
, s.tablespace_name
, s.extents extent_count
, decode( sign( 100000 - s.max_extents),
-1, lpad('UNLIMITED',14),
0, lpad('UNLIMITED',14),
1, to_char(s.max_extents,'9,999,999,999')
) max_extents
, decode( sign( 100000 - ( s.max_extents - s.extents ) ),
-1, lpad('UNLIMITED',14),
0, lpad('UNLIMITED',14),
1, to_char(s.max_extents - s.extents, '9,999,999,999')
) num_extents_available
, s.next_extent
, f.max_bytes_free
from dba_segments s,
(
select t.tablespace_name, max(nvl(f.bytes,0)) max_bytes_free
from dba_free_space f, dba_tablespaces t
where t.tablespace_name = f.tablespace_name(+)
group by t.tablespace_name
) f
where s.tablespace_name = f.tablespace_name
and
(
(s.max_extents - s.extents) < 3
or
s.next_extent > f.max_bytes_free
)
and segment_type in ('TABLE','INDEX')
order by 1,2,3
/
|
-- 문제 1.
-- 최고임금(salary)과 최저임금을 “최고임금, “최저임금”프로젝션 타이틀로 함께 출력해 보세요.
-- 두 임금의 차이는 얼마인가요?
-- 함께 “최고임금 – 최저임금”이란 타이틀로 출력해 보세요.
select max(salary) as '최고임금', min(salary) as '최저임금', (max(salary)-min(salary)) as '최고임금 - 최저임금' from salaries;
-- 문제2.
-- 마지막으로 신입사원이 들어온 날은 언제 입니까? 다음 형식으로 출력해주세요.
-- 예) 2014년 07월 10일
select date_format(max(from_date), '%Y년 %c월 %d일') as '마지막 신입사원 입사날' from dept_emp;
-- 문제3.
-- 가장 오래 근속한 직원의 입사일은 언제인가요? 다음 형식으로 출력해주세요.
-- 예) 2014년 07월 10일
select min(hire_date) as '입사일' from employees;
select t1.from_date
from dept_emp t1, (
select emp_no, timestampdiff(DAY, min(from_date), if (max(to_date)='9999-01-01', curdate(), max(to_date))) as count_day
from dept_emp
group by emp_no
order by count_day desc
limit 1
) t2
where t1.emp_no=t2.emp_no;
-- 문제4.
-- 현재 이 회사의 평균 연봉은 얼마입니까?
select avg(salary) as '평균 연봉' from salaries where to_date='9999-01-01';
-- 문제5.
-- 현재 이 회사의 최고/최저 연봉은 얼마입니까?
select max(salary) as '최고 연봉', min(salary) as '최저 연봉' from salaries where to_date='9999-01-01';
-- 문제6.
-- 최고 어린 사원의 나이와 최 연장자의 나이는?
select timestampdiff(year, max(birth_date), curdate())+1 as '최연소자', timestampdiff(year, min(birth_date), curdate())+1 as '최연장자' from employees; |
Create Procedure sp_Update_AmendStkTfrIn (@StkTfrID Int,
@StkTfrIDRef Int,
@DocumentIDRef nvarchar(255))
As
Update StockTransferInAbstract Set Status = Status | 16,
DocReference = @DocumentIDRef, Reference = @StkTfrIDRef
Where DocSerial = @StkTfrID
|
-- create pokemons table
DROP TABLE IF EXISTS pokemons;
CREATE TABLE IF NOT EXISTS pokemons (
id SERIAL PRIMARY KEY,
num varchar(255),
name varchar(255),
img varchar(255),
weight varchar(255),
height varchar(255)
);
-- create users table
DROP TABLE IF EXISTS users;
CREATE TABLE IF NOT EXISTS users (
id SERIAL PRIMARY KEY,
name varchar(255),
email varchar(255),
password varchar(255)
);
|
CREATE TABLE IF NOT EXISTS config(
key text,
value text,
PRIMARY KEY (key)); |
/*
Author: James Stevenson
Filename: hw4.sql
Class: CPSC 321
*/
USE jstevenson4_DB;
-- create band(band_name, start_year)
CREATE OR REPLACE TABLE band (
band_name VARCHAR(256) NOT NULL,
start_year INT UNSIGNED,
PRIMARY KEY (band_name)
);
-- create artist(first_name, last_name, birth_year)
CREATE OR REPLACE TABLE artist (
first_name VARCHAR(256) NOT NULL,
last_name VARCHAR(256) NOT NULL,
birth_year INT UNSIGNED,
PRIMARY KEY (first_name, last_name)
);
-- create performs_with(band_name, first_name, last_name, year_joined, year_left)
CREATE OR REPLACE TABLE performs_with (
band_name VARCHAR(256) NOT NULL,
first_name VARCHAR(256) NOT NULL,
last_name VARCHAR(256) NOT NULL,
year_joined INT UNSIGNED NOT NULL,
year_left INT UNSIGNED NOT NULL,
PRIMARY KEY (band_name, first_name, last_name, year_joined),
FOREIGN KEY (band_name) REFERENCES band (band_name),
FOREIGN KEY (first_name, last_name) REFERENCES artist (first_name, last_name)
);
-- create label(label_name, label_type, founded_year)
CREATE OR REPLACE TABLE label (
label_name VARCHAR(256) NOT NULL,
label_type VARCHAR(256),
founded_year INT UNSIGNED,
PRIMARY KEY (label_name)
);
-- create album(album_name, band_name, label_name, recorded_year)
CREATE OR REPLACE TABLE album (
album_name VARCHAR(256) NOT NULL,
band_name VARCHAR(256) NOT NULL,
label_name VARCHAR(256),
recorded_year INT UNSIGNED,
PRIMARY KEY (album_name, band_name),
FOREIGN KEY (label_name) REFERENCES label (label_name)
);
-- create song(song_name, album_name, band_name)
CREATE OR REPLACE TABLE song (
song_name VARCHAR(256) NOT NULL,
album_name VARCHAR(256) NOT NULL,
band_name VARCHAR(256) NOT NULL,
PRIMARY KEY (song_name, album_name, band_name),
FOREIGN KEY (album_name) REFERENCES album (album_name),
FOREIGN KEY (band_name) REFERENCES band (band_name)
);
-- create genre(genre_name)
CREATE OR REPLACE TABLE genre (
genre_name VARCHAR(256) NOT NULL,
PRIMARY KEY (genre_name)
);
--create band_genres(band_name, genre_name)
CREATE OR REPLACE TABLE band_genres (
band_name VARCHAR(256) NOT NULL,
genre_name VARCHAR(256) NOT NULL,
PRIMARY KEY (band_name, genre_name),
FOREIGN KEY (band_name) REFERENCES band (band_name),
FOREIGN KEY (genre_name) REFERENCES genre (genre_name)
);
--create influence(influencer_band, influenced_band)
CREATE OR REPLACE TABLE influence (
influencer_band VARCHAR(256) NOT NULL,
influenced_band VARCHAR(256) NOT NULL,
PRIMARY KEY (influencer_band, influenced_band),
FOREIGN KEY (influencer_band) REFERENCES band (band_name),
FOREIGN KEY (influenced_band) REFERENCES band (band_name)
);
-- Fill tables to test edge cases
INSERT INTO band VALUES
('KISS', 1976),
('The Beatles', 1962),
('Elvis Presley', 1954),
('Example Band', 1962);
INSERT INTO artist VALUES
('Paul', 'Stanley', 1952),
('Paul', 'McCartney', 1942),
('Elvis', 'Presley', 1935),
('Elvis', 'Jones', 1970),
('Example', 'Person', 2000);
INSERT INTO performs_with VALUES
('KISS', 'Paul', 'Stanley', 1976, 2019),
('The Beatles', 'Paul', 'McCartney', 1962, 2019),
('Elvis Presley', 'Elvis', 'Presley', 1954, 1972),
('Example Band', 'Elvis', 'Jones', 1970, 2000),
('Example Band', 'Example', 'Person', 1970, 2000),
('Example Band', 'Elvis', 'Jones', 2010, 2019);
INSERT INTO label VALUES
('Label A', 'Blues', 1800),
('Label B', 'Greens', 1800),
('Label C', 'Reds', 1900);
INSERT INTO album VALUES
('KISS', 'KISS', 'Label A', 1976),
('White Album', 'The Beatles', 'Label B', 1968),
('Moody Blue', 'Elvis Presley', 'Label C', 1960),
('Example Album', 'Example Band', 'Label A', 1990),
('KISS Pt. 2', 'KISS', 'Label A', 1990);
INSERT INTO song VALUES
('All Night Long', 'KISS', 'KISS'),
('Yellow Sumarine', 'White Album', 'The Beatles'),
('Jailhouse Rock', 'Moody Blue', 'Elvis Presley'),
('examplesong1', 'Example Album', 'Example Band'),
('examplesong2', 'Example Album', 'Example Band');
INSERT INTO genre VALUES
('blues'),
('jazz'),
('rock');
INSERT INTO band_genres VALUES
('KISS', 'blues'),
('KISS', 'rock'),
('The Beatles', 'rock'),
('Elvis Presley', 'blues'),
('Example Band', 'jazz');
INSERT INTO influence VALUES
('Elvis Presley', 'KISS'),
('Example Band', 'The Beatles'),
('Elvis Presley', 'The Beatles');
-- output newly created tables
SELECT * FROM band;
SELECT * FROM artist;
SELECT * FROM performs_with;
SELECT * FROM label;
SELECT * FROM album;
SELECT * FROM song;
SELECT * FROM genre;
SELECT * FROM band_genres;
SELECT * FROM influence; |
Alter table rooms add Room_Location;
SELECT * from Rooms; |
-- phpMyAdmin SQL Dump
-- version 4.6.4
-- https://www.phpmyadmin.net/
--
-- Host: localhost
-- Generation Time: May 19, 2017 at 11:00 PM
-- Server version: 5.7.18-0ubuntu0.16.04.1
-- PHP Version: 7.0.19-1+deb.sury.org~xenial+1
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: `c_events`
--
-- --------------------------------------------------------
--
-- Table structure for table `event`
--
CREATE TABLE `event` (
`id` int(11) NOT NULL,
`name` text NOT NULL,
`date_start` datetime NOT NULL,
`time_start` int(11) NOT NULL DEFAULT '0',
`time_end` int(11) NOT NULL DEFAULT '0',
`date_end` datetime NOT NULL,
`description` text NOT NULL,
`user_id` int(11) NOT NULL,
`status` int(11) NOT NULL,
`color` varchar(8) NOT NULL,
`is_removed` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `invite`
--
CREATE TABLE `invite` (
`id` int(11) NOT NULL,
`mail` text,
`token` text
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `migration`
--
CREATE TABLE `migration` (
`version` varchar(180) NOT NULL,
`apply_time` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `migration`
--
INSERT INTO `migration` (`version`, `apply_time`) VALUES
('m000000_000000_base', 1495041293),
('m140209_132017_init', 1495041300),
('m140403_174025_create_account_table', 1495041301),
('m140504_113157_update_tables', 1495041306),
('m140504_130429_create_token_table', 1495041308),
('m140830_171933_fix_ip_field', 1495041309),
('m140830_172703_change_account_table_name', 1495041309),
('m141222_110026_update_ip_field', 1495041310),
('m141222_135246_alter_username_length', 1495041311),
('m150614_103145_update_social_account_table', 1495041314),
('m150623_212711_fix_username_notnull', 1495041314),
('m151218_234654_add_timezone_to_profile', 1495041314),
('m160929_103127_add_last_login_at_to_user_table', 1495041315);
-- --------------------------------------------------------
--
-- Table structure for table `profile`
--
CREATE TABLE `profile` (
`user_id` int(11) NOT NULL,
`name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`public_email` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`gravatar_email` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`gravatar_id` varchar(32) COLLATE utf8_unicode_ci DEFAULT NULL,
`location` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`website` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`bio` text COLLATE utf8_unicode_ci,
`timezone` varchar(40) COLLATE utf8_unicode_ci DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
--
-- Dumping data for table `profile`
--
INSERT INTO `profile` (`user_id`, `name`, `public_email`, `gravatar_email`, `gravatar_id`, `location`, `website`, `bio`, `timezone`) VALUES
(1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL),
(2, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL),
(3, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL),
(4, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
-- --------------------------------------------------------
--
-- Table structure for table `social_account`
--
CREATE TABLE `social_account` (
`id` int(11) NOT NULL,
`user_id` int(11) DEFAULT NULL,
`provider` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`client_id` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`data` text COLLATE utf8_unicode_ci,
`code` varchar(32) COLLATE utf8_unicode_ci DEFAULT NULL,
`created_at` int(11) DEFAULT NULL,
`email` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`username` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `token`
--
CREATE TABLE `token` (
`user_id` int(11) NOT NULL,
`code` varchar(32) COLLATE utf8_unicode_ci NOT NULL,
`created_at` int(11) NOT NULL,
`type` smallint(6) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
--
-- Dumping data for table `token`
--
INSERT INTO `token` (`user_id`, `code`, `created_at`, `type`) VALUES
(1, 'vuzICtST2HSSgZlq1xtG7ACfMXEZqi-C', 1495085109, 0);
-- --------------------------------------------------------
--
-- Table structure for table `user`
--
CREATE TABLE `user` (
`id` int(11) NOT NULL,
`username` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`email` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`password_hash` varchar(60) COLLATE utf8_unicode_ci NOT NULL,
`auth_key` varchar(32) COLLATE utf8_unicode_ci NOT NULL,
`confirmed_at` int(11) DEFAULT NULL,
`unconfirmed_email` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`blocked_at` int(11) DEFAULT NULL,
`registration_ip` varchar(45) COLLATE utf8_unicode_ci DEFAULT NULL,
`created_at` int(11) NOT NULL,
`updated_at` int(11) NOT NULL,
`flags` int(11) NOT NULL DEFAULT '0',
`last_login_at` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
--
-- Dumping data for table `user`
--
INSERT INTO `user` (`id`, `username`, `email`, `password_hash`, `auth_key`, `confirmed_at`, `unconfirmed_email`, `blocked_at`, `registration_ip`, `created_at`, `updated_at`, `flags`, `last_login_at`) VALUES
(1, 'admin', 'admin@mail.com', '$2y$12$KB.sz.D4IL89YCd6Dv1EPe88cDwSATY2//U6FzgXvOwxhlUSgYGJS', 'CHxYMp1bVKydIKG8xncoiFKIxL7xshv6', 1495085109, NULL, NULL, '127.0.0.1', 1495085109, 1495085109, 0, 1495206766),
-- Indexes for dumped tables
--
--
-- Indexes for table `event`
--
ALTER TABLE `event`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `invite`
--
ALTER TABLE `invite`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `migration`
--
ALTER TABLE `migration`
ADD PRIMARY KEY (`version`);
--
-- Indexes for table `profile`
--
ALTER TABLE `profile`
ADD PRIMARY KEY (`user_id`);
--
-- Indexes for table `social_account`
--
ALTER TABLE `social_account`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `account_unique` (`provider`,`client_id`),
ADD UNIQUE KEY `account_unique_code` (`code`),
ADD KEY `fk_user_account` (`user_id`);
--
-- Indexes for table `token`
--
ALTER TABLE `token`
ADD UNIQUE KEY `token_unique` (`user_id`,`code`,`type`);
--
-- Indexes for table `user`
--
ALTER TABLE `user`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `user_unique_username` (`username`),
ADD UNIQUE KEY `user_unique_email` (`email`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `event`
--
ALTER TABLE `event`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10;
--
-- AUTO_INCREMENT for table `invite`
--
ALTER TABLE `invite`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `social_account`
--
ALTER TABLE `social_account`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `user`
--
ALTER TABLE `user`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
--
-- Constraints for dumped tables
--
--
-- Constraints for table `profile`
--
--ALTER TABLE `profile`
-- ADD CONSTRAINT `fk_user_profile` FOREIGN KEY (`user_id`) REFERENCES `user` (`id`) ON DELETE CASCADE;
--
-- Constraints for table `social_account`
--
--ALTER TABLE `social_account`
-- ADD CONSTRAINT `fk_user_account` FOREIGN KEY (`user_id`) REFERENCES `user` (`id`) ON DELETE CASCADE;
--
-- Constraints for table `token`
--
--ALTER TABLE `token`
-- ADD CONSTRAINT `fk_user_token` FOREIGN KEY (`user_id`) REFERENCES `user` (`id`) ON DELETE CASCADE;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
select distinct `brand`
from `tpch`.`tiny`.`part`
where `partkey` < 15
order by 1 desc |
-- phpMyAdmin SQL Dump
-- version 4.5.5.1deb2
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Erstellungszeit: 23. Mrz 2016 um 14:42
-- Server-Version: 5.6.28-1
-- PHP-Version: 5.6.17-3
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
CREATE TABLE `weather` (
`date` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`temperature` float DEFAULT NULL,
`ambient` int(8) DEFAULT NULL,
`pressure` float DEFAULT NULL,
`humidity` float DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
-- Тенищев Семён А3400
-- *****************************************
-- Создание таблицы для 1 НФ
-- Исследую таблицу.
-- Если отсортировать по TrackId, можно легко увидеть, что треку с id 1 соответсвует 3 плей листа, но общие OrderID, CustomerId, ArtistId, AlbumId
-- треку с id 2, соответсвует как несколько плейлситов, так и два заказа.
-- Трек с заданным id всегда исполняется только одним исполнителем и только в одном альбоме.
-- Если отсортировать по CustomerId, легко видно что у однин id может соответсвовать разным OrderId
-- Хотя имеющиеся данные и не говорят о том что у одного заказчика могут быть разные адреса доставки, из-за формулировки
-- содержимого "оформления заказов на доставку музыкальных композиций на винтажных пластинках до определённого адреса"
-- считаю что, один заказчик может заказывать на разные адреса
-- Итог:
-- ArtistId и AlbumId - один ко многим
-- AlbumId и TrackId - один ко многим
-- TrackId и PlaylistId - один ко многим
-- CustomerId и OrderId - один ко многим
-- TrackId и OrderId - многие ко многим
-- Очевидно необходимо сохранить отношение многие ко многим, но TrackId связан как один ко многим с PlaylistId,
-- а значит индекс получается `TrackId`, `PlaylistId`, `OrderId`
DROP TABLE IF EXISTS firstNF_AudioTrackStore;
CREATE TABLE firstNF_AudioTrackStore (
ArtistId int NOT NULL,
ArtistName varchar(120) NOT NULL,
AlbumId int NOT NULL,
AlbumTitle varchar(120) NOT NULL,
TrackId int NOT NULL,
TrackName varchar(200) NOT NULL,
TrackLength bigint NOT NULL,
TrackGenre varchar(120) NOT NULL,
TrackPrice decimal(10,2) NOT NULL,
PlaylistId int NOT NULL,
PlaylistName varchar(120) NOT NULL,
OrderId int NOT NULL,
CustomerId int NOT NULL,
CustomerName varchar(60) NOT NULL,
CustomerEmail varchar(60) NOT NULL,
OrderDate date NOT NULL,
DeliveryAddress varchar(70) NOT NULL,
OrderTrackQuantity int NOT NULL,
PRIMARY KEY `first_NF` (`TrackId`, `PlaylistId`, `OrderId`)
);
-- Заполняем
INSERT IGNORE INTO firstNF_AudioTrackStore SELECT * FROM AudioTrackStore;
-- *****************************************
-- Создание таблиц для 2 НФ
DROP TABLE IF EXISTS secondNF_Tracks;
DROP TABLE IF EXISTS secondNF_Playlists;
DROP TABLE IF EXISTS secondNF_Keys;
DROP TABLE IF EXISTS secondNF_Orders;
DROP TABLE IF EXISTS secondNF_OrdersInfo;
-- CREATE TABLE secondNF_PlaylistsInfo ( -- т.к. информации которая зависит от этих двух параметров сразу, нет - связь выносим отдельно
-- Вот здесь не нужно было выносить в отдельную таблицу, т.к. нет никаких нарушений 2НФ(аккуратно посмотрите на определение 2НФ, понятно почему нет нарушений?)
-- Понятно, это ключевые атрибуты, в формулировке говорится о не ключевых атрибутах,
-- т.е. так и так у нас должна была остаться таблица со всеми тремя атрибутами ключа, тогда еще раз
-- |-> secondNF_Tracks (отделили альбом, исполнителя и информацию о треке)
-- |
-- firstNF_AudioTrackStore -| |-> secondNF_Orders (отделили то что завязано на OrderId)
-- | |
-- |-> temptable -| |-> secondNF_Playlists (отделили PlaylistName)
-- TrackId | |
-- PlaylistId |-> temptable2 -------| |-> secondNF_OrdersInfo (отделили OrderTrackQuantity)
-- PlaylistName TrackId | |
-- OrderId PlaylistId |-> temptable3 -------|
-- CustomerId PlaylistName TrackId |-> осталась таблица ключей
-- CustomerName OrderId PlaylistId TrackId
-- CustomerEmail OrderTrackQuantity OrderId PlaylistId
-- OrderDate OrderTrackQuantity OrderId
-- DeliveryAddress
-- OrderTrackQuantity
CREATE TABLE secondNF_Tracks ( -- вся эта информация не зависит от трек листа и номера заказа
ArtistId int NOT NULL,
ArtistName varchar(120) NOT NULL,
AlbumId int NOT NULL,
AlbumTitle varchar(120) NOT NULL,
TrackId int NOT NULL PRIMARY KEY,
TrackName varchar(200) NOT NULL,
TrackLength bigint NOT NULL,
TrackGenre varchar(120) NOT NULL,
TrackPrice decimal(10,2) NOT NULL
);
CREATE TABLE secondNF_Playlists ( -- название плейлиста не зависит от конкретного трека и заказа, а только от id
PlaylistId int NOT NULL PRIMARY KEY,
PlaylistName varchar(120) NOT NULL
);
CREATE TABLE secondNF_Keys ( -- остаток - таблица из ключей
TrackId int NOT NULL,
PlaylistId int NOT NULL,
OrderId int NOT NULL,
PRIMARY KEY `second_NF_keys` (`PlaylistId`, `TrackId`, `OrderId`)
);
CREATE TABLE secondNF_Orders ( -- вся эта информация зависит только от номера заказа, номер трека и из какого он плейлиста значения не имеет
OrderId int NOT NULL PRIMARY KEY,
CustomerId int NOT NULL,
CustomerName varchar(60) NOT NULL,
CustomerEmail varchar(60) NOT NULL,
OrderDate date NOT NULL,
DeliveryAddress varchar(70) NOT NULL
);
CREATE TABLE secondNF_OrdersInfo ( -- а вот количество треков уже зависит от заказа и трека
OrderId int NOT NULL,
TrackId int NOT NULL,
OrderTrackQuantity int NOT NULL,
PRIMARY KEY `second_NF_ord` (`TrackId`, `OrderId`)
);
-- Заполняем
INSERT IGNORE INTO secondNF_Tracks SELECT ArtistId, ArtistName, AlbumId, AlbumTitle, TrackId, TrackName, TrackLength, TrackGenre, TrackPrice FROM firstNF_AudioTrackStore;
INSERT IGNORE INTO secondNF_Playlists SELECT PlaylistId, PlaylistName FROM firstNF_AudioTrackStore;
INSERT IGNORE INTO secondNF_Keys SELECT TrackId, PlaylistId, OrderId FROM firstNF_AudioTrackStore;
INSERT IGNORE INTO secondNF_Orders SELECT OrderId, CustomerId, CustomerName, CustomerEmail, OrderDate, DeliveryAddress FROM firstNF_AudioTrackStore;
INSERT IGNORE INTO secondNF_OrdersInfo SELECT OrderId, TrackId, OrderTrackQuantity FROM firstNF_AudioTrackStore;
-- Восстановим исходную в 1НФ
DROP TABLE IF EXISTS revers_secondNF_to_firstNF;
CREATE TABLE revers_secondNF_to_firstNF (
ArtistId int NOT NULL,
ArtistName varchar(120) NOT NULL,
AlbumId int NOT NULL,
AlbumTitle varchar(120) NOT NULL,
TrackId int NOT NULL,
TrackName varchar(200) NOT NULL,
TrackLength bigint NOT NULL,
TrackGenre varchar(120) NOT NULL,
TrackPrice decimal(10,2) NOT NULL,
PlaylistId int NOT NULL,
PlaylistName varchar(120) NOT NULL,
OrderId int NOT NULL,
CustomerId int NOT NULL,
CustomerName varchar(60) NOT NULL,
CustomerEmail varchar(60) NOT NULL,
OrderDate date NOT NULL,
DeliveryAddress varchar(70) NOT NULL,
OrderTrackQuantity int NOT NULL,
PRIMARY KEY `revers_secondNF` (`TrackId`, `PlaylistId`, `OrderId`)
);
INSERT IGNORE INTO revers_secondNF_to_firstNF (
SELECT Track.ArtistId, Track.ArtistName, Track.AlbumId, Track.AlbumTitle,
Track.TrackId, Track.TrackName, Track.TrackLength, Track.TrackGenre, Track.TrackPrice,
Pl.PlaylistId, Pl.PlaylistName,
Ord.OrderId, Ord.CustomerId, Ord.CustomerName, Ord.CustomerEmail, Ord.OrderDate, Ord.DeliveryAddress,
OrdInfo.OrderTrackQuantity FROM secondNF_Keys AS K
INNER JOIN secondNF_OrdersInfo AS OrdInfo
ON K.TrackId = OrdInfo.TrackId AND K.OrderId = OrdInfo.OrderId
INNER JOIN secondNF_Orders AS Ord
ON K.OrderId = Ord.OrderId
INNER JOIN secondNF_Playlists AS Pl
ON K.PlaylistId = Pl.PlaylistId
INNER JOIN secondNF_Tracks AS Track
ON K.TrackId = Track.TrackId);
-- *****************************************
-- Создание таблиц для 3 НФ
-- Начинаем расчлениять таблички по транзитивным ФЗ
DROP TABLE IF EXISTS thirdNF_Artists;
DROP TABLE IF EXISTS thirdNF_Albums;
DROP TABLE IF EXISTS thirdNF_Tracks;
DROP TABLE IF EXISTS thirdNF_Playlists;
DROP TABLE IF EXISTS thirdNF_Keys;
DROP TABLE IF EXISTS thirdNF_Orders;
DROP TABLE IF EXISTS thirdNF_OrdersInfo;
DROP TABLE IF EXISTS thirdNF_Customers;
-- Вставлю табличку комментарием что бы было легче
-- CREATE TABLE secondNF_Tracks (
-- ArtistId int NOT NULL,
-- ArtistName varchar(120) NOT NULL,
-- AlbumId int NOT NULL,
-- AlbumTitle varchar(120) NOT NULL,
-- TrackId int NOT NULL PRIMARY KEY,
-- TrackName varchar(200) NOT NULL,
-- TrackLength bigint NOT NULL,
-- TrackGenre varchar(120) NOT NULL,
-- TrackPrice decimal(10,2) NOT NULL,
-- );
-- Из нашего исследования знаем, что трек одназначно задает свой альбом, а альбом одназначно задает испонителя.
CREATE TABLE thirdNF_Tracks ( -- очевидно что название, длина, жанр, цена зависят от только от id самого трека
TrackId int NOT NULL PRIMARY KEY,
TrackName varchar(200) NOT NULL,
TrackLength bigint NOT NULL,
TrackGenre varchar(120) NOT NULL,
TrackPrice decimal(10,2) NOT NULL,
AlbumId int NOT NULL -- определяем альбом
);
CREATE TABLE thirdNF_Albums ( -- название альбома определяется его id
AlbumId int NOT NULL PRIMARY KEY,
AlbumTitle varchar(120) NOT NULL,
ArtistId int NOT NULL -- определяем исполнителя
);
CREATE TABLE thirdNF_Artists ( -- имя исполнителя определяется его id
ArtistId int NOT NULL PRIMARY KEY,
ArtistName varchar(120) NOT NULL
);
-- Следующая таблица, тут упрощать как бы некуда
-- CREATE TABLE secondNF_Playlists (
-- PlaylistId int NOT NULL PRIMARY KEY,
-- PlaylistName varchar(120) NOT NULL
-- );
CREATE TABLE thirdNF_Playlists (
PlaylistId int NOT NULL PRIMARY KEY,
PlaylistName varchar(120) NOT NULL
);
-- CREATE TABLE secondNF_Keys (
-- TrackId int NOT NULL,
-- PlaylistId int NOT NULL,
-- OrderId int NOT NULL,
-- PRIMARY KEY `second_NF_keys` (`PlaylistId`, `TrackId`, `OrderId`)
-- );
-- Опять же в определении у нас говорилось только о "неключевых" атрибутах и их отношениях, эта таблица сохраняется
CREATE TABLE thirdNF_Keys (
TrackId int NOT NULL,
PlaylistId int NOT NULL,
OrderId int NOT NULL,
PRIMARY KEY `third_NF_keys` (`PlaylistId`, `TrackId`, `OrderId`)
);
-- CREATE TABLE secondNF_Orders (
-- OrderId int NOT NULL PRIMARY KEY,
-- CustomerId int NOT NULL,
-- CustomerName varchar(60) NOT NULL,
-- CustomerEmail varchar(60) NOT NULL,
-- OrderDate date NOT NULL,
-- DeliveryAddress varchar(70) NOT NULL
-- );
-- Можно заметить, что CustomerName, CustomerEmail зависят от CustomerId, а не от id заказа
CREATE TABLE thirdNF_Orders (
OrderId int NOT NULL PRIMARY KEY,
CustomerId int NOT NULL, -- определили заказчика
OrderDate date NOT NULL,
DeliveryAddress varchar(70) NOT NULL -- вспоминаем наложенные в начале логические условия
);
CREATE TABLE thirdNF_Customers ( -- вынесли информацию зависящую только от заказчика
CustomerId int NOT NULL PRIMARY KEY,
CustomerName varchar(60) NOT NULL,
CustomerEmail varchar(60) NOT NULL
);
-- Как есть
-- CREATE TABLE secondNF_OrdersInfo (
-- OrderId int NOT NULL,
-- TrackId int NOT NULL,
-- OrderTrackQuantity int NOT NULL,
-- PRIMARY KEY `second_NF_ord` (`TrackId`, `OrderId`)
-- );
CREATE TABLE thirdNF_OrdersInfo (
OrderId int NOT NULL,
TrackId int NOT NULL,
OrderTrackQuantity int NOT NULL,
PRIMARY KEY `third_NF_ord` (`TrackId`, `OrderId`)
);
-- Заполним
INSERT IGNORE INTO thirdNF_Artists SELECT ArtistId, ArtistName FROM secondNF_Tracks;
INSERT IGNORE INTO thirdNF_Albums SELECT AlbumId, AlbumTitle, ArtistId FROM secondNF_Tracks;
INSERT IGNORE INTO thirdNF_Tracks SELECT TrackId, TrackName, TrackLength, TrackGenre, TrackPrice, AlbumId FROM secondNF_Tracks;
INSERT INTO thirdNF_Playlists SELECT * FROM secondNF_Playlists;
INSERT INTO thirdNF_Keys SELECT * FROM secondNF_Keys;
INSERT IGNORE INTO thirdNF_Orders SELECT OrderId, CustomerId, OrderDate, DeliveryAddress FROM secondNF_Orders;
INSERT IGNORE INTO thirdNF_Customers SELECT CustomerId, CustomerName, CustomerEmail FROM secondNF_Orders;
INSERT INTO thirdNF_OrdersInfo SELECT * FROM secondNF_OrdersInfo;
-- Восстановим исходную в 1НФ
DROP TABLE IF EXISTS revers_thirdNF_to_firstNF;
CREATE TABLE revers_thirdNF_to_firstNF (
ArtistId int NOT NULL,
ArtistName varchar(120) NOT NULL,
AlbumId int NOT NULL,
AlbumTitle varchar(120) NOT NULL,
TrackId int NOT NULL,
TrackName varchar(200) NOT NULL,
TrackLength bigint NOT NULL,
TrackGenre varchar(120) NOT NULL,
TrackPrice decimal(10,2) NOT NULL,
PlaylistId int NOT NULL,
PlaylistName varchar(120) NOT NULL,
OrderId int NOT NULL,
CustomerId int NOT NULL,
CustomerName varchar(60) NOT NULL,
CustomerEmail varchar(60) NOT NULL,
OrderDate date NOT NULL,
DeliveryAddress varchar(70) NOT NULL,
OrderTrackQuantity int NOT NULL,
PRIMARY KEY `revers_thirdNF` (`TrackId`, `PlaylistId`, `OrderId`)
);
INSERT IGNORE INTO revers_thirdNF_to_firstNF (
SELECT Art.ArtistId, Art.ArtistName,
Alb.AlbumId, Alb.AlbumTitle,
Track.TrackId, Track.TrackName, Track.TrackLength, Track.TrackGenre, Track.TrackPrice,
Pl.PlaylistId, Pl.PlaylistName,
Ord.OrderId, Cust.CustomerId, Cust.CustomerName, Cust.CustomerEmail, Ord.OrderDate, Ord.DeliveryAddress,
OrdInfo.OrderTrackQuantity From thirdNF_Keys AS K
INNER JOIN thirdNF_OrdersInfo AS OrdInfo
ON K.OrderId = OrdInfo.OrderId AND K.TrackId = OrdInfo.TrackId
INNER JOIN thirdNF_Orders AS Ord
ON Ord.OrderId = K.OrderId
INNER JOIN thirdNF_Customers AS Cust
ON Cust.CustomerId = Ord.CustomerId
INNER JOIN thirdNF_Tracks AS Track
ON K.TrackId = Track.TrackId
INNER JOIN thirdNF_Albums AS Alb
ON Track.AlbumId = Alb.AlbumId
INNER JOIN thirdNF_Artists AS Art
ON Alb.ArtistId = Art.ArtistId
INNER JOIN thirdNF_Playlists AS Pl
ON K.PlaylistId = Pl.PlaylistId);
-- *****************************************
-- Создание таблиц для НФ Бойса-Кода
DROP TABLE IF EXISTS NFBK_Artists;
DROP TABLE IF EXISTS NFBK_Albums;
DROP TABLE IF EXISTS NFBK_Tracks;
DROP TABLE IF EXISTS NFBK_Playlists;
DROP TABLE IF EXISTS NFBK_Keys;
DROP TABLE IF EXISTS NFBK_Orders;
DROP TABLE IF EXISTS NFBK_OrdersInfo;
DROP TABLE IF EXISTS NFBK_CustomersName;
DROP TABLE IF EXISTS NFBK_CustomersEmail;
CREATE TABLE NFBK_Artists (
ArtistId int NOT NULL PRIMARY KEY,
ArtistName varchar(120) NOT NULL
);
CREATE TABLE NFBK_Albums (
AlbumId int NOT NULL PRIMARY KEY,
AlbumTitle varchar(120) NOT NULL,
ArtistId int NOT NULL
);
-- К счастью длина, жанр и цена трека не могут определить его название.
-- Более того у нас в базе есть песни с одинаковым названием но разной продолжительностью и стоимостью
CREATE TABLE NFBK_Tracks (
TrackId int NOT NULL PRIMARY KEY,
TrackName varchar(200) NOT NULL,
TrackLength bigint NOT NULL,
TrackGenre varchar(120) NOT NULL,
TrackPrice decimal(10,2) NOT NULL,
AlbumId int NOT NULL
);
CREATE TABLE NFBK_Playlists (
PlaylistId int NOT NULL PRIMARY KEY,
PlaylistName varchar(120) NOT NULL
);
CREATE TABLE NFBK_Keys (
TrackId int NOT NULL,
PlaylistId int NOT NULL,
OrderId int NOT NULL,
PRIMARY KEY `BK_NF_keys` (`PlaylistId`, `TrackId`, `OrderId`)
);
CREATE TABLE NFBK_Orders (
OrderId int NOT NULL PRIMARY KEY,
CustomerId int NOT NULL,
OrderDate date NOT NULL,
DeliveryAddress varchar(70) NOT NULL
);
CREATE TABLE NFBK_OrdersInfo (
OrderId int NOT NULL,
TrackId int NOT NULL,
OrderTrackQuantity int NOT NULL,
PRIMARY KEY `BK_NF_ord` (`TrackId`, `OrderId`)
);
-- Но вот похоже приходится думать, что Name <-> Email. Разобъем таблицу Customers
CREATE TABLE NFBK_CustomersName (
CustomerId int NOT NULL PRIMARY KEY,
CustomerName varchar(60) NOT NULL
);
CREATE TABLE NFBK_CustomersEmail (
CustomerId int NOT NULL PRIMARY KEY,
CustomerEmail varchar(60) NOT NULL
);
-- Заполним
INSERT INTO NFBK_Artists SELECT * FROM thirdNF_Artists;
INSERT INTO NFBK_Albums SELECT * FROM thirdNF_Albums;
INSERT INTO NFBK_Tracks SELECT * FROM thirdNF_Tracks;
INSERT INTO NFBK_Playlists SELECT * FROM thirdNF_Playlists;
INSERT INTO NFBK_Keys SELECT * FROM thirdNF_Keys;
INSERT INTO NFBK_Orders SELECT * FROM thirdNF_Orders;
INSERT INTO NFBK_OrdersInfo SELECT * FROM thirdNF_OrdersInfo;
INSERT INTO NFBK_CustomersName SELECT CustomerId, CustomerName FROM thirdNF_Customers;
INSERT INTO NFBK_CustomersEmail SELECT CustomerId, CustomerEmail FROM thirdNF_Customers;
-- Восстановим исходную в 1НФ
DROP TABLE IF EXISTS revers_NFBK_to_firstNF;
CREATE TABLE revers_NFBK_to_firstNF (
ArtistId int NOT NULL,
ArtistName varchar(120) NOT NULL,
AlbumId int NOT NULL,
AlbumTitle varchar(120) NOT NULL,
TrackId int NOT NULL,
TrackName varchar(200) NOT NULL,
TrackLength bigint NOT NULL,
TrackGenre varchar(120) NOT NULL,
TrackPrice decimal(10,2) NOT NULL,
PlaylistId int NOT NULL,
PlaylistName varchar(120) NOT NULL,
OrderId int NOT NULL,
CustomerId int NOT NULL,
CustomerName varchar(60) NOT NULL,
CustomerEmail varchar(60) NOT NULL,
OrderDate date NOT NULL,
DeliveryAddress varchar(70) NOT NULL,
OrderTrackQuantity int NOT NULL,
PRIMARY KEY `revers_NFBK` (`TrackId`, `PlaylistId`, `OrderId`)
);
INSERT IGNORE INTO revers_NFBK_to_firstNF (
SELECT Art.ArtistId, Art.ArtistName,
Alb.AlbumId, Alb.AlbumTitle,
Track.TrackId, Track.TrackName, Track.TrackLength, Track.TrackGenre, Track.TrackPrice,
Pl.PlaylistId, Pl.PlaylistName,
Ord.OrderId, CustN.CustomerId, CustN.CustomerName, CustE.CustomerEmail, Ord.OrderDate, Ord.DeliveryAddress,
OrdInfo.OrderTrackQuantity FROM NFBK_Keys AS K
INNER JOIN NFBK_OrdersInfo AS OrdInfo
ON K.OrderId = OrdInfo.OrderId AND K.TrackId = OrdInfo.TrackId
INNER JOIN NFBK_Orders AS Ord
ON Ord.OrderId = K.OrderId
INNER JOIN NFBK_CustomersName AS CustN
ON Ord.CustomerId = CustN.CustomerId
INNER JOIN NFBK_CustomersEmail AS CustE
ON Ord.CustomerId = CustE.CustomerId
INNER JOIN NFBK_Tracks AS Track
ON K.TrackId = Track.TrackId
INNER JOIN NFBK_Albums AS Alb
ON Track.AlbumId = Alb.AlbumId
INNER JOIN NFBK_Artists AS Art
ON Alb.ArtistId = Art.ArtistId
INNER JOIN NFBK_Playlists AS Pl
ON K.PlaylistId = Pl.PlaylistId);
-- *****************************************
-- Создание таблиц для 4 НФ
-- Счастье привалило, нам есть что менять!
DROP TABLE IF EXISTS fourthNF_Artists;
DROP TABLE IF EXISTS fourthNF_Albums;
DROP TABLE IF EXISTS fourthNF_Tracks;
DROP TABLE IF EXISTS fourthNF_Playlists;
DROP TABLE IF EXISTS fourthNF_PlaylistsKey;
DROP TABLE IF EXISTS fourthNF_OrdersKey;
DROP TABLE IF EXISTS fourthNF_Orders;
DROP TABLE IF EXISTS fourthNF_OrdersInfo;
DROP TABLE IF EXISTS fourthNF_CustomersName;
DROP TABLE IF EXISTS fourthNF_CustomersEmail;
CREATE TABLE fourthNF_Artists ( -- простой ключ + НФБК
ArtistId int NOT NULL PRIMARY KEY,
ArtistName varchar(120) NOT NULL
);
CREATE TABLE fourthNF_Albums ( -- простой ключ + НФБК
AlbumId int NOT NULL PRIMARY KEY,
AlbumTitle varchar(120) NOT NULL,
ArtistId int NOT NULL
);
CREATE TABLE fourthNF_Tracks ( -- простой ключ + НФБК
TrackId int NOT NULL PRIMARY KEY,
TrackName varchar(200) NOT NULL,
TrackLength bigint NOT NULL,
TrackGenre varchar(120) NOT NULL,
TrackPrice decimal(10,2) NOT NULL,
AlbumId int NOT NULL
);
CREATE TABLE fourthNF_Playlists ( -- простой ключ + НФБК
PlaylistId int NOT NULL PRIMARY KEY,
PlaylistName varchar(120) NOT NULL
);
-- CREATE TABLE NFBK_Keys (
-- TrackId int NOT NULL,
-- PlaylistId int NOT NULL,
-- OrderId int NOT NULL
-- PRIMARY KEY `BK_NF_keys` (`PlaylistId`, `TrackId`, `OrderId`)
-- );
-- Да, теперь тут есть нарушение, PlaylistId и OrderId между собой никак не связанны, так что при добавлении нового заказа
-- нам придется вставлять не одну строку а k строк, где k - количество плейлистов где этот трек есть, выполним декомпозицию
CREATE TABLE fourthNF_OrdersKey (
TrackId int NOT NULL,
OrderId int NOT NULL,
PRIMARY KEY `fourth_NF_order_keys` (`TrackId`, `OrderId`)
);
CREATE TABLE fourthNF_PlaylistsKey (
TrackId int NOT NULL,
PlaylistId int NOT NULL,
PRIMARY KEY `fourth_NF_playlist_keys` (`PlaylistId`, `TrackId`)
);
CREATE TABLE fourthNF_Orders ( -- простой ключ + НФБК
OrderId int NOT NULL PRIMARY KEY,
CustomerId int NOT NULL,
OrderDate date NOT NULL,
DeliveryAddress varchar(70) NOT NULL
);
CREATE TABLE fourthNF_OrdersInfo ( -- составной ключ, но только OrderId ->> TrackId и (OrderId, TrackId) -> OrderTrackQuantity
OrderId int NOT NULL,
TrackId int NOT NULL,
OrderTrackQuantity int NOT NULL,
PRIMARY KEY `fourth_NF_ord` (`TrackId`, `OrderId`)
);
CREATE TABLE fourthNF_CustomersName ( -- простой ключ + НФБК
CustomerId int NOT NULL PRIMARY KEY,
CustomerName varchar(60) NOT NULL
);
CREATE TABLE fourthNF_CustomersEmail ( -- простой ключ + НФБК
CustomerId int NOT NULL PRIMARY KEY,
CustomerEmail varchar(60) NOT NULL
);
-- Заполним
INSERT INTO fourthNF_Artists SELECT * FROM NFBK_Artists;
INSERT INTO fourthNF_Albums SELECT * FROM NFBK_Albums;
INSERT INTO fourthNF_Tracks SELECT * FROM NFBK_Tracks;
INSERT INTO fourthNF_Playlists SELECT * FROM NFBK_Playlists;
INSERT IGNORE INTO fourthNF_PlaylistsKey SELECT TrackId, PlaylistId FROM NFBK_Keys;
INSERT IGNORE INTO fourthNF_OrdersKey SELECT TrackId, OrderId FROM NFBK_Keys;
INSERT INTO fourthNF_Orders SELECT * FROM NFBK_Orders;
INSERT INTO fourthNF_OrdersInfo SELECT * FROM NFBK_OrdersInfo;
INSERT INTO fourthNF_CustomersName SELECT * FROM NFBK_CustomersName;
INSERT INTO fourthNF_CustomersEmail SELECT * FROM NFBK_CustomersEmail;
-- Восстановим исходную в 1НФ
DROP TABLE IF EXISTS revers_fourthNF_to_firstNF;
CREATE TABLE revers_fourthNF_to_firstNF (
ArtistId int NOT NULL,
ArtistName varchar(120) NOT NULL,
AlbumId int NOT NULL,
AlbumTitle varchar(120) NOT NULL,
TrackId int NOT NULL,
TrackName varchar(200) NOT NULL,
TrackLength bigint NOT NULL,
TrackGenre varchar(120) NOT NULL,
TrackPrice decimal(10,2) NOT NULL,
PlaylistId int NOT NULL,
PlaylistName varchar(120) NOT NULL,
OrderId int NOT NULL,
CustomerId int NOT NULL,
CustomerName varchar(60) NOT NULL,
CustomerEmail varchar(60) NOT NULL,
OrderDate date NOT NULL,
DeliveryAddress varchar(70) NOT NULL,
OrderTrackQuantity int NOT NULL,
PRIMARY KEY `revers_fourthNF` (`TrackId`, `PlaylistId`, `OrderId`)
);
INSERT IGNORE INTO revers_fourthNF_to_firstNF (
SELECT Art.ArtistId, Art.ArtistName,
Alb.AlbumId, Alb.AlbumTitle,
Track.TrackId, Track.TrackName, Track.TrackLength, Track.TrackGenre, Track.TrackPrice,
Pl.PlaylistId, Pl.PlaylistName,
Ord.OrderId, CustN.CustomerId, CustN.CustomerName, CustE.CustomerEmail,
Ord.OrderDate, Ord.DeliveryAddress,
OrdInfo.OrderTrackQuantity FROM fourthNF_OrdersKey AS OrdKeys
INNER JOIN fourthNF_PlaylistsKey AS PlKeys
ON OrdKeys.TrackId = PlKeys.TrackId
INNER JOIN fourthNF_OrdersInfo AS OrdInfo
ON OrdKeys.OrderId = OrdInfo.OrderId AND OrdKeys.TrackId = OrdInfo.TrackId
INNER JOIN fourthNF_Orders AS Ord
ON OrdKeys.OrderId = Ord.OrderId
INNER JOIN fourthNF_CustomersName AS CustN
ON Ord.CustomerId = CustN.CustomerId
INNER JOIN fourthNF_CustomersEmail AS CustE
ON Ord.CustomerId = CustE.CustomerId
INNER JOIN fourthNF_Tracks AS Track
ON OrdKeys.TrackId = Track.TrackId
INNER JOIN fourthNF_Albums AS Alb
ON Track.AlbumId = Alb.AlbumId
INNER JOIN fourthNF_Artists AS Art
ON Alb.ArtistId = Art.ArtistId
INNER JOIN fourthNF_Playlists AS Pl
ON PlKeys.PlaylistId = Pl.PlaylistId);
-- *****************************************
-- 5 НФ
-- Отсутсвуют нетривиальные зависимости соединения + теорема Дейта-Фейгина, повторяет 4НФ |
#DROP TABLE common;
#DROP TABLE emails;
#DROP TABLE telephone_numbers;
#DROP TABLE contact;
# DROP TABLE address;
# DROP TABLE contact_telephone;
/*CREATE TABLE address(
address_id INTEGER UNSIGNED NOT NULL AUTO_INCREMENT,
country VARCHAR(30) NOT NULL,
city VARCHAR(20) NOT NULL,
street VARCHAR(250) NOT NULL,
house_number INTEGER NOT NULL,
house_suffix VARCHAR(20) NOT NULL,
appartment INTEGER NOT NULL,
post_code INTEGER NOT NULL,
PRIMARY KEY (address_id)
);
CREATE TABLE contact(
user_id INTEGER UNSIGNED NOT NULL AUTO_INCREMENT,
user_firstName VARCHAR(30) NOT NULL,
user_lastName VARCHAR(20) NOT NULL,
address_id INTEGER UNSIGNED,
birthday DATE NOT NULL,
PRIMARY KEY (user_id),
FOREIGN KEY (address_id) REFERENCES address(address_id)
ON DELETE SET NULL
);
CREATE TABLE emails(
email_id INTEGER UNSIGNED NOT NULL AUTO_INCREMENT,
user_id INTEGER UNSIGNED NOT NULL,
email VARCHAR(100) NOT NULL,
PRIMARY KEY (email_id),
FOREIGN KEY (user_id) REFERENCES contact(user_id)
ON DELETE CASCADE ON UPDATE CASCADE
);
CREATE TABLE telephone_numbers(
telephone_number_id INTEGER UNSIGNED NOT NULL AUTO_INCREMENT,
tel_number VARCHAR(20) NOT NULL,
PRIMARY KEY (telephone_number_id)
);
CREATE TABLE contact_telephone(
user_id INTEGER UNSIGNED NOT NULL,
telephone_number_id INTEGER UNSIGNED NOT NULL,
PRIMARY KEY (user_id, telephone_number_id),
FOREIGN KEY (user_id) REFERENCES contact(user_id)
ON DELETE CASCADE ON UPDATE CASCADE,
FOREIGN KEY (telephone_number_id) REFERENCES telephone_numbers(telephone_number_id)
ON DELETE CASCADE ON UPDATE CASCADE
);*/
INSERT INTO address(
country, city, street, house_number,
house_suffix, appartment, post_code
) VALUES ('Country','City', 'Street', 10, 'HouseSuffix', 2, 61000);
INSERT INTO contact (
user_firstName, user_lastName, address_id, birthday
) VALUE ('Ivan', 'Ivanov', 1, '1987-02-03');
INSERT INTO contact (
user_firstName, user_lastName, address_id, birthday
) VALUE ('Irina', 'Ivanova', 1, '1992-05-08');
INSERT INTO emails (user_id, email) VALUE (1, 'email@a.a');
INSERT INTO telephone_numbers (tel_number) VALUE ('+380991234567');
INSERT INTO telephone_numbers (tel_number) VALUE ('+380557654321');
INSERT INTO contact_telephone (user_id, telephone_number_id) VALUE (1, 1);
INSERT INTO contact_telephone (user_id, telephone_number_id) VALUE (1, 2);
# # Remove from contact table user with specific id
# DELETE FROM contact WHERE user_id = 1;
#
#
# # Remove telephone from table with specific id
# DELETE FROM telephone_numbers WHERE telephone_number_id = 1;
#
#
# # Remove no one telephones
# CREATE TABLE no_one_telephone AS
# SELECT (telephone_numbers.telephone_number_id)
# FROM telephone_numbers LEFT OUTER JOIN contact_telephone
# ON telephone_numbers.telephone_number_id =
# contact_telephone.telephone_number_id
# WHERE user_id IS NULL;
#
# DELETE FROM telephone_numbers WHERE telephone_number_id IN(
# SELECT * FROM no_one_telephone
# );
#
# DROP TABLE no_one_telephone;
#
#
# # Remove from table address with specific id
# DELETE FROM address WHERE address_id = 1;
#
# # Remove no one Address
# CREATE TABLE no_one_address AS
# SELECT (address.address_id)
# FROM address LEFT OUTER JOIN contact
# ON address.address_id =
# contact.address_id
# WHERE contact.address_id IS NULL;
#
# DELETE FROM address WHERE address_id IN(
# SELECT * FROM no_one_address
# );
#
# DROP TABLE no_one_address;
|
CREATE PROCEDURE [actual].[pDel_kb_knowledge]
AS
TRUNCATE TABLE [actual].[kb_knowledge] |
--- Author: Francisco Munoz Alvarez
--- Date : 20/07/2013
--- Script: appendix_examples.sql
--- Description: All examples done on appendix A
--- Setup of environment
$ mkdir /data/pdborcl
$ mkdir /data/pdborcl/backups
$ mkdir /data/pdborcl/backups/controlfile
$ mkdir /data/pdborcl/backups/archivelogs
$ mkdir /data/orcl/fast_recovery_area
$ mkdir /data/orcl/redologs
$ chown -R oracle:oinstall /data/pdborcl
$ chown -R oracle:oinstall /data/orcl
$ sqlplus / as sysdba
SQL> ALTER SESSION SET CONTAINER=pdborcl;
SQL> CREATE TABLESPACE test DATAFILE '/data/pdborcl /test_01_tbs.dbf' SIZE 100m;
SQL> CREATE USER test IDENTIFIED BY test DEFAULT TABLESPACE test QUOTA UNLIMITED ON test;
SQL> GRANT connect, resource TO test;
SQL> CREATE TABLE TEST.EMPLOYEE
( EMP_ID NUMBER(10) NOT NULL,
EMP_NAME VARCHAR2(30),
EMP_SSN VARCHAR2(9),
EMP_DOB DATE
);
SQL> INSERT INTO test.employee VALUES (101,'Francisco Munoz',123456789,'30-JUN-73');
SQL> INSERT INTO test.employee VALUES (102,'Gonzalo Munoz',234567890,'02-OCT-96');
SQL> INSERT INTO test.employee VALUES (103,'Evelyn Aghemio',659812831,'02-OCT-79');
SQL> COMMIT;
--- Configure Database
SQL> CONNECT sys AS sysdba
SQL> SHOW PARAMETER spfile;
SQL> CREATE spfile FROM pfile;
SQL> STARTUP FORCE;
SQL> ALTER SYSTEM SET db_recovery_file_dest_size=2G;
SQL> ALTER SYSTEM SET db_recovery_file_dest ='/data/orcl/fast_recovery_area’;
SQL> ALTER SYSTEM SET log_archive_dest_1 ='LOCATION=/data/pdborcl/backups/archivelogs;
SQL> ALTER SYSTEM SET log_archive_dest_10 ='LOCATION=USE_DB_RECOVERY_FILE_DEST';
SQL> ALTER SYSTEM SET log_archive_format="orcl_%s_%t_%r.arc" SCOPE=spfile;
SQL> ALTER SYSTEM SET db_flashback_retention_target=720 SCOPE=spfile;
SQL> SHUTDOWN IMMEDIATE
SQL> STARTUP MOUNT
SQL> ALTER DATABASE ARCHIVELOG;
SQL> ALTER DATABASE FLASHBACK ON;
SQL> ALTER DATABASE OPEN;
SQL> SET LINESIZE 200
SQL> SET PAGESIZE 200
SQL> COLUMN member FORMAT a50
SQL> COLUMN bytes FORMAT 999,999,999
SQL> SELECT group#, sequence#, bytes, members FROM v$log;
SQL> SELECT group#, member FROM v$logfile;
SQL> ALTER DATABASE ADD LOGFILE GROUP 4 '/data/orcl/redologs
/redo_04a.rdo' SIZE 50m REUSE;
SQL> ALTER DATABASE ADD LOGFILE MEMBER'/data/orcl/redologs
/redo_04b.rdo' TO GROUP 4;
--- Configure RMAN
SQL> CREATE USER backup_admin IDENTIFIED BY bckpwd DEFAULT TABLESPACE users;
SQL> GRANT sysbackup TO backup_admin;
$ rman target=backup_admin/bckpwd@pdborcl
RMAN> CONFIGURE DEVICE TYPE DISK BACKUP TYPE TO COMPRESSED BACKUSET;
RMAN> CONFIGURE CHANNEL 1 DEVICE TYPE DISK FORMAL '/data/pdborcl/backups /bck_orcl_%U';
RMAN> CONFIGURE CHANNEL 1 DEVICE TYPE DISK MAXPIECESIZE 200m MAXOPENFILES 8 RATE 150m;
RMAN> CONFIGURE BACKUP OPTIMIZATION ON;
RMAN> CONFIGURE CONTROLFILE AUTOBACKUP ON;
RMAN> CONFIGURE CONROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '/data/pdborcl/backups/controlfile/ctl_orcl_%F';
RMAN> CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 1 DAYS;
RMAN> CONFIGURE ARCHIVELOG DELETION POLICY TO BACKED UP 1 TIMES TO DISK;
--- Backup Database
RMAN> BACKUP DATABASE PLUS ARCHIVELOG;
--- Check for Obsolete
RMAN> REPORT OBSOLETE;
RMAN> DELETE OBSOLETE;
--- Creating RMAN user
SQL> CREATE TABLESPACE catalog_tbs DATAFILE '/data/pdborcl /catalog_01_tbs.dbf' SIZE 100m;
SQL> CREATE USER catalog_bck IDENTIFIED BY rmancatalog DEFAULT TABLESPACE catalog_tbs QUOTA UNLIMITED ON catalog_tbs;
SQL> GRANT connect, resource, recovery_catalog_owner TO catalog_bck;
--- Creating Catalog
$ rman target / catalog=catalog_bck/rmancatalog@pdborcl
RMAN> CREATE CATALOG tablespace catalog_tbs;
$ rman target=backup_admin/bckpwd catalog=catalog_bck/rmancatalog@pdborcl
RMAN> REGISTER DATABASE;
RMAN> REPORT SCHEMA;
--- Create a virtual Private Catalog
SQL> CREATE USER fmunoz IDENTIFIED BY alvarez DEFAULT TABLESPACE catalog_tbs;
SQL> GRANT recovery_catalog_owner TO fmunoz;
$ rman catalog=catalog_bck/rmancatalog@pdborcl
RMAN> GRANT CATALOG FOR DATABASE pdborcl TO fmunoz;
RMAN> GRANT REGISTER DATABASE TO fmunoz;
rman catalog=fmunoz/alvarez@pdborcl
RMAN> CREATE VIRTUAL CATALOG;
--- Enabling Block TRacking
SQL> ALTER DATABASE ENABLE BLOCK CHANGE TRACKING;
SQL> SELECT status FROM v$block_change_tracking;
--- Monitoring a Backup
RMAN> BACKUP DATABASE PLUS ARCHIVELOG;
SQL> SELECT sid, serial#, context, sofar, totalwork, round(sofar/totalwork*100,2) "%_COMPLETE"
FROM v$session_longops
WHERE opname like 'RMAN%'
AND opname not like '%aggregate%'
AND totalwork !=0
AND sofar <> totalwork
/
--- Incremental Backups
RMAN> BACKUP INCREMENTALLEVEL=0 DATABASE PLUS ARCHIVELOG DELETE INPUT;
RMAN> BACKUP INCREMENTALLEVEL=1 DATABASE PLUS ARCHIVELOG DELETE INPUT;
RMAN> BACKUP INCREMENTALLEVEL=0 CUMULATIVE DATABASE PLUS ARCHIVELOG DELETE INPUT;
--- Multisection Backups
RMAN> BACKUP SECTION SIZE 10M TABLESPACE users;
--- FRA -Checking times of redo switches
SQL> ALTER SESSION SET nls_date_format='dd/mm/yyyy hh24:mi:ss';
SQL> SELECT sequence#, first_time log_started,
lead(first_time, 1,null) over (order by first_time) log_ended
FROM (SELECT DISTINCT sequence#, first_time
FROM dba_hist_log
WHERE archived='YES'
AND sequence#!=0
ORDER BY first_time)
ORDER BY sequence#;
--- Check for alerts
SQL> SELECT reason FROM dba_outstanding_alerts;
--- Check FRA usage
SQL> SELECT * FROM v$recovery_file_dest;
SQL> ALTER SYSTEM SWITCH LOGFILE;
SQL> SELECT * FROM v$recovery_file_dest;
SQL> SELECT * FROM v$flash_recovery_area_usage;
--- See Archivelog Generated
SQL> SET PAGESIZE 200
SQL> SET LINESIZE 200
SQL> COLUMN name FORMAT a50
SQL> COLUMN completion_time FORMAT a25
SQL> ALTER SESSION SET nls_date_format= 'DD-MON-YYYY:HH24:MI:SS';
SQL> SELECT name, sequence#, status, completion_time
FROM CATALOG_BCK.rc_archived_log;
--- See Control file backups
SQL> SET PAGESIZE 200
SQL> SET LINESIZE 200
SQL> SELECT file#, creation_time, resetlogs_time
blocks, block_size, controlfile_type
FROM v$backup_datafile where file#=0;
SQL> COLUMN completion_time FORMAT a25
SQL> COLUMN autobackup_date FORMAT a25
SQL> ALTER SESSION SET nls_date_format= 'DD-MON-YYYY:HH24:MI:SS';
SQL> SELECT db_name, status, completion_time, controlfile_type,
autobackup_date
FROM CATALOG_BCK.rc_backup_controlfile;
SQL> SELECT creation_time, block_size, status,completion_time,autobackup_date, autobackup_sequence
FROM CATALOG_BCK.rc_backup_controlfile;
--- See list of corruption
SQL> SELECT db_name, piece#, file#, block#, blocks, corruption_type
FROM CATALOG_BCK.rc_backup_corruption where db_name='ORCL';
--- See Block Corruption
SQL> SELECT file#, block#, corruption_type
FROM v$database_block_corruption;
--- See all RMAN Configuration sets
SQL> COLUMN value FORMAT a60
SQL> SELECT db_key,name, value
FROM CATALOG_BCK.rc_rman_configuration;
--- Monitore Backup outputs (RMAN)
SQL> SELECT output FROM v$rman_output ORDER BY stamp;
--- Offline Backups with RMAN
$ rman target / catalog=catalog_bck/rmancatalog@pdborcl
RMAN> SHUTDOWN IMMEDIATE
RMAN> STARTUP MOUNT
RMAN> BACKUP AS COMPRESSED BACKUPSET DATABASE;
RMAN> ALTER DATABASE OPEN;
--- Using Backups limit
RMAN> BACKUP DURATION 00:05 DATABASE;
RMAN> BACKUP DURATION 00:05 MINIMIZE TIME DATABASE;
RMAN> BACKUP DURATION 00:05 MINIMIZE LOAD DATABASE;
--- Modify Retention Policy
RMAN> BACKUP DATABASE KEEP FOREVER;
RMAN> BACKUP DATABASE FORMAT '/DB/u02/backups/other/bck1/orcl_%U' KEEP untiltime='sysdate+180' TAG keep_backup;
--- Archive Deletion Policy
RMAN> CONFIGURE ARCHIVELOG DELETION POLICY TO BACKED UP 2 TIMES TO DEVICE TYPE DISK;
--- using RMAN to scan the db for physical and logical errors
RMAN> BACKUP VALIDATE CHECK LOGICAL DATABASE;
--- Configuring Tablespace for Exclusion
RMAN> CONFIGURE EXCLUDE FOR TABLESPACE example;
RMAN> BACKUP DATABASE;
# backs up the whole database, including example
RMAN> BACKUP DATABASE NOEXCLUDE;
RMAN> BACKUP TABLESPACE example; # backs up only example
RMAN> CONFIGURE EXCLUDE FOR TABLESPACE example CLEAR;
--- Skiping offline, inaccesible or read only datafiles
RMAN> BACKUP DATABASE SKIP READONLY;
RMAN> BACKUP DATABASE SKIP OFFLINE;
RMAN> BACKUP DATABASE SKIP INACCESSIBLE;
RMAN> BACKUP DATABASE SKIP READONLY SKIP OFFLINE SKIP INACCESSIBLE;
--- Forcing Backup of read only datafiles
RMAN> BACKUP DATABASE FORCE;
--- Backup of newly added datafiles
RMAN> BACKUP DATABASE NOT BACKED UP;
--- Backup files not backed up in a specific period
RMAN> BACKUP DATABASE NOT BACKED UP SINCE time='sysdate-2';
RMAN> BACKUP ARCIVELOG ALL NOT BACKED UP 1 TIMES;
RMAN> BACKUP AS COMPRESSED BACKUPSET DATABASE PLUS ARCHIVELOG NOT BACKED UP 1 TIMES DELETE INPUT;
--- General Backup Examples
RMAN> BACKUP TABLESPACE USERS INCLUDE CURRENT CONTROLFILE PLUS ARCHIVELOG;
RMAN> BACKUP DATAFILE 2;
RMAN> BACKUP ARCHIVELOG ALL;
RMAN> BACKUP ARCHIVELOG FROM TIME 'sysdate-1';
RMAN> BACKUP ARCHIVELOG FROM SEQUENCE xxx;
RMAN> BACKUP ARCHIVELOG ALL DELETE INPUT;
RMAN> BACKUP ARCHIVELOG FROM SEQUENCE xxx DELETE INPUT;
RMAN> BACKUP ARCHIVELOG NOT BACKED UP 3 TIMES;
RMAN> BACKUP ARCHIVELOG UNTIL TIME 'sysdate - 2' DELETE ALL INPUT;
--- Backup Copies
RMAN> BACKUP AS COPY DATABASE;
RMAN> BACKUP AS COPY TABLESPACE USERS;
RMAN> BACKUP AS COPY DATAFILE 1;
RMAN> BACKUP AS COPY ARCHIVELOG ALL;
--- Information about full completed backups
SQL> ALTER SESSION SET nls_date_format= 'DD-MON-YYYY:HH24:MI:SS';
SQL> SELECT /*+ RULE */ session_key, session_recid,
start_time, end_time, output_bytes, elapsed_seconds, optimized
FROM v$rman_backup_job_details
WHERE start_time >= sysdate-180
AND status='COMPLETED'
AND input_type='DB FULL';
--- Summary of the active session history
SQL> SELECT sid, serial#, program
FROM v$session
WHERE lower(program) like '%rman%';
SQL> SET LINES 132
SQL> COLUMN session_id FORMAT 999 HEADING ”SESS|ID”
SQL> COLUMN session_serial# FORMAT 9999 HEADING ”SESS|SER|#”
SQL> COLUMN event FORMAT a40
SQL> COLUMN total_waits FORMAT 9,999,999,999 HEADING ”TOTAL|TIME|WAITED|MICRO”
SQL> SELECT session_id, session_serial#, Event, sum(time_waited) total_waits
FROM v$active_session_history
WHERE session_id||session_serial# in (403, 476, 4831)
AND sample_time > sysdate -1
AND program like '%rman%'
AND session_state='WAITING' And time_waited > 0
GROUP BY session_id, session_serial#, Event
ORDER BY session_id, session_serial#, total_waits desc;
--- How long a backup will takes?
RMAN> BACKUP DATABASE PLUS ARCHIVELOG;
$ sqlplus / as sysdba
SQL> ALTER SESSION SET CONTAINER=pdborcl;
SQL> SELECT sid, serial#, program
FROM v$session
WHERE lower(program) like '%rman%';
SQL> SELECT sid, serial#, opname, time_remaining
FROM v$session_longops
WHERE sid||serial# in (<XXX>, <XXX>, <XXX>)
AND time_remaining > 0;
--- V$BACKUP_ASYNC_IO
SQL> SELECT sid, serial#, program
FROM v$session
WHERE lower(program) like '%rman%';
SQL> COLUMN filename FORMAT a60
SQL> SELECT sid, serial, effective_bytes_per_second, filename
FROM V$BACKUP_ASYNC_IO
WHERE sid||serial in (<XXX>, <XXX>, <XXX>);
SQL> SELECT LONG_WAITS/IO_COUNT, FILENAME
FROM V$BACKUP_ASYNC_IO
WHERE LONG_WAITS/IO_COUNT > 0
AND sid||serial in (<XXX>, <XXX>, <XXX>)
ORDER BY LONG_WAITS/IO_COUNT DESC;
--- Tablespace Point in time Recovery
SQL> EXECUTE DBMS_TTS.TRANSPORT_SET_CHECK(‘test’, TRUE);
SQL> SELECT * FROM transport_set_violations
SQL> SELECT OWNER, NAME, TABLESPACE_NAME,
TO_CHAR(CREATION_TIME, 'YYYY-MM-DD:HH24:MI:SS')
FROM TS_PITR_OBJECTS_TO_BE_DROPPED
WHERE TABLESPACE_NAME IN ('TEST') AND CREATION_TIME >
TO_DATE('07-OCT-08:22:35:30','YY-MON-DD:HH24:MI:SS')
ORDER BY TABLESPACE_NAME, CREATION_TIME;
RMAN>RECOVER TABLESPACE pdborcl:test UNTIL SCN <XXXX> AUXILIARY DESTINATION ‘/tmp’;
--- Reporting from Catalog
SQL> SELECT a.db_key, a.dbid, a.name db_name,
b.backup_type, b.incremental_level,
b.completion_time, max(b.completion_time)
over (partition by a.name, a.dbid) max_completion_time
FROM catalog_bck.rc_database a, catalog_bck.rc_backup_set b
WHERE b.status = 'A'
AND b.backup_type = 'D'
AND b.db_key = a.db_key;
--- Duplex Backup
RMAN> CONFIGURE DATAFILE BACKUPCOPIES FOR DEVICE TYPE DISK TO 2;
RMAN> CONFIGURE ARCHIVELOG BACKUp COPIES FOR DEVICE TYPE DISK TO 2;
RMAN> BACKUP DATAFILE 1 FORMAT '/DB/u02/backups/bck_orcl_%U','/Data/backup/bck_orcl_%U' PLUS ARCHIVELOG;
--- Check if db is recoverable
RMAN> RESTORE DATABASE PREVIEW;
--- Recovery Advisor
SQL> CREATE TABLESPACE test3_tbs DATAFILE '/data/pdborcl /test3_01.dbf' SIZE 100m;
SQL> CREATE USER test3 IDENTIFIED BY test3 DEFAULT TABLESPACE test3_tbs QUOTA UNLIMITED ON test3_tbs;
SQL> GRANT CONNECT, RESOURCE to test3;
SQL> CREATE TABLE test3.EMPLOYEE
( EMP_ID NUMBER(10) NOT NULL,
EMP_NAME VARCHAR2(30),
EMP_SSN VARCHAR2(9),
EMP_DOB DATE
);
SQL> INSERT INTO test.employee VALUES (101,'Francisco Munoz',123456789,'30-JUN-73');
SQL> INSERT INTO test.employee VALUES (102,'Gonzalo Munoz',234567890,'02-OCT-96');
SQL> INSERT INTO test.employee VALUES (103,'Evelyn Aghemio',659812831,'02-OCT-79');
SQL> COMMIT;
$ Cd /data/pdborcl
$ echo > test3_01_dbf.dbf
$ ls -lrt
RMAN> VALIDATE DATABASE;
RMAN> LIST FAILURE;
RMAN> ADVISE FAILURE;
RMAN> REPAIR FAILURE PREVIEW;
RMAN> REPAIR FAILURE;
--- Preparing Data Pump
$ sqlplus / as sysdba
SQL> ALTER SESSION SET CONTAINER=pdborcl;
SQL> CREATE USER fcomunoz IDENTIFIED BY alvarez DEFAULT TABLESPACE users QUOTA UNLIMITED ON users;
SQL> GRANT CREATE SESSION, RESOURCE, DATAPUMP_EXP_FULL_DATABASE, DATAPUMP_IMP_FULL_DATABASE TO fcomunoz;
SQL> CREATE DIRECTORY datapump AS '/data/pdborcl/backups;
SQL> GRANT READ, WRITE ON DIRECTORY datapump to fcomunoz;
--- Data Masking
SQL> CREATE TABLE fcomunoz.EMPLOYEE
( EMP_ID NUMBER(10) NOT NULL,
EMP_NAME VARCHAR2(30),
EMP_SSN VARCHAR2(9),
EMP_DOB DATE
)
/
SQL> INSERT INTO fcomunoz.employee VALUES (101,'Francisco Munoz',123456789,'30-JUN-73');
SQL> INSERT INTO fcomunoz.employee VALUES (102,'Gonzalo Munoz',234567890,'02-OCT-96');
SQL> INSERT INTO fcomunoz.employee VALUES (103,'Evelyn Aghemio',659812831,'02-OCT-79');
SQL> COMMIT;
SQL> CREATE OR REPLACE PACKAGE fcomunoz.pkg_masking
as
FUNCTION mask_ssn (p_in VARCHAR2) RETURN VARCHAR2;
END;
/
SQL> CREATE OR REPLACE PACKAGE BODY fcomunoz.pkg_masking
AS
FUNCTION mask_ssn (p_in varchar2)
RETURN VARCHAR2
IS
BEGIN
RETURN LPAD (
ROUND(DBMS_RANDOM.VALUE (001000000,999999999)),9,0);
END;
END;
/
SQL> SELECT * FOM fcomunoz.employees;
$expdp fcomunoz/alvarez@pdborcl tables=fcomunoz.employee dumpfile=mask_ssn.dmp directory=datapump remap_data=fcomunoz.employee.emp_ssn:pkg_masking.mask_ssn
$ impdp fcomunoz/alvarez@pdborcl table_exists_action=truncate directory=datapump dumpfile=mask_ssn.dmp
SQL> SELECT * FROM fcomunoz.employees;
--- Metadata Repository
$ expdp fcomunoz/alvarez@pdborcl content=metadata_only full=y directory=datapump dumpfile=metadata_06192013.dmp
$ impdp fcomunoz/alvarez@pdborcl directory=datapump dumpfile= metadata_06192013.dmp sqlfile=metadata_06192013.sql
$ expdp fcomunoz/alvarez@pdborcl content=metadata_only tables=fcomunoz.employee directory=datapump dumpfile= refresh_of_table_employee_06192013.dmp
$ impdp fcomunoz/alvarez@pdborcl table_exists_action=replace directory=datapump dumpfile= refresh_of_table_name_06192013.dmp
--- Cloning a User
$ expdp fcomunoz/alvarez@pdborcl schemas=fcomunoz content=metadata_only directory=datapump dumpfile= fcomunoz_06192013.dmp
SQL> CREATE USER fcomunoz2 IDENTIFIED BY alvarez DEFAULT TABLESPACE users QUOTA UNLIMITED ON users;
SQL> GRANT connect,resource TO fcomunoz2;
$ impdp fcomunoz/alvarez@pdborcl remap_schema=fcomunoz:fcomunoz2 directory=datapump dumpfile= fcomunoz_06192013.dmp
--- Smaller Copy of Production
$ expdp fcomunoz/alvarez@pdborcl content=metadata_only tables=fcomunoz.employee directory=datapump dumpfile=example_206192013.dmp
$ impdp fcomunoz/alvarez@pdborcl content=metadata_only directory=datapump dumpfile=example_206192013.dmp sqlfile=employee_06192013.sql
$ cat /data/pdborcl/backups/employee_06192013.sql
$ impdp fcomunoz/alvarez@pdborcl transform=pctspace:70 content=metadata_only directory=datapump dumpfile= example_206192013.dmp sqlfile=transform_06192013.sql
$ cat /data/pdborcl/backups/transform_06192013.sql
$ expdp fcomunoz/alvarez@pdborcl sample=70 full=y directory=datapump dumpfile=expdp_70_06192013.dmp
$ impdp fcomunoz/alvarez@pdborcl2 transform=pctspace:70 directory=datapump dumpfile=expdp_70_06192013.dmp
--- Create databse in different structure
$ expdp fcomunoz/alvarez@pdborcl full=y directory=datapump dumpfile=expdp_full_06192013.dmp
$ impdp fcomunoz/alvarez@pdborcl directory=datapump dumpfile= expdp_full_06192013.dmp remap_datafile=’/u01/app/oracle/oradata/pdborcl/datafile_01.dbf’:’/u01/app/oracle/oradata/pdborcl2/datafile_01.dbf’
--- Flashback Time Based (Data Pump)
SQL> conn / as sysdba
SQL> SELECT dbms_flashback.get_system_change_number
FROM dual;
SQL> SELECT SCN_TO_TIMESTAMP(dbms_flashback.get_system_change_number)
FROM dual;
SQL> exit
$ expdp fcomunoz/alvarez@pdborcl directory=datapump tables=fcomunoz.employee dumpfile=employee_flashback_06192013.dmp
flashback_time="to_timestamp('19-06-2013 14:30:00', 'dd-mm-yyyy hh24:mi:ss')"
--- ASM Backup and Restore
RMAN> BACKUP TABLESPACE users;
ASMCMD> mkdir +DATA1/abc
ASMCMD> mkalias TBSJFV.354.323232323 +DATA1/abc/users.f
ASMCMD> md_backup –g data1
SQL> ALTER DISKGROUP data1 DISMOUNT FORCE;
SQL> DROP DISKGROUP data1 FORCE INCLUDING CONTENTS;
ASMCMD> md_restore –b ambr_backup_intermediate_file –t full –g data
RMAN> RESTORE TABLESPACE users;
--- Recovery from loss of tablespace SYSTEM
$ rman target /
RMAN> STARTUP MOUNT;
RMAN> RESTORE DATABASE;
RMAN> RECOVER DATABASE;
RMAN> ALTER DATABASE OPEN;
--- Recovering the loss of a datafile using image from FRA
SQL> ALTER DATABASE DATAFILE 7 OFFLINE;
$ rman target /
RMAN> SWITCH DATAFILE 7 TO COPY;
RMAN> RECOVER DATAFILE 7;
RMAN> ALTER DATABASE DATAFILE 7 ONLINE;
$ rman target /
RMAN> BACKUP AS COPY DATAFILE 7 FORMAT '/Data/data/test3_tbs_01.dbf';
RMAN> SWITCH DATAFILE 7 TO COPY;
RMAN> RECOVER DATAFILE 7;
RMAN> ALTER DATABASE DATAFILE 7 ONLINE;
|
--修改日期:20130121
--修改人:黄学安
--修改内容:增加借款发放视图
DROP VIEW v_cms_provide_loan;
create view v_cms_provide_info_send as
select s.bill_code as BILL_CODE,s.money as MONEY,s.cur_code as CUR_CODE,i.bank_code as BANK_CODE,i.bank_name as BANK_NAME,s.status as STATUS,s.corp_id as CORP_ID,s.send_date as SEND_DATE from cms_provide_loan_send s,cms_provide_loan_info i
where i.bill_code=s.father_code;
create view v_ploadfincostview as
select
fc.cost_no, --费用编码
fc.finanic_type, --融资类型
bl.id, --贷款单位id
bl.corp_name, --贷款单位/申请单位
fc.load_corp, --放款单位id
bb.bank_name as brrowCorp_name, --放款单位/借款单位
cl.BANK_TYPE, --放款银行类型
cl.bill_code, --单据编号/单据编码
fct.type_code, --费用类型code
fct.type_name, --费用名称
fc.buss_time, --发生时间
fc.cost_amount, --费用金额
fc.commen as fcCommen, --费用描述
fc.status,
fc.guid,
send.bill_code as lasendCode
from finanic_cost fc
inner join (select * from cms_provide_loan_info where (STATUS !=110 and STATUS >= 97)) cl on fc.req_corp = cl.bill_code
left join cms_provide_loan_send send on send.FATHER_CODE=cl.bill_code and send.status>=95
inner join bt_corp bl on cl.corp_id = bl.id --贷款单位id
inner join bt_bank bb on cl.bank_code = bb.bank_code
left join finanic_cost_type fct on fc.cost_type = fct.type_code
where fc.status != -2;
|
/*---------------------------------------*/
/* 演習2用サンプルデータ */
/*---------------------------------------*/
/*-- データベースを選択 --*/
USE gachadb;
/*-- テーブルの中身を空にする --*/
TRUNCATE Busho;
TRUNCATE GachaHistory;
TRUNCATE GameUser;
/*-- 武将 (演習1と同じデータ) --*/
INSERT INTO Busho
VALUES
(1, '清少納言', 'UR', 'nagon.jpg'),
(2, '織田信長', 'SR', 'nobunaga.jpg'),
(3, '斎藤道三', 'SR', 'douzan.jpg'),
(4, '静御前', 'SR', 'sizuka.jpg'),
(5, 'ペリー', 'R', 'perry.jpg')
;
/*-- ユーザー情報 --*/
INSERT INTO GameUser(name)
VALUES
('Aにゃん'),
('Bにゃん')
;
/*-- ガチャ履歴 --*/
INSERT INTO GachaHistory(user_id, busho_id, regist_date)
VALUES
(1, 1, now()),
(2, 2, now()),
(1, 3, now()),
(2, 3, now()),
(1, 4, now()),
(2, 5, now()),
(1, 5, now()),
(2, 5, now()),
(1, 2, now()),
(2, 1, now())
;
|
use cadastro;
alter table pessoas add column profissao varchar(10); #adicionando coluna
alter table pessoas drop column profissao; #apagando coluna
alter table pessoas add column profissao varchar(10) after nome; #adicionando a coluna após NOME
alter table pessoas add column profissao varchar(10) first; #adicionando coluna como a primeira
alter table pessoas modify column profissao varchar(20); #alterando o tipo primitivo da coluna
alter table pessoas change column profissao prof varchar(20); #renomeando nome da coluna
alter table pessoa rename to pessoas; #renomear nome tabela
create table if not exists cursos(
nome varchar(30) not null unique,
descricao text,
carga int unsigned,
totaulas int unsigned,
ano year default '2020'
) default charset = utf8;
alter table cursos add column idcursos int first;
alter table cursos add primary key(idcursos); #adicionando como chave primaria a tabela
alter table cursos rename to curso;
select * from pessoas;
select * from cursos; |
SELECT PL.item_no, PL.item_desc_1, PL.item_desc_2,PL.act_unit_cost, PH.ord_no, PL.qty_ordered, PH.ord_dt, YEAR(ord_dt) AS Year,
ltrim(PH.vend_no) AS vend_no, CH.vend_name, IM.prod_cat, OE.price
FROM dbo.poordlin_sql PL JOIN dbo.poordhdr_sql PH ON PH.ord_no = PL.ord_no
JOIN dbo.imitmidx_sql IM ON IM.item_no = PL.item_no
JOIN BG_CH_Vendors CH ON CH.vend_no = ltrim(PH.vend_no)
LEFT OUTER JOIN
(SELECT OL.item_no, YEAR(inv_dt) AS YEAR, AVG(OL.unit_price) AS price
FROM oehdrhst_sql OH JOIN oelinhst_sql OL ON OL.inv_no = OH.inv_no
WHERE OL.qty_to_ship > 1
GROUP BY OL.item_no, YEAR(OH.inv_dt)
--ORDER BY OL.item_no
) AS OE ON OE.item_no = PL.item_no AND OE.YEAR = YEAR(ord_dt)
WHERE qty_received > 1 AND act_unit_cost > 0
AND PL.item_no IN (select PL.item_no
FROM dbo.poordlin_sql PL JOIN dbo.poordhdr_sql PH ON PH.ord_no = PL.ord_no
JOIN dbo.imitmidx_sql IM ON IM.item_no = PL.item_no
JOIN BG_CH_Vendors CH ON CH.vend_no = ltrim(PH.vend_no)
WHERE ord_dt > '01/01/2013')
AND PL.item_no IN (select PL.item_no
FROM dbo.poordlin_sql PL JOIN dbo.poordhdr_sql PH ON PH.ord_no = PL.ord_no
JOIN dbo.imitmidx_sql IM ON IM.item_no = PL.item_no
JOIN BG_CH_Vendors CH ON CH.vend_no = ltrim(PH.vend_no)
WHERE ord_dt < '01/01/2013')
|
USE sql_intro;
-- om the previous section, but now using the alias tr for the transaction table,
-- cu for the customer table, and co for the company table.
SELECT item_purchased, amount, name, industry
FROM transaction AS tr, company AS co
WHERE tr.company_id = co.id
|
create database mydb;
|
DROP procedure eaadmin.delete_instsw@
DROP TYPE BIGINTLIST@
CREATE TYPE BIGINTLIST AS BIGINT ARRAY[]@
CREATE PROCEDURE eaadmin.delete_instsw(IN p_customerId varchar(30), IN p_age varchar(5), OUT o_total BIGINT, OUT v_line INTEGER)
LANGUAGE SQL
SPECIFIC EAADMIN.DELETE_INSTSW
BEGIN
DECLARE v_tem_total INTEGER DEFAULT 0;
DECLARE v_tem_sf_total INTEGER DEFAULT 0;
DECLARE v_delete_total INTEGER DEFAULT 0;
DECLARE v_round INTEGER DEFAULT 0;
DECLARE INSTIDLIST BIGINTLIST;
DECLARE SFIDLIST BIGINTLIST;
DECLARE v_empty_discr_history INTEGER DEFAULT 0;
DECLARE v_empty_alert_cause_code_h INTEGER DEFAULT 0;
DECLARE v_empty_alert_cause_code INTEGER DEFAULT 0;
DECLARE v_empty_alert_inst_sw_h INTEGER DEFAULT 0;
DECLARE v_empty_alert_inst_sw INTEGER DEFAULT 0;
DECLARE v_empty_installed_filter INTEGER DEFAULT 0;
DECLARE v_empty_installed_signature INTEGER DEFAULT 0;
DECLARE v_empty_installed_dorana INTEGER DEFAULT 0;
DECLARE v_empty_installed_sa INTEGER DEFAULT 0;
DECLARE v_empty_installed_tadz INTEGER DEFAULT 0;
DECLARE v_empty_software_eff INTEGER DEFAULT 0;
DECLARE v_empty_used_license INTEGER DEFAULT 0;
DECLARE v_empty_reconcile_used_license INTEGER DEFAULT 0;
DECLARE v_empty_reconcile INTEGER DEFAULT 0;
DECLARE v_empty_h_used_license INTEGER DEFAULT 0;
DECLARE v_empty_h_reconcile_used_license INTEGER DEFAULT 0;
DECLARE v_empty_reconcile_h INTEGER DEFAULT 0;
DECLARE v_empty_installed_software INTEGER DEFAULT 0;
DECLARE v_empty_schedule_f_h INTEGER DEFAULT 0;
DECLARE v_empty_schedule_f INTEGER DEFAULT 0;
DECLARE v_sql_query_inact_inst_sw VARCHAR(512);
DECLARE v_sql_query_inact_sf VARCHAR(512);
DECLARE v_sql_delete_discr_history VARCHAR(512);
DECLARE v_sql_delete_alert_cause_code_h VARCHAR(640);
DECLARE v_sql_delete_alert_cause_code VARCHAR(640);
DECLARE v_sql_delete_alert_inst_sw_h VARCHAR(640);
DECLARE v_sql_delete_alert_inst_sw VARCHAR(512);
DECLARE v_sql_delete_installed_filter VARCHAR(512);
DECLARE v_sql_delete_installed_signature VARCHAR(512);
DECLARE v_sql_delete_installed_dorana VARCHAR(512);
DECLARE v_sql_delete_installed_sa VARCHAR(512);
DECLARE v_sql_delete_installed_tadz VARCHAR(512);
DECLARE v_sql_delete_software_eff VARCHAR(512);
DECLARE v_sql_delete_used_license VARCHAR(640);
DECLARE v_sql_delete_reconcile_used_license VARCHAR(640);
DECLARE v_sql_delete_reconcile VARCHAR(512);
DECLARE v_sql_delete_h_used_license VARCHAR(640);
DECLARE v_sql_delete_h_reconcile_used_license VARCHAR(640);
DECLARE v_sql_delete_reconcile_h VARCHAR(512);
DECLARE v_sql_delete_installed_software VARCHAR(512);
DECLARE v_sql_delete_schedule_f_h VARCHAR(512);
DECLARE v_sql_delete_schedule_f VARCHAR(512);
DECLARE o_res INTEGER;
DECLARE v_sys_result BIGINT;
DECLARE v_account_number VARCHAR(20);
DECLARE v_start_time VARCHAR(14);
DECLARE v_end_time VARCHAR(14);
DECLARE SQLCODE INTEGER DEFAULT 0;
DECLARE v_stmt_delete_dh STATEMENT;
DECLARE v_stmt_delete_cch STATEMENT;
DECLARE v_stmt_delete_cc STATEMENT;
DECLARE v_stmt_delete_aih STATEMENT;
DECLARE v_stmt_delete_ai STATEMENT;
DECLARE v_stmt_delete_if STATEMENT;
DECLARE v_stmt_delete_iss STATEMENT;
DECLARE v_stmt_delete_id STATEMENT;
DECLARE v_stmt_delete_isa STATEMENT;
DECLARE v_stmt_delete_istd STATEMENT;
DECLARE v_stmt_delete_se STATEMENT;
DECLARE v_stmt_delete_is STATEMENT;
DECLARE v_stmt_delete_ulic STATEMENT;
DECLARE v_stmt_delete_rulic STATEMENT;
DECLARE v_stmt_delete_rc STATEMENT;
DECLARE v_stmt_delete_hulic STATEMENT;
DECLARE v_stmt_delete_hrulic STATEMENT;
DECLARE v_stmt_delete_rch STATEMENT;
DECLARE v_stmt_select_is STATEMENT;
DECLARE v_stmt_delete_sf_h STATEMENT;
DECLARE v_stmt_delete_sf STATEMENT;
DECLARE ct CURSOR WITH HOLD WITH RETURN FOR s1;
DECLARE cf CURSOR WITH HOLD WITH RETURN FOR s2;
DECLARE CONTINUE HANDLER FOR NOT found SET o_res = SQLCODE;--Empty record
DECLARE EXIT handler FOR SQLexception
BEGIN
SET o_res = SQLCODE;
ROLLBACK;
SET v_end_time = REPLACE(LTRIM(RTRIM(CHAR(current_date,ISO))),'-','')||REPLACE(LTRIM(RTRIM(CHAR(current_time,ISO))),'.','');
UPDATE EAADMIN.SYSTEM_SCHEDULE_STATUS
SET end_time = v_end_time,STATUS = CAST(o_res as CHAR(10)),comments='DB_PROCEDURE DELETE INSTALLED SOFTWARES STOP WITH ERROR'
WHERE name = 'DELETE INSTSW '||v_account_number
AND start_time = v_start_time;
COMMIT;
END;
set v_line= -1;
SET v_account_number = NULL;
SELECT cast(b.account_number as CHAR(20)) INTO v_account_number from EAADMIN.CUSTOMER b WHERE b.customer_id = CAST(p_customerId AS BIGINT) ;
SET v_sys_result = NULL;
SET v_start_time = REPLACE(LTRIM(RTRIM(CHAR(current_date,ISO))),'-','')||REPLACE(LTRIM(RTRIM(CHAR(current_time,ISO))),'.','');
SELECT a.id INTO v_sys_result from EAADMIN.SYSTEM_SCHEDULE_STATUS a WHERE a.name = 'DELETE INSTSW '||v_account_number ;
if(v_sys_result is not null) then
UPDATE EAADMIN.SYSTEM_SCHEDULE_STATUS SET start_time = v_start_time,end_time = null,comments='DB_PROCEDURE DELETE INSTALLED SOFTWARES START',status='0' where id = v_sys_result ;
else
INSERT INTO EAADMIN.SYSTEM_SCHEDULE_STATUS(id,name,comments,start_time,end_time,remote_user,status)
VALUES(DEFAULT,'DELETE INSTSW '||v_account_number,'DB_PROCEDURE DELETE INSTALLED SOFTWARES START',v_start_time,NULL,'DB_PROCEDURE','0');
end if;
COMMIT;
SET v_sql_query_inact_inst_sw = 'select count(is.id) from eaadmin.installed_software is join eaadmin.software_lpar sl on is.software_lpar_id=sl.id join eaadmin.software s on is.software_id=s.software_id where sl.customer_id = '||p_customerId||' and ( (is.status != '''||'ACTIVE'||''' and current timestamp - '||p_age||' DAYS > is.record_time ) or (sl.status != '''||'ACTIVE'||''' and current timestamp - '||p_age||' DAYS > sl.record_time ) or (s.status != '''||'ACTIVE'||''') ) with ur';
SET v_sql_query_inact_sf = 'select count(sf.id) from eaadmin.schedule_f sf where sf.customer_id = '||p_customerId||' and current timestamp - '||p_age||' DAYS > sf.record_time and sf.status_id = 1 with ur';
SET v_sql_delete_discr_history = 'delete from (select 1 from eaadmin.software_discrepancy_h a where a.installed_software_id in (SELECT X.ids FROM UNNEST(cast(? as BIGINTLIST)) AS X(ids)))';
SET v_sql_delete_alert_cause_code_h = 'delete from (select 1 from eaadmin.cause_code_h cch where exists (select 1 from eaadmin.cause_code cc join eaadmin.alert_unlicensed_sw aus on cc.alert_id=aus.id where cch.cause_code_id=cc.id and cc.alert_type_id=17 and aus.installed_software_id in (SELECT X.ids FROM UNNEST(cast(? as BIGINTLIST)) AS X(ids))))';
SET v_sql_delete_alert_cause_code = 'delete from (select 1 from eaadmin.cause_code cc where cc.alert_type_id=17 and exists ( select 1 from eaadmin.alert_unlicensed_sw aus where cc.alert_id=aus.id and aus.installed_software_id in (SELECT X.ids FROM UNNEST(cast(? as BIGINTLIST)) AS X(ids))))';
SET v_sql_delete_alert_inst_sw_h = 'delete from (select 1 from eaadmin.alert_unlicensed_sw aus where aus.installed_software_id in (SELECT X.ids FROM UNNEST(cast(? as BIGINTLIST)) AS X(ids)))';
SET v_sql_delete_alert_inst_sw = 'delete from (select 1 from eaadmin.alert_unlicensed_sw e where e.installed_software_id in (SELECT X.ids FROM UNNEST(cast(? as BIGINTLIST)) AS X(ids)))';
SET v_sql_delete_installed_filter = 'delete from (select 1 from eaadmin.installed_filter f where f.installed_software_id in (SELECT X.ids FROM UNNEST(cast(? as BIGINTLIST)) AS X(ids)))';
SET v_sql_delete_installed_signature = 'delete from (select 1 from eaadmin.installed_signature g where g.installed_software_id in (SELECT X.ids FROM UNNEST(cast(? as BIGINTLIST)) AS X(ids)))';
SET v_sql_delete_installed_dorana = 'delete from (select 1 from eaadmin.installed_dorana_product h where h.installed_software_id in (SELECT X.ids FROM UNNEST(cast(? as BIGINTLIST)) AS X(ids)))';
SET v_sql_delete_installed_sa = 'delete from (select 1 from eaadmin.installed_sa_product i where i.installed_software_id in (SELECT X.ids FROM UNNEST(cast(? as BIGINTLIST)) AS X(ids)))' ;
SET v_sql_delete_installed_tadz = 'delete from (select 1 from eaadmin.installed_tadz j where j.installed_software_id in (SELECT X.ids FROM UNNEST(cast(? as BIGINTLIST)) AS X(ids)))' ;
SET v_sql_delete_software_eff = 'delete from (select 1 from eaadmin.installed_software_eff k where k.installed_software_id in (SELECT X.ids FROM UNNEST(cast(? as BIGINTLIST)) AS X(ids)))';
SET v_sql_delete_used_license = 'delete from (select 1 from eaadmin.used_license l where exists (select 1 from eaadmin.reconcile_used_license rul join reconcile rc on rul.reconcile_id=rc.id where rul.USED_LICENSE_ID = l.id and rc.installed_software_id in (SELECT X.ids FROM UNNEST(cast(? as BIGINTLIST)) AS X(ids))))';
SET v_sql_delete_reconcile_used_license = 'delete from (select 1 from eaadmin.reconcile_used_license m where exists(select 1 from eaadmin.reconcile rc where m.RECONCILE_ID = rc.id and rc.installed_software_id in (SELECT X.ids FROM UNNEST(cast(? as BIGINTLIST)) AS X(ids))))';
SET v_sql_delete_reconcile = 'delete from (select 1 from eaadmin.reconcile n where n.installed_software_id in (SELECT X.ids FROM UNNEST(cast(? as BIGINTLIST)) AS X(ids)))';
SET v_sql_delete_h_used_license = 'delete from (select 1 from eaadmin.h_used_license o where exists (select 1 from eaadmin.h_reconcile_used_license hrul join eaadmin.reconcile_h rch on hrul.h_reconcile_id=rch.id where o.id = hrul.h_used_license_id and rch.installed_software_id in (SELECT X.ids FROM UNNEST(cast(? as BIGINTLIST)) AS X(ids)) ))';
SET v_sql_delete_h_reconcile_used_license = 'delete from (select 1 from eaadmin.h_reconcile_used_license p where exists (select 1 from eaadmin.reconcile_h rch where p.H_RECONCILE_ID = rch.id and rch.installed_software_id in (SELECT X.ids FROM UNNEST(cast(? as BIGINTLIST)) AS X(ids))))';
SET v_sql_delete_reconcile_h = 'delete from (select 1 from eaadmin.reconcile_h q where q.installed_software_id in (SELECT X.ids FROM UNNEST(cast(? as BIGINTLIST)) AS X(ids)))';
SET v_sql_delete_installed_software = 'delete from (select 1 from eaadmin.installed_software r where r.id in (SELECT X.ids FROM UNNEST(cast(? as BIGINTLIST)) AS X(ids)))';
SET v_sql_delete_schedule_f_h = 'delete from (select 1 from eaadmin.schedule_f_h sfh where sfh.SCHEDULE_F_ID in ( select F.id FROM UNNEST(cast(? as BIGINTLIST)) AS F(id) ))';
SET v_sql_delete_schedule_f = 'delete from (select 1 from eaadmin.schedule_f sf where sf.id in ( select F.id FROM UNNEST(cast(? as BIGINTLIST)) AS F(id) ))';
PREPARE s1 FROM v_sql_query_inact_inst_sw;
OPEN ct;
FETCH ct into v_tem_total;
IF SQLCODE <> 0 THEN
set v_line= 0;
END IF;
CLOSE ct;
COMMIT;
PREPARE s2 FROM v_sql_query_inact_sf;
OPEN cf;
FETCH cf into v_tem_sf_total;
IF SQLCODE <> 0 THEN
set v_line= 0;
END IF;
CLOSE cf;
COMMIT;
IF v_tem_total < v_tem_sf_total THEN
set v_tem_total = v_tem_sf_total;
END IF;
LOOPD:LOOP
SET v_round = v_round + 1;
IF v_tem_total <= 0 THEN
set v_line= v_round + 1000;
LEAVE LOOPD;
END IF;
set INSTIDLIST = ( select ARRAY_AGG(T.id) from (select is.id from eaadmin.installed_software is join eaadmin.software_lpar sl on is.software_lpar_id=sl.id join eaadmin.software s on is.software_id=s.software_id where sl.customer_id = CAST(p_customerId AS BIGINT) and ( (is.status != 'ACTIVE' and current timestamp - CAST(p_age AS integer) DAYS >is.record_time ) or (sl.status != 'ACTIVE' and current timestamp - CAST(p_age AS integer) DAYS > sl.record_time ) or (s.status != 'ACTIVE') ) fetch first 1000 row only ) as T );
set SFIDLIST = ( select ARRAY_AGG(F.id) from (select sf.id from eaadmin.schedule_f sf where sf.customer_id = CAST(p_customerId AS BIGINT) and current timestamp - CAST(p_age AS integer) DAYS > sf.record_time and sf.status_id = 1 fetch first 1000 row only ) as F );
set v_line = 2;
PREPARE v_stmt_delete_dh FROM v_sql_delete_discr_history;
PREPARE v_stmt_delete_cch FROM v_sql_delete_alert_cause_code_h;
PREPARE v_stmt_delete_cc FROM v_sql_delete_alert_cause_code;
PREPARE v_stmt_delete_aih FROM v_sql_delete_alert_inst_sw_h;
PREPARE v_stmt_delete_ai FROM v_sql_delete_alert_inst_sw;
PREPARE v_stmt_delete_if FROM v_sql_delete_installed_filter;
PREPARE v_stmt_delete_iss FROM v_sql_delete_installed_signature;
PREPARE v_stmt_delete_id FROM v_sql_delete_installed_dorana;
PREPARE v_stmt_delete_isa FROM v_sql_delete_installed_sa;
PREPARE v_stmt_delete_istd FROM v_sql_delete_installed_tadz;
PREPARE v_stmt_delete_se FROM v_sql_delete_software_eff;
PREPARE v_stmt_delete_ulic FROM v_sql_delete_used_license;
PREPARE v_stmt_delete_rulic FROM v_sql_delete_reconcile_used_license;
PREPARE v_stmt_delete_rc FROM v_sql_delete_reconcile;
PREPARE v_stmt_delete_hulic FROM v_sql_delete_h_used_license;
PREPARE v_stmt_delete_hrulic FROM v_sql_delete_h_reconcile_used_license;
PREPARE v_stmt_delete_rch FROM v_sql_delete_reconcile_h;
PREPARE v_stmt_delete_is FROM v_sql_delete_installed_software;
PREPARE v_stmt_delete_sf_h FROM v_sql_delete_schedule_f_h;
PREPARE v_stmt_delete_sf FROM v_sql_delete_schedule_f;
IF v_empty_discr_history = 0 THEN
EXECUTE v_stmt_delete_dh USING INSTIDLIST;
IF SQLCODE < 0 THEN
set v_line= 3;
LEAVE LOOPD;
ELSEIF SQLCODE = 100 THEN
set v_empty_discr_history = 1;
END IF;
END IF;
COMMIT;
IF v_empty_alert_cause_code_h = 0 THEN
EXECUTE v_stmt_delete_cch USING INSTIDLIST;
IF SQLCODE < 0 THEN
set v_line= 4;
LEAVE LOOPD;
ELSEIF SQLCODE = 100 THEN
set v_empty_alert_cause_code_h = 1;
END IF;
END IF;
COMMIT;
IF v_empty_alert_cause_code = 0 THEN
EXECUTE v_stmt_delete_cc USING INSTIDLIST;
IF SQLCODE < 0 THEN
set v_line= 5;
LEAVE LOOPD;
ELSEIF SQLCODE = 100 THEN
set v_empty_alert_cause_code = 1;
END IF;
END IF;
COMMIT;
IF v_empty_alert_inst_sw_h = 0 THEN
EXECUTE v_stmt_delete_aih USING INSTIDLIST;
IF SQLCODE < 0 THEN
set v_line= 6;
LEAVE LOOPD;
ELSEIF SQLCODE = 100 THEN
set v_empty_alert_inst_sw_h = 1;
END IF;
END IF;
COMMIT;
IF v_empty_alert_inst_sw = 0 THEN
EXECUTE v_stmt_delete_ai USING INSTIDLIST;
IF SQLCODE < 0 THEN
set v_line= 7;
LEAVE LOOPD;
ELSEIF SQLCODE = 100 THEN
set v_empty_alert_inst_sw = 1;
END IF;
END IF;
COMMIT;
IF v_empty_installed_filter = 0 THEN
EXECUTE v_stmt_delete_if USING INSTIDLIST;
IF SQLCODE < 0 THEN
set v_line= 8;
LEAVE LOOPD;
ELSEIF SQLCODE = 100 THEN
set v_empty_installed_filter = 1;
END IF;
END IF;
COMMIT;
IF v_empty_installed_signature= 0 THEN
EXECUTE v_stmt_delete_iss USING INSTIDLIST;
IF SQLCODE < 0 THEN
set v_line= 9;
LEAVE LOOPD;
ELSEIF SQLCODE = 100 THEN
set v_empty_installed_signature = 1;
END IF;
END IF;
COMMIT;
IF v_empty_installed_dorana = 0 THEN
EXECUTE v_stmt_delete_id USING INSTIDLIST;
IF SQLCODE < 0 THEN
set v_line= 10;
LEAVE LOOPD;
ELSEIF SQLCODE = 100 THEN
set v_empty_installed_dorana = 1;
END IF;
END IF;
COMMIT;
IF v_empty_installed_sa= 0 THEN
EXECUTE v_stmt_delete_isa USING INSTIDLIST;
IF SQLCODE < 0 THEN
set v_line= 11;
LEAVE LOOPD;
ELSEIF SQLCODE = 100 THEN
set v_empty_installed_sa = 1;
END IF;
END IF;
COMMIT;
IF v_empty_installed_tadz = 0 THEN
EXECUTE v_stmt_delete_istd USING INSTIDLIST;
IF SQLCODE < 0 THEN
set v_line= 12;
LEAVE LOOPD;
ELSEIF SQLCODE = 100 THEN
set v_empty_installed_tadz = 1;
END IF;
END IF;
COMMIT;
IF v_empty_software_eff = 0 THEN
EXECUTE v_stmt_delete_se USING INSTIDLIST;
IF SQLCODE < 0 THEN
set v_line= 13;
LEAVE LOOPD;
ELSEIF SQLCODE = 100 THEN
set v_empty_software_eff = 1;
END IF;
END IF;
COMMIT;
IF v_empty_used_license = 0 THEN
EXECUTE v_stmt_delete_ulic USING INSTIDLIST;
IF SQLCODE < 0 THEN
set v_line= 14;
LEAVE LOOPD;
ELSEIF SQLCODE = 100 THEN
set v_empty_used_license = 1;
END IF;
END IF;
COMMIT;
IF v_empty_reconcile_used_license = 0 THEN
EXECUTE v_stmt_delete_rulic USING INSTIDLIST;
IF SQLCODE < 0 THEN
set v_line= 15;
LEAVE LOOPD;
ELSEIF SQLCODE = 100 THEN
set v_empty_reconcile_used_license = 1;
END IF;
END IF;
COMMIT;
IF v_empty_reconcile = 0 THEN
EXECUTE v_stmt_delete_rc USING INSTIDLIST;
IF SQLCODE < 0 THEN
set v_line= 16;
LEAVE LOOPD;
ELSEIF SQLCODE = 100 THEN
set v_empty_reconcile = 1;
END IF;
END IF;
COMMIT;
IF v_empty_h_used_license = 0 THEN
EXECUTE v_stmt_delete_hulic USING INSTIDLIST;
IF SQLCODE < 0 THEN
set v_line= 17;
LEAVE LOOPD;
ELSEIF SQLCODE = 100 THEN
set v_empty_h_used_license = 1;
END IF;
END IF;
COMMIT;
IF v_empty_h_reconcile_used_license = 0 THEN
EXECUTE v_stmt_delete_hrulic USING INSTIDLIST;
IF SQLCODE < 0 THEN
set v_line= 18;
LEAVE LOOPD;
ELSEIF SQLCODE = 100 THEN
set v_empty_h_reconcile_used_license = 1;
END IF;
END IF;
COMMIT;
IF v_empty_reconcile_h = 0 THEN
EXECUTE v_stmt_delete_rch USING INSTIDLIST;
IF SQLCODE < 0 THEN
set v_line= 19;
LEAVE LOOPD;
ELSEIF SQLCODE = 100 THEN
set v_empty_reconcile_h = 1;
END IF;
END IF;
COMMIT;
IF v_empty_installed_software = 0 THEN
EXECUTE v_stmt_delete_is USING INSTIDLIST;
IF SQLCODE < 0 THEN
set v_line= 20;
LEAVE LOOPD;
ELSEIF SQLCODE = 100 THEN
set v_empty_installed_software = 1;
END IF;
END IF;
COMMIT;
IF v_empty_schedule_f_h = 0 THEN
EXECUTE v_stmt_delete_sf_h USING SFIDLIST;
IF SQLCODE < 0 THEN
set v_line= 21;
LEAVE LOOPD;
ELSEIF SQLCODE = 100 THEN
set v_empty_schedule_f_h = 1;
END IF;
END IF;
IF v_empty_schedule_f = 0 THEN
EXECUTE v_stmt_delete_sf USING SFIDLIST;
IF SQLCODE < 0 THEN
set v_line= 22;
LEAVE LOOPD;
ELSEIF SQLCODE = 100 THEN
set v_empty_schedule_f = 1;
END IF;
END IF;
COMMIT;
IF 0 < v_tem_total and v_tem_total <= 1000 THEN
SET v_delete_total = v_delete_total + v_tem_total;
set v_line= v_round + 1023;
ELSEIF v_tem_total > 1000 THEN
SET v_delete_total = v_delete_total + 1000;
set v_line= v_round + 1024;
END IF;
set v_tem_total = v_tem_total - 1000;
END LOOP LOOPD;
COMMIT;
SET o_total = v_delete_total;
SET v_end_time = REPLACE(LTRIM(RTRIM(CHAR(current_date,ISO))),'-','')||REPLACE(LTRIM(RTRIM(CHAR(current_time,ISO))),'.','');
UPDATE EAADMIN.SYSTEM_SCHEDULE_STATUS
SET end_time = v_end_time,status = '1',comments='DB_PROCEDURE DELETE INSTALLED SOFTWARES STOP'
WHERE name = 'DELETE INSTSW '||v_account_number
AND start_time = v_start_time;
COMMIT;
END@
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.