sql stringlengths 6 1.05M |
|---|
<reponame>Nilesh7347/task<filename>exam.sql
-- phpMyAdmin SQL Dump
-- version 4.7.4
-- https://www.phpmyadmin.net/
--
-- Host: 1172.16.17.32
-- Generation Time: Dec 17, 2021 at 02:58 PM
-- Server version: 10.1.30-MariaDB
-- PHP Version: 7.2.1
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: `exam`
--
-- --------------------------------------------------------
--
-- Table structure for table `user_details`
--
CREATE TABLE `user_details` (
`id` int(11) NOT NULL,
`first_name` varchar(500) NOT NULL,
`last_name` varchar(500) NOT NULL,
`age` varchar(10) NOT NULL,
`email` varchar(100) NOT NULL,
`contact_number` varchar(15) NOT NULL,
`created_dt` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `user_details`
--
INSERT INTO `user_details` (`id`, `first_name`, `last_name`, `age`, `email`, `contact_number`, `created_dt`) VALUES
(1, 'test', 'tested', '12', '', '', '2021-12-17 11:59:21'),
(2, 'test', 'tested', '12', '', '', '2021-12-17 12:03:06'),
(3, 'teste', 'teste', '25', '', '', '2021-12-17 12:05:32'),
(4, 'teste', 'teste', '25', '', '', '2021-12-17 12:07:47'),
(5, 'teste1', 'teste1', '25', '', '', '2021-12-17 12:07:58'),
(6, 'teste1', 'teste1', '25', '', '', '2021-12-17 12:14:15'),
(7, 'teste1', 'teste1', '25', '', '', '2021-12-17 12:16:58'),
(8, 'testing', 'tested', '27', '<EMAIL>', '1234543215', '2021-12-17 12:18:31');
--
-- Indexes for dumped tables
--
--
-- Indexes for table `user_details`
--
ALTER TABLE `user_details`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `user_details`
--
ALTER TABLE `user_details`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;
COMMIT;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
UPDATE character_quests SET name='Q00161_FruitOfTheMotherTree' WHERE name='161_FruitsOfMothertree';
UPDATE character_quests SET name='Q00176_StepsForHonor' WHERE name='176_StepsForHonor';
UPDATE character_quests SET name='Q00277_GatekeepersOffering' WHERE name='277_GatekeepersOffering';
UPDATE character_quests SET name='Q00297_GatekeepersFavor' WHERE name='297_GatekeepersFavor'; |
<reponame>guherbozdogan2/yelp_challenge<filename>data/db/migration/business.cql
CREATE TABLE IF NOT EXISTS test.business
(
address text,
attributes_map MAP<text, text>,
business_id text,
categories LIST<text>,
city text,
hours_map MAP<text, text>,
is_open boolean,
latitude float,
longitude float,
name text,
postal_code text,
review_count int,
stars float,
state text,
PRIMARY KEY(business_id, name)
); |
-- 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 proyecto_Actualizacion
-- -----------------------------------------------------
DROP SCHEMA IF EXISTS `proyecto_Actualizacion` ;
-- -----------------------------------------------------
-- Schema proyecto_Actualizacion
-- -----------------------------------------------------
CREATE SCHEMA IF NOT EXISTS `proyecto_Actualizacion` DEFAULT CHARACTER SET utf8 ;
SHOW WARNINGS;
USE `proyecto_Actualizacion` ;
-- -----------------------------------------------------
-- Table `genero`
-- -----------------------------------------------------
DROP TABLE IF EXISTS `genero` ;
SHOW WARNINGS;
CREATE TABLE IF NOT EXISTS `genero` (
`id_genero` INT NOT NULL,
`descripcion` VARCHAR(45) NOT NULL,
PRIMARY KEY (`id_genero`))
ENGINE = InnoDB;
SHOW WARNINGS;
-- -----------------------------------------------------
-- Table `usuario`
-- -----------------------------------------------------
DROP TABLE IF EXISTS `usuario` ;
SHOW WARNINGS;
CREATE TABLE IF NOT EXISTS `usuario` (
`id_usuario` INT NULL AUTO_INCREMENT,
`documento` MEDIUMTEXT NOT NULL,
`nombre` VARCHAR(45) NOT NULL,
`apellido` VARCHAR(45) NOT NULL,
`email` VARCHAR(45) NOT NULL,
`semestre` INT NOT NULL,
`usuario` VARCHAR(45) NOT NULL,
`contrasena` VARCHAR(45) NOT NULL,
`id_genero` INT NOT NULL,
PRIMARY KEY (`id_usuario`))
ENGINE = InnoDB;
SHOW WARNINGS;
-- -----------------------------------------------------
-- Table `estilo_ha`
-- -----------------------------------------------------
DROP TABLE IF EXISTS `estilo_ha` ;
SHOW WARNINGS;
CREATE TABLE IF NOT EXISTS `estilo_ha` (
`id_estilo` INT NOT NULL AUTO_INCREMENT,
`nombre_estilo` VARCHAR(45) NOT NULL,
PRIMARY KEY (`id_estilo`))
ENGINE = InnoDB;
SHOW WARNINGS;
-- -----------------------------------------------------
-- Table `estrategia_ha`
-- -----------------------------------------------------
DROP TABLE IF EXISTS `estrategia_ha` ;
SHOW WARNINGS;
CREATE TABLE IF NOT EXISTS `estrategia_ha` (
`id_estrategia` INT NOT NULL AUTO_INCREMENT,
`descripcion` VARCHAR(100) NOT NULL,
`id_estilo` INT NOT NULL,
PRIMARY KEY (`id_estrategia`))
ENGINE = InnoDB;
SHOW WARNINGS;
-- -----------------------------------------------------
-- Table `situacion`
-- -----------------------------------------------------
DROP TABLE IF EXISTS `situacion` ;
SHOW WARNINGS;
CREATE TABLE IF NOT EXISTS `situacion` (
`id_situacion` INT NOT NULL AUTO_INCREMENT,
`descripcion` VARCHAR(200) NOT NULL,
`id_estilo` INT NOT NULL,
PRIMARY KEY (`id_situacion`))
ENGINE = InnoDB;
SHOW WARNINGS;
-- -----------------------------------------------------
-- Table `usuario_selecciona_situacion`
-- -----------------------------------------------------
DROP TABLE IF EXISTS `usuario_selecciona_situacion` ;
SHOW WARNINGS;
CREATE TABLE IF NOT EXISTS `usuario_selecciona_situacion` (
`id_usuario` INT NOT NULL,
`id_situacion` INT NOT NULL,
PRIMARY KEY (`id_usuario`, `id_situacion`))
ENGINE = InnoDB
COMMENT = ' ';
SHOW WARNINGS;
-- -----------------------------------------------------
-- Table `resultado_test_ha`
-- -----------------------------------------------------
DROP TABLE IF EXISTS `resultado_test_ha` ;
SHOW WARNINGS;
CREATE TABLE IF NOT EXISTS `resultado_test_ha` (
`id_resultado` INT NOT NULL AUTO_INCREMENT,
`activo` INT NOT NULL,
`reflexivo` INT NOT NULL,
`teorico` INT NOT NULL,
`pragmatico` INT NOT NULL,
`idusuario` INT NOT NULL,
PRIMARY KEY (`id_resultado`))
ENGINE = InnoDB;
SHOW WARNINGS;
-- -----------------------------------------------------
-- Table `administrador`
-- -----------------------------------------------------
DROP TABLE IF EXISTS `administrador` ;
SHOW WARNINGS;
CREATE TABLE IF NOT EXISTS `administrador` (
`id_administrador` INT NOT NULL AUTO_INCREMENT,
`usuario` VARCHAR(45) NOT NULL,
`contrasena` VARCHAR(45) NOT NULL,
`nombre` VARCHAR(45) NOT NULL,
`apellido` VARCHAR(45) NOT NULL,
PRIMARY KEY (`id_administrador`))
ENGINE = InnoDB;
SHOW WARNINGS;
-- -----------------------------------------------------
-- Table `programa`
-- -----------------------------------------------------
DROP TABLE IF EXISTS `programa` ;
SHOW WARNINGS;
CREATE TABLE IF NOT EXISTS `programa` (
`id_programa` INT NOT NULL AUTO_INCREMENT,
`nombre` VARCHAR(45) NOT NULL,
`duracion` INT NOT NULL,
`modalidad` VARCHAR(45) NOT NULL,
PRIMARY KEY (`id_programa`))
ENGINE = InnoDB;
SHOW WARNINGS;
-- -----------------------------------------------------
-- Table `usuario_tiene_programa`
-- -----------------------------------------------------
DROP TABLE IF EXISTS `usuario_tiene_programa` ;
SHOW WARNINGS;
CREATE TABLE IF NOT EXISTS `usuario_tiene_programa` (
`id_usuario` INT NOT NULL,
`id_programa` INT NOT NULL,
PRIMARY KEY (`id_usuario`, `id_programa`))
ENGINE = InnoDB;
SHOW WARNINGS;
-- -----------------------------------------------------
-- Data for table `genero`
-- -----------------------------------------------------
START TRANSACTION;
USE `proyecto_Actualizacion`;
INSERT INTO `genero` (`id_genero`, `descripcion`) VALUES (1, 'Masculino');
INSERT INTO `genero` (`id_genero`, `descripcion`) VALUES (2, 'Femenino');
COMMIT;
-- -----------------------------------------------------
-- Data for table `estilo_ha`
-- -----------------------------------------------------
START TRANSACTION;
USE `proyecto_Actualizacion`;
INSERT INTO `estilo_ha` (`id_estilo`, `nombre_estilo`) VALUES (1, 'Activo');
INSERT INTO `estilo_ha` (`id_estilo`, `nombre_estilo`) VALUES (2, 'Reflexivo');
INSERT INTO `estilo_ha` (`id_estilo`, `nombre_estilo`) VALUES (3, 'Teorico');
INSERT INTO `estilo_ha` (`id_estilo`, `nombre_estilo`) VALUES (4, 'Practico');
COMMIT;
-- -----------------------------------------------------
-- Data for table `programa`
-- -----------------------------------------------------
START TRANSACTION;
USE `proyecto_Actualizacion`;
INSERT INTO `programa` (`id_programa`, `nombre`, `duracion`, `modalidad`) VALUES (1, 'Ingenieria Industrial', 10, 'Presencial');
INSERT INTO `programa` (`id_programa`, `nombre`, `duracion`, `modalidad`) VALUES (2, 'Arquitectura', 10, 'Presencial');
INSERT INTO `programa` (`id_programa`, `nombre`, `duracion`, `modalidad`) VALUES (3, 'Ingenieria de Sistemas', 10, 'Presencial');
INSERT INTO `programa` (`id_programa`, `nombre`, `duracion`, `modalidad`) VALUES (4, 'Ciencias del Deporte y la Actividad Fisica', 9, 'Presencial');
INSERT INTO `programa` (`id_programa`, `nombre`, `duracion`, `modalidad`) VALUES (5, 'Psicologia', 10, 'Presencial');
INSERT INTO `programa` (`id_programa`, `nombre`, `duracion`, `modalidad`) VALUES (6, 'Trabajo Social', 10, 'Presencial');
INSERT INTO `programa` (`id_programa`, `nombre`, `duracion`, `modalidad`) VALUES (7, 'Licenciatura en Pedagogia Infantil', 8, 'Presencial');
INSERT INTO `programa` (`id_programa`, `nombre`, `duracion`, `modalidad`) VALUES (8, 'Licenciatura en Lingüistica y Literatura', 8, 'Presencial');
INSERT INTO `programa` (`id_programa`, `nombre`, `duracion`, `modalidad`) VALUES (9, 'Derecho', 10, 'Presencial');
INSERT INTO `programa` (`id_programa`, `nombre`, `duracion`, `modalidad`) VALUES (10, 'Administración de Empresas', 10, 'Presencial');
INSERT INTO `programa` (`id_programa`, `nombre`, `duracion`, `modalidad`) VALUES (11, 'Contaduria Publica', 10, 'Presencial');
INSERT INTO `programa` (`id_programa`, `nombre`, `duracion`, `modalidad`) VALUES (12, 'Economia - Administracion de Empresas', 8, 'Presencial');
INSERT INTO `programa` (`id_programa`, `nombre`, `duracion`, `modalidad`) VALUES (13, 'Administracion de Empresas', 10, 'Distancia');
INSERT INTO `programa` (`id_programa`, `nombre`, `duracion`, `modalidad`) VALUES (14, 'Administracion Publica', 8, 'Distancia');
INSERT INTO `programa` (`id_programa`, `nombre`, `duracion`, `modalidad`) VALUES (15, 'Administracion Turistica', 8, 'Distancia');
COMMIT;
SET SQL_MODE=@OLD_SQL_MODE;
SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS;
SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS;
|
--The 3 queries below represent the percent difference in rent when comparing rents from 2014 to 2009, across the median, upper and lower brackets.
--The yoy_pct_diff column in each of the queries below is the year over year difference in rent. At this point we are not planning on using column.
--The diff column is the percent difference when comparing rents in 2014 to rents in 2009. Each of the years from 2009 to 2014 will store the same data.
--Once our properties have the geocoded values, they will be able to join to each of these queries by geo_id2, and pulling this data for each property.
--"percent_increase_neighborhood_median_rent"
select b.*, --round(cast ((est_rent - lag (est_rent, 1, est_rent) over ( partition by geo_id2 order by year asc))/est_rent*100 as numeric), 2) as yoy_pct_diff,
round (( first_value (est_rent) over ( partition by geo_id2 order by year desc)
- first_value (est_rent) over ( partition by geo_id2 order by year asc) ) / first_value (est_rent) over ( partition by geo_id2 order by year asc)*100, 2) as diff
from (
select case when snapshot_id = 'ACS_09_5YR_B25058_with_ann.csv' then 2009
when snapshot_id = 'ACS_10_5YR_B25058_with_ann.csv' then 2010
when snapshot_id = 'ACS_11_5YR_B25058_with_ann.csv' then 2011
when snapshot_id = 'ACS_12_5YR_B25058_with_ann.csv' then 2012
when snapshot_id = 'ACS_13_5YR_B25058_with_ann.csv' then 2013
when snapshot_id = 'ACS_14_5YR_B25058_with_ann.csv' then 2014
end as year, a.geo_id2, a."geo_display-label" as display, cast (a.hd01_vd01 as numeric) est_rent, hd02_vd01 margin_of_error
from acs_rent_median a
where geo_Id2 = '01001020100'
) b
order by year asc
--"percent_increase_neighborhood_lower_rent"
select b.*, --round(cast ((est_rent - lag (est_rent, 1, est_rent) over ( partition by geo_id2 order by year asc))/est_rent*100 as numeric), 2) as yoy_pct_diff,
round (( first_value (est_rent) over ( partition by geo_id2 order by year desc)
- first_value (est_rent) over ( partition by geo_id2 order by year asc) ) / first_value (est_rent) over ( partition by geo_id2 order by year asc)*100, 2) as diff
from (
select case when snapshot_id = 'ACS_09_5YR_B25057_with_ann.csv' then 2009
when snapshot_id = 'ACS_10_5YR_B25057_with_ann.csv' then 2010
when snapshot_id = 'ACS_11_5YR_B25057_with_ann.csv' then 2011
when snapshot_id = 'ACS_12_5YR_B25057_with_ann.csv' then 2012
when snapshot_id = 'ACS_13_5YR_B25057_with_ann.csv' then 2013
when snapshot_id = 'ACS_14_5YR_B25057_with_ann.csv' then 2014
end as year, a.geo_id2, a."geo_display-label" as display, cast (a.hd01_vd01 as numeric) est_rent, hd02_vd01 margin_of_error, snapshot_id
from acs_rent_lower a
where geo_Id2 = '01001020100'
) b
order by year asc
--"percent_increase_neighborhood_upper_rent"
select b.*,
--round(cast ((est_rent - lag (est_rent, 1, est_rent) over ( partition by geo_id2 order by year asc))/est_rent*100 as numeric), 2) as yoy_pct_diff,
round (( first_value (est_rent) over ( partition by geo_id2 order by year desc)
- first_value (est_rent) over ( partition by geo_id2 order by year asc) ) / first_value (est_rent) over ( partition by geo_id2 order by year asc)*100, 2) as diff
from (
select case when snapshot_id = 'ACS_09_5YR_B25059_with_ann.csv' then 2009
when snapshot_id = 'ACS_10_5YR_B25059_with_ann.csv' then 2010
when snapshot_id = 'ACS_11_5YR_B25059_with_ann.csv' then 2011
when snapshot_id = 'ACS_12_5YR_B25059_with_ann.csv' then 2012
when snapshot_id = 'ACS_13_5YR_B25059_with_ann.csv' then 2013
when snapshot_id = 'ACS_14_5YR_B25059_with_ann.csv' then 2014
end as year, a.geo_id2, a."geo_display-label" as display, cast (a.hd01_vd01 as numeric) est_rent, hd02_vd01 margin_of_error, snapshot_id
from acs_rent_upper a
where geo_Id2 = '01001020100'
) b
order by year asc
|
<filename>ORACLE_SQL/SHARED_FUNCTIONS/14_ORG/14F001_get_site_desc.sql
/* Formatted on 12-20-2018 9:25:52 AM (QP5 v5.126.903.23003) */
CREATE OR REPLACE FUNCTION ORG.GET_SITE_DESC (P_SITEID INTEGER)
RETURN VARCHAR2
AS
L_RESULT VARCHAR2 (200 BYTE);
BEGIN
L_RESULT := '';
SELECT SITE_DESC
INTO L_RESULT
FROM ORG.ORG_SITES_LOCATIONS
WHERE LOCATION_ID = P_SITEID;
RETURN L_RESULT;
EXCEPTION
WHEN OTHERS
THEN
RETURN '';
END;
/ |
<filename>@api/db/migrations/committed/000209.sql
--! Previous: sha1:546e98977050fdf62a028a4bef8053532694f0b6
--! Hash: sha1:ce38805da6df5e81c976a70bbe355e19619a5d7a
--! split: 1-current.sql
-- Enter migration here
create type app_private.role as enum (
'user',
'moderator',
'admin');
alter table app_private.user_secrets
add column role app_private.role default 'user';
|
<reponame>silvia-taliana/employee-tracker
DROP DATABASE IF EXISTS employees_db;
CREATE DATABASE employees_db;
USE employees_db;
CREATE TABLE department (
id INT NOT NULL,
name VARCHAR(30) NULL,
PRIMARY KEY (id)
);
CREATE TABLE role (
id INT NOT NULL,
title VARCHAR(30) NULL,
salary DECIMAL NULL,
department_id INT NULL,
PRIMARY KEY (id),
FOREIGN KEY (department_id) REFERENCES department(id)
ON UPDATE CASCADE
ON DELETE SET NULL
);
CREATE TABLE employee (
id INT NOT NULL,
first_name VARCHAR(30) NOT NULL,
last_name VARCHAR(30) NOT NULL,
role_id INT NULL,
manager_id INT NULL,
PRIMARY KEY (id),
FOREIGN KEY (manager_id) REFERENCES employee(id)
ON UPDATE CASCADE
ON DELETE SET NULL,
FOREIGN KEY (role_id) REFERENCES role(id)
ON UPDATE CASCADE
ON DELETE SET NULL
);
-- view all employees
SELECT employee.id, employee.first_name, employee.last_name, role.title, role.salary, department.name AS department, CONCAT(manager.first_name, " ", manager.last_name) AS manager_name
FROM employee
LEFT JOIN role ON role.id=employee.role_id
LEFT JOIN department ON role.department_id=department.id
LEFT JOIN employee AS manager ON employee.manager_id=manager.id;
SELECT * FROM department;
SELECT * FROM role;
SELECT * FROM employee; |
<reponame>Ed-Fi-Alliance-OSS/Ed-Fi-MigrationUtility
-- SPDX-License-Identifier: Apache-2.0
-- Licensed to the Ed-Fi Alliance under one or more agreements.
-- The Ed-Fi Alliance licenses this file to you under the Apache License, Version 2.0.
-- See the LICENSE and NOTICES files in the project root for more information.
PRINT N'Adding foreign keys to [edfi].[StudentNeglectedOrDelinquentProgramAssociation]'
GO
ALTER TABLE [edfi].[StudentNeglectedOrDelinquentProgramAssociation] ADD CONSTRAINT [FK_StudentNeglectedOrDelinquentProgramAssociation_GeneralStudentProgramAssociation] FOREIGN KEY ([BeginDate], [EducationOrganizationId], [ProgramEducationOrganizationId], [ProgramName], [ProgramTypeDescriptorId], [StudentUSI]) REFERENCES [edfi].[GeneralStudentProgramAssociation] ([BeginDate], [EducationOrganizationId], [ProgramEducationOrganizationId], [ProgramName], [ProgramTypeDescriptorId], [StudentUSI]) ON DELETE CASCADE
GO
ALTER TABLE [edfi].[StudentNeglectedOrDelinquentProgramAssociation] ADD CONSTRAINT [FK_StudentNeglectedOrDelinquentProgramAssociation_NeglectedOrDelinquentProgramDescriptor] FOREIGN KEY ([NeglectedOrDelinquentProgramDescriptorId]) REFERENCES [edfi].[NeglectedOrDelinquentProgramDescriptor] ([NeglectedOrDelinquentProgramDescriptorId])
GO
ALTER TABLE [edfi].[StudentNeglectedOrDelinquentProgramAssociation] ADD CONSTRAINT [FK_StudentNeglectedOrDelinquentProgramAssociation_ProgressLevelDescriptor] FOREIGN KEY ([ELAProgressLevelDescriptorId]) REFERENCES [edfi].[ProgressLevelDescriptor] ([ProgressLevelDescriptorId])
GO
ALTER TABLE [edfi].[StudentNeglectedOrDelinquentProgramAssociation] ADD CONSTRAINT [FK_StudentNeglectedOrDelinquentProgramAssociation_ProgressLevelDescriptor1] FOREIGN KEY ([MathematicsProgressLevelDescriptorId]) REFERENCES [edfi].[ProgressLevelDescriptor] ([ProgressLevelDescriptorId])
GO
|
<gh_stars>0
INSERT INTO onecmdb.t_attribute VALUES (-9217384312469240723, -5591169885085062245, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-505646845337106548', null, null, 673292606483933488, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-9213880428493099893, -5872183086464812927, 'Name', 'Name', false, false, null, 'xs:string', null, 'Los Angeles Router', null, null, 4899068668525632836, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-9208474337129022908, -2794185067687257957, 'Location', 'Location', true, true, null, 'oneCMDB:#-3200591116467062442', 'oneCMDB:#-8025526327383936657', null, null, null, 1325117208637117274, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-9203179261180971118, 830469767810511665, 'Depreciation (years)', 'Depreciation', false, false, null, 'xs:integer', null, '5', 5, null, 1616600853113017715, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-9198471597292321520, null, 'Column Name', 'colName', false, true, null, 'xs:string', null, null, null, null, -1723966340589452755, 1, 1, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (-9193443923981958584, null, null, 'check_command', true, true, 'This directive is used to specify the short name of the command that should be used to check if the host is up or down. Typically, this command would try and ping the host to see if it is "alive". The command must return a status of OK (0) or Nagios will assume the host is down. If you leave this argument blank, the host will not be actively checked. Thus, Nagios will likely always assume the host is up (it may show up as being in a "PENDING" state in the web interface). This is useful if you are monitoring printers or other devices that are frequently turned off. The maximum amount of time that the notification command can run is controlled by the host_check_timeout option.', 'oneCMDB:#1837107117169913746', 'oneCMDB:#-3863377389438174788', null, null, null, -6108598720877681394, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (-9181470646920780173, 5488164767671116836, 'Connected To', 'ConnectedTo', true, true, null, 'oneCMDB:#1325117208637117274', 'oneCMDB:#-2725368316691492923', null, null, null, 2166601380421831026, -1, 0, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-9172151809948045731, null, null, 'stop', false, true, null, 'xs:string', null, null, null, null, 1634733290972246121, 1, 1, '2016-12-27 17:05:12', '2016-12-27 17:05:12');
INSERT INTO onecmdb.t_attribute VALUES (-9146860998507626901, 2338142333132801027, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#5438961292355445872', null, null, -7663871818674193036, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-9145212753251140061, -2489227691804354699, null, 'Hostname', false, false, null, 'xs:string', null, 'rt-ny-01', null, null, -6624236066440953660, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-9143811055134819436, 2158032505578746876, null, 'Hostname', false, true, null, 'xs:string', null, null, null, null, 2166601380421831026, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-9139301040502326480, -2118060411480011372, 'SLA', 'SLA', false, false, null, 'xs:anyURI', null, 'http://www.onecmdb.org/docs/BasicDatacenter/docs/Dummy_Service_Level_Agreement.pdf', null, null, -4856766876697112377, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-9139148472485647409, 7954947042116584500, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'package', null, null, -3267638157342394138, 1, 0, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-9135101912079254263, 6353112808861710841, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'resource', null, null, -483907744355040058, 1, 0, '2016-12-28 16:01:48', '2016-12-28 16:01:48');
INSERT INTO onecmdb.t_attribute VALUES (-9132932534714340199, 9139225598348518079, 'Location', 'Location', true, false, null, 'oneCMDB:#-3200591116467062442', 'oneCMDB:#-8025526327383936657', 'oneCMDB:#3756775099422547796', 3756775099422547796, null, 5438961292355445872, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-9131525649174727662, -3674724723028882167, 'Installed On', 'InstalledOn', true, false, null, 'oneCMDB:#-1168493350923132665', 'oneCMDB:#4825510563751653831', 'oneCMDB:#5720246255755312151', 5720246255755312151, null, -3267638157342394138, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (-9125204923599426003, -5669522693763744355, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, 3354404145119257703, 1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-9124881232704000087, -902727041562218330, 'Maintenance Info', 'Maintenance', true, true, null, 'oneCMDB:#7154244997109246053', 'oneCMDB:#-8025526327383936657', null, null, null, -1951039734141517216, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-9118606198346302730, 8345497989318023921, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, -1485981234365493640, 1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-9115045884010152645, 96475156001460780, 'Service', 'Service', true, false, null, 'oneCMDB:#-4678966175358915668', 'oneCMDB:#-3863377389438174788', 'oneCMDB:#1627529348574293596', 1627529348574293596, null, 8067161067550301549, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-9100682449169955196, -5122022705383832269, 'Name', 'Name', false, false, null, 'xs:string', null, 'Windows XP', null, null, -4632697620056224887, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-9088079056917297889, null, null, 'host_name', true, true, 'This directive is used to specify the short name(s) of the host(s) that the service "runs" on or is associated with. Multiple hosts should be separated by commas.', 'oneCMDB:#-6108598720877681394', 'oneCMDB:#-3863377389438174788', null, null, null, 8986099038471647984, -1, 0, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (-9085653376575973983, -7478637079806485791, 'Name', 'Name', false, false, null, 'xs:string', null, 'Acme, Inc', null, null, 2376092523771938845, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (-9078179618365231558, null, null, 'eventPolicy', true, true, null, 'oneCMDB:#8260888867499517871', 'oneCMDB:#5179857591352919088', null, null, null, 8439080357747159894, -1, 1, '2016-12-27 17:05:11', '2016-12-27 17:05:11');
INSERT INTO onecmdb.t_attribute VALUES (-9062578463978131335, 1606342094493777432, 'IPv6 Address', 'IPv6Address', false, false, null, 'xs:string', null, null, null, null, 1515202162886390642, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-9062548743002125714, -1524543709740163214, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#2763197975055376610', null, null, 2253308242575190041, 1, 1, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (-9059604384939842711, -4931011888977742764, 'Financial Info', 'Financial', true, true, null, 'oneCMDB:#-4030583075832430887', 'oneCMDB:#-8025526327383936657', null, null, null, 880600073926883392, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-9058665101415461325, null, null, 'timeperiod_name', false, true, 'This directives is the short name used to identify the time period. alias: This directive is a longer name or description used to identify the time period.', 'xs:string', null, null, null, null, -8312690835136204981, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (-9055961603565138256, 2684607629046987153, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, 3917719700601963553, 1, 0, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (-9052256915469204328, 966631586530060965, 'Name', 'Name', false, false, null, 'xs:string', null, 'Delta', null, null, 1515202162886390642, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-9051753412286665074, 5112827944007636586, null, 'icon', false, true, 'Filename (no file extension) of icon image.', 'xs:string', null, 'job', null, null, 1634733290972246121, 1, 0, '2016-12-27 17:05:12', '2016-12-27 17:05:12');
INSERT INTO onecmdb.t_attribute VALUES (-9029724942323040306, -5424043002938450829, 'License Key', 'LicenseKey', false, true, null, 'xs:string', null, null, null, null, 880600073926883392, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-9023325806165282651, 492545217158090566, 'Program', 'program', false, false, null, 'xs:string', null, 'bin/export-nagios', null, null, -4474468114987171564, 1, 1, '2016-12-28 16:01:48', '2016-12-28 16:01:48');
INSERT INTO onecmdb.t_attribute VALUES (-8997966931446184210, 2684607629046987153, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, 6928470614784645567, 1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-8984289382451318097, -5669522693763744355, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, -2502441278440817308, 1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-8982082043122558709, 5196112076458852550, 'Name', 'name', false, true, null, 'xs:string', null, null, null, null, -1286794834007968621, 1, 1, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (-8981633711131074391, null, null, 'user', false, true, null, 'xs:string', null, null, null, null, -3828191829605365312, 1, 1, '2016-12-27 17:05:12', '2016-12-27 17:05:12');
INSERT INTO onecmdb.t_attribute VALUES (-8962128996933800692, -5591169885085062245, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#7611584779566472356', null, null, -3158002772065733777, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-8940809774042740055, -4325908530580821491, 'Natural Key', 'naturalKey', false, true, null, 'xs:boolean', null, null, null, null, -1723966340589452755, 1, 1, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (-8938429827825865029, -8603102978338421612, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#2763197975055376610', null, null, 7967232968088040444, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-8929717659190864040, -7874494863476418912, 'Telephone', 'Telephone', false, false, null, 'xs:string', null, '(212) 868 1000', null, null, -505646845337106548, -1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-8929371474739997931, null, 'Stop', 'commitStop', false, true, null, 'xs:dateTime', null, null, null, null, 2386299380460541961, 1, 1, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (-8902468049398991901, null, 'MAC Address', 'MAC_Address', false, true, null, 'xs:string', null, null, null, null, 1325117208637117274, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-8893467087440602068, -4325908530580821491, 'Natural Key', 'naturalKey', false, true, null, 'xs:boolean', null, null, null, null, -2823204706454452072, 1, 1, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (-8885097571508953844, 4168272132656335525, 'Network', 'Network', true, true, null, 'oneCMDB:#-838366469867279794', 'oneCMDB:#-3863377389438174788', null, null, null, 9059693167497789202, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-8872864052183230472, 4171417067138044278, 'Java Class Name', 'javaClass', false, true, null, 'xs:string', null, 'org.onecmdb.core.utils.transform.AttributeExpressionSelector', null, null, -2823204706454452072, 1, 1, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (-8869802127073218669, 1495844578476706000, null, 'password', false, true, null, 'xs:password', null, null, null, null, -6754672868001187115, 1, 1, '2016-12-27 17:05:12', '2016-12-27 17:05:12');
INSERT INTO onecmdb.t_attribute VALUES (-8859255740558162215, 4141743598262281805, 'License Key', 'LicenseKey', false, true, null, 'xs:string', null, null, null, null, -1727366760233341791, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-8855376414603994378, -7757143298352481143, 'License Key', 'LicenseKey', false, true, null, 'xs:string', null, null, null, null, 2305821143961843722, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-8853965290053952906, -4377813381529510090, 'Version', 'Version', false, false, null, 'xs:string', null, '4', null, null, 4298307837787561059, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-8853516888572394028, 2684607629046987153, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, 4694845469050842936, 1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-8840688252528777310, -2175943913041424956, 'MAC Address', 'MAC_Address', false, false, null, 'xs:string', null, '2345243', null, null, 5438961292355445872, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-8830530707300893583, null, null, 'icon_image', false, true, 'This variable is used to define the name of a GIF, PNG, or JPG image that should be associated with this service. This image will be displayed in the status and extended information CGIs. The image will look best if it is 40x40 pixels in size. Images for services are assumed to be in the logos/ subdirectory in your HTML images directory (i.e. /usr/local/nagios/share/images/logos).', 'xs:string', null, null, null, null, 8986099038471647984, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (-8821928524660797481, -5591169885085062245, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-7761184485249285917', null, null, 4676329405888212410, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-8813544275977616160, -233879330447984334, 'IPv6 Address', 'IPv6Address', false, false, null, 'xs:string', null, null, null, null, 6936928594960133541, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-8811070545080953569, null, 'Default Value', 'value', false, true, null, 'xs:string', null, null, null, null, -1286794834007968621, 1, 1, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (-8806791912205724293, 2338142333132801027, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-6624236066440953660', null, null, 7477104874606756567, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-8805546090508530221, null, 'WAN IP Address', 'WAN_IPAddress', false, true, null, 'xs:string', null, null, null, null, 9059693167497789202, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (-8792887254467913041, null, 'Service', 'Service', true, true, null, 'oneCMDB:#-4678966175358915668', 'oneCMDB:#-3863377389438174788', null, null, null, -4924123363775224211, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-8791954955986718586, -440157865350204885, 'License Key', 'LicenseKey', false, true, null, 'xs:string', null, null, null, null, 1769375665960405126, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-8783773519407344633, 3284846158102965914, 'Location', 'Location', true, false, null, 'oneCMDB:#-3200591116467062442', 'oneCMDB:#-8025526327383936657', 'oneCMDB:#1961996016055583260', 1961996016055583260, null, -38466446972918069, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-8775561476610641012, 1905201741554936413, 'Source', 'source', true, true, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, null, null, null, 5024896043547205381, 1, 1, '2016-12-28 15:59:31', '2016-12-28 15:59:31');
INSERT INTO onecmdb.t_attribute VALUES (-8769764381058235984, -1136630148419967552, 'Manufacturer', 'Manufacturer', true, true, null, 'oneCMDB:#5433965781192492423', 'oneCMDB:#-8025526327383936657', null, null, null, 2522367028350860395, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-8761466877815114818, null, null, 'address', false, true, 'This directive is used to define the address of the host. Normally, this is an IP address, although it could really be anything you want (so long as it can be used to check the status of the host). You can use a FQDN to identify the host instead of an IP address, but if DNS services are not availble this could cause problems. When used properly, the $HOSTADDRESS$ macro will contain this address. Note: If you do not specify an address directive in a host definition, the name of the host will be used as its address. A word of caution about doing this, however - if DNS fails, most of your service checks will fail because the plugins will be unable to resolve the host name.', 'xs:string', null, null, null, null, -6108598720877681394, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (-8760268205074395322, -752431900193616089, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#6936928594960133541', null, null, -4877615434796502236, 1, 1, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (-8758838998731144583, -1524543709740163214, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-306753241820469847', null, null, 707827061935519211, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-8757693827206823223, -4770438216895557579, 'Maintenance Info', 'Maintenance', true, true, null, 'oneCMDB:#7154244997109246053', 'oneCMDB:#-8025526327383936657', null, null, null, 5757536082740955330, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-8747105446696482927, -191070276069451799, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'computer', null, null, 5438961292355445872, 1, 0, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-8735963288769102515, 5783848573729691575, 'OS Family', 'Family', false, true, null, 'xs:string', null, 'Linux', null, null, -5508999552889392857, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-8713525033916958150, -8792887254467913041, 'Service', 'Service', true, true, null, 'oneCMDB:#-4678966175358915668', 'oneCMDB:#-3863377389438174788', null, null, null, 1325117208637117274, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-8711503695312995505, -5669522693763744355, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, 5159308085069907466, 1, 0, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (-8709492661035879601, -2618406701348405411, 'IPv4 Address', 'IPAddress', false, true, null, 'xs:string', null, null, null, null, -1407617025811333519, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-8675484819206092374, 6458362403191095587, 'Financial Info', 'Financial', true, true, null, 'oneCMDB:#-4030583075832430887', 'oneCMDB:#-8025526327383936657', null, null, null, 3865960124110820148, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-8667412002317578252, -4514408188315887915, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#5386807379325515575', null, null, -1446026942692189857, 1, 1, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (-8630867023366634538, 167682503217310041, 'Purchase Date', 'Purchase_Date', false, false, null, 'xs:date', null, '2006-10-15', null, '2006-10-15 12:00:01', -4650663127884378612, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-8616284829396925721, 5648763990242826958, null, 'objectType', false, true, 'The object definition name.', 'xs:string', null, 'servicegroup', null, null, -1912794354431148047, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-8604379412536952539, 2338142333132801027, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#5448442896062760526', null, null, 7738141344057591836, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-8603102978338421612, -2448778582390853220, 'Target', 'target', true, true, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, null, null, null, 4825510563751653831, 1, 1, '2016-12-28 16:01:48', '2016-12-28 16:01:48');
INSERT INTO onecmdb.t_attribute VALUES (-8600498439365038722, -1524543709740163214, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#2970960574384196618', null, null, 4891914077422526390, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-8599567357532952493, null, null, 'retry_interval', false, true, 'This directive is used to define the number of "time units" to wait before scheduling a re-check of the service. Services are rescheduled at the retry interval when they have changed to a non-OK state. Once the service has been retried max_check_attempts times without a change in its status, it will revert to being scheduled at its "normal" rate as defined by the check_interval value. Unless you’ve changed the interval_length directive from the default value of 60, this number will mean minutes. More information on this value can be found in the check scheduling documentation.', 'xs:integer', null, null, null, null, 8986099038471647984, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (-8598806207489321439, 7928718072314921126, 'Maintenance Info', 'Maintenance', true, false, null, 'oneCMDB:#7154244997109246053', 'oneCMDB:#-8025526327383936657', 'oneCMDB:#3582055101908388606', 3582055101908388606, null, 4899068668525632836, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-8565083791729909195, 2684607629046987153, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, -6506605842191301632, 1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-8538596011119125457, -5920425642647881346, 'Name', 'Name', false, false, null, 'xs:string', null, 'Acme Intranet', null, null, 4865346868591089587, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-8522372941645117946, -605019068309621708, 'Uses', 'Uses', true, true, null, 'oneCMDB:#7491575733809579230', 'oneCMDB:#7815034950157158561', null, null, null, -6599040348753944674, -1, 0, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (-8500671854381866857, -6557037183304594188, 'Status', 'status', false, false, null, 'xs:string', null, null, null, null, -4992730422267492319, 1, 1, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (-8494412312732328497, null, null, 'notes', false, true, 'This directive is used to define an optional string of notes pertaining to the host. If you specify a note here, you will see the it in the extended information CGI (when you are viewing information about the specified host).', 'xs:string', null, null, null, null, -4154185814876458058, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (-8485315990249408161, 7561040409596471810, 'Purchase Contract', 'Purchase_Contract', false, false, null, 'xs:anyURI', null, 'http://www.onecmdb.org/docs/BasicDatacenter/docs/Dummy_Purchase_Contract.pdf', null, null, -8154505932687141586, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-8482606000554905430, -5591169885085062245, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-8931481580316879494', null, null, 6690197867896386800, 1, 1, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (-8462700644855981550, null, 'Delimter', 'delimiter', false, true, null, 'xs:string', null, null, null, null, -4738509295938085926, 1, 1, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (-8456067079772411055, 2338142333132801027, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#6109272791907384000', null, null, 1130587008037623531, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-8455685597257879918, 2684014330841366898, null, 'icon', false, true, 'Filename (no file extension) of icon image.', 'xs:string', null, 'one', null, null, 2131019018525781385, 1, 0, '2016-12-28 15:59:34', '2016-12-28 15:59:34');
INSERT INTO onecmdb.t_attribute VALUES (-8451975258740952876, -1524543709740163214, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#2763197975055376610', null, null, 3292283325467518720, 1, 1, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (-8448582035087296374, -2445963789720288878, null, 'icon', false, true, 'Filename (no file extension) of icon image.', 'xs:string', null, null, null, null, 8260888867499517871, 1, 0, '2016-12-27 17:05:11', '2016-12-27 17:05:11');
INSERT INTO onecmdb.t_attribute VALUES (-8433560385567901123, null, null, 'process_perf_data', false, true, 'This directive is used to determine whether or not the processing of performance data is enabled for this service. Values: 0 = disable performance data processing, 1 = enable performance data processing.', 'xs:integer', null, null, null, null, 8986099038471647984, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (-8432561932573761940, 4485352581660378118, 'Protocol', 'Protocol', false, true, null, 'xs:string', null, null, null, null, 6704163766313149585, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (-8416676933288925566, -1040856819005843342, null, 'use', false, true, 'The template this nagios config entry should derived from.', 'xs:string', null, null, null, null, 5505300793486821851, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-8392372308825433870, 6458362403191095587, 'Financial Info', 'Financial', true, true, null, 'oneCMDB:#-4030583075832430887', 'oneCMDB:#-8025526327383936657', null, null, null, -5165488382750819713, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-8386345444884865914, -1524543709740163214, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-38466446972918069', null, null, -4640679884142593412, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-8377791793375859158, -5591169885085062245, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-3555672197290052160', null, null, 817799169808668737, 1, 1, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (-8374854178357655280, -5669522693763744355, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, -2832314825335747607, 1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-8372851912985888663, 96475156001460780, 'Service', 'Service', true, true, null, 'oneCMDB:#-4678966175358915668', 'oneCMDB:#-3863377389438174788', null, null, null, -5165488382750819713, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-8368510745327766668, 5729956576303207759, 'IPv4 Address', 'IPAddress', false, true, null, 'xs:string', null, null, null, null, 5068478429873757722, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-8357900345269518242, 1504677901342739479, null, 'start', false, true, null, 'xs:string', null, null, null, null, -6754672868001187115, 1, 1, '2016-12-27 17:05:12', '2016-12-27 17:05:12');
INSERT INTO onecmdb.t_attribute VALUES (-8348087354050614611, -7757143298352481143, 'License Key', 'LicenseKey', false, true, null, 'xs:string', null, 'MSOL-4566-7768-6786', null, null, 4037843118202851281, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-8341611617304747573, -5669522693763744355, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, -7576219130276881614, 1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-8327480337311876503, -2175943913041424956, 'MAC Address', 'MAC_Address', false, false, null, 'xs:string', null, '2345345234', null, null, 1198750186879466999, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-8327088137442894077, -3085499285560338061, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'asset', null, null, -6502872628718390337, 1, 0, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-8308870358288093494, -3085499285560338061, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'asset', null, null, -8154505932687141586, 1, 0, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-8301191215084412052, 3521168720769405274, null, 'name', false, true, 'The template name referenced with the use attribute.', 'xs:string', null, null, null, null, 8986099038471647984, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-8296281971500491294, null, null, 'retain_status_information', false, true, 'This directive is used to determine whether or not status-related information about the service is retained across program restarts. This is only useful if you have enabled state retention using the retain_state_information directive. Value: 0 = disable status information retention, 1 = enable status information retention.', 'xs:integer', null, null, null, null, 8986099038471647984, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (-8286437120942524510, -3484398261403397581, 'Serial Number', 'SerialNumber', false, false, null, 'xs:string', null, '235-SDFG-2345', null, null, 5448442896062760526, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-8282017526142535459, null, 'DataSetMatcher', 'dataSetMatcher', true, true, null, 'oneCMDB:#489834941922956076', 'oneCMDB:#5024896043547205381', null, null, null, 4003664281832297273, -1, 0, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (-8271234001792086400, -5012192948753502156, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#2376092523771938845', null, null, 8597807869981412296, 1, 1, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (-8269118013275217255, 9011789143889559455, null, 'icon', false, true, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, 8916998895021029152, 1, 0, '2016-12-27 17:05:12', '2016-12-27 17:05:12');
INSERT INTO onecmdb.t_attribute VALUES (-8265171914493711466, -1962948928067916253, 'Financial Info', 'Financials', true, true, null, 'oneCMDB:#-4030583075832430887', 'oneCMDB:#-8025526327383936657', null, null, null, 6971205699962462965, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-8261365015447056871, null, null, 'ciPolicy', true, true, null, 'oneCMDB:#831375279177628912', 'oneCMDB:#5179857591352919088', null, null, null, 8439080357747159894, 1, 1, '2016-12-27 17:05:11', '2016-12-27 17:05:11');
INSERT INTO onecmdb.t_attribute VALUES (-8253280765712651491, null, 'Stdout', 'stdout', false, true, null, 'xs:string', null, null, null, null, 2386299380460541961, 1, 1, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (-8251821165676101865, -5664724427834647906, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, 5720246255755312151, 1, 0, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (-8251628880977100576, -5591169885085062245, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#5601229157724855285', null, null, -6521220322564400643, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-8235767327012357477, -6190740745144706486, 'Config Entry', 'mdrConfigEntry', true, false, null, 'oneCMDB:#3521914687713450939', 'oneCMDB:#8800458200064057403', 'oneCMDB:#8860131275095915741', 8860131275095915741, null, 4675968942250705277, 1, 1, '2016-12-28 16:02:05', '2016-12-28 16:02:05');
INSERT INTO onecmdb.t_attribute VALUES (-8231567969646291016, -7864056379824506719, 'Java Class Name', 'javaClass', false, true, null, 'xs:string', null, 'org.onecmdb.core.utils.transform.DataSetSelector', null, null, 4003664281832297273, 1, 1, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (-8208964513778731752, -8885097571508953844, 'Network', 'Network', true, false, null, 'oneCMDB:#-838366469867279794', 'oneCMDB:#-3863377389438174788', null, null, null, -38466446972918069, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-8200661809430751562, -5591169885085062245, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-8154505932687141586', null, null, 937840216150955399, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-8170664140090465195, 2684607629046987153, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, -2808934720526286919, 1, 0, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (-8168892249986766781, -1524543709740163214, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-7048484407295153374', null, null, -6012107529363071363, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-8168590859654095005, -653152380451391655, null, 'icon', false, true, 'Filename (no file extension) of icon image.', 'xs:string', null, 'network_service', null, null, -9108137049616996309, 1, 0, '2016-12-28 16:01:48', '2016-12-28 16:01:48');
INSERT INTO onecmdb.t_attribute VALUES (-8159814561545330113, 5729956576303207759, 'IPv4 Address', 'IPAddress', false, true, null, 'xs:string', null, null, null, null, 4774848979350389203, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-8156709246695355115, -8713525033916958150, 'Service', 'Service', true, true, null, 'oneCMDB:#-4678966175358915668', 'oneCMDB:#-3863377389438174788', null, null, null, 9059693167497789202, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-8149044020502594882, 4938235785368350604, 'Serial Number', 'SerialNumber', false, true, null, 'xs:string', null, null, null, null, -239896225795807576, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-8144224673712551298, -6632423344383055884, 'Name', 'Name', false, true, null, 'xs:string', null, 'Component', null, null, 2317423548075909079, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-8141104042280976256, null, null, 'failure_prediction_enabled', false, true, 'Un documented in Nagios 3.x version.', 'xs:integer', null, null, null, null, 8986099038471647984, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (-8136392216021963641, 6729170356289957298, 'Version', 'Version', false, true, null, 'xs:string', null, null, null, null, 4338151747944765362, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-8124951131170515492, -5669522693763744355, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, -2137122543479173001, 1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-8122825154889878317, -2489227691804354699, null, 'Hostname', false, false, null, 'xs:string', null, 'rt-atl-01', null, null, -38466446972918069, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-8118305273587498337, 5732699708061790012, 'MAC Address', 'MAC_Address', false, false, null, 'xs:string', null, null, null, null, -38466446972918069, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-8107105567196579341, -7690474455314968018, 'Natural Key', 'naturalKey', false, true, null, 'xs:boolean', null, null, null, null, -4090127195608060880, 1, 1, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (-8093881876460434371, -9143811055134819436, null, 'Hostname', false, false, null, 'xs:string', null, null, null, null, 5448442896062760526, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-8087070549377169868, -6632423344383055884, 'Name', 'Name', false, true, null, 'xs:string', null, 'System', null, null, 1325117208637117274, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-8084196325198171907, -5012192948753502156, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-6553834200975625641', null, null, -6506605842191301632, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-8078924064243373583, -7885775411159143720, 'Reject Cause', 'rejectCause', false, false, null, 'xs:string', null, null, null, null, 4675968942250705277, 1, 1, '2016-12-28 16:02:05', '2016-12-28 16:02:05');
INSERT INTO onecmdb.t_attribute VALUES (-8074291427700500371, -653152380451391655, null, 'icon', false, true, 'Filename (no file extension) of icon image.', 'xs:string', null, 'platform_service', null, null, -8820227643856541952, 1, 0, '2016-12-28 16:01:48', '2016-12-28 16:01:48');
INSERT INTO onecmdb.t_attribute VALUES (-8063399896903723077, -5669522693763744355, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, 2725616338268238790, 1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-8056655725586976627, 9139225598348518079, 'Location', 'Location', true, false, null, 'oneCMDB:#-3200591116467062442', 'oneCMDB:#-8025526327383936657', 'oneCMDB:#853812382909041303', 853812382909041303, null, 1198750186879466999, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-8055860893202245401, -1492543261898951824, 'Java Class Name', 'javaClass', false, true, null, 'xs:string', null, 'org.onecmdb.core.utils.transform.xml.XMLDataSource', null, null, -8759295909666495513, 1, 1, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (-8054325322583730922, 7592041216613329462, 'Exec Message', 'execMessage', false, false, null, 'xs:string', null, null, null, null, 4675968942250705277, 1, 1, '2016-12-28 16:02:05', '2016-12-28 16:02:05');
INSERT INTO onecmdb.t_attribute VALUES (-8044527099482909995, 2089712144092925239, 'DSL Entry', 'DSLEntry', false, false, null, 'xs:anyURI', null, 'http://onecmdb.org/docs/BasicDatacenter/DSL/Dummy_Software_Package.txt', null, null, -7171807647212474252, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-8032206424771457608, 1105016949200627513, null, 'icon', false, true, 'Filename (no file extension) of icon image.', 'xs:string', null, 'linux', null, null, -1951039734141517216, 1, 0, '2016-12-28 16:01:48', '2016-12-28 16:01:48');
INSERT INTO onecmdb.t_attribute VALUES (-8026464591490613486, -5591169885085062245, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#2970960574384196618', null, null, -3019506684664744401, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-8010272212934454265, 6353112808861710841, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'resource', null, null, -8179192753960381879, 1, 0, '2016-12-28 16:01:48', '2016-12-28 16:01:48');
INSERT INTO onecmdb.t_attribute VALUES (-8008944540391586829, null, null, 'alias', false, true, 'This directive is used to define a longer name or description used to identify the contact group.', 'xs:string', null, null, null, null, 5505300793486821851, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (-7997078076980171360, null, null, 'action_url', false, true, 'This directive is used to define an optional URL that can be used to provide more actions to be performed on the service. If you specify an URL, you will see a red "splat" icon in the CGIs (when you are viewing service information) that links to the URL you specify here. Any valid URL can be used. If you plan on using relative paths, the base path will the the same as what is used to access the CGIs (i.e. /cgi-bin/nagios/).', 'xs:string', null, null, null, null, 8986099038471647984, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (-7959105164388150927, -5664724427834647906, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, 1558088984971663166, 1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-7953982292679199776, 3539801174688424857, 'DSL Entry', 'DSLEntry', false, false, null, 'xs:anyURI', null, 'http://www.onecmdb.org/docs/BasicDatacenter/DSL/Dummy_Software_Package.txt', null, null, -7315267361872023940, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-7935744992071325072, -5669522693763744355, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, 3582055101908388606, 1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-7932836659085728563, 2338142333132801027, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-4632697620056224887', null, null, -8299453159977117819, 1, 1, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (-7913358530174141021, 7436757148263249154, null, 'process', true, true, null, 'oneCMDB:#1634733290972246121', 'oneCMDB:#8916998895021029152', null, null, null, -5561407348793484989, 1, 1, '2016-12-27 17:05:12', '2016-12-27 17:05:12');
INSERT INTO onecmdb.t_attribute VALUES (-7900994534499537232, -5012192948753502156, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-4240101805785438545', null, null, -8597405831502449749, 1, 1, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (-7890904614705006398, 8241388880163795721, 'License Key', 'LicenseKey', false, true, null, 'xs:string', null, null, null, null, 4338151747944765362, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-7885775411159143720, null, 'Reject Cause', 'rejectCause', false, true, null, 'xs:string', null, null, null, null, 2386299380460541961, 1, 1, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (-7874727282635375406, null, null, 'notes', false, true, 'This directive is used to define an optional string of notes pertaining to the host. If you specify a note here, you will see the it in the extended information CGI (when you are viewing information about the specified host).', 'xs:string', null, null, null, null, -6108598720877681394, 1, 1, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (-7874494863476418912, null, 'Telephone', 'Telephone', false, true, null, 'xs:string', null, null, null, null, 5433965781192492423, -1, 0, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (-7874344126756091446, 7928718072314921126, 'Maintenance Info', 'Maintenance', true, true, null, 'oneCMDB:#7154244997109246053', 'oneCMDB:#-8025526327383936657', null, null, null, -1407617025811333519, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-7868151093536211927, -8159814561545330113, 'IPv4 Address', 'IPAddress', false, true, null, 'xs:string', null, null, null, null, 2166601380421831026, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-7864056379824506719, 6319071884189180505, 'Java Class Name', 'javaClass', false, true, null, 'xs:string', null, 'org.onecmdb.core.utils.transform.DataSet', null, null, 5263207391443191195, 1, 1, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (-7843937325342947390, -2175943913041424956, 'MAC Address', 'MAC_Address', false, false, null, 'xs:string', null, '5464263', null, null, 5448442896062760526, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-7843173458270108984, 979201255397133022, 'Name', 'name', false, false, null, 'xs:string', null, 'Export Nagios', null, null, -4474468114987171564, 1, 1, '2016-12-28 16:01:48', '2016-12-28 16:01:48');
INSERT INTO onecmdb.t_attribute VALUES (-7827760128799638725, 3521168720769405274, null, 'name', false, true, 'The template name referenced with the use attribute.', 'xs:string', null, null, null, null, -2437713139919564933, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-7825297943136353502, null, null, 'icon_image', false, true, null, 'xs:string', null, null, null, null, -2437713139919564933, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (-7822415438277388110, 6678220388808849742, 'Name', 'Name', false, false, null, 'xs:string', null, 'Dgould Desktop', null, null, 2763197975055376610, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-7821604861585380629, 4869468365480249401, null, 'register', false, true, 'If this entry should be an instances and a template.', 'xs:string', null, null, null, null, -3885642522584708287, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-7817155726648603284, null, 'Group', 'group', true, true, 'The permissions connected to this role', 'oneCMDB:#7937065981750200200', 'oneCMDB:#-453323538046497526', null, null, null, 6915891861069126862, -1, 0, '2016-12-27 17:05:10', '2016-12-27 17:05:10');
INSERT INTO onecmdb.t_attribute VALUES (-7815806038390606089, 7509599446167191926, 'E-Mail', 'Email', false, false, null, 'xs:string', null, '<EMAIL>', null, null, -5066900477255422158, -1, 0, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (-7813481326111971488, -4037773816682465299, 'Installed On', 'InstalledOn', true, true, null, 'oneCMDB:#-1168493350923132665', 'oneCMDB:#4825510563751653831', null, null, null, -5058684262027826612, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (-7811867657109114852, -5982876531729148667, 'Maintenance Level', 'Maintenance_Level', false, false, null, 'xs:string', null, '7x24', null, null, 2970960574384196618, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-7801836106507496430, -5591169885085062245, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-8931481580316879494', null, null, 707827061935519211, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-7790263280721934935, null, null, 'action_url', false, true, 'This directive is used to define an optional URL that can be used to provide more actions to be performed on the host group. If you specify an URL, you will see a red "splat" icon in the CGIs (when you are viewing hostgroup information) that links to the URL you specify here. Any valid URL can be used. If you plan on using relative paths, the base path will the the same as what is used to access the CGIs (i.e. /cgi-bin/nagios/).', 'xs:string', null, null, null, null, -4154185814876458058, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (-7789138792248944835, 5729956576303207759, 'IPv4 Address', 'IPAddress', false, true, null, 'xs:string', null, null, null, null, -239896225795807576, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-7785915954946430182, 4646922231658548033, null, 'useName', false, true, 'If the instance should include it''s name. Eq if this instance is used by another instance.', 'xs:boolean', null, null, null, null, -4154185814876458058, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-7762918521606136468, 7856327862604147733, 'Telephone', 'Telephone', false, false, null, 'xs:string', null, '(212) 868 1012', null, null, -6388783933053098658, -1, 0, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (-7758799046945524596, -1303877515446836590, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-4856766876697112377', null, null, 6842051815725792483, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-7758164584463198686, 8241388880163795721, 'License Key', 'LicenseKey', false, true, null, 'xs:string', null, null, null, null, -294406670328424842, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-7757143298352481143, -440157865350204885, 'License Key', 'LicenseKey', false, true, null, 'xs:string', null, null, null, null, -5998842903881319824, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-7752434477032975254, null, 'Financial Info', 'Financials', true, true, null, 'oneCMDB:#-4030583075832430887', 'oneCMDB:#-8025526327383936657', null, null, null, -4924123363775224211, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-7724392003151021718, -1478756811695415278, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, -5918718310695670706, 1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-7718528382892313710, -5490798092900618495, 'DSL Entry', 'DSLEntry', false, true, null, 'xs:anyURI', null, null, null, null, -5998842903881319824, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-7717339379377306545, 9197003183923643110, null, 'icon', false, true, 'Filename (no file extension) of icon image.', 'xs:string', null, null, null, null, -6607949822377854428, 1, 0, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (-7715173140781279769, 454245518513090804, 'Used By', 'UsedBy', true, false, null, 'oneCMDB:#5433965781192492423', 'oneCMDB:#-8025526327383936657', 'oneCMDB:#337820764651126728', 337820764651126728, null, -6553834200975625641, -1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-7712541304759324115, 3019124727075563373, 'Maintenance Info', 'Maintenance', true, false, null, 'oneCMDB:#7154244997109246053', 'oneCMDB:#-8025526327383936657', 'oneCMDB:#-7575172238653513809', -7575172238653513809, null, -7315267361872023940, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-7706211468886952932, -8675484819206092374, 'Financial Info', 'Financial', true, false, null, 'oneCMDB:#-4030583075832430887', 'oneCMDB:#-8025526327383936657', 'oneCMDB:#3708927354344220064', 3708927354344220064, null, -7171807647212474252, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-7695310026668953186, 4168272132656335525, 'Network', 'Network', true, true, null, 'oneCMDB:#-838366469867279794', 'oneCMDB:#-3863377389438174788', null, null, null, 2522367028350860395, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-7693949724156307046, -3068912336442916125, 'Installed On', 'InstalledOn', true, true, null, 'oneCMDB:#1325117208637117274', 'oneCMDB:#4825510563751653831', null, null, null, -5508999552889392857, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-7690892823114257820, -8805546090508530221, 'WAN IP Address', 'WAN_IPAddress', false, true, null, 'xs:string', null, null, null, null, -1407617025811333519, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (-7690474455314968018, -4325908530580821491, 'Natural Key', 'naturalKey', false, true, null, 'xs:boolean', null, null, null, null, -6232223556065183933, 1, 1, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (-7679707623928173196, -752431900193616089, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#1198750186879466999', null, null, 3526545237578377375, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-7673558471757893865, 4599471661187751239, 'Maintenance Org.', 'Maintenance_Org', true, false, null, 'oneCMDB:#5433965781192492423', 'oneCMDB:#-8025526327383936657', 'oneCMDB:#-4924263808219888120', -4924263808219888120, null, -5055663519884480021, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-7670637430424212269, -8159814561545330113, 'IPv4 Address', 'IPAddress', false, true, null, 'xs:string', null, null, null, null, 5575307939015290823, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-7662109539626484546, 2338142333132801027, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#1198750186879466999', null, null, -4562263953046860294, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-7646176718298868076, null, 'Resource URL', 'url', false, true, null, 'xs:anyURI', null, null, null, null, 6793847683509953458, 1, 1, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (-7633339217662278511, 167682503217310041, 'Purchase Date', 'Purchase_Date', false, false, null, 'xs:date', null, '2007-10-10', null, '2007-10-10 12:00:00', -4622793531067663618, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-7632209003039997057, -1524543709740163214, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#3872536235728130109', null, null, -472303727294703067, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-7632207771769379332, null, 'DSL Entry', 'DSLEntry', false, true, null, 'xs:anyURI', null, null, null, null, 3938641235467758932, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-7631113389345104800, 4804824971481914461, 'Installed On', 'InstalledOn', true, true, null, 'oneCMDB:#-1168493350923132665', 'oneCMDB:#4825510563751653831', null, null, null, -5000743863724034311, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (-7626740507375245878, -5591169885085062245, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#5601229157724855285', null, null, 5180604568546827291, 1, 1, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (-7606510020553598892, -5591169885085062245, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-8931481580316879494', null, null, 6250599673472111602, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-7574146456549487653, -5591169885085062245, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-4582254474109262389', null, null, 4584492750138991208, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-7563188298198512841, -5591169885085062245, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-8154505932687141586', null, null, -4088187284430895045, 1, 1, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (-7552274382963320672, null, null, 'action_url', false, true, 'This directive is used to define an optional URL that can be used to provide more actions to be performed on the service group. If you specify an URL, you will see a red "splat" icon in the CGIs (when you are viewing service group information) that links to the URL you specify here. Any valid URL can be used. If you plan on using relative paths, the base path will the the same as what is used to access the CGIs (i.e. /cgi-bin/nagios/).', 'xs:string', null, null, null, null, -1912794354431148047, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (-7538601991925971007, null, null, 'icon_image_alt', false, true, null, 'xs:string', null, null, null, null, -2437713139919564933, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (-7532190593322818486, 9180838692583090870, 'Name', 'Name', false, false, null, 'xs:string', null, 'Financials Microsoft (applic)', null, null, 7611584779566472356, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-7523913682344275685, -5982876531729148667, 'Maintenance Level', 'Maintenance_Level', false, false, null, 'xs:string', null, '5x8', null, null, -8931481580316879494, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-7515047285588033562, -1524543709740163214, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-8931481580316879494', null, null, 673292606483933488, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-7480885693105589137, -422531685061586967, 'Name', 'Name', false, true, null, 'xs:string', null, 'Server Application', null, null, 1769375665960405126, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-7478637079806485791, 8083508627834560426, 'Name', 'Name', false, true, null, 'xs:string', null, 'Company', null, null, 5433965781192492423, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (-7475751755856524520, 6569784110107969048, 'Name', 'Name', false, false, null, 'xs:string', null, 'MS Outlook', null, null, 8451682648722222209, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-7474419926186605885, -1478756811695415278, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, -6594416363670802186, 1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-7467194419987278343, -1524543709740163214, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#5448442896062760526', null, null, 8607736559096888901, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-7452755219934599501, 7561040409596471810, 'Purchase Contract', 'Purchase_Contract', false, false, null, 'xs:anyURI', null, 'http://www.onecmdb.org/docs/BasicDatacenter/docs/Dummy_Purchase_Contract.pdf', null, null, -7761184485249285917, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-7450018083003027886, -5669522693763744355, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, -4640679884142593412, 1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-7449625751476275219, -6217223020108945296, 'Auto Commit', 'autoCommit', false, false, null, 'xs:boolean', null, null, null, null, -4474468114987171564, 1, 1, '2016-12-28 16:01:48', '2016-12-28 16:01:48');
INSERT INTO onecmdb.t_attribute VALUES (-7442296227185441428, -8791954955986718586, 'License Key', 'LicenseKey', false, true, null, 'xs:string', null, null, null, null, -5165488382750819713, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-7439329609898581832, 1194001177212652620, 'Service', 'Service', true, true, null, 'oneCMDB:#-4678966175358915668', 'oneCMDB:#-3863377389438174788', null, null, null, -6599040348753944674, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-7438784987438056416, -5664724427834647906, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, -7664282384609793106, 1, 0, '2016-12-28 16:01:53', '2016-12-28 16:01:53');
INSERT INTO onecmdb.t_attribute VALUES (-7435973747647184227, -9143811055134819436, null, 'Hostname', false, false, null, 'xs:string', null, null, null, null, 1198750186879466999, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-7430313369664896762, -3762283678602573282, 'Maintenance Info', 'Maintenance', true, false, null, 'oneCMDB:#7154244997109246053', 'oneCMDB:#-8025526327383936657', 'oneCMDB:#-4026035656368473238', -4026035656368473238, null, 5448442896062760526, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-7394642593263626425, -191070276069451799, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'computer', null, null, 5612781772166901244, 1, 0, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-7385727968787411797, 96475156001460780, 'Service', 'Service', true, true, null, 'oneCMDB:#-4678966175358915668', 'oneCMDB:#-3863377389438174788', null, null, null, 6704163766313149585, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-7361533168553517513, -5669522693763744355, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, -415785062668355818, 1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-7348692015757338860, -5012192948753502156, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-4856766876697112377', null, null, 323022922402464520, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-7305331747861148599, -1897151320867645427, null, 'icon', false, true, 'Filename (no file extension) of icon image.', 'xs:string', null, 'mswindows', null, null, 72883027723141449, 1, 0, '2016-12-28 16:01:48', '2016-12-28 16:01:48');
INSERT INTO onecmdb.t_attribute VALUES (-7277991087315330698, -1524543709740163214, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#4298307837787561059', null, null, 4306353254172667766, 1, 1, '2016-12-28 16:01:53', '2016-12-28 16:01:53');
INSERT INTO onecmdb.t_attribute VALUES (-7265359562611447163, -5669522693763744355, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, -3019506684664744401, 1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-7264067984786538170, -2445963789720288878, null, 'icon', false, true, 'Filename (no file extension) of icon image.', 'xs:string', null, null, null, null, 393805027739339455, 1, 0, '2016-12-27 17:05:11', '2016-12-27 17:05:11');
INSERT INTO onecmdb.t_attribute VALUES (-7260111208447429218, 3221537918336219026, 'Maintenance Info', 'Maintenance', true, false, null, 'oneCMDB:#7154244997109246053', 'oneCMDB:#-8025526327383936657', 'oneCMDB:#-5867307528194865015', -5867307528194865015, null, 8067161067550301549, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-7257676698846837290, -707269280037726380, 'OS Family', 'Family', false, false, null, 'xs:string', null, 'Windows', null, null, 5872623185044658259, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-7247426402738209627, -2828568716239927004, 'Service', 'Service', true, false, null, 'oneCMDB:#-4678966175358915668', 'oneCMDB:#-3863377389438174788', 'oneCMDB:#2981264946819102869', 2981264946819102869, null, 7503285799199789397, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-7247233712586007328, 4869468365480249401, null, 'register', false, true, 'If this entry should be an instances and a template.', 'xs:string', null, null, null, null, 7535307617655623766, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-7240519910331630730, 9180838692583090870, 'Name', 'Name', false, false, null, 'xs:string', null, 'Financials Dell #2', null, null, 1616600853113017715, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-7227627607267672673, -1524543709740163214, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#8067161067550301549', null, null, -5867307528194865015, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-7222577200332478233, 1330705152963292454, 'Service', 'Service', true, true, null, 'oneCMDB:#-4678966175358915668', 'oneCMDB:#-3863377389438174788', null, null, null, -389893205101279185, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-7217259976989157266, -7868151093536211927, 'IPv4 Address', 'IPAddress', false, false, null, 'xs:string', null, '192.168.3.11', null, null, 5438961292355445872, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-7206226965681373650, 2587356871361375816, 'Config Alias', 'configAlias', false, false, null, 'xs:string', null, 'Nagios_MDR_Config', null, null, 1475166283656461378, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-7190716572781099576, -6591540401442375548, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, 8860131275095915741, 1, 0, '2016-12-28 16:02:05', '2016-12-28 16:02:05');
INSERT INTO onecmdb.t_attribute VALUES (-7173664807740378690, 8311479515767203985, 'Purchase Prise (USD)', 'Purchase_Prise', false, false, null, 'xs:integer', null, '20', 20, null, 7611584779566472356, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-7172490077932154372, -5012192948753502156, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-8037939061718373803', null, null, 632499092524139632, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-7145671360499582846, -3979711827897002409, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#8451682648722222209', null, null, 1558088984971663166, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-7127218458437375182, -5591169885085062245, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-3555672197290052160', null, null, -7647209654369308926, 1, 1, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (-7115025372138729322, 2684607629046987153, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, 7477104874606756567, 1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-7110837008954417395, -1524543709740163214, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#5438961292355445872', null, null, 3025816063893178852, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-7109143394933600495, null, null, 'retain_status_information', false, true, 'This directive is used to determine whether or not status-related information about the host is retained across program restarts. This is only useful if you have enabled state retention using the retain_state_information directive. Value: 0 = disable status information retention, 1 = enable status information retention.', 'xs:integer', null, null, null, null, -6108598720877681394, 1, 1, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (-7106279810935070980, 3262608207144070454, 'Start', 'commitStart', false, false, null, 'xs:dateTime', null, null, null, null, 4675968942250705277, 1, 1, '2016-12-28 16:02:05', '2016-12-28 16:02:05');
INSERT INTO onecmdb.t_attribute VALUES (-7099928072853719292, null, 'DataSet', 'dataSet', true, true, null, 'oneCMDB:#5263207391443191195', 'oneCMDB:#5024896043547205381', null, null, null, 3854928064624729302, 1, 1, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (-7086366648154941667, -2918011532607696492, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'resource', null, null, 5151759019686704213, 1, 0, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-7080938278081639325, -2540134846449235705, 'Maintenance Info', 'Maintenance', true, false, null, 'oneCMDB:#7154244997109246053', 'oneCMDB:#-8025526327383936657', 'oneCMDB:#6690197867896386800', 6690197867896386800, null, -4632697620056224887, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-7075903496691182411, -3979711827897002409, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-3267638157342394138', null, null, 5720246255755312151, 1, 1, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (-7066713332376420779, 7509599446167191926, 'E-Mail', 'Email', false, false, null, 'xs:string', null, '<EMAIL>', null, null, -2521001890385936111, -1, 0, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (-7066591099272221676, -5012192948753502156, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-6553834200975625641', null, null, 5999075076352418955, 1, 1, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (-7056196113845809536, -2448778582390853220, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-6365967536967575940', null, null, -6594416363670802186, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-7036676807585741970, -1425651908532133000, 'Financial Info', 'Financials', true, false, null, 'oneCMDB:#-4030583075832430887', 'oneCMDB:#-8025526327383936657', 'oneCMDB:#-7576219130276881614', -7576219130276881614, null, -38466446972918069, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-7031228387225160297, null, null, 'event_handler_arg', false, true, 'This directive is used to specify the short name of the command that should be run whenever a change in the state of the host is detected (i.e. whenever it goes down or recovers). Read the documentation on event handlers for a more detailed explanation of how to write scripts for handling events. The maximum amount of time that the event handler command can run is controlled by the event_handler_timeout option.', 'xs:string', null, null, null, null, -6108598720877681394, 1, 1, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (-7029941507168243185, 2034449652663875472, 'Error', 'error', false, false, null, 'xs:string', null, null, null, null, 4675968942250705277, 1, 1, '2016-12-28 16:02:05', '2016-12-28 16:02:05');
INSERT INTO onecmdb.t_attribute VALUES (-7028195296824046816, -5669522693763744355, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, -7150282703580789614, 1, 0, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (-7021302883392996858, -5669522693763744355, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, -4088187284430895045, 1, 0, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (-7010423629098214474, -8603102978338421612, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-7048484407295153374', null, null, 1558088984971663166, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-7000142874215220141, 8711832841281364150, 'Financial Info', 'Financial', true, true, null, 'oneCMDB:#-4030583075832430887', 'oneCMDB:#-8025526327383936657', null, null, null, 5676046625265852474, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-6998938127440005529, -5872183086464812927, 'Name', 'Name', false, false, null, 'xs:string', null, 'Atlanta Router', null, null, -38466446972918069, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-6996032909630857113, null, null, 'stalking_options', false, true, 'This directive determines which service states "stalking" is enabled for. Valid options are a combination of one or more of the following: o = stalk on OK states, w = stalk on WARNING states, u = stalk on UNKNOWN states, and c = stalk on CRITICAL states. More information on state stalking can be found here.', 'xs:string', null, null, null, null, 8986099038471647984, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (-6988875528224933959, 7696997261982699603, null, 'icon', false, true, 'Filename (no file extension) of icon image.', 'xs:string', null, 'job', null, null, -5135423644045337547, 1, 0, '2016-12-27 17:05:12', '2016-12-27 17:05:12');
INSERT INTO onecmdb.t_attribute VALUES (-6984673833981892160, -2618406701348405411, 'IPv4 Address', 'IPAddress', false, false, null, 'xs:string', null, null, null, null, -38466446972918069, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-6978270078366726875, -5591169885085062245, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#6080430438857183034', null, null, 1961996016055583260, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-6975978496664684644, 3858978566748600360, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'package', null, null, 3872536235728130109, 1, 0, '2016-12-28 16:01:48', '2016-12-28 16:01:48');
INSERT INTO onecmdb.t_attribute VALUES (-6967494494986837420, -6591540401442375548, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, 2708301732820392314, 1, 0, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (-6963136530581100989, -1735938452221746691, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'mdr', null, null, 1475166283656461378, 1, 0, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-6955698927104691890, 3216849197076107229, 'Maintenance Info', 'Maintenance', true, true, null, 'oneCMDB:#7154244997109246053', 'oneCMDB:#-8025526327383936657', null, null, null, 5068478429873757722, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-6952535916471563987, 2684607629046987153, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, -5347908825861944764, 1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-6950689813159809968, -8713525033916958150, 'Service', 'Service', true, true, null, 'oneCMDB:#-4678966175358915668', 'oneCMDB:#-3863377389438174788', null, null, null, 2522367028350860395, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-6928948673965183269, -5012192948753502156, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-8037939061718373803', null, null, -5347908825861944764, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-6918956405849548722, -2618406701348405411, 'IPv4 Address', 'IPAddress', false, false, null, 'xs:string', null, null, null, null, 8526533317541349136, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-6909715290204323652, 2196487774809878277, 'Name', 'Name', false, false, null, 'xs:string', null, '<NAME>', null, null, 6109272791907384000, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (-6908584902055908512, 5783848573729691575, 'OS Family', 'Family', false, true, null, 'xs:string', null, 'Linux', null, null, 5676046625265852474, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-6906932167898758058, -4405087016263014431, 'Name', 'name', false, true, null, 'xs:string', null, null, null, null, 4972181722220004715, 1, 1, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (-6903952035045128213, -7868151093536211927, 'IPv4 Address', 'IPAddress', false, false, null, 'xs:string', null, '172.16.58.3', null, null, 5612781772166901244, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-6903857781826846283, -8348087354050614611, 'License Key', 'LicenseKey', false, false, null, 'xs:string', null, 'MSOL-4566-7768-6786', null, null, 7503285799199789397, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-6903180868009550718, 2400063756869389014, null, 'icon', false, true, 'Filename (no file extension) of icon image.', 'xs:string', null, null, null, null, 6436463782760758572, 1, 0, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (-6881548560261464932, 2196487774809878277, 'Name', 'Name', false, false, null, 'xs:string', null, '<NAME>', null, null, -6388783933053098658, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (-6876623127637899092, 2338142333132801027, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-7171807647212474252', null, null, 8757673589312859238, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-6871906028808245611, -6868818845750700134, 'Uses', 'Uses', true, false, null, 'oneCMDB:#-4678966175358915668', 'oneCMDB:#7815034950157158561', 'oneCMDB:#6842051815725792483', 6842051815725792483, null, -4856766876697112377, -1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-6868818845750700134, null, 'Uses', 'Uses', true, true, null, 'oneCMDB:#-4678966175358915668', 'oneCMDB:#7815034950157158561', null, null, null, -4678966175358915668, -1, 0, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-6866015795909367857, -7752434477032975254, 'Financial Info', 'Financials', true, true, null, 'oneCMDB:#-4030583075832430887', 'oneCMDB:#-8025526327383936657', null, null, null, 2317423548075909079, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-6831741334556083284, 4171417067138044278, 'Java Class Name', 'javaClass', false, true, null, 'xs:string', null, 'org.onecmdb.core.utils.transform.xml.XPathAttributeSelector', null, null, 6436463782760758572, 1, 1, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (-6817413073615498777, -1524543709740163214, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#5448442896062760526', null, null, 4544942910497465063, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-6795257758625244121, -1478756811695415278, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, 1187948958380702301, 1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-6783199840474955559, -1524543709740163214, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-6624236066440953660', null, null, -2018312901049028095, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-6782286861269825448, -7646176718298868076, 'Resource URL', 'url', false, true, null, 'xs:anyURI', null, null, null, null, -6607949822377854428, 1, 1, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (-6758344848832865144, -5669522693763744355, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, -4141639034389317254, 1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-6747373742474364862, -5982876531729148667, 'Maintenance Level', 'Maintenance_Level', false, false, null, 'xs:string', null, '5x8', null, null, -5055663519884480021, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-6742142035348516237, null, null, 'attributeAliasPattern', false, true, null, 'xs:string', null, '.*.', null, null, 393805027739339455, 1, 1, '2016-12-27 17:05:11', '2016-12-27 17:05:11');
INSERT INTO onecmdb.t_attribute VALUES (-6739512204445101533, 4804824971481914461, 'Installed On', 'InstalledOn', true, false, null, 'oneCMDB:#-1168493350923132665', 'oneCMDB:#4825510563751653831', 'oneCMDB:#-2080580181395438990', -2080580181395438990, null, 3872536235728130109, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (-6733014200668659692, -5669522693763744355, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, 7029272808438756741, 1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-6732007173287938275, 167682503217310041, 'Purchase Date', 'Purchase_Date', false, false, null, 'xs:date', null, '2007-08-20', null, '2007-08-20 12:00:01', -7761184485249285917, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-6728048433633883517, -2893801909097519971, 'Financial Info', 'Financials', true, false, null, 'oneCMDB:#-4030583075832430887', 'oneCMDB:#-8025526327383936657', 'oneCMDB:#817799169808668737', 817799169808668737, null, 6936928594960133541, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-6727618547053224206, -5584557892262552640, 'Instance', 'instance', false, true, null, 'xs:string', null, null, null, null, -4738509295938085926, 1, 1, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (-6725716089154134345, -1524543709740163214, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#5612781772166901244', null, null, -4056084696221288780, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-6699113990780490747, null, null, 'x3d_coords', false, true, 'This variable is used to define coordinates to use when drawing the host in the statuswrl CGI. Coordinates can be positive or negative real numbers. The origin for drawing is (0.0,0.0,0.0). For reference, the size of the host cubes drawn is 0.5 units on each side (text takes a little more space). The coordinates you specify here are used as the center of the host cube.', 'xs:string', null, null, null, null, 739521429005320541, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (-6692859260105005347, -5669522693763744355, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, -6521220322564400643, 1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-6692410937082754498, 2667674826264397235, 'Maintenance Info', 'Maintenance', true, true, null, 'oneCMDB:#7154244997109246053', 'oneCMDB:#-8025526327383936657', null, null, null, 72883027723141449, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-6691467611438723145, null, null, 'pager', false, true, 'This directive is used to define a pager number for the contact. It can also be an email address to a pager gateway (i.e. <EMAIL>). Depending on how you configure your notification commands, it can be used to send out an alert page to the contact. Under the right circumstances, the $CONTACTPAGER$ macro will contain this value.', 'xs:string', null, null, null, null, 7535307617655623766, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (-6687415830270336621, -2448778582390853220, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-6365967536967575940', null, null, -4738155501791797374, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-6674598832963057236, 8311479515767203985, 'Purchase Prise (USD)', 'Purchase_Prise', false, false, null, 'xs:integer', null, '300', 300, null, -8154505932687141586, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-6661829524218098694, null, 'Attribute Selector', 'attributeSelector', true, true, null, 'oneCMDB:#4845305278725074851', 'oneCMDB:#5024896043547205381', null, null, null, 3854928064624729302, 1, 1, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (-6636233235831415545, 3221537918336219026, 'Maintenance Info', 'Maintenance', true, false, null, 'oneCMDB:#7154244997109246053', 'oneCMDB:#-8025526327383936657', 'oneCMDB:#-7141557035276310837', -7141557035276310837, null, 3872536235728130109, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-6635380959429849647, -2892704986996219486, 'IPv6 Address', 'IPv6Address', false, true, null, 'xs:string', null, null, null, null, 3331921274338303097, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-6632423344383055884, 1129369579735025419, 'Name', 'Name', false, true, null, 'xs:string', null, 'Hardware', null, null, -4924123363775224211, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-6625935302516198148, 2044265626984459497, 'Status', 'Status', true, false, null, 'oneCMDB:#41965733952263877', 'oneCMDB:#-8025526327383936657', 'oneCMDB:#2253308242575190041', 2253308242575190041, null, 2763197975055376610, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-6610401404149928608, 5637898351939638534, 'Version', 'Version', false, false, null, 'xs:string', null, 'SP2', null, null, 5872623185044658259, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-6600129365278325696, null, 'Column Number', 'colString', false, true, null, 'xs:string', null, null, null, null, -1723966340589452755, 1, 1, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (-6593361676575060107, null, null, 'command_name', false, true, 'This directive is the short name used to identify the command. It is referenced in contact, host, and service definitions (in notification, check, and event handler directives), among other places.', 'xs:string', null, null, null, null, 1837107117169913746, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-6591540401442375548, -771882460194241171, null, 'icon', false, true, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, 8800458200064057403, 1, 0, '2016-12-28 15:59:31', '2016-12-28 15:59:31');
INSERT INTO onecmdb.t_attribute VALUES (-6585772925938753313, 96475156001460780, 'Service', 'Service', true, true, null, 'oneCMDB:#-4678966175358915668', 'oneCMDB:#-3863377389438174788', null, null, null, -8747012735422861621, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-6583509592874358862, -1040856819005843342, null, 'use', false, true, 'The template this nagios config entry should derived from.', 'xs:string', null, null, null, null, -2437713139919564933, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-6570922032761711027, -3565937917783769937, 'Financial Info', 'Financial', true, true, null, 'oneCMDB:#-4030583075832430887', 'oneCMDB:#-8025526327383936657', null, null, null, -294406670328424842, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-6568331750847588621, -8603102978338421612, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#5612781772166901244', null, null, -5468400491548625536, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-6565931211726422397, 723425180440006852, 'OS Family', 'Family', false, false, null, 'xs:string', null, 'Windows', null, null, -7048484407295153374, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-6561427545343295810, null, null, 'valuePattern', false, true, null, 'xs:string', null, null, null, null, 393805027739339455, 1, 1, '2016-12-27 17:05:11', '2016-12-27 17:05:11');
INSERT INTO onecmdb.t_attribute VALUES (-6560480586562701562, null, null, 'is_volatile', false, true, 'This directive is used to denote whether the service is "volatile". Services are normally not volatile. More information on volatile service and how they differ from normal services can be found here. Value: 0 = service is not volatile, 1 = service is volatile.', 'xs:integer', null, null, null, null, 8986099038471647984, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (-6557037183304594188, -2419744891512741806, 'Status', 'status', false, true, null, 'xs:string', null, null, null, null, -8128493564763208677, 1, 1, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (-6547922701303352657, 3521168720769405274, null, 'name', false, true, 'The template name referenced with the use attribute.', 'xs:string', null, null, null, null, -8312690835136204981, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-6544050832068765154, -5669522693763744355, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, 8607736559096888901, 1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-6539779774418108266, 2338142333132801027, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-3883718588737995702', null, null, 323022922402464520, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-6534401627337633836, -1762443614652211391, 'Port', 'Port', false, true, null, 'xs:integer', null, null, null, null, 6704163766313149585, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (-6527844404964501355, 8905241569907256559, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'resource', null, null, 6080430438857183034, 1, 0, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-6525666386232685669, 8794022947635014930, 'Connected To', 'ConnectedTo', true, true, null, 'oneCMDB:#1325117208637117274', 'oneCMDB:#-2725368316691492923', null, null, null, 2522367028350860395, -1, 0, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-6519216150282687063, 9057919287465543558, 'Status', 'Status', true, true, null, 'oneCMDB:#41965733952263877', 'oneCMDB:#-8025526327383936657', null, null, null, 9059693167497789202, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-6501399044621991559, -5664724427834647906, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, -6908501961876443996, 1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-6485632407088375774, -2943510380394532811, 'Maintenance Info', 'Maintenance', true, true, null, 'oneCMDB:#7154244997109246053', 'oneCMDB:#-8025526327383936657', null, null, null, 3225491047712550288, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-6483286597312173515, -3555410114187050562, 'Manufacturer', 'Manufacturer', true, true, null, 'oneCMDB:#5433965781192492423', 'oneCMDB:#-8025526327383936657', null, null, null, -1407617025811333519, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-6473636161050437964, 4485352581660378118, 'Protocol', 'Protocol', false, true, null, 'xs:string', null, 'TCP', null, null, -5000743863724034311, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (-6465077052108195774, -8159814561545330113, 'IPv4 Address', 'IPAddress', false, true, null, 'xs:string', null, null, null, null, 6971205699962462965, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-6435030081820654021, -723952125964968940, 'Financial Info', 'Financials', true, false, null, 'oneCMDB:#-4030583075832430887', 'oneCMDB:#-8025526327383936657', 'oneCMDB:#1188800357045380426', 1188800357045380426, null, 1198750186879466999, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-6430347810547129509, -4041564225165254727, null, 'icon', false, true, 'Filename (no file extension) of icon image.', 'xs:string', null, 'company', null, null, 5433965781192492423, 1, 0, '2016-12-28 16:01:48', '2016-12-28 16:01:48');
INSERT INTO onecmdb.t_attribute VALUES (-6427343120991234267, null, null, 'host_name', false, true, 'This directive is used to define a short name used to identify the host. It is used in host group and service definitions to reference this particular host. Hosts can have multiple services (which are monitored) associated with them. When used properly, the $HOSTNAME$ macro will contain this short name. alias: This directive is used to define a longer name or description used to identify the host. It is provided in order to allow you to more easily identify a particular host. When used properly, the $HOSTALIAS$ macro will contain this alias/description.', 'xs:string', null, null, null, null, -6108598720877681394, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (-6426766401002064873, -3979711827897002409, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#7503285799199789397', null, null, -6908501961876443996, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-6415800500365084988, -2197231236787214996, 'Version', 'Version', false, false, null, 'xs:string', null, 'SP1', null, null, -306753241820469847, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-6412811648088578427, -8136392216021963641, 'Version', 'Version', false, true, null, 'xs:string', null, null, null, null, -1951039734141517216, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-6402550978518939774, -9208474337129022908, 'Location', 'Location', true, true, null, 'oneCMDB:#-3200591116467062442', 'oneCMDB:#-8025526327383936657', null, null, null, 3331921274338303097, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-6402076469265203852, -1762443614652211391, 'Port', 'Port', false, true, null, 'xs:integer', null, null, null, null, -5165488382750819713, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (-6397603879237454951, 3221537918336219026, 'Maintenance Info', 'Maintenance', true, true, null, 'oneCMDB:#7154244997109246053', 'oneCMDB:#-8025526327383936657', null, null, null, 3865960124110820148, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-6391465265200742848, -2419744891512741806, 'Status', 'status', false, true, null, 'xs:string', null, null, null, null, -7382422160449654057, 1, 1, '2016-12-28 16:01:48', '2016-12-28 16:01:48');
INSERT INTO onecmdb.t_attribute VALUES (-6384481755298964253, null, null, 'callbackClasspath', false, true, null, 'xs:string', null, null, null, null, 8260888867499517871, -1, 0, '2016-12-27 17:05:11', '2016-12-27 17:05:11');
INSERT INTO onecmdb.t_attribute VALUES (-6372792894770032223, null, null, 'notes_url', false, true, 'This variable is used to define an optional URL that can be used to provide more information about the host. If you specify an URL, you will see a red folder icon in the CGIs (when you are viewing host information) that links to the URL you specify here. Any valid URL can be used. If you plan on using relative paths, the base path will the the same as what is used to access the CGIs (i.e. /cgi-bin/nagios/). This can be very useful if you want to make detailed information on the host, emergency contact methods, etc. available to other support staff.', 'xs:string', null, null, null, null, -6108598720877681394, 1, 1, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (-6357332134934205039, -1524543709740163214, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#6936928594960133541', null, null, -7150282703580789614, 1, 1, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (-6355421737720215920, -653152380451391655, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'service', null, null, -4856766876697112377, 1, 0, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-6352866760608184189, 2196487774809878277, 'Name', 'Name', false, false, null, 'xs:string', null, '<NAME>', null, null, -5066900477255422158, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (-6325676651143932149, -1524543709740163214, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#5448442896062760526', null, null, 4481559520547198524, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-6324224124458422000, -5872183086464812927, 'Name', 'Name', false, false, null, 'xs:string', null, 'New Your Router', null, null, -6624236066440953660, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-6319494012010366874, 7638037162105222803, 'Name', 'name', false, false, null, 'xs:string', null, 'Models', null, null, 5386807379325515575, 1, 1, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (-6316837139531865731, 4917553370040696144, 'Entries', 'files', false, false, null, 'xs:string', null, '/MDR/Models/models/Basic_Model/Demo_Instances/Basic_Model_Demo_Instances.xml', null, null, 4675968942250705277, -1, 0, '2016-12-28 16:02:05', '2016-12-28 16:02:05');
INSERT INTO onecmdb.t_attribute VALUES (-6311706632609336184, -4802794472932279484, 'License Key', 'LicenseKey', false, false, null, 'xs:string', null, 'MSWR-1234-8765', null, null, 5872623185044658259, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-6303958594126444384, 4804824971481914461, 'Installed On', 'InstalledOn', true, true, null, 'oneCMDB:#-1168493350923132665', 'oneCMDB:#4825510563751653831', null, null, null, -5165488382750819713, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (-6299187231634900520, 6761060685335142253, 'Manufacturer', 'Manufacturer', true, false, null, 'oneCMDB:#5433965781192492423', 'oneCMDB:#-8025526327383936657', 'oneCMDB:#5180604568546827291', 5180604568546827291, null, 2763197975055376610, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-6296101146052310965, -5012192948753502156, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-8037939061718373803', null, null, -2808934720526286919, 1, 1, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (-6286263388455428758, null, null, 'check_command_arg', false, true, 'This directive is used to specify the short name of the command that should be used to check if the host is up or down. Typically, this command would try and ping the host to see if it is "alive". The command must return a status of OK (0) or Nagios will assume the host is down. If you leave this argument blank, the host will not be actively checked. Thus, Nagios will likely always assume the host is up (it may show up as being in a "PENDING" state in the web interface). This is useful if you are monitoring printers or other devices that are frequently turned off. The maximum amount of time that the notification command can run is controlled by the host_check_timeout option.', 'xs:string', null, null, null, null, -6108598720877681394, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (-6285162180401789736, -5920425642647881346, 'Name', 'Name', false, false, null, 'xs:string', null, 'Acme Extranet', null, null, -8880592129556602654, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-6280512125000705274, -1524543709740163214, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#4899068668525632836', null, null, -30076058648415763, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-6253449519280162112, -2794185067687257957, 'Location', 'Location', true, true, null, 'oneCMDB:#-3200591116467062442', 'oneCMDB:#-8025526327383936657', null, null, null, 2317423548075909079, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-6242727404413173475, null, null, 'action_url', false, true, 'This directive is used to define an optional URL that can be used to provide more actions to be performed on the host. If you specify an URL, you will see a red "splat" icon in the CGIs (when you are viewing host information) that links to the URL you specify here. Any valid URL can be used. If you plan on using relative paths, the base path will the the same as what is used to access the CGIs (i.e. /cgi-bin/nagios/).', 'xs:string', null, null, null, null, -6108598720877681394, 1, 1, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (-6238673200144791125, -2540134846449235705, 'Maintenance Info', 'Maintenance', true, false, null, 'oneCMDB:#7154244997109246053', 'oneCMDB:#-8025526327383936657', 'oneCMDB:#-217170841733054362', -217170841733054362, null, 5872623185044658259, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-6238314289724643684, 1330705152963292454, 'Service', 'Service', true, true, null, 'oneCMDB:#-4678966175358915668', 'oneCMDB:#-3863377389438174788', null, null, null, 3225491047712550288, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-6234130601229229561, -1234192354743398362, 'Service', 'Service', true, true, null, 'oneCMDB:#-4678966175358915668', 'oneCMDB:#-3863377389438174788', null, null, null, -5508999552889392857, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-6221598851350917876, 1743396138401171271, 'Java Class Name', 'javaClass', false, true, null, 'xs:string', null, 'org.onecmdb.core.utils.transform.jdbc.JDBCInstanceSelector', null, null, 4972181722220004715, 1, 1, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (-6217223020108945296, 2508486515646109667, 'Auto Commit', 'autoCommit', false, true, null, 'xs:boolean', null, null, null, null, -7382422160449654057, 1, 1, '2016-12-28 16:01:48', '2016-12-28 16:01:48');
INSERT INTO onecmdb.t_attribute VALUES (-6209211569931002850, -9208474337129022908, 'Location', 'Location', true, true, null, 'oneCMDB:#-3200591116467062442', 'oneCMDB:#-8025526327383936657', null, null, null, 2522367028350860395, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-6190740745144706486, null, 'Config Entry', 'mdrConfigEntry', true, true, null, 'oneCMDB:#3521914687713450939', 'oneCMDB:#8800458200064057403', null, null, null, 2386299380460541961, 1, 1, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (-6186014667507665255, 2338142333132801027, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#8472139606850256924', null, null, 7140821888130541650, 1, 1, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (-6161937597403838350, -723952125964968940, 'Financial Info', 'Financials', true, false, null, 'oneCMDB:#-4030583075832430887', 'oneCMDB:#-8025526327383936657', 'oneCMDB:#3377876509903121869', 3377876509903121869, null, 5612781772166901244, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-6158249887097579414, null, null, 'execution_failure_criteria', false, true, null, 'xs:string', null, null, null, null, -3885642522584708287, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (-6150345077072260260, -2892704986996219486, 'IPv6 Address', 'IPv6Address', false, true, null, 'xs:string', null, null, null, null, 9059693167497789202, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-6146223257632585164, -233879330447984334, 'IPv6 Address', 'IPv6Address', false, false, null, 'xs:string', null, null, null, null, 2763197975055376610, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-6135651665274398178, 5829332994641049764, 'Service', 'Service', true, true, null, 'oneCMDB:#-4678966175358915668', 'oneCMDB:#-3863377389438174788', null, null, null, 6971205699962462965, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-6133185647978494663, 3723884162879080458, 'DSL Entry', 'DSLEntry', false, false, null, 'xs:anyURI', null, null, null, null, -2871151807065298888, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-6127885136944378761, 2338142333132801027, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#2029949154248172420', null, null, 7514974890842026102, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-6115854405584704629, -5664724427834647906, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, 3209199279906906336, 1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-6108662128518688593, -3484398261403397581, 'Serial Number', 'SerialNumber', false, false, null, 'xs:string', null, 'ASDF-2342424', null, null, 1198750186879466999, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-6105459862986062000, null, null, 'alias', false, true, 'This directive is a longer name or description used to identify the time period.', 'xs:string', null, null, null, null, -8312690835136204981, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (-6100616738451907374, -5591169885085062245, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#6109272791907384000', null, null, -402961741963142268, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-6099558979526906582, -1524543709740163214, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-7048484407295153374', null, null, 1572282518553124849, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-6098107198176781630, -2918011532607696492, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'resource', null, null, -3183565547364756951, 1, 0, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-6075088828959645193, null, 'Template XPath', 'templatePath', false, true, null, 'xs:string', null, null, null, null, 7013626182509928042, 1, 1, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (-6070896678703410622, 2684607629046987153, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, 7738141344057591836, 1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-6059327298477494126, 2335732526978447725, 'Maintenance Info', 'Maintenance', true, false, null, 'oneCMDB:#7154244997109246053', 'oneCMDB:#-8025526327383936657', 'oneCMDB:#5159308085069907466', 5159308085069907466, null, 6936928594960133541, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-6058695178725605976, -5591169885085062245, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#5400821923574190750', null, null, -4056084696221288780, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-6040063152628750174, null, null, 'weekday', false, true, 'The weekday directives ("sunday" through "saturday")are comma-delimited lists of time ranges that are "valid" times for a particular day of the week. Notice that there are seven different days for which you can define time ranges (Sunday through Saturday). Each time range is in the form of HH:MM-HH:MM, where hours are specified on a 24 hour clock. For example, 00:15-24:00 means 12:15am in the morning for this day until 12:00am midnight (a 23 hour, 45 minute total time range). If you wish to exclude an entire day from the timeperiod, simply do not include it in the timeperiod definition.', 'xs:string', null, null, null, null, -8312690835136204981, -1, 0, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (-6028613363657925743, null, null, 'initial_state', false, true, 'By default Nagios will assume that all hosts are in UP states when in starts. You can override the initial state for a host by using this directive. Valid options are: o = UP, d = DOWN, and u = UNREACHABLE.', 'xs:string', null, null, null, null, -6108598720877681394, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (-6011506463429112839, -5664724427834647906, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, 7425451699892628348, 1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-6009736199673429486, -771882460194241171, null, 'icon', false, true, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, 5024896043547205381, 1, 0, '2016-12-28 15:59:31', '2016-12-28 15:59:31');
INSERT INTO onecmdb.t_attribute VALUES (-6003487300221677417, 3991988922005476020, 'Maintenance Info', 'Maintenance', true, false, null, 'oneCMDB:#7154244997109246053', 'oneCMDB:#-8025526327383936657', 'oneCMDB:#4396911423487762801', 4396911423487762801, null, 2029949154248172420, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-6002574386035644637, -1040856819005843342, null, 'use', false, true, 'The template this nagios config entry should derived from.', 'xs:string', null, null, null, null, -3885642522584708287, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-5995371203957807430, 1499783309383705593, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'netcomp', null, null, 8526533317541349136, 1, 0, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-5994944118884274877, 4599471661187751239, 'Maintenance Org.', 'Maintenance_Org', true, false, null, 'oneCMDB:#5433965781192492423', 'oneCMDB:#-8025526327383936657', 'oneCMDB:#673292606483933488', 673292606483933488, null, -8931481580316879494, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-5986440842427294144, -5669522693763744355, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, -4924263808219888120, 1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-5982876531729148667, null, 'Maintenance Level', 'Maintenance_Level', false, true, null, 'xs:string', null, null, null, null, 7154244997109246053, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-5978159249826708441, 621341352830392531, 'Manufacturer', 'Manufacturer', true, true, null, 'oneCMDB:#5433965781192492423', 'oneCMDB:#-8025526327383936657', null, null, null, 3177618163676867203, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-5977197298507909031, 8655229608306903921, 'Version', 'Version', false, false, null, 'xs:string', null, '2003', null, null, -7550256766207092122, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-5969253024959063573, 8082541928944439438, null, 'stop', false, true, null, 'xs:string', null, null, null, null, -5561407348793484989, 1, 1, '2016-12-27 17:05:12', '2016-12-27 17:05:12');
INSERT INTO onecmdb.t_attribute VALUES (-5963052215319628587, -5797430989548529172, 'Status', 'Status', true, true, null, 'oneCMDB:#41965733952263877', 'oneCMDB:#-8025526327383936657', null, null, null, 3177618163676867203, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-5959329124247169835, -5711540088983807261, 'Stderr', 'stderr', false, false, null, 'xs:string', null, null, null, null, 4675968942250705277, 1, 1, '2016-12-28 16:02:05', '2016-12-28 16:02:05');
INSERT INTO onecmdb.t_attribute VALUES (-5952268638777767234, -5669522693763744355, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, 4891914077422526390, 1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-5949051087024441970, null, 'Added objects', 'added', false, true, null, 'xs:string', null, null, null, null, 2386299380460541961, 1, 1, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (-5941143338410154729, null, 'Installed On', 'InstalledOn', true, true, null, 'oneCMDB:#1325117208637117274', 'oneCMDB:#4825510563751653831', null, null, null, -1168493350923132665, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-5928841273003779319, -1234192354743398362, 'Service', 'Service', true, true, null, 'oneCMDB:#-4678966175358915668', 'oneCMDB:#-3863377389438174788', null, null, null, 5676046625265852474, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-5920425642647881346, 1129369579735025419, 'Name', 'Name', false, true, null, 'xs:string', null, 'Network', null, null, -838366469867279794, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-5919751377085276341, 8345497989318023921, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, -7094411211185663307, 1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-5908343657551986042, null, null, 'dependent_host_name', true, true, null, 'oneCMDB:#-6108598720877681394', 'oneCMDB:#-3863377389438174788', null, null, null, 1890256877210801519, -1, 1, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (-5900760773797092447, 9060213008561656592, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#4899068668525632836', null, null, -4798847328596715998, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-5900648814116729539, 2338142333132801027, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#1515202162886390642', null, null, 2993602225205075567, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-5896610905944649707, -5591169885085062245, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-5055663519884480021', null, null, -7141557035276310837, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-5887219919569047713, -1524543709740163214, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-7171807647212474252', null, null, 3708927354344220064, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-5872183086464812927, -8087070549377169868, 'Name', 'Name', false, true, null, 'xs:string', null, 'Router', null, null, 9059693167497789202, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-5871581759936230598, -5591169885085062245, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#1616600853113017715', null, null, -5327553007319099378, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-5870830900522099904, -3732326593236878410, 'Name', 'Name', false, false, null, 'xs:string', null, '3.55 server', null, null, -7048484407295153374, 1, 1, '2016-12-28 16:07:52', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-5857969683689585950, null, null, 'icon_image_alt', false, true, 'This variable is used to define an optional string that is used in the ALT tag of the image specified by the "icon_image" argument.', 'xs:string', null, null, null, null, -6108598720877681394, 1, 1, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (-5856262485962582671, null, 'Status', 'status', false, true, null, 'xs:string', null, null, null, null, 2386299380460541961, 1, 1, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (-5840950977256812716, 6323267896344121105, 'License Key', 'LicenseKey', false, false, null, 'xs:string', null, 'N.A', null, null, -3267638157342394138, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-5831246780647311123, -3085499285560338061, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'asset', null, null, -4650663127884378612, 1, 0, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-5808179058489385516, -3861241026947317987, null, 'Hostname', false, true, null, 'xs:string', null, null, null, null, -239896225795807576, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-5797430989548529172, -2338491134665967324, 'Status', 'Status', true, true, null, 'oneCMDB:#41965733952263877', 'oneCMDB:#-8025526327383936657', null, null, null, 2317423548075909079, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-5795182421582246488, -5669522693763744355, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, -5245813709478202318, 1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-5788035442324627072, -4041564225165254727, null, 'icon', false, true, 'Filename (no file extension) of icon image.', 'xs:string', null, 'people', null, null, -15958512515039807, 1, 0, '2016-12-28 16:01:48', '2016-12-28 16:01:48');
INSERT INTO onecmdb.t_attribute VALUES (-5775644237150379326, -5664724427834647906, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, 4819840601125854863, 1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-5764854535200716451, 8794022947635014930, 'Connected To', 'ConnectedTo', true, false, null, 'oneCMDB:#1325117208637117274', 'oneCMDB:#-2725368316691492923', 'oneCMDB:#1204720086284505437', 1204720086284505437, null, 5438961292355445872, -1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-5763313081554180076, -1524543709740163214, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#5438961292355445872', null, null, 3756775099422547796, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-5763118970825996789, -5012192948753502156, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-7013056504252155877', null, null, 4655619091113466025, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-5740874316772134725, null, null, 'retain_nonstatus_information', false, true, 'This directive is used to determine whether or not non-status information about the service is retained across program restarts. This is only useful if you have enabled state retention using the retain_state_information directive. Value: 0 = disable non-status information retention, 1 = enable non-status information retention.', 'xs:integer', null, null, null, null, 8986099038471647984, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (-5718397689057129927, 3231318000420576753, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'mswindows', null, null, 5872623185044658259, 1, 0, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-5711540088983807261, null, 'Stderr', 'stderr', false, true, null, 'xs:string', null, null, null, null, 2386299380460541961, 1, 1, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (-5709286736357829178, -8432561932573761940, 'Protocol', 'Protocol', false, true, null, 'xs:string', null, null, null, null, -1727366760233341791, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (-5700200873589384332, null, 'Name', 'name', false, true, null, 'xs:string', null, 'MDR', null, null, -3060461545451854211, 1, 1, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (-5697812438901840337, null, null, 'action_url', false, true, 'This directive is used to define an optional URL that can be used to provide more actions to be performed on the host. If you specify an URL, you will see a link that says "Extra Host Actions" in the extended information CGI (when you are viewing information about the specified host). Any valid URL can be used. If you plan on using relative paths, the base path will the the same as what is used to access the CGIs (i.e. /cgi-bin/nagios/).', 'xs:anyURI', null, null, null, null, 739521429005320541, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (-5686788269331989925, null, 'Name', 'Name', false, true, null, 'xs:string', null, 'Management', null, null, -7256466888255858346, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-5670337927361925195, 830469767810511665, 'Depreciation (years)', 'Depreciation', false, false, null, 'xs:integer', null, '3', 3, null, -8154505932687141586, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-5669522693763744355, -5637839464463589022, null, 'icon', false, true, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, -8025526327383936657, 1, 0, '2016-12-28 16:01:48', '2016-12-28 16:01:48');
INSERT INTO onecmdb.t_attribute VALUES (-5664724427834647906, -1478756811695415278, null, 'icon', false, true, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, 4825510563751653831, 1, 0, '2016-12-28 16:01:48', '2016-12-28 16:01:48');
INSERT INTO onecmdb.t_attribute VALUES (-5662986024479418957, -1965639156284701649, 'DSL Entry', 'DSLEntry', false, false, null, 'xs:anyURI', null, 'http://onecmdb.org/docs/BasicDatacenter/DSL/Dummy_Software_Package.txt', null, null, 8067161067550301549, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-5641885668334602153, 2684607629046987153, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, 1627529348574293596, 1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-5637839464463589022, -771882460194241171, null, 'icon', false, true, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, 3296778330507920481, 1, 0, '2016-12-27 17:05:09', '2016-12-27 17:05:09');
INSERT INTO onecmdb.t_attribute VALUES (-5636288455977164412, -2366941038302657249, 'Maintenance Info', 'Maintenance', true, false, null, 'oneCMDB:#7154244997109246053', 'oneCMDB:#-8025526327383936657', 'oneCMDB:#4306353254172667766', 4306353254172667766, null, 4298307837787561059, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-5635165438524504543, 7856327862604147733, 'Telephone', 'Telephone', false, false, null, 'xs:string', null, '(562) 888 7365', null, null, -5066900477255422158, -1, 0, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (-5620315327715502272, 1905201741554936413, 'Source', 'source', true, true, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, null, null, null, -1122480518350212068, 1, 1, '2016-12-27 17:05:12', '2016-12-27 17:05:12');
INSERT INTO onecmdb.t_attribute VALUES (-5615803382174526081, -1136630148419967552, 'Manufacturer', 'Manufacturer', true, true, null, 'oneCMDB:#5433965781192492423', 'oneCMDB:#-8025526327383936657', null, null, null, 5068478429873757722, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-5614425615920930308, 7509599446167191926, 'E-Mail', 'Email', false, false, null, 'xs:string', null, '<EMAIL>', null, null, 8472139606850256924, -1, 0, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (-5610378313486128576, -3709391132749872087, 'DSL Entry', 'DSLEntry', false, false, null, 'xs:anyURI', null, 'http://www.onecmdb.org/docs/BasicDatacenter/DSL/Dummy_Software_Package.txt', null, null, 8451682648722222209, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-5598812324223407200, -1524543709740163214, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#2029949154248172420', null, null, 4396911423487762801, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-5591169885085062245, 4825640834499321714, 'Target', 'target', true, true, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, null, null, null, -8025526327383936657, 1, 1, '2016-12-28 16:01:48', '2016-12-28 16:01:48');
INSERT INTO onecmdb.t_attribute VALUES (-5584557892262552640, null, 'Instance', 'instance', false, true, null, 'xs:string', null, null, null, null, -7432335284198671501, 1, 1, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (-5576672756438315765, 3284846158102965914, 'Location', 'Location', true, true, null, 'oneCMDB:#-3200591116467062442', 'oneCMDB:#-8025526327383936657', null, null, null, -1407617025811333519, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-5566069061818251355, 2338142333132801027, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-6388783933053098658', null, null, 8597807869981412296, 1, 1, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (-5563403848384344288, 1595556135454401599, 'Installed On', 'InstalledOn', true, true, null, 'oneCMDB:#1325117208637117274', 'oneCMDB:#4825510563751653831', null, null, null, 3225491047712550288, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-5553556041461713708, -8603102978338421612, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#2029949154248172420', null, null, -4887662693489852354, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-5541552991729363718, -1524543709740163214, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#5400821923574190750', null, null, 468542918369469937, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-5532300800019902509, 830469767810511665, 'Depreciation (years)', 'Depreciation', false, false, null, 'xs:integer', null, '3', 3, null, -6502872628718390337, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-5529389175227503847, 3521168720769405274, null, 'name', false, true, 'The template name referenced with the use attribute.', 'xs:string', null, null, null, null, 1890256877210801519, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-5522586355638001751, -5664724427834647906, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, -4887662693489852354, 1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-5490798092900618495, -7632207771769379332, 'DSL Entry', 'DSLEntry', false, true, null, 'xs:anyURI', null, null, null, null, 7491575733809579230, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-5479511719370999114, null, null, 'models', false, true, 'Stores loaded models at startup time. Models will not be loaded again.', 'xs:string', null, null, null, null, 2131019018525781385, -1, 1, '2016-12-28 15:59:34', '2016-12-28 15:59:34');
INSERT INTO onecmdb.t_attribute VALUES (-5463032600331041802, -7478637079806485791, 'Name', 'Name', false, false, null, 'xs:string', null, 'Sun', null, null, -4582254474109262389, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (-5456629585344519621, null, null, 'propagateValueChangeToTemplates', false, true, null, 'xs:boolean', null, 'false', null, null, 393805027739339455, 1, 1, '2016-12-27 17:05:11', '2016-12-27 17:05:11');
INSERT INTO onecmdb.t_attribute VALUES (-5425975388629718095, -2118060411480011372, 'SLA', 'SLA', false, true, null, 'xs:anyURI', null, null, null, null, -9108137049616996309, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-5424043002938450829, -440157865350204885, 'License Key', 'LicenseKey', false, true, null, 'xs:string', null, null, null, null, -6599040348753944674, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-5417046790211692402, 9060213008561656592, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-38466446972918069', null, null, -7094411211185663307, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-5384050454648031397, 7408724948072457504, 'Status', 'Status', true, false, null, 'oneCMDB:#41965733952263877', 'oneCMDB:#-8025526327383936657', 'oneCMDB:#2957606740287094085', 2957606740287094085, null, 5612781772166901244, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-5378134995913838114, -1524543709740163214, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#7503285799199789397', null, null, -3960655638364740171, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-5375043398569127823, 830469767810511665, 'Depreciation (years)', 'Depreciation', false, false, null, 'xs:integer', null, '5', 5, null, -3555672197290052160, 1, 1, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (-5371848298796934722, -5669522693763744355, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, -5867307528194865015, 1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-5344916207469921596, -752431900193616089, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#5438961292355445872', null, null, 1204720086284505437, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-5326414759799993368, 5898472032975421275, 'Maintenance Fee (USD/Year)', 'Maintenance_Fee', false, false, null, 'xs:integer', null, '400', 400, null, -3555672197290052160, 1, 1, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (-5313434903146008684, 2400063756869389014, null, 'icon', false, true, 'Filename (no file extension) of icon image.', 'xs:string', null, null, null, null, -1723966340589452755, 1, 0, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (-5301457814844335817, null, null, 'freshness_threshold', false, true, 'This directive is used to specify the freshness threshold (in seconds) for this service. If you set this directive to a value of 0, Nagios will determine a freshness threshold to use automatically.', 'xs:integer', null, null, null, null, 8986099038471647984, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (-5292073556709782534, -7305331747861148599, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'mswindows', null, null, -306753241820469847, 1, 0, '2016-12-28 16:01:48', '2016-12-28 16:01:48');
INSERT INTO onecmdb.t_attribute VALUES (-5289995170824430978, -8885097571508953844, 'Network', 'Network', true, true, null, 'oneCMDB:#-838366469867279794', 'oneCMDB:#-3863377389438174788', null, null, null, -1407617025811333519, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-5280533377105558685, -6868818845750700134, 'Uses', 'Uses', true, false, null, 'oneCMDB:#-4678966175358915668', 'oneCMDB:#7815034950157158561', 'oneCMDB:#7100503376313409434', 7100503376313409434, null, -7013056504252155877, -1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-5275568860513957662, 6458362403191095587, 'Financial Info', 'Financial', true, false, null, 'oneCMDB:#-4030583075832430887', 'oneCMDB:#-8025526327383936657', 'oneCMDB:#-472303727294703067', -472303727294703067, null, 3872536235728130109, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-5272410218337315824, null, null, 'icon_image_alt', false, true, 'This variable is used to define an optional string that is used in the ALT tag of the image specified by the ''icon_image'' argument. The ALT tag is used in the status, extended information and statusmap CGIs.', 'xs:string', null, null, null, null, 739521429005320541, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (-5260539123480587603, -3979711827897002409, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#8067161067550301549', null, null, -8806978160507840720, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-5257603961170144656, -7385727968787411797, 'Service', 'Service', true, true, null, 'oneCMDB:#-4678966175358915668', 'oneCMDB:#-3863377389438174788', null, null, null, -5058684262027826612, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-5253815259096006319, 7438327681554344018, 'Installed On', 'InstalledOn', true, false, null, 'oneCMDB:#-1168493350923132665', 'oneCMDB:#4825510563751653831', null, null, null, -2871151807065298888, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (-5237642320526606627, -5591169885085062245, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#2376092523771938845', null, null, 337820764651126728, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-5232946812938055077, -2445963789720288878, null, 'icon', false, true, 'Filename (no file extension) of icon image.', 'xs:string', null, null, null, null, 8439080357747159894, 1, 0, '2016-12-27 17:05:11', '2016-12-27 17:05:11');
INSERT INTO onecmdb.t_attribute VALUES (-5218104227183614060, 4171417067138044278, 'Java Class Name', 'javaClass', false, true, null, 'xs:string', null, 'org.onecmdb.core.utils.transform.csv.CSVAttributeSelector', null, null, 5014313985612676927, 1, 1, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (-5198587655415171746, 5648763990242826958, null, 'objectType', false, true, 'The object definition name.', 'xs:string', null, 'hostgroup', null, null, -4154185814876458058, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-5197692501274538757, -3826991543516331442, 'Import Directory', 'importDir', false, false, 'If this entry should be an instances and a template.', 'xs:string', null, 'import', null, null, -8031090386881226833, 1, 1, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (-5194773574969879947, -4325908530580821491, 'Natural Key', 'naturalKey', false, true, null, 'xs:boolean', null, null, null, null, -1286794834007968621, 1, 1, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (-5182377152755387901, null, null, 'notifications_enabled', false, true, 'This directive is used to determine whether or not notifications for this host are enabled. Values: 0 = disable host notifications, 1 = enable host notifications. stalking_options: This directive determines which host states "stalking" is enabled for. Valid options are a combination of one or more of the following: o = stalk on UP states, d = stalk on DOWN states, and u = stalk on UNREACHABLE states. More information on state stalking can be found here.', 'xs:integer', null, null, null, null, -6108598720877681394, 1, 1, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (-5171869564890987197, 4599471661187751239, 'Maintenance Org.', 'Maintenance_Org', true, false, null, 'oneCMDB:#5433965781192492423', 'oneCMDB:#-8025526327383936657', 'oneCMDB:#4566123606153975941', 4566123606153975941, null, -8697924501898487676, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-5156916583652714852, -8792887254467913041, 'Service', 'Service', true, true, null, 'oneCMDB:#-4678966175358915668', 'oneCMDB:#-3863377389438174788', null, null, null, 2317423548075909079, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-5153718172057726311, -1425651908532133000, 'Financial Info', 'Financials', true, false, null, 'oneCMDB:#-4030583075832430887', 'oneCMDB:#-8025526327383936657', null, null, null, 8526533317541349136, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-5152246735225469763, -2642089993832413257, 'Organization', 'Organisation', true, false, null, 'oneCMDB:#5433965781192492423', 'oneCMDB:#-3863377389438174788', 'oneCMDB:#8887180738759619051', 8887180738759619051, null, -2521001890385936111, 1, 1, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (-5151539929083847463, 2508486515646109667, 'Auto Commit', 'autoCommit', false, true, null, 'xs:boolean', null, null, null, null, -8128493564763208677, 1, 1, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (-5146806406742588899, -5591169885085062245, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-8931481580316879494', null, null, -7575172238653513809, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-5146546071078799918, -5591169885085062245, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-3183565547364756951', null, null, 4544942910497465063, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-5144086735108328513, -8603102978338421612, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#2029949154248172420', null, null, -8806978160507840720, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-5143051842580717168, null, 'Program', 'program', false, true, null, 'xs:string', null, null, null, null, 3521914687713450939, 1, 1, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (-5126030257988539799, -2219139056048530513, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'package', null, null, -7315267361872023940, 1, 0, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-5125645579055888076, 4869468365480249401, null, 'register', false, true, 'If this entry should be an instances and a template.', 'xs:string', null, null, null, null, -2437713139919564933, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-5122022705383832269, 1283852019182702315, 'Name', 'Name', false, true, null, 'xs:string', null, 'Windows XP', null, null, 4727188545314013933, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-5116657887088420078, -1040856819005843342, null, 'use', false, true, 'The template this nagios config entry should derived from.', 'xs:string', null, null, null, null, 739521429005320541, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-5115583689492723801, null, null, 'allowDelete', false, true, null, 'xs:boolean', null, 'true', null, null, 831375279177628912, 1, 1, '2016-12-27 17:05:11', '2016-12-27 17:05:11');
INSERT INTO onecmdb.t_attribute VALUES (-5104366865309507108, -4972344921978241811, 'Version', 'Version', false, true, null, 'xs:string', null, null, null, null, 6704163766313149585, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-5102694800782498056, -6868818845750700134, 'Uses', 'Uses', true, true, null, 'oneCMDB:#-4678966175358915668', 'oneCMDB:#7815034950157158561', null, null, null, -8820227643856541952, -1, 0, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-5099238333738074613, 454245518513090804, 'Used By', 'UsedBy', true, true, null, 'oneCMDB:#5433965781192492423', 'oneCMDB:#-8025526327383936657', null, null, null, -9108137049616996309, -1, 0, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-5074764182473244863, -3339348614286452107, null, 'icon', false, true, 'Filename (no file extension) of icon image.', 'xs:string', null, 'ci', null, null, -1912794354431148047, 1, 0, '2016-12-28 16:01:48', '2016-12-28 16:01:48');
INSERT INTO onecmdb.t_attribute VALUES (-5069771326177225806, 3494119200713136516, 'Maintenance Info', 'Maintenance', true, true, null, 'oneCMDB:#7154244997109246053', 'oneCMDB:#-8025526327383936657', null, null, null, -1168493350923132665, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-5055809636125021672, -4972344921978241811, 'Version', 'Version', false, true, null, 'xs:string', null, '2003', null, null, 3865960124110820148, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-5026246754626682689, -3555410114187050562, 'Manufacturer', 'Manufacturer', true, false, null, 'oneCMDB:#5433965781192492423', 'oneCMDB:#-8025526327383936657', null, null, null, -6624236066440953660, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-5023827000085019449, -3555410114187050562, 'Manufacturer', 'Manufacturer', true, false, null, 'oneCMDB:#5433965781192492423', 'oneCMDB:#-8025526327383936657', null, null, null, -38466446972918069, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-5012192948753502156, 4825640834499321714, 'Target', 'target', true, true, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, null, null, null, -3863377389438174788, 1, 1, '2016-12-28 16:01:48', '2016-12-28 16:01:48');
INSERT INTO onecmdb.t_attribute VALUES (-4992454182957825816, 3858978566748600360, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'package', null, null, 8385099514641563517, 1, 0, '2016-12-28 16:01:48', '2016-12-28 16:01:48');
INSERT INTO onecmdb.t_attribute VALUES (-4985766250328536464, -1201591218872166485, 'Web Address', 'Web_Address', false, false, null, 'xs:anyURI', null, 'http://www.dell.com', null, null, 5601229157724855285, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-4980709538576604061, 2866121774840364300, null, 'icon', false, true, 'Filename (no file extension) of icon image.', 'xs:string', null, 'application', null, null, 2305821143961843722, 1, 0, '2016-12-28 16:01:48', '2016-12-28 16:01:48');
INSERT INTO onecmdb.t_attribute VALUES (-4973031381344979568, -5012192948753502156, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-6553834200975625641', null, null, -2505342025169104571, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-4972344921978241811, -376890815242558955, 'Version', 'Version', false, true, null, 'xs:string', null, null, null, null, 1769375665960405126, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-4966599858257637659, 9180838692583090870, 'Name', 'Name', false, false, null, 'xs:string', null, 'Financials Applications', null, null, -7761184485249285917, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-4966571350844399474, 9060213008561656592, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#8526533317541349136', null, null, -728564077336218461, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-4964160476353817652, 8414784833531385067, 'Financial Info', 'Financial', true, false, null, 'oneCMDB:#-4030583075832430887', 'oneCMDB:#-8025526327383936657', 'oneCMDB:#-5314165864344869773', -5314165864344869773, null, 8451682648722222209, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-4962819318099839695, 2338142333132801027, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#4298307837787561059', null, null, -6511386447479370558, 1, 1, '2016-12-28 16:01:53', '2016-12-28 16:01:53');
INSERT INTO onecmdb.t_attribute VALUES (-4958101790252780130, 3629437584973513653, 'Serial Number', 'SerialNumber', false, false, null, 'xs:string', null, null, null, null, 8526533317541349136, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-4949984992385912298, 2338142333132801027, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-7048484407295153374', null, null, 1145706693256386797, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-4946970872531073234, -5591169885085062245, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-3468993384790064691', null, null, 4566123606153975941, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-4933985257082236522, 3221537918336219026, 'Maintenance Info', 'Maintenance', true, true, null, 'oneCMDB:#7154244997109246053', 'oneCMDB:#-8025526327383936657', null, null, null, 6704163766313149585, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-4933730842107938791, 4599471661187751239, 'Maintenance Org.', 'Maintenance_Org', true, false, null, 'oneCMDB:#5433965781192492423', 'oneCMDB:#-8025526327383936657', 'oneCMDB:#4891914077422526390', 4891914077422526390, null, 2970960574384196618, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-4931011888977742764, 1989236464475992561, 'Financial Info', 'Financial', true, true, null, 'oneCMDB:#-4030583075832430887', 'oneCMDB:#-8025526327383936657', null, null, null, -6599040348753944674, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-4912382549624417240, 2684607629046987153, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, -7663871818674193036, 1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-4905923349079520573, 4646922231658548033, null, 'useName', false, true, 'If the instance should include it''s name. Eq if this instance is used by another instance.', 'xs:boolean', null, null, null, null, 8986099038471647984, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-4899604638991321095, -1425651908532133000, 'Financial Info', 'Financials', true, false, null, 'oneCMDB:#-4030583075832430887', 'oneCMDB:#-8025526327383936657', 'oneCMDB:#-415785062668355818', -415785062668355818, null, -6624236066440953660, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-4897827991196228117, 4646922231658548033, null, 'useName', false, true, 'If the instance should include it''s name. Eq if this instance is used by another instance.', 'xs:boolean', null, null, null, null, 7535307617655623766, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-4885824575110214798, -5664724427834647906, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, -4277694784537643537, 1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-4863771254018617426, -1524543709740163214, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#5612781772166901244', null, null, -2832314825335747607, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-4852982050135482199, 6319071884189180505, 'Java Class Name', 'javaClass', false, true, null, 'xs:string', null, null, null, null, 489834941922956076, 1, 1, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (-4843872888764354846, 7438327681554344018, 'Installed On', 'InstalledOn', true, true, null, 'oneCMDB:#-1168493350923132665', 'oneCMDB:#4825510563751653831', null, null, null, 880600073926883392, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (-4839737129430820859, -147364063196792403, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'maintenance', null, null, -5055663519884480021, 1, 0, '2016-12-28 16:01:48', '2016-12-28 16:01:48');
INSERT INTO onecmdb.t_attribute VALUES (-4832412014878157924, 4168272132656335525, 'Network', 'Network', true, true, null, 'oneCMDB:#-838366469867279794', 'oneCMDB:#-3863377389438174788', null, null, null, 4774848979350389203, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-4830452852459046737, -653152380451391655, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'service', null, null, -4240101805785438545, 1, 0, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-4807061436269532525, -8087070549377169868, 'Name', 'Name', false, true, null, 'xs:string', null, 'Firewall', null, null, 2522367028350860395, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-4803345285567872577, -5669522693763744355, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, 3459773674201409910, 1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-4802794472932279484, -4223380828570296426, 'License Key', 'LicenseKey', false, true, null, 'xs:string', null, 'MSWR-1234-8765', null, null, 4727188545314013933, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-4802559902952482649, -8735963288769102515, 'OS Family', 'Family', false, false, null, 'xs:string', null, 'Linux', null, null, 4298307837787561059, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-4797173068558463291, 4433733874698429103, 'Group Name', 'name', false, false, 'The symbolic name for this security group', 'xs:string', null, 'RootGroup', null, null, -3702547693289221617, 1, 1, '2016-12-27 17:05:10', '2016-12-27 17:05:10');
INSERT INTO onecmdb.t_attribute VALUES (-4795482446576762137, 1444364607460198231, 'Service', 'Service', true, false, null, 'oneCMDB:#-4678966175358915668', 'oneCMDB:#-3863377389438174788', 'oneCMDB:#6928470614784645567', 6928470614784645567, null, -306753241820469847, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-4794357669738529580, 9180838692583090870, 'Name', 'Name', false, false, null, 'xs:string', null, 'Financials Dell #1', null, null, -3555672197290052160, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-4792348889731886524, 2338142333132801027, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#8385099514641563517', null, null, -5347908825861944764, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-4779325253192402114, -5591169885085062245, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-5055663519884480021', null, null, 5742108542344306538, 1, 1, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (-4770438216895557579, 2136804471274925950, 'Maintenance Info', 'Maintenance', true, true, null, 'oneCMDB:#7154244997109246053', 'oneCMDB:#-8025526327383936657', null, null, null, 2317423548075909079, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-4738675488340730940, 7696997261982699603, null, 'icon', false, true, 'Filename (no file extension) of icon image.', 'xs:string', null, 'job', null, null, -5561407348793484989, 1, 0, '2016-12-27 17:05:12', '2016-12-27 17:05:12');
INSERT INTO onecmdb.t_attribute VALUES (-4734348682002931090, 4646922231658548033, null, 'useName', false, true, 'If the instance should include it''s name. Eq if this instance is used by another instance.', 'xs:boolean', null, null, null, null, 1890256877210801519, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-4730824293899188058, 7252345775894819451, 'DSL Entry', 'DSLEntry', false, true, null, 'xs:anyURI', null, 'http://www.onecmdb.org/docs/BasicDatacenter/DSL/Dummy_OS_Package.txt', null, null, 4727188545314013933, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-4729509718012020932, -2892704986996219486, 'IPv6 Address', 'IPv6Address', false, true, null, 'xs:string', null, null, null, null, 4774848979350389203, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-4722134531050985449, -9143811055134819436, null, 'Hostname', false, false, null, 'xs:string', null, 'mail.acme.com', null, null, 5438961292355445872, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-4676993328988679861, null, null, 'notes', false, true, 'This directive is used to define an optional string of notes pertaining to the service group. If you specify a note here, you will see the it in the extended information CGI (when you are viewing information about the specified service group).', 'xs:string', null, null, null, null, -1912794354431148047, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (-4663337032971596450, 4869468365480249401, null, 'register', false, true, 'If this entry should be an instances and a template.', 'xs:string', null, null, null, null, -4154185814876458058, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-4662161825701342943, 938156389757737981, 'DSL Entry', 'DSLEntry', false, false, null, 'xs:anyURI', null, 'http://onecmdb.org/docs/BasicDatacenter/DSL/Dummy_Software_Package.txt', null, null, -3883718588737995702, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-4628216132927202945, -2476269882465845358, 'Financial Info', 'Financial', true, false, null, 'oneCMDB:#-4030583075832430887', 'oneCMDB:#-8025526327383936657', 'oneCMDB:#1790914910377287488', 1790914910377287488, null, 225437699908619242, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-4622477196608277850, null, 'Repeate Intervall', 'repeateIntervall', false, true, null, 'xs:integer', null, null, null, null, -6754672868001187115, 1, 1, '2016-12-27 17:05:12', '2016-12-27 17:05:12');
INSERT INTO onecmdb.t_attribute VALUES (-4621625032515237069, 6458362403191095587, 'Financial Info', 'Financial', true, true, null, 'oneCMDB:#-4030583075832430887', 'oneCMDB:#-8025526327383936657', null, null, null, -8747012735422861621, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-4619193214581996310, -4273716451241513113, 'Protocol', 'Protocol', false, false, null, 'xs:string', null, null, null, null, -3883718588737995702, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (-4616527746417966432, 8261443674782105822, null, 'icon', false, true, 'Filename (no file extension) of icon image.', 'xs:string', null, 'os', null, null, -1168493350923132665, 1, 0, '2016-12-28 16:01:48', '2016-12-28 16:01:48');
INSERT INTO onecmdb.t_attribute VALUES (-4607833506343884284, -6868818845750700134, 'Uses', 'Uses', true, false, null, 'oneCMDB:#-4678966175358915668', 'oneCMDB:#7815034950157158561', 'oneCMDB:#5238339757547316102', 5238339757547316102, null, -4240101805785438545, -1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-4599433531631010838, -5591169885085062245, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#1431590659382240388', null, null, -4141639034389317254, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-4595909866295877128, 9180838692583090870, 'Name', 'Name', false, false, null, 'xs:string', null, 'Financials Cisco', null, null, -4622793531067663618, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-4589865097400534876, 2684607629046987153, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, -3627985087926095259, 1, 0, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (-4581708716320851787, -376890815242558955, 'Version', 'Version', false, true, null, 'xs:string', null, null, null, null, -5998842903881319824, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-4569639031163368647, -8156709246695355115, 'Service', 'Service', true, false, null, 'oneCMDB:#-4678966175358915668', 'oneCMDB:#-3863377389438174788', 'oneCMDB:#-2505342025169104571', -2505342025169104571, null, -38466446972918069, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-4563644857412786847, -9208474337129022908, 'Location', 'Location', true, true, null, 'oneCMDB:#-3200591116467062442', 'oneCMDB:#-8025526327383936657', null, null, null, 5068478429873757722, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-4552929774178689623, -6570922032761711027, 'Financial Info', 'Financial', true, true, null, 'oneCMDB:#-4030583075832430887', 'oneCMDB:#-8025526327383936657', null, null, null, 3225491047712550288, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-4543083050030718681, null, 'Children Group(s)', 'children', true, true, 'The child security groups', 'oneCMDB:#7937065981750200200', 'oneCMDB:#-453323538046497526', null, null, null, 7937065981750200200, -1, 0, '2016-12-27 17:05:10', '2016-12-27 17:05:10');
INSERT INTO onecmdb.t_attribute VALUES (-4519709752616365995, null, null, 'onRfc', false, true, null, 'xs:string', null, null, null, null, 8260888867499517871, 1, 1, '2016-12-27 17:05:11', '2016-12-27 17:05:11');
INSERT INTO onecmdb.t_attribute VALUES (-4517472112407533273, 4327352315063939490, 'Connected To', 'ConnectedTo', true, true, null, 'oneCMDB:#1325117208637117274', 'oneCMDB:#-2725368316691492923', null, null, null, -1407617025811333519, -1, 0, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-4514408188315887915, 9057925470585307046, 'Target', 'target', true, true, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, null, null, null, 8800458200064057403, 1, 1, '2016-12-28 15:59:31', '2016-12-28 15:59:31');
INSERT INTO onecmdb.t_attribute VALUES (-4512247815964124933, 3521168720769405274, null, 'name', false, true, 'The template name referenced with the use attribute.', 'xs:string', null, null, null, null, -6108598720877681394, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-4502574313825929703, -1628483030204260537, 'Version', 'Version', false, true, null, 'xs:string', null, 'XP', null, null, -389893205101279185, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-4501812012849258460, -5669522693763744355, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, 7319008446995797318, 1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-4500808472299730666, 5648763990242826958, null, 'objectType', false, true, 'The object definition name.', 'xs:string', null, 'timeperiod', null, null, -8312690835136204981, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-4484539289214677650, 1518384593752853684, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'mdrConfig', null, null, -8031090386881226833, 1, 0, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-4463935955150945905, -1914293858547080611, null, 'parent', true, true, 'Select a parent dataset. All AttributeSelectors will be used from the parent.', 'oneCMDB:#5263207391443191195', 'oneCMDB:#5024896043547205381', null, null, null, 4003664281832297273, 1, 1, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (-4425942539557258471, null, null, 'high_flap_threshold', false, true, 'This directive is used to specify the high state change threshold used in flap detection for this host. More information on flap detection can be found here. If you set this directive to a value of 0, the program-wide value specified by the high_host_flap_threshold directive will be used.', 'xs:integer', null, null, null, null, -6108598720877681394, 1, 1, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (-4418534453908098394, null, 'WSDL URL', 'WSDL_URL', false, true, null, 'xs:anyURI', null, null, null, null, 880600073926883392, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (-4408770126900141844, 5648763990242826958, null, 'objectType', false, true, 'The object definition name.', 'xs:string', null, 'contact', null, null, 7535307617655623766, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-4405087016263014431, null, 'Name', 'name', false, true, null, 'xs:string', null, null, null, null, -7432335284198671501, 1, 1, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (-4403347487192519599, 7436757148263249154, null, 'process', true, true, null, 'oneCMDB:#1634733290972246121', 'oneCMDB:#8916998895021029152', null, null, null, -5135423644045337547, 1, 1, '2016-12-27 17:05:12', '2016-12-27 17:05:12');
INSERT INTO onecmdb.t_attribute VALUES (-4402278263355567590, 6276919938260585959, 'Name', 'Name', false, true, null, 'xs:string', null, 'Laptop', null, null, 6971205699962462965, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-4397901913150731023, -3928698695148428799, 'Service', 'Service', true, false, null, 'oneCMDB:#-4678966175358915668', 'oneCMDB:#-3863377389438174788', 'oneCMDB:#-8299453159977117819', -8299453159977117819, null, -4632697620056224887, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-4379044292979440306, -8603102978338421612, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#1515202162886390642', null, null, 3209199279906906336, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-4378449962685204074, -5669522693763744355, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, -3158002772065733777, 1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-4377813381529510090, -6412811648088578427, 'Version', 'Version', false, true, null, 'xs:string', null, '4', null, null, -5508999552889392857, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-4374390308870654734, 5354873452518973426, 'Serial Number', 'SerialNumber', false, true, null, 'xs:string', null, null, null, null, 6971205699962462965, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-4360876531994393596, 2684607629046987153, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, 3440327906006223384, 1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-4359806390431846798, -5669522693763744355, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, 707827061935519211, 1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-4345885248536160239, 4558197380708316382, 'Serial Number', 'SerialNumber', false, false, null, 'xs:string', null, 'D-2134-987778', null, null, 6936928594960133541, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-4325908530580821491, null, 'Natural Key', 'naturalKey', false, true, null, 'xs:boolean', null, null, null, null, 4845305278725074851, 1, 1, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (-4318700251984890567, -6430347810547129509, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'resource', null, null, -1643976468999782598, 1, 0, '2016-12-28 16:01:48', '2016-12-28 16:01:48');
INSERT INTO onecmdb.t_attribute VALUES (-4317146327150318874, -4730824293899188058, 'DSL Entry', 'DSLEntry', false, false, null, 'xs:anyURI', null, 'http://www.onecmdb.org/docs/BasicDatacenter/DSL/Dummy_OS_Package.txt', null, null, -4632697620056224887, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-4293392986861175563, -5012192948753502156, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#4865346868591089587', null, null, 7799527875584504799, 1, 1, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (-4273716451241513113, 4485352581660378118, 'Protocol', 'Protocol', false, true, null, 'xs:string', null, null, null, null, -8747012735422861621, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (-4267678772187699571, 2338142333132801027, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#7503285799199789397', null, null, 2981264946819102869, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-4252980467254334836, -5669522693763744355, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, -7575172238653513809, 1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-4248503728139393759, -1524543709740163214, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#4899068668525632836', null, null, -4494610505631099290, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-4245994315420508952, -5669522693763744355, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, 4584492750138991208, 1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-4229200901629504087, -5591169885085062245, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#1117880875119624867', null, null, -4494610505631099290, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-4223380828570296426, -7758164584463198686, 'License Key', 'LicenseKey', false, true, null, 'xs:string', null, null, null, null, -389893205101279185, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-4203355344381679393, null, null, 'statusmap_image', false, true, 'This variable is used to define the name of an image that should be associated with this host in the statusmap CGI. You can specify a JPEG, PNG, and GIF image if you want, although I would strongly suggest using a GD2 format image, as other image formats will result in a lot of wasted CPU time when the statusmap image is generated. GD2 images can be created from PNG images by using the pngtogd2 utility supplied with Thomas Boutell’s gd library. The GD2 images should be created in uncompressed format in order to minimize CPU load when the statusmap CGI is generating the network map image. The image will look best if it is 40x40 pixels in size. You can leave these option blank if you are not using the statusmap CGI. Images for hosts are assumed to be in the logos/ subdirectory in your HTML images directory (i.e. /usr/local/nagios/share/images/logos).', 'xs:string', null, null, null, null, -6108598720877681394, 1, 1, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (-4201044175559986974, -8902468049398991901, 'MAC Address', 'MAC_Address', false, true, null, 'xs:string', null, null, null, null, 5068478429873757722, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-4163302755009949081, 1516791755150593049, 'Installed On', 'InstalledOn', true, false, null, 'oneCMDB:#-1168493350923132665', 'oneCMDB:#4825510563751653831', 'oneCMDB:#-6908501961876443996', -6908501961876443996, null, 7503285799199789397, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (-4134086884982452077, null, null, 'flap_detection_options', false, true, 'This directive is used to determine what host states the flap detection logic will use for this host. Valid options are a combination of one or more of the following: o = UP states, d = DOWN states, u = UNREACHABLE states.', 'xs:string', null, null, null, null, -6108598720877681394, 1, 1, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (-4116686723406206195, 2684607629046987153, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, 7140821888130541650, 1, 0, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (-4101985331549293530, -752431900193616089, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#1515202162886390642', null, null, 4465216800710758772, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-4086045964546730851, -2118060411480011372, 'SLA', 'SLA', false, true, null, 'xs:anyURI', null, null, null, null, -3696127716848820578, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-4067896510788910853, 1606342094493777432, 'IPv6 Address', 'IPv6Address', false, false, null, 'xs:string', null, null, null, null, 5448442896062760526, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-4063682981009531030, -7646176718298868076, 'Resource URL', 'url', false, true, null, 'xs:anyURI', null, null, null, null, -8759295909666495513, 1, 1, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (-4041564225165254727, -955580988551008358, null, 'icon', false, true, 'Filename (no file extension) of icon image.', 'xs:string', null, 'organisation', null, null, 9004371785829877556, 1, 0, '2016-12-28 16:01:48', '2016-12-28 16:01:48');
INSERT INTO onecmdb.t_attribute VALUES (-4037773816682465299, 4804824971481914461, 'Installed On', 'InstalledOn', true, true, null, 'oneCMDB:#-1168493350923132665', 'oneCMDB:#4825510563751653831', null, null, null, 6704163766313149585, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (-4032585266686028100, null, null, 'retain_status_information', false, true, 'This directive is used to determine whether or not status-related information about the contact is retained across program restarts. This is only useful if you have enabled state retention using the retain_state_information directive. Value: 0 = disable status information retention, 1 = enable status information retention.', 'xs:integer', null, null, null, null, 7535307617655623766, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (-4029285714628637960, 4153708730521655734, 'Maintenance Agreement', 'Maintenance_Agreement', false, false, null, 'xs:anyURI', null, 'http://www.onecmdb.org/docs/BasicDatacenter/docs/Dummy_Maintenance_Agreement.pdf', null, null, 5400821923574190750, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-4026261866368714555, -3928698695148428799, 'Service', 'Service', true, false, null, 'oneCMDB:#-4678966175358915668', 'oneCMDB:#-3863377389438174788', 'oneCMDB:#5999075076352418955', 5999075076352418955, null, 5872623185044658259, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-4022725985485174356, null, null, 'check_freshness', false, true, 'This directive is used to determine whether or not freshness checks are enabled for this host. Values: 0 = disable freshness checks, 1 = enable freshness checks. freshness_threshold: This directive is used to specify the freshness threshold (in seconds) for this host. If you set this directive to a value of 0, Nagios will determine a freshness threshold to use automatically.', 'xs:integer', null, null, null, null, -6108598720877681394, 1, 1, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (-3999457731962091377, -7478637079806485791, 'Name', 'Name', false, false, null, 'xs:string', null, 'Dell Computers', null, null, 5601229157724855285, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (-3986140125235926066, -5591169885085062245, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-3183565547364756951', null, null, 2957606740287094085, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-3985220062352766605, -5669522693763744355, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, -2030835886613899331, 1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-3980276175611489317, -3979711827897002409, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-7048484407295153374', null, null, 7967232968088040444, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-3979711827897002409, -1303877515446836590, 'Source', 'source', true, true, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, null, null, null, 4825510563751653831, 1, 1, '2016-12-28 16:01:48', '2016-12-28 16:01:48');
INSERT INTO onecmdb.t_attribute VALUES (-3977636133486927017, -5012192948753502156, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-7013056504252155877', null, null, 2283492301274917080, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-3970055505084913355, -5669522693763744355, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, 7644587526696132904, 1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-3959429388601876982, 1917979139818517146, 'Name', 'Name', false, false, null, 'xs:string', null, 'SAN', null, null, -6365967536967575940, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-3956164581230590235, 2700247614719053876, 'Version', 'Version', false, false, null, 'xs:string', null, '1.0.0', null, null, -2871151807065298888, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-3928698695148428799, -7222577200332478233, 'Service', 'Service', true, true, null, 'oneCMDB:#-4678966175358915668', 'oneCMDB:#-3863377389438174788', null, null, null, 4727188545314013933, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-3925488046282675910, -1040856819005843342, null, 'use', false, true, 'The template this nagios config entry should derived from.', 'xs:string', null, null, null, null, 1890256877210801519, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-3909096468882568373, null, null, 'notes', false, true, null, 'xs:string', null, null, null, null, -2437713139919564933, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (-3890893260403562867, 3629437584973513653, 'Serial Number', 'SerialNumber', false, false, null, 'xs:string', null, '2345-12334-C', null, null, 4899068668525632836, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-3861241026947317987, null, null, 'Hostname', false, true, null, 'xs:string', null, null, null, null, 1325117208637117274, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-3858534474766417652, -7478637079806485791, 'Name', 'Name', false, false, null, 'xs:string', null, 'Computer Company, Inc.', null, null, -3468993384790064691, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (-3858465438249819764, -1524543709740163214, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#5438961292355445872', null, null, 3354404145119257703, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-3836758716548464215, 6146017424008324110, 'Name', 'Name', false, false, null, 'xs:string', null, 'Web Mail', null, null, -2871151807065298888, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-3834762813427296641, -5591169885085062245, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#7611584779566472356', null, null, -5314165864344869773, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-3833438298391677865, -1201591218872166485, 'Web Address', 'Web_Address', false, false, null, 'xs:anyURI', null, 'http://www.itsupp.com', null, null, -505646845337106548, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-3831161519180542550, -7480885693105589137, 'Name', 'Name', false, true, null, 'xs:string', null, 'DB', null, null, -8747012735422861621, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-3828655332536900350, -5591169885085062245, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#1117880875119624867', null, null, -4310737394725159923, 1, 1, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (-3826991543516331442, null, 'Import Directory', 'importDir', false, true, 'If this entry should be an instances and a template.', 'xs:string', null, null, null, null, -7382422160449654057, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (-3808802259198411781, 966631586530060965, 'Name', 'Name', false, false, null, 'xs:string', null, 'Alpha', null, null, 5438961292355445872, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-3793671960823331843, -6234130601229229561, 'Service', 'Service', true, false, null, 'oneCMDB:#-4678966175358915668', 'oneCMDB:#-3863377389438174788', 'oneCMDB:#-6511386447479370558', -6511386447479370558, null, 4298307837787561059, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-3789828508915130364, -2760402955939510348, 'Template', 'template', false, true, null, 'xs:string', null, null, null, null, -7445925636082603207, 1, 1, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (-3786090136812358856, 3221537918336219026, 'Maintenance Info', 'Maintenance', true, false, null, 'oneCMDB:#7154244997109246053', 'oneCMDB:#-8025526327383936657', 'oneCMDB:#4880727536152492008', 4880727536152492008, null, 8385099514641563517, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-3775792042682302591, 4168272132656335525, 'Network', 'Network', true, true, null, 'oneCMDB:#-838366469867279794', 'oneCMDB:#-3863377389438174788', null, null, null, 5068478429873757722, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-3770256935932572771, -5591169885085062245, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#5601229157724855285', null, null, 4312680585269675121, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-3762283678602573282, 129652908319622854, 'Maintenance Info', 'Maintenance', true, true, null, 'oneCMDB:#7154244997109246053', 'oneCMDB:#-8025526327383936657', null, null, null, 2166601380421831026, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-3732326593236878410, 1283852019182702315, 'Name', 'Name', false, true, null, 'xs:string', null, 'Windows XP', null, null, 72883027723141449, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-3714184618110338326, null, null, 'members', true, true, 'This is a list of the short names of hosts that should be included in this group. Multiple host names should be separated by commas. This directive may be used as an alternative to (or in addition to) the hostgroups directive in host definitions.', 'oneCMDB:#-6108598720877681394', 'oneCMDB:#-3863377389438174788', null, null, null, -4154185814876458058, -1, 0, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (-3711554195657611018, -7478637079806485791, 'Name', 'Name', false, false, null, 'xs:string', null, 'Customer Company, Inc.', null, null, -1643976468999782598, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (-3710366746603577013, -6253449519280162112, 'Location', 'Location', true, true, null, 'oneCMDB:#-3200591116467062442', 'oneCMDB:#-8025526327383936657', null, null, null, 3177618163676867203, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-3709391132749872087, -7718528382892313710, 'DSL Entry', 'DSLEntry', false, true, null, 'xs:anyURI', null, 'http://www.onecmdb.org/docs/BasicDatacenter/DSL/Dummy_Software_Package.txt', null, null, 4037843118202851281, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-3676834276060185846, 2684014330841366898, null, 'icon', false, true, 'Filename (no file extension) of icon image.', 'xs:string', null, 'ci', null, null, -3060461545451854211, 1, 0, '2016-12-28 15:59:31', '2016-12-28 15:59:31');
INSERT INTO onecmdb.t_attribute VALUES (-3674724723028882167, 4804824971481914461, 'Installed On', 'InstalledOn', true, true, null, 'oneCMDB:#-1168493350923132665', 'oneCMDB:#4825510563751653831', null, null, null, -8747012735422861621, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (-3668350641871211785, -1040856819005843342, null, 'use', false, true, 'The template this nagios config entry should derived from.', 'xs:string', null, null, null, null, 1837107117169913746, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-3642850457539588466, -8348087354050614611, 'License Key', 'LicenseKey', false, false, null, 'xs:string', null, 'MSOL-4566-7768-6786', null, null, 8451682648722222209, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-3591426770444169527, 9011789143889559455, null, 'icon', false, true, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, 3819466882454481805, 1, 0, '2016-12-27 17:05:12', '2016-12-27 17:05:12');
INSERT INTO onecmdb.t_attribute VALUES (-3580787153682735514, -4972344921978241811, 'Version', 'Version', false, false, null, 'xs:string', null, '9.4', null, null, 8067161067550301549, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-3579198179908134377, null, 'Write', 'write', false, true, 'Write permission the groups', 'xs:boolean', null, null, null, null, 6915891861069126862, 1, 1, '2016-12-27 17:05:10', '2016-12-27 17:05:10');
INSERT INTO onecmdb.t_attribute VALUES (-3568289675663571800, -5012192948753502156, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-4856766876697112377', null, null, 5553546200893327886, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-3565937917783769937, 8317113949910264734, 'Financial Info', 'Financial', true, true, null, 'oneCMDB:#-4030583075832430887', 'oneCMDB:#-8025526327383936657', null, null, null, -1168493350923132665, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-3562428261824730015, -1524543709740163214, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-7171807647212474252', null, null, 3459773674201409910, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-3555410114187050562, -1136630148419967552, 'Manufacturer', 'Manufacturer', true, true, null, 'oneCMDB:#5433965781192492423', 'oneCMDB:#-8025526327383936657', null, null, null, 9059693167497789202, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-3551302016456131717, -2207020015714012191, 'Network', 'Network', true, false, null, 'oneCMDB:#-838366469867279794', 'oneCMDB:#-3863377389438174788', 'oneCMDB:#-7663871818674193036', -7663871818674193036, null, 5438961292355445872, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-3537984019126633946, 3714266985875752551, null, 'icon', false, true, 'Filename (no file extension) of icon image.', 'xs:string', null, null, null, null, -4090127195608060880, 1, 0, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (-3537049677225402665, -5591169885085062245, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-8154505932687141586', null, null, -6012107529363071363, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-3523496038624325576, -3484398261403397581, 'Serial Number', 'SerialNumber', false, false, null, 'xs:string', null, '3425-234523', null, null, 5438961292355445872, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-3520037971939371164, 9210594737925533850, null, 'icon', false, true, 'Filename (no file extension) of icon image.', 'xs:string', null, 'hardware', null, null, -4924123363775224211, 1, 0, '2016-12-28 16:01:48', '2016-12-28 16:01:48');
INSERT INTO onecmdb.t_attribute VALUES (-3518035053137744538, 4646922231658548033, null, 'useName', false, true, 'If the instance should include it''s name. Eq if this instance is used by another instance.', 'xs:boolean', null, null, null, null, -1912794354431148047, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-3512246807715428266, -4832412014878157924, 'Network', 'Network', true, true, null, 'oneCMDB:#-838366469867279794', 'oneCMDB:#-3863377389438174788', null, null, null, 6971205699962462965, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-3504402302539784541, null, null, 'low_flap_threshold', false, true, 'This directive is used to specify the low state change threshold used in flap detection for this host. More information on flap detection can be found here. If you set this directive to a value of 0, the program-wide value specified by the low_host_flap_threshold directive will be used.', 'xs:integer', null, null, null, null, -6108598720877681394, 1, 1, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (-3501497099400883576, -5591169885085062245, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-6387231193564991043', null, null, 2725616338268238790, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-3494327147782736296, -1524543709740163214, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-6624236066440953660', null, null, 7029272808438756741, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-3493742843779798092, -2373699956992759322, 'Target', 'target', true, true, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, null, null, null, 8916998895021029152, 1, 1, '2016-12-27 17:05:12', '2016-12-27 17:05:12');
INSERT INTO onecmdb.t_attribute VALUES (-3484398261403397581, 5354873452518973426, 'Serial Number', 'SerialNumber', false, true, null, 'xs:string', null, null, null, null, 2166601380421831026, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-3482532486936573928, -1762443614652211391, 'Port', 'Port', false, false, null, 'xs:integer', null, '80', 80, null, 3872536235728130109, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-3474182924429479977, -2642089993832413257, 'Organization', 'Organisation', true, false, null, 'oneCMDB:#5433965781192492423', 'oneCMDB:#-3863377389438174788', 'oneCMDB:#8597807869981412296', 8597807869981412296, null, -6388783933053098658, 1, 1, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (-3455630956958003610, 9180838692583090870, 'Name', 'Name', false, false, null, 'xs:string', null, 'Financials OS', null, null, -6502872628718390337, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-3448737173636733901, -5012192948753502156, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-8880592129556602654', null, null, 32356233041257316, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-3447196522800479383, 153229449285681766, 'Name', 'Name', false, true, null, 'xs:string', null, 'DNS', null, null, -5058684262027826612, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-3445293210208105061, null, null, 'contacts', true, true, 'This is a list of the short names of the contacts that should be notified whenever there are problems (or recoveries) with this host. Multiple contacts should be separated by commas. Useful if you want notifications to go to just a few people and don’t want to configure contact groups. You must specify at least one contact or contact group in each host definition.', 'oneCMDB:#7535307617655623766', 'oneCMDB:#-3863377389438174788', null, null, null, -6108598720877681394, 1, 1, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (-3435856689309344079, 4646922231658548033, null, 'useName', false, true, 'If the instance should include it''s name. Eq if this instance is used by another instance.', 'xs:boolean', null, null, null, null, -3885642522584708287, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-3426974549436783905, -8713525033916958150, 'Service', 'Service', true, true, null, 'oneCMDB:#-4678966175358915668', 'oneCMDB:#-3863377389438174788', null, null, null, 5068478429873757722, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-3394012301912712049, 1743396138401171271, 'Java Class Name', 'javaClass', false, true, null, 'xs:string', null, 'org.onecmdb.core.utils.transform.EmptyInstanceSelector', null, null, -7445925636082603207, 1, 1, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (-3373319435143759328, -1524543709740163214, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#2763197975055376610', null, null, -7647209654369308926, 1, 1, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (-3362979662223256058, -4729509718012020932, 'IPv6 Address', 'IPv6Address', false, true, null, 'xs:string', null, null, null, null, 6971205699962462965, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-3362059624817279767, -8032206424771457608, null, 'icon', false, true, 'Filename (no file extension) of icon image.', 'xs:string', null, 'linux', null, null, 5676046625265852474, 1, 0, '2016-12-28 16:01:48', '2016-12-28 16:01:48');
INSERT INTO onecmdb.t_attribute VALUES (-3356539807355323141, -5591169885085062245, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-3183565547364756951', null, null, -7150282703580789614, 1, 1, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (-3339348614286452107, -2801905901310548117, null, 'icon', false, true, 'Filename (no file extension) of icon image.', 'xs:string', null, 'ci', null, null, 8896701847700868898, 1, 0, '2016-12-28 16:01:48', '2016-12-28 16:01:48');
INSERT INTO onecmdb.t_attribute VALUES (-3311843226185132189, -3861241026947317987, null, 'Hostname', false, true, null, 'xs:string', null, null, null, null, 5068478429873757722, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-3291561703888687853, 2338142333132801027, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-38466446972918069', null, null, -2505342025169104571, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-3282656682906662027, null, null, 'attributeSelector', true, true, 'Select one attribute value from the data source', 'oneCMDB:#4845305278725074851', 'oneCMDB:#5024896043547205381', null, null, null, 5263207391443191195, -1, 1, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (-3247552238993862360, 4804824971481914461, 'Installed On', 'InstalledOn', true, true, null, 'oneCMDB:#-1168493350923132665', 'oneCMDB:#4825510563751653831', null, null, null, 3865960124110820148, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (-3229569886686294179, -3339348614286452107, null, 'icon', false, true, 'Filename (no file extension) of icon image.', 'xs:string', null, 'ci', null, null, 1837107117169913746, 1, 0, '2016-12-28 16:01:48', '2016-12-28 16:01:48');
INSERT INTO onecmdb.t_attribute VALUES (-3223785729319479791, null, 'Template Column Name', 'templateColName', false, true, null, 'xs:string', null, null, null, null, 4972181722220004715, 1, 1, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (-3209312745176596290, 3732561575553150198, 'Financial Info', 'Financial', true, true, null, 'oneCMDB:#-4030583075832430887', 'oneCMDB:#-8025526327383936657', null, null, null, 72883027723141449, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-3171351555966013173, null, null, 'passive_checks_enabled', false, true, 'This directive is used to determine whether or not passive checks are enabled for this host. Values: 0 = disable passive host checks, 1 = enable passive host checks.', 'xs:integer', null, null, null, null, -6108598720877681394, 1, 1, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (-3164592398327278928, 7456012045618063757, 'Maintenance Info', 'Maintenance', true, true, null, 'oneCMDB:#7154244997109246053', 'oneCMDB:#-8025526327383936657', null, null, null, 880600073926883392, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-3162575322051502106, -2642089993832413257, 'Organization', 'Organisation', true, false, null, 'oneCMDB:#5433965781192492423', 'oneCMDB:#-3863377389438174788', 'oneCMDB:#1130587008037623531', 1130587008037623531, null, 6109272791907384000, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-3162360081094525402, 6353112808861710841, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'resource', null, null, -8880592129556602654, 1, 0, '2016-12-28 16:01:48', '2016-12-28 16:01:48');
INSERT INTO onecmdb.t_attribute VALUES (-3153312716636734747, -653152380451391655, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'service', null, null, -7013056504252155877, 1, 0, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-3149092416530265608, 5911421171828430166, 'MDR Repository', 'mdrRepository', true, false, null, 'oneCMDB:#-8400736094814329789', 'oneCMDB:#8800458200064057403', 'oneCMDB:#2708301732820392314', 2708301732820392314, null, -8031090386881226833, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-3140251888882985148, -1524543709740163214, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-306753241820469847', null, null, 937840216150955399, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-3134890770285960805, -1524543709740163214, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#4899068668525632836', null, null, 3582055101908388606, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-3134217065008532860, -5591169885085062245, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#5400821923574190750', null, null, -7382216090039740193, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-3120217495623001474, 3858978566748600360, null, 'icon', false, true, 'Filename (no file extension) of icon image.', 'xs:string', null, 'application', null, null, 3865960124110820148, 1, 0, '2016-12-28 16:01:48', '2016-12-28 16:01:48');
INSERT INTO onecmdb.t_attribute VALUES (-3103113042970655450, -3979711827897002409, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#4298307837787561059', null, null, -7664282384609793106, 1, 1, '2016-12-28 16:01:53', '2016-12-28 16:01:53');
INSERT INTO onecmdb.t_attribute VALUES (-3097879285311416444, -4405087016263014431, 'Name', 'name', false, true, null, 'xs:string', null, null, null, null, -7445925636082603207, 1, 1, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (-3097359542165787462, -2118060411480011372, 'SLA', 'SLA', false, false, null, 'xs:anyURI', null, 'http://www.onecmdb.org/docs/BasicDatacenter/docs/Dummy_Service_Level_Agreement.pdf', null, null, -7013056504252155877, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-3093729887267506080, -1524543709740163214, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-5055663519884480021', null, null, -4924263808219888120, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-3090226261874321999, 3539801174688424857, 'DSL Entry', 'DSLEntry', false, false, null, 'xs:anyURI', null, 'http://www.onecmdb.org/docs/BasicDatacenter/DSL/Dummy_Software_Package.txt', null, null, -7550256766207092122, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-3088612808858263772, 966631586530060965, 'Name', 'Name', false, false, null, 'xs:string', null, 'Echo', null, null, 5612781772166901244, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-3087672212060338294, -9143811055134819436, null, 'Hostname', false, false, null, 'xs:string', null, null, null, null, 1515202162886390642, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-3085499285560338061, 4268936107291215598, null, 'icon', false, true, 'Filename (no file extension) of icon image.', 'xs:string', null, 'asset', null, null, -4030583075832430887, 1, 0, '2016-12-28 16:01:48', '2016-12-28 16:01:48');
INSERT INTO onecmdb.t_attribute VALUES (-3083491610262817321, 3494119200713136516, 'Maintenance Info', 'Maintenance', true, true, null, 'oneCMDB:#7154244997109246053', 'oneCMDB:#-8025526327383936657', null, null, null, 7491575733809579230, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-3075938161346206893, 454245518513090804, 'Used By', 'UsedBy', true, false, null, 'oneCMDB:#5433965781192492423', 'oneCMDB:#-8025526327383936657', 'oneCMDB:#-1958952144243754930', -1958952144243754930, null, -7013056504252155877, -1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-3068912336442916125, 4653398946476010974, 'Installed On', 'InstalledOn', true, true, null, 'oneCMDB:#1325117208637117274', 'oneCMDB:#4825510563751653831', null, null, null, -1951039734141517216, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-3057339844500421449, -8144224673712551298, 'Name', 'Name', false, true, null, 'xs:string', null, 'HDD', null, null, 3177618163676867203, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-3056857721365953355, 2684607629046987153, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, 323022922402464520, 1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-3049788565699956314, 6489324153410357449, null, 'icon', false, true, 'Filename (no file extension) of icon image.', 'xs:string', null, null, null, null, 5263207391443191195, 1, 0, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (-3040603645348175793, -5669522693763744355, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, 817799169808668737, 1, 0, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (-3039548473111430216, -3555410114187050562, 'Manufacturer', 'Manufacturer', true, false, null, 'oneCMDB:#5433965781192492423', 'oneCMDB:#-8025526327383936657', null, null, null, 4899068668525632836, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-3033041843961381815, -1524543709740163214, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-3883718588737995702', null, null, -7355125189121292561, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-2994422278395287074, 830469767810511665, 'Depreciation (years)', 'Depreciation', false, false, null, 'xs:integer', null, '3', 3, null, 7611584779566472356, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-2979257718127637361, null, null, 'members', true, true, 'This is a list of the descriptions of services (and the names of their corresponding hosts) that should be included in this group. Host and service names should be separated by commas. This directive may be used as an alternative to the servicegroups directive in service definitions. The format of the member directive is as follows (note that a host name must precede a service name/description): members=''host1'',''service1'',''host2'',''service2'',...''hostn'',''servicen''', 'oneCMDB:#8986099038471647984', 'oneCMDB:#-3863377389438174788', null, null, null, -1912794354431148047, -1, 0, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (-2971666459391888631, 4153708730521655734, 'Maintenance Agreement', 'Maintenance_Agreement', false, false, null, 'xs:anyURI', null, 'http://www.onecmdb.org/docs/BasicDatacenter/docs/Dummy_Maintenance_Agreement.pdf', null, null, -8697924501898487676, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-2964519061933174532, 8950313626086492550, 'Installed On', 'InstalledOn', true, false, null, 'oneCMDB:#-1168493350923132665', 'oneCMDB:#4825510563751653831', 'oneCMDB:#7425451699892628348', 7425451699892628348, null, -7550256766207092122, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (-2949455784256884472, 8345497989318023921, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, 1204720086284505437, 1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-2943510380394532811, -5069771326177225806, 'Maintenance Info', 'Maintenance', true, true, null, 'oneCMDB:#7154244997109246053', 'oneCMDB:#-8025526327383936657', null, null, null, -294406670328424842, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-2936436017886764218, -5012192948753502156, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-6553834200975625641', null, null, 6928470614784645567, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-2918011532607696492, 4268936107291215598, null, 'icon', false, true, 'Filename (no file extension) of icon image.', 'xs:string', null, 'status', null, null, 41965733952263877, 1, 0, '2016-12-28 16:01:48', '2016-12-28 16:01:48');
INSERT INTO onecmdb.t_attribute VALUES (-2909652001175384722, 1917979139818517146, 'Name', 'Name', false, false, null, 'xs:string', null, 'Webhosting', null, null, -4240101805785438545, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-2899098323750673178, -1524543709740163214, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#2763197975055376610', null, null, 5180604568546827291, 1, 1, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (-2893801909097519971, -1962948928067916253, 'Financial Info', 'Financials', true, true, null, 'oneCMDB:#-4030583075832430887', 'oneCMDB:#-8025526327383936657', null, null, null, 5575307939015290823, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-2892704986996219486, null, 'IPv6 Address', 'IPv6Address', false, true, null, 'xs:string', null, null, null, null, 1325117208637117274, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-2876183977687340696, 2684607629046987153, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, -2505342025169104571, 1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-2864810736519997291, 4869468365480249401, null, 'register', false, true, 'If this entry should be an instances and a template.', 'xs:string', null, null, null, null, 1890256877210801519, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-2859543475658467545, 4869468365480249401, null, 'register', false, true, 'If this entry should be an instances and a template.', 'xs:string', null, null, null, null, 1837107117169913746, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-2859215081629670759, -1524543709740163214, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#1198750186879466999', null, null, -7382216090039740193, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-2849566899531846094, -2114353355444033311, 'Models', 'modelFiles', false, false, null, 'xs:string', null, '/MDR/Models/models/Nagios_Model/Nagios_Model.xml', null, null, -4992730422267492319, -1, 0, '2016-12-28 16:02:42', '2016-12-28 16:02:42');
INSERT INTO onecmdb.t_attribute VALUES (-2837150785494573120, 2684607629046987153, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, 8757673589312859238, 1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-2828568716239927004, 2936909531636349425, 'Service', 'Service', true, true, null, 'oneCMDB:#-4678966175358915668', 'oneCMDB:#-3863377389438174788', null, null, null, 4037843118202851281, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-2823668412504869687, 6287513669983464096, 'MDR Repository', 'mdrRepository', true, true, null, 'oneCMDB:#-8400736094814329789', 'oneCMDB:#8800458200064057403', null, null, null, -8128493564763208677, 1, 1, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (-2818026918544056822, 3019124727075563373, 'Maintenance Info', 'Maintenance', true, false, null, 'oneCMDB:#7154244997109246053', 'oneCMDB:#-8025526327383936657', 'oneCMDB:#-2137122543479173001', -2137122543479173001, null, -7550256766207092122, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-2817323741457305573, -3979711827897002409, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-7315267361872023940', null, null, 4819840601125854863, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-2806491181981436109, -1478756811695415278, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, 7100503376313409434, 1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-2801905901310548117, -955580988551008358, null, 'icon', false, true, 'Filename (no file extension) of icon image.', 'xs:string', null, 'monitoring', null, null, -5034232257669130518, 1, 0, '2016-12-28 16:01:48', '2016-12-28 16:01:48');
INSERT INTO onecmdb.t_attribute VALUES (-2794185067687257957, null, 'Location', 'Location', true, true, null, 'oneCMDB:#-3200591116467062442', 'oneCMDB:#-8025526327383936657', null, null, null, -4924123363775224211, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-2786445710125544106, 8794022947635014930, 'Connected To', 'ConnectedTo', true, true, null, 'oneCMDB:#1325117208637117274', 'oneCMDB:#-2725368316691492923', null, null, null, -239896225795807576, -1, 0, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-2782055746467440618, -8713525033916958150, 'Service', 'Service', true, true, null, 'oneCMDB:#-4678966175358915668', 'oneCMDB:#-3863377389438174788', null, null, null, 3331921274338303097, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-2777044263240499460, 3509753089921857827, 'Protocol', 'Protocol', false, false, null, 'xs:string', null, null, null, null, -7171807647212474252, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (-2760693371347628059, -1524543709740163214, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-7315267361872023940', null, null, 587391989376672404, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-2760402955939510348, null, 'Template', 'template', false, true, null, 'xs:string', null, null, null, null, -7432335284198671501, 1, 1, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (-2734613420009164504, null, null, 'check_period', true, true, 'This directive is used to specify the short name of the time period during which active checks of this service can be made.', 'oneCMDB:#-8312690835136204981', 'oneCMDB:#-3863377389438174788', null, null, null, 8986099038471647984, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (-2713233338004507260, null, null, 'service_description', true, true, null, 'oneCMDB:#8986099038471647984', 'oneCMDB:#-3863377389438174788', null, null, null, 1890256877210801519, -1, 1, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (-2709954261894967706, -3565937917783769937, 'Financial Info', 'Financial', true, true, null, 'oneCMDB:#-4030583075832430887', 'oneCMDB:#-8025526327383936657', null, null, null, 4338151747944765362, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-2698933782752407020, -5012192948753502156, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-8880592129556602654', null, null, 2993602225205075567, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-2689197137051920233, null, 'XPath', 'xpath', false, true, null, 'xs:string', null, null, null, null, -4090127195608060880, 1, 1, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (-2679441718127273588, -1201591218872166485, 'Web Address', 'Web_Address', false, false, null, 'xs:anyURI', null, 'http://www.acme.com', null, null, 2376092523771938845, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-2673783600253300769, 2400063756869389014, null, 'icon', false, true, 'Filename (no file extension) of icon image.', 'xs:string', null, null, null, null, 5014313985612676927, 1, 0, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (-2642089993832413257, null, 'Organization', 'Organisation', true, true, null, 'oneCMDB:#5433965781192492423', 'oneCMDB:#-3863377389438174788', null, null, null, -15958512515039807, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (-2634548728011076312, -5591169885085062245, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#1117880875119624867', null, null, 4481559520547198524, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-2618406701348405411, 5729956576303207759, 'IPv4 Address', 'IPAddress', false, true, null, 'xs:string', null, null, null, null, 9059693167497789202, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-2604790347877973846, -2828568716239927004, 'Service', 'Service', true, false, null, 'oneCMDB:#-4678966175358915668', 'oneCMDB:#-3863377389438174788', 'oneCMDB:#2283492301274917080', 2283492301274917080, null, 8451682648722222209, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-2604308918736858471, -6868818845750700134, 'Uses', 'Uses', true, false, null, 'oneCMDB:#-4678966175358915668', 'oneCMDB:#7815034950157158561', 'oneCMDB:#-2862918293792131485', -2862918293792131485, null, -4240101805785438545, -1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-2583099447837866590, null, 'XPath', 'xpath', false, true, null, 'xs:string', null, null, null, null, 6436463782760758572, 1, 1, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (-2577471679241597588, null, null, 'event_handler', true, true, 'This directive is used to specify the short name of the command that should be run whenever a change in the state of the host is detected (i.e. whenever it goes down or recovers). Read the documentation on event handlers for a more detailed explanation of how to write scripts for handling events. The maximum amount of time that the event handler command can run is controlled by the event_handler_timeout option.', 'oneCMDB:#1837107117169913746', 'oneCMDB:#-3863377389438174788', null, null, null, -6108598720877681394, 1, 1, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (-2569631741235286117, -2118060411480011372, 'SLA', 'SLA', false, false, null, 'xs:anyURI', null, 'http://www.onecmdb.org/docs/BasicDatacenter/docs/Dummy_Service_Level_Agreement.pdf', null, null, -6365967536967575940, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-2556085342287376074, -3520037971939371164, null, 'icon', false, true, 'Filename (no file extension) of icon image.', 'xs:string', null, 'rackunit', null, null, 2317423548075909079, 1, 0, '2016-12-28 16:01:48', '2016-12-28 16:01:48');
INSERT INTO onecmdb.t_attribute VALUES (-2552090368059408621, -5591169885085062245, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-3183565547364756951', null, null, -30076058648415763, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-2540134846449235705, 2667674826264397235, 'Maintenance Info', 'Maintenance', true, true, null, 'oneCMDB:#7154244997109246053', 'oneCMDB:#-8025526327383936657', null, null, null, 4727188545314013933, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-2525640838660542199, null, null, 'execution_failure_criteria', false, true, null, 'xs:string', null, null, null, null, 1890256877210801519, 1, 1, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (-2502974839177737761, -5591169885085062245, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-6502872628718390337', null, null, 1790914910377287488, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-2502914094907400325, 3744240333219012972, 'Name', 'Name', false, false, null, 'xs:string', null, 'HW Maintenance 5x8', null, null, 5400821923574190750, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-2501234258795955894, -1238933389632567366, 'Maintenance Info', 'Maintenance', true, false, null, 'oneCMDB:#7154244997109246053', 'oneCMDB:#-8025526327383936657', 'oneCMDB:#57708491460695096', 57708491460695096, null, -3267638157342394138, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-2498248931272417342, -3339348614286452107, null, 'icon', false, true, 'Filename (no file extension) of icon image.', 'xs:string', null, 'ci', null, null, 739521429005320541, 1, 0, '2016-12-28 16:01:48', '2016-12-28 16:01:48');
INSERT INTO onecmdb.t_attribute VALUES (-2495265193082128598, -5591169885085062245, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#1117880875119624867', null, null, 3292283325467518720, 1, 1, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (-2489227691804354699, -3861241026947317987, null, 'Hostname', false, true, null, 'xs:string', null, null, null, null, 9059693167497789202, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-2478656312227394650, 4917553370040696144, 'Entries', 'files', false, false, null, 'xs:string', null, '/MDR/Models/models/Basic_Model/Basic_Model_References.xml', null, null, 4675968942250705277, -1, 0, '2016-12-28 16:02:05', '2016-12-28 16:02:05');
INSERT INTO onecmdb.t_attribute VALUES (-2476269882465845358, 8711832841281364150, 'Financial Info', 'Financial', true, true, null, 'oneCMDB:#-4030583075832430887', 'oneCMDB:#-8025526327383936657', null, null, null, -5508999552889392857, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-2471608329271919422, null, null, 'servicegroups', true, true, 'This directive is used to identify the short name(s) of the servicegroup(s) that the service belongs to. Multiple servicegroups should be separated by commas. This directive may be used as an alternative to using the members directive in servicegroup definitions.', 'oneCMDB:#-1912794354431148047', 'oneCMDB:#-3863377389438174788', null, null, null, 8986099038471647984, -1, 0, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (-2470162110705180051, 8079969694138493463, 'Financial Info', 'Financial', true, true, null, 'oneCMDB:#-4030583075832430887', 'oneCMDB:#-8025526327383936657', null, null, null, -1727366760233341791, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-2461196958877615429, -5591169885085062245, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#3770822044337348543', null, null, 6574293108878508724, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-2459542324391877616, -6868818845750700134, 'Uses', 'Uses', true, false, null, 'oneCMDB:#-4678966175358915668', 'oneCMDB:#7815034950157158561', 'oneCMDB:#-6594416363670802186', -6594416363670802186, null, -4856766876697112377, -1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-2448948533492338946, 325373451995316120, 'Uses', 'Uses', true, true, null, 'oneCMDB:#7491575733809579230', 'oneCMDB:#7815034950157158561', null, null, null, -1727366760233341791, -1, 0, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (-2448778582390853220, 4825640834499321714, 'Target', 'target', true, true, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, null, null, null, 7815034950157158561, 1, 1, '2016-12-28 16:01:48', '2016-12-28 16:01:48');
INSERT INTO onecmdb.t_attribute VALUES (-2445963789720288878, 2684014330841366898, null, 'icon', false, true, 'Filename (no file extension) of icon image.', 'xs:string', null, null, null, null, -5204393851905875261, 1, 0, '2016-12-27 17:05:11', '2016-12-27 17:05:11');
INSERT INTO onecmdb.t_attribute VALUES (-2439390704264714729, -3676834276060185846, null, 'icon', false, true, 'Filename (no file extension) of icon image.', 'xs:string', null, 'mdrConfig', null, null, 3521914687713450939, 1, 0, '2016-12-28 15:59:31', '2016-12-28 15:59:31');
INSERT INTO onecmdb.t_attribute VALUES (-2433458663258691354, 3744240333219012972, 'Name', 'Name', false, false, null, 'xs:string', null, 'HW Maintenance 7x24', null, null, 2970960574384196618, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-2422577325518784882, 639893315560191899, 'Service', 'Service', true, false, null, 'oneCMDB:#-4678966175358915668', 'oneCMDB:#-3863377389438174788', 'oneCMDB:#8757673589312859238', 8757673589312859238, null, -7171807647212474252, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-2419744891512741806, null, 'Status', 'status', false, true, null, 'xs:string', null, null, null, null, 3521914687713450939, 1, 1, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (-2409321076553637155, 8905241569907256559, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'resource', null, null, 1117880875119624867, 1, 0, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-2383113896022582135, -711183777322058863, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'desktop', null, null, 6936928594960133541, 1, 0, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-2374858043278276341, 966631586530060965, 'Name', 'Name', false, false, null, 'xs:string', null, 'Charlie', null, null, 1198750186879466999, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-2373699956992759322, 9057925470585307046, 'Target', 'target', true, true, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, null, null, null, -1122480518350212068, 1, 1, '2016-12-27 17:05:12', '2016-12-27 17:05:12');
INSERT INTO onecmdb.t_attribute VALUES (-2369869978128560028, null, null, 'event_handler_enabled', false, true, 'This directive is used to determine whether or not the event handler for this service is enabled. Values: 0 = disable service event handler, 1 = enable service event handler. low_flap_threshold: This directive is used to specify the low state change threshold used in flap detection for this service. More information on flap detection can be found here. If you set this directive to a value of 0, the program-wide value specified by the low_service_flap_threshold directive will be used.', 'xs:integer', null, null, null, null, 8986099038471647984, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (-2366941038302657249, -9124881232704000087, 'Maintenance Info', 'Maintenance', true, true, null, 'oneCMDB:#7154244997109246053', 'oneCMDB:#-8025526327383936657', null, null, null, -5508999552889392857, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-2364118116937403663, null, null, 'notes', false, true, 'This directive is used to define an optional string of notes pertaining to the service. If you specify a note here, you will see the it in the extended information CGI (when you are viewing information about the specified service).', 'xs:string', null, null, null, null, 8986099038471647984, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (-2354345959470622928, null, 'Start Delay', 'startDelay', false, true, null, 'xs:integer', null, null, null, null, -6754672868001187115, 1, 1, '2016-12-27 17:05:12', '2016-12-27 17:05:12');
INSERT INTO onecmdb.t_attribute VALUES (-2344575093696141095, -605019068309621708, 'Uses', 'Uses', true, true, null, 'oneCMDB:#7491575733809579230', 'oneCMDB:#7815034950157158561', null, null, null, 1769375665960405126, -1, 0, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (-2338491134665967324, null, 'Status', 'Status', true, true, null, 'oneCMDB:#41965733952263877', 'oneCMDB:#-8025526327383936657', null, null, null, -4924123363775224211, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-2329278242628131997, -2618406701348405411, 'IPv4 Address', 'IPAddress', false, false, null, 'xs:string', null, null, null, null, 4899068668525632836, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-2321851657558590542, 167682503217310041, 'Purchase Date', 'Purchase_Date', false, false, null, 'xs:date', null, '2007-04-01', null, '2007-04-01 12:00:01', 1616600853113017715, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-2316361201150863818, 1917979139818517146, 'Name', 'Name', false, false, null, 'xs:string', null, 'E-mail', null, null, -7013056504252155877, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-2292599329363038282, 492545217158090566, 'Program', 'program', false, false, null, 'xs:string', null, 'bin/import-nagios', null, null, -8031090386881226833, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-2285417843436206533, null, 'Manufacturer', 'Manufacturer', true, true, null, 'oneCMDB:#5433965781192492423', 'oneCMDB:#-8025526327383936657', null, null, null, -4924123363775224211, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-2262739008350834579, 6514396784575161283, 'Financial Info', 'Financials', true, true, null, 'oneCMDB:#-4030583075832430887', 'oneCMDB:#-8025526327383936657', null, null, null, 3331921274338303097, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-2258314411174018419, -6908584902055908512, 'OS Family', 'Family', false, false, null, 'xs:string', null, 'Linux', null, null, 2029949154248172420, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-2245889620468427785, -1524543709740163214, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-6553834200975625641', null, null, 337820764651126728, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-2222325393044318490, -5669522693763744355, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, 1188800357045380426, 1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-2221625370063254808, 7561040409596471810, 'Purchase Contract', 'Purchase_Contract', false, false, null, 'xs:anyURI', null, 'http://www.onecmdb.org/docs/BasicDatacenter/docs/Dummy_Purchase_Contract.pdf', null, null, -4650663127884378612, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-2219139056048530513, 2866121774840364300, null, 'icon', false, true, 'Filename (no file extension) of icon image.', 'xs:string', null, 'application', null, null, -3957867024269978762, 1, 0, '2016-12-28 16:01:48', '2016-12-28 16:01:48');
INSERT INTO onecmdb.t_attribute VALUES (-2207020015714012191, -4832412014878157924, 'Network', 'Network', true, true, null, 'oneCMDB:#-838366469867279794', 'oneCMDB:#-3863377389438174788', null, null, null, 2166601380421831026, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-2202207999764185813, 8794022947635014930, 'Connected To', 'ConnectedTo', true, false, null, 'oneCMDB:#1325117208637117274', 'oneCMDB:#-2725368316691492923', 'oneCMDB:#-4798847328596715998', -4798847328596715998, null, 5448442896062760526, -1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-2197347617722533972, -5788035442324627072, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'people', null, null, -6388783933053098658, 1, 0, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-2197231236787214996, -4502574313825929703, 'Version', 'Version', false, true, null, 'xs:string', null, 'SP1', null, null, 72883027723141449, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-2193180013105844620, 979201255397133022, 'Name', 'name', false, false, null, 'xs:string', null, 'Import Nagios', null, null, -8031090386881226833, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-2183254220680719612, 8811433943416598816, 'Name', 'Name', false, false, null, 'xs:string', null, 'Red Hat Linux', null, null, 225437699908619242, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-2177743677288099184, -1524543709740163214, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#2970960574384196618', null, null, 9173780378093541616, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-2175943913041424956, 8322750748400999276, 'MAC Address', 'MAC_Address', false, true, null, 'xs:string', null, null, null, null, 2166601380421831026, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-2173817997753713426, -6692410937082754498, 'Maintenance Info', 'Maintenance', true, false, null, 'oneCMDB:#7154244997109246053', 'oneCMDB:#-8025526327383936657', 'oneCMDB:#1572282518553124849', 1572282518553124849, null, -7048484407295153374, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-2165311228442882151, null, 'SSID', 'SSID', false, true, null, 'xs:string', null, null, null, null, -1407617025811333519, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (-2164656431649091771, 3858978566748600360, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'package', null, null, 8067161067550301549, 1, 0, '2016-12-28 16:01:48', '2016-12-28 16:01:48');
INSERT INTO onecmdb.t_attribute VALUES (-2161599476437446415, 96475156001460780, 'Service', 'Service', true, false, null, 'oneCMDB:#-4678966175358915668', 'oneCMDB:#-3863377389438174788', 'oneCMDB:#3440327906006223384', 3440327906006223384, null, 3872536235728130109, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-2155577755059674542, -5591169885085062245, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#2376092523771938845', null, null, 7293023128106825054, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-2145563152457352938, -5591169885085062245, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-3183565547364756951', null, null, 2253308242575190041, 1, 1, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (-2139680252712912240, -5664724427834647906, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, -2080580181395438990, 1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-2137477611325295485, null, 'Serial Number', 'SerialNumber', false, true, null, 'xs:string', null, null, null, null, -4924123363775224211, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-2126299993548854637, null, 'Template Column', 'templateColString', false, true, null, 'xs:string', null, null, null, null, 4972181722220004715, 1, 1, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (-2119754677718270643, -3762283678602573282, 'Maintenance Info', 'Maintenance', true, false, null, 'oneCMDB:#7154244997109246053', 'oneCMDB:#-8025526327383936657', 'oneCMDB:#-3802662887141480551', -3802662887141480551, null, 5438961292355445872, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-2118060411480011372, null, 'SLA', 'SLA', false, true, null, 'xs:anyURI', null, null, null, null, -4678966175358915668, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-2117081226239618680, 2472277896376169463, null, 'icon', false, true, 'Filename (no file extension) of icon image.', 'xs:string', null, null, null, null, -7445925636082603207, 1, 0, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (-2114353355444033311, null, 'Models', 'modelFiles', false, true, null, 'xs:string', null, null, null, null, -8128493564763208677, -1, 0, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (-2101999389542743677, -147364063196792403, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'maintenance', null, null, -8697924501898487676, 1, 0, '2016-12-28 16:01:48', '2016-12-28 16:01:48');
INSERT INTO onecmdb.t_attribute VALUES (-2093836533591727228, -4852982050135482199, 'Java Class Name', 'javaClass', false, true, null, 'xs:string', null, 'org.onecmdb.core.utils.transform.matcher.RegExprMatcher', null, null, 3854928064624729302, 1, 1, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (-2091103535657065111, 4171417067138044278, 'Java Class Name', 'javaClass', false, true, null, 'xs:string', null, 'org.onecmdb.core.utils.transform.jdbc.JDBCAttributeSelector', null, null, -1723966340589452755, 1, 1, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (-2063703286468800879, 5648763990242826958, null, 'objectType', false, true, 'The object definition name.', 'xs:string', null, 'command', null, null, 1837107117169913746, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-2057494724522105334, 976992784461039974, 'DSL Entry', 'DSLEntry', false, false, null, 'xs:anyURI', null, 'http://www.onecmdb.org/docs/BasicDatacenter/DSL/Dummy_OS_Package.txt', null, null, 225437699908619242, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-2057005297449548922, -5669522693763744355, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, -7355125189121292561, 1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-2051077575664217983, 3521168720769405274, null, 'name', false, true, 'The template name referenced with the use attribute.', 'xs:string', null, null, null, null, 5505300793486821851, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-2013263886187084530, 167682503217310041, 'Purchase Date', 'Purchase_Date', false, false, null, 'xs:date', null, '2007-01-01', null, '2007-01-01 12:00:00', -3555672197290052160, 1, 1, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (-2001974870519463098, 6761060685335142253, 'Manufacturer', 'Manufacturer', true, false, null, 'oneCMDB:#5433965781192492423', 'oneCMDB:#-8025526327383936657', 'oneCMDB:#-1426329249400971207', -1426329249400971207, null, 6936928594960133541, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-1999819586001428229, -5700200873589384332, 'Name', 'name', false, true, null, 'xs:string', null, 'MDR Execution Result', null, null, 2386299380460541961, 1, 1, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (-1977160481315916591, 454245518513090804, 'Used By', 'UsedBy', true, true, null, 'oneCMDB:#5433965781192492423', 'oneCMDB:#-8025526327383936657', null, null, null, -3696127716848820578, -1, 0, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-1969839383543828700, -3120217495623001474, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'package', null, null, -7171807647212474252, 1, 0, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-1969297333453595029, -5664724427834647906, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, -8806978160507840720, 1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-1968207573162412232, 9019060738934722102, 'Name', 'Name', false, false, null, 'xs:string', null, 'In Production', null, null, -3183565547364756951, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-1965674145314024537, -5669522693763744355, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, 853812382909041303, 1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-1965639156284701649, -5490798092900618495, 'DSL Entry', 'DSLEntry', false, true, null, 'xs:anyURI', null, null, null, null, 1769375665960405126, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-1962948928067916253, 6514396784575161283, 'Financial Info', 'Financials', true, true, null, 'oneCMDB:#-4030583075832430887', 'oneCMDB:#-8025526327383936657', null, null, null, 4774848979350389203, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-1956256839715857431, 4804824971481914461, 'Installed On', 'InstalledOn', true, false, null, 'oneCMDB:#-1168493350923132665', 'oneCMDB:#4825510563751653831', 'oneCMDB:#-8806978160507840720', -8806978160507840720, null, 8067161067550301549, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (-1946716865128891112, -1524543709740163214, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#3872536235728130109', null, null, -7141557035276310837, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-1941287690251425464, 3284846158102965914, 'Location', 'Location', true, false, null, 'oneCMDB:#-3200591116467062442', 'oneCMDB:#-8025526327383936657', null, null, null, 8526533317541349136, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-1940818043740172643, 8046257481860152276, 'Name', 'Name', false, false, null, 'xs:string', null, 'Red Hat Linux', null, null, 2029949154248172420, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-1922218887302224890, -9208474337129022908, 'Location', 'Location', true, true, null, 'oneCMDB:#-3200591116467062442', 'oneCMDB:#-8025526327383936657', null, null, null, 4774848979350389203, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-1922194002095032838, -1201591218872166485, 'Web Address', 'Web_Address', false, false, null, 'xs:anyURI', null, 'http://www.sun.com', null, null, -4582254474109262389, 1, 1, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (-1914293858547080611, null, null, 'parent', true, true, 'Select a parent dataset. All AttributeSelectors will be used from the parent.', 'oneCMDB:#5263207391443191195', 'oneCMDB:#5024896043547205381', null, null, null, 5263207391443191195, 1, 1, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (-1911575410628827306, null, 'License Key', 'LicenseKey', false, true, null, 'xs:string', null, null, null, null, 3938641235467758932, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-1897151320867645427, 291759117711298052, null, 'icon', false, true, 'Filename (no file extension) of icon image.', 'xs:string', null, 'mswindows', null, null, -389893205101279185, 1, 0, '2016-12-28 16:01:48', '2016-12-28 16:01:48');
INSERT INTO onecmdb.t_attribute VALUES (-1887131755493235226, null, null, 'vrml_image', false, true, ': This variable is used to define the name of a GIF, PNG, or JPG image that should be associated with this host. This image will be used as the texture map for the specified host in the statuswrl CGI. Unlike the image you use for the ''icon_image'' variable, this one should probably not have any transparency. If it does, the host object will look a bit wierd. Images for hosts are assumed to be in the logos/ subdirectory in your HTML images directory (i.e. /usr/local/nagios/share/images/logos).', 'xs:string', null, null, null, null, 739521429005320541, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (-1886216621354812455, -5591169885085062245, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#5400821923574190750', null, null, 3818981860407594996, 1, 1, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (-1885651542174080966, -1382985826024504755, 'Maintenance Info', 'Maintenance', true, false, null, 'oneCMDB:#7154244997109246053', 'oneCMDB:#-8025526327383936657', 'oneCMDB:#686689813511615026', 686689813511615026, null, 8451682648722222209, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-1876755124358373288, -3555410114187050562, 'Manufacturer', 'Manufacturer', true, false, null, 'oneCMDB:#5433965781192492423', 'oneCMDB:#-8025526327383936657', null, null, null, 8526533317541349136, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-1864346928932747001, -5591169885085062245, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-2661588154870202781', null, null, -2030835886613899331, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-1859145375754886116, -1136630148419967552, 'Manufacturer', 'Manufacturer', true, true, null, 'oneCMDB:#5433965781192492423', 'oneCMDB:#-8025526327383936657', null, null, null, 3331921274338303097, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-1824645414560030720, -5669522693763744355, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, -4056084696221288780, 1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-1820008769730330855, null, null, 'can_submit_commands', false, true, 'This directive is used to determine whether or not the contact can submit external commands to Nagios from the CGIs. Values: 0 = don’t allow contact to submit commands, 1 = allow contact to submit commands.', 'xs:integer', null, null, null, null, 7535307617655623766, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (-1813196888096489248, null, null, 'javaClass', false, true, null, 'xs:string', null, null, null, null, 1634733290972246121, 1, 1, '2016-12-27 17:05:12', '2016-12-27 17:05:12');
INSERT INTO onecmdb.t_attribute VALUES (-1803460649907843871, -5669522693763744355, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, -7647209654369308926, 1, 0, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (-1787967638174941913, 5342212342693555035, 'Name', 'Name', false, false, null, 'xs:string', null, 'MS Office', null, null, -7550256766207092122, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-1786286778065890657, 2684607629046987153, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, 7799527875584504799, 1, 0, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (-1763823992313744709, -6585772925938753313, 'Service', 'Service', true, false, null, 'oneCMDB:#-4678966175358915668', 'oneCMDB:#-3863377389438174788', 'oneCMDB:#323022922402464520', 323022922402464520, null, -3883718588737995702, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-1762443614652211391, null, 'Port', 'Port', false, true, null, 'xs:integer', null, null, null, null, 1769375665960405126, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (-1749360364318463020, -7480885693105589137, 'Name', 'Name', false, true, null, 'xs:string', null, 'Servlet Container', null, null, -5000743863724034311, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-1748871965433318825, 9019060738934722102, 'Name', 'Name', false, false, null, 'xs:string', null, 'Not Installed', null, null, 5151759019686704213, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-1739055577791439566, 4485352581660378118, 'Protocol', 'Protocol', false, true, null, 'xs:string', null, null, null, null, -5165488382750819713, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (-1737752931074779709, -2618406701348405411, 'IPv4 Address', 'IPAddress', false, false, null, 'xs:string', null, null, null, null, -6624236066440953660, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-1735938452221746691, -3676834276060185846, null, 'icon', false, true, 'Filename (no file extension) of icon image.', 'xs:string', null, 'mdr', null, null, -8400736094814329789, 1, 0, '2016-12-28 15:59:31', '2016-12-28 15:59:31');
INSERT INTO onecmdb.t_attribute VALUES (-1730732419503029538, 1934283854408285353, 'Installed On', 'InstalledOn', true, false, null, 'oneCMDB:#1325117208637117274', 'oneCMDB:#4825510563751653831', 'oneCMDB:#7967232968088040444', 7967232968088040444, null, -7048484407295153374, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-1725453301794524904, null, null, 'check_command_arg', false, true, 'The arguemnts for the check_command.', 'xs:string', null, null, null, null, 8986099038471647984, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (-1721642631536307496, -2118060411480011372, 'SLA', 'SLA', false, true, null, 'xs:anyURI', null, null, null, null, -8820227643856541952, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-1700105932812892844, 9060213008561656592, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#4899068668525632836', null, null, -4877615434796502236, 1, 1, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (-1696369939411083280, -8885097571508953844, 'Network', 'Network', true, false, null, 'oneCMDB:#-838366469867279794', 'oneCMDB:#-3863377389438174788', null, null, null, 4899068668525632836, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-1678154352681922115, -5669522693763744355, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, 5742108542344306538, 1, 0, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (-1664050503797033760, -1524543709740163214, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#1515202162886390642', null, null, -2502441278440817308, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-1637334847521538736, 4869468365480249401, null, 'register', false, true, 'If this entry should be an instances and a template.', 'xs:string', null, null, null, null, -1912794354431148047, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-1635399972027763857, null, null, 'contact_groups', true, true, 'This is a list of the short names of the contact groups that should be notified whenever there are problems (or recoveries) with this host. Multiple contact groups should be separated by commas. You must specify at least one contact or contact group in each host definition.', 'oneCMDB:#5505300793486821851', 'oneCMDB:#-3863377389438174788', null, null, null, -6108598720877681394, 1, 1, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (-1632681849421218789, -6430347810547129509, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'resource', null, null, -4582254474109262389, 1, 0, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-1628483030204260537, 6729170356289957298, 'Version', 'Version', false, true, null, 'xs:string', null, null, null, null, -294406670328424842, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-1626189572143518367, -6391465265200742848, 'Status', 'status', false, false, null, 'xs:string', null, null, null, null, -8031090386881226833, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-1611907975854810516, 3222890239574929978, 'Manufacturer', 'Manufacturer', true, false, null, 'oneCMDB:#5433965781192492423', 'oneCMDB:#-8025526327383936657', 'oneCMDB:#4312680585269675121', 4312680585269675121, null, 1198750186879466999, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-1608793074709617656, 6489324153410357449, null, 'icon', false, true, 'Filename (no file extension) of icon image.', 'xs:string', null, null, null, null, 489834941922956076, 1, 0, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (-1597318537394993019, 9139225598348518079, 'Location', 'Location', true, false, null, 'oneCMDB:#-3200591116467062442', 'oneCMDB:#-8025526327383936657', 'oneCMDB:#-4141639034389317254', -4141639034389317254, null, 1515202162886390642, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-1593882962445069077, 976992784461039974, 'DSL Entry', 'DSLEntry', false, false, null, 'xs:anyURI', null, 'http://www.onecmdb.org/docs/BasicDatacenter/DSL/Dummy_OS_Package.txt', null, null, 4298307837787561059, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-1591124805442860763, null, 'Default DataSet', 'defaultDataSet', true, true, null, 'oneCMDB:#5263207391443191195', 'oneCMDB:#5024896043547205381', null, null, null, 4003664281832297273, 1, 1, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (-1573308447651321384, -3979711827897002409, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#5872623185044658259', null, null, 4578950590119242594, 1, 1, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (-1568675225134645271, -5872183086464812927, 'Name', 'Name', false, false, null, 'xs:string', null, 'Internet Router', null, null, 8526533317541349136, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-1566466813991856701, -8929371474739997931, 'Stop', 'commitStop', false, false, null, 'xs:dateTime', null, null, null, null, 4675968942250705277, 1, 1, '2016-12-28 16:02:05', '2016-12-28 16:02:05');
INSERT INTO onecmdb.t_attribute VALUES (-1565008278898606917, -2448778582390853220, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-6553834200975625641', null, null, -5918718310695670706, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-1564401566434609826, null, null, 'retain_nonstatus_information', false, true, 'This directive is used to determine whether or not non-status information about the host is retained across program restarts. This is only useful if you have enabled state retention using the retain_state_information directive. Value: 0 = disable non-status information retention, 1 = enable non-status information retention.', 'xs:integer', null, null, null, null, -6108598720877681394, 1, 1, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (-1548810082840661869, -8253280765712651491, 'Stdout', 'stdout', false, false, null, 'xs:string', null, null, null, null, 4675968942250705277, 1, 1, '2016-12-28 16:02:05', '2016-12-28 16:02:05');
INSERT INTO onecmdb.t_attribute VALUES (-1546333862546594469, -1762443614652211391, 'Port', 'Port', false, true, null, 'xs:integer', null, null, null, null, -8747012735422861621, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (-1546161909484420728, 1934283854408285353, 'Installed On', 'InstalledOn', true, false, null, 'oneCMDB:#1325117208637117274', 'oneCMDB:#4825510563751653831', 'oneCMDB:#6441786424248107013', 6441786424248107013, null, -306753241820469847, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-1544750234717718789, null, null, 'alias', false, true, 'This directive is used to define is a longer name or description used to identify the service group. It is provided in order to allow you to more easily identify a particular service group.', 'xs:string', null, null, null, null, -1912794354431148047, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (-1528809271311579911, -2476269882465845358, 'Financial Info', 'Financial', true, false, null, 'oneCMDB:#-4030583075832430887', 'oneCMDB:#-8025526327383936657', 'oneCMDB:#-8178921955682868426', -8178921955682868426, null, 4298307837787561059, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-1524543709740163214, -1219887089453329969, 'Source', 'source', true, true, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, null, null, null, -8025526327383936657, 1, 1, '2016-12-28 16:01:48', '2016-12-28 16:01:48');
INSERT INTO onecmdb.t_attribute VALUES (-1519517783246417609, 3744240333219012972, 'Name', 'Name', false, false, null, 'xs:string', null, 'Linux Maintenance', null, null, -8697924501898487676, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-1510152015995606200, 4142103790651050121, 'License Key', 'LicenseKey', false, false, null, 'xs:string', null, 'MSOF-6767-7788-WERT', null, null, -7315267361872023940, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-1496936948327111752, 1917979139818517146, 'Name', 'Name', false, true, null, 'xs:string', null, 'Service', null, null, -9108137049616996309, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-1492543261898951824, 8101528328242796571, 'Java Class Name', 'javaClass', false, true, null, 'xs:string', null, null, null, null, 6793847683509953458, 1, 1, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (-1487623253146950379, 4115407515346780657, 'Name', 'name', false, true, null, 'xs:string', null, 'MDR Config', null, null, -8128493564763208677, 1, 1, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (-1485301379848912284, 5196112076458852550, 'Name', 'name', false, true, null, 'xs:string', null, null, null, null, -2823204706454452072, 1, 1, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (-1478756811695415278, -5637839464463589022, null, 'icon', false, true, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, 7815034950157158561, 1, 0, '2016-12-28 16:01:48', '2016-12-28 16:01:48');
INSERT INTO onecmdb.t_attribute VALUES (-1458870476716410545, 382510000376079623, null, 'icon', false, true, 'Filename (no file extension) of icon image.', 'xs:string', null, 'computer', null, null, 4774848979350389203, 1, 0, '2016-12-28 16:01:48', '2016-12-28 16:01:48');
INSERT INTO onecmdb.t_attribute VALUES (-1450188304193094389, -2344575093696141095, 'Uses', 'Uses', true, true, null, 'oneCMDB:#7491575733809579230', 'oneCMDB:#7815034950157158561', null, null, null, -5165488382750819713, -1, 0, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (-1448278377982363034, 2338142333132801027, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#6936928594960133541', null, null, 7799527875584504799, 1, 1, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (-1441545873491570734, 1281653094883169295, 'Financial Info', 'Financial', true, false, null, 'oneCMDB:#-4030583075832430887', 'oneCMDB:#-8025526327383936657', 'oneCMDB:#1813367284442008443', 1813367284442008443, null, -4632697620056224887, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-1434718028753357160, -5788035442324627072, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'people', null, null, 8472139606850256924, 1, 0, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-1425651908532133000, 6514396784575161283, 'Financial Info', 'Financials', true, true, null, 'oneCMDB:#-4030583075832430887', 'oneCMDB:#-8025526327383936657', null, null, null, 9059693167497789202, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-1407995611485803433, 2684607629046987153, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, 8664931160192194764, 1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-1391940471692728443, 1821783357465326719, 'Financial Info', 'Financial', true, false, null, 'oneCMDB:#-4030583075832430887', 'oneCMDB:#-8025526327383936657', 'oneCMDB:#-3158002772065733777', -3158002772065733777, null, -7550256766207092122, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-1384972036430889192, -5143051842580717168, 'Program', 'program', false, true, null, 'xs:string', null, 'bin/upload', null, null, -8128493564763208677, 1, 1, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (-1384320756994129914, -5591169885085062245, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-505646845337106548', null, null, 468542918369469937, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-1382985826024504755, -214102510579181629, 'Maintenance Info', 'Maintenance', true, true, null, 'oneCMDB:#7154244997109246053', 'oneCMDB:#-8025526327383936657', null, null, null, 4037843118202851281, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-1373947004431582164, null, 'Complex Value', 'complex', false, true, null, 'xs:boolean', null, null, null, null, -1286794834007968621, 1, 1, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (-1353470440570774217, null, null, 'flap_detection_options', false, true, 'This directive is used to determine what service states the flap detection logic will use for this service. Valid options are a combination of one or more of the following: o = OK states, w = WARNING states, c = CRITICAL states, u = UNKNOWN states.', 'xs:string', null, null, null, null, 8986099038471647984, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (-1348832517688516405, 382510000376079623, null, 'icon', false, true, 'Filename (no file extension) of icon image.', 'xs:string', null, 'netprinter', null, null, 3331921274338303097, 1, 0, '2016-12-28 16:01:48', '2016-12-28 16:01:48');
INSERT INTO onecmdb.t_attribute VALUES (-1341307969708383980, null, null, 'callbackClass', false, true, null, 'xs:string', null, null, null, null, 8260888867499517871, 1, 1, '2016-12-27 17:05:11', '2016-12-27 17:05:11');
INSERT INTO onecmdb.t_attribute VALUES (-1327794815848519233, -1425651908532133000, 'Financial Info', 'Financials', true, false, null, 'oneCMDB:#-4030583075832430887', 'oneCMDB:#-8025526327383936657', 'oneCMDB:#7644587526696132904', 7644587526696132904, null, 4899068668525632836, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-1303877515446836590, -1219887089453329969, 'Source', 'source', true, true, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, null, null, null, 7815034950157158561, 1, 1, '2016-12-28 16:01:48', '2016-12-28 16:01:48');
INSERT INTO onecmdb.t_attribute VALUES (-1295795894884865838, 2700247614719053876, 'Version', 'Version', false, true, null, 'xs:string', null, null, null, null, 880600073926883392, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-1290063075993800445, -1524543709740163214, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#4298307837787561059', null, null, -8178921955682868426, 1, 1, '2016-12-28 16:01:53', '2016-12-28 16:01:53');
INSERT INTO onecmdb.t_attribute VALUES (-1261020967564761194, -5788035442324627072, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'people', null, null, 6109272791907384000, 1, 0, '2016-12-28 16:01:48', '2016-12-28 16:01:48');
INSERT INTO onecmdb.t_attribute VALUES (-1259374579684196717, -8713525033916958150, 'Service', 'Service', true, true, null, 'oneCMDB:#-4678966175358915668', 'oneCMDB:#-3863377389438174788', null, null, null, -239896225795807576, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-1258489368878730249, 2128812771564904186, 'Service', 'Service', true, false, null, 'oneCMDB:#-4678966175358915668', 'oneCMDB:#-3863377389438174788', null, null, null, -7550256766207092122, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-1256190192980556278, -5104366865309507108, 'Version', 'Version', false, true, null, 'xs:string', null, null, null, null, -1727366760233341791, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-1247016870350740335, -2207020015714012191, 'Network', 'Network', true, false, null, 'oneCMDB:#-838366469867279794', 'oneCMDB:#-3863377389438174788', 'oneCMDB:#-4562263953046860294', -4562263953046860294, null, 1198750186879466999, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-1238933389632567366, 3221537918336219026, 'Maintenance Info', 'Maintenance', true, true, null, 'oneCMDB:#7154244997109246053', 'oneCMDB:#-8025526327383936657', null, null, null, -8747012735422861621, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-1234192354743398362, 7819018244213194, 'Service', 'Service', true, true, null, 'oneCMDB:#-4678966175358915668', 'oneCMDB:#-3863377389438174788', null, null, null, -1951039734141517216, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-1222660159755651445, -3282656682906662027, null, 'attributeSelector', true, true, 'Select one attribute value from the data source', 'oneCMDB:#4845305278725074851', 'oneCMDB:#5024896043547205381', null, null, null, 4003664281832297273, -1, 1, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (-1219887089453329969, 1905201741554936413, 'Source', 'source', true, true, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, null, null, null, 3296778330507920481, 1, 1, '2016-12-27 17:05:09', '2016-12-27 17:05:09');
INSERT INTO onecmdb.t_attribute VALUES (-1219631219524554820, -1303877515446836590, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-4240101805785438545', null, null, -7426183369994757231, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-1215791102086800143, 6861398420944567713, null, 'user', false, true, null, 'xs:string', null, null, null, null, -6754672868001187115, 1, 1, '2016-12-27 17:05:12', '2016-12-27 17:05:12');
INSERT INTO onecmdb.t_attribute VALUES (-1215455028079150197, -1524543709740163214, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#5872623185044658259', null, null, -4088187284430895045, 1, 1, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (-1211834778110204427, -1524543709740163214, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-4632697620056224887', null, null, 6690197867896386800, 1, 1, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (-1201591218872166485, null, 'Web Address', 'Web_Address', false, true, null, 'xs:anyURI', null, null, null, null, 5433965781192492423, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (-1193708383243208785, -1524543709740163214, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-6624236066440953660', null, null, 1179499131245420347, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-1188678817911772525, 1917979139818517146, 'Name', 'Name', false, false, null, 'xs:string', null, 'ERP', null, null, -4856766876697112377, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-1184860345093435247, 1606342094493777432, 'IPv6 Address', 'IPv6Address', false, false, null, 'xs:string', null, null, null, null, 5438961292355445872, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-1155890844266695326, 167682503217310041, 'Purchase Date', 'Purchase_Date', false, false, null, 'xs:date', null, '2007-09-01', null, '2007-09-01 12:00:01', -8154505932687141586, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-1149157262924125722, 2196487774809878277, 'Name', 'Name', false, false, null, 'xs:string', null, '<NAME>', null, null, 8472139606850256924, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (-1143809935000949298, 898246456821792020, 'Specialist (internal)', 'Specialist', true, false, null, 'oneCMDB:#-15958512515039807', 'oneCMDB:#-8025526327383936657', 'oneCMDB:#9173780378093541616', 9173780378093541616, null, 2970960574384196618, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-1143156902850507139, -1965639156284701649, 'DSL Entry', 'DSLEntry', false, true, null, 'xs:anyURI', null, null, null, null, -5165488382750819713, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-1137651381729854789, null, null, 'status', false, true, 'Internal status of a process Started|Completed|Failed', 'xs:string', null, null, null, null, 1634733290972246121, 1, 1, '2016-12-27 17:05:12', '2016-12-27 17:05:12');
INSERT INTO onecmdb.t_attribute VALUES (-1136630148419967552, -2285417843436206533, 'Manufacturer', 'Manufacturer', true, true, null, 'oneCMDB:#5433965781192492423', 'oneCMDB:#-8025526327383936657', null, null, null, 1325117208637117274, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-1134524609043026837, 2684607629046987153, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, -4562263953046860294, 1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-1115587379573920335, -5969253024959063573, null, 'stop', false, true, null, 'xs:string', null, null, null, null, 5029444671295990319, 1, 1, '2016-12-27 17:05:12', '2016-12-27 17:05:12');
INSERT INTO onecmdb.t_attribute VALUES (-1104738400731615508, null, null, 'hostgroup_name', false, true, 'This directive is used to define a short name used to identify the host group.', 'xs:string', null, null, null, null, -4154185814876458058, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (-1088892062406047270, 7928718072314921126, 'Maintenance Info', 'Maintenance', true, false, null, 'oneCMDB:#7154244997109246053', 'oneCMDB:#-8025526327383936657', 'oneCMDB:#-2018312901049028095', -2018312901049028095, null, -6624236066440953660, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-1088626371296909168, -5591169885085062245, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-7761184485249285917', null, null, -472303727294703067, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-1080184470738589586, -3709391132749872087, 'DSL Entry', 'DSLEntry', false, false, null, 'xs:anyURI', null, 'http://www.onecmdb.org/docs/BasicDatacenter/DSL/Dummy_Software_Package.txt', null, null, 7503285799199789397, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-1072643980791024547, -8603102978338421612, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#1198750186879466999', null, null, 5123540782477111460, 1, 1, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (-1046725462531055176, 2684607629046987153, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, 32356233041257316, 1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-1040856819005843342, null, null, 'use', false, true, 'The template this nagios config entry should derived from.', 'xs:string', null, null, null, null, 8896701847700868898, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-1034246299400335504, -5591169885085062245, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-505646845337106548', null, null, 4891914077422526390, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-1025367317492319509, 898246456821792020, 'Specialist (internal)', 'Specialist', true, false, null, 'oneCMDB:#-15958512515039807', 'oneCMDB:#-8025526327383936657', 'oneCMDB:#-3329331651722637045', -3329331651722637045, null, -8931481580316879494, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-1004981040579072155, -2892704986996219486, 'IPv6 Address', 'IPv6Address', false, true, null, 'xs:string', null, null, null, null, 2522367028350860395, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-1003512542382082751, -5669522693763744355, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, 4306353254172667766, 1, 0, '2016-12-28 16:01:53', '2016-12-28 16:01:53');
INSERT INTO onecmdb.t_attribute VALUES (-992479605504436605, -5591169885085062245, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-5055663519884480021', null, null, -5867307528194865015, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-981444118746676537, 1905201741554936413, 'Source', 'source', true, true, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, null, null, null, 8800458200064057403, 1, 1, '2016-12-28 15:59:31', '2016-12-28 15:59:31');
INSERT INTO onecmdb.t_attribute VALUES (-979775739471955764, null, null, 'address', false, true, 'Address directives are used to define additional "addresses" for the contact. These addresses can be anything - cell phone numbers, instant messaging addresses, etc. Depending on how you configure your notification commands, they can be used to send out an alert o the contact. Up to six addresses can be defined using these directives (address1 through address6). The $CONTACTADDRESSx$ macro will contain this value.', 'xs:string', null, null, null, null, 7535307617655623766, 6, 0, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (-978106114991788313, null, null, 'notes_url', false, true, 'This variable is used to define an optional URL that can be used to provide more information about the host. If you specify an URL, you will see a link that says "Extra Host Notes" in the extended information CGI (when you are viewing information about the specified host). Any valid URL can be used. If you plan on using relative paths, the base path will the the same as what is used to access the CGIs (i.e. /cgi-bin/nagios/). This can be very useful if you want to make detailed information on the host, emergency contact methods, etc. available to other support staff.', 'xs:string', null, null, null, null, 739521429005320541, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (-955580988551008358, 2684014330841366898, null, 'icon', false, true, 'Filename (no file extension) of icon image.', 'xs:string', null, 'ci', null, null, 7270176861923700228, 1, 0, '2016-12-27 17:05:12', '2016-12-27 17:05:12');
INSERT INTO onecmdb.t_attribute VALUES (-951918716277825912, null, null, 'instanceSelector', true, true, 'Select one instance from the data source', 'oneCMDB:#-7432335284198671501', 'oneCMDB:#5024896043547205381', null, null, null, 5263207391443191195, 1, 1, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (-949953494128123813, null, 'Version', 'Version', false, true, null, 'xs:string', null, null, null, null, 3938641235467758932, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-949521350333923825, 8345497989318023921, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, 3899359295790179114, 1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-941812966530302798, null, null, 'host_name', true, true, null, 'oneCMDB:#-6108598720877681394', 'oneCMDB:#-3863377389438174788', null, null, null, 1890256877210801519, -1, 1, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (-931598479565265517, 5945915007558759411, 'Name', 'Name', false, false, null, 'xs:string', null, 'Los Angeles', null, null, 1117880875119624867, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (-930439212566541101, null, 'Column Delimter', 'colDelimiter', false, true, null, 'xs:string', null, null, null, null, 5014313985612676927, 1, 1, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (-928933262351967667, 898246456821792020, 'Specialist (internal)', 'Specialist', true, false, null, 'oneCMDB:#-15958512515039807', 'oneCMDB:#-8025526327383936657', 'oneCMDB:#2725616338268238790', 2725616338268238790, null, -5055663519884480021, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-921048891949166450, -5012192948753502156, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#3770822044337348543', null, null, 8887180738759619051, 1, 1, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (-903379595885175705, -5012192948753502156, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-6553834200975625641', null, null, 7514974890842026102, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-902727041562218330, -5069771326177225806, 'Maintenance Info', 'Maintenance', true, true, null, 'oneCMDB:#7154244997109246053', 'oneCMDB:#-8025526327383936657', null, null, null, 4338151747944765362, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-902332398682909525, -3209312745176596290, 'Financial Info', 'Financial', true, false, null, 'oneCMDB:#-4030583075832430887', 'oneCMDB:#-8025526327383936657', 'oneCMDB:#-6012107529363071363', -6012107529363071363, null, -7048484407295153374, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-876066965183855015, 4646922231658548033, null, 'useName', false, true, 'If the instance should include it''s name. Eq if this instance is used by another instance.', 'xs:boolean', null, null, null, null, -2437713139919564933, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-858852005227525041, -6430347810547129509, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'resource', null, null, 2376092523771938845, 1, 0, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-858418303847745444, -752431900193616089, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#5612781772166901244', null, null, -7094411211185663307, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-851708232103258441, 4168272132656335525, 'Network', 'Network', true, true, null, 'oneCMDB:#-838366469867279794', 'oneCMDB:#-3863377389438174788', null, null, null, 3331921274338303097, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-835038096056574090, -5591169885085062245, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-8931481580316879494', null, null, -217170841733054362, 1, 1, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (-830229536725156516, -8432561932573761940, 'Protocol', 'Protocol', false, true, null, 'xs:string', null, null, null, null, -5058684262027826612, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (-824880364527430165, -5591169885085062245, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-8697924501898487676', null, null, 6361942409518450777, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-799518896153171332, 2684607629046987153, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, -6511386447479370558, 1, 0, '2016-12-28 16:01:53', '2016-12-28 16:01:53');
INSERT INTO onecmdb.t_attribute VALUES (-795179852938599803, 2128812771564904186, 'Service', 'Service', true, false, null, 'oneCMDB:#-4678966175358915668', 'oneCMDB:#-3863377389438174788', null, null, null, -7315267361872023940, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-790101806856606485, null, null, 'notes_url', false, true, 'This directive is used to define an optional URL that can be used to provide more information about the service. If you specify an URL, you will see a red folder icon in the CGIs (when you are viewing service information) that links to the URL you specify here. Any valid URL can be used. If you plan on using relative paths, the base path will the the same as what is used to access the CGIs (i.e. /cgi-bin/nagios/). This can be very useful if you want to make detailed information on the service, emergency contact methods, etc. available to other support staff.', 'xs:string', null, null, null, null, 8986099038471647984, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (-776008933174046075, 1437196997922972231, 'DSL Entry', 'DSLEntry', false, true, null, 'xs:anyURI', null, 'http://www.onecmdb.org/docs/BasicDatacenter/DSL/Dummy_OS_Package.txt', null, null, -294406670328424842, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-771882460194241171, 2684014330841366898, null, 'icon', false, true, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, -453323538046497526, 1, 0, '2016-12-27 17:05:09', '2016-12-27 17:05:09');
INSERT INTO onecmdb.t_attribute VALUES (-762542461057201239, -5012192948753502156, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-483907744355040058', null, null, 3917719700601963553, 1, 1, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (-752431900193616089, -1303877515446836590, 'Source', 'source', true, true, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, null, null, null, -2725368316691492923, 1, 1, '2016-12-28 16:01:48', '2016-12-28 16:01:48');
INSERT INTO onecmdb.t_attribute VALUES (-752328034261064113, 7561040409596471810, 'Purchase Contract', 'Purchase_Contract', false, false, null, 'xs:anyURI', null, 'http://www.onecmdb.org/docs/BasicDatacenter/docs/Dummy_Purchase_Contract.pdf', null, null, -6502872628718390337, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-744101419337377016, -2760402955939510348, 'Template', 'template', false, true, null, 'xs:string', null, null, null, null, 4972181722220004715, 1, 1, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (-731109975645557561, null, null, 'allowValueChange', false, true, null, 'xs:boolean', null, 'true', null, null, 393805027739339455, 1, 1, '2016-12-27 17:05:11', '2016-12-27 17:05:11');
INSERT INTO onecmdb.t_attribute VALUES (-724261325694504105, 9060213008561656592, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-6624236066440953660', null, null, 4465216800710758772, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-723952125964968940, -1962948928067916253, 'Financial Info', 'Financials', true, true, null, 'oneCMDB:#-4030583075832430887', 'oneCMDB:#-8025526327383936657', null, null, null, 2166601380421831026, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-716586363690748895, -2219139056048530513, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'package', null, null, -7550256766207092122, 1, 0, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-713429022365872252, -5591169885085062245, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#1431590659382240388', null, null, 853812382909041303, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-711183777322058863, -1458870476716410545, null, 'icon', false, true, 'Filename (no file extension) of icon image.', 'xs:string', null, 'desktop', null, null, 5575307939015290823, 1, 0, '2016-12-28 16:01:48', '2016-12-28 16:01:48');
INSERT INTO onecmdb.t_attribute VALUES (-707269280037726380, 4702829930136623391, 'OS Family', 'Family', false, true, null, 'xs:string', null, 'Windows', null, null, 4727188545314013933, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-701856084089858121, -5669522693763744355, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, -217170841733054362, 1, 0, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (-698450579127753752, 9139225598348518079, 'Location', 'Location', true, false, null, 'oneCMDB:#-3200591116467062442', 'oneCMDB:#-8025526327383936657', 'oneCMDB:#4481559520547198524', 4481559520547198524, null, 5448442896062760526, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-697215609436822548, -5012192948753502156, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-6553834200975625641', null, null, 7477104874606756567, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-695856366807062920, null, null, 'host_notification_period', true, true, 'This directive is used to specify the short name of the time period during which the contact can be notified about host problems or recoveries. You can think of this as an "on call" time for host notifications for the contact. Read the documentation on time periods for more information on how this works and potential problems that may result from improper use.', 'oneCMDB:#-8312690835136204981', 'oneCMDB:#-3863377389438174788', null, null, null, 7535307617655623766, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (-692573405794089135, 9060213008561656592, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-6624236066440953660', null, null, 3526545237578377375, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-691242283452022077, null, null, 'progressPercentage', false, true, 'Progress that the external job program controls, value from 0 to 100', 'xs:integer', null, null, null, null, 1634733290972246121, 1, 1, '2016-12-27 17:05:12', '2016-12-27 17:05:12');
INSERT INTO onecmdb.t_attribute VALUES (-676132204467382291, -1524543709740163214, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#6936928594960133541', null, null, -4310737394725159923, 1, 1, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (-658881450619047380, 7561040409596471810, 'Purchase Contract', 'Purchase_Contract', false, false, null, 'xs:anyURI', null, 'http://www.onecmdb.org/docs/BasicDatacenter/docs/Dummy_Purchase_Contract.pdf', null, null, 7611584779566472356, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-653152380451391655, -955580988551008358, null, 'icon', false, true, 'Filename (no file extension) of icon image.', 'xs:string', null, 'service', null, null, -4678966175358915668, 1, 0, '2016-12-28 16:01:48', '2016-12-28 16:01:48');
INSERT INTO onecmdb.t_attribute VALUES (-641579145869661837, 626687451236424471, null, 'icon', false, true, 'Filename (no file extension) of icon image.', 'xs:string', null, 'application', null, null, -5058684262027826612, 1, 0, '2016-12-28 16:01:48', '2016-12-28 16:01:48');
INSERT INTO onecmdb.t_attribute VALUES (-609401776187409972, -5156916583652714852, 'Service', 'Service', true, true, null, 'oneCMDB:#-4678966175358915668', 'oneCMDB:#-3863377389438174788', null, null, null, 5757536082740955330, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-605019068309621708, null, 'Uses', 'Uses', true, true, null, 'oneCMDB:#7491575733809579230', 'oneCMDB:#7815034950157158561', null, null, null, 7491575733809579230, -1, 0, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (-603002069658096890, 9057919287465543558, 'Status', 'Status', true, true, null, 'oneCMDB:#41965733952263877', 'oneCMDB:#-8025526327383936657', null, null, null, 3331921274338303097, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-602670754993121660, -5669522693763744355, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, 57708491460695096, 1, 0, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (-598153758372549010, 1955943626659473730, 'Service', 'Service', true, false, null, 'oneCMDB:#-4678966175358915668', 'oneCMDB:#-3863377389438174788', null, null, null, 2763197975055376610, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-581656370910939527, null, null, 'event_handler', true, true, 'This directive is used to specify the short name of the command that should be run whenever a change in the state of the service is detected (i.e. whenever it goes down or recovers). Read the documentation on event handlers for a more detailed explanation of how to write scripts for handling events. The maximum amount of time that the event handler command can run is controlled by the event_handler_timeout option.', 'oneCMDB:#1837107117169913746', 'oneCMDB:#-3863377389438174788', null, null, null, 8986099038471647984, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (-576780218076375411, null, null, 'servicegroup_members', true, true, 'This optional directive can be used to include services from other "sub" service groups in this service group. Specify a comma-delimited list of short names of other service groups whose members should be included in this group.', 'oneCMDB:#-1912794354431148047', 'oneCMDB:#-3863377389438174788', null, null, null, -1912794354431148047, -1, 0, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (-573516679467479031, -1458870476716410545, null, 'icon', false, true, 'Filename (no file extension) of icon image.', 'xs:string', null, 'portable', null, null, 6971205699962462965, 1, 0, '2016-12-28 16:01:48', '2016-12-28 16:01:48');
INSERT INTO onecmdb.t_attribute VALUES (-558255031885799538, 9057919287465543558, 'Status', 'Status', true, true, null, 'oneCMDB:#41965733952263877', 'oneCMDB:#-8025526327383936657', null, null, null, -239896225795807576, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-541511342711339517, -2445963789720288878, null, 'icon', false, true, 'Filename (no file extension) of icon image.', 'xs:string', null, null, null, null, 831375279177628912, 1, 0, '2016-12-27 17:05:11', '2016-12-27 17:05:11');
INSERT INTO onecmdb.t_attribute VALUES (-536532740854926776, -1524543709740163214, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-2871151807065298888', null, null, -7521513589309759003, 1, 1, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (-528912402034603188, -5591169885085062245, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-3183565547364756951', null, null, 3354404145119257703, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-525561673109190755, -2197231236787214996, 'Version', 'Version', false, false, null, 'xs:string', null, 'SP1', null, null, -7048484407295153374, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-519481552639840127, -6868818845750700134, 'Uses', 'Uses', true, true, null, 'oneCMDB:#-4678966175358915668', 'oneCMDB:#7815034950157158561', null, null, null, -9108137049616996309, -1, 0, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-516254325032470754, -5664724427834647906, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, 6441786424248107013, 1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-512016034681455476, 3629437584973513653, 'Serial Number', 'SerialNumber', false, false, null, 'xs:string', null, '3213-43423-A', null, null, -6624236066440953660, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-500461622742310708, 4869468365480249401, null, 'register', false, true, 'If this entry should be an instances and a template.', 'xs:string', null, null, null, null, 5505300793486821851, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-474348061943741524, -5591169885085062245, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#5400821923574190750', null, null, 5159308085069907466, 1, 1, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (-466136491724849217, null, 'Name', 'name', false, true, null, 'xs:string', null, 'Role', null, null, 6534311426540372396, 1, 1, '2016-12-27 17:05:10', '2016-12-27 17:05:10');
INSERT INTO onecmdb.t_attribute VALUES (-457724497279784913, 2630473923382830325, 'Name', 'Name', false, true, null, 'xs:string', null, 'OS', null, null, -294406670328424842, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-453502530732482387, null, 'Name', 'name', false, true, null, 'xs:string', null, null, null, null, 5263207391443191195, 1, 1, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (-440157865350204885, -1911575410628827306, 'License Key', 'LicenseKey', false, true, null, 'xs:string', null, null, null, null, 7491575733809579230, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-439143917782219972, null, null, 'first_notification_delay', false, true, 'This directive is used to define the number of "time units" to wait before sending out the first problem notification when this host enters a non-UP state. Unless you’ve changed the interval_length directive from the default value of 60, this number will mean minutes. If you set this value to 0, Nagios will start sending out notifications immediately.', 'xs:integer', null, null, null, null, -6108598720877681394, 1, 1, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (-422531685061586967, 1748273670601658644, 'Name', 'Name', false, true, null, 'xs:string', null, 'Application', null, null, 7491575733809579230, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-419707618657973397, -5669522693763744355, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, 7293023128106825054, 1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-404568590454831937, null, null, 'dependent_host_name', true, true, null, 'oneCMDB:#-6108598720877681394', 'oneCMDB:#-3863377389438174788', null, null, null, -3885642522584708287, -1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (-396263309521127499, -5012192948753502156, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-6553834200975625641', null, null, -8299453159977117819, 1, 1, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (-385655673966831406, null, null, 'normal_check_interval', false, true, 'Un documented in Nagios 3.x version.', 'xs:integer', null, null, null, null, 8986099038471647984, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (-383031783002794859, 1454979986654387558, 'OS Family', 'Family', false, true, null, 'xs:string', null, 'Windows', null, null, 3225491047712550288, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-380169020627010055, -1492543261898951824, 'Java Class Name', 'javaClass', false, true, null, 'xs:string', null, 'org.onecmdb.core.utils.transform.excel.ExcelDataSource', null, null, -6607949822377854428, 1, 1, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (-376890815242558955, -949953494128123813, 'Version', 'Version', false, true, null, 'xs:string', null, null, null, null, 7491575733809579230, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-357061161755828229, -1608793074709617656, null, 'icon', false, true, 'Filename (no file extension) of icon image.', 'xs:string', null, null, null, null, 3854928064624729302, 1, 0, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (-352586005499653128, null, null, 'exclude', true, true, 'This directive is used to specify the short names of other timeperiod definitions whose time ranges should be excluded from this timeperiod. Multiple timeperiod names should be separated with a comma.', 'oneCMDB:#-8312690835136204981', 'oneCMDB:#-3863377389438174788', null, null, null, -8312690835136204981, -1, 0, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (-350230486613540681, 5898472032975421275, 'Maintenance Fee (USD/Year)', 'Maintenance_Fee', false, false, null, 'xs:integer', null, '4', 4, null, 7611584779566472356, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-345697940982950978, 5898472032975421275, 'Maintenance Fee (USD/Year)', 'Maintenance_Fee', false, false, null, 'xs:integer', null, '600', 600, null, 1616600853113017715, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-341908152662161528, -5591169885085062245, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-8697924501898487676', null, null, 4306353254172667766, 1, 1, '2016-12-28 16:01:53', '2016-12-28 16:01:53');
INSERT INTO onecmdb.t_attribute VALUES (-329611208818537406, null, 'TX ID', 'txid', false, true, null, 'xs:string', null, null, null, null, 2386299380460541961, 1, 1, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (-320422957806349630, 1499783309383705593, null, 'icon', false, true, 'Filename (no file extension) of icon image.', 'xs:string', null, 'wifirouter', null, null, -1407617025811333519, 1, 0, '2016-12-28 16:01:48', '2016-12-28 16:01:48');
INSERT INTO onecmdb.t_attribute VALUES (-312243043454143172, -5012192948753502156, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#4865346868591089587', null, null, -6374413608496105683, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-304368783296494944, 4443085875355114379, null, 'start', false, true, null, 'xs:string', null, null, null, null, -5135423644045337547, 1, 1, '2016-12-27 17:05:12', '2016-12-27 17:05:12');
INSERT INTO onecmdb.t_attribute VALUES (-300495613641920368, -7868151093536211927, 'IPv4 Address', 'IPAddress', false, false, null, 'xs:string', null, '172.16.17.32', null, null, 1515202162886390642, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-294407698058163279, 2684607629046987153, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, 1387948091725077155, 1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-283110759518665754, -6430347810547129509, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'resource', null, null, 3770822044337348543, 1, 0, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-260155509657185836, 2338142333132801027, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#4899068668525632836', null, null, 1387948091725077155, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-245041941543022125, null, null, 'notes_url', false, true, 'This variable is used to define an optional URL that can be used to provide more information about the host group. If you specify an URL, you will see a red folder icon in the CGIs (when you are viewing hostgroup information) that links to the URL you specify here. Any valid URL can be used. If you plan on using relative paths, the base path will the the same as what is used to access the CGIs (i.e. /cgi-bin/nagios/). This can be very useful if you want to make detailed information on the host group, emergency contact methods, etc. available to other support staff.', 'xs:string', null, null, null, null, -4154185814876458058, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (-238978371234157191, 2684607629046987153, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, -6374413608496105683, 1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-233879330447984334, -4729509718012020932, 'IPv6 Address', 'IPv6Address', false, true, null, 'xs:string', null, null, null, null, 5575307939015290823, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-215120635254877839, -5669522693763744355, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, -7521513589309759003, 1, 0, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (-214102510579181629, -3083491610262817321, 'Maintenance Info', 'Maintenance', true, true, null, 'oneCMDB:#7154244997109246053', 'oneCMDB:#-8025526327383936657', null, null, null, -5998842903881319824, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-212793708698149353, 5945915007558759411, 'Name', 'Name', false, false, null, 'xs:string', null, 'Atlanta', null, null, 6080430438857183034, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (-204634129115798490, null, 'Create', 'create', false, true, 'Create permission the groups', 'xs:boolean', null, null, null, null, 6915891861069126862, 1, 1, '2016-12-27 17:05:10', '2016-12-27 17:05:10');
INSERT INTO onecmdb.t_attribute VALUES (-201269865504180128, null, null, 'service_notifications_enabled', false, true, 'This directive is used to determine whether or not the contact will receive notifications about service problems and recoveries. Values: 0 = don’t send notifications, 1 = send notifications.', 'xs:integer', null, null, null, null, 7535307617655623766, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (-199885017907676497, -723952125964968940, 'Financial Info', 'Financials', true, false, null, 'oneCMDB:#-4030583075832430887', 'oneCMDB:#-8025526327383936657', 'oneCMDB:#-5327553007319099378', -5327553007319099378, null, 1515202162886390642, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-191299324058267616, 3221537918336219026, 'Maintenance Info', 'Maintenance', true, true, null, 'oneCMDB:#7154244997109246053', 'oneCMDB:#-8025526327383936657', null, null, null, -5165488382750819713, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-191070276069451799, -1458870476716410545, null, 'icon', false, true, 'Filename (no file extension) of icon image.', 'xs:string', null, 'computer', null, null, 2166601380421831026, 1, 0, '2016-12-28 16:01:48', '2016-12-28 16:01:48');
INSERT INTO onecmdb.t_attribute VALUES (-156365782827418621, 5597075838499731769, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'mdrHistory', null, null, 4675968942250705277, 1, 0, '2016-12-28 16:02:05', '2016-12-28 16:02:05');
INSERT INTO onecmdb.t_attribute VALUES (-147364063196792403, 4268936107291215598, null, 'icon', false, true, 'Filename (no file extension) of icon image.', 'xs:string', null, 'maintenance', null, null, 7154244997109246053, 1, 0, '2016-12-28 16:01:48', '2016-12-28 16:01:48');
INSERT INTO onecmdb.t_attribute VALUES (-134842468502043373, -4405087016263014431, 'Name', 'name', false, true, null, 'xs:string', null, null, null, null, -4738509295938085926, 1, 1, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (-131360856258526110, 1905201741554936413, 'Source', 'source', true, true, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, null, null, null, 5179857591352919088, 1, 1, '2016-12-27 17:05:11', '2016-12-27 17:05:11');
INSERT INTO onecmdb.t_attribute VALUES (-119468036486136463, -5669522693763744355, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, 587391989376672404, 1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-111588207941788152, -4972344921978241811, 'Version', 'Version', false, false, null, 'xs:string', null, 'Tomcat', null, null, 8385099514641563517, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-105492513335465357, 2842455028658823336, 'Version', 'Version', false, false, null, 'xs:string', null, '2003', null, null, 7503285799199789397, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-103141334554034040, -1524543709740163214, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-2871151807065298888', null, null, 5742108542344306538, 1, 1, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (-65310301253794868, -5591169885085062245, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-1643976468999782598', null, null, 6473487725781865116, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-62397259490009361, 4063683728257176362, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'package', null, null, 8451682648722222209, 1, 0, '2016-12-28 16:01:48', '2016-12-28 16:01:48');
INSERT INTO onecmdb.t_attribute VALUES (-59434905928721962, 2158032505578746876, null, 'Hostname', false, true, null, 'xs:string', null, null, null, null, 6971205699962462965, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-56601690376745130, -3339348614286452107, null, 'icon', false, true, 'Filename (no file extension) of icon image.', 'xs:string', null, 'ci', null, null, -8312690835136204981, 1, 0, '2016-12-28 16:01:48', '2016-12-28 16:01:48');
INSERT INTO onecmdb.t_attribute VALUES (-53469966319940574, 1955943626659473730, 'Service', 'Service', true, false, null, 'oneCMDB:#-4678966175358915668', 'oneCMDB:#-3863377389438174788', null, null, null, 6936928594960133541, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-49193806033443754, -2489227691804354699, null, 'Hostname', false, false, null, 'xs:string', null, null, null, null, 8526533317541349136, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-44280449444042263, 9019060738934722102, 'Name', 'Name', false, false, null, 'xs:string', null, 'Under Test', null, null, -2661588154870202781, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-34701666056183528, 8905241569907256559, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'resource', null, null, 1431590659382240388, 1, 0, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-22254625182834995, 6514396784575161283, 'Financial Info', 'Financials', true, true, null, 'oneCMDB:#-4030583075832430887', 'oneCMDB:#-8025526327383936657', null, null, null, -239896225795807576, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (-17061631716324360, -8603102978338421612, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#6936928594960133541', null, null, 6441786424248107013, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (-9767230815728641, null, null, 'notification_failure_criteria', false, true, null, 'xs:string', null, null, null, null, 1890256877210801519, 1, 1, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (7819018244213194, 7768550390595960996, 'Service', 'Service', true, true, null, 'oneCMDB:#-4678966175358915668', 'oneCMDB:#-3863377389438174788', null, null, null, 4338151747944765362, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (18398101202772844, 1646815304607965566, 'Rejected', 'rejected', false, false, null, 'xs:boolean', null, 'false', null, null, 4675968942250705277, 1, 1, '2016-12-28 16:02:05', '2016-12-28 16:02:05');
INSERT INTO onecmdb.t_attribute VALUES (57013145765814860, -5669522693763744355, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, 6473487725781865116, 1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (72795163956868539, null, null, 'gd2_image', false, true, null, 'xs:string', null, null, null, null, 739521429005320541, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (93576801007396652, 5488164767671116836, 'Connected To', 'ConnectedTo', true, true, null, 'oneCMDB:#1325117208637117274', 'oneCMDB:#-2725368316691492923', null, null, null, 6971205699962462965, -1, 0, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (96475156001460780, 1194001177212652620, 'Service', 'Service', true, true, null, 'oneCMDB:#-4678966175358915668', 'oneCMDB:#-3863377389438174788', null, null, null, 1769375665960405126, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (115677508067321688, null, null, 'notification_period', true, true, 'This directive is used to specify the short name of the time period during which notifications of events for this service can be sent out to contacts. No service notifications will be sent out during times which is not covered by the time period.', 'oneCMDB:#-8312690835136204981', 'oneCMDB:#-3863377389438174788', null, null, null, 8986099038471647984, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (118953697155781598, -5591169885085062245, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-6387231193564991043', null, null, -3329331651722637045, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (129652908319622854, 3216849197076107229, 'Maintenance Info', 'Maintenance', true, true, null, 'oneCMDB:#7154244997109246053', 'oneCMDB:#-8025526327383936657', null, null, null, 4774848979350389203, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (135569558399154212, -1040856819005843342, null, 'use', false, true, 'The template this nagios config entry should derived from.', 'xs:string', null, null, null, null, -1912794354431148047, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (145017818087084322, -6391465265200742848, 'Status', 'status', false, false, null, 'xs:string', null, null, null, null, -4474468114987171564, 1, 1, '2016-12-28 16:01:48', '2016-12-28 16:01:48');
INSERT INTO onecmdb.t_attribute VALUES (153229449285681766, -7480885693105589137, 'Name', 'Name', false, true, null, 'xs:string', null, 'Network Application', null, null, 6704163766313149585, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (167682503217310041, null, 'Purchase Date', 'Purchase_Date', false, true, null, 'xs:date', null, null, null, null, -4030583075832430887, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (172790013858994356, -4377813381529510090, 'Version', 'Version', false, false, null, 'xs:string', null, '4', null, null, 225437699908619242, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (178437171840081438, -3831161519180542550, 'Name', 'Name', false, false, null, 'xs:string', null, 'Oracle DB', null, null, -3883718588737995702, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (187948860481212470, null, null, 'display_name', false, true, 'This directive is used to define an alternate name that should be displayed in the web interface for this host. If not specified, this defaults to the value you specify for the host_name directive. Note: The current CGIs do not use this option, although future versions of the web interface will.', 'xs:string', null, null, null, null, -6108598720877681394, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (194486309682477202, 2338142333132801027, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-306753241820469847', null, null, 6928470614784645567, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (210787620220706641, 2842455028658823336, 'Version', 'Version', false, false, null, 'xs:string', null, '2003', null, null, 8451682648722222209, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (211733496772828372, -1524543709740163214, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-7550256766207092122', null, null, -2137122543479173001, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (216366568297635273, null, null, 'contact_name', false, true, 'This directive is used to define a short name used to identify the contact. It is referenced in contact group definitions. Under the right circumstances, the $CONTACTNAME$ macro will contain this value.', 'xs:string', null, null, null, null, 7535307617655623766, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (227095953219068886, 3521168720769405274, null, 'name', false, true, 'The template name referenced with the use attribute.', 'xs:string', null, null, null, null, 7535307617655623766, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (229456192292468644, 876967725962878430, 'DSL Entry', 'DSLEntry', false, true, null, 'xs:anyURI', null, null, null, null, -5058684262027826612, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (233846127243169094, null, null, 'notes_url', false, true, 'This directive is used to define an optional URL that can be used to provide more information about the service group. If you specify an URL, you will see a red folder icon in the CGIs (when you are viewing service group information) that links to the URL you specify here. Any valid URL can be used. If you plan on using relative paths, the base path will the the same as what is used to access the CGIs (i.e. /cgi-bin/nagios/). This can be very useful if you want to make detailed information on the service group, emergency contact methods, etc. available to other support staff.', 'xs:string', null, null, null, null, -1912794354431148047, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (242921712336425985, null, null, 'host_name', true, true, 'This variable is used to identify the short name of the host which the data is associated with.', 'oneCMDB:#-6108598720877681394', 'oneCMDB:#-3863377389438174788', null, null, null, -2437713139919564933, -1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (247130236135633238, -6534401627337633836, 'Port', 'Port', false, true, null, 'xs:integer', null, null, null, null, -5058684262027826612, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (255509197059489169, -5664724427834647906, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, -5468400491548625536, 1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (270834695301837357, -7439329609898581832, 'Service', 'Service', true, false, null, 'oneCMDB:#-4678966175358915668', 'oneCMDB:#-3863377389438174788', 'oneCMDB:#-8597405831502449749', -8597405831502449749, null, -2871151807065298888, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (271597506186601458, -2556085342287376074, null, 'icon', false, true, 'Filename (no file extension) of icon image.', 'xs:string', null, 'printer', null, null, 5757536082740955330, 1, 0, '2016-12-28 16:01:48', '2016-12-28 16:01:48');
INSERT INTO onecmdb.t_attribute VALUES (291759117711298052, -4616527746417966432, null, 'icon', false, true, 'Filename (no file extension) of icon image.', 'xs:string', null, 'mswindows', null, null, -294406670328424842, 1, 0, '2016-12-28 16:01:48', '2016-12-28 16:01:48');
INSERT INTO onecmdb.t_attribute VALUES (310260697566926097, 1444364607460198231, 'Service', 'Service', true, false, null, 'oneCMDB:#-4678966175358915668', 'oneCMDB:#-3863377389438174788', 'oneCMDB:#1145706693256386797', 1145706693256386797, null, -7048484407295153374, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (325373451995316120, -2344575093696141095, 'Uses', 'Uses', true, true, null, 'oneCMDB:#7491575733809579230', 'oneCMDB:#7815034950157158561', null, null, null, 6704163766313149585, -1, 0, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (337725040769194932, 8311479515767203985, 'Purchase Prise (USD)', 'Purchase_Prise', false, false, null, 'xs:integer', null, '4000', 4000, null, 1616600853113017715, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (340187966988933710, null, null, 'retain_nonstatus_information', false, true, 'This directive is used to determine whether or not non-status information about the contact is retained across program restarts. This is only useful if you have enabled state retention using the retain_state_information directive. Value: 0 = disable non-status information retention, 1 = enable non-status information retention.', 'xs:integer', null, null, null, null, 7535307617655623766, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (340954683487848221, 5307570447989209655, null, 'icon', false, true, 'Filename (no file extension) of icon image.', 'xs:string', null, null, null, null, 6915891861069126862, 1, 0, '2016-12-27 17:05:10', '2016-12-27 17:05:10');
INSERT INTO onecmdb.t_attribute VALUES (356200752205309667, 8449860996843323008, 'DSL Entry', 'DSLEntry', false, true, null, 'xs:anyURI', null, null, null, null, -1951039734141517216, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (377787098390721245, 2338142333132801027, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#5448442896062760526', null, null, -6374413608496105683, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (381458473530623368, null, 'Password', 'password', false, true, null, 'xs:password', null, null, null, null, -6252396672999998809, 1, 1, '2016-12-27 17:05:09', '2016-12-27 17:05:09');
INSERT INTO onecmdb.t_attribute VALUES (382510000376079623, -3520037971939371164, null, 'icon', false, true, 'Filename (no file extension) of icon image.', 'xs:string', null, 'system', null, null, 1325117208637117274, 1, 0, '2016-12-28 16:01:48', '2016-12-28 16:01:48');
INSERT INTO onecmdb.t_attribute VALUES (403597391861329102, 2684607629046987153, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, 4655619091113466025, 1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (432597216999912480, 3222890239574929978, 'Manufacturer', 'Manufacturer', true, false, null, 'oneCMDB:#5433965781192492423', 'oneCMDB:#-8025526327383936657', 'oneCMDB:#4584492750138991208', 4584492750138991208, null, 5448442896062760526, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (443552894914936779, -5012192948753502156, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-6553834200975625641', null, null, 1145706693256386797, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (447040918289644389, -1524543709740163214, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#1198750186879466999', null, null, 4312680585269675121, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (447887553636486953, 3221537918336219026, 'Maintenance Info', 'Maintenance', true, true, null, 'oneCMDB:#7154244997109246053', 'oneCMDB:#-8025526327383936657', null, null, null, -5000743863724034311, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (454245518513090804, null, 'Used By', 'UsedBy', true, true, null, 'oneCMDB:#5433965781192492423', 'oneCMDB:#-8025526327383936657', null, null, null, -4678966175358915668, -1, 0, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (468652692101587103, -8156709246695355115, 'Service', 'Service', true, false, null, 'oneCMDB:#-4678966175358915668', 'oneCMDB:#-3863377389438174788', 'oneCMDB:#7477104874606756567', 7477104874606756567, null, -6624236066440953660, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (469616668324226174, null, null, 'attributePattern', false, true, null, 'xs:string', null, null, null, null, 8260888867499517871, 1, 1, '2016-12-27 17:05:11', '2016-12-27 17:05:11');
INSERT INTO onecmdb.t_attribute VALUES (487443193183805421, -3049788565699956314, null, 'icon', false, true, 'Filename (no file extension) of icon image.', 'xs:string', null, null, null, null, 4003664281832297273, 1, 0, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (492545217158090566, -5143051842580717168, 'Program', 'program', false, true, null, 'xs:string', null, null, null, null, -7382422160449654057, 1, 1, '2016-12-28 16:01:48', '2016-12-28 16:01:48');
INSERT INTO onecmdb.t_attribute VALUES (494674571367204260, -8603102978338421612, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-7048484407295153374', null, null, 7425451699892628348, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (494865340428145271, -8791954955986718586, 'License Key', 'LicenseKey', false, true, null, 'xs:string', null, null, null, null, -5000743863724034311, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (502739630303380241, 3744240333219012972, 'Name', 'Name', false, false, null, 'xs:string', null, 'Microsoft Maintenance', null, null, -8931481580316879494, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (507979653963556827, -3085499285560338061, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'asset', null, null, 1616600853113017715, 1, 0, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (523482285991934267, -5669522693763744355, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, 1572282518553124849, 1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (523860428464785706, null, null, 'contact_groups', true, true, 'This is a list of the short names of the contact groups that should be notified whenever there are problems (or recoveries) with this service. Multiple contact groups should be separated by commas. You must specify at least one contact or contact group in each service definition.', 'oneCMDB:#5505300793486821851', 'oneCMDB:#-3863377389438174788', null, null, null, 8986099038471647984, -1, 0, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (546550282598212407, -7890904614705006398, 'License Key', 'LicenseKey', false, true, null, 'xs:string', null, null, null, null, -1951039734141517216, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (547522571684670513, 2196487774809878277, 'Name', 'Name', false, false, null, 'xs:string', null, '<NAME>', null, null, -6387231193564991043, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (548491827508897868, null, 'Attribute Selectors', 'selector', true, true, null, 'oneCMDB:#4845305278725074851', 'oneCMDB:#5024896043547205381', null, null, null, -2823204706454452072, -1, 0, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (566317749489492356, null, 'Account Locked', 'accountLocked', false, true, null, 'xs:boolean', null, 'false', null, null, -6252396672999998809, 1, 1, '2016-12-27 17:05:09', '2016-12-27 17:05:09');
INSERT INTO onecmdb.t_attribute VALUES (575127357843418691, -5591169885085062245, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-3183565547364756951', null, null, -6652782400463517677, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (582940415454015405, -5012192948753502156, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#3770822044337348543', null, null, -3627985087926095259, 1, 1, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (595173497772919041, 2261577069152373751, 'Installed On', 'InstalledOn', true, false, null, 'oneCMDB:#1325117208637117274', 'oneCMDB:#4825510563751653831', 'oneCMDB:#5123540782477111460', 5123540782477111460, null, -4632697620056224887, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (595492695527829946, null, null, 'check_freshness', false, true, 'This directive is used to determine whether or not freshness checks are enabled for this service. Values: 0 = disable freshness checks, 1 = enable freshness checks.', 'xs:integer', null, null, null, null, 8986099038471647984, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (608107473358640078, 1499783309383705593, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'netcomp', null, null, -38466446972918069, 1, 0, '2016-12-28 16:01:48', '2016-12-28 16:01:48');
INSERT INTO onecmdb.t_attribute VALUES (612478142422013825, -6868818845750700134, 'Uses', 'Uses', true, false, null, 'oneCMDB:#-4678966175358915668', 'oneCMDB:#7815034950157158561', 'oneCMDB:#-4738155501791797374', -4738155501791797374, null, -8037939061718373803, -1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (621341352830392531, -2285417843436206533, 'Manufacturer', 'Manufacturer', true, true, null, 'oneCMDB:#5433965781192492423', 'oneCMDB:#-8025526327383936657', null, null, null, 2317423548075909079, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (623793940935950233, null, null, 'notification_failure_criteria', false, true, null, 'xs:string', null, null, null, null, -3885642522584708287, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (623921020456460796, 7678170051771662498, 'DSL Entry', 'DSLEntry', false, false, null, 'xs:anyURI', null, 'http://www.onecmdb.org/docs/BasicDatacenter/DSL/Dummy_OS_Package.txt', null, null, -306753241820469847, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (626687451236424471, 3858978566748600360, null, 'icon', false, true, 'Filename (no file extension) of icon image.', 'xs:string', null, 'application', null, null, 6704163766313149585, 1, 0, '2016-12-28 16:01:48', '2016-12-28 16:01:48');
INSERT INTO onecmdb.t_attribute VALUES (628870193634401327, -5584557892262552640, 'Instance', 'instance', false, true, null, 'xs:string', null, null, null, null, 4972181722220004715, 1, 1, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (632313535349893045, 2684607629046987153, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, 2283492301274917080, 1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (635117855709061612, -5982876531729148667, 'Maintenance Level', 'Maintenance_Level', false, false, null, 'xs:string', null, '5x8', null, null, 5400821923574190750, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (637282254112557670, -8522372941645117946, 'Uses', 'Uses', true, true, null, 'oneCMDB:#7491575733809579230', 'oneCMDB:#7815034950157158561', null, null, null, 880600073926883392, -1, 0, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (639893315560191899, 96475156001460780, 'Service', 'Service', true, true, null, 'oneCMDB:#-4678966175358915668', 'oneCMDB:#-3863377389438174788', null, null, null, 3865960124110820148, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (639931912586146823, 2472277896376169463, null, 'icon', false, true, 'Filename (no file extension) of icon image.', 'xs:string', null, null, null, null, -4738509295938085926, 1, 0, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (656305735511897740, 1499783309383705593, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'netcomp', null, null, 4899068668525632836, 1, 0, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (672744943478211680, 454245518513090804, 'Used By', 'UsedBy', true, false, null, 'oneCMDB:#5433965781192492423', 'oneCMDB:#-8025526327383936657', 'oneCMDB:#6574293108878508724', 6574293108878508724, null, -6553834200975625641, -1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (679835896356451654, -2489227691804354699, null, 'Hostname', false, true, null, 'xs:string', null, null, null, null, -1407617025811333519, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (683898970687603119, -1524543709740163214, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#5438961292355445872', null, null, -6648195978214943238, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (686755038838963280, -8902468049398991901, 'MAC Address', 'MAC_Address', false, true, null, 'xs:string', null, null, null, null, 3331921274338303097, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (690797138571260738, 2338142333132801027, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#5438961292355445872', null, null, 4655619091113466025, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (692685186455197088, 8794022947635014930, 'Connected To', 'ConnectedTo', true, false, null, 'oneCMDB:#1325117208637117274', 'oneCMDB:#-2725368316691492923', 'oneCMDB:#-4877615434796502236', -4877615434796502236, null, 6936928594960133541, -1, 0, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (695323593940479229, -8603102978338421612, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#5448442896062760526', null, null, -7664282384609793106, 1, 1, '2016-12-28 16:01:53', '2016-12-28 16:01:53');
INSERT INTO onecmdb.t_attribute VALUES (698772135308044573, 938156389757737981, 'DSL Entry', 'DSLEntry', false, false, null, 'xs:anyURI', null, 'http://onecmdb.org/docs/BasicDatacenter/DSL/Dummy_Software_Package.txt', null, null, -3267638157342394138, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (709167957218473821, -5669522693763744355, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, -2018312901049028095, 1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (723425180440006852, 4702829930136623391, 'OS Family', 'Family', false, true, null, 'xs:string', null, 'Windows', null, null, 72883027723141449, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (733038443031203746, -1524543709740163214, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#5612781772166901244', null, null, -6521220322564400643, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (765987679427360070, 626687451236424471, null, 'icon', false, true, 'Filename (no file extension) of icon image.', 'xs:string', null, 'application', null, null, -1727366760233341791, 1, 0, '2016-12-28 16:01:48', '2016-12-28 16:01:48');
INSERT INTO onecmdb.t_attribute VALUES (769360947310329595, 6489324153410357449, null, 'icon', false, true, 'Filename (no file extension) of icon image.', 'xs:string', null, null, null, null, 3852576172540807645, 1, 0, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (799906446511860047, null, 'Username', 'username', false, true, null, 'xs:string', null, 'Account', null, null, -6252396672999998809, 1, 1, '2016-12-27 17:05:09', '2016-12-27 17:05:09');
INSERT INTO onecmdb.t_attribute VALUES (812089034401392396, -981444118746676537, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#4675968942250705277', null, null, 8860131275095915741, 1, 1, '2016-12-28 16:02:05', '2016-12-28 16:02:05');
INSERT INTO onecmdb.t_attribute VALUES (827616374942494598, 167682503217310041, 'Purchase Date', 'Purchase_Date', false, false, null, 'xs:date', null, '2007-07-01', null, '2007-07-01 12:00:01', -6502872628718390337, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (830469767810511665, null, 'Depreciation (years)', 'Depreciation', false, true, null, 'xs:integer', null, null, null, null, -4030583075832430887, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (835366055090176043, 3222890239574929978, 'Manufacturer', 'Manufacturer', true, false, null, 'oneCMDB:#5433965781192492423', 'oneCMDB:#-8025526327383936657', 'oneCMDB:#-6648195978214943238', -6648195978214943238, null, 5438961292355445872, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (840248253272659784, -1524543709740163214, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-3267638157342394138', null, null, 57708491460695096, 1, 1, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (842895604476170259, -4972344921978241811, 'Version', 'Version', false, true, null, 'xs:string', null, null, null, null, -8747012735422861621, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (844467759430559844, -5591169885085062245, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-6502872628718390337', null, null, -5245813709478202318, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (850783143137970245, 2338142333132801027, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-3267638157342394138', null, null, -2808934720526286919, 1, 1, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (872846436169584839, null, 'Read', 'read', false, true, 'Read permission the groups', 'xs:boolean', null, null, null, null, 6915891861069126862, 1, 1, '2016-12-27 17:05:10', '2016-12-27 17:05:10');
INSERT INTO onecmdb.t_attribute VALUES (876967725962878430, -1965639156284701649, 'DSL Entry', 'DSLEntry', false, true, null, 'xs:anyURI', null, null, null, null, 6704163766313149585, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (882389908120675087, -5591169885085062245, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#5601229157724855285', null, null, -1426329249400971207, 1, 1, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (895321206027635375, 1743396138401171271, 'Java Class Name', 'javaClass', false, true, null, 'xs:string', null, 'org.onecmdb.core.utils.transform.csv.CSVInstanceSelector', null, null, -4738509295938085926, 1, 1, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (898246456821792020, null, 'Specialist (internal)', 'Specialist', true, true, null, 'oneCMDB:#-15958512515039807', 'oneCMDB:#-8025526327383936657', null, null, null, 7154244997109246053, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (907140266594696316, 5732699708061790012, 'MAC Address', 'MAC_Address', false, false, null, 'xs:string', null, null, null, null, -6624236066440953660, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (917030007192529314, null, 'XPath', 'xpath', false, true, null, 'xs:string', null, null, null, null, 7013626182509928042, 1, 1, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (923787497023203018, -5012192948753502156, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-4856766876697112377', null, null, 8664931160192194764, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (933406443674521328, -5669522693763744355, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, 4566123606153975941, 1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (938156389757737981, -1965639156284701649, 'DSL Entry', 'DSLEntry', false, true, null, 'xs:anyURI', null, null, null, null, -8747012735422861621, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (940067594477843520, 1917979139818517146, 'Name', 'Name', false, false, null, 'xs:string', null, 'Platform', null, null, -6553834200975625641, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (958479115051184647, null, null, 'notification_period', true, true, 'This directive is used to specify the short name of the time period during which notifications of events for this host can be sent out to contacts. If a host goes down, becomes unreachable, or recoveries during a time which is not covered by the time period, no notifications will be sent out.', 'oneCMDB:#-8312690835136204981', 'oneCMDB:#-3863377389438174788', null, null, null, -6108598720877681394, 1, 1, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (962133967258607520, 1917979139818517146, 'Name', 'Name', false, true, null, 'xs:string', null, 'Service', null, null, -3696127716848820578, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (966631586530060965, 6276919938260585959, 'Name', 'Name', false, true, null, 'xs:string', null, 'Server', null, null, 2166601380421831026, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (972497638514261761, null, null, 'retry_interval', false, true, 'This directive is used to define the number of "time units" to wait before scheduling a re-check of the hosts. Hosts are rescheduled at the retry interval when they have changed to a non-UP state. Once the host has been retried max_check_attempts times without a change in its status, it will revert to being scheduled at its "normal" rate as defined by the check_interval value. Unless you’ve changed the interval_length directive from the default value of 60, this number will mean minutes. More information on this value can be found in the check scheduling documentation.', 'xs:integer', null, null, null, null, -6108598720877681394, 1, 1, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (976992784461039974, 356200752205309667, 'DSL Entry', 'DSLEntry', false, true, null, 'xs:anyURI', null, null, null, null, -5508999552889392857, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (978626039466417235, 7678170051771662498, 'DSL Entry', 'DSLEntry', false, false, null, 'xs:anyURI', null, 'http://www.onecmdb.org/docs/BasicDatacenter/DSL/Dummy_OS_Package.txt', null, null, -7048484407295153374, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (979201255397133022, 4115407515346780657, 'Name', 'name', false, true, null, 'xs:string', null, 'Nagios2CMDB Config', null, null, -7382422160449654057, 1, 1, '2016-12-28 16:01:48', '2016-12-28 16:01:48');
INSERT INTO onecmdb.t_attribute VALUES (985862281748367015, -4972344921978241811, 'Version', 'Version', false, true, null, 'xs:string', null, null, null, null, -5165488382750819713, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (992032081929273952, 546550282598212407, 'License Key', 'LicenseKey', false, true, null, 'xs:string', null, 'FGHJ-3456-YUJK', null, null, 5676046625265852474, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (992816222503594904, 5898472032975421275, 'Maintenance Fee (USD/Year)', 'Maintenance_Fee', false, false, null, 'xs:integer', null, '850', 850, null, -7761184485249285917, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (1001920204074822822, 4153708730521655734, 'Maintenance Agreement', 'Maintenance_Agreement', false, false, null, 'xs:anyURI', null, 'http://www.onecmdb.org/docs/BasicDatacenter/docs/Dummy_Maintenance_Agreement.pdf', null, null, -8931481580316879494, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (1016938959966328432, null, 'Cron Expression', 'cronExpression', false, true, null, 'xs:string', null, null, null, null, 5029444671295990319, 1, 1, '2016-12-27 17:05:12', '2016-12-27 17:05:12');
INSERT INTO onecmdb.t_attribute VALUES (1034136950110839883, -1524543709740163214, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-7550256766207092122', null, null, -3158002772065733777, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (1044850203984127869, 8137040131086296969, 'License Key', 'LicenseKey', false, false, null, 'xs:string', null, 'GHJU-7688-MOVF', null, null, 225437699908619242, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (1055621947071985921, 2338142333132801027, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-5066900477255422158', null, null, -3627985087926095259, 1, 1, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (1063781321215177607, -776008933174046075, 'DSL Entry', 'DSLEntry', false, true, null, 'xs:anyURI', null, 'http://www.onecmdb.org/docs/BasicDatacenter/DSL/Dummy_OS_Package.txt', null, null, 3225491047712550288, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (1078805064307505798, null, null, 'dependent_service_description', true, true, null, 'oneCMDB:#8986099038471647984', 'oneCMDB:#-3863377389438174788', null, null, null, 1890256877210801519, -1, 1, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (1105016949200627513, -4616527746417966432, null, 'icon', false, true, 'Filename (no file extension) of icon image.', 'xs:string', null, 'os', null, null, 4338151747944765362, 1, 0, '2016-12-28 16:01:48', '2016-12-28 16:01:48');
INSERT INTO onecmdb.t_attribute VALUES (1129369579735025419, null, 'Name', 'Name', false, true, null, 'xs:string', null, 'Resource', null, null, -2029449984936709137, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (1131666433732757059, 4171417067138044278, 'Java Class Name', 'javaClass', false, true, null, 'xs:string', null, 'org.onecmdb.core.utils.transform.DefaultAttributeValueSelector', null, null, -1286794834007968621, 1, 1, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (1146218460635946187, -5591169885085062245, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-8697924501898487676', null, null, 4396911423487762801, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (1169081730143850136, -5669522693763744355, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, 686689813511615026, 1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (1170621524818718975, 4869468365480249401, null, 'register', false, true, 'If this entry should be an instances and a template.', 'xs:string', null, null, null, null, -6108598720877681394, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (1175053237149032201, null, null, 'policyFor', true, true, null, 'oneCMDB:#8189059067813029546', 'oneCMDB:#5179857591352919088', null, null, null, 8439080357747159894, 1, 1, '2016-12-27 17:05:11', '2016-12-27 17:05:11');
INSERT INTO onecmdb.t_attribute VALUES (1181092720597024460, -2760402955939510348, 'Template', 'template', false, true, null, 'xs:string', null, null, null, null, -9088578071070289812, 1, 1, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (1186986245661727794, 454245518513090804, 'Used By', 'UsedBy', true, true, null, 'oneCMDB:#5433965781192492423', 'oneCMDB:#-8025526327383936657', null, null, null, -8820227643856541952, -1, 0, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (1194001177212652620, 6109964742949431649, 'Service', 'Service', true, true, null, 'oneCMDB:#-4678966175358915668', 'oneCMDB:#-3863377389438174788', null, null, null, 7491575733809579230, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (1213460233468035981, -1040856819005843342, null, 'use', false, true, 'The template this nagios config entry should derived from.', 'xs:string', null, null, null, null, -6108598720877681394, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (1233599172161237403, -5591169885085062245, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-7761184485249285917', null, null, 287738359630000541, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (1239116347051564940, -8032206424771457608, null, 'icon', false, true, 'Filename (no file extension) of icon image.', 'xs:string', null, 'linux', null, null, -5508999552889392857, 1, 0, '2016-12-28 16:01:48', '2016-12-28 16:01:48');
INSERT INTO onecmdb.t_attribute VALUES (1261804899540235825, 2338142333132801027, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#8067161067550301549', null, null, 1627529348574293596, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (1281653094883169295, 3732561575553150198, 'Financial Info', 'Financial', true, true, null, 'oneCMDB:#-4030583075832430887', 'oneCMDB:#-8025526327383936657', null, null, null, 4727188545314013933, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (1283852019182702315, -457724497279784913, 'Name', 'Name', false, true, null, 'xs:string', null, 'Windows XP', null, null, -389893205101279185, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (1294313161407752572, null, 'City', 'City', false, true, null, 'xs:string', null, null, null, null, -3200591116467062442, 1, 1, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (1303107845949627961, 3216849197076107229, 'Maintenance Info', 'Maintenance', true, true, null, 'oneCMDB:#7154244997109246053', 'oneCMDB:#-8025526327383936657', null, null, null, 3331921274338303097, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (1314376378346973725, -2448778582390853220, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-6553834200975625641', null, null, 6842051815725792483, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (1322896653729335558, 8345497989318023921, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, 3526545237578377375, 1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (1328150694393680574, 1606342094493777432, 'IPv6 Address', 'IPv6Address', false, false, null, 'xs:string', null, null, null, null, 5612781772166901244, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (1330705152963292454, 7768550390595960996, 'Service', 'Service', true, true, null, 'oneCMDB:#-4678966175358915668', 'oneCMDB:#-3863377389438174788', null, null, null, -294406670328424842, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (1346342972409085689, null, null, 'state', false, true, 'Internal state of a process (IDLE|RUNNING).', 'xs:string', null, 'IDLE', null, null, 1634733290972246121, 1, 1, '2016-12-27 17:05:12', '2016-12-27 17:05:12');
INSERT INTO onecmdb.t_attribute VALUES (1347381470575617219, -8087070549377169868, 'Name', 'Name', false, true, null, 'xs:string', null, 'Network Device', null, null, 5068478429873757722, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (1348717428028277057, 2684607629046987153, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, 2993602225205075567, 1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (1352118886118458842, -1524543709740163214, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#225437699908619242', null, null, 1790914910377287488, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (1360944720997400417, null, 'Permissions', 'permission', true, true, 'The permissions connected to this role', 'oneCMDB:#-3523558968467060308', 'oneCMDB:#-453323538046497526', null, null, null, 6534311426540372396, -1, 0, '2016-12-27 17:05:10', '2016-12-27 17:05:10');
INSERT INTO onecmdb.t_attribute VALUES (1365811697766960446, -1040856819005843342, null, 'use', false, true, 'The template this nagios config entry should derived from.', 'xs:string', null, null, null, null, -8312690835136204981, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (1369187248131707488, 7856327862604147733, 'Telephone', 'Telephone', false, false, null, 'xs:string', null, '(415) 345 6777', null, null, 8472139606850256924, -1, 0, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (1380863433464388632, 6530927823170276637, null, 'Hostname', false, false, null, 'xs:string', null, null, null, null, 2763197975055376610, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (1407956238918390209, null, null, 'members', true, true, 'This directive is used to define a list of the short names of contacts that should be included in this group. Multiple contact names should be separated by commas. This directive may be used as an alternative to (or in addition to) using the contactgroups directive in contact definitions.', 'oneCMDB:#7535307617655623766', 'oneCMDB:#-3863377389438174788', null, null, null, 5505300793486821851, -1, 0, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (1422322998416045712, -5591169885085062245, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-4650663127884378612', null, null, 8607736559096888901, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (1430216168074319252, -1524543709740163214, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#5612781772166901244', null, null, 3377876509903121869, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (1430629281081851196, 8811433943416598816, 'Name', 'Name', false, false, null, 'xs:string', null, 'Red Hat Linux', null, null, 4298307837787561059, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (1437196997922972231, -7632207771769379332, 'DSL Entry', 'DSLEntry', false, true, null, 'xs:anyURI', null, null, null, null, -1168493350923132665, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (1437248380768668189, 3521168720769405274, null, 'name', false, true, 'The template name referenced with the use attribute.', 'xs:string', null, null, null, null, -3885642522584708287, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (1437994957852178078, 2851124742085804240, 'Name', 'Name', false, true, null, 'xs:string', null, 'Red Hat Linux', null, null, -1951039734141517216, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (1440419605276376823, -5591169885085062245, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#5601229157724855285', null, null, -2502441278440817308, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (1444364607460198231, -7222577200332478233, 'Service', 'Service', true, true, null, 'oneCMDB:#-4678966175358915668', 'oneCMDB:#-3863377389438174788', null, null, null, 72883027723141449, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (1444446978958059403, -147364063196792403, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'maintenance', null, null, 5400821923574190750, 1, 0, '2016-12-28 16:01:48', '2016-12-28 16:01:48');
INSERT INTO onecmdb.t_attribute VALUES (1445708497474161376, -1136630148419967552, 'Manufacturer', 'Manufacturer', true, true, null, 'oneCMDB:#5433965781192492423', 'oneCMDB:#-8025526327383936657', null, null, null, 4774848979350389203, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (1454979986654387558, 1751874924910027195, 'OS Family', 'Family', false, true, null, 'xs:string', null, 'Windows', null, null, -294406670328424842, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (1469626638838826640, 8261443674782105822, null, 'icon', false, true, 'Filename (no file extension) of icon image.', 'xs:string', null, 'application', null, null, 7491575733809579230, 1, 0, '2016-12-28 16:01:48', '2016-12-28 16:01:48');
INSERT INTO onecmdb.t_attribute VALUES (1484238917288331275, null, 'Data Set', 'dataSet', true, true, null, 'oneCMDB:#5263207391443191195', 'oneCMDB:#5024896043547205381', null, null, null, -6232223556065183933, 1, 1, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (1495844578476706000, 8010013281908328450, null, 'password', false, true, null, 'xs:password', null, null, null, null, -5561407348793484989, 1, 1, '2016-12-27 17:05:12', '2016-12-27 17:05:12');
INSERT INTO onecmdb.t_attribute VALUES (1499783309383705593, 382510000376079623, null, 'icon', false, true, 'Filename (no file extension) of icon image.', 'xs:string', null, 'netcomp', null, null, 9059693167497789202, 1, 0, '2016-12-28 16:01:48', '2016-12-28 16:01:48');
INSERT INTO onecmdb.t_attribute VALUES (1504677901342739479, 4443085875355114379, null, 'start', false, true, null, 'xs:string', null, null, null, null, -5561407348793484989, 1, 1, '2016-12-27 17:05:12', '2016-12-27 17:05:12');
INSERT INTO onecmdb.t_attribute VALUES (1514112134074808016, 8794022947635014930, 'Connected To', 'ConnectedTo', true, false, null, 'oneCMDB:#1325117208637117274', 'oneCMDB:#-2725368316691492923', 'oneCMDB:#-7094411211185663307', -7094411211185663307, null, 5612781772166901244, -1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (1516791755150593049, 6035337425836414461, 'Installed On', 'InstalledOn', true, true, null, 'oneCMDB:#-1168493350923132665', 'oneCMDB:#4825510563751653831', null, null, null, 4037843118202851281, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (1518384593752853684, -2439390704264714729, null, 'icon', false, true, 'Filename (no file extension) of icon image.', 'xs:string', null, 'mdrConfig', null, null, -7382422160449654057, 1, 0, '2016-12-28 16:01:48', '2016-12-28 16:01:48');
INSERT INTO onecmdb.t_attribute VALUES (1526533133911737600, -5669522693763744355, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, -3329331651722637045, 1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (1526880103576767163, -1524543709740163214, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#4899068668525632836', null, null, 7644587526696132904, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (1567881108039656636, -7874494863476418912, 'Telephone', 'Telephone', false, false, null, 'xs:string', null, '(415) 345 6500', null, null, 2376092523771938845, -1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (1580116335537678984, 4646922231658548033, null, 'useName', false, true, 'If the instance should include it''s name. Eq if this instance is used by another instance.', 'xs:boolean', null, null, null, null, 5505300793486821851, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (1586936126529985811, -457724497279784913, 'Name', 'Name', false, true, null, 'xs:string', null, 'Windows Vista', null, null, 3225491047712550288, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (1595556135454401599, -5941143338410154729, 'Installed On', 'InstalledOn', true, true, null, 'oneCMDB:#1325117208637117274', 'oneCMDB:#4825510563751653831', null, null, null, -294406670328424842, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (1595986434017141046, 5648763990242826958, null, 'objectType', false, true, 'The object definition name.', 'xs:string', null, 'service', null, null, 8986099038471647984, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (1602018168473415437, null, null, 'icon_image', false, true, 'This variable is used to define the name of a GIF, PNG, or JPG image that should be associated with this host. This image will be displayed in the status and extended information CGIs. The image will look best if it is 40x40 pixels in size. Images for hosts are assumed to be in the logos/ subdirectory in your HTML images directory (i.e. /usr/local/nagios/share/images/logos).', 'xs:string', null, null, null, null, 739521429005320541, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (1606342094493777432, -4729509718012020932, 'IPv6 Address', 'IPv6Address', false, true, null, 'xs:string', null, null, null, null, 2166601380421831026, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (1612637939460408563, -2366941038302657249, 'Maintenance Info', 'Maintenance', true, false, null, 'oneCMDB:#7154244997109246053', 'oneCMDB:#-8025526327383936657', 'oneCMDB:#6361942409518450777', 6361942409518450777, null, 225437699908619242, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (1618550322357065400, 6678220388808849742, 'Name', 'Name', false, false, null, 'xs:string', null, 'Jsmith Desktop', null, null, 6936928594960133541, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (1637826033748309785, -5669522693763744355, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, -4494610505631099290, 1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (1638431973286494980, 2338142333132801027, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-2521001890385936111', null, null, 8887180738759619051, 1, 1, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (1646815304607965566, null, 'Rejected', 'rejected', false, true, null, 'xs:boolean', null, null, null, null, 2386299380460541961, 1, 1, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (1652981139595105133, -653152380451391655, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'service', null, null, -6365967536967575940, 1, 0, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (1689852039429023362, -1524543709740163214, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-4632697620056224887', null, null, 1813367284442008443, 1, 1, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (1707795687203541923, 8950313626086492550, 'Installed On', 'InstalledOn', true, false, null, 'oneCMDB:#-1168493350923132665', 'oneCMDB:#4825510563751653831', 'oneCMDB:#4819840601125854863', 4819840601125854863, null, -7315267361872023940, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (1736266467472891605, 2196487774809878277, 'Name', 'Name', false, false, null, 'xs:string', null, '<NAME>', null, null, -2521001890385936111, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (1741983186647965898, -7305331747861148599, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'mswindows', null, null, -7048484407295153374, 1, 0, '2016-12-28 16:01:48', '2016-12-28 16:01:48');
INSERT INTO onecmdb.t_attribute VALUES (1743362315610941082, null, null, 'statusmap_image', false, true, 'This variable is used to define the name of an image that should be associated with this host in the statusmap CGI. You can specify a JPEG, PNG, and GIF image if you want, although I would strongly suggest using a GD2 format image, as other image formats will result in a lot of wasted CPU time when the statusmap image is generated. GD2 images can be created from PNG images by using the pngtogd2 utility supplied with Thomas Boutell’s gd library. The GD2 images should be created in uncompressed format in order to minimize CPU load when the statusmap CGI is generating the network map image. The image will look best if it is 40x40 pixels in size. You can leave these option blank if you are not using the statusmap CGI. Images for hosts are assumed to be in the logos/ subdirectory in your HTML images directory (i.e. /usr/local/nagios/share/images/logos).', 'xs:string', null, null, null, null, 739521429005320541, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (1743396138401171271, 6319071884189180505, 'Java Class Name', 'javaClass', false, true, null, 'xs:string', null, null, null, null, -7432335284198671501, 1, 1, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (1748273670601658644, 1129369579735025419, 'Name', 'Name', false, true, null, 'xs:string', null, 'Software', null, null, 3938641235467758932, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (1751874924910027195, null, 'OS Family', 'Family', false, true, null, 'xs:string', null, null, null, null, -1168493350923132665, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (1757028669912254482, 1516791755150593049, 'Installed On', 'InstalledOn', true, false, null, 'oneCMDB:#-1168493350923132665', 'oneCMDB:#4825510563751653831', 'oneCMDB:#1558088984971663166', 1558088984971663166, null, 8451682648722222209, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (1765201812233093809, 7856327862604147733, 'Telephone', 'Telephone', false, false, null, 'xs:string', null, '(415) 345 6515', null, null, -6387231193564991043, -1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (1776423780851145866, 8345497989318023921, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, 4465216800710758772, 1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (1780110572585513776, -5669522693763744355, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, -8178921955682868426, 1, 0, '2016-12-28 16:01:53', '2016-12-28 16:01:53');
INSERT INTO onecmdb.t_attribute VALUES (1802071637473045749, -4972344921978241811, 'Version', 'Version', false, true, null, 'xs:string', null, null, null, null, -5000743863724034311, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (1805173469718707912, -5982876531729148667, 'Maintenance Level', 'Maintenance_Level', false, false, null, 'xs:string', null, '5x8', null, null, -8697924501898487676, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (1807231158279812300, -7478637079806485791, 'Name', 'Name', false, false, null, 'xs:string', null, 'IT Support Group, Inc', null, null, -505646845337106548, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (1807711229355007425, -8791954955986718586, 'License Key', 'LicenseKey', false, false, null, 'xs:string', null, 'N.A', null, null, 8385099514641563517, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (1821783357465326719, 4905113550295563344, 'Financial Info', 'Financial', true, true, null, 'oneCMDB:#-4030583075832430887', 'oneCMDB:#-8025526327383936657', null, null, null, -3957867024269978762, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (1851371799462262489, 5732699708061790012, 'MAC Address', 'MAC_Address', false, false, null, 'xs:string', null, null, null, null, 4899068668525632836, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (1858886807706968497, 7905166649791594630, 'MAC Address', 'MAC_Address', false, false, null, 'xs:string', null, '46745764567', null, null, 2763197975055376610, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (1869832151832595863, 7561040409596471810, 'Purchase Contract', 'Purchase_Contract', false, false, null, 'xs:anyURI', null, 'http://www.onecmdb.org/docs/BasicDatacenter/docs/Dummy_Purchase_Contract.pdf', null, null, -3555672197290052160, 1, 1, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (1887972546140633081, 1239116347051564940, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'linux', null, null, 4298307837787561059, 1, 0, '2016-12-28 16:01:48', '2016-12-28 16:01:48');
INSERT INTO onecmdb.t_attribute VALUES (1893578680415889063, 898246456821792020, 'Specialist (internal)', 'Specialist', true, false, null, 'oneCMDB:#-15958512515039807', 'oneCMDB:#-8025526327383936657', 'oneCMDB:#5866051033940467520', 5866051033940467520, null, -8697924501898487676, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (1897614746445167188, -653152380451391655, null, 'icon', false, true, 'Filename (no file extension) of icon image.', 'xs:string', null, 'application_service', null, null, -3696127716848820578, 1, 0, '2016-12-28 16:01:48', '2016-12-28 16:01:48');
INSERT INTO onecmdb.t_attribute VALUES (1905201741554936413, null, 'Source', 'source', true, true, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, null, null, null, -453323538046497526, 1, 1, '2016-12-27 17:05:09', '2016-12-27 17:05:09');
INSERT INTO onecmdb.t_attribute VALUES (1913658964517864345, null, 'Credential Expired', 'credentialsExpired', false, true, null, 'xs:boolean', null, 'false', null, null, -6252396672999998809, 1, 1, '2016-12-27 17:05:09', '2016-12-27 17:05:09');
INSERT INTO onecmdb.t_attribute VALUES (1917979139818517146, null, 'Name', 'Name', false, true, null, 'xs:string', null, 'Service', null, null, -4678966175358915668, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (1924400710728378824, 2338142333132801027, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#8526533317541349136', null, null, 3917719700601963553, 1, 1, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (1932527488635548381, 5945915007558759411, 'Name', 'Name', false, false, null, 'xs:string', null, 'New York', null, null, 1431590659382240388, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (1933901737444496484, null, 'Column', 'colName', false, true, null, 'xs:string', null, null, null, null, 5014313985612676927, 1, 1, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (1934283854408285353, 8213622616117028391, 'Installed On', 'InstalledOn', true, true, null, 'oneCMDB:#1325117208637117274', 'oneCMDB:#4825510563751653831', null, null, null, 72883027723141449, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (1955943626659473730, 5829332994641049764, 'Service', 'Service', true, true, null, 'oneCMDB:#-4678966175358915668', 'oneCMDB:#-3863377389438174788', null, null, null, 5575307939015290823, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (1957999785080586142, -1303877515446836590, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-8037939061718373803', null, null, -4738155501791797374, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (1975224745927271672, 5732699708061790012, 'MAC Address', 'MAC_Address', false, false, null, 'xs:string', null, null, null, null, 8526533317541349136, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (1987624888395999736, 842895604476170259, 'Version', 'Version', false, false, null, 'xs:string', null, '5.0', null, null, -3267638157342394138, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (1987844909252172888, 7408724948072457504, 'Status', 'Status', true, false, null, 'oneCMDB:#41965733952263877', 'oneCMDB:#-8025526327383936657', 'oneCMDB:#-6652782400463517677', -6652782400463517677, null, 1515202162886390642, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (1988281555193985411, -5969253024959063573, null, 'stop', false, true, null, 'xs:string', null, null, null, null, -6754672868001187115, 1, 1, '2016-12-27 17:05:12', '2016-12-27 17:05:12');
INSERT INTO onecmdb.t_attribute VALUES (1988835226301404951, -5669522693763744355, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, 6574293108878508724, 1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (1989236464475992561, 8317113949910264734, 'Financial Info', 'Financial', true, true, null, 'oneCMDB:#-4030583075832430887', 'oneCMDB:#-8025526327383936657', null, null, null, 7491575733809579230, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (1996901428038230882, 6146017424008324110, 'Name', 'Name', false, true, null, 'xs:string', null, 'Web Service', null, null, 880600073926883392, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (2011948558838854790, null, null, 'service_notification_period', true, true, 'This directive is used to specify the short name of the time period during which the contact can be notified about service problems or recoveries. You can think of this as an "on call" time for service notifications for the contact. Read the documentation on time periods for more information on how this works and potential problems that may result from improper use.', 'oneCMDB:#-8312690835136204981', 'oneCMDB:#-3863377389438174788', null, null, null, 7535307617655623766, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (2018594065482348919, 7856327862604147733, 'Telephone', 'Telephone', false, false, null, 'xs:string', null, '(562) 888 7788', null, null, -2521001890385936111, -1, 0, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (2034449652663875472, null, 'Error', 'error', false, true, null, 'xs:string', null, null, null, null, 2386299380460541961, 1, 1, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (2041016991598508549, 3284846158102965914, 'Location', 'Location', true, false, null, 'oneCMDB:#-3200591116467062442', 'oneCMDB:#-8025526327383936657', 'oneCMDB:#1179499131245420347', 1179499131245420347, null, -6624236066440953660, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (2044265626984459497, 8098717771697910328, 'Status', 'Status', true, true, null, 'oneCMDB:#41965733952263877', 'oneCMDB:#-8025526327383936657', null, null, null, 5575307939015290823, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (2063324703270260885, 8345497989318023921, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, -4798847328596715998, 1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (2075122886313444760, 8794022947635014930, 'Connected To', 'ConnectedTo', true, false, null, 'oneCMDB:#1325117208637117274', 'oneCMDB:#-2725368316691492923', 'oneCMDB:#-728564077336218461', -728564077336218461, null, -38466446972918069, -1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (2085832140981213401, -752431900193616089, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#2763197975055376610', null, null, -8483652034935357882, 1, 1, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (2089712144092925239, -1965639156284701649, 'DSL Entry', 'DSLEntry', false, true, null, 'xs:anyURI', null, 'http://onecmdb.org/docs/BasicDatacenter/DSL/Dummy_Software_Package.txt', null, null, 3865960124110820148, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (2090554554358706802, 1495844578476706000, null, 'password', false, true, null, 'xs:password', null, null, null, null, 5029444671295990319, 1, 1, '2016-12-27 17:05:12', '2016-12-27 17:05:12');
INSERT INTO onecmdb.t_attribute VALUES (2105777112705347948, -7868151093536211927, 'IPv4 Address', 'IPAddress', false, false, null, 'xs:string', null, '212.100.120.003', null, null, 1198750186879466999, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (2116620965506259197, -7480885693105589137, 'Name', 'Name', false, false, null, 'xs:string', null, 'Apache', null, null, 3872536235728130109, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (2126143677049106316, 6353112808861710841, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'resource', null, null, 4865346868591089587, 1, 0, '2016-12-28 16:01:48', '2016-12-28 16:01:48');
INSERT INTO onecmdb.t_attribute VALUES (2128812771564904186, 2936909531636349425, 'Service', 'Service', true, true, null, 'oneCMDB:#-4678966175358915668', 'oneCMDB:#-3863377389438174788', null, null, null, -3957867024269978762, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (2131070140262544224, 8311479515767203985, 'Purchase Prise (USD)', 'Purchase_Prise', false, false, null, 'xs:integer', null, '1000', 1000, null, -6502872628718390337, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (2132704487770519263, 8355264517814217416, 'WAN Hostname', 'WAN_Hostname', false, true, null, 'xs:string', null, null, null, null, -1407617025811333519, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (2136804471274925950, null, 'Maintenance Info', 'Maintenance', true, true, null, 'oneCMDB:#7154244997109246053', 'oneCMDB:#-8025526327383936657', null, null, null, -4924123363775224211, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (2153882661305384553, -5591169885085062245, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-5055663519884480021', null, null, 57708491460695096, 1, 1, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (2154231009520413612, -1524543709740163214, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#1515202162886390642', null, null, -5327553007319099378, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (2158032505578746876, -3861241026947317987, null, 'Hostname', false, true, null, 'xs:string', null, null, null, null, 4774848979350389203, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (2159404570844631604, -1922218887302224890, 'Location', 'Location', true, true, null, 'oneCMDB:#-3200591116467062442', 'oneCMDB:#-8025526327383936657', null, null, null, 5575307939015290823, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (2186359227225555490, 5898472032975421275, 'Maintenance Fee (USD/Year)', 'Maintenance_Fee', false, false, null, 'xs:integer', null, '100', 100, null, -6502872628718390337, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (2187662202327505886, -5591169885085062245, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-3183565547364756951', null, null, 7029272808438756741, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (2196487774809878277, 8083508627834560426, 'Name', 'Name', false, true, null, 'xs:string', null, 'Person', null, null, -15958512515039807, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (2201859307026958302, 4650060484160414209, 'Export Directory', 'exportDir', false, false, 'If this entry should be an instances and a template.', 'xs:string', null, 'export', null, null, -4474468114987171564, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (2204317092768051009, 1445708497474161376, 'Manufacturer', 'Manufacturer', true, true, null, 'oneCMDB:#5433965781192492423', 'oneCMDB:#-8025526327383936657', null, null, null, 6971205699962462965, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (2247772475349532578, -1965639156284701649, 'DSL Entry', 'DSLEntry', false, false, null, 'xs:anyURI', null, 'http://onecmdb.org/docs/BasicDatacenter/DSL/Dummy_Software_Package.txt', null, null, 8385099514641563517, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (2261577069152373751, 8213622616117028391, 'Installed On', 'InstalledOn', true, true, null, 'oneCMDB:#1325117208637117274', 'oneCMDB:#4825510563751653831', null, null, null, 4727188545314013933, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (2271492206413896344, -5669522693763744355, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, 3292283325467518720, 1, 0, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (2281603352613802174, -752431900193616089, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-38466446972918069', null, null, -728564077336218461, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (2301036599910433748, -1524543709740163214, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-8697924501898487676', null, null, 5866051033940467520, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (2301215061534670756, 2684607629046987153, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, 8597807869981412296, 1, 0, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (2308773440717942092, -5012192948753502156, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-8880592129556602654', null, null, -4562263953046860294, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (2309941819272599966, 3744240333219012972, 'Name', 'Name', false, false, null, 'xs:string', null, 'SW Maintenance 5x8', null, null, -5055663519884480021, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (2315206460666743518, -1478756811695415278, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, -7426183369994757231, 1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (2330486279601357884, -1524543709740163214, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-7013056504252155877', null, null, -1958952144243754930, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (2335732526978447725, 129652908319622854, 'Maintenance Info', 'Maintenance', true, true, null, 'oneCMDB:#7154244997109246053', 'oneCMDB:#-8025526327383936657', null, null, null, 5575307939015290823, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (2337016789250943245, -8603102978338421612, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#225437699908619242', null, null, -2080580181395438990, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (2338011293261983297, -2114353355444033311, 'Models', 'modelFiles', false, false, null, 'xs:string', null, '/MDR/Models/models/Basic_Model/Basic_Model_References.xml', null, null, -4992730422267492319, -1, 0, '2016-12-28 16:02:42', '2016-12-28 16:02:42');
INSERT INTO onecmdb.t_attribute VALUES (2338142333132801027, -1219887089453329969, 'Source', 'source', true, true, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, null, null, null, -3863377389438174788, 1, 1, '2016-12-28 16:01:48', '2016-12-28 16:01:48');
INSERT INTO onecmdb.t_attribute VALUES (2343298933379591256, -4931011888977742764, 'Financial Info', 'Financial', true, false, null, 'oneCMDB:#-4030583075832430887', 'oneCMDB:#-8025526327383936657', 'oneCMDB:#-7521513589309759003', -7521513589309759003, null, -2871151807065298888, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (2356588463643958167, -1524543709740163214, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#5438961292355445872', null, null, -3802662887141480551, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (2363046690844352286, -5591169885085062245, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-7761184485249285917', null, null, -7521513589309759003, 1, 1, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (2365393841403086432, -5669522693763744355, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, -472303727294703067, 1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (2368223080806149502, 9004826692431705540, 'Serial Number', 'SerialNumber', false, true, null, 'xs:string', null, null, null, null, 5757536082740955330, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (2374825028122557270, -7874494863476418912, 'Telephone', 'Telephone', false, false, null, 'xs:string', null, '(505) 888 3500', null, null, 3770822044337348543, -1, 0, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (2380904054283944141, 876967725962878430, 'DSL Entry', 'DSLEntry', false, true, null, 'xs:anyURI', null, null, null, null, -1727366760233341791, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (2400063756869389014, 6489324153410357449, null, 'icon', false, true, 'Filename (no file extension) of icon image.', 'xs:string', null, null, null, null, 4845305278725074851, 1, 0, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (2401520823559809214, -4514408188315887915, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#1475166283656461378', null, null, 9205521997055101409, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (2427685667462488173, -6868818845750700134, 'Uses', 'Uses', true, false, null, 'oneCMDB:#-4678966175358915668', 'oneCMDB:#7815034950157158561', 'oneCMDB:#-8590059496185737390', -8590059496185737390, null, -7013056504252155877, -1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (2433453258076303671, -653152380451391655, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'service', null, null, -6553834200975625641, 1, 0, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (2434687619496769089, -1136630148419967552, 'Manufacturer', 'Manufacturer', true, true, null, 'oneCMDB:#5433965781192492423', 'oneCMDB:#-8025526327383936657', null, null, null, -239896225795807576, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (2434728167468845612, 9100241127498511091, 'Service', 'Service', true, false, null, 'oneCMDB:#-4678966175358915668', 'oneCMDB:#-3863377389438174788', 'oneCMDB:#5553546200893327886', 5553546200893327886, null, 1198750186879466999, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (2437922186774662373, -5591169885085062245, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#1616600853113017715', null, null, 3025816063893178852, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (2442307966151085162, 7509599446167191926, 'E-Mail', 'Email', false, false, null, 'xs:string', null, '<EMAIL>', null, null, 6109272791907384000, -1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (2444230526026286398, 382510000376079623, null, 'icon', false, true, 'Filename (no file extension) of icon image.', 'xs:string', null, 'firewall', null, null, 2522367028350860395, 1, 0, '2016-12-28 16:01:48', '2016-12-28 16:01:48');
INSERT INTO onecmdb.t_attribute VALUES (2460595841129429100, -8156709246695355115, 'Service', 'Service', true, false, null, 'oneCMDB:#-4678966175358915668', 'oneCMDB:#-3863377389438174788', null, null, null, 8526533317541349136, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (2461226919186902048, null, null, 'obsess_over_host', false, true, 'This directive determines whether or not checks for the host will be "obsessed" over using the ochp_command.', 'xs:integer', null, null, null, null, -6108598720877681394, 1, 1, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (2472277896376169463, 6489324153410357449, null, 'icon', false, true, 'Filename (no file extension) of icon image.', 'xs:string', null, null, null, null, -7432335284198671501, 1, 0, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (2481978994214765447, -3484398261403397581, 'Serial Number', 'SerialNumber', false, false, null, 'xs:string', null, 'D-23455525', null, null, 1515202162886390642, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (2508486515646109667, null, 'Auto Commit', 'autoCommit', false, true, null, 'xs:boolean', null, null, null, null, 3521914687713450939, 1, 1, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (2533239879492407432, -8791954955986718586, 'License Key', 'LicenseKey', false, true, null, 'xs:string', null, null, null, null, 3865960124110820148, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (2538712613159038282, -1922218887302224890, 'Location', 'Location', true, true, null, 'oneCMDB:#-3200591116467062442', 'oneCMDB:#-8025526327383936657', null, null, null, 6971205699962462965, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (2564832833207983781, -5669522693763744355, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, 6250599673472111602, 1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (2571929690733591393, null, null, 'obsess_over_service', false, true, 'This directive determines whether or not checks for the service will be "obsessed" over using the ocsp_command.', 'xs:integer', null, null, null, null, 8986099038471647984, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (2587356871361375816, null, 'Config Alias', 'configAlias', false, true, null, 'xs:string', null, null, null, null, -8400736094814329789, 1, 1, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (2593831846269662228, -5479511719370999114, null, 'models', false, false, 'Stores loaded models at startup time. Models will not be loaded again.', 'xs:string', null, 'classpath:models/Transform_Model.xml', null, null, -309188504807460713, -1, 1, '2016-12-28 15:59:34', '2016-12-28 15:59:34');
INSERT INTO onecmdb.t_attribute VALUES (2630473923382830325, 1748273670601658644, 'Name', 'Name', false, true, null, 'xs:string', null, 'OS', null, null, -1168493350923132665, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (2637570247539590279, -1524543709740163214, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#5612781772166901244', null, null, 2957606740287094085, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (2644606739162848873, null, null, 'active_checks_enabled', false, true, 'This directive is used to determine whether or not active checks of this service are enabled. Values: 0 = disable active service checks, 1 = enable active service checks.', 'xs:integer', null, null, null, null, 8986099038471647984, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (2665604426056636348, -7385727968787411797, 'Service', 'Service', true, true, null, 'oneCMDB:#-4678966175358915668', 'oneCMDB:#-3863377389438174788', null, null, null, -1727366760233341791, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (2667674826264397235, -2943510380394532811, 'Maintenance Info', 'Maintenance', true, true, null, 'oneCMDB:#7154244997109246053', 'oneCMDB:#-8025526327383936657', null, null, null, -389893205101279185, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (2683172794435214364, -3339348614286452107, null, 'icon', false, true, 'Filename (no file extension) of icon image.', 'xs:string', null, 'ci', null, null, 7535307617655623766, 1, 0, '2016-12-28 16:01:48', '2016-12-28 16:01:48');
INSERT INTO onecmdb.t_attribute VALUES (2684014330841366898, null, null, 'icon', false, true, 'Filename (no file extension) of icon image.', 'xs:string', null, null, null, null, 8189059067813029546, 1, 0, '2016-12-27 17:05:09', '2016-12-27 17:05:09');
INSERT INTO onecmdb.t_attribute VALUES (2684607629046987153, -5637839464463589022, null, 'icon', false, true, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, -3863377389438174788, 1, 0, '2016-12-28 16:01:48', '2016-12-28 16:01:48');
INSERT INTO onecmdb.t_attribute VALUES (2695335020391812658, -1524543709740163214, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#7503285799199789397', null, null, 6250599673472111602, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (2700247614719053876, -376890815242558955, 'Version', 'Version', false, true, null, 'xs:string', null, null, null, null, -6599040348753944674, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (2700892143589034421, null, null, 'max_check_attempts', false, true, 'This directive is used to define the number of times that Nagios will retry the service check command if it returns any state other than an OK state. Setting this value to 1 will cause Nagios to generate an alert without retrying the service check again.', 'xs:integer', null, null, null, null, 8986099038471647984, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (2730203613548951036, 5648763990242826958, null, 'objectType', false, true, 'The object definition name.', 'xs:string', null, 'host', null, null, -6108598720877681394, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (2738968010604877544, null, null, 'valueUniqueInInstance', false, true, null, 'xs:boolean', null, 'false', null, null, 393805027739339455, 1, 1, '2016-12-27 17:05:11', '2016-12-27 17:05:11');
INSERT INTO onecmdb.t_attribute VALUES (2750957734307565847, -2207020015714012191, 'Network', 'Network', true, false, null, 'oneCMDB:#-838366469867279794', 'oneCMDB:#-3863377389438174788', 'oneCMDB:#4694845469050842936', 4694845469050842936, null, 5612781772166901244, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (2766684873486292683, null, 'Reg Expr.', 'regExpr', false, true, null, 'xs:string', null, null, null, null, 3854928064624729302, 1, 1, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (2766729492401804935, -951918716277825912, null, 'instanceSelector', true, true, 'Select one instance from the data source', 'oneCMDB:#-7432335284198671501', 'oneCMDB:#5024896043547205381', null, null, null, 4003664281832297273, 1, 1, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (2777844968807062441, 5488164767671116836, 'Connected To', 'ConnectedTo', true, true, null, 'oneCMDB:#1325117208637117274', 'oneCMDB:#-2725368316691492923', null, null, null, 5575307939015290823, -1, 0, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (2781221939905997043, -6868818845750700134, 'Uses', 'Uses', true, true, null, 'oneCMDB:#-4678966175358915668', 'oneCMDB:#7815034950157158561', null, null, null, -3696127716848820578, -1, 0, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (2791003077720999687, -2118060411480011372, 'SLA', 'SLA', false, false, null, 'xs:anyURI', null, 'http://www.onecmdb.org/docs/BasicDatacenter/docs/Dummy_Service_Level_Agreement.pdf', null, null, -8037939061718373803, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (2797383893456418269, -8156709246695355115, 'Service', 'Service', true, true, null, 'oneCMDB:#-4678966175358915668', 'oneCMDB:#-3863377389438174788', null, null, null, -1407617025811333519, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (2809358982158462381, 7295299542979711514, 'Installed On', 'InstalledOn', true, false, null, 'oneCMDB:#1325117208637117274', 'oneCMDB:#4825510563751653831', 'oneCMDB:#-5468400491548625536', -5468400491548625536, null, 2029949154248172420, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (2810883209581508678, 5898472032975421275, 'Maintenance Fee (USD/Year)', 'Maintenance_Fee', false, false, null, 'xs:integer', null, '600', 600, null, -4650663127884378612, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (2826472372872895355, 2338142333132801027, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-2871151807065298888', null, null, -8597405831502449749, 1, 1, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (2839696299928979429, -214102510579181629, 'Maintenance Info', 'Maintenance', true, true, null, 'oneCMDB:#7154244997109246053', 'oneCMDB:#-8025526327383936657', null, null, null, 2305821143961843722, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (2842455028658823336, -4581708716320851787, 'Version', 'Version', false, true, null, 'xs:string', null, '2003', null, null, 4037843118202851281, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (2843030173774818801, 2587356871361375816, 'Config Alias', 'configAlias', false, false, null, 'xs:string', null, 'MDR_Model_Config', null, null, 5386807379325515575, 1, 1, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (2846490355886040172, null, null, 'allowAliasChange', false, true, null, 'xs:boolean', null, 'true', null, null, 831375279177628912, 1, 1, '2016-12-27 17:05:11', '2016-12-27 17:05:11');
INSERT INTO onecmdb.t_attribute VALUES (2846999051039001560, 1821783357465326719, 'Financial Info', 'Financial', true, false, null, 'oneCMDB:#-4030583075832430887', 'oneCMDB:#-8025526327383936657', 'oneCMDB:#587391989376672404', 587391989376672404, null, -7315267361872023940, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (2851124742085804240, 2630473923382830325, 'Name', 'Name', false, true, null, 'xs:string', null, 'OS', null, null, 4338151747944765362, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (2853913574550955611, 3284846158102965914, 'Location', 'Location', true, false, null, 'oneCMDB:#-3200591116467062442', 'oneCMDB:#-8025526327383936657', 'oneCMDB:#-4494610505631099290', -4494610505631099290, null, 4899068668525632836, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (2860245594628990184, -1762443614652211391, 'Port', 'Port', false, true, null, 'xs:integer', null, '8080', 8080, null, -5000743863724034311, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (2866121774840364300, 1469626638838826640, null, 'icon', false, true, 'Filename (no file extension) of icon image.', 'xs:string', null, 'application', null, null, -5998842903881319824, 1, 0, '2016-12-28 16:01:48', '2016-12-28 16:01:48');
INSERT INTO onecmdb.t_attribute VALUES (2872400243211512744, -5669522693763744355, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, 6361942409518450777, 1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (2875574788169355306, -2760402955939510348, 'Template', 'template', false, true, null, 'xs:string', null, null, null, null, -4738509295938085926, 1, 1, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (2883516062110860619, 8137040131086296969, 'License Key', 'LicenseKey', false, false, null, 'xs:string', null, 'GHJU-7688-MOVF', null, null, 4298307837787561059, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (2889075432631794965, -5669522693763744355, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, 3756775099422547796, 1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (2902000500683953179, -4581708716320851787, 'Version', 'Version', false, true, null, 'xs:string', null, '2.0', null, null, 2305821143961843722, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (2902822771801932443, 1504677901342739479, null, 'start', false, true, null, 'xs:string', null, null, null, null, 5029444671295990319, 1, 1, '2016-12-27 17:05:12', '2016-12-27 17:05:12');
INSERT INTO onecmdb.t_attribute VALUES (2915869819768958763, -1965639156284701649, 'DSL Entry', 'DSLEntry', false, false, null, 'xs:anyURI', null, 'http://onecmdb.org/docs/BasicDatacenter/DSL/Dummy_Software_Package.txt', null, null, 3872536235728130109, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (2925625552710810781, -4770438216895557579, 'Maintenance Info', 'Maintenance', true, true, null, 'oneCMDB:#7154244997109246053', 'oneCMDB:#-8025526327383936657', null, null, null, 3177618163676867203, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (2936909531636349425, 1194001177212652620, 'Service', 'Service', true, true, null, 'oneCMDB:#-4678966175358915668', 'oneCMDB:#-3863377389438174788', null, null, null, -5998842903881319824, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (2952735269017857629, null, null, 'host_name', true, true, null, 'oneCMDB:#-6108598720877681394', 'oneCMDB:#-3863377389438174788', null, null, null, -3885642522584708287, -1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (2960379186984671477, -3085499285560338061, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'asset', null, null, -7761184485249285917, 1, 0, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (2964755799955711388, null, null, 'contactgroup_members', true, true, 'This optional directive can be used to include contacts from other "sub" contact groups in this contact group. Specify a comma-delimited list of short names of other contact groups whose members should be included in this group.', 'oneCMDB:#5505300793486821851', 'oneCMDB:#-3863377389438174788', null, null, null, 5505300793486821851, -1, 0, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (2972553304383955733, -5012192948753502156, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#2376092523771938845', null, null, 7140821888130541650, 1, 1, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (2974467344582247947, -3831161519180542550, 'Name', 'Name', false, false, null, 'xs:string', null, 'MySQL', null, null, -3267638157342394138, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (2993717227321342270, null, null, 'vrml_image', false, true, 'This variable is used to define the name of a GIF, PNG, or JPG image that should be associated with this host. This image will be used as the texture map for the specified host in the statuswrl CGI. Unlike the image you use for the "icon_image" variable, this one should probably not have any transparency. If it does, the host object will look a bit wierd. Images for hosts are assumed to be in the logos/ subdirectory in your HTML images directory (i.e. /usr/local/nagios/share/images/logos).', 'xs:string', null, null, null, null, -6108598720877681394, 1, 1, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (3009507244582812734, -5669522693763744355, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, -3960655638364740171, 1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (3013026958516562103, -3732326593236878410, 'Name', 'Name', false, false, null, 'xs:string', null, 'Windows XP', null, null, -306753241820469847, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (3014290823420361195, 2533239879492407432, 'License Key', 'LicenseKey', false, false, null, 'xs:string', null, 'MSXC-2246-6678-8998', null, null, -7171807647212474252, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (3019124727075563373, -214102510579181629, 'Maintenance Info', 'Maintenance', true, true, null, 'oneCMDB:#7154244997109246053', 'oneCMDB:#-8025526327383936657', null, null, null, -3957867024269978762, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (3030362480058418984, 8345497989318023921, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, -728564077336218461, 1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (3057953801089632007, -1492543261898951824, 'Java Class Name', 'javaClass', false, true, null, 'xs:string', null, 'org.onecmdb.core.utils.transform.csv.CSVDataSource', null, null, 7676013053083698339, 1, 1, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (3114881534202289354, -5591169885085062245, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-3555672197290052160', null, null, 1188800357045380426, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (3116194752282119753, -6868818845750700134, 'Uses', 'Uses', true, false, null, 'oneCMDB:#-4678966175358915668', 'oneCMDB:#7815034950157158561', 'oneCMDB:#1187948958380702301', 1187948958380702301, null, -8037939061718373803, -1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (3119059311492175105, null, null, 'check_interval', false, true, 'This directive is used to define the number of "time units" to wait before scheduling the next "regular" check of the service. "Regular" checks are those that occur when the service is in an OK state or when the service is in a non-OK state, but has already been rechecked max_check_attempts number of times. Unless you’ve changed the interval_length directive from the default value of 60, this number will mean minutes. More information on this value can be found in the check scheduling documentation.', 'xs:integer', null, null, null, null, 8986099038471647984, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (3119607508149077866, -1478756811695415278, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, 6842051815725792483, 1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (3125928215390692934, 4869468365480249401, null, 'register', false, true, 'If this entry should be an instances and a template.', 'xs:string', null, null, null, null, -8312690835136204981, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (3129515596531808295, -4325908530580821491, 'Natural Key', 'naturalKey', false, true, null, 'xs:boolean', null, null, null, null, 5014313985612676927, 1, 1, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (3136176521616484496, -1478756811695415278, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, 5238339757547316102, 1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (3138845983441999648, 2338142333132801027, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-6387231193564991043', null, null, -5409633853396429971, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (3157093499846732072, -5788035442324627072, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'people', null, null, -6387231193564991043, 1, 0, '2016-12-28 16:01:48', '2016-12-28 16:01:48');
INSERT INTO onecmdb.t_attribute VALUES (3169582552092631031, -2892704986996219486, 'IPv6 Address', 'IPv6Address', false, true, null, 'xs:string', null, null, null, null, 5068478429873757722, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (3174678617717639658, -1478756811695415278, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, -2862918293792131485, 1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (3175961490542127261, 3222890239574929978, 'Manufacturer', 'Manufacturer', true, false, null, 'oneCMDB:#5433965781192492423', 'oneCMDB:#-8025526327383936657', 'oneCMDB:#-6521220322564400643', -6521220322564400643, null, 5612781772166901244, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (3176831291307546481, -5669522693763744355, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, -6115533275151606484, 1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (3203500865155684426, -5591169885085062245, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-8931481580316879494', null, null, 3459773674201409910, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (3206198692453804405, -1524543709740163214, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-4240101805785438545', null, null, 5882298149217477979, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (3209237214392563023, -5669522693763744355, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, 2253308242575190041, 1, 0, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (3211891480961071378, -1524543709740163214, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#5448442896062760526', null, null, -4026035656368473238, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (3216849197076107229, 2136804471274925950, 'Maintenance Info', 'Maintenance', true, true, null, 'oneCMDB:#7154244997109246053', 'oneCMDB:#-8025526327383936657', null, null, null, 1325117208637117274, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (3221537918336219026, -3083491610262817321, 'Maintenance Info', 'Maintenance', true, true, null, 'oneCMDB:#7154244997109246053', 'oneCMDB:#-8025526327383936657', null, null, null, 1769375665960405126, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (3222890239574929978, 1445708497474161376, 'Manufacturer', 'Manufacturer', true, true, null, 'oneCMDB:#5433965781192492423', 'oneCMDB:#-8025526327383936657', null, null, null, 2166601380421831026, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (3231318000420576753, -1897151320867645427, null, 'icon', false, true, 'Filename (no file extension) of icon image.', 'xs:string', null, 'mswindows', null, null, 4727188545314013933, 1, 0, '2016-12-28 16:01:48', '2016-12-28 16:01:48');
INSERT INTO onecmdb.t_attribute VALUES (3244477939837616604, null, null, 'initial_state', false, true, 'By default Nagios will assume that all services are in OK states when in starts. You can override the initial state for a service by using this directive. Valid options are: o = OK, w = WARNING, u = UNKNOWN, and c = CRITICAL.', 'xs:string', null, null, null, null, 8986099038471647984, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (3250644766944919509, -1524543709740163214, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-6553834200975625641', null, null, 6574293108878508724, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (3258517130096458051, 4938235785368350604, 'Serial Number', 'SerialNumber', false, true, null, 'xs:string', null, null, null, null, 2522367028350860395, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (3262608207144070454, null, 'Start', 'commitStart', false, true, null, 'xs:dateTime', null, null, null, null, 2386299380460541961, 1, 1, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (3276505441483645845, null, 'Contry', 'Country', false, true, null, 'xs:string', null, null, null, null, -3200591116467062442, 1, 1, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (3282163458552333373, 9183926234340752259, 'Exit Code', 'exitCode', false, false, null, 'xs:string', null, null, null, null, 4675968942250705277, 1, 1, '2016-12-28 16:02:05', '2016-12-28 16:02:05');
INSERT INTO onecmdb.t_attribute VALUES (3284846158102965914, -9208474337129022908, 'Location', 'Location', true, true, null, 'oneCMDB:#-3200591116467062442', 'oneCMDB:#-8025526327383936657', null, null, null, 9059693167497789202, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (3297838692218164168, -1546333862546594469, 'Port', 'Port', false, false, null, 'xs:integer', null, null, null, null, -3267638157342394138, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (3306841801276633649, -4514408188315887915, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-4992730422267492319', -4992730422267492319, null, 8860131275095915741, 1, 1, '2016-12-28 16:02:05', '2016-12-28 16:02:05');
INSERT INTO onecmdb.t_attribute VALUES (3311387895811525110, 356200752205309667, 'DSL Entry', 'DSLEntry', false, true, null, 'xs:anyURI', null, 'http://www.onecmdb.org/docs/BasicDatacenter/DSL/Dummy_OS_Package.txt', null, null, 5676046625265852474, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (3312429119751041270, -6519216150282687063, 'Status', 'Status', true, false, null, 'oneCMDB:#41965733952263877', 'oneCMDB:#-8025526327383936657', 'oneCMDB:#7029272808438756741', 7029272808438756741, null, -6624236066440953660, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (3316344307339793551, null, null, 'valueUniqueOnAllInstances', false, true, null, 'xs:boolean', null, 'false', null, null, 393805027739339455, 1, 1, '2016-12-27 17:05:11', '2016-12-27 17:05:11');
INSERT INTO onecmdb.t_attribute VALUES (3342896219712383269, 7408724948072457504, 'Status', 'Status', true, false, null, 'oneCMDB:#41965733952263877', 'oneCMDB:#-8025526327383936657', 'oneCMDB:#-2030835886613899331', -2030835886613899331, null, 1198750186879466999, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (3343605025455123410, 3222890239574929978, 'Manufacturer', 'Manufacturer', true, false, null, 'oneCMDB:#5433965781192492423', 'oneCMDB:#-8025526327383936657', 'oneCMDB:#-2502441278440817308', -2502441278440817308, null, 1515202162886390642, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (3349901066408708729, -723952125964968940, 'Financial Info', 'Financials', true, false, null, 'oneCMDB:#-4030583075832430887', 'oneCMDB:#-8025526327383936657', 'oneCMDB:#3025816063893178852', 3025816063893178852, null, 5438961292355445872, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (3352003362790981045, 7456012045618063757, 'Maintenance Info', 'Maintenance', true, false, null, 'oneCMDB:#7154244997109246053', 'oneCMDB:#-8025526327383936657', 'oneCMDB:#5742108542344306538', 5742108542344306538, null, -2871151807065298888, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (3376136306656406068, null, null, 'attributePolicy', true, true, null, 'oneCMDB:#393805027739339455', 'oneCMDB:#5179857591352919088', null, null, null, 8439080357747159894, -1, 1, '2016-12-27 17:05:11', '2016-12-27 17:05:11');
INSERT INTO onecmdb.t_attribute VALUES (3378788628174683529, -5591169885085062245, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-4622793531067663618', null, null, -7576219130276881614, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (3381989040037759092, -1524543709740163214, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#1198750186879466999', null, null, 853812382909041303, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (3389784075691498565, -6430347810547129509, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'resource', null, null, 5601229157724855285, 1, 0, '2016-12-28 16:01:48', '2016-12-28 16:01:48');
INSERT INTO onecmdb.t_attribute VALUES (3393745610182327230, null, 'Postal Code', 'Postal_Code', false, true, null, 'xs:string', null, null, null, null, -3200591116467062442, 1, 1, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (3404507304277074672, 153229449285681766, 'Name', 'Name', false, true, null, 'xs:string', null, 'DHCP', null, null, -1727366760233341791, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (3423109049126186635, 6234926010160578597, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'package', null, null, -2871151807065298888, 1, 0, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (3435544111612165743, null, 'Modified objects', 'modified', false, true, null, 'xs:string', null, null, null, null, 2386299380460541961, 1, 1, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (3444007991906982423, -2760402955939510348, 'Template', 'template', false, true, null, 'xs:string', null, null, null, null, 7013626182509928042, 1, 1, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (3444304440049605842, 1484238917288331275, 'Data Set', 'dataSet', true, true, null, 'oneCMDB:#5263207391443191195', 'oneCMDB:#5024896043547205381', null, null, null, -4090127195608060880, 1, 1, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (3466049356679123066, -5591169885085062245, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#2970960574384196618', null, null, 3582055101908388606, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (3481490206708707264, 9060213008561656592, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#4899068668525632836', null, null, -8483652034935357882, 1, 1, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (3482249244475200736, -5669522693763744355, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, 3708927354344220064, 1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (3493705541206173425, -1238933389632567366, 'Maintenance Info', 'Maintenance', true, false, null, 'oneCMDB:#7154244997109246053', 'oneCMDB:#-8025526327383936657', 'oneCMDB:#-7355125189121292561', -7355125189121292561, null, -3883718588737995702, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (3494119200713136516, null, 'Maintenance Info', 'Maintenance', true, true, null, 'oneCMDB:#7154244997109246053', 'oneCMDB:#-8025526327383936657', null, null, null, 3938641235467758932, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (3496160035374245426, -5797430989548529172, 'Status', 'Status', true, true, null, 'oneCMDB:#41965733952263877', 'oneCMDB:#-8025526327383936657', null, null, null, 5757536082740955330, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (3509753089921857827, 4485352581660378118, 'Protocol', 'Protocol', false, true, null, 'xs:string', null, null, null, null, 3865960124110820148, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (3510493756396947127, -5669522693763744355, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, 287738359630000541, 1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (3520062888198676746, -4273716451241513113, 'Protocol', 'Protocol', false, false, null, 'xs:string', null, null, null, null, -3267638157342394138, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (3521168720769405274, null, null, 'name', false, true, 'The template name referenced with the use attribute.', 'xs:string', null, null, null, null, 8896701847700868898, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (3529353319485392022, -1524543709740163214, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#225437699908619242', null, null, 6361942409518450777, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (3539801174688424857, -7718528382892313710, 'DSL Entry', 'DSLEntry', false, true, null, 'xs:anyURI', null, 'http://www.onecmdb.org/docs/BasicDatacenter/DSL/Dummy_Software_Package.txt', null, null, -3957867024269978762, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (3543784042658506519, -3339348614286452107, null, 'icon', false, true, 'Filename (no file extension) of icon image.', 'xs:string', null, 'ci', null, null, 8986099038471647984, 1, 0, '2016-12-28 16:01:48', '2016-12-28 16:01:48');
INSERT INTO onecmdb.t_attribute VALUES (3557457300612242931, -2344575093696141095, 'Uses', 'Uses', true, true, null, 'oneCMDB:#7491575733809579230', 'oneCMDB:#7815034950157158561', null, null, null, -5000743863724034311, -1, 0, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (3569367080465477531, -5669522693763744355, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, 4676329405888212410, 1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (3572932469258608532, 6035337425836414461, 'Installed On', 'InstalledOn', true, true, null, 'oneCMDB:#-1168493350923132665', 'oneCMDB:#4825510563751653831', null, null, null, 2305821143961843722, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (3590263500356921940, null, null, 'hostgroup_name', true, true, 'This directive is used to specify the short name(s) of the hostgroup(s) that the service "runs" on or is associated with. Multiple hostgroups should be separated by commas. The hostgroup_name may be used instead of, or in addition to, the host_name directive.', 'oneCMDB:#-4154185814876458058', 'oneCMDB:#-3863377389438174788', null, null, null, 8986099038471647984, -1, 0, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (3613161565834291671, -5591169885085062245, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#2970960574384196618', null, null, -4640679884142593412, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (3618712303340691483, -4325908530580821491, 'Natural Key', 'naturalKey', false, true, null, 'xs:boolean', null, null, null, null, 6436463782760758572, 1, 1, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (3620790711168995873, -3339348614286452107, null, 'icon', false, true, 'Filename (no file extension) of icon image.', 'xs:string', null, 'ci', null, null, 1890256877210801519, 1, 0, '2016-12-28 16:01:48', '2016-12-28 16:01:48');
INSERT INTO onecmdb.t_attribute VALUES (3625024767369706904, null, 'Installed On', 'InstalledOn', true, true, null, 'oneCMDB:#-1168493350923132665', 'oneCMDB:#4825510563751653831', null, null, null, 7491575733809579230, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (3629437584973513653, 4938235785368350604, 'Serial Number', 'SerialNumber', false, true, null, 'xs:string', null, null, null, null, 9059693167497789202, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (3639760897819664411, 9057925470585307046, 'Target', 'target', true, true, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, null, null, null, 5024896043547205381, 1, 1, '2016-12-28 15:59:31', '2016-12-28 15:59:31');
INSERT INTO onecmdb.t_attribute VALUES (3647398387905538404, null, null, 'notifications_enabled', false, true, 'This directive is used to determine whether or not notifications for this service are enabled. Values: 0 = disable service notifications, 1 = enable service notifications.', 'xs:integer', null, null, null, null, 8986099038471647984, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (3647452933587005694, 4844753175698833355, 'Uses', 'Uses', true, true, null, 'oneCMDB:#7491575733809579230', 'oneCMDB:#7815034950157158561', null, null, null, 2305821143961843722, -1, 0, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (3647931418736781541, -2114353355444033311, 'Models', 'modelFiles', false, false, null, 'xs:string', null, '/MDR/Models/models/Basic_Model/Demo_Instances/Basic_Model_Demo_Instances.xml', null, null, -4992730422267492319, -1, 0, '2016-12-28 16:02:42', '2016-12-28 16:02:42');
INSERT INTO onecmdb.t_attribute VALUES (3657348434538304185, -1303877515446836590, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-7013056504252155877', null, null, 7100503376313409434, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (3688035262092528126, -1303877515446836590, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-7013056504252155877', null, null, -8590059496185737390, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (3694039516072425686, -422531685061586967, 'Name', 'Name', false, true, null, 'xs:string', null, 'Client Appl.', null, null, -5998842903881319824, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (3703495387841933042, -1487623253146950379, 'Name', 'name', false, false, null, 'xs:string', null, 'defaultModels', null, null, -4992730422267492319, 1, 1, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (3710868445135360717, -5104366865309507108, 'Version', 'Version', false, true, null, 'xs:string', null, null, null, null, -5058684262027826612, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (3712831056566096854, 382510000376079623, null, 'icon', false, true, 'Filename (no file extension) of icon image.', 'xs:string', null, 'netcomp', null, null, -239896225795807576, 1, 0, '2016-12-28 16:01:48', '2016-12-28 16:01:48');
INSERT INTO onecmdb.t_attribute VALUES (3714266985875752551, 2400063756869389014, null, 'icon', false, true, 'Filename (no file extension) of icon image.', 'xs:string', null, null, null, null, -6232223556065183933, 1, 0, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (3716192675080364537, -6150345077072260260, 'IPv6 Address', 'IPv6Address', false, false, null, 'xs:string', null, null, null, null, 8526533317541349136, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (3723884162879080458, -5490798092900618495, 'DSL Entry', 'DSLEntry', false, true, null, 'xs:anyURI', null, null, null, null, -6599040348753944674, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (3732561575553150198, -6570922032761711027, 'Financial Info', 'Financial', true, true, null, 'oneCMDB:#-4030583075832430887', 'oneCMDB:#-8025526327383936657', null, null, null, -389893205101279185, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (3732999305972975330, -2448778582390853220, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-8037939061718373803', null, null, -7426183369994757231, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (3739554783699711068, -5591169885085062245, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-5055663519884480021', null, null, -7355125189121292561, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (3744240333219012972, -5686788269331989925, 'Name', 'Name', false, true, null, 'xs:string', null, 'Maintenance', null, null, 7154244997109246053, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (3751985426010085533, -2118060411480011372, 'SLA', 'SLA', false, false, null, 'xs:anyURI', null, 'http://www.onecmdb.org/docs/BasicDatacenter/docs/Dummy_Service_Level_Agreement.pdf', null, null, -6553834200975625641, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (3774639370217684504, -3762283678602573282, 'Maintenance Info', 'Maintenance', true, false, null, 'oneCMDB:#7154244997109246053', 'oneCMDB:#-8025526327383936657', 'oneCMDB:#-7382216090039740193', -7382216090039740193, null, 1198750186879466999, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (3775469028597848638, -6150345077072260260, 'IPv6 Address', 'IPv6Address', false, false, null, 'xs:string', null, null, null, null, 4899068668525632836, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (3779917929019211506, 96475156001460780, 'Service', 'Service', true, true, null, 'oneCMDB:#-4678966175358915668', 'oneCMDB:#-3863377389438174788', null, null, null, -5000743863724034311, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (3784618140051060127, -1524543709740163214, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-6553834200975625641', null, null, 6473487725781865116, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (3787141753053565038, 2684014330841366898, null, 'icon', false, true, 'Filename (no file extension) of icon image.', 'xs:string', null, 'useraccount', null, null, -6252396672999998809, 1, 0, '2016-12-27 17:05:09', '2016-12-27 17:05:09');
INSERT INTO onecmdb.t_attribute VALUES (3790108569336378753, -5591169885085062245, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#2970960574384196618', null, null, -2018312901049028095, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (3809321034811056362, -5012192948753502156, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-7013056504252155877', null, null, 8757673589312859238, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (3811208682856654924, -1478756811695415278, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, -4738155501791797374, 1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (3821144229938221047, 8311479515767203985, 'Purchase Prise (USD)', 'Purchase_Prise', false, false, null, 'xs:integer', null, '4000', 4000, null, -7761184485249285917, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (3858978566748600360, 1469626638838826640, null, 'icon', false, true, 'Filename (no file extension) of icon image.', 'xs:string', null, 'application', null, null, 1769375665960405126, 1, 0, '2016-12-28 16:01:48', '2016-12-28 16:01:48');
INSERT INTO onecmdb.t_attribute VALUES (3862330015454920330, -7480885693105589137, 'Name', 'Name', false, false, null, 'xs:string', null, 'Server Application', null, null, 8385099514641563517, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (3868013692269135644, 4844753175698833355, 'Uses', 'Uses', true, true, null, 'oneCMDB:#7491575733809579230', 'oneCMDB:#7815034950157158561', null, null, null, 4037843118202851281, -1, 0, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (3879185453522754972, null, null, 'check_period', true, true, 'This directive is used to specify the short name of the time period during which active checks of this host can be made.', 'oneCMDB:#-8312690835136204981', 'oneCMDB:#-3863377389438174788', null, null, null, -6108598720877681394, 1, 1, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (3884793233841138149, null, 'Template column', 'templateColString', false, true, null, 'xs:string', null, null, null, null, -4738509295938085926, 1, 1, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (3887761132117329756, 5648763990242826958, null, 'objectType', false, true, 'The object definition name.', 'xs:string', null, null, null, null, -3885642522584708287, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (3889669620255355004, 1239116347051564940, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'linux', null, null, 225437699908619242, 1, 0, '2016-12-28 16:01:48', '2016-12-28 16:01:48');
INSERT INTO onecmdb.t_attribute VALUES (3894117278775702942, -6397603879237454951, 'Maintenance Info', 'Maintenance', true, false, null, 'oneCMDB:#7154244997109246053', 'oneCMDB:#-8025526327383936657', 'oneCMDB:#3459773674201409910', 3459773674201409910, null, -7171807647212474252, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (3902072104751423775, -5591169885085062245, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-8931481580316879494', null, null, 686689813511615026, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (3903993164799357812, null, null, 'stalking_options', false, true, 'This directive determines which host states "stalking" is enabled for. Valid options are a combination of one or more of the following: o = stalk on UP states, d = stalk on DOWN states, and u = stalk on UNREACHABLE states. More information on state stalking can be found here.', 'xs:string', null, null, null, null, -6108598720877681394, 1, 1, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (3918836102752252713, -5012192948753502156, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-6553834200975625641', null, null, -6511386447479370558, 1, 1, '2016-12-28 16:01:53', '2016-12-28 16:01:53');
INSERT INTO onecmdb.t_attribute VALUES (3951871100280263968, -6519216150282687063, 'Status', 'Status', true, false, null, 'oneCMDB:#41965733952263877', 'oneCMDB:#-8025526327383936657', 'oneCMDB:#-30076058648415763', -30076058648415763, null, 4899068668525632836, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (3973036965863135219, null, null, 'host_notifications_enabled', false, true, 'This directive is used to determine whether or not the contact will receive notifications about host problems and recoveries. Values: 0 = don’t send notifications, 1 = send notifications.', 'xs:integer', null, null, null, null, 7535307617655623766, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (3991988922005476020, -9124881232704000087, 'Maintenance Info', 'Maintenance', true, true, null, 'oneCMDB:#7154244997109246053', 'oneCMDB:#-8025526327383936657', null, null, null, 5676046625265852474, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (4013774503590457484, -2448778582390853220, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-6553834200975625641', null, null, 1187948958380702301, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (4022603498284634794, -1524543709740163214, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#1198750186879466999', null, null, 1188800357045380426, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (4025357629004549010, 7075728089708918708, 'Deleted objects', 'deleted', false, false, null, 'xs:string', null, '0', null, null, 4675968942250705277, 1, 1, '2016-12-28 16:02:05', '2016-12-28 16:02:05');
INSERT INTO onecmdb.t_attribute VALUES (4043285606829729516, -5669522693763744355, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, 4396911423487762801, 1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (4043595151158429069, -2642089993832413257, 'Organization', 'Organisation', true, false, null, 'oneCMDB:#5433965781192492423', 'oneCMDB:#-3863377389438174788', 'oneCMDB:#-3627985087926095259', -3627985087926095259, null, -5066900477255422158, 1, 1, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (4063683728257176362, 2866121774840364300, null, 'icon', false, true, 'Filename (no file extension) of icon image.', 'xs:string', null, 'application', null, null, 4037843118202851281, 1, 0, '2016-12-28 16:01:48', '2016-12-28 16:01:48');
INSERT INTO onecmdb.t_attribute VALUES (4069320867254525001, -4621625032515237069, 'Financial Info', 'Financial', true, false, null, 'oneCMDB:#-4030583075832430887', 'oneCMDB:#-8025526327383936657', 'oneCMDB:#-6975859289253992566', -6975859289253992566, null, -3267638157342394138, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (4091387790606648475, -7439329609898581832, 'Service', 'Service', true, true, null, 'oneCMDB:#-4678966175358915668', 'oneCMDB:#-3863377389438174788', null, null, null, 880600073926883392, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (4097633309807552165, null, 'Column', 'colIndexStr', false, true, null, 'xs:string', null, null, null, null, 5014313985612676927, 1, 1, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (4103090388227073168, 3629437584973513653, 'Serial Number', 'SerialNumber', false, false, null, 'xs:string', null, '2134-12312-A', null, null, -38466446972918069, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (4112858330937375765, -1303877515446836590, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-8037939061718373803', null, null, 1187948958380702301, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (4115407515346780657, -5700200873589384332, 'Name', 'name', false, true, null, 'xs:string', null, 'MDR Config', null, null, 3521914687713450939, 1, 1, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (4116165110628011277, 4917553370040696144, 'Entries', 'files', false, false, null, 'xs:string', null, '/MDR/Models/models/Basic_Model/Basic_Model_Templates.xml', null, null, 4675968942250705277, -1, 0, '2016-12-28 16:02:05', '2016-12-28 16:02:05');
INSERT INTO onecmdb.t_attribute VALUES (4122202524613263017, 8082541928944439438, null, 'stop', false, true, null, 'xs:string', null, null, null, null, -5135423644045337547, 1, 1, '2016-12-27 17:05:12', '2016-12-27 17:05:12');
INSERT INTO onecmdb.t_attribute VALUES (4130113432276128478, -2489227691804354699, null, 'Hostname', false, false, null, 'xs:string', null, 'rt-la-01', null, null, 4899068668525632836, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (4132766133005763225, 1606342094493777432, 'IPv6 Address', 'IPv6Address', false, false, null, 'xs:string', null, null, null, null, 1198750186879466999, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (4141743598262281805, -8791954955986718586, 'License Key', 'LicenseKey', false, true, null, 'xs:string', null, null, null, null, 6704163766313149585, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (4142103790651050121, -7757143298352481143, 'License Key', 'LicenseKey', false, true, null, 'xs:string', null, 'MSOF-6767-7788-WERT', null, null, -3957867024269978762, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (4145075526015963779, null, null, 'failure_prediction_enabled', false, true, 'Undocumented in Nagios 3.x version.', 'xs:integer', null, null, null, null, -6108598720877681394, 1, 1, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (4153708730521655734, null, 'Maintenance Agreement', 'Maintenance_Agreement', false, true, null, 'xs:anyURI', null, null, null, null, 7154244997109246053, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (4155908750219628979, -6534401627337633836, 'Port', 'Port', false, true, null, 'xs:integer', null, null, null, null, -1727366760233341791, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (4159323442841928656, -5669522693763744355, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, -6975859289253992566, 1, 0, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (4162095213774254071, 9057919287465543558, 'Status', 'Status', true, true, null, 'oneCMDB:#41965733952263877', 'oneCMDB:#-8025526327383936657', null, null, null, 5068478429873757722, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (4166277197114372960, 2684607629046987153, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, -8299453159977117819, 1, 0, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (4166456842023757920, 2472277896376169463, null, 'icon', false, true, 'Filename (no file extension) of icon image.', 'xs:string', null, null, null, null, 4972181722220004715, 1, 0, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (4168272132656335525, null, 'Network', 'Network', true, true, null, 'oneCMDB:#-838366469867279794', 'oneCMDB:#-3863377389438174788', null, null, null, 1325117208637117274, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (4171417067138044278, 6319071884189180505, 'Java Class Name', 'javaClass', false, true, null, 'xs:string', null, null, null, null, 4845305278725074851, 1, 1, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (4173401037824747010, -3979711827897002409, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#3872536235728130109', null, null, -2080580181395438990, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (4173536456983320389, 7509599446167191926, 'E-Mail', 'Email', false, false, null, 'xs:string', null, '<EMAIL>', null, null, -6388783933053098658, -1, 0, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (4173909293465284259, -3861241026947317987, null, 'Hostname', false, true, null, 'xs:string', null, null, null, null, 2522367028350860395, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (4176343941673812365, -1425651908532133000, 'Financial Info', 'Financials', true, true, null, 'oneCMDB:#-4030583075832430887', 'oneCMDB:#-8025526327383936657', null, null, null, -1407617025811333519, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (4180571448158266523, 830469767810511665, 'Depreciation (years)', 'Depreciation', false, false, null, 'xs:integer', null, '5', 5, null, -4622793531067663618, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (4199480390461078131, -5920425642647881346, 'Name', 'Name', false, false, null, 'xs:string', null, 'Dummy Customer LAN', null, null, -8179192753960381879, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (4212072408236128881, -7480885693105589137, 'Name', 'Name', false, false, null, 'xs:string', null, 'Oracle Financials', null, null, 8067161067550301549, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (4213440347452902294, 8794022947635014930, 'Connected To', 'ConnectedTo', true, false, null, 'oneCMDB:#1325117208637117274', 'oneCMDB:#-2725368316691492923', 'oneCMDB:#4465216800710758772', 4465216800710758772, null, 1515202162886390642, -1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (4218381931245991861, null, null, 'check_interval', false, true, 'This directive is used to define the number of "time units" between regularly scheduled checks of the host. Unless you’ve changed the interval_length directive from the default value of 60, this number will mean minutes. More information on this value can be found in the check scheduling documentation.', 'xs:integer', null, null, null, null, -6108598720877681394, 1, 1, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (4230637115689997776, -5669522693763744355, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, 4481559520547198524, 1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (4232358665253915533, -1762443614652211391, 'Port', 'Port', false, false, null, 'xs:integer', null, '8080', 8080, null, 8385099514641563517, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (4247290316109706096, 4168272132656335525, 'Network', 'Network', true, true, null, 'oneCMDB:#-838366469867279794', 'oneCMDB:#-3863377389438174788', null, null, null, -239896225795807576, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (4267218842549263066, 7638037162105222803, 'Name', 'name', false, false, null, 'xs:string', null, 'Nagios', null, null, 1475166283656461378, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (4268936107291215598, -955580988551008358, null, 'icon', false, true, 'Filename (no file extension) of icon image.', 'xs:string', null, 'management', null, null, -7256466888255858346, 1, 0, '2016-12-28 16:01:48', '2016-12-28 16:01:48');
INSERT INTO onecmdb.t_attribute VALUES (4271760777749303905, -9143811055134819436, null, 'Hostname', false, false, null, 'xs:string', null, 'appserver.acme.com', null, null, 5612781772166901244, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (4286256555328290745, null, 'Street Address', 'Street_Address', false, true, null, 'xs:string', null, null, null, null, -3200591116467062442, 1, 1, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (4292842364780529116, null, 'Delete', 'delete', false, true, 'Delete permission the groups', 'xs:boolean', null, null, null, null, 6915891861069126862, 1, 1, '2016-12-27 17:05:10', '2016-12-27 17:05:10');
INSERT INTO onecmdb.t_attribute VALUES (4297241213383519384, -2175943913041424956, 'MAC Address', 'MAC_Address', false, false, null, 'xs:string', null, '432213423', null, null, 1515202162886390642, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (4309863214841761247, -5669522693763744355, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, 337820764651126728, 1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (4310248152327834046, 6051985294386845258, 'License Key', 'LicenseKey', false, false, null, 'xs:string', null, 'MSHJ-6543-6789', null, null, -7048484407295153374, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (4321357659087558536, 8794022947635014930, 'Connected To', 'ConnectedTo', true, false, null, 'oneCMDB:#1325117208637117274', 'oneCMDB:#-2725368316691492923', 'oneCMDB:#3899359295790179114', 3899359295790179114, null, -6624236066440953660, -1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (4322356421923340671, -2207020015714012191, 'Network', 'Network', true, false, null, 'oneCMDB:#-838366469867279794', 'oneCMDB:#-3863377389438174788', 'oneCMDB:#2993602225205075567', 2993602225205075567, null, 1515202162886390642, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (4327352315063939490, 8794022947635014930, 'Connected To', 'ConnectedTo', true, true, null, 'oneCMDB:#1325117208637117274', 'oneCMDB:#-2725368316691492923', null, null, null, 9059693167497789202, -1, 0, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (4331160385050204858, null, 'Expression', 'expression', false, true, null, 'xs:string', null, null, null, null, -2823204706454452072, 1, 1, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (4338645666910901370, null, null, 'notes_url', false, true, null, 'xs:anyURI', null, null, null, null, -2437713139919564933, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (4350297516608472515, -5669522693763744355, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, 9173780378093541616, 1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (4366603253603349132, 3629437584973513653, 'Serial Number', 'SerialNumber', false, true, null, 'xs:string', null, null, null, null, -1407617025811333519, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (4373301542578451707, 96475156001460780, 'Service', 'Service', true, false, null, 'oneCMDB:#-4678966175358915668', 'oneCMDB:#-3863377389438174788', 'oneCMDB:#-5347908825861944764', -5347908825861944764, null, 8385099514641563517, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (4390315515931798619, 5648763990242826958, null, 'objectType', false, true, 'The object definition name.', 'xs:string', null, null, null, null, 739521429005320541, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (4391100624952010345, -1524543709740163214, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#2763197975055376610', null, null, 3818981860407594996, 1, 1, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (4429879731105857638, -5788035442324627072, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'people', null, null, -5066900477255422158, 1, 0, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (4433733874698429103, null, 'Group Name', 'name', false, true, 'The symbolic name for this security group', 'xs:string', null, 'SecurityGroup', null, null, 7937065981750200200, 1, 1, '2016-12-27 17:05:10', '2016-12-27 17:05:10');
INSERT INTO onecmdb.t_attribute VALUES (4440803580046318127, -3484398261403397581, 'Serial Number', 'SerialNumber', false, false, null, 'xs:string', null, 'D-435-WER-45656576', null, null, 5612781772166901244, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (4443085875355114379, null, null, 'start', false, true, null, 'xs:string', null, null, null, null, -3828191829605365312, 1, 1, '2016-12-27 17:05:12', '2016-12-27 17:05:12');
INSERT INTO onecmdb.t_attribute VALUES (4449499238226541774, -5664724427834647906, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, 5123540782477111460, 1, 0, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (4463863064843589359, 3216849197076107229, 'Maintenance Info', 'Maintenance', true, true, null, 'oneCMDB:#7154244997109246053', 'oneCMDB:#-8025526327383936657', null, null, null, 2522367028350860395, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (4466782603946509072, 4558197380708316382, 'Serial Number', 'SerialNumber', false, false, null, 'xs:string', null, 'D-3453-34535-67', null, null, 2763197975055376610, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (4472596688362875744, -6234130601229229561, 'Service', 'Service', true, false, null, 'oneCMDB:#-4678966175358915668', 'oneCMDB:#-3863377389438174788', 'oneCMDB:#-6506605842191301632', -6506605842191301632, null, 225437699908619242, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (4481664004317619533, 9180838692583090870, 'Name', 'Name', false, false, null, 'xs:string', null, 'Financials Sun HW', null, null, -4650663127884378612, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (4485176131835502629, -8885097571508953844, 'Network', 'Network', true, false, null, 'oneCMDB:#-838366469867279794', 'oneCMDB:#-3863377389438174788', 'oneCMDB:#32356233041257316', 32356233041257316, null, -6624236066440953660, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (4485352581660378118, null, 'Protocol', 'Protocol', false, true, null, 'xs:string', null, null, null, null, 1769375665960405126, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (4496092249353613212, null, null, 'notes', false, true, 'This directive is used to define an optional string of notes pertaining to the host. If you specify a note here, you will see the it in the extended information CGI (when you are viewing information about the specified host).', 'xs:string', null, null, null, null, 739521429005320541, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (4512439674535012462, 9100241127498511091, 'Service', 'Service', true, false, null, 'oneCMDB:#-4678966175358915668', 'oneCMDB:#-3863377389438174788', 'oneCMDB:#632499092524139632', 632499092524139632, null, 1515202162886390642, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (4517523186270254041, -9208474337129022908, 'Location', 'Location', true, true, null, 'oneCMDB:#-3200591116467062442', 'oneCMDB:#-8025526327383936657', null, null, null, -239896225795807576, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (4517984933922344752, 8010013281908328450, null, 'password', false, true, null, 'xs:password', null, null, null, null, -5135423644045337547, 1, 1, '2016-12-27 17:05:12', '2016-12-27 17:05:12');
INSERT INTO onecmdb.t_attribute VALUES (4521108196992006364, -1524543709740163214, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#5400821923574190750', null, null, -402961741963142268, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (4540506668107032025, -5669522693763744355, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, 4312680585269675121, 1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (4546539021580142885, null, null, 'progress', false, true, 'Progress information that the external job program controls. Value can be any text.', 'xs:string', null, null, null, null, 1634733290972246121, 1, 1, '2016-12-27 17:05:12', '2016-12-27 17:05:12');
INSERT INTO onecmdb.t_attribute VALUES (4553515273435569255, -7874494863476418912, 'Telephone', 'Telephone', false, false, null, 'xs:string', null, '(265) 345 2000', null, null, 5601229157724855285, -1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (4558197380708316382, 5354873452518973426, 'Serial Number', 'SerialNumber', false, true, null, 'xs:string', null, null, null, null, 5575307939015290823, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (4560894815230709552, 8473318718519197175, null, 'icon', false, true, 'Filename (no file extension) of icon image.', 'xs:string', null, null, null, null, 7937065981750200200, 1, 0, '2016-12-27 17:05:10', '2016-12-27 17:05:10');
INSERT INTO onecmdb.t_attribute VALUES (4562019557151937399, 8414784833531385067, 'Financial Info', 'Financial', true, false, null, 'oneCMDB:#-4030583075832430887', 'oneCMDB:#-8025526327383936657', 'oneCMDB:#-3960655638364740171', -3960655638364740171, null, 7503285799199789397, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (4597530276712167966, -5584557892262552640, 'Instance', 'instance', false, true, null, 'xs:string', null, null, null, null, -9088578071070289812, 1, 1, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (4599471661187751239, null, 'Maintenance Org.', 'Maintenance_Org', true, true, null, 'oneCMDB:#5433965781192492423', 'oneCMDB:#-8025526327383936657', null, null, null, 7154244997109246053, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (4619129743836218129, -5591169885085062245, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#5400821923574190750', null, null, -4026035656368473238, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (4636727385295701465, 2684607629046987153, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, 8887180738759619051, 1, 0, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (4644991216148951002, 7561040409596471810, 'Purchase Contract', 'Purchase_Contract', false, false, null, 'xs:anyURI', null, 'http://www.onecmdb.org/docs/BasicDatacenter/docs/Dummy_Purchase_Contract.pdf', null, null, 1616600853113017715, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (4646922231658548033, null, null, 'useName', false, true, 'If the instance should include it''s name. Eq if this instance is used by another instance.', 'xs:boolean', null, null, null, null, 8896701847700868898, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (4650060484160414209, null, 'Export Directory', 'exportDir', false, true, 'If this entry should be an instances and a template.', 'xs:string', null, null, null, null, -7382422160449654057, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (4653398946476010974, -5941143338410154729, 'Installed On', 'InstalledOn', true, true, null, 'oneCMDB:#1325117208637117274', 'oneCMDB:#4825510563751653831', null, null, null, 4338151747944765362, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (4656229523383353853, -5669522693763744355, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, -1426329249400971207, 1, 0, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (4659115904927830083, null, 'Role', 'role', false, true, null, 'xs:string', null, null, null, null, -6252396672999998809, -1, 0, '2016-12-27 17:05:09', '2016-12-27 17:05:09');
INSERT INTO onecmdb.t_attribute VALUES (4662340260859893986, -5591169885085062245, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#6080430438857183034', null, null, 3756775099422547796, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (4664301892403690692, null, null, 'service_notification_commands', true, true, 'This directive is used to define a list of the short names of the commands used to notify the contact of a service problem or recovery. Multiple notification commands should be separated by commas. All notification commands are executed when the contact needs to be notified. The maximum amount of time that a notification command can run is controlled by the notification_timeout option.', 'oneCMDB:#1837107117169913746', 'oneCMDB:#-3863377389438174788', null, null, null, 7535307617655623766, -1, 0, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (4671132545129168072, 6458362403191095587, 'Financial Info', 'Financial', true, true, null, 'oneCMDB:#-4030583075832430887', 'oneCMDB:#-8025526327383936657', null, null, null, -5000743863724034311, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (4692628437018106409, -2823668412504869687, 'MDR Repository', 'mdrRepository', true, false, null, 'oneCMDB:#-8400736094814329789', 'oneCMDB:#8800458200064057403', 'oneCMDB:#-1446026942692189857', -1446026942692189857, null, -4992730422267492319, 1, 1, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (4693608281700802116, -5669522693763744355, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, 1961996016055583260, 1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (4702829930136623391, 1454979986654387558, 'OS Family', 'Family', false, true, null, 'xs:string', null, 'Windows', null, null, -389893205101279185, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (4710651059023862569, 5637898351939638534, 'Version', 'Version', false, false, null, 'xs:string', null, 'SP2', null, null, -4632697620056224887, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (4718542680405180205, -5669522693763744355, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, -30076058648415763, 1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (4726126086209240491, -5591169885085062245, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-6502872628718390337', null, null, -8178921955682868426, 1, 1, '2016-12-28 16:01:53', '2016-12-28 16:01:53');
INSERT INTO onecmdb.t_attribute VALUES (4729831222339077249, -5788035442324627072, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'people', null, null, -2521001890385936111, 1, 0, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (4751886643719871334, -1524543709740163214, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-38466446972918069', null, null, -6115533275151606484, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (4756790927934492691, -3209312745176596290, 'Financial Info', 'Financial', true, false, null, 'oneCMDB:#-4030583075832430887', 'oneCMDB:#-8025526327383936657', 'oneCMDB:#937840216150955399', 937840216150955399, null, -306753241820469847, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (4757962046465314733, -1040856819005843342, null, 'use', false, true, 'The template this nagios config entry should derived from.', 'xs:string', null, null, null, null, 8986099038471647984, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (4759258506170105835, -6519216150282687063, 'Status', 'Status', true, false, null, 'oneCMDB:#41965733952263877', 'oneCMDB:#-8025526327383936657', 'oneCMDB:#-6115533275151606484', -6115533275151606484, null, -38466446972918069, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (4761874127924374656, -3085499285560338061, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'asset', null, null, -3555672197290052160, 1, 0, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (4772056831735344062, -3339348614286452107, null, 'icon', false, true, 'Filename (no file extension) of icon image.', 'xs:string', null, 'ci', null, null, -3885642522584708287, 1, 0, '2016-12-28 16:01:48', '2016-12-28 16:01:48');
INSERT INTO onecmdb.t_attribute VALUES (4786844892408431952, 5898472032975421275, 'Maintenance Fee (USD/Year)', 'Maintenance_Fee', false, false, null, 'xs:integer', null, '500', 500, null, -4622793531067663618, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (4798662163177912684, 4646922231658548033, null, 'useName', false, true, 'If the instance should include it''s name. Eq if this instance is used by another instance.', 'xs:boolean', null, null, null, null, -6108598720877681394, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (4803140375727888022, null, null, 'propagateValueChangeToInstances', false, true, null, 'xs:boolean', null, 'false', null, null, 393805027739339455, 1, 1, '2016-12-27 17:05:11', '2016-12-27 17:05:11');
INSERT INTO onecmdb.t_attribute VALUES (4804824971481914461, 3625024767369706904, 'Installed On', 'InstalledOn', true, true, null, 'oneCMDB:#-1168493350923132665', 'oneCMDB:#4825510563751653831', null, null, null, 1769375665960405126, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (4810548380957376497, null, null, 'email', false, true, 'This directive is used to define an email address for the contact. Depending on how you configure your notification commands, it can be used to send out an alert email to the contact. Under the right circumstances, the $CONTACTEMAIL$ macro will contain this value.', 'xs:string', null, null, null, null, 7535307617655623766, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (4825640834499321714, 9057925470585307046, 'Target', 'target', true, true, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, null, null, null, 3296778330507920481, 1, 1, '2016-12-27 17:05:09', '2016-12-27 17:05:09');
INSERT INTO onecmdb.t_attribute VALUES (4833362647988136797, -5591169885085062245, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#2970960574384196618', null, null, -3802662887141480551, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (4844753175698833355, -605019068309621708, 'Uses', 'Uses', true, true, null, 'oneCMDB:#7491575733809579230', 'oneCMDB:#7815034950157158561', null, null, null, -5998842903881319824, -1, 0, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (4845948616038706182, -1384972036430889192, 'Program', 'program', false, false, null, 'xs:string', null, 'bin/upload', null, null, -4992730422267492319, 1, 1, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (4853179655752195035, -1524543709740163214, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-5055663519884480021', null, null, 2725616338268238790, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (4854439747536234012, null, null, 'event_handler_arg', false, true, 'Arguments to the event handler command.', 'xs:string', null, null, null, null, 8986099038471647984, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (4854779671139080690, -1524543709740163214, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#8451682648722222209', null, null, 686689813511615026, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (4862093980925313675, 5925897059725638846, 'Name', 'name', false, true, null, 'xs:string', null, null, null, null, -4090127195608060880, 1, 1, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (4869468365480249401, null, null, 'register', false, true, 'If this entry should be an instances and a template.', 'xs:string', null, null, null, null, 8896701847700868898, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (4877180041048501655, -8087070549377169868, 'Name', 'Name', false, true, null, 'xs:string', null, 'Switch', null, null, -239896225795807576, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (4877391289699304185, -3339348614286452107, null, 'icon', false, true, 'Filename (no file extension) of icon image.', 'xs:string', null, 'ci', null, null, -2437713139919564933, 1, 0, '2016-12-28 16:01:48', '2016-12-28 16:01:48');
INSERT INTO onecmdb.t_attribute VALUES (4881209518460112895, -4037773816682465299, 'Installed On', 'InstalledOn', true, true, null, 'oneCMDB:#-1168493350923132665', 'oneCMDB:#4825510563751653831', null, null, null, -1727366760233341791, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (4883313454013721512, -1524543709740163214, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#8385099514641563517', null, null, 287738359630000541, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (4905113550295563344, 1989236464475992561, 'Financial Info', 'Financial', true, true, null, 'oneCMDB:#-4030583075832430887', 'oneCMDB:#-8025526327383936657', null, null, null, -5998842903881319824, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (4906264179141996664, null, null, 'high_flap_threshold', false, true, 'This directive is used to specify the high state change threshold used in flap detection for this service. More information on flap detection can be found here. If you set this directive to a value of 0, the program-wide value specified by the high_service_flap_threshold directive will be used.', 'xs:integer', null, null, null, null, 8986099038471647984, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (4906598316379482616, -7868151093536211927, 'IPv4 Address', 'IPAddress', false, false, null, 'xs:string', null, '172.16.17.32', null, null, 5448442896062760526, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (4916807079664985452, -5012192948753502156, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-6365967536967575940', null, null, 7738141344057591836, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (4917553370040696144, null, 'Entries', 'files', false, true, null, 'xs:string', null, null, null, null, 2386299380460541961, -1, 0, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (4917661887169261478, -5856262485962582671, 'Status', 'status', false, false, null, 'xs:string', null, 'COMMITTED', null, null, 4675968942250705277, 1, 1, '2016-12-28 16:02:05', '2016-12-28 16:02:05');
INSERT INTO onecmdb.t_attribute VALUES (4917890325732062354, null, null, 'first_notification_delay', false, true, 'This directive is used to define the number of "time units" to wait before sending out the first problem notification when this service enters a non-OK state. Unless you’ve changed the interval_length directive from the default value of 60, this number will mean minutes. If you set this value to 0, Nagios will start sending out notifications immediately.', 'xs:integer', null, null, null, null, 8986099038471647984, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (4918410627726365673, -1303877515446836590, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-4856766876697112377', null, null, -6594416363670802186, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (4938235785368350604, -2137477611325295485, 'Serial Number', 'SerialNumber', false, true, null, 'xs:string', null, null, null, null, 1325117208637117274, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (4951914564054183055, 2338142333132801027, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#1198750186879466999', null, null, 5553546200893327886, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (4956312134263907643, 2684607629046987153, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, 2763697394706545839, 1, 0, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (4974349182601989058, -5920425642647881346, 'Name', 'Name', false, false, null, 'xs:string', null, 'The Internet', null, null, -483907744355040058, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (4977409465935819301, 2684607629046987153, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, 2981264946819102869, 1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (4989565624506840822, -6412811648088578427, 'Version', 'Version', false, true, null, 'xs:string', null, '5', null, null, 5676046625265852474, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (4999753457184240798, -6217223020108945296, 'Auto Commit', 'autoCommit', false, false, null, 'xs:boolean', null, null, null, null, -8031090386881226833, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (5007376880422404548, 4869468365480249401, null, 'register', false, true, 'If this entry should be an instances and a template.', 'xs:string', null, null, null, null, 739521429005320541, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (5030628544872344290, -453502530732482387, 'Name', 'name', false, true, null, 'xs:string', null, null, null, null, 4003664281832297273, 1, 1, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (5038670904653705148, -5669522693763744355, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, 6690197867896386800, 1, 0, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (5046819267759304502, -3979711827897002409, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-4632697620056224887', null, null, 5123540782477111460, 1, 1, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (5061631691471442121, -5591169885085062245, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-7761184485249285917', null, null, -6975859289253992566, 1, 1, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (5066697481096409951, -1201591218872166485, 'Web Address', 'Web_Address', false, false, null, 'xs:anyURI', null, 'http://www.compcomp.com', null, null, -3468993384790064691, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (5068063210582901938, 5648763990242826958, null, 'objectType', false, true, 'The object definition name.', 'xs:string', null, null, null, null, 1890256877210801519, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (5072114153835889986, -5012192948753502156, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-4240101805785438545', null, null, 3440327906006223384, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (5083101673018159801, 2684607629046987153, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, 7514974890842026102, 1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (5084992204123984736, 4646922231658548033, null, 'useName', false, true, 'If the instance should include it''s name. Eq if this instance is used by another instance.', 'xs:boolean', null, null, null, null, -8312690835136204981, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (5112827944007636586, 2684014330841366898, null, 'icon', false, true, 'Filename (no file extension) of icon image.', 'xs:string', null, 'job', null, null, 6408126366344506386, 1, 0, '2016-12-27 17:05:12', '2016-12-27 17:05:12');
INSERT INTO onecmdb.t_attribute VALUES (5116532457233248935, -6150345077072260260, 'IPv6 Address', 'IPv6Address', false, false, null, 'xs:string', null, null, null, null, -6624236066440953660, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (5118805484892050417, 5342212342693555035, 'Name', 'Name', false, false, null, 'xs:string', null, 'MS Office', null, null, -7315267361872023940, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (5130524643391178128, -2556085342287376074, null, 'icon', false, true, 'Filename (no file extension) of icon image.', 'xs:string', null, 'hdd', null, null, 3177618163676867203, 1, 0, '2016-12-28 16:01:48', '2016-12-28 16:01:48');
INSERT INTO onecmdb.t_attribute VALUES (5138381170775142737, -5591169885085062245, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#5601229157724855285', null, null, -6648195978214943238, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (5142714165771999797, 7928718072314921126, 'Maintenance Info', 'Maintenance', true, false, null, 'oneCMDB:#7154244997109246053', 'oneCMDB:#-8025526327383936657', 'oneCMDB:#-4640679884142593412', -4640679884142593412, null, -38466446972918069, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (5163950997890801321, 7408724948072457504, 'Status', 'Status', true, false, null, 'oneCMDB:#41965733952263877', 'oneCMDB:#-8025526327383936657', 'oneCMDB:#4544942910497465063', 4544942910497465063, null, 5448442896062760526, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (5172935148485730845, 9060213008561656592, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-38466446972918069', null, null, 1204720086284505437, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (5176239975087752642, 2472277896376169463, null, 'icon', false, true, 'Filename (no file extension) of icon image.', 'xs:string', null, null, null, null, 7013626182509928042, 1, 0, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (5177353970065276222, -5584557892262552640, 'Instance', 'instance', false, true, null, 'xs:string', null, null, null, null, 7013626182509928042, 1, 1, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (5183702922341079055, -6866015795909367857, 'Financial Info', 'Financials', true, true, null, 'oneCMDB:#-4030583075832430887', 'oneCMDB:#-8025526327383936657', null, null, null, 3177618163676867203, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (5189378419769590314, null, null, 'active_checks_enabled', false, true, 'This directive is used to determine whether or not active checks (either regularly scheduled or on-demand) of this host are enabled. Values: 0 = disable active host checks, 1 = enable active host checks.', 'xs:integer', null, null, null, null, -6108598720877681394, 1, 1, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (5193332068160980857, -3247552238993862360, 'Installed On', 'InstalledOn', true, false, null, 'oneCMDB:#-1168493350923132665', 'oneCMDB:#4825510563751653831', null, null, null, -7171807647212474252, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (5195458209867422225, -7670637430424212269, 'IPv4 Address', 'IPAddress', false, false, null, 'xs:string', null, '172.16.58.3', null, null, 2763197975055376610, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (5196112076458852550, null, 'Name', 'name', false, true, null, 'xs:string', null, null, null, null, 4845305278725074851, 1, 1, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (5196688125265240577, -6868818845750700134, 'Uses', 'Uses', true, false, null, 'oneCMDB:#-4678966175358915668', 'oneCMDB:#7815034950157158561', 'oneCMDB:#-5918718310695670706', -5918718310695670706, null, -6365967536967575940, -1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (5198014395350184957, null, null, 'flap_detection_enabled', false, true, 'This directive is used to determine whether or not flap detection is enabled for this host. More information on flap detection can be found here. Values: 0 = disable host flap detection, 1 = enable host flap detection.', 'xs:integer', null, null, null, null, -6108598720877681394, 1, 1, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (5198045368415528791, 7954947042116584500, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'package', null, null, -3883718588737995702, 1, 0, '2016-12-28 16:01:48', '2016-12-28 16:01:48');
INSERT INTO onecmdb.t_attribute VALUES (5198892593754561875, -5669522693763744355, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, -4026035656368473238, 1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (5200342747512918391, 3311387895811525110, 'DSL Entry', 'DSLEntry', false, false, null, 'xs:anyURI', null, 'http://www.onecmdb.org/docs/BasicDatacenter/DSL/Dummy_OS_Package.txt', null, null, 2029949154248172420, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (5205590603086573848, -4405087016263014431, 'Name', 'name', false, true, null, 'xs:string', null, null, null, null, -9088578071070289812, 1, 1, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (5208703878386563647, 8345497989318023921, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, -4877615434796502236, 1, 0, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (5221763195424725731, -2642089993832413257, 'Organization', 'Organisation', true, false, null, 'oneCMDB:#5433965781192492423', 'oneCMDB:#-3863377389438174788', 'oneCMDB:#7140821888130541650', 7140821888130541650, null, 8472139606850256924, 1, 1, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (5225733988042260434, -7000142874215220141, 'Financial Info', 'Financial', true, false, null, 'oneCMDB:#-4030583075832430887', 'oneCMDB:#-8025526327383936657', 'oneCMDB:#-5245813709478202318', -5245813709478202318, null, 2029949154248172420, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (5247788712447627712, -5949051087024441970, 'Added objects', 'added', false, false, null, 'xs:string', null, '325', null, null, 4675968942250705277, 1, 1, '2016-12-28 16:02:05', '2016-12-28 16:02:05');
INSERT INTO onecmdb.t_attribute VALUES (5251918993410906171, 1917979139818517146, 'Name', 'Name', false, false, null, 'xs:string', null, 'Single Sign On', null, null, -8037939061718373803, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (5255198880180278929, 7905166649791594630, 'MAC Address', 'MAC_Address', false, false, null, 'xs:string', null, '78785678', null, null, 6936928594960133541, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (5261227674070465369, -6591540401442375548, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, -1446026942692189857, 1, 0, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (5270903406036653154, -7913358530174141021, null, 'process', true, true, null, 'oneCMDB:#1634733290972246121', 'oneCMDB:#8916998895021029152', null, null, null, 5029444671295990319, 1, 1, '2016-12-27 17:05:12', '2016-12-27 17:05:12');
INSERT INTO onecmdb.t_attribute VALUES (5284382798959058089, 5540694408798465315, 'Network', 'Network', true, false, null, 'oneCMDB:#-838366469867279794', 'oneCMDB:#-3863377389438174788', 'oneCMDB:#2763697394706545839', 2763697394706545839, null, 2763197975055376610, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (5287528566013169767, -7874494863476418912, 'Telephone', 'Telephone', false, false, null, 'xs:string', null, '(234) 200 4444', null, null, -4582254474109262389, -1, 0, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (5288024294818121955, -1524543709740163214, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#8067161067550301549', null, null, 7319008446995797318, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (5292501687044365868, -6150345077072260260, 'IPv6 Address', 'IPv6Address', false, false, null, 'xs:string', null, null, null, null, -38466446972918069, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (5307570447989209655, 8473318718519197175, null, 'icon', false, true, 'Filename (no file extension) of icon image.', 'xs:string', null, null, null, null, -3523558968467060308, 1, 0, '2016-12-27 17:05:10', '2016-12-27 17:05:10');
INSERT INTO onecmdb.t_attribute VALUES (5316283093875679593, 454245518513090804, 'Used By', 'UsedBy', true, false, null, 'oneCMDB:#5433965781192492423', 'oneCMDB:#-8025526327383936657', 'oneCMDB:#7293023128106825054', 7293023128106825054, null, -4856766876697112377, -1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (5318861203379096095, -5669522693763744355, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, 937840216150955399, 1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (5321824681736744167, 6861398420944567713, null, 'user', false, true, null, 'xs:string', null, null, null, null, 5029444671295990319, 1, 1, '2016-12-27 17:05:12', '2016-12-27 17:05:12');
INSERT INTO onecmdb.t_attribute VALUES (5333164407087264463, 8079969694138493463, 'Financial Info', 'Financial', true, true, null, 'oneCMDB:#-4030583075832430887', 'oneCMDB:#-8025526327383936657', null, null, null, -5058684262027826612, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (5333735227539169075, -8603102978338421612, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#5438961292355445872', null, null, 4578950590119242594, 1, 1, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (5342212342693555035, 3694039516072425686, 'Name', 'Name', false, true, null, 'xs:string', null, 'MS Office', null, null, -3957867024269978762, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (5343947195818532471, 2338142333132801027, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#2763197975055376610', null, null, 2763697394706545839, 1, 1, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (5354873452518973426, 4938235785368350604, 'Serial Number', 'SerialNumber', false, true, null, 'xs:string', null, null, null, null, 4774848979350389203, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (5362850920287869485, -5669522693763744355, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, 5180604568546827291, 1, 0, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (5374338986369601834, 167682503217310041, 'Purchase Date', 'Purchase_Date', false, false, null, 'xs:date', null, '2007-06-01', null, '2007-06-01 12:00:01', 7611584779566472356, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (5379292639416852024, -5669522693763744355, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, -3802662887141480551, 1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (5382203455684858037, -5591169885085062245, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-4622793531067663618', null, null, 7644587526696132904, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (5392371109848818439, 6514396784575161283, 'Financial Info', 'Financials', true, true, null, 'oneCMDB:#-4030583075832430887', 'oneCMDB:#-8025526327383936657', null, null, null, 5068478429873757722, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (5401499533746410214, null, null, 'contacts', true, true, 'This is a list of the short names of the contacts that should be notified whenever there are problems (or recoveries) with this service. Multiple contacts should be separated by commas. Useful if you want notifications to go to just a few people and don’t want to configure contact groups. You must specify at least one contact or contact group in each service definition.', 'oneCMDB:#7535307617655623766', 'oneCMDB:#-3863377389438174788', null, null, null, 8986099038471647984, -1, 0, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (5406974168198697457, -2207020015714012191, 'Network', 'Network', true, false, null, 'oneCMDB:#-838366469867279794', 'oneCMDB:#-3863377389438174788', 'oneCMDB:#-6374413608496105683', -6374413608496105683, null, 5448442896062760526, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (5412358994864208580, 4142103790651050121, 'License Key', 'LicenseKey', false, false, null, 'xs:string', null, 'MSOF-6767-7788-WERT', null, null, -7550256766207092122, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (5423879112125235981, -1524543709740163214, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#6936928594960133541', null, null, -1426329249400971207, 1, 1, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (5465483414909053979, null, null, 'propagateDisplayName', false, true, null, 'xs:boolean', null, 'true', null, null, 831375279177628912, 1, 1, '2016-12-27 17:05:11', '2016-12-27 17:05:11');
INSERT INTO onecmdb.t_attribute VALUES (5467059624952792312, 8794022947635014930, 'Connected To', 'ConnectedTo', true, false, null, 'oneCMDB:#1325117208637117274', 'oneCMDB:#-2725368316691492923', 'oneCMDB:#-8483652034935357882', -8483652034935357882, null, 2763197975055376610, -1, 0, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (5473050282909808980, 6514396784575161283, 'Financial Info', 'Financials', true, true, null, 'oneCMDB:#-4030583075832430887', 'oneCMDB:#-8025526327383936657', null, null, null, 2522367028350860395, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (5474489490242107938, null, null, 'freshness_threshold', false, true, 'This directive is used to specify the freshness threshold (in seconds) for this host. If you set this directive to a value of 0, Nagios will determine a freshness threshold to use automatically.', 'xs:integer', null, null, null, null, -6108598720877681394, 1, 1, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (5479178470052634628, null, null, 'allowTypeChange', false, true, null, 'xs:boolean', null, 'false', null, null, 393805027739339455, 1, 1, '2016-12-27 17:05:11', '2016-12-27 17:05:11');
INSERT INTO onecmdb.t_attribute VALUES (5488164767671116836, 8794022947635014930, 'Connected To', 'ConnectedTo', true, true, null, 'oneCMDB:#1325117208637117274', 'oneCMDB:#-2725368316691492923', null, null, null, 4774848979350389203, -1, 0, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (5540694408798465315, -4832412014878157924, 'Network', 'Network', true, true, null, 'oneCMDB:#-838366469867279794', 'oneCMDB:#-3863377389438174788', null, null, null, 5575307939015290823, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (5548036626662464348, -1524543709740163214, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#5872623185044658259', null, null, -217170841733054362, 1, 1, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (5556300037519246324, -5591169885085062245, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#6109272791907384000', null, null, 9173780378093541616, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (5565164310755031130, -1524543709740163214, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#1515202162886390642', null, null, -3019506684664744401, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (5566657406018313288, -7758164584463198686, 'License Key', 'LicenseKey', false, true, null, 'xs:string', null, null, null, null, 3225491047712550288, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (5581688629852995295, -2114353355444033311, 'Models', 'modelFiles', false, false, null, 'xs:string', null, '/MDR/Models/models/Basic_Model/Basic_Model_Templates.xml', null, null, -4992730422267492319, -1, 0, '2016-12-28 16:02:42', '2016-12-28 16:02:42');
INSERT INTO onecmdb.t_attribute VALUES (5588012274989344123, null, null, 'hostgroups', true, true, 'This directive is used to identify the short name(s) of the hostgroup(s) that the host belongs to. Multiple hostgroups should be separated by commas. This directive may be used as an alternative to (or in addition to) using the members directive in hostgroup definitions.', 'oneCMDB:#-4154185814876458058', 'oneCMDB:#-3863377389438174788', null, null, null, -6108598720877681394, -1, 0, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (5593139527341217829, -1524543709740163214, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#6936928594960133541', null, null, 5159308085069907466, 1, 1, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (5593942247138758354, -2439390704264714729, null, 'icon', false, true, 'Filename (no file extension) of icon image.', 'xs:string', null, 'mdrConfig', null, null, -8128493564763208677, 1, 0, '2016-12-28 15:59:31', '2016-12-28 15:59:31');
INSERT INTO onecmdb.t_attribute VALUES (5597075838499731769, -3676834276060185846, null, 'icon', false, true, 'Filename (no file extension) of icon image.', 'xs:string', null, 'mdrHistory', null, null, 2386299380460541961, 1, 0, '2016-12-28 15:59:31', '2016-12-28 15:59:31');
INSERT INTO onecmdb.t_attribute VALUES (5597442588653193952, 5911421171828430166, 'MDR Repository', 'mdrRepository', true, false, null, 'oneCMDB:#-8400736094814329789', 'oneCMDB:#8800458200064057403', 'oneCMDB:#9205521997055101409', 9205521997055101409, null, -4474468114987171564, 1, 1, '2016-12-28 16:01:48', '2016-12-28 16:01:48');
INSERT INTO onecmdb.t_attribute VALUES (5606436000360905214, -5012192948753502156, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-8179192753960381879', null, null, 4694845469050842936, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (5606923288178703592, 7928718072314921126, 'Maintenance Info', 'Maintenance', true, false, null, 'oneCMDB:#7154244997109246053', 'oneCMDB:#-8025526327383936657', null, null, null, 8526533317541349136, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (5623362712110535986, 3858978566748600360, null, 'icon', false, true, 'Filename (no file extension) of icon image.', 'xs:string', null, 'application', null, null, -5165488382750819713, 1, 0, '2016-12-28 16:01:48', '2016-12-28 16:01:48');
INSERT INTO onecmdb.t_attribute VALUES (5628945758864973248, -5591169885085062245, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#7611584779566472356', null, null, -3960655638364740171, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (5630055458575255767, 2684607629046987153, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, 1130587008037623531, 1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (5637898351939638534, -4502574313825929703, 'Version', 'Version', false, true, null, 'xs:string', null, 'SP2', null, null, 4727188545314013933, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (5638173532931755292, -1524543709740163214, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#5448442896062760526', null, null, 4584492750138991208, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (5648763990242826958, null, null, 'objectType', false, true, 'The object definition name.', 'xs:string', null, null, null, null, 8896701847700868898, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (5652603507726960391, -5669522693763744355, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, -6648195978214943238, 1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (5656534363979020308, -3762283678602573282, 'Maintenance Info', 'Maintenance', true, false, null, 'oneCMDB:#7154244997109246053', 'oneCMDB:#-8025526327383936657', 'oneCMDB:#-4056084696221288780', -4056084696221288780, null, 5612781772166901244, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (5667245532070829935, -3339348614286452107, null, 'icon', false, true, 'Filename (no file extension) of icon image.', 'xs:string', null, 'ci', null, null, -4154185814876458058, 1, 0, '2016-12-28 16:01:48', '2016-12-28 16:01:48');
INSERT INTO onecmdb.t_attribute VALUES (5667501390024441132, -8791954955986718586, 'License Key', 'LicenseKey', false, false, null, 'xs:string', null, 'N.A', null, null, 3872536235728130109, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (5704005442608146754, 5729956576303207759, 'IPv4 Address', 'IPAddress', false, true, null, 'xs:string', null, null, null, null, 2522367028350860395, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (5714921165382651417, 1281653094883169295, 'Financial Info', 'Financial', true, false, null, 'oneCMDB:#-4030583075832430887', 'oneCMDB:#-8025526327383936657', 'oneCMDB:#-4088187284430895045', -4088187284430895045, null, 5872623185044658259, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (5728493145918326866, -4972344921978241811, 'Version', 'Version', false, false, null, 'xs:string', null, '3.4', null, null, 3872536235728130109, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (5729956576303207759, null, 'IPv4 Address', 'IPAddress', false, true, null, 'xs:string', null, null, null, null, 1325117208637117274, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (5731700995379192024, 3521168720769405274, null, 'name', false, true, 'The template name referenced with the use attribute.', 'xs:string', null, null, null, null, 1837107117169913746, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (5732699708061790012, -8902468049398991901, 'MAC Address', 'MAC_Address', false, true, null, 'xs:string', null, null, null, null, 9059693167497789202, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (5736076246238753958, -5584557892262552640, 'Instance', 'instance', false, true, null, 'xs:string', null, null, null, null, -7445925636082603207, 1, 1, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (5745939812272705560, -8144224673712551298, 'Name', 'Name', false, true, null, 'xs:string', null, 'Printer', null, null, 5757536082740955330, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (5750539756438757727, 2936909531636349425, 'Service', 'Service', true, true, null, 'oneCMDB:#-4678966175358915668', 'oneCMDB:#-3863377389438174788', null, null, null, 2305821143961843722, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (5766526367109125895, 9100241127498511091, 'Service', 'Service', true, false, null, 'oneCMDB:#-4678966175358915668', 'oneCMDB:#-3863377389438174788', 'oneCMDB:#7738141344057591836', 7738141344057591836, null, 5448442896062760526, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (5783848573729691575, 8736448217539907239, 'OS Family', 'Family', false, true, null, 'xs:string', null, 'Linux', null, null, -1951039734141517216, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (5784658451033870015, null, null, 'servicegroup_name', false, true, 'This directive is used to define a short name used to identify the service group.', 'xs:string', null, null, null, null, -1912794354431148047, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (5798348364345414232, 6458362403191095587, 'Financial Info', 'Financial', true, false, null, 'oneCMDB:#-4030583075832430887', 'oneCMDB:#-8025526327383936657', 'oneCMDB:#7319008446995797318', 7319008446995797318, null, 8067161067550301549, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (5801529505078021933, null, null, 'allowNewAttributes', false, true, null, 'xs:boolean', null, 'true', null, null, 831375279177628912, 1, 1, '2016-12-27 17:05:11', '2016-12-27 17:05:11');
INSERT INTO onecmdb.t_attribute VALUES (5808623994111457443, -5669522693763744355, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, 5866051033940467520, 1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (5809252746280111296, null, 'Lower Case', 'lowerCase', false, true, null, 'xs:boolean', null, 'true', null, null, 3854928064624729302, 1, 1, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (5818043734567637851, -1524543709740163214, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#1515202162886390642', null, null, -4141639034389317254, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (5828980606162460269, -2344575093696141095, 'Uses', 'Uses', true, true, null, 'oneCMDB:#7491575733809579230', 'oneCMDB:#7815034950157158561', null, null, null, 3865960124110820148, -1, 0, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (5829332994641049764, -8713525033916958150, 'Service', 'Service', true, true, null, 'oneCMDB:#-4678966175358915668', 'oneCMDB:#-3863377389438174788', null, null, null, 4774848979350389203, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (5847016065746691932, 4938235785368350604, 'Serial Number', 'SerialNumber', false, true, null, 'xs:string', null, null, null, null, 5068478429873757722, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (5852287695950349761, 3216849197076107229, 'Maintenance Info', 'Maintenance', true, true, null, 'oneCMDB:#7154244997109246053', 'oneCMDB:#-8025526327383936657', null, null, null, -239896225795807576, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (5856052269720775056, -7646176718298868076, 'Resource URL', 'url', false, true, null, 'xs:anyURI', null, null, null, null, 7676013053083698339, 1, 1, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (5862739503674155304, null, null, 'max_check_attempts', false, true, 'This directive is used to define the number of times that Nagios will retry the host check command if it returns any state other than an OK state. Setting this value to 1 will cause Nagios to generate an alert without retrying the host check again. Note: If you do not want to check the status of the host, you must still set this to a minimum value of 1. To bypass the host check, just leave the check_command option blank.', 'xs:integer', null, null, null, null, -6108598720877681394, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (5869979566419134585, -7480885693105589137, 'Name', 'Name', false, true, null, 'xs:string', null, 'J2EE Server', null, null, -5165488382750819713, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (5871234899579542630, 2338142333132801027, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#5612781772166901244', null, null, 4694845469050842936, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (5898472032975421275, null, 'Maintenance Fee (USD/Year)', 'Maintenance_Fee', false, true, null, 'xs:integer', null, null, null, null, -4030583075832430887, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (5906898248077619647, 8311479515767203985, 'Purchase Prise (USD)', 'Purchase_Prise', false, false, null, 'xs:integer', null, '5000', 5000, null, -4650663127884378612, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (5909029290285345338, -5669522693763744355, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, -6012107529363071363, 1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (5911421171828430166, 6287513669983464096, 'MDR Repository', 'mdrRepository', true, true, null, 'oneCMDB:#-8400736094814329789', 'oneCMDB:#8800458200064057403', null, null, null, -7382422160449654057, 1, 1, '2016-12-28 16:01:48', '2016-12-28 16:01:48');
INSERT INTO onecmdb.t_attribute VALUES (5913650482895657417, null, null, 'alias', false, true, 'This directive is used to define a longer name or description for the contact. Under the rights circumstances, the $CONTACTALIAS$ macro will contain this value. If not specified, the contact_name will be used as the alias.', 'xs:string', null, null, null, null, 7535307617655623766, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (5925897059725638846, 5196112076458852550, 'Name', 'name', false, true, null, 'xs:string', null, null, null, null, -6232223556065183933, 1, 1, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (5936884595895669068, -7478637079806485791, 'Name', 'Name', false, false, null, 'xs:string', null, 'Dummy Customer, Inc.', null, null, 3770822044337348543, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (5945915007558759411, 8083508627834560426, 'Name', 'Name', false, true, null, 'xs:string', null, 'Location', null, null, -3200591116467062442, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (5965455700084668248, 1743396138401171271, 'Java Class Name', 'javaClass', false, true, null, 'xs:string', null, 'org.onecmdb.core.utils.transform.xml.XPathInstanceSelector', null, null, 7013626182509928042, 1, 1, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (5967162787204902127, 2338142333132801027, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#5612781772166901244', null, null, 8664931160192194764, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (5977817177652710145, null, 'Default Role', 'defaultRole', false, true, null, 'xs:string', null, null, null, null, -6252396672999998809, 1, 1, '2016-12-27 17:05:09', '2016-12-27 17:05:09');
INSERT INTO onecmdb.t_attribute VALUES (6004188503191664892, 2159404570844631604, 'Location', 'Location', true, false, null, 'oneCMDB:#-3200591116467062442', 'oneCMDB:#-8025526327383936657', 'oneCMDB:#-4310737394725159923', -4310737394725159923, null, 6936928594960133541, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (6020594367058748227, 2684607629046987153, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, 5553546200893327886, 1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (6035337425836414461, 3625024767369706904, 'Installed On', 'InstalledOn', true, true, null, 'oneCMDB:#-1168493350923132665', 'oneCMDB:#4825510563751653831', null, null, null, -5998842903881319824, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (6043860106898612896, 2338142333132801027, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#3872536235728130109', null, null, 3440327906006223384, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (6047266066459114173, -3339348614286452107, null, 'icon', false, true, 'Filename (no file extension) of icon image.', 'xs:string', null, 'ci', null, null, 5505300793486821851, 1, 0, '2016-12-28 16:01:48', '2016-12-28 16:01:48');
INSERT INTO onecmdb.t_attribute VALUES (6051985294386845258, -4223380828570296426, 'License Key', 'LicenseKey', false, true, null, 'xs:string', null, 'MSHJ-6543-6789', null, null, 72883027723141449, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (6069068865552915535, -5620315327715502272, 'Source', 'source', true, true, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, null, null, null, 8916998895021029152, 1, 1, '2016-12-27 17:05:12', '2016-12-27 17:05:12');
INSERT INTO onecmdb.t_attribute VALUES (6072122823368235635, -5591169885085062245, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#2376092523771938845', null, null, -1958952144243754930, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (6074095696674557804, 3521168720769405274, null, 'name', false, true, 'The template name referenced with the use attribute.', 'xs:string', null, null, null, null, -4154185814876458058, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (6074329685353478180, 6269276087815977191, 'Name', 'Name', false, false, null, 'xs:string', null, 'MS Exchange', null, null, -7171807647212474252, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (6109964742949431649, null, 'Service', 'Service', true, true, null, 'oneCMDB:#-4678966175358915668', 'oneCMDB:#-3863377389438174788', null, null, null, 3938641235467758932, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (6110847678672928315, -147364063196792403, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'maintenance', null, null, -8931481580316879494, 1, 0, '2016-12-28 16:01:48', '2016-12-28 16:01:48');
INSERT INTO onecmdb.t_attribute VALUES (6131938606768009548, null, null, 'icon_image_alt', false, true, 'This variable is used to define an optional string that is used in the ALT tag of the image specified by the ''icon_image'' argument. The ALT tag is used in the status, extended information and statusmap CGIs.', 'xs:string', null, null, null, null, 8986099038471647984, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (6144536893644012713, 4153708730521655734, 'Maintenance Agreement', 'Maintenance_Agreement', false, false, null, 'xs:anyURI', null, 'http://www.onecmdb.org/docs/BasicDatacenter/docs/Dummy_Maintenance_Agreement.pdf', null, null, 2970960574384196618, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (6146017424008324110, -422531685061586967, 'Name', 'Name', false, true, null, 'xs:string', null, 'Web Application', null, null, -6599040348753944674, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (6146548795824347098, null, null, 'parents', true, true, 'This directive is used to define a comma-delimited list of short names of the "parent" hosts for this particular host. Parent hosts are typically routers, switches, firewalls, etc. that lie between the monitoring host and a remote hosts. A router, switch, etc. which is closest to the remote host is considered to be that host’s "parent". Read the "Determining Status and Reachability of Network Hosts" document located here for more information. If this host is on the same network segment as the host doing the monitoring (without any intermediate routers, etc.) the host is considered to be on the local network and will not have a parent host. Leave this value blank if the host does not have a parent host (i.e. it is on the same segment as the Nagios host). The order in which you specify parent hosts has no effect on how things are monitored.', 'oneCMDB:#-6108598720877681394', 'oneCMDB:#-3863377389438174788', null, null, null, -6108598720877681394, -1, 0, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (6163771862505953471, -5591169885085062245, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#7611584779566472356', null, null, 587391989376672404, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (6199977729262464164, null, null, 'notification_options', false, true, 'This directive is used to determine when notifications for the service should be sent out. Valid options are a combination of one or more of the following: w = send notifications on a WARNING state, u = send notifications on an UNKNOWN state, c = send notifications on a CRITICAL state, r = send notifications on recoveries (OK state), f = send notifications when the service starts and stops flapping, and s = send notifications when scheduled downtime starts and ends. If you specify n (none) as an option, no service notifications will be sent out. If you do not specify any notification options, Nagios will assume that you want notifications to be sent out for all possible states. Example: If you specify w,r in this field, notifications will only be sent out when the service goes into a WARNING state and when it recovers from a WARNING state.', 'xs:string', null, null, null, null, 8986099038471647984, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (6203073324994108406, -3979711827897002409, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#225437699908619242', null, null, 3209199279906906336, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (6213407871515515859, -2175943913041424956, 'MAC Address', 'MAC_Address', false, false, null, 'xs:string', null, '12341234', null, null, 5612781772166901244, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (6214372566327508711, -1965639156284701649, 'DSL Entry', 'DSLEntry', false, true, null, 'xs:anyURI', null, null, null, null, -5000743863724034311, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (6223308462151492674, 5898472032975421275, 'Maintenance Fee (USD/Year)', 'Maintenance_Fee', false, false, null, 'xs:integer', null, '35', 35, null, -8154505932687141586, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (6234926010160578597, 1469626638838826640, null, 'icon', false, true, 'Filename (no file extension) of icon image.', 'xs:string', null, 'application', null, null, -6599040348753944674, 1, 0, '2016-12-28 16:01:48', '2016-12-28 16:01:48');
INSERT INTO onecmdb.t_attribute VALUES (6237293364249421044, null, 'Enabled', 'enabled', false, true, null, 'xs:boolean', null, 'true', null, null, -6252396672999998809, 1, 1, '2016-12-27 17:05:09', '2016-12-27 17:05:09');
INSERT INTO onecmdb.t_attribute VALUES (6242027122887239178, -1524543709740163214, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-38466446972918069', null, null, 1961996016055583260, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (6247183809150198130, -723952125964968940, 'Financial Info', 'Financials', true, false, null, 'oneCMDB:#-4030583075832430887', 'oneCMDB:#-8025526327383936657', 'oneCMDB:#8607736559096888901', 8607736559096888901, null, 5448442896062760526, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (6256531136611635525, 4063683728257176362, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'package', null, null, 7503285799199789397, 1, 0, '2016-12-28 16:01:48', '2016-12-28 16:01:48');
INSERT INTO onecmdb.t_attribute VALUES (6269276087815977191, -7480885693105589137, 'Name', 'Name', false, true, null, 'xs:string', null, 'MS Exchange', null, null, 3865960124110820148, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (6276366275653037975, -2893801909097519971, 'Financial Info', 'Financials', true, false, null, 'oneCMDB:#-4030583075832430887', 'oneCMDB:#-8025526327383936657', 'oneCMDB:#-7647209654369308926', -7647209654369308926, null, 2763197975055376610, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (6276919938260585959, -8087070549377169868, 'Name', 'Name', false, true, null, 'xs:string', null, 'Computer', null, null, 4774848979350389203, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (6287513669983464096, null, 'MDR Repository', 'mdrRepository', true, true, null, 'oneCMDB:#-8400736094814329789', 'oneCMDB:#8800458200064057403', null, null, null, 3521914687713450939, 1, 1, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (6292955159555848693, -191070276069451799, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'computer', null, null, 5448442896062760526, 1, 0, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (6311465853567542248, null, null, 'notification_options', false, true, 'This directive is used to determine when notifications for the host should be sent out. Valid options are a combination of one or more of the following: d = send notifications on a DOWN state, u = send notifications on an UNREACHABLE state, r = send notifications on recoveries (OK state), f = send notifications when the host starts and stops flapping, and s = send notifications when scheduled downtime starts and ends. If you specify n (none) as an option, no host notifications will be sent out. If you do not specify any notification options, Nagios will assume that you want notifications to be sent out for all possible states. Example: If you specify d,r in this field, notifications will only be sent out when the host goes DOWN and when it recovers from a DOWN state.', 'xs:string', null, null, null, null, -6108598720877681394, 1, 1, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (6318976035968304785, 4989565624506840822, 'Version', 'Version', false, false, null, 'xs:string', null, '5', null, null, 2029949154248172420, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (6319071884189180505, null, 'Java Class Name', 'javaClass', false, true, null, 'xs:string', null, null, null, null, -2578922388306544370, 1, 1, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (6319535889289999725, null, null, 'start', false, true, null, 'xs:string', null, null, null, null, 1634733290972246121, 1, 1, '2016-12-27 17:05:12', '2016-12-27 17:05:12');
INSERT INTO onecmdb.t_attribute VALUES (6323267896344121105, -8791954955986718586, 'License Key', 'LicenseKey', false, true, null, 'xs:string', null, null, null, null, -8747012735422861621, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (6331469408633135281, 5648763990242826958, null, 'objectType', false, true, 'The object definition name.', 'xs:string', null, 'contactgroup', null, null, 5505300793486821851, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (6332575033572696792, 4869468365480249401, null, 'register', false, true, 'If this entry should be an instances and a template.', 'xs:string', null, null, null, null, 8986099038471647984, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (6339978543186966372, -5122022705383832269, 'Name', 'Name', false, false, null, 'xs:string', null, 'Windows XP', null, null, 5872623185044658259, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (6340240960106662693, -5669522693763744355, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, -5327553007319099378, 1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (6341330971779928717, -5591169885085062245, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#6080430438857183034', null, null, -2832314825335747607, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (6351874845219774184, 9139225598348518079, 'Location', 'Location', true, false, null, 'oneCMDB:#-3200591116467062442', 'oneCMDB:#-8025526327383936657', 'oneCMDB:#-2832314825335747607', -2832314825335747607, null, 5612781772166901244, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (6353112808861710841, 9210594737925533850, null, 'icon', false, true, 'Filename (no file extension) of icon image.', 'xs:string', null, 'network', null, null, -838366469867279794, 1, 0, '2016-12-28 16:01:48', '2016-12-28 16:01:48');
INSERT INTO onecmdb.t_attribute VALUES (6371204189577238409, -2118060411480011372, 'SLA', 'SLA', false, false, null, 'xs:anyURI', null, 'http://www.onecmdb.org/docs/BasicDatacenter/docs/Dummy_Service_Level_Agreement.pdf', null, null, -4240101805785438545, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (6373344507542672021, 3521168720769405274, null, 'name', false, true, 'The template name referenced with the use attribute.', 'xs:string', null, null, null, null, -1912794354431148047, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (6378623902767542525, 2338142333132801027, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#225437699908619242', null, null, -6506605842191301632, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (6383624941797150701, 4171417067138044278, 'Java Class Name', 'javaClass', false, true, null, 'xs:string', null, 'org.onecmdb.core.utils.transform.ComplexAttributeSelector', null, null, -6232223556065183933, 1, 1, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (6393984008595192466, -3979711827897002409, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-306753241820469847', null, null, 6441786424248107013, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (6410701763427785237, -5012192948753502156, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-6553834200975625641', null, null, 1387948091725077155, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (6430546017277716749, 7509599446167191926, 'E-Mail', 'Email', false, false, null, 'xs:string', null, '<EMAIL>', null, null, -6387231193564991043, -1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (6430924064029419702, null, 'Account Expired', 'accountExpired', false, true, null, 'xs:boolean', null, 'false', null, null, -6252396672999998809, 1, 1, '2016-12-27 17:05:09', '2016-12-27 17:05:09');
INSERT INTO onecmdb.t_attribute VALUES (6447814052786682938, 6051985294386845258, 'License Key', 'LicenseKey', false, false, null, 'xs:string', null, 'MSHJ-6543-6789', null, null, -306753241820469847, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (6454225927226446714, -1524543709740163214, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#2029949154248172420', null, null, -5245813709478202318, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (6458362403191095587, 1989236464475992561, 'Financial Info', 'Financial', true, true, null, 'oneCMDB:#-4030583075832430887', 'oneCMDB:#-8025526327383936657', null, null, null, 1769375665960405126, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (6460611450068357397, -5591169885085062245, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#1431590659382240388', null, null, 1179499131245420347, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (6474830911160031171, 325373451995316120, 'Uses', 'Uses', true, true, null, 'oneCMDB:#7491575733809579230', 'oneCMDB:#7815034950157158561', null, null, null, -5058684262027826612, -1, 0, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (6476903873214957315, 723425180440006852, 'OS Family', 'Family', false, false, null, 'xs:string', null, 'Windows', null, null, -306753241820469847, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (6476970601437202438, -4933985257082236522, 'Maintenance Info', 'Maintenance', true, true, null, 'oneCMDB:#7154244997109246053', 'oneCMDB:#-8025526327383936657', null, null, null, -1727366760233341791, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (6489324153410357449, 2684014330841366898, null, 'icon', false, true, 'Filename (no file extension) of icon image.', 'xs:string', null, null, null, null, -2578922388306544370, 1, 0, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (6501549689002492973, -5669522693763744355, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, -7382216090039740193, 1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (6507257976015527042, 2335732526978447725, 'Maintenance Info', 'Maintenance', true, false, null, 'oneCMDB:#7154244997109246053', 'oneCMDB:#-8025526327383936657', 'oneCMDB:#3818981860407594996', 3818981860407594996, null, 2763197975055376610, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (6514396784575161283, -7752434477032975254, 'Financial Info', 'Financials', true, true, null, 'oneCMDB:#-4030583075832430887', 'oneCMDB:#-8025526327383936657', null, null, null, 1325117208637117274, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (6521544413614157607, -5156916583652714852, 'Service', 'Service', true, true, null, 'oneCMDB:#-4678966175358915668', 'oneCMDB:#-3863377389438174788', null, null, null, 3177618163676867203, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (6522181977482776671, -711183777322058863, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'desktop', null, null, 2763197975055376610, 1, 0, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (6523206964916051780, -8603102978338421612, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-306753241820469847', null, null, 4819840601125854863, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (6527252350491624385, 8345497989318023921, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, -8483652034935357882, 1, 0, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (6530927823170276637, 2158032505578746876, null, 'Hostname', false, true, null, 'xs:string', null, null, null, null, 5575307939015290823, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (6533209344726112663, -5012192948753502156, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-4856766876697112377', null, null, 1627529348574293596, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (6537135051419784052, -6430347810547129509, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'resource', null, null, -505646845337106548, 1, 0, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (6546049944891515853, 9057919287465543558, 'Status', 'Status', true, true, null, 'oneCMDB:#41965733952263877', 'oneCMDB:#-8025526327383936657', null, null, null, 2522367028350860395, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (6562202501387980519, 2684607629046987153, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, 1145706693256386797, 1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (6566295887423598835, -1524543709740163214, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#1515202162886390642', null, null, -6652782400463517677, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (6569784110107969048, 3694039516072425686, 'Name', 'Name', false, true, null, 'xs:string', null, 'MS Outlook', null, null, 4037843118202851281, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (6575265849188572039, null, null, 'notification_interval', false, true, 'This directive is used to define the number of "time units" to wait before re-notifying a contact that this service is still in a non-OK state. Unless you’ve changed the interval_length directive from the default value of 60, this number will mean minutes. If you set this value to 0, Nagios will not re-notify contacts about problems for this service - only one problem notification will be sent out.', 'xs:integer', null, null, null, null, 8986099038471647984, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (6585619848808336878, null, null, 'parallelize_check', false, true, 'Un documented in Nagios 3.x version.', 'xs:integer', null, null, null, null, 8986099038471647984, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (6590002208360701633, -1524543709740163214, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-8931481580316879494', null, null, -3329331651722637045, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (6604457969372310773, -7874494863476418912, 'Telephone', 'Telephone', false, false, null, 'xs:string', null, '(651) 6677 2345', null, null, -1643976468999782598, -1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (6608419801246351250, 382510000376079623, null, 'icon', false, true, 'Filename (no file extension) of icon image.', 'xs:string', null, 'netcomp', null, null, 5068478429873757722, 1, 0, '2016-12-28 16:01:48', '2016-12-28 16:01:48');
INSERT INTO onecmdb.t_attribute VALUES (6613717452200614136, 8322750748400999276, 'MAC Address', 'MAC_Address', false, true, null, 'xs:string', null, null, null, null, 6971205699962462965, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (6619068036710243661, 4804824971481914461, 'Installed On', 'InstalledOn', true, false, null, 'oneCMDB:#-1168493350923132665', 'oneCMDB:#4825510563751653831', 'oneCMDB:#-4277694784537643537', -4277694784537643537, null, 8385099514641563517, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (6648856586311067846, 7220148811735987533, 'Port', 'Port', false, false, null, 'xs:integer', null, null, null, null, -7171807647212474252, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (6649409115751613740, null, null, 'service_notification_options', false, true, 'This directive is used to define the service states for which notifications can be sent out to this contact. Valid options are a combination of one or more of the following: w = notify on WARNING service states, u = notify on UNKNOWN service states, c = notify on CRITICAL service states, r = notify on service recoveries (OK states), and f = notify when the service starts and stops flapping. If you specify n (none) as an option, the contact will not receive any type of service notifications.', 'xs:string', null, null, null, null, 7535307617655623766, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (6654868319152063228, -6253449519280162112, 'Location', 'Location', true, true, null, 'oneCMDB:#-3200591116467062442', 'oneCMDB:#-8025526327383936657', null, null, null, 5757536082740955330, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (6678220388808849742, 6276919938260585959, 'Name', 'Name', false, true, null, 'xs:string', null, 'Desktop', null, null, 5575307939015290823, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (6692164187980344744, -8885097571508953844, 'Network', 'Network', true, false, null, 'oneCMDB:#-838366469867279794', 'oneCMDB:#-3863377389438174788', 'oneCMDB:#3917719700601963553', 3917719700601963553, null, 8526533317541349136, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (6716798548682419650, -5664724427834647906, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, 7967232968088040444, 1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (6717801623416880342, -191070276069451799, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'computer', null, null, 1515202162886390642, 1, 0, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (6722925559155679676, 3723884162879080458, 'DSL Entry', 'DSLEntry', false, true, null, 'xs:anyURI', null, null, null, null, 880600073926883392, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (6729170356289957298, -949953494128123813, 'Version', 'Version', false, true, null, 'xs:string', null, null, null, null, -1168493350923132665, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (6733060183406232387, -8981633711131074391, null, 'user', false, true, null, 'xs:string', null, null, null, null, -5135423644045337547, 1, 1, '2016-12-27 17:05:12', '2016-12-27 17:05:12');
INSERT INTO onecmdb.t_attribute VALUES (6761060685335142253, 1445708497474161376, 'Manufacturer', 'Manufacturer', true, true, null, 'oneCMDB:#5433965781192492423', 'oneCMDB:#-8025526327383936657', null, null, null, 5575307939015290823, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (6766447352082033157, 8794022947635014930, 'Connected To', 'ConnectedTo', true, false, null, 'oneCMDB:#1325117208637117274', 'oneCMDB:#-2725368316691492923', 'oneCMDB:#-1485981234365493640', -1485981234365493640, null, 4899068668525632836, -1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (6769213582528949345, null, null, 'host_notification_commands', true, true, 'This directive is used to define a list of the short names of the commands used to notify the contact of a host problem or recovery. Multiple notification commands should be separated by commas. All notification commands are executed when the contact needs to be notified. The maximum amount of time that a notification command can run is controlled by the notification_timeout option.', 'oneCMDB:#1837107117169913746', 'oneCMDB:#-3863377389438174788', null, null, null, 7535307617655623766, -1, 0, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (6804599313608441315, -2918011532607696492, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'resource', null, null, -2661588154870202781, 1, 0, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (6819363900248590406, 6383624941797150701, 'Java Class Name', 'javaClass', false, true, null, 'xs:string', null, 'org.onecmdb.core.utils.transform.xml.XPathComplexAttributeSelector', null, null, -4090127195608060880, 1, 1, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (6823935714578669758, -6519216150282687063, 'Status', 'Status', true, false, null, 'oneCMDB:#41965733952263877', 'oneCMDB:#-8025526327383936657', null, null, null, 8526533317541349136, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (6824954380270168450, 2338142333132801027, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#5872623185044658259', null, null, 5999075076352418955, 1, 1, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (6832588133972472025, 291759117711298052, null, 'icon', false, true, 'Filename (no file extension) of icon image.', 'xs:string', null, 'windows_vista', null, null, 3225491047712550288, 1, 0, '2016-12-28 16:01:48', '2016-12-28 16:01:48');
INSERT INTO onecmdb.t_attribute VALUES (6843553452591095117, 6458362403191095587, 'Financial Info', 'Financial', true, false, null, 'oneCMDB:#-4030583075832430887', 'oneCMDB:#-8025526327383936657', 'oneCMDB:#287738359630000541', 287738359630000541, null, 8385099514641563517, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (6861256544084558048, 5196112076458852550, 'Name', 'name', false, true, null, 'xs:string', null, null, null, null, 5014313985612676927, 1, 1, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (6861398420944567713, -8981633711131074391, null, 'user', false, true, null, 'xs:string', null, null, null, null, -5561407348793484989, 1, 1, '2016-12-27 17:05:12', '2016-12-27 17:05:12');
INSERT INTO onecmdb.t_attribute VALUES (6861797360818768050, -5055809636125021672, 'Version', 'Version', false, false, null, 'xs:string', null, '2003', null, null, -7171807647212474252, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (6875580842181364031, 842895604476170259, 'Version', 'Version', false, false, null, 'xs:string', null, 'V10', null, null, -3883718588737995702, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (6891600114854409247, -6150345077072260260, 'IPv6 Address', 'IPv6Address', false, true, null, 'xs:string', null, null, null, null, -1407617025811333519, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (6901307693395922720, 3231318000420576753, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'mswindows', null, null, -4632697620056224887, 1, 0, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (6918106442639551043, 5196112076458852550, 'Name', 'name', false, true, null, 'xs:string', null, null, null, null, 6436463782760758572, 1, 1, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (6923472306463402246, -1999819586001428229, 'Name', 'name', false, false, null, 'xs:string', null, 'MDR Execution Result', null, null, 4675968942250705277, 1, 1, '2016-12-28 16:02:05', '2016-12-28 16:02:05');
INSERT INTO onecmdb.t_attribute VALUES (6926804734366480523, -7913358530174141021, null, 'process', true, true, null, 'oneCMDB:#1634733290972246121', 'oneCMDB:#8916998895021029152', null, null, null, -6754672868001187115, 1, 1, '2016-12-27 17:05:12', '2016-12-27 17:05:12');
INSERT INTO onecmdb.t_attribute VALUES (6933485121362226620, -1524543709740163214, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#8451682648722222209', null, null, -5314165864344869773, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (6971344910795356455, -5591169885085062245, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-5055663519884480021', null, null, 4880727536152492008, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (6980279925946563130, -3339348614286452107, null, 'icon', false, true, 'Filename (no file extension) of icon image.', 'xs:string', null, 'ci', null, null, -6108598720877681394, 1, 0, '2016-12-28 16:01:48', '2016-12-28 16:01:48');
INSERT INTO onecmdb.t_attribute VALUES (6997115292906848468, null, null, 'display_name', false, true, 'This directive is used to define an alternate name that should be displayed in the web interface for this service. If not specified, this defaults to the value you specify for the service_description directive. Note: The current CGIs do not use this option, although future versions of the web interface will.', 'xs:string', null, null, null, null, 8986099038471647984, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (7005366955620366057, 3694039516072425686, 'Name', 'Name', false, true, null, 'xs:string', null, 'VMWare Player', null, null, 2305821143961843722, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (7011276033317334514, 2472277896376169463, null, 'icon', false, true, 'Filename (no file extension) of icon image.', 'xs:string', null, null, null, null, -9088578071070289812, 1, 0, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (7023878171920384227, null, null, 'hostgroup_members', true, true, 'This optional directive can be used to include hosts from other "sub" host groups in this host group. Specify a comma-delimited list of short names of other host groups whose members should be included in this group.', 'oneCMDB:#-4154185814876458058', 'oneCMDB:#-3863377389438174788', null, null, null, -4154185814876458058, -1, 0, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (7026547821345362373, -8791954955986718586, 'License Key', 'LicenseKey', false, false, null, 'xs:string', null, 'See Agreement', null, null, 8067161067550301549, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (7028724432965061212, -5669522693763744355, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, -7141557035276310837, 1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (7029657776419540631, 5196112076458852550, 'Name', 'name', false, true, null, 'xs:string', null, null, null, null, -1723966340589452755, 1, 1, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (7031817548233696506, -1524543709740163214, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#8385099514641563517', null, null, 4880727536152492008, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (7039029823595375730, 2159404570844631604, 'Location', 'Location', true, false, null, 'oneCMDB:#-3200591116467062442', 'oneCMDB:#-8025526327383936657', 'oneCMDB:#3292283325467518720', 3292283325467518720, null, 2763197975055376610, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (7044716747009804614, 992032081929273952, 'License Key', 'LicenseKey', false, false, null, 'xs:string', null, 'FGHJ-3456-YUJK', null, null, 2029949154248172420, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (7075728089708918708, null, 'Deleted objects', 'deleted', false, true, null, 'xs:string', null, null, null, null, 2386299380460541961, 1, 1, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (7078553564841197121, -4730824293899188058, 'DSL Entry', 'DSLEntry', false, false, null, 'xs:anyURI', null, 'http://www.onecmdb.org/docs/BasicDatacenter/DSL/Dummy_OS_Package.txt', null, null, 5872623185044658259, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (7088368142425964243, -5591169885085062245, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-4622793531067663618', null, null, -415785062668355818, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (7096157192557062830, null, null, 'service_description', false, true, 'This directive is used to define the description of the service, which may contain spaces, dashes, and colons (semicolons, apostrophes, and quotation marks should be avoided). No two services associated with the same host can have the same description. Services are uniquely identified with their host_name and service_description directives.', 'xs:string', null, null, null, null, 8986099038471647984, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (7096315723382070509, null, null, 'notification_interval', false, true, 'This directive is used to define the number of "time units" to wait before re-notifying a contact that this service is still down or unreachable. Unless you’ve changed the interval_length directive from the default value of 60, this number will mean minutes. If you set this value to 0, Nagios will not re-notify contacts about problems for this host - only one problem notification will be sent out.', 'xs:integer', null, null, null, null, -6108598720877681394, 1, 1, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (7117908390262098248, -5591169885085062245, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-6387231193564991043', null, null, 5866051033940467520, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (7119036939036475914, -6868818845750700134, 'Uses', 'Uses', true, false, null, 'oneCMDB:#-4678966175358915668', 'oneCMDB:#7815034950157158561', 'oneCMDB:#-7426183369994757231', -7426183369994757231, null, -4240101805785438545, -1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (7130091780807166008, -5669522693763744355, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, 4544942910497465063, 1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (7132183170482986194, 4646922231658548033, null, 'useName', false, true, 'If the instance should include it''s name. Eq if this instance is used by another instance.', 'xs:boolean', null, null, null, null, 739521429005320541, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (7136205455756864442, null, 'Repeate Count', 'repeateCount', false, true, null, 'xs:integer', null, null, null, null, -6754672868001187115, 1, 1, '2016-12-27 17:05:12', '2016-12-27 17:05:12');
INSERT INTO onecmdb.t_attribute VALUES (7149530860624428713, 4938235785368350604, 'Serial Number', 'SerialNumber', false, true, null, 'xs:string', null, null, null, null, 3331921274338303097, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (7155371148983453792, -5669522693763744355, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, 3377876509903121869, 1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (7156805658880595229, 8098717771697910328, 'Status', 'Status', true, true, null, 'oneCMDB:#41965733952263877', 'oneCMDB:#-8025526327383936657', null, null, null, 6971205699962462965, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (7159999222576925588, 6323267896344121105, 'License Key', 'LicenseKey', false, false, null, 'xs:string', null, 'See Agreement', null, null, -3883718588737995702, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (7177624824851446179, -8603102978338421612, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#2029949154248172420', null, null, -4277694784537643537, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (7180754591205558633, -5591169885085062245, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-7761184485249285917', null, null, 7319008446995797318, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (7189244469426197325, -6591540401442375548, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, 9205521997055101409, 1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (7197924093410979200, 830469767810511665, 'Depreciation (years)', 'Depreciation', false, false, null, 'xs:integer', null, '3', 3, null, -4650663127884378612, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (7198745519638751574, -5669522693763744355, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, 2957606740287094085, 1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (7220148811735987533, -1762443614652211391, 'Port', 'Port', false, true, null, 'xs:integer', null, null, null, null, 3865960124110820148, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (7223165442716508832, null, null, 'flap_detection_enabled', false, true, 'This directive is used to determine whether or not flap detection is enabled for this service. More information on flap detection can be found here. Values: 0 = disable service flap detection, 1 = enable service flap detection.', 'xs:integer', null, null, null, null, 8986099038471647984, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (7231470274445271216, -5012192948753502156, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-7013056504252155877', null, null, 2981264946819102869, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (7232300777336194786, 5732699708061790012, 'MAC Address', 'MAC_Address', false, true, null, 'xs:string', null, null, null, null, -1407617025811333519, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (7235946039411469116, null, null, 'check_command', true, true, 'This directive is used to specify the short name of the command that Nagios will run in order to check the status of the service. The maximum amount of time that the service check command can run is controlled by the service_check_timeout option.', 'oneCMDB:#1837107117169913746', 'oneCMDB:#-3863377389438174788', null, null, null, 8986099038471647984, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (7241017945295986301, -5620315327715502272, 'Source', 'source', true, true, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, null, null, null, 3819466882454481805, 1, 1, '2016-12-27 17:05:12', '2016-12-27 17:05:12');
INSERT INTO onecmdb.t_attribute VALUES (7245671795530806242, -5669522693763744355, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, 5882298149217477979, 1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (7252345775894819451, -776008933174046075, 'DSL Entry', 'DSLEntry', false, true, null, 'xs:anyURI', null, 'http://www.onecmdb.org/docs/BasicDatacenter/DSL/Dummy_OS_Package.txt', null, null, -389893205101279185, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (7257731249656242722, 2684607629046987153, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, 5999075076352418955, 1, 0, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (7265022862434804707, null, null, 'contactgroup_name', false, true, 'This directive is a short name used to identify the contact group.', 'xs:string', null, null, null, null, 5505300793486821851, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (7273426468763156458, 129652908319622854, 'Maintenance Info', 'Maintenance', true, true, null, 'oneCMDB:#7154244997109246053', 'oneCMDB:#-8025526327383936657', null, null, null, 6971205699962462965, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (7284898704985627285, -1040856819005843342, null, 'use', false, true, 'The template this nagios config entry should derived from.', 'xs:string', null, null, null, null, 7535307617655623766, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (7287327624737809394, -5012192948753502156, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#2376092523771938845', null, null, -5409633853396429971, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (7288571489569936644, -5669522693763744355, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, -402961741963142268, 1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (7295299542979711514, -3068912336442916125, 'Installed On', 'InstalledOn', true, true, null, 'oneCMDB:#1325117208637117274', 'oneCMDB:#4825510563751653831', null, null, null, 5676046625265852474, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (7363646406609326224, -5669522693763744355, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, 1790914910377287488, 1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (7366604508294041649, -5591169885085062245, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-3555672197290052160', null, null, 3377876509903121869, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (7378555009496732599, -5872183086464812927, 'Name', 'Name', false, true, null, 'xs:string', null, 'WiFi Router', null, null, -1407617025811333519, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (7381413177024280599, -3762283678602573282, 'Maintenance Info', 'Maintenance', true, false, null, 'oneCMDB:#7154244997109246053', 'oneCMDB:#-8025526327383936657', 'oneCMDB:#-3019506684664744401', -3019506684664744401, null, 1515202162886390642, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (7408724948072457504, 8098717771697910328, 'Status', 'Status', true, true, null, 'oneCMDB:#41965733952263877', 'oneCMDB:#-8025526327383936657', null, null, null, 2166601380421831026, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (7426120298386634265, 3435544111612165743, 'Modified objects', 'modified', false, false, null, 'xs:string', null, '0', null, null, 4675968942250705277, 1, 1, '2016-12-28 16:02:05', '2016-12-28 16:02:05');
INSERT INTO onecmdb.t_attribute VALUES (7434086834157261049, -5012192948753502156, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#2376092523771938845', null, null, 1130587008037623531, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (7436757148263249154, null, null, 'process', true, true, null, 'oneCMDB:#1634733290972246121', 'oneCMDB:#8916998895021029152', null, null, null, -3828191829605365312, 1, 1, '2016-12-27 17:05:12', '2016-12-27 17:05:12');
INSERT INTO onecmdb.t_attribute VALUES (7438327681554344018, 3625024767369706904, 'Installed On', 'InstalledOn', true, true, null, 'oneCMDB:#-1168493350923132665', 'oneCMDB:#4825510563751653831', null, null, null, -6599040348753944674, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (7456012045618063757, -3083491610262817321, 'Maintenance Info', 'Maintenance', true, true, null, 'oneCMDB:#7154244997109246053', 'oneCMDB:#-8025526327383936657', null, null, null, -6599040348753944674, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (7457437084315370390, 7561040409596471810, 'Purchase Contract', 'Purchase_Contract', false, false, null, 'xs:anyURI', null, 'http://www.onecmdb.org/docs/BasicDatacenter/docs/Dummy_Purchase_Contract.pdf', null, null, -4622793531067663618, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (7459590088702488421, 9060213008561656592, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#8526533317541349136', null, null, -1485981234365493640, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (7461166646245388778, null, null, 'command_line', false, true, 'This directive is used to define what is actually executed by Nagios when the command is used for service or host checks, notifications, or event handlers. Before the command line is executed, all valid macros are replaced with their respective values. See the documentation on macros for determining when you can use different macros. Note that the command line is not surrounded in quotes. Also, if you want to pass a dollar sign ($) on the command line, you have to escape it with another dollar sign.', 'xs:string', null, null, null, null, 1837107117169913746, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (7470456025115212127, 2400063756869389014, null, 'icon', false, true, 'Filename (no file extension) of icon image.', 'xs:string', null, null, null, null, -2823204706454452072, 1, 0, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (7472937267077886502, -771882460194241171, null, 'icon', false, true, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, 5179857591352919088, 1, 0, '2016-12-27 17:05:11', '2016-12-27 17:05:11');
INSERT INTO onecmdb.t_attribute VALUES (7473945691160772611, 4599471661187751239, 'Maintenance Org.', 'Maintenance_Org', true, false, null, 'oneCMDB:#5433965781192492423', 'oneCMDB:#-8025526327383936657', 'oneCMDB:#468542918369469937', 468542918369469937, null, 5400821923574190750, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (7476441827777052935, -6430347810547129509, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'resource', null, null, -3468993384790064691, 1, 0, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (7480567275932866427, 830469767810511665, 'Depreciation (years)', 'Depreciation', false, false, null, 'xs:integer', null, '5', 5, null, -7761184485249285917, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (7493046010289935982, -7670637430424212269, 'IPv4 Address', 'IPAddress', false, false, null, 'xs:string', null, '172.16.58.3', null, null, 6936928594960133541, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (7509599446167191926, null, 'E-Mail', 'Email', false, true, null, 'xs:string', null, null, null, null, -15958512515039807, -1, 0, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (7514411049012587068, null, null, 'inherits_parent', false, true, null, 'xs:string', null, null, null, null, 1890256877210801519, 1, 1, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (7522150057847533712, -5591169885085062245, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-1643976468999782598', null, null, 5882298149217477979, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (7535549098922460261, -1524543709740163214, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-8697924501898487676', null, null, 4566123606153975941, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (7536174403378818843, -1546333862546594469, 'Port', 'Port', false, false, null, 'xs:integer', null, null, null, null, -3883718588737995702, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (7537057815270322547, -5591169885085062245, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-505646845337106548', null, null, -4924263808219888120, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (7553899952520375190, 1743396138401171271, 'Java Class Name', 'javaClass', false, true, null, 'xs:string', null, 'org.onecmdb.core.utils.transform.ForwardInstanceSelector', null, null, -9088578071070289812, 1, 1, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (7557836457304679624, 2338142333132801027, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#8451682648722222209', null, null, 2283492301274917080, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (7561040409596471810, null, 'Purchase Contract', 'Purchase_Contract', false, true, null, 'xs:anyURI', null, null, null, null, -4030583075832430887, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (7565727231223078480, -981444118746676537, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-8031090386881226833', null, null, 2708301732820392314, 1, 1, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (7573736570609880867, -5928841273003779319, 'Service', 'Service', true, false, null, 'oneCMDB:#-4678966175358915668', 'oneCMDB:#-3863377389438174788', 'oneCMDB:#7514974890842026102', 7514974890842026102, null, 2029949154248172420, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (7577282537111703770, -147364063196792403, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'maintenance', null, null, 2970960574384196618, 1, 0, '2016-12-28 16:01:48', '2016-12-28 16:01:48');
INSERT INTO onecmdb.t_attribute VALUES (7578201611392117899, -6519216150282687063, 'Status', 'Status', true, true, null, 'oneCMDB:#41965733952263877', 'oneCMDB:#-8025526327383936657', null, null, null, -1407617025811333519, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (7592041216613329462, null, 'Exec Message', 'execMessage', false, true, null, 'xs:string', null, null, null, null, 2386299380460541961, 1, 1, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (7599753892198263153, -8902468049398991901, 'MAC Address', 'MAC_Address', false, true, null, 'xs:string', null, null, null, null, -239896225795807576, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (7603803023593326806, -8156709246695355115, 'Service', 'Service', true, false, null, 'oneCMDB:#-4678966175358915668', 'oneCMDB:#-3863377389438174788', 'oneCMDB:#1387948091725077155', 1387948091725077155, null, 4899068668525632836, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (7615645499738745407, -5669522693763744355, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, 3025816063893178852, 1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (7616871339464761164, null, null, 'icon_image', false, true, 'This variable is used to define the name of a GIF, PNG, or JPG image that should be associated with this host. This image will be displayed in the various places in the CGIs. The image will look best if it is 40x40 pixels in size. Images for hosts are assumed to be in the logos/ subdirectory in your HTML images directory (i.e. /usr/local/nagios/share/images/logos).', 'xs:string', null, null, null, null, -6108598720877681394, 1, 1, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (7626440448873765674, 2338142333132801027, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-6624236066440953660', null, null, 32356233041257316, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (7638037162105222803, -5700200873589384332, 'Name', 'name', false, true, null, 'xs:string', null, 'MDR', null, null, -8400736094814329789, 1, 1, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (7640156396689448371, -1524543709740163214, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-3267638157342394138', null, null, -6975859289253992566, 1, 1, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (7647584547141411189, 2338142333132801027, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#1515202162886390642', null, null, 632499092524139632, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (7654336999193041216, -5669522693763744355, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, 4880727536152492008, 1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (7654998799291056947, -5151539929083847463, 'Auto Commit', 'autoCommit', false, false, null, 'xs:boolean', null, null, null, null, -4992730422267492319, 1, 1, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (7659180113129858327, -8603102978338421612, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-306753241820469847', null, null, -6908501961876443996, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (7665796351546790100, 1917979139818517146, 'Name', 'Name', false, true, null, 'xs:string', null, 'Service', null, null, -8820227643856541952, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (7668594555327277027, null, null, 'host_name', true, true, 'This variable is used to identify the short name of the host which the data is associated with.', 'oneCMDB:#-6108598720877681394', 'oneCMDB:#-3863377389438174788', null, null, null, 739521429005320541, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (7678170051771662498, 7252345775894819451, 'DSL Entry', 'DSLEntry', false, true, null, 'xs:anyURI', null, 'http://www.onecmdb.org/docs/BasicDatacenter/DSL/Dummy_OS_Package.txt', null, null, 72883027723141449, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (7691681231495629830, -2344575093696141095, 'Uses', 'Uses', true, true, null, 'oneCMDB:#7491575733809579230', 'oneCMDB:#7815034950157158561', null, null, null, -8747012735422861621, -1, 0, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (7695418541013248979, 2684607629046987153, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, -5409633853396429971, 1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (7696997261982699603, 5112827944007636586, null, 'icon', false, true, 'Filename (no file extension) of icon image.', 'xs:string', null, 'job', null, null, -3828191829605365312, 1, 0, '2016-12-27 17:05:12', '2016-12-27 17:05:12');
INSERT INTO onecmdb.t_attribute VALUES (7704474785817544319, null, null, 'passive_checks_enabled', false, true, 'This directive is used to determine whether or not passive checks of this service are enabled. Values: 0 = disable passive service checks, 1 = enable passive service checks.', 'xs:integer', null, null, null, null, 8986099038471647984, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (7713484371039656224, -329611208818537406, 'TX ID', 'txid', false, false, null, 'xs:string', null, '8820364653281713271', null, null, 4675968942250705277, 1, 1, '2016-12-28 16:02:05', '2016-12-28 16:02:05');
INSERT INTO onecmdb.t_attribute VALUES (7716533116011718959, 9060213008561656592, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#8526533317541349136', null, null, 3899359295790179114, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (7723346260096266028, 8311479515767203985, 'Purchase Prise (USD)', 'Purchase_Prise', false, false, null, 'xs:integer', null, '3500', 3500, null, -3555672197290052160, 1, 1, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (7726612120627561792, -1524543709740163214, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-3883718588737995702', null, null, 4676329405888212410, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (7727389333165138001, -653152380451391655, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'service', null, null, -8037939061718373803, 1, 0, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (7754922922189836699, -191070276069451799, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'computer', null, null, 1198750186879466999, 1, 0, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (7755818518287009500, -4738675488340730940, null, 'icon', false, true, 'Filename (no file extension) of icon image.', 'xs:string', null, 'job', null, null, -6754672868001187115, 1, 0, '2016-12-27 17:05:12', '2016-12-27 17:05:12');
INSERT INTO onecmdb.t_attribute VALUES (7767731588855388961, 8655229608306903921, 'Version', 'Version', false, false, null, 'xs:string', null, '2003', null, null, -7315267361872023940, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (7768550390595960996, 6109964742949431649, 'Service', 'Service', true, true, null, 'oneCMDB:#-4678966175358915668', 'oneCMDB:#-3863377389438174788', null, null, null, -1168493350923132665, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (7771817949965764938, -4802794472932279484, 'License Key', 'LicenseKey', false, false, null, 'xs:string', null, 'MSWR-1234-8765', null, null, -4632697620056224887, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (7821705271297879830, -5669522693763744355, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, -5314165864344869773, 1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (7831912180356654756, 9180838692583090870, 'Name', 'Name', false, false, null, 'xs:string', null, 'Financials Microsoft (Bulk)', null, null, -8154505932687141586, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (7839980041498431000, null, null, 'host_notification_options', false, true, 'This directive is used to define the host states for which notifications can be sent out to this contact. Valid options are a combination of one or more of the following: d = notify on DOWN host states, u = notify on UNREACHABLE host states, r = notify on host recoveries (UP states), f = notify when the host starts and stops flapping, and s = send notifications when host or service scheduled downtime starts and ends. If you specify n (none) as an option, the contact will not receive any type of host notifications.', 'xs:string', null, null, null, null, 7535307617655623766, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (7840100071193011947, -5012192948753502156, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#4865346868591089587', null, null, 2763697394706545839, 1, 1, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (7842528800644703341, 621341352830392531, 'Manufacturer', 'Manufacturer', true, true, null, 'oneCMDB:#5433965781192492423', 'oneCMDB:#-8025526327383936657', null, null, null, 5757536082740955330, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (7843654734502093522, -5591169885085062245, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-8154505932687141586', null, null, 1813367284442008443, 1, 1, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (7856327862604147733, null, 'Telephone', 'Telephone', false, true, null, 'xs:string', null, null, null, null, -15958512515039807, -1, 0, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (7859146528677845078, 9197003183923643110, null, 'icon', false, true, 'Filename (no file extension) of icon image.', 'xs:string', null, null, null, null, -8759295909666495513, 1, 0, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (7868758492070996146, -5669522693763744355, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, -1958952144243754930, 1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (7886442646760080629, -5669522693763744355, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, -4310737394725159923, 1, 0, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (7899081116528138776, -2448778582390853220, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-6365967536967575940', null, null, 5238339757547316102, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (7901420767287359993, null, null, 'service_description', false, true, null, 'xs:string', null, null, null, null, -2437713139919564933, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (7905166649791594630, 8322750748400999276, 'MAC Address', 'MAC_Address', false, true, null, 'xs:string', null, null, null, null, 5575307939015290823, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (7928718072314921126, 3216849197076107229, 'Maintenance Info', 'Maintenance', true, true, null, 'oneCMDB:#7154244997109246053', 'oneCMDB:#-8025526327383936657', null, null, null, 9059693167497789202, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (7937384827338740382, -7718528382892313710, 'DSL Entry', 'DSLEntry', false, true, null, 'xs:anyURI', null, 'http://www.onecmdb.org/docs/BasicDatacenter/DSL/Dummy_Software_Package.txt', null, null, 2305821143961843722, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (7943205047457619900, -8902468049398991901, 'MAC Address', 'MAC_Address', false, true, null, 'xs:string', null, null, null, null, 2522367028350860395, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (7954947042116584500, 3858978566748600360, null, 'icon', false, true, 'Filename (no file extension) of icon image.', 'xs:string', null, 'application', null, null, -8747012735422861621, 1, 0, '2016-12-28 16:01:48', '2016-12-28 16:01:48');
INSERT INTO onecmdb.t_attribute VALUES (7963225469345544701, -1040856819005843342, null, 'use', false, true, 'The template this nagios config entry should derived from.', 'xs:string', null, null, null, null, -4154185814876458058, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (7966640295511466693, 5540694408798465315, 'Network', 'Network', true, false, null, 'oneCMDB:#-838366469867279794', 'oneCMDB:#-3863377389438174788', 'oneCMDB:#7799527875584504799', 7799527875584504799, null, 6936928594960133541, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (7975204449865427527, null, null, 'event_handler_enabled', false, true, 'This directive is used to determine whether or not the event handler for this host is enabled. Values: 0 = disable host event handler, 1 = enable host event handler.', 'xs:integer', null, null, null, null, -6108598720877681394, 1, 1, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (8009417928767741563, -5424043002938450829, 'License Key', 'LicenseKey', false, false, null, 'xs:string', null, 'ertf4545rtr78h', null, null, -2871151807065298888, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (8010013281908328450, null, null, 'password', false, true, null, 'xs:password', null, null, null, null, -3828191829605365312, 1, 1, '2016-12-27 17:05:12', '2016-12-27 17:05:12');
INSERT INTO onecmdb.t_attribute VALUES (8017065539988918259, -5669522693763744355, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, 673292606483933488, 1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (8027939948940652768, null, null, 'x2d_coords', false, true, 'This variable is used to define coordinates to use when drawing the host in the statusmap CGI. Coordinates should be given in positive integers, as they correspond to physical pixels in the generated image. The origin for drawing (0,0) is in the upper left hand corner of the image and extends in the positive x direction (to the right) along the top of the image and in the positive y direction (down) along the left hand side of the image. For reference, the size of the icons drawn is usually about 40x40 pixels (text takes a little extra space). The coordinates you specify here are for the upper left hand corner of the host icon that is drawn. Note: Don’t worry about what the maximum x and y coordinates that you can use are. The CGI will automatically calculate the maximum dimensions of the image it creates based on the largest x and y coordinates you specify.', 'xs:string', null, null, null, null, -6108598720877681394, 1, 1, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (8028379297280302397, -3362059624817279767, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'linux', null, null, 2029949154248172420, 1, 0, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (8036876646173874450, -1524543709740163214, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-38466446972918069', null, null, -7576219130276881614, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (8046257481860152276, 1437994957852178078, 'Name', 'Name', false, true, null, 'xs:string', null, 'Red Hat Linux', null, null, 5676046625265852474, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (8047321664677600610, 4917553370040696144, 'Entries', 'files', false, false, null, 'xs:string', null, '/MDR/Models/models/Nagios_Model/Nagios_Model.xml', null, null, 4675968942250705277, -1, 0, '2016-12-28 16:02:05', '2016-12-28 16:02:05');
INSERT INTO onecmdb.t_attribute VALUES (8060260788515316204, 2684607629046987153, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, 632499092524139632, 1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (8069684503313650046, 5648763990242826958, null, 'objectType', false, true, 'The object definition name.', 'xs:string', null, null, null, null, -2437713139919564933, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (8077175777612205978, -3979711827897002409, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-3883718588737995702', null, null, -4887662693489852354, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (8079544350156113426, 3858978566748600360, null, 'icon', false, true, 'Filename (no file extension) of icon image.', 'xs:string', null, 'application', null, null, -5000743863724034311, 1, 0, '2016-12-28 16:01:48', '2016-12-28 16:01:48');
INSERT INTO onecmdb.t_attribute VALUES (8079969694138493463, 6458362403191095587, 'Financial Info', 'Financial', true, true, null, 'oneCMDB:#-4030583075832430887', 'oneCMDB:#-8025526327383936657', null, null, null, 6704163766313149585, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (8082541928944439438, null, null, 'stop', false, true, null, 'xs:string', null, null, null, null, -3828191829605365312, 1, 1, '2016-12-27 17:05:12', '2016-12-27 17:05:12');
INSERT INTO onecmdb.t_attribute VALUES (8083508627834560426, null, 'Name', 'Name', false, true, null, 'xs:string', null, 'Organisation', null, null, 9004371785829877556, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (8098717771697910328, 9057919287465543558, 'Status', 'Status', true, true, null, 'oneCMDB:#41965733952263877', 'oneCMDB:#-8025526327383936657', null, null, null, 4774848979350389203, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (8099882828995303441, -5669522693763744355, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, 1813367284442008443, 1, 0, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (8101528328242796571, 6319071884189180505, 'Java Class Name', 'javaClass', false, true, null, 'xs:string', null, null, null, null, 3852576172540807645, 1, 1, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (8101605495539007161, 898246456821792020, 'Specialist (internal)', 'Specialist', true, false, null, 'oneCMDB:#-15958512515039807', 'oneCMDB:#-8025526327383936657', 'oneCMDB:#-402961741963142268', -402961741963142268, null, 5400821923574190750, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (8102357758726781029, -5669522693763744355, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, 3818981860407594996, 1, 0, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (8119024697403049211, -1524543709740163214, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-7315267361872023940', null, null, -7575172238653513809, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (8121187252967409285, null, null, 'alias', false, true, 'This directive is used to define is a longer name or description used to identify the host group. It is provided in order to allow you to more easily identify a particular host group.', 'xs:string', null, null, null, null, -4154185814876458058, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (8137040131086296969, 546550282598212407, 'License Key', 'LicenseKey', false, true, null, 'xs:string', null, 'GHJU-7688-MOVF', null, null, -5508999552889392857, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (8137773877344245516, 6530927823170276637, null, 'Hostname', false, false, null, 'xs:string', null, null, null, null, 6936928594960133541, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (8149188254098345151, -752431900193616089, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-6624236066440953660', null, null, 3899359295790179114, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (8150463730297307194, -3674724723028882167, 'Installed On', 'InstalledOn', true, false, null, 'oneCMDB:#-1168493350923132665', 'oneCMDB:#4825510563751653831', 'oneCMDB:#-4887662693489852354', -4887662693489852354, null, -3883718588737995702, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (8157858374453296416, -5669522693763744355, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, 468542918369469937, 1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (8172133808122023483, 4646922231658548033, null, 'useName', false, true, 'If the instance should include it''s name. Eq if this instance is used by another instance.', 'xs:boolean', null, null, null, null, 1837107117169913746, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (8173104465038555263, 9100241127498511091, 'Service', 'Service', true, false, null, 'oneCMDB:#-4678966175358915668', 'oneCMDB:#-3863377389438174788', 'oneCMDB:#4655619091113466025', 4655619091113466025, null, 5438961292355445872, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (8194897732309646465, -1524543709740163214, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#6936928594960133541', null, null, 817799169808668737, 1, 1, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (8195687387043834369, 3521168720769405274, null, 'name', false, true, 'The template name referenced with the use attribute.', 'xs:string', null, null, null, null, 739521429005320541, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (8197890172645618637, -3861241026947317987, null, 'Hostname', false, true, null, 'xs:string', null, null, null, null, 3331921274338303097, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (8211651180067131842, 2400063756869389014, null, 'icon', false, true, 'Filename (no file extension) of icon image.', 'xs:string', null, null, null, null, -1286794834007968621, 1, 0, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (8213410900892741227, -8603102978338421612, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#4298307837787561059', null, null, 5720246255755312151, 1, 1, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (8213622616117028391, 1595556135454401599, 'Installed On', 'InstalledOn', true, true, null, 'oneCMDB:#1325117208637117274', 'oneCMDB:#4825510563751653831', null, null, null, -389893205101279185, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (8218369255674956123, -2373699956992759322, 'Target', 'target', true, true, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, null, null, null, 3819466882454481805, 1, 1, '2016-12-27 17:05:12', '2016-12-27 17:05:12');
INSERT INTO onecmdb.t_attribute VALUES (8230494466283795284, null, null, 'x2d_coords', false, true, 'This variable is used to define coordinates to use when drawing the host in the statusmap CGI. Coordinates should be given in positive integers, as they correspond to physical pixels in the generated image. The origin for drawing (0,0) is in the upper left hand corner of the image and extends in the positive x direction (to the right) along the top of the image and in the positive y direction (down) along the left hand side of the image. For reference, the size of the icons drawn is usually about 40x40 pixels (text takes a little extra space). The coordinates you specify here are for the upper left hand corner of the host icon that is drawn. Note: Don’t worry about what the maximum x and y coordinates that you can use are. The CGI will automatically calculate the maximum dimensions of the image it creates based on the largest x and y coordinates you specify.', 'xs:string', null, null, null, null, 739521429005320541, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (8241388880163795721, -1911575410628827306, 'License Key', 'LicenseKey', false, true, null, 'xs:string', null, null, null, null, -1168493350923132665, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (8257654724827014955, -3979711827897002409, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#2029949154248172420', null, null, -5468400491548625536, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (8258618706275790755, 9100241127498511091, 'Service', 'Service', true, false, null, 'oneCMDB:#-4678966175358915668', 'oneCMDB:#-3863377389438174788', 'oneCMDB:#8664931160192194764', 8664931160192194764, null, 5612781772166901244, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (8261443674782105822, 9210594737925533850, null, 'icon', false, true, 'Filename (no file extension) of icon image.', 'xs:string', null, 'software', null, null, 3938641235467758932, 1, 0, '2016-12-28 16:01:48', '2016-12-28 16:01:48');
INSERT INTO onecmdb.t_attribute VALUES (8264645472907362266, -5669522693763744355, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, 1179499131245420347, 1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (8272950912403417742, 7408724948072457504, 'Status', 'Status', true, false, null, 'oneCMDB:#41965733952263877', 'oneCMDB:#-8025526327383936657', 'oneCMDB:#3354404145119257703', 3354404145119257703, null, 5438961292355445872, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (8277711407382475477, -7693949724156307046, 'Installed On', 'InstalledOn', true, false, null, 'oneCMDB:#1325117208637117274', 'oneCMDB:#4825510563751653831', 'oneCMDB:#-7664282384609793106', -7664282384609793106, null, 4298307837787561059, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (8301542861462596586, 454245518513090804, 'Used By', 'UsedBy', true, false, null, 'oneCMDB:#5433965781192492423', 'oneCMDB:#-8025526327383936657', 'oneCMDB:#6473487725781865116', 6473487725781865116, null, -6553834200975625641, -1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (8311479515767203985, null, 'Purchase Prise (USD)', 'Purchase_Prise', false, true, null, 'xs:integer', null, null, null, null, -4030583075832430887, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (8317113949910264734, null, 'Financial Info', 'Financial', true, true, null, 'oneCMDB:#-4030583075832430887', 'oneCMDB:#-8025526327383936657', null, null, null, 3938641235467758932, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (8317775727390176287, -981444118746676537, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-4474468114987171564', null, null, 9205521997055101409, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (8322750748400999276, -8902468049398991901, 'MAC Address', 'MAC_Address', false, true, null, 'xs:string', null, null, null, null, 4774848979350389203, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (8333256666490107798, 6569784110107969048, 'Name', 'Name', false, false, null, 'xs:string', null, 'MS Outlook', null, null, 7503285799199789397, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (8345497989318023921, -1478756811695415278, null, 'icon', false, true, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, -2725368316691492923, 1, 0, '2016-12-28 16:01:48', '2016-12-28 16:01:48');
INSERT INTO onecmdb.t_attribute VALUES (8355264517814217416, null, 'WAN Hostname', 'WAN_Hostname', false, true, null, 'xs:string', null, null, null, null, 9059693167497789202, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (8356956889111196871, 2261577069152373751, 'Installed On', 'InstalledOn', true, false, null, 'oneCMDB:#1325117208637117274', 'oneCMDB:#4825510563751653831', 'oneCMDB:#4578950590119242594', 4578950590119242594, null, 5872623185044658259, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (8362269554430070403, -1382985826024504755, 'Maintenance Info', 'Maintenance', true, false, null, 'oneCMDB:#7154244997109246053', 'oneCMDB:#-8025526327383936657', 'oneCMDB:#6250599673472111602', 6250599673472111602, null, 7503285799199789397, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (8364332331617716449, null, null, 'action_url', false, true, null, 'xs:anyURI', null, null, null, null, -2437713139919564933, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (8375224932204561659, 8311479515767203985, 'Purchase Prise (USD)', 'Purchase_Prise', false, false, null, 'xs:integer', null, '5000', 5000, null, -4622793531067663618, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (8381602525153240047, -5669522693763744355, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, -6652782400463517677, 1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (8387583163384802264, -6692410937082754498, 'Maintenance Info', 'Maintenance', true, false, null, 'oneCMDB:#7154244997109246053', 'oneCMDB:#-8025526327383936657', 'oneCMDB:#707827061935519211', 707827061935519211, null, -306753241820469847, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (8389391105909276281, -7693949724156307046, 'Installed On', 'InstalledOn', true, false, null, 'oneCMDB:#1325117208637117274', 'oneCMDB:#4825510563751653831', 'oneCMDB:#3209199279906906336', 3209199279906906336, null, 225437699908619242, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (8404505531417480618, -981444118746676537, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-4992730422267492319', null, null, -1446026942692189857, 1, 1, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (8410235288367836241, -1201591218872166485, 'Web Address', 'Web_Address', false, false, null, 'xs:anyURI', null, 'http://www.dumcust.com', null, null, 3770822044337348543, 1, 1, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (8414340109866922446, null, null, 'alias', false, true, 'This directive is used to define a longer name or description used to identify the host. It is provided in order to allow you to more easily identify a particular host. When used properly, the $HOSTALIAS$ macro will contain this alias/description.', 'xs:string', null, null, null, null, -6108598720877681394, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (8414784833531385067, 4905113550295563344, 'Financial Info', 'Financial', true, true, null, 'oneCMDB:#-4030583075832430887', 'oneCMDB:#-8025526327383936657', null, null, null, 4037843118202851281, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (8415383694091159506, -6866015795909367857, 'Financial Info', 'Financials', true, true, null, 'oneCMDB:#-4030583075832430887', 'oneCMDB:#-8025526327383936657', null, null, null, 5757536082740955330, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (8446362087165822580, 9057925470585307046, 'Target', 'target', true, true, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, null, null, null, 5179857591352919088, 1, 1, '2016-12-27 17:05:11', '2016-12-27 17:05:11');
INSERT INTO onecmdb.t_attribute VALUES (8449860996843323008, 1437196997922972231, 'DSL Entry', 'DSLEntry', false, true, null, 'xs:anyURI', null, null, null, null, 4338151747944765362, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (8464644293944667959, null, null, 'x3d_coords', false, true, 'This variable is used to define coordinates to use when drawing the host in the statuswrl CGI. Coordinates can be positive or negative real numbers. The origin for drawing is (0.0,0.0,0.0). For reference, the size of the host cubes drawn is 0.5 units on each side (text takes a little more space). The coordinates you specify here are used as the center of the host cube.', 'xs:string', null, null, null, null, -6108598720877681394, 1, 1, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (8473318718519197175, 2684014330841366898, null, 'icon', false, true, 'Filename (no file extension) of icon image.', 'xs:string', null, null, null, null, -7394867373853076737, 1, 0, '2016-12-27 17:05:10', '2016-12-27 17:05:10');
INSERT INTO onecmdb.t_attribute VALUES (8553777182906727884, null, null, 'exception', false, true, 'You can specify several different types of exceptions to the standard rotating weekday schedule. Exceptions can take a number of different forms including single days of a specific or generic month, single weekdays in a month, or single calendar dates. You can also specify a range of days/dates and even specify skip intervals to obtain functionality described by "every 3 days between these dates". Rather than list all the possible formats for exception strings, I’ll let you look at the example timeperiod definitions above to see what’s possible. :-) Weekdays and different types of exceptions all have different levels of precedence, so its important to understand how they can affect each other. More information on this can be found in the documentation on timeperiods.', 'xs:string', null, null, null, null, -8312690835136204981, -1, 0, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (8557935072981688076, -1524543709740163214, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-4856766876697112377', null, null, 7293023128106825054, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (8572948806853885052, -5591169885085062245, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-8931481580316879494', null, null, 1572282518553124849, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (8578426101052740930, -1303877515446836590, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-6365967536967575940', null, null, -5918718310695670706, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (8578710836506625266, -2448778582390853220, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-6553834200975625641', null, null, 7100503376313409434, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (8580416368593204866, -5591169885085062245, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#7611584779566472356', null, null, 3708927354344220064, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (8586158614296875708, null, null, 'inherits_parent', false, true, null, 'xs:string', null, null, null, null, -3885642522584708287, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (8591355325724728078, -4405087016263014431, 'Name', 'name', false, true, null, 'xs:string', null, null, null, null, 7013626182509928042, 1, 1, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (8592384189444487466, 8794022947635014930, 'Connected To', 'ConnectedTo', true, true, null, 'oneCMDB:#1325117208637117274', 'oneCMDB:#-2725368316691492923', null, null, null, 5068478429873757722, -1, 0, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (8600687416003227297, -7874494863476418912, 'Telephone', 'Telephone', false, false, null, 'xs:string', null, '(349) 100 2222', null, null, -3468993384790064691, -1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (8604884623828932640, -5664724427834647906, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, 4578950590119242594, 1, 0, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (8610654407299491600, 6234926010160578597, null, 'icon', false, true, 'Filename (no file extension) of icon image.', 'xs:string', null, 'application', null, null, 880600073926883392, 1, 0, '2016-12-28 16:01:48', '2016-12-28 16:01:48');
INSERT INTO onecmdb.t_attribute VALUES (8614992990572698894, 4141743598262281805, 'License Key', 'LicenseKey', false, true, null, 'xs:string', null, null, null, null, -5058684262027826612, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (8624111098768461231, -3085499285560338061, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'asset', null, null, -4622793531067663618, 1, 0, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (8654964600204987980, -5591169885085062245, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-3183565547364756951', null, null, -6115533275151606484, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (8655229608306903921, -4581708716320851787, 'Version', 'Version', false, true, null, 'xs:string', null, '2003', null, null, -3957867024269978762, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (8657148012729954267, -2642089993832413257, 'Organization', 'Organisation', true, false, null, 'oneCMDB:#5433965781192492423', 'oneCMDB:#-3863377389438174788', 'oneCMDB:#-5409633853396429971', -5409633853396429971, null, -6387231193564991043, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (8658662621716884485, -5012192948753502156, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#4865346868591089587', null, null, -7663871818674193036, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (8669994569001723820, -1524543709740163214, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#1198750186879466999', null, null, -2030835886613899331, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (8687830369545598881, null, null, 'process_perf_data', false, true, 'This directive is used to determine whether or not the processing of performance data is enabled for this host. Values: 0 = disable performance data processing, 1 = enable performance data processing.', 'xs:integer', null, null, null, null, -6108598720877681394, 1, 1, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (8689978495928094164, -3979711827897002409, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-7550256766207092122', null, null, 7425451699892628348, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (8698528994240499276, 7856327862604147733, 'Telephone', 'Telephone', false, false, null, 'xs:string', null, '(415) 345 6514', null, null, 6109272791907384000, -1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (8711832841281364150, -2709954261894967706, 'Financial Info', 'Financial', true, true, null, 'oneCMDB:#-4030583075832430887', 'oneCMDB:#-8025526327383936657', null, null, null, -1951039734141517216, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (8725891978250491710, -3979711827897002409, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#8385099514641563517', null, null, -4277694784537643537, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (8736448217539907239, 1751874924910027195, 'OS Family', 'Family', false, true, null, 'xs:string', null, 'UNIX', null, null, 4338151747944765362, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (8759294466183993141, 4905113550295563344, 'Financial Info', 'Financial', true, true, null, 'oneCMDB:#-4030583075832430887', 'oneCMDB:#-8025526327383936657', null, null, null, 2305821143961843722, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (8773668628571901062, null, null, 'contactgroups', true, true, 'This directive is used to identify the short name(s) of the contactgroup(s) that the contact belongs to. Multiple contactgroups should be separated by commas. This directive may be used as an alternative to (or in addition to) using the members directive in contactgroup definitions.', 'oneCMDB:#5505300793486821851', 'oneCMDB:#-3863377389438174788', null, null, null, 7535307617655623766, -1, 0, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (8776930028787107277, 9004826692431705540, 'Serial Number', 'SerialNumber', false, true, null, 'xs:string', null, null, null, null, 3177618163676867203, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (8792423818504516208, -6585772925938753313, 'Service', 'Service', true, false, null, 'oneCMDB:#-4678966175358915668', 'oneCMDB:#-3863377389438174788', 'oneCMDB:#-2808934720526286919', -2808934720526286919, null, -3267638157342394138, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (8793491690930269503, -2448778582390853220, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-8037939061718373803', null, null, -8590059496185737390, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (8794022947635014930, null, 'Connected To', 'ConnectedTo', true, true, null, 'oneCMDB:#1325117208637117274', 'oneCMDB:#-2725368316691492923', null, null, null, 1325117208637117274, -1, 0, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (8803084940571676442, 4844753175698833355, 'Uses', 'Uses', true, true, null, 'oneCMDB:#7491575733809579230', 'oneCMDB:#7815034950157158561', null, null, null, -3957867024269978762, -1, 0, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (8809116478553077059, 1499783309383705593, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'netcomp', null, null, -6624236066440953660, 1, 0, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (8811433943416598816, 1437994957852178078, 'Name', 'Name', false, true, null, 'xs:string', null, 'Red Hat Linux', null, null, -5508999552889392857, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (8827905967528068772, -1303877515446836590, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-4240101805785438545', null, null, -2862918293792131485, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (8832047149294128595, -8735963288769102515, 'OS Family', 'Family', false, false, null, 'xs:string', null, 'Linux', null, null, 225437699908619242, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (8835256010421567575, -707269280037726380, 'OS Family', 'Family', false, false, null, 'xs:string', null, 'Windows', null, null, -4632697620056224887, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (8847731704419839846, 4153708730521655734, 'Maintenance Agreement', 'Maintenance_Agreement', false, false, null, 'xs:anyURI', null, 'http://www.onecmdb.org/docs/BasicDatacenter/docs/Dummy_Maintenance_Agreement.pdf', null, null, -5055663519884480021, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (8874931696758346834, 8794022947635014930, 'Connected To', 'ConnectedTo', true, true, null, 'oneCMDB:#1325117208637117274', 'oneCMDB:#-2725368316691492923', null, null, null, 3331921274338303097, -1, 0, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (8905241569907256559, -4041564225165254727, null, 'icon', false, true, 'Filename (no file extension) of icon image.', 'xs:string', null, 'location', null, null, -3200591116467062442, 1, 0, '2016-12-28 16:01:48', '2016-12-28 16:01:48');
INSERT INTO onecmdb.t_attribute VALUES (8912792232268819960, -1628483030204260537, 'Version', 'Version', false, true, null, 'xs:string', null, 'Vista', null, null, 3225491047712550288, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (8922717621703483782, -4621625032515237069, 'Financial Info', 'Financial', true, false, null, 'oneCMDB:#-4030583075832430887', 'oneCMDB:#-8025526327383936657', 'oneCMDB:#4676329405888212410', 4676329405888212410, null, -3883718588737995702, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (8947263784685027279, -2448778582390853220, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-6553834200975625641', null, null, -2862918293792131485, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (8950313626086492550, 6035337425836414461, 'Installed On', 'InstalledOn', true, true, null, 'oneCMDB:#-1168493350923132665', 'oneCMDB:#4825510563751653831', null, null, null, -3957867024269978762, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (8955716340125913679, 966631586530060965, 'Name', 'Name', false, false, null, 'xs:string', null, 'Bravo', null, null, 5448442896062760526, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (8974649595013690019, -1303877515446836590, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-4240101805785438545', null, null, 5238339757547316102, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (8993754121495806471, -752431900193616089, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#4899068668525632836', null, null, -1485981234365493640, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (8999193916619702071, 8473318718519197175, null, 'icon', false, true, 'Filename (no file extension) of icon image.', 'xs:string', null, null, null, null, 6534311426540372396, 1, 0, '2016-12-27 17:05:10', '2016-12-27 17:05:10');
INSERT INTO onecmdb.t_attribute VALUES (9003919548792226997, -5479511719370999114, null, 'models', false, false, 'Stores loaded models at startup time. Models will not be loaded again.', 'xs:string', null, 'classpath:models/MDR_MODEL.xml', null, null, -309188504807460713, -1, 1, '2016-12-28 15:59:34', '2016-12-28 15:59:34');
INSERT INTO onecmdb.t_attribute VALUES (9004826692431705540, -2137477611325295485, 'Serial Number', 'SerialNumber', false, true, null, 'xs:string', null, null, null, null, 2317423548075909079, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (9004898481431169983, 454245518513090804, 'Used By', 'UsedBy', true, false, null, 'oneCMDB:#5433965781192492423', 'oneCMDB:#-8025526327383936657', 'oneCMDB:#5882298149217477979', 5882298149217477979, null, -4240101805785438545, -1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (9011789143889559455, -771882460194241171, null, 'icon', false, true, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, -1122480518350212068, 1, 0, '2016-12-27 17:05:12', '2016-12-27 17:05:12');
INSERT INTO onecmdb.t_attribute VALUES (9019060738934722102, -5686788269331989925, 'Name', 'Name', false, true, null, 'xs:string', null, 'Operational Status', null, null, 41965733952263877, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (9019490494036868758, -3085499285560338061, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'asset', null, null, 7611584779566472356, 1, 0, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (9020656915270580964, 2684607629046987153, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, -8597405831502449749, 1, 0, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (9057919287465543558, -2338491134665967324, 'Status', 'Status', true, true, null, 'oneCMDB:#41965733952263877', 'oneCMDB:#-8025526327383936657', null, null, null, 1325117208637117274, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (9057925470585307046, null, 'Target', 'target', true, true, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, null, null, null, -453323538046497526, 1, 1, '2016-12-27 17:05:09', '2016-12-27 17:05:09');
INSERT INTO onecmdb.t_attribute VALUES (9060213008561656592, -2448778582390853220, 'Target', 'target', true, true, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, null, null, null, -2725368316691492923, 1, 1, '2016-12-28 16:01:48', '2016-12-28 16:01:48');
INSERT INTO onecmdb.t_attribute VALUES (9062681085159940662, -5591169885085062245, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-8931481580316879494', null, null, -2137122543479173001, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (9063558679327346444, null, null, 'retry_check_interval', false, true, 'Un documented in Nagios 3.x version.', 'xs:integer', null, null, null, null, 8986099038471647984, 1, 1, '2016-12-28 16:01:50', '2016-12-28 16:01:50');
INSERT INTO onecmdb.t_attribute VALUES (9075969446161509132, -4933985257082236522, 'Maintenance Info', 'Maintenance', true, true, null, 'oneCMDB:#7154244997109246053', 'oneCMDB:#-8025526327383936657', null, null, null, -5058684262027826612, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (9076586897341456209, 9197003183923643110, null, 'icon', false, true, 'Filename (no file extension) of icon image.', 'xs:string', null, null, null, null, 7676013053083698339, 1, 0, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (9100241127498511091, 5829332994641049764, 'Service', 'Service', true, true, null, 'oneCMDB:#-4678966175358915668', 'oneCMDB:#-3863377389438174788', null, null, null, 2166601380421831026, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (9128748876644682698, -752431900193616089, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#5448442896062760526', null, null, -4798847328596715998, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (9133239401059814575, 2044265626984459497, 'Status', 'Status', true, false, null, 'oneCMDB:#41965733952263877', 'oneCMDB:#-8025526327383936657', 'oneCMDB:#-7150282703580789614', -7150282703580789614, null, 6936928594960133541, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (9139225598348518079, -1922218887302224890, 'Location', 'Location', true, true, null, 'oneCMDB:#-3200591116467062442', 'oneCMDB:#-8025526327383936657', null, null, null, 2166601380421831026, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (9156896918133294660, -2892704986996219486, 'IPv6 Address', 'IPv6Address', false, true, null, 'xs:string', null, null, null, null, -239896225795807576, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (9164351588926366257, -4738675488340730940, null, 'icon', false, true, 'Filename (no file extension) of icon image.', 'xs:string', null, 'job', null, null, 5029444671295990319, 1, 0, '2016-12-27 17:05:12', '2016-12-27 17:05:12');
INSERT INTO onecmdb.t_attribute VALUES (9173128876453158786, -1524543709740163214, 'Source', 'source', true, false, 'The source of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#-6624236066440953660', null, null, -415785062668355818, 1, 1, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (9180838692583090870, -5686788269331989925, 'Name', 'Name', false, true, null, 'xs:string', null, 'Financials', null, null, -4030583075832430887, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (9181728580402412493, -8087070549377169868, 'Name', 'Name', false, true, null, 'xs:string', null, 'Net Printer', null, null, 3331921274338303097, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (9181951587262288335, -4514408188315887915, 'Target', 'target', true, false, 'The target of this reference', 'oneCMDB:#8189059067813029546', null, 'oneCMDB:#1475166283656461378', null, null, 2708301732820392314, 1, 1, '2016-12-28 16:01:51', '2016-12-28 16:01:51');
INSERT INTO onecmdb.t_attribute VALUES (9183059712198291633, 1518384593752853684, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'mdrConfig', null, null, -4474468114987171564, 1, 0, '2016-12-28 16:01:48', '2016-12-28 16:01:48');
INSERT INTO onecmdb.t_attribute VALUES (9183926234340752259, null, 'Exit Code', 'exitCode', false, true, null, 'xs:string', null, null, null, null, 2386299380460541961, 1, 1, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (9188319829497575433, 8794022947635014930, 'Connected To', 'ConnectedTo', true, false, null, 'oneCMDB:#1325117208637117274', 'oneCMDB:#-2725368316691492923', 'oneCMDB:#3526545237578377375', 3526545237578377375, null, 1198750186879466999, -1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52');
INSERT INTO onecmdb.t_attribute VALUES (9189620473763090763, 5729956576303207759, 'IPv4 Address', 'IPAddress', false, true, null, 'xs:string', null, null, null, null, 3331921274338303097, 1, 1, '2016-12-28 16:01:49', '2016-12-28 16:01:49');
INSERT INTO onecmdb.t_attribute VALUES (9197003183923643110, 769360947310329595, null, 'icon', false, true, 'Filename (no file extension) of icon image.', 'xs:string', null, null, null, null, 6793847683509953458, 1, 0, '2016-12-28 15:59:32', '2016-12-28 15:59:32');
INSERT INTO onecmdb.t_attribute VALUES (9210594737925533850, -955580988551008358, null, 'icon', false, true, 'Filename (no file extension) of icon image.', 'xs:string', null, 'resource', null, null, -2029449984936709137, 1, 0, '2016-12-28 16:01:48', '2016-12-28 16:01:48');
INSERT INTO onecmdb.t_attribute VALUES (9216531361722906915, -1478756811695415278, null, 'icon', false, false, 'Filename (no file extension) of icon image.', 'xs:string', null, 'reference', null, null, -8590059496185737390, 1, 0, '2016-12-28 16:01:52', '2016-12-28 16:01:52'); |
<gh_stars>0
-- phpMyAdmin SQL Dump
-- version 4.8.3
-- https://www.phpmyadmin.net/
--
-- Host: localhost
-- Generation Time: Nov 25, 2018 at 01:52 PM
-- Server version: 10.1.37-MariaDB
-- PHP Version: 7.2.12
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "-03: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: `Biblioteca`
--
-- --------------------------------------------------------
--
-- Table structure for table `Articulos`
--
CREATE TABLE `Articulos` (
`ID_Articulo` int(11) NOT NULL,
`Descripcion` varchar(45) COLLATE utf8_bin NOT NULL,
`Fecha_Alta` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
-- --------------------------------------------------------
--
-- Table structure for table `Clientes`
--
CREATE TABLE `Clientes` (
`ID_Cliente` int(11) NOT NULL,
`ID_Tipo_Usuario` int(11) NOT NULL,
`Nombre` varchar(75) COLLATE utf8_bin NOT NULL,
`Apellido` varchar(75) COLLATE utf8_bin NOT NULL,
`Direccion` varchar(75) COLLATE utf8_bin NOT NULL,
`Localidad` varchar(75) COLLATE utf8_bin NOT NULL,
`Telefono` varchar(75) COLLATE utf8_bin NOT NULL,
`Fecha_Alta` datetime NOT NULL,
`Correo` varchar(255) COLLATE utf8_bin NOT NULL,
`Usuario` varchar(255) COLLATE utf8_bin NOT NULL,
`Clave` varchar(255) COLLATE utf8_bin NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
--
-- Dumping data for table `Clientes`
--
INSERT INTO `Clientes` (`ID_Cliente`, `ID_Tipo_Usuario`, `Nombre`, `Apellido`, `Direccion`, `Localidad`, `Telefono`, `Fecha_Alta`, `Correo`, `Usuario`, `Clave`) VALUES
(1, 1, 'Cristian', 'Leguizamón', 'Av. Directorio 2687', 'Flores', '1123912921', '2018-11-24 15:31:25', '<EMAIL>', 'pudinero', '$2y$10$i.MRhDFCCe/pTtilcNodi.IS/5/gCsrfnxz.KGjXSTRtpQyO89v8K'),
(2, 2, 'Don', 'Magoya', 'Calle Falsa 123', 'Springfield', '12345678', '2018-11-25 09:08:05', '<EMAIL>', 'magoya', '$2y$10$E9gx4Vgnf1P9Pd/MkfgMfuWwppocyLumAqn/6eE3jEKoG/L0x6JAe');
-- --------------------------------------------------------
--
-- Table structure for table `Descuentos`
--
CREATE TABLE `Descuentos` (
`ID_Cliente` int(11) NOT NULL,
`Cant_Libros` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
-- --------------------------------------------------------
--
-- Table structure for table `Facturas`
--
CREATE TABLE `Facturas` (
`ID_Factura` int(11) NOT NULL,
`ID_Cliente` int(11) NOT NULL,
`Fecha` datetime NOT NULL,
`Importe` float NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
-- --------------------------------------------------------
--
-- Table structure for table `Precios`
--
CREATE TABLE `Precios` (
`ID_Articulo` int(11) NOT NULL,
`Precio` float NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
-- --------------------------------------------------------
--
-- Table structure for table `Stock`
--
CREATE TABLE `Stock` (
`ID_Articulo` int(11) NOT NULL,
`Stock_Actual` int(11) NOT NULL,
`Stock_Minimo` int(11) NOT NULL,
`Stock_Reponer` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
-- --------------------------------------------------------
--
-- Table structure for table `Tipo_Usuarios`
--
CREATE TABLE `Tipo_Usuarios` (
`ID_Tipo_Usuario` int(11) NOT NULL,
`Descripcion` varchar(75) COLLATE utf8_bin NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
--
-- Dumping data for table `Tipo_Usuarios`
--
INSERT INTO `Tipo_Usuarios` (`ID_Tipo_Usuario`, `Descripcion`) VALUES
(1, 'Administrador'),
(2, 'Cliente');
--
-- Indexes for dumped tables
--
--
-- Indexes for table `Articulos`
--
ALTER TABLE `Articulos`
ADD PRIMARY KEY (`ID_Articulo`);
--
-- Indexes for table `Clientes`
--
ALTER TABLE `Clientes`
ADD PRIMARY KEY (`ID_Cliente`);
--
-- Indexes for table `Descuentos`
--
ALTER TABLE `Descuentos`
ADD KEY `ID_Cliente` (`ID_Cliente`);
--
-- Indexes for table `Facturas`
--
ALTER TABLE `Facturas`
ADD PRIMARY KEY (`ID_Factura`),
ADD KEY `ID_Cliente` (`ID_Cliente`);
--
-- Indexes for table `Precios`
--
ALTER TABLE `Precios`
ADD KEY `ID_Articulo` (`ID_Articulo`);
--
-- Indexes for table `Stock`
--
ALTER TABLE `Stock`
ADD KEY `ID_Articulo` (`ID_Articulo`);
--
-- Indexes for table `Tipo_Usuarios`
--
ALTER TABLE `Tipo_Usuarios`
ADD PRIMARY KEY (`ID_Tipo_Usuario`),
ADD UNIQUE KEY `ID_Tipo_Usuario` (`ID_Tipo_Usuario`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `Articulos`
--
ALTER TABLE `Articulos`
MODIFY `ID_Articulo` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `Clientes`
--
ALTER TABLE `Clientes`
MODIFY `ID_Cliente` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `Facturas`
--
ALTER TABLE `Facturas`
MODIFY `ID_Factura` int(11) NOT NULL AUTO_INCREMENT;
--
-- Constraints for dumped tables
--
--
-- Constraints for table `Descuentos`
--
ALTER TABLE `Descuentos`
ADD CONSTRAINT `Descuentos_ibfk_1` FOREIGN KEY (`ID_Cliente`) REFERENCES `Clientes` (`ID_Cliente`);
--
-- Constraints for table `Facturas`
--
ALTER TABLE `Facturas`
ADD CONSTRAINT `Facturas_ibfk_1` FOREIGN KEY (`ID_Cliente`) REFERENCES `Clientes` (`ID_Cliente`);
--
-- Constraints for table `Precios`
--
ALTER TABLE `Precios`
ADD CONSTRAINT `Precios_ibfk_1` FOREIGN KEY (`ID_Articulo`) REFERENCES `Articulos` (`ID_Articulo`);
--
-- Constraints for table `Stock`
--
ALTER TABLE `Stock`
ADD CONSTRAINT `Stock_ibfk_1` FOREIGN KEY (`ID_Articulo`) REFERENCES `Articulos` (`ID_Articulo`);
COMMIT;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
<filename>tpcds-multi-engine/spark-prepared/q1.sql<gh_stars>0
WITH customer_total_return AS
( SELECT
sr_customer_sk AS ctr_customer_sk,
sr_store_sk AS ctr_store_sk,
sum(sr_return_amt) AS ctr_total_return
FROM ${database}.store_returns, ${database}.date_dim
WHERE sr_returned_date_sk = d_date_sk AND d_year = 2000
GROUP BY sr_customer_sk, sr_store_sk)
SELECT c_customer_id
FROM customer_total_return ctr1, ${database}.store, ${database}.customer
WHERE ctr1.ctr_total_return >
(SELECT avg(ctr_total_return) * 1.2
FROM customer_total_return ctr2
WHERE ctr1.ctr_store_sk = ctr2.ctr_store_sk)
AND s_store_sk = ctr1.ctr_store_sk
AND s_state = 'TN'
AND ctr1.ctr_customer_sk = c_customer_sk
ORDER BY c_customer_id
LIMIT 100
|
CREATE TABLE `engine_local_logic_file_version` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`logic_id` int(11) DEFAULT NULL,
`version` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; |
alter table audit_event
add column error_code varchar(255);
|
--NetVision data extract for DIRBS
--Reuse CRC data to generate dummy operator input dump for DIRBS
--This version takes all the 5 months data for one operator = currently written as Tigo, mapping to ufone
--Note due to subtle differences in the datasets, can't just replace the table names with other Colombian operators - need to examine how data was uploaded
--remember to set the $mylimit variable to ALL when you are ready to do all the data!
--Source Tables
--NV_TABLE_DECLARE_BEGIN
--NV_TABLE_DECLARE_TABLE = $src_511,NV_COLOMBIA_MOVILE_SA_ESP_QTLBASICRAW_ROBERTT_20160107_164211882
--NV_TABLE_DECLARE_TABLE = $src_512,NV_COLOMBIA_MOVILE_SA_ESP_QTLBASICRAW_TOMASG_20160212_223601473
--NV_TABLE_DECLARE_TABLE = $src_601,NV_TIGO_MILLICOM_COLOMBIA_QTLCALLRECORDS_OP_TOMASG_20160328_092803025
--NV_TABLE_DECLARE_TABLE = $src_602,NV_TIGO_MILLICOM_COLOMBIA_QTLCALLRECORDS_OP_DSALEK_20160417_081005115
--NV_TABLE_DECLARE_TABLE = $src_603,NV_TIGO_MILLICOM_COLOMBIA_QTLCALLRECORDS_OP_DSALEK_20160515_001119813
--NV_TABLE_DECLARE_END
--Config Variables
--NV_VARIABLE_DECLARE_BEGIN
--NVN variable syntax doesn't support commas, so add multiple options for plmnid separately. Must be same length as each other and new plmnid:
--NV_VARIABLE_DECLARE_VARIABLE = $existing_plmnid1,string,'732103'
--NV_VARIABLE_DECLARE_VARIABLE = $existing_plmnid2,string,'732111'
--NV_VARIABLE_DECLARE_VARIABLE = $new_plmnid,string,'410030'
--NV_VARIABLE_DECLARE_VARIABLE = $msisdn_pre,string,'92'
--NV_VARIABLE_DECLARE_VARIABLE = $mylimit,string,100
--NV_VARIABLE_DECLARE_END
-- Copyright (c) 2018 Qualcomm Technologies, Inc.
--
-- All rights reserved.
--
--
--
-- Redistribution and use in source and binary forms, with or without modification, are permitted (subject to the
-- limitations in the disclaimer below) provided that the following conditions are met:
--
--
-- * Redistributions of source code must retain the above copyright notice, this list of conditions and the following
-- disclaimer.
--
-- * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following
-- disclaimer in the documentation and/or other materials provided with the distribution.
--
-- * Neither the name of Qualcomm Technologies, Inc. nor the names of its contributors may be used to endorse or promote
-- products derived from this software without specific prior written permission.
--
-- NO EXPRESS OR IMPLIED LICENSES TO ANY PARTY'S PATENT RIGHTS ARE GRANTED BY THIS LICENSE. THIS SOFTWARE IS PROVIDED BY
-- THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
-- THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
-- COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-- DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
-- OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
-- TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-- POSSIBILITY OF SUCH DAMAGE.
--
--log outputs table
create temp table loggy (
myindex int
,descr varchar(80)
,num bigint
,mycomment varchar(100)
)distribute on random;
insert into loggy (myindex, descr, num, mycomment) select 100, 'total count 2015-11', count(*), NULL from $src_511;
insert into loggy (myindex, descr, num, mycomment) select 200, 'total count 2015-12', count(*), NULL from $src_512;
insert into loggy (myindex, descr, num, mycomment) select 300, 'total count 2016-01', count(*), NULL from $src_601;
insert into loggy (myindex, descr, num, mycomment) select 400, 'total count 2016-02', count(*), NULL from $src_602;
insert into loggy (myindex, descr, num, mycomment) select 500, 'total count 2016-03', count(*), NULL from $src_603;
--do export
--try to preserve some interest in the data by only rewriting MSISDN/IMSI prefix if matches the original home operator
--Nov data has date_logged set to a single date, so use fetch_date_time instead
create temp table op1 as
(
select distinct
to_char(to_date(fetch_date_time, 'DD/MM/YYYY HH:MI:SS'),'YYYYMMDD') date
,imei
,case
when substr(imsi,1,length($existing_plmnid1)) in ($existing_plmnid1,$existing_plmnid2) then $new_plmnid || substr(imsi,length($existing_plmnid1)+1,length(imsi)-length($existing_plmnid1))
else IMSI
end imsi
,case
when substr(imsi,1,length($existing_plmnid1)) in ($existing_plmnid1,$existing_plmnid2) then $msisdn_pre || substr(imsi, length($msisdn_pre)+1, length(imsi)-length($msisdn_pre))
else imsi
end msisdn
from $src_511
where date between '20151101' and '20151130'
limit $mylimit
) distribute on random;
--dec data has date_logged as a date, not a varchar
create temp table op2 as
(
select distinct
to_char(date_logged, 'YYYYMMDD') date
,imei
,case
when substr(imsi,1,length($existing_plmnid1)) in ($existing_plmnid1,$existing_plmnid2) then $new_plmnid || substr(imsi,length($existing_plmnid1)+1,length(imsi)-length($existing_plmnid1))
else IMSI
end imsi
,case
when substr(imsi,1,length($existing_plmnid1)) in ($existing_plmnid1,$existing_plmnid2) then $msisdn_pre || substr(imsi, length($msisdn_pre)+1, length(imsi)-length($msisdn_pre))
else imsi
end msisdn
from $src_512
where date between '20151201' and '20151231'
limit $mylimit
) distribute on random;
create temp table op3 as
(
select distinct
date_logged date
,imei
,case
when substr(imsi,1,length($existing_plmnid1)) in ($existing_plmnid1,$existing_plmnid2) then $new_plmnid || substr(imsi,length($existing_plmnid1)+1,length(imsi)-length($existing_plmnid1))
else IMSI
end imsi
,case
when substr(imsi,1,length($existing_plmnid1)) in ($existing_plmnid1,$existing_plmnid2) then $msisdn_pre || substr(imsi, length($msisdn_pre)+1, length(imsi)-length($msisdn_pre))
else imsi
end msisdn
from $src_601
where date between '20160101' and '20160131'
limit $mylimit
) distribute on random;
create temp table op4 as
(
select distinct
date_logged date
,imei
,case
when substr(imsi,1,length($existing_plmnid1)) in ($existing_plmnid1,$existing_plmnid2) then $new_plmnid || substr(imsi,length($existing_plmnid1)+1,length(imsi)-length($existing_plmnid1))
else IMSI
end imsi
,case
when substr(imsi,1,length($existing_plmnid1)) in ($existing_plmnid1,$existing_plmnid2) then $msisdn_pre || substr(imsi, length($msisdn_pre)+1, length(imsi)-length($msisdn_pre))
else imsi
end msisdn
from $src_602
where date between '20160201' and '20160229'
limit $mylimit
) distribute on random;
create temp table op5 as
(
select distinct
date_logged date
,imei
,case
when substr(imsi,1,length($existing_plmnid1)) in ($existing_plmnid1,$existing_plmnid2) then $new_plmnid || substr(imsi,length($existing_plmnid1)+1,length(imsi)-length($existing_plmnid1))
else IMSI
end imsi
,case
when substr(imsi,1,length($existing_plmnid1)) in ($existing_plmnid1,$existing_plmnid2) then $msisdn_pre || substr(imsi, length($msisdn_pre)+1, length(imsi)-length($msisdn_pre))
else imsi
end msisdn
from $src_603
where date between '20160301' and '20160331'
limit $mylimit
) distribute on random;
insert into loggy (myindex, descr, num, mycomment) select 600, 'distinct count 2015-11', count(*), NULL from op1;
insert into loggy (myindex, descr, num, mycomment) select 700, 'distinct count 2015-12', count(*), NULL from op2;
insert into loggy (myindex, descr, num, mycomment) select 800, 'distinct count 2016-01', count(*), NULL from op3;
insert into loggy (myindex, descr, num, mycomment) select 900, 'distinct count 2016-02', count(*), NULL from op4;
insert into loggy (myindex, descr, num, mycomment) select 1000, 'distinct count 2016-03', count(*), NULL from op5;
--compute null counts, to compare with DIRBS import checks
insert into loggy (myindex, descr, num, mycomment)
select
1100
,'count any null in triplet 2015-11'
,count(*)
,NULL
from
op1
where
imsi = '' or imsi is null
or imei = '' or imei is null
or msisdn = '' or msisdn is null
;
insert into loggy (myindex, descr, num, mycomment)
select
1200
,'count any null in triplet 2015-12'
,count(*)
,NULL
from
op2
where
imsi = '' or imsi is null
or imei = '' or imei is null
or msisdn = '' or msisdn is null
;
insert into loggy (myindex, descr, num, mycomment)
select
1300
,'count any null in triplet 2016-01'
,count(*)
,NULL
from
op3
where
imsi = '' or imsi is null
or imei = '' or imei is null
or msisdn = '' or msisdn is null
;
insert into loggy (myindex, descr, num, mycomment)
select
1400
,'count any null in triplet 2016-02'
,count(*)
,NULL
from
op4
where
imsi = '' or imsi is null
or imei = '' or imei is null
or msisdn = '' or msisdn is null
;
insert into loggy (myindex, descr, num, mycomment)
select
1500
,'count any null in triplet 2016-03'
,count(*)
,NULL
from
op5
where
imsi = '' or imsi is null
or imei = '' or imei is null
or msisdn = '' or msisdn is null
;
select myindex, descr,num, mycomment from loggy order by myindex;
--filter the output in case any stray characters made it through
select * from op1 where regexp_like(imei, '^[0-9A-Fa-f*#]+$') and regexp_like(imsi, '^[0-9]+$');
select * from op2 where regexp_like(imei, '^[0-9A-Fa-f*#]+$') and regexp_like(imsi, '^[0-9]+$');
select * from op3 where regexp_like(imei, '^[0-9A-Fa-f*#]+$') and regexp_like(imsi, '^[0-9]+$');
select * from op4 where regexp_like(imei, '^[0-9A-Fa-f*#]+$') and regexp_like(imsi, '^[0-9]+$');
select * from op5 where regexp_like(imei, '^[0-9A-Fa-f*#]+$') and regexp_like(imsi, '^[0-9]+$'); |
RESTORE DATABASE testdata FROM DISK = "/var/opt/mssql/backup/avstemning_sap_data.bak" WITH
MOVE "avstemning_sap_data" to "/var/opt/mssql/data/avstemning_sap_data.mdf",
MOVE "avstemning_sap_data_Log" to "/var/opt/mssql/data/avstemning_sap_data.ldf",
NOUNLOAD, STATS = 10 |
CREATE SCHEMA `bank` ; |
-- We carry out operations on a temporary table this is to prevent the
-- transaction acquiring an exclusive lock on the existing table. See
-- https://github.com/ebmdatalab/openprescribing/issues/547 for
-- discussion.
SET temp_buffers = '500MB'; -- enough for dmd_product to fit into RAM
drop table if exists dmd_product_temp;
-- Section 6 of Implementation Guide
create table dmd_product_temp (
dmdid bigint primary key,
bnf_code text,
vpid bigint,
name text,
full_name text,
ema text,
pres_statcd integer,
avail_restrictcd integer,
product_type integer,
non_availcd integer,
concept_class integer,
nurse_f boolean,
dent_f boolean,
prod_order_no text,
sched_1 boolean,
sched_2 boolean,
padm boolean,
fp10_mda boolean,
acbs boolean,
assort_flav boolean,
catcd integer,
tariff_category integer,
flag_imported boolean,
flag_broken_bulk boolean,
flag_non_bioequivalence boolean,
flag_special_containers boolean
);
|
<gh_stars>0
SELECT
`tc`.`job_during_journey` AS `job_name`
FROM
`journeys` AS `j`
JOIN
`travel_cards` AS `tc` ON `j`.`id` = `tc`.`journey_id`
ORDER BY DATEDIFF(`j`.`journey_end`, `j`.`journey_start`) DESC
LIMIT 1; |
CREATE TABLE [Departments](
[Id] INT PRIMARY KEY IDENTITY NOT NULL,
[Name] VARCHAR(50) NOT NULL
)
CREATE TABLE [Status] (
[Id] INT PRIMARY KEY IDENTITY NOT NULL,
[Label] VARCHAR(30) NOT NULL
)
CREATE TABLE [Users] (
[Id] INT PRIMARY KEY IDENTITY NOT NULL,
[Username] VARCHAR(30) NOT NULL UNIQUE,
[Password] VARCHAR(50) NOT NULL,
[Name] NVARCHAR(50),
[Birthdate] DATETIME2,
[Age] INT,
CHECK (Age > 14 AND Age < 110),
[Email] NVARCHAR(50) NOT NULL
)
CREATE TABLE [Employees] (
[Id] INT PRIMARY KEY IDENTITY NOT NULL,
[FirstName] VARCHAR(25),
[LastName] VARCHAR(25),
[Birthdate] DATETIME2,
[Age] INT,
CHECK(Age > 18 AND Age < 110),
[DepartmentId] INT FOREIGN KEY REFERENCES [Departments]([Id])
)
CREATE TABLE [Categories](
[Id] INT PRIMARY KEY IDENTITY NOT NULL,
[Name] VARCHAR(50) NOT NULL,
[DepartmentId] INT FOREIGN KEY REFERENCES [Departments]([Id]) NOT NULL
)
CREATE TABLE [Reports] (
[Id] INT PRIMARY KEY IDENTITY NOT NULL,
[CategoryId] INT FOREIGN KEY REFERENCES [Categories]([Id]) NOT NULL,
[StatusId] INT FOREIGN KEY REFERENCES [Status]([Id]),
[OpenDate] DATETIME2 NOT NULL,
[CloseDate] DATETIME2,
[Description] VARCHAR(250) NOT NULL,
[UserId] INT FOREIGN KEY REFERENCES [Users]([Id]) NOT NULL,
[EmployeeId] INT FOREIGN KEY REFERENCES [Employees]([Id])
)
INSERT INTO [Employees] ([FirstName], [LastName], [Birthdate], [DepartmentId])
VALUES
('Marlo', 'O"MAlley', '1958-09-21', 1),
('Niki', 'Stanaghan', '1969-11-26', 4),
('Ayrton', 'Senna', '1960-03-21', 9),
('Ronnie', 'Peterson', '1944-02-14', 9),
('Giovanna', 'Amati', '1959-07-20', 5)
INSERT INTO [Reports] ([CategoryId], [StatusId], [OpenDate], [CloseDate], [Description], [UserId], [EmployeeId])
VALUES
(1, 1, '2017-04-13', NULL, 'Stuck Road on Str.133', 6, 2),
(6, 3, '2015-09-05', '2015-12-06', 'Charity trail running', 3, 5),
(14, 2, '2015-09-07', NULL, 'Falling bricks on Str.58', 5, 2),
(4, 3, '2017-07-03', '2017-07-06', 'Cut off streetlight on Str.11', 1, 1)
UPDATE [Reports]
SET [CloseDate] = GETDATE()
WHERE [CloseDate] IS NULL
DELETE FROM [Reports]
WHERE [Id] = 4
SELECT [Description], CONVERT(VARCHAR, [OpenDate], 105)
FROM [Reports]
WHERE [EmployeeId] IS NULL
ORDER BY [OpenDate], [Description]
SELECT [Description], [Name] AS [CategoryName]
FROM [Reports] AS r
LEFT JOIN [Categories] AS c
ON r.CategoryId = c.Id
ORDER BY [Description], [CategoryName]
SELECT TOP(5) [Name] AS [CategoryName], COUNT(c.[Id]) AS [ReportsNumber]
FROM [Categories] AS c
JOIN [Reports] AS r
ON c.Id = r.CategoryId
GROUP BY c.[Name]
ORDER BY [ReportsNumber] DESC, [CategoryName]
SELECT u.[Username], c.[Name] AS [CategoryName]
FROM [Categories] AS c
JOIN [Reports] AS r
ON c.Id = r.CategoryId
JOIN [Users] AS u
ON r.UserId = u.Id
WHERE DATEPART(MONTH, u.[Birthdate]) = DATEPART(MONTH, r.OpenDate) AND DATEPART(DAY, u.[Birthdate]) = DATEPART(DAY, r.OpenDate)
ORDER BY [Username], [CategoryName]
SELECT CASE WHEN COALESCE(e.FirstName,e.LastName) IS NOT NULL
THEN CONCAT(e.FirstName,' ',e.LastName)
ELSE
'None'
END AS Employee, ISNULL(d.[Name], 'None')
AS [Department], ISNULL(c.[Name], 'None') AS [Category],
ISNULL(r.[Description], 'None'), ISNULL(CONVERT(VARCHAR, r.[OpenDate], 104), 'None'), ISNULL(s.[Label], 'None')
AS [Status], ISNULL(u.[Name], 'None') AS [User]
FROM Reports AS r
LEFT JOIN Employees AS e
ON e.Id = r.EmployeeId
LEFT JOIN Categories AS c
ON c.[Id] = r.[CategoryId]
LEFT JOIN [Departments] AS d
ON d.[Id] = e.[DepartmentId]
LEFT JOIN [Status] AS s
ON r.[StatusId] = s.[Id]
LEFT JOIN [Users] AS u
ON u.[Id] = r.[UserId]
ORDER BY e.[FirstName] DESC, e.[LastName] DESC, [Department], [Category], [Description], [OpenDate], [Status], [User]
CREATE FUNCTION udf_HoursToComplete(@StartDate DATETIME, @EndDate DATETIME)
RETURNS INT
BEGIN
RETURN ( SELECT
ISNULL(CASE
WHEN DATEDIFF(HOUR, @StartDate, @EndDate) = 0 THEN 0
ELSE DATEDIFF(HOUR,@StartDate, @EndDate) END,0)
)
END
SELECT dbo.udf_HoursToComplete(OpenDate, CloseDate) AS TotalHours
FROM Reports
|
<filename>oauth2-server/src/main/resources/db/migration/V0.7__add_oauth2.sql
-- 官方参考链接
-- https://github.com/spring-projects/spring-security-oauth/blob/master/spring-security-oauth2/src/test/resources/schema.sql
CREATE TABLE `oauth_client_details` (
`client_id` varchar(128) NOT NULL COMMENT '主键,客户端ID',
`resource_ids` varchar(256) DEFAULT NULL COMMENT '客户端所能访问的资源ID集合,多个资源时用英文逗号分隔',
`client_secret` varchar(256) DEFAULT NULL COMMENT '客户端访问密钥',
`scope` varchar(256) DEFAULT NULL COMMENT '客户端申请的权限范围,多个权限范围用英文逗号分隔',
`authorized_grant_types` varchar(256) DEFAULT NULL COMMENT '客户端支持的授权类型,支持多个类型用英文逗号分隔',
`web_server_redirect_uri` varchar(256) DEFAULT NULL COMMENT '客户端的重定向URI,仅限authorization_code或implicit类型',
`authorities` varchar(256) DEFAULT NULL COMMENT '客户端所拥有的Spring Security的权限值',
`access_token_validity` int(11) DEFAULT NULL COMMENT '客户端的access_token的有效时间值,单位:秒',
`refresh_token_validity` int(11) DEFAULT NULL COMMENT '客户端的refresh_token的有效时间值,单位:秒',
`additional_information` varchar(4096) DEFAULT NULL COMMENT '预留字段,必须为JSON数据格式',
`autoapprove` varchar(256) DEFAULT NULL COMMENT '设置用户是否自动Approval操作,默认值为false',
PRIMARY KEY (`client_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='OAuth2客户端详情表';
INSERT INTO `oauth_client_details` (`client_id`, `client_secret`, `scope`, `authorized_grant_types`, `web_server_redirect_uri`, `access_token_validity`, `refresh_token_validity`)
VALUES ('client', '$2a$10$/FdlWQWV0JNGNF4WU4tJIeMT8QQMrg9jq8jPu7QGkTMypZ6Eb6wVa', 'app', 'authorization_code,password,refresh_token', 'https://www.incarcloud.com', 43200, 2592000);
|
<reponame>extra-curricular-schooling/WebAPI-Demo
CREATE PROCEDURE [dbo].[SweepStakeEntry_Delete]
@SweepstakesID [int],
@UserName [nvarchar](20)
AS
BEGIN
DELETE [dbo].[SweepStakeEntry]
WHERE (([SweepstakesID] = @SweepstakesID) AND ([UserName] = @UserName))
END |
<reponame>Binny29/bluegreytechci
-- phpMyAdmin SQL Dump
-- version 4.8.0.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Jun 20, 2019 at 06:44 AM
-- Server version: 10.1.32-MariaDB
-- PHP Version: 5.6.36
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: `mentor`
--
-- --------------------------------------------------------
--
-- Table structure for table `logs`
--
CREATE TABLE `logs` (
`id` int(11) NOT NULL,
`errno` int(2) NOT NULL,
`errtype` varchar(32) NOT NULL,
`errstr` text NOT NULL,
`errfile` varchar(255) NOT NULL,
`errline` int(4) NOT NULL,
`user_agent` varchar(120) NOT NULL,
`ip_address` varchar(45) NOT NULL DEFAULT '0',
`time` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `logs`
--
INSERT INTO `logs` (`id`, `errno`, `errtype`, `errstr`, `errfile`, `errline`, `user_agent`, `ip_address`, `time`) VALUES
(1, 2, 'Warning', 'include(C:\\xampp\\htdocs\\mentor\\application\\views\\errors\\html\\error_general.php): failed to open stream: No such file or directory', 'C:\\xampp\\htdocs\\mentor\\system\\core\\Exceptions.php', 182, 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.80 Safari/537.36', '::1', '2019-06-13 08:38:26'),
(2, 2, 'Warning', 'include(): Failed opening \'C:\\xampp\\htdocs\\mentor\\application\\views\\errors\\html\\error_general.php\' for inclusion (include_path=\'C:\\xampp\\php\\PEAR\')', 'C:\\xampp\\htdocs\\mentor\\system\\core\\Exceptions.php', 182, 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.80 Safari/537.36', '::1', '2019-06-13 08:38:26'),
(3, 8, 'Notice', 'Undefined variable: session', 'C:\\xampp\\htdocs\\mentor\\application\\controllers\\Home.php', 43, 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.80 Safari/537.36', '::1', '2019-06-13 08:51:37'),
(4, 8, 'Notice', 'Undefined variable: session', 'C:\\xampp\\htdocs\\mentor\\application\\controllers\\Home.php', 43, 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.80 Safari/537.36', '::1', '2019-06-13 08:52:21'),
(5, 8, 'Notice', 'Undefined variable: session', 'C:\\xampp\\htdocs\\mentor\\application\\controllers\\Home.php', 43, 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.80 Safari/537.36', '::1', '2019-06-13 08:52:47'),
(6, 8, 'Notice', 'Undefined variable: session', 'C:\\xampp\\htdocs\\mentor\\application\\controllers\\Home.php', 43, 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.80 Safari/537.36', '::1', '2019-06-13 08:57:56');
-- --------------------------------------------------------
--
-- Table structure for table `tblassesmenttype`
--
CREATE TABLE `tblassesmenttype` (
`AssesmentTypeId` int(11) NOT NULL,
`StreamTypeId` int(11) NOT NULL,
`ProgramId` int(11) NOT NULL,
`AssesmentName` varchar(200) NOT NULL,
`IsActive` int(1) NOT NULL,
`CreatedBy` int(11) NOT NULL,
`CreatedOn` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
`UpdatedBy` int(11) NOT NULL,
`UpdatedOn` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `tblassesmenttype`
--
INSERT INTO `tblassesmenttype` (`AssesmentTypeId`, `StreamTypeId`, `ProgramId`, `AssesmentName`, `IsActive`, `CreatedBy`, `CreatedOn`, `UpdatedBy`, `UpdatedOn`) VALUES
(1, 1, 1, 'ec ec ecss', 1, 1, '2019-06-10 07:49:22', 0, '2019-06-10 07:49:22'),
(2, 1, 1, 'ec ec ec', 0, 1, '2019-06-10 07:49:28', 0, '2019-06-10 07:49:28'),
(5, 1, 1, 'Aptitude', 1, 1, '2019-06-12 09:09:52', 0, '2019-06-12 09:09:52');
-- --------------------------------------------------------
--
-- Table structure for table `tblblogs`
--
CREATE TABLE `tblblogs` (
`BlogId` int(11) NOT NULL,
`FirstName` varchar(100) NOT NULL,
`UserImage` varchar(100) NOT NULL,
`BlogTitle` varchar(200) NOT NULL,
`BlogImage` varchar(100) NOT NULL,
`BlogDescription` text NOT NULL,
`IsActive` int(1) NOT NULL,
`CreatedBy` int(11) NOT NULL,
`CreatedOn` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
`UpdatedBy` int(11) NOT NULL,
`UpdatedOn` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `tblblogs`
--
INSERT INTO `tblblogs` (`BlogId`, `FirstName`, `UserImage`, `BlogTitle`, `BlogImage`, `BlogDescription`, `IsActive`, `CreatedBy`, `CreatedOn`, `UpdatedBy`, `UpdatedOn`) VALUES
(1, 'Mitesh', 'mitjjjsssss', 'ggggg', 'kkkkkkkkkkkkkkkkk', '<p>hhhhhhhhhhhhhhhhhhhh</p>\r\n', 0, 1, '2019-06-11 11:11:11', 0, '2019-06-11 11:11:11'),
(2, 'Mitesh', 'mitjjjsssss', 'deffafafcaf', '1.jpg', '<p>hhhhhhhhhhrrrrrrddddddddddd</p>\r\n', 1, 1, '2019-06-11 11:48:04', 0, '2019-06-11 11:48:04'),
(3, 'Mitesh', '3.jpg', 'mmmm', '5.jpg', '<p>kkkkkkkkkkk</p>\r\n', 1, 1, '2019-06-11 12:19:48', 0, '2019-06-11 12:19:48');
-- --------------------------------------------------------
--
-- Table structure for table `tblcontact`
--
CREATE TABLE `tblcontact` (
`ContactId` int(11) NOT NULL,
`FirstName` varchar(100) NOT NULL,
`LastName` varchar(100) NOT NULL,
`EmailAddress` varchar(100) NOT NULL,
`MobileNumber` varchar(13) NOT NULL,
`Message` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `tblgraduation`
--
CREATE TABLE `tblgraduation` (
`EducationId` int(11) NOT NULL,
`UserId` int(11) DEFAULT NULL,
`EducationName` varchar(200) NOT NULL,
`UnivesityName` varchar(100) NOT NULL,
`ClassStream` varchar(100) NOT NULL,
`Course` varchar(100) DEFAULT NULL,
`YearofGraduation` varchar(10) NOT NULL,
`IsActive` int(1) NOT NULL,
`CreatedBy` int(11) NOT NULL,
`CreatedOn` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`UpdatedBy` int(11) NOT NULL,
`UpdatedOn` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00'
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `tblgraduationsubject`
--
CREATE TABLE `tblgraduationsubject` (
`EducationSubjectId` int(11) NOT NULL,
`UserId` int(11) DEFAULT NULL,
`EducationSubjectName` varchar(100) DEFAULT NULL,
`SubjectCgpa` varchar(50) DEFAULT NULL,
`MarksheetImage` varchar(100) DEFAULT NULL,
`IsActive` int(1) NOT NULL,
`CreatedBy` int(11) NOT NULL,
`CreatedOn` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
`UpdatedBy` int(11) NOT NULL,
`UpdatedOn` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `tblprogramtype`
--
CREATE TABLE `tblprogramtype` (
`ProgramId` int(11) NOT NULL,
`UserId` int(11) DEFAULT NULL,
`StreamTypeId` int(11) NOT NULL,
`ProgramName` varchar(200) NOT NULL,
`ProgramDescription` text NOT NULL,
`ProgramPrice` float(7,2) NOT NULL,
`ProgramImage` varchar(100) DEFAULT NULL,
`IsActive` int(1) NOT NULL,
`CreatedBy` int(11) NOT NULL,
`CreatedOn` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`UpdatedBy` int(11) NOT NULL,
`UpdatedOn` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `tblprogramtype`
--
INSERT INTO `tblprogramtype` (`ProgramId`, `UserId`, `StreamTypeId`, `ProgramName`, `ProgramDescription`, `ProgramPrice`, `ProgramImage`, `IsActive`, `CreatedBy`, `CreatedOn`, `UpdatedBy`, `UpdatedOn`) VALUES
(1, NULL, 1, 'EC computer', '<p>EC EC EC yy</p>\r\n', 88.00, NULL, 0, 1, '2019-06-10 06:49:58', 0, '2019-06-10 06:49:58');
-- --------------------------------------------------------
--
-- Table structure for table `tblquestion`
--
CREATE TABLE `tblquestion` (
`QuestionId` int(11) NOT NULL,
`AssesmentTypeId` int(11) DEFAULT NULL,
`QuestionImageId` int(11) DEFAULT NULL,
`QuestionName` text NOT NULL,
`IsActive` int(1) NOT NULL,
`CreatedBy` int(11) NOT NULL,
`CreatedOn` timestamp NULL DEFAULT NULL,
`UpdatedBy` int(111) NOT NULL,
`UpdatedOn` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `tblquestion`
--
INSERT INTO `tblquestion` (`QuestionId`, `AssesmentTypeId`, `QuestionImageId`, `QuestionName`, `IsActive`, `CreatedBy`, `CreatedOn`, `UpdatedBy`, `UpdatedOn`) VALUES
(1, 1, NULL, 'mitesh', 1, 1, '2019-06-10 11:23:23', 1, '2019-06-10 11:23:23'),
(5, 1, NULL, 'mitesh', 0, 1, '2019-06-11 04:11:24', 0, '2019-06-11 04:11:24');
-- --------------------------------------------------------
--
-- Table structure for table `tblquestionanswer`
--
CREATE TABLE `tblquestionanswer` (
`QuestionAnswerId` int(11) NOT NULL,
`QuestionId` int(11) NOT NULL,
`QuestionAnswer` varchar(300) NOT NULL,
`QuestionAnswerRateId` int(11) NOT NULL,
`IsActive` int(1) NOT NULL,
`CreatedBy` int(11) NOT NULL,
`CreatedOn` timestamp NULL DEFAULT NULL,
`UpdatedBy` int(11) NOT NULL,
`UpdatedOn` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `tblquestionanswer`
--
INSERT INTO `tblquestionanswer` (`QuestionAnswerId`, `QuestionId`, `QuestionAnswer`, `QuestionAnswerRateId`, `IsActive`, `CreatedBy`, `CreatedOn`, `UpdatedBy`, `UpdatedOn`) VALUES
(1, 1, 'goodsss', 1, 1, 1, '2019-06-11 05:45:25', 1, '2019-06-11 05:45:25'),
(2, 1, 'very good', 3, 1, 1, '2019-06-11 05:45:25', 1, '2019-06-11 05:45:25'),
(5, 5, 'yyyyyyyyyy', 3, 1, 1, '2019-06-11 06:37:49', 0, '2019-06-11 06:37:49');
-- --------------------------------------------------------
--
-- Table structure for table `tblquestionanswerrate`
--
CREATE TABLE `tblquestionanswerrate` (
`QuestionAnswerRateId` int(11) NOT NULL,
`AnswerRate` float(7,2) NOT NULL,
`IsActive` int(1) NOT NULL,
`CreatedBy` int(11) NOT NULL,
`CreatedOn` timestamp NULL DEFAULT NULL,
`UpdatedBy` int(11) NOT NULL,
`UpdatedOn` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `tblquestionanswerrate`
--
INSERT INTO `tblquestionanswerrate` (`QuestionAnswerRateId`, `AnswerRate`, `IsActive`, `CreatedBy`, `CreatedOn`, `UpdatedBy`, `UpdatedOn`) VALUES
(1, 7.20, 1, 1, '2019-06-10 09:35:24', 0, '2019-06-10 09:35:24'),
(3, 8.20, 1, 1, '2019-06-10 09:48:41', 0, '2019-06-10 09:48:41');
-- --------------------------------------------------------
--
-- Table structure for table `tblquestionpicture`
--
CREATE TABLE `tblquestionpicture` (
`QuestionImageId` int(11) NOT NULL,
`AssesmentTypeId` int(11) DEFAULT NULL,
`QuestionImageType` varchar(100) DEFAULT NULL,
`QuestionImageName` varchar(300) NOT NULL,
`IsActive` int(1) NOT NULL,
`CreatedBy` int(11) NOT NULL,
`CreatedOn` timestamp NULL DEFAULT NULL,
`UpdatedBy` int(11) NOT NULL,
`UpdatedOn` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `tblquestionpicture`
--
INSERT INTO `tblquestionpicture` (`QuestionImageId`, `AssesmentTypeId`, `QuestionImageType`, `QuestionImageName`, `IsActive`, `CreatedBy`, `CreatedOn`, `UpdatedBy`, `UpdatedOn`) VALUES
(1, NULL, '', '', 0, 1, '2019-06-10 10:18:06', 0, '2019-06-10 10:18:06');
-- --------------------------------------------------------
--
-- Table structure for table `tblschedule`
--
CREATE TABLE `tblschedule` (
`ScheduleId` int(11) NOT NULL,
`UserId` int(11) NOT NULL,
`ScheduleDate` date NOT NULL,
`ScheduleTime` varchar(50) NOT NULL,
`MobileNumber` varchar(13) NOT NULL,
`IsActive` int(1) NOT NULL,
`CreatedBy` int(11) NOT NULL,
`CreatedOn` timestamp NULL DEFAULT NULL,
`UpdatedBy` int(11) NOT NULL,
`UpdatedOn` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `tblsessionconvesation`
--
CREATE TABLE `tblsessionconvesation` (
`CoversationId` int(11) NOT NULL,
`UserId` int(11) DEFAULT NULL,
`CoversationDescription` text NOT NULL,
`IsActive` int(1) NOT NULL,
`CreatedBy` int(11) NOT NULL,
`CreatedOn` timestamp NULL DEFAULT NULL,
`UpdatedBy` int(11) NOT NULL,
`UpdatedOn` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `tblsessionsuggetion`
--
CREATE TABLE `tblsessionsuggetion` (
`SessionSuggestionId` int(11) NOT NULL,
`UserId` int(11) DEFAULT NULL,
`SuggestionName` varchar(200) NOT NULL,
`SuggestionDescription` text NOT NULL,
`IsActive` int(1) NOT NULL,
`CreatedBy` int(11) NOT NULL,
`CreatedOn` timestamp NULL DEFAULT NULL,
`UpdatedBy` int(11) NOT NULL,
`UpdatedOn` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `tblstandard`
--
CREATE TABLE `tblstandard` (
`StandardId` int(11) NOT NULL,
`Standard` varchar(100) NOT NULL,
`IsActive` enum('0','1') NOT NULL DEFAULT '1',
`CreatedBy` int(11) NOT NULL,
`CreatedOn` timestamp NULL DEFAULT NULL,
`UpdatedBy` int(11) NOT NULL,
`UpdatedOn` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `tblstandard`
--
INSERT INTO `tblstandard` (`StandardId`, `Standard`, `IsActive`, `CreatedBy`, `CreatedOn`, `UpdatedBy`, `UpdatedOn`) VALUES
(1, '12', '0', 1, '2019-06-10 08:59:10', 0, '2019-06-10 08:59:10');
-- --------------------------------------------------------
--
-- Table structure for table `tblstreamtype`
--
CREATE TABLE `tblstreamtype` (
`StreamTypeId` int(11) NOT NULL,
`StreamName` varchar(200) NOT NULL,
`IsActive` int(1) NOT NULL,
`CreatedBy` int(11) NOT NULL,
`CreatedOn` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`UpdatedBy` int(11) NOT NULL,
`UpdatedOn` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `tblstreamtype`
--
INSERT INTO `tblstreamtype` (`StreamTypeId`, `StreamName`, `IsActive`, `CreatedBy`, `CreatedOn`, `UpdatedBy`, `UpdatedOn`) VALUES
(1, 'Program', 1, 1, '2019-06-10 06:46:05', 0, '2019-06-10 06:46:05');
-- --------------------------------------------------------
--
-- Table structure for table `tbluser`
--
CREATE TABLE `tbluser` (
`UserId` int(11) NOT NULL,
`RoleId` int(1) DEFAULT NULL COMMENT 'Admin="1",User="2"',
`StreamId` int(11) NOT NULL,
`FirstName` varchar(100) NOT NULL,
`LastName` varchar(100) NOT NULL,
`EmailAddress` varchar(100) NOT NULL,
`Password` varchar(100) NOT NULL,
`PhoneNumber` varchar(13) NOT NULL,
`Address` varchar(400) NOT NULL,
`ProfileImage` varchar(100) DEFAULT NULL,
`Gender` varchar(6) NOT NULL,
`City` varchar(100) NOT NULL,
`ResetPasswordCode` varchar(20) DEFAULT NULL,
`IsActive` int(1) NOT NULL,
`CreatedBy` int(11) NOT NULL,
`CreatedOn` timestamp NULL DEFAULT NULL,
`UpdatedBy` int(11) NOT NULL,
`UpdatedOn` timestamp NULL DEFAULT NULL,
`oauth_provider` enum('','facebook','google') DEFAULT NULL,
`oauth_uid` varchar(100) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `tbluser`
--
INSERT INTO `tbluser` (`UserId`, `RoleId`, `StreamId`, `FirstName`, `LastName`, `EmailAddress`, `Password`, `PhoneNumber`, `Address`, `ProfileImage`, `Gender`, `City`, `ResetPasswordCode`, `IsActive`, `CreatedBy`, `CreatedOn`, `UpdatedBy`, `UpdatedOn`, `oauth_provider`, `oauth_uid`) VALUES
(1, 1, 1, 'Mitesh', 'Patel', '<EMAIL>', '12345678', '12345678', 'anand', NULL, 'male', 'anand', 'reer', 1, 1, '2019-06-13 08:27:57', 1, '2019-06-13 08:27:57', '', '');
-- --------------------------------------------------------
--
-- Table structure for table `tbluseranswer`
--
CREATE TABLE `tbluseranswer` (
`UserAnswerId` int(11) NOT NULL,
`UserId` int(11) NOT NULL,
`QuestionId` int(11) NOT NULL,
`QuestionAnswerId` int(11) NOT NULL,
`IsActive` int(1) NOT NULL,
`CreatedBy` int(11) NOT NULL,
`CreatedOn` timestamp NULL DEFAULT NULL,
`UpdatedBy` int(11) NOT NULL,
`UpdatedOn` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `tbluserfamilydetail`
--
CREATE TABLE `tbluserfamilydetail` (
`UserFamilyId` int(11) NOT NULL,
`UserId` int(11) DEFAULT NULL,
`FatherName` varchar(100) NOT NULL,
`FatherProfession` varchar(100) NOT NULL,
`MotherName` varchar(100) NOT NULL,
`MotherProfession` varchar(100) NOT NULL,
`IsActive` int(1) NOT NULL,
`CreatedBy` int(11) NOT NULL,
`CreatedOn` timestamp NULL DEFAULT NULL,
`UpdatedBy` int(11) NOT NULL,
`UpdatedOn` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `tbluserrole`
--
CREATE TABLE `tbluserrole` (
`RoleId` int(11) NOT NULL,
`RoleName` varchar(100) NOT NULL,
`IsActive` int(1) NOT NULL,
`CreatedBy` int(11) NOT NULL,
`CreatedOn` timestamp NULL DEFAULT NULL,
`UpdatedBy` int(11) NOT NULL,
`UpdatedOn` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `tbluserrole`
--
INSERT INTO `tbluserrole` (`RoleId`, `RoleName`, `IsActive`, `CreatedBy`, `CreatedOn`, `UpdatedBy`, `UpdatedOn`) VALUES
(1, 'Admin', 1, 1, '2019-06-10 05:50:51', 0, '2019-06-10 05:50:51');
-- --------------------------------------------------------
--
-- Table structure for table `tblusersession`
--
CREATE TABLE `tblusersession` (
`UserSessionId` int(11) NOT NULL,
`stream_id` int(11) NOT NULL,
`standard_id` int(11) NOT NULL,
`user_id` int(11) DEFAULT NULL,
`Usersession_name` varchar(255) NOT NULL,
`StartDate` date NOT NULL,
`Timeing` time NOT NULL,
`location` varchar(255) NOT NULL,
`IsActive` int(1) NOT NULL,
`status` enum('Pending','Complete','Reshedule') NOT NULL,
`CreatedBy` int(11) NOT NULL,
`CreatedOn` timestamp NULL DEFAULT NULL,
`UpdatedBy` int(11) NOT NULL,
`UpdatedOn` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `tblusersession`
--
INSERT INTO `tblusersession` (`UserSessionId`, `stream_id`, `standard_id`, `user_id`, `Usersession_name`, `StartDate`, `Timeing`, `location`, `IsActive`, `status`, `CreatedBy`, `CreatedOn`, `UpdatedBy`, `UpdatedOn`) VALUES
(2, 2, 1, 1, '1', '2019-06-13', '02:56:00', 'Surat', 1, 'Reshedule', 0, '2019-06-13 04:00:00', 0, '2019-06-13 06:56:51');
--
-- Indexes for dumped tables
--
--
-- Indexes for table `logs`
--
ALTER TABLE `logs`
ADD PRIMARY KEY (`id`,`ip_address`,`user_agent`);
--
-- Indexes for table `tblassesmenttype`
--
ALTER TABLE `tblassesmenttype`
ADD PRIMARY KEY (`AssesmentTypeId`),
ADD KEY `StreamTypeId` (`StreamTypeId`),
ADD KEY `ProgramId` (`ProgramId`);
--
-- Indexes for table `tblblogs`
--
ALTER TABLE `tblblogs`
ADD PRIMARY KEY (`BlogId`);
--
-- Indexes for table `tblcontact`
--
ALTER TABLE `tblcontact`
ADD PRIMARY KEY (`ContactId`);
--
-- Indexes for table `tblgraduation`
--
ALTER TABLE `tblgraduation`
ADD PRIMARY KEY (`EducationId`);
--
-- Indexes for table `tblgraduationsubject`
--
ALTER TABLE `tblgraduationsubject`
ADD PRIMARY KEY (`EducationSubjectId`);
--
-- Indexes for table `tblprogramtype`
--
ALTER TABLE `tblprogramtype`
ADD PRIMARY KEY (`ProgramId`),
ADD KEY `UserId` (`UserId`),
ADD KEY `StreamTypeId` (`StreamTypeId`);
--
-- Indexes for table `tblquestion`
--
ALTER TABLE `tblquestion`
ADD PRIMARY KEY (`QuestionId`),
ADD KEY `AssesmentTypeId` (`AssesmentTypeId`),
ADD KEY `AssesmentTypeId_2` (`AssesmentTypeId`),
ADD KEY `QuestionImageId` (`QuestionImageId`);
--
-- Indexes for table `tblquestionanswer`
--
ALTER TABLE `tblquestionanswer`
ADD PRIMARY KEY (`QuestionAnswerId`),
ADD KEY `QuestionId` (`QuestionId`),
ADD KEY `QuestionAnswerRateId` (`QuestionAnswerRateId`);
--
-- Indexes for table `tblquestionanswerrate`
--
ALTER TABLE `tblquestionanswerrate`
ADD PRIMARY KEY (`QuestionAnswerRateId`);
--
-- Indexes for table `tblquestionpicture`
--
ALTER TABLE `tblquestionpicture`
ADD PRIMARY KEY (`QuestionImageId`);
--
-- Indexes for table `tblschedule`
--
ALTER TABLE `tblschedule`
ADD PRIMARY KEY (`ScheduleId`);
--
-- Indexes for table `tblsessionconvesation`
--
ALTER TABLE `tblsessionconvesation`
ADD PRIMARY KEY (`CoversationId`);
--
-- Indexes for table `tblsessionsuggetion`
--
ALTER TABLE `tblsessionsuggetion`
ADD PRIMARY KEY (`SessionSuggestionId`);
--
-- Indexes for table `tblstandard`
--
ALTER TABLE `tblstandard`
ADD PRIMARY KEY (`StandardId`);
--
-- Indexes for table `tblstreamtype`
--
ALTER TABLE `tblstreamtype`
ADD PRIMARY KEY (`StreamTypeId`);
--
-- Indexes for table `tbluser`
--
ALTER TABLE `tbluser`
ADD PRIMARY KEY (`UserId`),
ADD KEY `StreamId` (`StreamId`);
--
-- Indexes for table `tbluseranswer`
--
ALTER TABLE `tbluseranswer`
ADD PRIMARY KEY (`UserAnswerId`),
ADD KEY `UserId` (`UserId`),
ADD KEY `QuestionId` (`QuestionId`),
ADD KEY `QuestionAnswerId` (`QuestionAnswerId`),
ADD KEY `QuestionAnswerId_2` (`QuestionAnswerId`);
--
-- Indexes for table `tbluserfamilydetail`
--
ALTER TABLE `tbluserfamilydetail`
ADD PRIMARY KEY (`UserFamilyId`);
--
-- Indexes for table `tbluserrole`
--
ALTER TABLE `tbluserrole`
ADD PRIMARY KEY (`RoleId`);
--
-- Indexes for table `tblusersession`
--
ALTER TABLE `tblusersession`
ADD PRIMARY KEY (`UserSessionId`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `logs`
--
ALTER TABLE `logs`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;
--
-- AUTO_INCREMENT for table `tblassesmenttype`
--
ALTER TABLE `tblassesmenttype`
MODIFY `AssesmentTypeId` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
--
-- AUTO_INCREMENT for table `tblblogs`
--
ALTER TABLE `tblblogs`
MODIFY `BlogId` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `tblcontact`
--
ALTER TABLE `tblcontact`
MODIFY `ContactId` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `tblgraduation`
--
ALTER TABLE `tblgraduation`
MODIFY `EducationId` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `tblgraduationsubject`
--
ALTER TABLE `tblgraduationsubject`
MODIFY `EducationSubjectId` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `tblprogramtype`
--
ALTER TABLE `tblprogramtype`
MODIFY `ProgramId` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `tblquestion`
--
ALTER TABLE `tblquestion`
MODIFY `QuestionId` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
--
-- AUTO_INCREMENT for table `tblquestionanswer`
--
ALTER TABLE `tblquestionanswer`
MODIFY `QuestionAnswerId` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
--
-- AUTO_INCREMENT for table `tblquestionanswerrate`
--
ALTER TABLE `tblquestionanswerrate`
MODIFY `QuestionAnswerRateId` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `tblquestionpicture`
--
ALTER TABLE `tblquestionpicture`
MODIFY `QuestionImageId` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `tblschedule`
--
ALTER TABLE `tblschedule`
MODIFY `ScheduleId` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `tblsessionconvesation`
--
ALTER TABLE `tblsessionconvesation`
MODIFY `CoversationId` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `tblsessionsuggetion`
--
ALTER TABLE `tblsessionsuggetion`
MODIFY `SessionSuggestionId` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `tblstandard`
--
ALTER TABLE `tblstandard`
MODIFY `StandardId` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `tblstreamtype`
--
ALTER TABLE `tblstreamtype`
MODIFY `StreamTypeId` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `tbluser`
--
ALTER TABLE `tbluser`
MODIFY `UserId` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `tbluseranswer`
--
ALTER TABLE `tbluseranswer`
MODIFY `UserAnswerId` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `tbluserfamilydetail`
--
ALTER TABLE `tbluserfamilydetail`
MODIFY `UserFamilyId` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `tbluserrole`
--
ALTER TABLE `tbluserrole`
MODIFY `RoleId` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `tblusersession`
--
ALTER TABLE `tblusersession`
MODIFY `UserSessionId` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- Constraints for dumped tables
--
--
-- Constraints for table `tblassesmenttype`
--
ALTER TABLE `tblassesmenttype`
ADD CONSTRAINT `tblassesmenttype_ibfk_1` FOREIGN KEY (`StreamTypeId`) REFERENCES `tblstreamtype` (`StreamTypeId`) ON DELETE CASCADE ON UPDATE CASCADE,
ADD CONSTRAINT `tblassesmenttype_ibfk_2` FOREIGN KEY (`ProgramId`) REFERENCES `tblprogramtype` (`ProgramId`) ON DELETE CASCADE ON UPDATE CASCADE;
--
-- Constraints for table `tblprogramtype`
--
ALTER TABLE `tblprogramtype`
ADD CONSTRAINT `tblprogramtype_ibfk_1` FOREIGN KEY (`UserId`) REFERENCES `tbluser` (`UserId`) ON DELETE CASCADE ON UPDATE CASCADE,
ADD CONSTRAINT `tblprogramtype_ibfk_2` FOREIGN KEY (`StreamTypeId`) REFERENCES `tblstreamtype` (`StreamTypeId`) ON DELETE CASCADE ON UPDATE CASCADE;
--
-- Constraints for table `tblquestion`
--
ALTER TABLE `tblquestion`
ADD CONSTRAINT `tblquestion_ibfk_1` FOREIGN KEY (`AssesmentTypeId`) REFERENCES `tblassesmenttype` (`AssesmentTypeId`) ON DELETE CASCADE ON UPDATE CASCADE,
ADD CONSTRAINT `tblquestion_ibfk_2` FOREIGN KEY (`QuestionImageId`) REFERENCES `tblquestionpicture` (`QuestionImageId`) ON DELETE CASCADE ON UPDATE CASCADE;
--
-- Constraints for table `tblquestionanswer`
--
ALTER TABLE `tblquestionanswer`
ADD CONSTRAINT `tblquestionanswer_ibfk_1` FOREIGN KEY (`QuestionId`) REFERENCES `tblquestion` (`QuestionId`) ON DELETE CASCADE ON UPDATE CASCADE,
ADD CONSTRAINT `tblquestionanswer_ibfk_2` FOREIGN KEY (`QuestionAnswerRateId`) REFERENCES `tblquestionanswerrate` (`QuestionAnswerRateId`) ON DELETE CASCADE ON UPDATE CASCADE;
--
-- Constraints for table `tbluser`
--
ALTER TABLE `tbluser`
ADD CONSTRAINT `tbluser_ibfk_1` FOREIGN KEY (`StreamId`) REFERENCES `tblstreamtype` (`StreamTypeId`) ON DELETE CASCADE ON UPDATE CASCADE;
--
-- Constraints for table `tbluseranswer`
--
ALTER TABLE `tbluseranswer`
ADD CONSTRAINT `tbluseranswer_ibfk_1` FOREIGN KEY (`UserId`) REFERENCES `tbluser` (`UserId`) ON DELETE CASCADE ON UPDATE CASCADE,
ADD CONSTRAINT `tbluseranswer_ibfk_2` FOREIGN KEY (`QuestionId`) REFERENCES `tblquestion` (`QuestionId`) ON DELETE CASCADE ON UPDATE CASCADE,
ADD CONSTRAINT `tbluseranswer_ibfk_3` FOREIGN KEY (`QuestionAnswerId`) REFERENCES `tblquestionanswer` (`QuestionAnswerId`) ON DELETE CASCADE ON UPDATE CASCADE;
COMMIT;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
-- phpMyAdmin SQL Dump
-- version 4.5.1
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: 22 Des 2016 pada 11.21
-- Versi Server: 10.1.16-MariaDB
-- PHP Version: 7.0.9
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: `ict_erp`
--
-- --------------------------------------------------------
--
-- Struktur dari tabel `companies`
--
CREATE TABLE `companies` (
`id` int(11) NOT NULL,
`name` varchar(255) NOT NULL,
`npwp` varchar(100) NOT NULL,
`address_1` varchar(255) NOT NULL,
`address_2` varchar(255) NOT NULL,
`city_id` int(11) NOT NULL,
`zip_code` varchar(5) NOT NULL,
`created_at` datetime NOT NULL,
`created_by` int(11) NOT NULL,
`updated_at` datetime DEFAULT NULL,
`updated_by` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data untuk tabel `companies`
--
INSERT INTO `companies` (`id`, `name`, `npwp`, `address_1`, `address_2`, `city_id`, `zip_code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES
(1, 'PT ANGKASA PURA SOLUSI', '01.071.557.1 - 058.000', 'Terminal 2F Kedatangan; Ruang F9P67', 'Bandara Internasional Soekarno-Hatta', 2, '19120', '2016-12-22 04:00:00', 1, '0000-00-00 00:00:00', 0);
--
-- Indexes for dumped tables
--
--
-- Indexes for table `companies`
--
ALTER TABLE `companies`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `companies`
--
ALTER TABLE `companies`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
CREATE TABLE IF NOT EXISTS `panels` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`pageID` int(11) NOT NULL,
`revision` int(11) NOT NULL,
`rowPos` int(11) NOT NULL,
`columnPos` int(11) NOT NULL,
`subject` longtext NOT NULL,
`type` varchar(255) NOT NULL,
`classes` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB;
INSERT INTO `panels` (`id`, `pageID`, `revision`, `rowPos`, `columnPos`, `subject`, `type`, `classes`) VALUES
(1, 0, 1, 0, 0, '\n Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer neque mauris, tristique vel condimentum sed, malesuada ac mi. Nulla pharetra rhoncus ex, sollicitudin hendrerit lacus aliquam at. Ut condimentum viverra turpis, in feugiat nunc tempor sed. Fusce vitae imperdiet quam, sed sollicitudin arcu. Praesent tempor est vel varius congue. Proin neque urna, sollicitudin et nisi sit amet, lobortis euismod mi. Proin vestibulum tortor at pellentesque condimentum. Sed suscipit facilisis enim vel gravida. Nullam ac enim condimentum dolor luctus egestas vel iaculis diam. Vivamus iaculis ut mauris et pellentesque. Nam mattis purus eget turpis ullamcorper condimentum.\n ', 'majima_wysiwyg', 'col-panel orange white-text'),
(2, 0, 1, 0, 1, '\n Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer neque mauris, tristique vel condimentum sed, malesuada ac mi. Nulla pharetra rhoncus ex, sollicitudin hendrerit lacus aliquam at. Ut condimentum viverra turpis, in feugiat nunc tempor sed. Fusce vitae imperdiet quam, sed sollicitudin arcu. Praesent tempor est vel varius congue. Proin neque urna, sollicitudin et nisi sit amet, lobortis euismod mi. Proin vestibulum tortor at pellentesque condimentum. Sed suscipit facilisis enim vel gravida. Nullam ac enim condimentum dolor luctus egestas vel iaculis diam. Vivamus iaculis ut mauris et pellentesque. Nam mattis purus eget turpis ullamcorper condimentum.\n ', 'majima_wysiwyg', 'col-panel red white-text'),
(3, 0, 1, 0, 2, '\n Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer neque mauris, tristique vel condimentum sed, malesuada ac mi. Nulla pharetra rhoncus ex, sollicitudin hendrerit lacus aliquam at. Ut condimentum viverra turpis, in feugiat nunc tempor sed. Fusce vitae imperdiet quam, sed sollicitudin arcu. Praesent tempor est vel varius congue. Proin neque urna, sollicitudin et nisi sit amet, lobortis euismod mi. Proin vestibulum tortor at pellentesque condimentum. Sed suscipit facilisis enim vel gravida. Nullam ac enim condimentum dolor luctus egestas vel iaculis diam. Vivamus iaculis ut mauris et pellentesque. Nam mattis purus eget turpis ullamcorper condimentum.\n ', 'majima_wysiwyg', 'col-panel orange white-text'),
(4, 0, 1, 1, 0, '\n Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer neque mauris, tristique vel condimentum sed, malesuada ac mi. Nulla pharetra rhoncus ex, sollicitudin hendrerit lacus aliquam at. Ut condimentum viverra turpis, in feugiat nunc tempor sed. Fusce vitae imperdiet quam, sed sollicitudin arcu. Praesent tempor est vel varius congue. Proin neque urna, sollicitudin et nisi sit amet, lobortis euismod mi. Proin vestibulum tortor at pellentesque condimentum. Sed suscipit facilisis enim vel gravida. Nullam ac enim condimentum dolor luctus egestas vel iaculis diam. Vivamus iaculis ut mauris et pellentesque. Nam mattis purus eget turpis ullamcorper condimentum.\n ', 'majima_wysiwyg', 'col-panel red white-text'); |
SELECT post_id FROM $wpdb->postmeta WHERE meta_key=%s AND meta_value=%s
|
<filename>src/main/resources/db/postgresql/V1_37__ALTER_SEARCH_FIELD_TABLE.sql<gh_stars>1-10
ALTER TABLE search_field
RENAME COLUMN parent_system_name TO profile_name;
ALTER TABLE search_field
DROP CONSTRAINT fk_search_field_system_name;
|
<reponame>Shuttl-Tech/antlr_psql<filename>src/test/resources/sql/grant/e5f5572e.sql
-- file:publication.sql ln:99 expect:true
GRANT CREATE ON DATABASE regression TO regress_publication_user2
|
<reponame>COEJKnight/one
-- AwardingOfficeCode must be six characters long.
SELECT
row_number,
awarding_office_code
FROM detached_award_financial_assistance
WHERE submission_id = {0}
AND COALESCE(awarding_office_code, '') <> ''
AND LENGTH(awarding_office_code) <> 6;
|
DECLARE @sqr int,
@i int,
@door int;
SELECT @sqr =1,
@i = 3,
@door = 1;
WHILE(@door <=100)
BEGIN
IF(@door = @sqr)
BEGIN
PRINT 'Door ' + RTRIM(CAST(@door as char)) + ' is open.';
SET @sqr= @sqr+@i;
SET @i=@i+2;
END
ELSE
BEGIN
PRINT 'Door ' + RTRIM(CONVERT(char,@door)) + ' is closed.';
END
SET @door = @door + 1
END
|
<filename>packages/intranet-expenses/sql/common/intranet-expenses-common.sql
-- /packages/intranet-expenses/sql/common/intranet-expenses-create.sql
--
-- ]project-open[ Expenses
-- 060419 <EMAIL>
--
-- Copyright (C) 2004 - 2009 ]project-open[
--
-- All rights including reserved. To inquire license terms please
-- refer to http://www.project-open.com/modules/<module-key>
-- set escape \
-------------------------------------------------------------
-- Setup the status and type im_categories
-- 4000-4099 Intranet Expense Type
-- 4100-4199 Intranet Expense Payment Type
-- 4200-4599 (reserved)
-- prompt *** intranet-expenses: Creating URLs for viewing/editing expenses
delete from im_biz_object_urls where object_type='im_expense';
insert into im_biz_object_urls (
object_type,
url_type,
url
) values (
'im_expense',
'view',
'/intranet-expenses/new?form_mode=display\&expense_id='
);
insert into im_biz_object_urls (
object_type,
url_type,
url
) values (
'im_expense',
'edit',
'/intranet-expenses/new?form_mode=edit\&expense_id='
);
-- delete from im_categories where category_id in (3720, 3722);
--
-- INSERT INTO im_categories (category_id, category, category_type)
-- VALUES (3720,'Expense Item','Intranet Cost Type');
--
-- INSERT INTO im_categories (category_id, category, category_type)
-- VALUES (3722,'Expense Report','Intranet Cost Type');
-- Intranet Expense Type
-- delete from im_categories where category_id >= 4000 and category_id < 4100;
SELECT im_category_new(4000,'Meals','Intranet Expense Type');
SELECT im_category_new(4001,'Fuel','Intranet Expense Type');
SELECT im_category_new(4002,'Tolls','Intranet Expense Type');
SELECT im_category_new(4003,'Km own car','Intranet Expense Type');
SELECT im_category_new(4004,'Parking','Intranet Expense Type');
SELECT im_category_new(4005,'Taxi','Intranet Expense Type');
SELECT im_category_new(4006,'Hotel','Intranet Expense Type');
SELECT im_category_new(4007,'Airfare','Intranet Expense Type');
SELECT im_category_new(4008,'Train','Intranet Expense Type');
SELECT im_category_new(4009,'Copies','Intranet Expense Type');
SELECT im_category_new(4010,'Office Material','Intranet Expense Type');
SELECT im_category_new(4011,'Telephone','Intranet Expense Type');
SELECT im_category_new(4012,'Other','Intranet Expense Type');
-- reserved until 4099
-- Intranet Expense Payment Type
-- delete from im_categories where category_id >= 4100 and category_id < 4200;
SELECT im_category_new(4100, 'Cash','Intranet Expense Payment Type');
SELECT im_category_new(4105, 'Company Visa 1','Intranet Expense Payment Type');
SELECT im_category_new(4110, 'Company Visa 2','Intranet Expense Payment Type');
SELECT im_category_new(4115, 'PayPal <EMAIL>','Intranet Expense Payment Type');
create or replace view im_expense_type as
select
category_id as expense_type_id,
category as expense_type
from im_categories
where category_type = 'Intranet Expense Type';
create or replace view im_expense_payment_type as
select category_id as expense_payment_type_id,
category as expense_payment_type
from im_categories
where category_type = 'Intranet Expense Payment Type';
|
-- MySQL dump 10.13 Distrib 5.7.21, for Linux (x86_64)
--
-- Host: localhost Database: sicei
-- ------------------------------------------------------
-- Server version 5.7.21
/*!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 */;
CREATE DATABASE IF NOT EXISTS sicei_2020;
use sicei_2020;
--
-- Table structure for table `alumnos`
--
DROP TABLE IF EXISTS `alumnos`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `alumnos` (
`id` int(11) NOT NULL,
`nombre` varchar(45) DEFAULT NULL,
`licenciatura` varchar(45) DEFAULT NULL,
`id_equipo` int(11) DEFAULT NULL,
`id_usuario` int(11) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `alumnos`
--
LOCK TABLES `alumnos` WRITE;
/*!40000 ALTER TABLE `alumnos` DISABLE KEYS */;
INSERT INTO `alumnos` VALUES (1,'Eduardo','LIS',1,1),(2,'Antonio','LCC',2,2);
/*!40000 ALTER TABLE `alumnos` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `equipos`
--
DROP TABLE IF EXISTS `equipos`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `equipos` (
`id` int(11) NOT NULL,
`modelo` varchar(45) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `equipos`
--
LOCK TABLES `equipos` WRITE;
/*!40000 ALTER TABLE `equipos` DISABLE KEYS */;
INSERT INTO `equipos` VALUES (1,'Lenovo Linux'),(2,'HP Windows');
/*!40000 ALTER TABLE `equipos` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `profesores`
--
DROP TABLE IF EXISTS `profesores`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `profesores` (
`id` int(11) NOT NULL,
`nombre` varchar(45) DEFAULT NULL,
`horas` int(11) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `profesores`
--
LOCK TABLES `profesores` WRITE;
/*!40000 ALTER TABLE `profesores` DISABLE KEYS */;
INSERT INTO `profesores` VALUES (1,'Eduardo Profesor',10);
/*!40000 ALTER TABLE `profesores` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `tutorias`
--
DROP TABLE IF EXISTS `tutorias`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `tutorias` (
`id_alumno` int(11) NOT NULL,
`id_profesor` int(11) NOT NULL,
`horas` int(11) DEFAULT NULL,
PRIMARY KEY (`id_alumno`,`id_profesor`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `tutorias`
--
LOCK TABLES `tutorias` WRITE;
/*!40000 ALTER TABLE `tutorias` DISABLE KEYS */;
INSERT INTO `tutorias` VALUES (1,1,2),(2,1,3);
/*!40000 ALTER TABLE `tutorias` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `usuarios`
--
DROP TABLE IF EXISTS `usuarios`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `usuarios` (
`id` int(11) NOT NULL,
`usuario` varchar(45) DEFAULT NULL,
`password` varchar(45) NOT NULL,
`token` varchar(45) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `usuarios`
--
LOCK TABLES `usuarios` WRITE;
/*!40000 ALTER TABLE `usuarios` DISABLE KEYS */;
INSERT INTO `usuarios` VALUES (1,'<EMAIL>','ewqeqwwq','eqe'),(2,'<EMAIL>','qweqewq','qewwqeqwe');
/*!40000 ALTER TABLE `usuarios` ENABLE KEYS */;
UNLOCK TABLES;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-- Dump completed on 2019-02-20 0:05:04 |
/*
Navicat MySQL Data Transfer
Source Server : 本地数据
Source Server Version : 50553
Source Host : localhost:3306
Source Database : test
Target Server Type : MYSQL
Target Server Version : 50553
File Encoding : 65001
Date: 2018-07-15 18:13:23
*/
SET FOREIGN_KEY_CHECKS=0;
-- ----------------------------
-- Table structure for news
-- ----------------------------
DROP TABLE IF EXISTS `news`;
CREATE TABLE `news` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`title` varchar(255) NOT NULL,
`content` text NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=7 DEFAULT CHARSET=utf8 COMMENT='新闻表';
-- ----------------------------
-- Records of news
-- ----------------------------
INSERT INTO `news` VALUES ('1', '新闻1', '新闻1内容');
INSERT INTO `news` VALUES ('2', '新闻2', '新闻2内容');
INSERT INTO `news` VALUES ('3', '新闻3', '新闻3内容');
INSERT INTO `news` VALUES ('4', '房价又涨了', '据新华社消息:上海均价环比上涨5%');
INSERT INTO `news` VALUES ('5', '房价又涨了', '据新华社消息:上海均价环比上涨5%');
INSERT INTO `news` VALUES ('6', '房价又涨了', '据新华社消息:上海均价环比上涨5%');
-- ----------------------------
-- Table structure for wyt_code
-- ----------------------------
DROP TABLE IF EXISTS `wyt_code`;
CREATE TABLE `wyt_code` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`code` varchar(10) NOT NULL DEFAULT '',
`pop` int(1) unsigned NOT NULL DEFAULT '2',
PRIMARY KEY (`id`),
UNIQUE KEY `code` (`code`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;
-- ----------------------------
-- Records of wyt_code
-- ----------------------------
INSERT INTO `wyt_code` VALUES ('1', '123', '2');
|
-- // CB-15466 cleanup operation indexes
-- Migration SQL that makes the change goes here.
ALTER TABLE operation DROP CONSTRAINT IF EXISTS syncoperation_operationid_key;
DROP INDEX IF EXISTS syncoperation_operationid_key;
DROP INDEX IF EXISTS syncoperation_id_idx;
DROP INDEX IF EXISTS syncoperation_operationid_idx;
DROP INDEX IF EXISTS syncoperation_accountid_endtime_idx;
CREATE INDEX IF NOT EXISTS operation_start_end_type_idx ON operation (starttime, endtime, operationtype);
-- //@UNDO
-- SQL to undo the change goes here.
DROP INDEX IF EXISTS operation_start_end_type_idx;
|
<filename>app/server/src/main/resources/db/migration/V1_0_0__baseline.sql
create table realm (
realm_id character varying(255),
realm_name character varying(255),
enabled boolean not null default true,
sync_at timestamp with time zone,
primary key (realm_id),
unique (realm_name)
);
create table account (
account_id uuid,
account_name character varying(255) not null,
password character varying(255),
user_name character varying(255) not null,
email character varying(255),
locale character varying(255),
realm_id character varying(255) not null,
enabled boolean not null default true,
primary key (account_id),
unique (realm_id, account_name),
foreign key (realm_id)
references realm (realm_id) on delete cascade
);
create table notice (
notice_id uuid,
message text not null,
start_at date,
end_at date,
update_at timestamp with time zone not null,
primary key (notice_id)
);
create sequence group_generation_id_seq
increment by 1
start with 2
no cycle;
create table group_generation (
group_generation_id integer not null default nextval('group_generation_id_seq'),
is_current boolean not null,
primary key (group_generation_id)
);
create table group_transition (
group_transition_id uuid,
group_generation_id integer not null,
group_name character varying(255) not null,
parent_group_transition_id uuid,
primary key (group_transition_id, group_generation_id),
foreign key (group_generation_id)
references group_generation (group_generation_id) on delete cascade
) partition by list (group_generation_id);
create table account_group_authority (
account_id uuid,
group_transition_id uuid,
group_generation_id integer not null,
role jsonb,
primary key (account_id, group_transition_id, group_generation_id),
foreign key (account_id)
references account (account_id) on delete cascade
) partition by list (group_generation_id);
create table lesson (
lesson_id uuid,
group_transition_id uuid not null,
slide_id character varying(255),
primary key (lesson_id),
unique (group_transition_id, slide_id)
);
create table study (
study_id uuid,
account_id uuid not null,
slide_id character varying(255) not null,
status character varying(255) not null,
progress jsonb,
progress_rate integer,
answer jsonb,
score jsonb,
shuffled_question jsonb,
start_at timestamp with time zone,
end_at timestamp with time zone,
primary key (study_id),
unique (account_id, slide_id),
foreign key (account_id)
references account (account_id) on delete cascade
);
create materialized view group_transition_with_path as
with recursive group_tree as (
select group_transition.group_transition_id,
group_transition.group_generation_id,
group_transition.group_name,
group_transition.parent_group_transition_id,
1 as layer,
'/' || group_transition.group_transition_id as path,
'/' || group_transition.group_name as path_name
from group_transition
where group_transition.parent_group_transition_id is null
union all
select group_transition.group_transition_id,
group_transition.group_generation_id,
group_transition.group_name,
group_transition.parent_group_transition_id,
group_tree.layer + 1 as layer,
group_tree.path || '/' || group_transition.group_transition_id as path,
group_tree.path_name || '/' || group_transition.group_name as path_name
from group_tree
join group_transition on group_transition.parent_group_transition_id = group_tree.group_transition_id
and ((group_transition.group_generation_id = group_tree.group_generation_id)
or (group_tree.group_generation_id = 0))
)
select * from group_tree;
create view current_account_group_authority as
select account_group_authority.*
from account_group_authority
join group_generation
on (group_generation.is_current = true)
and (account_group_authority.group_generation_id = group_generation.group_generation_id);
insert into realm (realm_id, realm_name, enabled)
values ('!system', 'Magic Lantern Server', true);
insert into group_generation (group_generation_id, is_current)
values (0, true),
(1, true);
create table group_0 partition of group_transition for values in (0);
create table group_1 partition of group_transition for values in (1);
create table account_group_authority_0 partition of account_group_authority for values in (0);
create table account_group_authority_1 partition of account_group_authority for values in (1);
insert into group_transition (group_transition_id, group_generation_id, group_name)
values ('00000000-0000-0000-0000-000000000000', 0, '基本');
insert into account (account_id, account_name, user_name, password, realm_id)
values ('00000000-0000-0000-0000-000000000000', 'admin', 'システム管理者', '{noop}password123', '!system');
insert into account_group_authority (account_id, group_transition_id, group_generation_id, role)
values ('00000000-0000-0000-0000-000000000000', '00000000-0000-0000-0000-000000000000', 0, '["ADMIN","GROUP","SLIDE","LESSON","STUDY"]'); |
/**
* Inserts "Favorite Number" customer attribute
*/
INSERT INTO `eav_attribute` (`entity_type_id`, `attribute_code`, `attribute_model`, `backend_model`, `backend_type`, `backend_table`, `frontend_model`, `frontend_input`, `frontend_label`, `frontend_class`, `source_model`, `is_required`, `is_user_defined`, `default_value`, `is_unique`, `note`)
VALUES
(1, 'favorite_number', NULL, NULL, 'varchar', NULL, NULL, 'text', 'Favorite Number', NULL, NULL, 0, 1, NULL, 0, NULL);
SET @ATTRIBUTE_ID=LAST_INSERT_ID();
INSERT INTO `customer_eav_attribute` (`attribute_id`, `is_visible`, `input_filter`, `multiline_count`, `validate_rules`, `is_system`, `sort_order`, `data_model`, `is_used_for_customer_segment`)
VALUES
(@ATTRIBUTE_ID, 1, NULL, 1, 'a:1:{s:16:\"input_validation\";s:7:\"numeric\";}', 0, 0, NULL, 0);
INSERT INTO `customer_form_attribute` (`form_code`, `attribute_id`)
VALUES
('adminhtml_checkout', @ATTRIBUTE_ID),
('adminhtml_customer', @ATTRIBUTE_ID),
('checkout_register', @ATTRIBUTE_ID),
('customer_account_create', @ATTRIBUTE_ID),
('customer_account_edit', @ATTRIBUTE_ID);
|
<gh_stars>1-10
CREATE DATABASE dex_db;
CREATE USER dex WITH PASSWORD '<PASSWORD>';
GRANT ALL PRIVILEGES ON DATABASE dex_db TO dex;
|
--
-- Name: metrics_template; Type: TABLE; Schema: admin; Owner: pgwatch2
--
CREATE TABLE admin.metrics_template (
"time" timestamp with time zone DEFAULT now() NOT NULL,
dbname text NOT NULL,
data jsonb NOT NULL,
tag_data jsonb,
CONSTRAINT metrics_template_check CHECK (false)
);
ALTER TABLE admin.metrics_template OWNER TO pgwatch2;
--
-- Name: TABLE metrics_template; Type: COMMENT; Schema: admin; Owner: pgwatch2
--
COMMENT ON TABLE admin.metrics_template IS 'used as a template for all new metric definitions';
--
-- Name: metrics_template_dbname_tag_data_time_idx; Type: INDEX; Schema: admin; Owner: pgwatch2
--
CREATE INDEX metrics_template_dbname_tag_data_time_idx ON admin.metrics_template USING gin (dbname, tag_data, "time") WHERE (tag_data IS NOT NULL);
--
-- Name: metrics_template_dbname_time_idx; Type: INDEX; Schema: admin; Owner: pgwatch2
--
CREATE INDEX metrics_template_dbname_time_idx ON admin.metrics_template USING btree (dbname, "time");
|
-- This SQL code was generated by sklearn2sql (development version).
-- Copyright 2018
-- Model : CaretRegressor_nnet
-- Dataset : boston
-- Database : teradata
-- This SQL code can contain one or more statements, to be executed in the order they appear in this file.
-- Model deployment code
WITH "IL" AS
(SELECT "ADS"."KEY" AS "KEY", CAST("ADS"."Feature_0" AS DOUBLE PRECISION) AS "Feature_0", CAST("ADS"."Feature_1" AS DOUBLE PRECISION) AS "Feature_1", CAST("ADS"."Feature_2" AS DOUBLE PRECISION) AS "Feature_2", CAST("ADS"."Feature_3" AS DOUBLE PRECISION) AS "Feature_3", CAST("ADS"."Feature_4" AS DOUBLE PRECISION) AS "Feature_4", CAST("ADS"."Feature_5" AS DOUBLE PRECISION) AS "Feature_5", CAST("ADS"."Feature_6" AS DOUBLE PRECISION) AS "Feature_6", CAST("ADS"."Feature_7" AS DOUBLE PRECISION) AS "Feature_7", CAST("ADS"."Feature_8" AS DOUBLE PRECISION) AS "Feature_8", CAST("ADS"."Feature_9" AS DOUBLE PRECISION) AS "Feature_9", CAST("ADS"."Feature_10" AS DOUBLE PRECISION) AS "Feature_10", CAST("ADS"."Feature_11" AS DOUBLE PRECISION) AS "Feature_11", CAST("ADS"."Feature_12" AS DOUBLE PRECISION) AS "Feature_12"
FROM boston AS "ADS"),
"HL_BA_1" AS
(SELECT "IL"."KEY" AS "KEY", CAST(-0.1351813 AS DOUBLE PRECISION) * "IL"."Feature_0" + CAST(-0.02143762 AS DOUBLE PRECISION) * "IL"."Feature_1" + CAST(0.09721068 AS DOUBLE PRECISION) * "IL"."Feature_2" + CAST(0.009305186 AS DOUBLE PRECISION) * "IL"."Feature_3" + CAST(-0.01397769 AS DOUBLE PRECISION) * "IL"."Feature_4" + CAST(0.03079222 AS DOUBLE PRECISION) * "IL"."Feature_5" + CAST(0.2921661 AS DOUBLE PRECISION) * "IL"."Feature_6" + CAST(0.01690945 AS DOUBLE PRECISION) * "IL"."Feature_7" + CAST(-0.05263157 AS DOUBLE PRECISION) * "IL"."Feature_8" + CAST(-0.09234688 AS DOUBLE PRECISION) * "IL"."Feature_9" + CAST(0.0149016 AS DOUBLE PRECISION) * "IL"."Feature_10" + CAST(-0.7622842 AS DOUBLE PRECISION) * "IL"."Feature_11" + CAST(-0.2744261 AS DOUBLE PRECISION) * "IL"."Feature_12" + CAST(-0.006197264 AS DOUBLE PRECISION) AS "NEUR_1_1", CAST(0.02014699 AS DOUBLE PRECISION) * "IL"."Feature_0" + CAST(0.6179534 AS DOUBLE PRECISION) * "IL"."Feature_1" + CAST(-0.04437742 AS DOUBLE PRECISION) * "IL"."Feature_2" + CAST(-0.02284549 AS DOUBLE PRECISION) * "IL"."Feature_3" + CAST(0.02935823 AS DOUBLE PRECISION) * "IL"."Feature_4" + CAST(0.0417114 AS DOUBLE PRECISION) * "IL"."Feature_5" + CAST(0.3148483 AS DOUBLE PRECISION) * "IL"."Feature_6" + CAST(-0.0003156307 AS DOUBLE PRECISION) * "IL"."Feature_7" + CAST(0.04296511 AS DOUBLE PRECISION) * "IL"."Feature_8" + CAST(0.5836911 AS DOUBLE PRECISION) * "IL"."Feature_9" + CAST(-0.01205411 AS DOUBLE PRECISION) * "IL"."Feature_10" + CAST(1.84664 AS DOUBLE PRECISION) * "IL"."Feature_11" + CAST(-0.06593712 AS DOUBLE PRECISION) * "IL"."Feature_12" + CAST(-0.01935552 AS DOUBLE PRECISION) AS "NEUR_1_2", CAST(-2.374975 AS DOUBLE PRECISION) * "IL"."Feature_0" + CAST(-0.8546931 AS DOUBLE PRECISION) * "IL"."Feature_1" + CAST(-3.647563 AS DOUBLE PRECISION) * "IL"."Feature_2" + CAST(1.413034 AS DOUBLE PRECISION) * "IL"."Feature_3" + CAST(0.09119969 AS DOUBLE PRECISION) * "IL"."Feature_4" + CAST(4.195611 AS DOUBLE PRECISION) * "IL"."Feature_5" + CAST(-3.182887 AS DOUBLE PRECISION) * "IL"."Feature_6" + CAST(-0.2243626 AS DOUBLE PRECISION) * "IL"."Feature_7" + CAST(1.718077 AS DOUBLE PRECISION) * "IL"."Feature_8" + CAST(0.2398923 AS DOUBLE PRECISION) * "IL"."Feature_9" + CAST(-1.300518 AS DOUBLE PRECISION) * "IL"."Feature_10" + CAST(0.698918 AS DOUBLE PRECISION) * "IL"."Feature_11" + CAST(-4.869611 AS DOUBLE PRECISION) * "IL"."Feature_12" + CAST(0.06881025 AS DOUBLE PRECISION) AS "NEUR_1_3", CAST(0.01888981 AS DOUBLE PRECISION) * "IL"."Feature_0" + CAST(0.003662139 AS DOUBLE PRECISION) * "IL"."Feature_1" + CAST(-0.02322489 AS DOUBLE PRECISION) * "IL"."Feature_2" + CAST(-0.01467577 AS DOUBLE PRECISION) * "IL"."Feature_3" + CAST(0.02142798 AS DOUBLE PRECISION) * "IL"."Feature_4" + CAST(0.0007741832 AS DOUBLE PRECISION) * "IL"."Feature_5" + CAST(0.02803737 AS DOUBLE PRECISION) * "IL"."Feature_6" + CAST(-0.002163595 AS DOUBLE PRECISION) * "IL"."Feature_7" + CAST(0.002987478 AS DOUBLE PRECISION) * "IL"."Feature_8" + CAST(-0.01827652 AS DOUBLE PRECISION) * "IL"."Feature_9" + CAST(0.02442459 AS DOUBLE PRECISION) * "IL"."Feature_10" + CAST(0.01183094 AS DOUBLE PRECISION) * "IL"."Feature_11" + CAST(-0.02884906 AS DOUBLE PRECISION) * "IL"."Feature_12" + CAST(-0.02338468 AS DOUBLE PRECISION) AS "NEUR_1_4", CAST(0.02358981 AS DOUBLE PRECISION) * "IL"."Feature_0" + CAST(-0.01990417 AS DOUBLE PRECISION) * "IL"."Feature_1" + CAST(-0.02242251 AS DOUBLE PRECISION) * "IL"."Feature_2" + CAST(0.02059028 AS DOUBLE PRECISION) * "IL"."Feature_3" + CAST(-0.0133024 AS DOUBLE PRECISION) * "IL"."Feature_4" + CAST(0.0129734 AS DOUBLE PRECISION) * "IL"."Feature_5" + CAST(0.03297099 AS DOUBLE PRECISION) * "IL"."Feature_6" + CAST(0.001547034 AS DOUBLE PRECISION) * "IL"."Feature_7" + CAST(-0.002466041 AS DOUBLE PRECISION) * "IL"."Feature_8" + CAST(0.05477244 AS DOUBLE PRECISION) * "IL"."Feature_9" + CAST(-0.01448132 AS DOUBLE PRECISION) * "IL"."Feature_10" + CAST(0.01715995 AS DOUBLE PRECISION) * "IL"."Feature_11" + CAST(0.008023614 AS DOUBLE PRECISION) * "IL"."Feature_12" + CAST(0.01862126 AS DOUBLE PRECISION) AS "NEUR_1_5", CAST(5.035675 AS DOUBLE PRECISION) * "IL"."Feature_0" + CAST(2.355905 AS DOUBLE PRECISION) * "IL"."Feature_1" + CAST(0.4689048 AS DOUBLE PRECISION) * "IL"."Feature_2" + CAST(0.2765196 AS DOUBLE PRECISION) * "IL"."Feature_3" + CAST(0.6269587 AS DOUBLE PRECISION) * "IL"."Feature_4" + CAST(-11.30414 AS DOUBLE PRECISION) * "IL"."Feature_5" + CAST(1.467389 AS DOUBLE PRECISION) * "IL"."Feature_6" + CAST(-4.129247 AS DOUBLE PRECISION) * "IL"."Feature_7" + CAST(-6.571389 AS DOUBLE PRECISION) * "IL"."Feature_8" + CAST(-0.3437788 AS DOUBLE PRECISION) * "IL"."Feature_9" + CAST(2.86081 AS DOUBLE PRECISION) * "IL"."Feature_10" + CAST(0.6700416 AS DOUBLE PRECISION) * "IL"."Feature_11" + CAST(-16.89673 AS DOUBLE PRECISION) * "IL"."Feature_12" + CAST(-0.8161347 AS DOUBLE PRECISION) AS "NEUR_1_6", CAST(0.01537435 AS DOUBLE PRECISION) * "IL"."Feature_0" + CAST(-0.02618181 AS DOUBLE PRECISION) * "IL"."Feature_1" + CAST(0.006509641 AS DOUBLE PRECISION) * "IL"."Feature_2" + CAST(0.01363565 AS DOUBLE PRECISION) * "IL"."Feature_3" + CAST(0.01415559 AS DOUBLE PRECISION) * "IL"."Feature_4" + CAST(-0.01409141 AS DOUBLE PRECISION) * "IL"."Feature_5" + CAST(-0.002043709 AS DOUBLE PRECISION) * "IL"."Feature_6" + CAST(-0.02648619 AS DOUBLE PRECISION) * "IL"."Feature_7" + CAST(-0.0293079 AS DOUBLE PRECISION) * "IL"."Feature_8" + CAST(-0.03117244 AS DOUBLE PRECISION) * "IL"."Feature_9" + CAST(0.03047694 AS DOUBLE PRECISION) * "IL"."Feature_10" + CAST(-0.02567456 AS DOUBLE PRECISION) * "IL"."Feature_11" + CAST(0.0267888 AS DOUBLE PRECISION) * "IL"."Feature_12" + CAST(-0.002280895 AS DOUBLE PRECISION) AS "NEUR_1_7", CAST(0.01669056 AS DOUBLE PRECISION) * "IL"."Feature_0" + CAST(-0.1003909 AS DOUBLE PRECISION) * "IL"."Feature_1" + CAST(-0.01991443 AS DOUBLE PRECISION) * "IL"."Feature_2" + CAST(-0.004837676 AS DOUBLE PRECISION) * "IL"."Feature_3" + CAST(-0.02259718 AS DOUBLE PRECISION) * "IL"."Feature_4" + CAST(-0.002960343 AS DOUBLE PRECISION) * "IL"."Feature_5" + CAST(-0.01003447 AS DOUBLE PRECISION) * "IL"."Feature_6" + CAST(0.01271595 AS DOUBLE PRECISION) * "IL"."Feature_7" + CAST(-0.03429068 AS DOUBLE PRECISION) * "IL"."Feature_8" + CAST(-0.3009182 AS DOUBLE PRECISION) * "IL"."Feature_9" + CAST(-0.008404199 AS DOUBLE PRECISION) * "IL"."Feature_10" + CAST(-0.3531412 AS DOUBLE PRECISION) * "IL"."Feature_11" + CAST(-0.0291831 AS DOUBLE PRECISION) * "IL"."Feature_12" + CAST(-0.007238326 AS DOUBLE PRECISION) AS "NEUR_1_8", CAST(2.15465 AS DOUBLE PRECISION) * "IL"."Feature_0" + CAST(0.01552231 AS DOUBLE PRECISION) * "IL"."Feature_1" + CAST(0.1678482 AS DOUBLE PRECISION) * "IL"."Feature_2" + CAST(0.03521127 AS DOUBLE PRECISION) * "IL"."Feature_3" + CAST(0.02174246 AS DOUBLE PRECISION) * "IL"."Feature_4" + CAST(-0.1915261 AS DOUBLE PRECISION) * "IL"."Feature_5" + CAST(0.9150873 AS DOUBLE PRECISION) * "IL"."Feature_6" + CAST(0.002452169 AS DOUBLE PRECISION) * "IL"."Feature_7" + CAST(-0.1322021 AS DOUBLE PRECISION) * "IL"."Feature_8" + CAST(-0.5427202 AS DOUBLE PRECISION) * "IL"."Feature_9" + CAST(0.07356975 AS DOUBLE PRECISION) * "IL"."Feature_10" + CAST(1.332741 AS DOUBLE PRECISION) * "IL"."Feature_11" + CAST(0.1064475 AS DOUBLE PRECISION) * "IL"."Feature_12" + CAST(0.02726335 AS DOUBLE PRECISION) AS "NEUR_1_9", CAST(-0.02484066 AS DOUBLE PRECISION) * "IL"."Feature_0" + CAST(-0.005304619 AS DOUBLE PRECISION) * "IL"."Feature_1" + CAST(0.0165223 AS DOUBLE PRECISION) * "IL"."Feature_2" + CAST(-0.01725457 AS DOUBLE PRECISION) * "IL"."Feature_3" + CAST(0.0207067 AS DOUBLE PRECISION) * "IL"."Feature_4" + CAST(0.0339034 AS DOUBLE PRECISION) * "IL"."Feature_5" + CAST(0.04781904 AS DOUBLE PRECISION) * "IL"."Feature_6" + CAST(0.007237797 AS DOUBLE PRECISION) * "IL"."Feature_7" + CAST(0.01695399 AS DOUBLE PRECISION) * "IL"."Feature_8" + CAST(0.1043466 AS DOUBLE PRECISION) * "IL"."Feature_9" + CAST(0.03200844 AS DOUBLE PRECISION) * "IL"."Feature_10" + CAST(0.06177061 AS DOUBLE PRECISION) * "IL"."Feature_11" + CAST(0.02454189 AS DOUBLE PRECISION) * "IL"."Feature_12" + CAST(0.02169011 AS DOUBLE PRECISION) AS "NEUR_1_10", CAST(-0.01503247 AS DOUBLE PRECISION) * "IL"."Feature_0" + CAST(0.006681374 AS DOUBLE PRECISION) * "IL"."Feature_1" + CAST(0.03881411 AS DOUBLE PRECISION) * "IL"."Feature_2" + CAST(-0.03157174 AS DOUBLE PRECISION) * "IL"."Feature_3" + CAST(0.007520752 AS DOUBLE PRECISION) * "IL"."Feature_4" + CAST(0.0122862 AS DOUBLE PRECISION) * "IL"."Feature_5" + CAST(0.1268908 AS DOUBLE PRECISION) * "IL"."Feature_6" + CAST(-0.009839361 AS DOUBLE PRECISION) * "IL"."Feature_7" + CAST(-0.01148733 AS DOUBLE PRECISION) * "IL"."Feature_8" + CAST(0.5613739 AS DOUBLE PRECISION) * "IL"."Feature_9" + CAST(0.02650241 AS DOUBLE PRECISION) * "IL"."Feature_10" + CAST(0.5968301 AS DOUBLE PRECISION) * "IL"."Feature_11" + CAST(0.03491617 AS DOUBLE PRECISION) * "IL"."Feature_12" + CAST(0.007100828 AS DOUBLE PRECISION) AS "NEUR_1_11", CAST(0.00592356 AS DOUBLE PRECISION) * "IL"."Feature_0" + CAST(0.01220896 AS DOUBLE PRECISION) * "IL"."Feature_1" + CAST(-0.02539924 AS DOUBLE PRECISION) * "IL"."Feature_2" + CAST(0.001335394 AS DOUBLE PRECISION) * "IL"."Feature_3" + CAST(0.003454459 AS DOUBLE PRECISION) * "IL"."Feature_4" + CAST(-0.01316109 AS DOUBLE PRECISION) * "IL"."Feature_5" + CAST(0.02215265 AS DOUBLE PRECISION) * "IL"."Feature_6" + CAST(-0.001631511 AS DOUBLE PRECISION) * "IL"."Feature_7" + CAST(-0.01144526 AS DOUBLE PRECISION) * "IL"."Feature_8" + CAST(0.04978539 AS DOUBLE PRECISION) * "IL"."Feature_9" + CAST(-0.02748036 AS DOUBLE PRECISION) * "IL"."Feature_10" + CAST(0.1343038 AS DOUBLE PRECISION) * "IL"."Feature_11" + CAST(-0.003273613 AS DOUBLE PRECISION) * "IL"."Feature_12" + CAST(-0.004381384 AS DOUBLE PRECISION) AS "NEUR_1_12"
FROM "IL"),
"HL_1_logistic" AS
(SELECT "HL_BA_1"."KEY" AS "KEY", CAST(1.0 AS DOUBLE PRECISION) / (CAST(1.0 AS DOUBLE PRECISION) + exp(least(CAST(100.0 AS DOUBLE PRECISION), greatest(-CAST(100.0 AS DOUBLE PRECISION), -"HL_BA_1"."NEUR_1_1")))) AS "NEUR_1_1", CAST(1.0 AS DOUBLE PRECISION) / (CAST(1.0 AS DOUBLE PRECISION) + exp(least(CAST(100.0 AS DOUBLE PRECISION), greatest(-CAST(100.0 AS DOUBLE PRECISION), -"HL_BA_1"."NEUR_1_2")))) AS "NEUR_1_2", CAST(1.0 AS DOUBLE PRECISION) / (CAST(1.0 AS DOUBLE PRECISION) + exp(least(CAST(100.0 AS DOUBLE PRECISION), greatest(-CAST(100.0 AS DOUBLE PRECISION), -"HL_BA_1"."NEUR_1_3")))) AS "NEUR_1_3", CAST(1.0 AS DOUBLE PRECISION) / (CAST(1.0 AS DOUBLE PRECISION) + exp(least(CAST(100.0 AS DOUBLE PRECISION), greatest(-CAST(100.0 AS DOUBLE PRECISION), -"HL_BA_1"."NEUR_1_4")))) AS "NEUR_1_4", CAST(1.0 AS DOUBLE PRECISION) / (CAST(1.0 AS DOUBLE PRECISION) + exp(least(CAST(100.0 AS DOUBLE PRECISION), greatest(-CAST(100.0 AS DOUBLE PRECISION), -"HL_BA_1"."NEUR_1_5")))) AS "NEUR_1_5", CAST(1.0 AS DOUBLE PRECISION) / (CAST(1.0 AS DOUBLE PRECISION) + exp(least(CAST(100.0 AS DOUBLE PRECISION), greatest(-CAST(100.0 AS DOUBLE PRECISION), -"HL_BA_1"."NEUR_1_6")))) AS "NEUR_1_6", CAST(1.0 AS DOUBLE PRECISION) / (CAST(1.0 AS DOUBLE PRECISION) + exp(least(CAST(100.0 AS DOUBLE PRECISION), greatest(-CAST(100.0 AS DOUBLE PRECISION), -"HL_BA_1"."NEUR_1_7")))) AS "NEUR_1_7", CAST(1.0 AS DOUBLE PRECISION) / (CAST(1.0 AS DOUBLE PRECISION) + exp(least(CAST(100.0 AS DOUBLE PRECISION), greatest(-CAST(100.0 AS DOUBLE PRECISION), -"HL_BA_1"."NEUR_1_8")))) AS "NEUR_1_8", CAST(1.0 AS DOUBLE PRECISION) / (CAST(1.0 AS DOUBLE PRECISION) + exp(least(CAST(100.0 AS DOUBLE PRECISION), greatest(-CAST(100.0 AS DOUBLE PRECISION), -"HL_BA_1"."NEUR_1_9")))) AS "NEUR_1_9", CAST(1.0 AS DOUBLE PRECISION) / (CAST(1.0 AS DOUBLE PRECISION) + exp(least(CAST(100.0 AS DOUBLE PRECISION), greatest(-CAST(100.0 AS DOUBLE PRECISION), -"HL_BA_1"."NEUR_1_10")))) AS "NEUR_1_10", CAST(1.0 AS DOUBLE PRECISION) / (CAST(1.0 AS DOUBLE PRECISION) + exp(least(CAST(100.0 AS DOUBLE PRECISION), greatest(-CAST(100.0 AS DOUBLE PRECISION), -"HL_BA_1"."NEUR_1_11")))) AS "NEUR_1_11", CAST(1.0 AS DOUBLE PRECISION) / (CAST(1.0 AS DOUBLE PRECISION) + exp(least(CAST(100.0 AS DOUBLE PRECISION), greatest(-CAST(100.0 AS DOUBLE PRECISION), -"HL_BA_1"."NEUR_1_12")))) AS "NEUR_1_12"
FROM "HL_BA_1"),
"HL_1_logistic_1" AS
(SELECT "HL_1_logistic"."KEY" AS "KEY", "HL_1_logistic"."NEUR_1_1" AS "NEUR_1_1", "HL_1_logistic"."NEUR_1_2" AS "NEUR_1_2", "HL_1_logistic"."NEUR_1_3" AS "NEUR_1_3", "HL_1_logistic"."NEUR_1_4" AS "NEUR_1_4", "HL_1_logistic"."NEUR_1_5" AS "NEUR_1_5", "HL_1_logistic"."NEUR_1_6" AS "NEUR_1_6", "HL_1_logistic"."NEUR_1_7" AS "NEUR_1_7", "HL_1_logistic"."NEUR_1_8" AS "NEUR_1_8", "HL_1_logistic"."NEUR_1_9" AS "NEUR_1_9", "HL_1_logistic"."NEUR_1_10" AS "NEUR_1_10", "HL_1_logistic"."NEUR_1_11" AS "NEUR_1_11", "HL_1_logistic"."NEUR_1_12" AS "NEUR_1_12"
FROM "HL_1_logistic"),
"OL_BA" AS
(SELECT "HL_1_logistic_1"."KEY" AS "KEY", CAST(-1.863313 AS DOUBLE PRECISION) * "HL_1_logistic_1"."NEUR_1_1" + CAST(-0.128194 AS DOUBLE PRECISION) * "HL_1_logistic_1"."NEUR_1_2" + CAST(6.474053 AS DOUBLE PRECISION) * "HL_1_logistic_1"."NEUR_1_3" + CAST(0.01813677 AS DOUBLE PRECISION) * "HL_1_logistic_1"."NEUR_1_4" + CAST(2.335336 AS DOUBLE PRECISION) * "HL_1_logistic_1"."NEUR_1_5" + CAST(6.416257 AS DOUBLE PRECISION) * "HL_1_logistic_1"."NEUR_1_6" + CAST(-0.0071284 AS DOUBLE PRECISION) * "HL_1_logistic_1"."NEUR_1_7" + CAST(0.2763816 AS DOUBLE PRECISION) * "HL_1_logistic_1"."NEUR_1_8" + CAST(3.612582 AS DOUBLE PRECISION) * "HL_1_logistic_1"."NEUR_1_9" + CAST(2.345602 AS DOUBLE PRECISION) * "HL_1_logistic_1"."NEUR_1_10" + CAST(2.496434 AS DOUBLE PRECISION) * "HL_1_logistic_1"."NEUR_1_11" + CAST(2.313157 AS DOUBLE PRECISION) * "HL_1_logistic_1"."NEUR_1_12" + CAST(2.594217 AS DOUBLE PRECISION) AS "NEUR_2_1"
FROM "HL_1_logistic_1"),
"OL_identity" AS
(SELECT "OL_BA"."KEY" AS "KEY", "OL_BA"."NEUR_2_1" AS "NEUR_2_1"
FROM "OL_BA"),
"OL_identity_1" AS
(SELECT "OL_identity"."KEY" AS "KEY", "OL_identity"."NEUR_2_1" AS "NEUR_2_1"
FROM "OL_identity")
SELECT "OL_identity_1"."KEY" AS "KEY", "OL_identity_1"."NEUR_2_1" AS "Estimator"
FROM "OL_identity_1" |
<filename>src/main/resources/db/migration/V17__legg-til-navn-kolonne.sql
alter table kontaktskjema add navn varchar(255); |
<reponame>robertlluberes/clasificador-presupuestario-2014
CREATE TABLE [dbo].[Monedas]
(
[MonedaID] tinyint PRIMARY KEY IDENTITY(1, 1),
[CodigoMoneda] tinyint NOT NULL,
[SiglaMoneda] varchar(3) NOT NULL,
[CodigoAlfabetico] varchar(3) NOT NULL,
[Descripcion] varchar(64) NOT NULL
CONSTRAINT UQ_Monedas_CodigoMoneda UNIQUE ([CodigoMoneda]),
CONSTRAINT UQ_Monedas_SiglaMoneda UNIQUE ([SiglaMoneda]),
CONSTRAINT UQ_Monedas_CodigoAlfabetico UNIQUE ([CodigoAlfabetico]),
);
GO
INSERT INTO [dbo].[Monedas]
VALUES
(15,'VEB','VEB','BOLÍVARES'),
(21,'BV$','BV$','BOLÍVARES VENEZUELA EQUIV. US$'),
(17,'BRC','BRC','BRASIL, REAL'),
(20,'ATS','ATS','CHELINES AUSTRIACOS'),
(14,'SEK','SEK','CORONAS SUECAS'),
(22,'CB$','CB$','CRUZEIRO BRAZIL EQUIV. US$'),
(13,'SDR','SDR','DERECHOS ESPECIALES DE GIRO'),
(33,'DEG','DEU','DEU (Derechos especiales de giro equivalente a Dólares)'),
(18,'DKK','DKK','DINAMARCA, CORONA DANESA'),
(28,'YUD','YUD','DINARES YUGOSLAVOS'),
(5,'CAD','CAD','DÓLARES CANADIENSES'),
(2,'USD','USD','DÓLARES ESTADOUNIDENSES'),
(23,'GRD','GRD','DRACMAS GRIEGAS'),
(3,'EUR','EUR','EUROS'),
(25,'NLG','NLG','FLORINES NEERLANDESES'),
(4,'BEF','BEF','<NAME>'),
(9,'FRF','FRF','<NAME>'),
(6,'CHF','CHF','<NAME>'),
(34,'KRW','KRW','KRW WON KOREANO'),
(16,'GBP','GBP','LIBRA ESTERLINA, REINO UNIDO'),
(10,'ITL','ITL','LIRAS ITALIANAS'),
(7,'DEM','DEM','<NAME>'),
(19,'NOK','NOK','NORUEGA, CORONA NORUEGA'),
(8,'ESP','ESP','PESETAS ESPAÑOLAS'),
(27,'PA$','PA$','PESOS ARGENTINOS EQUIV. USD$'),
(1,'RD$','DOP','PESOS DOMINICANOS'),
(12,'PD$','PD$','PESOS DOMINICANOS EQUIV. US'),
(29,'MXP','MXP','PESOS MEXICANOS'),
(26,'PM$','PM$','PESOS MEXICANOS EQUIV. USD$'),
(30,'UAE','UAE','UAC (Equivalente a euros)'),
(31,'UAF','UAF','UAC (Equivalente a francos suizos)'),
(32,'UAJ','UAJ','UAC (Equivalente a yenes)'),
(35,'UAD','UAD','UAC (equivalente a dólares)'),
(24,'IDB','IDB','UNIDAD DE CUENTA BID'),
(11,'JPY','JPY','YENES');
GO
|
<filename>src/test/resources/oracle.sql
-- Create table
create table EMP
(
empno NUMBER(4) not null,
ename VARCHAR2(10),
job VARCHAR2(9),
mgr NUMBER(4),
hiredate DATE,
sal NUMBER(7,2),
comm NUMBER(7,2),
deptno NUMBER(2)
)
tablespace USERS
pctfree 10
initrans 1
maxtrans 255
storage
(
initial 64K
next 1M
minextents 1
maxextents unlimited
);
-- Create/Recreate primary, unique and foreign key constraints
alter table EMP
add constraint PK_EMP primary key (EMPNO)
using index
tablespace USERS
pctfree 10
initrans 2
maxtrans 255
storage
(
initial 64K
next 1M
minextents 1
maxextents unlimited
);
alter table EMP
add constraint FK_DEPTNO foreign key (DEPTNO)
references DEPT (DEPTNO); |
<reponame>batoolmalkawii/city_explorer_api
DROP TABLE IF EXISTS location;
CREATE TABLE location(
id SERIAL PRIMARY KEY,
search_query VARCHAR(50),
formatted_query VARCHAR(200),
latitude VARCHAR(200),
longitude VARCHAR(200)
); |
<filename>mug.sql
-- phpMyAdmin SQL Dump
-- version 4.5.1
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: 25 Apr 2018 pada 19.13
-- Versi Server: 10.1.16-MariaDB
-- PHP Version: 5.6.24
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: `mug`
--
-- --------------------------------------------------------
--
-- Struktur dari tabel `datamug`
--
CREATE TABLE `datamug` (
`datamug_id` int(11) NOT NULL,
`nama_pemesan` varchar(255) NOT NULL,
`jumlah_barang` int(11) NOT NULL,
`tanggal_pemesanan` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Struktur dari tabel `mugtabel`
--
CREATE TABLE `mugtabel` (
`pemesan_id` int(11) NOT NULL,
`nama_pemesan` varchar(100) NOT NULL,
`tanggal` date NOT NULL,
`alamat` varchar(255) NOT NULL,
`jumlah` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data untuk tabel `mugtabel`
--
INSERT INTO `mugtabel` (`pemesan_id`, `nama_pemesan`, `tanggal`, `alamat`, `jumlah`) VALUES
(1, 'nana', '2018-04-03', 'subang', 2),
(2, 'nunu', '2018-04-18', 'kalijati', 3);
--
-- Indexes for dumped tables
--
--
-- Indexes for table `datamug`
--
ALTER TABLE `datamug`
ADD PRIMARY KEY (`datamug_id`);
--
-- Indexes for table `mugtabel`
--
ALTER TABLE `mugtabel`
ADD PRIMARY KEY (`pemesan_id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `datamug`
--
ALTER TABLE `datamug`
MODIFY `datamug_id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `mugtabel`
--
ALTER TABLE `mugtabel`
MODIFY `pemesan_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
<reponame>getwasim/egov-smartcity-suites-test
--new column to map demand reason master
alter table eg_demand_reason_details add column id_demand_reason_master bigint;
alter table eg_demand_reason_details add constraint fk_eg_dem_reason_master_id foreign key (id_demand_reason_master) references eg_demand_reason_master (id);
|
<filename>leetcode/database/employees-earning-more-than-their-managers/select.sql
SELECT emp.Name
FROM
Employee as emp
JOIN Employee as man
ON emp.ManagerId = man.Id
WHERE emp.Salary > man.Salary
|
CREATE USER IF NOT EXISTS 'amamonitor'@'localhost' identified by 'amamonitor';
CREATE USER IF NOT EXISTS 'amamonitor'@'%' identified by 'amamonitor';
CREATE DATABASE IF NOT EXISTS amamonitor DEFAULT CHARACTER SET utf8mb4 DEFAULT COLLATE utf8mb4_bin;
GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER, LOCK TABLES ON amamonitor.* TO 'amamonitor'@'localhost';
GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER, LOCK TABLES ON amamonitor.* TO 'amamonitor'@'%';
CREATE DATABASE IF NOT EXISTS amamonitor_test DEFAULT CHARACTER SET utf8mb4 DEFAULT COLLATE utf8mb4_bin;
GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER, LOCK TABLES ON amamonitor_test.* TO 'amamonitor'@'localhost';
GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER, LOCK TABLES ON amamonitor_test.* TO 'amamonitor'@'%';
FLUSH PRIVILEGES;
|
CREATE TABLE Users(
userId TEXT PRIMARY KEY,
username TEXT UNIQUE,
salt TEXT,
password TEXT
);
CREATE TABLE Admins(
userId TEXT PRIMARY KEY,
canReview TEXT,
canMakeAdmin TEXT,
FOREIGN KEY(userId) REFERENCES Users(userId)
);
CREATE TABLE Templates(
templateId TEXT PRIMARY KEY,
userId TEXT,
filetype TEXT,
overlayFiletype TEXT,
positions TEXT,
reviewState TEXT DEFAULT 'p',
timeAdded INT,
timeReviewed INT,
reviewedBy TEXT,
FOREIGN KEY(userId) REFERENCES Users(userId),
FOREIGN KEY(reviewedBy) REFERENCES Users(userId)
);
CREATE TABLE SourceImages(
sourceId TEXT PRIMARY KEY,
userId TEXT,
filetype TEXT,
reviewState TEXT DEFAULT 'p',
timeAdded INT,
timeReviewed INT,
reviewedBy TEXT,
FOREIGN KEY(userId) REFERENCES Users(userId),
FOREIGN KEY(reviewedBy) REFERENCES Users(userId)
);
CREATE TABLE TemplateRatings(
userId TEXT,
templateId TEXT,
isPositive TEXT,
FOREIGN KEY(userId) REFERENCES Users(userId),
FOREIGN KEY(templateId) REFERENCES Templates(templateId),
PRIMARY KEY(userId, templateId)
);
CREATE TABLE SourceRatings(
userId TEXT,
sourceId TEXT,
isPositive TEXT,
FOREIGN KEY(userId) REFERENCES Users(userId),
FOREIGN KEY(sourceId) REFERENCES SourceImages(sourceId),
PRIMARY KEY(userId, sourceId)
); |
--
-- PostgreSQL database dump
--
-- Dumped from database version 9.6.5
-- Dumped by pg_dump version 9.6.5
SET statement_timeout = 0;
SET lock_timeout = 0;
SET idle_in_transaction_session_timeout = 0;
SET client_encoding = 'UTF8';
SET standard_conforming_strings = on;
SET check_function_bodies = false;
SET client_min_messages = warning;
SET row_security = off;
--
-- Name: plpgsql; Type: EXTENSION; Schema: -; Owner:
--
CREATE EXTENSION IF NOT EXISTS plpgsql WITH SCHEMA pg_catalog;
--
-- Name: EXTENSION plpgsql; Type: COMMENT; Schema: -; Owner:
--
COMMENT ON EXTENSION plpgsql IS 'PL/pgSQL procedural language';
SET search_path = public, pg_catalog;
SET default_tablespace = '';
SET default_with_oids = false;
--
-- Name: brands; Type: TABLE; Schema: public; Owner: richa
--
CREATE TABLE brands (
id integer NOT NULL,
name character varying,
price integer,
created_at timestamp without time zone,
updated_at timestamp without time zone
);
ALTER TABLE brands OWNER TO richa;
--
-- Name: brands_id_seq; Type: SEQUENCE; Schema: public; Owner: richa
--
CREATE SEQUENCE brands_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE brands_id_seq OWNER TO richa;
--
-- Name: brands_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: richa
--
ALTER SEQUENCE brands_id_seq OWNED BY brands.id;
--
-- Name: brands_stores; Type: TABLE; Schema: public; Owner: richa
--
CREATE TABLE brands_stores (
id integer NOT NULL,
brand_id integer,
store_id integer,
created_at timestamp without time zone,
updated_at timestamp without time zone
);
ALTER TABLE brands_stores OWNER TO richa;
--
-- Name: brands_stores_id_seq; Type: SEQUENCE; Schema: public; Owner: richa
--
CREATE SEQUENCE brands_stores_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE brands_stores_id_seq OWNER TO richa;
--
-- Name: brands_stores_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: richa
--
ALTER SEQUENCE brands_stores_id_seq OWNED BY brands_stores.id;
--
-- Name: schema_migrations; Type: TABLE; Schema: public; Owner: richa
--
CREATE TABLE schema_migrations (
version character varying NOT NULL
);
ALTER TABLE schema_migrations OWNER TO richa;
--
-- Name: stores; Type: TABLE; Schema: public; Owner: richa
--
CREATE TABLE stores (
id integer NOT NULL,
name character varying,
created_at timestamp without time zone,
updated_at timestamp without time zone
);
ALTER TABLE stores OWNER TO richa;
--
-- Name: stores_id_seq; Type: SEQUENCE; Schema: public; Owner: richa
--
CREATE SEQUENCE stores_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE stores_id_seq OWNER TO richa;
--
-- Name: stores_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: richa
--
ALTER SEQUENCE stores_id_seq OWNED BY stores.id;
--
-- Name: brands id; Type: DEFAULT; Schema: public; Owner: richa
--
ALTER TABLE ONLY brands ALTER COLUMN id SET DEFAULT nextval('brands_id_seq'::regclass);
--
-- Name: brands_stores id; Type: DEFAULT; Schema: public; Owner: richa
--
ALTER TABLE ONLY brands_stores ALTER COLUMN id SET DEFAULT nextval('brands_stores_id_seq'::regclass);
--
-- Name: stores id; Type: DEFAULT; Schema: public; Owner: richa
--
ALTER TABLE ONLY stores ALTER COLUMN id SET DEFAULT nextval('stores_id_seq'::regclass);
--
-- Data for Name: brands; Type: TABLE DATA; Schema: public; Owner: richa
--
COPY brands (id, name, price, created_at, updated_at) FROM stdin;
1 MOCHI 20 2017-09-29 21:05:33.528474 2017-09-29 21:05:33.528474
2 LIBERITY 40 2017-09-29 21:09:13.855677 2017-09-29 21:09:13.855677
3 PUMA 67 2017-09-29 21:09:32.997527 2017-09-29 21:09:32.997527
4 REEBOK 62 2017-09-29 21:09:45.235914 2017-09-29 21:09:45.235914
5 CATWALK 98 2017-09-29 21:10:02.649853 2017-09-29 21:10:02.649853
6 ADIDAS 93 2017-09-29 21:10:50.336087 2017-09-29 21:10:50.336087
7 HEELYS 102 2017-09-29 21:11:10.401395 2017-09-29 21:11:10.401395
8 <NAME> 43 2017-09-29 21:11:25.061245 2017-09-29 21:11:25.061245
9 CHENONE 108 2017-09-29 21:11:41.765068 2017-09-29 21:11:41.765068
10 <NAME> 29 2017-09-29 21:11:55.989942 2017-09-29 21:11:55.989942
11 TOD'S 95 2017-09-29 21:12:13.913184 2017-09-29 21:12:13.913184
12 KICKERS 125 2017-09-29 21:12:31.334095 2017-09-29 21:12:31.334095
13 UNITED NUDE 120 2017-09-29 21:12:54.997624 2017-09-29 21:12:54.997624
14 PACIFIC BRANDS 85 2017-09-29 21:13:10.665699 2017-09-29 21:13:10.665699
15 THE ORIGINAL CAR SHOE 200 2017-09-29 21:13:26.651912 2017-09-29 21:13:26.651912
16 ECCO 55 2017-09-29 21:13:45.134224 2017-09-29 21:13:45.134224
17 DAMANI DADA 75 2017-09-29 21:13:59.558806 2017-09-29 21:13:59.558806
18 NEWTON RUNNING 90 2017-09-29 21:14:14.799876 2017-09-29 21:14:14.799876
19 BROOKS SPORTS 80 2017-09-29 21:14:52.611215 2017-09-29 21:14:52.611215
20 UGG 210 2017-09-29 21:15:51.698623 2017-09-29 21:15:51.698623
21 SHOE 20 2017-09-29 22:58:49.128872 2017-09-29 23:06:30.518099
\.
--
-- Name: brands_id_seq; Type: SEQUENCE SET; Schema: public; Owner: richa
--
SELECT pg_catalog.setval('brands_id_seq', 21, true);
--
-- Data for Name: brands_stores; Type: TABLE DATA; Schema: public; Owner: richa
--
COPY brands_stores (id, brand_id, store_id, created_at, updated_at) FROM stdin;
1 2 1 2017-09-29 23:33:18.268277 2017-09-29 23:33:18.268277
2 3 1 2017-09-29 23:34:22.387214 2017-09-29 23:34:22.387214
3 1 1 2017-09-29 23:38:11.991344 2017-09-29 23:38:11.991344
4 5 1 2017-09-29 23:39:16.062369 2017-09-29 23:39:16.062369
5 6 1 2017-09-29 23:40:22.373876 2017-09-29 23:40:22.373876
6 4 1 2017-09-29 23:40:30.03793 2017-09-29 23:40:30.03793
7 7 1 2017-09-29 23:41:25.308555 2017-09-29 23:41:25.308555
8 9 1 2017-09-29 23:41:38.302198 2017-09-29 23:41:38.302198
\.
--
-- Name: brands_stores_id_seq; Type: SEQUENCE SET; Schema: public; Owner: richa
--
SELECT pg_catalog.setval('brands_stores_id_seq', 8, true);
--
-- Data for Name: schema_migrations; Type: TABLE DATA; Schema: public; Owner: richa
--
COPY schema_migrations (version) FROM stdin;
20170929175952
20170929180002
20170929180011
\.
--
-- Data for Name: stores; Type: TABLE DATA; Schema: public; Owner: richa
--
COPY stores (id, name, created_at, updated_at) FROM stdin;
1 <NAME> 2017-09-29 21:21:45.597598 2017-09-29 21:21:45.597598
2 SEARS 2017-09-29 21:21:57.989255 2017-09-29 21:21:57.989255
4 MARKET STREET SHOES 2017-09-29 21:22:25.970578 2017-09-29 21:22:25.970578
5 BARNEYS NEW YORK 2017-09-29 21:22:40.437099 2017-09-29 21:22:40.437099
7 NORDSTROM RACK DOWNTOWN 2017-09-29 21:23:08.878492 2017-09-29 21:23:08.878492
8 VANS 2017-09-29 21:23:23.03651 2017-09-29 21:23:23.03651
9 PAYLESS SHOESOURCE 2017-09-29 21:23:40.129336 2017-09-29 21:23:40.129336
10 BANANA REPUBLIC 2017-09-29 21:23:58.444457 2017-09-29 21:23:58.444457
11 REI 2017-09-29 21:49:56.862107 2017-09-29 21:49:56.862107
3 MACY'S 2017-09-29 21:22:11.28678 2017-09-29 22:47:03.192136
12 SHOE 2017-09-29 22:57:33.573327 2017-09-29 22:57:33.573327
\.
--
-- Name: stores_id_seq; Type: SEQUENCE SET; Schema: public; Owner: richa
--
SELECT pg_catalog.setval('stores_id_seq', 12, true);
--
-- Name: brands brands_pkey; Type: CONSTRAINT; Schema: public; Owner: richa
--
ALTER TABLE ONLY brands
ADD CONSTRAINT brands_pkey PRIMARY KEY (id);
--
-- Name: brands_stores brands_stores_pkey; Type: CONSTRAINT; Schema: public; Owner: richa
--
ALTER TABLE ONLY brands_stores
ADD CONSTRAINT brands_stores_pkey PRIMARY KEY (id);
--
-- Name: stores stores_pkey; Type: CONSTRAINT; Schema: public; Owner: richa
--
ALTER TABLE ONLY stores
ADD CONSTRAINT stores_pkey PRIMARY KEY (id);
--
-- Name: unique_schema_migrations; Type: INDEX; Schema: public; Owner: richa
--
CREATE UNIQUE INDEX unique_schema_migrations ON schema_migrations USING btree (version);
--
-- PostgreSQL database dump complete
--
|
<reponame>JudyMotha/drop-it-like-its-shop
DROP DATABASE IF EXISTS grocerylist_db;
CREATE DATABASE grocerylist_db; |
SELECT DISTINCT first_name,last_name FROM psdb.employees; |
CREATE TABLE public.aaduser
(
object_id character(255) NOT NULL,
CONSTRAINT user_pkey PRIMARY KEY (object_id),
given_name character(255) NOT NULL,
surname character(255) NOT NULL,
user_principal_name character(255) NOT NULL,
mail_nickname character(255) NOT NULL
) WITH (
OIDS= FALSE
);
ALTER TABLE public.aaduser
OWNER TO admin;
ALTER TABLE public.note ADD date date NOT NULL default current_date; |
-- Table: "SOURCE"
-- DROP TABLE "SOURCE";
CREATE TABLE "SOURCE"
(
con_id integer NOT NULL, -- Eindeutiger Technischer Primaerschluessel
wod_id integer NOT NULL, -- Eindeutiger Technischer Primaerschluessel
CONSTRAINT pk_vorkommen PRIMARY KEY (con_id, wod_id),
CONSTRAINT fk_vorkomme_vorkommen_continen FOREIGN KEY (con_id)
REFERENCES "CONTINENT" (con_id) MATCH SIMPLE
ON UPDATE RESTRICT ON DELETE RESTRICT,
CONSTRAINT fk_vorkomme_vorkommen_wood FOREIGN KEY (wod_id)
REFERENCES "WOOD" (wod_id) MATCH SIMPLE
ON UPDATE RESTRICT ON DELETE RESTRICT
)
WITH (
OIDS=FALSE
);
ALTER TABLE "SOURCE"
OWNER TO postgres;
COMMENT ON TABLE "SOURCE"
IS 'Repraesentiert die geographischen Wachstumsregionen einer Holzart';
COMMENT ON COLUMN "SOURCE".con_id IS 'Eindeutiger Technischer Primaerschluessel';
COMMENT ON COLUMN "SOURCE".wod_id IS 'Eindeutiger Technischer Primaerschluessel';
-- Index: vorkommen2_fk
-- DROP INDEX vorkommen2_fk;
CREATE INDEX vorkommen2_fk
ON "SOURCE"
USING btree
(wod_id);
-- Index: vorkommen_fk
-- DROP INDEX vorkommen_fk;
CREATE INDEX vorkommen_fk
ON "SOURCE"
USING btree
(con_id);
-- Index: vorkommen_pk
-- DROP INDEX vorkommen_pk;
CREATE UNIQUE INDEX vorkommen_pk
ON "SOURCE"
USING btree
(con_id, wod_id);
|
update reserva
set
id_cliente = :idCliente,
id_cancha = :idCancha,
fecha = :fecha,
hora_inicial = :horaInicial,
hora_final = :horaFinal,
estado = :estado,
descuento = :descuento,
valor_de_pago = :valorDePago,
fecha_creacion = :fechaCreacion
where id = :id
; |
--liquibase formatted sql
--changeset postgres:create-schema
create table b (
id integer not null primary key,
name varchar(20)
);
--changeset postgres:insert_data
insert into b values (
12, 'myname'
);
|
TRUNCATE TABLE optum_panther_native_test._version;
TRUNCATE TABLE optum_panther_native_test.care_area;
TRUNCATE TABLE optum_panther_native_test.cost_factor;
TRUNCATE TABLE optum_panther_native_test.diagnosis;
TRUNCATE TABLE optum_panther_native_test.encounter;
TRUNCATE TABLE optum_panther_native_test.encounter_provider;
TRUNCATE TABLE optum_panther_native_test.immunizations;
TRUNCATE TABLE optum_panther_native_test.insurance;
TRUNCATE TABLE optum_panther_native_test.labs;
TRUNCATE TABLE optum_panther_native_test.medication_administrations;
TRUNCATE TABLE optum_panther_native_test.microbiology;
TRUNCATE TABLE optum_panther_native_test.nlp_biomarkers;
TRUNCATE TABLE optum_panther_native_test.nlp_custom;
TRUNCATE TABLE optum_panther_native_test.nlp_drug_rationale;
TRUNCATE TABLE optum_panther_native_test.nlp_measurement;
TRUNCATE TABLE optum_panther_native_test.nlp_sds;
TRUNCATE TABLE optum_panther_native_test.nlp_sds_family;
TRUNCATE TABLE optum_panther_native_test.observations;
TRUNCATE TABLE optum_panther_native_test.patient;
TRUNCATE TABLE optum_panther_native_test.patient_reported_medications;
TRUNCATE TABLE optum_panther_native_test.prescriptions_written;
TRUNCATE TABLE optum_panther_native_test.[procedure];
TRUNCATE TABLE optum_panther_native_test.provider;
TRUNCATE TABLE optum_panther_native_test.visit;
-- 0: Diagnosis without ''Diagnosis of'' status is not loaded
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT1', '1950', 'Male', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', ' ', '1', '200701', '201001', '1', '1', 'S0034', '201706');
INSERT INTO optum_panther_native_test.diagnosis(ptid, diag_date, diag_time, diagnosis_cd, diagnosis_cd_type, diagnosis_status, poa, admitting_diagnosis, discharge_diagnosis, primary_diagnosis, problem_list) VALUES ('PT1', '2009-01-01', '00:00:00', '7061', 'ICD9', 'Family history of', '0', '0', '0', '0', 'N');
-- 1: Test diag_date to condition_start_date
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT2', '1950', 'Male', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', ' ', '1', '200701', '201001', '1', '1', 'S0034', '201706');
INSERT INTO optum_panther_native_test.diagnosis(ptid, diag_date, diag_time, diagnosis_cd, diagnosis_cd_type, diagnosis_status, poa, admitting_diagnosis, discharge_diagnosis, primary_diagnosis, problem_list) VALUES ('PT2', '2009-01-01', '00:00:00', '7061', 'ICD9', 'Diagnosis of', '0', '0', '0', '0', 'N');
-- 2: Test diagnosis code type ICD9
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT3', '1950', 'Male', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', ' ', '1', '200701', '201001', '1', '1', 'S0034', '201706');
INSERT INTO optum_panther_native_test.diagnosis(ptid, diag_date, diag_time, diagnosis_cd, diagnosis_cd_type, diagnosis_status, poa, admitting_diagnosis, discharge_diagnosis, primary_diagnosis, problem_list) VALUES ('PT3', '2009-01-01', '00:00:00', '7061', 'ICD9', 'Diagnosis of', '0', '0', '0', '0', 'N');
-- 3: Test diagnosis code type ICD10
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT5', '1950', 'Male', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', ' ', '1', '200701', '201001', '1', '1', 'S0034', '201706');
INSERT INTO optum_panther_native_test.diagnosis(ptid, diag_date, diag_time, diagnosis_cd, diagnosis_cd_type, diagnosis_status, poa, admitting_diagnosis, discharge_diagnosis, primary_diagnosis, problem_list) VALUES ('PT5', '2009-01-01', '00:00:00', 'H44.611', 'ICD10', 'Diagnosis of', '0', '0', '0', '0', 'N');
-- 4: Test primary diagnosis to condition_type_concept_id
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT7', '1950', 'Male', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', ' ', '1', '200701', '201001', '1', '1', 'S0034', '201706');
INSERT INTO optum_panther_native_test.diagnosis(ptid, diag_date, diag_time, diagnosis_cd, diagnosis_cd_type, diagnosis_status, poa, admitting_diagnosis, discharge_diagnosis, primary_diagnosis, problem_list) VALUES ('PT7', '2009-01-01', '00:00:00', '7061', 'ICD9', 'Diagnosis of', '0', '0', '0', '1', 'N');
-- 5: Test non-primary diagnosis to condition_type_concept_id
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT9', '1950', 'Male', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', ' ', '1', '200701', '201001', '1', '1', 'S0034', '201706');
INSERT INTO optum_panther_native_test.diagnosis(ptid, diag_date, diag_time, diagnosis_cd, diagnosis_cd_type, diagnosis_status, poa, admitting_diagnosis, discharge_diagnosis, primary_diagnosis, problem_list) VALUES ('PT9', '2009-01-01', '00:00:00', '7061', 'ICD9', 'Diagnosis of', '0', '0', '0', '0', 'N');
-- 6: Test diagnosis code with wrong diagnosis code type
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT11', '1950', 'Male', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', ' ', '1', '200701', '201001', '1', '1', 'S0034', '201706');
INSERT INTO optum_panther_native_test.diagnosis(ptid, diag_date, diag_time, diagnosis_cd, diagnosis_cd_type, diagnosis_status, poa, admitting_diagnosis, discharge_diagnosis, primary_diagnosis, problem_list) VALUES ('PT11', '2009-01-01', '00:00:00', '44786629', 'ICD9', 'Diagnosis of', '0', '0', '0', '0', 'N');
-- 7: Test blank diagnosis code
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT13', '1950', 'Male', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', ' ', '1', '200701', '201001', '1', '1', 'S0034', '201706');
INSERT INTO optum_panther_native_test.diagnosis(ptid, diag_date, diag_time, diagnosis_status, poa, admitting_diagnosis, discharge_diagnosis, primary_diagnosis, problem_list) VALUES ('PT13', '2009-01-01', '00:00:00', 'Diagnosis of', '0', '0', '0', '0', 'N');
-- 8: Test HCPCS derived condition coming from procedure table
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT15', '1950', 'Male', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', ' ', '1', '200701', '201001', '1', '1', 'S0034', '201706');
INSERT INTO optum_panther_native_test.[procedure](ptid, proc_date, proc_time, proc_code, proc_code_type) VALUES ('PT15', '2009-01-01', '00:00:00', 'G8007', 'HCPCS');
-- 9: Patient has PROCEDURE record; validate the provider for the encid is mapped to provid
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT16', '1950', 'Male', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', ' ', '1', '200701', '201001', '1', '1', 'S0034', '201706');
INSERT INTO optum_panther_native_test.provider(provid, specialty, prim_spec_ind) VALUES ('17', 'Internal Medicine', '1');
INSERT INTO optum_panther_native_test.encounter(ptid, encid, interaction_type, interaction_date, interaction_time, academic_community_flag) VALUES ('PT16', 'E000018', 'Inpatient', '2009-01-01', '00:00:00', 'U');
INSERT INTO optum_panther_native_test.encounter_provider(encid, provid, provider_role) VALUES ('E000018', '17', 'ATTENDING');
INSERT INTO optum_panther_native_test.[procedure](ptid, encid, proc_date, proc_time, proc_code, proc_code_type) VALUES ('PT16', 'E000018', '2009-01-01', '00:00:00', 'G8007', 'HCPCS');
-- 10: Patient has PROCEDURE record; validate the visit_occurrence_id
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT19', '1950', 'Male', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', ' ', '1', '200701', '201001', '1', '1', 'S0034', '201706');
INSERT INTO optum_panther_native_test.encounter(ptid, encid, interaction_type, interaction_date, interaction_time, academic_community_flag) VALUES ('PT19', 'E000020', 'Inpatient', '2009-01-01', '00:00:00', 'U');
INSERT INTO optum_panther_native_test.[procedure](ptid, encid, proc_date, proc_time, proc_code, proc_code_type) VALUES ('PT19', 'E000020', '2009-01-01', '00:00:00', 'G8007', 'HCPCS');
-- 11: Patient is indicated dead by date_of_death. Their death date is the last day of the month.
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT22', '1928 and Earlier', 'Female', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', '201404', '1', '200601', '201706', '1', '1', 'S0034', '201706');
-- 12: Patient has diagnosis data occurring data occurring exactly 30 days after death event. Expected result: dead
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT24', '1928 and Earlier', 'Female', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', '201404', '1', '200601', '201706', '1', '1', 'S0034', '201706');
INSERT INTO optum_panther_native_test.encounter(ptid, visitid, encid, interaction_type, interaction_date, interaction_time, academic_community_flag) VALUES ('PT24', '26', 'E000025', 'Office or clinic patient', '2014-05-30', '00:00:00', 'U');
INSERT INTO optum_panther_native_test.diagnosis(ptid, encid, diag_date, diag_time, diagnosis_cd, diagnosis_cd_type, diagnosis_status, poa, admitting_diagnosis, discharge_diagnosis, primary_diagnosis, problem_list) VALUES ('PT24', 'E000025', '2014-05-30', '00:00:00', '7061', 'ICD9', 'Diagnosis of', '0', '0', '0', '0', 'N');
-- 13: Patient has encounter data occurring data occurring exactly 30 days after death event. Expected result: dead
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT27', '1928 and Earlier', 'Female', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', '201404', '1', '200601', '201706', '1', '1', 'S0034', '201706');
INSERT INTO optum_panther_native_test.encounter(ptid, visitid, encid, interaction_type, interaction_date, interaction_time, academic_community_flag) VALUES ('PT27', '29', 'E000028', 'Office or clinic patient', '2014-05-30', '00:00:00', 'U');
INSERT INTO optum_panther_native_test.encounter(ptid, encid, interaction_type, interaction_date, interaction_time, academic_community_flag) VALUES ('PT27', 'E000028', 'Office or clinic patient', '2014-05-30', '00:00:00', 'U');
-- 14: Patient has immunizations data occurring data occurring exactly 30 days after death event. Expected result: dead
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT30', '1928 and Earlier', 'Female', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', '201404', '1', '200601', '201706', '1', '1', 'S0034', '201706');
INSERT INTO optum_panther_native_test.encounter(ptid, visitid, encid, interaction_type, interaction_date, interaction_time, academic_community_flag) VALUES ('PT30', '32', 'E000031', 'Office or clinic patient', '2014-05-30', '00:00:00', 'U');
INSERT INTO optum_panther_native_test.immunizations(ptid, immunization_date, mapped_name, ndc, ndc_source, pt_reported) VALUES ('PT30', '2014-05-30', 'Influenza Inactivated Vaccine', '49281039765', 'Derived', ' ');
-- 15: Patient has insurance data occurring data occurring exactly 30 days after death event. Expected result: dead
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT33', '1928 and Earlier', 'Female', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', '201404', '1', '200601', '201706', '1', '1', 'S0034', '201706');
INSERT INTO optum_panther_native_test.encounter(ptid, visitid, encid, interaction_type, interaction_date, interaction_time, academic_community_flag) VALUES ('PT33', '35', 'E000034', 'Office or clinic patient', '2014-05-30', '00:00:00', 'U');
INSERT INTO optum_panther_native_test.insurance(ptid, encid, insurance_date, insurance_time, ins_type) VALUES ('PT33', 'E000034', '2014-05-30', '00:00:00', 'Commercial');
-- 16: Patient has labs data occurring data occurring exactly 30 days after death event. Expected result: dead
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT36', '1928 and Earlier', 'Female', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', '201404', '1', '200601', '201706', '1', '1', 'S0034', '201706');
INSERT INTO optum_panther_native_test.encounter(ptid, visitid, encid, interaction_type, interaction_date, interaction_time, academic_community_flag) VALUES ('PT36', '38', 'E000037', 'Office or clinic patient', '2014-05-30', '00:00:00', 'U');
INSERT INTO optum_panther_native_test.labs(ptid, encid, test_name, test_type, order_date, result_time, test_result, result_unit, evaluated_for_range, value_within_range) VALUES ('PT36', 'E000037', 'Oxygen saturation (SpO2).pulse oximetry', 'CHEMISTRY', '2014-05-30', '00:00:00', 'negative', '%', 'Y', 'Y');
-- 17: Patient has medication_administrations data occurring data occurring exactly 30 days after death event. Expected result: dead
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT39', '1928 and Earlier', 'Female', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', '201404', '1', '200601', '201706', '1', '1', 'S0034', '201706');
INSERT INTO optum_panther_native_test.encounter(ptid, visitid, encid, interaction_type, interaction_date, interaction_time, academic_community_flag) VALUES ('PT39', '41', 'E000040', 'Office or clinic patient', '2014-05-30', '00:00:00', 'U');
INSERT INTO optum_panther_native_test.medication_administrations(ptid, encid, drug_name, ndc, ndc_source, order_date, order_time, route, strength, strength_unit, dosage_form, generic_desc, drug_class) VALUES ('PT39', 'E000040', 'SODIUM CHLORIDE 0.9 %', '00409798309', 'Derived', '2014-05-30', '12:00:00', 'Oral', 'mg', 'mg', 'Solution', '0.9 % SODIUM CHLORIDE', 'Narcotic agonist analgesics');
-- 18: Patient has microbiology data occurring data occurring exactly 30 days after death event. Expected result: dead
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT42', '1928 and Earlier', 'Female', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', '201404', '1', '200601', '201706', '1', '1', 'S0034', '201706');
INSERT INTO optum_panther_native_test.encounter(ptid, visitid, encid, interaction_type, interaction_date, interaction_time, academic_community_flag) VALUES ('PT42', '44', 'E000043', 'Office or clinic patient', '2014-05-30', '00:00:00', 'U');
INSERT INTO optum_panther_native_test.microbiology(ptid, encid, order_date, result_date, result_time, specimen_source, organism, mapped_organism_found, culture_growth, sensitivity) VALUES ('PT42', 'E000043', '2014-05-30', '2014-05-23', '00:00:00', 'Urine', 'ESCHERICHIA COLI', 'Escherichia coli', 'Not recorded', 'Sensitive');
-- 19: Patient has nlp_biomarkers data occurring data occurring exactly 30 days after death event. Expected result: dead
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT45', '1928 and Earlier', 'Female', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', '201404', '1', '200601', '201706', '1', '1', 'S0034', '201706');
INSERT INTO optum_panther_native_test.encounter(ptid, visitid, encid, interaction_type, interaction_date, interaction_time, academic_community_flag) VALUES ('PT45', '47', 'E000046', 'Office or clinic patient', '2014-05-30', '00:00:00', 'U');
INSERT INTO optum_panther_native_test.nlp_biomarkers(ptid, note_date, biomarker, biomarker_status) VALUES ('PT45', '2014-05-30', 'ER', 'negative');
-- 20: Patient has nlp_drug_rationale data occurring data occurring exactly 30 days after death event. Expected result: dead
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT48', '1928 and Earlier', 'Female', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', '201404', '1', '200601', '201706', '1', '1', 'S0034', '201706');
INSERT INTO optum_panther_native_test.encounter(ptid, visitid, encid, interaction_type, interaction_date, interaction_time, academic_community_flag) VALUES ('PT48', '50', 'E000049', 'Office or clinic patient', '2014-05-30', '00:00:00', 'U');
INSERT INTO optum_panther_native_test.nlp_drug_rationale(ptid, note_date, note_section, drug_name, drug_action, drug_action_preposition) VALUES ('PT48', '2014-05-30', 'MEDICATIONS', 'ASPIRIN', 'N/A', 'OF');
-- 21: Patient has nlp_measurement data occurring data occurring exactly 30 days after death event. Expected result: dead
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT51', '1928 and Earlier', 'Female', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', '201404', '1', '200601', '201706', '1', '1', 'S0034', '201706');
INSERT INTO optum_panther_native_test.encounter(ptid, visitid, encid, interaction_type, interaction_date, interaction_time, academic_community_flag) VALUES ('PT51', '53', 'E000052', 'Office or clinic patient', '2014-05-30', '00:00:00', 'U');
INSERT INTO optum_panther_native_test.nlp_measurement(ptid, encid, note_date, measurement_type, measurement_value) VALUES ('PT51', 'E000052', '2014-05-30', 'WEIGHT', 'normal');
-- 22: Patient has nlp_sds data occurring data occurring exactly 30 days after death event. Expected result: dead
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT54', '1928 and Earlier', 'Female', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', '201404', '1', '200601', '201706', '1', '1', 'S0034', '201706');
INSERT INTO optum_panther_native_test.encounter(ptid, visitid, encid, interaction_type, interaction_date, interaction_time, academic_community_flag) VALUES ('PT54', '56', 'E000055', 'Office or clinic patient', '2014-05-30', '00:00:00', 'U');
INSERT INTO optum_panther_native_test.nlp_sds(ptid, encid, note_date, sds_term) VALUES ('PT54', 'E000055', '2014-05-30', 'pain');
-- 23: Patient has nlp_sds_family data occurring data occurring exactly 30 days after death event. Expected result: dead
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT57', '1928 and Earlier', 'Female', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', '201404', '1', '200601', '201706', '1', '1', 'S0034', '201706');
INSERT INTO optum_panther_native_test.encounter(ptid, visitid, encid, interaction_type, interaction_date, interaction_time, academic_community_flag) VALUES ('PT57', '59', 'E000058', 'Office or clinic patient', '2014-05-30', '00:00:00', 'U');
INSERT INTO optum_panther_native_test.nlp_sds_family(ptid, encid, note_date, sds_term, sds_family_member, note_section) VALUES ('PT57', 'E000058', '2014-05-30', 'cancer', 'who=family', 'family medical history');
-- 24: Patient has observations data occurring data occurring exactly 30 days after death event. Expected result: dead
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT60', '1928 and Earlier', 'Female', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', '201404', '1', '200601', '201706', '1', '1', 'S0034', '201706');
INSERT INTO optum_panther_native_test.encounter(ptid, visitid, encid, interaction_type, interaction_date, interaction_time, academic_community_flag) VALUES ('PT60', '62', 'E000061', 'Office or clinic patient', '2014-05-30', '00:00:00', 'U');
INSERT INTO optum_panther_native_test.observations(ptid, encid, obs_type, nlp, obs_date, obs_time, obs_result, obs_unit, evaluated_for_range, value_within_range) VALUES ('PT60', 'E000061', 'SBP', 'N', '2014-05-30', '00:00:00', '18', 'mm Hg', 'N', 'U');
-- 25: Patient has patient_reported_medications data occurring data occurring exactly 30 days after death event. Expected result: dead
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT63', '1928 and Earlier', 'Female', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', '201404', '1', '200601', '201706', '1', '1', 'S0034', '201706');
INSERT INTO optum_panther_native_test.encounter(ptid, visitid, encid, interaction_type, interaction_date, interaction_time, academic_community_flag) VALUES ('PT63', '65', 'E000064', 'Office or clinic patient', '2014-05-30', '00:00:00', 'U');
INSERT INTO optum_panther_native_test.patient_reported_medications(ptid, reported_date, ndc, ndc_source, route, strength, strength_unit, dosage_form, drug_class) VALUES ('PT63', '2014-05-30', 'Derived', 'Derived', 'Oral', 'mg', 'mg', 'Tabs', 'Narcotic agonist analgesics');
-- 26: Patient has prescriptions_written data occurring data occurring exactly 30 days after death event. Expected result: dead
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT66', '1928 and Earlier', 'Female', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', '201404', '1', '200601', '201706', '1', '1', 'S0034', '201706');
INSERT INTO optum_panther_native_test.encounter(ptid, visitid, encid, interaction_type, interaction_date, interaction_time, academic_community_flag) VALUES ('PT66', '68', 'E000067', 'Office or clinic patient', '2014-05-30', '00:00:00', 'U');
INSERT INTO optum_panther_native_test.prescriptions_written(ptid, rxdate, rxtime, ndc, ndc_source, route, strength, strength_unit, num_refills, drug_class) VALUES ('PT66', '2014-05-30', '00:00:00', '00406012501', 'Derived', 'Oral', 'mg', 'mg', '0', 'Narcotic & analgesic combinations');
-- 27: Patient has procedure data occurring data occurring exactly 30 days after death event. Expected result: dead
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT69', '1928 and Earlier', 'Female', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', '201404', '1', '200601', '201706', '1', '1', 'S0034', '201706');
INSERT INTO optum_panther_native_test.encounter(ptid, visitid, encid, interaction_type, interaction_date, interaction_time, academic_community_flag) VALUES ('PT69', '71', 'E000070', 'Office or clinic patient', '2014-05-30', '00:00:00', 'U');
INSERT INTO optum_panther_native_test.[procedure](ptid, proc_date, proc_time, proc_code, proc_code_type) VALUES ('PT69', '2014-05-30', '00:00:00', 'CPT4', 'CPT4');
-- 28: Patient has visit data occurring data occurring exactly 30 days after death event. Expected result: dead
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT72', '1928 and Earlier', 'Female', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', '201404', '1', '200601', '201706', '1', '1', 'S0034', '201706');
INSERT INTO optum_panther_native_test.encounter(ptid, visitid, encid, interaction_type, interaction_date, interaction_time, academic_community_flag) VALUES ('PT72', '74', 'E000073', 'Office or clinic patient', '2014-05-30', '00:00:00', 'U');
INSERT INTO optum_panther_native_test.visit(ptid, visitid, visit_type, visit_start_date, visit_start_time, visit_end_date, visit_end_time, discharge_disposition, admission_source) VALUES ('PT72', '74', 'Emergency patient', '2014-05-30', '00:00:00', '2015-12-15', '00:00:00', '01 DISCHARGED TO HOME OR SELF CARE', 'Referred by physician or self referral; non-healthcare facility point of origin');
-- 29: Patient has diagnosis data occurring data occurring 60 days after death event. Expected result: not dead
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT75', '1928 and Earlier', 'Female', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', '201404', '1', '200601', '201706', '1', '1', 'S0034', '201706');
INSERT INTO optum_panther_native_test.encounter(ptid, visitid, encid, interaction_type, interaction_date, interaction_time, academic_community_flag) VALUES ('PT75', '77', 'E000076', 'Office or clinic patient', '2014-06-29', '00:00:00', 'U');
INSERT INTO optum_panther_native_test.diagnosis(ptid, encid, diag_date, diag_time, diagnosis_cd, diagnosis_cd_type, diagnosis_status, poa, admitting_diagnosis, discharge_diagnosis, primary_diagnosis, problem_list) VALUES ('PT75', 'E000076', '2014-06-29', '00:00:00', '7061', 'ICD9', 'Diagnosis of', '0', '0', '0', '0', 'N');
-- 30: Patient has encounter data occurring data occurring 60 days after death event. Expected result: not dead
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT78', '1928 and Earlier', 'Female', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', '201404', '1', '200601', '201706', '1', '1', 'S0034', '201706');
INSERT INTO optum_panther_native_test.encounter(ptid, visitid, encid, interaction_type, interaction_date, interaction_time, academic_community_flag) VALUES ('PT78', '80', 'E000079', 'Office or clinic patient', '2014-06-29', '00:00:00', 'U');
INSERT INTO optum_panther_native_test.encounter(ptid, encid, interaction_type, interaction_date, interaction_time, academic_community_flag) VALUES ('PT78', 'E000079', 'Office or clinic patient', '2014-06-29', '00:00:00', 'U');
-- 31: Patient has immunizations data occurring data occurring 60 days after death event. Expected result: not dead
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT81', '1928 and Earlier', 'Female', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', '201404', '1', '200601', '201706', '1', '1', 'S0034', '201706');
INSERT INTO optum_panther_native_test.encounter(ptid, visitid, encid, interaction_type, interaction_date, interaction_time, academic_community_flag) VALUES ('PT81', '83', 'E000082', 'Office or clinic patient', '2014-06-29', '00:00:00', 'U');
INSERT INTO optum_panther_native_test.immunizations(ptid, immunization_date, mapped_name, ndc, ndc_source, pt_reported) VALUES ('PT81', '2014-06-29', 'Influenza Inactivated Vaccine', '49281039765', 'Derived', ' ');
-- 32: Patient has insurance data occurring data occurring 60 days after death event. Expected result: not dead
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT84', '1928 and Earlier', 'Female', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', '201404', '1', '200601', '201706', '1', '1', 'S0034', '201706');
INSERT INTO optum_panther_native_test.encounter(ptid, visitid, encid, interaction_type, interaction_date, interaction_time, academic_community_flag) VALUES ('PT84', '86', 'E000085', 'Office or clinic patient', '2014-06-29', '00:00:00', 'U');
INSERT INTO optum_panther_native_test.insurance(ptid, encid, insurance_date, insurance_time, ins_type) VALUES ('PT84', 'E000085', '2014-06-29', '00:00:00', 'Commercial');
-- 33: Patient has labs data occurring data occurring 60 days after death event. Expected result: not dead
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT87', '1928 and Earlier', 'Female', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', '201404', '1', '200601', '201706', '1', '1', 'S0034', '201706');
INSERT INTO optum_panther_native_test.encounter(ptid, visitid, encid, interaction_type, interaction_date, interaction_time, academic_community_flag) VALUES ('PT87', '89', 'E000088', 'Office or clinic patient', '2014-06-29', '00:00:00', 'U');
INSERT INTO optum_panther_native_test.labs(ptid, encid, test_name, test_type, order_date, result_time, test_result, result_unit, evaluated_for_range, value_within_range) VALUES ('PT87', 'E000088', 'Oxygen saturation (SpO2).pulse oximetry', 'CHEMISTRY', '2014-06-29', '00:00:00', 'negative', '%', 'Y', 'Y');
-- 34: Patient has medication_administrations data occurring data occurring 60 days after death event. Expected result: not dead
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT90', '1928 and Earlier', 'Female', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', '201404', '1', '200601', '201706', '1', '1', 'S0034', '201706');
INSERT INTO optum_panther_native_test.encounter(ptid, visitid, encid, interaction_type, interaction_date, interaction_time, academic_community_flag) VALUES ('PT90', '92', 'E000091', 'Office or clinic patient', '2014-06-29', '00:00:00', 'U');
INSERT INTO optum_panther_native_test.medication_administrations(ptid, encid, drug_name, ndc, ndc_source, order_date, order_time, route, strength, strength_unit, dosage_form, generic_desc, drug_class) VALUES ('PT90', 'E000091', 'SODIUM CHLORIDE 0.9 %', '00409798309', 'Derived', '2014-06-29', '12:00:00', 'Oral', 'mg', 'mg', 'Solution', '0.9 % SODIUM CHLORIDE', 'Narcotic agonist analgesics');
-- 35: Patient has microbiology data occurring data occurring 60 days after death event. Expected result: not dead
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT93', '1928 and Earlier', 'Female', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', '201404', '1', '200601', '201706', '1', '1', 'S0034', '201706');
INSERT INTO optum_panther_native_test.encounter(ptid, visitid, encid, interaction_type, interaction_date, interaction_time, academic_community_flag) VALUES ('PT93', '95', 'E000094', 'Office or clinic patient', '2014-06-29', '00:00:00', 'U');
INSERT INTO optum_panther_native_test.microbiology(ptid, encid, order_date, result_date, result_time, specimen_source, organism, mapped_organism_found, culture_growth, sensitivity) VALUES ('PT93', 'E000094', '2014-06-29', '2014-05-23', '00:00:00', 'Urine', 'ESCHERICHIA COLI', 'Escherichia coli', 'Not recorded', 'Sensitive');
-- 36: Patient has nlp_biomarkers data occurring data occurring 60 days after death event. Expected result: not dead
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT96', '1928 and Earlier', 'Female', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', '201404', '1', '200601', '201706', '1', '1', 'S0034', '201706');
INSERT INTO optum_panther_native_test.encounter(ptid, visitid, encid, interaction_type, interaction_date, interaction_time, academic_community_flag) VALUES ('PT96', '98', 'E000097', 'Office or clinic patient', '2014-06-29', '00:00:00', 'U');
INSERT INTO optum_panther_native_test.nlp_biomarkers(ptid, note_date, biomarker, biomarker_status) VALUES ('PT96', '2014-06-29', 'ER', 'negative');
-- 37: Patient has nlp_drug_rationale data occurring data occurring 60 days after death event. Expected result: not dead
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT99', '1928 and Earlier', 'Female', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', '201404', '1', '200601', '201706', '1', '1', 'S0034', '201706');
INSERT INTO optum_panther_native_test.encounter(ptid, visitid, encid, interaction_type, interaction_date, interaction_time, academic_community_flag) VALUES ('PT99', '101', 'E0000100', 'Office or clinic patient', '2014-06-29', '00:00:00', 'U');
INSERT INTO optum_panther_native_test.nlp_drug_rationale(ptid, note_date, note_section, drug_name, drug_action, drug_action_preposition) VALUES ('PT99', '2014-06-29', 'MEDICATIONS', 'ASPIRIN', 'N/A', 'OF');
-- 38: Patient has nlp_measurement data occurring data occurring 60 days after death event. Expected result: not dead
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT102', '1928 and Earlier', 'Female', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', '201404', '1', '200601', '201706', '1', '1', 'S0034', '201706');
INSERT INTO optum_panther_native_test.encounter(ptid, visitid, encid, interaction_type, interaction_date, interaction_time, academic_community_flag) VALUES ('PT102', '104', 'E0000103', 'Office or clinic patient', '2014-06-29', '00:00:00', 'U');
INSERT INTO optum_panther_native_test.nlp_measurement(ptid, encid, note_date, measurement_type, measurement_value) VALUES ('PT102', 'E0000103', '2014-06-29', 'WEIGHT', 'normal');
-- 39: Patient has nlp_sds data occurring data occurring 60 days after death event. Expected result: not dead
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT105', '1928 and Earlier', 'Female', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', '201404', '1', '200601', '201706', '1', '1', 'S0034', '201706');
INSERT INTO optum_panther_native_test.encounter(ptid, visitid, encid, interaction_type, interaction_date, interaction_time, academic_community_flag) VALUES ('PT105', '107', 'E0000106', 'Office or clinic patient', '2014-06-29', '00:00:00', 'U');
INSERT INTO optum_panther_native_test.nlp_sds(ptid, encid, note_date, sds_term) VALUES ('PT105', 'E0000106', '2014-06-29', 'pain');
-- 40: Patient has nlp_sds_family data occurring data occurring 60 days after death event. Expected result: not dead
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT108', '1928 and Earlier', 'Female', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', '201404', '1', '200601', '201706', '1', '1', 'S0034', '201706');
INSERT INTO optum_panther_native_test.encounter(ptid, visitid, encid, interaction_type, interaction_date, interaction_time, academic_community_flag) VALUES ('PT108', '110', 'E0000109', 'Office or clinic patient', '2014-06-29', '00:00:00', 'U');
INSERT INTO optum_panther_native_test.nlp_sds_family(ptid, encid, note_date, sds_term, sds_family_member, note_section) VALUES ('PT108', 'E0000109', '2014-06-29', 'cancer', 'who=family', 'family medical history');
-- 41: Patient has observations data occurring data occurring 60 days after death event. Expected result: not dead
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT111', '1928 and Earlier', 'Female', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', '201404', '1', '200601', '201706', '1', '1', 'S0034', '201706');
INSERT INTO optum_panther_native_test.encounter(ptid, visitid, encid, interaction_type, interaction_date, interaction_time, academic_community_flag) VALUES ('PT111', '113', 'E0000112', 'Office or clinic patient', '2014-06-29', '00:00:00', 'U');
INSERT INTO optum_panther_native_test.observations(ptid, encid, obs_type, nlp, obs_date, obs_time, obs_result, obs_unit, evaluated_for_range, value_within_range) VALUES ('PT111', 'E0000112', 'SBP', 'N', '2014-06-29', '00:00:00', '18', 'mm Hg', 'N', 'U');
-- 42: Patient has patient_reported_medications data occurring data occurring 60 days after death event. Expected result: not dead
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT114', '1928 and Earlier', 'Female', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', '201404', '1', '200601', '201706', '1', '1', 'S0034', '201706');
INSERT INTO optum_panther_native_test.encounter(ptid, visitid, encid, interaction_type, interaction_date, interaction_time, academic_community_flag) VALUES ('PT114', '116', 'E0000115', 'Office or clinic patient', '2014-06-29', '00:00:00', 'U');
INSERT INTO optum_panther_native_test.patient_reported_medications(ptid, reported_date, ndc, ndc_source, route, strength, strength_unit, dosage_form, drug_class) VALUES ('PT114', '2014-06-29', 'Derived', 'Derived', 'Oral', 'mg', 'mg', 'Tabs', 'Narcotic agonist analgesics');
-- 43: Patient has prescriptions_written data occurring data occurring 60 days after death event. Expected result: not dead
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT117', '1928 and Earlier', 'Female', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', '201404', '1', '200601', '201706', '1', '1', 'S0034', '201706');
INSERT INTO optum_panther_native_test.encounter(ptid, visitid, encid, interaction_type, interaction_date, interaction_time, academic_community_flag) VALUES ('PT117', '119', 'E0000118', 'Office or clinic patient', '2014-06-29', '00:00:00', 'U');
INSERT INTO optum_panther_native_test.prescriptions_written(ptid, rxdate, rxtime, ndc, ndc_source, route, strength, strength_unit, num_refills, drug_class) VALUES ('PT117', '2014-06-29', '00:00:00', '00406012501', 'Derived', 'Oral', 'mg', 'mg', '0', 'Narcotic & analgesic combinations');
-- 44: Patient has procedure data occurring data occurring 60 days after death event. Expected result: not dead
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT120', '1928 and Earlier', 'Female', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', '201404', '1', '200601', '201706', '1', '1', 'S0034', '201706');
INSERT INTO optum_panther_native_test.encounter(ptid, visitid, encid, interaction_type, interaction_date, interaction_time, academic_community_flag) VALUES ('PT120', '122', 'E0000121', 'Office or clinic patient', '2014-06-29', '00:00:00', 'U');
INSERT INTO optum_panther_native_test.[procedure](ptid, proc_date, proc_time, proc_code, proc_code_type) VALUES ('PT120', '2014-06-29', '00:00:00', 'CPT4', 'CPT4');
-- 45: Patient has visit data occurring data occurring 60 days after death event. Expected result: not dead
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT123', '1928 and Earlier', 'Female', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', '201404', '1', '200601', '201706', '1', '1', 'S0034', '201706');
INSERT INTO optum_panther_native_test.encounter(ptid, visitid, encid, interaction_type, interaction_date, interaction_time, academic_community_flag) VALUES ('PT123', '125', 'E0000124', 'Office or clinic patient', '2014-06-29', '00:00:00', 'U');
INSERT INTO optum_panther_native_test.visit(ptid, visitid, visit_type, visit_start_date, visit_start_time, visit_end_date, visit_end_time, discharge_disposition, admission_source) VALUES ('PT123', '125', 'Emergency patient', '2014-06-29', '00:00:00', '2015-12-15', '00:00:00', '01 DISCHARGED TO HOME OR SELF CARE', 'Referred by physician or self referral; non-healthcare facility point of origin');
-- 46: Test HCPCS derived device coming from procedure table
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT126', '1950', 'Male', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', ' ', '1', '200701', '201001', '1', '1', 'S0034', '201706');
INSERT INTO optum_panther_native_test.[procedure](ptid, proc_date, proc_time, proc_code, proc_code_type) VALUES ('PT126', '2009-01-01', '00:00:00', 'A4217', 'HCPCS');
-- 47: Test device derived from diagnosis table
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT127', '1950', 'Male', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', ' ', '1', '200701', '201001', '1', '1', 'S0034', '201706');
INSERT INTO optum_panther_native_test.diagnosis(ptid, diag_date, diag_time, diagnosis_cd, diagnosis_cd_type, diagnosis_status, poa, admitting_diagnosis, discharge_diagnosis, primary_diagnosis, problem_list) VALUES ('PT127', '2009-01-01', '00:00:00', 'Y73.0', 'ICD10', 'Diagnosis of', '0', '0', '0', '0', 'N');
-- 48: Patient has 1 valid MEDICATION_ADMINISTRATIONS record within the enrollment period.
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT128', '1928 and Earlier', 'Female', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', ' ', '1', '201005', '201412', '1', '1', 'S0034', '201706');
INSERT INTO optum_panther_native_test.medication_administrations(ptid, drug_name, ndc, ndc_source, order_date, order_time, route, strength, strength_unit, dosage_form, generic_desc, drug_class) VALUES ('PT128', 'SODIUM CHLORIDE 0.9 %', '55111067101', 'Derived', '2011-01-07', '12:00:00', 'Oral', 'mg', 'mg', 'Solution', '0.9 % SODIUM CHLORIDE', 'Narcotic agonist analgesics');
-- 49: Patient has 2 MEDICATION_ADMINISTRATIONS records, the first within the enrollment period, the second outside of enrollment.
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT129', '1928 and Earlier', 'Female', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', ' ', '1', '201005', '201212', '1', '1', 'S0034', '201706');
INSERT INTO optum_panther_native_test.medication_administrations(ptid, drug_name, ndc, ndc_source, order_date, order_time, route, strength, strength_unit, dosage_form, generic_desc, drug_class) VALUES ('PT129', 'SODIUM CHLORIDE 0.9 %', '55111067101', 'Derived', '2011-01-07', '12:00:00', 'Oral', 'mg', 'mg', 'Solution', '0.9 % SODIUM CHLORIDE', 'Narcotic agonist analgesics');
INSERT INTO optum_panther_native_test.medication_administrations(ptid, drug_name, ndc, ndc_source, order_date, order_time, route, strength, strength_unit, dosage_form, generic_desc, drug_class) VALUES ('PT129', 'SODIUM CHLORIDE 0.9 %', '58487000102', 'Derived', '2013-01-07', '12:00:00', 'Oral', 'mg', 'mg', 'Solution', '0.9 % SODIUM CHLORIDE', 'Narcotic agonist analgesics');
-- 50: Patient has multiple MEDICATION_ADMINISTRATIONS records, all within enrollment period, but have the same encounter_id, ndc and order_date.
INSERT INTO optum_panther_native_test.encounter(ptid, encid, interaction_type, interaction_date, interaction_time, academic_community_flag) VALUES ('PT130', 'E0000131', 'Inpatient', '2011-01-07', '00:00:00', 'U');
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT130', '1928 and Earlier', 'Female', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', ' ', '1', '201005', '201212', '1', '1', 'S0034', '201706');
INSERT INTO optum_panther_native_test.medication_administrations(ptid, encid, drug_name, ndc, ndc_source, order_date, order_time, route, strength, strength_unit, dosage_form, generic_desc, drug_class) VALUES ('PT130', 'E0000131', 'SODIUM CHLORIDE 0.9 %', '55111067101', 'Derived', '2011-01-07', '12:00:00', 'Oral', 'mg', 'mg', 'Solution', '0.9 % SODIUM CHLORIDE', 'Narcotic agonist analgesics');
INSERT INTO optum_panther_native_test.medication_administrations(ptid, encid, drug_name, ndc, ndc_source, order_date, order_time, route, strength, strength_unit, dosage_form, generic_desc, drug_class) VALUES ('PT130', 'E0000131', 'SODIUM CHLORIDE 0.9 %', '55111067101', 'Derived', '2011-01-07', '12:00:00', 'Oral', 'mg', 'mg', 'Solution', '0.9 % SODIUM CHLORIDE', 'Narcotic agonist analgesics');
-- 51: Patient has multiple MEDICATION_ADMINISTRATIONS records, all within enrollment period, that have the same ndc on the same day, but different encounters.
INSERT INTO optum_panther_native_test.encounter(ptid, encid, interaction_type, interaction_date, interaction_time, academic_community_flag) VALUES ('PT132', 'E0000133', 'Inpatient', '2011-01-07', '00:00:00', 'U');
INSERT INTO optum_panther_native_test.encounter(ptid, encid, interaction_type, interaction_date, interaction_time, academic_community_flag) VALUES ('PT132', 'E0000134', 'Inpatient', '2011-01-07', '00:00:00', 'U');
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT132', '1928 and Earlier', 'Female', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', ' ', '1', '201005', '201212', '1', '1', 'S0034', '201706');
INSERT INTO optum_panther_native_test.medication_administrations(ptid, encid, drug_name, ndc, ndc_source, order_date, order_time, route, strength, strength_unit, dosage_form, generic_desc, drug_class) VALUES ('PT132', 'E0000133', 'SODIUM CHLORIDE 0.9 %', '55111067101', 'Derived', '2011-01-07', '12:00:00', 'Oral', 'mg', 'mg', 'Solution', '0.9 % SODIUM CHLORIDE', 'Narcotic agonist analgesics');
INSERT INTO optum_panther_native_test.medication_administrations(ptid, encid, drug_name, ndc, ndc_source, order_date, order_time, route, strength, strength_unit, dosage_form, generic_desc, drug_class) VALUES ('PT132', 'E0000134', 'SODIUM CHLORIDE 0.9 %', '55111067101', 'Derived', '2011-01-07', '12:00:00', 'Oral', 'mg', 'mg', 'Solution', '0.9 % SODIUM CHLORIDE', 'Narcotic agonist analgesics');
-- 52: Patient has series of MEDICATION_ADMINISTRATIONS with the same encounter_id, but different order_date
INSERT INTO optum_panther_native_test.encounter(ptid, encid, interaction_type, interaction_date, interaction_time, academic_community_flag) VALUES ('PT135', 'E0000136', 'Inpatient', '2011-01-07', '00:00:00', 'U');
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT135', '1928 and Earlier', 'Female', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', ' ', '1', '201005', '201212', '1', '1', 'S0034', '201706');
INSERT INTO optum_panther_native_test.medication_administrations(ptid, encid, drug_name, ndc, ndc_source, order_date, order_time, route, strength, strength_unit, dosage_form, generic_desc, drug_class) VALUES ('PT135', 'E0000136', 'SODIUM CHLORIDE 0.9 %', '55111067101', 'Derived', '2011-01-07', '12:00:00', 'Oral', 'mg', 'mg', 'Solution', '0.9 % SODIUM CHLORIDE', 'Narcotic agonist analgesics');
INSERT INTO optum_panther_native_test.medication_administrations(ptid, encid, drug_name, ndc, ndc_source, order_date, order_time, route, strength, strength_unit, dosage_form, generic_desc, drug_class) VALUES ('PT135', 'E0000136', 'SODIUM CHLORIDE 0.9 %', '55111067101', 'Derived', '2011-01-08', '12:00:00', 'Oral', 'mg', 'mg', 'Solution', '0.9 % SODIUM CHLORIDE', 'Narcotic agonist analgesics');
-- 53: Patient has MEDICATION_ADMINISTRATIONS with provid that is NULL but the encounter has a valid provider id specified
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT137', '1928 and Earlier', 'Female', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', ' ', '1', '201005', '201212', '1', '1', 'S0034', '201706');
INSERT INTO optum_panther_native_test.provider(provid, specialty, prim_spec_ind) VALUES ('139', 'Internal Medicine', '1');
INSERT INTO optum_panther_native_test.encounter(ptid, encid, interaction_type, interaction_date, interaction_time, academic_community_flag) VALUES ('PT137', 'E0000138', 'Inpatient', '2012-01-08', '00:00:00', 'U');
INSERT INTO optum_panther_native_test.encounter_provider(encid, provid, provider_role) VALUES ('E0000138', '139', 'ATTENDING');
INSERT INTO optum_panther_native_test.medication_administrations(ptid, encid, drug_name, ndc, ndc_source, order_date, order_time, route, strength, strength_unit, dosage_form, generic_desc, drug_class) VALUES ('PT137', 'E0000138', 'SODIUM CHLORIDE 0.9 %', '55111067101', 'Derived', '2012-01-08', '12:00:00', 'Oral', 'mg', 'mg', 'Solution', '0.9 % SODIUM CHLORIDE', 'Narcotic agonist analgesics');
-- 54: Patient has MEDICATION_ADMINISTRATIONS with an NDC that is properly mapped to the source_concept_id and standard concept_id
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT140', '1928 and Earlier', 'Female', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', ' ', '1', '201005', '201212', '1', '1', 'S0034', '201706');
INSERT INTO optum_panther_native_test.medication_administrations(ptid, drug_name, ndc, ndc_source, order_date, order_time, route, strength, strength_unit, dosage_form, generic_desc, drug_class) VALUES ('PT140', 'SODIUM CHLORIDE 0.9 %', '55111067101', 'Derived', '2012-01-08', '12:00:00', 'Oral', 'mg', 'mg', 'Solution', '0.9 % SODIUM CHLORIDE', 'Narcotic agonist analgesics');
-- 55: Patient has MEDICATION_ADMINISTRATIONS with a valid quantity_of_dose
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT141', '1928 and Earlier', 'Female', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', ' ', '1', '201005', '201212', '1', '1', 'S0034', '201706');
INSERT INTO optum_panther_native_test.medication_administrations(ptid, drug_name, ndc, ndc_source, order_date, order_time, route, quantity_of_dose, strength, strength_unit, dosage_form, generic_desc, drug_class) VALUES ('PT141', 'SODIUM CHLORIDE 0.9 %', '55111067101', 'Derived', '2012-01-08', '12:00:00', 'Oral', '0.5', 'mg', 'mg', 'Solution', '0.9 % SODIUM CHLORIDE', 'Narcotic agonist analgesics');
-- 56: Patient has MEDICATION_ADMINISTRATIONS and the route value is found in the source-to-concept-map and assigned the proper concept_id
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT142', '1928 and Earlier', 'Female', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', ' ', '1', '201005', '201212', '1', '1', 'S0034', '201706');
INSERT INTO optum_panther_native_test.medication_administrations(ptid, drug_name, ndc, ndc_source, order_date, order_time, route, strength, strength_unit, dosage_form, generic_desc, drug_class) VALUES ('PT142', 'SODIUM CHLORIDE 0.9 %', '55111067101', 'Derived', '2012-01-08', '12:00:00', 'Oral', 'mg', 'mg', 'Solution', '0.9 % SODIUM CHLORIDE', 'Narcotic agonist analgesics');
-- 57: Patient has MEDICATION_ADMINISTRATIONS and the route value is NOT found in the source-to-concept-map and assigned concept_id of 0
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT143', '1928 and Earlier', 'Female', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', ' ', '1', '201005', '201212', '1', '1', 'S0034', '201706');
INSERT INTO optum_panther_native_test.medication_administrations(ptid, drug_name, ndc, ndc_source, order_date, order_time, route, strength, strength_unit, dosage_form, generic_desc, drug_class) VALUES ('PT143', 'SODIUM CHLORIDE 0.9 %', '55111067101', 'Derived', '2012-01-08', '12:00:00', 'Osmosis', 'mg', 'mg', 'Solution', '0.9 % SODIUM CHLORIDE', 'Narcotic agonist analgesics');
-- 58: Patient has MEDICATION_ADMINISTRATIONS with a strength_unit that maps to dose_unit_source_value
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT144', '1928 and Earlier', 'Female', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', ' ', '1', '201005', '201212', '1', '1', 'S0034', '201706');
INSERT INTO optum_panther_native_test.medication_administrations(ptid, drug_name, ndc, ndc_source, order_date, order_time, route, strength, strength_unit, dosage_form, generic_desc, drug_class) VALUES ('PT144', 'SODIUM CHLORIDE 0.9 %', '55111067101', 'Derived', '2012-01-08', '12:00:00', 'Oral', 'mg', 'mg/mL', 'Solution', '0.9 % SODIUM CHLORIDE', 'Narcotic agonist analgesics');
-- 59: Patient has PRESCRIPTIONS_WRITTEN with valid information
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT145', '1928 and Earlier', 'Female', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', ' ', '1', '201005', '201212', '1', '1', 'S0034', '201706');
INSERT INTO optum_panther_native_test.prescriptions_written(ptid, rxdate, rxtime, ndc, ndc_source, route, strength, strength_unit, num_refills, drug_class) VALUES ('PT145', '2012-01-08', '00:00:00', '00406012501', 'Derived', 'Oral', 'mg', 'mg', '0', 'Narcotic & analgesic combinations');
-- 60: Patient has multiple PRESCRIPTIONS_WRITTEN with the first within the enrollment period, the second outside of enrollment.
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT146', '1928 and Earlier', 'Female', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', ' ', '1', '201005', '201212', '1', '1', 'S0034', '201706');
INSERT INTO optum_panther_native_test.prescriptions_written(ptid, rxdate, rxtime, ndc, ndc_source, route, strength, strength_unit, num_refills, drug_class) VALUES ('PT146', '2012-01-08', '00:00:00', '00406012501', 'Derived', 'Oral', 'mg', 'mg', '0', 'Narcotic & analgesic combinations');
INSERT INTO optum_panther_native_test.prescriptions_written(ptid, rxdate, rxtime, ndc, ndc_source, route, strength, strength_unit, num_refills, drug_class) VALUES ('PT146', '2014-01-08', '00:00:00', '00406012501', 'Derived', 'Oral', 'mg', 'mg', '0', 'Narcotic & analgesic combinations');
-- 61: Patient has PRESCRIPTIONS_WRITTEN and the NDC is properly mapped to the source_concept_id and standard concept_id
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT147', '1928 and Earlier', 'Female', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', ' ', '1', '201005', '201212', '1', '1', 'S0034', '201706');
INSERT INTO optum_panther_native_test.prescriptions_written(ptid, rxdate, rxtime, ndc, ndc_source, route, strength, strength_unit, num_refills, drug_class) VALUES ('PT147', '2012-01-08', '00:00:00', '55111067101', 'Derived', 'Oral', 'mg', 'mg', '0', 'Narcotic & analgesic combinations');
-- 62: Patient has PRESCRIPTIONS_WRITTEN with quantity_per_fill that contains non-numeric values
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT148', '1928 and Earlier', 'Female', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', ' ', '1', '201005', '201212', '1', '1', 'S0034', '201706');
INSERT INTO optum_panther_native_test.prescriptions_written(ptid, rxdate, rxtime, ndc, ndc_source, route, strength, strength_unit, quantity_per_fill, num_refills, drug_class) VALUES ('PT148', '2012-01-08', '00:00:00', '55111067101', 'Derived', 'Oral', 'mg', 'mg', '90 Tab', '0', 'Narcotic & analgesic combinations');
-- 63: Patient has PRESCRIPTIONS_WRITTEN with quantity_per_fill that contains only numerics
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT149', '1928 and Earlier', 'Female', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', ' ', '1', '201005', '201212', '1', '1', 'S0034', '201706');
INSERT INTO optum_panther_native_test.prescriptions_written(ptid, rxdate, rxtime, ndc, ndc_source, route, strength, strength_unit, quantity_per_fill, num_refills, drug_class) VALUES ('PT149', '2012-01-08', '00:00:00', '55111067101', 'Derived', 'Oral', 'mg', 'mg', '90', '0', 'Narcotic & analgesic combinations');
-- 64: Patient has PRESCRIPTIONS_WRITTEN with quantity_per_fill that contains NULL AND quantity_of_dose is NOT NULL
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT150', '1928 and Earlier', 'Female', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', ' ', '1', '201005', '201212', '1', '1', 'S0034', '201706');
INSERT INTO optum_panther_native_test.prescriptions_written(ptid, rxdate, rxtime, ndc, ndc_source, route, quantity_of_dose, strength, strength_unit, num_refills, drug_class) VALUES ('PT150', '2012-01-08', '00:00:00', '55111067101', 'Derived', 'Oral', '1', 'mg', 'mg', '0', 'Narcotic & analgesic combinations');
-- 65: Patient has PRESCRIPTIONS_WRITTEN with quantity_per_fill that contains NULL AND quantity_of_dose is NOT NULL with text
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT151', '1928 and Earlier', 'Female', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', ' ', '1', '201005', '201212', '1', '1', 'S0034', '201706');
INSERT INTO optum_panther_native_test.prescriptions_written(ptid, rxdate, rxtime, ndc, ndc_source, route, quantity_of_dose, strength, strength_unit, num_refills, drug_class) VALUES ('PT151', '2012-01-08', '00:00:00', '55111067101', 'Derived', 'Oral', '1 tablet', 'mg', 'mg', '0', 'Narcotic & analgesic combinations');
-- 66: Patient has PRESCRIPTIONS_WRITTEN with num_refils that contains only numerics
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT152', '1928 and Earlier', 'Female', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', ' ', '1', '201005', '201212', '1', '1', 'S0034', '201706');
INSERT INTO optum_panther_native_test.prescriptions_written(ptid, rxdate, rxtime, ndc, ndc_source, route, strength, strength_unit, num_refills, drug_class) VALUES ('PT152', '2012-01-08', '00:00:00', '55111067101', 'Derived', 'Oral', 'mg', 'mg', '0', 'Narcotic & analgesic combinations');
-- 67: Patient has PRESCRIPTIONS_WRITTEN with quantity_per_fill that contains an empty value
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT153', '1928 and Earlier', 'Female', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', ' ', '1', '201005', '201212', '1', '1', 'S0034', '201706');
INSERT INTO optum_panther_native_test.prescriptions_written(ptid, rxdate, rxtime, ndc, ndc_source, route, strength, strength_unit, num_refills, drug_class) VALUES ('PT153', '2012-01-08', '00:00:00', '55111067101', 'Derived', 'Oral', 'mg', 'mg', '0', 'Narcotic & analgesic combinations');
-- 68: Patient has PRESCRIPTIONS_WRITTEN with days_supply that contains only numerics
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT154', '1928 and Earlier', 'Female', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', ' ', '1', '201005', '201212', '1', '1', 'S0034', '201706');
INSERT INTO optum_panther_native_test.prescriptions_written(ptid, rxdate, rxtime, ndc, ndc_source, route, strength, strength_unit, num_refills, days_supply, drug_class) VALUES ('PT154', '2012-01-08', '00:00:00', '55111067101', 'Derived', 'Oral', 'mg', 'mg', '0', '1.0', 'Narcotic & analgesic combinations');
-- 69: Patient has PRESCRIPTIONS_WRITTEN with days_supply that contains an empty value
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT155', '1928 and Earlier', 'Female', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', ' ', '1', '201005', '201212', '1', '1', 'S0034', '201706');
INSERT INTO optum_panther_native_test.prescriptions_written(ptid, rxdate, rxtime, ndc, ndc_source, route, strength, strength_unit, num_refills, drug_class) VALUES ('PT155', '2012-01-08', '00:00:00', '55111067101', 'Derived', 'Oral', 'mg', 'mg', '0', 'Narcotic & analgesic combinations');
-- 70: Patient has PRESCRIPTIONS_WRITTEN with provid specified
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT156', '1928 and Earlier', 'Female', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', ' ', '1', '201005', '201212', '1', '1', 'S0034', '201706');
INSERT INTO optum_panther_native_test.prescriptions_written(ptid, rxdate, rxtime, ndc, ndc_source, provid, route, strength, strength_unit, num_refills, drug_class) VALUES ('PT156', '2012-01-08', '00:00:00', '55111067101', 'Derived', '843801', 'Oral', 'mg', 'mg', '0', 'Narcotic & analgesic combinations');
-- 71: Patient has PRESCRIPTIONS_WRITTEN with a route that is specified in the route source-to-concept map.
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT157', '1928 and Earlier', 'Female', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', ' ', '1', '201005', '201212', '1', '1', 'S0034', '201706');
INSERT INTO optum_panther_native_test.prescriptions_written(ptid, rxdate, rxtime, ndc, ndc_source, route, strength, strength_unit, num_refills, drug_class) VALUES ('PT157', '2012-01-08', '00:00:00', '55111067101', 'Derived', 'Oral', 'mg', 'mg', '0', 'Narcotic & analgesic combinations');
-- 72: Patient has PRESCRIPTIONS_WRITTEN with strength + strength_unit + dose_frequency + dosage_form that should be concatenated
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT158', '1928 and Earlier', 'Female', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', ' ', '1', '201005', '201212', '1', '1', 'S0034', '201706');
INSERT INTO optum_panther_native_test.prescriptions_written(ptid, rxdate, rxtime, ndc, ndc_source, route, strength, strength_unit, dosage_form, dose_frequency, num_refills, drug_class) VALUES ('PT158', '2012-01-08', '00:00:00', '55111067101', 'Derived', 'Oral', '20 - 25', '15 MG', 'Capsule Delayed Release', '1 time a day', '0', 'Narcotic & analgesic combinations');
-- 73: Patient has patient_reported_medications with valid information
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT159', '1928 and Earlier', 'Female', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', ' ', '1', '201005', '201212', '1', '1', 'S0034', '201706');
INSERT INTO optum_panther_native_test.patient_reported_medications(ptid, reported_date, ndc, ndc_source, route, strength, strength_unit, dosage_form, drug_class) VALUES ('PT159', '2012-01-08', 'Derived', 'Derived', 'Oral', 'mg', 'mg', 'Tabs', 'Narcotic agonist analgesics');
-- 74: Patient has multiple patient_reported_medications with the first within the enrollment period, the second outside of enrollment.
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT160', '1928 and Earlier', 'Female', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', ' ', '1', '201005', '201212', '1', '1', 'S0034', '201706');
INSERT INTO optum_panther_native_test.patient_reported_medications(ptid, reported_date, ndc, ndc_source, route, strength, strength_unit, dosage_form, drug_class) VALUES ('PT160', '2012-01-08', 'Derived', 'Derived', 'Oral', 'mg', 'mg', 'Tabs', 'Narcotic agonist analgesics');
INSERT INTO optum_panther_native_test.patient_reported_medications(ptid, reported_date, ndc, ndc_source, route, strength, strength_unit, dosage_form, drug_class) VALUES ('PT160', '2014-01-08', 'Derived', 'Derived', 'Oral', 'mg', 'mg', 'Tabs', 'Narcotic agonist analgesics');
-- 75: Patient has patient_reported_medications with valid reported_date and drug_type_concept_id
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT161', '1928 and Earlier', 'Female', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', ' ', '1', '201005', '201212', '1', '1', 'S0034', '201706');
INSERT INTO optum_panther_native_test.patient_reported_medications(ptid, reported_date, ndc, ndc_source, route, strength, strength_unit, dosage_form, drug_class) VALUES ('PT161', '2012-01-08', '55111067101', 'Derived', 'Oral', 'mg', 'mg', 'Tabs', 'Narcotic agonist analgesics');
-- 76: Patient has PRESCRIPTIONS_WRITTEN and the NDC is properly mapped to the source_concept_id and standard concept_id
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT162', '1928 and Earlier', 'Female', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', ' ', '1', '201005', '201212', '1', '1', 'S0034', '201706');
INSERT INTO optum_panther_native_test.patient_reported_medications(ptid, reported_date, ndc, ndc_source, route, strength, strength_unit, dosage_form, drug_class) VALUES ('PT162', '2012-01-08', '55111067101', 'Derived', 'Oral', 'mg', 'mg', 'Tabs', 'Narcotic agonist analgesics');
-- 77: Patient has patient_reported_medications with provid mapped
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT163', '1928 and Earlier', 'Female', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', ' ', '1', '201005', '201212', '1', '1', 'S0034', '201706');
INSERT INTO optum_panther_native_test.patient_reported_medications(ptid, reported_date, ndc, ndc_source, provid, route, strength, strength_unit, dosage_form, drug_class) VALUES ('PT163', '2012-01-08', 'Derived', 'Derived', '179865', 'Oral', 'mg', 'mg', 'Tabs', 'Narcotic agonist analgesics');
-- 78: Patient has patient_reported_medications with a route that is specified in the route source-to-concept map.
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT164', '1928 and Earlier', 'Female', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', ' ', '1', '201005', '201212', '1', '1', 'S0034', '201706');
INSERT INTO optum_panther_native_test.patient_reported_medications(ptid, reported_date, ndc, ndc_source, route, strength, strength_unit, dosage_form, drug_class) VALUES ('PT164', '2012-01-08', '55111067101', 'Derived', 'Oral', 'mg', 'mg', 'Tabs', 'Narcotic agonist analgesics');
-- 79: Patient has patient_reported_medications with a quantity_of_dose that maps to quantity.
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT165', '1928 and Earlier', 'Female', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', ' ', '1', '201005', '201212', '1', '1', 'S0034', '201706');
INSERT INTO optum_panther_native_test.patient_reported_medications(ptid, reported_date, ndc, ndc_source, route, quantity_of_dose, strength, strength_unit, dosage_form, drug_class) VALUES ('PT165', '2012-01-08', '55111067101', 'Derived', 'Oral', '6', 'mg', 'mg', 'Tabs', 'Narcotic agonist analgesics');
-- 80: Patient has immunizations with valid information
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT166', '1928 and Earlier', 'Female', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', ' ', '1', '201005', '201212', '1', '1', 'S0034', '201706');
INSERT INTO optum_panther_native_test.immunizations(ptid, immunization_date, mapped_name, ndc, ndc_source, pt_reported) VALUES ('PT166', '2011-10-12', 'Influenza Inactivated Vaccine', '66521011710', 'Derived', 'N');
-- 81: Patient has multiple immunizations with the first within the enrollment period, the second outside of enrollment.
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT167', '1928 and Earlier', 'Female', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', ' ', '1', '201005', '201212', '1', '1', 'S0034', '201706');
INSERT INTO optum_panther_native_test.immunizations(ptid, immunization_date, mapped_name, ndc, ndc_source, pt_reported) VALUES ('PT167', '2011-10-12', 'Influenza Inactivated Vaccine', '66521011710', 'Derived', 'N');
INSERT INTO optum_panther_native_test.immunizations(ptid, immunization_date, mapped_name, ndc, ndc_source, pt_reported) VALUES ('PT167', '2013-10-12', 'Influenza Inactivated Vaccine', '66521011710', 'Derived', 'N');
-- 82: Patient has multiple immunizations records, all within enrollment period, but have the same immunization_date and ndc
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT168', '1928 and Earlier', 'Female', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', ' ', '1', '201005', '201212', '1', '1', 'S0034', '201706');
INSERT INTO optum_panther_native_test.immunizations(ptid, immunization_date, mapped_name, ndc, ndc_source, pt_reported) VALUES ('PT168', '2011-10-12', 'Influenza Inactivated Vaccine', '66521011710', 'Derived', 'N');
INSERT INTO optum_panther_native_test.immunizations(ptid, immunization_date, mapped_name, ndc, ndc_source, pt_reported) VALUES ('PT168', '2011-10-12', 'Influenza Inactivated Vaccine', '66521011710', 'Derived', 'N');
-- 83: Patient has immunizations with immunization_date that is NULL
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT169', '1928 and Earlier', 'Female', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', ' ', '1', '201005', '201212', '1', '1', 'S0034', '201706');
INSERT INTO optum_panther_native_test.immunizations(ptid, mapped_name, ndc, ndc_source, pt_reported) VALUES ('PT169', 'Influenza Inactivated Vaccine', '66521011710', 'Derived', 'N');
-- 84: Patient has immunizations with pt_reported =''Y''
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT170', '1928 and Earlier', 'Female', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', ' ', '1', '201005', '201212', '1', '1', 'S0034', '201706');
INSERT INTO optum_panther_native_test.immunizations(ptid, immunization_date, mapped_name, ndc, ndc_source, pt_reported) VALUES ('PT170', '2011-10-12', 'Influenza Inactivated Vaccine', '66521011710', 'Derived', 'Y');
-- 85: Patient has immunizations and the NDC is properly mapped to the source_concept_id and standard concept_id
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT171', '1928 and Earlier', 'Female', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', ' ', '1', '201005', '201212', '1', '1', 'S0034', '201706');
INSERT INTO optum_panther_native_test.immunizations(ptid, immunization_date, mapped_name, ndc, ndc_source, pt_reported) VALUES ('PT171', '2011-10-12', 'Influenza Inactivated Vaccine', '66521011710', 'Derived', 'N');
-- 86: Patient has immunizations with pt_reported =''N'' with a valid drug_type_concept_id
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT172', '1928 and Earlier', 'Female', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', ' ', '1', '201005', '201212', '1', '1', 'S0034', '201706');
INSERT INTO optum_panther_native_test.immunizations(ptid, immunization_date, mapped_name, ndc, ndc_source, pt_reported) VALUES ('PT172', '2011-10-12', 'Influenza Inactivated Vaccine', '66521011710', 'Derived', 'N');
-- 87: Patient has covid vaccine with immunization_desc = 'COVID-19 VACCINE, PFIZER'
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT173', '1928 and Earlier', 'Female', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', ' ', '1', '201005', '201212', '1', '1', 'S0034', '201706');
INSERT INTO optum_panther_native_test.encounter(ptid, encid, interaction_type, interaction_date, interaction_time, academic_community_flag) VALUES ('PT173', 'E0000174', 'Office or clinic patient', '05-01-2010', '00:00:00', 'U');
INSERT INTO optum_panther_native_test.encounter(ptid, encid, interaction_type, interaction_date, interaction_time, academic_community_flag) VALUES ('PT173', 'E0000175', 'Office or clinic patient', '12-31-2012', '00:00:00', 'U');
INSERT INTO optum_panther_native_test.immunizations(ptid, immunization_date, immunization_desc, mapped_name, ndc, ndc_source, pt_reported) VALUES ('PT173', '2011-10-12', 'COVID-19 VACCINE, PFIZER', 'Influenza Inactivated Vaccine', '49281039765', 'Derived', ' ');
-- 88: Patient has covid vaccine with immunization_desc = 'COVID-19 VACCINE, MODERNA'
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT176', '1928 and Earlier', 'Female', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', ' ', '1', '201005', '201212', '1', '1', 'S0034', '201706');
INSERT INTO optum_panther_native_test.encounter(ptid, encid, interaction_type, interaction_date, interaction_time, academic_community_flag) VALUES ('PT176', 'E0000177', 'Office or clinic patient', '05-01-2010', '00:00:00', 'U');
INSERT INTO optum_panther_native_test.encounter(ptid, encid, interaction_type, interaction_date, interaction_time, academic_community_flag) VALUES ('PT176', 'E0000178', 'Office or clinic patient', '12-31-2012', '00:00:00', 'U');
INSERT INTO optum_panther_native_test.immunizations(ptid, immunization_date, immunization_desc, mapped_name, ndc, ndc_source, pt_reported) VALUES ('PT176', '2011-10-12', 'COVID-19 VACCINE, MODERNA', 'Influenza Inactivated Vaccine', '49281039765', 'Derived', ' ');
-- 89: Patient has covid vaccine with immunization_desc = 'SARS-COV-2 (COVID-19) vaccine, UNSPECIFIED'
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT179', '1928 and Earlier', 'Female', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', ' ', '1', '201005', '201212', '1', '1', 'S0034', '201706');
INSERT INTO optum_panther_native_test.encounter(ptid, encid, interaction_type, interaction_date, interaction_time, academic_community_flag) VALUES ('PT179', 'E0000180', 'Office or clinic patient', '05-01-2010', '00:00:00', 'U');
INSERT INTO optum_panther_native_test.encounter(ptid, encid, interaction_type, interaction_date, interaction_time, academic_community_flag) VALUES ('PT179', 'E0000181', 'Office or clinic patient', '12-31-2012', '00:00:00', 'U');
INSERT INTO optum_panther_native_test.immunizations(ptid, immunization_date, immunization_desc, mapped_name, ndc, ndc_source, pt_reported) VALUES ('PT179', '2011-10-12', 'SARS-COV-2 (COVID-19) vaccine, UNSPECIFIED', 'Influenza Inactivated Vaccine', '49281039765', 'Derived', ' ');
-- 90: Procedure has PROC_CODE that is a drug with valid information and valid drug_type_concept_id
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT182', '1928 and Earlier', 'Female', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', ' ', '1', '201005', '201212', '1', '1', 'S0034', '201706');
INSERT INTO optum_panther_native_test.[procedure](ptid, proc_date, proc_time, proc_code, proc_code_type) VALUES ('PT182', '2011-02-11', '00:00:00', 'J9310', 'HCPCS');
-- 91: Patient has multiple PROCEDURE records with the first within the enrollment period, the second outside of enrollment.
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT183', '1928 and Earlier', 'Female', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', ' ', '1', '201005', '201212', '1', '1', 'S0034', '201706');
INSERT INTO optum_panther_native_test.[procedure](ptid, proc_date, proc_time, proc_code, proc_code_type) VALUES ('PT183', '2011-10-12', '00:00:00', 'J9310', 'HCPCS');
INSERT INTO optum_panther_native_test.[procedure](ptid, proc_date, proc_time, proc_code, proc_code_type) VALUES ('PT183', '2013-10-12', '00:00:00', 'J9310', 'HCPCS');
-- 92: Patient has multiple PROCEDURE records, all within enrollment period, but have the same PROC_DATE and proc_code.
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT184', '1928 and Earlier', 'Female', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', ' ', '1', '201005', '201212', '1', '1', 'S0034', '201706');
INSERT INTO optum_panther_native_test.[procedure](ptid, proc_date, proc_time, proc_code, proc_code_type) VALUES ('PT184', '2011-10-12', '00:00:00', 'J9310', 'HCPCS');
INSERT INTO optum_panther_native_test.[procedure](ptid, proc_date, proc_time, proc_code, proc_code_type) VALUES ('PT184', '2011-10-12', '00:00:00', 'J9310', 'HCPCS');
-- 93: Patient has PROCEDURE with HCPCS proc_code that maps to a standard concept
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT185', '1928 and Earlier', 'Female', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', ' ', '1', '201005', '201212', '1', '1', 'S0034', '201706');
INSERT INTO optum_panther_native_test.[procedure](ptid, proc_date, proc_time, proc_code, proc_code_type) VALUES ('PT185', '2011-10-12', '00:00:00', 'J9310', 'HCPCS');
-- 94: Patient has PROCEDURE with provid_perform that maps to provid
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT186', '1928 and Earlier', 'Female', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', ' ', '1', '201005', '201212', '1', '1', 'S0034', '201706');
INSERT INTO optum_panther_native_test.provider(provid, specialty, prim_spec_ind) VALUES ('187', 'Internal Medicine', '1');
INSERT INTO optum_panther_native_test.[procedure](ptid, proc_date, proc_time, proc_code, proc_code_type, provid_perform) VALUES ('PT186', '2011-10-12', '00:00:00', 'J9310', 'HCPCS', '187');
-- 95: NLP_DRUG_RATIONALE has valid note_date and other valid information with a valid drug_type_concept_id
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT188', '1928 and Earlier', 'Female', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', ' ', '1', '201005', '201212', '1', '1', 'S0034', '201706');
INSERT INTO optum_panther_native_test.encounter(ptid, encid, interaction_type, interaction_date, interaction_time, academic_community_flag) VALUES ('PT188', 'E0000189', 'Inpatient', '2011-01-07', '00:00:00', 'U');
INSERT INTO optum_panther_native_test.nlp_drug_rationale(ptid, encid, note_date, note_section, drug_name, drug_action, drug_action_preposition, reason_general) VALUES ('PT188', 'E0000189', '2011-01-07', 'MEDICATIONS', 'COUMADIN', 'TAKE', 'OF', 'stop');
-- 96: Patient has NLP_DRUG_RATIONALE with drug_action = STOP which should prevent it from being imported.
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT190', '1928 and Earlier', 'Female', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', ' ', '1', '201005', '201212', '1', '1', 'S0034', '201706');
INSERT INTO optum_panther_native_test.encounter(ptid, encid, interaction_type, interaction_date, interaction_time, academic_community_flag) VALUES ('PT190', 'E0000191', 'Inpatient', '2011-01-07', '00:00:00', 'U');
INSERT INTO optum_panther_native_test.nlp_drug_rationale(ptid, encid, note_date, note_section, drug_name, drug_action, drug_action_preposition, reason_general) VALUES ('PT190', 'E0000191', '2011-01-07', 'MEDICATIONS', 'COUMADIN', 'STOP', 'OF', 'stop');
-- 97: Patient has NLP_DRUG_RATIONALE with sentiment = NEED.NOT which should prevent it from being imported.
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT192', '1928 and Earlier', 'Female', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', ' ', '1', '201005', '201212', '1', '1', 'S0034', '201706');
INSERT INTO optum_panther_native_test.encounter(ptid, encid, interaction_type, interaction_date, interaction_time, academic_community_flag) VALUES ('PT192', 'E0000193', 'Inpatient', '2011-01-07', '00:00:00', 'U');
INSERT INTO optum_panther_native_test.nlp_drug_rationale(ptid, encid, note_date, note_section, drug_name, drug_action_preposition, reason_general, sentiment) VALUES ('PT192', 'E0000193', '2011-01-07', 'MEDICATIONS', 'COUMADIN', 'OF', 'stop', 'NEED.NOT');
-- 98: Simple Location
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT194', '1950', 'Male', 'Caucasian', 'Not Hispanic', 'REGION', 'DIVISION', '26.0', '0', ' ', '1', '200701', '201001', '1', '1', 'S0034', '201706');
-- 99: No Location Dupes
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT195', '1950', 'Male', 'Caucasian', 'Not Hispanic', 'DUPE_REGION', 'DUPE_DIVISION', '26.0', '0', ' ', '1', '200701', '201001', '1', '1', 'S0034', '201706');
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT195', '1950', 'Male', 'Caucasian', 'Not Hispanic', 'DUPE_REGION', 'DUPE_DIVISION', '26.0', '0', ' ', '1', '200701', '201001', '1', '1', 'S0034', '201706');
-- 100: When DIAGNOSIS_STATUS=Diagnosis Of and DIAGNOSIS_CD maps to DOMAIN=MEASUREMENT concept
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT196', '1950', 'Male', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', ' ', '1', '200701', '201001', '1', '1', 'S0034', '201706');
INSERT INTO optum_panther_native_test.encounter(ptid, encid, interaction_type, interaction_date, interaction_time, academic_community_flag) VALUES ('PT196', 'E0000197', 'Inpatient', '2009-01-01', '00:00:00', 'U');
INSERT INTO optum_panther_native_test.diagnosis(ptid, encid, diag_date, diag_time, diagnosis_cd, diagnosis_cd_type, diagnosis_status, poa, admitting_diagnosis, discharge_diagnosis, primary_diagnosis, problem_list) VALUES ('PT196', 'E0000197', '2009-01-01', '00:00:00', '7953', 'ICD9', 'Diagnosis of', '0', '0', '0', '0', 'N');
-- 101: When DIAGNOSIS_STATUS=Zachary and DIAGNOSIS_CD maps to DOMAIN=MEASUREMENT concept, should not write record
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT198', '1950', 'Male', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', ' ', '1', '200701', '201001', '1', '1', 'S0034', '201706');
INSERT INTO optum_panther_native_test.encounter(ptid, encid, interaction_type, interaction_date, interaction_time, academic_community_flag) VALUES ('PT198', 'E0000199', 'Inpatient', '2009-01-01', '00:00:00', 'U');
INSERT INTO optum_panther_native_test.diagnosis(ptid, encid, diag_date, diag_time, diagnosis_cd, diagnosis_cd_type, diagnosis_status, poa, admitting_diagnosis, discharge_diagnosis, primary_diagnosis, problem_list) VALUES ('PT198', 'E0000199', '2009-01-01', '00:00:00', '7953', 'ICD9', 'Zachary', '0', '0', '0', '0', 'N');
-- 102: When PRIMARY_DIAGNOSIS = 1 Then Type = 44786627
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT200', '1950', 'Male', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', ' ', '1', '200701', '201001', '1', '1', 'S0034', '201706');
INSERT INTO optum_panther_native_test.encounter(ptid, encid, interaction_type, interaction_date, interaction_time, academic_community_flag) VALUES ('PT200', 'E0000201', 'Inpatient', '2009-01-01', '00:00:00', 'U');
INSERT INTO optum_panther_native_test.diagnosis(ptid, encid, diag_date, diag_time, diagnosis_cd, diagnosis_cd_type, diagnosis_status, poa, admitting_diagnosis, discharge_diagnosis, primary_diagnosis, problem_list) VALUES ('PT200', 'E0000201', '2009-01-01', '00:00:00', '7953', 'ICD9', 'Diagnosis of', '0', '0', '0', '1', 'N');
-- 103: When PRIMARY_DIAGNOSIS = 6 Then Type = 44786629
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT202', '1950', 'Male', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', ' ', '1', '200701', '201001', '1', '1', 'S0034', '201706');
INSERT INTO optum_panther_native_test.encounter(ptid, encid, interaction_type, interaction_date, interaction_time, academic_community_flag) VALUES ('PT202', 'E0000203', 'Inpatient', '2009-01-01', '00:00:00', 'U');
INSERT INTO optum_panther_native_test.diagnosis(ptid, encid, diag_date, diag_time, diagnosis_cd, diagnosis_cd_type, diagnosis_status, poa, admitting_diagnosis, discharge_diagnosis, primary_diagnosis, problem_list) VALUES ('PT202', 'E0000203', '2009-01-01', '00:00:00', '7953', 'ICD9', 'Diagnosis of', '0', '0', '0', '6', 'N');
-- 104: MEASUREMENT_SOURCE_CONCEPT_ID for ICD9 795.3 gets mapped properly to 44828170
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT204', '1950', 'Male', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', ' ', '1', '200701', '201001', '1', '1', 'S0034', '201706');
INSERT INTO optum_panther_native_test.encounter(ptid, encid, interaction_type, interaction_date, interaction_time, academic_community_flag) VALUES ('PT204', 'E0000205', 'Inpatient', '2009-01-01', '00:00:00', 'U');
INSERT INTO optum_panther_native_test.diagnosis(ptid, encid, diag_date, diag_time, diagnosis_cd, diagnosis_cd_type, diagnosis_status, poa, admitting_diagnosis, discharge_diagnosis, primary_diagnosis, problem_list) VALUES ('PT204', 'E0000205', '2009-01-01', '00:00:00', '7953', 'ICD9', 'Diagnosis of', '0', '0', '0', '0', 'N');
-- 105: When DIAGNOSIS_STATUS=Diagnosis Of and Source code is a SNOMED
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT206', '1950', 'Male', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', ' ', '1', '200701', '201001', '1', '1', 'S0034', '201706');
INSERT INTO optum_panther_native_test.encounter(ptid, encid, interaction_type, interaction_date, interaction_time, academic_community_flag) VALUES ('PT206', 'E0000207', 'Inpatient', '2009-01-01', '00:00:00', 'U');
INSERT INTO optum_panther_native_test.diagnosis(ptid, encid, diag_date, diag_time, diagnosis_cd, diagnosis_cd_type, diagnosis_status, poa, admitting_diagnosis, discharge_diagnosis, primary_diagnosis, problem_list) VALUES ('PT206', 'E0000207', '2009-01-01', '00:00:00', '145003003', 'SNOMED', 'Diagnosis of', '0', '0', '0', '0', 'N');
-- 106: Test numeric result and SOURCE_CONCEPT_ID = 0
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT208', '1950', 'Male', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', ' ', '1', '200701', '201001', '1', '1', 'S0034', '201706');
INSERT INTO optum_panther_native_test.encounter(ptid, encid, interaction_type, interaction_date, interaction_time, academic_community_flag) VALUES ('PT208', 'E0000209', 'Inpatient', '2009-01-01', '00:00:00', 'U');
INSERT INTO optum_panther_native_test.labs(ptid, encid, test_name, test_type, result_date, result_time, test_result, result_unit, evaluated_for_range, value_within_range) VALUES ('PT208', 'E0000209', 'O2 saturation.oximetry', 'CHEMISTRY', '2009-01-01', '00:00:00', '100', '%', 'Y', 'Y');
-- 107: Test non-numeric result and SOURCE_CONCEPT_ID = 0
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT210', '1950', 'Male', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', ' ', '1', '200701', '201001', '1', '1', 'S0034', '201706');
INSERT INTO optum_panther_native_test.encounter(ptid, encid, interaction_type, interaction_date, interaction_time, academic_community_flag) VALUES ('PT210', 'E0000211', 'Inpatient', '2009-01-01', '00:00:00', 'U');
INSERT INTO optum_panther_native_test.labs(ptid, encid, test_name, test_type, result_date, result_time, test_result, result_unit, evaluated_for_range, value_within_range) VALUES ('PT210', 'E0000211', 'O2 saturation.oximetry', 'CHEMISTRY', '2009-01-01', '00:00:00', 'positive', '%', 'Y', 'Y');
-- 108: Test valid operator gets an OPERATOR_CONCEPT_ID
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT212', '1950', 'Male', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', ' ', '1', '200701', '201001', '1', '1', 'S0034', '201706');
INSERT INTO optum_panther_native_test.encounter(ptid, encid, interaction_type, interaction_date, interaction_time, academic_community_flag) VALUES ('PT212', 'E0000213', 'Inpatient', '2009-01-01', '00:00:00', 'U');
INSERT INTO optum_panther_native_test.labs(ptid, encid, test_name, test_type, result_date, result_time, test_result, relative_indicator, result_unit, evaluated_for_range, value_within_range) VALUES ('PT212', 'E0000213', 'O2 saturation.oximetry', 'CHEMISTRY', '2009-01-01', '00:00:00', '100', '<=', '%', 'Y', 'Y');
-- 109: Test invalid operator gets an OPERATOR_CONCEPT_ID
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT214', '1950', 'Male', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', ' ', '1', '200701', '201001', '1', '1', 'S0034', '201706');
INSERT INTO optum_panther_native_test.encounter(ptid, encid, interaction_type, interaction_date, interaction_time, academic_community_flag) VALUES ('PT214', 'E0000215', 'Inpatient', '2009-01-01', '00:00:00', 'U');
INSERT INTO optum_panther_native_test.labs(ptid, encid, test_name, test_type, result_date, result_time, test_result, relative_indicator, result_unit, evaluated_for_range, value_within_range) VALUES ('PT214', 'E0000215', 'O2 saturation.oximetry', 'CHEMISTRY', '2009-01-01', '00:00:00', '100', 'ZA', '%', 'Y', 'Y');
-- 110: map case-sensitive UCUM vocabulary to UNIT_CONCEPT_ID, row count right
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT216', '1950', 'Male', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', ' ', '1', '200701', '201001', '1', '1', 'S0034', '201706');
INSERT INTO optum_panther_native_test.encounter(ptid, encid, interaction_type, interaction_date, interaction_time, academic_community_flag) VALUES ('PT216', 'E0000217', 'Inpatient', '2009-01-01', '00:00:00', 'U');
INSERT INTO optum_panther_native_test.labs(ptid, encid, test_name, test_type, result_date, result_time, test_result, result_unit, evaluated_for_range, value_within_range) VALUES ('PT216', 'E0000217', 'O2 saturation.oximetry', 'CHEMISTRY', '2009-01-01', '00:00:00', '100', 'pH', 'Y', 'Y');
-- 111: Test when normal range has a hyphen
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT218', '1950', 'Male', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', ' ', '1', '200701', '201001', '1', '1', 'S0034', '201706');
INSERT INTO optum_panther_native_test.encounter(ptid, encid, interaction_type, interaction_date, interaction_time, academic_community_flag) VALUES ('PT218', 'E0000219', 'Inpatient', '2009-01-01', '00:00:00', 'U');
INSERT INTO optum_panther_native_test.labs(ptid, encid, test_name, test_type, result_date, result_time, test_result, result_unit, normal_range, evaluated_for_range, value_within_range) VALUES ('PT218', 'E0000219', 'O2 saturation.oximetry', 'CHEMISTRY', '2009-01-01', '00:00:00', '100', '%', '55-65', 'Y', 'Y');
-- 112: Test when normal range does not have a hyphen
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT220', '1950', 'Male', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', ' ', '1', '200701', '201001', '1', '1', 'S0034', '201706');
INSERT INTO optum_panther_native_test.encounter(ptid, encid, interaction_type, interaction_date, interaction_time, academic_community_flag) VALUES ('PT220', 'E0000221', 'Inpatient', '2009-01-01', '00:00:00', 'U');
INSERT INTO optum_panther_native_test.labs(ptid, encid, test_name, test_type, result_date, result_time, test_result, result_unit, normal_range, evaluated_for_range, value_within_range) VALUES ('PT220', 'E0000221', 'O2 saturation.oximetry', 'CHEMISTRY', '2009-01-01', '00:00:00', '100', '%', '55', 'Y', 'Y');
-- 113: MEASUREMENT_TYPE gets properly mapped to a CONCEPT_ID from NLP_MEASUREMENT
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT222', '1950', 'Male', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', ' ', '1', '200701', '201001', '1', '1', 'S0034', '201706');
INSERT INTO optum_panther_native_test.encounter(ptid, encid, interaction_type, interaction_date, interaction_time, academic_community_flag) VALUES ('PT222', 'E0000223', 'Inpatient', '2009-01-01', '00:00:00', 'U');
INSERT INTO optum_panther_native_test.nlp_measurement(ptid, encid, note_date, measurement_type, measurement_value, measurement_date) VALUES ('PT222', 'E0000223', '2015-02-22', 'WEIGHT', '100', '2009-01-01');
-- 114: Non-numeric MEASUREMENT_VALUE from NLP_MEASUREMENT
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT224', '1950', 'Male', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', ' ', '1', '200701', '201001', '1', '1', 'S0034', '201706');
INSERT INTO optum_panther_native_test.encounter(ptid, encid, interaction_type, interaction_date, interaction_time, academic_community_flag) VALUES ('PT224', 'E0000225', 'Inpatient', '2009-01-01', '00:00:00', 'U');
INSERT INTO optum_panther_native_test.nlp_measurement(ptid, encid, note_date, measurement_type, measurement_value, measurement_date) VALUES ('PT224', 'E0000225', '2015-02-22', 'WEIGHT', 'positive', '2009-01-01');
-- 115: Measurement_detail gets mapped properly to a case sensitive UCUM from NLP_MEASUREMENT
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT226', '1950', 'Male', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', ' ', '1', '200701', '201001', '1', '1', 'S0034', '201706');
INSERT INTO optum_panther_native_test.encounter(ptid, encid, interaction_type, interaction_date, interaction_time, academic_community_flag) VALUES ('PT226', 'E0000227', 'Inpatient', '2009-01-01', '00:00:00', 'U');
INSERT INTO optum_panther_native_test.nlp_measurement(ptid, encid, note_date, measurement_type, measurement_value, measurement_detail, measurement_date) VALUES ('PT226', 'E0000227', '2015-02-22', 'WEIGHT', 'positive', 'pH', '2009-01-01');
-- 116: Test that a mappable OBS_TYPE gets a CONCEPT_ID from OBSERVATIONS
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT228', '1950', 'Male', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', ' ', '1', '200701', '201001', '1', '1', 'S0034', '201706');
INSERT INTO optum_panther_native_test.encounter(ptid, encid, interaction_type, interaction_date, interaction_time, academic_community_flag) VALUES ('PT228', 'E0000229', 'Inpatient', '2009-01-01', '00:00:00', 'U');
INSERT INTO optum_panther_native_test.observations(ptid, encid, obs_type, nlp, obs_date, obs_time, obs_result, obs_unit, evaluated_for_range, value_within_range) VALUES ('PT228', 'E0000229', 'SBP', 'N', '2009-01-01', '00:00:00', '18', 'mm Hg', 'N', 'U');
-- 117: Test that an unmappable OBS_TYPE gets a 0 CONCEPT_ID write a record to OBSERVATION table
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT230', '1950', 'Male', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', ' ', '1', '200701', '201001', '1', '1', 'S0034', '201706');
INSERT INTO optum_panther_native_test.encounter(ptid, encid, interaction_type, interaction_date, interaction_time, academic_community_flag) VALUES ('PT230', 'E0000231', 'Inpatient', '2009-01-01', '00:00:00', 'U');
INSERT INTO optum_panther_native_test.observations(ptid, encid, obs_type, nlp, obs_date, obs_time, obs_result, obs_unit, evaluated_for_range, value_within_range) VALUES ('PT230', 'E0000231', 'Zach', 'N', '2009-01-01', '00:00:00', '18', 'mm Hg', 'N', 'U');
-- 118: Test VALUE_AS_CONCEPT_ID gets mapped from OBSERVATIONS
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT232', '1950', 'Male', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', ' ', '1', '200701', '201001', '1', '1', 'S0034', '201706');
INSERT INTO optum_panther_native_test.encounter(ptid, encid, interaction_type, interaction_date, interaction_time, academic_community_flag) VALUES ('PT232', 'E0000233', 'Inpatient', '2009-01-01', '00:00:00', 'U');
INSERT INTO optum_panther_native_test.observations(ptid, encid, obs_type, nlp, obs_date, obs_time, obs_result, obs_unit, evaluated_for_range, value_within_range) VALUES ('PT232', 'E0000233', 'SBP', 'N', '2009-01-01', '00:00:00', 'normal', 'mm Hg', 'N', 'U');
-- 119: Test UNIT_CONCEPT_ID gets mapped from OBSERVATIONS
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT234', '1950', 'Male', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', ' ', '1', '200701', '201001', '1', '1', 'S0034', '201706');
INSERT INTO optum_panther_native_test.encounter(ptid, encid, interaction_type, interaction_date, interaction_time, academic_community_flag) VALUES ('PT234', 'E0000235', 'Inpatient', '2009-01-01', '00:00:00', 'U');
INSERT INTO optum_panther_native_test.observations(ptid, encid, obs_type, nlp, obs_date, obs_time, obs_result, obs_unit, evaluated_for_range, value_within_range) VALUES ('PT234', 'E0000235', 'SBP', 'N', '2009-01-01', '00:00:00', 'rare', 'pH', 'N', 'U');
-- 120: Tests if 2 patient durations (where second is subsumed by the first) results in a single observation period
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT236', '1928 and Earlier', 'Female', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', ' ', '1', '201005', '201412', '1', '1', 'S0034', '201706');
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT236', '1928 and Earlier', 'Female', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', ' ', '1', '201006', '201411', '1', '1', 'S0034', '201706');
-- 121: Tests if 2 patient durations (where second is within 30 days of first) results in a single observation period
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT237', '1928 and Earlier', 'Female', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', ' ', '1', '200005', '200512', '1', '1', 'S0034', '201706');
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT237', '1928 and Earlier', 'Female', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', ' ', '1', '200601', '201112', '1', '1', 'S0034', '201706');
-- 122: Tests if 2 patient durations (where second starts 33 days after first) results in two observation periods
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT238', '1928 and Earlier', 'Female', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', ' ', '1', '200104', '200612', '1', '1', 'S0034', '201706');
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT238', '1928 and Earlier', 'Female', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', ' ', '1', '200005', '200012', '1', '1', 'S0034', '201706');
-- 123: Patient duration is 1 month
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT239', '1928 and Earlier', 'Female', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', ' ', '1', '201305', '201305', '1', '1', 'S0034', '201706');
-- 124: Patient has 1 valid OBSERVATIONS record within the enrollment period. Validate that the obs_date maps to the observation_date field properly.
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT240', '1950', 'Male', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', ' ', '1', '200701', '201001', '1', '1', 'S0034', '201706');
INSERT INTO optum_panther_native_test.observations(ptid, obs_type, nlp, obs_date, obs_time, obs_result, obs_unit, evaluated_for_range, value_within_range) VALUES ('PT240', 'SBP', 'N', '2009-01-01', '00:00:00', '18', 'mm Hg', 'N', 'U');
-- 125: Patient has 2 OBSERVATIONS records, the first within the enrollment period, the second outside of enrollment.
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT241', '1950', 'Male', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', ' ', '1', '200701', '201001', '1', '1', 'S0034', '201706');
INSERT INTO optum_panther_native_test.observations(ptid, obs_type, nlp, obs_date, obs_time, obs_result, obs_unit, evaluated_for_range, value_within_range) VALUES ('PT241', 'SBP', 'N', '2009-01-01', '00:00:00', '18', 'mm Hg', 'N', 'U');
INSERT INTO optum_panther_native_test.observations(ptid, obs_type, nlp, obs_date, obs_time, obs_result, obs_unit, evaluated_for_range, value_within_range) VALUES ('PT241', 'SBP', 'N', '2015-01-01', '00:00:00', '18', 'mm Hg', 'N', 'U');
-- 126: Patient has multiple OBSERVATIONS records, all within enrollment period
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT242', '1950', 'Male', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', ' ', '1', '200701', '201001', '1', '1', 'S0034', '201706');
INSERT INTO optum_panther_native_test.observations(ptid, obs_type, nlp, obs_date, obs_time, obs_result, obs_unit, evaluated_for_range, value_within_range) VALUES ('PT242', 'ALCOHOL', 'N', '2009-01-01', '00:00:00', '18', 'mm Hg', 'N', 'U');
INSERT INTO optum_panther_native_test.observations(ptid, obs_type, nlp, obs_date, obs_time, obs_result, obs_unit, evaluated_for_range, value_within_range) VALUES ('PT242', 'ALCOHOL', 'N', '2009-01-01', '00:00:00', '18', 'mm Hg', 'N', 'U');
-- 127: Patient has OBSERVATIONS record; validate the encid mapping to visit_occurrence_id
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT243', '1950', 'Male', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', ' ', '1', '200701', '201001', '1', '1', 'S0034', '201706');
INSERT INTO optum_panther_native_test.encounter(ptid, encid, interaction_type, interaction_date, interaction_time, academic_community_flag) VALUES ('PT243', 'E0000244', 'Inpatient', '2009-01-01', '00:00:00', 'U');
INSERT INTO optum_panther_native_test.observations(ptid, encid, obs_type, nlp, obs_date, obs_time, obs_result, obs_unit, evaluated_for_range, value_within_range) VALUES ('PT243', 'E0000244', 'SBP', 'N', '2009-01-01', '00:00:00', '18', 'mm Hg', 'N', 'U');
-- 128: Patient has OBSERVATIONS record; validate the obs_type mapping found in the STCM to observation_concept_id
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT245', '1950', 'Male', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', ' ', '1', '200701', '201001', '1', '1', 'S0034', '201706');
INSERT INTO optum_panther_native_test.observations(ptid, obs_type, nlp, obs_date, obs_time, obs_result, obs_unit, evaluated_for_range, value_within_range) VALUES ('PT245', 'ALCOHOL', 'N', '2009-01-01', '00:00:00', '18', 'mm Hg', 'N', 'U');
-- 129: Patient has OBSERVATIONS record; validate the obs_type mapping NOT found in the STCM maps to observation_concept_id = 0
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT246', '1950', 'Male', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', ' ', '1', '200701', '201001', '1', '1', 'S0034', '201706');
INSERT INTO optum_panther_native_test.observations(ptid, obs_type, nlp, obs_date, obs_time, obs_result, obs_unit, evaluated_for_range, value_within_range) VALUES ('PT246', 'SBP', 'N', '2009-01-01', '00:00:00', '18', 'mm Hg', 'N', 'U');
-- 130: Patient has OBSERVATIONS record; validate the observation_type_concept_id is populated correctly
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT247', '1950', 'Male', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', ' ', '1', '200701', '201001', '1', '1', 'S0034', '201706');
INSERT INTO optum_panther_native_test.observations(ptid, obs_type, nlp, obs_date, obs_time, obs_result, obs_unit, evaluated_for_range, value_within_range) VALUES ('PT247', 'SBP', 'N', '2009-01-01', '00:00:00', '18', 'mm Hg', 'N', 'U');
-- 131: Patient has OBSERVATIONS record; validate the obs_time is mapped to observation_time
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT248', '1950', 'Male', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', ' ', '1', '200701', '201001', '1', '1', 'S0034', '201706');
INSERT INTO optum_panther_native_test.observations(ptid, obs_type, nlp, obs_date, obs_time, obs_result, obs_unit, evaluated_for_range, value_within_range) VALUES ('PT248', 'SBP', 'N', '2009-01-01', '14:30:00', '18', 'mm Hg', 'N', 'U');
-- 132: Patient has OBSERVATIONS record; validate the obs_result is mapped to value_as_number when obs_result can be cast to a numeric
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT249', '1950', 'Male', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', ' ', '1', '200701', '201001', '1', '1', 'S0034', '201706');
INSERT INTO optum_panther_native_test.observations(ptid, obs_type, nlp, obs_date, obs_time, obs_result, obs_unit, evaluated_for_range, value_within_range) VALUES ('PT249', 'SBP', 'N', '2009-01-01', '00:00:00', '100', 'mm Hg', 'N', 'U');
-- 133: Patient has OBSERVATIONS record; validate the obs_result is mapped to value_as_string when obs_result CANNOT be cast to a numeric
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT250', '1950', 'Male', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', ' ', '1', '200701', '201001', '1', '1', 'S0034', '201706');
INSERT INTO optum_panther_native_test.observations(ptid, obs_type, nlp, obs_date, obs_time, obs_result, obs_unit, evaluated_for_range, value_within_range) VALUES ('PT250', 'SBP', 'N', '2009-01-01', '00:00:00', 'One Hundred', 'mm Hg', 'N', 'U');
-- 134: Patient has OBSERVATIONS record; validate the obs_unit is mapped to unit_source_value AND a valid unit_concept_id when it matches a concept in the UCUM vocabulary
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT251', '1950', 'Male', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', ' ', '1', '200701', '201001', '1', '1', 'S0034', '201706');
INSERT INTO optum_panther_native_test.observations(ptid, obs_type, nlp, obs_date, obs_time, obs_result, obs_unit, evaluated_for_range, value_within_range) VALUES ('PT251', 'SBP', 'N', '2009-01-01', '00:00:00', '18', 'kilogram', 'N', 'U');
-- 135: Patient has OBSERVATIONS record; validate the obs_unit is mapped to unit_source_value AND unit_concept_id = 0 when it matches a concept in the UCUM vocabulary
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT252', '1950', 'Male', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', ' ', '1', '200701', '201001', '1', '1', 'S0034', '201706');
INSERT INTO optum_panther_native_test.observations(ptid, obs_type, nlp, obs_date, obs_time, obs_result, obs_unit, evaluated_for_range, value_within_range) VALUES ('PT252', 'SBP', 'N', '2009-01-01', '00:00:00', '18', 'kg', 'N', 'U');
-- 136: Patient has OBSERVATIONS record; validate the obs_unit is mapped to unit_source_value AND unit_concept_id = 0 when it does not match a standard concept in the UCUM vocabulary
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT253', '1950', 'Male', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', ' ', '1', '200701', '201001', '1', '1', 'S0034', '201706');
INSERT INTO optum_panther_native_test.observations(ptid, obs_type, nlp, obs_date, obs_time, obs_result, obs_unit, evaluated_for_range, value_within_range) VALUES ('PT253', 'SBP', 'N', '2009-01-01', '00:00:00', '18', 'TEST_UNIT', 'N', 'U');
-- 163: Tests Unknown gender does not get loaded
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT306', '1950', 'Unknown', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', ' ', '1', '200701', '201001', '1', '1', 'S0034', '201706');
-- 164: Tests Male gender
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT307', '1950', 'Male', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', ' ', '1', '200701', '201001', '1', '1', 'S0034', '201706');
-- 165: Tests Female gender
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT308', '1950', 'Female', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', ' ', '1', '200701', '201001', '1', '1', 'S0034', '201706');
-- 166: Tests Unknown birth year
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT309', 'Unknown', 'Male', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', ' ', '1', '200701', '201001', '1', '1', 'S0034', '201706');
-- 167: Tests 1927 and earlier birth year
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT310', '1927 and earlier', 'Male', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', ' ', '1', '200701', '201001', '1', '1', 'S0034', '201706');
-- 168: Tests 1930 birth year
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT311', '1930', 'Male', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', ' ', '1', '200701', '201001', '1', '1', 'S0034', '201706');
-- 169: Tests Asian race
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT312', '1950', 'Male', 'Asian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', ' ', '1', '200701', '201001', '1', '1', 'S0034', '201706');
-- 170: Tests African American race
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT313', '1950', 'Male', 'African American', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', ' ', '1', '200701', '201001', '1', '1', 'S0034', '201706');
-- 171: Tests Caucasian race
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT314', '1950', 'Male', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', ' ', '1', '200701', '201001', '1', '1', 'S0034', '201706');
-- 172: Tests Unknown race
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT315', '1950', 'Male', 'Other/Unknown', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', ' ', '1', '200701', '201001', '1', '1', 'S0034', '201706');
-- 173: Tests Hispanic ethnicity, Asian race
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT316', '1950', 'Male', 'Asian', 'Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', ' ', '1', '200701', '201001', '1', '1', 'S0034', '201706');
-- 174: Tests Hispanic ethnicity, African American race
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT317', '1950', 'Male', 'African American', 'Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', ' ', '1', '200701', '201001', '1', '1', 'S0034', '201706');
-- 175: Tests Hispanic ethnicity, Caucasian race
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT318', '1950', 'Male', 'Caucasian', 'Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', ' ', '1', '200701', '201001', '1', '1', 'S0034', '201706');
-- 176: Tests Hispanic ethnicity, unknown race
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT319', '1950', 'Male', 'Other/Unknown', 'Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', ' ', '1', '200701', '201001', '1', '1', 'S0034', '201706');
-- 177: Tests procedure record with proc_code_type CPT4
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT320', '1950', 'Male', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', ' ', '1', '200701', '201001', '1', '1', 'S0034', '201706');
INSERT INTO optum_panther_native_test.[procedure](ptid, proc_date, proc_time, proc_code, proc_code_type) VALUES ('PT320', '2009-01-01', '00:00:00', '36415', 'CPT4');
-- 178: Tests procedure record with proc_code_type HCPCS
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT321', '1950', 'Male', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', ' ', '1', '200701', '201001', '1', '1', 'S0034', '201706');
INSERT INTO optum_panther_native_test.[procedure](ptid, proc_date, proc_time, proc_code, proc_code_type) VALUES ('PT321', '2009-01-01', '00:00:00', 'C9743', 'HCPCS');
-- 179: Tests procedure record with proc_code_type ICD9
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT322', '1950', 'Male', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', ' ', '1', '200701', '201001', '1', '1', 'S0034', '201706');
INSERT INTO optum_panther_native_test.[procedure](ptid, proc_date, proc_time, proc_code, proc_code_type) VALUES ('PT322', '2009-01-01', '00:00:00', '33.50', 'ICD9');
-- 180: Tests procedure record with proc_code_type ICD10
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT323', '1950', 'Male', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', ' ', '1', '200701', '201001', '1', '1', 'S0034', '201706');
INSERT INTO optum_panther_native_test.[procedure](ptid, proc_date, proc_time, proc_code, proc_code_type) VALUES ('PT323', '2009-01-01', '00:00:00', '0J8S0', 'ICD10');
-- 181: Tests procedure type concept
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT324', '1950', 'Male', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', ' ', '1', '200701', '201001', '1', '1', 'S0034', '201706');
INSERT INTO optum_panther_native_test.[procedure](ptid, proc_date, proc_time, proc_code, proc_code_type) VALUES ('PT324', '2009-01-01', '00:00:00', '36415', 'CPT4');
-- 182: Tests procedure record with proc_code_type of blank results in unmapped procedure occurrence
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT325', '1950', 'Male', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', ' ', '1', '200701', '201001', '1', '1', 'S0034', '201706');
INSERT INTO optum_panther_native_test.[procedure](ptid, proc_date, proc_time, proc_code, proc_code_type) VALUES ('PT325', '2009-01-01', '00:00:00', '36415', '');
-- 183: Tests procedure record with proc_code_type CUSTOM results in unmapped procedure occurrence
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT326', '1950', 'Male', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', ' ', '1', '200701', '201001', '1', '1', 'S0034', '201706');
INSERT INTO optum_panther_native_test.[procedure](ptid, proc_date, proc_time, proc_code, proc_code_type) VALUES ('PT326', '2009-01-01', '00:00:00', '36415', 'CUSTOM');
-- 184: Tests procedure record with proc_code_type REV results in unmapped procedure occurrence
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT327', '1950', 'Male', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', ' ', '1', '200701', '201001', '1', '1', 'S0034', '201706');
INSERT INTO optum_panther_native_test.[procedure](ptid, proc_date, proc_time, proc_code, proc_code_type) VALUES ('PT327', '2009-01-01', '00:00:00', '36415', 'REV');
-- 185: Tests procedure record with proc_code_type CLM_UNK results in unmapped procedure occurrence
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT328', '1950', 'Male', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', ' ', '1', '200701', '201001', '1', '1', 'S0034', '201706');
INSERT INTO optum_panther_native_test.[procedure](ptid, proc_date, proc_time, proc_code, proc_code_type) VALUES ('PT328', '2009-01-01', '00:00:00', '36415', 'CLM_UNK');
-- 186: Tests procedure type concept id from diagnosis record
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT329', '1950', 'Male', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', ' ', '1', '200701', '201001', '1', '1', 'S0034', '201706');
INSERT INTO optum_panther_native_test.diagnosis(ptid, diag_date, diag_time, diagnosis_cd, diagnosis_cd_type, diagnosis_status, poa, admitting_diagnosis, discharge_diagnosis, primary_diagnosis, problem_list) VALUES ('PT329', '2009-01-01', '00:00:00', '63491', 'ICD9', 'Diagnosis of', '0', '0', '0', '0', 'N');
-- 187: Diagnosis without ''Diagnosis of'' status is not loaded
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT331', '1950', 'Male', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', ' ', '1', '200701', '201001', '1', '1', 'S0034', '201706');
INSERT INTO optum_panther_native_test.diagnosis(ptid, diag_date, diag_time, diagnosis_cd, diagnosis_cd_type, diagnosis_status, poa, admitting_diagnosis, discharge_diagnosis, primary_diagnosis, problem_list) VALUES ('PT331', '2009-01-01', '00:00:00', '634.91', 'ICD9', 'Family history of', '0', '0', '0', '0', 'N');
-- 188: Diagnosis record with diagnosis_cd_type ICD9
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT333', '1950', 'Male', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', ' ', '1', '200701', '201001', '1', '1', 'S0034', '201706');
INSERT INTO optum_panther_native_test.diagnosis(ptid, diag_date, diag_time, diagnosis_cd, diagnosis_cd_type, diagnosis_status, poa, admitting_diagnosis, discharge_diagnosis, primary_diagnosis, problem_list) VALUES ('PT333', '2009-01-01', '00:00:00', '63491', 'ICD9', 'Diagnosis of', '0', '0', '0', '0', 'N');
-- 189: Diagnosis record with diagnosis_cd_type ICD10
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT335', '1950', 'Male', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', ' ', '1', '200701', '201001', '1', '1', 'S0034', '201706');
INSERT INTO optum_panther_native_test.diagnosis(ptid, diag_date, diag_time, diagnosis_cd, diagnosis_cd_type, diagnosis_status, poa, admitting_diagnosis, discharge_diagnosis, primary_diagnosis, problem_list) VALUES ('PT335', '2009-01-01', '00:00:00', 'O04.87', 'ICD10', 'Diagnosis of', '0', '0', '0', '0', 'N');
-- 190: Diagnosis record with diagnosis_cd_type SNOMED
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT337', '1950', 'Male', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', ' ', '1', '200701', '201001', '1', '1', 'S0034', '201706');
INSERT INTO optum_panther_native_test.diagnosis(ptid, diag_date, diag_time, diagnosis_cd, diagnosis_cd_type, diagnosis_status, poa, admitting_diagnosis, discharge_diagnosis, primary_diagnosis, problem_list) VALUES ('PT337', '2009-01-01', '00:00:00', '10019001', 'SNOMED', 'Diagnosis of', '0', '0', '0', '0', 'N');
-- 191: Simple Provider Mapping
INSERT INTO optum_panther_native_test.provider(provid, specialty, prim_spec_ind) VALUES ('339', 'Internal Medicine', '1');
-- 192: Dupe Provider Mapping
INSERT INTO optum_panther_native_test.provider(provid, specialty, prim_spec_ind) VALUES ('340', 'Family Medicine', '1');
INSERT INTO optum_panther_native_test.provider(provid, specialty, prim_spec_ind) VALUES ('340', 'Family Medicine', '1');
-- 193: Non-Primary specialty Mapping
INSERT INTO optum_panther_native_test.provider(provid, specialty, prim_spec_ind) VALUES ('341', 'Primary Medicine', '1');
INSERT INTO optum_panther_native_test.provider(provid, specialty, prim_spec_ind) VALUES ('341', 'Emergency Medicine', '0');
-- 194: Visit from Diagnosis Test
INSERT INTO optum_panther_native_test.patient(ptid, birth_yr, gender, race, ethnicity, region, division, pct_college_educ, deceased_indicator, date_of_death, idn_indicator, first_month_active, last_month_active, notes_eligible, has_notes, sourceid, source_data_through) VALUES ('PT342', '1928 and Earlier', 'Female', 'Caucasian', 'Not Hispanic', 'Midwest', 'South Atl/West South Crl', '26.0', '0', ' ', '1', '200601', '201706', '1', '1', 'S0034', '201706');
INSERT INTO optum_panther_native_test.diagnosis(ptid, encid, diag_date, diag_time, diagnosis_cd, diagnosis_cd_type, diagnosis_status, poa, admitting_diagnosis, discharge_diagnosis, primary_diagnosis, problem_list) VALUES ('PT342', 'E0000343', '2014-05-02', '00:00:00', '4019', 'ICD9', 'Diagnosis of', '0', '0', '0', '0', 'N');
INSERT INTO optum_panther_native_test.diagnosis(ptid, encid, diag_date, diag_time, diagnosis_cd, diagnosis_cd_type, diagnosis_status, poa, admitting_diagnosis, discharge_diagnosis, primary_diagnosis, problem_list) VALUES ('PT342', 'E0000344', '2014-05-02', '00:00:00', '2724', 'ICD9', 'Diagnosis of', '0', '0', '0', '0', 'N');
INSERT INTO optum_panther_native_test.visit(ptid, visitid, visit_type, visit_start_date, visit_start_time, visit_end_date, visit_end_time, discharge_disposition, admission_source) VALUES ('PT342', '345', 'Emergency patient', '2014-03-05', '00:00:00', '2014-03-10', '00:00:00', '01 DISCHARGED TO HOME OR SELF CARE', 'Referred by physician or self referral; non-healthcare facility point of origin');
INSERT INTO optum_panther_native_test.encounter(ptid, visitid, encid, interaction_type, interaction_date, interaction_time, academic_community_flag) VALUES ('PT342', '345', 'E0000343', 'Office or clinic patient', '2014-03-06', '00:00:00', 'U');
INSERT INTO optum_panther_native_test.encounter(ptid, visitid, encid, interaction_type, interaction_date, interaction_time, academic_community_flag) VALUES ('PT342', '345', 'E0000344', 'Office or clinic patient', '2014-03-07', '00:00:00', 'U'); |
/*
create_trans_series_table.sql is a MySQL script intended to
create a table of transliterated series names
Version: $Revision: 15 $
Date: $Date: 2019-03-05 16:32:38 -0400 (Tue, 31 Oct 2017) $
(C) COPYRIGHT 2019 Ahasuerus
ALL RIGHTS RESERVED
The copyright notice above does not evidence any actual or
intended publication of such source code.
*/
create table IF NOT EXISTS trans_series (
trans_series_id int(11) NOT NULL auto_increment,
trans_series_name mediumtext,
series_id int(11),
PRIMARY KEY (trans_series_id)
) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
create index series_id on trans_series (series_id);
create index trans_series_name on trans_series (trans_series_name(50));
|
<reponame>prashantp22/employee-tracker
DROP TABLE IF EXISTS employee;
DROP TABLE IF EXISTS role;
DROP TABLE IF EXISTS department;
CREATE TABLE department(
id INTEGER AUTO_INCREMENT PRIMARY KEY,
name VARCHAR(50) NOT NULL
);
CREATE TABLE role(
id INTEGER AUTO_INCREMENT PRIMARY KEY,
title VARCHAR(45) NOT NULL,
salary DECIMAL(10.3) NOT NULL,
department_id INT NOT NULL,
CONSTRAINT fk_department FOREIGN KEY (department_id) REFERENCES department(id)
);
CREATE TABLE employee(
id INT PRIMARY KEY AUTO_INCREMENT,
first_name VARCHAR(45) NOT NULL,
last_name VARCHAR(45) NOT NULL,
role_id INT NOT NULL,
manager_id INT REFERENCES employee(id),
CONSTRAINT fk_role_id FOREIGN KEY (role_id) REFERENCES role(id)
); |
DROP DATABASE IF EXISTS concert_db;
CREATE DATABASE concert_db;
-- USE concert_db;
-- CREATE TABLE users
-- (
-- user_id INT NOT NULL AUTO_INCREMENT,
-- user_name VARCHAR(50),
-- email VARCHAR(50) NOT NULL,
-- password VARCHAR(30) NOT NULL,
-- profile_picture_url VARCHAR(300),
-- PRIMARY KEY('user_id'),
-- UNIQUE KEY 'email'('email')
-- );
-- CREATE TABLE artists
-- (
-- artist_id INT NOT NULL AUTO_INCREMENT,
-- artist_name VARCHAR (100) NOT NULL,
-- email VARCHAR(50) NOT NULL;
-- password VARCHAR(30) NOT NULL,
-- genre VARCHAR(30) NOT NULL,
-- profile_picture_url VARCHAR(300),
-- PRIMARY KEY('artist_id'),
-- UNIQUE KEY 'email'('email')
-- );
-- CREATE TABLE reviews
-- (
-- post_id INT NOT NULL AUTO_INCREMENT,
-- date DATETIME DEFAULT CURRENT_TIMESTAMP,
-- user_name VARCHAR(50),
-- comment VARCHAR(1000) NOT NULL,
-- venue INT(2) NOT NULL,
-- performance INT(2) NOT NULL,
-- sound INT(2) NOT NULL,
-- energy INT(2) NOT NULL,
-- aesthetics INT(2) NOT NULL,
-- PRIMARY KEY('post_id'),
-- ); |
<filename>schema.sql<gh_stars>0
DROP DATABASE IF EXISTS employee_db;
CREATE database employee_db;
USE employee_db;
CREATE TABLE department (
id int NOT NULL AUTO_INCREMENT,
department_name VARCHAR(30),
PRIMARY KEY(id)
);
CREATE TABLE role (
id int NOT NULL AUTO_INCREMENT,
title VARCHAR(30),
salary DECIMAL,
department_id INT,
PRIMARY KEY (id)
);
CREATE TABLE employee (
id int NOT NULL AUTO_INCREMENT,
first_name VARCHAR (30),
last_name VARCHAR(30),
role_id INT,
manager_id INT,
PRIMARY KEY (id)
);
SELECT * FROM department;
SELECT * FROM role;
SELECT * FROM employee; |
<gh_stars>0
-- https://ola.hallengren.com/sql-server-backup.html
EXECUTE dbo.IndexOptimize
/* Update Stats */
@Databases = 'ALL_DATABASES',
@FragmentationLow = NULL,
@FragmentationMedium = NULL,
@FragmentationHigh = NULL,
@UpdateStatistics = 'ALL',
@OnlyModifiedStatistics = 'Y';
DECLARE @_dbNames VARCHAR(MAX);
/* Get Comma Separated List of Database Names which are not on APPSYNC*/
select @_dbNames = COALESCE(@_dbNames+','+DB_NAME(mf.database_id),DB_NAME(mf.database_id))
--,mf.physical_name
from sys.master_files as mf
where mf.file_id = 1
AND mf.database_id <> DB_ID('tempdb')
AND mf.physical_name not like 'C:\AppSyncMounts\%'
AND mf.database_id not in (select d.database_id from sys.databases as d where d.is_in_standby = 1 or d.source_database_id IS NOT NULL);
select @_dbNames;
-- Full Backups
EXEC DBA.dbo.[DatabaseBackup]
@Databases = @_dbNames,
@Directory = 'E:\Backup', /* Output like 'E:\Backup\backupfile.bak' */
@DirectoryStructure = NULL, /* Do not create directory structure */
@BackupType = 'FULL',
@Compress = 'Y'
,@CleanupTime = 168 -- 1 week
,@CleanupMode = 'AFTER_BACKUP';
GO
DECLARE @_dbNames VARCHAR(MAX);
/* Get Comma Separated List of Database Names which are not on APPSYNC*/
select @_dbNames = COALESCE(@_dbNames+','+DB_NAME(mf.database_id),DB_NAME(mf.database_id))
--,mf.physical_name
from sys.master_files as mf
where mf.file_id = 1
AND DB_NAME(mf.database_id) NOT IN ('master','tempdb','model','msdb','resourcedb')
AND mf.physical_name not like 'C:\AppSyncMounts\%'
AND mf.database_id not in (select d.database_id from sys.databases as d where d.is_in_standby = 1 or d.source_database_id IS NOT NULL);
select @_dbNames;
-- Diff Backups
EXEC DBA.dbo.[DatabaseBackup]
@Databases = @_dbNames,
@Directory = 'E:\Backup', /* Output like 'E:\Backup\backupfile.bak' */
@DirectoryStructure = NULL, /* Do not create directory structure */
@BackupType = 'DIFF',
@FileExtensionDiff = 'diff',
@Compress = 'Y'
use DBA
go
/* IndexOptimize [DBA] with @TimeLimit = 3.5 Hour */
EXECUTE dbo.IndexOptimize_Modified
@Databases = 'DBA', -- Multiple databases can also be passed here
@TimeLimit = 5400, -- 3.5 hours
@FragmentationLow = NULL,
@FragmentationMedium = 'INDEX_REBUILD_ONLINE,INDEX_REBUILD_OFFLINE',
@FragmentationHigh = 'INDEX_REBUILD_ONLINE,INDEX_REBUILD_OFFLINE',
@FragmentationLevel1 = 20,
@FragmentationLevel2 = 30,
@MinNumberOfPages = 1000,
@SortInTempdb = 'Y', /* Enable it when [Cosmo] production Server since [tempdb] & [Cosmo] database are on separate disks */
@MaxDOP = 4, /* Default = 3 on Cosmo server */
--@FillFactor = 70, /* Recommendations says to start with 100, and keep decreasing based on Page Splits/Sec value of server. On Cosmo server, Page Splits/sec are very high. Avg 171 page splits/sec for Avg 354 Batch Requests/sec */
@LOBCompaction = 'Y',
@UpdateStatistics = 'ALL',
@OnlyModifiedStatistics = 'Y',
@Indexes = 'ALL_INDEXES', /* Default is not specified. Db1.Schema1.Tbl1.Idx1, Db2.Schema2.Tbl2.Idx2 */
--@Delay = 120, /* Introduce 300 seconds of Delay b/w Indexes of Replicated Databases */
@LogToTable = 'Y'
,@forceReInitiate = 0 |
CREATE PROCEDURE [dbo].[dnn_GetTabsByModuleID]
@ModuleID Int -- NOT Null
AS
BEGIN
SELECT * FROM dbo.[dnn_vw_Tabs] T
WHERE IsDeleted = 0
AND TabID IN (SELECT TabID FROM dbo.[dnn_TabModules]
WHERE ModuleID = @ModuleID AND IsDeleted = 0)
ORDER BY PortalId, Level, ParentID, TabOrder -- PortalId added for query optimization
END
|
-- --------------------------------------------------------
-- 主机: 127.0.0.1
-- 服务器版本: 5.7.11 - MySQL Community Server (GPL)
-- 服务器操作系统: Win64
-- HeidiSQL 版本: 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' */;
-- 导出 表 world_area.city 结构
CREATE TABLE IF NOT EXISTS `city` (
`id` int(11) NOT NULL,
`province_id` int(11) NOT NULL,
`province_name` varchar(10) NOT NULL,
`name` varchar(16) NOT NULL,
`zip` varchar(6) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- 正在导出表 world_area.city 的数据:345 rows
DELETE FROM `city`;
/*!40000 ALTER TABLE `city` DISABLE KEYS */;
INSERT INTO `city` (`id`, `province_id`, `province_name`, `name`, `zip`) VALUES
(1, 1, '北京市', '北京市', '100000'),
(2, 2, '天津市', '天津市', '100000'),
(3, 3, '河北省', '石家庄市', '050000'),
(4, 3, '河北省', '唐山市', '063000'),
(5, 3, '河北省', '秦皇岛市', '066000'),
(6, 3, '河北省', '邯郸市', '056000'),
(7, 3, '河北省', '邢台市', '054000'),
(8, 3, '河北省', '保定市', '071000'),
(9, 3, '河北省', '张家口市', '075000'),
(10, 3, '河北省', '承德市', '067000'),
(11, 3, '河北省', '沧州市', '061000'),
(12, 3, '河北省', '廊坊市', '065000'),
(13, 3, '河北省', '衡水市', '053000'),
(14, 4, '山西省', '太原市', '030000'),
(15, 4, '山西省', '大同市', '037000'),
(16, 4, '山西省', '阳泉市', '045000'),
(17, 4, '山西省', '长治市', '046000'),
(18, 4, '山西省', '晋城市', '048000'),
(19, 4, '山西省', '朔州市', '036000'),
(20, 4, '山西省', '晋中市', '030600'),
(21, 4, '山西省', '运城市', '044000'),
(22, 4, '山西省', '忻州市', '034000'),
(23, 4, '山西省', '临汾市', '041000'),
(24, 4, '山西省', '吕梁市', '030500'),
(25, 5, '内蒙古自治区', '呼和浩特市', '010000'),
(26, 5, '内蒙古自治区', '包头市', '014000'),
(27, 5, '内蒙古自治区', '乌海市', '016000'),
(28, 5, '内蒙古自治区', '赤峰市', '024000'),
(29, 5, '内蒙古自治区', '通辽市', '028000'),
(30, 5, '内蒙古自治区', '鄂尔多斯市', '010300'),
(31, 5, '内蒙古自治区', '呼伦贝尔市', '021000'),
(32, 5, '内蒙古自治区', '巴彦淖尔市', '014400'),
(33, 5, '内蒙古自治区', '乌兰察布市', '011800'),
(34, 5, '内蒙古自治区', '兴安盟', '137500'),
(35, 5, '内蒙古自治区', '锡林郭勒盟', '011100'),
(36, 5, '内蒙古自治区', '阿拉善盟', '016000'),
(37, 6, '辽宁省', '沈阳市', '110000'),
(38, 6, '辽宁省', '大连市', '116000'),
(39, 6, '辽宁省', '鞍山市', '114000'),
(40, 6, '辽宁省', '抚顺市', '113000'),
(41, 6, '辽宁省', '本溪市', '117000'),
(42, 6, '辽宁省', '丹东市', '118000'),
(43, 6, '辽宁省', '锦州市', '121000'),
(44, 6, '辽宁省', '营口市', '115000'),
(45, 6, '辽宁省', '阜新市', '123000'),
(46, 6, '辽宁省', '辽阳市', '111000'),
(47, 6, '辽宁省', '盘锦市', '124000'),
(48, 6, '辽宁省', '铁岭市', '112000'),
(49, 6, '辽宁省', '朝阳市', '122000'),
(50, 6, '辽宁省', '葫芦岛市', '125000'),
(51, 7, '吉林省', '长春市', '130000'),
(52, 7, '吉林省', '吉林市', '132000'),
(53, 7, '吉林省', '四平市', '136000'),
(54, 7, '吉林省', '辽源市', '136200'),
(55, 7, '吉林省', '通化市', '134000'),
(56, 7, '吉林省', '白山市', '134300'),
(57, 7, '吉林省', '松原市', '131100'),
(58, 7, '吉林省', '白城市', '137000'),
(59, 7, '吉林省', '延边朝鲜族自治州', '133000'),
(60, 8, '黑龙江省', '哈尔滨市', '150000'),
(61, 8, '黑龙江省', '齐齐哈尔市', '161000'),
(62, 8, '黑龙江省', '鸡西市', '158100'),
(63, 8, '黑龙江省', '鹤岗市', '154100'),
(64, 8, '黑龙江省', '双鸭山市', '155100'),
(65, 8, '黑龙江省', '大庆市', '163000'),
(66, 8, '黑龙江省', '伊春市', '152300'),
(67, 8, '黑龙江省', '佳木斯市', '154000'),
(68, 8, '黑龙江省', '七台河市', '154600'),
(69, 8, '黑龙江省', '牡丹江市', '157000'),
(70, 8, '黑龙江省', '黑河市', '164300'),
(71, 8, '黑龙江省', '绥化市', '152000'),
(72, 8, '黑龙江省', '大兴安岭地区', '165000'),
(73, 9, '上海市', '上海市', '200000'),
(74, 10, '江苏省', '南京市', '210000'),
(75, 10, '江苏省', '无锡市', '214000'),
(76, 10, '江苏省', '徐州市', '221000'),
(77, 10, '江苏省', '常州市', '213000'),
(78, 10, '江苏省', '苏州市', '215000'),
(79, 10, '江苏省', '南通市', '226000'),
(80, 10, '江苏省', '连云港市', '222000'),
(81, 10, '江苏省', '淮安市', '223200'),
(82, 10, '江苏省', '盐城市', '224000'),
(83, 10, '江苏省', '扬州市', '225000'),
(84, 10, '江苏省', '镇江市', '212000'),
(85, 10, '江苏省', '泰州市', '225300'),
(86, 10, '江苏省', '宿迁市', '223800'),
(87, 11, '浙江省', '杭州市', '310000'),
(88, 11, '浙江省', '宁波市', '315000'),
(89, 11, '浙江省', '温州市', '325000'),
(90, 11, '浙江省', '嘉兴市', '314000'),
(91, 11, '浙江省', '湖州市', '313000'),
(92, 11, '浙江省', '绍兴市', '312000'),
(93, 11, '浙江省', '金华市', '321000'),
(94, 11, '浙江省', '衢州市', '324000'),
(95, 11, '浙江省', '舟山市', '316000'),
(96, 11, '浙江省', '台州市', '318000'),
(97, 11, '浙江省', '丽水市', '323000'),
(98, 12, '安徽省', '合肥市', '230000'),
(99, 12, '安徽省', '芜湖市', '241000'),
(100, 12, '安徽省', '蚌埠市', '233000'),
(101, 12, '安徽省', '淮南市', '232000'),
(102, 12, '安徽省', '马鞍山市', '243000'),
(103, 12, '安徽省', '淮北市', '235000'),
(104, 12, '安徽省', '铜陵市', '244000'),
(105, 12, '安徽省', '安庆市', '246000'),
(106, 12, '安徽省', '黄山市', '242700'),
(107, 12, '安徽省', '滁州市', '239000'),
(108, 12, '安徽省', '阜阳市', '236100'),
(109, 12, '安徽省', '宿州市', '234100'),
(110, 12, '安徽省', '巢湖市', '238000'),
(111, 12, '安徽省', '六安市', '237000'),
(112, 12, '安徽省', '亳州市', '236800'),
(113, 12, '安徽省', '池州市', '247100'),
(114, 12, '安徽省', '宣城市', '366000'),
(115, 13, '福建省', '福州市', '350000'),
(116, 13, '福建省', '厦门市', '361000'),
(117, 13, '福建省', '莆田市', '351100'),
(118, 13, '福建省', '三明市', '365000'),
(119, 13, '福建省', '泉州市', '362000'),
(120, 13, '福建省', '漳州市', '363000'),
(121, 13, '福建省', '南平市', '353000'),
(122, 13, '福建省', '龙岩市', '364000'),
(123, 13, '福建省', '宁德市', '352100'),
(124, 14, '江西省', '南昌市', '330000'),
(125, 14, '江西省', '景德镇市', '333000'),
(126, 14, '江西省', '萍乡市', '337000'),
(127, 14, '江西省', '九江市', '332000'),
(128, 14, '江西省', '新余市', '338000'),
(129, 14, '江西省', '鹰潭市', '335000'),
(130, 14, '江西省', '赣州市', '341000'),
(131, 14, '江西省', '吉安市', '343000'),
(132, 14, '江西省', '宜春市', '336000'),
(133, 14, '江西省', '抚州市', '332900'),
(134, 14, '江西省', '上饶市', '334000'),
(135, 15, '山东省', '济南市', '250000'),
(136, 15, '山东省', '青岛市', '266000'),
(137, 15, '山东省', '淄博市', '255000'),
(138, 15, '山东省', '枣庄市', '277100'),
(139, 15, '山东省', '东营市', '257000'),
(140, 15, '山东省', '烟台市', '264000'),
(141, 15, '山东省', '潍坊市', '261000'),
(142, 15, '山东省', '济宁市', '272100'),
(143, 15, '山东省', '泰安市', '271000'),
(144, 15, '山东省', '威海市', '265700'),
(145, 15, '山东省', '日照市', '276800'),
(146, 15, '山东省', '莱芜市', '271100'),
(147, 15, '山东省', '临沂市', '276000'),
(148, 15, '山东省', '德州市', '253000'),
(149, 15, '山东省', '聊城市', '252000'),
(150, 15, '山东省', '滨州市', '256600'),
(151, 15, '山东省', '荷泽市', '255000'),
(152, 16, '河南省', '郑州市', '450000'),
(153, 16, '河南省', '开封市', '475000'),
(154, 16, '河南省', '洛阳市', '471000'),
(155, 16, '河南省', '平顶山市', '467000'),
(156, 16, '河南省', '安阳市', '454900'),
(157, 16, '河南省', '鹤壁市', '456600'),
(158, 16, '河南省', '新乡市', '453000'),
(159, 16, '河南省', '焦作市', '454100'),
(160, 16, '河南省', '濮阳市', '457000'),
(161, 16, '河南省', '许昌市', '461000'),
(162, 16, '河南省', '漯河市', '462000'),
(163, 16, '河南省', '三门峡市', '472000'),
(164, 16, '河南省', '南阳市', '473000'),
(165, 16, '河南省', '商丘市', '476000'),
(166, 16, '河南省', '信阳市', '464000'),
(167, 16, '河南省', '周口市', '466000'),
(168, 16, '河南省', '驻马店市', '463000'),
(169, 17, '湖北省', '武汉市', '430000'),
(170, 17, '湖北省', '黄石市', '435000'),
(171, 17, '湖北省', '十堰市', '442000'),
(172, 17, '湖北省', '宜昌市', '443000'),
(173, 17, '湖北省', '襄樊市', '441000'),
(174, 17, '湖北省', '鄂州市', '436000'),
(175, 17, '湖北省', '荆门市', '448000'),
(176, 17, '湖北省', '孝感市', '432100'),
(177, 17, '湖北省', '荆州市', '434000'),
(178, 17, '湖北省', '黄冈市', '438000'),
(179, 17, '湖北省', '咸宁市', '437000'),
(180, 17, '湖北省', '随州市', '441300'),
(181, 17, '湖北省', '恩施土家族苗族自治州', '445000'),
(182, 17, '湖北省', '神农架', '442400'),
(183, 18, '湖南省', '长沙市', '410000'),
(184, 18, '湖南省', '株洲市', '412000'),
(185, 18, '湖南省', '湘潭市', '411100'),
(186, 18, '湖南省', '衡阳市', '421000'),
(187, 18, '湖南省', '邵阳市', '422000'),
(188, 18, '湖南省', '岳阳市', '414000'),
(189, 18, '湖南省', '常德市', '415000'),
(190, 18, '湖南省', '张家界市', '427000'),
(191, 18, '湖南省', '益阳市', '413000'),
(192, 18, '湖南省', '郴州市', '423000'),
(193, 18, '湖南省', '永州市', '425000'),
(194, 18, '湖南省', '怀化市', '418000'),
(195, 18, '湖南省', '娄底市', '417000'),
(196, 18, '湖南省', '湘西土家族苗族自治州', '416000'),
(197, 19, '广东省', '广州市', '510000'),
(198, 19, '广东省', '韶关市', '521000'),
(199, 19, '广东省', '深圳市', '518000'),
(200, 19, '广东省', '珠海市', '519000'),
(201, 19, '广东省', '汕头市', '515000'),
(202, 19, '广东省', '佛山市', '528000'),
(203, 19, '广东省', '江门市', '529000'),
(204, 19, '广东省', '湛江市', '524000'),
(205, 19, '广东省', '茂名市', '525000'),
(206, 19, '广东省', '肇庆市', '526000'),
(207, 19, '广东省', '惠州市', '516000'),
(208, 19, '广东省', '梅州市', '514000'),
(209, 19, '广东省', '汕尾市', '516600'),
(210, 19, '广东省', '河源市', '517000'),
(211, 19, '广东省', '阳江市', '529500'),
(212, 19, '广东省', '清远市', '511500'),
(213, 19, '广东省', '东莞市', '511700'),
(214, 19, '广东省', '中山市', '528400'),
(215, 19, '广东省', '潮州市', '515600'),
(216, 19, '广东省', '揭阳市', '522000'),
(217, 19, '广东省', '云浮市', '527300'),
(218, 20, '广西壮族自治区', '南宁市', '530000'),
(219, 20, '广西壮族自治区', '柳州市', '545000'),
(220, 20, '广西壮族自治区', '桂林市', '541000'),
(221, 20, '广西壮族自治区', '梧州市', '543000'),
(222, 20, '广西壮族自治区', '北海市', '536000'),
(223, 20, '广西壮族自治区', '防城港市', '538000'),
(224, 20, '广西壮族自治区', '钦州市', '535000'),
(225, 20, '广西壮族自治区', '贵港市', '537100'),
(226, 20, '广西壮族自治区', '玉林市', '537000'),
(227, 20, '广西壮族自治区', '百色市', '533000'),
(228, 20, '广西壮族自治区', '贺州市', '542800'),
(229, 20, '广西壮族自治区', '河池市', '547000'),
(230, 20, '广西壮族自治区', '来宾市', '546100'),
(231, 20, '广西壮族自治区', '崇左市', '532200'),
(232, 21, '海南省', '海口市', '570000'),
(233, 21, '海南省', '三亚市', '572000'),
(234, 22, '重庆市', '重庆市', '400000'),
(235, 23, '四川省', '成都市', '610000'),
(236, 23, '四川省', '自贡市', '643000'),
(237, 23, '四川省', '攀枝花市', '617000'),
(238, 23, '四川省', '泸州市', '646100'),
(239, 23, '四川省', '德阳市', '618000'),
(240, 23, '四川省', '绵阳市', '621000'),
(241, 23, '四川省', '广元市', '628000'),
(242, 23, '四川省', '遂宁市', '629000'),
(243, 23, '四川省', '内江市', '641000'),
(244, 23, '四川省', '乐山市', '614000'),
(245, 23, '四川省', '南充市', '637000'),
(246, 23, '四川省', '眉山市', '612100'),
(247, 23, '四川省', '宜宾市', '644000'),
(248, 23, '四川省', '广安市', '638000'),
(249, 23, '四川省', '达州市', '635000'),
(250, 23, '四川省', '雅安市', '625000'),
(251, 23, '四川省', '巴中市', '635500'),
(252, 23, '四川省', '资阳市', '641300'),
(253, 23, '四川省', '阿坝藏族羌族自治州', '624600'),
(254, 23, '四川省', '甘孜藏族自治州', '626000'),
(255, 23, '四川省', '凉山彝族自治州', '615000'),
(256, 24, '贵州省', '贵阳市', '55000'),
(257, 24, '贵州省', '六盘水市', '553000'),
(258, 24, '贵州省', '遵义市', '563000'),
(259, 24, '贵州省', '安顺市', '561000'),
(260, 24, '贵州省', '铜仁地区', '554300'),
(261, 24, '贵州省', '黔西南布依族苗族自治州', '551500'),
(262, 24, '贵州省', '毕节地区', '551700'),
(263, 24, '贵州省', '黔东南苗族侗族自治州', '551500'),
(264, 24, '贵州省', '黔南布依族苗族自治州', '550100'),
(265, 25, '云南省', '昆明市', '650000'),
(266, 25, '云南省', '曲靖市', '655000'),
(267, 25, '云南省', '玉溪市', '653100'),
(268, 25, '云南省', '保山市', '678000'),
(269, 25, '云南省', '昭通市', '657000'),
(270, 25, '云南省', '丽江市', '674100'),
(271, 25, '云南省', '思茅市', '665000'),
(272, 25, '云南省', '临沧市', '677000'),
(273, 25, '云南省', '楚雄彝族自治州', '675000'),
(274, 25, '云南省', '红河哈尼族彝族自治州', '654400'),
(275, 25, '云南省', '文山壮族苗族自治州', '663000'),
(276, 25, '云南省', '西双版纳傣族自治州', '666200'),
(277, 25, '云南省', '大理白族自治州', '671000'),
(278, 25, '云南省', '德宏傣族景颇族自治州', '678400'),
(279, 25, '云南省', '怒江傈僳族自治州', '671400'),
(280, 25, '云南省', '迪庆藏族自治州', '674400'),
(281, 26, '西藏自治区', '拉萨市', '850000'),
(282, 26, '西藏自治区', '昌都地区', '854000'),
(283, 26, '西藏自治区', '山南地区', '856000'),
(284, 26, '西藏自治区', '日喀则地区', '857000'),
(285, 26, '西藏自治区', '那曲地区', '852000'),
(286, 26, '西藏自治区', '阿里地区', '859100'),
(287, 26, '西藏自治区', '林芝地区', '860100'),
(288, 27, '陕西省', '西安市', '710000'),
(289, 27, '陕西省', '铜川市', '727000'),
(290, 27, '陕西省', '宝鸡市', '721000'),
(291, 27, '陕西省', '咸阳市', '712000'),
(292, 27, '陕西省', '渭南市', '714000'),
(293, 27, '陕西省', '延安市', '716000'),
(294, 27, '陕西省', '汉中市', '723000'),
(295, 27, '陕西省', '榆林市', '719000'),
(296, 27, '陕西省', '安康市', '725000'),
(297, 27, '陕西省', '商洛市', '711500'),
(298, 28, '甘肃省', '兰州市', '730000'),
(299, 28, '甘肃省', '嘉峪关市', '735100'),
(300, 28, '甘肃省', '金昌市', '737100'),
(301, 28, '甘肃省', '白银市', '730900'),
(302, 28, '甘肃省', '天水市', '741000'),
(303, 28, '甘肃省', '武威市', '733000'),
(304, 28, '甘肃省', '张掖市', '734000'),
(305, 28, '甘肃省', '平凉市', '744000'),
(306, 28, '甘肃省', '酒泉市', '735000'),
(307, 28, '甘肃省', '庆阳市', '744500'),
(308, 28, '甘肃省', '定西市', '743000'),
(309, 28, '甘肃省', '陇南市', '742100'),
(310, 28, '甘肃省', '临夏回族自治州', '731100'),
(311, 28, '甘肃省', '甘南藏族自治州', '747000'),
(312, 29, '青海省', '西宁市', '810000'),
(313, 29, '青海省', '海东地区', '810600'),
(314, 29, '青海省', '海北藏族自治州', '810300'),
(315, 29, '青海省', '黄南藏族自治州', '811300'),
(316, 29, '青海省', '海南藏族自治州', '813000'),
(317, 29, '青海省', '果洛藏族自治州', '814000'),
(318, 29, '青海省', '玉树藏族自治州', '815000'),
(319, 29, '青海省', '海西蒙古族藏族自治州', '817000'),
(320, 30, '宁夏回族自治区', '银川市', '750000'),
(321, 30, '宁夏回族自治区', '石嘴山市', '753000'),
(322, 30, '宁夏回族自治区', '吴忠市', '751100'),
(323, 30, '宁夏回族自治区', '固原市', '756000'),
(324, 30, '宁夏回族自治区', '中卫市', '751700'),
(325, 31, '新疆维吾尔自治区', '乌鲁木齐市', '830000'),
(326, 31, '新疆维吾尔自治区', '克拉玛依市', '834000'),
(327, 31, '新疆维吾尔自治区', '吐鲁番地区', '838000'),
(328, 31, '新疆维吾尔自治区', '哈密地区', '839000'),
(329, 31, '新疆维吾尔自治区', '昌吉回族自治州', '831100'),
(330, 31, '新疆维吾尔自治区', '博尔塔拉蒙古自治州', '833400'),
(331, 31, '新疆维吾尔自治区', '巴音郭楞蒙古自治州', '841000'),
(332, 31, '新疆维吾尔自治区', '阿克苏地区', '843000'),
(333, 31, '新疆维吾尔自治区', '克孜勒苏柯尔克孜自治州', '835600'),
(334, 31, '新疆维吾尔自治区', '喀什地区', '844000'),
(335, 31, '新疆维吾尔自治区', '和田地区', '848000'),
(336, 31, '新疆维吾尔自治区', '伊犁哈萨克自治州', '833200'),
(337, 31, '新疆维吾尔自治区', '塔城地区', '834700'),
(338, 31, '新疆维吾尔自治区', '阿勒泰地区', '836500'),
(339, 31, '新疆维吾尔自治区', '石河子市', '832000'),
(340, 31, '新疆维吾尔自治区', '阿拉尔市', '843300'),
(341, 31, '新疆维吾尔自治区', '图木舒克市', '843900'),
(342, 31, '新疆维吾尔自治区', '五家渠市', '831300'),
(343, 32, '香港特别行政区', '香港特别行政区', '000000'),
(344, 33, '澳门特别行政区', '澳门特别行政区', '000000'),
(345, 34, '台湾省', '台湾省', '000000');
/*!40000 ALTER TABLE `city` ENABLE KEYS */;
-- 导出 表 world_area.district 结构
CREATE TABLE IF NOT EXISTS `district` (
`id` int(11) NOT NULL,
`province_id` int(11) NOT NULL,
`city_id` int(11) NOT NULL,
`province_name` varchar(10) NOT NULL,
`city_name` varchar(16) NOT NULL,
`name` varchar(16) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- 正在导出表 world_area.district 的数据:2,862 rows
DELETE FROM `district`;
/*!40000 ALTER TABLE `district` DISABLE KEYS */;
INSERT INTO `district` (`id`, `province_id`, `city_id`, `province_name`, `city_name`, `name`) VALUES
(1, 0, 1, '北京市', '北京市', '东城区'),
(2, 0, 1, '北京市', '北京市', '西城区'),
(3, 0, 1, '北京市', '北京市', '崇文区'),
(4, 0, 1, '北京市', '北京市', '宣武区'),
(5, 0, 1, '北京市', '北京市', '朝阳区'),
(6, 0, 1, '北京市', '北京市', '丰台区'),
(7, 0, 1, '北京市', '北京市', '石景山区'),
(8, 0, 1, '北京市', '北京市', '海淀区'),
(9, 0, 1, '北京市', '北京市', '门头沟区'),
(10, 0, 1, '北京市', '北京市', '房山区'),
(11, 0, 1, '北京市', '北京市', '通州区'),
(12, 0, 1, '北京市', '北京市', '顺义区'),
(13, 0, 1, '北京市', '北京市', '昌平区'),
(14, 0, 1, '北京市', '北京市', '大兴区'),
(15, 0, 1, '北京市', '北京市', '怀柔区'),
(16, 0, 1, '北京市', '北京市', '平谷区'),
(17, 0, 1, '北京市', '北京市', '密云县'),
(18, 0, 1, '北京市', '北京市', '延庆县'),
(19, 0, 2, '天津市', '天津市', '和平区'),
(20, 0, 2, '天津市', '天津市', '河东区'),
(21, 0, 2, '天津市', '天津市', '河西区'),
(22, 0, 2, '天津市', '天津市', '南开区'),
(23, 0, 2, '天津市', '天津市', '河北区'),
(24, 0, 2, '天津市', '天津市', '红桥区'),
(25, 0, 2, '天津市', '天津市', '塘沽区'),
(26, 0, 2, '天津市', '天津市', '汉沽区'),
(27, 0, 2, '天津市', '天津市', '大港区'),
(28, 0, 2, '天津市', '天津市', '东丽区'),
(29, 0, 2, '天津市', '天津市', '西青区'),
(30, 0, 2, '天津市', '天津市', '津南区'),
(31, 0, 2, '天津市', '天津市', '北辰区'),
(32, 0, 2, '天津市', '天津市', '武清区'),
(33, 0, 2, '天津市', '天津市', '宝坻区'),
(34, 0, 2, '天津市', '天津市', '宁河县'),
(35, 0, 2, '天津市', '天津市', '静海县'),
(36, 0, 2, '天津市', '天津市', '蓟县'),
(37, 0, 3, '河北省', '石家庄市', '长安区'),
(38, 0, 3, '河北省', '石家庄市', '桥东区'),
(39, 0, 3, '河北省', '石家庄市', '桥西区'),
(40, 0, 3, '河北省', '石家庄市', '新华区'),
(41, 0, 3, '河北省', '石家庄市', '井陉矿区'),
(42, 0, 3, '河北省', '石家庄市', '裕华区'),
(43, 0, 3, '河北省', '石家庄市', '井陉县'),
(44, 0, 3, '河北省', '石家庄市', '正定县'),
(45, 0, 3, '河北省', '石家庄市', '栾城县'),
(46, 0, 3, '河北省', '石家庄市', '行唐县'),
(47, 0, 3, '河北省', '石家庄市', '灵寿县'),
(48, 0, 3, '河北省', '石家庄市', '高邑县'),
(49, 0, 3, '河北省', '石家庄市', '深泽县'),
(50, 0, 3, '河北省', '石家庄市', '赞皇县'),
(51, 0, 3, '河北省', '石家庄市', '无极县'),
(52, 0, 3, '河北省', '石家庄市', '平山县'),
(53, 0, 3, '河北省', '石家庄市', '元氏县'),
(54, 0, 3, '河北省', '石家庄市', '赵县'),
(55, 0, 3, '河北省', '石家庄市', '辛集市'),
(56, 0, 3, '河北省', '石家庄市', '藁城市'),
(57, 0, 3, '河北省', '石家庄市', '晋州市'),
(58, 0, 3, '河北省', '石家庄市', '新乐市'),
(59, 0, 3, '河北省', '石家庄市', '鹿泉市'),
(60, 0, 4, '河北省', '唐山市', '路南区'),
(61, 0, 4, '河北省', '唐山市', '路北区'),
(62, 0, 4, '河北省', '唐山市', '古冶区'),
(63, 0, 4, '河北省', '唐山市', '开平区'),
(64, 0, 4, '河北省', '唐山市', '丰南区'),
(65, 0, 4, '河北省', '唐山市', '丰润区'),
(66, 0, 4, '河北省', '唐山市', '滦县'),
(67, 0, 4, '河北省', '唐山市', '滦南县'),
(68, 0, 4, '河北省', '唐山市', '乐亭县'),
(69, 0, 4, '河北省', '唐山市', '迁西县'),
(70, 0, 4, '河北省', '唐山市', '玉田县'),
(71, 0, 4, '河北省', '唐山市', '唐海县'),
(72, 0, 4, '河北省', '唐山市', '遵化市'),
(73, 0, 4, '河北省', '唐山市', '迁安市'),
(74, 0, 5, '河北省', '秦皇岛市', '海港区'),
(75, 0, 5, '河北省', '秦皇岛市', '山海关区'),
(76, 0, 5, '河北省', '秦皇岛市', '北戴河区'),
(77, 0, 5, '河北省', '秦皇岛市', '青龙满族自治县'),
(78, 0, 5, '河北省', '秦皇岛市', '昌黎县'),
(79, 0, 5, '河北省', '秦皇岛市', '抚宁县'),
(80, 0, 5, '河北省', '秦皇岛市', '卢龙县'),
(81, 0, 6, '河北省', '邯郸市', '邯山区'),
(82, 0, 6, '河北省', '邯郸市', '丛台区'),
(83, 0, 6, '河北省', '邯郸市', '复兴区'),
(84, 0, 6, '河北省', '邯郸市', '峰峰矿区'),
(85, 0, 6, '河北省', '邯郸市', '邯郸县'),
(86, 0, 6, '河北省', '邯郸市', '临漳县'),
(87, 0, 6, '河北省', '邯郸市', '成安县'),
(88, 0, 6, '河北省', '邯郸市', '大名县'),
(89, 0, 6, '河北省', '邯郸市', '涉县'),
(90, 0, 6, '河北省', '邯郸市', '磁县'),
(91, 0, 6, '河北省', '邯郸市', '肥乡县'),
(92, 0, 6, '河北省', '邯郸市', '永年县'),
(93, 0, 6, '河北省', '邯郸市', '邱县'),
(94, 0, 6, '河北省', '邯郸市', '鸡泽县'),
(95, 0, 6, '河北省', '邯郸市', '广平县'),
(96, 0, 6, '河北省', '邯郸市', '馆陶县'),
(97, 0, 6, '河北省', '邯郸市', '魏县'),
(98, 0, 6, '河北省', '邯郸市', '曲周县'),
(99, 0, 6, '河北省', '邯郸市', '武安市'),
(100, 0, 7, '河北省', '邢台市', '桥东区'),
(101, 0, 7, '河北省', '邢台市', '桥西区'),
(102, 0, 7, '河北省', '邢台市', '邢台县'),
(103, 0, 7, '河北省', '邢台市', '临城县'),
(104, 0, 7, '河北省', '邢台市', '内丘县'),
(105, 0, 7, '河北省', '邢台市', '柏乡县'),
(106, 0, 7, '河北省', '邢台市', '隆尧县'),
(107, 0, 7, '河北省', '邢台市', '任县'),
(108, 0, 7, '河北省', '邢台市', '南和县'),
(109, 0, 7, '河北省', '邢台市', '宁晋县'),
(110, 0, 7, '河北省', '邢台市', '巨鹿县'),
(111, 0, 7, '河北省', '邢台市', '新河县'),
(112, 0, 7, '河北省', '邢台市', '广宗县'),
(113, 0, 7, '河北省', '邢台市', '平乡县'),
(114, 0, 7, '河北省', '邢台市', '威县'),
(115, 0, 7, '河北省', '邢台市', '清河县'),
(116, 0, 7, '河北省', '邢台市', '临西县'),
(117, 0, 7, '河北省', '邢台市', '南宫市'),
(118, 0, 7, '河北省', '邢台市', '沙河市'),
(119, 0, 8, '河北省', '保定市', '新市区'),
(120, 0, 8, '河北省', '保定市', '北市区'),
(121, 0, 8, '河北省', '保定市', '南市区'),
(122, 0, 8, '河北省', '保定市', '满城县'),
(123, 0, 8, '河北省', '保定市', '清苑县'),
(124, 0, 8, '河北省', '保定市', '涞水县'),
(125, 0, 8, '河北省', '保定市', '阜平县'),
(126, 0, 8, '河北省', '保定市', '徐水县'),
(127, 0, 8, '河北省', '保定市', '定兴县'),
(128, 0, 8, '河北省', '保定市', '唐县'),
(129, 0, 8, '河北省', '保定市', '高阳县'),
(130, 0, 8, '河北省', '保定市', '容城县'),
(131, 0, 8, '河北省', '保定市', '涞源县'),
(132, 0, 8, '河北省', '保定市', '望都县'),
(133, 0, 8, '河北省', '保定市', '安新县'),
(134, 0, 8, '河北省', '保定市', '易县'),
(135, 0, 8, '河北省', '保定市', '曲阳县'),
(136, 0, 8, '河北省', '保定市', '蠡县'),
(137, 0, 8, '河北省', '保定市', '顺平县'),
(138, 0, 8, '河北省', '保定市', '博野县'),
(139, 0, 8, '河北省', '保定市', '雄县'),
(140, 0, 8, '河北省', '保定市', '涿州市'),
(141, 0, 8, '河北省', '保定市', '定州市'),
(142, 0, 8, '河北省', '保定市', '安国市'),
(143, 0, 8, '河北省', '保定市', '高碑店市'),
(144, 0, 9, '河北省', '张家口市', '桥东区'),
(145, 0, 9, '河北省', '张家口市', '桥西区'),
(146, 0, 9, '河北省', '张家口市', '宣化区'),
(147, 0, 9, '河北省', '张家口市', '下花园区'),
(148, 0, 9, '河北省', '张家口市', '宣化县'),
(149, 0, 9, '河北省', '张家口市', '张北县'),
(150, 0, 9, '河北省', '张家口市', '康保县'),
(151, 0, 9, '河北省', '张家口市', '沽源县'),
(152, 0, 9, '河北省', '张家口市', '尚义县'),
(153, 0, 9, '河北省', '张家口市', '蔚县'),
(154, 0, 9, '河北省', '张家口市', '阳原县'),
(155, 0, 9, '河北省', '张家口市', '怀安县'),
(156, 0, 9, '河北省', '张家口市', '万全县'),
(157, 0, 9, '河北省', '张家口市', '怀来县'),
(158, 0, 9, '河北省', '张家口市', '涿鹿县'),
(159, 0, 9, '河北省', '张家口市', '赤城县'),
(160, 0, 9, '河北省', '张家口市', '崇礼县'),
(161, 0, 10, '河北省', '承德市', '双桥区'),
(162, 0, 10, '河北省', '承德市', '双滦区'),
(163, 0, 10, '河北省', '承德市', '鹰手营子矿区'),
(164, 0, 10, '河北省', '承德市', '承德县'),
(165, 0, 10, '河北省', '承德市', '兴隆县'),
(166, 0, 10, '河北省', '承德市', '平泉县'),
(167, 0, 10, '河北省', '承德市', '滦平县'),
(168, 0, 10, '河北省', '承德市', '隆化县'),
(169, 0, 10, '河北省', '承德市', '丰宁满族自治县'),
(170, 0, 10, '河北省', '承德市', '宽城满族自治县'),
(171, 0, 10, '河北省', '承德市', '围场满族蒙古族自治县'),
(172, 0, 11, '河北省', '沧州市', '新华区'),
(173, 0, 11, '河北省', '沧州市', '运河区'),
(174, 0, 11, '河北省', '沧州市', '沧县'),
(175, 0, 11, '河北省', '沧州市', '青县'),
(176, 0, 11, '河北省', '沧州市', '东光县'),
(177, 0, 11, '河北省', '沧州市', '海兴县'),
(178, 0, 11, '河北省', '沧州市', '盐山县'),
(179, 0, 11, '河北省', '沧州市', '肃宁县'),
(180, 0, 11, '河北省', '沧州市', '南皮县'),
(181, 0, 11, '河北省', '沧州市', '吴桥县'),
(182, 0, 11, '河北省', '沧州市', '献县'),
(183, 0, 11, '河北省', '沧州市', '孟村回族自治县'),
(184, 0, 11, '河北省', '沧州市', '泊头市'),
(185, 0, 11, '河北省', '沧州市', '任丘市'),
(186, 0, 11, '河北省', '沧州市', '黄骅市'),
(187, 0, 11, '河北省', '沧州市', '河间市'),
(188, 0, 12, '河北省', '廊坊市', '安次区'),
(189, 0, 12, '河北省', '廊坊市', '广阳区'),
(190, 0, 12, '河北省', '廊坊市', '固安县'),
(191, 0, 12, '河北省', '廊坊市', '永清县'),
(192, 0, 12, '河北省', '廊坊市', '香河县'),
(193, 0, 12, '河北省', '廊坊市', '大城县'),
(194, 0, 12, '河北省', '廊坊市', '文安县'),
(195, 0, 12, '河北省', '廊坊市', '大厂回族自治县'),
(196, 0, 12, '河北省', '廊坊市', '霸州市'),
(197, 0, 12, '河北省', '廊坊市', '三河市'),
(198, 0, 13, '河北省', '衡水市', '桃城区'),
(199, 0, 13, '河北省', '衡水市', '枣强县'),
(200, 0, 13, '河北省', '衡水市', '武邑县'),
(201, 0, 13, '河北省', '衡水市', '武强县'),
(202, 0, 13, '河北省', '衡水市', '饶阳县'),
(203, 0, 13, '河北省', '衡水市', '安平县'),
(204, 0, 13, '河北省', '衡水市', '故城县'),
(205, 0, 13, '河北省', '衡水市', '景县'),
(206, 0, 13, '河北省', '衡水市', '阜城县'),
(207, 0, 13, '河北省', '衡水市', '冀州市'),
(208, 0, 13, '河北省', '衡水市', '深州市'),
(209, 0, 14, '山西省', '太原市', '小店区'),
(210, 0, 14, '山西省', '太原市', '迎泽区'),
(211, 0, 14, '山西省', '太原市', '杏花岭区'),
(212, 0, 14, '山西省', '太原市', '尖草坪区'),
(213, 0, 14, '山西省', '太原市', '万柏林区'),
(214, 0, 14, '山西省', '太原市', '晋源区'),
(215, 0, 14, '山西省', '太原市', '清徐县'),
(216, 0, 14, '山西省', '太原市', '阳曲县'),
(217, 0, 14, '山西省', '太原市', '娄烦县'),
(218, 0, 14, '山西省', '太原市', '古交市'),
(219, 0, 15, '山西省', '大同市', '城区'),
(220, 0, 15, '山西省', '大同市', '矿区'),
(221, 0, 15, '山西省', '大同市', '南郊区'),
(222, 0, 15, '山西省', '大同市', '新荣区'),
(223, 0, 15, '山西省', '大同市', '阳高县'),
(224, 0, 15, '山西省', '大同市', '天镇县'),
(225, 0, 15, '山西省', '大同市', '广灵县'),
(226, 0, 15, '山西省', '大同市', '灵丘县'),
(227, 0, 15, '山西省', '大同市', '浑源县'),
(228, 0, 15, '山西省', '大同市', '左云县'),
(229, 0, 15, '山西省', '大同市', '大同县'),
(230, 0, 16, '山西省', '阳泉市', '城区'),
(231, 0, 16, '山西省', '阳泉市', '矿区'),
(232, 0, 16, '山西省', '阳泉市', '郊区'),
(233, 0, 16, '山西省', '阳泉市', '平定县'),
(234, 0, 16, '山西省', '阳泉市', '盂县'),
(235, 0, 17, '山西省', '长治市', '城区'),
(236, 0, 17, '山西省', '长治市', '郊区'),
(237, 0, 17, '山西省', '长治市', '长治县'),
(238, 0, 17, '山西省', '长治市', '襄垣县'),
(239, 0, 17, '山西省', '长治市', '屯留县'),
(240, 0, 17, '山西省', '长治市', '平顺县'),
(241, 0, 17, '山西省', '长治市', '黎城县'),
(242, 0, 17, '山西省', '长治市', '壶关县'),
(243, 0, 17, '山西省', '长治市', '长子县'),
(244, 0, 17, '山西省', '长治市', '武乡县'),
(245, 0, 17, '山西省', '长治市', '沁县'),
(246, 0, 17, '山西省', '长治市', '沁源县'),
(247, 0, 17, '山西省', '长治市', '潞城市'),
(248, 0, 18, '山西省', '晋城市', '城区'),
(249, 0, 18, '山西省', '晋城市', '沁水县'),
(250, 0, 18, '山西省', '晋城市', '阳城县'),
(251, 0, 18, '山西省', '晋城市', '陵川县'),
(252, 0, 18, '山西省', '晋城市', '泽州县'),
(253, 0, 18, '山西省', '晋城市', '高平市'),
(254, 0, 19, '山西省', '朔州市', '朔城区'),
(255, 0, 19, '山西省', '朔州市', '平鲁区'),
(256, 0, 19, '山西省', '朔州市', '山阴县'),
(257, 0, 19, '山西省', '朔州市', '应县'),
(258, 0, 19, '山西省', '朔州市', '右玉县'),
(259, 0, 19, '山西省', '朔州市', '怀仁县'),
(260, 0, 20, '山西省', '晋中市', '榆次区'),
(261, 0, 20, '山西省', '晋中市', '榆社县'),
(262, 0, 20, '山西省', '晋中市', '左权县'),
(263, 0, 20, '山西省', '晋中市', '和顺县'),
(264, 0, 20, '山西省', '晋中市', '昔阳县'),
(265, 0, 20, '山西省', '晋中市', '寿阳县'),
(266, 0, 20, '山西省', '晋中市', '太谷县'),
(267, 0, 20, '山西省', '晋中市', '祁县'),
(268, 0, 20, '山西省', '晋中市', '平遥县'),
(269, 0, 20, '山西省', '晋中市', '灵石县'),
(270, 0, 20, '山西省', '晋中市', '介休市'),
(271, 0, 21, '山西省', '运城市', '盐湖区'),
(272, 0, 21, '山西省', '运城市', '临猗县'),
(273, 0, 21, '山西省', '运城市', '万荣县'),
(274, 0, 21, '山西省', '运城市', '闻喜县'),
(275, 0, 21, '山西省', '运城市', '稷山县'),
(276, 0, 21, '山西省', '运城市', '新绛县'),
(277, 0, 21, '山西省', '运城市', '绛县'),
(278, 0, 21, '山西省', '运城市', '垣曲县'),
(279, 0, 21, '山西省', '运城市', '夏县'),
(280, 0, 21, '山西省', '运城市', '平陆县'),
(281, 0, 21, '山西省', '运城市', '芮城县'),
(282, 0, 21, '山西省', '运城市', '永济市'),
(283, 0, 21, '山西省', '运城市', '河津市'),
(284, 0, 22, '山西省', '忻州市', '忻府区'),
(285, 0, 22, '山西省', '忻州市', '定襄县'),
(286, 0, 22, '山西省', '忻州市', '五台县'),
(287, 0, 22, '山西省', '忻州市', '代县'),
(288, 0, 22, '山西省', '忻州市', '繁峙县'),
(289, 0, 22, '山西省', '忻州市', '宁武县'),
(290, 0, 22, '山西省', '忻州市', '静乐县'),
(291, 0, 22, '山西省', '忻州市', '神池县'),
(292, 0, 22, '山西省', '忻州市', '五寨县'),
(293, 0, 22, '山西省', '忻州市', '岢岚县'),
(294, 0, 22, '山西省', '忻州市', '河曲县'),
(295, 0, 22, '山西省', '忻州市', '保德县'),
(296, 0, 22, '山西省', '忻州市', '偏关县'),
(297, 0, 22, '山西省', '忻州市', '原平市'),
(298, 0, 23, '山西省', '临汾市', '尧都区'),
(299, 0, 23, '山西省', '临汾市', '曲沃县'),
(300, 0, 23, '山西省', '临汾市', '翼城县'),
(301, 0, 23, '山西省', '临汾市', '襄汾县'),
(302, 0, 23, '山西省', '临汾市', '洪洞县'),
(303, 0, 23, '山西省', '临汾市', '古县'),
(304, 0, 23, '山西省', '临汾市', '安泽县'),
(305, 0, 23, '山西省', '临汾市', '浮山县'),
(306, 0, 23, '山西省', '临汾市', '吉县'),
(307, 0, 23, '山西省', '临汾市', '乡宁县'),
(308, 0, 23, '山西省', '临汾市', '大宁县'),
(309, 0, 23, '山西省', '临汾市', '隰县'),
(310, 0, 23, '山西省', '临汾市', '永和县'),
(311, 0, 23, '山西省', '临汾市', '蒲县'),
(312, 0, 23, '山西省', '临汾市', '汾西县'),
(313, 0, 23, '山西省', '临汾市', '侯马市'),
(314, 0, 23, '山西省', '临汾市', '霍州市'),
(315, 0, 24, '山西省', '吕梁市', '离石区'),
(316, 0, 24, '山西省', '吕梁市', '文水县'),
(317, 0, 24, '山西省', '吕梁市', '交城县'),
(318, 0, 24, '山西省', '吕梁市', '兴县'),
(319, 0, 24, '山西省', '吕梁市', '临县'),
(320, 0, 24, '山西省', '吕梁市', '柳林县'),
(321, 0, 24, '山西省', '吕梁市', '石楼县'),
(322, 0, 24, '山西省', '吕梁市', '岚县'),
(323, 0, 24, '山西省', '吕梁市', '方山县'),
(324, 0, 24, '山西省', '吕梁市', '中阳县'),
(325, 0, 24, '山西省', '吕梁市', '交口县'),
(326, 0, 24, '山西省', '吕梁市', '孝义市'),
(327, 0, 24, '山西省', '吕梁市', '汾阳市'),
(328, 0, 25, '内蒙古自治区', '呼和浩特市', '新城区'),
(329, 0, 25, '内蒙古自治区', '呼和浩特市', '回民区'),
(330, 0, 25, '内蒙古自治区', '呼和浩特市', '玉泉区'),
(331, 0, 25, '内蒙古自治区', '呼和浩特市', '赛罕区'),
(332, 0, 25, '内蒙古自治区', '呼和浩特市', '土默特左旗'),
(333, 0, 25, '内蒙古自治区', '呼和浩特市', '托克托县'),
(334, 0, 25, '内蒙古自治区', '呼和浩特市', '和林格尔县'),
(335, 0, 25, '内蒙古自治区', '呼和浩特市', '清水河县'),
(336, 0, 25, '内蒙古自治区', '呼和浩特市', '武川县'),
(337, 0, 26, '内蒙古自治区', '包头市', '东河区'),
(338, 0, 26, '内蒙古自治区', '包头市', '昆都仑区'),
(339, 0, 26, '内蒙古自治区', '包头市', '青山区'),
(340, 0, 26, '内蒙古自治区', '包头市', '石拐区'),
(341, 0, 26, '内蒙古自治区', '包头市', '白云矿区'),
(342, 0, 26, '内蒙古自治区', '包头市', '九原区'),
(343, 0, 26, '内蒙古自治区', '包头市', '土默特右旗'),
(344, 0, 26, '内蒙古自治区', '包头市', '固阳县'),
(345, 0, 26, '内蒙古自治区', '包头市', '达尔罕茂明安联合旗'),
(346, 0, 27, '内蒙古自治区', '乌海市', '海勃湾区'),
(347, 0, 27, '内蒙古自治区', '乌海市', '海南区'),
(348, 0, 27, '内蒙古自治区', '乌海市', '乌达区'),
(349, 0, 28, '内蒙古自治区', '赤峰市', '红山区'),
(350, 0, 28, '内蒙古自治区', '赤峰市', '元宝山区'),
(351, 0, 28, '内蒙古自治区', '赤峰市', '松山区'),
(352, 0, 28, '内蒙古自治区', '赤峰市', '阿鲁科尔沁旗'),
(353, 0, 28, '内蒙古自治区', '赤峰市', '巴林左旗'),
(354, 0, 28, '内蒙古自治区', '赤峰市', '巴林右旗'),
(355, 0, 28, '内蒙古自治区', '赤峰市', '林西县'),
(356, 0, 28, '内蒙古自治区', '赤峰市', '克什克腾旗'),
(357, 0, 28, '内蒙古自治区', '赤峰市', '翁牛特旗'),
(358, 0, 28, '内蒙古自治区', '赤峰市', '喀喇沁旗'),
(359, 0, 28, '内蒙古自治区', '赤峰市', '宁城县'),
(360, 0, 28, '内蒙古自治区', '赤峰市', '敖汉旗'),
(361, 0, 29, '内蒙古自治区', '通辽市', '科尔沁区'),
(362, 0, 29, '内蒙古自治区', '通辽市', '科尔沁左翼中旗'),
(363, 0, 29, '内蒙古自治区', '通辽市', '科尔沁左翼后旗'),
(364, 0, 29, '内蒙古自治区', '通辽市', '开鲁县'),
(365, 0, 29, '内蒙古自治区', '通辽市', '库伦旗'),
(366, 0, 29, '内蒙古自治区', '通辽市', '奈曼旗'),
(367, 0, 29, '内蒙古自治区', '通辽市', '扎鲁特旗'),
(368, 0, 29, '内蒙古自治区', '通辽市', '霍林郭勒市'),
(369, 0, 30, '内蒙古自治区', '鄂尔多斯市', '东胜区'),
(370, 0, 30, '内蒙古自治区', '鄂尔多斯市', '达拉特旗'),
(371, 0, 30, '内蒙古自治区', '鄂尔多斯市', '准格尔旗'),
(372, 0, 30, '内蒙古自治区', '鄂尔多斯市', '鄂托克前旗'),
(373, 0, 30, '内蒙古自治区', '鄂尔多斯市', '鄂托克旗'),
(374, 0, 30, '内蒙古自治区', '鄂尔多斯市', '杭锦旗'),
(375, 0, 30, '内蒙古自治区', '鄂尔多斯市', '乌审旗'),
(376, 0, 30, '内蒙古自治区', '鄂尔多斯市', '伊金霍洛旗'),
(377, 0, 31, '内蒙古自治区', '呼伦贝尔市', '海拉尔区'),
(378, 0, 31, '内蒙古自治区', '呼伦贝尔市', '阿荣旗'),
(379, 0, 31, '内蒙古自治区', '呼伦贝尔市', '莫力达瓦达斡尔族自治旗'),
(380, 0, 31, '内蒙古自治区', '呼伦贝尔市', '鄂伦春自治旗'),
(381, 0, 31, '内蒙古自治区', '呼伦贝尔市', '鄂温克族自治旗'),
(382, 0, 31, '内蒙古自治区', '呼伦贝尔市', '陈巴尔虎旗'),
(383, 0, 31, '内蒙古自治区', '呼伦贝尔市', '新巴尔虎左旗'),
(384, 0, 31, '内蒙古自治区', '呼伦贝尔市', '新巴尔虎右旗'),
(385, 0, 31, '内蒙古自治区', '呼伦贝尔市', '满洲里市'),
(386, 0, 31, '内蒙古自治区', '呼伦贝尔市', '牙克石市'),
(387, 0, 31, '内蒙古自治区', '呼伦贝尔市', '扎兰屯市'),
(388, 0, 31, '内蒙古自治区', '呼伦贝尔市', '额尔古纳市'),
(389, 0, 31, '内蒙古自治区', '呼伦贝尔市', '根河市'),
(390, 0, 32, '内蒙古自治区', '巴彦淖尔市', '临河区'),
(391, 0, 32, '内蒙古自治区', '巴彦淖尔市', '五原县'),
(392, 0, 32, '内蒙古自治区', '巴彦淖尔市', '磴口县'),
(393, 0, 32, '内蒙古自治区', '巴彦淖尔市', '乌拉特前旗'),
(394, 0, 32, '内蒙古自治区', '巴彦淖尔市', '乌拉特中旗'),
(395, 0, 32, '内蒙古自治区', '巴彦淖尔市', '乌拉特后旗'),
(396, 0, 32, '内蒙古自治区', '巴彦淖尔市', '杭锦后旗'),
(397, 0, 33, '内蒙古自治区', '乌兰察布市', '集宁区'),
(398, 0, 33, '内蒙古自治区', '乌兰察布市', '卓资县'),
(399, 0, 33, '内蒙古自治区', '乌兰察布市', '化德县'),
(400, 0, 33, '内蒙古自治区', '乌兰察布市', '商都县'),
(401, 0, 33, '内蒙古自治区', '乌兰察布市', '兴和县'),
(402, 0, 33, '内蒙古自治区', '乌兰察布市', '凉城县'),
(403, 0, 33, '内蒙古自治区', '乌兰察布市', '察哈尔右翼前旗'),
(404, 0, 33, '内蒙古自治区', '乌兰察布市', '察哈尔右翼中旗'),
(405, 0, 33, '内蒙古自治区', '乌兰察布市', '察哈尔右翼后旗'),
(406, 0, 33, '内蒙古自治区', '乌兰察布市', '四子王旗'),
(407, 0, 33, '内蒙古自治区', '乌兰察布市', '丰镇市'),
(408, 0, 34, '内蒙古自治区', '兴安盟', '乌兰浩特市'),
(409, 0, 34, '内蒙古自治区', '兴安盟', '阿尔山市'),
(410, 0, 34, '内蒙古自治区', '兴安盟', '科尔沁右翼前旗'),
(411, 0, 34, '内蒙古自治区', '兴安盟', '科尔沁右翼中旗'),
(412, 0, 34, '内蒙古自治区', '兴安盟', '扎赉特旗'),
(413, 0, 34, '内蒙古自治区', '兴安盟', '突泉县'),
(414, 0, 35, '内蒙古自治区', '锡林郭勒盟', '二连浩特市'),
(415, 0, 35, '内蒙古自治区', '锡林郭勒盟', '锡林浩特市'),
(416, 0, 35, '内蒙古自治区', '锡林郭勒盟', '阿巴嘎旗'),
(417, 0, 35, '内蒙古自治区', '锡林郭勒盟', '苏尼特左旗'),
(418, 0, 35, '内蒙古自治区', '锡林郭勒盟', '苏尼特右旗'),
(419, 0, 35, '内蒙古自治区', '锡林郭勒盟', '东乌珠穆沁旗'),
(420, 0, 35, '内蒙古自治区', '锡林郭勒盟', '西乌珠穆沁旗'),
(421, 0, 35, '内蒙古自治区', '锡林郭勒盟', '太仆寺旗'),
(422, 0, 35, '内蒙古自治区', '锡林郭勒盟', '镶黄旗'),
(423, 0, 35, '内蒙古自治区', '锡林郭勒盟', '正镶白旗'),
(424, 0, 35, '内蒙古自治区', '锡林郭勒盟', '正蓝旗'),
(425, 0, 35, '内蒙古自治区', '锡林郭勒盟', '多伦县'),
(426, 0, 36, '内蒙古自治区', '阿拉善盟', '阿拉善左旗'),
(427, 0, 36, '内蒙古自治区', '阿拉善盟', '阿拉善右旗'),
(428, 0, 36, '内蒙古自治区', '阿拉善盟', '额济纳旗'),
(429, 0, 37, '辽宁省', '沈阳市', '和平区'),
(430, 0, 37, '辽宁省', '沈阳市', '沈河区'),
(431, 0, 37, '辽宁省', '沈阳市', '大东区'),
(432, 0, 37, '辽宁省', '沈阳市', '皇姑区'),
(433, 0, 37, '辽宁省', '沈阳市', '铁西区'),
(434, 0, 37, '辽宁省', '沈阳市', '苏家屯区'),
(435, 0, 37, '辽宁省', '沈阳市', '东陵区'),
(436, 0, 37, '辽宁省', '沈阳市', '新城子区'),
(437, 0, 37, '辽宁省', '沈阳市', '于洪区'),
(438, 0, 37, '辽宁省', '沈阳市', '辽中县'),
(439, 0, 37, '辽宁省', '沈阳市', '康平县'),
(440, 0, 37, '辽宁省', '沈阳市', '法库县'),
(441, 0, 37, '辽宁省', '沈阳市', '新民市'),
(442, 0, 38, '辽宁省', '大连市', '中山区'),
(443, 0, 38, '辽宁省', '大连市', '西岗区'),
(444, 0, 38, '辽宁省', '大连市', '沙河口区'),
(445, 0, 38, '辽宁省', '大连市', '甘井子区'),
(446, 0, 38, '辽宁省', '大连市', '旅顺口区'),
(447, 0, 38, '辽宁省', '大连市', '金州区'),
(448, 0, 38, '辽宁省', '大连市', '长海县'),
(449, 0, 38, '辽宁省', '大连市', '瓦房店市'),
(450, 0, 38, '辽宁省', '大连市', '普兰店市'),
(451, 0, 38, '辽宁省', '大连市', '庄河市'),
(452, 0, 39, '辽宁省', '鞍山市', '铁东区'),
(453, 0, 39, '辽宁省', '鞍山市', '铁西区'),
(454, 0, 39, '辽宁省', '鞍山市', '立山区'),
(455, 0, 39, '辽宁省', '鞍山市', '千山区'),
(456, 0, 39, '辽宁省', '鞍山市', '台安县'),
(457, 0, 39, '辽宁省', '鞍山市', '岫岩满族自治县'),
(458, 0, 39, '辽宁省', '鞍山市', '海城市'),
(459, 0, 40, '辽宁省', '抚顺市', '新抚区'),
(460, 0, 40, '辽宁省', '抚顺市', '东洲区'),
(461, 0, 40, '辽宁省', '抚顺市', '望花区'),
(462, 0, 40, '辽宁省', '抚顺市', '顺城区'),
(463, 0, 40, '辽宁省', '抚顺市', '抚顺县'),
(464, 0, 40, '辽宁省', '抚顺市', '新宾满族自治县'),
(465, 0, 40, '辽宁省', '抚顺市', '清原满族自治县'),
(466, 0, 41, '辽宁省', '本溪市', '平山区'),
(467, 0, 41, '辽宁省', '本溪市', '溪湖区'),
(468, 0, 41, '辽宁省', '本溪市', '明山区'),
(469, 0, 41, '辽宁省', '本溪市', '南芬区'),
(470, 0, 41, '辽宁省', '本溪市', '本溪满族自治县'),
(471, 0, 41, '辽宁省', '本溪市', '桓仁满族自治县'),
(472, 0, 42, '辽宁省', '丹东市', '元宝区'),
(473, 0, 42, '辽宁省', '丹东市', '振兴区'),
(474, 0, 42, '辽宁省', '丹东市', '振安区'),
(475, 0, 42, '辽宁省', '丹东市', '宽甸满族自治县'),
(476, 0, 42, '辽宁省', '丹东市', '东港市'),
(477, 0, 42, '辽宁省', '丹东市', '凤城市'),
(478, 0, 43, '辽宁省', '锦州市', '古塔区'),
(479, 0, 43, '辽宁省', '锦州市', '凌河区'),
(480, 0, 43, '辽宁省', '锦州市', '太和区'),
(481, 0, 43, '辽宁省', '锦州市', '黑山县'),
(482, 0, 43, '辽宁省', '锦州市', '义县'),
(483, 0, 43, '辽宁省', '锦州市', '凌海市'),
(484, 0, 43, '辽宁省', '锦州市', '北宁市'),
(485, 0, 44, '辽宁省', '营口市', '站前区'),
(486, 0, 44, '辽宁省', '营口市', '西市区'),
(487, 0, 44, '辽宁省', '营口市', '鲅鱼圈区'),
(488, 0, 44, '辽宁省', '营口市', '老边区'),
(489, 0, 44, '辽宁省', '营口市', '盖州市'),
(490, 0, 44, '辽宁省', '营口市', '大石桥市'),
(491, 0, 45, '辽宁省', '阜新市', '海州区'),
(492, 0, 45, '辽宁省', '阜新市', '新邱区'),
(493, 0, 45, '辽宁省', '阜新市', '太平区'),
(494, 0, 45, '辽宁省', '阜新市', '清河门区'),
(495, 0, 45, '辽宁省', '阜新市', '细河区'),
(496, 0, 45, '辽宁省', '阜新市', '阜新蒙古族自治县'),
(497, 0, 45, '辽宁省', '阜新市', '彰武县'),
(498, 0, 46, '辽宁省', '辽阳市', '白塔区'),
(499, 0, 46, '辽宁省', '辽阳市', '文圣区'),
(500, 0, 46, '辽宁省', '辽阳市', '宏伟区'),
(501, 0, 46, '辽宁省', '辽阳市', '弓长岭区'),
(502, 0, 46, '辽宁省', '辽阳市', '太子河区'),
(503, 0, 46, '辽宁省', '辽阳市', '辽阳县'),
(504, 0, 46, '辽宁省', '辽阳市', '灯塔市'),
(505, 0, 47, '辽宁省', '盘锦市', '双台子区'),
(506, 0, 47, '辽宁省', '盘锦市', '兴隆台区'),
(507, 0, 47, '辽宁省', '盘锦市', '大洼县'),
(508, 0, 47, '辽宁省', '盘锦市', '盘山县'),
(509, 0, 48, '辽宁省', '铁岭市', '银州区'),
(510, 0, 48, '辽宁省', '铁岭市', '清河区'),
(511, 0, 48, '辽宁省', '铁岭市', '铁岭县'),
(512, 0, 48, '辽宁省', '铁岭市', '西丰县'),
(513, 0, 48, '辽宁省', '铁岭市', '昌图县'),
(514, 0, 48, '辽宁省', '铁岭市', '调兵山市'),
(515, 0, 48, '辽宁省', '铁岭市', '开原市'),
(516, 0, 49, '辽宁省', '朝阳市', '双塔区'),
(517, 0, 49, '辽宁省', '朝阳市', '龙城区'),
(518, 0, 49, '辽宁省', '朝阳市', '朝阳县'),
(519, 0, 49, '辽宁省', '朝阳市', '建平县'),
(520, 0, 49, '辽宁省', '朝阳市', '喀喇沁左翼蒙古族自治县'),
(521, 0, 49, '辽宁省', '朝阳市', '北票市'),
(522, 0, 49, '辽宁省', '朝阳市', '凌源市'),
(523, 0, 50, '辽宁省', '葫芦岛市', '连山区'),
(524, 0, 50, '辽宁省', '葫芦岛市', '龙港区'),
(525, 0, 50, '辽宁省', '葫芦岛市', '南票区'),
(526, 0, 50, '辽宁省', '葫芦岛市', '绥中县'),
(527, 0, 50, '辽宁省', '葫芦岛市', '建昌县'),
(528, 0, 50, '辽宁省', '葫芦岛市', '兴城市'),
(529, 0, 51, '吉林省', '长春市', '南关区'),
(530, 0, 51, '吉林省', '长春市', '宽城区'),
(531, 0, 51, '吉林省', '长春市', '朝阳区'),
(532, 0, 51, '吉林省', '长春市', '二道区'),
(533, 0, 51, '吉林省', '长春市', '绿园区'),
(534, 0, 51, '吉林省', '长春市', '双阳区'),
(535, 0, 51, '吉林省', '长春市', '农安县'),
(536, 0, 51, '吉林省', '长春市', '九台市'),
(537, 0, 51, '吉林省', '长春市', '榆树市'),
(538, 0, 51, '吉林省', '长春市', '德惠市'),
(539, 0, 52, '吉林省', '吉林市', '昌邑区'),
(540, 0, 52, '吉林省', '吉林市', '龙潭区'),
(541, 0, 52, '吉林省', '吉林市', '船营区'),
(542, 0, 52, '吉林省', '吉林市', '丰满区'),
(543, 0, 52, '吉林省', '吉林市', '永吉县'),
(544, 0, 52, '吉林省', '吉林市', '蛟河市'),
(545, 0, 52, '吉林省', '吉林市', '桦甸市'),
(546, 0, 52, '吉林省', '吉林市', '舒兰市'),
(547, 0, 52, '吉林省', '吉林市', '磐石市'),
(548, 0, 53, '吉林省', '四平市', '铁西区'),
(549, 0, 53, '吉林省', '四平市', '铁东区'),
(550, 0, 53, '吉林省', '四平市', '梨树县'),
(551, 0, 53, '吉林省', '四平市', '伊通满族自治县'),
(552, 0, 53, '吉林省', '四平市', '公主岭市'),
(553, 0, 53, '吉林省', '四平市', '双辽市'),
(554, 0, 54, '吉林省', '辽源市', '龙山区'),
(555, 0, 54, '吉林省', '辽源市', '西安区'),
(556, 0, 54, '吉林省', '辽源市', '东丰县'),
(557, 0, 54, '吉林省', '辽源市', '东辽县'),
(558, 0, 55, '吉林省', '通化市', '东昌区'),
(559, 0, 55, '吉林省', '通化市', '二道江区'),
(560, 0, 55, '吉林省', '通化市', '通化县'),
(561, 0, 55, '吉林省', '通化市', '辉南县'),
(562, 0, 55, '吉林省', '通化市', '柳河县'),
(563, 0, 55, '吉林省', '通化市', '梅河口市'),
(564, 0, 55, '吉林省', '通化市', '集安市'),
(565, 0, 56, '吉林省', '白山市', '八道江区'),
(566, 0, 56, '吉林省', '白山市', '抚松县'),
(567, 0, 56, '吉林省', '白山市', '靖宇县'),
(568, 0, 56, '吉林省', '白山市', '长白朝鲜族自治县'),
(569, 0, 56, '吉林省', '白山市', '江源县'),
(570, 0, 56, '吉林省', '白山市', '临江市'),
(571, 0, 57, '吉林省', '松原市', '宁江区'),
(572, 0, 57, '吉林省', '松原市', '前郭尔罗斯蒙古族自治县'),
(573, 0, 57, '吉林省', '松原市', '长岭县'),
(574, 0, 57, '吉林省', '松原市', '乾安县'),
(575, 0, 57, '吉林省', '松原市', '扶余县'),
(576, 0, 58, '吉林省', '白城市', '洮北区'),
(577, 0, 58, '吉林省', '白城市', '镇赉县'),
(578, 0, 58, '吉林省', '白城市', '通榆县'),
(579, 0, 58, '吉林省', '白城市', '洮南市'),
(580, 0, 58, '吉林省', '白城市', '大安市'),
(581, 0, 59, '吉林省', '延边朝鲜族自治州', '延吉市'),
(582, 0, 59, '吉林省', '延边朝鲜族自治州', '图们市'),
(583, 0, 59, '吉林省', '延边朝鲜族自治州', '敦化市'),
(584, 0, 59, '吉林省', '延边朝鲜族自治州', '珲春市'),
(585, 0, 59, '吉林省', '延边朝鲜族自治州', '龙井市'),
(586, 0, 59, '吉林省', '延边朝鲜族自治州', '和龙市'),
(587, 0, 59, '吉林省', '延边朝鲜族自治州', '汪清县'),
(588, 0, 59, '吉林省', '延边朝鲜族自治州', '安图县'),
(589, 0, 60, '黑龙江省', '哈尔滨市', '道里区'),
(590, 0, 60, '黑龙江省', '哈尔滨市', '南岗区'),
(591, 0, 60, '黑龙江省', '哈尔滨市', '道外区'),
(592, 0, 60, '黑龙江省', '哈尔滨市', '香坊区'),
(593, 0, 60, '黑龙江省', '哈尔滨市', '动力区'),
(594, 0, 60, '黑龙江省', '哈尔滨市', '平房区'),
(595, 0, 60, '黑龙江省', '哈尔滨市', '松北区'),
(596, 0, 60, '黑龙江省', '哈尔滨市', '呼兰区'),
(597, 0, 60, '黑龙江省', '哈尔滨市', '依兰县'),
(598, 0, 60, '黑龙江省', '哈尔滨市', '方正县'),
(599, 0, 60, '黑龙江省', '哈尔滨市', '宾县'),
(600, 0, 60, '黑龙江省', '哈尔滨市', '巴彦县'),
(601, 0, 60, '黑龙江省', '哈尔滨市', '木兰县'),
(602, 0, 60, '黑龙江省', '哈尔滨市', '通河县'),
(603, 0, 60, '黑龙江省', '哈尔滨市', '延寿县'),
(604, 0, 60, '黑龙江省', '哈尔滨市', '阿城市'),
(605, 0, 60, '黑龙江省', '哈尔滨市', '双城市'),
(606, 0, 60, '黑龙江省', '哈尔滨市', '尚志市'),
(607, 0, 60, '黑龙江省', '哈尔滨市', '五常市'),
(608, 0, 61, '黑龙江省', '齐齐哈尔市', '龙沙区'),
(609, 0, 61, '黑龙江省', '齐齐哈尔市', '建华区'),
(610, 0, 61, '黑龙江省', '齐齐哈尔市', '铁锋区'),
(611, 0, 61, '黑龙江省', '齐齐哈尔市', '昂昂溪区'),
(612, 0, 61, '黑龙江省', '齐齐哈尔市', '富拉尔基区'),
(613, 0, 61, '黑龙江省', '齐齐哈尔市', '碾子山区'),
(614, 0, 61, '黑龙江省', '齐齐哈尔市', '梅里斯达斡尔族区'),
(615, 0, 61, '黑龙江省', '齐齐哈尔市', '龙江县'),
(616, 0, 61, '黑龙江省', '齐齐哈尔市', '依安县'),
(617, 0, 61, '黑龙江省', '齐齐哈尔市', '泰来县'),
(618, 0, 61, '黑龙江省', '齐齐哈尔市', '甘南县'),
(619, 0, 61, '黑龙江省', '齐齐哈尔市', '富裕县'),
(620, 0, 61, '黑龙江省', '齐齐哈尔市', '克山县'),
(621, 0, 61, '黑龙江省', '齐齐哈尔市', '克东县'),
(622, 0, 61, '黑龙江省', '齐齐哈尔市', '拜泉县'),
(623, 0, 61, '黑龙江省', '齐齐哈尔市', '讷河市'),
(624, 0, 62, '黑龙江省', '鸡西市', '鸡冠区'),
(625, 0, 62, '黑龙江省', '鸡西市', '恒山区'),
(626, 0, 62, '黑龙江省', '鸡西市', '滴道区'),
(627, 0, 62, '黑龙江省', '鸡西市', '梨树区'),
(628, 0, 62, '黑龙江省', '鸡西市', '城子河区'),
(629, 0, 62, '黑龙江省', '鸡西市', '麻山区'),
(630, 0, 62, '黑龙江省', '鸡西市', '鸡东县'),
(631, 0, 62, '黑龙江省', '鸡西市', '虎林市'),
(632, 0, 62, '黑龙江省', '鸡西市', '密山市'),
(633, 0, 63, '黑龙江省', '鹤岗市', '向阳区'),
(634, 0, 63, '黑龙江省', '鹤岗市', '工农区'),
(635, 0, 63, '黑龙江省', '鹤岗市', '南山区'),
(636, 0, 63, '黑龙江省', '鹤岗市', '兴安区'),
(637, 0, 63, '黑龙江省', '鹤岗市', '东山区'),
(638, 0, 63, '黑龙江省', '鹤岗市', '兴山区'),
(639, 0, 63, '黑龙江省', '鹤岗市', '萝北县'),
(640, 0, 63, '黑龙江省', '鹤岗市', '绥滨县'),
(641, 0, 64, '黑龙江省', '双鸭山市', '尖山区'),
(642, 0, 64, '黑龙江省', '双鸭山市', '岭东区'),
(643, 0, 64, '黑龙江省', '双鸭山市', '四方台区'),
(644, 0, 64, '黑龙江省', '双鸭山市', '宝山区'),
(645, 0, 64, '黑龙江省', '双鸭山市', '集贤县'),
(646, 0, 64, '黑龙江省', '双鸭山市', '友谊县'),
(647, 0, 64, '黑龙江省', '双鸭山市', '宝清县'),
(648, 0, 64, '黑龙江省', '双鸭山市', '饶河县'),
(649, 0, 65, '黑龙江省', '大庆市', '萨尔图区'),
(650, 0, 65, '黑龙江省', '大庆市', '龙凤区'),
(651, 0, 65, '黑龙江省', '大庆市', '让胡路区'),
(652, 0, 65, '黑龙江省', '大庆市', '红岗区'),
(653, 0, 65, '黑龙江省', '大庆市', '大同区'),
(654, 0, 65, '黑龙江省', '大庆市', '肇州县'),
(655, 0, 65, '黑龙江省', '大庆市', '肇源县'),
(656, 0, 65, '黑龙江省', '大庆市', '林甸县'),
(657, 0, 65, '黑龙江省', '大庆市', '杜尔伯特蒙古族自治县'),
(658, 0, 66, '黑龙江省', '伊春市', '伊春区'),
(659, 0, 66, '黑龙江省', '伊春市', '南岔区'),
(660, 0, 66, '黑龙江省', '伊春市', '友好区'),
(661, 0, 66, '黑龙江省', '伊春市', '西林区'),
(662, 0, 66, '黑龙江省', '伊春市', '翠峦区'),
(663, 0, 66, '黑龙江省', '伊春市', '新青区'),
(664, 0, 66, '黑龙江省', '伊春市', '美溪区'),
(665, 0, 66, '黑龙江省', '伊春市', '金山屯区'),
(666, 0, 66, '黑龙江省', '伊春市', '五营区'),
(667, 0, 66, '黑龙江省', '伊春市', '乌马河区'),
(668, 0, 66, '黑龙江省', '伊春市', '汤旺河区'),
(669, 0, 66, '黑龙江省', '伊春市', '带岭区'),
(670, 0, 66, '黑龙江省', '伊春市', '乌伊岭区'),
(671, 0, 66, '黑龙江省', '伊春市', '红星区'),
(672, 0, 66, '黑龙江省', '伊春市', '上甘岭区'),
(673, 0, 66, '黑龙江省', '伊春市', '嘉荫县'),
(674, 0, 66, '黑龙江省', '伊春市', '铁力市'),
(675, 0, 67, '黑龙江省', '佳木斯市', '永红区'),
(676, 0, 67, '黑龙江省', '佳木斯市', '向阳区'),
(677, 0, 67, '黑龙江省', '佳木斯市', '前进区'),
(678, 0, 67, '黑龙江省', '佳木斯市', '东风区'),
(679, 0, 67, '黑龙江省', '佳木斯市', '郊区'),
(680, 0, 67, '黑龙江省', '佳木斯市', '桦南县'),
(681, 0, 67, '黑龙江省', '佳木斯市', '桦川县'),
(682, 0, 67, '黑龙江省', '佳木斯市', '汤原县'),
(683, 0, 67, '黑龙江省', '佳木斯市', '抚远县'),
(684, 0, 67, '黑龙江省', '佳木斯市', '同江市'),
(685, 0, 67, '黑龙江省', '佳木斯市', '富锦市'),
(686, 0, 68, '黑龙江省', '七台河市', '新兴区'),
(687, 0, 68, '黑龙江省', '七台河市', '桃山区'),
(688, 0, 68, '黑龙江省', '七台河市', '茄子河区'),
(689, 0, 68, '黑龙江省', '七台河市', '勃利县'),
(690, 0, 69, '黑龙江省', '牡丹江市', '东安区'),
(691, 0, 69, '黑龙江省', '牡丹江市', '阳明区'),
(692, 0, 69, '黑龙江省', '牡丹江市', '爱民区'),
(693, 0, 69, '黑龙江省', '牡丹江市', '西安区'),
(694, 0, 69, '黑龙江省', '牡丹江市', '东宁县'),
(695, 0, 69, '黑龙江省', '牡丹江市', '林口县'),
(696, 0, 69, '黑龙江省', '牡丹江市', '绥芬河市'),
(697, 0, 69, '黑龙江省', '牡丹江市', '海林市'),
(698, 0, 69, '黑龙江省', '牡丹江市', '宁安市'),
(699, 0, 69, '黑龙江省', '牡丹江市', '穆棱市'),
(700, 0, 70, '黑龙江省', '黑河市', '爱辉区'),
(701, 0, 70, '黑龙江省', '黑河市', '嫩江县'),
(702, 0, 70, '黑龙江省', '黑河市', '逊克县'),
(703, 0, 70, '黑龙江省', '黑河市', '孙吴县'),
(704, 0, 70, '黑龙江省', '黑河市', '北安市'),
(705, 0, 70, '黑龙江省', '黑河市', '五大连池市'),
(706, 0, 71, '黑龙江省', '绥化市', '北林区'),
(707, 0, 71, '黑龙江省', '绥化市', '望奎县'),
(708, 0, 71, '黑龙江省', '绥化市', '兰西县'),
(709, 0, 71, '黑龙江省', '绥化市', '青冈县'),
(710, 0, 71, '黑龙江省', '绥化市', '庆安县'),
(711, 0, 71, '黑龙江省', '绥化市', '明水县'),
(712, 0, 71, '黑龙江省', '绥化市', '绥棱县'),
(713, 0, 71, '黑龙江省', '绥化市', '安达市'),
(714, 0, 71, '黑龙江省', '绥化市', '肇东市'),
(715, 0, 71, '黑龙江省', '绥化市', '海伦市'),
(716, 0, 72, '黑龙江省', '大兴安岭地区', '呼玛县'),
(717, 0, 72, '黑龙江省', '大兴安岭地区', '塔河县'),
(718, 0, 72, '黑龙江省', '大兴安岭地区', '漠河县'),
(719, 0, 73, '上海市', '上海市', '黄浦区'),
(720, 0, 73, '上海市', '上海市', '卢湾区'),
(721, 0, 73, '上海市', '上海市', '徐汇区'),
(722, 0, 73, '上海市', '上海市', '长宁区'),
(723, 0, 73, '上海市', '上海市', '静安区'),
(724, 0, 73, '上海市', '上海市', '普陀区'),
(725, 0, 73, '上海市', '上海市', '闸北区'),
(726, 0, 73, '上海市', '上海市', '虹口区'),
(727, 0, 73, '上海市', '上海市', '杨浦区'),
(728, 0, 73, '上海市', '上海市', '闵行区'),
(729, 0, 73, '上海市', '上海市', '宝山区'),
(730, 0, 73, '上海市', '上海市', '嘉定区'),
(731, 0, 73, '上海市', '上海市', '浦东新区'),
(732, 0, 73, '上海市', '上海市', '金山区'),
(733, 0, 73, '上海市', '上海市', '松江区'),
(734, 0, 73, '上海市', '上海市', '青浦区'),
(735, 0, 73, '上海市', '上海市', '南汇区'),
(736, 0, 73, '上海市', '上海市', '奉贤区'),
(737, 0, 73, '上海市', '上海市', '崇明县'),
(738, 0, 74, '江苏省', '南京市', '玄武区'),
(739, 0, 74, '江苏省', '南京市', '白下区'),
(740, 0, 74, '江苏省', '南京市', '秦淮区'),
(741, 0, 74, '江苏省', '南京市', '建邺区'),
(742, 0, 74, '江苏省', '南京市', '鼓楼区'),
(743, 0, 74, '江苏省', '南京市', '下关区'),
(744, 0, 74, '江苏省', '南京市', '浦口区'),
(745, 0, 74, '江苏省', '南京市', '栖霞区'),
(746, 0, 74, '江苏省', '南京市', '雨花台区'),
(747, 0, 74, '江苏省', '南京市', '江宁区'),
(748, 0, 74, '江苏省', '南京市', '六合区'),
(749, 0, 74, '江苏省', '南京市', '溧水县'),
(750, 0, 74, '江苏省', '南京市', '高淳县'),
(751, 0, 75, '江苏省', '无锡市', '崇安区'),
(752, 0, 75, '江苏省', '无锡市', '南长区'),
(753, 0, 75, '江苏省', '无锡市', '北塘区'),
(754, 0, 75, '江苏省', '无锡市', '锡山区'),
(755, 0, 75, '江苏省', '无锡市', '惠山区'),
(756, 0, 75, '江苏省', '无锡市', '滨湖区'),
(757, 0, 75, '江苏省', '无锡市', '江阴市'),
(758, 0, 75, '江苏省', '无锡市', '宜兴市'),
(759, 0, 76, '江苏省', '徐州市', '鼓楼区'),
(760, 0, 76, '江苏省', '徐州市', '云龙区'),
(761, 0, 76, '江苏省', '徐州市', '九里区'),
(762, 0, 76, '江苏省', '徐州市', '贾汪区'),
(763, 0, 76, '江苏省', '徐州市', '泉山区'),
(764, 0, 76, '江苏省', '徐州市', '丰县'),
(765, 0, 76, '江苏省', '徐州市', '沛县'),
(766, 0, 76, '江苏省', '徐州市', '铜山县'),
(767, 0, 76, '江苏省', '徐州市', '睢宁县'),
(768, 0, 76, '江苏省', '徐州市', '新沂市'),
(769, 0, 76, '江苏省', '徐州市', '邳州市'),
(770, 0, 77, '江苏省', '常州市', '天宁区'),
(771, 0, 77, '江苏省', '常州市', '钟楼区'),
(772, 0, 77, '江苏省', '常州市', '戚墅堰区'),
(773, 0, 77, '江苏省', '常州市', '新北区'),
(774, 0, 77, '江苏省', '常州市', '武进区'),
(775, 0, 77, '江苏省', '常州市', '溧阳市'),
(776, 0, 77, '江苏省', '常州市', '金坛市'),
(777, 0, 78, '江苏省', '苏州市', '沧浪区'),
(778, 0, 78, '江苏省', '苏州市', '平江区'),
(779, 0, 78, '江苏省', '苏州市', '金阊区'),
(780, 0, 78, '江苏省', '苏州市', '虎丘区'),
(781, 0, 78, '江苏省', '苏州市', '吴中区'),
(782, 0, 78, '江苏省', '苏州市', '相城区'),
(783, 0, 78, '江苏省', '苏州市', '常熟市'),
(784, 0, 78, '江苏省', '苏州市', '张家港市'),
(785, 0, 78, '江苏省', '苏州市', '昆山市'),
(786, 0, 78, '江苏省', '苏州市', '吴江市'),
(787, 0, 78, '江苏省', '苏州市', '太仓市'),
(788, 0, 79, '江苏省', '南通市', '崇川区'),
(789, 0, 79, '江苏省', '南通市', '港闸区'),
(790, 0, 79, '江苏省', '南通市', '海安县'),
(791, 0, 79, '江苏省', '南通市', '如东县'),
(792, 0, 79, '江苏省', '南通市', '启东市'),
(793, 0, 79, '江苏省', '南通市', '如皋市'),
(794, 0, 79, '江苏省', '南通市', '通州市'),
(795, 0, 79, '江苏省', '南通市', '海门市'),
(796, 0, 80, '江苏省', '连云港市', '连云区'),
(797, 0, 80, '江苏省', '连云港市', '新浦区'),
(798, 0, 80, '江苏省', '连云港市', '海州区'),
(799, 0, 80, '江苏省', '连云港市', '赣榆县'),
(800, 0, 80, '江苏省', '连云港市', '东海县'),
(801, 0, 80, '江苏省', '连云港市', '灌云县'),
(802, 0, 80, '江苏省', '连云港市', '灌南县'),
(803, 0, 81, '江苏省', '淮安市', '清河区'),
(804, 0, 81, '江苏省', '淮安市', '楚州区'),
(805, 0, 81, '江苏省', '淮安市', '淮阴区'),
(806, 0, 81, '江苏省', '淮安市', '清浦区'),
(807, 0, 81, '江苏省', '淮安市', '涟水县'),
(808, 0, 81, '江苏省', '淮安市', '洪泽县'),
(809, 0, 81, '江苏省', '淮安市', '盱眙县'),
(810, 0, 81, '江苏省', '淮安市', '金湖县'),
(811, 0, 82, '江苏省', '盐城市', '亭湖区'),
(812, 0, 82, '江苏省', '盐城市', '盐都区'),
(813, 0, 82, '江苏省', '盐城市', '响水县'),
(814, 0, 82, '江苏省', '盐城市', '滨海县'),
(815, 0, 82, '江苏省', '盐城市', '阜宁县'),
(816, 0, 82, '江苏省', '盐城市', '射阳县'),
(817, 0, 82, '江苏省', '盐城市', '建湖县'),
(818, 0, 82, '江苏省', '盐城市', '东台市'),
(819, 0, 82, '江苏省', '盐城市', '大丰市'),
(820, 0, 83, '江苏省', '扬州市', '广陵区'),
(821, 0, 83, '江苏省', '扬州市', '邗江区'),
(822, 0, 83, '江苏省', '扬州市', '维扬区'),
(823, 0, 83, '江苏省', '扬州市', '宝应县'),
(824, 0, 83, '江苏省', '扬州市', '仪征市'),
(825, 0, 83, '江苏省', '扬州市', '高邮市'),
(826, 0, 83, '江苏省', '扬州市', '江都市'),
(827, 0, 84, '江苏省', '镇江市', '京口区'),
(828, 0, 84, '江苏省', '镇江市', '润州区'),
(829, 0, 84, '江苏省', '镇江市', '丹徒区'),
(830, 0, 84, '江苏省', '镇江市', '丹阳市'),
(831, 0, 84, '江苏省', '镇江市', '扬中市'),
(832, 0, 84, '江苏省', '镇江市', '句容市'),
(833, 0, 85, '江苏省', '泰州市', '海陵区'),
(834, 0, 85, '江苏省', '泰州市', '高港区'),
(835, 0, 85, '江苏省', '泰州市', '兴化市'),
(836, 0, 85, '江苏省', '泰州市', '靖江市'),
(837, 0, 85, '江苏省', '泰州市', '泰兴市'),
(838, 0, 85, '江苏省', '泰州市', '姜堰市'),
(839, 0, 86, '江苏省', '宿迁市', '宿城区'),
(840, 0, 86, '江苏省', '宿迁市', '宿豫区'),
(841, 0, 86, '江苏省', '宿迁市', '沭阳县'),
(842, 0, 86, '江苏省', '宿迁市', '泗阳县'),
(843, 0, 86, '江苏省', '宿迁市', '泗洪县'),
(844, 0, 87, '浙江省', '杭州市', '上城区'),
(845, 0, 87, '浙江省', '杭州市', '下城区'),
(846, 0, 87, '浙江省', '杭州市', '江干区'),
(847, 0, 87, '浙江省', '杭州市', '拱墅区'),
(848, 0, 87, '浙江省', '杭州市', '西湖区'),
(849, 0, 87, '浙江省', '杭州市', '滨江区'),
(850, 0, 87, '浙江省', '杭州市', '萧山区'),
(851, 0, 87, '浙江省', '杭州市', '余杭区'),
(852, 0, 87, '浙江省', '杭州市', '桐庐县'),
(853, 0, 87, '浙江省', '杭州市', '淳安县'),
(854, 0, 87, '浙江省', '杭州市', '建德市'),
(855, 0, 87, '浙江省', '杭州市', '富阳市'),
(856, 0, 87, '浙江省', '杭州市', '临安市'),
(857, 0, 88, '浙江省', '宁波市', '海曙区'),
(858, 0, 88, '浙江省', '宁波市', '江东区'),
(859, 0, 88, '浙江省', '宁波市', '江北区'),
(860, 0, 88, '浙江省', '宁波市', '北仑区'),
(861, 0, 88, '浙江省', '宁波市', '镇海区'),
(862, 0, 88, '浙江省', '宁波市', '鄞州区'),
(863, 0, 88, '浙江省', '宁波市', '象山县'),
(864, 0, 88, '浙江省', '宁波市', '宁海县'),
(865, 0, 88, '浙江省', '宁波市', '余姚市'),
(866, 0, 88, '浙江省', '宁波市', '慈溪市'),
(867, 0, 88, '浙江省', '宁波市', '奉化市'),
(868, 0, 89, '浙江省', '温州市', '鹿城区'),
(869, 0, 89, '浙江省', '温州市', '龙湾区'),
(870, 0, 89, '浙江省', '温州市', '瓯海区'),
(871, 0, 89, '浙江省', '温州市', '洞头县'),
(872, 0, 89, '浙江省', '温州市', '永嘉县'),
(873, 0, 89, '浙江省', '温州市', '平阳县'),
(874, 0, 89, '浙江省', '温州市', '苍南县'),
(875, 0, 89, '浙江省', '温州市', '文成县'),
(876, 0, 89, '浙江省', '温州市', '泰顺县'),
(877, 0, 89, '浙江省', '温州市', '瑞安市'),
(878, 0, 89, '浙江省', '温州市', '乐清市'),
(879, 0, 90, '浙江省', '嘉兴市', '秀城区'),
(880, 0, 90, '浙江省', '嘉兴市', '秀洲区'),
(881, 0, 90, '浙江省', '嘉兴市', '嘉善县'),
(882, 0, 90, '浙江省', '嘉兴市', '海盐县'),
(883, 0, 90, '浙江省', '嘉兴市', '海宁市'),
(884, 0, 90, '浙江省', '嘉兴市', '平湖市'),
(885, 0, 90, '浙江省', '嘉兴市', '桐乡市'),
(886, 0, 91, '浙江省', '湖州市', '吴兴区'),
(887, 0, 91, '浙江省', '湖州市', '南浔区'),
(888, 0, 91, '浙江省', '湖州市', '德清县'),
(889, 0, 91, '浙江省', '湖州市', '长兴县'),
(890, 0, 91, '浙江省', '湖州市', '安吉县'),
(891, 0, 92, '浙江省', '绍兴市', '越城区'),
(892, 0, 92, '浙江省', '绍兴市', '绍兴县'),
(893, 0, 92, '浙江省', '绍兴市', '新昌县'),
(894, 0, 92, '浙江省', '绍兴市', '诸暨市'),
(895, 0, 92, '浙江省', '绍兴市', '上虞市'),
(896, 0, 92, '浙江省', '绍兴市', '嵊州市'),
(897, 0, 93, '浙江省', '金华市', '婺城区'),
(898, 0, 93, '浙江省', '金华市', '金东区'),
(899, 0, 93, '浙江省', '金华市', '武义县'),
(900, 0, 93, '浙江省', '金华市', '浦江县'),
(901, 0, 93, '浙江省', '金华市', '磐安县'),
(902, 0, 93, '浙江省', '金华市', '兰溪市'),
(903, 0, 93, '浙江省', '金华市', '义乌市'),
(904, 0, 93, '浙江省', '金华市', '东阳市'),
(905, 0, 93, '浙江省', '金华市', '永康市'),
(906, 0, 94, '浙江省', '衢州市', '柯城区'),
(907, 0, 94, '浙江省', '衢州市', '衢江区'),
(908, 0, 94, '浙江省', '衢州市', '常山县'),
(909, 0, 94, '浙江省', '衢州市', '开化县'),
(910, 0, 94, '浙江省', '衢州市', '龙游县'),
(911, 0, 94, '浙江省', '衢州市', '江山市'),
(912, 0, 95, '浙江省', '舟山市', '定海区'),
(913, 0, 95, '浙江省', '舟山市', '普陀区'),
(914, 0, 95, '浙江省', '舟山市', '岱山县'),
(915, 0, 95, '浙江省', '舟山市', '嵊泗县'),
(916, 0, 96, '浙江省', '台州市', '椒江区'),
(917, 0, 96, '浙江省', '台州市', '黄岩区'),
(918, 0, 96, '浙江省', '台州市', '路桥区'),
(919, 0, 96, '浙江省', '台州市', '玉环县'),
(920, 0, 96, '浙江省', '台州市', '三门县'),
(921, 0, 96, '浙江省', '台州市', '天台县'),
(922, 0, 96, '浙江省', '台州市', '仙居县'),
(923, 0, 96, '浙江省', '台州市', '温岭市'),
(924, 0, 96, '浙江省', '台州市', '临海市'),
(925, 0, 97, '浙江省', '丽水市', '莲都区'),
(926, 0, 97, '浙江省', '丽水市', '青田县'),
(927, 0, 97, '浙江省', '丽水市', '缙云县'),
(928, 0, 97, '浙江省', '丽水市', '遂昌县'),
(929, 0, 97, '浙江省', '丽水市', '松阳县'),
(930, 0, 97, '浙江省', '丽水市', '云和县'),
(931, 0, 97, '浙江省', '丽水市', '庆元县'),
(932, 0, 97, '浙江省', '丽水市', '景宁畲族自治县'),
(933, 0, 97, '浙江省', '丽水市', '龙泉市'),
(934, 0, 98, '安徽省', '合肥市', '瑶海区'),
(935, 0, 98, '安徽省', '合肥市', '庐阳区'),
(936, 0, 98, '安徽省', '合肥市', '蜀山区'),
(937, 0, 98, '安徽省', '合肥市', '包河区'),
(938, 0, 98, '安徽省', '合肥市', '长丰县'),
(939, 0, 98, '安徽省', '合肥市', '肥东县'),
(940, 0, 98, '安徽省', '合肥市', '肥西县'),
(941, 0, 99, '安徽省', '芜湖市', '镜湖区'),
(942, 0, 99, '安徽省', '芜湖市', '马塘区'),
(943, 0, 99, '安徽省', '芜湖市', '新芜区'),
(944, 0, 99, '安徽省', '芜湖市', '鸠江区'),
(945, 0, 99, '安徽省', '芜湖市', '芜湖县'),
(946, 0, 99, '安徽省', '芜湖市', '繁昌县'),
(947, 0, 99, '安徽省', '芜湖市', '南陵县'),
(948, 0, 100, '安徽省', '蚌埠市', '龙子湖区'),
(949, 0, 100, '安徽省', '蚌埠市', '蚌山区'),
(950, 0, 100, '安徽省', '蚌埠市', '禹会区'),
(951, 0, 100, '安徽省', '蚌埠市', '淮上区'),
(952, 0, 100, '安徽省', '蚌埠市', '怀远县'),
(953, 0, 100, '安徽省', '蚌埠市', '五河县'),
(954, 0, 100, '安徽省', '蚌埠市', '固镇县'),
(955, 0, 101, '安徽省', '淮南市', '大通区'),
(956, 0, 101, '安徽省', '淮南市', '田家庵区'),
(957, 0, 101, '安徽省', '淮南市', '谢家集区'),
(958, 0, 101, '安徽省', '淮南市', '八公山区'),
(959, 0, 101, '安徽省', '淮南市', '潘集区'),
(960, 0, 101, '安徽省', '淮南市', '凤台县'),
(961, 0, 102, '安徽省', '马鞍山市', '金家庄区'),
(962, 0, 102, '安徽省', '马鞍山市', '花山区'),
(963, 0, 102, '安徽省', '马鞍山市', '雨山区'),
(964, 0, 102, '安徽省', '马鞍山市', '当涂县'),
(965, 0, 103, '安徽省', '淮北市', '杜集区'),
(966, 0, 103, '安徽省', '淮北市', '相山区'),
(967, 0, 103, '安徽省', '淮北市', '烈山区'),
(968, 0, 103, '安徽省', '淮北市', '濉溪县'),
(969, 0, 104, '安徽省', '铜陵市', '铜官山区'),
(970, 0, 104, '安徽省', '铜陵市', '狮子山区'),
(971, 0, 104, '安徽省', '铜陵市', '郊区'),
(972, 0, 104, '安徽省', '铜陵市', '铜陵县'),
(973, 0, 105, '安徽省', '安庆市', '迎江区'),
(974, 0, 105, '安徽省', '安庆市', '大观区'),
(975, 0, 105, '安徽省', '安庆市', '郊区'),
(976, 0, 105, '安徽省', '安庆市', '怀宁县'),
(977, 0, 105, '安徽省', '安庆市', '枞阳县'),
(978, 0, 105, '安徽省', '安庆市', '潜山县'),
(979, 0, 105, '安徽省', '安庆市', '太湖县'),
(980, 0, 105, '安徽省', '安庆市', '宿松县'),
(981, 0, 105, '安徽省', '安庆市', '望江县'),
(982, 0, 105, '安徽省', '安庆市', '岳西县'),
(983, 0, 105, '安徽省', '安庆市', '桐城市'),
(984, 0, 106, '安徽省', '黄山市', '屯溪区'),
(985, 0, 106, '安徽省', '黄山市', '黄山区'),
(986, 0, 106, '安徽省', '黄山市', '徽州区'),
(987, 0, 106, '安徽省', '黄山市', '歙县'),
(988, 0, 106, '安徽省', '黄山市', '休宁县'),
(989, 0, 106, '安徽省', '黄山市', '黟县'),
(990, 0, 106, '安徽省', '黄山市', '祁门县'),
(991, 0, 107, '安徽省', '滁州市', '琅琊区'),
(992, 0, 107, '安徽省', '滁州市', '南谯区'),
(993, 0, 107, '安徽省', '滁州市', '来安县'),
(994, 0, 107, '安徽省', '滁州市', '全椒县'),
(995, 0, 107, '安徽省', '滁州市', '定远县'),
(996, 0, 107, '安徽省', '滁州市', '凤阳县'),
(997, 0, 107, '安徽省', '滁州市', '天长市'),
(998, 0, 107, '安徽省', '滁州市', '明光市'),
(999, 0, 108, '安徽省', '阜阳市', '颍州区'),
(1000, 0, 108, '安徽省', '阜阳市', '颍东区'),
(1001, 0, 108, '安徽省', '阜阳市', '颍泉区'),
(1002, 0, 108, '安徽省', '阜阳市', '临泉县'),
(1003, 0, 108, '安徽省', '阜阳市', '太和县'),
(1004, 0, 108, '安徽省', '阜阳市', '阜南县'),
(1005, 0, 108, '安徽省', '阜阳市', '颍上县'),
(1006, 0, 108, '安徽省', '阜阳市', '界首市'),
(1007, 0, 109, '安徽省', '宿州市', '埇桥区'),
(1008, 0, 109, '安徽省', '宿州市', '砀山县'),
(1009, 0, 109, '安徽省', '宿州市', '萧县'),
(1010, 0, 109, '安徽省', '宿州市', '灵璧县'),
(1011, 0, 109, '安徽省', '宿州市', '泗县'),
(1012, 0, 110, '安徽省', '巢湖市', '居巢区'),
(1013, 0, 110, '安徽省', '巢湖市', '庐江县'),
(1014, 0, 110, '安徽省', '巢湖市', '无为县'),
(1015, 0, 110, '安徽省', '巢湖市', '含山县'),
(1016, 0, 110, '安徽省', '巢湖市', '和县'),
(1017, 0, 111, '安徽省', '六安市', '金安区'),
(1018, 0, 111, '安徽省', '六安市', '裕安区'),
(1019, 0, 111, '安徽省', '六安市', '寿县'),
(1020, 0, 111, '安徽省', '六安市', '霍邱县'),
(1021, 0, 111, '安徽省', '六安市', '舒城县'),
(1022, 0, 111, '安徽省', '六安市', '金寨县'),
(1023, 0, 111, '安徽省', '六安市', '霍山县'),
(1024, 0, 112, '安徽省', '亳州市', '谯城区'),
(1025, 0, 112, '安徽省', '亳州市', '涡阳县'),
(1026, 0, 112, '安徽省', '亳州市', '蒙城县'),
(1027, 0, 112, '安徽省', '亳州市', '利辛县'),
(1028, 0, 113, '安徽省', '池州市', '贵池区'),
(1029, 0, 113, '安徽省', '池州市', '东至县'),
(1030, 0, 113, '安徽省', '池州市', '石台县'),
(1031, 0, 113, '安徽省', '池州市', '青阳县'),
(1032, 0, 114, '安徽省', '宣城市', '宣州区'),
(1033, 0, 114, '安徽省', '宣城市', '郎溪县'),
(1034, 0, 114, '安徽省', '宣城市', '广德县'),
(1035, 0, 114, '安徽省', '宣城市', '泾县'),
(1036, 0, 114, '安徽省', '宣城市', '绩溪县'),
(1037, 0, 114, '安徽省', '宣城市', '旌德县'),
(1038, 0, 114, '安徽省', '宣城市', '宁国市'),
(1039, 0, 115, '福建省', '福州市', '鼓楼区'),
(1040, 0, 115, '福建省', '福州市', '台江区'),
(1041, 0, 115, '福建省', '福州市', '仓山区'),
(1042, 0, 115, '福建省', '福州市', '马尾区'),
(1043, 0, 115, '福建省', '福州市', '晋安区'),
(1044, 0, 115, '福建省', '福州市', '闽侯县'),
(1045, 0, 115, '福建省', '福州市', '连江县'),
(1046, 0, 115, '福建省', '福州市', '罗源县'),
(1047, 0, 115, '福建省', '福州市', '闽清县'),
(1048, 0, 115, '福建省', '福州市', '永泰县'),
(1049, 0, 115, '福建省', '福州市', '平潭县'),
(1050, 0, 115, '福建省', '福州市', '福清市'),
(1051, 0, 115, '福建省', '福州市', '长乐市'),
(1052, 0, 116, '福建省', '厦门市', '思明区'),
(1053, 0, 116, '福建省', '厦门市', '海沧区'),
(1054, 0, 116, '福建省', '厦门市', '湖里区'),
(1055, 0, 116, '福建省', '厦门市', '集美区'),
(1056, 0, 116, '福建省', '厦门市', '同安区'),
(1057, 0, 116, '福建省', '厦门市', '翔安区'),
(1058, 0, 117, '福建省', '莆田市', '城厢区'),
(1059, 0, 117, '福建省', '莆田市', '涵江区'),
(1060, 0, 117, '福建省', '莆田市', '荔城区'),
(1061, 0, 117, '福建省', '莆田市', '秀屿区'),
(1062, 0, 117, '福建省', '莆田市', '仙游县'),
(1063, 0, 118, '福建省', '三明市', '梅列区'),
(1064, 0, 118, '福建省', '三明市', '三元区'),
(1065, 0, 118, '福建省', '三明市', '明溪县'),
(1066, 0, 118, '福建省', '三明市', '清流县'),
(1067, 0, 118, '福建省', '三明市', '宁化县'),
(1068, 0, 118, '福建省', '三明市', '大田县'),
(1069, 0, 118, '福建省', '三明市', '尤溪县'),
(1070, 0, 118, '福建省', '三明市', '沙县'),
(1071, 0, 118, '福建省', '三明市', '将乐县'),
(1072, 0, 118, '福建省', '三明市', '泰宁县'),
(1073, 0, 118, '福建省', '三明市', '建宁县'),
(1074, 0, 118, '福建省', '三明市', '永安市'),
(1075, 0, 119, '福建省', '泉州市', '鲤城区'),
(1076, 0, 119, '福建省', '泉州市', '丰泽区'),
(1077, 0, 119, '福建省', '泉州市', '洛江区'),
(1078, 0, 119, '福建省', '泉州市', '泉港区'),
(1079, 0, 119, '福建省', '泉州市', '惠安县'),
(1080, 0, 119, '福建省', '泉州市', '安溪县'),
(1081, 0, 119, '福建省', '泉州市', '永春县'),
(1082, 0, 119, '福建省', '泉州市', '德化县'),
(1083, 0, 119, '福建省', '泉州市', '金门县'),
(1084, 0, 119, '福建省', '泉州市', '石狮市'),
(1085, 0, 119, '福建省', '泉州市', '晋江市'),
(1086, 0, 119, '福建省', '泉州市', '南安市'),
(1087, 0, 120, '福建省', '漳州市', '芗城区'),
(1088, 0, 120, '福建省', '漳州市', '龙文区'),
(1089, 0, 120, '福建省', '漳州市', '云霄县'),
(1090, 0, 120, '福建省', '漳州市', '漳浦县'),
(1091, 0, 120, '福建省', '漳州市', '诏安县'),
(1092, 0, 120, '福建省', '漳州市', '长泰县'),
(1093, 0, 120, '福建省', '漳州市', '东山县'),
(1094, 0, 120, '福建省', '漳州市', '南靖县'),
(1095, 0, 120, '福建省', '漳州市', '平和县'),
(1096, 0, 120, '福建省', '漳州市', '华安县'),
(1097, 0, 120, '福建省', '漳州市', '龙海市'),
(1098, 0, 121, '福建省', '南平市', '延平区'),
(1099, 0, 121, '福建省', '南平市', '顺昌县'),
(1100, 0, 121, '福建省', '南平市', '浦城县'),
(1101, 0, 121, '福建省', '南平市', '光泽县'),
(1102, 0, 121, '福建省', '南平市', '松溪县'),
(1103, 0, 121, '福建省', '南平市', '政和县'),
(1104, 0, 121, '福建省', '南平市', '邵武市'),
(1105, 0, 121, '福建省', '南平市', '武夷山市'),
(1106, 0, 121, '福建省', '南平市', '建瓯市'),
(1107, 0, 121, '福建省', '南平市', '建阳市'),
(1108, 0, 122, '福建省', '龙岩市', '新罗区'),
(1109, 0, 122, '福建省', '龙岩市', '长汀县'),
(1110, 0, 122, '福建省', '龙岩市', '永定县'),
(1111, 0, 122, '福建省', '龙岩市', '上杭县'),
(1112, 0, 122, '福建省', '龙岩市', '武平县'),
(1113, 0, 122, '福建省', '龙岩市', '连城县'),
(1114, 0, 122, '福建省', '龙岩市', '漳平市'),
(1115, 0, 123, '福建省', '宁德市', '蕉城区'),
(1116, 0, 123, '福建省', '宁德市', '霞浦县'),
(1117, 0, 123, '福建省', '宁德市', '古田县'),
(1118, 0, 123, '福建省', '宁德市', '屏南县'),
(1119, 0, 123, '福建省', '宁德市', '寿宁县'),
(1120, 0, 123, '福建省', '宁德市', '周宁县'),
(1121, 0, 123, '福建省', '宁德市', '柘荣县'),
(1122, 0, 123, '福建省', '宁德市', '福安市'),
(1123, 0, 123, '福建省', '宁德市', '福鼎市'),
(1124, 0, 124, '江西省', '南昌市', '东湖区'),
(1125, 0, 124, '江西省', '南昌市', '西湖区'),
(1126, 0, 124, '江西省', '南昌市', '青云谱区'),
(1127, 0, 124, '江西省', '南昌市', '湾里区'),
(1128, 0, 124, '江西省', '南昌市', '青山湖区'),
(1129, 0, 124, '江西省', '南昌市', '南昌县'),
(1130, 0, 124, '江西省', '南昌市', '新建县'),
(1131, 0, 124, '江西省', '南昌市', '安义县'),
(1132, 0, 124, '江西省', '南昌市', '进贤县'),
(1133, 0, 125, '江西省', '景德镇市', '昌江区'),
(1134, 0, 125, '江西省', '景德镇市', '珠山区'),
(1135, 0, 125, '江西省', '景德镇市', '浮梁县'),
(1136, 0, 125, '江西省', '景德镇市', '乐平市'),
(1137, 0, 126, '江西省', '萍乡市', '安源区'),
(1138, 0, 126, '江西省', '萍乡市', '湘东区'),
(1139, 0, 126, '江西省', '萍乡市', '莲花县'),
(1140, 0, 126, '江西省', '萍乡市', '上栗县'),
(1141, 0, 126, '江西省', '萍乡市', '芦溪县'),
(1142, 0, 127, '江西省', '九江市', '庐山区'),
(1143, 0, 127, '江西省', '九江市', '浔阳区'),
(1144, 0, 127, '江西省', '九江市', '九江县'),
(1145, 0, 127, '江西省', '九江市', '武宁县'),
(1146, 0, 127, '江西省', '九江市', '修水县'),
(1147, 0, 127, '江西省', '九江市', '永修县'),
(1148, 0, 127, '江西省', '九江市', '德安县'),
(1149, 0, 127, '江西省', '九江市', '星子县'),
(1150, 0, 127, '江西省', '九江市', '都昌县'),
(1151, 0, 127, '江西省', '九江市', '湖口县'),
(1152, 0, 127, '江西省', '九江市', '彭泽县'),
(1153, 0, 127, '江西省', '九江市', '瑞昌市'),
(1154, 0, 128, '江西省', '新余市', '渝水区'),
(1155, 0, 128, '江西省', '新余市', '分宜县'),
(1156, 0, 129, '江西省', '鹰潭市', '月湖区'),
(1157, 0, 129, '江西省', '鹰潭市', '余江县'),
(1158, 0, 129, '江西省', '鹰潭市', '贵溪市'),
(1159, 0, 130, '江西省', '赣州市', '章贡区'),
(1160, 0, 130, '江西省', '赣州市', '赣县'),
(1161, 0, 130, '江西省', '赣州市', '信丰县'),
(1162, 0, 130, '江西省', '赣州市', '大余县'),
(1163, 0, 130, '江西省', '赣州市', '上犹县'),
(1164, 0, 130, '江西省', '赣州市', '崇义县'),
(1165, 0, 130, '江西省', '赣州市', '安远县'),
(1166, 0, 130, '江西省', '赣州市', '龙南县'),
(1167, 0, 130, '江西省', '赣州市', '定南县'),
(1168, 0, 130, '江西省', '赣州市', '全南县'),
(1169, 0, 130, '江西省', '赣州市', '宁都县'),
(1170, 0, 130, '江西省', '赣州市', '于都县'),
(1171, 0, 130, '江西省', '赣州市', '兴国县'),
(1172, 0, 130, '江西省', '赣州市', '会昌县'),
(1173, 0, 130, '江西省', '赣州市', '寻乌县'),
(1174, 0, 130, '江西省', '赣州市', '石城县'),
(1175, 0, 130, '江西省', '赣州市', '瑞金市'),
(1176, 0, 130, '江西省', '赣州市', '南康市'),
(1177, 0, 131, '江西省', '吉安市', '吉州区'),
(1178, 0, 131, '江西省', '吉安市', '青原区'),
(1179, 0, 131, '江西省', '吉安市', '吉安县'),
(1180, 0, 131, '江西省', '吉安市', '吉水县'),
(1181, 0, 131, '江西省', '吉安市', '峡江县'),
(1182, 0, 131, '江西省', '吉安市', '新干县'),
(1183, 0, 131, '江西省', '吉安市', '永丰县'),
(1184, 0, 131, '江西省', '吉安市', '泰和县'),
(1185, 0, 131, '江西省', '吉安市', '遂川县'),
(1186, 0, 131, '江西省', '吉安市', '万安县'),
(1187, 0, 131, '江西省', '吉安市', '安福县'),
(1188, 0, 131, '江西省', '吉安市', '永新县'),
(1189, 0, 131, '江西省', '吉安市', '井冈山市'),
(1190, 0, 132, '江西省', '宜春市', '袁州区'),
(1191, 0, 132, '江西省', '宜春市', '奉新县'),
(1192, 0, 132, '江西省', '宜春市', '万载县'),
(1193, 0, 132, '江西省', '宜春市', '上高县'),
(1194, 0, 132, '江西省', '宜春市', '宜丰县'),
(1195, 0, 132, '江西省', '宜春市', '靖安县'),
(1196, 0, 132, '江西省', '宜春市', '铜鼓县'),
(1197, 0, 132, '江西省', '宜春市', '丰城市'),
(1198, 0, 132, '江西省', '宜春市', '樟树市'),
(1199, 0, 132, '江西省', '宜春市', '高安市'),
(1200, 0, 133, '江西省', '抚州市', '临川区'),
(1201, 0, 133, '江西省', '抚州市', '南城县'),
(1202, 0, 133, '江西省', '抚州市', '黎川县'),
(1203, 0, 133, '江西省', '抚州市', '南丰县'),
(1204, 0, 133, '江西省', '抚州市', '崇仁县'),
(1205, 0, 133, '江西省', '抚州市', '乐安县'),
(1206, 0, 133, '江西省', '抚州市', '宜黄县'),
(1207, 0, 133, '江西省', '抚州市', '金溪县'),
(1208, 0, 133, '江西省', '抚州市', '资溪县'),
(1209, 0, 133, '江西省', '抚州市', '东乡县'),
(1210, 0, 133, '江西省', '抚州市', '广昌县'),
(1211, 0, 134, '江西省', '上饶市', '信州区'),
(1212, 0, 134, '江西省', '上饶市', '上饶县'),
(1213, 0, 134, '江西省', '上饶市', '广丰县'),
(1214, 0, 134, '江西省', '上饶市', '玉山县'),
(1215, 0, 134, '江西省', '上饶市', '铅山县'),
(1216, 0, 134, '江西省', '上饶市', '横峰县'),
(1217, 0, 134, '江西省', '上饶市', '弋阳县'),
(1218, 0, 134, '江西省', '上饶市', '余干县'),
(1219, 0, 134, '江西省', '上饶市', '鄱阳县'),
(1220, 0, 134, '江西省', '上饶市', '万年县'),
(1221, 0, 134, '江西省', '上饶市', '婺源县'),
(1222, 0, 134, '江西省', '上饶市', '德兴市'),
(1223, 0, 135, '山东省', '济南市', '历下区'),
(1224, 0, 135, '山东省', '济南市', '市中区'),
(1225, 0, 135, '山东省', '济南市', '槐荫区'),
(1226, 0, 135, '山东省', '济南市', '天桥区'),
(1227, 0, 135, '山东省', '济南市', '历城区'),
(1228, 0, 135, '山东省', '济南市', '长清区'),
(1229, 0, 135, '山东省', '济南市', '平阴县'),
(1230, 0, 135, '山东省', '济南市', '济阳县'),
(1231, 0, 135, '山东省', '济南市', '商河县'),
(1232, 0, 135, '山东省', '济南市', '章丘市'),
(1233, 0, 136, '山东省', '青岛市', '市南区'),
(1234, 0, 136, '山东省', '青岛市', '市北区'),
(1235, 0, 136, '山东省', '青岛市', '四方区'),
(1236, 0, 136, '山东省', '青岛市', '黄岛区'),
(1237, 0, 136, '山东省', '青岛市', '崂山区'),
(1238, 0, 136, '山东省', '青岛市', '李沧区'),
(1239, 0, 136, '山东省', '青岛市', '城阳区'),
(1240, 0, 136, '山东省', '青岛市', '胶州市'),
(1241, 0, 136, '山东省', '青岛市', '即墨市'),
(1242, 0, 136, '山东省', '青岛市', '平度市'),
(1243, 0, 136, '山东省', '青岛市', '胶南市'),
(1244, 0, 136, '山东省', '青岛市', '莱西市'),
(1245, 0, 137, '山东省', '淄博市', '淄川区'),
(1246, 0, 137, '山东省', '淄博市', '张店区'),
(1247, 0, 137, '山东省', '淄博市', '博山区'),
(1248, 0, 137, '山东省', '淄博市', '临淄区'),
(1249, 0, 137, '山东省', '淄博市', '周村区'),
(1250, 0, 137, '山东省', '淄博市', '桓台县'),
(1251, 0, 137, '山东省', '淄博市', '高青县'),
(1252, 0, 137, '山东省', '淄博市', '沂源县'),
(1253, 0, 138, '山东省', '枣庄市', '市中区'),
(1254, 0, 138, '山东省', '枣庄市', '薛城区'),
(1255, 0, 138, '山东省', '枣庄市', '峄城区'),
(1256, 0, 138, '山东省', '枣庄市', '台儿庄区'),
(1257, 0, 138, '山东省', '枣庄市', '山亭区'),
(1258, 0, 138, '山东省', '枣庄市', '滕州市'),
(1259, 0, 139, '山东省', '东营市', '东营区'),
(1260, 0, 139, '山东省', '东营市', '河口区'),
(1261, 0, 139, '山东省', '东营市', '垦利县'),
(1262, 0, 139, '山东省', '东营市', '利津县'),
(1263, 0, 139, '山东省', '东营市', '广饶县'),
(1264, 0, 140, '山东省', '烟台市', '芝罘区'),
(1265, 0, 140, '山东省', '烟台市', '福山区'),
(1266, 0, 140, '山东省', '烟台市', '牟平区'),
(1267, 0, 140, '山东省', '烟台市', '莱山区'),
(1268, 0, 140, '山东省', '烟台市', '长岛县'),
(1269, 0, 140, '山东省', '烟台市', '龙口市'),
(1270, 0, 140, '山东省', '烟台市', '莱阳市'),
(1271, 0, 140, '山东省', '烟台市', '莱州市'),
(1272, 0, 140, '山东省', '烟台市', '蓬莱市'),
(1273, 0, 140, '山东省', '烟台市', '招远市'),
(1274, 0, 140, '山东省', '烟台市', '栖霞市'),
(1275, 0, 140, '山东省', '烟台市', '海阳市'),
(1276, 0, 141, '山东省', '潍坊市', '潍城区'),
(1277, 0, 141, '山东省', '潍坊市', '寒亭区'),
(1278, 0, 141, '山东省', '潍坊市', '坊子区'),
(1279, 0, 141, '山东省', '潍坊市', '奎文区'),
(1280, 0, 141, '山东省', '潍坊市', '临朐县'),
(1281, 0, 141, '山东省', '潍坊市', '昌乐县'),
(1282, 0, 141, '山东省', '潍坊市', '青州市'),
(1283, 0, 141, '山东省', '潍坊市', '诸城市'),
(1284, 0, 141, '山东省', '潍坊市', '寿光市'),
(1285, 0, 141, '山东省', '潍坊市', '安丘市'),
(1286, 0, 141, '山东省', '潍坊市', '高密市'),
(1287, 0, 141, '山东省', '潍坊市', '昌邑市'),
(1288, 0, 142, '山东省', '济宁市', '市中区'),
(1289, 0, 142, '山东省', '济宁市', '任城区'),
(1290, 0, 142, '山东省', '济宁市', '微山县'),
(1291, 0, 142, '山东省', '济宁市', '鱼台县'),
(1292, 0, 142, '山东省', '济宁市', '金乡县'),
(1293, 0, 142, '山东省', '济宁市', '嘉祥县'),
(1294, 0, 142, '山东省', '济宁市', '汶上县'),
(1295, 0, 142, '山东省', '济宁市', '泗水县'),
(1296, 0, 142, '山东省', '济宁市', '梁山县'),
(1297, 0, 142, '山东省', '济宁市', '曲阜市'),
(1298, 0, 142, '山东省', '济宁市', '兖州市'),
(1299, 0, 142, '山东省', '济宁市', '邹城市'),
(1300, 0, 143, '山东省', '泰安市', '泰山区'),
(1301, 0, 143, '山东省', '泰安市', '岱岳区'),
(1302, 0, 143, '山东省', '泰安市', '宁阳县'),
(1303, 0, 143, '山东省', '泰安市', '东平县'),
(1304, 0, 143, '山东省', '泰安市', '新泰市'),
(1305, 0, 143, '山东省', '泰安市', '肥城市'),
(1306, 0, 144, '山东省', '威海市', '环翠区'),
(1307, 0, 144, '山东省', '威海市', '文登市'),
(1308, 0, 144, '山东省', '威海市', '荣成市'),
(1309, 0, 144, '山东省', '威海市', '乳山市'),
(1310, 0, 145, '山东省', '日照市', '东港区'),
(1311, 0, 145, '山东省', '日照市', '岚山区'),
(1312, 0, 145, '山东省', '日照市', '五莲县'),
(1313, 0, 145, '山东省', '日照市', '莒县'),
(1314, 0, 146, '山东省', '莱芜市', '莱城区'),
(1315, 0, 146, '山东省', '莱芜市', '钢城区'),
(1316, 0, 147, '山东省', '临沂市', '兰山区'),
(1317, 0, 147, '山东省', '临沂市', '罗庄区'),
(1318, 0, 147, '山东省', '临沂市', '河东区'),
(1319, 0, 147, '山东省', '临沂市', '沂南县'),
(1320, 0, 147, '山东省', '临沂市', '郯城县'),
(1321, 0, 147, '山东省', '临沂市', '沂水县'),
(1322, 0, 147, '山东省', '临沂市', '苍山县'),
(1323, 0, 147, '山东省', '临沂市', '费县'),
(1324, 0, 147, '山东省', '临沂市', '平邑县'),
(1325, 0, 147, '山东省', '临沂市', '莒南县'),
(1326, 0, 147, '山东省', '临沂市', '蒙阴县'),
(1327, 0, 147, '山东省', '临沂市', '临沭县'),
(1328, 0, 148, '山东省', '德州市', '德城区'),
(1329, 0, 148, '山东省', '德州市', '陵县'),
(1330, 0, 148, '山东省', '德州市', '宁津县'),
(1331, 0, 148, '山东省', '德州市', '庆云县'),
(1332, 0, 148, '山东省', '德州市', '临邑县'),
(1333, 0, 148, '山东省', '德州市', '齐河县'),
(1334, 0, 148, '山东省', '德州市', '平原县'),
(1335, 0, 148, '山东省', '德州市', '夏津县'),
(1336, 0, 148, '山东省', '德州市', '武城县'),
(1337, 0, 148, '山东省', '德州市', '乐陵市'),
(1338, 0, 148, '山东省', '德州市', '禹城市'),
(1339, 0, 149, '山东省', '聊城市', '东昌府区'),
(1340, 0, 149, '山东省', '聊城市', '阳谷县'),
(1341, 0, 149, '山东省', '聊城市', '莘县'),
(1342, 0, 149, '山东省', '聊城市', '茌平县'),
(1343, 0, 149, '山东省', '聊城市', '东阿县'),
(1344, 0, 149, '山东省', '聊城市', '冠县'),
(1345, 0, 149, '山东省', '聊城市', '高唐县'),
(1346, 0, 149, '山东省', '聊城市', '临清市'),
(1347, 0, 150, '山东省', '滨州市', '滨城区'),
(1348, 0, 150, '山东省', '滨州市', '惠民县'),
(1349, 0, 150, '山东省', '滨州市', '阳信县'),
(1350, 0, 150, '山东省', '滨州市', '无棣县'),
(1351, 0, 150, '山东省', '滨州市', '沾化县'),
(1352, 0, 150, '山东省', '滨州市', '博兴县'),
(1353, 0, 150, '山东省', '滨州市', '邹平县'),
(1354, 0, 151, '山东省', '荷泽市', '牡丹区'),
(1355, 0, 151, '山东省', '荷泽市', '曹县'),
(1356, 0, 151, '山东省', '荷泽市', '单县'),
(1357, 0, 151, '山东省', '荷泽市', '成武县'),
(1358, 0, 151, '山东省', '荷泽市', '巨野县'),
(1359, 0, 151, '山东省', '荷泽市', '郓城县'),
(1360, 0, 151, '山东省', '荷泽市', '鄄城县'),
(1361, 0, 151, '山东省', '荷泽市', '定陶县'),
(1362, 0, 151, '山东省', '荷泽市', '东明县'),
(1363, 0, 152, '河南省', '郑州市', '中原区'),
(1364, 0, 152, '河南省', '郑州市', '二七区'),
(1365, 0, 152, '河南省', '郑州市', '管城回族区'),
(1366, 0, 152, '河南省', '郑州市', '金水区'),
(1367, 0, 152, '河南省', '郑州市', '上街区'),
(1368, 0, 152, '河南省', '郑州市', '惠济区'),
(1369, 0, 152, '河南省', '郑州市', '中牟县'),
(1370, 0, 152, '河南省', '郑州市', '巩义市'),
(1371, 0, 152, '河南省', '郑州市', '荥阳市'),
(1372, 0, 152, '河南省', '郑州市', '新密市'),
(1373, 0, 152, '河南省', '郑州市', '新郑市'),
(1374, 0, 152, '河南省', '郑州市', '登封市'),
(1375, 0, 153, '河南省', '开封市', '龙亭区'),
(1376, 0, 153, '河南省', '开封市', '顺河回族区'),
(1377, 0, 153, '河南省', '开封市', '鼓楼区'),
(1378, 0, 153, '河南省', '开封市', '南关区'),
(1379, 0, 153, '河南省', '开封市', '郊区'),
(1380, 0, 153, '河南省', '开封市', '杞县'),
(1381, 0, 153, '河南省', '开封市', '通许县'),
(1382, 0, 153, '河南省', '开封市', '尉氏县'),
(1383, 0, 153, '河南省', '开封市', '开封县'),
(1384, 0, 153, '河南省', '开封市', '兰考县'),
(1385, 0, 154, '河南省', '洛阳市', '老城区'),
(1386, 0, 154, '河南省', '洛阳市', '西工区'),
(1387, 0, 154, '河南省', '洛阳市', '廛河回族区'),
(1388, 0, 154, '河南省', '洛阳市', '涧西区'),
(1389, 0, 154, '河南省', '洛阳市', '吉利区'),
(1390, 0, 154, '河南省', '洛阳市', '洛龙区'),
(1391, 0, 154, '河南省', '洛阳市', '孟津县'),
(1392, 0, 154, '河南省', '洛阳市', '新安县'),
(1393, 0, 154, '河南省', '洛阳市', '栾川县'),
(1394, 0, 154, '河南省', '洛阳市', '嵩县'),
(1395, 0, 154, '河南省', '洛阳市', '汝阳县'),
(1396, 0, 154, '河南省', '洛阳市', '宜阳县'),
(1397, 0, 154, '河南省', '洛阳市', '洛宁县'),
(1398, 0, 154, '河南省', '洛阳市', '伊川县'),
(1399, 0, 154, '河南省', '洛阳市', '偃师市'),
(1400, 0, 155, '河南省', '平顶山市', '新华区'),
(1401, 0, 155, '河南省', '平顶山市', '卫东区'),
(1402, 0, 155, '河南省', '平顶山市', '石龙区'),
(1403, 0, 155, '河南省', '平顶山市', '湛河区'),
(1404, 0, 155, '河南省', '平顶山市', '宝丰县'),
(1405, 0, 155, '河南省', '平顶山市', '叶县'),
(1406, 0, 155, '河南省', '平顶山市', '鲁山县'),
(1407, 0, 155, '河南省', '平顶山市', '郏县'),
(1408, 0, 155, '河南省', '平顶山市', '舞钢市'),
(1409, 0, 155, '河南省', '平顶山市', '汝州市'),
(1410, 0, 156, '河南省', '安阳市', '文峰区'),
(1411, 0, 156, '河南省', '安阳市', '北关区'),
(1412, 0, 156, '河南省', '安阳市', '殷都区'),
(1413, 0, 156, '河南省', '安阳市', '龙安区'),
(1414, 0, 156, '河南省', '安阳市', '安阳县'),
(1415, 0, 156, '河南省', '安阳市', '汤阴县'),
(1416, 0, 156, '河南省', '安阳市', '滑县'),
(1417, 0, 156, '河南省', '安阳市', '内黄县'),
(1418, 0, 156, '河南省', '安阳市', '林州市'),
(1419, 0, 157, '河南省', '鹤壁市', '鹤山区'),
(1420, 0, 157, '河南省', '鹤壁市', '山城区'),
(1421, 0, 157, '河南省', '鹤壁市', '淇滨区'),
(1422, 0, 157, '河南省', '鹤壁市', '浚县'),
(1423, 0, 157, '河南省', '鹤壁市', '淇县'),
(1424, 0, 158, '河南省', '新乡市', '红旗区'),
(1425, 0, 158, '河南省', '新乡市', '卫滨区'),
(1426, 0, 158, '河南省', '新乡市', '凤泉区'),
(1427, 0, 158, '河南省', '新乡市', '牧野区'),
(1428, 0, 158, '河南省', '新乡市', '新乡县'),
(1429, 0, 158, '河南省', '新乡市', '获嘉县'),
(1430, 0, 158, '河南省', '新乡市', '原阳县'),
(1431, 0, 158, '河南省', '新乡市', '延津县'),
(1432, 0, 158, '河南省', '新乡市', '封丘县'),
(1433, 0, 158, '河南省', '新乡市', '长垣县'),
(1434, 0, 158, '河南省', '新乡市', '卫辉市'),
(1435, 0, 158, '河南省', '新乡市', '辉县市'),
(1436, 0, 159, '河南省', '焦作市', '解放区'),
(1437, 0, 159, '河南省', '焦作市', '中站区'),
(1438, 0, 159, '河南省', '焦作市', '马村区'),
(1439, 0, 159, '河南省', '焦作市', '山阳区'),
(1440, 0, 159, '河南省', '焦作市', '修武县'),
(1441, 0, 159, '河南省', '焦作市', '博爱县'),
(1442, 0, 159, '河南省', '焦作市', '武陟县'),
(1443, 0, 159, '河南省', '焦作市', '温县'),
(1444, 0, 159, '河南省', '焦作市', '济源市'),
(1445, 0, 159, '河南省', '焦作市', '沁阳市'),
(1446, 0, 159, '河南省', '焦作市', '孟州市'),
(1447, 0, 160, '河南省', '濮阳市', '华龙区'),
(1448, 0, 160, '河南省', '濮阳市', '清丰县'),
(1449, 0, 160, '河南省', '濮阳市', '南乐县'),
(1450, 0, 160, '河南省', '濮阳市', '范县'),
(1451, 0, 160, '河南省', '濮阳市', '台前县'),
(1452, 0, 160, '河南省', '濮阳市', '濮阳县'),
(1453, 0, 161, '河南省', '许昌市', '魏都区'),
(1454, 0, 161, '河南省', '许昌市', '许昌县'),
(1455, 0, 161, '河南省', '许昌市', '鄢陵县'),
(1456, 0, 161, '河南省', '许昌市', '襄城县'),
(1457, 0, 161, '河南省', '许昌市', '禹州市'),
(1458, 0, 161, '河南省', '许昌市', '长葛市'),
(1459, 0, 162, '河南省', '漯河市', '源汇区'),
(1460, 0, 162, '河南省', '漯河市', '郾城区'),
(1461, 0, 162, '河南省', '漯河市', '召陵区'),
(1462, 0, 162, '河南省', '漯河市', '舞阳县'),
(1463, 0, 162, '河南省', '漯河市', '临颍县'),
(1464, 0, 163, '河南省', '三门峡市', '市辖区'),
(1465, 0, 163, '河南省', '三门峡市', '湖滨区'),
(1466, 0, 163, '河南省', '三门峡市', '渑池县'),
(1467, 0, 163, '河南省', '三门峡市', '陕县'),
(1468, 0, 163, '河南省', '三门峡市', '卢氏县'),
(1469, 0, 163, '河南省', '三门峡市', '义马市'),
(1470, 0, 163, '河南省', '三门峡市', '灵宝市'),
(1471, 0, 164, '河南省', '南阳市', '宛城区'),
(1472, 0, 164, '河南省', '南阳市', '卧龙区'),
(1473, 0, 164, '河南省', '南阳市', '南召县'),
(1474, 0, 164, '河南省', '南阳市', '方城县'),
(1475, 0, 164, '河南省', '南阳市', '西峡县'),
(1476, 0, 164, '河南省', '南阳市', '镇平县'),
(1477, 0, 164, '河南省', '南阳市', '内乡县'),
(1478, 0, 164, '河南省', '南阳市', '淅川县'),
(1479, 0, 164, '河南省', '南阳市', '社旗县'),
(1480, 0, 164, '河南省', '南阳市', '唐河县'),
(1481, 0, 164, '河南省', '南阳市', '新野县'),
(1482, 0, 164, '河南省', '南阳市', '桐柏县'),
(1483, 0, 164, '河南省', '南阳市', '邓州市'),
(1484, 0, 165, '河南省', '商丘市', '梁园区'),
(1485, 0, 165, '河南省', '商丘市', '睢阳区'),
(1486, 0, 165, '河南省', '商丘市', '民权县'),
(1487, 0, 165, '河南省', '商丘市', '睢县'),
(1488, 0, 165, '河南省', '商丘市', '宁陵县'),
(1489, 0, 165, '河南省', '商丘市', '柘城县'),
(1490, 0, 165, '河南省', '商丘市', '虞城县'),
(1491, 0, 165, '河南省', '商丘市', '夏邑县'),
(1492, 0, 165, '河南省', '商丘市', '永城市'),
(1493, 0, 166, '河南省', '信阳市', '浉河区'),
(1494, 0, 166, '河南省', '信阳市', '平桥区'),
(1495, 0, 166, '河南省', '信阳市', '罗山县'),
(1496, 0, 166, '河南省', '信阳市', '光山县'),
(1497, 0, 166, '河南省', '信阳市', '新县'),
(1498, 0, 166, '河南省', '信阳市', '商城县'),
(1499, 0, 166, '河南省', '信阳市', '固始县'),
(1500, 0, 166, '河南省', '信阳市', '潢川县'),
(1501, 0, 166, '河南省', '信阳市', '淮滨县'),
(1502, 0, 166, '河南省', '信阳市', '息县'),
(1503, 0, 167, '河南省', '周口市', '川汇区'),
(1504, 0, 167, '河南省', '周口市', '扶沟县'),
(1505, 0, 167, '河南省', '周口市', '西华县'),
(1506, 0, 167, '河南省', '周口市', '商水县'),
(1507, 0, 167, '河南省', '周口市', '沈丘县'),
(1508, 0, 167, '河南省', '周口市', '郸城县'),
(1509, 0, 167, '河南省', '周口市', '淮阳县'),
(1510, 0, 167, '河南省', '周口市', '太康县'),
(1511, 0, 167, '河南省', '周口市', '鹿邑县'),
(1512, 0, 167, '河南省', '周口市', '项城市'),
(1513, 0, 168, '河南省', '驻马店市', '驿城区'),
(1514, 0, 168, '河南省', '驻马店市', '西平县'),
(1515, 0, 168, '河南省', '驻马店市', '上蔡县'),
(1516, 0, 168, '河南省', '驻马店市', '平舆县'),
(1517, 0, 168, '河南省', '驻马店市', '正阳县'),
(1518, 0, 168, '河南省', '驻马店市', '确山县'),
(1519, 0, 168, '河南省', '驻马店市', '泌阳县'),
(1520, 0, 168, '河南省', '驻马店市', '汝南县'),
(1521, 0, 168, '河南省', '驻马店市', '遂平县'),
(1522, 0, 168, '河南省', '驻马店市', '新蔡县'),
(1523, 0, 169, '湖北省', '武汉市', '江岸区'),
(1524, 0, 169, '湖北省', '武汉市', '江汉区'),
(1525, 0, 169, '湖北省', '武汉市', '硚口区'),
(1526, 0, 169, '湖北省', '武汉市', '汉阳区'),
(1527, 0, 169, '湖北省', '武汉市', '武昌区'),
(1528, 0, 169, '湖北省', '武汉市', '青山区'),
(1529, 0, 169, '湖北省', '武汉市', '洪山区'),
(1530, 0, 169, '湖北省', '武汉市', '东西湖区'),
(1531, 0, 169, '湖北省', '武汉市', '汉南区'),
(1532, 0, 169, '湖北省', '武汉市', '蔡甸区'),
(1533, 0, 169, '湖北省', '武汉市', '江夏区'),
(1534, 0, 169, '湖北省', '武汉市', '黄陂区'),
(1535, 0, 169, '湖北省', '武汉市', '新洲区'),
(1536, 0, 170, '湖北省', '黄石市', '黄石港区'),
(1537, 0, 170, '湖北省', '黄石市', '西塞山区'),
(1538, 0, 170, '湖北省', '黄石市', '下陆区'),
(1539, 0, 170, '湖北省', '黄石市', '铁山区'),
(1540, 0, 170, '湖北省', '黄石市', '阳新县'),
(1541, 0, 170, '湖北省', '黄石市', '大冶市'),
(1542, 0, 171, '湖北省', '十堰市', '茅箭区'),
(1543, 0, 171, '湖北省', '十堰市', '张湾区'),
(1544, 0, 171, '湖北省', '十堰市', '郧县'),
(1545, 0, 171, '湖北省', '十堰市', '郧西县'),
(1546, 0, 171, '湖北省', '十堰市', '竹山县'),
(1547, 0, 171, '湖北省', '十堰市', '竹溪县'),
(1548, 0, 171, '湖北省', '十堰市', '房县'),
(1549, 0, 171, '湖北省', '十堰市', '丹江口市'),
(1550, 0, 172, '湖北省', '宜昌市', '西陵区'),
(1551, 0, 172, '湖北省', '宜昌市', '伍家岗区'),
(1552, 0, 172, '湖北省', '宜昌市', '点军区'),
(1553, 0, 172, '湖北省', '宜昌市', '猇亭区'),
(1554, 0, 172, '湖北省', '宜昌市', '夷陵区'),
(1555, 0, 172, '湖北省', '宜昌市', '远安县'),
(1556, 0, 172, '湖北省', '宜昌市', '兴山县'),
(1557, 0, 172, '湖北省', '宜昌市', '秭归县'),
(1558, 0, 172, '湖北省', '宜昌市', '长阳土家族自治县'),
(1559, 0, 172, '湖北省', '宜昌市', '五峰土家族自治县'),
(1560, 0, 172, '湖北省', '宜昌市', '宜都市'),
(1561, 0, 172, '湖北省', '宜昌市', '当阳市'),
(1562, 0, 172, '湖北省', '宜昌市', '枝江市'),
(1563, 0, 173, '湖北省', '襄樊市', '襄城区'),
(1564, 0, 173, '湖北省', '襄樊市', '樊城区'),
(1565, 0, 173, '湖北省', '襄樊市', '襄阳区'),
(1566, 0, 173, '湖北省', '襄樊市', '南漳县'),
(1567, 0, 173, '湖北省', '襄樊市', '谷城县'),
(1568, 0, 173, '湖北省', '襄樊市', '保康县'),
(1569, 0, 173, '湖北省', '襄樊市', '老河口市'),
(1570, 0, 173, '湖北省', '襄樊市', '枣阳市'),
(1571, 0, 173, '湖北省', '襄樊市', '宜城市'),
(1572, 0, 174, '湖北省', '鄂州市', '梁子湖区'),
(1573, 0, 174, '湖北省', '鄂州市', '华容区'),
(1574, 0, 174, '湖北省', '鄂州市', '鄂城区'),
(1575, 0, 175, '湖北省', '荆门市', '东宝区'),
(1576, 0, 175, '湖北省', '荆门市', '掇刀区'),
(1577, 0, 175, '湖北省', '荆门市', '京山县'),
(1578, 0, 175, '湖北省', '荆门市', '沙洋县'),
(1579, 0, 175, '湖北省', '荆门市', '钟祥市'),
(1580, 0, 176, '湖北省', '孝感市', '孝南区'),
(1581, 0, 176, '湖北省', '孝感市', '孝昌县'),
(1582, 0, 176, '湖北省', '孝感市', '大悟县'),
(1583, 0, 176, '湖北省', '孝感市', '云梦县'),
(1584, 0, 176, '湖北省', '孝感市', '应城市'),
(1585, 0, 176, '湖北省', '孝感市', '安陆市'),
(1586, 0, 176, '湖北省', '孝感市', '汉川市'),
(1587, 0, 177, '湖北省', '荆州市', '沙市区'),
(1588, 0, 177, '湖北省', '荆州市', '荆州区'),
(1589, 0, 177, '湖北省', '荆州市', '公安县'),
(1590, 0, 177, '湖北省', '荆州市', '监利县'),
(1591, 0, 177, '湖北省', '荆州市', '江陵县'),
(1592, 0, 177, '湖北省', '荆州市', '石首市'),
(1593, 0, 177, '湖北省', '荆州市', '洪湖市'),
(1594, 0, 177, '湖北省', '荆州市', '松滋市'),
(1595, 0, 178, '湖北省', '黄冈市', '黄州区'),
(1596, 0, 178, '湖北省', '黄冈市', '团风县'),
(1597, 0, 178, '湖北省', '黄冈市', '红安县'),
(1598, 0, 178, '湖北省', '黄冈市', '罗田县'),
(1599, 0, 178, '湖北省', '黄冈市', '英山县'),
(1600, 0, 178, '湖北省', '黄冈市', '浠水县'),
(1601, 0, 178, '湖北省', '黄冈市', '蕲春县'),
(1602, 0, 178, '湖北省', '黄冈市', '黄梅县'),
(1603, 0, 178, '湖北省', '黄冈市', '麻城市'),
(1604, 0, 178, '湖北省', '黄冈市', '武穴市'),
(1605, 0, 179, '湖北省', '咸宁市', '咸安区'),
(1606, 0, 179, '湖北省', '咸宁市', '嘉鱼县'),
(1607, 0, 179, '湖北省', '咸宁市', '通城县'),
(1608, 0, 179, '湖北省', '咸宁市', '崇阳县'),
(1609, 0, 179, '湖北省', '咸宁市', '通山县'),
(1610, 0, 179, '湖北省', '咸宁市', '赤壁市'),
(1611, 0, 180, '湖北省', '随州市', '曾都区'),
(1612, 0, 180, '湖北省', '随州市', '广水市'),
(1613, 0, 181, '湖北省', '恩施土家族苗族自治州', '恩施市'),
(1614, 0, 181, '湖北省', '恩施土家族苗族自治州', '利川市'),
(1615, 0, 181, '湖北省', '恩施土家族苗族自治州', '建始县'),
(1616, 0, 181, '湖北省', '恩施土家族苗族自治州', '巴东县'),
(1617, 0, 181, '湖北省', '恩施土家族苗族自治州', '宣恩县'),
(1618, 0, 181, '湖北省', '恩施土家族苗族自治州', '咸丰县'),
(1619, 0, 181, '湖北省', '恩施土家族苗族自治州', '来凤县'),
(1620, 0, 181, '湖北省', '恩施土家族苗族自治州', '鹤峰县'),
(1621, 0, 182, '湖北省', '神农架', '仙桃市'),
(1622, 0, 182, '湖北省', '神农架', '潜江市'),
(1623, 0, 182, '湖北省', '神农架', '天门市'),
(1624, 0, 182, '湖北省', '神农架', '神农架林区'),
(1625, 0, 183, '湖南省', '长沙市', '芙蓉区'),
(1626, 0, 183, '湖南省', '长沙市', '天心区'),
(1627, 0, 183, '湖南省', '长沙市', '岳麓区'),
(1628, 0, 183, '湖南省', '长沙市', '开福区'),
(1629, 0, 183, '湖南省', '长沙市', '雨花区'),
(1630, 0, 183, '湖南省', '长沙市', '长沙县'),
(1631, 0, 183, '湖南省', '长沙市', '望城县'),
(1632, 0, 183, '湖南省', '长沙市', '宁乡县'),
(1633, 0, 183, '湖南省', '长沙市', '浏阳市'),
(1634, 0, 184, '湖南省', '株洲市', '荷塘区'),
(1635, 0, 184, '湖南省', '株洲市', '芦淞区'),
(1636, 0, 184, '湖南省', '株洲市', '石峰区'),
(1637, 0, 184, '湖南省', '株洲市', '天元区'),
(1638, 0, 184, '湖南省', '株洲市', '株洲县'),
(1639, 0, 184, '湖南省', '株洲市', '攸县'),
(1640, 0, 184, '湖南省', '株洲市', '茶陵县'),
(1641, 0, 184, '湖南省', '株洲市', '炎陵县'),
(1642, 0, 184, '湖南省', '株洲市', '醴陵市'),
(1643, 0, 185, '湖南省', '湘潭市', '雨湖区'),
(1644, 0, 185, '湖南省', '湘潭市', '岳塘区'),
(1645, 0, 185, '湖南省', '湘潭市', '湘潭县'),
(1646, 0, 185, '湖南省', '湘潭市', '湘乡市'),
(1647, 0, 185, '湖南省', '湘潭市', '韶山市'),
(1648, 0, 186, '湖南省', '衡阳市', '珠晖区'),
(1649, 0, 186, '湖南省', '衡阳市', '雁峰区'),
(1650, 0, 186, '湖南省', '衡阳市', '石鼓区'),
(1651, 0, 186, '湖南省', '衡阳市', '蒸湘区'),
(1652, 0, 186, '湖南省', '衡阳市', '南岳区'),
(1653, 0, 186, '湖南省', '衡阳市', '衡阳县'),
(1654, 0, 186, '湖南省', '衡阳市', '衡南县'),
(1655, 0, 186, '湖南省', '衡阳市', '衡山县'),
(1656, 0, 186, '湖南省', '衡阳市', '衡东县'),
(1657, 0, 186, '湖南省', '衡阳市', '祁东县'),
(1658, 0, 186, '湖南省', '衡阳市', '耒阳市'),
(1659, 0, 186, '湖南省', '衡阳市', '常宁市'),
(1660, 0, 187, '湖南省', '邵阳市', '双清区'),
(1661, 0, 187, '湖南省', '邵阳市', '大祥区'),
(1662, 0, 187, '湖南省', '邵阳市', '北塔区'),
(1663, 0, 187, '湖南省', '邵阳市', '邵东县'),
(1664, 0, 187, '湖南省', '邵阳市', '新邵县'),
(1665, 0, 187, '湖南省', '邵阳市', '邵阳县'),
(1666, 0, 187, '湖南省', '邵阳市', '隆回县'),
(1667, 0, 187, '湖南省', '邵阳市', '洞口县'),
(1668, 0, 187, '湖南省', '邵阳市', '绥宁县'),
(1669, 0, 187, '湖南省', '邵阳市', '新宁县'),
(1670, 0, 187, '湖南省', '邵阳市', '城步苗族自治县'),
(1671, 0, 187, '湖南省', '邵阳市', '武冈市'),
(1672, 0, 188, '湖南省', '岳阳市', '岳阳楼区'),
(1673, 0, 188, '湖南省', '岳阳市', '云溪区'),
(1674, 0, 188, '湖南省', '岳阳市', '君山区'),
(1675, 0, 188, '湖南省', '岳阳市', '岳阳县'),
(1676, 0, 188, '湖南省', '岳阳市', '华容县'),
(1677, 0, 188, '湖南省', '岳阳市', '湘阴县'),
(1678, 0, 188, '湖南省', '岳阳市', '平江县'),
(1679, 0, 188, '湖南省', '岳阳市', '汨罗市'),
(1680, 0, 188, '湖南省', '岳阳市', '临湘市'),
(1681, 0, 189, '湖南省', '常德市', '武陵区'),
(1682, 0, 189, '湖南省', '常德市', '鼎城区'),
(1683, 0, 189, '湖南省', '常德市', '安乡县'),
(1684, 0, 189, '湖南省', '常德市', '汉寿县'),
(1685, 0, 189, '湖南省', '常德市', '澧县'),
(1686, 0, 189, '湖南省', '常德市', '临澧县'),
(1687, 0, 189, '湖南省', '常德市', '桃源县'),
(1688, 0, 189, '湖南省', '常德市', '石门县'),
(1689, 0, 189, '湖南省', '常德市', '津市市'),
(1690, 0, 190, '湖南省', '张家界市', '永定区'),
(1691, 0, 190, '湖南省', '张家界市', '武陵源区'),
(1692, 0, 190, '湖南省', '张家界市', '慈利县'),
(1693, 0, 190, '湖南省', '张家界市', '桑植县'),
(1694, 0, 191, '湖南省', '益阳市', '资阳区'),
(1695, 0, 191, '湖南省', '益阳市', '赫山区'),
(1696, 0, 191, '湖南省', '益阳市', '南县'),
(1697, 0, 191, '湖南省', '益阳市', '桃江县'),
(1698, 0, 191, '湖南省', '益阳市', '安化县'),
(1699, 0, 191, '湖南省', '益阳市', '沅江市'),
(1700, 0, 192, '湖南省', '郴州市', '北湖区'),
(1701, 0, 192, '湖南省', '郴州市', '苏仙区'),
(1702, 0, 192, '湖南省', '郴州市', '桂阳县'),
(1703, 0, 192, '湖南省', '郴州市', '宜章县'),
(1704, 0, 192, '湖南省', '郴州市', '永兴县'),
(1705, 0, 192, '湖南省', '郴州市', '嘉禾县'),
(1706, 0, 192, '湖南省', '郴州市', '临武县'),
(1707, 0, 192, '湖南省', '郴州市', '汝城县'),
(1708, 0, 192, '湖南省', '郴州市', '桂东县'),
(1709, 0, 192, '湖南省', '郴州市', '安仁县'),
(1710, 0, 192, '湖南省', '郴州市', '资兴市'),
(1711, 0, 193, '湖南省', '永州市', '芝山区'),
(1712, 0, 193, '湖南省', '永州市', '冷水滩区'),
(1713, 0, 193, '湖南省', '永州市', '祁阳县'),
(1714, 0, 193, '湖南省', '永州市', '东安县'),
(1715, 0, 193, '湖南省', '永州市', '双牌县'),
(1716, 0, 193, '湖南省', '永州市', '道县'),
(1717, 0, 193, '湖南省', '永州市', '江永县'),
(1718, 0, 193, '湖南省', '永州市', '宁远县'),
(1719, 0, 193, '湖南省', '永州市', '蓝山县'),
(1720, 0, 193, '湖南省', '永州市', '新田县'),
(1721, 0, 193, '湖南省', '永州市', '江华瑶族自治县'),
(1722, 0, 194, '湖南省', '怀化市', '鹤城区'),
(1723, 0, 194, '湖南省', '怀化市', '中方县'),
(1724, 0, 194, '湖南省', '怀化市', '沅陵县'),
(1725, 0, 194, '湖南省', '怀化市', '辰溪县'),
(1726, 0, 194, '湖南省', '怀化市', '溆浦县'),
(1727, 0, 194, '湖南省', '怀化市', '会同县'),
(1728, 0, 194, '湖南省', '怀化市', '麻阳苗族自治县'),
(1729, 0, 194, '湖南省', '怀化市', '新晃侗族自治县'),
(1730, 0, 194, '湖南省', '怀化市', '芷江侗族自治县'),
(1731, 0, 194, '湖南省', '怀化市', '靖州苗族侗族自治县'),
(1732, 0, 194, '湖南省', '怀化市', '通道侗族自治县'),
(1733, 0, 194, '湖南省', '怀化市', '洪江市'),
(1734, 0, 195, '湖南省', '娄底市', '娄星区'),
(1735, 0, 195, '湖南省', '娄底市', '双峰县'),
(1736, 0, 195, '湖南省', '娄底市', '新化县'),
(1737, 0, 195, '湖南省', '娄底市', '冷水江市'),
(1738, 0, 195, '湖南省', '娄底市', '涟源市'),
(1739, 0, 196, '湖南省', '湘西土家族苗族自治州', '吉首市'),
(1740, 0, 196, '湖南省', '湘西土家族苗族自治州', '泸溪县'),
(1741, 0, 196, '湖南省', '湘西土家族苗族自治州', '凤凰县'),
(1742, 0, 196, '湖南省', '湘西土家族苗族自治州', '花垣县'),
(1743, 0, 196, '湖南省', '湘西土家族苗族自治州', '保靖县'),
(1744, 0, 196, '湖南省', '湘西土家族苗族自治州', '古丈县'),
(1745, 0, 196, '湖南省', '湘西土家族苗族自治州', '永顺县'),
(1746, 0, 196, '湖南省', '湘西土家族苗族自治州', '龙山县'),
(1747, 0, 197, '广东省', '广州市', '东山区'),
(1748, 0, 197, '广东省', '广州市', '荔湾区'),
(1749, 0, 197, '广东省', '广州市', '越秀区'),
(1750, 0, 197, '广东省', '广州市', '海珠区'),
(1751, 0, 197, '广东省', '广州市', '天河区'),
(1752, 0, 197, '广东省', '广州市', '芳村区'),
(1753, 0, 197, '广东省', '广州市', '白云区'),
(1754, 0, 197, '广东省', '广州市', '黄埔区'),
(1755, 0, 197, '广东省', '广州市', '番禺区'),
(1756, 0, 197, '广东省', '广州市', '花都区'),
(1757, 0, 197, '广东省', '广州市', '增城市'),
(1758, 0, 197, '广东省', '广州市', '从化市'),
(1759, 0, 198, '广东省', '韶关市', '武江区'),
(1760, 0, 198, '广东省', '韶关市', '浈江区'),
(1761, 0, 198, '广东省', '韶关市', '曲江区'),
(1762, 0, 198, '广东省', '韶关市', '始兴县'),
(1763, 0, 198, '广东省', '韶关市', '仁化县'),
(1764, 0, 198, '广东省', '韶关市', '翁源县'),
(1765, 0, 198, '广东省', '韶关市', '乳源瑶族自治县'),
(1766, 0, 198, '广东省', '韶关市', '新丰县'),
(1767, 0, 198, '广东省', '韶关市', '乐昌市'),
(1768, 0, 198, '广东省', '韶关市', '南雄市'),
(1769, 0, 199, '广东省', '深圳市', '罗湖区'),
(1770, 0, 199, '广东省', '深圳市', '福田区'),
(1771, 0, 199, '广东省', '深圳市', '南山区'),
(1772, 0, 199, '广东省', '深圳市', '宝安区'),
(1773, 0, 199, '广东省', '深圳市', '龙岗区'),
(1774, 0, 199, '广东省', '深圳市', '盐田区'),
(1775, 0, 200, '广东省', '珠海市', '香洲区'),
(1776, 0, 200, '广东省', '珠海市', '斗门区'),
(1777, 0, 200, '广东省', '珠海市', '金湾区'),
(1778, 0, 201, '广东省', '汕头市', '龙湖区'),
(1779, 0, 201, '广东省', '汕头市', '金平区'),
(1780, 0, 201, '广东省', '汕头市', '濠江区'),
(1781, 0, 201, '广东省', '汕头市', '潮阳区'),
(1782, 0, 201, '广东省', '汕头市', '潮南区'),
(1783, 0, 201, '广东省', '汕头市', '澄海区'),
(1784, 0, 201, '广东省', '汕头市', '南澳县'),
(1785, 0, 202, '广东省', '佛山市', '禅城区'),
(1786, 0, 202, '广东省', '佛山市', '南海区'),
(1787, 0, 202, '广东省', '佛山市', '顺德区'),
(1788, 0, 202, '广东省', '佛山市', '三水区'),
(1789, 0, 202, '广东省', '佛山市', '高明区'),
(1790, 0, 203, '广东省', '江门市', '蓬江区'),
(1791, 0, 203, '广东省', '江门市', '江海区'),
(1792, 0, 203, '广东省', '江门市', '新会区'),
(1793, 0, 203, '广东省', '江门市', '台山市'),
(1794, 0, 203, '广东省', '江门市', '开平市'),
(1795, 0, 203, '广东省', '江门市', '鹤山市'),
(1796, 0, 203, '广东省', '江门市', '恩平市'),
(1797, 0, 204, '广东省', '湛江市', '赤坎区'),
(1798, 0, 204, '广东省', '湛江市', '霞山区'),
(1799, 0, 204, '广东省', '湛江市', '坡头区'),
(1800, 0, 204, '广东省', '湛江市', '麻章区'),
(1801, 0, 204, '广东省', '湛江市', '遂溪县'),
(1802, 0, 204, '广东省', '湛江市', '徐闻县'),
(1803, 0, 204, '广东省', '湛江市', '廉江市'),
(1804, 0, 204, '广东省', '湛江市', '雷州市'),
(1805, 0, 204, '广东省', '湛江市', '吴川市'),
(1806, 0, 205, '广东省', '茂名市', '茂南区'),
(1807, 0, 205, '广东省', '茂名市', '茂港区'),
(1808, 0, 205, '广东省', '茂名市', '电白县'),
(1809, 0, 205, '广东省', '茂名市', '高州市'),
(1810, 0, 205, '广东省', '茂名市', '化州市'),
(1811, 0, 205, '广东省', '茂名市', '信宜市'),
(1812, 0, 206, '广东省', '肇庆市', '端州区'),
(1813, 0, 206, '广东省', '肇庆市', '鼎湖区'),
(1814, 0, 206, '广东省', '肇庆市', '广宁县'),
(1815, 0, 206, '广东省', '肇庆市', '怀集县'),
(1816, 0, 206, '广东省', '肇庆市', '封开县'),
(1817, 0, 206, '广东省', '肇庆市', '德庆县'),
(1818, 0, 206, '广东省', '肇庆市', '高要市'),
(1819, 0, 206, '广东省', '肇庆市', '四会市'),
(1820, 0, 207, '广东省', '惠州市', '惠城区'),
(1821, 0, 207, '广东省', '惠州市', '惠阳区'),
(1822, 0, 207, '广东省', '惠州市', '博罗县'),
(1823, 0, 207, '广东省', '惠州市', '惠东县'),
(1824, 0, 207, '广东省', '惠州市', '龙门县'),
(1825, 0, 208, '广东省', '梅州市', '梅江区'),
(1826, 0, 208, '广东省', '梅州市', '梅县'),
(1827, 0, 208, '广东省', '梅州市', '大埔县'),
(1828, 0, 208, '广东省', '梅州市', '丰顺县'),
(1829, 0, 208, '广东省', '梅州市', '五华县'),
(1830, 0, 208, '广东省', '梅州市', '平远县'),
(1831, 0, 208, '广东省', '梅州市', '蕉岭县'),
(1832, 0, 208, '广东省', '梅州市', '兴宁市'),
(1833, 0, 209, '广东省', '汕尾市', '城区'),
(1834, 0, 209, '广东省', '汕尾市', '海丰县'),
(1835, 0, 209, '广东省', '汕尾市', '陆河县'),
(1836, 0, 209, '广东省', '汕尾市', '陆丰市'),
(1837, 0, 210, '广东省', '河源市', '源城区'),
(1838, 0, 210, '广东省', '河源市', '紫金县'),
(1839, 0, 210, '广东省', '河源市', '龙川县'),
(1840, 0, 210, '广东省', '河源市', '连平县'),
(1841, 0, 210, '广东省', '河源市', '和平县'),
(1842, 0, 210, '广东省', '河源市', '东源县'),
(1843, 0, 211, '广东省', '阳江市', '江城区'),
(1844, 0, 211, '广东省', '阳江市', '阳西县'),
(1845, 0, 211, '广东省', '阳江市', '阳东县'),
(1846, 0, 211, '广东省', '阳江市', '阳春市'),
(1847, 0, 212, '广东省', '清远市', '清城区'),
(1848, 0, 212, '广东省', '清远市', '佛冈县'),
(1849, 0, 212, '广东省', '清远市', '阳山县'),
(1850, 0, 212, '广东省', '清远市', '连山壮族瑶族自治县'),
(1851, 0, 212, '广东省', '清远市', '连南瑶族自治县'),
(1852, 0, 212, '广东省', '清远市', '清新县'),
(1853, 0, 212, '广东省', '清远市', '英德市'),
(1854, 0, 212, '广东省', '清远市', '连州市'),
(1855, 0, 215, '广东省', '潮州市', '湘桥区'),
(1856, 0, 215, '广东省', '潮州市', '潮安县'),
(1857, 0, 215, '广东省', '潮州市', '饶平县'),
(1858, 0, 216, '广东省', '揭阳市', '榕城区'),
(1859, 0, 216, '广东省', '揭阳市', '揭东县'),
(1860, 0, 216, '广东省', '揭阳市', '揭西县'),
(1861, 0, 216, '广东省', '揭阳市', '惠来县'),
(1862, 0, 216, '广东省', '揭阳市', '普宁市'),
(1863, 0, 217, '广东省', '云浮市', '云城区'),
(1864, 0, 217, '广东省', '云浮市', '新兴县'),
(1865, 0, 217, '广东省', '云浮市', '郁南县'),
(1866, 0, 217, '广东省', '云浮市', '云安县'),
(1867, 0, 217, '广东省', '云浮市', '罗定市'),
(1868, 0, 218, '广西壮族自治区', '南宁市', '兴宁区'),
(1869, 0, 218, '广西壮族自治区', '南宁市', '青秀区'),
(1870, 0, 218, '广西壮族自治区', '南宁市', '江南区'),
(1871, 0, 218, '广西壮族自治区', '南宁市', '西乡塘区'),
(1872, 0, 218, '广西壮族自治区', '南宁市', '良庆区'),
(1873, 0, 218, '广西壮族自治区', '南宁市', '邕宁区'),
(1874, 0, 218, '广西壮族自治区', '南宁市', '武鸣县'),
(1875, 0, 218, '广西壮族自治区', '南宁市', '隆安县'),
(1876, 0, 218, '广西壮族自治区', '南宁市', '马山县'),
(1877, 0, 218, '广西壮族自治区', '南宁市', '上林县'),
(1878, 0, 218, '广西壮族自治区', '南宁市', '宾阳县'),
(1879, 0, 218, '广西壮族自治区', '南宁市', '横县'),
(1880, 0, 219, '广西壮族自治区', '柳州市', '城中区'),
(1881, 0, 219, '广西壮族自治区', '柳州市', '鱼峰区'),
(1882, 0, 219, '广西壮族自治区', '柳州市', '柳南区'),
(1883, 0, 219, '广西壮族自治区', '柳州市', '柳北区'),
(1884, 0, 219, '广西壮族自治区', '柳州市', '柳江县'),
(1885, 0, 219, '广西壮族自治区', '柳州市', '柳城县'),
(1886, 0, 219, '广西壮族自治区', '柳州市', '鹿寨县'),
(1887, 0, 219, '广西壮族自治区', '柳州市', '融安县'),
(1888, 0, 219, '广西壮族自治区', '柳州市', '融水苗族自治县'),
(1889, 0, 219, '广西壮族自治区', '柳州市', '三江侗族自治县'),
(1890, 0, 220, '广西壮族自治区', '桂林市', '秀峰区'),
(1891, 0, 220, '广西壮族自治区', '桂林市', '叠彩区'),
(1892, 0, 220, '广西壮族自治区', '桂林市', '象山区'),
(1893, 0, 220, '广西壮族自治区', '桂林市', '七星区'),
(1894, 0, 220, '广西壮族自治区', '桂林市', '雁山区'),
(1895, 0, 220, '广西壮族自治区', '桂林市', '阳朔县'),
(1896, 0, 220, '广西壮族自治区', '桂林市', '临桂县'),
(1897, 0, 220, '广西壮族自治区', '桂林市', '灵川县'),
(1898, 0, 220, '广西壮族自治区', '桂林市', '全州县'),
(1899, 0, 220, '广西壮族自治区', '桂林市', '兴安县'),
(1900, 0, 220, '广西壮族自治区', '桂林市', '永福县'),
(1901, 0, 220, '广西壮族自治区', '桂林市', '灌阳县'),
(1902, 0, 220, '广西壮族自治区', '桂林市', '龙胜各族自治县'),
(1903, 0, 220, '广西壮族自治区', '桂林市', '资源县'),
(1904, 0, 220, '广西壮族自治区', '桂林市', '平乐县'),
(1905, 0, 220, '广西壮族自治区', '桂林市', '荔蒲县'),
(1906, 0, 220, '广西壮族自治区', '桂林市', '恭城瑶族自治县'),
(1907, 0, 221, '广西壮族自治区', '梧州市', '万秀区'),
(1908, 0, 221, '广西壮族自治区', '梧州市', '蝶山区'),
(1909, 0, 221, '广西壮族自治区', '梧州市', '长洲区'),
(1910, 0, 221, '广西壮族自治区', '梧州市', '苍梧县'),
(1911, 0, 221, '广西壮族自治区', '梧州市', '藤县'),
(1912, 0, 221, '广西壮族自治区', '梧州市', '蒙山县'),
(1913, 0, 221, '广西壮族自治区', '梧州市', '岑溪市'),
(1914, 0, 222, '广西壮族自治区', '北海市', '海城区'),
(1915, 0, 222, '广西壮族自治区', '北海市', '银海区'),
(1916, 0, 222, '广西壮族自治区', '北海市', '铁山港区'),
(1917, 0, 222, '广西壮族自治区', '北海市', '合浦县'),
(1918, 0, 223, '广西壮族自治区', '防城港市', '港口区'),
(1919, 0, 223, '广西壮族自治区', '防城港市', '防城区'),
(1920, 0, 223, '广西壮族自治区', '防城港市', '上思县'),
(1921, 0, 223, '广西壮族自治区', '防城港市', '东兴市'),
(1922, 0, 224, '广西壮族自治区', '钦州市', '钦南区'),
(1923, 0, 224, '广西壮族自治区', '钦州市', '钦北区'),
(1924, 0, 224, '广西壮族自治区', '钦州市', '灵山县'),
(1925, 0, 224, '广西壮族自治区', '钦州市', '浦北县'),
(1926, 0, 225, '广西壮族自治区', '贵港市', '港北区'),
(1927, 0, 225, '广西壮族自治区', '贵港市', '港南区'),
(1928, 0, 225, '广西壮族自治区', '贵港市', '覃塘区'),
(1929, 0, 225, '广西壮族自治区', '贵港市', '平南县'),
(1930, 0, 225, '广西壮族自治区', '贵港市', '桂平市'),
(1931, 0, 226, '广西壮族自治区', '玉林市', '玉州区'),
(1932, 0, 226, '广西壮族自治区', '玉林市', '容县'),
(1933, 0, 226, '广西壮族自治区', '玉林市', '陆川县'),
(1934, 0, 226, '广西壮族自治区', '玉林市', '博白县'),
(1935, 0, 226, '广西壮族自治区', '玉林市', '兴业县'),
(1936, 0, 226, '广西壮族自治区', '玉林市', '北流市'),
(1937, 0, 227, '广西壮族自治区', '百色市', '右江区'),
(1938, 0, 227, '广西壮族自治区', '百色市', '田阳县'),
(1939, 0, 227, '广西壮族自治区', '百色市', '田东县'),
(1940, 0, 227, '广西壮族自治区', '百色市', '平果县'),
(1941, 0, 227, '广西壮族自治区', '百色市', '德保县'),
(1942, 0, 227, '广西壮族自治区', '百色市', '靖西县'),
(1943, 0, 227, '广西壮族自治区', '百色市', '那坡县'),
(1944, 0, 227, '广西壮族自治区', '百色市', '凌云县'),
(1945, 0, 227, '广西壮族自治区', '百色市', '乐业县'),
(1946, 0, 227, '广西壮族自治区', '百色市', '田林县'),
(1947, 0, 227, '广西壮族自治区', '百色市', '西林县'),
(1948, 0, 227, '广西壮族自治区', '百色市', '隆林各族自治县'),
(1949, 0, 228, '广西壮族自治区', '贺州市', '八步区'),
(1950, 0, 228, '广西壮族自治区', '贺州市', '昭平县'),
(1951, 0, 228, '广西壮族自治区', '贺州市', '钟山县'),
(1952, 0, 228, '广西壮族自治区', '贺州市', '富川瑶族自治县'),
(1953, 0, 229, '广西壮族自治区', '河池市', '金城江区'),
(1954, 0, 229, '广西壮族自治区', '河池市', '南丹县'),
(1955, 0, 229, '广西壮族自治区', '河池市', '天峨县'),
(1956, 0, 229, '广西壮族自治区', '河池市', '凤山县'),
(1957, 0, 229, '广西壮族自治区', '河池市', '东兰县'),
(1958, 0, 229, '广西壮族自治区', '河池市', '罗城仫佬族自治县'),
(1959, 0, 229, '广西壮族自治区', '河池市', '环江毛南族自治县'),
(1960, 0, 229, '广西壮族自治区', '河池市', '巴马瑶族自治县'),
(1961, 0, 229, '广西壮族自治区', '河池市', '都安瑶族自治县'),
(1962, 0, 229, '广西壮族自治区', '河池市', '大化瑶族自治县'),
(1963, 0, 229, '广西壮族自治区', '河池市', '宜州市'),
(1964, 0, 230, '广西壮族自治区', '来宾市', '兴宾区'),
(1965, 0, 230, '广西壮族自治区', '来宾市', '忻城县'),
(1966, 0, 230, '广西壮族自治区', '来宾市', '象州县'),
(1967, 0, 230, '广西壮族自治区', '来宾市', '武宣县'),
(1968, 0, 230, '广西壮族自治区', '来宾市', '金秀瑶族自治县'),
(1969, 0, 230, '广西壮族自治区', '来宾市', '合山市'),
(1970, 0, 231, '广西壮族自治区', '崇左市', '江洲区'),
(1971, 0, 231, '广西壮族自治区', '崇左市', '扶绥县'),
(1972, 0, 231, '广西壮族自治区', '崇左市', '宁明县'),
(1973, 0, 231, '广西壮族自治区', '崇左市', '龙州县'),
(1974, 0, 231, '广西壮族自治区', '崇左市', '大新县'),
(1975, 0, 231, '广西壮族自治区', '崇左市', '天等县'),
(1976, 0, 231, '广西壮族自治区', '崇左市', '凭祥市'),
(1977, 0, 232, '海南省', '海口市', '秀英区'),
(1978, 0, 232, '海南省', '海口市', '龙华区'),
(1979, 0, 232, '海南省', '海口市', '琼山区'),
(1980, 0, 232, '海南省', '海口市', '美兰区'),
(1981, 0, 233, '海南省', '三亚市', '五指山市'),
(1982, 0, 233, '海南省', '三亚市', '琼海市'),
(1983, 0, 233, '海南省', '三亚市', '儋州市'),
(1984, 0, 233, '海南省', '三亚市', '文昌市'),
(1985, 0, 233, '海南省', '三亚市', '万宁市'),
(1986, 0, 233, '海南省', '三亚市', '东方市'),
(1987, 0, 233, '海南省', '三亚市', '定安县'),
(1988, 0, 233, '海南省', '三亚市', '屯昌县'),
(1989, 0, 233, '海南省', '三亚市', '澄迈县'),
(1990, 0, 233, '海南省', '三亚市', '临高县'),
(1991, 0, 233, '海南省', '三亚市', '白沙黎族自治县'),
(1992, 0, 233, '海南省', '三亚市', '昌江黎族自治县'),
(1993, 0, 233, '海南省', '三亚市', '乐东黎族自治县'),
(1994, 0, 233, '海南省', '三亚市', '陵水黎族自治县'),
(1995, 0, 233, '海南省', '三亚市', '保亭黎族苗族自治县'),
(1996, 0, 233, '海南省', '三亚市', '琼中黎族苗族自治县'),
(1997, 0, 233, '海南省', '三亚市', '西沙群岛'),
(1998, 0, 233, '海南省', '三亚市', '南沙群岛'),
(1999, 0, 233, '海南省', '三亚市', '中沙群岛的岛礁及其海域'),
(2000, 0, 234, '重庆市', '重庆市', '万州区'),
(2001, 0, 234, '重庆市', '重庆市', '涪陵区'),
(2002, 0, 234, '重庆市', '重庆市', '渝中区'),
(2003, 0, 234, '重庆市', '重庆市', '大渡口区'),
(2004, 0, 234, '重庆市', '重庆市', '江北区'),
(2005, 0, 234, '重庆市', '重庆市', '沙坪坝区'),
(2006, 0, 234, '重庆市', '重庆市', '九龙坡区'),
(2007, 0, 234, '重庆市', '重庆市', '南岸区'),
(2008, 0, 234, '重庆市', '重庆市', '北碚区'),
(2009, 0, 234, '重庆市', '重庆市', '万盛区'),
(2010, 0, 234, '重庆市', '重庆市', '双桥区'),
(2011, 0, 234, '重庆市', '重庆市', '渝北区'),
(2012, 0, 234, '重庆市', '重庆市', '巴南区'),
(2013, 0, 234, '重庆市', '重庆市', '黔江区'),
(2014, 0, 234, '重庆市', '重庆市', '长寿区'),
(2015, 0, 234, '重庆市', '重庆市', '綦江县'),
(2016, 0, 234, '重庆市', '重庆市', '潼南县'),
(2017, 0, 234, '重庆市', '重庆市', '铜梁县'),
(2018, 0, 234, '重庆市', '重庆市', '大足县'),
(2019, 0, 234, '重庆市', '重庆市', '荣昌县'),
(2020, 0, 234, '重庆市', '重庆市', '璧山县'),
(2021, 0, 234, '重庆市', '重庆市', '梁平县'),
(2022, 0, 234, '重庆市', '重庆市', '城口县'),
(2023, 0, 234, '重庆市', '重庆市', '丰都县'),
(2024, 0, 234, '重庆市', '重庆市', '垫江县'),
(2025, 0, 234, '重庆市', '重庆市', '武隆县'),
(2026, 0, 234, '重庆市', '重庆市', '忠县'),
(2027, 0, 234, '重庆市', '重庆市', '开县'),
(2028, 0, 234, '重庆市', '重庆市', '云阳县'),
(2029, 0, 234, '重庆市', '重庆市', '奉节县'),
(2030, 0, 234, '重庆市', '重庆市', '巫山县'),
(2031, 0, 234, '重庆市', '重庆市', '巫溪县'),
(2032, 0, 234, '重庆市', '重庆市', '石柱土家族自治县'),
(2033, 0, 234, '重庆市', '重庆市', '秀山土家族苗族自治县'),
(2034, 0, 234, '重庆市', '重庆市', '酉阳土家族苗族自治县'),
(2035, 0, 234, '重庆市', '重庆市', '彭水苗族土家族自治县'),
(2036, 0, 234, '重庆市', '重庆市', '江津市'),
(2037, 0, 234, '重庆市', '重庆市', '合川市'),
(2038, 0, 234, '重庆市', '重庆市', '永川市'),
(2039, 0, 234, '重庆市', '重庆市', '南川市'),
(2040, 0, 235, '四川省', '成都市', '锦江区'),
(2041, 0, 235, '四川省', '成都市', '青羊区'),
(2042, 0, 235, '四川省', '成都市', '金牛区'),
(2043, 0, 235, '四川省', '成都市', '武侯区'),
(2044, 0, 235, '四川省', '成都市', '成华区'),
(2045, 0, 235, '四川省', '成都市', '龙泉驿区'),
(2046, 0, 235, '四川省', '成都市', '青白江区'),
(2047, 0, 235, '四川省', '成都市', '新都区'),
(2048, 0, 235, '四川省', '成都市', '温江区'),
(2049, 0, 235, '四川省', '成都市', '金堂县'),
(2050, 0, 235, '四川省', '成都市', '双流县'),
(2051, 0, 235, '四川省', '成都市', '郫县'),
(2052, 0, 235, '四川省', '成都市', '大邑县'),
(2053, 0, 235, '四川省', '成都市', '蒲江县'),
(2054, 0, 235, '四川省', '成都市', '新津县'),
(2055, 0, 235, '四川省', '成都市', '都江堰市'),
(2056, 0, 235, '四川省', '成都市', '彭州市'),
(2057, 0, 235, '四川省', '成都市', '邛崃市'),
(2058, 0, 235, '四川省', '成都市', '崇州市'),
(2059, 0, 236, '四川省', '自贡市', '自流井区'),
(2060, 0, 236, '四川省', '自贡市', '贡井区'),
(2061, 0, 236, '四川省', '自贡市', '大安区'),
(2062, 0, 236, '四川省', '自贡市', '沿滩区'),
(2063, 0, 236, '四川省', '自贡市', '荣县'),
(2064, 0, 236, '四川省', '自贡市', '富顺县'),
(2065, 0, 237, '四川省', '攀枝花市', '东区'),
(2066, 0, 237, '四川省', '攀枝花市', '西区'),
(2067, 0, 237, '四川省', '攀枝花市', '仁和区'),
(2068, 0, 237, '四川省', '攀枝花市', '米易县'),
(2069, 0, 237, '四川省', '攀枝花市', '盐边县'),
(2070, 0, 238, '四川省', '泸州市', '江阳区'),
(2071, 0, 238, '四川省', '泸州市', '纳溪区'),
(2072, 0, 238, '四川省', '泸州市', '龙马潭区'),
(2073, 0, 238, '四川省', '泸州市', '泸县'),
(2074, 0, 238, '四川省', '泸州市', '合江县'),
(2075, 0, 238, '四川省', '泸州市', '叙永县'),
(2076, 0, 238, '四川省', '泸州市', '古蔺县'),
(2077, 0, 239, '四川省', '德阳市', '旌阳区'),
(2078, 0, 239, '四川省', '德阳市', '中江县'),
(2079, 0, 239, '四川省', '德阳市', '罗江县'),
(2080, 0, 239, '四川省', '德阳市', '广汉市'),
(2081, 0, 239, '四川省', '德阳市', '什邡市'),
(2082, 0, 239, '四川省', '德阳市', '绵竹市'),
(2083, 0, 240, '四川省', '绵阳市', '涪城区'),
(2084, 0, 240, '四川省', '绵阳市', '游仙区'),
(2085, 0, 240, '四川省', '绵阳市', '三台县'),
(2086, 0, 240, '四川省', '绵阳市', '盐亭县'),
(2087, 0, 240, '四川省', '绵阳市', '安县'),
(2088, 0, 240, '四川省', '绵阳市', '梓潼县'),
(2089, 0, 240, '四川省', '绵阳市', '北川羌族自治县'),
(2090, 0, 240, '四川省', '绵阳市', '平武县'),
(2091, 0, 240, '四川省', '绵阳市', '江油市'),
(2092, 0, 241, '四川省', '广元市', '市中区'),
(2093, 0, 241, '四川省', '广元市', '元坝区'),
(2094, 0, 241, '四川省', '广元市', '朝天区'),
(2095, 0, 241, '四川省', '广元市', '旺苍县'),
(2096, 0, 241, '四川省', '广元市', '青川县'),
(2097, 0, 241, '四川省', '广元市', '剑阁县'),
(2098, 0, 241, '四川省', '广元市', '苍溪县'),
(2099, 0, 242, '四川省', '遂宁市', '船山区'),
(2100, 0, 242, '四川省', '遂宁市', '安居区'),
(2101, 0, 242, '四川省', '遂宁市', '蓬溪县'),
(2102, 0, 242, '四川省', '遂宁市', '射洪县'),
(2103, 0, 242, '四川省', '遂宁市', '大英县'),
(2104, 0, 243, '四川省', '内江市', '市中区'),
(2105, 0, 243, '四川省', '内江市', '东兴区'),
(2106, 0, 243, '四川省', '内江市', '威远县'),
(2107, 0, 243, '四川省', '内江市', '资中县'),
(2108, 0, 243, '四川省', '内江市', '隆昌县'),
(2109, 0, 244, '四川省', '乐山市', '市中区'),
(2110, 0, 244, '四川省', '乐山市', '沙湾区'),
(2111, 0, 244, '四川省', '乐山市', '五通桥区'),
(2112, 0, 244, '四川省', '乐山市', '金口河区'),
(2113, 0, 244, '四川省', '乐山市', '犍为县'),
(2114, 0, 244, '四川省', '乐山市', '井研县'),
(2115, 0, 244, '四川省', '乐山市', '夹江县'),
(2116, 0, 244, '四川省', '乐山市', '沐川县'),
(2117, 0, 244, '四川省', '乐山市', '峨边彝族自治县'),
(2118, 0, 244, '四川省', '乐山市', '马边彝族自治县'),
(2119, 0, 244, '四川省', '乐山市', '峨眉山市'),
(2120, 0, 245, '四川省', '南充市', '顺庆区'),
(2121, 0, 245, '四川省', '南充市', '高坪区'),
(2122, 0, 245, '四川省', '南充市', '嘉陵区'),
(2123, 0, 245, '四川省', '南充市', '南部县'),
(2124, 0, 245, '四川省', '南充市', '营山县'),
(2125, 0, 245, '四川省', '南充市', '蓬安县'),
(2126, 0, 245, '四川省', '南充市', '仪陇县'),
(2127, 0, 245, '四川省', '南充市', '西充县'),
(2128, 0, 245, '四川省', '南充市', '阆中市'),
(2129, 0, 246, '四川省', '眉山市', '东坡区'),
(2130, 0, 246, '四川省', '眉山市', '仁寿县'),
(2131, 0, 246, '四川省', '眉山市', '彭山县'),
(2132, 0, 246, '四川省', '眉山市', '洪雅县'),
(2133, 0, 246, '四川省', '眉山市', '丹棱县'),
(2134, 0, 246, '四川省', '眉山市', '青神县'),
(2135, 0, 247, '四川省', '宜宾市', '翠屏区'),
(2136, 0, 247, '四川省', '宜宾市', '宜宾县'),
(2137, 0, 247, '四川省', '宜宾市', '南溪县'),
(2138, 0, 247, '四川省', '宜宾市', '江安县'),
(2139, 0, 247, '四川省', '宜宾市', '长宁县'),
(2140, 0, 247, '四川省', '宜宾市', '高县'),
(2141, 0, 247, '四川省', '宜宾市', '珙县'),
(2142, 0, 247, '四川省', '宜宾市', '筠连县'),
(2143, 0, 247, '四川省', '宜宾市', '兴文县'),
(2144, 0, 247, '四川省', '宜宾市', '屏山县'),
(2145, 0, 248, '四川省', '广安市', '广安区'),
(2146, 0, 248, '四川省', '广安市', '岳池县'),
(2147, 0, 248, '四川省', '广安市', '武胜县'),
(2148, 0, 248, '四川省', '广安市', '邻水县'),
(2149, 0, 248, '四川省', '广安市', '华蓥市'),
(2150, 0, 249, '四川省', '达州市', '通川区'),
(2151, 0, 249, '四川省', '达州市', '达县'),
(2152, 0, 249, '四川省', '达州市', '宣汉县'),
(2153, 0, 249, '四川省', '达州市', '开江县'),
(2154, 0, 249, '四川省', '达州市', '大竹县'),
(2155, 0, 249, '四川省', '达州市', '渠县'),
(2156, 0, 249, '四川省', '达州市', '万源市'),
(2157, 0, 250, '四川省', '雅安市', '雨城区'),
(2158, 0, 250, '四川省', '雅安市', '名山县'),
(2159, 0, 250, '四川省', '雅安市', '荥经县'),
(2160, 0, 250, '四川省', '雅安市', '汉源县'),
(2161, 0, 250, '四川省', '雅安市', '石棉县'),
(2162, 0, 250, '四川省', '雅安市', '天全县'),
(2163, 0, 250, '四川省', '雅安市', '芦山县'),
(2164, 0, 250, '四川省', '雅安市', '宝兴县'),
(2165, 0, 251, '四川省', '巴中市', '巴州区'),
(2166, 0, 251, '四川省', '巴中市', '通江县'),
(2167, 0, 251, '四川省', '巴中市', '南江县'),
(2168, 0, 251, '四川省', '巴中市', '平昌县'),
(2169, 0, 252, '四川省', '资阳市', '雁江区'),
(2170, 0, 252, '四川省', '资阳市', '安岳县'),
(2171, 0, 252, '四川省', '资阳市', '乐至县'),
(2172, 0, 252, '四川省', '资阳市', '简阳市'),
(2173, 0, 253, '四川省', '阿坝藏族羌族自治州', '汶川县'),
(2174, 0, 253, '四川省', '阿坝藏族羌族自治州', '理县'),
(2175, 0, 253, '四川省', '阿坝藏族羌族自治州', '茂县'),
(2176, 0, 253, '四川省', '阿坝藏族羌族自治州', '松潘县'),
(2177, 0, 253, '四川省', '阿坝藏族羌族自治州', '九寨沟县'),
(2178, 0, 253, '四川省', '阿坝藏族羌族自治州', '金川县'),
(2179, 0, 253, '四川省', '阿坝藏族羌族自治州', '小金县'),
(2180, 0, 253, '四川省', '阿坝藏族羌族自治州', '黑水县'),
(2181, 0, 253, '四川省', '阿坝藏族羌族自治州', '马尔康县'),
(2182, 0, 253, '四川省', '阿坝藏族羌族自治州', '壤塘县'),
(2183, 0, 253, '四川省', '阿坝藏族羌族自治州', '阿坝县'),
(2184, 0, 253, '四川省', '阿坝藏族羌族自治州', '若尔盖县'),
(2185, 0, 253, '四川省', '阿坝藏族羌族自治州', '红原县'),
(2186, 0, 254, '四川省', '甘孜藏族自治州', '康定县'),
(2187, 0, 254, '四川省', '甘孜藏族自治州', '泸定县'),
(2188, 0, 254, '四川省', '甘孜藏族自治州', '丹巴县'),
(2189, 0, 254, '四川省', '甘孜藏族自治州', '九龙县'),
(2190, 0, 254, '四川省', '甘孜藏族自治州', '雅江县'),
(2191, 0, 254, '四川省', '甘孜藏族自治州', '道孚县'),
(2192, 0, 254, '四川省', '甘孜藏族自治州', '炉霍县'),
(2193, 0, 254, '四川省', '甘孜藏族自治州', '甘孜县'),
(2194, 0, 254, '四川省', '甘孜藏族自治州', '新龙县'),
(2195, 0, 254, '四川省', '甘孜藏族自治州', '德格县'),
(2196, 0, 254, '四川省', '甘孜藏族自治州', '白玉县'),
(2197, 0, 254, '四川省', '甘孜藏族自治州', '石渠县'),
(2198, 0, 254, '四川省', '甘孜藏族自治州', '色达县'),
(2199, 0, 254, '四川省', '甘孜藏族自治州', '理塘县'),
(2200, 0, 254, '四川省', '甘孜藏族自治州', '巴塘县'),
(2201, 0, 254, '四川省', '甘孜藏族自治州', '乡城县'),
(2202, 0, 254, '四川省', '甘孜藏族自治州', '稻城县'),
(2203, 0, 254, '四川省', '甘孜藏族自治州', '得荣县'),
(2204, 0, 255, '四川省', '凉山彝族自治州', '西昌市'),
(2205, 0, 255, '四川省', '凉山彝族自治州', '木里藏族自治县'),
(2206, 0, 255, '四川省', '凉山彝族自治州', '盐源县'),
(2207, 0, 255, '四川省', '凉山彝族自治州', '德昌县'),
(2208, 0, 255, '四川省', '凉山彝族自治州', '会理县'),
(2209, 0, 255, '四川省', '凉山彝族自治州', '会东县'),
(2210, 0, 255, '四川省', '凉山彝族自治州', '宁南县'),
(2211, 0, 255, '四川省', '凉山彝族自治州', '普格县'),
(2212, 0, 255, '四川省', '凉山彝族自治州', '布拖县'),
(2213, 0, 255, '四川省', '凉山彝族自治州', '金阳县'),
(2214, 0, 255, '四川省', '凉山彝族自治州', '昭觉县'),
(2215, 0, 255, '四川省', '凉山彝族自治州', '喜德县'),
(2216, 0, 255, '四川省', '凉山彝族自治州', '冕宁县'),
(2217, 0, 255, '四川省', '凉山彝族自治州', '越西县'),
(2218, 0, 255, '四川省', '凉山彝族自治州', '甘洛县'),
(2219, 0, 255, '四川省', '凉山彝族自治州', '美姑县'),
(2220, 0, 255, '四川省', '凉山彝族自治州', '雷波县'),
(2221, 0, 256, '贵州省', '贵阳市', '南明区'),
(2222, 0, 256, '贵州省', '贵阳市', '云岩区'),
(2223, 0, 256, '贵州省', '贵阳市', '花溪区'),
(2224, 0, 256, '贵州省', '贵阳市', '乌当区'),
(2225, 0, 256, '贵州省', '贵阳市', '白云区'),
(2226, 0, 256, '贵州省', '贵阳市', '小河区'),
(2227, 0, 256, '贵州省', '贵阳市', '开阳县'),
(2228, 0, 256, '贵州省', '贵阳市', '息烽县'),
(2229, 0, 256, '贵州省', '贵阳市', '修文县'),
(2230, 0, 256, '贵州省', '贵阳市', '清镇市'),
(2231, 0, 257, '贵州省', '六盘水市', '钟山区'),
(2232, 0, 257, '贵州省', '六盘水市', '六枝特区'),
(2233, 0, 257, '贵州省', '六盘水市', '水城县'),
(2234, 0, 257, '贵州省', '六盘水市', '盘县'),
(2235, 0, 258, '贵州省', '遵义市', '红花岗区'),
(2236, 0, 258, '贵州省', '遵义市', '汇川区'),
(2237, 0, 258, '贵州省', '遵义市', '遵义县'),
(2238, 0, 258, '贵州省', '遵义市', '桐梓县'),
(2239, 0, 258, '贵州省', '遵义市', '绥阳县'),
(2240, 0, 258, '贵州省', '遵义市', '正安县'),
(2241, 0, 258, '贵州省', '遵义市', '道真仡佬族苗族自治县'),
(2242, 0, 258, '贵州省', '遵义市', '务川仡佬族苗族自治县'),
(2243, 0, 258, '贵州省', '遵义市', '凤冈县'),
(2244, 0, 258, '贵州省', '遵义市', '湄潭县'),
(2245, 0, 258, '贵州省', '遵义市', '余庆县'),
(2246, 0, 258, '贵州省', '遵义市', '习水县'),
(2247, 0, 258, '贵州省', '遵义市', '赤水市'),
(2248, 0, 258, '贵州省', '遵义市', '仁怀市'),
(2249, 0, 259, '贵州省', '安顺市', '西秀区'),
(2250, 0, 259, '贵州省', '安顺市', '平坝县'),
(2251, 0, 259, '贵州省', '安顺市', '普定县'),
(2252, 0, 259, '贵州省', '安顺市', '镇宁布依族苗族自治县'),
(2253, 0, 259, '贵州省', '安顺市', '关岭布依族苗族自治县'),
(2254, 0, 259, '贵州省', '安顺市', '紫云苗族布依族自治县'),
(2255, 0, 260, '贵州省', '铜仁地区', '铜仁市'),
(2256, 0, 260, '贵州省', '铜仁地区', '江口县'),
(2257, 0, 260, '贵州省', '铜仁地区', '玉屏侗族自治县'),
(2258, 0, 260, '贵州省', '铜仁地区', '石阡县'),
(2259, 0, 260, '贵州省', '铜仁地区', '思南县'),
(2260, 0, 260, '贵州省', '铜仁地区', '印江土家族苗族自治县'),
(2261, 0, 260, '贵州省', '铜仁地区', '德江县'),
(2262, 0, 260, '贵州省', '铜仁地区', '沿河土家族自治县'),
(2263, 0, 260, '贵州省', '铜仁地区', '松桃苗族自治县'),
(2264, 0, 260, '贵州省', '铜仁地区', '万山特区'),
(2265, 0, 261, '贵州省', '黔西南布依族苗族自治州', '兴义市'),
(2266, 0, 261, '贵州省', '黔西南布依族苗族自治州', '兴仁县'),
(2267, 0, 261, '贵州省', '黔西南布依族苗族自治州', '普安县'),
(2268, 0, 261, '贵州省', '黔西南布依族苗族自治州', '晴隆县'),
(2269, 0, 261, '贵州省', '黔西南布依族苗族自治州', '贞丰县'),
(2270, 0, 261, '贵州省', '黔西南布依族苗族自治州', '望谟县'),
(2271, 0, 261, '贵州省', '黔西南布依族苗族自治州', '册亨县'),
(2272, 0, 261, '贵州省', '黔西南布依族苗族自治州', '安龙县'),
(2273, 0, 262, '贵州省', '毕节地区', '毕节市'),
(2274, 0, 262, '贵州省', '毕节地区', '大方县'),
(2275, 0, 262, '贵州省', '毕节地区', '黔西县'),
(2276, 0, 262, '贵州省', '毕节地区', '金沙县'),
(2277, 0, 262, '贵州省', '毕节地区', '织金县'),
(2278, 0, 262, '贵州省', '毕节地区', '纳雍县'),
(2279, 0, 262, '贵州省', '毕节地区', '威宁彝族回族苗族自治县'),
(2280, 0, 262, '贵州省', '毕节地区', '赫章县'),
(2281, 0, 263, '贵州省', '黔东南苗族侗族自治州', '凯里市'),
(2282, 0, 263, '贵州省', '黔东南苗族侗族自治州', '黄平县'),
(2283, 0, 263, '贵州省', '黔东南苗族侗族自治州', '施秉县'),
(2284, 0, 263, '贵州省', '黔东南苗族侗族自治州', '三穗县'),
(2285, 0, 263, '贵州省', '黔东南苗族侗族自治州', '镇远县'),
(2286, 0, 263, '贵州省', '黔东南苗族侗族自治州', '岑巩县'),
(2287, 0, 263, '贵州省', '黔东南苗族侗族自治州', '天柱县'),
(2288, 0, 263, '贵州省', '黔东南苗族侗族自治州', '锦屏县'),
(2289, 0, 263, '贵州省', '黔东南苗族侗族自治州', '剑河县'),
(2290, 0, 263, '贵州省', '黔东南苗族侗族自治州', '台江县'),
(2291, 0, 263, '贵州省', '黔东南苗族侗族自治州', '黎平县'),
(2292, 0, 263, '贵州省', '黔东南苗族侗族自治州', '榕江县'),
(2293, 0, 263, '贵州省', '黔东南苗族侗族自治州', '从江县'),
(2294, 0, 263, '贵州省', '黔东南苗族侗族自治州', '雷山县'),
(2295, 0, 263, '贵州省', '黔东南苗族侗族自治州', '麻江县'),
(2296, 0, 263, '贵州省', '黔东南苗族侗族自治州', '丹寨县'),
(2297, 0, 264, '贵州省', '黔南布依族苗族自治州', '都匀市'),
(2298, 0, 264, '贵州省', '黔南布依族苗族自治州', '福泉市'),
(2299, 0, 264, '贵州省', '黔南布依族苗族自治州', '荔波县'),
(2300, 0, 264, '贵州省', '黔南布依族苗族自治州', '贵定县'),
(2301, 0, 264, '贵州省', '黔南布依族苗族自治州', '瓮安县'),
(2302, 0, 264, '贵州省', '黔南布依族苗族自治州', '独山县'),
(2303, 0, 264, '贵州省', '黔南布依族苗族自治州', '平塘县'),
(2304, 0, 264, '贵州省', '黔南布依族苗族自治州', '罗甸县'),
(2305, 0, 264, '贵州省', '黔南布依族苗族自治州', '长顺县'),
(2306, 0, 264, '贵州省', '黔南布依族苗族自治州', '龙里县'),
(2307, 0, 264, '贵州省', '黔南布依族苗族自治州', '惠水县'),
(2308, 0, 264, '贵州省', '黔南布依族苗族自治州', '三都水族自治县'),
(2309, 0, 265, '云南省', '昆明市', '五华区'),
(2310, 0, 265, '云南省', '昆明市', '盘龙区'),
(2311, 0, 265, '云南省', '昆明市', '官渡区'),
(2312, 0, 265, '云南省', '昆明市', '西山区'),
(2313, 0, 265, '云南省', '昆明市', '东川区'),
(2314, 0, 265, '云南省', '昆明市', '呈贡县'),
(2315, 0, 265, '云南省', '昆明市', '晋宁县'),
(2316, 0, 265, '云南省', '昆明市', '富民县'),
(2317, 0, 265, '云南省', '昆明市', '宜良县'),
(2318, 0, 265, '云南省', '昆明市', '石林彝族自治县'),
(2319, 0, 265, '云南省', '昆明市', '嵩明县'),
(2320, 0, 265, '云南省', '昆明市', '禄劝彝族苗族自治县'),
(2321, 0, 265, '云南省', '昆明市', '寻甸回族彝族自治县'),
(2322, 0, 265, '云南省', '昆明市', '安宁市'),
(2323, 0, 266, '云南省', '曲靖市', '麒麟区'),
(2324, 0, 266, '云南省', '曲靖市', '马龙县'),
(2325, 0, 266, '云南省', '曲靖市', '陆良县'),
(2326, 0, 266, '云南省', '曲靖市', '师宗县'),
(2327, 0, 266, '云南省', '曲靖市', '罗平县'),
(2328, 0, 266, '云南省', '曲靖市', '富源县'),
(2329, 0, 266, '云南省', '曲靖市', '会泽县'),
(2330, 0, 266, '云南省', '曲靖市', '沾益县'),
(2331, 0, 266, '云南省', '曲靖市', '宣威市'),
(2332, 0, 267, '云南省', '玉溪市', '红塔区'),
(2333, 0, 267, '云南省', '玉溪市', '江川县'),
(2334, 0, 267, '云南省', '玉溪市', '澄江县'),
(2335, 0, 267, '云南省', '玉溪市', '通海县'),
(2336, 0, 267, '云南省', '玉溪市', '华宁县'),
(2337, 0, 267, '云南省', '玉溪市', '易门县'),
(2338, 0, 267, '云南省', '玉溪市', '峨山彝族自治县'),
(2339, 0, 267, '云南省', '玉溪市', '新平彝族傣族自治县'),
(2340, 0, 267, '云南省', '玉溪市', '元江哈尼族彝族傣族自治县'),
(2341, 0, 268, '云南省', '保山市', '隆阳区'),
(2342, 0, 268, '云南省', '保山市', '施甸县'),
(2343, 0, 268, '云南省', '保山市', '腾冲县'),
(2344, 0, 268, '云南省', '保山市', '龙陵县'),
(2345, 0, 268, '云南省', '保山市', '昌宁县'),
(2346, 0, 269, '云南省', '昭通市', '昭阳区'),
(2347, 0, 269, '云南省', '昭通市', '鲁甸县'),
(2348, 0, 269, '云南省', '昭通市', '巧家县'),
(2349, 0, 269, '云南省', '昭通市', '盐津县'),
(2350, 0, 269, '云南省', '昭通市', '大关县'),
(2351, 0, 269, '云南省', '昭通市', '永善县'),
(2352, 0, 269, '云南省', '昭通市', '绥江县'),
(2353, 0, 269, '云南省', '昭通市', '镇雄县'),
(2354, 0, 269, '云南省', '昭通市', '彝良县'),
(2355, 0, 269, '云南省', '昭通市', '威信县'),
(2356, 0, 269, '云南省', '昭通市', '水富县'),
(2357, 0, 270, '云南省', '丽江市', '古城区'),
(2358, 0, 270, '云南省', '丽江市', '玉龙纳西族自治县'),
(2359, 0, 270, '云南省', '丽江市', '永胜县'),
(2360, 0, 270, '云南省', '丽江市', '华坪县'),
(2361, 0, 270, '云南省', '丽江市', '宁蒗彝族自治县'),
(2362, 0, 271, '云南省', '思茅市', '翠云区'),
(2363, 0, 271, '云南省', '思茅市', '普洱哈尼族彝族自治县'),
(2364, 0, 271, '云南省', '思茅市', '墨江哈尼族自治县'),
(2365, 0, 271, '云南省', '思茅市', '景东彝族自治县'),
(2366, 0, 271, '云南省', '思茅市', '景谷傣族彝族自治县'),
(2367, 0, 271, '云南省', '思茅市', '镇沅彝族哈尼族拉祜族自治县'),
(2368, 0, 271, '云南省', '思茅市', '江城哈尼族彝族自治县'),
(2369, 0, 271, '云南省', '思茅市', '孟连傣族拉祜族佤族自治县'),
(2370, 0, 271, '云南省', '思茅市', '澜沧拉祜族自治县'),
(2371, 0, 271, '云南省', '思茅市', '西盟佤族自治县'),
(2372, 0, 272, '云南省', '临沧市', '临翔区'),
(2373, 0, 272, '云南省', '临沧市', '凤庆县'),
(2374, 0, 272, '云南省', '临沧市', '云县'),
(2375, 0, 272, '云南省', '临沧市', '永德县'),
(2376, 0, 272, '云南省', '临沧市', '镇康县'),
(2377, 0, 272, '云南省', '临沧市', '双江拉祜族佤族布朗族傣族自治县'),
(2378, 0, 272, '云南省', '临沧市', '耿马傣族佤族自治县'),
(2379, 0, 272, '云南省', '临沧市', '沧源佤族自治县'),
(2380, 0, 273, '云南省', '楚雄彝族自治州', '楚雄市'),
(2381, 0, 273, '云南省', '楚雄彝族自治州', '双柏县'),
(2382, 0, 273, '云南省', '楚雄彝族自治州', '牟定县'),
(2383, 0, 273, '云南省', '楚雄彝族自治州', '南华县'),
(2384, 0, 273, '云南省', '楚雄彝族自治州', '姚安县'),
(2385, 0, 273, '云南省', '楚雄彝族自治州', '大姚县'),
(2386, 0, 273, '云南省', '楚雄彝族自治州', '永仁县'),
(2387, 0, 273, '云南省', '楚雄彝族自治州', '元谋县'),
(2388, 0, 273, '云南省', '楚雄彝族自治州', '武定县'),
(2389, 0, 273, '云南省', '楚雄彝族自治州', '禄丰县'),
(2390, 0, 274, '云南省', '红河哈尼族彝族自治州', '个旧市'),
(2391, 0, 274, '云南省', '红河哈尼族彝族自治州', '开远市'),
(2392, 0, 274, '云南省', '红河哈尼族彝族自治州', '蒙自县'),
(2393, 0, 274, '云南省', '红河哈尼族彝族自治州', '屏边苗族自治县'),
(2394, 0, 274, '云南省', '红河哈尼族彝族自治州', '建水县'),
(2395, 0, 274, '云南省', '红河哈尼族彝族自治州', '石屏县'),
(2396, 0, 274, '云南省', '红河哈尼族彝族自治州', '弥勒县'),
(2397, 0, 274, '云南省', '红河哈尼族彝族自治州', '泸西县'),
(2398, 0, 274, '云南省', '红河哈尼族彝族自治州', '元阳县'),
(2399, 0, 274, '云南省', '红河哈尼族彝族自治州', '红河县'),
(2400, 0, 274, '云南省', '红河哈尼族彝族自治州', '金平苗族瑶族傣族自治县'),
(2401, 0, 274, '云南省', '红河哈尼族彝族自治州', '绿春县'),
(2402, 0, 274, '云南省', '红河哈尼族彝族自治州', '河口瑶族自治县'),
(2403, 0, 275, '云南省', '文山壮族苗族自治州', '文山县'),
(2404, 0, 275, '云南省', '文山壮族苗族自治州', '砚山县'),
(2405, 0, 275, '云南省', '文山壮族苗族自治州', '西畴县'),
(2406, 0, 275, '云南省', '文山壮族苗族自治州', '麻栗坡县'),
(2407, 0, 275, '云南省', '文山壮族苗族自治州', '马关县'),
(2408, 0, 275, '云南省', '文山壮族苗族自治州', '丘北县'),
(2409, 0, 275, '云南省', '文山壮族苗族自治州', '广南县'),
(2410, 0, 275, '云南省', '文山壮族苗族自治州', '富宁县'),
(2411, 0, 276, '云南省', '西双版纳傣族自治州', '景洪市'),
(2412, 0, 276, '云南省', '西双版纳傣族自治州', '勐海县'),
(2413, 0, 276, '云南省', '西双版纳傣族自治州', '勐腊县'),
(2414, 0, 277, '云南省', '大理白族自治州', '大理市'),
(2415, 0, 277, '云南省', '大理白族自治州', '漾濞彝族自治县'),
(2416, 0, 277, '云南省', '大理白族自治州', '祥云县'),
(2417, 0, 277, '云南省', '大理白族自治州', '宾川县'),
(2418, 0, 277, '云南省', '大理白族自治州', '弥渡县'),
(2419, 0, 277, '云南省', '大理白族自治州', '南涧彝族自治县'),
(2420, 0, 277, '云南省', '大理白族自治州', '巍山彝族回族自治县'),
(2421, 0, 277, '云南省', '大理白族自治州', '永平县'),
(2422, 0, 277, '云南省', '大理白族自治州', '云龙县'),
(2423, 0, 277, '云南省', '大理白族自治州', '洱源县'),
(2424, 0, 277, '云南省', '大理白族自治州', '剑川县'),
(2425, 0, 277, '云南省', '大理白族自治州', '鹤庆县'),
(2426, 0, 278, '云南省', '德宏傣族景颇族自治州', '瑞丽市'),
(2427, 0, 278, '云南省', '德宏傣族景颇族自治州', '潞西市'),
(2428, 0, 278, '云南省', '德宏傣族景颇族自治州', '梁河县'),
(2429, 0, 278, '云南省', '德宏傣族景颇族自治州', '盈江县'),
(2430, 0, 278, '云南省', '德宏傣族景颇族自治州', '陇川县'),
(2431, 0, 279, '云南省', '怒江傈僳族自治州', '泸水县'),
(2432, 0, 279, '云南省', '怒江傈僳族自治州', '福贡县'),
(2433, 0, 279, '云南省', '怒江傈僳族自治州', '贡山独龙族怒族自治县'),
(2434, 0, 279, '云南省', '怒江傈僳族自治州', '兰坪白族普米族自治县'),
(2435, 0, 280, '云南省', '迪庆藏族自治州', '香格里拉县'),
(2436, 0, 280, '云南省', '迪庆藏族自治州', '德钦县'),
(2437, 0, 280, '云南省', '迪庆藏族自治州', '维西傈僳族自治县'),
(2438, 0, 281, '西藏自治区', '拉萨市', '城关区'),
(2439, 0, 281, '西藏自治区', '拉萨市', '林周县'),
(2440, 0, 281, '西藏自治区', '拉萨市', '当雄县'),
(2441, 0, 281, '西藏自治区', '拉萨市', '尼木县'),
(2442, 0, 281, '西藏自治区', '拉萨市', '曲水县'),
(2443, 0, 281, '西藏自治区', '拉萨市', '堆龙德庆县'),
(2444, 0, 281, '西藏自治区', '拉萨市', '达孜县'),
(2445, 0, 281, '西藏自治区', '拉萨市', '墨竹工卡县'),
(2446, 0, 282, '西藏自治区', '昌都地区', '昌都县'),
(2447, 0, 282, '西藏自治区', '昌都地区', '江达县'),
(2448, 0, 282, '西藏自治区', '昌都地区', '贡觉县'),
(2449, 0, 282, '西藏自治区', '昌都地区', '类乌齐县'),
(2450, 0, 282, '西藏自治区', '昌都地区', '丁青县'),
(2451, 0, 282, '西藏自治区', '昌都地区', '察雅县'),
(2452, 0, 282, '西藏自治区', '昌都地区', '八宿县'),
(2453, 0, 282, '西藏自治区', '昌都地区', '左贡县'),
(2454, 0, 282, '西藏自治区', '昌都地区', '芒康县'),
(2455, 0, 282, '西藏自治区', '昌都地区', '洛隆县'),
(2456, 0, 282, '西藏自治区', '昌都地区', '边坝县'),
(2457, 0, 283, '西藏自治区', '山南地区', '乃东县'),
(2458, 0, 283, '西藏自治区', '山南地区', '扎囊县'),
(2459, 0, 283, '西藏自治区', '山南地区', '贡嘎县'),
(2460, 0, 283, '西藏自治区', '山南地区', '桑日县'),
(2461, 0, 283, '西藏自治区', '山南地区', '琼结县'),
(2462, 0, 283, '西藏自治区', '山南地区', '曲松县'),
(2463, 0, 283, '西藏自治区', '山南地区', '措美县'),
(2464, 0, 283, '西藏自治区', '山南地区', '洛扎县'),
(2465, 0, 283, '西藏自治区', '山南地区', '加查县'),
(2466, 0, 283, '西藏自治区', '山南地区', '隆子县'),
(2467, 0, 283, '西藏自治区', '山南地区', '错那县'),
(2468, 0, 283, '西藏自治区', '山南地区', '浪卡子县'),
(2469, 0, 284, '西藏自治区', '日喀则地区', '日喀则市'),
(2470, 0, 284, '西藏自治区', '日喀则地区', '南木林县'),
(2471, 0, 284, '西藏自治区', '日喀则地区', '江孜县'),
(2472, 0, 284, '西藏自治区', '日喀则地区', '定日县'),
(2473, 0, 284, '西藏自治区', '日喀则地区', '萨迦县'),
(2474, 0, 284, '西藏自治区', '日喀则地区', '拉孜县'),
(2475, 0, 284, '西藏自治区', '日喀则地区', '昂仁县'),
(2476, 0, 284, '西藏自治区', '日喀则地区', '谢通门县'),
(2477, 0, 284, '西藏自治区', '日喀则地区', '白朗县'),
(2478, 0, 284, '西藏自治区', '日喀则地区', '仁布县'),
(2479, 0, 284, '西藏自治区', '日喀则地区', '康马县'),
(2480, 0, 284, '西藏自治区', '日喀则地区', '定结县'),
(2481, 0, 284, '西藏自治区', '日喀则地区', '仲巴县'),
(2482, 0, 284, '西藏自治区', '日喀则地区', '亚东县'),
(2483, 0, 284, '西藏自治区', '日喀则地区', '吉隆县'),
(2484, 0, 284, '西藏自治区', '日喀则地区', '聂拉木县'),
(2485, 0, 284, '西藏自治区', '日喀则地区', '萨嘎县'),
(2486, 0, 284, '西藏自治区', '日喀则地区', '岗巴县'),
(2487, 0, 285, '西藏自治区', '那曲地区', '那曲县'),
(2488, 0, 285, '西藏自治区', '那曲地区', '嘉黎县'),
(2489, 0, 285, '西藏自治区', '那曲地区', '比如县'),
(2490, 0, 285, '西藏自治区', '那曲地区', '聂荣县'),
(2491, 0, 285, '西藏自治区', '那曲地区', '安多县'),
(2492, 0, 285, '西藏自治区', '那曲地区', '申扎县'),
(2493, 0, 285, '西藏自治区', '那曲地区', '索县'),
(2494, 0, 285, '西藏自治区', '那曲地区', '班戈县'),
(2495, 0, 285, '西藏自治区', '那曲地区', '巴青县'),
(2496, 0, 285, '西藏自治区', '那曲地区', '尼玛县'),
(2497, 0, 286, '西藏自治区', '阿里地区', '普兰县'),
(2498, 0, 286, '西藏自治区', '阿里地区', '札达县'),
(2499, 0, 286, '西藏自治区', '阿里地区', '噶尔县'),
(2500, 0, 286, '西藏自治区', '阿里地区', '日土县'),
(2501, 0, 286, '西藏自治区', '阿里地区', '革吉县'),
(2502, 0, 286, '西藏自治区', '阿里地区', '改则县'),
(2503, 0, 286, '西藏自治区', '阿里地区', '措勤县'),
(2504, 0, 287, '西藏自治区', '林芝地区', '林芝县'),
(2505, 0, 287, '西藏自治区', '林芝地区', '工布江达县'),
(2506, 0, 287, '西藏自治区', '林芝地区', '米林县'),
(2507, 0, 287, '西藏自治区', '林芝地区', '墨脱县'),
(2508, 0, 287, '西藏自治区', '林芝地区', '波密县'),
(2509, 0, 287, '西藏自治区', '林芝地区', '察隅县'),
(2510, 0, 287, '西藏自治区', '林芝地区', '朗县'),
(2511, 0, 288, '陕西省', '西安市', '新城区'),
(2512, 0, 288, '陕西省', '西安市', '碑林区'),
(2513, 0, 288, '陕西省', '西安市', '莲湖区'),
(2514, 0, 288, '陕西省', '西安市', '灞桥区'),
(2515, 0, 288, '陕西省', '西安市', '未央区'),
(2516, 0, 288, '陕西省', '西安市', '雁塔区'),
(2517, 0, 288, '陕西省', '西安市', '阎良区'),
(2518, 0, 288, '陕西省', '西安市', '临潼区'),
(2519, 0, 288, '陕西省', '西安市', '长安区'),
(2520, 0, 288, '陕西省', '西安市', '蓝田县'),
(2521, 0, 288, '陕西省', '西安市', '周至县'),
(2522, 0, 288, '陕西省', '西安市', '户县'),
(2523, 0, 288, '陕西省', '西安市', '高陵县'),
(2524, 0, 289, '陕西省', '铜川市', '王益区'),
(2525, 0, 289, '陕西省', '铜川市', '印台区'),
(2526, 0, 289, '陕西省', '铜川市', '耀州区'),
(2527, 0, 289, '陕西省', '铜川市', '宜君县'),
(2528, 0, 290, '陕西省', '宝鸡市', '渭滨区'),
(2529, 0, 290, '陕西省', '宝鸡市', '金台区'),
(2530, 0, 290, '陕西省', '宝鸡市', '陈仓区'),
(2531, 0, 290, '陕西省', '宝鸡市', '凤翔县'),
(2532, 0, 290, '陕西省', '宝鸡市', '岐山县'),
(2533, 0, 290, '陕西省', '宝鸡市', '扶风县'),
(2534, 0, 290, '陕西省', '宝鸡市', '眉县'),
(2535, 0, 290, '陕西省', '宝鸡市', '陇县'),
(2536, 0, 290, '陕西省', '宝鸡市', '千阳县'),
(2537, 0, 290, '陕西省', '宝鸡市', '麟游县'),
(2538, 0, 290, '陕西省', '宝鸡市', '凤县'),
(2539, 0, 290, '陕西省', '宝鸡市', '太白县'),
(2540, 0, 291, '陕西省', '咸阳市', '秦都区'),
(2541, 0, 291, '陕西省', '咸阳市', '杨凌区'),
(2542, 0, 291, '陕西省', '咸阳市', '渭城区'),
(2543, 0, 291, '陕西省', '咸阳市', '三原县'),
(2544, 0, 291, '陕西省', '咸阳市', '泾阳县'),
(2545, 0, 291, '陕西省', '咸阳市', '乾县'),
(2546, 0, 291, '陕西省', '咸阳市', '礼泉县'),
(2547, 0, 291, '陕西省', '咸阳市', '永寿县'),
(2548, 0, 291, '陕西省', '咸阳市', '彬县'),
(2549, 0, 291, '陕西省', '咸阳市', '长武县'),
(2550, 0, 291, '陕西省', '咸阳市', '旬邑县'),
(2551, 0, 291, '陕西省', '咸阳市', '淳化县'),
(2552, 0, 291, '陕西省', '咸阳市', '武功县'),
(2553, 0, 291, '陕西省', '咸阳市', '兴平市'),
(2554, 0, 292, '陕西省', '渭南市', '临渭区'),
(2555, 0, 292, '陕西省', '渭南市', '华县'),
(2556, 0, 292, '陕西省', '渭南市', '潼关县'),
(2557, 0, 292, '陕西省', '渭南市', '大荔县'),
(2558, 0, 292, '陕西省', '渭南市', '合阳县'),
(2559, 0, 292, '陕西省', '渭南市', '澄城县'),
(2560, 0, 292, '陕西省', '渭南市', '蒲城县'),
(2561, 0, 292, '陕西省', '渭南市', '白水县'),
(2562, 0, 292, '陕西省', '渭南市', '富平县'),
(2563, 0, 292, '陕西省', '渭南市', '韩城市'),
(2564, 0, 292, '陕西省', '渭南市', '华阴市'),
(2565, 0, 293, '陕西省', '延安市', '宝塔区'),
(2566, 0, 293, '陕西省', '延安市', '延长县'),
(2567, 0, 293, '陕西省', '延安市', '延川县'),
(2568, 0, 293, '陕西省', '延安市', '子长县'),
(2569, 0, 293, '陕西省', '延安市', '安塞县'),
(2570, 0, 293, '陕西省', '延安市', '志丹县'),
(2571, 0, 293, '陕西省', '延安市', '吴旗县'),
(2572, 0, 293, '陕西省', '延安市', '甘泉县'),
(2573, 0, 293, '陕西省', '延安市', '富县'),
(2574, 0, 293, '陕西省', '延安市', '洛川县'),
(2575, 0, 293, '陕西省', '延安市', '宜川县'),
(2576, 0, 293, '陕西省', '延安市', '黄龙县'),
(2577, 0, 293, '陕西省', '延安市', '黄陵县'),
(2578, 0, 294, '陕西省', '汉中市', '汉台区'),
(2579, 0, 294, '陕西省', '汉中市', '南郑县'),
(2580, 0, 294, '陕西省', '汉中市', '城固县'),
(2581, 0, 294, '陕西省', '汉中市', '洋县'),
(2582, 0, 294, '陕西省', '汉中市', '西乡县'),
(2583, 0, 294, '陕西省', '汉中市', '勉县'),
(2584, 0, 294, '陕西省', '汉中市', '宁强县'),
(2585, 0, 294, '陕西省', '汉中市', '略阳县'),
(2586, 0, 294, '陕西省', '汉中市', '镇巴县'),
(2587, 0, 294, '陕西省', '汉中市', '留坝县'),
(2588, 0, 294, '陕西省', '汉中市', '佛坪县'),
(2589, 0, 295, '陕西省', '榆林市', '榆阳区'),
(2590, 0, 295, '陕西省', '榆林市', '神木县'),
(2591, 0, 295, '陕西省', '榆林市', '府谷县'),
(2592, 0, 295, '陕西省', '榆林市', '横山县'),
(2593, 0, 295, '陕西省', '榆林市', '靖边县'),
(2594, 0, 295, '陕西省', '榆林市', '定边县'),
(2595, 0, 295, '陕西省', '榆林市', '绥德县'),
(2596, 0, 295, '陕西省', '榆林市', '米脂县'),
(2597, 0, 295, '陕西省', '榆林市', '佳县'),
(2598, 0, 295, '陕西省', '榆林市', '吴堡县'),
(2599, 0, 295, '陕西省', '榆林市', '清涧县'),
(2600, 0, 295, '陕西省', '榆林市', '子洲县'),
(2601, 0, 296, '陕西省', '安康市', '汉滨区'),
(2602, 0, 296, '陕西省', '安康市', '汉阴县'),
(2603, 0, 296, '陕西省', '安康市', '石泉县'),
(2604, 0, 296, '陕西省', '安康市', '宁陕县'),
(2605, 0, 296, '陕西省', '安康市', '紫阳县'),
(2606, 0, 296, '陕西省', '安康市', '岚皋县'),
(2607, 0, 296, '陕西省', '安康市', '平利县'),
(2608, 0, 296, '陕西省', '安康市', '镇坪县'),
(2609, 0, 296, '陕西省', '安康市', '旬阳县'),
(2610, 0, 296, '陕西省', '安康市', '白河县'),
(2611, 0, 297, '陕西省', '商洛市', '商州区'),
(2612, 0, 297, '陕西省', '商洛市', '洛南县'),
(2613, 0, 297, '陕西省', '商洛市', '丹凤县'),
(2614, 0, 297, '陕西省', '商洛市', '商南县'),
(2615, 0, 297, '陕西省', '商洛市', '山阳县'),
(2616, 0, 297, '陕西省', '商洛市', '镇安县'),
(2617, 0, 297, '陕西省', '商洛市', '柞水县'),
(2618, 0, 298, '甘肃省', '兰州市', '城关区'),
(2619, 0, 298, '甘肃省', '兰州市', '七里河区'),
(2620, 0, 298, '甘肃省', '兰州市', '西固区'),
(2621, 0, 298, '甘肃省', '兰州市', '安宁区'),
(2622, 0, 298, '甘肃省', '兰州市', '红古区'),
(2623, 0, 298, '甘肃省', '兰州市', '永登县'),
(2624, 0, 298, '甘肃省', '兰州市', '皋兰县'),
(2625, 0, 298, '甘肃省', '兰州市', '榆中县'),
(2626, 0, 300, '甘肃省', '金昌市', '金川区'),
(2627, 0, 300, '甘肃省', '金昌市', '永昌县'),
(2628, 0, 301, '甘肃省', '白银市', '白银区'),
(2629, 0, 301, '甘肃省', '白银市', '平川区'),
(2630, 0, 301, '甘肃省', '白银市', '靖远县'),
(2631, 0, 301, '甘肃省', '白银市', '会宁县'),
(2632, 0, 301, '甘肃省', '白银市', '景泰县'),
(2633, 0, 302, '甘肃省', '天水市', '秦城区'),
(2634, 0, 302, '甘肃省', '天水市', '北道区'),
(2635, 0, 302, '甘肃省', '天水市', '清水县'),
(2636, 0, 302, '甘肃省', '天水市', '秦安县'),
(2637, 0, 302, '甘肃省', '天水市', '甘谷县'),
(2638, 0, 302, '甘肃省', '天水市', '武山县'),
(2639, 0, 302, '甘肃省', '天水市', '张家川回族自治县'),
(2640, 0, 303, '甘肃省', '武威市', '凉州区'),
(2641, 0, 303, '甘肃省', '武威市', '民勤县'),
(2642, 0, 303, '甘肃省', '武威市', '古浪县'),
(2643, 0, 303, '甘肃省', '武威市', '天祝藏族自治县'),
(2644, 0, 304, '甘肃省', '张掖市', '甘州区'),
(2645, 0, 304, '甘肃省', '张掖市', '肃南裕固族自治县'),
(2646, 0, 304, '甘肃省', '张掖市', '民乐县'),
(2647, 0, 304, '甘肃省', '张掖市', '临泽县'),
(2648, 0, 304, '甘肃省', '张掖市', '高台县'),
(2649, 0, 304, '甘肃省', '张掖市', '山丹县'),
(2650, 0, 305, '甘肃省', '平凉市', '崆峒区'),
(2651, 0, 305, '甘肃省', '平凉市', '泾川县'),
(2652, 0, 305, '甘肃省', '平凉市', '灵台县'),
(2653, 0, 305, '甘肃省', '平凉市', '崇信县'),
(2654, 0, 305, '甘肃省', '平凉市', '华亭县'),
(2655, 0, 305, '甘肃省', '平凉市', '庄浪县'),
(2656, 0, 305, '甘肃省', '平凉市', '静宁县'),
(2657, 0, 306, '甘肃省', '酒泉市', '肃州区'),
(2658, 0, 306, '甘肃省', '酒泉市', '金塔县'),
(2659, 0, 306, '甘肃省', '酒泉市', '安西县'),
(2660, 0, 306, '甘肃省', '酒泉市', '肃北蒙古族自治县'),
(2661, 0, 306, '甘肃省', '酒泉市', '阿克塞哈萨克族自治县'),
(2662, 0, 306, '甘肃省', '酒泉市', '玉门市'),
(2663, 0, 306, '甘肃省', '酒泉市', '敦煌市'),
(2664, 0, 307, '甘肃省', '庆阳市', '西峰区'),
(2665, 0, 307, '甘肃省', '庆阳市', '庆城县'),
(2666, 0, 307, '甘肃省', '庆阳市', '环县'),
(2667, 0, 307, '甘肃省', '庆阳市', '华池县'),
(2668, 0, 307, '甘肃省', '庆阳市', '合水县'),
(2669, 0, 307, '甘肃省', '庆阳市', '正宁县'),
(2670, 0, 307, '甘肃省', '庆阳市', '宁县'),
(2671, 0, 307, '甘肃省', '庆阳市', '镇原县'),
(2672, 0, 308, '甘肃省', '定西市', '安定区'),
(2673, 0, 308, '甘肃省', '定西市', '通渭县'),
(2674, 0, 308, '甘肃省', '定西市', '陇西县'),
(2675, 0, 308, '甘肃省', '定西市', '渭源县'),
(2676, 0, 308, '甘肃省', '定西市', '临洮县'),
(2677, 0, 308, '甘肃省', '定西市', '漳县'),
(2678, 0, 308, '甘肃省', '定西市', '岷县'),
(2679, 0, 309, '甘肃省', '陇南市', '武都区'),
(2680, 0, 309, '甘肃省', '陇南市', '成县'),
(2681, 0, 309, '甘肃省', '陇南市', '文县'),
(2682, 0, 309, '甘肃省', '陇南市', '宕昌县'),
(2683, 0, 309, '甘肃省', '陇南市', '康县'),
(2684, 0, 309, '甘肃省', '陇南市', '西和县'),
(2685, 0, 309, '甘肃省', '陇南市', '礼县'),
(2686, 0, 309, '甘肃省', '陇南市', '徽县'),
(2687, 0, 309, '甘肃省', '陇南市', '两当县'),
(2688, 0, 310, '甘肃省', '临夏回族自治州', '临夏市'),
(2689, 0, 310, '甘肃省', '临夏回族自治州', '临夏县'),
(2690, 0, 310, '甘肃省', '临夏回族自治州', '康乐县'),
(2691, 0, 310, '甘肃省', '临夏回族自治州', '永靖县'),
(2692, 0, 310, '甘肃省', '临夏回族自治州', '广河县'),
(2693, 0, 310, '甘肃省', '临夏回族自治州', '和政县'),
(2694, 0, 310, '甘肃省', '临夏回族自治州', '东乡族自治县'),
(2695, 0, 310, '甘肃省', '临夏回族自治州', '积石山保安族东乡族撒拉族自治县'),
(2696, 0, 311, '甘肃省', '甘南藏族自治州', '合作市'),
(2697, 0, 311, '甘肃省', '甘南藏族自治州', '临潭县'),
(2698, 0, 311, '甘肃省', '甘南藏族自治州', '卓尼县'),
(2699, 0, 311, '甘肃省', '甘南藏族自治州', '舟曲县'),
(2700, 0, 311, '甘肃省', '甘南藏族自治州', '迭部县'),
(2701, 0, 311, '甘肃省', '甘南藏族自治州', '玛曲县'),
(2702, 0, 311, '甘肃省', '甘南藏族自治州', '碌曲县'),
(2703, 0, 311, '甘肃省', '甘南藏族自治州', '夏河县'),
(2704, 0, 312, '青海省', '西宁市', '城东区'),
(2705, 0, 312, '青海省', '西宁市', '城中区'),
(2706, 0, 312, '青海省', '西宁市', '城西区'),
(2707, 0, 312, '青海省', '西宁市', '城北区'),
(2708, 0, 312, '青海省', '西宁市', '大通回族土族自治县'),
(2709, 0, 312, '青海省', '西宁市', '湟中县'),
(2710, 0, 312, '青海省', '西宁市', '湟源县'),
(2711, 0, 313, '青海省', '海东地区', '平安县'),
(2712, 0, 313, '青海省', '海东地区', '民和回族土族自治县'),
(2713, 0, 313, '青海省', '海东地区', '乐都县'),
(2714, 0, 313, '青海省', '海东地区', '互助土族自治县'),
(2715, 0, 313, '青海省', '海东地区', '化隆回族自治县'),
(2716, 0, 313, '青海省', '海东地区', '循化撒拉族自治县'),
(2717, 0, 314, '青海省', '海北藏族自治州', '门源回族自治县'),
(2718, 0, 314, '青海省', '海北藏族自治州', '祁连县'),
(2719, 0, 314, '青海省', '海北藏族自治州', '海晏县'),
(2720, 0, 314, '青海省', '海北藏族自治州', '刚察县'),
(2721, 0, 315, '青海省', '黄南藏族自治州', '同仁县'),
(2722, 0, 315, '青海省', '黄南藏族自治州', '尖扎县'),
(2723, 0, 315, '青海省', '黄南藏族自治州', '泽库县'),
(2724, 0, 315, '青海省', '黄南藏族自治州', '河南蒙古族自治县'),
(2725, 0, 316, '青海省', '海南藏族自治州', '共和县'),
(2726, 0, 316, '青海省', '海南藏族自治州', '同德县'),
(2727, 0, 316, '青海省', '海南藏族自治州', '贵德县'),
(2728, 0, 316, '青海省', '海南藏族自治州', '兴海县'),
(2729, 0, 316, '青海省', '海南藏族自治州', '贵南县'),
(2730, 0, 317, '青海省', '果洛藏族自治州', '玛沁县'),
(2731, 0, 317, '青海省', '果洛藏族自治州', '班玛县'),
(2732, 0, 317, '青海省', '果洛藏族自治州', '甘德县'),
(2733, 0, 317, '青海省', '果洛藏族自治州', '达日县'),
(2734, 0, 317, '青海省', '果洛藏族自治州', '久治县'),
(2735, 0, 317, '青海省', '果洛藏族自治州', '玛多县'),
(2736, 0, 318, '青海省', '玉树藏族自治州', '玉树县'),
(2737, 0, 318, '青海省', '玉树藏族自治州', '杂多县'),
(2738, 0, 318, '青海省', '玉树藏族自治州', '称多县'),
(2739, 0, 318, '青海省', '玉树藏族自治州', '治多县'),
(2740, 0, 318, '青海省', '玉树藏族自治州', '囊谦县'),
(2741, 0, 318, '青海省', '玉树藏族自治州', '曲麻莱县'),
(2742, 0, 319, '青海省', '海西蒙古族藏族自治州', '格尔木市'),
(2743, 0, 319, '青海省', '海西蒙古族藏族自治州', '德令哈市'),
(2744, 0, 319, '青海省', '海西蒙古族藏族自治州', '乌兰县'),
(2745, 0, 319, '青海省', '海西蒙古族藏族自治州', '都兰县'),
(2746, 0, 319, '青海省', '海西蒙古族藏族自治州', '天峻县'),
(2747, 0, 320, '宁夏回族自治区', '银川市', '兴庆区'),
(2748, 0, 320, '宁夏回族自治区', '银川市', '西夏区'),
(2749, 0, 320, '宁夏回族自治区', '银川市', '金凤区'),
(2750, 0, 320, '宁夏回族自治区', '银川市', '永宁县'),
(2751, 0, 320, '宁夏回族自治区', '银川市', '贺兰县'),
(2752, 0, 320, '宁夏回族自治区', '银川市', '灵武市'),
(2753, 0, 321, '宁夏回族自治区', '石嘴山市', '大武口区'),
(2754, 0, 321, '宁夏回族自治区', '石嘴山市', '惠农区'),
(2755, 0, 321, '宁夏回族自治区', '石嘴山市', '平罗县'),
(2756, 0, 322, '宁夏回族自治区', '吴忠市', '利通区'),
(2757, 0, 322, '宁夏回族自治区', '吴忠市', '盐池县'),
(2758, 0, 322, '宁夏回族自治区', '吴忠市', '同心县'),
(2759, 0, 322, '宁夏回族自治区', '吴忠市', '青铜峡市'),
(2760, 0, 323, '宁夏回族自治区', '固原市', '原州区'),
(2761, 0, 323, '宁夏回族自治区', '固原市', '西吉县'),
(2762, 0, 323, '宁夏回族自治区', '固原市', '隆德县'),
(2763, 0, 323, '宁夏回族自治区', '固原市', '泾源县'),
(2764, 0, 323, '宁夏回族自治区', '固原市', '彭阳县'),
(2765, 0, 324, '宁夏回族自治区', '中卫市', '沙坡头区'),
(2766, 0, 324, '宁夏回族自治区', '中卫市', '中宁县'),
(2767, 0, 324, '宁夏回族自治区', '中卫市', '海原县'),
(2768, 0, 325, '新疆维吾尔自治区', '乌鲁木齐市', '天山区'),
(2769, 0, 325, '新疆维吾尔自治区', '乌鲁木齐市', '沙依巴克区'),
(2770, 0, 325, '新疆维吾尔自治区', '乌鲁木齐市', '新市区'),
(2771, 0, 325, '新疆维吾尔自治区', '乌鲁木齐市', '水磨沟区'),
(2772, 0, 325, '新疆维吾尔自治区', '乌鲁木齐市', '头屯河区'),
(2773, 0, 325, '新疆维吾尔自治区', '乌鲁木齐市', '达坂城区'),
(2774, 0, 325, '新疆维吾尔自治区', '乌鲁木齐市', '东山区'),
(2775, 0, 325, '新疆维吾尔自治区', '乌鲁木齐市', '乌鲁木齐县'),
(2776, 0, 326, '新疆维吾尔自治区', '克拉玛依市', '独山子区'),
(2777, 0, 326, '新疆维吾尔自治区', '克拉玛依市', '克拉玛依区'),
(2778, 0, 326, '新疆维吾尔自治区', '克拉玛依市', '白碱滩区'),
(2779, 0, 326, '新疆维吾尔自治区', '克拉玛依市', '乌尔禾区'),
(2780, 0, 327, '新疆维吾尔自治区', '吐鲁番地区', '吐鲁番市'),
(2781, 0, 327, '新疆维吾尔自治区', '吐鲁番地区', '鄯善县'),
(2782, 0, 327, '新疆维吾尔自治区', '吐鲁番地区', '托克逊县'),
(2783, 0, 328, '新疆维吾尔自治区', '哈密地区', '哈密市'),
(2784, 0, 328, '新疆维吾尔自治区', '哈密地区', '巴里坤哈萨克自治县'),
(2785, 0, 328, '新疆维吾尔自治区', '哈密地区', '伊吾县'),
(2786, 0, 329, '新疆维吾尔自治区', '昌吉回族自治州', '昌吉市'),
(2787, 0, 329, '新疆维吾尔自治区', '昌吉回族自治州', '阜康市'),
(2788, 0, 329, '新疆维吾尔自治区', '昌吉回族自治州', '米泉市'),
(2789, 0, 329, '新疆维吾尔自治区', '昌吉回族自治州', '呼图壁县'),
(2790, 0, 329, '新疆维吾尔自治区', '昌吉回族自治州', '玛纳斯县'),
(2791, 0, 329, '新疆维吾尔自治区', '昌吉回族自治州', '奇台县'),
(2792, 0, 329, '新疆维吾尔自治区', '昌吉回族自治州', '吉木萨尔县'),
(2793, 0, 329, '新疆维吾尔自治区', '昌吉回族自治州', '木垒哈萨克自治县'),
(2794, 0, 330, '新疆维吾尔自治区', '博尔塔拉蒙古自治州', '博乐市'),
(2795, 0, 330, '新疆维吾尔自治区', '博尔塔拉蒙古自治州', '精河县'),
(2796, 0, 330, '新疆维吾尔自治区', '博尔塔拉蒙古自治州', '温泉县'),
(2797, 0, 331, '新疆维吾尔自治区', '巴音郭楞蒙古自治州', '库尔勒市'),
(2798, 0, 331, '新疆维吾尔自治区', '巴音郭楞蒙古自治州', '轮台县'),
(2799, 0, 331, '新疆维吾尔自治区', '巴音郭楞蒙古自治州', '尉犁县'),
(2800, 0, 331, '新疆维吾尔自治区', '巴音郭楞蒙古自治州', '若羌县'),
(2801, 0, 331, '新疆维吾尔自治区', '巴音郭楞蒙古自治州', '且末县'),
(2802, 0, 331, '新疆维吾尔自治区', '巴音郭楞蒙古自治州', '焉耆回族自治县'),
(2803, 0, 331, '新疆维吾尔自治区', '巴音郭楞蒙古自治州', '和静县'),
(2804, 0, 331, '新疆维吾尔自治区', '巴音郭楞蒙古自治州', '和硕县'),
(2805, 0, 331, '新疆维吾尔自治区', '巴音郭楞蒙古自治州', '博湖县'),
(2806, 0, 332, '新疆维吾尔自治区', '阿克苏地区', '阿克苏市'),
(2807, 0, 332, '新疆维吾尔自治区', '阿克苏地区', '温宿县'),
(2808, 0, 332, '新疆维吾尔自治区', '阿克苏地区', '库车县'),
(2809, 0, 332, '新疆维吾尔自治区', '阿克苏地区', '沙雅县'),
(2810, 0, 332, '新疆维吾尔自治区', '阿克苏地区', '新和县'),
(2811, 0, 332, '新疆维吾尔自治区', '阿克苏地区', '拜城县'),
(2812, 0, 332, '新疆维吾尔自治区', '阿克苏地区', '乌什县'),
(2813, 0, 332, '新疆维吾尔自治区', '阿克苏地区', '阿瓦提县'),
(2814, 0, 332, '新疆维吾尔自治区', '阿克苏地区', '柯坪县'),
(2815, 0, 333, '新疆维吾尔自治区', '克孜勒苏柯尔克孜自治州', '阿图什市'),
(2816, 0, 333, '新疆维吾尔自治区', '克孜勒苏柯尔克孜自治州', '阿克陶县'),
(2817, 0, 333, '新疆维吾尔自治区', '克孜勒苏柯尔克孜自治州', '阿合奇县'),
(2818, 0, 333, '新疆维吾尔自治区', '克孜勒苏柯尔克孜自治州', '乌恰县'),
(2819, 0, 334, '新疆维吾尔自治区', '喀什地区', '喀什市'),
(2820, 0, 334, '新疆维吾尔自治区', '喀什地区', '疏附县'),
(2821, 0, 334, '新疆维吾尔自治区', '喀什地区', '疏勒县'),
(2822, 0, 334, '新疆维吾尔自治区', '喀什地区', '英吉沙县'),
(2823, 0, 334, '新疆维吾尔自治区', '喀什地区', '泽普县'),
(2824, 0, 334, '新疆维吾尔自治区', '喀什地区', '莎车县'),
(2825, 0, 334, '新疆维吾尔自治区', '喀什地区', '叶城县'),
(2826, 0, 334, '新疆维吾尔自治区', '喀什地区', '麦盖提县'),
(2827, 0, 334, '新疆维吾尔自治区', '喀什地区', '岳普湖县'),
(2828, 0, 334, '新疆维吾尔自治区', '喀什地区', '伽师县'),
(2829, 0, 334, '新疆维吾尔自治区', '喀什地区', '巴楚县'),
(2830, 0, 334, '新疆维吾尔自治区', '喀什地区', '塔什库尔干塔吉克自治县'),
(2831, 0, 335, '新疆维吾尔自治区', '和田地区', '和田市'),
(2832, 0, 335, '新疆维吾尔自治区', '和田地区', '和田县'),
(2833, 0, 335, '新疆维吾尔自治区', '和田地区', '墨玉县'),
(2834, 0, 335, '新疆维吾尔自治区', '和田地区', '皮山县'),
(2835, 0, 335, '新疆维吾尔自治区', '和田地区', '洛浦县'),
(2836, 0, 335, '新疆维吾尔自治区', '和田地区', '策勒县'),
(2837, 0, 335, '新疆维吾尔自治区', '和田地区', '于田县'),
(2838, 0, 335, '新疆维吾尔自治区', '和田地区', '民丰县'),
(2839, 0, 336, '新疆维吾尔自治区', '伊犁哈萨克自治州', '伊宁市'),
(2840, 0, 336, '新疆维吾尔自治区', '伊犁哈萨克自治州', '奎屯市'),
(2841, 0, 336, '新疆维吾尔自治区', '伊犁哈萨克自治州', '伊宁县'),
(2842, 0, 336, '新疆维吾尔自治区', '伊犁哈萨克自治州', '察布查尔锡伯自治县'),
(2843, 0, 336, '新疆维吾尔自治区', '伊犁哈萨克自治州', '霍城县'),
(2844, 0, 336, '新疆维吾尔自治区', '伊犁哈萨克自治州', '巩留县'),
(2845, 0, 336, '新疆维吾尔自治区', '伊犁哈萨克自治州', '新源县'),
(2846, 0, 336, '新疆维吾尔自治区', '伊犁哈萨克自治州', '昭苏县'),
(2847, 0, 336, '新疆维吾尔自治区', '伊犁哈萨克自治州', '特克斯县'),
(2848, 0, 336, '新疆维吾尔自治区', '伊犁哈萨克自治州', '尼勒克县'),
(2849, 0, 337, '新疆维吾尔自治区', '塔城地区', '塔城市'),
(2850, 0, 337, '新疆维吾尔自治区', '塔城地区', '乌苏市'),
(2851, 0, 337, '新疆维吾尔自治区', '塔城地区', '额敏县'),
(2852, 0, 337, '新疆维吾尔自治区', '塔城地区', '沙湾县'),
(2853, 0, 337, '新疆维吾尔自治区', '塔城地区', '托里县'),
(2854, 0, 337, '新疆维吾尔自治区', '塔城地区', '裕民县'),
(2855, 0, 337, '新疆维吾尔自治区', '塔城地区', '和布克赛尔蒙古自治县'),
(2856, 0, 338, '新疆维吾尔自治区', '阿勒泰地区', '阿勒泰市'),
(2857, 0, 338, '新疆维吾尔自治区', '阿勒泰地区', '布尔津县'),
(2858, 0, 338, '新疆维吾尔自治区', '阿勒泰地区', '富蕴县'),
(2859, 0, 338, '新疆维吾尔自治区', '阿勒泰地区', '福海县'),
(2860, 0, 338, '新疆维吾尔自治区', '阿勒泰地区', '哈巴河县'),
(2861, 0, 338, '新疆维吾尔自治区', '阿勒泰地区', '青河县'),
(2862, 0, 338, '新疆维吾尔自治区', '阿勒泰地区', '吉木乃县');
/*!40000 ALTER TABLE `district` ENABLE KEYS */;
-- 导出 表 world_area.province 结构
CREATE TABLE IF NOT EXISTS `province` (
`id` int(11) NOT NULL,
`name` varchar(10) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- 正在导出表 world_area.province 的数据:34 rows
DELETE FROM `province`;
/*!40000 ALTER TABLE `province` DISABLE KEYS */;
INSERT INTO `province` (`id`, `name`) VALUES
(1, '北京市'),
(2, '天津市'),
(3, '河北省'),
(4, '山西省'),
(5, '内蒙古自治区'),
(6, '辽宁省'),
(7, '吉林省'),
(8, '黑龙江省'),
(9, '上海市'),
(10, '江苏省'),
(11, '浙江省'),
(12, '安徽省'),
(13, '福建省'),
(14, '江西省'),
(15, '山东省'),
(16, '河南省'),
(17, '湖北省'),
(18, '湖南省'),
(19, '广东省'),
(20, '广西壮族自治区'),
(21, '海南省'),
(22, '重庆市'),
(23, '四川省'),
(24, '贵州省'),
(25, '云南省'),
(26, '西藏自治区'),
(27, '陕西省'),
(28, '甘肃省'),
(29, '青海省'),
(30, '宁夏回族自治区'),
(31, '新疆维吾尔自治区'),
(32, '香港特别行政区'),
(33, '澳门特别行政区'),
(34, '台湾省');
/*!40000 ALTER TABLE `province` ENABLE KEYS */;
/*!40101 SET SQL_MODE=IFNULL(@OLD_SQL_MODE, '') */;
/*!40014 SET FOREIGN_KEY_CHECKS=IF(@OLD_FOREIGN_KEY_CHECKS IS NULL, 1, @OLD_FOREIGN_KEY_CHECKS) */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
|
<reponame>nwalters512/attendance<gh_stars>1-10
INSERT INTO public.user_assists_course_instance (id, email, ci_term, ci_name, ci_year) VALUES (5, '<EMAIL>', 'Fall ', 'CS 225', 2018);
INSERT INTO public.user_assists_course_instance (id, email, ci_term, ci_name, ci_year) VALUES (3, '<EMAIL>', 'Fall ', 'CS 225', 2018);
INSERT INTO public.user_assists_course_instance (id, email, ci_term, ci_name, ci_year) VALUES (6, '<EMAIL>', 'Spring', 'CS 411 SP 19', 2019);
INSERT INTO public.user_assists_course_instance (id, email, ci_term, ci_name, ci_year) VALUES (8, '<EMAIL>', 'Spring', 'CS 411 SP 19', 2019);
INSERT INTO public.user_assists_course_instance (id, email, ci_term, ci_name, ci_year) VALUES (9, 's1', 'Fall ', 'CS 225', 2018);
INSERT INTO public.user_assists_course_instance (id, email, ci_term, ci_name, ci_year) VALUES (10, 's2', 'Fall ', 'CS 225', 2018);
INSERT INTO public.user_assists_course_instance (id, email, ci_term, ci_name, ci_year) VALUES (11, 's3', 'Spring', 'CS 411 SP 19', 2019); |
-- 管理员表
DROP TABLE IF EXISTS `admin`;
CREATE TABLE `admin` (
`id` int(4) NOT NULL auto_increment,
-- `Adm` int(1) NOT NULL default 0,
`Manager` varchar(30) NOT NULL default '',
`Password` varchar(20) NOT NULL default '',
PRIMARY KEY (`ID`)
) ENGINE=MyISAM AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;
INSERT INTO `admin` VALUES (1,'管理员1','1111'),(2,'管理员2','33aa');
-- 用户表
DROP TABLE IF EXISTS `user`;
CREATE TABLE `user` (
`id` int(4) NOT NULL auto_increment,
-- `User` int(1) NOT NULL default 1,
`username` varchar(30) NOT NULL default '',
`password` varchar(20) NOT NULL default '',
`address` varchar(200) NOT NULL default '',
`tel` varchar(15) NOT NULL default '',
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;
INSERT INTO `user` VALUES (1,'用户1','111','广东省广州市天河区','<PASSWORD>'),
(2,'用户2','33a','广东省广州市荔湾区','15066633312'),
(3,'用户3','2233','广东省肇庆市端州区','13030303030'),
(4,'用户4','33a','广东省广州市荔湾区','15066633312'),
(5,'用户5','111','广东省广州市天河区','15066633311'),
(6,'用户6','33a','广东省广州市荔湾区','15066633312'),
(7,'用户7','111','广东省广州市天河区','15066633311'),
(8,'用户8','33a','广东省广州市荔湾区','15066633312');
-- 设置缺省值,insert里面写default
-- 菜品表
DROP TABLE IF EXISTS `food`;
CREATE TABLE `food` (
`id` int(4) NOT NULL auto_increment,
`img_src` varchar(70) NOT NULL default '',
`name` varchar(40) NOT NULL default '',
`introduce` varchar(100) NOT NULL default '',
`price` int(4) default NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=9 DEFAULT CHARSET=utf8;
INSERT INTO `food` VALUES (1,'images/1.jpg','猪肉肠粉','原料:肠粉专用粉、猪肉、鸡蛋、青菜、清水、盐、淀粉、酱油、鱼露、胡椒粉、油、猪油。',15),
(2,'images/2.jpg','广式蒸肠粉','原料:广东肠粉专用粉、水、鸡蛋、瑶柱、葱花、酱油。',20),
(3,'images/3.jpg','港式菠萝包','原料:高筋面粉、牛奶、酵母、全蛋液、盐、砂糖、黄油、低筋面粉、糖粉、全蛋液、盐、奶粉、黄油。',25),
(4,'images/4.jpg','水晶虾饺','原料:虾仁、澄粉、猪油、生粉、开水、肥肉、胡萝卜、金针菇、淀粉、盐、鸡精、蚝油、胡椒粉、姜粉、葱、料酒、油。',40),
(5,'images/5.jpg','潮州牛肉丸粿条','原料:粿条、牛肉丸、鱼饼、叶菜、虾干、姜、蒜、芝麻油、辣椒油、盐、鸡粉、胡椒粉。',30),
(6,'images/6.jpg','手撕鸡炒河粉','原料:手撕鸡、河粉、青菜、西红柿、玉米油、盐、老干妈辣椒酱、生抽、白糖。',20),
(7,'images/7.jpg','双皮奶','原料:鸡蛋、全脂牛奶、糖粉。',12),
(8,'images/8.jpg','干炒牛河','原料:河粉、绿豆芽、洋葱、韭黄、香葱、鲜味酱油、老抽酱油、白砂糖、芝麻香油、蚝油。',20);
-- 订单表
DROP TABLE IF EXISTS `order`;
CREATE TABLE `order` (
`orderID` int(20) NOT NULL ,
`userID` int(4) default NULL,
`orderDate` datetime default NULL,
`total_price` int(6) default NULL,
`beizhu` varchar(50) NOT NULL default '',
PRIMARY KEY (`orderID`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- 这里不要设置自增
|
<reponame>SchrodingerZhu/blog-system
-- Your SQL goes here
CREATE TRIGGER tsvector_update
BEFORE INSERT OR UPDATE
ON posts
FOR EACH ROW
EXECUTE PROCEDURE
tsvector_update_trigger(text_searchable, 'pg_catalog.english', title, content);
DROP TRIGGER tsvectorupdateproducts ON posts; |
-- Insert dim location table
INSERT INTO
dim.location (
location_id,
country,
state,
county,
population,
combined_key
)
SELECT
location_id,
country,
state,
county,
CAST(population AS INT) population,
combined_key
FROM
-- check combined key because we create our own location_id's for missing locations and this can lead to dup locations, i.e. Yakutat, Alaska, United States
staging.staging_location ON CONFLICT (combined_key) DO NOTHING;
--insert into iso2 table
INSERT INTO
dim.iso (iso2, iso3, location_id)
SELECT
iso2,
iso3,
location_id
FROM
staging.staging_location
WHERE
iso2 IS NOT NULL ON CONFLICT (location_id) DO NOTHING;
--insert into lat_lon table
INSERT INTO
dim.lat_lon (lat, lon, lat_lon, location_id)
SELECT
lat,
lon,
concat_ws(', ', lat, lon) lat_lon,
location_id
FROM
staging.staging_location
WHERE
lat IS NOT NULL
AND lon IS NOT NULL
ON CONFLICT (location_id) DO NOTHING;
-- Insert dim time table
INSERT INTO
dim.time (dt, YEAR, MONTH, DAY, weekday)
SELECT
DISTINCT dt,
EXTRACT(
YEAR
FROM
dt
) AS YEAR,
EXTRACT(
MONTH
FROM
dt
) AS MONTH,
EXTRACT(
DAY
FROM
dt
) AS DAY,
EXTRACT(
dow
FROM
dt
) AS weekday
FROM
staging.staging_global_confirmed ON CONFLICT (dt) DO NOTHING;
|
<filename>DesktopDevelopment/SQL/SqlBasics/Base.sql
CREATE TABLE Fatura(
IdP integer,
parcela integer,
DTVencimento date not null,
DTPagamento date,
Valor numeric(14,2) check (valor > 0),
constraint FK_IdPFatura foreign key (IdP) references Passagem(IdP) on delete no action on update cascade,
primary key(IdP, parcela)
);
alter table Passagem add column cnpj varchar(20) not null;
alter table Fatura alter column DTVencimento drop default;
drop table Empresa;
insert into Aeroporto VALUES('', 'HAHA', 'op', 'nome', 'AC');
update Aviao set modelo = 'Fokker 100', numPoltronas = 202 where aviaoId = 8976;
delete from Fatura where IdP = 356 and parcela = 2;
select e.nome from Empresa e where e.nome ~*'[^aeiou]$' ;
select a.nome from Aeroporto a where a.nome ~* '^[a-j]';
select p.nome from Passageiro p join Passagem pa on p.passageiroId=pa.passageiroId join Aeroporto a on a.aeroportoId=pa.aeroportoPartida where a.cidade = 'Curitiba' intersect select p.nome from Passageiro p join Passagem pa on p.passageiroId=pa.passageiroId join Aeroporto a on a.aeroportoId=pa.aeroportoPartida where a.cidade = 'São Paulo';
select p.nome from Passageiro p join Passagem pa on p.passageiroId=pa.passageiroId join Aviao a on a.aviaoId=pa.aviaoId except select p.nome from Passageiro p join Passagem pa on p.passageiroId=pa.passageiroId join Aviao a on a.aviaoId=pa.aviaoId where a.modelo = 'Vickers VC-10';
select e.nome, a.aviaoId, a.numPoltronas from Aviao a join Empresa e on e.empresaId=a.empresaId where a.numPoltronas = 80 union select e.nome, a.aviaoId, a.numPoltronas from Aviao a join Empresa e on e.empresaId=a.empresaId where a.numPoltronas = 120;
select p.passageiroId, p.nome from Passageiro p join Passagem pa on p.passageiroId=pa.passageiroId join Fatura f on pa.IdP=f.IdP except select p.passageiroId, p.nome from Passageiro p join Passagem pa on p.passageiroId=pa.passageiroId join Fatura f on pa.IdP=f.IdP where (f.DTVencimento < current_date and f.DTPagamento = NULL);
|
<gh_stars>1000+
ALTER TYPE child_execution_info ADD parent_close_policy int; |
<gh_stars>0
Create table Titles (
title_id VARCHAR PRIMARY KEY,
title VARCHAR
);
Create table Employees (
emp_no INT PRIMARY KEY,
emp_title_ID VARCHAR,
FOREIGN KEY (emp_title_id) REFERENCES Titles(title_id),
birthdate DATE,
first_name VARCHAR,
last_name VARCHAR,
sex VARCHAR,
hire_date DATE
);
Create table Departments (
dep_no VARCHAR PRIMARY KEY,
dept_name VARCHAR
);
CREATE TABLE Dep_Emp(
emp_no INT,
FOREIGN KEY (emp_no) REFERENCES Employees(emp_no),
dep_no VARCHAR,
FOREIGN KEY (dep_no) REFERENCES Departments(dep_no)
);
CREATE TABLE Dep_Manager(
dep_no VARCHAR,
FOREIGN KEY (dep_no) REFERENCES Departments(dep_no),
emp_no INT,
FOREIGN KEY (emp_no) REFERENCES Employees(emp_no)
);
CREATE TABLE Salaries (
emp_no INT,
FOREIGN KEY (emp_no) REFERENCES Employees(emp_no),
salary INT
);
-------------------------------------------------------------------
|
SELECT a.company, a.num, a.stop, b.stop
FROM route a JOIN route b ON
(a.company=b.company AND a.num=b.num)
WHERE a.stop=53 AND b.stop=149
|
<reponame>LeeBaekHaeng/god.com390<gh_stars>0
SELECT
A.*
FROM com.COMTNAUTHORINFO A /* 권한정보 */
;
|
<reponame>hessjc/participant-management
# --- Created by Ebean DDL
# To stop Ebean DDL generation, remove this comment and start using Evolutions
# --- !Ups
create table configurations (
configuration_id bigint auto_increment not null,
page_title varchar(255),
page_header varchar(255),
page_width integer,
page_border tinyint(1) default 0,
page_background_image varchar(255),
page_headline_backgroundcolor varchar(255),
page_navigation_backgroundcolor varchar(255),
page_content_backgroundcolor varchar(255),
page_footer_backgroundcolor varchar(255),
page_backgroundimage varchar(255),
page_footer_left TEXT,
page_footer_right TEXT,
theme varchar(255),
meta_charset varchar(255),
meta_author varchar(255),
meta_description varchar(255),
meta_keywords varchar(255),
meta_date date,
email_config_email_id bigint,
multiple_languages tinyint(1) default 0,
impressum TEXT,
privacy TEXT,
contact TEXT,
constraint pk_configurations primary key (configuration_id))
;
create table courses (
course_id bigint auto_increment not null,
title varchar(255),
description TEXT,
slots integer,
event_id bigint,
constraint pk_courses primary key (course_id))
;
create table emails (
email_id bigint auto_increment not null,
display tinyint(1) default 0,
subject varchar(255),
from_name varchar(255),
from_email varchar(255),
add_tnb tinyint(1) default 0,
add_attachement tinyint(1) default 0,
body_text TEXT,
configuration_configuration_id bigint,
constraint pk_emails primary key (email_id))
;
create table events (
event_id bigint auto_increment not null,
name varchar(255),
shortcode varchar(255),
description TEXT,
description_image varchar(255),
start_date date,
end_date date,
support_email varchar(255),
facebook varchar(255),
twitter varchar(255),
googleplus varchar(255),
configuration_configuration_id bigint,
constraint pk_events primary key (event_id))
;
create table formdata (
data_id bigint auto_increment not null,
name varchar(255),
typ varchar(255),
icon varchar(255),
display tinyint(1) default 0,
required tinyint(1) default 0,
template_id bigint,
constraint pk_formdata primary key (data_id))
;
create table participants (
participant_id bigint auto_increment not null,
salutation varchar(255),
lastname varchar(255),
firstname varchar(255),
birthday date,
badge_firstname varchar(255),
badge_lastname varchar(255),
company varchar(255),
company_additional varchar(255),
department varchar(255),
service_cost_center varchar(255),
position varchar(255),
vatin varchar(255),
street varchar(255),
postofficebox varchar(255),
postcode integer,
location varchar(255),
country varchar(255),
phone varchar(255),
mobilephone varchar(255),
telefax varchar(255),
email varchar(255),
url varchar(255),
username varchar(255),
password varchar(255),
password_confirmation varchar(255),
billingsalutation varchar(255),
billinglastname varchar(255),
billingfirstname varchar(255),
billingcompany varchar(255),
billingcompany_additional varchar(255),
billingdepartment varchar(255),
billingservice_cost_center varchar(255),
billingvatin varchar(255),
billingstreet varchar(255),
billingpostcode integer,
billinglocation varchar(255),
billingcountry varchar(255),
billingemail varchar(255),
shippingsalutation varchar(255),
shippinglastname varchar(255),
shippingfirstname varchar(255),
shippingcompany varchar(255),
shippingcompany_additional varchar(255),
shippingdepartment varchar(255),
shippingstreet varchar(255),
shippingpostcode integer,
shippinglocation varchar(255),
shippingcountry varchar(255),
event_id bigint,
constraint uq_participants_email unique (email),
constraint uq_participants_username unique (username),
constraint pk_participants primary key (participant_id))
;
create table participant_course_service (
participant_participant_id bigint,
course_course_id bigint)
;
create table participant_ticket_service (
participant_participant_id bigint,
ticket_ticket_id bigint)
;
create table security_role (
id bigint auto_increment not null,
name varchar(255),
constraint pk_security_role primary key (id))
;
create table templates (
template_id bigint auto_increment not null,
name varchar(255),
display tinyint(1) default 0,
login tinyint(1) default 0,
registration tinyint(1) default 0,
password_login tinyint(1) default 0,
passwords varchar(255),
configuration_id bigint,
constraint pk_templates primary key (template_id))
;
create table tickets (
ticket_id bigint auto_increment not null,
title varchar(255),
description TEXT,
price double,
minpp integer,
maxpp integer,
contingent integer,
duration integer,
img varchar(255),
event_id bigint,
constraint pk_tickets primary key (ticket_id))
;
create table token (
token varchar(255) not null,
user_id bigint,
type varchar(8),
date_creation datetime,
email varchar(255),
constraint ck_token_type check (type in ('password','email')),
constraint pk_token primary key (token))
;
create table user (
id bigint auto_increment not null,
username varchar(255),
email varchar(255),
password_hash varchar(255),
date_creation datetime,
validated tinyint(1) default 0,
constraint uq_user_username unique (username),
constraint uq_user_email unique (email),
constraint pk_user primary key (id))
;
create table user_permission (
id bigint auto_increment not null,
permission_value varchar(255),
constraint pk_user_permission primary key (id))
;
create table user_security_role (
user_id bigint not null,
security_role_id bigint not null,
constraint pk_user_security_role primary key (user_id, security_role_id))
;
create table user_user_permission (
user_id bigint not null,
user_permission_id bigint not null,
constraint pk_user_user_permission primary key (user_id, user_permission_id))
;
alter table configurations add constraint fk_configurations_emailConfig_1 foreign key (email_config_email_id) references emails (email_id) on delete restrict on update restrict;
create index ix_configurations_emailConfig_1 on configurations (email_config_email_id);
alter table courses add constraint fk_courses_event_2 foreign key (event_id) references events (event_id) on delete restrict on update restrict;
create index ix_courses_event_2 on courses (event_id);
alter table emails add constraint fk_emails_configuration_3 foreign key (configuration_configuration_id) references configurations (configuration_id) on delete restrict on update restrict;
create index ix_emails_configuration_3 on emails (configuration_configuration_id);
alter table events add constraint fk_events_configuration_4 foreign key (configuration_configuration_id) references configurations (configuration_id) on delete restrict on update restrict;
create index ix_events_configuration_4 on events (configuration_configuration_id);
alter table formdata add constraint fk_formdata_template_5 foreign key (template_id) references templates (template_id) on delete restrict on update restrict;
create index ix_formdata_template_5 on formdata (template_id);
alter table participants add constraint fk_participants_event_6 foreign key (event_id) references events (event_id) on delete restrict on update restrict;
create index ix_participants_event_6 on participants (event_id);
alter table participant_course_service add constraint fk_participant_course_service_participant_7 foreign key (participant_participant_id) references participants (participant_id) on delete restrict on update restrict;
create index ix_participant_course_service_participant_7 on participant_course_service (participant_participant_id);
alter table participant_course_service add constraint fk_participant_course_service_course_8 foreign key (course_course_id) references courses (course_id) on delete restrict on update restrict;
create index ix_participant_course_service_course_8 on participant_course_service (course_course_id);
alter table participant_ticket_service add constraint fk_participant_ticket_service_participant_9 foreign key (participant_participant_id) references participants (participant_id) on delete restrict on update restrict;
create index ix_participant_ticket_service_participant_9 on participant_ticket_service (participant_participant_id);
alter table participant_ticket_service add constraint fk_participant_ticket_service_ticket_10 foreign key (ticket_ticket_id) references tickets (ticket_id) on delete restrict on update restrict;
create index ix_participant_ticket_service_ticket_10 on participant_ticket_service (ticket_ticket_id);
alter table templates add constraint fk_templates_configuration_11 foreign key (configuration_id) references configurations (configuration_id) on delete restrict on update restrict;
create index ix_templates_configuration_11 on templates (configuration_id);
alter table tickets add constraint fk_tickets_event_12 foreign key (event_id) references events (event_id) on delete restrict on update restrict;
create index ix_tickets_event_12 on tickets (event_id);
alter table user_security_role add constraint fk_user_security_role_user_01 foreign key (user_id) references user (id) on delete restrict on update restrict;
alter table user_security_role add constraint fk_user_security_role_security_role_02 foreign key (security_role_id) references security_role (id) on delete restrict on update restrict;
alter table user_user_permission add constraint fk_user_user_permission_user_01 foreign key (user_id) references user (id) on delete restrict on update restrict;
alter table user_user_permission add constraint fk_user_user_permission_user_permission_02 foreign key (user_permission_id) references user_permission (id) on delete restrict on update restrict;
# --- !Downs
SET FOREIGN_KEY_CHECKS=0;
drop table configurations;
drop table courses;
drop table emails;
drop table events;
drop table formdata;
drop table participants;
drop table participant_course_service;
drop table participant_ticket_service;
drop table security_role;
drop table templates;
drop table tickets;
drop table token;
drop table user;
drop table user_security_role;
drop table user_user_permission;
drop table user_permission;
SET FOREIGN_KEY_CHECKS=1;
|
<reponame>Brayan-Oviedo/Pool
select identificacion, fecha_nacimiento
from cliente
where identificacion = :identificacion |
CREATE INDEX secrets_current_idx ON secrets (current); |
## 查找学生待加入班级数据
#macro($zyFindClazzRequest(classId,studentId))
SELECT t.* FROM clazz_join_request t WHERE t.student_id = :studentId AND t.homework_class_id = :classId AND t.request_status = 0 AND t.delete_status = 0
#end
## 申请的数量
#macro($zyRequestCount(teacherId,startTime))
select count(id) from clazz_join_request where teacher_id = :teacherId and request_status = 0 AND delete_status = 0
#if(startTime)
and update_at > :startTime
#end
#end
## 申请列表
#macro($zyRequestList(teacherId))
select * from clazz_join_request where teacher_id = :teacherId and delete_status = 0 order by update_at desc
#end
## 查询教师待处理的列表数量
#macro($zyCountConfirmStuNum(teacherId))
SELECT count(id) FROM clazz_join_request WHERE teacher_id = :teacherId AND request_status = 0 AND delete_status = 0
#end
## 游标查询教师待处理的申请列表
#macro($zyCursorRequestList(teacherId))
select * from clazz_join_request where teacher_id = :teacherId AND id < :next AND delete_status = 0 order by update_at desc
#end
## 删除请求数据
#macro($delete(id,updateAt))
UPDATE clazz_join_request SET delete_status = 1, update_at = :updateAt WHERE id = :id
#end
|
select wait_class as wait_class, sum(time_waited_micro) as time_waited_micros
from {{ v$system_event }} where wait_class <> 'Idle' group by wait_class
union all
select 'CPU', sum(value) from {{ v$sys_time_model }} where stat_name in ('DB CPU', 'background cpu time')
|
select avg(l_partkey) as total_avg from lineitem; |
<gh_stars>1000+
-- Copyright 2020 The Nomulus Authors. All Rights Reserved.
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or agreed to in writing, software
-- distributed under the License is distributed on an "AS IS" BASIS,
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-- See the License for the specific language governing permissions and
-- limitations under the License.
ALTER TABLE "Domain" ADD COLUMN admin_contact text;
ALTER TABLE "Domain" ADD COLUMN billing_contact text;
ALTER TABLE "Domain" ADD COLUMN registrant_contact text;
ALTER TABLE "Domain" ADD COLUMN tech_contact text;
alter table if exists "Domain"
add constraint fk_domain_admin_contact
foreign key (admin_contact)
references "Contact";
alter table if exists "Domain"
add constraint fk_domain_billing_contact
foreign key (billing_contact)
references "Contact";
alter table if exists "Domain"
add constraint fk_domain_registrant_contact
foreign key (registrant_contact)
references "Contact";
alter table if exists "Domain"
add constraint fk_domain_tech_contact
foreign key (tech_contact)
references "Contact";
|
begin;
REINDEX INDEX abort_create_needed_cr_ao_reindex_gist_idx1;
drop index abort_create_needed_cr_ao_reindex_gist_idx1;
commit;
|
<reponame>joyfinder/HackerRank-solutions
/*
Enter your query here.
*/
SELECT CITY, length(CITY)
FROM STATION order by length(CITY),
city limit 1;
SELECT CITY, length(CITY)
FROM STATION order by length(CITY) desc,
city limit 1; |
<gh_stars>0
/****** Object: StoredProcedure [dbo].[app_ProgramGamePointConversion_Insert] Script Date: 01/05/2015 14:43:25 ******/
--Create the Insert Proc
CREATE PROCEDURE [dbo].[app_ProgramGamePointConversion_Insert] (
@PGID INT,
@ActivityTypeId INT,
@ActivityCount INT,
@PointCount INT,
@LastModDate DATETIME,
@LastModUser VARCHAR(50),
@AddedDate DATETIME,
@AddedUser VARCHAR(50),
@PGCID INT OUTPUT
)
AS
BEGIN
INSERT INTO ProgramGamePointConversion (
PGID,
ActivityTypeId,
ActivityCount,
PointCount,
LastModDate,
LastModUser,
AddedDate,
AddedUser
)
VALUES (
@PGID,
@ActivityTypeId,
@ActivityCount,
@PointCount,
@LastModDate,
@LastModUser,
@AddedDate,
@AddedUser
)
SELECT @PGCID = SCOPE_IDENTITY()
END
|
# Create Table
CREATE DATABASE `yt_reader` DEFAULT CHARACTER SET 'utf8mb4' default collate 'utf8mb4_general_ci';
# Create User
CREATE USER 'reader'@'%' IDENTIFIED BY 'HCWzEr<PASSWORD>VnJUV';
GRANT ALL ON yt_reader.* TO 'reader'@'%' IDENTIFIED BY 'HCWzEr4X9F@2VnJUV' WITH GRANT OPTION ;
FLUSH PRIVILEGES ; |
<filename>extra/src/test/java/tk/mybatis/mapper/additional/update/force/CreateDB.sql
drop table country_int if exists;
create table country_int
(
id integer NOT NULL PRIMARY KEY,
countryname varchar(32),
countrycode integer
);
INSERT INTO country_int (id, countryname, countrycode)
VALUES (174, 'United States of America', 100);
|
CREATE TABLE IF NOT EXISTS types (
`list_english` VARCHAR(8) CHARACTER SET utf8,
`list_chinese` VARCHAR(2) CHARACTER SET utf8,
`list_japanese` VARCHAR(5) CHARACTER SET utf8
);
INSERT INTO types VALUES
('Normal','一般','ノーマル'),
('Fighting','格斗','かくとう'),
('Flying','飞行','ひこう'),
('Poison','毒','どく'),
('Ground','地上','じめん'),
('Rock','岩石','いわ'),
('Bug','虫','むし'),
('Ghost','幽灵','ゴースト'),
('Steel','钢','はがね'),
('Fire','炎','ほのお'),
('Water','水','みず'),
('Grass','草','くさ'),
('Electric','电','でんき'),
('Psychic','超能','エスパー'),
('Ice','冰','こおり'),
('Dragon','龙','ドラゴン'),
('Dark','恶','あく'),
('Fairy','妖精','フェアリー');
|
-- phpMyAdmin SQL Dump
-- version 4.9.2
-- https://www.phpmyadmin.net/
--
-- Host: localhost
-- Generation Time: Aug 12, 2020 at 02:57 PM
-- Server version: 10.4.11-MariaDB
-- PHP Version: 7.3.13
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: `factory`
--
-- --------------------------------------------------------
--
-- Table structure for table `auther`
--
CREATE TABLE `auther` (
`auther_id` int(11) NOT NULL,
`auther_name` varchar(100) COLLATE utf8_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
--
-- Dumping data for table `auther`
--
INSERT INTO `auther` (`auther_id`, `auther_name`) VALUES
(1, 'ເຈົ້າຂອງໂຮງງານ'),
(2, 'ພະນັກງານ'),
(3, 'ປິດການໃຊ້ງານ');
-- --------------------------------------------------------
--
-- Table structure for table `listexportdetail`
--
CREATE TABLE `listexportdetail` (
`ExpNo` int(11) NOT NULL,
`Pro_ID` varchar(10) COLLATE utf8_unicode_ci DEFAULT NULL,
`Qty` int(11) DEFAULT NULL,
`Price` int(11) DEFAULT NULL,
`emp_id` varchar(10) COLLATE utf8_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `listmakedetail`
--
CREATE TABLE `listmakedetail` (
`M_No` int(11) NOT NULL,
`Pro_ID` varchar(10) COLLATE utf8_unicode_ci DEFAULT NULL,
`Qty` int(11) DEFAULT NULL,
`emp_id` varchar(10) COLLATE utf8_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `tbcustomers`
--
CREATE TABLE `tbcustomers` (
`Cus_ID` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
`Cus_Name` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
`Cus_Surname` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
`Gender` varchar(5) COLLATE utf8_unicode_ci DEFAULT NULL,
`Address` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
`Tel` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL,
`Email` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
--
-- Dumping data for table `tbcustomers`
--
INSERT INTO `tbcustomers` (`Cus_ID`, `Cus_Name`, `Cus_Surname`, `Gender`, `Address`, `Tel`, `Email`) VALUES
('002', 'ສົມຈິດ', 'ງາມດີ', 'ຊາຍ', 'ບ້ານທາດຫຼວງ ເມືອງໄຊເສດຖາ ນະຄອນຫຼວງ\r\n', '020-5555-6633', '<EMAIL>'),
('003', 'ສົມຈິດAAA', 'ສົມຈິດAAA', 'ຍິງ', '-AA', '+856 20 5795 9555AA', '<EMAIL>'),
('C001', 'ລູກຄ້າທົ່ວໄປ', '', '', '', '', '');
-- --------------------------------------------------------
--
-- Table structure for table `tbemployees`
--
CREATE TABLE `tbemployees` (
`Emp_ID` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
`Emp_Name` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
`Emp_Surname` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
`Gender` varchar(5) COLLATE utf8_unicode_ci NOT NULL,
`Address` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
`Tel` varchar(24) COLLATE utf8_unicode_ci NOT NULL,
`Email` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
`Password` varchar(24) COLLATE utf8_unicode_ci NOT NULL,
`auther_id` int(11) NOT NULL,
`img_path` varchar(1000) COLLATE utf8_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
--
-- Dumping data for table `tbemployees`
--
INSERT INTO `tbemployees` (`Emp_ID`, `Emp_Name`, `Emp_Surname`, `Gender`, `Address`, `Tel`, `Email`, `Password`, `auther_id`, `img_path`) VALUES
('E001', 'ໂຣເບີດ', 'ມະນີຄຳ', 'ຍິງ', 'ທ່າແຂກ', '020-2132-3344', '<EMAIL>', '12345', 1, ''),
('E002', 'ໄຊນ້ອຍ', '', 'ຊາຍ', 'ໂພນຕ້ອງ', '', '<EMAIL>', '123', 2, '');
-- --------------------------------------------------------
--
-- Table structure for table `tbexportdetail`
--
CREATE TABLE `tbexportdetail` (
`ExpNo` int(11) NOT NULL,
`BillNo` int(11) DEFAULT NULL,
`Pro_ID` varchar(10) COLLATE utf8_unicode_ci DEFAULT NULL,
`Qty` int(11) DEFAULT NULL,
`Price` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
--
-- Dumping data for table `tbexportdetail`
--
INSERT INTO `tbexportdetail` (`ExpNo`, `BillNo`, `Pro_ID`, `Qty`, `Price`) VALUES
(1, 1, '001', 42, 3000),
(2, 1, '002', 30, 3000),
(4, 2, '001', 192, 3000),
(5, 3, '002', 60, 3000),
(6, 3, '004', 80, 24000),
(7, 3, '003', 90, 5000),
(8, 4, '003', 29, 5000),
(9, 4, '004', 30, 24000),
(11, 6, '001', 2, 35000),
(12, 6, '003', 1, 25000),
(14, 7, '001', 1, 35000),
(15, 7, '003', 1, 25000);
-- --------------------------------------------------------
--
-- Table structure for table `tbexports`
--
CREATE TABLE `tbexports` (
`BillNo` int(11) NOT NULL,
`DateExp` date DEFAULT NULL,
`TimeExp` time DEFAULT NULL,
`Amount` int(11) DEFAULT NULL,
`Cus_ID` varchar(10) COLLATE utf8_unicode_ci DEFAULT NULL,
`Emp_ID` varchar(10) COLLATE utf8_unicode_ci DEFAULT NULL,
`Status` varchar(10) COLLATE utf8_unicode_ci DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
--
-- Dumping data for table `tbexports`
--
INSERT INTO `tbexports` (`BillNo`, `DateExp`, `TimeExp`, `Amount`, `Cus_ID`, `Emp_ID`, `Status`) VALUES
(1, '2019-08-20', '17:05:22', 216000, '002', 'E001', 'ຈ່າຍແລ້ວ'),
(2, '2019-08-21', '22:39:46', 576000, 'C001', 'E001', 'ຈ່າຍແລ້ວ'),
(3, '2019-08-21', '20:09:25', 2550000, 'C001', 'E001', 'ຄ້າງຈ່າຍ'),
(4, '2019-08-21', '20:16:34', 865000, '002', 'E001', 'ຄ້າງຈ່າຍ'),
(6, '2020-08-10', '21:16:40', 95000, '002', 'E001', 'ຈ່າຍແລ້ວ'),
(7, '2020-08-10', '21:48:58', 60000, '002', 'E001', 'ຈ່າຍແລ້ວ');
-- --------------------------------------------------------
--
-- Table structure for table `tbmakedetail`
--
CREATE TABLE `tbmakedetail` (
`M_No` int(11) NOT NULL,
`MaKe_No` int(11) DEFAULT NULL,
`Pro_ID` varchar(10) COLLATE utf8_unicode_ci DEFAULT NULL,
`Qty` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
--
-- Dumping data for table `tbmakedetail`
--
INSERT INTO `tbmakedetail` (`M_No`, `MaKe_No`, `Pro_ID`, `Qty`) VALUES
(10, 1, '001', 2),
(11, 1, '002', 2),
(13, 2, '001', 1);
-- --------------------------------------------------------
--
-- Table structure for table `tbmaking`
--
CREATE TABLE `tbmaking` (
`Make_No` int(11) NOT NULL,
`DateOFMake` date DEFAULT NULL,
`TimeOFMake` time DEFAULT NULL,
`QtyAmount` int(11) DEFAULT NULL,
`Emp_ID` varchar(10) COLLATE utf8_unicode_ci DEFAULT NULL,
`status` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
`seen1` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
`seen2` varchar(50) COLLATE utf8_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
--
-- Dumping data for table `tbmaking`
--
INSERT INTO `tbmaking` (`Make_No`, `DateOFMake`, `TimeOFMake`, `QtyAmount`, `Emp_ID`, `status`, `seen1`, `seen2`) VALUES
(1, '2020-08-04', '21:31:12', 4, 'E001', 'ອະນຸມັດ', 'SEEN', 'SEEN'),
(2, '2020-08-12', '17:49:21', 1, 'E001', 'ຍັງບໍ່ອະນຸມັດ', 'SEEN', '');
-- --------------------------------------------------------
--
-- Table structure for table `tbproducts`
--
CREATE TABLE `tbproducts` (
`Pro_ID` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
`Pro_Name` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
`Unit_ID` int(11) DEFAULT NULL,
`Price` int(11) DEFAULT NULL,
`Qty` int(11) DEFAULT NULL,
`QtyAlert` int(11) DEFAULT NULL,
`img_path` varchar(1000) COLLATE utf8_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
--
-- Dumping data for table `tbproducts`
--
INSERT INTO `tbproducts` (`Pro_ID`, `Pro_Name`, `Unit_ID`, `Price`, `Qty`, `QtyAlert`, `img_path`) VALUES
('001', 'ນ້ຳດື່ມຫົງສະຫວັນ 250 ມລ', 3, 35000, 102, 100, 'img_5f294af15a84e.jpg'),
('002', 'ນ້ຳດື່ມຫົງສະຫວັນ 600 ມລ', 3, 45000, 152, 100, 'img_5f294aa062dca.jpg'),
('003', ' ນ້ຳດື່ມຫົງສະຫວັນ 1500 ມລ', 2, 25000, 100, 200, 'img_5f2949e6d139e.jpg'),
('004', 'ນ້ຳດື່ມວິນເທີ້ ນ້ອຍ', 3, 24000, 100, 50, 'img_5f29499facbff.jpg');
-- --------------------------------------------------------
--
-- Table structure for table `tbunit`
--
CREATE TABLE `tbunit` (
`Unit_ID` int(11) NOT NULL,
`Unit_Name` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
--
-- Dumping data for table `tbunit`
--
INSERT INTO `tbunit` (`Unit_ID`, `Unit_Name`) VALUES
(1, 'ຕຸກ'),
(2, 'ແພັກ'),
(3, 'ແກັດ');
--
-- Indexes for dumped tables
--
--
-- Indexes for table `auther`
--
ALTER TABLE `auther`
ADD PRIMARY KEY (`auther_id`);
--
-- Indexes for table `listexportdetail`
--
ALTER TABLE `listexportdetail`
ADD PRIMARY KEY (`ExpNo`),
ADD KEY `Pro_ID` (`Pro_ID`),
ADD KEY `emp_id` (`emp_id`);
--
-- Indexes for table `listmakedetail`
--
ALTER TABLE `listmakedetail`
ADD PRIMARY KEY (`M_No`),
ADD KEY `Pro_ID` (`Pro_ID`),
ADD KEY `emp_id` (`emp_id`);
--
-- Indexes for table `tbcustomers`
--
ALTER TABLE `tbcustomers`
ADD PRIMARY KEY (`Cus_ID`);
--
-- Indexes for table `tbemployees`
--
ALTER TABLE `tbemployees`
ADD PRIMARY KEY (`Emp_ID`),
ADD KEY `auther_id` (`auther_id`);
--
-- Indexes for table `tbexportdetail`
--
ALTER TABLE `tbexportdetail`
ADD PRIMARY KEY (`ExpNo`),
ADD KEY `BillNo` (`BillNo`),
ADD KEY `Pro_ID` (`Pro_ID`);
--
-- Indexes for table `tbexports`
--
ALTER TABLE `tbexports`
ADD PRIMARY KEY (`BillNo`),
ADD KEY `Cus_ID` (`Cus_ID`),
ADD KEY `Emp_ID` (`Emp_ID`);
--
-- Indexes for table `tbmakedetail`
--
ALTER TABLE `tbmakedetail`
ADD PRIMARY KEY (`M_No`),
ADD KEY `Mate_No` (`MaKe_No`),
ADD KEY `Pro_ID` (`Pro_ID`);
--
-- Indexes for table `tbmaking`
--
ALTER TABLE `tbmaking`
ADD PRIMARY KEY (`Make_No`),
ADD KEY `Emp_ID` (`Emp_ID`);
--
-- Indexes for table `tbproducts`
--
ALTER TABLE `tbproducts`
ADD PRIMARY KEY (`Pro_ID`),
ADD KEY `Unit_ID` (`Unit_ID`);
--
-- Indexes for table `tbunit`
--
ALTER TABLE `tbunit`
ADD PRIMARY KEY (`Unit_ID`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `listexportdetail`
--
ALTER TABLE `listexportdetail`
MODIFY `ExpNo` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=31;
--
-- AUTO_INCREMENT for table `listmakedetail`
--
ALTER TABLE `listmakedetail`
MODIFY `M_No` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=31;
--
-- AUTO_INCREMENT for table `tbexportdetail`
--
ALTER TABLE `tbexportdetail`
MODIFY `ExpNo` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=17;
--
-- AUTO_INCREMENT for table `tbmakedetail`
--
ALTER TABLE `tbmakedetail`
MODIFY `M_No` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=14;
--
-- AUTO_INCREMENT for table `tbunit`
--
ALTER TABLE `tbunit`
MODIFY `Unit_ID` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;
--
-- Constraints for dumped tables
--
--
-- Constraints for table `listexportdetail`
--
ALTER TABLE `listexportdetail`
ADD CONSTRAINT `listexportdetail_ibfk_1` FOREIGN KEY (`Pro_ID`) REFERENCES `tbproducts` (`Pro_ID`),
ADD CONSTRAINT `listexportdetail_ibfk_2` FOREIGN KEY (`emp_id`) REFERENCES `tbemployees` (`Emp_ID`);
--
-- Constraints for table `listmakedetail`
--
ALTER TABLE `listmakedetail`
ADD CONSTRAINT `listmakedetail_ibfk_1` FOREIGN KEY (`Pro_ID`) REFERENCES `tbproducts` (`Pro_ID`),
ADD CONSTRAINT `listmakedetail_ibfk_2` FOREIGN KEY (`emp_id`) REFERENCES `tbemployees` (`Emp_ID`);
--
-- Constraints for table `tbemployees`
--
ALTER TABLE `tbemployees`
ADD CONSTRAINT `tbemployees_ibfk_1` FOREIGN KEY (`auther_id`) REFERENCES `auther` (`auther_id`);
--
-- Constraints for table `tbexportdetail`
--
ALTER TABLE `tbexportdetail`
ADD CONSTRAINT `tbexportdetail_ibfk_1` FOREIGN KEY (`BillNo`) REFERENCES `tbexports` (`BillNo`),
ADD CONSTRAINT `tbexportdetail_ibfk_2` FOREIGN KEY (`Pro_ID`) REFERENCES `tbproducts` (`Pro_ID`);
--
-- Constraints for table `tbexports`
--
ALTER TABLE `tbexports`
ADD CONSTRAINT `tbexports_ibfk_1` FOREIGN KEY (`Cus_ID`) REFERENCES `tbcustomers` (`Cus_ID`),
ADD CONSTRAINT `tbexports_ibfk_2` FOREIGN KEY (`Emp_ID`) REFERENCES `tbemployees` (`Emp_ID`);
--
-- Constraints for table `tbmakedetail`
--
ALTER TABLE `tbmakedetail`
ADD CONSTRAINT `tbmakedetail_ibfk_1` FOREIGN KEY (`MaKe_No`) REFERENCES `tbmaking` (`Make_No`),
ADD CONSTRAINT `tbmakedetail_ibfk_2` FOREIGN KEY (`Pro_ID`) REFERENCES `tbproducts` (`Pro_ID`);
--
-- Constraints for table `tbmaking`
--
ALTER TABLE `tbmaking`
ADD CONSTRAINT `tbmaking_ibfk_1` FOREIGN KEY (`Emp_ID`) REFERENCES `tbemployees` (`Emp_ID`);
--
-- Constraints for table `tbproducts`
--
ALTER TABLE `tbproducts`
ADD CONSTRAINT `tbproducts_ibfk_1` FOREIGN KEY (`Unit_ID`) REFERENCES `tbunit` (`Unit_ID`);
COMMIT;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
<reponame>adamxtokyo/hackerrank
/*
* Practice > SQL > Basic Join > The Report
* https://www.hackerrank.com/challenges/the-report/problem
*/
SELECT IF(g.Grade >= 8, s.Name, 'NULL'), g.Grade, s.Marks
FROM Students s
INNER JOIN Grades g ON s.Marks BETWEEN g.Min_Mark AND g.Max_Mark
ORDER BY g.Grade DESC, s.Name ASC, s.Marks ASC
|
CREATE DATABASE BRASILEIRAO GO
USE BRASILEIRAO
SELECT * FROM CAMPEONATO
--------------------------------------------------------------------
/*Consulta de clubes participantes*/
SELECT distinct [Clube 1]FROM CAMPEONATO go
--------------------------------------------------------------------
/*5 Clubes que mais jogaram*/
SELECT TOP 5 [CLUBE 1],COUNT([Clube 1]) AS TOTAL FROM CAMPEONATO
GROUP BY([Clube 1]) ORDER BY (TOTAL) DESC go
----------------------------------------------------------------------------
/*Clubes Pertencentes ao estado de SP*/
SELECT DISTINCT [CLUBE 1] FROM Campeonato
WHERE [Clube 1 Estado] = 'SP' ORDER BY [Clube 1] GO
---------------------------------------------------------------------------
/*QUANTIDADE DE PARTIDAS DE CLUBES POR ESTADOS*/
SELECT [Clube 1 Estado], COUNT([Clube 1]) AS TOTAL
FROM Campeonato GROUP BY [Clube 1 ESTADO] ORDER BY [Clube 1 Estado]
---------------------------------------------------------------------------
/*CONFRONTOS DE CLUBES DO MESMO ESTADO*/
SELECT [Clube 1], [Clube 2], [Clube 1 Estado] AS ESTADO FROM Campeonato
WHERE [Clube 1 Estado] = [Clube 2 Estado]
-------------------------------------------------------------------------
/*CONFRONTOS REALIZADOS NO SABADO*/
SELECT * FROM Campeonato
WHERE DIA = 'SABADO'
-----------------------------------------------------------------------------------------------------------------------
/*MEDIA DE GOLS POR TIME*/
SELECT CAMP2.[CLUBE 2] AS CLUBE,
AVG( (CONVERT(INT,CAMP2.[Clube 1 Gols])) + (CONVERT(INT,CAMP2.[Clube 2 Gols])) ) AS TOTAL
FROM Campeonato AS CAMP1
JOIN CAMPEONATO AS CAMP2
ON CAMP1.[CLUBE 1] = CAMP2.[CLUBE 2]
GROUP BY CAMP2.[CLUBE 2] ORDER BY CAMP2.[CLUBE 2]
------------------------------------------------------------------------
/*EMPATES DE TIMES DO MESMO ESTADO.*/
SELECT [Clube 1], [Clube 2], COUNT([Estado Clube Vencedor]) AS EMPATE
FROM Campeonato WHERE [Estado Clube Vencedor] = 'EMPATE' AND [Clube 1 Estado] = [Clube 2 Estado]
GROUP BY [CLUBE 1], [CLUBE 2]
----------------------------------------------------------------------------------------------------------
/*VITORIAS COM 2 GOLS OU MAIS*/
SELECT [Clube 1], [Clube 2], CONVERT(INT,[CLUBE 1 GOLS]) AS 'CLUBE 1', CONVERT(INT,[Clube 2 Gols]) AS 'CLUBE 2' FROM Campeonato
WHERE [Clube 1 Gols] > 2 OR [Clube 2 Gols] > 2
-----------------------------------------------------------------------------------------------------------------------------------
/*CLUBES QUE JOGARAM NA RODADA 1 NO ANO DE 2000*/
SELECT * FROM Campeonato
WHERE Rodada = '1ª Rodada' AND DATA LIKE '2000%'
-----------------------------------------------------------
/*SOMATORIA DE GOLS FEITOS EM ESTADIO*/
SELECT Arena ,SUM(CONVERT(INT,[CLUBE 1 GOLS]) + (CONVERT(INT,[CLUBE 2 GOLS]))) AS GOL2 FROM Campeonato
GROUP BY Arena
----------------------------------------------------------------------------------------------------------------------- |
<reponame>raresraf/rafMetrics
# Auto-generated init SQL file.
# Do not manually edit this file.
CREATE DATABASE IF NOT EXISTS WebMonitoring;
use WebMonitoring;
CREATE table USERS (
Userid int NOT NULL AUTO_INCREMENT,
LastName varchar(255) NOT NULL,
FirstName varchar(255) NOT NULL,
Username varchar(64) NOT NULL,
Email varchar(255),
hashedpassword varchar(2048),
Created TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (Userid)
);
CREATE table RESOURCE (
Resourceid int NOT NULL AUTO_INCREMENT,
Userid int NOT NULL,
ResourceName varchar(255) NOT NULL,
Command varchar(255) NOT NULL,
FirstAdded TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (Resourceid),
FOREIGN KEY (Userid) REFERENCES USERS(Userid)
);
CREATE table PING (
Pingid int NOT NULL AUTO_INCREMENT,
Resourceid int NOT NULL,
ResponseTime double NOT NULL,
ResponseSize int NOT NULL,
Timestamp TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (Pingid),
FOREIGN KEY (Resourceid) REFERENCES RESOURCE(Resourceid)
);
CREATE table WEBSITES (
Websiteid int NOT NULL AUTO_INCREMENT,
Userid int NOT NULL,
WebsiteName varchar(255) NOT NULL,
WebsiteUrl varchar(255) UNIQUE,
FirstAdded TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (Websiteid),
FOREIGN KEY (Userid) REFERENCES USERS(Userid)
);
CREATE table WEBSITES_METRICS (
Metricid int NOT NULL AUTO_INCREMENT,
Websiteid int NOT NULL,
TotalTime double,
Timestamp TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (Metricid),
FOREIGN KEY (Websiteid) REFERENCES WEBSITES(Websiteid)
);
CREATE table REQUESTS (
Requestid int NOT NULL AUTO_INCREMENT,
Metricid int NOT NULL,
serverIPAddress varchar(63),
pageRef varchar(255),
startedDateTime TIMESTAMP,
time int,
responseStatus int,
headersSize int,
bodySize int,
PRIMARY KEY (Requestid),
FOREIGN KEY (Metricid) REFERENCES WEBSITES_METRICS(Metricid)
);
CREATE table TIMINGS (
TimingID int NOT NULL AUTO_INCREMENT,
Requestid int NOT NULL,
Receive int,
Send int,
SSLTime int,
Connect int,
DNS int,
Blocked int,
Wait int,
PRIMARY KEY (TimingID),
FOREIGN KEY (Requestid) REFERENCES REQUESTS(Requestid)
);
CREATE table AUDIT_USERS (
Userid int NOT NULL AUTO_INCREMENT,
LastName varchar(255) NOT NULL,
FirstName varchar(255) NOT NULL,
Username varchar(64) NOT NULL,
Email varchar(255),
hashedpassword varchar(2048),
action varchar(255),
Created TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (Userid)
);
INSERT INTO USERS(LastName, FirstName, Username, Email, hashedpassword)
values ('TestLastName', 'TestFirstName', 'TestUsername', 'TestEmail', 'pbkdf2:sha256:150000$aLUr0Tku$b8bbd76305a65b5fde4c94a22017979c9f3918d251045b0029a07657c9c169fb');
INSERT INTO RESOURCE(Userid, ResourceName, Command)
values (1, 'https://github.com/raresraf/rafMetrics', 'GET');
INSERT INTO RESOURCE(Userid, ResourceName, Command)
values (1, 'https://google.com', 'GET');
INSERT INTO RESOURCE(Userid, ResourceName, Command)
values (1, 'https://www.aliexpress.com/', 'GET');
INSERT INTO RESOURCE(Userid, ResourceName, Command)
values (1, 'https://www.amazon.com/', 'GET');
INSERT INTO RESOURCE(Userid, ResourceName, Command)
values (1, 'https://www.emag.ro/', 'GET');
INSERT INTO RESOURCE(Userid, ResourceName, Command)
values (1, 'https://www.emag.ro/resigilate/tablete/sort-discountdesc/c', 'GET');
INSERT INTO RESOURCE(Userid, ResourceName, Command)
values (1, 'https://istyle.ro/', 'GET');
INSERT INTO RESOURCE(Userid, ResourceName, Command)
values (1, 'https://www.piday.org/', 'GET');
INSERT INTO WEBSITES(Userid, WebsiteName, WebsiteUrl)
values (1, 'GitHub: rafMetrics', 'https://github.com/raresraf/rafMetrics');
INSERT INTO WEBSITES(Userid, WebsiteName, WebsiteUrl)
values (1, 'Google: default webpage', 'https://google.com');
INSERT INTO WEBSITES(Userid, WebsiteName, WebsiteUrl)
values (1, 'Aliexpress: default webpage', 'https://www.aliexpress.com/');
INSERT INTO WEBSITES(Userid, WebsiteName, WebsiteUrl)
values (1, 'Amazon: default webpage', 'https://www.amazon.com/');
INSERT INTO WEBSITES(Userid, WebsiteName, WebsiteUrl)
values (1, 'Emag: default webpage', 'https://www.emag.ro/');
INSERT INTO WEBSITES(Userid, WebsiteName, WebsiteUrl)
values (1, 'Emag: tablets sale webpage', 'https://www.emag.ro/resigilate/tablete/sort-discountdesc/c');
INSERT INTO WEBSITES(Userid, WebsiteName, WebsiteUrl)
values (1, 'Istyle: default webpage', 'https://istyle.ro/');
INSERT INTO WEBSITES(Userid, WebsiteName, WebsiteUrl)
values (1, 'PI Day: 3.14 ', 'https://www.piday.org/');
-- Time
delimiter //
DROP PROCEDURE IF EXISTS resource_get_time;
CREATE PROCEDURE resource_get_time
(IN id INT,
OUT average_time_daily FLOAT,
OUT average_time_weekly FLOAT,
OUT average_time_monthly FLOAT,
OUT lowest_time_daily FLOAT,
OUT lowest_time_weekly FLOAT,
OUT lowest_time_monthly FLOAT,
OUT median_time_daily FLOAT,
OUT median_time_weekly FLOAT,
OUT median_time_monthly FLOAT,
OUT highest_time_daily FLOAT,
OUT highest_time_weekly FLOAT,
OUT highest_time_monthly FLOAT)
BEGIN
select ROUND(avg(ResponseTime), 2) into average_time_daily from PING where Resourceid = id and Timestamp > DATE_SUB(now(), INTERVAL 1 DAY);
select ROUND(avg(ResponseTime), 2) into average_time_weekly from PING where Resourceid = id and Timestamp > DATE_SUB(now(), INTERVAL 1 WEEK);
select ROUND(avg(ResponseTime), 2) into average_time_monthly from PING where Resourceid = id and Timestamp > DATE_SUB(now(), INTERVAL 1 MONTH);
select ROUND(min(ResponseTime), 2) into lowest_time_daily from PING where Resourceid = id and Timestamp > DATE_SUB(now(), INTERVAL 1 DAY);
select ROUND(min(ResponseTime), 2) into lowest_time_weekly from PING where Resourceid = id and Timestamp > DATE_SUB(now(), INTERVAL 1 WEEK);
select ROUND(min(ResponseTime), 2) into lowest_time_monthly from PING where Resourceid = id and Timestamp > DATE_SUB(now(), INTERVAL 1 MONTH);
select ROUND(x.ResponseTime, 2) into median_time_daily from PING x, PING y where x.Resourceid = id and y.Resourceid = id and x.Timestamp > DATE_SUB(now(), INTERVAL 1 DAY) and y.Timestamp > DATE_SUB(now(), INTERVAL 1 DAY) GROUP BY x.ResponseTime HAVING SUM(SIGN(1-SIGN(y.ResponseTime-x.ResponseTime)))/COUNT(*) > .5 limit 1;
select ROUND(x.ResponseTime, 2) into median_time_weekly from PING x, PING y where x.Resourceid = id and y.Resourceid = id and x.Timestamp > DATE_SUB(now(), INTERVAL 1 WEEK) and y.Timestamp > DATE_SUB(now(), INTERVAL 1 WEEK) GROUP BY x.ResponseTime HAVING SUM(SIGN(1-SIGN(y.ResponseTime-x.ResponseTime)))/COUNT(*) > .5 limit 1;
select ROUND(x.ResponseTime, 2) into median_time_monthly from PING x, PING y where x.Resourceid = id and y.Resourceid = id and x.Timestamp > DATE_SUB(now(), INTERVAL 1 MONTH) and y.Timestamp > DATE_SUB(now(), INTERVAL 1 MONTH ) GROUP BY x.ResponseTime HAVING SUM(SIGN(1-SIGN(y.ResponseTime-x.ResponseTime)))/COUNT(*) > .5 limit 1;
select ROUND(max(ResponseTime), 2) into highest_time_daily from PING where Resourceid = id and Timestamp > DATE_SUB(now(), INTERVAL 1 DAY);
select ROUND(max(ResponseTime), 2) into highest_time_weekly from PING where Resourceid = id and Timestamp > DATE_SUB(now(), INTERVAL 1 WEEK);
select ROUND(max(ResponseTime), 2) into highest_time_monthly from PING where Resourceid = id and Timestamp > DATE_SUB(now(), INTERVAL 1 MONTH);
END//
delimiter ;
-- Size
delimiter //
DROP PROCEDURE IF EXISTS resource_get_old_size;
CREATE PROCEDURE resource_get_old_size
(IN id INT,
OUT average_size_daily FLOAT,
OUT average_size_weekly FLOAT,
OUT average_size_monthly FLOAT,
OUT lowest_size_daily FLOAT,
OUT lowest_size_weekly FLOAT,
OUT lowest_size_monthly FLOAT,
OUT median_size_daily FLOAT,
OUT median_size_weekly FLOAT,
OUT median_size_monthly FLOAT,
OUT highest_size_daily FLOAT,
OUT highest_size_weekly FLOAT,
OUT highest_size_monthly FLOAT)
BEGIN
select avg(ResponseSize) into average_size_daily from PING where Resourceid = id and Timestamp < DATE_SUB(now(), INTERVAL 1 DAY) and Timestamp > DATE_SUB(now(), INTERVAL 2 DAY);
select avg(ResponseSize) into average_size_weekly from PING where Resourceid = id and Timestamp < DATE_SUB(now(), INTERVAL 1 WEEK) and Timestamp > DATE_SUB(now(), INTERVAL 2 WEEK);
select avg(ResponseSize) into average_size_monthly from PING where Resourceid = id and Timestamp < DATE_SUB(now(), INTERVAL 1 MONTH) and Timestamp > DATE_SUB(now(), INTERVAL 2 MONTH );
select min(ResponseSize) into lowest_size_daily from PING where Resourceid = id and Timestamp < DATE_SUB(now(), INTERVAL 1 DAY) and Timestamp > DATE_SUB(now(), INTERVAL 2 DAY);
select min(ResponseSize) into lowest_size_weekly from PING where Resourceid = id and Timestamp < DATE_SUB(now(), INTERVAL 1 WEEK) and Timestamp > DATE_SUB(now(), INTERVAL 2 WEEK);
select min(ResponseSize) into lowest_size_monthly from PING where Resourceid = id and Timestamp < DATE_SUB(now(), INTERVAL 1 MONTH) and Timestamp > DATE_SUB(now(), INTERVAL 2 MONTH);
select x.ResponseSize into median_size_daily from PING x, PING y where x.Resourceid = id and y.Resourceid = id and x.Timestamp < DATE_SUB(now(), INTERVAL 1 DAY) and x.Timestamp > DATE_SUB(now(), INTERVAL 2 DAY) and y.Timestamp < DATE_SUB(now(), INTERVAL 1 DAY) and y.Timestamp > DATE_SUB(now(), INTERVAL 2 DAY) GROUP BY x.ResponseTime HAVING SUM(SIGN(1-SIGN(y.ResponseTime-x.ResponseTime)))/COUNT(*) > .5 limit 1;
select x.ResponseSize into median_size_weekly from PING x, PING y where x.Resourceid = id and y.Resourceid = id and x.Timestamp < DATE_SUB(now(), INTERVAL 1 WEEK) and x.Timestamp > DATE_SUB(now(), INTERVAL 2 WEEK) and y.Timestamp < DATE_SUB(now(), INTERVAL 1 WEEK) and y.Timestamp > DATE_SUB(now(), INTERVAL 2 WEEK) GROUP BY x.ResponseTime HAVING SUM(SIGN(1-SIGN(y.ResponseTime-x.ResponseTime)))/COUNT(*) > .5 limit 1;
select x.ResponseSize into median_size_monthly from PING x, PING y where x.Resourceid = id and y.Resourceid = id and x.Timestamp < DATE_SUB(now(), INTERVAL 1 MONTH ) and x.Timestamp > DATE_SUB(now(), INTERVAL 2 MONTH ) and y.Timestamp < DATE_SUB(now(), INTERVAL 1 MONTH ) and y.Timestamp > DATE_SUB(now(), INTERVAL 2 MONTH ) GROUP BY x.ResponseTime HAVING SUM(SIGN(1-SIGN(y.ResponseTime-x.ResponseTime)))/COUNT(*) > .5 limit 1;
select max(ResponseSize) into highest_size_daily from PING where Resourceid = id and Timestamp < DATE_SUB(now(), INTERVAL 1 DAY) and Timestamp > DATE_SUB(now(), INTERVAL 2 DAY);
select max(ResponseSize) into highest_size_weekly from PING where Resourceid = id and Timestamp < DATE_SUB(now(), INTERVAL 1 WEEK) and Timestamp > DATE_SUB(now(), INTERVAL 2 WEEK);
select max(ResponseSize) into highest_size_monthly from PING where Resourceid = id and Timestamp < DATE_SUB(now(), INTERVAL 1 MONTH) and Timestamp > DATE_SUB(now(), INTERVAL 2 MONTH);
END//
delimiter ;
-- Size
delimiter //
DROP PROCEDURE IF EXISTS resource_get_size;
CREATE PROCEDURE resource_get_size
(IN id INT,
OUT average_size_daily FLOAT,
OUT average_size_weekly FLOAT,
OUT average_size_monthly FLOAT,
OUT lowest_size_daily FLOAT,
OUT lowest_size_weekly FLOAT,
OUT lowest_size_monthly FLOAT,
OUT median_size_daily FLOAT,
OUT median_size_weekly FLOAT,
OUT median_size_monthly FLOAT,
OUT highest_size_daily FLOAT,
OUT highest_size_weekly FLOAT,
OUT highest_size_monthly FLOAT)
BEGIN
select avg(ResponseSize) into average_size_daily from PING where Resourceid = id and Timestamp > DATE_SUB(now(), INTERVAL 1 DAY);
select avg(ResponseSize) into average_size_weekly from PING where Resourceid = id and Timestamp > DATE_SUB(now(), INTERVAL 1 WEEK);
select avg(ResponseSize) into average_size_monthly from PING where Resourceid = id and Timestamp > DATE_SUB(now(), INTERVAL 1 MONTH);
select min(ResponseSize) into lowest_size_daily from PING where Resourceid = id and Timestamp > DATE_SUB(now(), INTERVAL 1 DAY);
select min(ResponseSize) into lowest_size_weekly from PING where Resourceid = id and Timestamp > DATE_SUB(now(), INTERVAL 1 WEEK);
select min(ResponseSize) into lowest_size_monthly from PING where Resourceid = id and Timestamp > DATE_SUB(now(), INTERVAL 1 MONTH);
select x.ResponseSize into median_size_daily from PING x, PING y where x.Resourceid = id and y.Resourceid = id and x.Timestamp > DATE_SUB(now(), INTERVAL 1 DAY) and y.Timestamp > DATE_SUB(now(), INTERVAL 1 DAY) GROUP BY x.ResponseTime HAVING SUM(SIGN(1-SIGN(y.ResponseTime-x.ResponseTime)))/COUNT(*) > .5 limit 1;
select x.ResponseSize into median_size_weekly from PING x, PING y where x.Resourceid = id and y.Resourceid = id and x.Timestamp > DATE_SUB(now(), INTERVAL 1 WEEK) and y.Timestamp > DATE_SUB(now(), INTERVAL 1 WEEK) GROUP BY x.ResponseTime HAVING SUM(SIGN(1-SIGN(y.ResponseTime-x.ResponseTime)))/COUNT(*) > .5 limit 1;
select x.ResponseSize into median_size_monthly from PING x, PING y where x.Resourceid = id and y.Resourceid = id and x.Timestamp > DATE_SUB(now(), INTERVAL 1 MONTH) and y.Timestamp > DATE_SUB(now(), INTERVAL 1 MONTH ) GROUP BY x.ResponseTime HAVING SUM(SIGN(1-SIGN(y.ResponseTime-x.ResponseTime)))/COUNT(*) > .5 limit 1;
select max(ResponseSize) into highest_size_daily from PING where Resourceid = id and Timestamp > DATE_SUB(now(), INTERVAL 1 DAY);
select max(ResponseSize) into highest_size_weekly from PING where Resourceid = id and Timestamp > DATE_SUB(now(), INTERVAL 1 WEEK);
select max(ResponseSize) into highest_size_monthly from PING where Resourceid = id and Timestamp > DATE_SUB(now(), INTERVAL 1 MONTH);
END//
delimiter ;
delimiter //
DROP PROCEDURE IF EXISTS resource_get_old_size;
CREATE PROCEDURE resource_get_old_size
(IN id INT,
OUT average_size_daily FLOAT,
OUT average_size_weekly FLOAT,
OUT average_size_monthly FLOAT,
OUT lowest_size_daily FLOAT,
OUT lowest_size_weekly FLOAT,
OUT lowest_size_monthly FLOAT,
OUT median_size_daily FLOAT,
OUT median_size_weekly FLOAT,
OUT median_size_monthly FLOAT,
OUT highest_size_daily FLOAT,
OUT highest_size_weekly FLOAT,
OUT highest_size_monthly FLOAT)
BEGIN
select avg(ResponseSize) into average_size_daily from PING where Resourceid = id and Timestamp < DATE_SUB(now(), INTERVAL 1 DAY) and Timestamp > DATE_SUB(now(), INTERVAL 2 DAY);
select avg(ResponseSize) into average_size_weekly from PING where Resourceid = id and Timestamp < DATE_SUB(now(), INTERVAL 1 WEEK) and Timestamp > DATE_SUB(now(), INTERVAL 2 WEEK);
select avg(ResponseSize) into average_size_monthly from PING where Resourceid = id and Timestamp < DATE_SUB(now(), INTERVAL 1 MONTH) and Timestamp > DATE_SUB(now(), INTERVAL 2 MONTH );
select min(ResponseSize) into lowest_size_daily from PING where Resourceid = id and Timestamp < DATE_SUB(now(), INTERVAL 1 DAY) and Timestamp > DATE_SUB(now(), INTERVAL 2 DAY);
select min(ResponseSize) into lowest_size_weekly from PING where Resourceid = id and Timestamp < DATE_SUB(now(), INTERVAL 1 WEEK) and Timestamp > DATE_SUB(now(), INTERVAL 2 WEEK);
select min(ResponseSize) into lowest_size_monthly from PING where Resourceid = id and Timestamp < DATE_SUB(now(), INTERVAL 1 MONTH) and Timestamp > DATE_SUB(now(), INTERVAL 2 MONTH);
select x.ResponseSize into median_size_daily from PING x, PING y where x.Resourceid = id and y.Resourceid = id and x.Timestamp < DATE_SUB(now(), INTERVAL 1 DAY) and x.Timestamp > DATE_SUB(now(), INTERVAL 2 DAY) and y.Timestamp < DATE_SUB(now(), INTERVAL 1 DAY) and y.Timestamp > DATE_SUB(now(), INTERVAL 2 DAY) GROUP BY x.ResponseTime HAVING SUM(SIGN(1-SIGN(y.ResponseTime-x.ResponseTime)))/COUNT(*) > .5 limit 1;
select x.ResponseSize into median_size_weekly from PING x, PING y where x.Resourceid = id and y.Resourceid = id and x.Timestamp < DATE_SUB(now(), INTERVAL 1 WEEK) and x.Timestamp > DATE_SUB(now(), INTERVAL 2 WEEK) and y.Timestamp < DATE_SUB(now(), INTERVAL 1 WEEK) and y.Timestamp > DATE_SUB(now(), INTERVAL 2 WEEK) GROUP BY x.ResponseTime HAVING SUM(SIGN(1-SIGN(y.ResponseTime-x.ResponseTime)))/COUNT(*) > .5 limit 1;
select x.ResponseSize into median_size_monthly from PING x, PING y where x.Resourceid = id and y.Resourceid = id and x.Timestamp < DATE_SUB(now(), INTERVAL 1 MONTH ) and x.Timestamp > DATE_SUB(now(), INTERVAL 2 MONTH ) and y.Timestamp < DATE_SUB(now(), INTERVAL 1 MONTH ) and y.Timestamp > DATE_SUB(now(), INTERVAL 2 MONTH ) GROUP BY x.ResponseTime HAVING SUM(SIGN(1-SIGN(y.ResponseTime-x.ResponseTime)))/COUNT(*) > .5 limit 1;
select max(ResponseSize) into highest_size_daily from PING where Resourceid = id and Timestamp < DATE_SUB(now(), INTERVAL 1 DAY) and Timestamp > DATE_SUB(now(), INTERVAL 2 DAY);
select max(ResponseSize) into highest_size_weekly from PING where Resourceid = id and Timestamp < DATE_SUB(now(), INTERVAL 1 WEEK) and Timestamp > DATE_SUB(now(), INTERVAL 2 WEEK);
select max(ResponseSize) into highest_size_monthly from PING where Resourceid = id and Timestamp < DATE_SUB(now(), INTERVAL 1 MONTH) and Timestamp > DATE_SUB(now(), INTERVAL 2 MONTH);
END//
delimiter ;
-- Time
delimiter //
DROP PROCEDURE IF EXISTS resource_get_old_time;
CREATE PROCEDURE resource_get_old_time
(IN id INT,
OUT average_time_daily FLOAT,
OUT average_time_weekly FLOAT,
OUT average_time_monthly FLOAT,
OUT lowest_time_daily FLOAT,
OUT lowest_time_weekly FLOAT,
OUT lowest_time_monthly FLOAT,
OUT median_time_daily FLOAT,
OUT median_time_weekly FLOAT,
OUT median_time_monthly FLOAT,
OUT highest_time_daily FLOAT,
OUT highest_time_weekly FLOAT,
OUT highest_time_monthly FLOAT)
BEGIN
select ROUND(avg(ResponseTime), 2) into average_time_daily from PING where Resourceid = id and Timestamp < DATE_SUB(now(), INTERVAL 1 DAY) and Timestamp > DATE_SUB(now(), INTERVAL 2 DAY);
select ROUND(avg(ResponseTime), 2) into average_time_weekly from PING where Resourceid = id and Timestamp < DATE_SUB(now(), INTERVAL 1 WEEK) and Timestamp > DATE_SUB(now(), INTERVAL 2 WEEK);
select ROUND(avg(ResponseTime), 2) into average_time_monthly from PING where Resourceid = id and Timestamp < DATE_SUB(now(), INTERVAL 1 MONTH) and Timestamp > DATE_SUB(now(), INTERVAL 2 MONTH );
select ROUND(min(ResponseTime), 2) into lowest_time_daily from PING where Resourceid = id and Timestamp < DATE_SUB(now(), INTERVAL 1 DAY) and Timestamp > DATE_SUB(now(), INTERVAL 2 DAY);
select ROUND(min(ResponseTime), 2) into lowest_time_weekly from PING where Resourceid = id and Timestamp < DATE_SUB(now(), INTERVAL 1 WEEK) and Timestamp > DATE_SUB(now(), INTERVAL 2 WEEK);
select ROUND(min(ResponseTime), 2) into lowest_time_monthly from PING where Resourceid = id and Timestamp < DATE_SUB(now(), INTERVAL 1 MONTH) and Timestamp > DATE_SUB(now(), INTERVAL 2 MONTH);
select ROUND(x.ResponseTime, 2) into median_time_daily from PING x, PING y where x.Resourceid = id and y.Resourceid = id and x.Timestamp < DATE_SUB(now(), INTERVAL 1 DAY) and x.Timestamp > DATE_SUB(now(), INTERVAL 2 DAY) and y.Timestamp < DATE_SUB(now(), INTERVAL 1 DAY) and y.Timestamp > DATE_SUB(now(), INTERVAL 2 DAY) GROUP BY x.ResponseTime HAVING SUM(SIGN(1-SIGN(y.ResponseTime-x.ResponseTime)))/COUNT(*) > .5 limit 1;
select ROUND(x.ResponseTime, 2) into median_time_weekly from PING x, PING y where x.Resourceid = id and y.Resourceid = id and x.Timestamp < DATE_SUB(now(), INTERVAL 1 WEEK) and x.Timestamp > DATE_SUB(now(), INTERVAL 2 WEEK) and y.Timestamp < DATE_SUB(now(), INTERVAL 1 WEEK) and y.Timestamp > DATE_SUB(now(), INTERVAL 2 WEEK) GROUP BY x.ResponseTime HAVING SUM(SIGN(1-SIGN(y.ResponseTime-x.ResponseTime)))/COUNT(*) > .5 limit 1;
select ROUND(x.ResponseTime, 2) into median_time_monthly from PING x, PING y where x.Resourceid = id and y.Resourceid = id and x.Timestamp < DATE_SUB(now(), INTERVAL 1 MONTH ) and x.Timestamp > DATE_SUB(now(), INTERVAL 2 MONTH ) and y.Timestamp < DATE_SUB(now(), INTERVAL 1 MONTH ) and y.Timestamp > DATE_SUB(now(), INTERVAL 2 MONTH ) GROUP BY x.ResponseTime HAVING SUM(SIGN(1-SIGN(y.ResponseTime-x.ResponseTime)))/COUNT(*) > .5 limit 1;
select ROUND(max(ResponseTime), 2) into highest_time_daily from PING where Resourceid = id and Timestamp < DATE_SUB(now(), INTERVAL 1 DAY) and Timestamp > DATE_SUB(now(), INTERVAL 2 DAY);
select ROUND(max(ResponseTime), 2) into highest_time_weekly from PING where Resourceid = id and Timestamp < DATE_SUB(now(), INTERVAL 1 WEEK) and Timestamp > DATE_SUB(now(), INTERVAL 2 WEEK);
select ROUND(max(ResponseTime), 2) into highest_time_monthly from PING where Resourceid = id and Timestamp < DATE_SUB(now(), INTERVAL 1 MONTH) and Timestamp > DATE_SUB(now(), INTERVAL 2 MONTH);
END//
delimiter ;
delimiter //
DROP PROCEDURE IF EXISTS get_monthly_samples_websites;
CREATE PROCEDURE get_monthly_samples_websites (
IN id INT,
OUT entry0 FLOAT,
OUT entry1 FLOAT,
OUT entry2 FLOAT,
OUT entry3 FLOAT,
OUT entry4 FLOAT,
OUT entry5 FLOAT,
OUT entry6 FLOAT,
OUT entry7 FLOAT,
OUT entry8 FLOAT,
OUT entry9 FLOAT,
OUT entry10 FLOAT,
OUT entry11 FLOAT,
OUT entry12 FLOAT,
OUT entry13 FLOAT,
OUT entry14 FLOAT,
OUT entry15 FLOAT,
OUT entry16 FLOAT,
OUT entry17 FLOAT,
OUT entry18 FLOAT,
OUT entry19 FLOAT,
OUT entry20 FLOAT,
OUT entry21 FLOAT,
OUT entry22 FLOAT,
OUT entry23 FLOAT,
OUT entry24 FLOAT,
OUT entry25 FLOAT,
OUT entry26 FLOAT,
OUT entry27 FLOAT,
OUT entry28 FLOAT,
OUT entry29 FLOAT,
OUT entry30 FLOAT,
OUT start_hour FLOAT
)
BEGIN
select DAY(now()) INTO start_hour;
if EXISTS(SELECT TotalTime FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 31 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 30 DAY) AND Websiteid = id)
then SELECT TotalTime INTO entry0 FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 31 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 30 DAY) AND Websiteid = id limit 1;
else SET entry0 := 0;
end if;
if EXISTS(SELECT TotalTime FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 30 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 29 DAY) AND Websiteid = id)
then SELECT TotalTime INTO entry1 FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 30 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 29 DAY) AND Websiteid = id limit 1;
else SET entry1 := 0;
end if;
if EXISTS(SELECT TotalTime FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 29 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 28 DAY) AND Websiteid = id)
then SELECT TotalTime INTO entry2 FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 29 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 28 DAY) AND Websiteid = id limit 1;
else SET entry2 := 0;
end if;
if EXISTS(SELECT TotalTime FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 28 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 27 DAY) AND Websiteid = id)
then SELECT TotalTime INTO entry3 FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 28 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 27 DAY) AND Websiteid = id limit 1;
else SET entry3 := 0;
end if;
if EXISTS(SELECT TotalTime FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 27 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 26 DAY) AND Websiteid = id)
then SELECT TotalTime INTO entry4 FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 27 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 26 DAY) AND Websiteid = id limit 1;
else SET entry4 := 0;
end if;
if EXISTS(SELECT TotalTime FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 26 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 25 DAY) AND Websiteid = id)
then SELECT TotalTime INTO entry5 FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 26 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 25 DAY) AND Websiteid = id limit 1;
else SET entry5 := 0;
end if;
if EXISTS(SELECT TotalTime FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 25 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 24 DAY) AND Websiteid = id)
then SELECT TotalTime INTO entry6 FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 25 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 24 DAY) AND Websiteid = id limit 1;
else SET entry6 := 0;
end if;
if EXISTS(SELECT TotalTime FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 24 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 23 DAY) AND Websiteid = id)
then SELECT TotalTime INTO entry7 FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 24 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 23 DAY) AND Websiteid = id limit 1;
else SET entry7 := 0;
end if;
if EXISTS(SELECT TotalTime FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 23 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 22 DAY) AND Websiteid = id)
then SELECT TotalTime INTO entry8 FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 23 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 22 DAY) AND Websiteid = id limit 1;
else SET entry8 := 0;
end if;
if EXISTS(SELECT TotalTime FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 22 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 21 DAY) AND Websiteid = id)
then SELECT TotalTime INTO entry9 FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 22 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 21 DAY) AND Websiteid = id limit 1;
else SET entry9 := 0;
end if;
if EXISTS(SELECT TotalTime FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 21 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 20 DAY) AND Websiteid = id)
then SELECT TotalTime INTO entry10 FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 21 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 20 DAY) AND Websiteid = id limit 1;
else SET entry10 := 0;
end if;
if EXISTS(SELECT TotalTime FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 20 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 19 DAY) AND Websiteid = id)
then SELECT TotalTime INTO entry11 FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 20 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 19 DAY) AND Websiteid = id limit 1;
else SET entry11 := 0;
end if;
if EXISTS(SELECT TotalTime FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 19 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 18 DAY) AND Websiteid = id)
then SELECT TotalTime INTO entry12 FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 19 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 18 DAY) AND Websiteid = id limit 1;
else SET entry12 := 0;
end if;
if EXISTS(SELECT TotalTime FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 18 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 17 DAY) AND Websiteid = id)
then SELECT TotalTime INTO entry13 FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 18 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 17 DAY) AND Websiteid = id limit 1;
else SET entry13 := 0;
end if;
if EXISTS(SELECT TotalTime FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 17 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 16 DAY) AND Websiteid = id)
then SELECT TotalTime INTO entry14 FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 17 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 16 DAY) AND Websiteid = id limit 1;
else SET entry14 := 0;
end if;
if EXISTS(SELECT TotalTime FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 16 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 15 DAY) AND Websiteid = id)
then SELECT TotalTime INTO entry15 FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 16 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 15 DAY) AND Websiteid = id limit 1;
else SET entry15 := 0;
end if;
if EXISTS(SELECT TotalTime FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 15 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 14 DAY) AND Websiteid = id)
then SELECT TotalTime INTO entry16 FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 15 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 14 DAY) AND Websiteid = id limit 1;
else SET entry16 := 0;
end if;
if EXISTS(SELECT TotalTime FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 14 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 13 DAY) AND Websiteid = id)
then SELECT TotalTime INTO entry17 FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 14 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 13 DAY) AND Websiteid = id limit 1;
else SET entry17 := 0;
end if;
if EXISTS(SELECT TotalTime FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 13 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 12 DAY) AND Websiteid = id)
then SELECT TotalTime INTO entry18 FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 13 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 12 DAY) AND Websiteid = id limit 1;
else SET entry18 := 0;
end if;
if EXISTS(SELECT TotalTime FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 12 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 11 DAY) AND Websiteid = id)
then SELECT TotalTime INTO entry19 FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 12 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 11 DAY) AND Websiteid = id limit 1;
else SET entry19 := 0;
end if;
if EXISTS(SELECT TotalTime FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 11 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 10 DAY) AND Websiteid = id)
then SELECT TotalTime INTO entry20 FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 11 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 10 DAY) AND Websiteid = id limit 1;
else SET entry20 := 0;
end if;
if EXISTS(SELECT TotalTime FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 10 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 9 DAY) AND Websiteid = id)
then SELECT TotalTime INTO entry21 FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 10 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 9 DAY) AND Websiteid = id limit 1;
else SET entry21 := 0;
end if;
if EXISTS(SELECT TotalTime FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 9 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 8 DAY) AND Websiteid = id)
then SELECT TotalTime INTO entry22 FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 9 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 8 DAY) AND Websiteid = id limit 1;
else SET entry22 := 0;
end if;
if EXISTS(SELECT TotalTime FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 8 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 7 DAY) AND Websiteid = id)
then SELECT TotalTime INTO entry23 FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 8 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 7 DAY) AND Websiteid = id limit 1;
else SET entry23 := 0;
end if;
if EXISTS(SELECT TotalTime FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 7 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 6 DAY) AND Websiteid = id)
then SELECT TotalTime INTO entry24 FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 7 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 6 DAY) AND Websiteid = id limit 1;
else SET entry24 := 0;
end if;
if EXISTS(SELECT TotalTime FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 6 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 5 DAY) AND Websiteid = id)
then SELECT TotalTime INTO entry25 FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 6 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 5 DAY) AND Websiteid = id limit 1;
else SET entry25 := 0;
end if;
if EXISTS(SELECT TotalTime FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 5 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 4 DAY) AND Websiteid = id)
then SELECT TotalTime INTO entry26 FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 5 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 4 DAY) AND Websiteid = id limit 1;
else SET entry26 := 0;
end if;
if EXISTS(SELECT TotalTime FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 4 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 3 DAY) AND Websiteid = id)
then SELECT TotalTime INTO entry27 FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 4 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 3 DAY) AND Websiteid = id limit 1;
else SET entry27 := 0;
end if;
if EXISTS(SELECT TotalTime FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 3 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 2 DAY) AND Websiteid = id)
then SELECT TotalTime INTO entry28 FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 3 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 2 DAY) AND Websiteid = id limit 1;
else SET entry28 := 0;
end if;
if EXISTS(SELECT TotalTime FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 2 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 1 DAY) AND Websiteid = id)
then SELECT TotalTime INTO entry29 FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 2 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 1 DAY) AND Websiteid = id limit 1;
else SET entry29 := 0;
end if;
if EXISTS(SELECT TotalTime FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 1 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 0 DAY) AND Websiteid = id)
then SELECT TotalTime INTO entry30 FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 1 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 0 DAY) AND Websiteid = id limit 1;
else SET entry30 := 0;
end if;
END//
delimiter ;
delimiter //
DROP PROCEDURE IF EXISTS get_daily_samples_websites;
CREATE PROCEDURE get_daily_samples_websites (
IN id INT,
OUT entry0 FLOAT,
OUT entry1 FLOAT,
OUT entry2 FLOAT,
OUT entry3 FLOAT,
OUT entry4 FLOAT,
OUT entry5 FLOAT,
OUT entry6 FLOAT,
OUT entry7 FLOAT,
OUT entry8 FLOAT,
OUT entry9 FLOAT,
OUT entry10 FLOAT,
OUT entry11 FLOAT,
OUT entry12 FLOAT,
OUT entry13 FLOAT,
OUT entry14 FLOAT,
OUT entry15 FLOAT,
OUT entry16 FLOAT,
OUT entry17 FLOAT,
OUT entry18 FLOAT,
OUT entry19 FLOAT,
OUT entry20 FLOAT,
OUT entry21 FLOAT,
OUT entry22 FLOAT,
OUT entry23 FLOAT,
OUT start_hour FLOAT
)
BEGIN
select HOUR(now()) INTO start_hour;
if EXISTS(SELECT TotalTime FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 24 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 23 HOUR) AND Websiteid = id)
then SELECT TotalTime INTO entry0 FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 24 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 23 HOUR) AND Websiteid = id limit 1;
else SET entry0 := 0;
end if;
if EXISTS(SELECT TotalTime FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 23 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 22 HOUR) AND Websiteid = id)
then SELECT TotalTime INTO entry1 FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 23 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 22 HOUR) AND Websiteid = id limit 1;
else SET entry1 := 0;
end if;
if EXISTS(SELECT TotalTime FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 22 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 21 HOUR) AND Websiteid = id)
then SELECT TotalTime INTO entry2 FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 22 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 21 HOUR) AND Websiteid = id limit 1;
else SET entry2 := 0;
end if;
if EXISTS(SELECT TotalTime FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 21 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 20 HOUR) AND Websiteid = id)
then SELECT TotalTime INTO entry3 FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 21 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 20 HOUR) AND Websiteid = id limit 1;
else SET entry3 := 0;
end if;
if EXISTS(SELECT TotalTime FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 20 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 19 HOUR) AND Websiteid = id)
then SELECT TotalTime INTO entry4 FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 20 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 19 HOUR) AND Websiteid = id limit 1;
else SET entry4 := 0;
end if;
if EXISTS(SELECT TotalTime FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 19 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 18 HOUR) AND Websiteid = id)
then SELECT TotalTime INTO entry5 FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 19 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 18 HOUR) AND Websiteid = id limit 1;
else SET entry5 := 0;
end if;
if EXISTS(SELECT TotalTime FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 18 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 17 HOUR) AND Websiteid = id)
then SELECT TotalTime INTO entry6 FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 18 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 17 HOUR) AND Websiteid = id limit 1;
else SET entry6 := 0;
end if;
if EXISTS(SELECT TotalTime FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 17 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 16 HOUR) AND Websiteid = id)
then SELECT TotalTime INTO entry7 FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 17 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 16 HOUR) AND Websiteid = id limit 1;
else SET entry7 := 0;
end if;
if EXISTS(SELECT TotalTime FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 16 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 15 HOUR) AND Websiteid = id)
then SELECT TotalTime INTO entry8 FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 16 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 15 HOUR) AND Websiteid = id limit 1;
else SET entry8 := 0;
end if;
if EXISTS(SELECT TotalTime FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 15 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 14 HOUR) AND Websiteid = id)
then SELECT TotalTime INTO entry9 FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 15 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 14 HOUR) AND Websiteid = id limit 1;
else SET entry9 := 0;
end if;
if EXISTS(SELECT TotalTime FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 14 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 13 HOUR) AND Websiteid = id)
then SELECT TotalTime INTO entry10 FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 14 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 13 HOUR) AND Websiteid = id limit 1;
else SET entry10 := 0;
end if;
if EXISTS(SELECT TotalTime FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 13 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 12 HOUR) AND Websiteid = id)
then SELECT TotalTime INTO entry11 FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 13 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 12 HOUR) AND Websiteid = id limit 1;
else SET entry11 := 0;
end if;
if EXISTS(SELECT TotalTime FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 12 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 11 HOUR) AND Websiteid = id)
then SELECT TotalTime INTO entry12 FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 12 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 11 HOUR) AND Websiteid = id limit 1;
else SET entry12 := 0;
end if;
if EXISTS(SELECT TotalTime FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 11 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 10 HOUR) AND Websiteid = id)
then SELECT TotalTime INTO entry13 FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 11 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 10 HOUR) AND Websiteid = id limit 1;
else SET entry13 := 0;
end if;
if EXISTS(SELECT TotalTime FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 10 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 9 HOUR) AND Websiteid = id)
then SELECT TotalTime INTO entry14 FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 10 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 9 HOUR) AND Websiteid = id limit 1;
else SET entry14 := 0;
end if;
if EXISTS(SELECT TotalTime FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 9 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 8 HOUR) AND Websiteid = id)
then SELECT TotalTime INTO entry15 FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 9 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 8 HOUR) AND Websiteid = id limit 1;
else SET entry15 := 0;
end if;
if EXISTS(SELECT TotalTime FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 8 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 7 HOUR) AND Websiteid = id)
then SELECT TotalTime INTO entry16 FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 8 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 7 HOUR) AND Websiteid = id limit 1;
else SET entry16 := 0;
end if;
if EXISTS(SELECT TotalTime FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 7 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 6 HOUR) AND Websiteid = id)
then SELECT TotalTime INTO entry17 FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 7 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 6 HOUR) AND Websiteid = id limit 1;
else SET entry17 := 0;
end if;
if EXISTS(SELECT TotalTime FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 6 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 5 HOUR) AND Websiteid = id)
then SELECT TotalTime INTO entry18 FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 6 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 5 HOUR) AND Websiteid = id limit 1;
else SET entry18 := 0;
end if;
if EXISTS(SELECT TotalTime FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 5 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 4 HOUR) AND Websiteid = id)
then SELECT TotalTime INTO entry19 FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 5 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 4 HOUR) AND Websiteid = id limit 1;
else SET entry19 := 0;
end if;
if EXISTS(SELECT TotalTime FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 4 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 3 HOUR) AND Websiteid = id)
then SELECT TotalTime INTO entry20 FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 4 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 3 HOUR) AND Websiteid = id limit 1;
else SET entry20 := 0;
end if;
if EXISTS(SELECT TotalTime FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 3 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 2 HOUR) AND Websiteid = id)
then SELECT TotalTime INTO entry21 FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 3 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 2 HOUR) AND Websiteid = id limit 1;
else SET entry21 := 0;
end if;
if EXISTS(SELECT TotalTime FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 2 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 1 HOUR) AND Websiteid = id)
then SELECT TotalTime INTO entry22 FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 2 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 1 HOUR) AND Websiteid = id limit 1;
else SET entry22 := 0;
end if;
if EXISTS(SELECT TotalTime FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 1 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 0 HOUR) AND Websiteid = id)
then SELECT TotalTime INTO entry23 FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 1 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 0 HOUR) AND Websiteid = id limit 1;
else SET entry23 := 0;
end if;
END//
delimiter ;
delimiter //
DROP PROCEDURE IF EXISTS get_weekly_samples_websites;
CREATE PROCEDURE get_weekly_samples_websites (
IN id INT,
OUT entry0 FLOAT,
OUT entry1 FLOAT,
OUT entry2 FLOAT,
OUT entry3 FLOAT,
OUT entry4 FLOAT,
OUT entry5 FLOAT,
OUT entry6 FLOAT,
OUT entry7 FLOAT,
OUT entry8 FLOAT,
OUT entry9 FLOAT,
OUT entry10 FLOAT,
OUT entry11 FLOAT,
OUT entry12 FLOAT,
OUT entry13 FLOAT,
OUT entry14 FLOAT,
OUT entry15 FLOAT,
OUT entry16 FLOAT,
OUT entry17 FLOAT,
OUT entry18 FLOAT,
OUT entry19 FLOAT,
OUT entry20 FLOAT,
OUT entry21 FLOAT,
OUT entry22 FLOAT,
OUT entry23 FLOAT,
OUT entry24 FLOAT,
OUT entry25 FLOAT,
OUT entry26 FLOAT,
OUT entry27 FLOAT,
OUT start_hour FLOAT
)
BEGIN
select HOUR(now()) INTO start_hour;
if EXISTS(SELECT TotalTime FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 168 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 162 HOUR) AND Websiteid = id)
then SELECT TotalTime INTO entry0 FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 168 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 162 HOUR) AND Websiteid = id limit 1;
else SET entry0 := 0;
end if;
if EXISTS(SELECT TotalTime FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 162 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 156 HOUR) AND Websiteid = id)
then SELECT TotalTime INTO entry1 FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 162 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 156 HOUR) AND Websiteid = id limit 1;
else SET entry1 := 0;
end if;
if EXISTS(SELECT TotalTime FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 156 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 150 HOUR) AND Websiteid = id)
then SELECT TotalTime INTO entry2 FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 156 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 150 HOUR) AND Websiteid = id limit 1;
else SET entry2 := 0;
end if;
if EXISTS(SELECT TotalTime FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 150 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 144 HOUR) AND Websiteid = id)
then SELECT TotalTime INTO entry3 FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 150 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 144 HOUR) AND Websiteid = id limit 1;
else SET entry3 := 0;
end if;
if EXISTS(SELECT TotalTime FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 144 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 138 HOUR) AND Websiteid = id)
then SELECT TotalTime INTO entry4 FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 144 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 138 HOUR) AND Websiteid = id limit 1;
else SET entry4 := 0;
end if;
if EXISTS(SELECT TotalTime FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 138 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 132 HOUR) AND Websiteid = id)
then SELECT TotalTime INTO entry5 FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 138 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 132 HOUR) AND Websiteid = id limit 1;
else SET entry5 := 0;
end if;
if EXISTS(SELECT TotalTime FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 132 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 126 HOUR) AND Websiteid = id)
then SELECT TotalTime INTO entry6 FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 132 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 126 HOUR) AND Websiteid = id limit 1;
else SET entry6 := 0;
end if;
if EXISTS(SELECT TotalTime FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 126 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 120 HOUR) AND Websiteid = id)
then SELECT TotalTime INTO entry7 FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 126 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 120 HOUR) AND Websiteid = id limit 1;
else SET entry7 := 0;
end if;
if EXISTS(SELECT TotalTime FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 120 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 114 HOUR) AND Websiteid = id)
then SELECT TotalTime INTO entry8 FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 120 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 114 HOUR) AND Websiteid = id limit 1;
else SET entry8 := 0;
end if;
if EXISTS(SELECT TotalTime FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 114 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 108 HOUR) AND Websiteid = id)
then SELECT TotalTime INTO entry9 FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 114 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 108 HOUR) AND Websiteid = id limit 1;
else SET entry9 := 0;
end if;
if EXISTS(SELECT TotalTime FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 108 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 102 HOUR) AND Websiteid = id)
then SELECT TotalTime INTO entry10 FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 108 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 102 HOUR) AND Websiteid = id limit 1;
else SET entry10 := 0;
end if;
if EXISTS(SELECT TotalTime FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 102 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 96 HOUR) AND Websiteid = id)
then SELECT TotalTime INTO entry11 FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 102 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 96 HOUR) AND Websiteid = id limit 1;
else SET entry11 := 0;
end if;
if EXISTS(SELECT TotalTime FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 96 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 90 HOUR) AND Websiteid = id)
then SELECT TotalTime INTO entry12 FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 96 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 90 HOUR) AND Websiteid = id limit 1;
else SET entry12 := 0;
end if;
if EXISTS(SELECT TotalTime FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 90 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 84 HOUR) AND Websiteid = id)
then SELECT TotalTime INTO entry13 FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 90 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 84 HOUR) AND Websiteid = id limit 1;
else SET entry13 := 0;
end if;
if EXISTS(SELECT TotalTime FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 84 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 78 HOUR) AND Websiteid = id)
then SELECT TotalTime INTO entry14 FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 84 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 78 HOUR) AND Websiteid = id limit 1;
else SET entry14 := 0;
end if;
if EXISTS(SELECT TotalTime FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 78 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 72 HOUR) AND Websiteid = id)
then SELECT TotalTime INTO entry15 FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 78 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 72 HOUR) AND Websiteid = id limit 1;
else SET entry15 := 0;
end if;
if EXISTS(SELECT TotalTime FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 72 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 66 HOUR) AND Websiteid = id)
then SELECT TotalTime INTO entry16 FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 72 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 66 HOUR) AND Websiteid = id limit 1;
else SET entry16 := 0;
end if;
if EXISTS(SELECT TotalTime FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 66 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 60 HOUR) AND Websiteid = id)
then SELECT TotalTime INTO entry17 FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 66 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 60 HOUR) AND Websiteid = id limit 1;
else SET entry17 := 0;
end if;
if EXISTS(SELECT TotalTime FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 60 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 54 HOUR) AND Websiteid = id)
then SELECT TotalTime INTO entry18 FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 60 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 54 HOUR) AND Websiteid = id limit 1;
else SET entry18 := 0;
end if;
if EXISTS(SELECT TotalTime FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 54 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 48 HOUR) AND Websiteid = id)
then SELECT TotalTime INTO entry19 FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 54 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 48 HOUR) AND Websiteid = id limit 1;
else SET entry19 := 0;
end if;
if EXISTS(SELECT TotalTime FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 48 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 42 HOUR) AND Websiteid = id)
then SELECT TotalTime INTO entry20 FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 48 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 42 HOUR) AND Websiteid = id limit 1;
else SET entry20 := 0;
end if;
if EXISTS(SELECT TotalTime FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 42 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 36 HOUR) AND Websiteid = id)
then SELECT TotalTime INTO entry21 FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 42 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 36 HOUR) AND Websiteid = id limit 1;
else SET entry21 := 0;
end if;
if EXISTS(SELECT TotalTime FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 36 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 30 HOUR) AND Websiteid = id)
then SELECT TotalTime INTO entry22 FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 36 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 30 HOUR) AND Websiteid = id limit 1;
else SET entry22 := 0;
end if;
if EXISTS(SELECT TotalTime FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 30 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 24 HOUR) AND Websiteid = id)
then SELECT TotalTime INTO entry23 FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 30 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 24 HOUR) AND Websiteid = id limit 1;
else SET entry23 := 0;
end if;
if EXISTS(SELECT TotalTime FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 24 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 18 HOUR) AND Websiteid = id)
then SELECT TotalTime INTO entry24 FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 24 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 18 HOUR) AND Websiteid = id limit 1;
else SET entry24 := 0;
end if;
if EXISTS(SELECT TotalTime FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 18 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 12 HOUR) AND Websiteid = id)
then SELECT TotalTime INTO entry25 FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 18 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 12 HOUR) AND Websiteid = id limit 1;
else SET entry25 := 0;
end if;
if EXISTS(SELECT TotalTime FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 12 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 6 HOUR) AND Websiteid = id)
then SELECT TotalTime INTO entry26 FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 12 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 6 HOUR) AND Websiteid = id limit 1;
else SET entry26 := 0;
end if;
if EXISTS(SELECT TotalTime FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 6 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 0 HOUR) AND Websiteid = id)
then SELECT TotalTime INTO entry27 FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 6 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 0 HOUR) AND Websiteid = id limit 1;
else SET entry27 := 0;
end if;
END//
delimiter ;
delimiter //
DROP PROCEDURE IF EXISTS get_daily_samples;
CREATE PROCEDURE get_daily_samples (
IN id INT,
OUT entry0 FLOAT,
OUT entry1 FLOAT,
OUT entry2 FLOAT,
OUT entry3 FLOAT,
OUT entry4 FLOAT,
OUT entry5 FLOAT,
OUT entry6 FLOAT,
OUT entry7 FLOAT,
OUT entry8 FLOAT,
OUT entry9 FLOAT,
OUT entry10 FLOAT,
OUT entry11 FLOAT,
OUT entry12 FLOAT,
OUT entry13 FLOAT,
OUT entry14 FLOAT,
OUT entry15 FLOAT,
OUT entry16 FLOAT,
OUT entry17 FLOAT,
OUT entry18 FLOAT,
OUT entry19 FLOAT,
OUT entry20 FLOAT,
OUT entry21 FLOAT,
OUT entry22 FLOAT,
OUT entry23 FLOAT,
OUT start_hour FLOAT
)
BEGIN
select HOUR(now()) INTO start_hour;
if EXISTS(SELECT ResponseTime FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 24 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 23 HOUR) AND Resourceid = id)
then SELECT ResponseTime INTO entry0 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 24 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 23 HOUR) AND Resourceid = id limit 1;
else SET entry0 := 0;
end if;
if EXISTS(SELECT ResponseTime FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 23 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 22 HOUR) AND Resourceid = id)
then SELECT ResponseTime INTO entry1 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 23 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 22 HOUR) AND Resourceid = id limit 1;
else SET entry1 := 0;
end if;
if EXISTS(SELECT ResponseTime FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 22 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 21 HOUR) AND Resourceid = id)
then SELECT ResponseTime INTO entry2 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 22 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 21 HOUR) AND Resourceid = id limit 1;
else SET entry2 := 0;
end if;
if EXISTS(SELECT ResponseTime FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 21 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 20 HOUR) AND Resourceid = id)
then SELECT ResponseTime INTO entry3 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 21 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 20 HOUR) AND Resourceid = id limit 1;
else SET entry3 := 0;
end if;
if EXISTS(SELECT ResponseTime FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 20 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 19 HOUR) AND Resourceid = id)
then SELECT ResponseTime INTO entry4 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 20 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 19 HOUR) AND Resourceid = id limit 1;
else SET entry4 := 0;
end if;
if EXISTS(SELECT ResponseTime FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 19 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 18 HOUR) AND Resourceid = id)
then SELECT ResponseTime INTO entry5 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 19 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 18 HOUR) AND Resourceid = id limit 1;
else SET entry5 := 0;
end if;
if EXISTS(SELECT ResponseTime FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 18 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 17 HOUR) AND Resourceid = id)
then SELECT ResponseTime INTO entry6 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 18 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 17 HOUR) AND Resourceid = id limit 1;
else SET entry6 := 0;
end if;
if EXISTS(SELECT ResponseTime FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 17 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 16 HOUR) AND Resourceid = id)
then SELECT ResponseTime INTO entry7 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 17 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 16 HOUR) AND Resourceid = id limit 1;
else SET entry7 := 0;
end if;
if EXISTS(SELECT ResponseTime FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 16 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 15 HOUR) AND Resourceid = id)
then SELECT ResponseTime INTO entry8 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 16 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 15 HOUR) AND Resourceid = id limit 1;
else SET entry8 := 0;
end if;
if EXISTS(SELECT ResponseTime FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 15 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 14 HOUR) AND Resourceid = id)
then SELECT ResponseTime INTO entry9 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 15 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 14 HOUR) AND Resourceid = id limit 1;
else SET entry9 := 0;
end if;
if EXISTS(SELECT ResponseTime FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 14 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 13 HOUR) AND Resourceid = id)
then SELECT ResponseTime INTO entry10 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 14 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 13 HOUR) AND Resourceid = id limit 1;
else SET entry10 := 0;
end if;
if EXISTS(SELECT ResponseTime FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 13 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 12 HOUR) AND Resourceid = id)
then SELECT ResponseTime INTO entry11 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 13 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 12 HOUR) AND Resourceid = id limit 1;
else SET entry11 := 0;
end if;
if EXISTS(SELECT ResponseTime FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 12 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 11 HOUR) AND Resourceid = id)
then SELECT ResponseTime INTO entry12 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 12 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 11 HOUR) AND Resourceid = id limit 1;
else SET entry12 := 0;
end if;
if EXISTS(SELECT ResponseTime FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 11 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 10 HOUR) AND Resourceid = id)
then SELECT ResponseTime INTO entry13 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 11 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 10 HOUR) AND Resourceid = id limit 1;
else SET entry13 := 0;
end if;
if EXISTS(SELECT ResponseTime FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 10 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 9 HOUR) AND Resourceid = id)
then SELECT ResponseTime INTO entry14 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 10 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 9 HOUR) AND Resourceid = id limit 1;
else SET entry14 := 0;
end if;
if EXISTS(SELECT ResponseTime FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 9 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 8 HOUR) AND Resourceid = id)
then SELECT ResponseTime INTO entry15 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 9 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 8 HOUR) AND Resourceid = id limit 1;
else SET entry15 := 0;
end if;
if EXISTS(SELECT ResponseTime FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 8 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 7 HOUR) AND Resourceid = id)
then SELECT ResponseTime INTO entry16 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 8 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 7 HOUR) AND Resourceid = id limit 1;
else SET entry16 := 0;
end if;
if EXISTS(SELECT ResponseTime FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 7 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 6 HOUR) AND Resourceid = id)
then SELECT ResponseTime INTO entry17 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 7 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 6 HOUR) AND Resourceid = id limit 1;
else SET entry17 := 0;
end if;
if EXISTS(SELECT ResponseTime FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 6 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 5 HOUR) AND Resourceid = id)
then SELECT ResponseTime INTO entry18 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 6 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 5 HOUR) AND Resourceid = id limit 1;
else SET entry18 := 0;
end if;
if EXISTS(SELECT ResponseTime FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 5 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 4 HOUR) AND Resourceid = id)
then SELECT ResponseTime INTO entry19 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 5 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 4 HOUR) AND Resourceid = id limit 1;
else SET entry19 := 0;
end if;
if EXISTS(SELECT ResponseTime FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 4 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 3 HOUR) AND Resourceid = id)
then SELECT ResponseTime INTO entry20 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 4 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 3 HOUR) AND Resourceid = id limit 1;
else SET entry20 := 0;
end if;
if EXISTS(SELECT ResponseTime FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 3 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 2 HOUR) AND Resourceid = id)
then SELECT ResponseTime INTO entry21 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 3 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 2 HOUR) AND Resourceid = id limit 1;
else SET entry21 := 0;
end if;
if EXISTS(SELECT ResponseTime FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 2 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 1 HOUR) AND Resourceid = id)
then SELECT ResponseTime INTO entry22 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 2 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 1 HOUR) AND Resourceid = id limit 1;
else SET entry22 := 0;
end if;
if EXISTS(SELECT ResponseTime FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 1 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 0 HOUR) AND Resourceid = id)
then SELECT ResponseTime INTO entry23 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 1 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 0 HOUR) AND Resourceid = id limit 1;
else SET entry23 := 0;
end if;
END//
delimiter ;
delimiter //
DROP PROCEDURE IF EXISTS get_weekly_samples;
CREATE PROCEDURE get_weekly_samples (
IN id INT,
OUT entry0 FLOAT,
OUT entry1 FLOAT,
OUT entry2 FLOAT,
OUT entry3 FLOAT,
OUT entry4 FLOAT,
OUT entry5 FLOAT,
OUT entry6 FLOAT,
OUT entry7 FLOAT,
OUT entry8 FLOAT,
OUT entry9 FLOAT,
OUT entry10 FLOAT,
OUT entry11 FLOAT,
OUT entry12 FLOAT,
OUT entry13 FLOAT,
OUT entry14 FLOAT,
OUT entry15 FLOAT,
OUT entry16 FLOAT,
OUT entry17 FLOAT,
OUT entry18 FLOAT,
OUT entry19 FLOAT,
OUT entry20 FLOAT,
OUT entry21 FLOAT,
OUT entry22 FLOAT,
OUT entry23 FLOAT,
OUT entry24 FLOAT,
OUT entry25 FLOAT,
OUT entry26 FLOAT,
OUT entry27 FLOAT,
OUT start_hour FLOAT
)
BEGIN
select HOUR(now()) INTO start_hour;
if EXISTS(SELECT ResponseTime FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 168 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 162 HOUR) AND Resourceid = id)
then SELECT ResponseTime INTO entry0 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 168 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 162 HOUR) AND Resourceid = id limit 1;
else SET entry0 := 0;
end if;
if EXISTS(SELECT ResponseTime FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 162 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 156 HOUR) AND Resourceid = id)
then SELECT ResponseTime INTO entry1 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 162 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 156 HOUR) AND Resourceid = id limit 1;
else SET entry1 := 0;
end if;
if EXISTS(SELECT ResponseTime FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 156 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 150 HOUR) AND Resourceid = id)
then SELECT ResponseTime INTO entry2 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 156 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 150 HOUR) AND Resourceid = id limit 1;
else SET entry2 := 0;
end if;
if EXISTS(SELECT ResponseTime FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 150 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 144 HOUR) AND Resourceid = id)
then SELECT ResponseTime INTO entry3 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 150 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 144 HOUR) AND Resourceid = id limit 1;
else SET entry3 := 0;
end if;
if EXISTS(SELECT ResponseTime FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 144 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 138 HOUR) AND Resourceid = id)
then SELECT ResponseTime INTO entry4 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 144 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 138 HOUR) AND Resourceid = id limit 1;
else SET entry4 := 0;
end if;
if EXISTS(SELECT ResponseTime FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 138 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 132 HOUR) AND Resourceid = id)
then SELECT ResponseTime INTO entry5 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 138 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 132 HOUR) AND Resourceid = id limit 1;
else SET entry5 := 0;
end if;
if EXISTS(SELECT ResponseTime FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 132 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 126 HOUR) AND Resourceid = id)
then SELECT ResponseTime INTO entry6 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 132 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 126 HOUR) AND Resourceid = id limit 1;
else SET entry6 := 0;
end if;
if EXISTS(SELECT ResponseTime FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 126 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 120 HOUR) AND Resourceid = id)
then SELECT ResponseTime INTO entry7 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 126 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 120 HOUR) AND Resourceid = id limit 1;
else SET entry7 := 0;
end if;
if EXISTS(SELECT ResponseTime FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 120 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 114 HOUR) AND Resourceid = id)
then SELECT ResponseTime INTO entry8 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 120 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 114 HOUR) AND Resourceid = id limit 1;
else SET entry8 := 0;
end if;
if EXISTS(SELECT ResponseTime FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 114 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 108 HOUR) AND Resourceid = id)
then SELECT ResponseTime INTO entry9 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 114 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 108 HOUR) AND Resourceid = id limit 1;
else SET entry9 := 0;
end if;
if EXISTS(SELECT ResponseTime FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 108 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 102 HOUR) AND Resourceid = id)
then SELECT ResponseTime INTO entry10 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 108 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 102 HOUR) AND Resourceid = id limit 1;
else SET entry10 := 0;
end if;
if EXISTS(SELECT ResponseTime FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 102 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 96 HOUR) AND Resourceid = id)
then SELECT ResponseTime INTO entry11 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 102 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 96 HOUR) AND Resourceid = id limit 1;
else SET entry11 := 0;
end if;
if EXISTS(SELECT ResponseTime FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 96 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 90 HOUR) AND Resourceid = id)
then SELECT ResponseTime INTO entry12 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 96 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 90 HOUR) AND Resourceid = id limit 1;
else SET entry12 := 0;
end if;
if EXISTS(SELECT ResponseTime FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 90 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 84 HOUR) AND Resourceid = id)
then SELECT ResponseTime INTO entry13 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 90 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 84 HOUR) AND Resourceid = id limit 1;
else SET entry13 := 0;
end if;
if EXISTS(SELECT ResponseTime FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 84 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 78 HOUR) AND Resourceid = id)
then SELECT ResponseTime INTO entry14 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 84 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 78 HOUR) AND Resourceid = id limit 1;
else SET entry14 := 0;
end if;
if EXISTS(SELECT ResponseTime FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 78 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 72 HOUR) AND Resourceid = id)
then SELECT ResponseTime INTO entry15 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 78 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 72 HOUR) AND Resourceid = id limit 1;
else SET entry15 := 0;
end if;
if EXISTS(SELECT ResponseTime FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 72 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 66 HOUR) AND Resourceid = id)
then SELECT ResponseTime INTO entry16 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 72 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 66 HOUR) AND Resourceid = id limit 1;
else SET entry16 := 0;
end if;
if EXISTS(SELECT ResponseTime FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 66 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 60 HOUR) AND Resourceid = id)
then SELECT ResponseTime INTO entry17 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 66 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 60 HOUR) AND Resourceid = id limit 1;
else SET entry17 := 0;
end if;
if EXISTS(SELECT ResponseTime FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 60 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 54 HOUR) AND Resourceid = id)
then SELECT ResponseTime INTO entry18 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 60 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 54 HOUR) AND Resourceid = id limit 1;
else SET entry18 := 0;
end if;
if EXISTS(SELECT ResponseTime FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 54 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 48 HOUR) AND Resourceid = id)
then SELECT ResponseTime INTO entry19 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 54 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 48 HOUR) AND Resourceid = id limit 1;
else SET entry19 := 0;
end if;
if EXISTS(SELECT ResponseTime FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 48 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 42 HOUR) AND Resourceid = id)
then SELECT ResponseTime INTO entry20 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 48 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 42 HOUR) AND Resourceid = id limit 1;
else SET entry20 := 0;
end if;
if EXISTS(SELECT ResponseTime FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 42 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 36 HOUR) AND Resourceid = id)
then SELECT ResponseTime INTO entry21 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 42 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 36 HOUR) AND Resourceid = id limit 1;
else SET entry21 := 0;
end if;
if EXISTS(SELECT ResponseTime FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 36 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 30 HOUR) AND Resourceid = id)
then SELECT ResponseTime INTO entry22 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 36 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 30 HOUR) AND Resourceid = id limit 1;
else SET entry22 := 0;
end if;
if EXISTS(SELECT ResponseTime FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 30 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 24 HOUR) AND Resourceid = id)
then SELECT ResponseTime INTO entry23 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 30 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 24 HOUR) AND Resourceid = id limit 1;
else SET entry23 := 0;
end if;
if EXISTS(SELECT ResponseTime FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 24 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 18 HOUR) AND Resourceid = id)
then SELECT ResponseTime INTO entry24 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 24 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 18 HOUR) AND Resourceid = id limit 1;
else SET entry24 := 0;
end if;
if EXISTS(SELECT ResponseTime FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 18 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 12 HOUR) AND Resourceid = id)
then SELECT ResponseTime INTO entry25 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 18 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 12 HOUR) AND Resourceid = id limit 1;
else SET entry25 := 0;
end if;
if EXISTS(SELECT ResponseTime FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 12 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 6 HOUR) AND Resourceid = id)
then SELECT ResponseTime INTO entry26 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 12 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 6 HOUR) AND Resourceid = id limit 1;
else SET entry26 := 0;
end if;
if EXISTS(SELECT ResponseTime FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 6 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 0 HOUR) AND Resourceid = id)
then SELECT ResponseTime INTO entry27 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 6 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 0 HOUR) AND Resourceid = id limit 1;
else SET entry27 := 0;
end if;
END//
delimiter ;
delimiter //
DROP PROCEDURE IF EXISTS get_monthly_samples;
CREATE PROCEDURE get_monthly_samples (
IN id INT,
OUT entry0 FLOAT,
OUT entry1 FLOAT,
OUT entry2 FLOAT,
OUT entry3 FLOAT,
OUT entry4 FLOAT,
OUT entry5 FLOAT,
OUT entry6 FLOAT,
OUT entry7 FLOAT,
OUT entry8 FLOAT,
OUT entry9 FLOAT,
OUT entry10 FLOAT,
OUT entry11 FLOAT,
OUT entry12 FLOAT,
OUT entry13 FLOAT,
OUT entry14 FLOAT,
OUT entry15 FLOAT,
OUT entry16 FLOAT,
OUT entry17 FLOAT,
OUT entry18 FLOAT,
OUT entry19 FLOAT,
OUT entry20 FLOAT,
OUT entry21 FLOAT,
OUT entry22 FLOAT,
OUT entry23 FLOAT,
OUT entry24 FLOAT,
OUT entry25 FLOAT,
OUT entry26 FLOAT,
OUT entry27 FLOAT,
OUT entry28 FLOAT,
OUT entry29 FLOAT,
OUT entry30 FLOAT,
OUT start_day FLOAT
)
BEGIN
select DAY(now()) INTO start_day;
if EXISTS(SELECT ResponseTime FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 31 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 30 DAY) AND Resourceid = id)
then SELECT ResponseTime INTO entry0 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 31 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 30 DAY) AND Resourceid = id limit 1;
else SET entry0 := 0;
end if;
if EXISTS(SELECT ResponseTime FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 30 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 29 DAY) AND Resourceid = id)
then SELECT ResponseTime INTO entry1 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 30 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 29 DAY) AND Resourceid = id limit 1;
else SET entry1 := 0;
end if;
if EXISTS(SELECT ResponseTime FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 29 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 28 DAY) AND Resourceid = id)
then SELECT ResponseTime INTO entry2 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 29 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 28 DAY) AND Resourceid = id limit 1;
else SET entry2 := 0;
end if;
if EXISTS(SELECT ResponseTime FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 28 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 27 DAY) AND Resourceid = id)
then SELECT ResponseTime INTO entry3 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 28 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 27 DAY) AND Resourceid = id limit 1;
else SET entry3 := 0;
end if;
if EXISTS(SELECT ResponseTime FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 27 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 26 DAY) AND Resourceid = id)
then SELECT ResponseTime INTO entry4 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 27 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 26 DAY) AND Resourceid = id limit 1;
else SET entry4 := 0;
end if;
if EXISTS(SELECT ResponseTime FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 26 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 25 DAY) AND Resourceid = id)
then SELECT ResponseTime INTO entry5 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 26 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 25 DAY) AND Resourceid = id limit 1;
else SET entry5 := 0;
end if;
if EXISTS(SELECT ResponseTime FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 25 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 24 DAY) AND Resourceid = id)
then SELECT ResponseTime INTO entry6 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 25 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 24 DAY) AND Resourceid = id limit 1;
else SET entry6 := 0;
end if;
if EXISTS(SELECT ResponseTime FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 24 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 23 DAY) AND Resourceid = id)
then SELECT ResponseTime INTO entry7 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 24 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 23 DAY) AND Resourceid = id limit 1;
else SET entry7 := 0;
end if;
if EXISTS(SELECT ResponseTime FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 23 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 22 DAY) AND Resourceid = id)
then SELECT ResponseTime INTO entry8 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 23 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 22 DAY) AND Resourceid = id limit 1;
else SET entry8 := 0;
end if;
if EXISTS(SELECT ResponseTime FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 22 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 21 DAY) AND Resourceid = id)
then SELECT ResponseTime INTO entry9 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 22 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 21 DAY) AND Resourceid = id limit 1;
else SET entry9 := 0;
end if;
if EXISTS(SELECT ResponseTime FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 21 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 20 DAY) AND Resourceid = id)
then SELECT ResponseTime INTO entry10 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 21 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 20 DAY) AND Resourceid = id limit 1;
else SET entry10 := 0;
end if;
if EXISTS(SELECT ResponseTime FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 20 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 19 DAY) AND Resourceid = id)
then SELECT ResponseTime INTO entry11 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 20 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 19 DAY) AND Resourceid = id limit 1;
else SET entry11 := 0;
end if;
if EXISTS(SELECT ResponseTime FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 19 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 18 DAY) AND Resourceid = id)
then SELECT ResponseTime INTO entry12 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 19 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 18 DAY) AND Resourceid = id limit 1;
else SET entry12 := 0;
end if;
if EXISTS(SELECT ResponseTime FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 18 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 17 DAY) AND Resourceid = id)
then SELECT ResponseTime INTO entry13 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 18 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 17 DAY) AND Resourceid = id limit 1;
else SET entry13 := 0;
end if;
if EXISTS(SELECT ResponseTime FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 17 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 16 DAY) AND Resourceid = id)
then SELECT ResponseTime INTO entry14 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 17 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 16 DAY) AND Resourceid = id limit 1;
else SET entry14 := 0;
end if;
if EXISTS(SELECT ResponseTime FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 16 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 15 DAY) AND Resourceid = id)
then SELECT ResponseTime INTO entry15 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 16 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 15 DAY) AND Resourceid = id limit 1;
else SET entry15 := 0;
end if;
if EXISTS(SELECT ResponseTime FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 15 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 14 DAY) AND Resourceid = id)
then SELECT ResponseTime INTO entry16 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 15 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 14 DAY) AND Resourceid = id limit 1;
else SET entry16 := 0;
end if;
if EXISTS(SELECT ResponseTime FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 14 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 13 DAY) AND Resourceid = id)
then SELECT ResponseTime INTO entry17 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 14 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 13 DAY) AND Resourceid = id limit 1;
else SET entry17 := 0;
end if;
if EXISTS(SELECT ResponseTime FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 13 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 12 DAY) AND Resourceid = id)
then SELECT ResponseTime INTO entry18 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 13 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 12 DAY) AND Resourceid = id limit 1;
else SET entry18 := 0;
end if;
if EXISTS(SELECT ResponseTime FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 12 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 11 DAY) AND Resourceid = id)
then SELECT ResponseTime INTO entry19 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 12 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 11 DAY) AND Resourceid = id limit 1;
else SET entry19 := 0;
end if;
if EXISTS(SELECT ResponseTime FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 11 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 10 DAY) AND Resourceid = id)
then SELECT ResponseTime INTO entry20 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 11 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 10 DAY) AND Resourceid = id limit 1;
else SET entry20 := 0;
end if;
if EXISTS(SELECT ResponseTime FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 10 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 9 DAY) AND Resourceid = id)
then SELECT ResponseTime INTO entry21 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 10 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 9 DAY) AND Resourceid = id limit 1;
else SET entry21 := 0;
end if;
if EXISTS(SELECT ResponseTime FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 9 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 8 DAY) AND Resourceid = id)
then SELECT ResponseTime INTO entry22 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 9 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 8 DAY) AND Resourceid = id limit 1;
else SET entry22 := 0;
end if;
if EXISTS(SELECT ResponseTime FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 8 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 7 DAY) AND Resourceid = id)
then SELECT ResponseTime INTO entry23 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 8 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 7 DAY) AND Resourceid = id limit 1;
else SET entry23 := 0;
end if;
if EXISTS(SELECT ResponseTime FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 7 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 6 DAY) AND Resourceid = id)
then SELECT ResponseTime INTO entry24 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 7 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 6 DAY) AND Resourceid = id limit 1;
else SET entry24 := 0;
end if;
if EXISTS(SELECT ResponseTime FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 6 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 5 DAY) AND Resourceid = id)
then SELECT ResponseTime INTO entry25 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 6 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 5 DAY) AND Resourceid = id limit 1;
else SET entry25 := 0;
end if;
if EXISTS(SELECT ResponseTime FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 5 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 4 DAY) AND Resourceid = id)
then SELECT ResponseTime INTO entry26 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 5 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 4 DAY) AND Resourceid = id limit 1;
else SET entry26 := 0;
end if;
if EXISTS(SELECT ResponseTime FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 4 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 3 DAY) AND Resourceid = id)
then SELECT ResponseTime INTO entry27 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 4 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 3 DAY) AND Resourceid = id limit 1;
else SET entry27 := 0;
end if;
if EXISTS(SELECT ResponseTime FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 3 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 2 DAY) AND Resourceid = id)
then SELECT ResponseTime INTO entry28 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 3 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 2 DAY) AND Resourceid = id limit 1;
else SET entry28 := 0;
end if;
if EXISTS(SELECT ResponseTime FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 2 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 1 DAY) AND Resourceid = id)
then SELECT ResponseTime INTO entry29 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 2 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 1 DAY) AND Resourceid = id limit 1;
else SET entry29 := 0;
end if;
if EXISTS(SELECT ResponseTime FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 1 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 0 DAY) AND Resourceid = id)
then SELECT ResponseTime INTO entry30 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 1 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 0 DAY) AND Resourceid = id limit 1;
else SET entry30 := 0;
end if;
END//
delimiter ;
delimiter //
DROP PROCEDURE IF EXISTS get_monthly_samples_size;
CREATE PROCEDURE get_monthly_samples_size (
IN id INT,
OUT entry0 FLOAT,
OUT entry1 FLOAT,
OUT entry2 FLOAT,
OUT entry3 FLOAT,
OUT entry4 FLOAT,
OUT entry5 FLOAT,
OUT entry6 FLOAT,
OUT entry7 FLOAT,
OUT entry8 FLOAT,
OUT entry9 FLOAT,
OUT entry10 FLOAT,
OUT entry11 FLOAT,
OUT entry12 FLOAT,
OUT entry13 FLOAT,
OUT entry14 FLOAT,
OUT entry15 FLOAT,
OUT entry16 FLOAT,
OUT entry17 FLOAT,
OUT entry18 FLOAT,
OUT entry19 FLOAT,
OUT entry20 FLOAT,
OUT entry21 FLOAT,
OUT entry22 FLOAT,
OUT entry23 FLOAT,
OUT entry24 FLOAT,
OUT entry25 FLOAT,
OUT entry26 FLOAT,
OUT entry27 FLOAT,
OUT entry28 FLOAT,
OUT entry29 FLOAT,
OUT entry30 FLOAT,
OUT start_hour FLOAT
)
BEGIN
select DAY(now()) INTO start_hour;
if EXISTS(SELECT ResponseSize FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 31 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 30 DAY) AND Resourceid = id)
then SELECT ResponseSize INTO entry0 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 31 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 30 DAY) AND Resourceid = id limit 1;
else SET entry0 := 0;
end if;
if EXISTS(SELECT ResponseSize FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 30 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 29 DAY) AND Resourceid = id)
then SELECT ResponseSize INTO entry1 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 30 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 29 DAY) AND Resourceid = id limit 1;
else SET entry1 := 0;
end if;
if EXISTS(SELECT ResponseSize FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 29 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 28 DAY) AND Resourceid = id)
then SELECT ResponseSize INTO entry2 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 29 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 28 DAY) AND Resourceid = id limit 1;
else SET entry2 := 0;
end if;
if EXISTS(SELECT ResponseSize FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 28 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 27 DAY) AND Resourceid = id)
then SELECT ResponseSize INTO entry3 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 28 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 27 DAY) AND Resourceid = id limit 1;
else SET entry3 := 0;
end if;
if EXISTS(SELECT ResponseSize FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 27 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 26 DAY) AND Resourceid = id)
then SELECT ResponseSize INTO entry4 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 27 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 26 DAY) AND Resourceid = id limit 1;
else SET entry4 := 0;
end if;
if EXISTS(SELECT ResponseSize FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 26 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 25 DAY) AND Resourceid = id)
then SELECT ResponseSize INTO entry5 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 26 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 25 DAY) AND Resourceid = id limit 1;
else SET entry5 := 0;
end if;
if EXISTS(SELECT ResponseSize FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 25 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 24 DAY) AND Resourceid = id)
then SELECT ResponseSize INTO entry6 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 25 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 24 DAY) AND Resourceid = id limit 1;
else SET entry6 := 0;
end if;
if EXISTS(SELECT ResponseSize FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 24 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 23 DAY) AND Resourceid = id)
then SELECT ResponseSize INTO entry7 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 24 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 23 DAY) AND Resourceid = id limit 1;
else SET entry7 := 0;
end if;
if EXISTS(SELECT ResponseSize FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 23 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 22 DAY) AND Resourceid = id)
then SELECT ResponseSize INTO entry8 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 23 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 22 DAY) AND Resourceid = id limit 1;
else SET entry8 := 0;
end if;
if EXISTS(SELECT ResponseSize FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 22 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 21 DAY) AND Resourceid = id)
then SELECT ResponseSize INTO entry9 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 22 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 21 DAY) AND Resourceid = id limit 1;
else SET entry9 := 0;
end if;
if EXISTS(SELECT ResponseSize FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 21 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 20 DAY) AND Resourceid = id)
then SELECT ResponseSize INTO entry10 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 21 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 20 DAY) AND Resourceid = id limit 1;
else SET entry10 := 0;
end if;
if EXISTS(SELECT ResponseSize FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 20 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 19 DAY) AND Resourceid = id)
then SELECT ResponseSize INTO entry11 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 20 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 19 DAY) AND Resourceid = id limit 1;
else SET entry11 := 0;
end if;
if EXISTS(SELECT ResponseSize FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 19 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 18 DAY) AND Resourceid = id)
then SELECT ResponseSize INTO entry12 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 19 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 18 DAY) AND Resourceid = id limit 1;
else SET entry12 := 0;
end if;
if EXISTS(SELECT ResponseSize FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 18 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 17 DAY) AND Resourceid = id)
then SELECT ResponseSize INTO entry13 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 18 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 17 DAY) AND Resourceid = id limit 1;
else SET entry13 := 0;
end if;
if EXISTS(SELECT ResponseSize FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 17 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 16 DAY) AND Resourceid = id)
then SELECT ResponseSize INTO entry14 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 17 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 16 DAY) AND Resourceid = id limit 1;
else SET entry14 := 0;
end if;
if EXISTS(SELECT ResponseSize FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 16 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 15 DAY) AND Resourceid = id)
then SELECT ResponseSize INTO entry15 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 16 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 15 DAY) AND Resourceid = id limit 1;
else SET entry15 := 0;
end if;
if EXISTS(SELECT ResponseSize FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 15 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 14 DAY) AND Resourceid = id)
then SELECT ResponseSize INTO entry16 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 15 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 14 DAY) AND Resourceid = id limit 1;
else SET entry16 := 0;
end if;
if EXISTS(SELECT ResponseSize FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 14 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 13 DAY) AND Resourceid = id)
then SELECT ResponseSize INTO entry17 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 14 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 13 DAY) AND Resourceid = id limit 1;
else SET entry17 := 0;
end if;
if EXISTS(SELECT ResponseSize FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 13 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 12 DAY) AND Resourceid = id)
then SELECT ResponseSize INTO entry18 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 13 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 12 DAY) AND Resourceid = id limit 1;
else SET entry18 := 0;
end if;
if EXISTS(SELECT ResponseSize FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 12 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 11 DAY) AND Resourceid = id)
then SELECT ResponseSize INTO entry19 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 12 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 11 DAY) AND Resourceid = id limit 1;
else SET entry19 := 0;
end if;
if EXISTS(SELECT ResponseSize FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 11 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 10 DAY) AND Resourceid = id)
then SELECT ResponseSize INTO entry20 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 11 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 10 DAY) AND Resourceid = id limit 1;
else SET entry20 := 0;
end if;
if EXISTS(SELECT ResponseSize FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 10 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 9 DAY) AND Resourceid = id)
then SELECT ResponseSize INTO entry21 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 10 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 9 DAY) AND Resourceid = id limit 1;
else SET entry21 := 0;
end if;
if EXISTS(SELECT ResponseSize FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 9 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 8 DAY) AND Resourceid = id)
then SELECT ResponseSize INTO entry22 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 9 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 8 DAY) AND Resourceid = id limit 1;
else SET entry22 := 0;
end if;
if EXISTS(SELECT ResponseSize FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 8 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 7 DAY) AND Resourceid = id)
then SELECT ResponseSize INTO entry23 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 8 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 7 DAY) AND Resourceid = id limit 1;
else SET entry23 := 0;
end if;
if EXISTS(SELECT ResponseSize FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 7 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 6 DAY) AND Resourceid = id)
then SELECT ResponseSize INTO entry24 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 7 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 6 DAY) AND Resourceid = id limit 1;
else SET entry24 := 0;
end if;
if EXISTS(SELECT ResponseSize FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 6 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 5 DAY) AND Resourceid = id)
then SELECT ResponseSize INTO entry25 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 6 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 5 DAY) AND Resourceid = id limit 1;
else SET entry25 := 0;
end if;
if EXISTS(SELECT ResponseSize FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 5 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 4 DAY) AND Resourceid = id)
then SELECT ResponseSize INTO entry26 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 5 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 4 DAY) AND Resourceid = id limit 1;
else SET entry26 := 0;
end if;
if EXISTS(SELECT ResponseSize FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 4 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 3 DAY) AND Resourceid = id)
then SELECT ResponseSize INTO entry27 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 4 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 3 DAY) AND Resourceid = id limit 1;
else SET entry27 := 0;
end if;
if EXISTS(SELECT ResponseSize FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 3 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 2 DAY) AND Resourceid = id)
then SELECT ResponseSize INTO entry28 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 3 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 2 DAY) AND Resourceid = id limit 1;
else SET entry28 := 0;
end if;
if EXISTS(SELECT ResponseSize FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 2 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 1 DAY) AND Resourceid = id)
then SELECT ResponseSize INTO entry29 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 2 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 1 DAY) AND Resourceid = id limit 1;
else SET entry29 := 0;
end if;
if EXISTS(SELECT ResponseSize FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 1 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 0 DAY) AND Resourceid = id)
then SELECT ResponseSize INTO entry30 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 1 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 0 DAY) AND Resourceid = id limit 1;
else SET entry30 := 0;
end if;
END//
delimiter ;
delimiter //
DROP PROCEDURE IF EXISTS get_weekly_samples_size;
CREATE PROCEDURE get_weekly_samples_size (
IN id INT,
OUT entry0 FLOAT,
OUT entry1 FLOAT,
OUT entry2 FLOAT,
OUT entry3 FLOAT,
OUT entry4 FLOAT,
OUT entry5 FLOAT,
OUT entry6 FLOAT,
OUT entry7 FLOAT,
OUT entry8 FLOAT,
OUT entry9 FLOAT,
OUT entry10 FLOAT,
OUT entry11 FLOAT,
OUT entry12 FLOAT,
OUT entry13 FLOAT,
OUT entry14 FLOAT,
OUT entry15 FLOAT,
OUT entry16 FLOAT,
OUT entry17 FLOAT,
OUT entry18 FLOAT,
OUT entry19 FLOAT,
OUT entry20 FLOAT,
OUT entry21 FLOAT,
OUT entry22 FLOAT,
OUT entry23 FLOAT,
OUT entry24 FLOAT,
OUT entry25 FLOAT,
OUT entry26 FLOAT,
OUT entry27 FLOAT,
OUT start_hour FLOAT
)
BEGIN
select HOUR(now()) INTO start_hour;
if EXISTS(SELECT ResponseSize FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 168 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 162 HOUR) AND Resourceid = id)
then SELECT ResponseSize INTO entry0 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 168 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 162 HOUR) AND Resourceid = id limit 1;
else SET entry0 := 0;
end if;
if EXISTS(SELECT ResponseSize FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 162 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 156 HOUR) AND Resourceid = id)
then SELECT ResponseSize INTO entry1 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 162 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 156 HOUR) AND Resourceid = id limit 1;
else SET entry1 := 0;
end if;
if EXISTS(SELECT ResponseSize FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 156 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 150 HOUR) AND Resourceid = id)
then SELECT ResponseSize INTO entry2 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 156 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 150 HOUR) AND Resourceid = id limit 1;
else SET entry2 := 0;
end if;
if EXISTS(SELECT ResponseSize FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 150 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 144 HOUR) AND Resourceid = id)
then SELECT ResponseSize INTO entry3 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 150 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 144 HOUR) AND Resourceid = id limit 1;
else SET entry3 := 0;
end if;
if EXISTS(SELECT ResponseSize FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 144 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 138 HOUR) AND Resourceid = id)
then SELECT ResponseSize INTO entry4 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 144 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 138 HOUR) AND Resourceid = id limit 1;
else SET entry4 := 0;
end if;
if EXISTS(SELECT ResponseSize FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 138 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 132 HOUR) AND Resourceid = id)
then SELECT ResponseSize INTO entry5 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 138 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 132 HOUR) AND Resourceid = id limit 1;
else SET entry5 := 0;
end if;
if EXISTS(SELECT ResponseSize FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 132 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 126 HOUR) AND Resourceid = id)
then SELECT ResponseSize INTO entry6 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 132 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 126 HOUR) AND Resourceid = id limit 1;
else SET entry6 := 0;
end if;
if EXISTS(SELECT ResponseSize FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 126 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 120 HOUR) AND Resourceid = id)
then SELECT ResponseSize INTO entry7 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 126 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 120 HOUR) AND Resourceid = id limit 1;
else SET entry7 := 0;
end if;
if EXISTS(SELECT ResponseSize FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 120 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 114 HOUR) AND Resourceid = id)
then SELECT ResponseSize INTO entry8 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 120 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 114 HOUR) AND Resourceid = id limit 1;
else SET entry8 := 0;
end if;
if EXISTS(SELECT ResponseSize FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 114 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 108 HOUR) AND Resourceid = id)
then SELECT ResponseSize INTO entry9 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 114 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 108 HOUR) AND Resourceid = id limit 1;
else SET entry9 := 0;
end if;
if EXISTS(SELECT ResponseSize FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 108 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 102 HOUR) AND Resourceid = id)
then SELECT ResponseSize INTO entry10 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 108 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 102 HOUR) AND Resourceid = id limit 1;
else SET entry10 := 0;
end if;
if EXISTS(SELECT ResponseSize FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 102 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 96 HOUR) AND Resourceid = id)
then SELECT ResponseSize INTO entry11 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 102 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 96 HOUR) AND Resourceid = id limit 1;
else SET entry11 := 0;
end if;
if EXISTS(SELECT ResponseSize FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 96 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 90 HOUR) AND Resourceid = id)
then SELECT ResponseSize INTO entry12 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 96 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 90 HOUR) AND Resourceid = id limit 1;
else SET entry12 := 0;
end if;
if EXISTS(SELECT ResponseSize FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 90 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 84 HOUR) AND Resourceid = id)
then SELECT ResponseSize INTO entry13 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 90 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 84 HOUR) AND Resourceid = id limit 1;
else SET entry13 := 0;
end if;
if EXISTS(SELECT ResponseSize FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 84 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 78 HOUR) AND Resourceid = id)
then SELECT ResponseSize INTO entry14 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 84 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 78 HOUR) AND Resourceid = id limit 1;
else SET entry14 := 0;
end if;
if EXISTS(SELECT ResponseSize FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 78 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 72 HOUR) AND Resourceid = id)
then SELECT ResponseSize INTO entry15 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 78 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 72 HOUR) AND Resourceid = id limit 1;
else SET entry15 := 0;
end if;
if EXISTS(SELECT ResponseSize FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 72 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 66 HOUR) AND Resourceid = id)
then SELECT ResponseSize INTO entry16 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 72 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 66 HOUR) AND Resourceid = id limit 1;
else SET entry16 := 0;
end if;
if EXISTS(SELECT ResponseSize FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 66 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 60 HOUR) AND Resourceid = id)
then SELECT ResponseSize INTO entry17 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 66 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 60 HOUR) AND Resourceid = id limit 1;
else SET entry17 := 0;
end if;
if EXISTS(SELECT ResponseSize FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 60 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 54 HOUR) AND Resourceid = id)
then SELECT ResponseSize INTO entry18 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 60 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 54 HOUR) AND Resourceid = id limit 1;
else SET entry18 := 0;
end if;
if EXISTS(SELECT ResponseSize FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 54 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 48 HOUR) AND Resourceid = id)
then SELECT ResponseSize INTO entry19 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 54 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 48 HOUR) AND Resourceid = id limit 1;
else SET entry19 := 0;
end if;
if EXISTS(SELECT ResponseSize FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 48 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 42 HOUR) AND Resourceid = id)
then SELECT ResponseSize INTO entry20 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 48 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 42 HOUR) AND Resourceid = id limit 1;
else SET entry20 := 0;
end if;
if EXISTS(SELECT ResponseSize FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 42 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 36 HOUR) AND Resourceid = id)
then SELECT ResponseSize INTO entry21 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 42 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 36 HOUR) AND Resourceid = id limit 1;
else SET entry21 := 0;
end if;
if EXISTS(SELECT ResponseSize FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 36 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 30 HOUR) AND Resourceid = id)
then SELECT ResponseSize INTO entry22 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 36 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 30 HOUR) AND Resourceid = id limit 1;
else SET entry22 := 0;
end if;
if EXISTS(SELECT ResponseSize FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 30 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 24 HOUR) AND Resourceid = id)
then SELECT ResponseSize INTO entry23 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 30 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 24 HOUR) AND Resourceid = id limit 1;
else SET entry23 := 0;
end if;
if EXISTS(SELECT ResponseSize FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 24 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 18 HOUR) AND Resourceid = id)
then SELECT ResponseSize INTO entry24 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 24 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 18 HOUR) AND Resourceid = id limit 1;
else SET entry24 := 0;
end if;
if EXISTS(SELECT ResponseSize FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 18 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 12 HOUR) AND Resourceid = id)
then SELECT ResponseSize INTO entry25 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 18 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 12 HOUR) AND Resourceid = id limit 1;
else SET entry25 := 0;
end if;
if EXISTS(SELECT ResponseSize FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 12 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 6 HOUR) AND Resourceid = id)
then SELECT ResponseSize INTO entry26 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 12 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 6 HOUR) AND Resourceid = id limit 1;
else SET entry26 := 0;
end if;
if EXISTS(SELECT ResponseSize FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 6 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 0 HOUR) AND Resourceid = id)
then SELECT ResponseSize INTO entry27 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 6 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 0 HOUR) AND Resourceid = id limit 1;
else SET entry27 := 0;
end if;
END//
delimiter ;
delimiter //
DROP PROCEDURE IF EXISTS get_daily_samples_size;
CREATE PROCEDURE get_daily_samples_size (
IN id INT,
OUT entry0 FLOAT,
OUT entry1 FLOAT,
OUT entry2 FLOAT,
OUT entry3 FLOAT,
OUT entry4 FLOAT,
OUT entry5 FLOAT,
OUT entry6 FLOAT,
OUT entry7 FLOAT,
OUT entry8 FLOAT,
OUT entry9 FLOAT,
OUT entry10 FLOAT,
OUT entry11 FLOAT,
OUT entry12 FLOAT,
OUT entry13 FLOAT,
OUT entry14 FLOAT,
OUT entry15 FLOAT,
OUT entry16 FLOAT,
OUT entry17 FLOAT,
OUT entry18 FLOAT,
OUT entry19 FLOAT,
OUT entry20 FLOAT,
OUT entry21 FLOAT,
OUT entry22 FLOAT,
OUT entry23 FLOAT,
OUT start_hour FLOAT
)
BEGIN
select HOUR(now()) INTO start_hour;
if EXISTS(SELECT ResponseSize FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 24 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 23 HOUR) AND Resourceid = id)
then SELECT ResponseSize INTO entry0 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 24 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 23 HOUR) AND Resourceid = id limit 1;
else SET entry0 := 0;
end if;
if EXISTS(SELECT ResponseSize FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 23 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 22 HOUR) AND Resourceid = id)
then SELECT ResponseSize INTO entry1 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 23 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 22 HOUR) AND Resourceid = id limit 1;
else SET entry1 := 0;
end if;
if EXISTS(SELECT ResponseSize FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 22 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 21 HOUR) AND Resourceid = id)
then SELECT ResponseSize INTO entry2 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 22 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 21 HOUR) AND Resourceid = id limit 1;
else SET entry2 := 0;
end if;
if EXISTS(SELECT ResponseSize FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 21 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 20 HOUR) AND Resourceid = id)
then SELECT ResponseSize INTO entry3 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 21 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 20 HOUR) AND Resourceid = id limit 1;
else SET entry3 := 0;
end if;
if EXISTS(SELECT ResponseSize FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 20 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 19 HOUR) AND Resourceid = id)
then SELECT ResponseSize INTO entry4 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 20 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 19 HOUR) AND Resourceid = id limit 1;
else SET entry4 := 0;
end if;
if EXISTS(SELECT ResponseSize FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 19 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 18 HOUR) AND Resourceid = id)
then SELECT ResponseSize INTO entry5 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 19 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 18 HOUR) AND Resourceid = id limit 1;
else SET entry5 := 0;
end if;
if EXISTS(SELECT ResponseSize FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 18 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 17 HOUR) AND Resourceid = id)
then SELECT ResponseSize INTO entry6 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 18 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 17 HOUR) AND Resourceid = id limit 1;
else SET entry6 := 0;
end if;
if EXISTS(SELECT ResponseSize FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 17 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 16 HOUR) AND Resourceid = id)
then SELECT ResponseSize INTO entry7 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 17 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 16 HOUR) AND Resourceid = id limit 1;
else SET entry7 := 0;
end if;
if EXISTS(SELECT ResponseSize FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 16 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 15 HOUR) AND Resourceid = id)
then SELECT ResponseSize INTO entry8 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 16 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 15 HOUR) AND Resourceid = id limit 1;
else SET entry8 := 0;
end if;
if EXISTS(SELECT ResponseSize FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 15 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 14 HOUR) AND Resourceid = id)
then SELECT ResponseSize INTO entry9 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 15 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 14 HOUR) AND Resourceid = id limit 1;
else SET entry9 := 0;
end if;
if EXISTS(SELECT ResponseSize FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 14 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 13 HOUR) AND Resourceid = id)
then SELECT ResponseSize INTO entry10 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 14 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 13 HOUR) AND Resourceid = id limit 1;
else SET entry10 := 0;
end if;
if EXISTS(SELECT ResponseSize FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 13 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 12 HOUR) AND Resourceid = id)
then SELECT ResponseSize INTO entry11 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 13 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 12 HOUR) AND Resourceid = id limit 1;
else SET entry11 := 0;
end if;
if EXISTS(SELECT ResponseSize FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 12 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 11 HOUR) AND Resourceid = id)
then SELECT ResponseSize INTO entry12 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 12 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 11 HOUR) AND Resourceid = id limit 1;
else SET entry12 := 0;
end if;
if EXISTS(SELECT ResponseSize FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 11 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 10 HOUR) AND Resourceid = id)
then SELECT ResponseSize INTO entry13 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 11 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 10 HOUR) AND Resourceid = id limit 1;
else SET entry13 := 0;
end if;
if EXISTS(SELECT ResponseSize FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 10 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 9 HOUR) AND Resourceid = id)
then SELECT ResponseSize INTO entry14 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 10 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 9 HOUR) AND Resourceid = id limit 1;
else SET entry14 := 0;
end if;
if EXISTS(SELECT ResponseSize FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 9 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 8 HOUR) AND Resourceid = id)
then SELECT ResponseSize INTO entry15 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 9 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 8 HOUR) AND Resourceid = id limit 1;
else SET entry15 := 0;
end if;
if EXISTS(SELECT ResponseSize FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 8 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 7 HOUR) AND Resourceid = id)
then SELECT ResponseSize INTO entry16 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 8 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 7 HOUR) AND Resourceid = id limit 1;
else SET entry16 := 0;
end if;
if EXISTS(SELECT ResponseSize FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 7 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 6 HOUR) AND Resourceid = id)
then SELECT ResponseSize INTO entry17 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 7 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 6 HOUR) AND Resourceid = id limit 1;
else SET entry17 := 0;
end if;
if EXISTS(SELECT ResponseSize FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 6 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 5 HOUR) AND Resourceid = id)
then SELECT ResponseSize INTO entry18 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 6 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 5 HOUR) AND Resourceid = id limit 1;
else SET entry18 := 0;
end if;
if EXISTS(SELECT ResponseSize FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 5 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 4 HOUR) AND Resourceid = id)
then SELECT ResponseSize INTO entry19 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 5 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 4 HOUR) AND Resourceid = id limit 1;
else SET entry19 := 0;
end if;
if EXISTS(SELECT ResponseSize FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 4 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 3 HOUR) AND Resourceid = id)
then SELECT ResponseSize INTO entry20 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 4 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 3 HOUR) AND Resourceid = id limit 1;
else SET entry20 := 0;
end if;
if EXISTS(SELECT ResponseSize FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 3 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 2 HOUR) AND Resourceid = id)
then SELECT ResponseSize INTO entry21 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 3 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 2 HOUR) AND Resourceid = id limit 1;
else SET entry21 := 0;
end if;
if EXISTS(SELECT ResponseSize FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 2 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 1 HOUR) AND Resourceid = id)
then SELECT ResponseSize INTO entry22 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 2 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 1 HOUR) AND Resourceid = id limit 1;
else SET entry22 := 0;
end if;
if EXISTS(SELECT ResponseSize FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 1 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 0 HOUR) AND Resourceid = id)
then SELECT ResponseSize INTO entry23 FROM PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 1 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 0 HOUR) AND Resourceid = id limit 1;
else SET entry23 := 0;
end if;
END//
delimiter ;
delimiter //
DROP PROCEDURE IF EXISTS get_monthly_samples_size_websites;
CREATE PROCEDURE get_monthly_samples_size_websites (
IN id INT,
OUT entry0 FLOAT,
OUT entry1 FLOAT,
OUT entry2 FLOAT,
OUT entry3 FLOAT,
OUT entry4 FLOAT,
OUT entry5 FLOAT,
OUT entry6 FLOAT,
OUT entry7 FLOAT,
OUT entry8 FLOAT,
OUT entry9 FLOAT,
OUT entry10 FLOAT,
OUT entry11 FLOAT,
OUT entry12 FLOAT,
OUT entry13 FLOAT,
OUT entry14 FLOAT,
OUT entry15 FLOAT,
OUT entry16 FLOAT,
OUT entry17 FLOAT,
OUT entry18 FLOAT,
OUT entry19 FLOAT,
OUT entry20 FLOAT,
OUT entry21 FLOAT,
OUT entry22 FLOAT,
OUT entry23 FLOAT,
OUT entry24 FLOAT,
OUT entry25 FLOAT,
OUT entry26 FLOAT,
OUT entry27 FLOAT,
OUT entry28 FLOAT,
OUT entry29 FLOAT,
OUT entry30 FLOAT,
OUT start_hour FLOAT
)
BEGIN
select DAY(now()) INTO start_hour;
if EXISTS(SELECT SUM(bodySize) from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 31 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 30 DAY) AND Websiteid = id limit 1))
then SELECT SUM(bodySize) INTO entry0 from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 31 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 30 DAY) AND Websiteid = id limit 1);
else SET entry0 := 0;
end if;
if EXISTS(SELECT SUM(bodySize) from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 30 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 29 DAY) AND Websiteid = id limit 1))
then SELECT SUM(bodySize) INTO entry1 from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 30 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 29 DAY) AND Websiteid = id limit 1);
else SET entry1 := 0;
end if;
if EXISTS(SELECT SUM(bodySize) from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 29 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 28 DAY) AND Websiteid = id limit 1))
then SELECT SUM(bodySize) INTO entry2 from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 29 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 28 DAY) AND Websiteid = id limit 1);
else SET entry2 := 0;
end if;
if EXISTS(SELECT SUM(bodySize) from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 28 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 27 DAY) AND Websiteid = id limit 1))
then SELECT SUM(bodySize) INTO entry3 from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 28 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 27 DAY) AND Websiteid = id limit 1);
else SET entry3 := 0;
end if;
if EXISTS(SELECT SUM(bodySize) from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 27 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 26 DAY) AND Websiteid = id limit 1))
then SELECT SUM(bodySize) INTO entry4 from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 27 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 26 DAY) AND Websiteid = id limit 1);
else SET entry4 := 0;
end if;
if EXISTS(SELECT SUM(bodySize) from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 26 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 25 DAY) AND Websiteid = id limit 1))
then SELECT SUM(bodySize) INTO entry5 from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 26 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 25 DAY) AND Websiteid = id limit 1);
else SET entry5 := 0;
end if;
if EXISTS(SELECT SUM(bodySize) from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 25 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 24 DAY) AND Websiteid = id limit 1))
then SELECT SUM(bodySize) INTO entry6 from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 25 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 24 DAY) AND Websiteid = id limit 1);
else SET entry6 := 0;
end if;
if EXISTS(SELECT SUM(bodySize) from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 24 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 23 DAY) AND Websiteid = id limit 1))
then SELECT SUM(bodySize) INTO entry7 from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 24 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 23 DAY) AND Websiteid = id limit 1);
else SET entry7 := 0;
end if;
if EXISTS(SELECT SUM(bodySize) from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 23 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 22 DAY) AND Websiteid = id limit 1))
then SELECT SUM(bodySize) INTO entry8 from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 23 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 22 DAY) AND Websiteid = id limit 1);
else SET entry8 := 0;
end if;
if EXISTS(SELECT SUM(bodySize) from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 22 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 21 DAY) AND Websiteid = id limit 1))
then SELECT SUM(bodySize) INTO entry9 from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 22 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 21 DAY) AND Websiteid = id limit 1);
else SET entry9 := 0;
end if;
if EXISTS(SELECT SUM(bodySize) from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 21 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 20 DAY) AND Websiteid = id limit 1))
then SELECT SUM(bodySize) INTO entry10 from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 21 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 20 DAY) AND Websiteid = id limit 1);
else SET entry10 := 0;
end if;
if EXISTS(SELECT SUM(bodySize) from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 20 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 19 DAY) AND Websiteid = id limit 1))
then SELECT SUM(bodySize) INTO entry11 from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 20 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 19 DAY) AND Websiteid = id limit 1);
else SET entry11 := 0;
end if;
if EXISTS(SELECT SUM(bodySize) from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 19 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 18 DAY) AND Websiteid = id limit 1))
then SELECT SUM(bodySize) INTO entry12 from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 19 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 18 DAY) AND Websiteid = id limit 1);
else SET entry12 := 0;
end if;
if EXISTS(SELECT SUM(bodySize) from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 18 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 17 DAY) AND Websiteid = id limit 1))
then SELECT SUM(bodySize) INTO entry13 from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 18 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 17 DAY) AND Websiteid = id limit 1);
else SET entry13 := 0;
end if;
if EXISTS(SELECT SUM(bodySize) from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 17 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 16 DAY) AND Websiteid = id limit 1))
then SELECT SUM(bodySize) INTO entry14 from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 17 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 16 DAY) AND Websiteid = id limit 1);
else SET entry14 := 0;
end if;
if EXISTS(SELECT SUM(bodySize) from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 16 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 15 DAY) AND Websiteid = id limit 1))
then SELECT SUM(bodySize) INTO entry15 from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 16 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 15 DAY) AND Websiteid = id limit 1);
else SET entry15 := 0;
end if;
if EXISTS(SELECT SUM(bodySize) from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 15 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 14 DAY) AND Websiteid = id limit 1))
then SELECT SUM(bodySize) INTO entry16 from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 15 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 14 DAY) AND Websiteid = id limit 1);
else SET entry16 := 0;
end if;
if EXISTS(SELECT SUM(bodySize) from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 14 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 13 DAY) AND Websiteid = id limit 1))
then SELECT SUM(bodySize) INTO entry17 from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 14 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 13 DAY) AND Websiteid = id limit 1);
else SET entry17 := 0;
end if;
if EXISTS(SELECT SUM(bodySize) from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 13 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 12 DAY) AND Websiteid = id limit 1))
then SELECT SUM(bodySize) INTO entry18 from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 13 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 12 DAY) AND Websiteid = id limit 1);
else SET entry18 := 0;
end if;
if EXISTS(SELECT SUM(bodySize) from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 12 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 11 DAY) AND Websiteid = id limit 1))
then SELECT SUM(bodySize) INTO entry19 from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 12 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 11 DAY) AND Websiteid = id limit 1);
else SET entry19 := 0;
end if;
if EXISTS(SELECT SUM(bodySize) from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 11 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 10 DAY) AND Websiteid = id limit 1))
then SELECT SUM(bodySize) INTO entry20 from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 11 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 10 DAY) AND Websiteid = id limit 1);
else SET entry20 := 0;
end if;
if EXISTS(SELECT SUM(bodySize) from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 10 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 9 DAY) AND Websiteid = id limit 1))
then SELECT SUM(bodySize) INTO entry21 from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 10 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 9 DAY) AND Websiteid = id limit 1);
else SET entry21 := 0;
end if;
if EXISTS(SELECT SUM(bodySize) from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 9 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 8 DAY) AND Websiteid = id limit 1))
then SELECT SUM(bodySize) INTO entry22 from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 9 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 8 DAY) AND Websiteid = id limit 1);
else SET entry22 := 0;
end if;
if EXISTS(SELECT SUM(bodySize) from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 8 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 7 DAY) AND Websiteid = id limit 1))
then SELECT SUM(bodySize) INTO entry23 from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 8 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 7 DAY) AND Websiteid = id limit 1);
else SET entry23 := 0;
end if;
if EXISTS(SELECT SUM(bodySize) from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 7 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 6 DAY) AND Websiteid = id limit 1))
then SELECT SUM(bodySize) INTO entry24 from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 7 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 6 DAY) AND Websiteid = id limit 1);
else SET entry24 := 0;
end if;
if EXISTS(SELECT SUM(bodySize) from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 6 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 5 DAY) AND Websiteid = id limit 1))
then SELECT SUM(bodySize) INTO entry25 from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 6 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 5 DAY) AND Websiteid = id limit 1);
else SET entry25 := 0;
end if;
if EXISTS(SELECT SUM(bodySize) from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 5 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 4 DAY) AND Websiteid = id limit 1))
then SELECT SUM(bodySize) INTO entry26 from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 5 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 4 DAY) AND Websiteid = id limit 1);
else SET entry26 := 0;
end if;
if EXISTS(SELECT SUM(bodySize) from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 4 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 3 DAY) AND Websiteid = id limit 1))
then SELECT SUM(bodySize) INTO entry27 from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 4 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 3 DAY) AND Websiteid = id limit 1);
else SET entry27 := 0;
end if;
if EXISTS(SELECT SUM(bodySize) from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 3 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 2 DAY) AND Websiteid = id limit 1))
then SELECT SUM(bodySize) INTO entry28 from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 3 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 2 DAY) AND Websiteid = id limit 1);
else SET entry28 := 0;
end if;
if EXISTS(SELECT SUM(bodySize) from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 2 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 1 DAY) AND Websiteid = id limit 1))
then SELECT SUM(bodySize) INTO entry29 from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 2 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 1 DAY) AND Websiteid = id limit 1);
else SET entry29 := 0;
end if;
if EXISTS(SELECT SUM(bodySize) from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 1 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 0 DAY) AND Websiteid = id limit 1))
then SELECT SUM(bodySize) INTO entry30 from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 1 DAY) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 0 DAY) AND Websiteid = id limit 1);
else SET entry30 := 0;
end if;
END//
delimiter ;
delimiter //
DROP PROCEDURE IF EXISTS get_daily_samples_size_websites;
CREATE PROCEDURE get_daily_samples_size_websites (
IN id INT,
OUT entry0 FLOAT,
OUT entry1 FLOAT,
OUT entry2 FLOAT,
OUT entry3 FLOAT,
OUT entry4 FLOAT,
OUT entry5 FLOAT,
OUT entry6 FLOAT,
OUT entry7 FLOAT,
OUT entry8 FLOAT,
OUT entry9 FLOAT,
OUT entry10 FLOAT,
OUT entry11 FLOAT,
OUT entry12 FLOAT,
OUT entry13 FLOAT,
OUT entry14 FLOAT,
OUT entry15 FLOAT,
OUT entry16 FLOAT,
OUT entry17 FLOAT,
OUT entry18 FLOAT,
OUT entry19 FLOAT,
OUT entry20 FLOAT,
OUT entry21 FLOAT,
OUT entry22 FLOAT,
OUT entry23 FLOAT,
OUT start_hour FLOAT
)
BEGIN
select HOUR(now()) INTO start_hour;
if EXISTS(SELECT SUM(bodySize) from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 24 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 23 HOUR) AND Websiteid = id limit 1))
then SELECT SUM(bodySize) INTO entry0 from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 24 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 23 HOUR) AND Websiteid = id limit 1);
else SET entry0 := 0;
end if;
if EXISTS(SELECT SUM(bodySize) from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 23 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 22 HOUR) AND Websiteid = id limit 1))
then SELECT SUM(bodySize) INTO entry1 from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 23 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 22 HOUR) AND Websiteid = id limit 1);
else SET entry1 := 0;
end if;
if EXISTS(SELECT SUM(bodySize) from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 22 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 21 HOUR) AND Websiteid = id limit 1))
then SELECT SUM(bodySize) INTO entry2 from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 22 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 21 HOUR) AND Websiteid = id limit 1);
else SET entry2 := 0;
end if;
if EXISTS(SELECT SUM(bodySize) from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 21 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 20 HOUR) AND Websiteid = id limit 1))
then SELECT SUM(bodySize) INTO entry3 from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 21 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 20 HOUR) AND Websiteid = id limit 1);
else SET entry3 := 0;
end if;
if EXISTS(SELECT SUM(bodySize) from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 20 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 19 HOUR) AND Websiteid = id limit 1))
then SELECT SUM(bodySize) INTO entry4 from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 20 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 19 HOUR) AND Websiteid = id limit 1);
else SET entry4 := 0;
end if;
if EXISTS(SELECT SUM(bodySize) from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 19 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 18 HOUR) AND Websiteid = id limit 1))
then SELECT SUM(bodySize) INTO entry5 from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 19 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 18 HOUR) AND Websiteid = id limit 1);
else SET entry5 := 0;
end if;
if EXISTS(SELECT SUM(bodySize) from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 18 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 17 HOUR) AND Websiteid = id limit 1))
then SELECT SUM(bodySize) INTO entry6 from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 18 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 17 HOUR) AND Websiteid = id limit 1);
else SET entry6 := 0;
end if;
if EXISTS(SELECT SUM(bodySize) from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 17 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 16 HOUR) AND Websiteid = id limit 1))
then SELECT SUM(bodySize) INTO entry7 from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 17 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 16 HOUR) AND Websiteid = id limit 1);
else SET entry7 := 0;
end if;
if EXISTS(SELECT SUM(bodySize) from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 16 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 15 HOUR) AND Websiteid = id limit 1))
then SELECT SUM(bodySize) INTO entry8 from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 16 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 15 HOUR) AND Websiteid = id limit 1);
else SET entry8 := 0;
end if;
if EXISTS(SELECT SUM(bodySize) from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 15 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 14 HOUR) AND Websiteid = id limit 1))
then SELECT SUM(bodySize) INTO entry9 from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 15 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 14 HOUR) AND Websiteid = id limit 1);
else SET entry9 := 0;
end if;
if EXISTS(SELECT SUM(bodySize) from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 14 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 13 HOUR) AND Websiteid = id limit 1))
then SELECT SUM(bodySize) INTO entry10 from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 14 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 13 HOUR) AND Websiteid = id limit 1);
else SET entry10 := 0;
end if;
if EXISTS(SELECT SUM(bodySize) from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 13 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 12 HOUR) AND Websiteid = id limit 1))
then SELECT SUM(bodySize) INTO entry11 from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 13 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 12 HOUR) AND Websiteid = id limit 1);
else SET entry11 := 0;
end if;
if EXISTS(SELECT SUM(bodySize) from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 12 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 11 HOUR) AND Websiteid = id limit 1))
then SELECT SUM(bodySize) INTO entry12 from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 12 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 11 HOUR) AND Websiteid = id limit 1);
else SET entry12 := 0;
end if;
if EXISTS(SELECT SUM(bodySize) from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 11 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 10 HOUR) AND Websiteid = id limit 1))
then SELECT SUM(bodySize) INTO entry13 from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 11 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 10 HOUR) AND Websiteid = id limit 1);
else SET entry13 := 0;
end if;
if EXISTS(SELECT SUM(bodySize) from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 10 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 9 HOUR) AND Websiteid = id limit 1))
then SELECT SUM(bodySize) INTO entry14 from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 10 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 9 HOUR) AND Websiteid = id limit 1);
else SET entry14 := 0;
end if;
if EXISTS(SELECT SUM(bodySize) from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 9 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 8 HOUR) AND Websiteid = id limit 1))
then SELECT SUM(bodySize) INTO entry15 from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 9 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 8 HOUR) AND Websiteid = id limit 1);
else SET entry15 := 0;
end if;
if EXISTS(SELECT SUM(bodySize) from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 8 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 7 HOUR) AND Websiteid = id limit 1))
then SELECT SUM(bodySize) INTO entry16 from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 8 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 7 HOUR) AND Websiteid = id limit 1);
else SET entry16 := 0;
end if;
if EXISTS(SELECT SUM(bodySize) from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 7 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 6 HOUR) AND Websiteid = id limit 1))
then SELECT SUM(bodySize) INTO entry17 from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 7 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 6 HOUR) AND Websiteid = id limit 1);
else SET entry17 := 0;
end if;
if EXISTS(SELECT SUM(bodySize) from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 6 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 5 HOUR) AND Websiteid = id limit 1))
then SELECT SUM(bodySize) INTO entry18 from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 6 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 5 HOUR) AND Websiteid = id limit 1);
else SET entry18 := 0;
end if;
if EXISTS(SELECT SUM(bodySize) from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 5 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 4 HOUR) AND Websiteid = id limit 1))
then SELECT SUM(bodySize) INTO entry19 from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 5 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 4 HOUR) AND Websiteid = id limit 1);
else SET entry19 := 0;
end if;
if EXISTS(SELECT SUM(bodySize) from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 4 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 3 HOUR) AND Websiteid = id limit 1))
then SELECT SUM(bodySize) INTO entry20 from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 4 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 3 HOUR) AND Websiteid = id limit 1);
else SET entry20 := 0;
end if;
if EXISTS(SELECT SUM(bodySize) from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 3 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 2 HOUR) AND Websiteid = id limit 1))
then SELECT SUM(bodySize) INTO entry21 from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 3 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 2 HOUR) AND Websiteid = id limit 1);
else SET entry21 := 0;
end if;
if EXISTS(SELECT SUM(bodySize) from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 2 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 1 HOUR) AND Websiteid = id limit 1))
then SELECT SUM(bodySize) INTO entry22 from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 2 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 1 HOUR) AND Websiteid = id limit 1);
else SET entry22 := 0;
end if;
if EXISTS(SELECT SUM(bodySize) from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 1 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 0 HOUR) AND Websiteid = id limit 1))
then SELECT SUM(bodySize) INTO entry23 from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 1 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 0 HOUR) AND Websiteid = id limit 1);
else SET entry23 := 0;
end if;
END//
delimiter ;
delimiter //
DROP PROCEDURE IF EXISTS get_weekly_samples_size_websites;
CREATE PROCEDURE get_weekly_samples_size_websites (
IN id INT,
OUT entry0 FLOAT,
OUT entry1 FLOAT,
OUT entry2 FLOAT,
OUT entry3 FLOAT,
OUT entry4 FLOAT,
OUT entry5 FLOAT,
OUT entry6 FLOAT,
OUT entry7 FLOAT,
OUT entry8 FLOAT,
OUT entry9 FLOAT,
OUT entry10 FLOAT,
OUT entry11 FLOAT,
OUT entry12 FLOAT,
OUT entry13 FLOAT,
OUT entry14 FLOAT,
OUT entry15 FLOAT,
OUT entry16 FLOAT,
OUT entry17 FLOAT,
OUT entry18 FLOAT,
OUT entry19 FLOAT,
OUT entry20 FLOAT,
OUT entry21 FLOAT,
OUT entry22 FLOAT,
OUT entry23 FLOAT,
OUT entry24 FLOAT,
OUT entry25 FLOAT,
OUT entry26 FLOAT,
OUT entry27 FLOAT,
OUT start_hour FLOAT
)
BEGIN
select HOUR(now()) INTO start_hour;
if EXISTS(SELECT SUM(bodySize) from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 168 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 162 HOUR) AND Websiteid = id limit 1))
then SELECT SUM(bodySize) INTO entry0 from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 168 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 162 HOUR) AND Websiteid = id limit 1);
else SET entry0 := 0;
end if;
if EXISTS(SELECT SUM(bodySize) from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 162 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 156 HOUR) AND Websiteid = id limit 1))
then SELECT SUM(bodySize) INTO entry1 from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 162 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 156 HOUR) AND Websiteid = id limit 1);
else SET entry1 := 0;
end if;
if EXISTS(SELECT SUM(bodySize) from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 156 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 150 HOUR) AND Websiteid = id limit 1))
then SELECT SUM(bodySize) INTO entry2 from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 156 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 150 HOUR) AND Websiteid = id limit 1);
else SET entry2 := 0;
end if;
if EXISTS(SELECT SUM(bodySize) from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 150 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 144 HOUR) AND Websiteid = id limit 1))
then SELECT SUM(bodySize) INTO entry3 from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 150 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 144 HOUR) AND Websiteid = id limit 1);
else SET entry3 := 0;
end if;
if EXISTS(SELECT SUM(bodySize) from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 144 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 138 HOUR) AND Websiteid = id limit 1))
then SELECT SUM(bodySize) INTO entry4 from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 144 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 138 HOUR) AND Websiteid = id limit 1);
else SET entry4 := 0;
end if;
if EXISTS(SELECT SUM(bodySize) from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 138 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 132 HOUR) AND Websiteid = id limit 1))
then SELECT SUM(bodySize) INTO entry5 from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 138 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 132 HOUR) AND Websiteid = id limit 1);
else SET entry5 := 0;
end if;
if EXISTS(SELECT SUM(bodySize) from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 132 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 126 HOUR) AND Websiteid = id limit 1))
then SELECT SUM(bodySize) INTO entry6 from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 132 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 126 HOUR) AND Websiteid = id limit 1);
else SET entry6 := 0;
end if;
if EXISTS(SELECT SUM(bodySize) from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 126 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 120 HOUR) AND Websiteid = id limit 1))
then SELECT SUM(bodySize) INTO entry7 from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 126 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 120 HOUR) AND Websiteid = id limit 1);
else SET entry7 := 0;
end if;
if EXISTS(SELECT SUM(bodySize) from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 120 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 114 HOUR) AND Websiteid = id limit 1))
then SELECT SUM(bodySize) INTO entry8 from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 120 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 114 HOUR) AND Websiteid = id limit 1);
else SET entry8 := 0;
end if;
if EXISTS(SELECT SUM(bodySize) from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 114 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 108 HOUR) AND Websiteid = id limit 1))
then SELECT SUM(bodySize) INTO entry9 from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 114 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 108 HOUR) AND Websiteid = id limit 1);
else SET entry9 := 0;
end if;
if EXISTS(SELECT SUM(bodySize) from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 108 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 102 HOUR) AND Websiteid = id limit 1))
then SELECT SUM(bodySize) INTO entry10 from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 108 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 102 HOUR) AND Websiteid = id limit 1);
else SET entry10 := 0;
end if;
if EXISTS(SELECT SUM(bodySize) from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 102 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 96 HOUR) AND Websiteid = id limit 1))
then SELECT SUM(bodySize) INTO entry11 from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 102 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 96 HOUR) AND Websiteid = id limit 1);
else SET entry11 := 0;
end if;
if EXISTS(SELECT SUM(bodySize) from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 96 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 90 HOUR) AND Websiteid = id limit 1))
then SELECT SUM(bodySize) INTO entry12 from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 96 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 90 HOUR) AND Websiteid = id limit 1);
else SET entry12 := 0;
end if;
if EXISTS(SELECT SUM(bodySize) from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 90 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 84 HOUR) AND Websiteid = id limit 1))
then SELECT SUM(bodySize) INTO entry13 from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 90 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 84 HOUR) AND Websiteid = id limit 1);
else SET entry13 := 0;
end if;
if EXISTS(SELECT SUM(bodySize) from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 84 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 78 HOUR) AND Websiteid = id limit 1))
then SELECT SUM(bodySize) INTO entry14 from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 84 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 78 HOUR) AND Websiteid = id limit 1);
else SET entry14 := 0;
end if;
if EXISTS(SELECT SUM(bodySize) from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 78 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 72 HOUR) AND Websiteid = id limit 1))
then SELECT SUM(bodySize) INTO entry15 from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 78 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 72 HOUR) AND Websiteid = id limit 1);
else SET entry15 := 0;
end if;
if EXISTS(SELECT SUM(bodySize) from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 72 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 66 HOUR) AND Websiteid = id limit 1))
then SELECT SUM(bodySize) INTO entry16 from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 72 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 66 HOUR) AND Websiteid = id limit 1);
else SET entry16 := 0;
end if;
if EXISTS(SELECT SUM(bodySize) from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 66 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 60 HOUR) AND Websiteid = id limit 1))
then SELECT SUM(bodySize) INTO entry17 from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 66 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 60 HOUR) AND Websiteid = id limit 1);
else SET entry17 := 0;
end if;
if EXISTS(SELECT SUM(bodySize) from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 60 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 54 HOUR) AND Websiteid = id limit 1))
then SELECT SUM(bodySize) INTO entry18 from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 60 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 54 HOUR) AND Websiteid = id limit 1);
else SET entry18 := 0;
end if;
if EXISTS(SELECT SUM(bodySize) from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 54 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 48 HOUR) AND Websiteid = id limit 1))
then SELECT SUM(bodySize) INTO entry19 from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 54 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 48 HOUR) AND Websiteid = id limit 1);
else SET entry19 := 0;
end if;
if EXISTS(SELECT SUM(bodySize) from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 48 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 42 HOUR) AND Websiteid = id limit 1))
then SELECT SUM(bodySize) INTO entry20 from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 48 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 42 HOUR) AND Websiteid = id limit 1);
else SET entry20 := 0;
end if;
if EXISTS(SELECT SUM(bodySize) from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 42 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 36 HOUR) AND Websiteid = id limit 1))
then SELECT SUM(bodySize) INTO entry21 from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 42 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 36 HOUR) AND Websiteid = id limit 1);
else SET entry21 := 0;
end if;
if EXISTS(SELECT SUM(bodySize) from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 36 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 30 HOUR) AND Websiteid = id limit 1))
then SELECT SUM(bodySize) INTO entry22 from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 36 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 30 HOUR) AND Websiteid = id limit 1);
else SET entry22 := 0;
end if;
if EXISTS(SELECT SUM(bodySize) from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 30 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 24 HOUR) AND Websiteid = id limit 1))
then SELECT SUM(bodySize) INTO entry23 from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 30 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 24 HOUR) AND Websiteid = id limit 1);
else SET entry23 := 0;
end if;
if EXISTS(SELECT SUM(bodySize) from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 24 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 18 HOUR) AND Websiteid = id limit 1))
then SELECT SUM(bodySize) INTO entry24 from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 24 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 18 HOUR) AND Websiteid = id limit 1);
else SET entry24 := 0;
end if;
if EXISTS(SELECT SUM(bodySize) from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 18 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 12 HOUR) AND Websiteid = id limit 1))
then SELECT SUM(bodySize) INTO entry25 from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 18 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 12 HOUR) AND Websiteid = id limit 1);
else SET entry25 := 0;
end if;
if EXISTS(SELECT SUM(bodySize) from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 12 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 6 HOUR) AND Websiteid = id limit 1))
then SELECT SUM(bodySize) INTO entry26 from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 12 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 6 HOUR) AND Websiteid = id limit 1);
else SET entry26 := 0;
end if;
if EXISTS(SELECT SUM(bodySize) from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 6 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 0 HOUR) AND Websiteid = id limit 1))
then SELECT SUM(bodySize) INTO entry27 from REQUESTS where Metricid = (SELECT Metricid FROM WEBSITES_METRICS WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 6 HOUR) AND TIMESTAMP <= DATE_SUB(NOW(), INTERVAL 0 HOUR) AND Websiteid = id limit 1);
else SET entry27 := 0;
end if;
END//
delimiter ;
delimiter //
DROP FUNCTION IF EXISTS resource_get_availability;
CREATE FUNCTION resource_get_availability(RID INT) RETURNS VARCHAR(20)
BEGIN
DECLARE COUNT_AVAILABLE INT;
DECLARE RET_CHAR VARCHAR(20);
select count(*) total into COUNT_AVAILABLE from PING where Resourceid = RID group by Resourceid;
IF COUNT_AVAILABLE IS NULL
THEN
SET RET_CHAR := 'Unavailable';
ELSE
SET RET_CHAR := 'Working';
END IF;
RETURN RET_CHAR;
END//
delimiter ;
delimiter //
DROP FUNCTION IF EXISTS resource_statistic_average_size_24;
CREATE FUNCTION resource_statistic_average_size_24() RETURNS FLOAT
BEGIN
DECLARE AVERAGE_TIME_SIZE_24 FLOAT;
select AVG(ResponseSize) into AVERAGE_TIME_SIZE_24 from PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 24 HOUR);
RETURN AVERAGE_TIME_SIZE_24;
END//
delimiter ;
delimiter //
DROP FUNCTION IF EXISTS resource_statistic_standard_deviation_size_24;
CREATE FUNCTION resource_statistic_standard_deviation_size_24() RETURNS FLOAT
BEGIN
DECLARE STD_DEV_24 FLOAT;
select STD(ResponseSize) into STD_DEV_24 from PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 24 HOUR);
RETURN STD_DEV_24;
END//
delimiter ;
delimiter //
DROP FUNCTION IF EXISTS resource_statistic_size_24;
CREATE FUNCTION resource_statistic_size_24() RETURNS FLOAT
BEGIN
DECLARE SIZE_24 FLOAT;
select SUM(ResponseSize) into SIZE_24 from PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 24 HOUR);
RETURN SIZE_24;
END//
delimiter ;
delimiter //
DROP FUNCTION IF EXISTS resource_statistic_size;
CREATE FUNCTION resource_statistic_size() RETURNS FLOAT
BEGIN
DECLARE SIZE_ALL FLOAT;
select SUM(ResponseSize) into SIZE_ALL from PING;
RETURN SIZE_ALL;
END//
delimiter ;
delimiter //
DROP FUNCTION IF EXISTS resource_statistic_standard_deviation_size;
CREATE FUNCTION resource_statistic_standard_deviation_size() RETURNS FLOAT
BEGIN
DECLARE STD_DEV FLOAT;
select STD(ResponseSize) into STD_DEV from PING;
RETURN STD_DEV;
END//
delimiter ;
delimiter //
DROP FUNCTION IF EXISTS resource_statistic_average_size;
CREATE FUNCTION resource_statistic_average_size() RETURNS FLOAT
BEGIN
DECLARE AVERAGE_SIZE_ALL FLOAT;
select AVG(ResponseSize) into AVERAGE_SIZE_ALL from PING;
RETURN AVERAGE_SIZE_ALL;
END//
delimiter ;
delimiter //
DROP FUNCTION IF EXISTS resource_statistic_requests_time_24;
CREATE FUNCTION resource_statistic_requests_time_24() RETURNS INT
BEGIN
DECLARE COUNT_REQUESTS_24 INT;
select count(*) total into COUNT_REQUESTS_24 from PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 24 HOUR);
RETURN COUNT_REQUESTS_24;
END//
delimiter ;
delimiter //
DROP FUNCTION IF EXISTS resource_statistic_average_time_24;
CREATE FUNCTION resource_statistic_average_time_24() RETURNS FLOAT
BEGIN
DECLARE AVERAGE_TIME_ALL_24 FLOAT;
select AVG(ResponseTime) into AVERAGE_TIME_ALL_24 from PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 24 HOUR);
RETURN AVERAGE_TIME_ALL_24;
END//
delimiter ;
delimiter //
DROP FUNCTION IF EXISTS resource_statistic_standard_deviation_time_24;
CREATE FUNCTION resource_statistic_standard_deviation_time_24() RETURNS FLOAT
BEGIN
DECLARE STD_DEV_24 FLOAT;
select STD(ResponseTime) into STD_DEV_24 from PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 24 HOUR);
RETURN STD_DEV_24;
END//
delimiter ;
delimiter //
DROP FUNCTION IF EXISTS resource_statistic_time_24;
CREATE FUNCTION resource_statistic_time_24() RETURNS FLOAT
BEGIN
DECLARE TIME_24 FLOAT;
select SUM(ResponseTime) into TIME_24 from PING WHERE TIMESTAMP >= DATE_SUB(NOW(), INTERVAL 24 HOUR);
RETURN TIME_24;
END//
delimiter ;
delimiter //
DROP FUNCTION IF EXISTS resource_statistic_time;
CREATE FUNCTION resource_statistic_time() RETURNS FLOAT
BEGIN
DECLARE TIME_ALL FLOAT;
select SUM(ResponseTime) into TIME_ALL from PING;
RETURN TIME_ALL;
END//
delimiter ;
delimiter //
DROP FUNCTION IF EXISTS resource_statistic_standard_deviation_time;
CREATE FUNCTION resource_statistic_standard_deviation_time() RETURNS FLOAT
BEGIN
DECLARE STD_DEV FLOAT;
select STD(ResponseTime) into STD_DEV from PING;
RETURN STD_DEV;
END//
delimiter ;
delimiter //
DROP FUNCTION IF EXISTS resource_statistic_requests_time;
CREATE FUNCTION resource_statistic_requests_time() RETURNS INT
BEGIN
DECLARE COUNT_REQUESTS INT;
select count(*) total into COUNT_REQUESTS from PING;
RETURN COUNT_REQUESTS;
END//
delimiter ;
delimiter //
DROP FUNCTION IF EXISTS resource_statistic_average_time;
CREATE FUNCTION resource_statistic_average_time() RETURNS FLOAT
BEGIN
DECLARE AVERAGE_TIME_ALL FLOAT;
select AVG(ResponseTime) into AVERAGE_TIME_ALL from PING;
RETURN AVERAGE_TIME_ALL;
END//
delimiter ;
CREATE TRIGGER before_users_update
BEFORE UPDATE ON USERS
FOR EACH ROW
INSERT INTO AUDIT_USERS
SET action = 'update',
LastName = OLD.LastName,
FirstName = OLD.FirstName,
Username = OLD.Username,
Email = OLD.Email,
hashedpassword = <PASSWORD>;
CREATE TRIGGER before_users_delete
BEFORE DELETE ON USERS
FOR EACH ROW
INSERT INTO AUDIT_USERS
SET action = 'delete',
LastName = OLD.LastName,
FirstName = OLD.FirstName,
Username = OLD.Username,
Email = OLD.Email,
hashedpassword = OLD.hashedpassword;
|
<filename>prisma/migrations/20211103220308_retirada_de_tabelas_desnecessarias_e_alocando_active_direto_no_user/migration.sql<gh_stars>1-10
/*
Warnings:
- You are about to drop the column `active` on the `Adm` table. All the data in the column will be lost.
- You are about to drop the column `active` on the `Doctor` table. All the data in the column will be lost.
- You are about to drop the column `active` on the `Nurse` table. All the data in the column will be lost.
- You are about to drop the `GroupPermission` table. If the table is not empty, all the data it contains will be lost.
- You are about to drop the `Permission` table. If the table is not empty, all the data it contains will be lost.
*/
-- DropForeignKey
ALTER TABLE `GroupPermission` DROP FOREIGN KEY `GroupPermission_groupId_fkey`;
-- DropForeignKey
ALTER TABLE `GroupPermission` DROP FOREIGN KEY `GroupPermission_permissionId_fkey`;
-- AlterTable
ALTER TABLE `Adm` DROP COLUMN `active`;
-- AlterTable
ALTER TABLE `Doctor` DROP COLUMN `active`;
-- AlterTable
ALTER TABLE `Nurse` DROP COLUMN `active`;
-- AlterTable
ALTER TABLE `User` ADD COLUMN `active` BOOLEAN NOT NULL DEFAULT true;
-- DropTable
DROP TABLE `GroupPermission`;
-- DropTable
DROP TABLE `Permission`;
-- CreateIndex
CREATE INDEX `ExecutorsMedicalPrescription_medicalPrescriptionId_key` ON `ExecutorsMedicalPrescription`(`medicalPrescriptionId`);
|
<filename>data/ca/postgres/subdivisions_CH.postgres.sql<gh_stars>10-100
CREATE TABLE subdivision_CH (id VARCHAR(6) NOT NULL, name VARCHAR(255), level VARCHAR(64) NOT NULL, PRIMARY KEY(id));
INSERT INTO "subdivision_CH" ("id", "name", "level") VALUES (E'CH-AG', E'Argòvia', E'canton');
INSERT INTO "subdivision_CH" ("id", "name", "level") VALUES (E'CH-AR', E'Appenzell Ausser-Rhoden', E'canton');
INSERT INTO "subdivision_CH" ("id", "name", "level") VALUES (E'CH-AI', E'Appenzell Inner-Rhoden', E'canton');
INSERT INTO "subdivision_CH" ("id", "name", "level") VALUES (E'CH-BL', E'Basilea-Camp', E'canton');
INSERT INTO "subdivision_CH" ("id", "name", "level") VALUES (E'CH-BS', E'Basilea-Ciutat', E'canton');
INSERT INTO "subdivision_CH" ("id", "name", "level") VALUES (E'CH-BE', E'Berna', E'canton');
INSERT INTO "subdivision_CH" ("id", "name", "level") VALUES (E'CH-FR', E'Friburg', E'canton');
INSERT INTO "subdivision_CH" ("id", "name", "level") VALUES (E'CH-GL', E'Glarus', E'canton');
INSERT INTO "subdivision_CH" ("id", "name", "level") VALUES (E'CH-GR', E'Grisons', E'canton');
INSERT INTO "subdivision_CH" ("id", "name", "level") VALUES (E'CH-JU', E'Jura', E'canton');
INSERT INTO "subdivision_CH" ("id", "name", "level") VALUES (E'CH-NE', E'Neuchâtel', E'canton');
INSERT INTO "subdivision_CH" ("id", "name", "level") VALUES (E'CH-NW', E'Nidwalden', E'canton');
INSERT INTO "subdivision_CH" ("id", "name", "level") VALUES (E'CH-OW', E'Obwalden', E'canton');
INSERT INTO "subdivision_CH" ("id", "name", "level") VALUES (E'CH-SH', E'Schaffhausen', E'canton');
INSERT INTO "subdivision_CH" ("id", "name", "level") VALUES (E'CH-SZ', E'Schwyz', E'canton');
INSERT INTO "subdivision_CH" ("id", "name", "level") VALUES (E'CH-SO', E'Solothurn', E'canton');
INSERT INTO "subdivision_CH" ("id", "name", "level") VALUES (E'CH-TG', E'Turgòvia', E'canton');
INSERT INTO "subdivision_CH" ("id", "name", "level") VALUES (E'CH-TI', E'Cantó de Ticino', E'canton');
INSERT INTO "subdivision_CH" ("id", "name", "level") VALUES (E'CH-VS', E'Valais', E'canton');
INSERT INTO "subdivision_CH" ("id", "name", "level") VALUES (E'CH-VD', E'Vaud', E'canton');
INSERT INTO "subdivision_CH" ("id", "name", "level") VALUES (E'CH-ZG', E'Zug', E'canton');
INSERT INTO "subdivision_CH" ("id", "name", "level") VALUES (E'CH-GE', E'Ginebra', E'canton');
INSERT INTO "subdivision_CH" ("id", "name", "level") VALUES (E'CH-LU', E'Lucerna', E'canton');
INSERT INTO "subdivision_CH" ("id", "name", "level") VALUES (E'CH-ZH', E'Zuric', E'canton');
|
<filename>test_and_ground/asist/prc/template/template_fm_clearallpages.prc
PROC $sc_$cpu_fm_clearallpages
;*******************************************************************************
; Proc Name: FM_ClearAllPages
; Test Level: none
;
; Proc Description
; The purpose of this procedure is clear all of the pages associated with FM
;
; Pages Closed: FM HK Page
; FM File Info Page
; FM Dir List Tlm Page
; FM Dir List File Page
; FM Open File List Page
; FM Free Space Table Page
; FM Free Space Tlm Page
; TST FM HK Page
;
;
; Change History
;
; Date Name Description
; 08/08/08 <NAME> Original Procedure
; 06/18/09 <NAME> Created a template for this proc
; 03/04/10 <NAME> Added clear of the Free Space Tlm page
;
; Arguments
; None
;
;**********************************************************************
write ";*********************************************************************"
write "; Clear all FM and TST_FM pages"
write ";*********************************************************************"
wait 5
write "Clearing FM HK Page."
clear $SC_$CPU_FM_HK
write "Clearing FM File Info Page."
clear $SC_$CPU_FM_FILE_INFO
write "Clearing FM Dir List File Page."
clear $SC_$CPU_FM_DIR_LIST_FILE
write "Clearing FM Dir List Tlm Page."
clear $SC_$CPU_FM_DIR_LIST
write "Clearing FM Open File List Page."
clear $SC_$CPU_FM_OPEN_FILE_LIST
write "Clearing FM Free Space Table Page."
clear $SC_$CPU_FM_FREESPACE_TABLE
write "Clearing FM Free Space TLM Page."
clear $SC_$CPU_FM_FREESPACE_TLM
write "Clearing TST FM HK Page."
clear $SC_$CPU_TST_FM_HK
write ";*********************************************************************"
write "; End procedure $sc_$cpu_fm_clearallpages "
write ";*********************************************************************"
ENDPROC
|
<reponame>ministryofjustice/prison-api
INSERT INTO OFFENDER_SENTENCE_ADJUSTS (OFFENDER_SENTENCE_ADJUST_ID, SENTENCE_ADJUST_CODE, ADJUST_DATE, ADJUST_DAYS, ADJUST_STATUS, OFFENDER_BOOK_ID, SENTENCE_SEQ, ACTIVE_FLAG, COMMENT_TEXT) VALUES (-7, 'RSR', TO_DATE('2017-09-01', 'YYYY-MM-DD'), 4, null, -1, 1, 'Y', 'Some Comment Text');
INSERT INTO OFFENDER_SENTENCE_ADJUSTS (OFFENDER_SENTENCE_ADJUST_ID, SENTENCE_ADJUST_CODE, ADJUST_DATE, ADJUST_DAYS, ADJUST_STATUS, OFFENDER_BOOK_ID, SENTENCE_SEQ, ACTIVE_FLAG) VALUES (-8, 'RSR', TO_DATE('2017-09-01', 'YYYY-MM-DD'), 4, null, -6, 1, 'Y');
INSERT INTO OFFENDER_SENTENCE_ADJUSTS (OFFENDER_SENTENCE_ADJUST_ID, SENTENCE_ADJUST_CODE, ADJUST_DATE, ADJUST_DAYS, ADJUST_STATUS, OFFENDER_BOOK_ID, SENTENCE_SEQ, ACTIVE_FLAG) VALUES (-9, 'RST', TO_DATE('2017-09-01', 'YYYY-MM-DD'), 9, null, -6, 1, 'N');
INSERT INTO OFFENDER_SENTENCE_ADJUSTS (OFFENDER_SENTENCE_ADJUST_ID, SENTENCE_ADJUST_CODE, ADJUST_DATE, ADJUST_DAYS, ADJUST_STATUS, OFFENDER_BOOK_ID, SENTENCE_SEQ, ACTIVE_FLAG) VALUES (-10, 'RX', TO_DATE('2017-09-01', 'YYYY-MM-DD'), 13, null, -6, 1, 'Y');
INSERT INTO OFFENDER_SENTENCE_ADJUSTS (OFFENDER_SENTENCE_ADJUST_ID, SENTENCE_ADJUST_CODE, ADJUST_DATE, ADJUST_DAYS, ADJUST_STATUS, OFFENDER_BOOK_ID, SENTENCE_SEQ, ACTIVE_FLAG) VALUES (-11, 'S240A', TO_DATE('2017-09-01', 'YYYY-MM-DD'), 1, null, -6, 1, 'N');
INSERT INTO OFFENDER_SENTENCE_ADJUSTS (OFFENDER_SENTENCE_ADJUST_ID, SENTENCE_ADJUST_CODE, ADJUST_DATE, ADJUST_DAYS, ADJUST_STATUS, OFFENDER_BOOK_ID, SENTENCE_SEQ, ACTIVE_FLAG) VALUES (-12, 'UR', TO_DATE('2017-09-01', 'YYYY-MM-DD'), 2, null, -6, 1, 'Y');
INSERT INTO OFFENDER_SENTENCE_ADJUSTS (OFFENDER_SENTENCE_ADJUST_ID, SENTENCE_ADJUST_CODE, ADJUST_DATE, ADJUST_DAYS, ADJUST_STATUS, OFFENDER_BOOK_ID, SENTENCE_SEQ, ACTIVE_FLAG) VALUES (-13, 'RX', TO_DATE('2017-09-01', 'YYYY-MM-DD'), 7, null, -6, 1, 'Y');
|
<reponame>MarcoDoes/CDSPOrgs
-- phpMyAdmin SQL Dump
-- version 5.1.1
-- https://www.phpmyadmin.net/
--
-- Host: localhost
-- Generation Time: Jun 13, 2021 at 06:07 AM
-- Server version: 10.4.17-MariaDB
-- PHP Version: 8.0.2
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- Database: `db_evoting`
--
-- --------------------------------------------------------
--
-- Table structure for table `jpia_votes`
--
CREATE TABLE `jpia_votes` (
`id` int(255) NOT NULL,
`studentno` varchar(250) NOT NULL,
`firstname` varchar(250) NOT NULL,
`lastname` varchar(250) NOT NULL,
`voteforjpiapres` varchar(250) NOT NULL,
`voteforjpiavpres` varchar(250) NOT NULL,
`voteforjpiasec` varchar(250) NOT NULL,
`voteforjpiatres` varchar(250) NOT NULL,
`voteforjpiaaud` varchar(250) NOT NULL,
`voteforjpiaacadch` varchar(250) NOT NULL,
`voteforjpianonacadch` varchar(250) NOT NULL,
`voteforjpia1st` varchar(250) NOT NULL,
`voteforjpia2nd` varchar(250) NOT NULL,
`voteforjpia3rd` varchar(250) NOT NULL,
`voteforjpia4th` varchar(250) NOT NULL,
`voteforjpia5th` varchar(250) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Indexes for dumped tables
--
--
-- Indexes for table `jpia_votes`
--
ALTER TABLE `jpia_votes`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `jpia_votes`
--
ALTER TABLE `jpia_votes`
MODIFY `id` int(255) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=21;
COMMIT;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
create table foo(a int primary key, b int, c int);
insert into foo values (generate_series(1,10000), generate_series(1,10000), generate_series(1,10000));
create index concurrently on foo(b);
create index concurrently on foo(c);
vacuum full foo;
\d foo
vacuum full foo;
\d foo
vacuum full foo;
\d foo
vacuum full foo;
\d foo
vacuum full foo;
\d foo
vacuum full foo;
\d foo
vacuum full foo;
\d foo
vacuum full foo;
\d foo
vacuum full foo;
\d foo
vacuum full foo;
\d foo
vacuum full foo;
\d foo
vacuum full foo;
\d foo
vacuum full foo;
\d foo
vacuum full foo;
\d foo
vacuum full foo;
\d foo
vacuum full foo;
\d foo
vacuum full foo;
\d foo
vacuum full foo;
\d foo
vacuum full foo;
\d foo
vacuum full foo;
\d foo
vacuum full foo;
\d foo
vacuum full foo;
\d foo
vacuum full foo;
\d foo
drop table foo;
|
<filename>seeds.sql
USE emp_trackerDB;
INSERT INTO department (name) VALUES ("Marketing");
INSERT INTO department (name) VALUES ("Engineering");
INSERT INTO roles (title, department_id) VALUES ("Manager", 1);
INSERT INTO roles (title, department_id) VALUES ("Manager", 2);
INSERT INTO roles (title, department_id) VALUES ("Employee", 1);
INSERT INTO roles (title, department_id) VALUES ("Employee", 2);
INSERT INTO roles (title, department_id) VALUES ("Developer", 2);
INSERT INTO roles (title, department_id) VALUES ("Designer", 1);
INSERT INTO managers (first_name, last_name) VALUES ("Rachel", "Wheldon");
INSERT INTO managers (first_name, last_name) VALUES ("Ivy", "Prue");
INSERT INTO employees (first_name, last_name, role_id, department_id, manager_id) VALUES ("Amber", "Robertson", 6, 1, 1);
INSERT INTO employees (first_name, last_name, role_id, department_id, manager_id) VALUES ("Inbar", "Shuker", 5, 2, 2);
INSERT INTO employees (first_name, last_name, role_id, department_id, manager_id) VALUES ("Alice", "Wonder", 5, 2, 2);
INSERT INTO employees (first_name, last_name, role_id, department_id, manager_id) VALUES ("Krystal", "Cox", 5, 2, 2);
INSERT INTO employees (first_name, last_name, role_id, department_id, manager_id) VALUES ("Tami", "Martinez", 6, 1, 1);
SELECT * FROM department;
SELECT * FROM roles;
SELECT * FROM managers;
SELECT * FROM employees;
|
<reponame>aslanvaroqua/playing-with-play
# Messages schema
# --- !Ups
CREATE TABLE (
id SERIAL PRIMARY KEY,
user_id INTEGER,
weight INTEGER,
height INTEGER,
age INTEGER,
hairColor varchar(255)
);
INSERT INTO Bodies (body) Values(1,150,170,23,"Blonde");
INSERT INTO Bodies (body) Values(2,150,170,23,"Black");
# --- !Downs
DROP TABLE Bodies;
|
--Adicionando Alunos a tabela ALUNOS--
INSERT INTO ALUNO(IDUSUARIO,NOME,EMAIL,CELULAR,RA)
VALUES(1,'<NAME>','<EMAIL>','9234131243','1501375');
INSERT INTO ALUNO(IDUSUARIO,NOME,EMAIL,CELULAR,RA)
VALUES(2,'<NAME>','<EMAIL>','912344321','1602440');
INSERT INTO ALUNO(IDUSUARIO,NOME,EMAIL,CELULAR,RA)
VALUES(3,'<NAME>','<EMAIL>','987655687','1602396');
INSERT INTO ALUNO(IDUSUARIO,NOME,EMAIL,CELULAR,RA)
VALUES(4,'<NAME>','<EMAIL>','912346321','1701777');
INSERT INTO ALUNO(IDUSUARIO,NOME,EMAIL,CELULAR,RA)
VALUES(5,'<NAME>','<EMAIL>','948639721','1602405');
INSERT INTO ALUNO(IDUSUARIO,NOME,EMAIL,CELULAR,RA)
VALUES(6,'<NAME>','<EMAIL>','964823197','1602128');
INSERT INTO ALUNO(IDUSUARIO,NOME,EMAIL,CELULAR,RA)
VALUES(7,'<NAME>','<EMAIL>','908974231','1602230');
INSERT INTO ALUNO(IDUSUARIO,NOME,EMAIL,CELULAR,RA)
VALUES(8,'<NAME>','<EMAIL>','980974231','1601249');
INSERT INTO ALUNO(IDUSUARIO,NOME,EMAIL,CELULAR,RA)
VALUES(9,'<NAME>','<EMAIL>','910897423','1701595');
INSERT INTO ALUNO(IDUSUARIO,NOME,EMAIL,CELULAR,RA)
VALUES(10,'<NAME>','<EMAIL>','908974123','1601576');
INSERT INTO ALUNO(IDUSUARIO,NOME,EMAIL,CELULAR,RA)
VALUES(11,'<NAME>','<EMAIL>','934289743','1501650');
INSERT INTO ALUNO(IDUSUARIO,NOME,EMAIL,CELULAR,RA)
VALUES(12,'<NAME>','<EMAIL>','9417829034','1702249');
INSERT INTO ALUNO(IDUSUARIO,NOME,EMAIL,CELULAR,RA)
VALUES(13,'<NAME>','<EMAIL>','981234897','1702525');
INSERT INTO ALUNO(IDUSUARIO,NOME,EMAIL,CELULAR,RA)
VALUES(14,'<NAME>','<EMAIL>','946123879','1501148');
INSERT INTO ALUNO(IDUSUARIO,NOME,EMAIL,CELULAR,RA)
VALUES(15,'<NAME>','<EMAIL>','941632789','1502810');
INSERT INTO ALUNO(IDUSUARIO,NOME,EMAIL,CELULAR,RA)
VALUES(16,'<NAME>','<EMAIL>','919283476','1602770');
INSERT INTO ALUNO(IDUSUARIO,NOME,EMAIL,CELULAR,RA)
VALUES(17,'<NAME>','<EMAIL>','917234908','1602697');
INSERT INTO ALUNO(IDUSUARIO,NOME,EMAIL,CELULAR,RA)
VALUES(18,'<NAME>','<EMAIL>','946182379','1602173');
INSERT INTO ALUNO(IDUSUARIO,NOME,EMAIL,CELULAR,RA)
VALUES(19,'<NAME>','<EMAIL>','912346789','1601713');
INSERT INTO ALUNO(IDUSUARIO,NOME,EMAIL,CELULAR,RA)
VALUES(20,'<NAME>','<EMAIL>','946897231','1602326');
INSERT INTO ALUNO(IDUSUARIO,NOME,EMAIL,CELULAR,RA)
VALUES(21,'<NAME>','<EMAIL>','919283476','1501257');
INSERT INTO ALUNO(IDUSUARIO,NOME,EMAIL,CELULAR,RA)
VALUES(22,'<NAME>A','<EMAIL>','971234897','1501464');
INSERT INTO ALUNO(IDUSUARIO,NOME,EMAIL,CELULAR,RA)
VALUES(23,'<NAME>','<EMAIL>','942634897','1502465');
INSERT INTO ALUNO(IDUSUARIO,NOME,EMAIL,CELULAR,RA)
VALUES(24,'RODRIGO REGINA GOMES','<EMAIL>','912346789','1502808');
INSERT INTO ALUNO(IDUSUARIO,NOME,EMAIL,CELULAR,RA)
VALUES(25,'<NAME>','<EMAIL>','923419686','1601975');
INSERT INTO ALUNO(IDUSUARIO,NOME,EMAIL,CELULAR,RA)
VALUES(26,'<NAME>','<EMAIL>','943621789','1702530');
INSERT INTO ALUNO(IDUSUARIO,NOME,EMAIL,CELULAR,RA)
VALUES(27,'<NAME>','<EMAIL>','942135687','1602305');
INSERT INTO ALUNO(IDUSUARIO,NOME,EMAIL,CELULAR,RA)
VALUES(28,'FABRICIO REGINA MACHADO','<EMAIL>','941236789','1701582');
INSERT INTO ALUNO(IDUSUARIO,NOME,EMAIL,CELULAR,RA)
VALUES(29,'<NAME>','<EMAIL>','9213467859','1501352');
INSERT INTO ALUNO(IDUSUARIO,NOME,EMAIL,CELULAR,RA)
VALUES(30,'<NAME>','<EMAIL>','941236897','1701910');
INSERT INTO ALUNO(IDUSUARIO,NOME,EMAIL,CELULAR,RA)
VALUES(31,'<NAME>','<EMAIL>','941236897','1701166');
INSERT INTO ALUNO(IDUSUARIO,NOME,EMAIL,CELULAR,RA)
VALUES(32,'<NAME>','<EMAIL>','941329867','1502850');
INSERT INTO ALUNO(IDUSUARIO,NOME,EMAIL,CELULAR,RA)
VALUES(33,'<NAME>','<EMAIL>','941237896','1602346');
INSERT INTO ALUNO(IDUSUARIO,NOME,EMAIL,CELULAR,RA)
VALUES(34,'<NAME>','<EMAIL>','941237896','1601418');
INSERT INTO ALUNO(IDUSUARIO,NOME,EMAIL,CELULAR,RA)
VALUES(35,'<NAME>','<EMAIL>','941237588','1702476');
INSERT INTO ALUNO(IDUSUARIO,NOME,EMAIL,CELULAR,RA)
VALUES(36,'<NAME>','<EMAIL>','941236879','1702619');
INSERT INTO ALUNO(IDUSUARIO,NOME,EMAIL,CELULAR,RA)
VALUES(37,'<NAME>','<EMAIL>','932714189','1502116');
INSERT INTO ALUNO(IDUSUARIO,NOME,EMAIL,CELULAR,RA)
VALUES(38,'<NAME>','<EMAIL>','942138976','1702648');
INSERT INTO ALUNO(IDUSUARIO,NOME,EMAIL,CELULAR,RA)
VALUES(39,'<NAME>','<EMAIL>','914237698','1702436');
INSERT INTO ALUNO(IDUSUARIO,NOME,EMAIL,CELULAR,RA)
VALUES(40,'<NAME>','<EMAIL>','998761234','1602388');
INSERT INTO ALUNO(IDUSUARIO,NOME,EMAIL,CELULAR,RA)
VALUES(41,'<NAME>','<EMAIL>','943215787','1701548');
INSERT INTO ALUNO(IDUSUARIO,NOME,EMAIL,CELULAR,RA)
VALUES(42,'<NAME>','<EMAIL>','942318957','1502514');
INSERT INTO ALUNO(IDUSUARIO,NOME,EMAIL,CELULAR,RA)
VALUES(43,'<NAME>','<EMAIL>','998761423','1601584');
INSERT INTO ALUNO(IDUSUARIO,NOME,EMAIL,CELULAR,RA)
VALUES(44,'<NAME>','<EMAIL>','941237967','1502845');
INSERT INTO ALUNO(IDUSUARIO,NOME,EMAIL,CELULAR,RA)
VALUES(45,'<NAME>','<EMAIL>','943278932','1601609');
INSERT INTO ALUNO(IDUSUARIO,NOME,EMAIL,CELULAR,RA)
VALUES(46,'<NAME>','<EMAIL>','912376893','1702717');
INSERT INTO ALUNO(IDUSUARIO,NOME,EMAIL,CELULAR,RA)
VALUES(47,'<NAME>','<EMAIL>','923167893','1602719');
INSERT INTO ALUNO(IDUSUARIO,NOME,EMAIL,CELULAR,RA)
VALUES(48,'<NAME>','<EMAIL>','934216789','1601963');
INSERT INTO ALUNO(IDUSUARIO,NOME,EMAIL,CELULAR,RA)
VALUES(49,'<NAME>','<EMAIL>','974367892','1602611');
INSERT INTO ALUNO(IDUSUARIO,NOME,EMAIL,CELULAR,RA)
VALUES(50,'<NAME>','<EMAIL>','978365892','1601449');
|
-- Register the initial streams and tables from the Kafka topics
CREATE STREAM PAYMENTS (
PAYMENT_ID INTEGER KEY,
CUSTID INTEGER,
ACCOUNTID INTEGER,
AMOUNT INTEGER,
BANK VARCHAR
) WITH (
kafka_topic='payments',
value_format='json',
PARTITIONS=6
);
create stream aml_status (
PAYMENT_ID INTEGER,
BANK VARCHAR,
STATUS VARCHAR
) with (
kafka_topic='aml_status',
value_format='json',
PARTITIONS=6
);
create stream funds_status (
PAYMENT_ID INTEGER,
REASON_CODE VARCHAR,
STATUS VARCHAR
) with (
kafka_topic='funds_status',
value_format='json',
PARTITIONS=6
);
create table customers (
ID INTEGER PRIMARY KEY,
FIRST_NAME VARCHAR,
LAST_NAME VARCHAR,
EMAIL VARCHAR,
GENDER VARCHAR,
STATUS360 VARCHAR
) WITH (
kafka_topic='customers',
value_format='JSON',
PARTITIONS=6
);
-- Enrich Payments stream with Customers table
CREATE STREAM enriched_payments AS SELECT
p.payment_id as payment_id,
p.custid as customer_id,
p.accountid,
p.amount,
p.bank,
c.first_name,
c.last_name,
c.email,
c.status360
from payments p left join customers c on p.custid = c.id;
-- Combine the status streams
CREATE STREAM payment_statuses AS SELECT
payment_id,
status,
'AML' as source_system
FROM aml_status;
INSERT INTO payment_statuses SELECT payment_id, status, 'FUNDS' as source_system FROM funds_status;
-- Combine payment and status events in 1 hour window. Why we need a timing window for stream-stream join?
CREATE STREAM payments_with_status AS SELECT
ep.payment_id as payment_id,
ep.accountid,
ep.amount,
ep.bank,
ep.first_name,
ep.last_name,
ep.email,
ep.status360,
ps.status,
ps.source_system
FROM enriched_payments ep LEFT JOIN payment_statuses ps WITHIN 1 HOUR ON ep.payment_id = ps.payment_id ;
-- Aggregate data to the final table
CREATE TABLE payments_final AS SELECT
payment_id,
histogram(status) as status_counts,
collect_list('{ "system" : "' + source_system + '", "status" : "' + STATUS + '"}') as service_status_list
FROM payments_with_status
WHERE status is not null
GROUP BY payment_id;
|
<gh_stars>0
-- phpMyAdmin SQL Dump
-- version 5.0.4
-- https://www.phpmyadmin.net/
--
-- 主机: localhost
-- 生成日期: 2021-01-19 16:43:36
-- 服务器版本: 5.5.62-log
-- PHP 版本: 7.2.33
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- 数据库: `test`
--
-- --------------------------------------------------------
--
-- 表的结构 `admi_log`
--
CREATE TABLE `admi_log` (
`id` int(100) NOT NULL,
`m` varchar(100) CHARACTER SET utf8mb4 NOT NULL,
`c` varchar(100) CHARACTER SET utf8mb4 NOT NULL,
`a` varchar(100) CHARACTER SET utf8mb4 NOT NULL,
`querystring` varchar(255) NOT NULL,
`userid` int(100) NOT NULL,
`username` varchar(100) CHARACTER SET utf8mb4 NOT NULL,
`ip` int(100) NOT NULL,
`time` varchar(100) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- 转存表中的数据 `admi_log`
--
INSERT INTO `admi_log` (`id`, `m`, `c`, `a`, `querystring`, `userid`, `username`, `ip`, `time`) VALUES
(1, 'admin', 'Bguser', 'list', '', 1, 'sead', 1931204454, '1610966068'),
(2, 'admin', 'Stuser', 'list', '', 1, 'sead', 1931204454, '1610966069'),
(3, 'admin', 'Bguser', 'list', '', 1, 'sead', 1931204454, '1610966120'),
(4, 'admin', 'Stuser', 'list', '', 1, 'sead', 1931204454, '1610966127'),
(5, 'admin', 'Bguser', 'list', '', 1, 'sead', 1931204454, '1610966128'),
(6, 'admin', 'Bguser', 'list', '', 1, 'sead', 1931204454, '1610966560'),
(7, 'admin', 'Bguser', 'list', '', 1, 'sead', 1931204454, '1610966625'),
(8, 'admin', 'Bguser', 'info', '', 1, 'sead', 1931204454, '1610966629'),
(9, 'admin', 'Bguser', 'list', '', 1, 'sead', 1931204454, '1610966647'),
(10, 'admin', 'Bguser', 'info', '', 1, 'sead', 1931204454, '1610966649'),
(11, 'admin', 'Bguser', 'list', '', 1, 'sead', 1931204454, '1610967305'),
(12, 'admin', 'Bguser', 'list', '', 1, 'sead', 1931204454, '1610967357'),
(13, 'admin', 'Bguser', 'list', '', 1, 'sead', 1931204454, '1610967397'),
(14, 'admin', 'Bguser', 'list', '', 1, 'sead', 1931204454, '1610967410'),
(15, 'admin', 'Bguser', 'list', '', 1, 'sead', 1931204454, '1610967597'),
(16, 'admin', 'Stuser', 'list', '', 1, 'sead', 1931204454, '1610967602'),
(17, 'admin', 'Bguser', 'list', '', 1, 'sead', 1931204454, '1610967607'),
(18, 'admin', 'Bguser', 'list', '', 1, 'sead', 1931204454, '1610967644'),
(19, 'admin', 'Stuser', 'list', '', 1, 'sead', 1931204454, '1610967645'),
(20, 'admin', 'Stuser', 'list', '', 1, 'sead', 1931204454, '1610967664'),
(21, 'admin', 'Stuser', 'list', '', 1, 'sead', 1931204454, '1610967666'),
(22, 'admin', 'Bguser', 'list', '', 1, 'sead', 1931204454, '1610967667'),
(23, 'admin', 'Bguser', 'list', '', 1, 'sead', 1931204454, '1610967706'),
(24, 'admin', 'Bguser', 'info', '', 1, 'sead', 1931204454, '1610967723'),
(25, 'admin', 'Bguser', 'list', '?findbyname=', 1, 'sead', 1931204454, '1610967727'),
(26, 'admin', 'Bguser', 'list', '?findbyname=', 1, 'sead', 1931204454, '1610967728'),
(27, 'admin', 'Bguser', 'list', '?findbyname=', 1, 'sead', 1931204454, '1610967739'),
(28, 'admin', 'Bguser', 'list', '?findbyname=', 1, 'sead', 1931204454, '1610967752'),
(29, 'admin', 'Bguser', 'list', '?findbyname=', 1, 'sead', 1931204454, '1610967886'),
(30, 'admin', 'Bguser', 'list', '?findbyname=', 1, 'sead', 1931204454, '1610968018'),
(31, 'admin', 'Bguser', 'list', '?findbyname=', 1, 'sead', 1931204454, '1610968034'),
(32, 'admin', 'Bguser', 'info', '', 1, 'sead', 1931204454, '1610968035'),
(33, 'admin', 'Bguser', 'info', '', 1, 'sead', 1931204454, '1610968039'),
(34, 'admin', 'Bguser', 'list', '?findbyname=', 1, 'sead', 1931204454, '1610968200'),
(35, 'admin', 'Bguser', 'list', '?findbyname=', 1, 'sead', 1931204454, '1610968202'),
(36, 'admin', 'Bguser', 'list', '?findbyname=', 1, 'sead', 1931204454, '1610968221'),
(37, 'admin', 'Bguser', 'info', '', 1, 'sead', 1931204454, '1610968223'),
(38, 'admin', 'Bguser', 'list', '?findbyname=', 1, 'sead', 1931204454, '1610968364'),
(39, 'admin', 'Bguser', 'list', '?findbyname=', 1, 'sead', 1931204454, '1610968408'),
(40, 'admin', 'Bguser', 'list', '?findbyname=', 1, 'sead', 1931204454, '1610968465'),
(41, 'admin', 'Bguser', 'list', '?findbyname=', 1, 'sead', 1931204454, '1610968572'),
(42, 'admin', 'Bguser', 'list', '?findbyname=', 1, 'sead', 1931204454, '1610968728'),
(43, 'admin', 'Bguser', 'select', '', 1, 'sead', 1931204454, '1610968729'),
(44, 'admin', 'Bguser', 'list', '?findbyname=', 1, 'sead', 1931204454, '1610968793'),
(45, 'admin', 'Bguser', 'select', '', 1, 'sead', 1931204454, '1610968794'),
(46, 'admin', 'Bguser', 'list', '?findbyname=', 1, 'sead', 1931204454, '1610968817'),
(47, 'admin', 'Bguser', 'select', '', 1, 'sead', 1931204454, '1610968818'),
(48, 'admin', 'Bguser', 'select', '?findbyname=', 1, 'sead', 1931204454, '1610968823'),
(49, 'admin', 'Bguser', 'list', '?findbyname=', 1, 'sead', 1931204454, '1610968863'),
(50, 'admin', 'Bguser', 'select', '', 1, 'sead', 1931204454, '1610968865'),
(51, 'admin', 'Bguser', 'list', '?findbyname=', 1, 'sead', 1931204454, '1610968867'),
(52, 'admin', 'Bguser', 'select', '', 1, 'sead', 1931204454, '1610968868'),
(53, 'admin', 'Bguser', 'list', '?findbyname=', 1, 'sead', 1931204454, '1610968883'),
(54, 'admin', 'Bguser', 'select', '', 1, 'sead', 1931204454, '1610968884'),
(55, 'admin', 'Bguser', 'list', '', 1, 'sead', 1931204454, '1610968892'),
(56, 'admin', 'Bguser', 'select', '', 1, 'sead', 1931204454, '1610968893'),
(57, 'admin', 'Bguser', 'select', '', 1, 'sead', 1931204454, '1610968895'),
(58, 'admin', 'Bguser', 'list', '', 1, 'sead', 1931204454, '1610968898'),
(59, 'admin', 'Bguser', 'list', '', 1, 'sead', 1931204454, '1610968924'),
(60, 'admin', 'Bguser', 'select', '', 1, 'sead', 1931204454, '1610968925'),
(61, 'admin', 'Bguser', 'select', '?findbyname=', 1, 'sead', 1931204454, '1610968930'),
(62, 'admin', 'Bguser', 'select', '?findbyname=', 1, 'sead', 1931204454, '1610968931'),
(63, 'admin', 'Bguser', 'select', '', 1, 'sead', 1931204454, '1610969020'),
(64, 'admin', 'Bguser', 'select', '?findbyname=', 1, 'sead', 1931204454, '1610969024'),
(65, 'admin', 'Bguser', 'list', '', 1, 'sead', 1931204454, '1610969043'),
(66, 'admin', 'Bguser', 'select', '', 1, 'sead', 1931204454, '1610969044'),
(67, 'admin', 'Bguser', 'list', '', 1, 'sead', 1931204454, '1610969054'),
(68, 'admin', 'Bguser', 'select', '', 1, 'sead', 1931204454, '1610969055'),
(69, 'admin', 'Bguser', 'list', '', 1, 'sead', 1931204454, '1610969063'),
(70, 'admin', 'Bguser', 'select', '', 1, 'sead', 1931204454, '1610969063'),
(71, 'admin', 'Bguser', 'select', '?findbyname=', 1, 'sead', 1931204454, '1610969209'),
(72, 'admin', 'Bguser', 'select', '?findbyname=', 1, 'sead', 1931204454, '1610969209'),
(73, 'admin', 'Bguser', 'select', '?findbyname=', 1, 'sead', 1931204454, '1610969210'),
(74, 'admin', 'Bguser', 'select', '?findbyname=', 1, 'sead', 1931204454, '1610969211'),
(75, 'admin', 'Bguser', 'list', '', 1, 'sead', 1931204454, '1610970255'),
(76, 'admin', 'Bguser', 'select', '', 1, 'sead', 1931204454, '1610970256'),
(77, 'admin', 'Bguser', 'select', '?username=sead', 1, 'sead', 1931204454, '1610970260'),
(78, 'admin', 'Bguser', 'select', '?username=', 1, 'sead', 1931204454, '1610970261'),
(79, 'admin', 'Bguser', 'select', '?username=', 1, 'sead', 1931204454, '1610970262'),
(80, 'admin', 'Bguser', 'select', '?username=', 1, 'sead', 1931204454, '1610970262'),
(81, 'admin', 'Bguser', 'select', '?username=sead', 1, 'sead', 1931204454, '1610970296'),
(82, 'admin', 'Bguser', 'list', '', 1, 'sead', 1931204454, '1610970439'),
(83, 'admin', 'Bguser', 'select', '', 1, 'sead', 1931204454, '1610970440'),
(84, 'admin', 'Bguser', 'list', '', 1, 'sead', 1931204454, '1610970478'),
(85, 'admin', 'Bguser', 'select', '', 1, 'sead', 1931204454, '1610970478'),
(86, 'admin', 'Bguser', 'list', '', 1, 'sead', 1931204454, '1610970549'),
(87, 'admin', 'Bguser', 'select', '', 1, 'sead', 1931204454, '1610970550'),
(88, 'admin', 'Bguser', 'select', '?username=', 1, 'sead', 1931204454, '1610970552'),
(89, 'admin', 'Bguser', 'info', '', 1, 'sead', 1931204454, '1610970647'),
(90, 'admin', 'Bguser', 'dee_edit', '?void=1', 1, 'sead', 1931204454, '1610970652'),
(91, 'admin', 'Bguser', 'list', '', 1, 'sead', 1931204454, '1610970705'),
(92, 'admin', 'Bguser', 'select', '', 1, 'sead', 1931204454, '1610970705'),
(93, 'admin', 'Bguser', 'select', '', 1, 'sead', 1931204454, '1610970713'),
(94, 'admin', 'Bguser', 'list', '', 1, 'sead', 1931204454, '1610970839'),
(95, 'admin', 'Bguser', 'select', '', 1, 'sead', 1931204454, '1610970840'),
(96, 'admin', 'Bguser', 'list', '', 1, 'sead', 1931204454, '1610970846'),
(97, 'admin', 'Bguser', 'select', '', 1, 'sead', 1931204454, '1610970847'),
(98, 'admin', 'Bguser', 'select', '', 1, 'sead', 1931204454, '1610970853'),
(99, 'admin', 'Bguser', 'list', '', 1, 'sead', 1931204454, '1610971009'),
(100, 'admin', 'Bguser', 'select', '', 1, 'sead', 1931204454, '1610971010'),
(101, 'admin', 'Bguser', 'list', '', 1, 'sead', 1931204454, '1610971048'),
(102, 'admin', 'Bguser', 'select', '', 1, 'sead', 1931204454, '1610971049'),
(103, 'admin', 'Bguser', 'select', '', 1, 'sead', 1931204454, '1610971054'),
(104, 'admin', 'Bguser', 'list', '', 1, 'sead', 1931204454, '1610971070'),
(105, 'admin', 'Bguser', 'select', '', 1, 'sead', 1931204454, '1610971071'),
(106, 'admin', 'Bguser', 'list', '', 1, 'sead', 1931204454, '1610971075'),
(107, 'admin', 'Bguser', 'list', '', 1, 'sead', 1931204454, '1610971087'),
(108, 'admin', 'Bguser', 'select', '', 1, 'sead', 1931204454, '1610971087'),
(109, 'admin', 'Bguser', 'sresult', '?username=sd', 1, 'sead', 1931204454, '1610971089'),
(110, 'admin', 'Bguser', 'list', '', 1, 'sead', 1931204454, '1610971891'),
(111, 'admin', 'Bguser', 'select', '', 1, 'sead', 1931204454, '1610971891'),
(112, 'admin', 'Bguser', 'sresult', '?username=sead', 1, 'sead', 1931204454, '1610971895'),
(113, 'admin', 'Bguser', 'select', '', 1, 'sead', 1931204454, '1610971928'),
(114, 'admin', 'Bguser', 'dee_edit', '?void=1', 1, 'sead', 1931204454, '1610971932'),
(115, 'admin', 'Bguser', 'select', '', 1, 'sead', 1931204454, '1610972044'),
(116, 'admin', 'Bguser', 'list', '', 1, 'sead', 1931204454, '1610972124'),
(117, 'admin', 'Bguser', 'select', '', 1, 'sead', 1931204454, '1610972125'),
(118, 'admin', 'Bguser', 'sresult', '?username=sead', 1, 'sead', 1931204454, '1610972128'),
(119, 'admin', 'Bguser', 'list', '', 1, 'sead', 1931204454, '1610972320'),
(120, 'admin', 'Bguser', 'select', '', 1, 'sead', 1931204454, '1610972322'),
(121, 'admin', 'Bguser', 'sresult', '?username=sead', 1, 'sead', 1931204454, '1610972325'),
(122, 'admin', 'Bguser', 'list', '', 1, 'sead', 1931204454, '1610972340'),
(123, 'admin', 'Bguser', 'select', '', 1, 'sead', 1931204454, '1610972341'),
(124, 'admin', 'Bguser', 'sresult', '?username=sead', 1, 'sead', 1931204454, '1610972344'),
(125, 'admin', 'Bguser', 'select', '', 1, 'sead', 1931204454, '1610972385'),
(126, 'admin', 'Bguser', 'sresult', '?username=sead', 1, 'sead', 1931204454, '1610972388'),
(127, 'admin', 'Bguser', 'list', '', 1, 'sead', 1931204454, '1610972404'),
(128, 'admin', 'Bguser', 'select', '', 1, 'sead', 1931204454, '1610972405'),
(129, 'admin', 'Bguser', 'sresult', '?username=sead', 1, 'sead', 1931204454, '1610972408'),
(130, 'admin', 'Bguser', 'list', '', 1, 'sead', 1931204454, '1610972593'),
(131, 'admin', 'Bguser', 'select', '', 1, 'sead', 1931204454, '1610972594'),
(132, 'admin', 'Bguser', 'sresult', '?username=sead', 1, 'sead', 1931204454, '1610972597'),
(133, 'admin', 'Bguser', 'list', '', 1, 'sead', 1931204454, '1610972660'),
(134, 'admin', 'Bguser', 'select', '', 1, 'sead', 1931204454, '1610972661'),
(135, 'admin', 'Bguser', 'sresult', '?username=sead', 1, 'sead', 1931204454, '1610972663'),
(136, 'admin', 'Bguser', 'select', '', 1, 'sead', 1931204454, '1610972674'),
(137, 'admin', 'Bguser', 'list', '', 1, 'sead', 1931204454, '1610972675'),
(138, 'admin', 'Bguser', 'select', '', 1, 'sead', 1931204454, '1610972717'),
(139, 'admin', 'Bguser', 'sresult', '?username=mema', 1, 'sead', 1931204454, '1610972721'),
(140, 'admin', 'Bguser', 'list', '', 1, 'sead', 1931204454, '1610972731'),
(141, 'admin', 'Bguser', 'select', '', 1, 'sead', 1931204454, '1610972732'),
(142, 'admin', 'Bguser', 'sresult', '?username=orma', 1, 'sead', 1931204454, '1610972736'),
(143, 'admin', 'Bguser', 'list', '', 1, 'sead', 1931204454, '1610972760'),
(144, 'admin', 'Bguser', 'select', '', 1, 'sead', 1931204454, '1610972760'),
(145, 'admin', 'Bguser', 'sresult', '?username=sead', 1, 'sead', 1931204454, '1610972763'),
(146, 'admin', 'Bguser', 'list', '', 1, 'sead', 1931204454, '1610972797'),
(147, 'admin', 'Bguser', 'list', '', 1, 'sead', 1931204454, '1610972797'),
(148, 'admin', 'Bguser', 'select', '', 1, 'sead', 1931204454, '1610972798'),
(149, 'admin', 'Bguser', 'sresult', '?username=sead', 1, 'sead', 1931204454, '1610972800'),
(150, 'admin', 'Bguser', 'list', '', 1, 'sead', 1931204454, '1610972856'),
(151, 'admin', 'Bguser', 'select', '', 1, 'sead', 1931204454, '1610972857'),
(152, 'admin', 'Bguser', 'sresult', '?username=sead', 1, 'sead', 1931204454, '1610972861'),
(153, 'admin', 'Bguser', 'list', '', 1, 'sead', 1931204454, '1610972875'),
(154, 'admin', 'Bguser', 'select', '', 1, 'sead', 1931204454, '1610972876'),
(155, 'admin', 'Bguser', 'sresult', '?username=sead', 1, 'sead', 1931204454, '1610972879'),
(156, 'admin', 'Bguser', 'list', '', 1, 'sead', 1931204454, '1610972890'),
(157, 'admin', 'Bguser', 'select', '', 1, 'sead', 1931204454, '1610972891'),
(158, 'admin', 'Bguser', 'sresult', '?username=sead', 1, 'sead', 1931204454, '1610972894'),
(159, 'admin', 'Bguser', 'list', '', 1, 'sead', 1931204454, '1610972903'),
(160, 'admin', 'Bguser', 'select', '', 1, 'sead', 1931204454, '1610972904'),
(161, 'admin', 'Bguser', 'sresult', '?username=sead', 1, 'sead', 1931204454, '1610972906'),
(162, 'admin', 'Bguser', 'list', '', 1, 'sead', 1931204454, '1610972950'),
(163, 'admin', 'Bguser', 'select', '', 1, 'sead', 1931204454, '1610972951'),
(164, 'admin', 'Bguser', 'sresult', '?username=sead', 1, 'sead', 1931204454, '1610972953'),
(165, 'admin', 'Bguser', 'list', '', 1, 'sead', 1931204454, '1610972991'),
(166, 'admin', 'Bguser', 'select', '', 1, 'sead', 1931204454, '1610972992'),
(167, 'admin', 'Bguser', 'sresult', '?username=sead', 1, 'sead', 1931204454, '1610972994'),
(168, 'admin', 'Bguser', 'list', '', 1, 'sead', 1931204454, '1610973025'),
(169, 'admin', 'Bguser', 'select', '', 1, 'sead', 1931204454, '1610973026'),
(170, 'admin', 'Bguser', 'sresult', '?username=sead', 1, 'sead', 1931204454, '1610973029'),
(171, 'admin', 'Bguser', 'list', '', 1, 'sead', 1931204454, '1610973033'),
(172, 'admin', 'Bguser', 'select', '', 1, 'sead', 1931204454, '1610973034'),
(173, 'admin', 'Bguser', 'sresult', '?username=sead', 1, 'sead', 1931204454, '1610973036'),
(174, 'admin', 'Bguser', 'list', '', 1, 'sead', 1931204454, '1610973047'),
(175, 'admin', 'Bguser', 'select', '', 1, 'sead', 1931204454, '1610973048'),
(176, 'admin', 'Bguser', 'sresult', '?username=sead', 1, 'sead', 1931204454, '1610973050'),
(177, 'admin', 'Bguser', 'list', '', 1, 'sead', 1931204454, '1610973070'),
(178, 'admin', 'Bguser', 'select', '', 1, 'sead', 1931204454, '1610973071'),
(179, 'admin', 'Bguser', 'sresult', '?username=sead', 1, 'sead', 1931204454, '1610973073'),
(180, 'admin', 'Bguser', 'list', '', 1, 'sead', 1931204454, '1610973096'),
(181, 'admin', 'Bguser', 'select', '', 1, 'sead', 1931204454, '1610973097'),
(182, 'admin', 'Bguser', 'sresult', '?username=sead', 1, 'sead', 1931204454, '1610973099'),
(183, 'admin', 'Bguser', 'list', '', 1, 'sead', 1931204454, '1610973109'),
(184, 'admin', 'Bguser', 'select', '', 1, 'sead', 1931204454, '1610973110'),
(185, 'admin', 'Bguser', 'sresult', '?username=sead', 1, 'sead', 1931204454, '1610973112'),
(186, 'admin', 'Bguser', 'list', '', 1, 'sead', 1931204454, '1610973173'),
(187, 'admin', 'Bguser', 'select', '', 1, 'sead', 1931204454, '1610973173'),
(188, 'admin', 'Bguser', 'sresult', '?username=sead', 1, 'sead', 1931204454, '1610973175'),
(189, 'admin', 'Bguser', 'select', '', 1, 'sead', 1931204454, '1610973194'),
(190, 'admin', 'Bguser', 'sresult', '?username=sead', 1, 'sead', 1931204454, '1610973196'),
(191, 'admin', 'Bguser', 'list', '', 1, 'sead', 1931204454, '1610973276'),
(192, 'admin', 'Bguser', 'select', '', 1, 'sead', 1931204454, '1610973277'),
(193, 'admin', 'Bguser', 'sresult', '?username=sead', 1, 'sead', 1931204454, '1610973281'),
(194, 'admin', 'Bguser', 'list', '', 1, 'sead', 1931204454, '1610973294'),
(195, 'admin', 'Bguser', 'select', '', 1, 'sead', 1931204454, '1610973295'),
(196, 'admin', 'Bguser', 'sresult', '?username=sead', 1, 'sead', 1931204454, '1610973297'),
(197, 'admin', 'Bguser', 'list', '', 1, 'sead', 1931204454, '1610973337'),
(198, 'admin', 'Bguser', 'select', '', 1, 'sead', 1931204454, '1610973338'),
(199, 'admin', 'Bguser', 'sresult', '?username=sead', 1, 'sead', 1931204454, '1610973340'),
(200, 'admin', 'Bguser', 'list', '', 1, 'sead', 1931204454, '1610973370'),
(201, 'admin', 'Bguser', 'select', '', 1, 'sead', 1931204454, '1610973371'),
(202, 'admin', 'Bguser', 'sresult', '?username=sead', 1, 'sead', 1931204454, '1610973373'),
(203, 'admin', 'Bguser', 'list', '', 1, 'sead', 1931204454, '1610973381'),
(204, 'admin', 'Bguser', 'select', '', 1, 'sead', 1931204454, '1610973381'),
(205, 'admin', 'Bguser', 'sresult', '?username=sead', 1, 'sead', 1931204454, '1610973385'),
(206, 'admin', 'Bguser', 'select', '', 1, 'sead', 1931204454, '1610973411'),
(207, 'admin', 'Bguser', 'sresult', '?username=sead', 1, 'sead', 1931204454, '1610973412'),
(208, 'admin', 'Bguser', 'list', '', 1, 'sead', 1931204454, '1610973422'),
(209, 'admin', 'Bguser', 'select', '', 1, 'sead', 1931204454, '1610973423'),
(210, 'admin', 'Bguser', 'sresult', '?username=sead', 1, 'sead', 1931204454, '1610973425'),
(211, 'admin', 'Bguser', 'list', '', 1, 'sead', 1931204454, '1610973446'),
(212, 'admin', 'Bguser', 'select', '', 1, 'sead', 1931204454, '1610973447'),
(213, 'admin', 'Bguser', 'sresult', '?username=sead', 1, 'sead', 1931204454, '1610973450'),
(214, 'admin', 'Bguser', 'list', '', 1, 'sead', 1931204454, '1610973470'),
(215, 'admin', 'Bguser', 'select', '', 1, 'sead', 1931204454, '1610973471'),
(216, 'admin', 'Bguser', 'sresult', '?username=sead', 1, 'sead', 1931204454, '1610973473'),
(217, 'admin', 'Bguser', 'list', '', 1, 'sead', 1931204454, '1610973512'),
(218, 'admin', 'Bguser', 'select', '', 1, 'sead', 1931204454, '1610973513'),
(219, 'admin', 'Bguser', 'sresult', '?username=sead', 1, 'sead', 1931204454, '1610973516'),
(220, 'admin', 'Bguser', 'list', '', 1, 'sead', 1931204454, '1610973553'),
(221, 'admin', 'Bguser', 'select', '', 1, 'sead', 1931204454, '1610973554'),
(222, 'admin', 'Bguser', 'sresult', '?username=sead', 1, 'sead', 1931204454, '1610973557'),
(223, 'admin', 'Bguser', 'list', '', 1, 'sead', 1931204454, '1610973590'),
(224, 'admin', 'Bguser', 'select', '', 1, 'sead', 1931204454, '1610973591'),
(225, 'admin', 'Bguser', 'sresult', '?username=sead', 1, 'sead', 1931204454, '1610973593'),
(226, 'admin', 'Stuser', 'list', '', 1, 'sead', 1931204454, '1610974134'),
(227, 'admin', 'Stuser', 'list', '', 1, 'sead', 1931204454, '1610974376'),
(228, 'admin', 'Stuser', 'list', '', 1, 'sead', 1931204454, '1610974520'),
(229, 'admin', 'Stuser', 'select', '', 1, 'sead', 1931204454, '1610974522'),
(230, 'admin', 'Stuser', 'list', '', 1, 'sead', 1931204454, '1610974547'),
(231, 'admin', 'Stuser', 'select', '', 1, 'sead', 1931204454, '1610974548'),
(232, 'admin', 'Stuser', 'sresult', '?username=ll', 1, 'sead', 1931204454, '1610974550'),
(233, 'admin', 'Stuser', 'list', '', 1, 'sead', 1931204454, '1610974581'),
(234, 'admin', 'Stuser', 'select', '', 1, 'sead', 1931204454, '1610974582'),
(235, 'admin', 'Stuser', 'sresult', '?username=ll', 1, 'sead', 1931204454, '1610974584'),
(236, 'admin', 'Stuser', 'list', '', 1, 'sead', 1931204454, '1610974638'),
(237, 'admin', 'Stuser', 'select', '', 1, 'sead', 1931204454, '1610974638'),
(238, 'admin', 'Stuser', 'sresult', '?username=ls', 1, 'sead', 1931204454, '1610974641'),
(239, 'admin', 'Menu', 'list', '', 1, 'sead', 1931204454, '1610974703'),
(240, 'admin', 'Menu', 'list', '', 1, 'sead', 1931204454, '1610974704'),
(241, 'admin', 'Menu', 'list', '', 1, 'sead', 1931204454, '1610974705'),
(242, 'admin', 'Menu', 'list', '', 1, 'sead', 1931204454, '1610974727'),
(243, 'admin', 'Menu', 'list', '', 1, 'sead', 1931204454, '1610974733'),
(244, 'admin', 'Menu', 'list', '', 1, 'sead', 1931204454, '1610974922'),
(245, 'admin', 'Menu', 'list', '', 1, 'sead', 1931204454, '1610974923'),
(246, 'admin', 'Menu', 'list', '', 1, 'sead', 1931204454, '1610974956'),
(247, 'admin', 'Menu', 'list', '', 1, 'sead', 1931204454, '1610975062'),
(248, 'admin', 'Menu', 'select', '', 1, 'sead', 1931204454, '1610975063'),
(249, 'admin', 'Menu', 'select', '', 1, 'sead', 1931204454, '1610975068'),
(250, 'admin', 'Menu', 'select', '', 1, 'sead', 1931204454, '1610975113'),
(251, 'admin', 'Menu', 'sresult', '?role_id=1', 1, 'sead', 1931204454, '1610975115'),
(252, 'admin', 'Menu', 'select', '', 1, 'sead', 1931204454, '1610975122'),
(253, 'admin', 'Menu', 'sresult', '?role_id=1', 1, 'sead', 1931204454, '1610975124'),
(254, 'admin', 'Menu', 'list', '', 1, 'sead', 1931204454, '1610975160'),
(255, 'admin', 'Menu', 'select', '', 1, 'sead', 1931204454, '1610975161'),
(256, 'admin', 'Menu', 'sresult', '?role_id=1', 1, 'sead', 1931204454, '1610975163'),
(257, 'admin', 'Menu', 'list', '', 1, 'sead', 1931204454, '1610975216'),
(258, 'admin', 'Menu', 'select', '', 1, 'sead', 1931204454, '1610975217'),
(259, 'admin', 'Menu', 'sresult', '?rule_id=1', 1, 'sead', 1931204454, '1610975220'),
(260, 'admin', 'Rule', 'list', '', 1, 'sead', 1931204454, '1610975229'),
(261, 'admin', 'Rule', 'list', '', 1, 'sead', 1931204454, '1610975241'),
(262, 'admin', 'Rule', 'info', '', 1, 'sead', 1931204454, '1610975915'),
(263, 'admin', 'Rule', 'list', '', 1, 'sead', 1931204454, '1610976342'),
(264, 'admin', 'Rule', 'list', '', 1, 'sead', 1931204454, '1610976460'),
(265, 'admin', 'Rule', 'select', '', 1, 'sead', 1931204454, '1610976464'),
(266, 'admin', 'Rule', 'sresult', '?role_id=1', 1, 'sead', 1931204454, '1610976466'),
(267, 'admin', 'Menu', 'list', '', 1, 'sead', 1931204454, '1610976472'),
(268, 'admin', 'Menu', 'list', '', 1, 'sead', 1931204454, '1610976475'),
(269, 'admin', 'Menu', 'list', '', 1, 'sead', 1931204454, '1610976481'),
(270, 'admin', 'Dormanage', 'list', '', 2, 'mema', 1931204454, '1610976919'),
(271, 'admin', 'Dormanage', 'list', '', 2, 'mema', 1931204454, '1610977306'),
(272, 'admin', 'Dormanage', 'select', '', 2, 'mema', 1931204454, '1610977307'),
(273, 'admin', 'Dormanage', 'sresult', '?goods_id=1', 2, 'mema', 1931204454, '1610977309'),
(274, 'admin', 'Cout', 'list', '', 3, 'orma', 1931204454, '1610977520'),
(275, 'admin', 'Cout', 'list', '', 3, 'orma', 1931204454, '1610977555'),
(276, 'admin', 'Cout', 'select', '', 3, 'orma', 1931204454, '1610977559'),
(277, 'admin', 'Cout', 'sresult', '?order_id=202101171610892198801081', 3, 'orma', 1931204454, '1610977562'),
(278, 'admin', 'Cout', 'list', '', 3, 'orma', 1931204454, '1610977572'),
(279, 'admin', 'Cout', 'select', '', 3, 'orma', 1931204454, '1610977573'),
(280, 'admin', 'Cout', 'sresult', '?order_id=202101171610892198801081', 3, 'orma', 1931204454, '1610977575'),
(281, 'admin', 'Bguser', 'list', '', 1, 'sead', 1931205729, '1610982817'),
(282, 'admin', 'Bguser', 'info', '', 1, 'sead', 1931205729, '1610982865'),
(283, 'admin', 'Bguser', 'add', '?user_id=4&username=dfdf&passwd=<PASSWORD>&role_id=4&status=1', 1, 'sead', 1931205729, '1610982907'),
(284, 'admin', 'Bguser', 'list', '', 1, 'sead', 1931205729, '1610982909'),
(285, 'admin', 'Bguser', 'list', '', 1, 'sead', 1931205729, '1610982965'),
(286, 'admin', 'Bguser', 'dee_edit', '?void=4', 1, 'sead', 1931205729, '1610982967'),
(287, 'admin', 'Bguser', 'dee_edit', '?void=4', 1, 'sead', 1931205729, '1610982974'),
(288, 'admin', 'Bguser', 'do_dee_edit', '?user_id=4&username=ttm&passwd=<PASSWORD>&role_id=3&lastloginip=0&lastlogintime=0&status=1', 1, 'sead', 1931205729, '1610983014'),
(289, 'admin', 'Bguser', 'list', '', 1, 'sead', 1931205729, '1610983015'),
(290, 'admin', 'Bguser', 'delete', '', 1, 'sead', 1931205729, '1610983052'),
(291, 'admin', 'Bguser', 'list', '', 1, 'sead', 1931205729, '1610983055'),
(292, 'admin', 'Bguser', 'select', '', 1, 'sead', 1931205729, '1610983526'),
(293, 'admin', 'Bguser', 'sresult', '?username=sead', 1, 'sead', 1931205729, '1610983576'),
(294, 'admin', 'Menu', 'list', '', 1, 'sead', 1931205729, '1610984356'),
(295, 'admin', 'Menu', 'select', '', 1, 'sead', 1931205729, '1610984358'),
(296, 'admin', 'Menu', 'sresult', '?rule_id=1', 1, 'sead', 1931205729, '1610984374'),
(297, 'admin', 'Menu', 'list', '', 1, 'sead', 1931205729, '1610984453'),
(298, 'admin', 'Menu', 'select', '', 1, 'sead', 1931205729, '1610984454'),
(299, 'admin', 'Menu', 'sresult', '?rule_id=1', 1, 'sead', 1931205729, '1610984456'),
(300, 'admin', 'Menu', 'list', '', 1, 'sead', 1931205729, '1610984481'),
(301, 'admin', 'Menu', 'select', '', 1, 'sead', 1931205729, '1610984481'),
(302, 'admin', 'Menu', 'sresult', '?rule_id=1', 1, 'sead', 1931205729, '1610984483'),
(303, 'admin', 'Menu', 'select', '', 1, 'sead', 1931205729, '1610984509'),
(304, 'admin', 'Menu', 'select', '', 1, 'sead', 1931205729, '1610984557'),
(305, 'admin', 'Menu', 'info', '', 1, 'sead', 1931205729, '1610984561'),
(306, 'admin', 'Menu', 'add', '?rule_id=67&parentid=0&name=%E7%BC%96%E8%BE%91%E6%93%8D%E4%BD%9C&icon=erer34&c=menu&a=yolo&display=1&listorder=0', 1, 'sead', 1931205729, '1610984645'),
(307, 'admin', 'Menu', 'list', '', 1, 'sead', 1931205729, '1610984647'),
(308, 'admin', 'Menu', 'select', '', 1, 'sead', 1931205729, '1610984700'),
(309, 'admin', 'Menu', 'dee_edit', '?void=67', 1, 'sead', 1931205729, '1610984704'),
(310, 'admin', 'Menu', 'do_dee_edit', '?rule_id=67&parentid=1&name=%E7%BC%96%E8%BE%91%E6%93%8D%E4%BD%9C&icon=erer34&c=menu&a=yolo&display=1&listorder=0', 1, 'sead', 1931205729, '1610984721'),
(311, 'admin', 'Menu', 'list', '', 1, 'sead', 1931205729, '1610984722'),
(312, 'admin', 'Menu', 'list', '', 1, 'sead', 1931205729, '1610984725'),
(313, 'admin', 'Menu', 'delete', '', 1, 'sead', 1931205729, '1610984773'),
(314, 'admin', 'Menu', 'list', '', 1, 'sead', 1931205729, '1610984776'),
(315, 'admin', 'Rule', 'list', '', 1, 'sead', 1931205729, '1610985315'),
(316, 'admin', 'Rule', 'select', '', 1, 'sead', 1931205729, '1610985560'),
(317, 'admin', 'Rule', 'sresult', '?role_id=2', 1, 'sead', 1931205729, '1610985595'),
(318, 'admin', 'Rule', 'info', '', 1, 'sead', 1931205729, '1610985638'),
(319, 'admin', 'Rule', 'add', '?role_id=6&name=%E7%AE%A1%E7%90%86%E5%91%98&rules=78%2C90%2C56', 1, 'sead', 1931205729, '1610985697'),
(320, 'admin', 'Rule', 'list', '', 1, 'sead', 1931205729, '1610985699'),
(321, 'admin', 'Rule', 'dee_edit', '?void=6', 1, 'sead', 1931205729, '1610985730'),
(322, 'admin', 'Rule', 'do_dee_edit', '?role_id=6&name=%E7%AE%A1%E7%90%86%E5%91%98&rules=78%2C90%2C56%2C70', 1, 'sead', 1931205729, '1610985770'),
(323, 'admin', 'Rule', 'list', '', 1, 'sead', 1931205729, '1610985771'),
(324, 'admin', 'Rule', 'delete', '', 1, 'sead', 1931205729, '1610985849'),
(325, 'admin', 'Rule', 'list', '', 1, 'sead', 1931205729, '1610985852'),
(326, 'admin', 'Menu', 'list', '', 1, 'sead', 1931205729, '1610985853'),
(327, 'admin', 'Menu', 'list', '', 1, 'sead', 1931205729, '1610985856'),
(328, 'admin', 'Rule', 'list', '', 1, 'sead', 1931205729, '1610985856'),
(329, 'admin', 'Bguser', 'list', '', 1, 'sead', 1931205729, '1610985860'),
(330, 'admin', 'Bguser', 'info', '', 1, 'sead', 1931205729, '1610985878'),
(331, 'admin', 'Bguser', 'add', '?user_id=5&username=dfdf&passwd=<PASSWORD>&role_id=4&status=%E5%B1%B1%E4%B8%9C%E7%9C%81%E9%9D%92%E5%B2%9B%E5%B8%82', 1, 'sead', 1931205729, '1610985909'),
(332, 'admin', 'Bguser', 'list', '', 1, 'sead', 1931205729, '1610985913'),
(333, 'admin', 'Bguser', 'delete', '', 1, 'sead', 1931205729, '1610985917'),
(334, 'admin', 'Bguser', 'list', '', 1, 'sead', 1931205729, '1610985920'),
(335, 'admin', 'Bguser', 'info', '', 1, 'sead', 1931205729, '1610985921'),
(336, 'admin', 'Stuser', 'list', '', 1, 'sead', 1931205729, '1610985944'),
(337, 'admin', 'Stuser', 'list', '', 1, 'sead', 1931205729, '1610985945'),
(338, 'admin', 'Stuser', 'info', '', 1, 'sead', 1931205729, '1610985946'),
(339, 'admin', 'Stuser', 'add', '?user_id=5&username=rtrt&password=<PASSWORD>&local=%E5%B1%B1%E4%B8%9C%E7%9C%81%E9%9D%92%E5%B2%9B%E5%B8%82', 1, 'sead', 1931205729, '1610985977'),
(340, 'admin', 'Stuser', 'list', '', 1, 'sead', 1931205729, '1610985978'),
(341, 'admin', 'Stuser', 'dee_edit', '?void=5', 1, 'sead', 1931205729, '1610985998'),
(342, 'admin', 'Stuser', 'dee_edit', '?void=5', 1, 'sead', 1931205729, '1610986009'),
(343, 'admin', 'Stuser', 'do_dee_edit', '?user_id=5&username=rtrt&password=<PASSWORD>%3F&local=%E5%B1%B1%E4%B8%9C%E7%9C%81%E9%9D%92%E5%B2%9B%E5%B8%82', 1, 'sead', 1931205729, '1610986047'),
(344, 'admin', 'Stuser', 'list', '', 1, 'sead', 1931205729, '1610986049'),
(345, 'admin', 'Stuser', 'delete', '', 1, 'sead', 1931205729, '1610986068'),
(346, 'admin', 'Stuser', 'list', '', 1, 'sead', 1931205729, '1610986071'),
(347, 'admin', 'Stuser', 'info', '', 1, 'sead', 1931205729, '1610986100'),
(348, 'admin', 'Stuser', 'select', '', 1, 'sead', 1931205729, '1610986119'),
(349, 'admin', 'Stuser', 'sresult', '?username=ll', 1, 'sead', 1931205729, '1610986143'),
(350, 'admin', 'Stuser', 'list', '', 1, 'sead', 1931205729, '1610986296'),
(351, 'admin', 'Bguser', 'list', '', 1, 'sead', 1931205729, '1610986299'),
(352, 'admin', 'Bguser', 'list', '', 1, 'sead', 1931205729, '1610986299'),
(353, 'admin', 'Rule', 'list', '', 1, 'sead', 1931205729, '1610986300'),
(354, 'admin', 'Menu', 'list', '', 1, 'sead', 1931205729, '1610986300'),
(355, 'admin', 'Menu', 'list', '', 1, 'sead', 1931205729, '1610986301'),
(356, 'admin', 'Rule', 'list', '', 1, 'sead', 1931205729, '1610986302'),
(357, 'admin', 'Rule', 'delete', '', 1, 'sead', 1931205729, '1610986303'),
(358, 'admin', 'Rule', 'list', '', 1, 'sead', 1931205729, '1610986304'),
(359, 'admin', 'Dormanage', 'list', '', 2, 'mema', 1931204454, '1611017431'),
(360, 'admin', 'Dormanage', 'info', '', 2, 'mema', 1931204454, '1611017685'),
(361, 'admin', 'Dormanage', 'add', '?goods_id=2&goods_name=%E6%B4%97%E5%8F%91%E6%B0%B4&socket=100&price=77', 2, 'mema', 1931204454, '1611017705'),
(362, 'admin', 'Dormanage', 'list', '', 2, 'mema', 1931204454, '1611017710'),
(363, 'admin', 'Dormanage', 'delete', '', 2, 'mema', 1931204454, '1611017712'),
(364, 'admin', 'Dormanage', 'list', '', 2, 'mema', 1931204454, '1611017715'),
(365, 'admin', 'Dormanage', 'info', '', 2, 'mema', 1931204454, '1611017717'),
(366, 'admin', 'Dormanage', 'add', '?goods_id=2&goods_name=%E6%B4%97%E5%8F%91%E6%B0%B4&socket=100&price=77', 2, 'mema', 1931204454, '1611017729'),
(367, 'admin', 'Dormanage', 'list', '', 2, 'mema', 1931204454, '1611017738'),
(368, 'admin', 'Dormanage', 'dee_edit', '?void=2', 2, 'mema', 1931204454, '1611017753'),
(369, 'admin', 'Dormanage', 'do_dee_edit', '?goods_id=2&goods_name=%E6%B4%97%E5%8F%91%E6%B0%B4&socket=300&price=77', 2, 'mema', 1931204454, '1611017776'),
(370, 'admin', 'Dormanage', 'list', '', 2, 'mema', 1931204454, '1611017777'),
(371, 'admin', 'Dormanage', 'delete', '', 2, 'mema', 1931204454, '1611017802'),
(372, 'admin', 'Dormanage', 'list', '', 2, 'mema', 1931204454, '1611017806'),
(373, 'admin', 'Dormanage', 'select', '', 2, 'mema', 1931204454, '1611017865'),
(374, 'admin', 'Dormanage', 'sresult', '?goods_id=1', 2, 'mema', 1931204454, '1611017895'),
(375, 'admin', 'Dormanage', 'select', '', 2, 'mema', 1931204454, '1611018157'),
(376, 'admin', 'Cout', 'list', '', 3, 'orma', 1931204454, '1611018201'),
(377, 'admin', 'Cout', 'list', '', 3, 'orma', 1931204454, '1611018355'),
(378, 'admin', 'Cout', 'info', '', 3, 'orma', 1931204454, '1611018388'),
(379, 'admin', 'Cout', 'add', '?order_id=2021160452323434&username=gt&goods_id=6&price=34&create_time=2021-01-19+09%3A07%3A56', 3, 'orma', 1931204454, '1611018445'),
(380, 'admin', 'Cout', 'list', '', 3, 'orma', 1931204454, '1611018447'),
(381, 'admin', 'Cout', 'delete', '', 3, 'orma', 1931204454, '1611018466'),
(382, 'admin', 'Cout', 'list', '', 3, 'orma', 1931204454, '1611018469'),
(383, 'admin', 'Cout', 'info', '', 3, 'orma', 1931204454, '1611018470'),
(384, 'admin', 'Cout', 'add', '?order_id=202101181610956487171887&username=dff&goods_id=5&price=45&create_time=2021-01-19+09%3A08%3A67', 3, 'orma', 1931204454, '1611018499'),
(385, 'admin', 'Cout', 'info', '', 3, 'orma', 1931204454, '1611018503'),
(386, 'admin', 'Cout', 'info', '', 3, 'orma', 1931204454, '1611018509'),
(387, 'admin', 'Cout', 'add', '?order_id=202101181310956485671887&username=fg&goods_id=4&price=76&create_time=2021-01-19+09%3A08%3A34', 3, 'orma', 1931204454, '1611018543'),
(388, 'admin', 'Cout', 'list', '', 3, 'orma', 1931204454, '1611018544'),
(389, 'admin', 'Cout', 'dee_edit', '?void=202101181310956485671887', 3, 'orma', 1931204454, '1611018560'),
(390, 'admin', 'Cout', 'do_dee_edit', '?order_id=202101181310956485671887&username=fg&goods_id=4&price=98&create_time=2021-01-19', 3, 'orma', 1931204454, '1611018585'),
(391, 'admin', 'Cout', 'list', '', 3, 'orma', 1931204454, '1611018586'),
(392, 'admin', 'Cout', 'dee_edit', '?void=202101181310956485671887', 3, 'orma', 1931204454, '1611018604'),
(393, 'admin', 'Cout', 'do_dee_edit', '?order_id=202101181310956485671887&username=fg&goods_id=4&price=98&create_time=2021-01-19+09%3A08%3A34', 3, 'orma', 1931204454, '1611018707'),
(394, 'admin', 'Cout', 'list', '', 3, 'orma', 1931204454, '1611018708'),
(395, 'admin', 'Cout', 'delete', '', 3, 'orma', 1931204454, '1611018732'),
(396, 'admin', 'Cout', 'list', '', 3, 'orma', 1931204454, '1611018736'),
(397, 'admin', 'Cout', 'info', '', 3, 'orma', 1931204454, '1611018774'),
(398, 'admin', 'Cout', 'info', '', 3, 'orma', 1931204454, '1611018778'),
(399, 'admin', 'Cout', 'select', '', 3, 'orma', 1931204454, '1611018814'),
(400, 'admin', 'Cout', 'select', '', 3, 'orma', 1931204454, '1611018842'),
(401, 'admin', 'Cout', 'sresult', '?order_id=202101171610894165404200', 3, 'orma', 1931204454, '1611018856');
-- --------------------------------------------------------
--
-- 表的结构 `crm_role`
--
CREATE TABLE `crm_role` (
`id` int(200) NOT NULL,
`role_id` int(100) NOT NULL,
`name` varchar(100) NOT NULL,
`rules` varchar(200) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- 转存表中的数据 `crm_role`
--
INSERT INTO `crm_role` (`id`, `role_id`, `name`, `rules`) VALUES
(1, 1, '系统管理员', '1,4,5,6,12,13,14,15,16,17,18,19,20,21,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54'),
(2, 2, '商品管理员', '2,6,7,8,9,10,11,45,46,55,56'),
(3, 3, '订单管理员', '3,6,22,23,24,25,26,45,46,57,58');
-- --------------------------------------------------------
--
-- 表的结构 `crm_role_user`
--
CREATE TABLE `crm_role_user` (
`id` int(11) NOT NULL,
`user_id` int(32) NOT NULL,
`role_id` int(100) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- 转存表中的数据 `crm_role_user`
--
INSERT INTO `crm_role_user` (`id`, `user_id`, `role_id`) VALUES
(1, 1, 1),
(2, 2, 2),
(3, 3, 3);
-- --------------------------------------------------------
--
-- 表的结构 `customerlist`
--
CREATE TABLE `customerlist` (
`id` int(100) NOT NULL,
`user_id` int(100) UNSIGNED NOT NULL,
`username` varchar(100) NOT NULL,
`password` varchar(100) NOT NULL,
`local` varchar(100) CHARACTER SET utf8 NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- 转存表中的数据 `customerlist`
--
INSERT INTO `customerlist` (`id`, `user_id`, `username`, `password`, `local`) VALUES
(1, 1, 'll', '<PASSWORD>3ed211f724d766e41f3e8313', '北京市海淀区颐和园路5号'),
(2, 2, 'ls', '6c8bd725ca41b67ccc16c1d7e7ac89da', '北京市海淀区颐和园路6号'),
(3, 3, 'an', '0dee9c1094610d6060067a3759bc3716', '北京市大兴区金苑路25号'),
(4, 4, 'deg', '12fd072e58d901d8e7e103c863c6cfd4', '北京市大兴区金苑路27号');
-- --------------------------------------------------------
--
-- 表的结构 `customer_log`
--
CREATE TABLE `customer_log` (
`id` int(100) NOT NULL,
`username` varchar(100) NOT NULL,
`ip` varchar(100) NOT NULL,
`goods_id` int(100) NOT NULL,
`result` int(3) NOT NULL COMMENT '订单结果(0等待中,1秒杀失败,2秒杀成功)',
`errormessage` varchar(100) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- 转存表中的数据 `customer_log`
--
INSERT INTO `customer_log` (`id`, `username`, `ip`, `goods_id`, `result`, `errormessage`) VALUES
(1, 'll', '172.16.17.32', 1, 2, ''),
(2, 'an', '172.16.17.32', 1, 2, ''),
(3, 'deg', '172.16.17.32', 1, 1, '商品已被抢完'),
(4, 'ls', '172.16.17.32', 1, 1, '与go文件链接失败');
-- --------------------------------------------------------
--
-- 表的结构 `menu`
--
CREATE TABLE `menu` (
`id` int(100) NOT NULL,
`rule_id` int(100) NOT NULL,
`parentid` int(10) NOT NULL DEFAULT '0',
`name` varchar(40) CHARACTER SET utf8 NOT NULL,
`icon` varchar(20) CHARACTER SET utf8 DEFAULT NULL,
`c` varchar(20) DEFAULT NULL,
`a` varchar(20) DEFAULT NULL,
`display` int(1) NOT NULL DEFAULT '1' COMMENT '是否显示(1显示,2不显示)',
`listorder` int(10) NOT NULL DEFAULT '999'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- 转存表中的数据 `menu`
--
INSERT INTO `menu` (`id`, `rule_id`, `parentid`, `name`, `icon`, `c`, `a`, `display`, `listorder`) VALUES
(1, 1, 0, '用户管理', 'xe6a3', 'Sadmin', 'index', 1, 1),
(2, 2, 0, '商品管理', 'xe6a3', 'Dormanage', 'list', 1, 1),
(3, 3, 0, '订单管理', 'xe6a3', 'Cout', 'list', 1, 1),
(4, 4, 1, '后台用户', NULL, 'Bguser', 'list', 1, 2),
(5, 5, 1, '顾客', NULL, 'Stuser', 'list', 1, 2),
(6, 6, 0, '欢迎页面', 'xe761', 'Index', 'index', 1, 0),
(7, 7, 2, '编辑页面', NULL, 'Dormanage', 'dee_edit', 2, 0),
(8, 8, 2, '添加页面', NULL, 'Dormanage', 'info', 2, 0),
(9, 9, 2, '编辑保存', NULL, 'Dormanage', 'do_dee_edit', 2, 0),
(10, 10, 2, '添加保存', NULL, 'Dormanage', 'add', 2, 0),
(11, 11, 2, '删除', NULL, 'Dormanage', 'delete', 2, 0),
(12, 12, 4, '编辑页面', NULL, 'Bguser', 'dee_edit', 2, 0),
(13, 13, 4, '添加页面', NULL, 'Bguser', 'info', 2, 0),
(14, 14, 4, '编辑保存', NULL, 'Bguser', 'do_dee_edit', 2, 0),
(15, 15, 4, '添加保存', NULL, 'Bguser', 'add', 2, 0),
(16, 16, 4, '删除', NULL, 'Bguser', 'delete', 2, 0),
(17, 17, 5, '编辑页面', NULL, 'Stuser', 'dee_edit', 2, 0),
(18, 18, 5, '添加页面', NULL, 'Stuser', 'info', 2, 0),
(19, 19, 5, '编辑保存', NULL, 'Stuser', 'do_dee_edit', 2, 0),
(20, 20, 5, '添加保存', NULL, 'Stuser', 'add', 2, 0),
(21, 21, 5, '删除', NULL, 'Stuser', 'delete', 2, 0),
(22, 22, 3, '编辑页面', NULL, 'Cout', 'dee_edit', 2, 0),
(23, 23, 3, '添加页面', NULL, 'Cout', 'info', 2, 0),
(24, 24, 3, '编辑保存', NULL, 'Cout', 'do_dee_edit', 2, 0),
(25, 25, 3, '添加保存', NULL, 'Cout', 'add', 2, 0),
(26, 26, 3, '删除', NULL, 'Cout', 'delete', 2, 0),
(27, 27, 0, '日志管理', 'xe761', 'Log', 'list', 1, 1),
(28, 28, 27, '编辑页面', NULL, 'Log', 'dee_edit', 2, 0),
(29, 29, 27, '添加页面', NULL, 'Log', 'info', 2, 0),
(30, 30, 27, '编辑保存', NULL, 'Log', 'do_dee_edit', 2, 0),
(31, 31, 27, '添加保存', NULL, 'Log', 'add', 2, 0),
(32, 32, 27, '删除', NULL, 'Log', 'delete', 2, 0),
(33, 33, 0, '目录管理', 'xe761', 'Menu', 'list', 1, 1),
(34, 34, 33, '编辑页面', NULL, 'Menu', 'dee_edit', 2, 0),
(35, 35, 33, '添加页面', NULL, 'Menu', 'info', 2, 0),
(36, 36, 33, '编辑保存', NULL, 'Menu', 'do_dee_edit', 2, 0),
(37, 37, 33, '添加保存', NULL, 'Menu', 'add', 2, 0),
(38, 38, 33, '删除', NULL, 'Menu', 'delete', 2, 0),
(39, 39, 0, '角色权限管理', 'xe761', 'Rule', 'list', 1, 1),
(40, 40, 39, '编辑页面', NULL, 'Rule', 'dee_edit', 2, 0),
(41, 41, 39, '添加页面', NULL, 'Rule', 'info', 2, 0),
(42, 42, 39, '编辑保存', NULL, 'Rule', 'do_dee_edit', 2, 0),
(43, 43, 39, '添加保存', NULL, 'Rule', 'add', 2, 0),
(44, 44, 39, '删除', NULL, 'Rule', 'delete', 2, 0),
(45, 45, 0, '修改密码', NULL, 'Repassword', 'repasswd', 2, 0),
(46, 46, 0, '修改密码保存', NULL, 'Repassword', 're', 2, 0),
(47, 47, 4, '查找', NULL, 'Bguser', 'select', 2, 0),
(48, 48, 4, '查找结果', NULL, 'Bguser', 'sresult', 2, 0),
(49, 49, 5, '查找', NULL, 'Stuser', 'select', 2, 0),
(50, 50, 5, '查找结果', NULL, 'Stuser', 'sresult', 2, 0),
(51, 51, 33, '查找', NULL, 'Menu', 'select', 2, 0),
(52, 52, 33, '查找显示', NULL, 'Menu', 'sresult', 2, 0),
(53, 53, 39, '查找', NULL, 'Rule', 'select', 2, 0),
(54, 54, 39, '查找显示', NULL, 'Rule', 'sresult', 2, 0),
(55, 55, 2, '查找', NULL, 'Dormanage', 'select', 2, 0),
(56, 56, 2, '查找显示', NULL, 'Dormanage', 'sresult', 2, 0),
(57, 57, 3, '查找', NULL, 'Cout', 'select', 2, 0),
(58, 58, 3, '查找显示', NULL, 'Cout', 'sresult', 2, 0);
-- --------------------------------------------------------
--
-- 表的结构 `m_goods`
--
CREATE TABLE `m_goods` (
`id` int(100) NOT NULL,
`goods_id` int(100) NOT NULL,
`goods_name` varchar(100) NOT NULL,
`socket` int(100) NOT NULL,
`price` int(100) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- 转存表中的数据 `m_goods`
--
INSERT INTO `m_goods` (`id`, `goods_id`, `goods_name`, `socket`, `price`) VALUES
(1, 1, '洗衣液', 200, 88);
-- --------------------------------------------------------
--
-- 表的结构 `m_order`
--
CREATE TABLE `m_order` (
`id` int(100) NOT NULL,
`order_id` varchar(100) NOT NULL,
`username` varchar(100) NOT NULL,
`goods_id` int(100) NOT NULL,
`price` int(100) NOT NULL,
`create_time` varchar(100) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- 转存表中的数据 `m_order`
--
INSERT INTO `m_order` (`id`, `order_id`, `username`, `goods_id`, `price`, `create_time`) VALUES
(1, '202101171610894165404200', 'll', 1, 88, '2021-01-17 22:36:05'),
(2, '202101171610894165445456', 'ls', 1, 88, '2021-01-17 22:36:05'),
(3, '202101181610956364188081', 'deg', 1, 88, '2021-01-18 15:52:44'),
(4, '202101181610956487171887', 'an', 1, 88, '2021-01-18 15:54:47');
-- --------------------------------------------------------
--
-- 表的结构 `token`
--
CREATE TABLE `token` (
`id` int(100) NOT NULL,
`username` varchar(100) CHARACTER SET utf8mb4 NOT NULL,
`token` varchar(400) CHARACTER SET utf8mb4 NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- 转存表中的数据 `token`
--
INSERT INTO `token` (`id`, `username`, `token`) VALUES
(7, 'sead', '<PASSWORD>'),
(8, 'orma', '<PASSWORD>'),
(9, 'mema', '<PASSWORD>');
-- --------------------------------------------------------
--
-- 表的结构 `vipuser`
--
CREATE TABLE `vipuser` (
`id` int(11) NOT NULL,
`user_id` int(100) NOT NULL,
`username` varchar(100) CHARACTER SET utf16 NOT NULL,
`passwd` varchar(100) CHARACTER SET utf16 NOT NULL,
`lastloginip` int(10) NOT NULL DEFAULT '0',
`lastlogintime` int(10) UNSIGNED NOT NULL DEFAULT '0',
`status` int(10) NOT NULL DEFAULT '1' COMMENT '是否有效(1:有效;2无效)'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- 转存表中的数据 `vipuser`
--
INSERT INTO `vipuser` (`id`, `user_id`, `username`, `passwd`, `lastloginip`, `lastlogintime`, `status`) VALUES
(1, 1, 'sead', '<PASSWORD>', 1931205729, 1610982774, 1),
(2, 2, 'mema', '<PASSWORD>', 1931204454, 1611017426, 1),
(3, 3, 'orma', '2e866d3e89805d5f4184e29fad967199', 1931204454, 1611018197, 1);
--
-- 转储表的索引
--
--
-- 表的索引 `admi_log`
--
ALTER TABLE `admi_log`
ADD PRIMARY KEY (`id`);
--
-- 表的索引 `crm_role`
--
ALTER TABLE `crm_role`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `role_id` (`role_id`);
--
-- 表的索引 `crm_role_user`
--
ALTER TABLE `crm_role_user`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `user_id` (`user_id`);
--
-- 表的索引 `customerlist`
--
ALTER TABLE `customerlist`
ADD UNIQUE KEY `id` (`id`);
--
-- 表的索引 `customer_log`
--
ALTER TABLE `customer_log`
ADD PRIMARY KEY (`id`);
--
-- 表的索引 `menu`
--
ALTER TABLE `menu`
ADD PRIMARY KEY (`id`),
ADD KEY `listorder` (`listorder`),
ADD KEY `parentid` (`parentid`);
--
-- 表的索引 `m_goods`
--
ALTER TABLE `m_goods`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `goods_id` (`goods_id`);
--
-- 表的索引 `m_order`
--
ALTER TABLE `m_order`
ADD PRIMARY KEY (`id`);
--
-- 表的索引 `token`
--
ALTER TABLE `token`
ADD PRIMARY KEY (`id`);
--
-- 表的索引 `vipuser`
--
ALTER TABLE `vipuser`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `user_id` (`user_id`);
--
-- 在导出的表使用AUTO_INCREMENT
--
--
-- 使用表AUTO_INCREMENT `admi_log`
--
ALTER TABLE `admi_log`
MODIFY `id` int(100) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=402;
--
-- 使用表AUTO_INCREMENT `crm_role`
--
ALTER TABLE `crm_role`
MODIFY `id` int(200) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
--
-- 使用表AUTO_INCREMENT `crm_role_user`
--
ALTER TABLE `crm_role_user`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
--
-- 使用表AUTO_INCREMENT `customerlist`
--
ALTER TABLE `customerlist`
MODIFY `id` int(100) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
--
-- 使用表AUTO_INCREMENT `customer_log`
--
ALTER TABLE `customer_log`
MODIFY `id` int(100) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3460;
--
-- 使用表AUTO_INCREMENT `menu`
--
ALTER TABLE `menu`
MODIFY `id` int(100) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=60;
--
-- 使用表AUTO_INCREMENT `m_goods`
--
ALTER TABLE `m_goods`
MODIFY `id` int(100) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- 使用表AUTO_INCREMENT `m_order`
--
ALTER TABLE `m_order`
MODIFY `id` int(100) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=630;
--
-- 使用表AUTO_INCREMENT `token`
--
ALTER TABLE `token`
MODIFY `id` int(100) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10;
--
-- 使用表AUTO_INCREMENT `vipuser`
--
ALTER TABLE `vipuser`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
COMMIT;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.