sql
stringlengths 6
1.05M
|
|---|
INSERT INTO
ods."Attribute"
(
"AttributeName"
)
SELECT "AttributeName"
FROM (
SELECT 'S3DataFileBucketName' as "AttributeName"
UNION SELECT 'Prefix.DataFile' as "AttributeName"
UNION SELECT 'S3DataFile' as "AttributeName" -- Output/Input
UNION SELECT 'S3SchemaFileBucketName' as "AttributeName"
UNION SELECT 'Prefix.SchemaFile' as "AttributeName"
UNION SELECT 'S3SchemaFile' as "AttributeName" -- Output/Input
UNION SELECT 'S3RAWJsonSchemaFile' as "AttributeName"
UNION SELECT 'S3UniformJSONBucketName' as "AttributeName"
UNION SELECT 'Prefix.UniformJSONFile' as "AttributeName"
UNION SELECT 'Prefix.FlatJSONFile' as "AttributeName"
UNION SELECT 'JsonKeysToIgnore' as "AttributeName"
UNION SELECT 'S3UniformJSONFile' as "AttributeName" --Output/Input
UNION SELECT 'S3FlatJsonFile' as "AttributeName" --Output/Input
UNION SELECT 'Flat.#.JsonObjectName' as "AttributeName" --Output/Input
UNION SELECT 'Flat.#.JsonSchemaPath' as "AttributeName" --Output/Input
UNION SELECT 'S3CSVFilesBucketName' as "AttributeName"
UNION SELECT 'Prefix.CSVFile' as "AttributeName"
UNION SELECT 'S3CSVFile#' as "AttributeName" --Output/Input
UNION SELECT 'Prefix.StageSchemaFile' as "AttributeName"
UNION SELECT 'psql.PreStageTable.Prefix' as "AttributeName"
UNION SELECT 'psql.StageTable.Prefix' as "AttributeName"
UNION SELECT 'DBSchemaStage' as "AttributeName"
UNION SELECT 'S3CSVFile#.PreStageTableName' as "AttributeName"
UNION SELECT 'S3CSVFile#.JsonObjectName' as "AttributeName"
UNION SELECT 'S3CSVFile#.StageTableName' as "AttributeName"
UNION SELECT 'S3CSVFile#.JsonSchemaPath' as "AttributeName"
UNION SELECT 'S3CSVFile#.RowCount' as "AttributeName"
UNION SELECT 'Prefix.CleanSchemaFile' as "AttributeName"
UNION SELECT 'psql.CleanTable.Prefix' as "AttributeName"
UNION SELECT 'DBSchemaClean' as "AttributeName"
UNION SELECT 'BusinessKeyColumn' as "AttributeName"
UNION SELECT 'Dynamo.TableName' as "AttributeName"
UNION SELECT 'Dynamo.Table.Index' as "AttributeName"
UNION SELECT 'aws.region' as "AttributeName"
UNION SELECT 'LogLevel' as "AttributeName"
) as S
WHERE NOT EXISTS (SELECT 1 FROM ods."Attribute" AS T WHERE S."AttributeName" = T."AttributeName")
ORDER BY
"AttributeName";
-- SELECT * FROM ods."Attribute";
|
if not exists(select * from sys.database_principals where name = 'asa.sql.workload01') create user [asa.sql.workload01] from login [asa.sql.workload01]
if not exists(select * from sys.database_principals where name = 'asa.sql.workload02') create user [asa.sql.workload02] from login [asa.sql.workload02]
if not exists(select * from sys.database_principals where name = 'ceo') create user [CEO] without login;
execute sp_addrolemember 'db_datareader', 'asa.sql.workload01'
execute sp_addrolemember 'db_datareader', 'asa.sql.workload02'
execute sp_addrolemember 'db_datareader', 'CEO'
if not exists(select * from sys.database_principals where name = 'DataAnalystMiami') create user [DataAnalystMiami] without login
if not exists(select * from sys.database_principals where name = 'DataAnalystSanDiego')create user [DataAnalystSanDiego] without login
if not exists(select * from sys.schemas where name='wwi_mcw') EXEC('create schema [wwi_mcw] authorization [dbo]')
create master key
create table [wwi_mcw].[Product](ProductId SMALLINT NOT NULL,Seasonality TINYINT NOT NULL,Price DECIMAL(6,2),Profit DECIMAL(6,2))WITH(DISTRIBUTION = REPLICATE)
CREATE TABLE [wwi_mcw].[ProductQuantityForecast]([ProductId] [int] NOT NULL, [TransactionDate] [int] NOT NULL, [Hour] [int] NOT NULL,[TotalQuantity] [int] NOT NULL) WITH ( DISTRIBUTION = REPLICATE)
INSERT INTO [wwi_mcw].[ProductQuantityForecast] VALUES (100, 20201209, 10, 0)
INSERT INTO [wwi_mcw].[ProductQuantityForecast] VALUES (200, 20201209, 10, 0)
INSERT INTO [wwi_mcw].[ProductQuantityForecast] VALUES (300, 20201209, 10, 0)
INSERT INTO [wwi_mcw].[ProductQuantityForecast] VALUES (400, 20201209, 10, 0)
INSERT INTO [wwi_mcw].[ProductQuantityForecast] VALUES (500, 20201209, 10, 0)
INSERT INTO [wwi_mcw].[ProductQuantityForecast] VALUES (600, 20201209, 10, 0)
INSERT INTO [wwi_mcw].[ProductQuantityForecast] VALUES (700, 20201209, 10, 0)
INSERT INTO [wwi_mcw].[ProductQuantityForecast] VALUES (800, 20201209, 10, 0)
INSERT INTO [wwi_mcw].[ProductQuantityForecast] VALUES (900, 20201209, 10, 0)
INSERT INTO [wwi_mcw].[ProductQuantityForecast] VALUES (1000, 20201209, 10, 0)
INSERT INTO [wwi_mcw].[ProductQuantityForecast] VALUES (1100, 20201209, 10, 0)
INSERT INTO [wwi_mcw].[ProductQuantityForecast] VALUES (1200, 20201209, 10, 0)
|
<reponame>imrenagi/microservice-skeleton
CREATE TABLE IF NOT EXISTS accounts (
id BIGINT NOT NULL AUTO_INCREMENT PRIMARY KEY,
username VARCHAR(50) NOT NULL,
first_name VARCHAR(50) NOT NULL,
last_name VARCHAR(50),
email VARCHAR(255) NOT NULL,
address VARCHAR(255),
phone_number VARCHAR(20),
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
deleted_at TIMESTAMP NULL
);
CREATE UNIQUE INDEX email_index ON accounts (email);
CREATE UNIQUE INDEX username ON accounts(username);
|
CREATE TABLE [Application].[StateProvinces_Archive] (
[StateProvinceID] INT NOT NULL,
[StateProvinceCode] NVARCHAR (5) NOT NULL,
[StateProvinceName] NVARCHAR (50) NOT NULL,
[CountryID] INT NOT NULL,
[SalesTerritory] NVARCHAR (50) NOT NULL,
[Border] [sys].[geography] NULL,
[LatestRecordedPopulation] BIGINT NULL,
[LastEditedBy] INT NOT NULL,
[ValidFrom] DATETIME2 (7) NOT NULL,
[ValidTo] DATETIME2 (7) NOT NULL
) ON [USERDATA] TEXTIMAGE_ON [USERDATA];
GO
CREATE CLUSTERED INDEX [ix_StateProvinces_Archive]
ON [Application].[StateProvinces_Archive]([ValidTo] ASC, [ValidFrom] ASC)
ON [USERDATA];
|
--
-- Copyright (c) 2012 - 2020 Arvato Systems GmbH
--
-- 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.
--
use [Cambridge]
GO
ALTER SEQUENCE [dbo].[cm_idgen_0000_seq] RESTART WITH 200000;
ALTER SEQUENCE [dbo].[cm_idgen_0001_seq] RESTART WITH 200000;
ALTER SEQUENCE [dbo].[cm_idgen_0002_seq] RESTART WITH 200000;
ALTER SEQUENCE [dbo].[cm_idgen_0003_seq] RESTART WITH 200000;
ALTER SEQUENCE [dbo].[cm_idgen_0004_seq] RESTART WITH 200000;
ALTER SEQUENCE [dbo].[cm_idgen_0005_seq] RESTART WITH 200000;
ALTER SEQUENCE [dbo].[cm_idgen_0006_seq] RESTART WITH 200000;
ALTER SEQUENCE [dbo].[cm_idgen_0007_seq] RESTART WITH 200000;
ALTER SEQUENCE [dbo].[cm_idgen_0008_seq] RESTART WITH 200000;
ALTER SEQUENCE [dbo].[cm_idgen_0009_seq] RESTART WITH 200000;
ALTER SEQUENCE [dbo].[cm_idgen_0010_seq] RESTART WITH 500000;
ALTER SEQUENCE [dbo].[cm_idgen_0011_seq] RESTART WITH 500000;
ALTER SEQUENCE [dbo].[cm_idgen_0012_seq] RESTART WITH 500000;
ALTER SEQUENCE [dbo].[cm_idgen_0013_seq] RESTART WITH 500000;
ALTER SEQUENCE [dbo].[cm_idgen_0014_seq] RESTART WITH 500000;
ALTER SEQUENCE [dbo].[cm_idgen_0015_seq] RESTART WITH 500000;
ALTER SEQUENCE [dbo].[cm_idgen_0016_seq] RESTART WITH 500000;
ALTER SEQUENCE [dbo].[cm_idgen_0017_seq] RESTART WITH 500000;
ALTER SEQUENCE [dbo].[cm_idgen_0018_seq] RESTART WITH 500000;
ALTER SEQUENCE [dbo].[cm_idgen_0019_seq] RESTART WITH 500000;
ALTER SEQUENCE [dbo].[cm_idgen_0020_seq] RESTART WITH 500000;
ALTER SEQUENCE [dbo].[cm_idgen_0021_seq] RESTART WITH 500000;
ALTER SEQUENCE [dbo].[cm_idgen_0022_seq] RESTART WITH 500000;
ALTER SEQUENCE [dbo].[cm_idgen_0023_seq] RESTART WITH 500000;
ALTER SEQUENCE [dbo].[cm_idgen_0024_seq] RESTART WITH 500000;
ALTER SEQUENCE [dbo].[cm_idgen_0025_seq] RESTART WITH 500000;
ALTER SEQUENCE [dbo].[cm_idgen_0026_seq] RESTART WITH 500000;
ALTER SEQUENCE [dbo].[cm_idgen_0027_seq] RESTART WITH 500000;
ALTER SEQUENCE [dbo].[cm_idgen_0028_seq] RESTART WITH 500000;
ALTER SEQUENCE [dbo].[cm_idgen_0029_seq] RESTART WITH 500000;
ALTER SEQUENCE [dbo].[cm_idgen_0030_seq] RESTART WITH 500000;
ALTER SEQUENCE [dbo].[cm_idgen_0031_seq] RESTART WITH 500000;
ALTER SEQUENCE [dbo].[cm_idgen_0032_seq] RESTART WITH 500000;
ALTER SEQUENCE [dbo].[cm_idgen_0033_seq] RESTART WITH 500000;
ALTER SEQUENCE [dbo].[cm_idgen_0034_seq] RESTART WITH 500000;
ALTER SEQUENCE [dbo].[cm_idgen_0035_seq] RESTART WITH 500000;
ALTER SEQUENCE [dbo].[cm_idgen_0036_seq] RESTART WITH 500000;
ALTER SEQUENCE [dbo].[cm_idgen_0037_seq] RESTART WITH 500000;
ALTER SEQUENCE [dbo].[cm_idgen_0038_seq] RESTART WITH 500000;
ALTER SEQUENCE [dbo].[cm_idgen_0039_seq] RESTART WITH 500000;
ALTER SEQUENCE [dbo].[cm_idgen_0040_seq] RESTART WITH 1000000;
ALTER SEQUENCE [dbo].[cm_idgen_0041_seq] RESTART WITH 1000000;
ALTER SEQUENCE [dbo].[cm_idgen_0042_seq] RESTART WITH 1000000;
ALTER SEQUENCE [dbo].[cm_idgen_0043_seq] RESTART WITH 1000000;
ALTER SEQUENCE [dbo].[cm_idgen_0044_seq] RESTART WITH 1000000;
ALTER SEQUENCE [dbo].[cm_idgen_0045_seq] RESTART WITH 1000000;
ALTER SEQUENCE [dbo].[cm_idgen_0046_seq] RESTART WITH 1000000;
ALTER SEQUENCE [dbo].[cm_idgen_0047_seq] RESTART WITH 1000000;
ALTER SEQUENCE [dbo].[cm_idgen_0048_seq] RESTART WITH 1000000;
ALTER SEQUENCE [dbo].[cm_idgen_0049_seq] RESTART WITH 1000000;
ALTER SEQUENCE [dbo].[cm_idgen_0050_seq] RESTART WITH 1000000;
ALTER SEQUENCE [dbo].[cm_idgen_0051_seq] RESTART WITH 1000000;
ALTER SEQUENCE [dbo].[cm_idgen_0052_seq] RESTART WITH 1000000;
ALTER SEQUENCE [dbo].[cm_idgen_0053_seq] RESTART WITH 1000000;
ALTER SEQUENCE [dbo].[cm_idgen_0054_seq] RESTART WITH 1000000;
ALTER SEQUENCE [dbo].[cm_idgen_0055_seq] RESTART WITH 1000000;
ALTER SEQUENCE [dbo].[cm_idgen_0056_seq] RESTART WITH 1000000;
ALTER SEQUENCE [dbo].[cm_idgen_0057_seq] RESTART WITH 1000000;
ALTER SEQUENCE [dbo].[cm_idgen_0058_seq] RESTART WITH 1000000;
ALTER SEQUENCE [dbo].[cm_idgen_0059_seq] RESTART WITH 1000000;
ALTER SEQUENCE [dbo].[cm_idgen_0060_seq] RESTART WITH 1000000;
ALTER SEQUENCE [dbo].[cm_idgen_0061_seq] RESTART WITH 1000000;
ALTER SEQUENCE [dbo].[cm_idgen_0062_seq] RESTART WITH 1000000;
ALTER SEQUENCE [dbo].[cm_idgen_0063_seq] RESTART WITH 1000000;
ALTER SEQUENCE [dbo].[cm_idgen_0064_seq] RESTART WITH 1000000;
ALTER SEQUENCE [dbo].[cm_idgen_0065_seq] RESTART WITH 1000000;
ALTER SEQUENCE [dbo].[cm_idgen_0066_seq] RESTART WITH 1000000;
ALTER SEQUENCE [dbo].[cm_idgen_0067_seq] RESTART WITH 1000000;
ALTER SEQUENCE [dbo].[cm_idgen_0068_seq] RESTART WITH 1000000;
ALTER SEQUENCE [dbo].[cm_idgen_0069_seq] RESTART WITH 1000000;
ALTER SEQUENCE [dbo].[cm_idgen_0070_seq] RESTART WITH 1000000;
ALTER SEQUENCE [dbo].[cm_idgen_0071_seq] RESTART WITH 1000000;
ALTER SEQUENCE [dbo].[cm_idgen_0072_seq] RESTART WITH 1000000;
ALTER SEQUENCE [dbo].[cm_idgen_0073_seq] RESTART WITH 1000000;
ALTER SEQUENCE [dbo].[cm_idgen_0074_seq] RESTART WITH 1000000;
ALTER SEQUENCE [dbo].[cm_idgen_0075_seq] RESTART WITH 1000000;
ALTER SEQUENCE [dbo].[cm_idgen_0076_seq] RESTART WITH 1000000;
ALTER SEQUENCE [dbo].[cm_idgen_0077_seq] RESTART WITH 1000000;
ALTER SEQUENCE [dbo].[cm_idgen_0078_seq] RESTART WITH 1000000;
ALTER SEQUENCE [dbo].[cm_idgen_0079_seq] RESTART WITH 1000000;
ALTER SEQUENCE [dbo].[cm_idgen_0080_seq] RESTART WITH 1000000;
ALTER SEQUENCE [dbo].[cm_idgen_0081_seq] RESTART WITH 1000000;
ALTER SEQUENCE [dbo].[cm_idgen_0082_seq] RESTART WITH 1000000;
ALTER SEQUENCE [dbo].[cm_idgen_0083_seq] RESTART WITH 1000000;
ALTER SEQUENCE [dbo].[cm_idgen_0084_seq] RESTART WITH 1000000;
ALTER SEQUENCE [dbo].[cm_idgen_0085_seq] RESTART WITH 1000000;
ALTER SEQUENCE [dbo].[cm_idgen_0086_seq] RESTART WITH 1000000;
ALTER SEQUENCE [dbo].[cm_idgen_0087_seq] RESTART WITH 1000000;
ALTER SEQUENCE [dbo].[cm_idgen_0088_seq] RESTART WITH 1000000;
ALTER SEQUENCE [dbo].[cm_idgen_0089_seq] RESTART WITH 1000000;
ALTER SEQUENCE [dbo].[cm_idgen_0090_seq] RESTART WITH 1000000;
ALTER SEQUENCE [dbo].[cm_idgen_0091_seq] RESTART WITH 1000000;
ALTER SEQUENCE [dbo].[cm_idgen_0092_seq] RESTART WITH 1000000;
ALTER SEQUENCE [dbo].[cm_idgen_0093_seq] RESTART WITH 1000000;
ALTER SEQUENCE [dbo].[cm_idgen_0094_seq] RESTART WITH 1000000;
ALTER SEQUENCE [dbo].[cm_idgen_0095_seq] RESTART WITH 1000000;
ALTER SEQUENCE [dbo].[cm_idgen_0096_seq] RESTART WITH 1000000;
ALTER SEQUENCE [dbo].[cm_idgen_0097_seq] RESTART WITH 1000000;
ALTER SEQUENCE [dbo].[cm_idgen_0098_seq] RESTART WITH 1000000;
ALTER SEQUENCE [dbo].[cm_idgen_0099_seq] RESTART WITH 1000000;
|
<filename>sql/updates/0.13/7061_01_mangos_spell_proc_event.sql
ALTER TABLE db_version CHANGE COLUMN required_7060_01_mangos_spell_proc_event required_7061_01_mangos_spell_proc_event bit;
-- (47516) Grace (Rank 1)
DELETE FROM `spell_proc_event` WHERE `entry` IN (47516);
INSERT INTO `spell_proc_event` VALUES (47516, 0x00, 6, 0x00001800, 0x00010000, 0x00000000, 0x00000000, 0x00000000, 0.000000, 0.000000, 0);
-- (47517) Grace (Rank 2)
DELETE FROM `spell_proc_event` WHERE `entry` IN (47517);
INSERT INTO `spell_proc_event` VALUES (47517, 0x00, 6, 0x00001800, 0x00010000, 0x00000000, 0x00000000, 0x00000000, 0.000000, 0.000000, 0);
-- (14892) Inspiration (Rank 1)
DELETE FROM `spell_proc_event` WHERE `entry` IN (14892);
INSERT INTO `spell_proc_event` VALUES (14892, 0x00, 6, 0x10001E00, 0x00010004, 0x00000000, 0x00000000, 0x00000002, 0.000000, 0.000000, 0);
-- (15362) Inspiration (Rank 2)
DELETE FROM `spell_proc_event` WHERE `entry` IN (15362);
INSERT INTO `spell_proc_event` VALUES (15362, 0x00, 6, 0x10001E00, 0x00010004, 0x00000000, 0x00000000, 0x00000002, 0.000000, 0.000000, 0);
-- (15363) Inspiration (Rank 3)
DELETE FROM `spell_proc_event` WHERE `entry` IN (15363);
INSERT INTO `spell_proc_event` VALUES (15363, 0x00, 6, 0x10001E00, 0x00010004, 0x00000000, 0x00000000, 0x00000002, 0.000000, 0.000000, 0);
-- (47535) Rapture (Rank 1)
DELETE FROM `spell_proc_event` WHERE `entry` IN (47535);
INSERT INTO `spell_proc_event` VALUES (47535, 0x00, 6, 0x00001800, 0x00800000, 0x00000000, 0x00000000, 0x00010000, 0.000000, 0.000000, 0);
-- (47536) Rapture (Rank 2)
DELETE FROM `spell_proc_event` WHERE `entry` IN (47536);
INSERT INTO `spell_proc_event` VALUES (47536, 0x00, 6, 0x00001800, 0x00800000, 0x00000000, 0x00000000, 0x00010000, 0.000000, 0.000000, 0);
-- (47537) Rapture (Rank 3)
DELETE FROM `spell_proc_event` WHERE `entry` IN (47537);
INSERT INTO `spell_proc_event` VALUES (47537, 0x00, 6, 0x00001800, 0x00800000, 0x00000000, 0x00000000, 0x00010000, 0.000000, 0.000000, 0);
-- (47538) Rapture (Rank 4)
DELETE FROM `spell_proc_event` WHERE `entry` IN (47538);
INSERT INTO `spell_proc_event` VALUES (47538, 0x00, 6, 0x00001800, 0x00800000, 0x00000000, 0x00000000, 0x00010000, 0.000000, 0.000000, 0);
-- (47539) Rapture (Rank 5)
DELETE FROM `spell_proc_event` WHERE `entry` IN (47539);
INSERT INTO `spell_proc_event` VALUES (47539, 0x00, 6, 0x00001800, 0x00800000, 0x00000000, 0x00000000, 0x00010000, 0.000000, 0.000000, 0);
|
CREATE PROCEDURE [dbo].[spGetAllProduct]
AS
BEGIN
SET NOCOUNT ON;
SELECT Id, ProductName, [Description], RetailPrice, QuantityInStock, IsTaxable
FROM dbo.Product
ORDER BY ProductName
END
|
<reponame>JoelBondurant/RandomCodeSamples
DELIMITER $$
DROP FUNCTION IF EXISTS percentDifference$$
CREATE DEFINER=`root`@`localhost` FUNCTION `percentDifference`
(arg1 DOUBLE, arg2 DOUBLE) RETURNS double DETERMINISTIC
BEGIN
IF arg2 = 0.0 THEN
IF arg1 = 0.0 THEN
RETURN 0.0;
ELSE
RETURN NULL;
END IF;
END IF;
RETURN 100.0 * ((arg2 - arg1) / arg1);
END$$
DELIMITER ;
|
<gh_stars>1-10
/****** Object: Table [T_Organisms_Change_History] ******/
/****** RowCount: 681 ******/
SET IDENTITY_INSERT [T_Organisms_Change_History] ON
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (1,1,'deinococcus','Deinococcus radiodurans','D_radiodurans','Bacteria','Prokaryota','Deinococcus-Thermus','Deinococci','Deinococcales','Deinococcaceae','Deinococcus','radiodurans','R1',1,'1/1/2000 12:00:00 AM','Unknown')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (2,2,'yeast','Saccharomyces cerevisiae (Baker''s Yeast)','S_cerevisiae','Eukarya','Fungi','Ascomycota','Saccharomycetes','Saccharomycetales','Saccharomycetaceae','Saccharomyces','cerevisiae','',1,'1/1/2000 12:00:00 AM','Unknown')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (3,3,'e coli','Escherichia coli K-12','E_coli','Bacteria','Prokaryota','Proteobacteria','Gammaproteobacteria','Enterobacteriales','Enterobacteriaceae','Escherichia','coli','K-12',1,'1/1/2000 12:00:00 AM','Unknown')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (4,4,'shewanella','Shewanella Oneidensis MR-1','S_oneidensis','Bacteria','Prokaryota','Proteobacteria','Gammaproteobacteria','Alteromonadales','Shewanellaceae','Shewanella','oneidensis','MR-1',1,'1/1/2000 12:00:00 AM','Unknown')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (5,5,'mouse B16','Mus musculus (B16)','M_musculus_B16','Eukarya','Metazoa','Chordata','Mammalia','Rodentia','Muridae','Mus','musculus','B16',0,'1/1/2000 12:00:00 AM','Unknown')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (6,6,'mouse astrocyte','Mus musculus (Astrocyte)','M_musculus_astrocyte','Eukarya','Metazoa','Chordata','Mammalia','Rodentia','Muridae','Mus','musculus','astrocyte',0,'1/1/2000 12:00:00 AM','Unknown')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (7,7,'mouse cortical neuron','Mus musculus (White Mouse)','M_musculus_cortical_neuron','Eukarya','Metazoa','Chordata','Mammalia','Rodentia','Muridae','Mus','musculus','',0,'1/1/2000 12:00:00 AM','Unknown')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (8,8,'human','Homo Sapiens (Human)','H_sapiens','Eukarya','Metazoa','Chordata','Mammalia','Primates','Hominidae','Homo','sapiens','',1,'1/1/2000 12:00:00 AM','Unknown')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (9,9,'bovine','Bovine Serum Albumin','B_Taurus','Eukarya','Metazoa','Chordata','Mammalia','Artiodactyla','Bovidae','Bos','taurus','',1,'1/1/2000 12:00:00 AM','Unknown')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (10,10,'t palladium','Treponema pallidum','T_pallidum','Bacteria','Prokaryota','Spirochaetes','Spirochaetes','Spirochaetales','Spirochaetaceae','Treponema','pallidum','',1,'1/1/2000 12:00:00 AM','Unknown')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (11,11,'p aeruginosa','Pseudomonas aeruginosa','P_aeruginosa','Bacteria','Prokaryota','Proteobacteria','Gammaproteobacteria','Pseudomonadales','Pseudomonadaceae','Pseudomonas','aeruginosa','',1,'1/1/2000 12:00:00 AM','Unknown')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (12,12,'contaminants','contaminants','Contaminants','','','','','','','','','',0,'1/1/2000 12:00:00 AM','Unknown')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (13,13,'Cytomegalovirus','Human Cytomegalovirus','Human_Cytomegalovirus','Viruses','Viruses','None','None','None','Herpesviridae','Cytomegalovirus','human','',1,'1/1/2000 12:00:00 AM','Unknown')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (14,14,'Mismatched_Organism','(cross-organism genomes)','Mismatched_Organism','','','','','','','','','',1,'1/1/2000 12:00:00 AM','Unknown')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (15,15,'n crassa','Neurospora crassa','N_Crassa','Eukarya','Fungi','Ascomycota','Sordariomycetes','Sordariales','Sordariaceae','Neurospora','crassa','',1,'1/1/2000 12:00:00 AM','Unknown')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (16,16,'None','(used when there is no actual organism)','None','','','','','','','','','',1,'1/1/2000 12:00:00 AM','Unknown')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (17,17,'pig','Sus domesticus (Pig)','S_scrofa','Eukarya','Metazoa','Chordata','Mammalia','Artiodactyla','Suidae','Sus','scrofa','domestica',1,'1/1/2000 12:00:00 AM','Unknown')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (18,18,'zebrafish','<NAME>','D_rerio','Eukarya','Metazoa','Chordata','Actinopterygii','Cypriniformes','Cyprinidae','Danio','rerio','',0,'1/1/2000 12:00:00 AM','Unknown')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (19,19,'rhodopseudomonas','Rhodopseudomonas palustris (superseded by R_palustris)','R_palustris','Bacteria','Prokaryota','Proteobacteria','Alpha Proteobacteria','Rhizobiales','Bradyrhizobiaceae','Rhodopseudomonas','palustris','',0,'1/1/2000 12:00:00 AM','Unknown')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (20,20,'Y Pestis','Yersinia pestis','Y_pestis','Bacteria','Prokaryota','Proteobacteria','Gammaproteobacteria','Enterobacteriales','Enterobacteriaceae','Yersinia','pestis','KIM',1,'1/1/2000 12:00:00 AM','Unknown')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (21,21,'Borrelia','Borrelia burgdorferi','B_burgdorferi','Bacteria','Prokaryota','Spirochaetes','Spirochaetes','Spirochaetales','Spirochaetaceae','Borrelia','burdorferi','B31',1,'1/1/2000 12:00:00 AM','Unknown')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (22,22,'C_Synechocystis','Cyanobacterium synechocystis','C_synechocystis','Bacteria','Prokaryota','Cyanobacteria','Chroobacteria','Chroococcales','Synechococcaceae','Cyanobacterium','Synechocystis','PCC6803',1,'1/1/2000 12:00:00 AM','Unknown')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (23,23,'geobacter','Geobacter sulfurreducens','G_sulfurreducens','Bacteria','Prokaryota','Proteobacteria','Deltaproteobacteria','Desulfuromonadales','Geobacteraceae','Geobacter','sulfurreducens','PCA',1,'1/1/2000 12:00:00 AM','Unknown')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (24,24,'mouse','Mus musculus (Mouse)','M_musculus','Eukarya','Metazoa','Chordata','Mammalia','Rodentia','Muridae','Mus','musculus','',1,'1/1/2000 12:00:00 AM','Unknown')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (25,25,'Phanerochaete','Phanerochaete chrysosporium','P_chrysosporium','Eukarya','Fungi','Basidiomycota','Homobasidiomycetes','Aphyllophorales','Corticiaceae','Phanerochaete','chrysosporium','RP-78',1,'1/1/2000 12:00:00 AM','Unknown')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (26,26,'drosophila','Drosophila Melanogaster (Fruit Fly)','D_melanogaster','Eukarya','Metazoa','Arthropoda','Insecta','Diptera','Drosophilidae','Drosophilia','melanogaster','',1,'1/1/2000 12:00:00 AM','Unknown')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (27,27,'R_Sphaeroides','Rhodobacter Sphaeroides','R_sphaeroides','Bacteria','Prokaryota','Proteobacteria','Alpha Proteobacteria','Rhodobacterales','Rhodobacteraceae','Rhodobacter','sphaeroides','2.4.1',1,'1/1/2000 12:00:00 AM','Unknown')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (28,28,'O_Cuniculus','Oryctolagus cuniculus (Domestic Rabbit)','O_cuniculus','Eukarya','Metazoa','Chordata','Mammalia','Lagomorpha','Leporidae','Oryctolagus','cuniculus','',1,'1/1/2000 12:00:00 AM','Unknown')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (29,29,'G_Metallireducens','Geobacter Metallireducens','G_metallireducens','Bacteria','Prokaryota','Proteobacteria','Deltaproteobacteria','Desulfuromonadales','Geobacteraceae','Geobacter','metallireducens','GS-15',1,'1/1/2000 12:00:00 AM','Unknown')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (30,30,'D_Vulgaris','Desulfovibrio vulgaris Hildenborough','D_vulgaris','Bacteria','Prokaryota','Proteobacteria','Deltaproteobacteria','Desulfovibrionales','Desulfovibrionaceae','Desulfovibrio','vulgaris','Hildenborough',1,'1/1/2000 12:00:00 AM','Unknown')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (31,31,'Microbial_Communities','Microbial Communities','Microbial_Communities','','','','','','','','','',1,'1/1/2000 12:00:00 AM','Unknown')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (32,32,'A_Thaliana','Arabidopsis Thaliana','A_thaliana','Eukarya','Plantae','Magnoliophyta','Magnoliopsida','Brassicales','Brassicaceae','Arabidopsis','thaliana','',1,'1/1/2000 12:00:00 AM','Unknown')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (33,33,'D_Desulfuricans','Desulfovibrio Desulfuricans G20','D_desulfuricans','Bacteria','Prokaryota','Proteobacteria','Deltaproteobacteria','Desulfovibrionales','Desulfovibrionaceae','Desulfovibrio','desulfuricans','G20',1,'1/1/2000 12:00:00 AM','Unknown')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (34,34,'M_Barkeri','Methanosarcina Barkeri','M_barkeri','Archaea','Prokaryota','Euryarchaeota','Methanomicrobia','Methanosarcinales','Methanosarcinaceae','Methanosarcina','barkeri','',1,'1/1/2000 12:00:00 AM','Unknown')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (35,35,'P_Falciparum','Plasmodium falciparum','P_falciparum','Eukarya','Protozoa','Myzozoa','Aconoidasida','Haemosporida','Plasmodiidae','Plasmodium','falciparum','',1,'1/1/2000 12:00:00 AM','Unknown')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (36,36,'R_Norvegicus','Rattus Norvegicus (Rat)','R_norvegicus','Eukarya','Metazoa','Chordata','Mammalia','Rodentia','Muridae','Rattus','norvegicus','',1,'1/1/2000 12:00:00 AM','Unknown')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (37,37,'E_Caballus','Equus Caballus (Domestic Horse)','E_caballus','Eukarya','Metazoa','Chordata','Mammalia','Perissodactyla','Equidae','Equus','caballus','',1,'1/1/2000 12:00:00 AM','Unknown')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (38,38,'F_Graminearum','Fusarium graminearum','F_graminearum','Eukarya','Fungi','Ascomycota','Sordariomycetes','Hypocreales','Nectriaceae','Fusarium','graminearum','',1,'1/1/2000 12:00:00 AM','Unknown')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (39,39,'C_Griseus','Cricetulus griseus (Chinese Hamster)','C_griseus','Eukarya','Metazoa','Chordata','Mammalia','Rodentia','Muridae','Cricetulus','griseus','',0,'1/1/2000 12:00:00 AM','Unknown')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (40,1001,'QC_Test','Not an actual organism. Supports process QC activ','QC_Test','','','','','','','','','',1,'1/1/2000 12:00:00 AM','Unknown')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (41,1002,'S_typhi','Salmonella typhi, causative agent of Typhoid Fever','S_Typhi','Bacteria','Prokaryota','Proteobacteria','Gammaproteobacteria','Enterobacteriales','Enterobacteriaceae','Salmonella','typhi','TY2',1,'1/1/2000 12:00:00 AM','Unknown')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (42,1003,'S_typhimurium','Salmonella typhimurium, pathogenic to mice and hum','S_typhimurium','Bacteria','Prokaryota','Proteobacteria','Gammaproteobacteria','Enterobacteriales','Enterobacteriaceae','Salmonella','typhimurium','LT2',1,'1/1/2000 12:00:00 AM','Unknown')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (43,1004,'Vaccinia','Vaccinia Virus','Vaccinia','Viruses','Viruses','None','None','None','Poxviridae','Orthopoxvirus','vaccinia','',1,'1/1/2000 12:00:00 AM','Unknown')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (44,1005,'R_palustris','Microbe Rhodopseudomonas palustris','R_palustris','Bacteria','Prokaryota','Proteobacteria','Alpha Proteobacteria','Rhizobiales','Bradyrhizobiaceae','Rhodopseudomonas','palustris','',1,'1/1/2000 12:00:00 AM','Unknown')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (45,1006,'T_reesei','Trichoderma reesei','T_reesei','Eukarya','Fungi','Ascomycota','Sordariomycetes','Hypocreales','Hypocreaceae','Trichoderma','reesei','',1,'1/1/2000 12:00:00 AM','Unknown')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (46,1007,'C_Elegans','Caenorhabditis elegans','C_elegans','Eukarya','Metazoa','Nematoda','Chromadorea','Rhabditida','Rhabditidae','Caenorhabditis','elegans','',1,'1/1/2000 12:00:00 AM','Unknown')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (47,1008,'Y_pseudotuburculosis','Yersinia pseudotuburculosis','Y_pseudotuberculosis','Bacteria','Prokaryota','Proteobacteria','Gammaproteobacteria','Enterobacteriales','Enterobacteriaceae','Yersinia','pseudotuberculosis','IP 32953',1,'1/1/2000 12:00:00 AM','Unknown')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (48,1009,'Y_enterocolitica','Yersinia enterocolitica','Y_enterocolitica','Bacteria','Prokaryota','Proteobacteria','Gammaproteobacteria','Enterobacteriales','Enterobacteriaceae','Yersinia','enterocolitica','',1,'1/1/2000 12:00:00 AM','Unknown')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (49,1011,'Shewanella_baltica','Shewanella baltica','Shewanella_baltica','Bacteria','Prokaryota','Proteobacteria','Gammaproteobacteria','Alteromonadales','Shewanellaceae','Shewanella','baltica','OS155',1,'1/1/2000 12:00:00 AM','Unknown')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (50,1012,'S_fumaroxidans','Syntrophobacter fumaroxidans','S_fumaroxidans','Bacteria','Prokaryota','Proteobacteria','Deltaproteobacteria','Syntrophobacterales','Syntrophobacteraceae','Syntrophobacter','fumaroxidans','',1,'1/1/2000 12:00:00 AM','Unknown')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (51,1013,'Monkeypox_virus','Monkeypox virus','Monkeypox_virus','Viruses','Viruses','None','None','None','Poxviridae','Orthopoxvirus','monkeypox','',1,'1/1/2000 12:00:00 AM','Unknown')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (52,1014,'Cyanothece','Cyanothece','Cyanothece','Bacteria','Prokaryota','Cyanobacteria','Chroobacteria','Chroococcales','Synechococcaceae','Cyanothece','species','PCC7418',1,'1/1/2000 12:00:00 AM','Unknown')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (53,1015,'Shewanella_amazonesis_SB2B','Shewanella amazonesis SB2B','S_amazonensis','Bacteria','Prokaryota','Proteobacteria','Gammaproteobacteria','Alteromonadales','Shewanellaceae','Shewanella','amazonensis','SB2B',1,'1/1/2000 12:00:00 AM','Unknown')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (54,1016,'Shewanella_denitrificans_OS217T','Shewanella dentrificans OS217T','S_denitrificans_OS217','Bacteria','Prokaryota','Proteobacteria','Gammaproteobacteria','Alteromonadales','Shewanellaceae','Shewanella','denitrificans','OS217',1,'1/1/2000 12:00:00 AM','Unknown')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (55,1017,'Shewanella_putrefaciens_CN-32','Shewanella putrefaciens CN-32','S_putrefaciens_CN-32','Bacteria','Prokaryota','Proteobacteria','Gammaproteobacteria','Alteromonadales','Shewanellaceae','Shewanella','putrefaciens','CN-32',1,'1/1/2000 12:00:00 AM','Unknown')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (56,1018,'Shewanella_species_PV-4','Shewanella species PV-4','Shewanella_PV-4','Bacteria','Prokaryota','Proteobacteria','Gammaproteobacteria','Alteromonadales','Shewanellaceae','Shewanella','loihica','PV-4',1,'1/1/2000 12:00:00 AM','Unknown')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (57,1019,'Shewanella_frigidimarina_NCIMB400','Shewanella frigidimarina NCIMB400','S_frigidmarina_NCIMB_400','Bacteria','Prokaryota','Proteobacteria','Gammaproteobacteria','Alteromonadales','Shewanellaceae','Shewanella','frigidimarina','NCIMB 400',1,'1/1/2000 12:00:00 AM','Unknown')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (58,1020,'Shewanella_putrefaciens_200','Shewanella putrefaciens 200','S_putrefaciens_200','Bacteria','Prokaryota','Proteobacteria','Gammaproteobacteria','Alteromonadales','Shewanellaceae','Shewanella','putrefaciens','200',0,'1/1/2000 12:00:00 AM','Unknown')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (59,1021,'Shewanella_species_ANA3','Shewanella species ANA3','S_trabarsenatis_ANA-3','Bacteria','Prokaryota','Proteobacteria','Gammaproteobacteria','Alteromonadales','Shewanellaceae','Shewanella','species','ANA-3',1,'1/1/2000 12:00:00 AM','Unknown')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (60,1022,'Shewanella_species_MR-4','Shewanella species MR-4','Shewanella_MR-4','Bacteria','Prokaryota','Proteobacteria','Gammaproteobacteria','Alteromonadales','Shewanellaceae','Shewanella','species','MR-4',1,'1/1/2000 12:00:00 AM','Unknown')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (61,1023,'Shewanella_species_MR-7','Shewanella species MR-7','Shewanella_MR-7','Bacteria','Prokaryota','Proteobacteria','Gammaproteobacteria','Alteromonadales','Shewanellaceae','Shewanella','species','MR-7',1,'1/1/2000 12:00:00 AM','Unknown')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (62,1024,'Shewanella_species_W3-18-1','Shewanella_species W3-18-1','Shewanella_W3-18-1','Bacteria','Prokaryota','Proteobacteria','Gammaproteobacteria','Alteromonadales','Shewanellaceae','Shewanella','putrefaciens','W3-18-1',1,'1/1/2000 12:00:00 AM','Unknown')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (63,1026,'Magnetospirillum_magneticum','Magnetospirillum magneticum','M_magneticum','Bacteria','Prokaryota','Proteobacteria','Alpha Proteobacteria','Rhodospirllales','Rhodospirllaceae','Magnetospirillum','magneticum','AMB-1',1,'1/1/2000 12:00:00 AM','Unknown')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (64,1027,'Pelobacter_carbonolicus','Pelobacter carbonolicus','P_carbinolicus','Bacteria','Prokaryota','Proteobacteria','Deltaproteobacteria','Desulfuromonadales','Pelobacteraceae','Pelobacter','carbinolicus','DSM 2380',1,'1/1/2000 12:00:00 AM','Unknown')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (65,1028,'Methanospirillum_hungatei','Methanospirillum hungatei','M_hungatei','Archaea','Prokaryota','Eurarchaeota','Methanomicrobia','Methanomicrobiales','Methanospirllaceae','Methanospirillum','hungatei','JF-1',1,'1/1/2000 12:00:00 AM','Unknown')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (66,1029,'Arthrobacter','Arthrobacter','Arthrobacter','Bacteria','Prokaryota','Actinobacteria','Actinobacteria','Actinomycetales','Micrococcaceae','Arthrobacter','species','FB24',1,'1/1/2000 12:00:00 AM','Unknown')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (67,1030,'Aspergillus_niger','Aspergillus niger','Aspergillus_niger','Eukarya','Fungi','Ascomycota','Eurotiomycetes','Trichocomaceae','Trichocomaceae','Aspergillus','niger','',1,'1/1/2000 12:00:00 AM','Unknown')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (68,1031,'Macaque','Macaque monkey','Macaque','Eukarya','Metazoa','Chordata','Mammalia','Primates','Cercopithecidae','Macaca','nemestrina','',1,'1/1/2000 12:00:00 AM','Unknown')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (69,1032,'G_gallus','Gallus gallus (chicken)','G_gallus','Eukarya','Metazoa','Chordata','Mammalia','Galligormes','Phasianidae','Gallus','gallus','',1,'1/1/2000 12:00:00 AM','Unknown')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (70,1033,'Thermo_elongatus','Thermosynechococcus elongatus','T_elongatus','Bacteria','Prokaryota','Cyanobacteria','Chroobacteria','Chroococcales','','Thermosynechococcus','elongatus','BP-1',1,'1/1/2000 12:00:00 AM','Unknown')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (71,1035,'C_glutamicum','RITE organism','C_glutamicum','Bacteria','Prokaryota','Actinobacteria','Actinobacteria','Actinomycetales','Corynebacteriaceae','Corynebacterium','glutamicum','',0,'1/1/2000 12:00:00 AM','Unknown')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (72,1036,'P_ubique','Pelagibacter ubique','P_ubique','Bacteria','Prokaryota','Proteobacteria','Alpha Proteobacteria','Rickettsiales','','Pelagibacter','ubique','HTC1062',1,'1/1/2000 12:00:00 AM','Unknown')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (73,1037,'R_pickettii','Ralstonia pickettii','R_pickettii','Bacteria','Prokaryota','Proteobacteria','Betaproteobacteria','Burkholderiales','Burkholderiaceae','Ralstonia','pickettii','',1,'1/1/2000 12:00:00 AM','Unknown')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (74,1038,'Caulobacter_crescentus','Caulobacter crescentus','C_crescentus','Bacteria','Prokaryota','Proteobacteria','Alpha Proteobacteria','Caulobacterales','Caulobacteraceae','Caulobacter','crescentus','CB15',1,'1/1/2000 12:00:00 AM','Unknown')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (75,1039,'A_phagocytophilium','Anaplasma phagocytophilium','A_phagocytophilium','Bacteria','Prokaryota','Proteobacteria','Alpha Proteobacteria','Rickettsiales','Anaplasmataceae','Anaplasma','phagocytophilium','',1,'1/1/2000 12:00:00 AM','Unknown')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (76,1040,'P_promelas','Pimephales promelas (Fathead minnow)','P_promelas','Eukarya','Metazoa','Chordata','Actinopterygii','Cypriniformes','Cyprinidae','Pimephales','promelas','',1,'1/1/2000 12:00:00 AM','Unknown')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (77,1041,'E_chaffeensis','Ehrlichia chaffeensis','E_chaffeensis','Bacteria','Prokaryota','Proteobacteria','Alpha Proteobacteria','Rickettsiales','Anaplasmataceae','Ehrlichia','chaffeensis','',1,'1/1/2000 12:00:00 AM','Unknown')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (78,1042,'Y_pestis_CO92','Yersinia pestis strain CO92','Y_pestis_CO92','Bacteria','Prokaryota','Proteobacteria','Gammaproteobacteria','Enterobacteriales','Enterobacteriaceae','Yersinia','pestis','CO92',1,'1/1/2000 12:00:00 AM','Unknown')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (79,1043,'Y_pestis_Pestoides_F','Yersinia pestis strain Pestoides F','Y_pestis_Pestoides_F','Bacteria','Prokaryota','Proteobacteria','Gammaproteobacteria','Enterobacteriales','Enterobacteriaceae','Yersinia','pestis','Pestoides_F',1,'1/1/2000 12:00:00 AM','Unknown')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (80,1044,'Y_pseudotuberculosis_YPIII','Yersinia pseudotuberculosis strain YPIII','Y_pseudotuberculosis_YPIII','Bacteria','Prokaryota','Proteobacteria','Gammaproteobacteria','Enterobacteriales','Enterobacteriaceae','Yersinia','pseudotuberculosis','YPIII',1,'1/1/2000 12:00:00 AM','Unknown')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (81,1045,'Y_pseudotuberculosis_PB1_Plus','Yersinia pseudotuberculosis strain PB1/+','Y_pseudotuberculosis_PB1_Plus','Bacteria','Prokaryota','Proteobacteria','Gammaproteobacteria','Enterobacteriales','Enterobacteriaceae','Yersinia','pseudotuberculosis','PB1_Plus',1,'1/1/2000 12:00:00 AM','Unknown')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (82,1046,'B_anthracis_Sterne','Bacillus anthracis strain Sterne','B_anthracis_Sterne','Bacteria','Prokaryota','Firmicutes','Bacilli','Bacillales','Bacillaceae','Bacillus','anthracis','Sterne',1,'1/1/2000 12:00:00 AM','Unknown')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (83,1047,'Anaeromyxobacter_dehalogenans','Anaeromyxobacter dehalogenans','Anaeromyxobacter_dehalogenans','Bacteria','Prokaryota','Proteobacteria','Deltaproteobacteria','Myxococcales','Myxococcaceae','Anaeromyxobacter','dehalogenans','',0,'1/1/2000 12:00:00 AM','Unknown')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (84,1048,'P_fluorescens','Pseudomonas fluorescens','P_fluorescens','Bacteria','Prokaryota','Proteobacteria','Gammaproteobacteria','Pseudomonadales','Pseudomonadaceae','Pseudomonas','fluorescens','PfO-1',1,'1/1/2000 12:00:00 AM','Unknown')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (85,1049,'G_uraniumreducens','Geobacter uranium reducens','G_uraniumreducens','Bacteria','Prokaryota','Proteobacteria','Deltaproteobacteria','Desulfuromonadales','Geobacteraceae','Geobacter','uraniumreducens','',1,'1/1/2000 12:00:00 AM','Unknown')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (86,1,'Deinococcus_radiodurans_R1','Deinococcus radiodurans','D_radiodurans','Bacteria','Prokaryota','Deinococcus-Thermus','Deinococci','Deinococcales','Deinococcaceae','Deinococcus','radiodurans','R1',1,'1/23/2007 6:21:14 PM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (87,2,'Saccharomyces_cerevisiae','Saccharomyces cerevisiae (Baker''s Yeast)','S_cerevisiae','Eukarya','Fungi','Ascomycota','Saccharomycetes','Saccharomycetales','Saccharomycetaceae','Saccharomyces','cerevisiae','',1,'1/23/2007 6:21:14 PM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (88,3,'Escherichia_coli_K-12','Escherichia coli K-12','E_coli','Bacteria','Prokaryota','Proteobacteria','Gammaproteobacteria','Enterobacteriales','Enterobacteriaceae','Escherichia','coli','K-12',1,'1/23/2007 6:21:14 PM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (89,4,'Shewanella_oneidensis_MR-1','Shewanella Oneidensis MR-1','S_oneidensis','Bacteria','Prokaryota','Proteobacteria','Gammaproteobacteria','Alteromonadales','Shewanellaceae','Shewanella','oneidensis','MR-1',1,'1/23/2007 6:21:14 PM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (90,5,'Mus_musculus_B16','Mus musculus (B16)','M_musculus_B16','Eukarya','Metazoa','Chordata','Mammalia','Rodentia','Muridae','Mus','musculus','B16',0,'1/23/2007 6:21:14 PM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (91,6,'Mus_musculus_astrocyte','Mus musculus (Astrocyte)','M_musculus_astrocyte','Eukarya','Metazoa','Chordata','Mammalia','Rodentia','Muridae','Mus','musculus','astrocyte',0,'1/23/2007 6:21:14 PM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (92,7,'Mus_musculus_cortical_neuron','Mus musculus (White Mouse)','M_musculus_cortical_neuron','Eukarya','Metazoa','Chordata','Mammalia','Rodentia','Muridae','Mus','musculus','',0,'1/23/2007 6:21:14 PM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (93,8,'Homo_sapiens','Homo Sapiens (Human)','H_sapiens','Eukarya','Metazoa','Chordata','Mammalia','Primates','Hominidae','Homo','sapiens','',1,'1/23/2007 6:21:14 PM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (94,9,'Bos_taurus','Bovine Serum Albumin (BSA)','B_Taurus','Eukarya','Metazoa','Chordata','Mammalia','Artiodactyla','Bovidae','Bos','taurus','',1,'1/23/2007 6:21:14 PM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (95,10,'Treponema_pallidum','Treponema pallidum','T_pallidum','Bacteria','Prokaryota','Spirochaetes','Spirochaetes','Spirochaetales','Spirochaetaceae','Treponema','pallidum','',1,'1/23/2007 6:21:14 PM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (96,11,'Pseudomonas_aeruginosa','Pseudomonas aeruginosa','P_aeruginosa','Bacteria','Prokaryota','Proteobacteria','Gammaproteobacteria','Pseudomonadales','Pseudomonadaceae','Pseudomonas','aeruginosa','',1,'1/23/2007 6:21:14 PM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (97,13,'Cytomegalovirus_human','Human Cytomegalovirus','Human_Cytomegalovirus','Viruses','Viruses','None','None','None','Herpesviridae','Cytomegalovirus','human','',1,'1/23/2007 6:21:14 PM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (98,15,'Neurospora_crassa','Neurospora crassa','N_Crassa','Eukarya','Fungi','Ascomycota','Sordariomycetes','Sordariales','Sordariaceae','Neurospora','crassa','',1,'1/23/2007 6:21:14 PM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (99,17,'Sus_scrofa_domestica','Sus domesticus (Pig)','S_scrofa','Eukarya','Metazoa','Chordata','Mammalia','Artiodactyla','Suidae','Sus','scrofa','domestica',1,'1/23/2007 6:21:14 PM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (100,18,'Danio_rerio','<NAME> (Zebrafish)','D_rerio','Eukarya','Metazoa','Chordata','Actinopterygii','Cypriniformes','Cyprinidae','Danio','rerio','',0,'1/23/2007 6:21:14 PM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (101,20,'Yersinia_pestis_KIM','Yersinia pestis','Y_pestis','Bacteria','Prokaryota','Proteobacteria','Gammaproteobacteria','Enterobacteriales','Enterobacteriaceae','Yersinia','pestis','KIM',1,'1/23/2007 6:21:14 PM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (102,21,'Borrelia_burdorferi_B31','Borrelia burgdorferi','B_burgdorferi','Bacteria','Prokaryota','Spirochaetes','Spirochaetes','Spirochaetales','Spirochaetaceae','Borrelia','burdorferi','B31',1,'1/23/2007 6:21:14 PM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (103,22,'Cyanobacterium_synechocystis_PCC6803','Cyanobacterium synechocystis','C_synechocystis','Bacteria','Prokaryota','Cyanobacteria','Chroobacteria','Chroococcales','Synechococcaceae','Cyanobacterium','synechocystis','PCC6803',1,'1/23/2007 6:21:14 PM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (104,23,'Geobacter_sulfurreducens_PCA','Geobacter sulfurreducens','G_sulfurreducens','Bacteria','Prokaryota','Proteobacteria','Deltaproteobacteria','Desulfuromonadales','Geobacteraceae','Geobacter','sulfurreducens','PCA',1,'1/23/2007 6:21:14 PM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (105,24,'Mus_musculus','Mus musculus (Mouse)','M_musculus','Eukarya','Metazoa','Chordata','Mammalia','Rodentia','Muridae','Mus','musculus','',1,'1/23/2007 6:21:14 PM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (106,25,'Phanerochaete_chrysosporium_RP-78','Phanerochaete chrysosporium','P_chrysosporium','Eukarya','Fungi','Basidiomycota','Homobasidiomycetes','Aphyllophorales','Corticiaceae','Phanerochaete','chrysosporium','RP-78',1,'1/23/2007 6:21:14 PM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (107,26,'Drosophilia_melanogaster','Drosophila Melanogaster (Fruit Fly)','D_melanogaster','Eukarya','Metazoa','Arthropoda','Insecta','Diptera','Drosophilidae','Drosophilia','melanogaster','',1,'1/23/2007 6:21:14 PM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (108,27,'Rhodobacter_sphaeroides_2.4.1','Rhodobacter Sphaeroides','R_sphaeroides','Bacteria','Prokaryota','Proteobacteria','Alpha Proteobacteria','Rhodobacterales','Rhodobacteraceae','Rhodobacter','sphaeroides','2.4.1',1,'1/23/2007 6:21:14 PM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (109,28,'Oryctolagus_cuniculus','Oryctolagus cuniculus (Domestic Rabbit)','O_cuniculus','Eukarya','Metazoa','Chordata','Mammalia','Lagomorpha','Leporidae','Oryctolagus','cuniculus','',1,'1/23/2007 6:21:14 PM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (110,29,'Geobacter_metallireducens_GS-15','Geobacter Metallireducens','G_metallireducens','Bacteria','Prokaryota','Proteobacteria','Deltaproteobacteria','Desulfuromonadales','Geobacteraceae','Geobacter','metallireducens','GS-15',1,'1/23/2007 6:21:14 PM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (111,30,'Desulfovibrio_vulgaris_Hildenborough','Desulfovibrio vulgaris Hildenborough','D_vulgaris','Bacteria','Prokaryota','Proteobacteria','Deltaproteobacteria','Desulfovibrionales','Desulfovibrionaceae','Desulfovibrio','vulgaris','Hildenborough',1,'1/23/2007 6:21:14 PM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (112,32,'Arabidopsis_thaliana','Arabidopsis Thaliana','A_thaliana','Eukarya','Plantae','Magnoliophyta','Magnoliopsida','Brassicales','Brassicaceae','Arabidopsis','thaliana','',1,'1/23/2007 6:21:14 PM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (113,33,'Desulfovibrio_desulfuricans_G20','Desulfovibrio Desulfuricans G20','D_desulfuricans','Bacteria','Prokaryota','Proteobacteria','Deltaproteobacteria','Desulfovibrionales','Desulfovibrionaceae','Desulfovibrio','desulfuricans','G20',1,'1/23/2007 6:21:14 PM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (114,34,'Methanosarcina_barkeri','<NAME>','M_barkeri','Archaea','Prokaryota','Euryarchaeota','Methanomicrobia','Methanosarcinales','Methanosarcinaceae','Methanosarcina','barkeri','',1,'1/23/2007 6:21:14 PM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (115,35,'Plasmodium_falciparum','Plasmodium falciparum','P_falciparum','Eukarya','Protozoa','Myzozoa','Aconoidasida','Haemosporida','Plasmodiidae','Plasmodium','falciparum','',1,'1/23/2007 6:21:14 PM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (116,36,'Rattus_norvegicus','Rattus Norvegicus (Rat)','R_norvegicus','Eukarya','Metazoa','Chordata','Mammalia','Rodentia','Muridae','Rattus','norvegicus','',1,'1/23/2007 6:21:14 PM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (117,37,'Equus_caballus','Equus Caballus (Domestic Horse)','E_caballus','Eukarya','Metazoa','Chordata','Mammalia','Perissodactyla','Equidae','Equus','caballus','',1,'1/23/2007 6:21:14 PM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (118,38,'Fusarium_graminearum','Fusarium graminearum','F_graminearum','Eukarya','Fungi','Ascomycota','Sordariomycetes','Hypocreales','Nectriaceae','Fusarium','graminearum','',1,'1/23/2007 6:21:14 PM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (119,39,'Cricetulus_griseus','Cricetulus griseus (Chinese Hamster)','C_griseus','Eukarya','Metazoa','Chordata','Mammalia','Rodentia','Muridae','Cricetulus','griseus','',0,'1/23/2007 6:21:14 PM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (120,1002,'Salmonella_typhi_TY2','Salmonella typhi, causative agent of Typhoid Fever','S_Typhi','Bacteria','Prokaryota','Proteobacteria','Gammaproteobacteria','Enterobacteriales','Enterobacteriaceae','Salmonella','typhi','TY2',1,'1/23/2007 6:21:14 PM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (121,1003,'Salmonella_typhimurium_LT2','Salmonella typhimurium, pathogenic to mice and hum','S_typhimurium','Bacteria','Prokaryota','Proteobacteria','Gammaproteobacteria','Enterobacteriales','Enterobacteriaceae','Salmonella','typhimurium','LT2',1,'1/23/2007 6:21:14 PM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (122,1004,'Orthopoxvirus_vaccinia','Vaccinia Virus','Vaccinia','Viruses','Viruses','None','None','None','Poxviridae','Orthopoxvirus','vaccinia','',1,'1/23/2007 6:21:14 PM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (123,1005,'Rhodopseudomonas_palustris','Microbe Rhodopseudomonas palustris','R_palustris','Bacteria','Prokaryota','Proteobacteria','Alpha Proteobacteria','Rhizobiales','Bradyrhizobiaceae','Rhodopseudomonas','palustris','',1,'1/23/2007 6:21:14 PM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (124,1006,'Trichoderma_reesei','Trichoderma reesei','T_reesei','Eukarya','Fungi','Ascomycota','Sordariomycetes','Hypocreales','Hypocreaceae','Trichoderma','reesei','',1,'1/23/2007 6:21:14 PM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (125,1007,'Caenorhabditis_elegans','Caenorhabditis elegans','C_elegans','Eukarya','Metazoa','Nematoda','Chromadorea','Rhabditida','Rhabditidae','Caenorhabditis','elegans','',1,'1/23/2007 6:21:14 PM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (126,1008,'Yersinia_pseudotuberculosis_IP 32953','Yersinia pseudotuburculosis','Y_pseudotuberculosis','Bacteria','Prokaryota','Proteobacteria','Gammaproteobacteria','Enterobacteriales','Enterobacteriaceae','Yersinia','pseudotuberculosis','IP 32953',1,'1/23/2007 6:21:14 PM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (127,1009,'Yersinia_enterocolitica','Yersinia enterocolitica','Y_enterocolitica','Bacteria','Prokaryota','Proteobacteria','Gammaproteobacteria','Enterobacteriales','Enterobacteriaceae','Yersinia','enterocolitica','',1,'1/23/2007 6:21:14 PM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (128,1011,'Shewanella_baltica_OS155','Shewanella baltica','Shewanella_baltica','Bacteria','Prokaryota','Proteobacteria','Gammaproteobacteria','Alteromonadales','Shewanellaceae','Shewanella','baltica','OS155',1,'1/23/2007 6:21:14 PM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (129,1012,'Syntrophobacter_fumaroxidans','Syntrophobacter fumaroxidans','S_fumaroxidans','Bacteria','Prokaryota','Proteobacteria','Deltaproteobacteria','Syntrophobacterales','Syntrophobacteraceae','Syntrophobacter','fumaroxidans','',1,'1/23/2007 6:21:14 PM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (130,1013,'Orthopoxvirus_monkeypox','Monkeypox virus','Monkeypox_virus','Viruses','Viruses','None','None','None','Poxviridae','Orthopoxvirus','monkeypox','',1,'1/23/2007 6:21:14 PM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (131,1014,'Cyanothece_sp_PCC7418','Cyanothece','Cyanothece','Bacteria','Prokaryota','Cyanobacteria','Chroobacteria','Chroococcales','Synechococcaceae','Cyanothece','species','PCC7418',1,'1/23/2007 6:21:14 PM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (132,1015,'Shewanella_amazonensis_SB2B','Shewanella amazonesis SB2B','S_amazonensis','Bacteria','Prokaryota','Proteobacteria','Gammaproteobacteria','Alteromonadales','Shewanellaceae','Shewanella','amazonensis','SB2B',1,'1/23/2007 6:21:14 PM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (133,1016,'Shewanella_denitrificans_OS217','Shewanella dentrificans OS217T','S_denitrificans_OS217','Bacteria','Prokaryota','Proteobacteria','Gammaproteobacteria','Alteromonadales','Shewanellaceae','Shewanella','denitrificans','OS217',1,'1/23/2007 6:21:14 PM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (134,1018,'Shewanella_loihica_PV-4','Shewanella loihica PV-4','Shewanella_PV-4','Bacteria','Prokaryota','Proteobacteria','Gammaproteobacteria','Alteromonadales','Shewanellaceae','Shewanella','loihica','PV-4',1,'1/23/2007 6:21:14 PM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (135,1019,'Shewanella_frigidimarina_NCIMB 400','Shewanella frigidimarina NCIMB400','S_frigidmarina_NCIMB_400','Bacteria','Prokaryota','Proteobacteria','Gammaproteobacteria','Alteromonadales','Shewanellaceae','Shewanella','frigidimarina','NCIMB 400',1,'1/23/2007 6:21:14 PM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (136,1021,'Shewanella_sp_ANA-3','Shewanella species ANA3','S_trabarsenatis_ANA-3','Bacteria','Prokaryota','Proteobacteria','Gammaproteobacteria','Alteromonadales','Shewanellaceae','Shewanella','species','ANA-3',1,'1/23/2007 6:21:14 PM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (137,1022,'Shewanella_sp_MR-4','Shewanella species MR-4','Shewanella_MR-4','Bacteria','Prokaryota','Proteobacteria','Gammaproteobacteria','Alteromonadales','Shewanellaceae','Shewanella','species','MR-4',1,'1/23/2007 6:21:14 PM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (138,1023,'Shewanella_sp_MR-7','Shewanella species MR-7','Shewanella_MR-7','Bacteria','Prokaryota','Proteobacteria','Gammaproteobacteria','Alteromonadales','Shewanellaceae','Shewanella','species','MR-7',1,'1/23/2007 6:21:14 PM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (139,1024,'Shewanella_putrefaciens_W3-18-1','Shewanella putrefaciens W3-18-1','Shewanella_W3-18-1','Bacteria','Prokaryota','Proteobacteria','Gammaproteobacteria','Alteromonadales','Shewanellaceae','Shewanella','putrefaciens','W3-18-1',1,'1/23/2007 6:21:14 PM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (140,1026,'Magnetospirillum_magneticum_AMB-1','Magnetospirillum magneticum','M_magneticum','Bacteria','Prokaryota','Proteobacteria','Alpha Proteobacteria','Rhodospirllales','Rhodospirllaceae','Magnetospirillum','magneticum','AMB-1',1,'1/23/2007 6:21:14 PM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (141,1027,'Pelobacter_carbinolicus_DSM 2380','Pelobacter carbonolicus','P_carbinolicus','Bacteria','Prokaryota','Proteobacteria','Deltaproteobacteria','Desulfuromonadales','Pelobacteraceae','Pelobacter','carbinolicus','DSM 2380',1,'1/23/2007 6:21:14 PM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (142,1028,'Methanospirillum_hungatei_JF-1','Methanospirillum hungatei','M_hungatei','Archaea','Prokaryota','Eurarchaeota','Methanomicrobia','Methanomicrobiales','Methanospirllaceae','Methanospirillum','hungatei','JF-1',1,'1/23/2007 6:21:14 PM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (143,1029,'Arthrobacter_sp_FB24','Arthrobacter','Arthrobacter','Bacteria','Prokaryota','Actinobacteria','Actinobacteria','Actinomycetales','Micrococcaceae','Arthrobacter','species','FB24',1,'1/23/2007 6:21:14 PM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (144,1030,'Aspergillus_niger','Aspergillus niger','A_niger','Eukarya','Fungi','Ascomycota','Eurotiomycetes','Trichocomaceae','Trichocomaceae','Aspergillus','niger','',1,'1/23/2007 6:21:14 PM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (145,1031,'Macaca_nemestrina','Macaque monkey','Macaque','Eukarya','Metazoa','Chordata','Mammalia','Primates','Cercopithecidae','Macaca','nemestrina','',1,'1/23/2007 6:21:14 PM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (146,1032,'Gallus_gallus','Gallus gallus (chicken)','G_gallus','Eukarya','Metazoa','Chordata','Mammalia','Galligormes','Phasianidae','Gallus','gallus','',1,'1/23/2007 6:21:14 PM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (147,1033,'Thermosynechococcus_elongatus_BP-1','Thermosynechococcus elongatus','T_elongatus','Bacteria','Prokaryota','Cyanobacteria','Chroobacteria','Chroococcales','','Thermosynechococcus','elongatus','BP-1',1,'1/23/2007 6:21:14 PM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (148,1035,'Corynebacterium_glutamicum','C_glutamicum (RITE organism)','C_glutamicum','Bacteria','Prokaryota','Actinobacteria','Actinobacteria','Actinomycetales','Corynebacteriaceae','Corynebacterium','glutamicum','',0,'1/23/2007 6:21:14 PM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (149,1036,'Pelagibacter_ubique_HTC1062','Pelagibacter ubique','P_ubique','Bacteria','Prokaryota','Proteobacteria','Alpha Proteobacteria','Rickettsiales','','Pelagibacter','ubique','HTC1062',1,'1/23/2007 6:21:14 PM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (150,1037,'Ralstonia_pickettii','Ralstonia pickettii','R_pickettii','Bacteria','Prokaryota','Proteobacteria','Betaproteobacteria','Burkholderiales','Burkholderiaceae','Ralstonia','pickettii','',1,'1/23/2007 6:21:14 PM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (151,1038,'Caulobacter_crescentus_CB15','Caulobacter crescentus','C_crescentus','Bacteria','Prokaryota','Proteobacteria','Alpha Proteobacteria','Caulobacterales','Caulobacteraceae','Caulobacter','crescentus','CB15',1,'1/23/2007 6:21:14 PM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (152,1039,'Anaplasma_phagocytophilium','Anaplasma phagocytophilium','A_phagocytophilium','Bacteria','Prokaryota','Proteobacteria','Alpha Proteobacteria','Rickettsiales','Anaplasmataceae','Anaplasma','phagocytophilium','',1,'1/23/2007 6:21:14 PM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (153,1040,'Pimephales_promelas','Pimephales promelas (Fathead minnow)','P_promelas','Eukarya','Metazoa','Chordata','Actinopterygii','Cypriniformes','Cyprinidae','Pimephales','promelas','',1,'1/23/2007 6:21:14 PM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (154,1041,'Ehrlichia_chaffeensis','Ehrlichia chaffeensis','E_chaffeensis','Bacteria','Prokaryota','Proteobacteria','Alpha Proteobacteria','Rickettsiales','Anaplasmataceae','Ehrlichia','chaffeensis','',1,'1/23/2007 6:21:14 PM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (155,1042,'Yersinia_pestis_CO92','Yersinia pestis strain CO92','Y_pestis_CO92','Bacteria','Prokaryota','Proteobacteria','Gammaproteobacteria','Enterobacteriales','Enterobacteriaceae','Yersinia','pestis','CO92',1,'1/23/2007 6:21:14 PM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (156,1043,'Yersinia_pestis_Pestoides_F','Yersinia pestis strain Pestoides F','Y_pestis_Pestoides_F','Bacteria','Prokaryota','Proteobacteria','Gammaproteobacteria','Enterobacteriales','Enterobacteriaceae','Yersinia','pestis','Pestoides_F',1,'1/23/2007 6:21:14 PM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (157,1044,'Yersinia_pseudotuberculosis_YPIII','Yersinia pseudotuberculosis strain YPIII','Y_pseudotuberculosis_YPIII','Bacteria','Prokaryota','Proteobacteria','Gammaproteobacteria','Enterobacteriales','Enterobacteriaceae','Yersinia','pseudotuberculosis','YPIII',1,'1/23/2007 6:21:14 PM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (158,1045,'Yersinia_pseudotuberculosis_PB1_Plus','Yersinia pseudotuberculosis strain PB1/+','Y_pseudotuberculosis_PB1_Plus','Bacteria','Prokaryota','Proteobacteria','Gammaproteobacteria','Enterobacteriales','Enterobacteriaceae','Yersinia','pseudotuberculosis','PB1_Plus',1,'1/23/2007 6:21:14 PM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (159,1046,'Bacillus_anthracis_Sterne','Bacillus anthracis strain Sterne','B_anthracis_Sterne','Bacteria','Prokaryota','Firmicutes','Bacilli','Bacillales','Bacillaceae','Bacillus','anthracis','Sterne',1,'1/23/2007 6:21:14 PM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (160,1047,'Anaeromyxobacter_dehalogenans','Anaeromyxobacter dehalogenans','A_dehalogenans','Bacteria','Prokaryota','Proteobacteria','Deltaproteobacteria','Myxococcales','Myxococcaceae','Anaeromyxobacter','dehalogenans','',0,'1/23/2007 6:21:14 PM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (161,1048,'Pseudomonas_fluorescens_PfO-1','Pseudomonas fluorescens','P_fluorescens','Bacteria','Prokaryota','Proteobacteria','Gammaproteobacteria','Pseudomonadales','Pseudomonadaceae','Pseudomonas','fluorescens','PfO-1',1,'1/23/2007 6:21:14 PM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (162,1049,'Geobacter_uraniumreducens','Geobacter uranium reducens','G_uraniumreducens','Bacteria','Prokaryota','Proteobacteria','Deltaproteobacteria','Desulfuromonadales','Geobacteraceae','Geobacter','uraniumreducens','',1,'1/23/2007 6:21:14 PM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (163,1027,'Pelobacter_carbinolicus_DSM_2380','Pelobacter carbonolicus','P_carbinolicus','Bacteria','Prokaryota','Proteobacteria','Deltaproteobacteria','Desulfuromonadales','Pelobacteraceae','Pelobacter','carbinolicus','DSM 2380',1,'1/24/2007 11:53:58 AM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (164,1019,'Shewanella_frigidimarina_NCIMB_400','Shewanella frigidimarina NCIMB400','S_frigidmarina_NCIMB_400','Bacteria','Prokaryota','Proteobacteria','Gammaproteobacteria','Alteromonadales','Shewanellaceae','Shewanella','frigidimarina','NCIMB 400',1,'1/24/2007 11:54:00 AM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (165,1008,'Yersinia_pseudotuberculosis_IP_32953','Yersinia pseudotuburculosis','Y_pseudotuberculosis','Bacteria','Prokaryota','Proteobacteria','Gammaproteobacteria','Enterobacteriales','Enterobacteriaceae','Yersinia','pseudotuberculosis','IP 32953',1,'1/24/2007 11:54:03 AM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (166,1051,'(default)','Placholder for the default organism; used with Predefined Analysis Jobs','(default)','','','','','','','','','',0,'1/26/2007 5:51:23 PM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (167,39,'Cricetulus_griseus','Cricetulus griseus (Chinese Hamster)','C_griseus','Eukarya','Metazoa','Chordata','Mammalia','Rodentia','Muridae','Cricetulus','griseus','',1,'3/16/2007 9:25:36 AM','PNL\D3M578')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (168,1052,'Francisella_tularensis','Francisella tularensis, sub-species novicida','F_tularensis','Bacteria','Prokaryota','Proteobacteria','Gammaproteobacteria','Thiotrichales','Francisellaceae','Francisella','tularensis','',1,'3/19/2007 2:54:25 PM','PNL\D3M578')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (177,1053,'Shewanella_spp','Shewanella, unknown species','Shewanella_spp','Bacteria','Prokaryota','Proteobacteria','Gammaproteobacteria','Alteromonadales','Shewanellaceae','Shewanella','species','putative',1,'3/27/2007 1:59:07 PM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (178,1053,'Shewanella_spp','Shewanella, unknown/putative species','Shewanella_spp','Bacteria','Prokaryota','Proteobacteria','Gammaproteobacteria','Alteromonadales','Shewanellaceae','Shewanella','species','',1,'3/27/2007 2:00:47 PM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (179,1054,'Mesocricetus_auratus','Mesocricetus auratus (Golden or Syrian Hamster)','M_auratus','Eukarya','Animalia','Chordata','Mammalia','Rodentia','Cricetidae','Mesocricetus','auratus','',1,'4/4/2007 10:19:28 AM','PNL\D3M580')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (180,39,'Cricetulus_griseus','Cricetulus griseus (Chinese Hamster)','C_griseus','Eukarya','Animalia','Chordata','Mammalia','Rodentia','Muridae','Cricetulus','griseus','',1,'4/4/2007 10:20:15 AM','PNL\D3M580')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (181,1055,'Kineococcus_radiotolerans_SRS30216','Kineococcus radiotolerans strain SRS30216','K_radiotolerans_SRS30216','Bacteria','Prokaryota','Actinobacteria','Actinobacteria','Actinomycetales','Kineosporiaceae','Kineococcus','radiotolerans','SRS30216',1,'4/4/2007 10:49:01 AM','PNL\D3M580')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (183,1056,'Magnaporthe_grisea','Rice blast fungus','M_grisea','Eukarya','Fungi','Ascomycota','Sordariomycetes','Sordariomycetes incertae sedis','Magnaporthaceae','Magnaporthe','grisea','',1,'4/27/2007 3:33:19 PM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (184,1057,'D_proteobacterium_NaphS2','Delta proteobacterium strain NaphS2, possibly geobacter species','D_proteobacterium_NaphS2','Bacteria','Prokaryota','Proteobacteria','Deltaproteobacteria','Desulfuromonadales','Geobacteraceae','Geobacter','Deltaproteobacteria','NaphS2',1,'5/17/2007 2:37:38 PM','PNL\D3M578')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (185,1057,'D_proteobacterium_NaphS2','Delta proteobacterium strain NaphS2, possibly geobacter species','D_proteobacterium_NaphS2','Bacteria','Prokaryota','Proteobacteria','Deltaproteobacteria','Desulfobacterales','Desulfobacteraceae','Desulfobacterium','Deltaproteobacterium','NaphS2',1,'5/17/2007 2:40:47 PM','PNL\D3M578')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (186,1014,'Cyanothece_sp_ATCC51142','Cyanothece','Cyanothece','Bacteria','Prokaryota','Cyanobacteria','Chroobacteria','Chroococcales','Synechococcaceae','Cyanothece','species','ATCC51142',1,'5/17/2007 2:41:46 PM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (187,1057,'Deltaproteobacterium_NaphS2','Delta proteobacterium strain NaphS2, possibly geobacter species','D_proteobacterium_NaphS2','Bacteria','Prokaryota','Proteobacteria','Deltaproteobacteria','Desulfobacterales','Desulfobacteraceae','Desulfobacterium','Deltaproteobacterium','NaphS2',1,'5/17/2007 4:52:09 PM','PNL\D3M578')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (188,1058,'Burkholderia_mallei','Burkholderia mallei','B_mallei','Bacteria','Prokaryota','Proteobacteria','Betaproteobacteria','Burkholderiales','Burkholderiaceae','Burkholderia','mallei','',1,'5/17/2007 4:55:12 PM','PNL\D3M578')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (189,1057,'Delta_proteobacterium_NaphS2','Delta proteobacterium strain NaphS2, possibly geobacter species','D_proteobacterium_NaphS2','Bacteria','Prokaryota','Proteobacteria','Deltaproteobacteria','Desulfobacterales','Desulfobacteraceae','Desulfobacterium','Deltaproteobacterium','NaphS2',1,'5/17/2007 5:11:23 PM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (190,1059,'Seawater_MicrobialCommunity','Bacterial commuity from Bermuda Atlantic Time Series Station','BATS','na','na','na','na','na','na','na','na','na',1,'6/4/2007 3:06:31 PM','PNL\D3M580')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (191,1060,'Rifle_Community_Simulated','Microbial mixture of Shewanella and Deinococcus','Rifle_Sim','na','na','na','na','na','na','none','none','na',1,'6/7/2007 12:06:52 PM','PNL\D3M580')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (192,1061,'Rifle_Community','Microbial mixture from Rifle, Colorado site','Rifle_Com','unknown','unknown','various','unknown','unknown','unknown','unknown','unknown','unknown',1,'6/7/2007 12:08:46 PM','PNL\D3M580')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (193,1011,'Shewanella_baltica_OS155','Shewanella baltica strain OS155','S_baltica_OS155','Bacteria','Prokaryota','Proteobacteria','Gammaproteobacteria','Alteromonadales','Shewanellaceae','Shewanella','baltica','OS155',1,'6/15/2007 11:52:23 AM','PNL\D3M578')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (194,1062,'Shewanella_baltica_OS185','Shewanella baltica strain OS185','S_baltica_OS185','Bacteria','Prokaryota','Proteobacteria','Gammaproteobacteria','Alteromonadales','Shewanellaceae','Shewanella','baltica','OS185',1,'6/15/2007 11:59:01 AM','PNL\D3M578')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (195,1063,'Aspergillus_nidulans','Aspergillus nidulans','A_nidulans','Eukarya','Fungi','Ascomycota','Eurotiomycetes','Eurotiales','Trichocomaceae','Emericella','nidulans','',1,'9/14/2007 5:38:02 PM','PNL\D3M578')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (196,1063,'Aspergillus_nidulans','Aspergillus nidulans','A_nidulans','Eukarya','Fungi','Ascomycota','Eurotiomycetes','Eurotiales','Trichocomaceae','Aspergillus','nidulans','',1,'9/14/2007 5:39:23 PM','PNL\D3M578')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (197,1064,'Shewanella_baltica_OS223','Shewanella baltica strain OS223','S_baltica_OS223','Bacteria','Prokaryota','Proteobacteria','Gammaproteobacteria','Alteromonadales','Shewanellaceae','Shewanella','baltica','Os223',1,'10/9/2007 3:53:59 PM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (198,1064,'Shewanella_baltica_OS223','Shewanella baltica strain OS223','S_baltica_OS223','Bacteria','Prokaryota','Proteobacteria','Gammaproteobacteria','Alteromonadales','Shewanellaceae','Shewanella','baltica','OS223',1,'10/9/2007 3:54:46 PM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (199,31,'Microbial_Communities','Microbial Communities','Microbial_Communities','Bacteria','Prokaryota','Proteobacteria','','','','','','',1,'10/12/2007 6:04:57 PM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (200,1060,'Rifle_Community_Simulated','Microbial mixture of Shewanella and Deinococcus','Rifle_Sim','Bacteria','Prokaryota','Proteobacteria','na','na','na','none','none','na',1,'10/12/2007 6:05:53 PM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (201,1059,'Seawater_MicrobialCommunity','Bacterial commuity from Bermuda Atlantic Time Series Station','BATS','Bacteria','Prokaryota','Proteobacteria','na','na','na','na','na','na',1,'10/12/2007 6:06:01 PM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (202,1061,'Rifle_Community','Microbial mixture from Rifle, Colorado site','Rifle_Com','Bacteria','Prokaryota','various','unknown','unknown','unknown','unknown','unknown','unknown',1,'10/12/2007 6:06:32 PM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (203,1059,'Seawater_MicrobialCommunity','Bacterial commuity from Bermuda Atlantic Time Series Station','BATS','Bacteria','Prokaryota','various','na','na','na','na','na','na',1,'10/12/2007 6:07:24 PM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (204,1065,'Oregon_Seawater_MicrobialCommunity','Bacterial commuity from Oregon Coast','OR_Community','Bacteria','Prokaryota','various','na','na','na','-','-','-',1,'10/15/2007 9:59:55 AM','PNL\D3M580')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (205,1065,'Oregon_Seawater_MicrobialCommunity','Bacterial commuity from Oregon Coast','OR_Community','Bacteria','Prokaryota','various','na','na','na','na','na','na',1,'10/16/2007 11:31:32 AM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (206,1060,'Rifle_Community_Simulated','Microbial mixture of Shewanella and Deinococcus','Rifle_Sim','Bacteria','Prokaryota','Proteobacteria','na','na','na','na','na','na',1,'10/16/2007 11:31:56 AM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (207,1061,'Rifle_Community','Microbial mixture from Rifle, Colorado site','Rifle_Com','Bacteria','Prokaryota','various','na','na','na','na','na','na',1,'10/16/2007 11:32:27 AM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (208,1066,'Geobacter_lovelyi','Geobacter lovelyi SZ','G_lovelyi','Bacteria','Prokaryota','Proteobacteria','Deltaproteobacteria','Desulfuromonadales','Geobacteraceae','Geobacter','lovelyi','',1,'11/2/2007 2:25:54 PM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (209,1066,'Geobacter_lovelyi_SZ','Geobacter lovelyi SZ','G_lovelyi','Bacteria','Prokaryota','Proteobacteria','Deltaproteobacteria','Desulfuromonadales','Geobacteraceae','Geobacter','lovelyi','',1,'11/2/2007 2:26:48 PM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (210,1067,'Geobacter_bemidjiensis_Bem_T','Geobacter bemidjiensis Bem T','G_bemidjiensis','Bacteria','Prokaryota','Proteobacteria','Deltaproteobacteria','Desulfuromonadales','Geobacteraceae','Geobacter','bemidjiensis','',1,'11/2/2007 2:40:26 PM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (211,1066,'Geobacter_lovelyi_SZ','Geobacter lovelyi SZ','G_lovelyi','Bacteria','Prokaryota','Proteobacteria','Deltaproteobacteria','Desulfuromonadales','Geobacteraceae','Geobacter','lovelyi','',1,'11/2/2007 2:40:57 PM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (212,1067,'Geobacter_bemidjiensis_Bem_T','Geobacter bemidjiensis Bem T','G_bemidjiensis','Bacteria','Prokaryota','Proteobacteria','Deltaproteobacteria','Desulfuromonadales','Geobacteraceae','Geobacter','bemidjiensis','',1,'11/2/2007 2:41:12 PM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (213,1068,'Geobacter_sp_FRC-32','Geobacter species FRC-32','Geobacter_FRC-32','Bacteria','Prokaryota','Proteobacteria','Deltaproteobacteria','Desulfuromonadales','Geobacteraceae','Geobacter','species','FRC-32',1,'11/2/2007 2:43:39 PM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (214,1069,'Synecococcus_sp_CC9605','Synecococcus species CC9605','Synecococcus_CC9605','Bacteria','Prokaryota','Cyanobacteria','Cyanobacteria','','','Synecococcus','species','CC9605',1,'11/12/2007 11:07:01 AM','PNL\D3M580')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (215,1070,'Escherichia_coli_MG1655','Escherichia coli MG1655','E_coli','Bacteria','Prokaryota','Proteobacteria','Gammaproteobacteria','Enterobacteriales','Enterobacteriaceae','Escherichia','coli','MG1655',1,'11/16/2007 11:19:34 AM','PNL\D3M580')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (216,1071,'Termite_MicrobialCommunity','Nasutitermes corniger (termite) hindgut P3 microbial community','Termite_Com','Bacteria','Prokaryota','various','na','na','na','na','na','na',1,'12/7/2007 10:48:47 AM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (217,1072,'Thalassiosira_pseudonana','Thalassiosira pseudonana','T_pseudonana','Eukaryote','Protista','Heterokontophyta','Coscinodiscophyceae','Thalassiosirales','Thalassiosiraceae','Thalassiosira','pseudonana','',1,'2/11/2008 4:34:12 PM','PNL\D3M578')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (218,1073,'Rhodobacter_capsulatus_SB1003','Rhodobacter capsulatus','R_capsulatus','Bacteria','Prokaryota','Proteobacteria','Alpha Proteobacteria','Rhodobacterales','Rhodobacteraceae','Rhodobacter','capsulatus','SB1003',1,'2/12/2008 9:42:54 AM','PNL\D3M580')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (219,1070,'Escherichia_coli_MG1655','Escherichia coli MG1655; duplicate of Escherichia_coli_K-12; deleted by MEM on 2008-02-21','E_coli','Bacteria','Prokaryota','Proteobacteria','Gammaproteobacteria','Enterobacteriales','Enterobacteriaceae','Escherichia','coli','MG1655',0,'2/21/2008 4:48:32 PM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (220,3,'Escherichia_coli_K-12','Escherichia coli K-12','E_coli','Bacteria','Prokaryota','Proteobacteria','Gammaproteobacteria','Enterobacteriales','Enterobacteriaceae','Escherichia','coli','K-12 MG1655',1,'2/21/2008 5:55:17 PM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (221,1029,'Arthrobacter_sp_FB24','Arthrobacter','Arthrobacter','Bacteria','Prokaryota','Actinobacteria','Actinobacteridae','Actinomycetales','Micrococcaceae','Arthrobacter','species','FB24',1,'3/5/2008 10:11:54 AM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (222,1035,'Corynebacterium_glutamicum','C_glutamicum (RITE organism)','C_glutamicum','Bacteria','Prokaryota','Actinobacteria','Actinobacteridae','Actinomycetales','Corynebacteriaceae','Corynebacterium','glutamicum','',0,'3/5/2008 10:11:55 AM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (223,1055,'Kineococcus_radiotolerans_SRS30216','Kineococcus radiotolerans strain SRS30216','K_radiotolerans_SRS30216','Bacteria','Prokaryota','Actinobacteria','Actinobacteridae','Actinomycetales','Kineosporiaceae','Kineococcus','radiotolerans','SRS30216',1,'3/5/2008 10:11:56 AM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (224,1028,'Methanospirillum_hungatei_JF-1','Methanospirillum hungatei','M_hungatei','Archaea','Prokaryota','Euryarchaeota','Methanomicrobia','Methanomicrobiales','Methanospirllaceae','Methanospirillum','hungatei','JF-1',1,'3/5/2008 10:46:25 AM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (225,1091,'Xylanimonas_cellulosilytica_DSM_15894','Xylanimonas cellulosilytica DSM 15894','X_cellulosilytica','Bacteria','Prokaryota','Actinobacteria','Actinobacteridae','Actinomycetales','Promicromonosporaceae','Xylanimonas','cellulosilytica','DSM 15894',1,'3/5/2008 10:55:47 AM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (226,1090,'Thermobispora_bispora_DSM_43833','Thermobispora bispora DSM 43833','T_bispora','Bacteria','Prokaryota','Actinobacteria','Actinobacteridae','Actinomycetales','Pseudonocardiaceae','Thermobispora','bispora','DSM 43833',1,'3/5/2008 10:55:47 AM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (227,1089,'Stackebrandtia_nassauensis_DSM_44728','Stackebrandtia nassauensis DSM 44728','S_nassauensis','Bacteria','Prokaryota','Actinobacteria','Actinobacteridae','Actinomycetales','Glycomycetaceae','Stackebrandtia','nassauensis','DSM 44728',1,'3/5/2008 10:55:47 AM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (228,1088,'Slackia_heliotrinireducens_DSM_20476','Slackia heliotrinireducens DSM 20476','S_heliotrinireducens','Bacteria','Prokaryota','Actinobacteria','Coriobacteridae','Coriobacteriales','Coriobacteriaceae','Slackia','heliotrinireducens','DSM 20476',1,'3/5/2008 10:55:47 AM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (229,1087,'Sanguibacter_keddieii_DSM_10542','Sanguibacter keddieii DSM 10542','S_keddieii','Bacteria','Prokaryota','Actinobacteria','Actinobacteridae','Actinomycetales','Sanguibacteraceae','Sanguibacter','keddieii','DSM 10542',1,'3/5/2008 10:55:47 AM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (230,1086,'Saccharomonospora_viridis_DSM_43017','Saccharomonospora viridis DSM 43017','S_viridis','Bacteria','Prokaryota','Actinobacteria','Actinobacteridae','Actinomycetales','Pseudonocardiaceae','Saccharomonospora','viridis','DSM 43017',1,'3/5/2008 10:55:47 AM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (231,1085,'Patulibacter_minatonensis_DSM_18081','Patulibacter minatonensis DSM 18081','P_minatonensis','Bacteria','Prokaryota','Actinobacteria','Rubrobacteridae','Rubrobacterales','Patulibacteraceae','Patulibacter','minatonensis','DSM 18081',1,'3/5/2008 10:55:47 AM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (232,1084,'Nocardiopsis_dassonvillei_DSM_43111','Nocardiopsis dassonvillei DSM 43111','N_dassonvillei','Bacteria','Prokaryota','Actinobacteria','Actinobacteridae','Actinomycetales','Nocardiopsaceae','Nocardiopsis','dassonvillei','DSM 43111',1,'3/5/2008 10:55:47 AM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (233,1083,'Nakamurella_multipartita_DSM_44233','Nakamurella multipartita DSM 44233','N_multipartita','Bacteria','Prokaryota','Actinobacteria','Actinobacteridae','Actinomycetales','Nakamurellaceae','Nakamurella','multipartita','DSM 44233',1,'3/5/2008 10:55:47 AM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (234,1082,'Jiangella_gansuensis_DSM_44835','Jiangella gansuensis DSM 44835','J_gansuensis','Bacteria','Prokaryota','Actinobacteria','Actinobacteridae','Actinomycetales','Pseudonocardiaceae','Jiangella','gansuensis','DSM 44835',1,'3/5/2008 10:55:47 AM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (235,1081,'Halorhabdus_utahensis_DSM_12940','Halorhabdus utahensis DSM 12940','H_utahensis','Archaea','Prokaryota','Euryarchaeota','Halobacteria','Halobacteriales','Halobacteriaceae','Halorhabdus','utahensis','DSM 12940',1,'3/5/2008 10:55:47 AM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (236,1080,'Halogeometricum_borinquense_DSM_11551','Halogeometricum borinquense DSM 11551','H_borinquense','Archaea','Prokaryota','Euryarchaeota','Halobacteria','Halobacteriales','Halobacteriaceae','Halogeometricum','borinquense','DSM 11551',1,'3/5/2008 10:55:47 AM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (237,1079,'Dethiosulfovibrio_peptidovorans_DSM_11002','Dethiosulfovibrio peptidovorans DSM 11002','D_peptidovorans','Bacteria','','Firmicutes','Clostridia','Clostridiales','Syntrophomonadaceae','Dethiosulfovibrio','peptidovorans','DSM 11002',1,'3/5/2008 10:55:47 AM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (238,1078,'Cryptobacterium_curtum_DSM_15641','Cryptobacterium curtum DSM 15641','C_curtum','Bacteria','Prokaryota','Actinobacteria','Coriobacteridae','Coriobacteriales','Coriobacteriaceae','Cryptobacterium','curtum','DSM 15641',1,'3/5/2008 10:55:47 AM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (239,1077,'Cellulomonas_flavigena_DSM_20109','Cellulomonas flavigena DSM 20109','C_flavigena','Bacteria','Prokaryota','Actinobacteria','Actinobacteridae','Actinomycetales','Cellulomonadaceae','Cellulomonas','flavigena','DSM 20109',1,'3/5/2008 10:55:47 AM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (240,1076,'Brachybacterium_faecium_DSM_4810','Brachybacterium faecium DSM 4810','B_faecium','Bacteria','Prokaryota','Actinobacteria','Actinobacteridae','Actinomycetales','Dermabacteraceae','Brachybacterium','faecium','DSM 4810',1,'3/5/2008 10:55:47 AM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (241,1075,'Actinosynnema_mirum_DSM_43827','Actinosynnema mirum DSM 43827','A_mirum','Bacteria','Prokaryota','Actinobacteria','Actinobacteridae','Actinomycetales','Actinosynnemataceae','Actinosynnema','mirum','DSM 43827',1,'3/5/2008 10:55:47 AM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (242,1074,'Actinospica_robiniae_DSM_44927','Actinospica robiniae DSM 44927','A_robiniae','Bacteria','Prokaryota','Actinobacteria','Actinobacteridae','Actinomycetales','Actinospicaceae','Actinospica','robiniae','DSM 44927',1,'3/5/2008 10:55:47 AM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (243,1092,'Aspergillus_fumigatus','Aspergillus_fumigatus','A_fumigatus','Eukarya','Fungi','Ascomycota','Eurotiomycetes','Eurotiales','Trichocomaceae','Aspergillus','fumigatus','',1,'3/8/2008 10:38:37 AM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (244,1030,'Aspergillus_niger','Aspergillus niger','A_niger','Eukarya','Fungi','Ascomycota','Eurotiomycetes','Trichocomaceae','Trichocomaceae','Aspergillus','niger','',1,'3/8/2008 11:26:00 AM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (245,1093,'Methylophilales_HTCC2181','Methylophilales seqatater bacteria, no species','M_HTCC2181','Bacteria','Prokaryota','Proteobacteria','Betaproteobacteria','Methylophilales','unclassified Methylophilales','Methylophilales','','HTCC2181',1,'3/18/2008 3:38:52 PM','DMSWebUser')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (246,1094,'Anabaena variabilis','Anabaena variabilis','A_variabilis','Bacteria','Cyanobacteria','Cyanophyta','Cyanophyceae','Nostocales','Nostocaceae','Anabaena','variabilis','',1,'3/20/2008 3:43:13 PM','PNL\D3M578')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (247,1095,'Pelagibacter_ubique_HTC2181','Pelagibacter ubique','P_ubique','Bacteria','Prokaryota','Proteobacteria','Alpha Proteobacteria','Rickettsiales','','Pelagibacter','ubique','HTC2181',1,'4/1/2008 10:44:38 AM','D3M580 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (248,1096,'Prochlorococcus','Prochlorococcus','Prochloro','Bacteria','Prokaryota','Proteobacteria','Cyanobacteria','Synechococcales','Synechococcaceae','Prochlorococcus','','',1,'4/1/2008 11:03:46 AM','D3M580 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (249,1054,'Mesocricetus_auratus','Mesocricetus auratus (Golden or Syrian Hamster)','M_auratus','Eukarya','Metazoa','Chordata','Mammalia','Rodentia','Cricetidae','Mesocricetus','auratus','',1,'4/1/2008 6:35:55 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (250,1092,'Aspergillus_fumigatus','Aspergillus_fumigatus','A_fumigatus','Eukaryote','Fungi','Ascomycota','Eurotiomycetes','Eurotiales','Trichocomaceae','Aspergillus','fumigatus','',1,'4/1/2008 6:40:06 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (251,1063,'Aspergillus_nidulans','Aspergillus nidulans','A_nidulans','Eukaryote','Fungi','Ascomycota','Eurotiomycetes','Eurotiales','Trichocomaceae','Aspergillus','nidulans','',1,'4/1/2008 6:40:06 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (252,1056,'Magnaporthe_grisea','Magnaporthe grisea (Rice blast fungus)','M_grisea','Eukaryote','Fungi','Ascomycota','Sordariomycetes','Sordariomycetes incertae sedis','Magnaporthaceae','Magnaporthe','grisea','',1,'4/1/2008 6:40:06 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (253,1054,'Mesocricetus_auratus','Mesocricetus auratus (Golden or Syrian Hamster)','M_auratus','Eukaryote','Metazoa','Chordata','Mammalia','Rodentia','Cricetidae','Mesocricetus','auratus','',1,'4/1/2008 6:40:06 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (254,1040,'Pimephales_promelas','Pimephales promelas (Fathead minnow)','P_promelas','Eukaryote','Metazoa','Chordata','Actinopterygii','Cypriniformes','Cyprinidae','Pimephales','promelas','',1,'4/1/2008 6:40:06 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (255,1032,'Gallus_gallus','Gallus gallus (chicken)','G_gallus','Eukaryote','Metazoa','Chordata','Mammalia','Galligormes','Phasianidae','Gallus','gallus','',1,'4/1/2008 6:40:06 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (256,1031,'Macaca_nemestrina','Macaque monkey','Macaque','Eukaryote','Metazoa','Chordata','Mammalia','Primates','Cercopithecidae','Macaca','nemestrina','',1,'4/1/2008 6:40:06 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (257,1030,'Aspergillus_niger','Aspergillus niger','A_niger','Eukaryote','Fungi','Ascomycota','Eurotiomycetes','Trichocomaceae','Trichocomaceae','Aspergillus','niger','',1,'4/1/2008 6:40:06 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (258,1007,'Caenorhabditis_elegans','Caenorhabditis elegans','C_elegans','Eukaryote','Metazoa','Nematoda','Chromadorea','Rhabditida','Rhabditidae','Caenorhabditis','elegans','',1,'4/1/2008 6:40:06 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (259,1006,'Trichoderma_reesei','Trichoderma reesei','T_reesei','Eukaryote','Fungi','Ascomycota','Sordariomycetes','Hypocreales','Hypocreaceae','Trichoderma','reesei','',1,'4/1/2008 6:40:06 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (260,39,'Cricetulus_griseus','Cricetulus griseus (Chinese Hamster)','C_griseus','Eukaryote','Animalia','Chordata','Mammalia','Rodentia','Muridae','Cricetulus','griseus','',1,'4/1/2008 6:40:06 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (261,38,'Fusarium_graminearum','Fusarium graminearum','F_graminearum','Eukaryote','Fungi','Ascomycota','Sordariomycetes','Hypocreales','Nectriaceae','Fusarium','graminearum','',1,'4/1/2008 6:40:06 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (262,37,'Equus_caballus','Equus Caballus (Domestic Horse)','E_caballus','Eukaryote','Metazoa','Chordata','Mammalia','Perissodactyla','Equidae','Equus','caballus','',1,'4/1/2008 6:40:06 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (263,36,'Rattus_norvegicus','Rattus Norvegicus (Rat)','R_norvegicus','Eukaryote','Metazoa','Chordata','Mammalia','Rodentia','Muridae','Rattus','norvegicus','',1,'4/1/2008 6:40:06 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (264,35,'Plasmodium_falciparum','Plasmodium falciparum','P_falciparum','Eukaryote','Protozoa','Myzozoa','Aconoidasida','Haemosporida','Plasmodiidae','Plasmodium','falciparum','',1,'4/1/2008 6:40:06 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (265,32,'Arabidopsis_thaliana','Arabidopsis Thaliana','A_thaliana','Eukaryote','Plantae','Magnoliophyta','Magnoliopsida','Brassicales','Brassicaceae','Arabidopsis','thaliana','',1,'4/1/2008 6:40:06 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (266,28,'Oryctolagus_cuniculus','Oryctolagus cuniculus (Domestic Rabbit)','O_cuniculus','Eukaryote','Metazoa','Chordata','Mammalia','Lagomorpha','Leporidae','Oryctolagus','cuniculus','',1,'4/1/2008 6:40:06 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (267,26,'Drosophilia_melanogaster','Drosophila Melanogaster (Fruit Fly)','D_melanogaster','Eukaryote','Metazoa','Arthropoda','Insecta','Diptera','Drosophilidae','Drosophilia','melanogaster','',1,'4/1/2008 6:40:06 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (268,25,'Phanerochaete_chrysosporium_RP-78','Phanerochaete chrysosporium','P_chrysosporium','Eukaryote','Fungi','Basidiomycota','Homobasidiomycetes','Aphyllophorales','Corticiaceae','Phanerochaete','chrysosporium','RP-78',1,'4/1/2008 6:40:06 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (269,24,'Mus_musculus','Mus musculus (Mouse)','M_musculus','Eukaryote','Metazoa','Chordata','Mammalia','Rodentia','Muridae','Mus','musculus','',1,'4/1/2008 6:40:06 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (270,18,'Danio_rerio','<NAME> (Zebrafish)','D_rerio','Eukaryote','Metazoa','Chordata','Actinopterygii','Cypriniformes','Cyprinidae','Danio','rerio','',0,'4/1/2008 6:40:06 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (271,17,'Sus_scrofa_domestica','Sus domesticus (Pig)','S_scrofa','Eukaryote','Metazoa','Chordata','Mammalia','Artiodactyla','Suidae','Sus','scrofa','domestica',1,'4/1/2008 6:40:06 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (272,15,'Neurospora_crassa','Neurospora crassa','N_Crassa','Eukaryote','Fungi','Ascomycota','Sordariomycetes','Sordariales','Sordariaceae','Neurospora','crassa','',1,'4/1/2008 6:40:06 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (273,9,'Bos_taurus','Bovine Serum Albumin (BSA)','B_Taurus','Eukaryote','Metazoa','Chordata','Mammalia','Artiodactyla','Bovidae','Bos','taurus','',1,'4/1/2008 6:40:06 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (274,8,'Homo_sapiens','Homo Sapiens (Human)','H_sapiens','Eukaryote','Metazoa','Chordata','Mammalia','Primates','Hominidae','Homo','sapiens','',1,'4/1/2008 6:40:06 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (275,7,'Mus_musculus_cortical_neuron','Mus musculus (White Mouse)','M_musculus_cortical_neuron','Eukaryote','Metazoa','Chordata','Mammalia','Rodentia','Muridae','Mus','musculus','',0,'4/1/2008 6:40:06 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (276,6,'Mus_musculus_astrocyte','Mus musculus (Astrocyte)','M_musculus_astrocyte','Eukaryote','Metazoa','Chordata','Mammalia','Rodentia','Muridae','Mus','musculus','astrocyte',0,'4/1/2008 6:40:06 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (277,5,'Mus_musculus_B16','Mus musculus (B16)','M_musculus_B16','Eukaryote','Metazoa','Chordata','Mammalia','Rodentia','Muridae','Mus','musculus','B16',0,'4/1/2008 6:40:06 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (278,2,'Saccharomyces_cerevisiae','Saccharomyces cerevisiae (Baker''s Yeast)','S_cerevisiae','Eukaryote','Fungi','Ascomycota','Saccharomycetes','Saccharomycetales','Saccharomycetaceae','Saccharomyces','cerevisiae','',1,'4/1/2008 6:40:06 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (279,39,'Cricetulus_griseus','Cricetulus griseus (Chinese Hamster)','C_griseus','Eukaryote','Metazoa','Chordata','Mammalia','Rodentia','Muridae','Cricetulus','griseus','',1,'4/1/2008 6:40:31 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (280,1091,'Xylanimonas_cellulosilytica_DSM_15894','Xylanimonas cellulosilytica DSM 15894','X_cellulosilytica','Bacteria','Prokaryote','Actinobacteria','Actinobacteridae','Actinomycetales','Promicromonosporaceae','Xylanimonas','cellulosilytica','DSM 15894',1,'4/1/2008 6:41:42 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (281,1090,'Thermobispora_bispora_DSM_43833','Thermobispora bispora DSM 43833','T_bispora','Bacteria','Prokaryote','Actinobacteria','Actinobacteridae','Actinomycetales','Pseudonocardiaceae','Thermobispora','bispora','DSM 43833',1,'4/1/2008 6:41:42 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (282,1089,'Stackebrandtia_nassauensis_DSM_44728','Stackebrandtia nassauensis DSM 44728','S_nassauensis','Bacteria','Prokaryote','Actinobacteria','Actinobacteridae','Actinomycetales','Glycomycetaceae','Stackebrandtia','nassauensis','DSM 44728',1,'4/1/2008 6:41:42 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (283,1088,'Slackia_heliotrinireducens_DSM_20476','Slackia heliotrinireducens DSM 20476','S_heliotrinireducens','Bacteria','Prokaryote','Actinobacteria','Coriobacteridae','Coriobacteriales','Coriobacteriaceae','Slackia','heliotrinireducens','DSM 20476',1,'4/1/2008 6:41:42 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (284,1096,'Prochlorococcus','Prochlorococcus','Prochloro','Bacteria','Prokaryote','Proteobacteria','Cyanobacteria','Synechococcales','Synechococcaceae','Prochlorococcus','','',1,'4/1/2008 6:41:42 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (285,1095,'Pelagibacter_ubique_HTC2181','Pelagibacter ubique','P_ubique','Bacteria','Prokaryote','Proteobacteria','Alpha Proteobacteria','Rickettsiales','','Pelagibacter','ubique','HTC2181',1,'4/1/2008 6:41:42 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (286,1093,'Methylophilales_HTCC2181','Methylophilales seqatater bacteria, no species','M_HTCC2181','Bacteria','Prokaryote','Proteobacteria','Betaproteobacteria','Methylophilales','unclassified Methylophilales','Methylophilales','','HTCC2181',1,'4/1/2008 6:41:42 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (287,1087,'Sanguibacter_keddieii_DSM_10542','Sanguibacter keddieii DSM 10542','S_keddieii','Bacteria','Prokaryote','Actinobacteria','Actinobacteridae','Actinomycetales','Sanguibacteraceae','Sanguibacter','keddieii','DSM 10542',1,'4/1/2008 6:41:42 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (288,1086,'Saccharomonospora_viridis_DSM_43017','Saccharomonospora viridis DSM 43017','S_viridis','Bacteria','Prokaryote','Actinobacteria','Actinobacteridae','Actinomycetales','Pseudonocardiaceae','Saccharomonospora','viridis','DSM 43017',1,'4/1/2008 6:41:42 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (289,1085,'Patulibacter_minatonensis_DSM_18081','Patulibacter minatonensis DSM 18081','P_minatonensis','Bacteria','Prokaryote','Actinobacteria','Rubrobacteridae','Rubrobacterales','Patulibacteraceae','Patulibacter','minatonensis','DSM 18081',1,'4/1/2008 6:41:42 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (290,1084,'Nocardiopsis_dassonvillei_DSM_43111','Nocardiopsis dassonvillei DSM 43111','N_dassonvillei','Bacteria','Prokaryote','Actinobacteria','Actinobacteridae','Actinomycetales','Nocardiopsaceae','Nocardiopsis','dassonvillei','DSM 43111',1,'4/1/2008 6:41:42 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (291,1083,'Nakamurella_multipartita_DSM_44233','Nakamurella multipartita DSM 44233','N_multipartita','Bacteria','Prokaryote','Actinobacteria','Actinobacteridae','Actinomycetales','Nakamurellaceae','Nakamurella','multipartita','DSM 44233',1,'4/1/2008 6:41:42 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (292,1082,'Jiangella_gansuensis_DSM_44835','Jiangella gansuensis DSM 44835','J_gansuensis','Bacteria','Prokaryote','Actinobacteria','Actinobacteridae','Actinomycetales','Pseudonocardiaceae','Jiangella','gansuensis','DSM 44835',1,'4/1/2008 6:41:42 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (293,1081,'Halorhabdus_utahensis_DSM_12940','Halorhabdus utahensis DSM 12940','H_utahensis','Archaea','Prokaryote','Euryarchaeota','Halobacteria','Halobacteriales','Halobacteriaceae','Halorhabdus','utahensis','DSM 12940',1,'4/1/2008 6:41:42 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (294,1080,'Halogeometricum_borinquense_DSM_11551','Halogeometricum borinquense DSM 11551','H_borinquense','Archaea','Prokaryote','Euryarchaeota','Halobacteria','Halobacteriales','Halobacteriaceae','Halogeometricum','borinquense','DSM 11551',1,'4/1/2008 6:41:42 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (295,1078,'Cryptobacterium_curtum_DSM_15641','Cryptobacterium curtum DSM 15641','C_curtum','Bacteria','Prokaryote','Actinobacteria','Coriobacteridae','Coriobacteriales','Coriobacteriaceae','Cryptobacterium','curtum','DSM 15641',1,'4/1/2008 6:41:42 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (296,1077,'Cellulomonas_flavigena_DSM_20109','Cellulomonas flavigena DSM 20109','C_flavigena','Bacteria','Prokaryote','Actinobacteria','Actinobacteridae','Actinomycetales','Cellulomonadaceae','Cellulomonas','flavigena','DSM 20109',1,'4/1/2008 6:41:42 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (297,1076,'Brachybacterium_faecium_DSM_4810','Brachybacterium faecium DSM 4810','B_faecium','Bacteria','Prokaryote','Actinobacteria','Actinobacteridae','Actinomycetales','Dermabacteraceae','Brachybacterium','faecium','DSM 4810',1,'4/1/2008 6:41:42 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (298,1075,'Actinosynnema_mirum_DSM_43827','Actinosynnema mirum DSM 43827','A_mirum','Bacteria','Prokaryote','Actinobacteria','Actinobacteridae','Actinomycetales','Actinosynnemataceae','Actinosynnema','mirum','DSM 43827',1,'4/1/2008 6:41:42 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (299,1073,'Rhodobacter_capsulatus_SB1003','Rhodobacter capsulatus','R_capsulatus','Bacteria','Prokaryote','Proteobacteria','Alpha Proteobacteria','Rhodobacterales','Rhodobacteraceae','Rhodobacter','capsulatus','SB1003',1,'4/1/2008 6:41:42 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (300,1074,'Actinospica_robiniae_DSM_44927','Actinospica robiniae DSM 44927','A_robiniae','Bacteria','Prokaryote','Actinobacteria','Actinobacteridae','Actinomycetales','Actinospicaceae','Actinospica','robiniae','DSM 44927',1,'4/1/2008 6:41:42 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (301,1067,'Geobacter_bemidjiensis_Bem_T','Geobacter bemidjiensis Bem T','G_bemidjiensis','Bacteria','Prokaryote','Proteobacteria','Deltaproteobacteria','Desulfuromonadales','Geobacteraceae','Geobacter','bemidjiensis','',1,'4/1/2008 6:41:42 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (302,1046,'Bacillus_anthracis_Sterne','Bacillus anthracis strain Sterne','B_anthracis_Sterne','Bacteria','Prokaryote','Firmicutes','Bacilli','Bacillales','Bacillaceae','Bacillus','anthracis','Sterne',1,'4/1/2008 6:41:42 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (303,1045,'Yersinia_pseudotuberculosis_PB1_Plus','Yersinia pseudotuberculosis strain PB1/+','Y_pseudotuberculosis_PB1_Plus','Bacteria','Prokaryote','Proteobacteria','Gammaproteobacteria','Enterobacteriales','Enterobacteriaceae','Yersinia','pseudotuberculosis','PB1_Plus',1,'4/1/2008 6:41:42 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (304,1071,'Termite_MicrobialCommunity','Nasutitermes corniger (termite) hindgut P3 microbial community','Termite_Com','Bacteria','Prokaryote','various','na','na','na','na','na','na',1,'4/1/2008 6:41:42 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (305,1069,'Synecococcus_sp_CC9605','Synecococcus species CC9605','Synecococcus_CC9605','Bacteria','Prokaryote','Cyanobacteria','Cyanobacteria','','','Synecococcus','species','CC9605',1,'4/1/2008 6:41:42 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (306,1068,'Geobacter_sp_FRC-32','Geobacter species FRC-32','Geobacter_FRC-32','Bacteria','Prokaryote','Proteobacteria','Deltaproteobacteria','Desulfuromonadales','Geobacteraceae','Geobacter','species','FRC-32',1,'4/1/2008 6:41:42 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (307,1066,'Geobacter_lovelyi_SZ','Geobacter lovelyi SZ','G_lovelyi','Bacteria','Prokaryote','Proteobacteria','Deltaproteobacteria','Desulfuromonadales','Geobacteraceae','Geobacter','lovelyi','',1,'4/1/2008 6:41:42 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (308,1065,'Oregon_Seawater_MicrobialCommunity','Bacterial community from Oregon Coast','OR_Community','Bacteria','Prokaryote','various','na','na','na','na','na','na',1,'4/1/2008 6:41:42 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (309,1064,'Shewanella_baltica_OS223','Shewanella baltica strain OS223','S_baltica_OS223','Bacteria','Prokaryote','Proteobacteria','Gammaproteobacteria','Alteromonadales','Shewanellaceae','Shewanella','baltica','OS223',1,'4/1/2008 6:41:42 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (310,1062,'Shewanella_baltica_OS185','Shewanella baltica strain OS185','S_baltica_OS185','Bacteria','Prokaryote','Proteobacteria','Gammaproteobacteria','Alteromonadales','Shewanellaceae','Shewanella','baltica','OS185',1,'4/1/2008 6:41:42 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (311,1061,'Rifle_Community','Microbial mixture from Rifle, Colorado site','Rifle_Com','Bacteria','Prokaryote','various','na','na','na','na','na','na',1,'4/1/2008 6:41:42 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (312,1060,'Rifle_Community_Simulated','Microbial mixture of Shewanella and Deinococcus','Rifle_Sim','Bacteria','Prokaryote','Proteobacteria','na','na','na','na','na','na',1,'4/1/2008 6:41:42 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (313,1059,'Seawater_MicrobialCommunity','Bacterial community from Bermuda Atlantic Time Series Station','BATS','Bacteria','Prokaryote','various','na','na','na','na','na','na',1,'4/1/2008 6:41:42 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (314,1058,'Burkholderia_mallei','Burkholderia mallei','B_mallei','Bacteria','Prokaryote','Proteobacteria','Betaproteobacteria','Burkholderiales','Burkholderiaceae','Burkholderia','mallei','',1,'4/1/2008 6:41:42 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (315,1057,'Delta_proteobacterium_NaphS2','Delta proteobacterium strain NaphS2, possibly geobacter species','D_proteobacterium_NaphS2','Bacteria','Prokaryote','Proteobacteria','Deltaproteobacteria','Desulfobacterales','Desulfobacteraceae','Desulfobacterium','Deltaproteobacterium','NaphS2',1,'4/1/2008 6:41:42 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (316,1055,'Kineococcus_radiotolerans_SRS30216','Kineococcus radiotolerans strain SRS30216','K_radiotolerans_SRS30216','Bacteria','Prokaryote','Actinobacteria','Actinobacteridae','Actinomycetales','Kineosporiaceae','Kineococcus','radiotolerans','SRS30216',1,'4/1/2008 6:41:42 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (317,1039,'Anaplasma_phagocytophilium','Anaplasma phagocytophilium','A_phagocytophilium','Bacteria','Prokaryote','Proteobacteria','Alpha Proteobacteria','Rickettsiales','Anaplasmataceae','Anaplasma','phagocytophilium','',1,'4/1/2008 6:41:42 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (318,1053,'Shewanella_spp','Shewanella, unknown species','Shewanella_spp','Bacteria','Prokaryote','Proteobacteria','Gammaproteobacteria','Alteromonadales','Shewanellaceae','Shewanella','species','',1,'4/1/2008 6:41:42 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (319,1052,'Francisella_tularensis','Francisella tularensis, sub-species novicida','F_tularensis','Bacteria','Prokaryote','Proteobacteria','Gammaproteobacteria','Thiotrichales','Francisellaceae','Francisella','tularensis','',1,'4/1/2008 6:41:42 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (320,1049,'Geobacter_uraniumreducens','Geobacter uranium reducens','G_uraniumreducens','Bacteria','Prokaryote','Proteobacteria','Deltaproteobacteria','Desulfuromonadales','Geobacteraceae','Geobacter','uraniumreducens','',1,'4/1/2008 6:41:42 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (321,1048,'Pseudomonas_fluorescens_PfO-1','Pseudomonas fluorescens','P_fluorescens','Bacteria','Prokaryote','Proteobacteria','Gammaproteobacteria','Pseudomonadales','Pseudomonadaceae','Pseudomonas','fluorescens','PfO-1',1,'4/1/2008 6:41:42 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (322,1047,'Anaeromyxobacter_dehalogenans','Anaeromyxobacter dehalogenans','A_dehalogenans','Bacteria','Prokaryote','Proteobacteria','Deltaproteobacteria','Myxococcales','Myxococcaceae','Anaeromyxobacter','dehalogenans','',0,'4/1/2008 6:41:42 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (323,1044,'Yersinia_pseudotuberculosis_YPIII','Yersinia pseudotuberculosis strain YPIII','Y_pseudotuberculosis_YPIII','Bacteria','Prokaryote','Proteobacteria','Gammaproteobacteria','Enterobacteriales','Enterobacteriaceae','Yersinia','pseudotuberculosis','YPIII',1,'4/1/2008 6:41:42 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (324,1043,'Yersinia_pestis_Pestoides_F','Yersinia pestis strain Pestoides F','Y_pestis_Pestoides_F','Bacteria','Prokaryote','Proteobacteria','Gammaproteobacteria','Enterobacteriales','Enterobacteriaceae','Yersinia','pestis','Pestoides_F',1,'4/1/2008 6:41:42 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (325,1042,'Yersinia_pestis_CO92','Yersinia pestis strain CO92','Y_pestis_CO92','Bacteria','Prokaryote','Proteobacteria','Gammaproteobacteria','Enterobacteriales','Enterobacteriaceae','Yersinia','pestis','CO92',1,'4/1/2008 6:41:42 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (326,1041,'Ehrlichia_chaffeensis','Ehrlichia chaffeensis','E_chaffeensis','Bacteria','Prokaryote','Proteobacteria','Alpha Proteobacteria','Rickettsiales','Anaplasmataceae','Ehrlichia','chaffeensis','',1,'4/1/2008 6:41:42 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (327,1038,'Caulobacter_crescentus_CB15','Caulobacter crescentus','C_crescentus','Bacteria','Prokaryote','Proteobacteria','Alpha Proteobacteria','Caulobacterales','Caulobacteraceae','Caulobacter','crescentus','CB15',1,'4/1/2008 6:41:42 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (328,1037,'Ralstonia_pickettii','Ralstonia pickettii','R_pickettii','Bacteria','Prokaryote','Proteobacteria','Betaproteobacteria','Burkholderiales','Burkholderiaceae','Ralstonia','pickettii','',1,'4/1/2008 6:41:42 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (329,1036,'Pelagibacter_ubique_HTC1062','Pelagibacter ubique','P_ubique','Bacteria','Prokaryote','Proteobacteria','Alpha Proteobacteria','Rickettsiales','','Pelagibacter','ubique','HTC1062',1,'4/1/2008 6:41:42 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (330,1035,'Corynebacterium_glutamicum','C_glutamicum (RITE organism)','C_glutamicum','Bacteria','Prokaryote','Actinobacteria','Actinobacteridae','Actinomycetales','Corynebacteriaceae','Corynebacterium','glutamicum','',0,'4/1/2008 6:41:42 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (331,1029,'Arthrobacter_sp_FB24','Arthrobacter','Arthrobacter','Bacteria','Prokaryote','Actinobacteria','Actinobacteridae','Actinomycetales','Micrococcaceae','Arthrobacter','species','FB24',1,'4/1/2008 6:41:42 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (332,1028,'Methanospirillum_hungatei_JF-1','Methanospirillum hungatei','M_hungatei','Archaea','Prokaryote','Euryarchaeota','Methanomicrobia','Methanomicrobiales','Methanospirllaceae','Methanospirillum','hungatei','JF-1',1,'4/1/2008 6:41:42 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (333,1027,'Pelobacter_carbinolicus_DSM_2380','Pelobacter carbonolicus','P_carbinolicus','Bacteria','Prokaryote','Proteobacteria','Deltaproteobacteria','Desulfuromonadales','Pelobacteraceae','Pelobacter','carbinolicus','DSM 2380',1,'4/1/2008 6:41:42 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (334,1026,'Magnetospirillum_magneticum_AMB-1','Magnetospirillum magneticum','M_magneticum','Bacteria','Prokaryote','Proteobacteria','Alpha Proteobacteria','Rhodospirllales','Rhodospirllaceae','Magnetospirillum','magneticum','AMB-1',1,'4/1/2008 6:41:42 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (335,1033,'Thermosynechococcus_elongatus_BP-1','Thermosynechococcus elongatus','T_elongatus','Bacteria','Prokaryote','Cyanobacteria','Chroobacteria','Chroococcales','','Thermosynechococcus','elongatus','BP-1',1,'4/1/2008 6:41:42 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (336,1024,'Shewanella_putrefaciens_W3-18-1','Shewanella putrefaciens W3-18-1','Shewanella_W3-18-1','Bacteria','Prokaryote','Proteobacteria','Gammaproteobacteria','Alteromonadales','Shewanellaceae','Shewanella','putrefaciens','W3-18-1',1,'4/1/2008 6:41:42 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (337,1023,'Shewanella_sp_MR-7','Shewanella species MR-7','Shewanella_MR-7','Bacteria','Prokaryote','Proteobacteria','Gammaproteobacteria','Alteromonadales','Shewanellaceae','Shewanella','species','MR-7',1,'4/1/2008 6:41:42 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (338,1022,'Shewanella_sp_MR-4','Shewanella species MR-4','Shewanella_MR-4','Bacteria','Prokaryote','Proteobacteria','Gammaproteobacteria','Alteromonadales','Shewanellaceae','Shewanella','species','MR-4',1,'4/1/2008 6:41:42 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (339,1021,'Shewanella_sp_ANA-3','Shewanella species ANA3','S_trabarsenatis_ANA-3','Bacteria','Prokaryote','Proteobacteria','Gammaproteobacteria','Alteromonadales','Shewanellaceae','Shewanella','species','ANA-3',1,'4/1/2008 6:41:42 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (340,1020,'Shewanella_putrefaciens_200','Shewanella putrefaciens 200','S_putrefaciens_200','Bacteria','Prokaryote','Proteobacteria','Gammaproteobacteria','Alteromonadales','Shewanellaceae','Shewanella','putrefaciens','200',0,'4/1/2008 6:41:42 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (341,1019,'Shewanella_frigidimarina_NCIMB_400','Shewanella frigidimarina NCIMB400','S_frigidmarina_NCIMB_400','Bacteria','Prokaryote','Proteobacteria','Gammaproteobacteria','Alteromonadales','Shewanellaceae','Shewanella','frigidimarina','NCIMB 400',1,'4/1/2008 6:41:42 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (342,1018,'Shewanella_loihica_PV-4','Shewanella loihica PV-4','Shewanella_PV-4','Bacteria','Prokaryote','Proteobacteria','Gammaproteobacteria','Alteromonadales','Shewanellaceae','Shewanella','loihica','PV-4',1,'4/1/2008 6:41:42 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (343,1017,'Shewanella_putrefaciens_CN-32','Shewanella putrefaciens CN-32','S_putrefaciens_CN-32','Bacteria','Prokaryote','Proteobacteria','Gammaproteobacteria','Alteromonadales','Shewanellaceae','Shewanella','putrefaciens','CN-32',1,'4/1/2008 6:41:42 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (344,1016,'Shewanella_denitrificans_OS217','Shewanella dentrificans OS217T','S_denitrificans_OS217','Bacteria','Prokaryote','Proteobacteria','Gammaproteobacteria','Alteromonadales','Shewanellaceae','Shewanella','denitrificans','OS217',1,'4/1/2008 6:41:42 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (345,1015,'Shewanella_amazonensis_SB2B','Shewanella amazonesis SB2B','S_amazonensis','Bacteria','Prokaryote','Proteobacteria','Gammaproteobacteria','Alteromonadales','Shewanellaceae','Shewanella','amazonensis','SB2B',1,'4/1/2008 6:41:42 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (346,1014,'Cyanothece_sp_ATCC51142','Cyanothece','Cyanothece','Bacteria','Prokaryote','Cyanobacteria','Chroobacteria','Chroococcales','Synechococcaceae','Cyanothece','species','ATCC51142',1,'4/1/2008 6:41:42 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (347,1011,'Shewanella_baltica_OS155','Shewanella baltica strain OS155','S_baltica_OS155','Bacteria','Prokaryote','Proteobacteria','Gammaproteobacteria','Alteromonadales','Shewanellaceae','Shewanella','baltica','OS155',1,'4/1/2008 6:41:42 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (348,1009,'Yersinia_enterocolitica','Yersinia enterocolitica','Y_enterocolitica','Bacteria','Prokaryote','Proteobacteria','Gammaproteobacteria','Enterobacteriales','Enterobacteriaceae','Yersinia','enterocolitica','',1,'4/1/2008 6:41:42 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (349,1012,'Syntrophobacter_fumaroxidans','Syntrophobacter fumaroxidans','S_fumaroxidans','Bacteria','Prokaryote','Proteobacteria','Deltaproteobacteria','Syntrophobacterales','Syntrophobacteraceae','Syntrophobacter','fumaroxidans','',1,'4/1/2008 6:41:42 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (350,1008,'Yersinia_pseudotuberculosis_IP_32953','Yersinia pseudotuburculosis','Y_pseudotuberculosis','Bacteria','Prokaryote','Proteobacteria','Gammaproteobacteria','Enterobacteriales','Enterobacteriaceae','Yersinia','pseudotuberculosis','IP 32953',1,'4/1/2008 6:41:42 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (351,1005,'Rhodopseudomonas_palustris','Microbe Rhodopseudomonas palustris','R_palustris','Bacteria','Prokaryote','Proteobacteria','Alpha Proteobacteria','Rhizobiales','Bradyrhizobiaceae','Rhodopseudomonas','palustris','',1,'4/1/2008 6:41:42 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (352,1003,'Salmonella_typhimurium_LT2','Salmonella typhimurium, pathogenic to mice and hum','S_typhimurium','Bacteria','Prokaryote','Proteobacteria','Gammaproteobacteria','Enterobacteriales','Enterobacteriaceae','Salmonella','typhimurium','LT2',1,'4/1/2008 6:41:42 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (353,1002,'Salmonella_typhi_TY2','Salmonella typhi, causative agent of Typhoid Fever','S_Typhi','Bacteria','Prokaryote','Proteobacteria','Gammaproteobacteria','Enterobacteriales','Enterobacteriaceae','Salmonella','typhi','TY2',1,'4/1/2008 6:41:42 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (354,34,'Methanosarcina_barkeri','Methanosarcina Barkeri','M_barkeri','Archaea','Prokaryote','Euryarchaeota','Methanomicrobia','Methanosarcinales','Methanosarcinaceae','Methanosarcina','barkeri','',1,'4/1/2008 6:41:42 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (355,33,'Desulfovibrio_desulfuricans_G20','Desulfovibrio Desulfuricans G20','D_desulfuricans','Bacteria','Prokaryote','Proteobacteria','Deltaproteobacteria','Desulfovibrionales','Desulfovibrionaceae','Desulfovibrio','desulfuricans','G20',1,'4/1/2008 6:41:42 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (356,31,'Microbial_Communities','Microbial Communities','Microbial_Communities','Bacteria','Prokaryote','Proteobacteria','','','','','','',1,'4/1/2008 6:41:42 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (357,30,'Desulfovibrio_vulgaris_Hildenborough','Desulfovibrio vulgaris Hildenborough','D_vulgaris','Bacteria','Prokaryote','Proteobacteria','Deltaproteobacteria','Desulfovibrionales','Desulfovibrionaceae','Desulfovibrio','vulgaris','Hildenborough',1,'4/1/2008 6:41:42 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (358,29,'Geobacter_metallireducens_GS-15','Geobacter Metallireducens','G_metallireducens','Bacteria','Prokaryote','Proteobacteria','Deltaproteobacteria','Desulfuromonadales','Geobacteraceae','Geobacter','metallireducens','GS-15',1,'4/1/2008 6:41:42 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (359,27,'Rhodobacter_sphaeroides_2.4.1','Rhodobacter Sphaeroides','R_sphaeroides','Bacteria','Prokaryote','Proteobacteria','Alpha Proteobacteria','Rhodobacterales','Rhodobacteraceae','Rhodobacter','sphaeroides','2.4.1',1,'4/1/2008 6:41:42 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (360,23,'Geobacter_sulfurreducens_PCA','Geobacter sulfurreducens','G_sulfurreducens','Bacteria','Prokaryote','Proteobacteria','Deltaproteobacteria','Desulfuromonadales','Geobacteraceae','Geobacter','sulfurreducens','PCA',1,'4/1/2008 6:41:42 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (361,22,'Cyanobacterium_synechocystis_PCC6803','Cyanobacterium synechocystis','C_synechocystis','Bacteria','Prokaryote','Cyanobacteria','Chroobacteria','Chroococcales','Synechococcaceae','Cyanobacterium','synechocystis','PCC6803',1,'4/1/2008 6:41:42 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (362,21,'Borrelia_burdorferi_B31','Borrelia burgdorferi','B_burgdorferi','Bacteria','Prokaryote','Spirochaetes','Spirochaetes','Spirochaetales','Spirochaetaceae','Borrelia','burdorferi','B31',1,'4/1/2008 6:41:42 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (363,20,'Yersinia_pestis_KIM','Yersinia pestis','Y_pestis','Bacteria','Prokaryote','Proteobacteria','Gammaproteobacteria','Enterobacteriales','Enterobacteriaceae','Yersinia','pestis','KIM',1,'4/1/2008 6:41:42 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (364,19,'rhodopseudomonas','Rhodopseudomonas palustris (superseded by R_palustris)','R_palustris','Bacteria','Prokaryote','Proteobacteria','Alpha Proteobacteria','Rhizobiales','Bradyrhizobiaceae','Rhodopseudomonas','palustris','',0,'4/1/2008 6:41:42 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (365,11,'Pseudomonas_aeruginosa','Pseudomonas aeruginosa','P_aeruginosa','Bacteria','Prokaryote','Proteobacteria','Gammaproteobacteria','Pseudomonadales','Pseudomonadaceae','Pseudomonas','aeruginosa','',1,'4/1/2008 6:41:42 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (366,10,'Treponema_pallidum','Treponema pallidum','T_pallidum','Bacteria','Prokaryote','Spirochaetes','Spirochaetes','Spirochaetales','Spirochaetaceae','Treponema','pallidum','',1,'4/1/2008 6:41:42 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (367,4,'Shewanella_oneidensis_MR-1','Shewanella Oneidensis MR-1','S_oneidensis','Bacteria','Prokaryote','Proteobacteria','Gammaproteobacteria','Alteromonadales','Shewanellaceae','Shewanella','oneidensis','MR-1',1,'4/1/2008 6:41:42 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (368,3,'Escherichia_coli_K-12','Escherichia coli K-12','E_coli','Bacteria','Prokaryote','Proteobacteria','Gammaproteobacteria','Enterobacteriales','Enterobacteriaceae','Escherichia','coli','K-12 MG1655',1,'4/1/2008 6:41:42 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (369,1,'Deinococcus_radiodurans_R1','Deinococcus radiodurans','D_radiodurans','Bacteria','Prokaryote','Deinococcus-Thermus','Deinococci','Deinococcales','Deinococcaceae','Deinococcus','radiodurans','R1',1,'4/1/2008 6:41:42 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (370,1054,'Mesocricetus_auratus','Mesocricetus auratus (Golden or Syrian Hamster)','M_auratus','Eukaryote','Metazoan','Chordata','Mammalia','Rodentia','Cricetidae','Mesocricetus','auratus','',1,'4/1/2008 6:42:25 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (371,1040,'Pimephales_promelas','Pimephales promelas (Fathead minnow)','P_promelas','Eukaryote','Metazoan','Chordata','Actinopterygii','Cypriniformes','Cyprinidae','Pimephales','promelas','',1,'4/1/2008 6:42:25 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (372,1032,'Gallus_gallus','Gallus gallus (chicken)','G_gallus','Eukaryote','Metazoan','Chordata','Mammalia','Galligormes','Phasianidae','Gallus','gallus','',1,'4/1/2008 6:42:25 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (373,1031,'Macaca_nemestrina','Macaque monkey','Macaque','Eukaryote','Metazoan','Chordata','Mammalia','Primates','Cercopithecidae','Macaca','nemestrina','',1,'4/1/2008 6:42:25 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (374,1007,'Caenorhabditis_elegans','Caenorhabditis elegans','C_elegans','Eukaryote','Metazoan','Nematoda','Chromadorea','Rhabditida','Rhabditidae','Caenorhabditis','elegans','',1,'4/1/2008 6:42:25 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (375,39,'Cricetulus_griseus','Cricetulus griseus (Chinese Hamster)','C_griseus','Eukaryote','Metazoan','Chordata','Mammalia','Rodentia','Muridae','Cricetulus','griseus','',1,'4/1/2008 6:42:25 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (376,37,'Equus_caballus','Equus Caballus (Domestic Horse)','E_caballus','Eukaryote','Metazoan','Chordata','Mammalia','Perissodactyla','Equidae','Equus','caballus','',1,'4/1/2008 6:42:25 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (377,36,'Rattus_norvegicus','Rattus Norvegicus (Rat)','R_norvegicus','Eukaryote','Metazoan','Chordata','Mammalia','Rodentia','Muridae','Rattus','norvegicus','',1,'4/1/2008 6:42:25 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (378,28,'Oryctolagus_cuniculus','Oryctolagus cuniculus (Domestic Rabbit)','O_cuniculus','Eukaryote','Metazoan','Chordata','Mammalia','Lagomorpha','Leporidae','Oryctolagus','cuniculus','',1,'4/1/2008 6:42:25 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (379,26,'Drosophilia_melanogaster','Drosophila Melanogaster (Fruit Fly)','D_melanogaster','Eukaryote','Metazoan','Arthropoda','Insecta','Diptera','Drosophilidae','Drosophilia','melanogaster','',1,'4/1/2008 6:42:25 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (380,24,'Mus_musculus','Mus musculus (Mouse)','M_musculus','Eukaryote','Metazoan','Chordata','Mammalia','Rodentia','Muridae','Mus','musculus','',1,'4/1/2008 6:42:25 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (381,18,'Danio_rerio','<NAME> (Zebrafish)','D_rerio','Eukaryote','Metazoan','Chordata','Actinopterygii','Cypriniformes','Cyprinidae','Danio','rerio','',0,'4/1/2008 6:42:25 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (382,17,'Sus_scrofa_domestica','Sus domesticus (Pig)','S_scrofa','Eukaryote','Metazoan','Chordata','Mammalia','Artiodactyla','Suidae','Sus','scrofa','domestica',1,'4/1/2008 6:42:25 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (383,9,'Bos_taurus','Bovine Serum Albumin (BSA)','B_Taurus','Eukaryote','Metazoan','Chordata','Mammalia','Artiodactyla','Bovidae','Bos','taurus','',1,'4/1/2008 6:42:25 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (384,8,'Homo_sapiens','Homo Sapiens (Human)','H_sapiens','Eukaryote','Metazoan','Chordata','Mammalia','Primates','Hominidae','Homo','sapiens','',1,'4/1/2008 6:42:25 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (385,7,'Mus_musculus_cortical_neuron','Mus musculus (White Mouse)','M_musculus_cortical_neuron','Eukaryote','Metazoan','Chordata','Mammalia','Rodentia','Muridae','Mus','musculus','',0,'4/1/2008 6:42:25 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (386,6,'Mus_musculus_astrocyte','Mus musculus (Astrocyte)','M_musculus_astrocyte','Eukaryote','Metazoan','Chordata','Mammalia','Rodentia','Muridae','Mus','musculus','astrocyte',0,'4/1/2008 6:42:25 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (387,5,'Mus_musculus_B16','Mus musculus (B16)','M_musculus_B16','Eukaryote','Metazoan','Chordata','Mammalia','Rodentia','Muridae','Mus','musculus','B16',0,'4/1/2008 6:42:25 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (388,34,'Methanosarcina_barkeri','Methanosarcina Barkeri','M_barkeri','Bacteria','Prokaryote','Euryarchaeota','Methanomicrobia','Methanosarcinales','Methanosarcinaceae','Methanosarcina','barkeri','',1,'4/1/2008 6:42:47 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (389,1028,'Methanospirillum_hungatei_JF-1','Methanospirillum hungatei','M_hungatei','Bacteria','Prokaryote','Euryarchaeota','Methanomicrobia','Methanomicrobiales','Methanospirllaceae','Methanospirillum','hungatei','JF-1',1,'4/1/2008 6:43:03 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (390,1080,'Halogeometricum_borinquense_DSM_11551','Halogeometricum borinquense DSM 11551','H_borinquense','Bacteria','Prokaryote','Euryarchaeota','Halobacteria','Halobacteriales','Halobacteriaceae','Halogeometricum','borinquense','DSM 11551',1,'4/1/2008 6:43:11 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (391,1081,'Halorhabdus_utahensis_DSM_12940','Halorhabdus utahensis DSM 12940','H_utahensis','Bacteria','Prokaryote','Euryarchaeota','Halobacteria','Halobacteriales','Halobacteriaceae','Halorhabdus','utahensis','DSM 12940',1,'4/1/2008 6:43:29 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (392,13,'Cytomegalovirus_human','Human Cytomegalovirus','Human_Cytomegalovirus','Virus','Virus','None','None','None','Herpesviridae','Cytomegalovirus','human','',1,'4/1/2008 6:44:03 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (393,1004,'Orthopoxvirus_vaccinia','Vaccinia Virus','Vaccinia','Virus','Virus','None','None','None','Poxviridae','Orthopoxvirus','vaccinia','',1,'4/1/2008 6:44:06 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (394,1013,'Orthopoxvirus_monkeypox','Monkeypox virus','Monkeypox_virus','Virus','Virus','None','None','None','Poxviridae','Orthopoxvirus','monkeypox','',1,'4/1/2008 6:44:33 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (395,35,'Plasmodium_falciparum','Plasmodium falciparum','P_falciparum','Eukaryote','Protozoan','Myzozoa','Aconoidasida','Haemosporida','Plasmodiidae','Plasmodium','falciparum','',1,'4/1/2008 6:44:36 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (396,1072,'Thalassiosira_pseudonana','Thalassiosira pseudonana','T_pseudonana','Eukaryote','Protist','Heterokontophyta','Coscinodiscophyceae','Thalassiosirales','Thalassiosiraceae','Thalassiosira','pseudonana','',1,'4/1/2008 6:44:38 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (397,1079,'Dethiosulfovibrio_peptidovorans_DSM_11002','Dethiosulfovibrio peptidovorans DSM 11002','D_peptidovorans','Bacteria','Prokaryote','Firmicutes','Clostridia','Clostridiales','Syntrophomonadaceae','Dethiosulfovibrio','peptidovorans','DSM 11002',1,'4/2/2008 2:24:46 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (398,13,'Cytomegalovirus_human','Human Cytomegalovirus','Human_Cytomegalovirus','Virus','Virus','','None','None','Herpesviridae','Cytomegalovirus','human','',1,'4/2/2008 2:26:01 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (399,13,'Cytomegalovirus_human','Human Cytomegalovirus','Human_Cytomegalovirus','Virus','Virus','','None','None','Herpesviridae','Cytomegalovirus','human','',1,'4/2/2008 2:26:06 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (400,1013,'Orthopoxvirus_monkeypox','Monkeypox virus','Monkeypox_virus','Virus','Virus','','None','None','Poxviridae','Orthopoxvirus','monkeypox','',1,'4/2/2008 2:26:08 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (401,1004,'Orthopoxvirus_vaccinia','Vaccinia Virus','Vaccinia','Virus','Virus','','None','None','Poxviridae','Orthopoxvirus','vaccinia','',1,'4/2/2008 2:26:09 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (402,13,'Cytomegalovirus_human','Human Cytomegalovirus','Human_Cytomegalovirus','Virus','','','None','None','Herpesviridae','Cytomegalovirus','human','',1,'4/2/2008 2:41:49 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (403,1013,'Orthopoxvirus_monkeypox','Monkeypox virus','Monkeypox_virus','Virus','','','None','None','Poxviridae','Orthopoxvirus','monkeypox','',1,'4/2/2008 2:41:51 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (404,1004,'Orthopoxvirus_vaccinia','Vaccinia Virus','Vaccinia','Virus','','','None','None','Poxviridae','Orthopoxvirus','vaccinia','',1,'4/2/2008 2:41:52 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (405,1065,'Oregon_Seawater_MicrobialCommunity','Bacterial community from Oregon Coast','OR_Community','Bacteria','Prokaryote','Community','na','na','na','na','na','na',1,'4/2/2008 2:42:17 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (406,1061,'Rifle_Community','Microbial mixture from Rifle, Colorado site','Rifle_Com','Bacteria','Prokaryote','Phylum ','na','na','na','na','na','na',1,'4/2/2008 2:42:18 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (407,1061,'Rifle_Community','Microbial mixture from Rifle, Colorado site','Rifle_Com','Bacteria','Prokaryote','Community','na','na','na','na','na','na',1,'4/2/2008 2:42:22 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (408,1059,'Seawater_MicrobialCommunity','Bacterial community from Bermuda Atlantic Time Series Station','BATS','Bacteria','Prokaryote','Community','na','na','na','na','na','na',1,'4/2/2008 2:42:23 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (409,1071,'Termite_MicrobialCommunity','Nasutitermes corniger (termite) hindgut P3 microbial community','Termite_Com','Bacteria','Prokaryote','Community','na','na','na','na','na','na',1,'4/2/2008 2:42:24 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (410,13,'Cytomegalovirus_human','Human Cytomegalovirus','Human_Cytomegalovirus','Virus','','','None','None','Herpesviridae','Cytomegalovirus','human','',1,'4/3/2008 5:40:23 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (411,1013,'Orthopoxvirus_monkeypox','Monkeypox virus','Monkeypox_virus','Virus','','','None','None','Poxviridae','Orthopoxvirus','monkeypox','',1,'4/3/2008 5:40:26 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (412,1004,'Orthopoxvirus_vaccinia','Vaccinia Virus','Vaccinia','Virus','','','None','None','Poxviridae','Orthopoxvirus','vaccinia','',1,'4/3/2008 5:40:28 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (413,13,'Cytomegalovirus_human','Human Cytomegalovirus','Human_Cytomegalovirus','Virus','','','None','None','Herpesviridae','Cytomegalovirus','human','',1,'4/3/2008 5:41:45 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (414,1013,'Orthopoxvirus_monkeypox','Monkeypox virus','Monkeypox_virus','Virus','','','None','None','Poxviridae','Orthopoxvirus','monkeypox','',1,'4/3/2008 5:41:48 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (415,1004,'Orthopoxvirus_vaccinia','Vaccinia Virus','Vaccinia','Virus','','','None','None','Poxviridae','Orthopoxvirus','vaccinia','',1,'4/3/2008 5:41:51 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (416,13,'Cytomegalovirus_human','Human Cytomegalovirus','Human_Cytomegalovirus','Virus','None','','None','None','Herpesviridae','Cytomegalovirus','human','',1,'4/3/2008 5:47:23 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (417,1013,'Orthopoxvirus_monkeypox','Monkeypox virus','Monkeypox_virus','Virus','None','','None','None','Poxviridae','Orthopoxvirus','monkeypox','',1,'4/3/2008 5:47:25 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (418,1004,'Orthopoxvirus_vaccinia','Vaccinia Virus','Vaccinia','Virus','None','','None','None','Poxviridae','Orthopoxvirus','vaccinia','',1,'4/3/2008 5:47:29 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (419,13,'Cytomegalovirus_human','Human Cytomegalovirus','Human_Cytomegalovirus','Virus','None','None','None','None','Herpesviridae','Cytomegalovirus','human','',1,'4/3/2008 5:47:54 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (420,1013,'Orthopoxvirus_monkeypox','Monkeypox virus','Monkeypox_virus','Virus','None','None','None','None','Poxviridae','Orthopoxvirus','monkeypox','',1,'4/3/2008 5:47:55 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (421,1004,'Orthopoxvirus_vaccinia','Vaccinia Virus','Vaccinia','Virus','None','None','None','None','Poxviridae','Orthopoxvirus','vaccinia','',1,'4/3/2008 5:47:58 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (422,1004,'Orthopoxvirus_vaccinia','Vaccinia Virus','Vaccinia','Virus','None','','None','None','Poxviridae','Orthopoxvirus','vaccinia','',1,'4/3/2008 5:48:46 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (423,1013,'Orthopoxvirus_monkeypox','Monkeypox virus','Monkeypox_virus','Virus','None','','None','None','Poxviridae','Orthopoxvirus','monkeypox','',1,'4/3/2008 5:48:47 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (424,13,'Cytomegalovirus_human','Human Cytomegalovirus','Human_Cytomegalovirus','Virus','None','','None','None','Herpesviridae','Cytomegalovirus','human','',1,'4/3/2008 5:48:49 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (425,13,'Cytomegalovirus_human','Human Cytomegalovirus','Human_Cytomegalovirus','Virus','','','None','None','Herpesviridae','Cytomegalovirus','human','',1,'4/3/2008 5:50:29 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (426,1013,'Orthopoxvirus_monkeypox','Monkeypox virus','Monkeypox_virus','Virus','','','None','None','Poxviridae','Orthopoxvirus','monkeypox','',1,'4/3/2008 5:50:29 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (427,1004,'Orthopoxvirus_vaccinia','Vaccinia Virus','Vaccinia','Virus','','','None','None','Poxviridae','Orthopoxvirus','vaccinia','',1,'4/3/2008 5:50:30 PM','PNL\D3K857')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (428,1097,'Clostridium_thermocellum','Clostridium thermocellum','C_thermocellum','Bacteria','Firmicutes','Actinobacteria','Clostridia','Clostridiales','Clostridiaceae','Clostridium','thermocellum','',1,'4/7/2008 10:30:12 AM','D3M580 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (429,1097,'Clostridium_thermocellum','Clostridium thermocellum','C_thermocellum','Bacteria','Firmicutes','Actinobacteria','Clostridia','Clostridiales','Clostridiaceae','Clostridium','thermocellum','ATCC 27405',1,'4/7/2008 12:51:02 PM','PNL\D3M578')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (430,1098,'Cenarchaeum_symbiosum','Cenarchaeum symbiosum','C_symbiosum','Bacteria','Archaea','Crenarchaeota','Thermoprotei','Cenarchaeales','Cenarchaeaceae','Cenarchaeum','symbiosum','',1,'4/28/2008 5:03:44 PM','PNL\D3M578')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (431,1099,'Nitrosopumilus_maritimus','Nitrosopumilus maritimus','N_maritimus','Bacteria','Archaea','Crenarchaeota','Thermoprotei','Nitrosopumilales','Nitrosopumilaceae','Nitrosopumilus','maritimus','',1,'4/28/2008 5:07:13 PM','PNL\D3M578')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (432,1100,'Axinella_mexicana','Axinella mexicana','A_mexicana','Eukaryote','Metazoa','Porifera','Demospongiae','Halichondrida','Axinellidae','Axinella','mexicana','',1,'4/28/2008 5:17:39 PM','PNL\D3M578')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (433,1101,'Shewanella_baltica_OS195','Shewanella baltica strain OS195','S_baltica_OS195','Bacteria','Prokaryote','Proteobacteria','Gammaproteobacteria','Alteromonadales','Shewanellaceae','Shewanella','baltica','OS195',1,'5/19/2008 11:22:52 AM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (434,1102,'Populus_trichocarpa','Populus trichocarpa (black cottonwood); also known as western balsam poplar or California poplar tree','Poplar','','Plantae','Magnoliophyta','Magnoliopsida','Malpighiales','Salicaceae','Populus','trichocarpa','',1,'5/19/2008 3:58:11 PM','D3M580 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (436,1104,'Ixodes_scapularis','Ixodes scapularis, commonly known as a Deer Tick','I_scapularis','Eukaryote','Metazoan','Arthropoda','Arachnida','Ixodida','Ixodidae','Ixodes','scapularis','',1,'5/28/2008 3:33:02 PM','D3M578 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (437,1102,'Populus_trichocarpa','Populus trichocarpa (black cottonwood); also known as western balsam poplar or California poplar tree','Poplar','Eukaryote','Plantae','Magnoliophyta','Magnoliopsida','Malpighiales','Salicaceae','Populus','trichocarpa','',1,'5/28/2008 7:13:09 PM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (438,1105,'Sea_Sediment_Microbial_Community','Bacterial community from deep sea sediments','Sea_Sediments','Bacteria','Prokaryote','Community','na','na','na','na','na','na',1,'6/18/2008 4:50:26 PM','d3m578 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (439,1106,'Periphyton ','Periphyton (mixture of algae, cyanobacteria, heterotrophic microbes, and detritus)','Periphyton','','','','','','','','','',1,'8/14/2008 12:19:40 PM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (440,1106,'Periphyton','Periphyton (mixture of algae, cyanobacteria, heterotrophic microbes, and detritus)','Periphyton','','','','','','','','','',1,'10/9/2008 4:42:32 PM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (441,1094,'Anabaena_variabilis','Anabaena variabilis','A_variabilis','Bacteria','Cyanobacteria','Cyanophyta','Cyanophyceae','Nostocales','Nostocaceae','Anabaena','variabilis','',1,'10/9/2008 4:42:35 PM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (442,1107,'Chlorobaculum tepidum WT','','','Bacteria','','Chlorobi','Chlorobia','Chlorobiales','Chlorobiaceae','Chlorobaculum','tepidum (T)','na',1,'10/10/2008 7:12:07 AM','D3M120 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (443,1108,'Candidatus Chloracidobacterium thermophilum','','','Bacteria','','Acidobacteria','','','','Chloracidobacterium','thermophilum','na',1,'10/10/2008 7:18:20 AM','D3M120 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (444,1109,'Synechococcus sp. PCC7002','','','Bacteria','','Cyanobacteria','Cyanobacteria','','','na','na','na',1,'10/10/2008 7:21:23 AM','D3M120 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (445,1031,'Macaca mulatta','Macaque monkey','Macaque','Eukaryote','Metazoan','Chordata','Mammalia','Primates','Cercopithecidae','Macaca','mulatta','',1,'10/27/2008 6:34:14 PM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (446,1110,'Verrucomicrobium_sp_TAV2','','','','Bacteria','Chlamydiae_Verrucomicrobia','Verrucomicrobia','Verrucomicrobiae','Verrucomicrobiales','Verrucomicrobium','sp','TAV2',1,'11/14/2008 12:12:05 PM','D3M120 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (447,1111,'Chloroflexus_aurantiacus','','','','Bacteria','Chloroflexi','Chloroflexi','Chloroflexales','Chloroflexaceae','Chloroflexus','aurantiacus','J-10-fl',1,'11/14/2008 12:16:08 PM','D3M120 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (448,1112,'Heliobacterium_modesticaldum','','','','Bacteria','Firmicutes','Clostridia','Clostridiales','Heliobacteriaceae','Heliobacterium','modesticaldum','ATCC 51547_Ice1',1,'11/14/2008 12:20:03 PM','D3M120 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (449,1113,'Roseiflexus_castenholzii','','','','Bacteria','Chloroflexi','Chloroflexi','Chloroflexales','Chloroflexaceae','Roseiflexus','castenholzii','DSM_13941_HLO8',1,'11/14/2008 12:23:20 PM','D3M120 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (450,1114,'Candidatus_Chloroacidobacterium_thermophilum','This organism represents the first phototroph classified as an Acidobacteria. It was recently identified by <NAME> at Penn Statue. Note: This organism is "Candidatus".','','','','','','','','Chloroacidobacterium','thermophilum','na',1,'11/26/2008 9:33:13 AM','D3M120 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (451,1108,'Candidatus_chloracidobacterium_thermophilum','This organism represents the first phototroph classified as an Acidobacteria. It was recently identified by <NAME> at Penn Statue. Note: This organism is "Candidatus".','Chloracidobacterium_thermophilum','Bacteria','','Acidobacteria','','','','Chloracidobacterium','thermophilum','na',1,'11/26/2008 10:49:02 AM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (452,1108,'Candidatus_chloracidobacterium_thermophilum','This organism represents the first phototroph classified as an Acidobacteria. It was recently identified by Donald Bryant at Penn Statue. Note: This organism is "Candidatus".','C_thermophilum','Bacteria','','Acidobacteria','','','','Chloracidobacterium','thermophilum','na',1,'11/26/2008 10:50:08 AM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (453,1109,'Synechococcus sp. PCC7002','','Synechococcus_sp_PCC7002','Bacteria','','Cyanobacteria','Cyanobacteria','','','na','na','na',1,'11/26/2008 10:54:21 AM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (454,1069,'Synechococcus_sp_CC9605','Synechococcus species CC9605','Synechococcus_CC9605','Bacteria','Prokaryote','Cyanobacteria','Cyanobacteria','','','Synechococcus','species','CC9605',1,'11/26/2008 10:56:45 AM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (455,1109,'Synechococcus sp. PCC7002','Synechococcus species PCC7002','Synechococcus_PCC7002','Bacteria','Prokaryote','Cyanobacteria','Cyanobacteria','','','Synechococcus','species','PCC7002',1,'11/26/2008 10:57:34 AM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (456,1109,'Synechococcus_sp_PCC7002','Synechococcus species PCC7002','Synechococcus_PCC7002','Bacteria','Prokaryote','Cyanobacteria','Cyanobacteria','','','Synechococcus','species','PCC7002',1,'11/26/2008 10:57:39 AM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (457,1107,'Chlorobaculum_tepidum_WT','Chlorobaculum tepidum, wild type','C_tepidum_WT','Bacteria','Prokaryote','Chlorobi','Chlorobia','Chlorobiales','Chlorobiaceae','Chlorobaculum','tepidum (T)','na',1,'11/26/2008 11:22:40 AM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (458,1110,'Verrucomicrobium_sp_TAV2','Verrucomicrobium species TAV2','Verrucomicrobium_TAV2','Bacteria','Prokaryote','Chlamydiae_Verrucomicrobia','Verrucomicrobia','Verrucomicrobiae','Verrucomicrobiales','Verrucomicrobium','sp','TAV2',1,'11/26/2008 11:24:32 AM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (459,1111,'Chloroflexus_aurantiacus','Chloroflexus aurantiacus','C_aurantiacus','Bacteria','Prokaryote','Chloroflexi','Chloroflexi','Chloroflexales','Chloroflexaceae','Chloroflexus','aurantiacus','J-10-fl',1,'11/26/2008 11:25:46 AM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (460,1112,'Heliobacterium_modesticaldum','Heliobacterium modesticaldum','H_modesticaldum','Bacteria','Prokaryote','Firmicutes','Clostridia','Clostridiales','Heliobacteriaceae','Heliobacterium','modesticaldum','ATCC 51547_Ice1',1,'11/26/2008 11:26:27 AM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (461,1113,'Roseiflexus_castenholzii','Roseiflexus castenholzii','R_castenholzii','Bacteria','Prokaryote','Chloroflexi','Chloroflexi','Chloroflexales','Chloroflexaceae','Roseiflexus','castenholzii','DSM_13941_HLO8',1,'11/26/2008 11:27:20 AM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (462,1108,'Candidatus_chloracidobacterium_thermophilum','This organism represents the first phototroph classified as an Acidobacteria. It was recently identified by <NAME> at Penn Statue. Note: This organism is "Candidatus".','C_thermophilum','Bacteria','Prokaryote','Acidobacteria','','','','Chloracidobacterium','thermophilum','na',1,'11/26/2008 11:27:38 AM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (463,1094,'Anabaena_variabilis','Anabaena variabilis','A_variabilis','Bacteria','Prokaryote','Cyanobacteria','Cyanobacteria','Nostocales','Nostocaceae','Anabaena','variabilis','',1,'11/26/2008 11:31:49 AM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (464,1096,'Prochlorococcus','Prochlorococcus','Prochloro','Bacteria','Prokaryote','Cyanobacteria','Cyanobacteria','Prochlorophytes','Prochlorococcaceae','Prochlorococcus','Prochlorococcus ','',1,'11/26/2008 11:34:54 AM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (465,1109,'Synechococcus_sp_PCC7002','Synechococcus species PCC7002','Synechococcus_PCC7002','Bacteria','Prokaryote','Cyanobacteria','Cyanobacteria','Chroococcales','Synechococcaceae','Synechococcus','species','PCC7002',1,'11/26/2008 11:35:47 AM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (466,1069,'Synechococcus_sp_CC9605','Synechococcus species CC9605','Synechococcus_CC9605','Bacteria','Prokaryote','Cyanobacteria','Cyanobacteria','Chroococcales','Synechococcaceae','Synechococcus','species','CC9605',1,'11/26/2008 11:35:59 AM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (467,1033,'Thermosynechococcus_elongatus_BP-1','Thermosynechococcus elongatus','T_elongatus','Bacteria','Prokaryote','Cyanobacteria','Chroobacteria','Chroococcales','Synechococcaceae','Thermosynechococcus','elongatus','BP-1',1,'11/26/2008 11:37:15 AM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (468,1115,'SAR116','Marine Alphaproteobacteria','SAR116','Bacteria','Prokaryote','Proteobacteria','Alphaproteobacteria','','','na','na','na',1,'1/28/2009 4:41:47 PM','D3M580 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (469,1116,'Sporotrichum_thermophile','Sporotrichum thermophile','S_thermophile','Eukaryote','Fungi','','','','','Sporotrichum','thermophile','na',1,'2/5/2009 11:47:02 AM','D3M578 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (470,1117,'Heterobasidion_CSP_777341','Heterobasidion CSP 777341','H_CSP_777341','Eukaryote','Fungi','Dikarya','Homobasidiomycetes','Bondarzewiaceae','Bondarzewiaceae','Heterobasidion','CSP','777341',1,'2/5/2009 11:57:00 AM','D3M578 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (471,1118,'Aspergillus_niger_1015','Aspergillus niger strain 1015','A_niger_1015','Eukaryote','Fungi','Ascomycota','Eurotiomycetes','Trichocomaceae','Trichocomaceae','Aspergillus','niger','1015',1,'2/5/2009 11:58:27 AM','D3M578 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (472,1119,'Aspergillus_carbonarius','Aspergillus carbonarius','A_carbonarius','Eukaryote','Fungi','Ascomycota','Eurotiomycetes','Trichocomaceae','Trichocomaceae','Aspergillus','carbonarius','na',1,'2/5/2009 12:02:43 PM','D3M578 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (473,1119,'Aspergillus_carbonarius','Aspergillus carbonarius','A_carbonarius','Eukaryote','Fungi','Ascomycota','Eurotiomycetes','Trichocomaceae','Trichocomaceae','Aspergillus','carbonarius','na',1,'2/5/2009 12:03:10 PM','D3M578 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (474,1120,'Postia_placenta','Postia placenta','P_placenta','Eukaryote','Fungi','Basidiomycota','Agaricomycetes','Polyporales','Coriolaceae','Postia','placenta','na',1,'2/5/2009 12:11:46 PM','D3M578 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (475,1121,'Phycomyces_blakesleeanus','Phycomyces blakesleeanus','P_blakesleeanus','Eukaryote','Fungi','Zygomycota','Zygomycetes','Mucorales','Mucoraceae','Phycomyces','blakesleeanus','na',1,'2/5/2009 3:47:46 PM','D3M578 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (476,1122,'Trichoderma_atroviride','Trichoderma atroviride','T_atroviride','Eukaryote','Fungi','Ascomycota','Sordariomycetes','Hypocreales','Hypocreaceae','Trichoderma','atroviride','na',1,'2/5/2009 4:07:33 PM','D3M578 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (477,1123,'Thielavia_terrestris','Thielavia terrestris','T_terrestris','Eukaryote','Fungi','Ascomycota','Sordariomycetes','Sordariales','Chaetomiaceae','Thielavia','terrestris','na',1,'2/5/2009 4:10:05 PM','D3M578 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (478,1124,'Cyanothece_strain_PCC8801','Cyanothece strain sent by Himadri Pakrasi as part of the MBGC','','Bacteria','','Cyanobacteria','uclassified_Cyanobacteria','','','na','Cyanothece','PCC8801',1,'2/27/2009 9:26:10 AM','D3M120 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (479,1125,'Cyanothece_strain_PCC7424','Cyanothece strain sent by Himadri Pakrasi as part of the MBGC','','Bacteria','','Cyanobacteria','','Chroococcales','','na','Cyanothece','PCC7424',1,'2/27/2009 9:34:55 AM','D3M120 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (480,1124,'Cyanothece_strain_PCC8801','Cyanothece strain sent by Himadri Pakrasi as part of the MBGC','','Bacteria','','Cyanobacteria','','Chroococcales','','Cyanothece','na','PCC8801',1,'2/27/2009 9:36:02 AM','D3M120 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (481,1126,'Cyanothece_strain_PCC7822','Cyanothece strain sent by Himadri Pakrasi as part of the MBGC','','Bacteria','','Cyanobacteria','','Chroococcales','','na','Cyanothece','PCC7822',1,'2/27/2009 9:38:05 AM','D3M120 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (482,1127,'Cyanothece_strain_PCC8802','Cyanothece strain sent by Himadri Pakrasi as part of the MBGC','','Bacteria','','Cyanobacteria','','Chroococcales','','na','Cyanothece','PCC8802',1,'2/27/2009 9:38:55 AM','D3M120 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (483,1128,'Cyanothece_strain_PCC7425','Cyanothece strain sent by Himadri Pakrasi as part of the MBGC','','Bacteria','','Cyanobacteria','','Chroococcales','','na','Cyanothece','PCC7425',1,'2/27/2009 9:39:43 AM','D3M120 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (484,1129,'Cyanothece_strain_ATCC51472','Cyanothece strain sent by Himadri Pakrasi as part of the MBGC','','Bacteria','','Cyanobacteria','','Chroococcales','','na','Cyanothece','ATCC51472',1,'2/27/2009 9:43:06 AM','D3M120 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (485,1129,'Cyanothece_strain_ATCC51472','Cyanothece strain sent by Himadri Pakrasi as part of the MBGC','','Bacteria','','Cyanobacteria','','Chroococcales','','Cyanothece','na','ATCC51472',1,'2/27/2009 9:44:05 AM','D3M120 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (486,1128,'Cyanothece_strain_PCC7425','Cyanothece strain sent by Himadri Pakrasi as part of the MBGC','','Bacteria','','Cyanobacteria','','Chroococcales','','Cyanothece','na','PCC7425',1,'2/27/2009 9:44:24 AM','D3M120 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (487,1127,'Cyanothece_strain_PCC8802','Cyanothece strain sent by Himadri Pakrasi as part of the MBGC','','Bacteria','','Cyanobacteria','','Chroococcales','','Cyanothece','na','PCC8802',1,'2/27/2009 9:44:42 AM','D3M120 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (488,1126,'Cyanothece_strain_PCC7822','Cyanothece strain sent by Himadri Pakrasi as part of the MBGC','','Bacteria','','Cyanobacteria','','Chroococcales','','Cyanothece','na','PCC7822',1,'2/27/2009 9:45:00 AM','D3M120 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (489,1125,'Cyanothece_strain_PCC7424','Cyanothece strain sent by <NAME> as part of the MBGC','','Bacteria','','Cyanobacteria','','Chroococcales','','Cyanothece','na','PCC7424',1,'2/27/2009 9:45:21 AM','D3M120 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (490,26,'Drosophila_melanogaster','Drosophila Melanogaster (Fruit Fly)','D_melanogaster','Eukaryote','Metazoan','Arthropoda','Insecta','Diptera','Drosophilidae','Drosophila','melanogaster','',1,'3/2/2009 9:45:34 PM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (491,1130,'Glycine_max','Soybean','G_max','Eukaryote','Viridiplantae','Streptophyta','Rosidae','Fabales','Fabaceae','Glycine','max','na',1,'3/4/2009 4:08:38 PM','D3M578 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (492,1130,'Glycine_max','Soybean','G_max','Eukaryote','Viridiplantae','Streptophyta','Rosidae','Fabales','Fabaceae','Glycine','max','na',1,'3/4/2009 4:33:20 PM','D3M578 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (493,1110,'Verrucomicrobium_sp_TAV2','Verrucomicrobium species TAV2','Verrucomicrobium_TAV2','Bacteria','Prokaryote','Chlamydiae_Verrucomicrobia','Thermoprotei','Verrucomicrobiae','Verrucomicrobiales','Verrucomicrobium','sp','TAV2',1,'3/12/2009 1:17:15 AM','DMSWebUser')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (494,1110,'Verrucomicrobium_sp_TAV2','Verrucomicrobium species TAV2','Verrucomicrobium_TAV2','Bacteria','Prokaryote','Chlamydiae_Verrucomicrobia','Verrucomicrobia','Verrucomicrobiae','Verrucomicrobiales','Verrucomicrobium','sp','TAV2',1,'3/12/2009 1:24:38 AM','DMSWebUser')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (495,1131,'Escherichia_coli_BL21','Escherichia coli BL21','E_Coli_BL21','Bacteria','Prokaryote','','','','','','','',1,'3/13/2009 3:36:44 PM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (496,1131,'Escherichia_coli_BL21','Escherichia coli BL21','E_Coli_BL21','Bacteria','Prokaryote','Proteobacteria','Gammaproteobacteria','Enterobacteriales','Enterobacteriaceae','Escherichia','coli','BL21',1,'3/13/2009 3:44:53 PM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (497,1131,'Escherichia_coli_BL21','Escherichia coli BL21','E_coli_BL21','Bacteria','Prokaryote','Proteobacteria','Gammaproteobacteria','Enterobacteriales','Enterobacteriaceae','Escherichia','coli','BL21',1,'3/13/2009 3:45:39 PM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (498,1132,'Opitutaceae bacterium TAV2','','O_bacterium_TAV2','Bacteria','Prokaryote','Verrucomicrobia','Opitutae','Opitutales','Opitutaceae','Opitutus','bacterium','TAV2',1,'3/31/2009 4:43:52 PM','d3p214 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (499,1132,'Opitutaceae bacterium TAV2','Opitutaceae bacterium TAV2','O_bacterium_TAV2','Bacteria','Prokaryote','Verrucomicrobia','Opitutae','Opitutales','Opitutaceae','Opitutus','bacterium','TAV2',1,'3/31/2009 4:47:24 PM','d3p214 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (500,1132,'Opitutaceae bacterium TAV2','Opitutaceae bacterium TAV2','O_bacterium_TAV2','Bacteria','Prokaryote','Verrucomicrobia','Opitutae','Opitutales','Opitutaceae','Opitutus','bacterium','TAV2',1,'3/31/2009 4:48:40 PM','d3p214 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (501,1132,'Opitutaceae bacterium TAV2','Opitutaceae bacterium TAV2','O_bacterium_TAV2','Bacteria','Prokaryote','Verrucomicrobia','Opitutae','Opitutales','Opitutaceae','Opitutus','bacterium','TAV2',1,'3/31/2009 5:48:53 PM','d3p214 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (502,1132,'Opitutaceae bacterium TAV2','Opitutaceae bacterium TAV2','O_bacterium_TAV2','Bacteria','Prokaryote','Verrucomicrobia','Opitutae','Opitutales','Opitutaceae','Opitutus','bacterium','TAV2',1,'3/31/2009 5:49:48 PM','d3p214 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (503,1110,'Verrucomicrobium_sp_TAV2','Verrucomicrobium species TAV2','Verrucomicrobium_TAV2','Bacteria','Prokaryote','Chlamydiae_Verrucomicrobia','Verrucomicrobia','Verrucomicrobiae','Verrucomicrobiales','Verrucomicrobium','sp','TAV2',0,'3/31/2009 6:26:00 PM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (504,1133,'Bradyrhizobium_japonicum','Rhizobium Bradyrhizobium japonicum','B_japonicum','Bacteria','Prokaryote','Proteobacteria','Alphaproteobacteria','Rhizobiales','Bradyrhizobiaceae','Bradyrhizobium','japonicum','na',1,'4/28/2009 2:49:39 PM','D3M578 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (505,1031,'Macaca_mulatta','Macaque monkey','Macaque','Eukaryote','Metazoan','Chordata','Mammalia','Primates','Cercopithecidae','Macaca','mulatta','',1,'4/29/2009 2:47:01 PM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (506,1132,'Opitutaceae_bacterium_TAV2','Opitutaceae bacterium TAV2','O_bacterium_TAV2','Bacteria','Prokaryote','Verrucomicrobia','Opitutae','Opitutales','Opitutaceae','Opitutus','bacterium','TAV2',1,'4/29/2009 2:47:45 PM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (507,1134,'Salmonella_typhimurium_ATCC_14028','Salmonella typhimurium, pathogenic to mice and hum','S_typhimurium_14028','Bacteria','Prokaryote','Proteobacteria','Gammaproteobacteria','Enterobacteriales','Enterobacteriaceae','Salmonella','typhimurium','14028',1,'5/15/2009 3:46:36 PM','d3p214 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (508,1134,'Salmonella_typhimurium_ATCC_14028','Salmonella enterica Typhimurium, pathogenic to mice and hum','S_typhimurium_14028','Bacteria','Prokaryote','Proteobacteria','Gammaproteobacteria','Enterobacteriales','Enterobacteriaceae','Salmonella','enterica','14028',1,'5/15/2009 3:52:02 PM','d3p214 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (509,1135,'Leaf_Cutter_Ant_Microbial_Community','Bacterial community from leaf cutter ant hills','Leaf_Cutter_Ant','Bacteria','Prokaryote','Community','na','na','na','na','na','na',1,'5/22/2009 4:34:58 PM','D3M578 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (510,1135,'Leaf_Cutter_Ant_Microbial_Community','Bacterial community from leaf cutter ant hills','Leaf_Cutter_Ant','Bacteria','Prokaryote','Community','na','na','na','na','na','na',1,'5/22/2009 4:35:56 PM','D3M578 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (511,4,'Shewanella_oneidensis_MR-1','Shewanella oneidensis MR-1','S_oneidensis','Bacteria','Prokaryote','Proteobacteria','Gammaproteobacteria','Alteromonadales','Shewanellaceae','Shewanella','oneidensis','MR-1',1,'6/4/2009 5:16:53 PM','d3p214 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (512,1136,'Klebsiella_variicola','Klebsiella variicola','K_variicola','Bacteria','Prokaryote','Proteobacteria','Gamma Proteobacteria','Enterobacterales','Enterobacteraceae','Klebsiella','variicola','na',1,'6/9/2009 1:11:59 PM','D3M578 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (513,1137,'Pantoea_sp','Pantoea_sp','Pantoea_sp','Bacteria','Prokaryote','Proteobacteria','Gamma Proteobacteria','Enterobacterales','Enterobacteraceae','Pantoea','na','na',1,'6/9/2009 1:24:33 PM','D3M578 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (514,1138,'Pantoea_At-9b','Pantoea_At-9b','Pantoea_At-9b','Bacteria','Prokaryote','Proteobacteria','Gamma Proteobacteria','Enterobacterales','Enterobacteraceae','Pantoea','At-9b','na',1,'6/9/2009 1:26:06 PM','D3M578 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (515,1139,'SARS_coronavirus_TOR2','The SARS coronavirus, sometimes shortened to SARS-CoV, is the virus that causes severe acute respiratory syndrome (SARS).','SARS_coronavirus','','','','','Nidovirales','Coronaviridae','Coronavirus','SARS coronavirus','TOR2',1,'6/10/2009 7:14:30 PM','d3p214 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (516,1129,'Cyanothece_strain_ATCC51472','Cyanothece strain sent by Himadri Pakrasi as part of the MBGC','Cyanothece_ATCC51472','Bacteria','','Cyanobacteria','','Chroococcales','','Cyanothece','na','ATCC51472',1,'6/19/2009 12:04:23 PM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (517,1125,'Cyanothece_strain_PCC7424','Cyanothece strain sent by Himadri Pakrasi as part of the MBGC','Cyanothece_PCC7424','Bacteria','','Cyanobacteria','','Chroococcales','','Cyanothece','na','PCC7424',1,'6/19/2009 12:04:26 PM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (518,1128,'Cyanothece_strain_PCC7425','Cyanothece strain sent by Himadri Pakrasi as part of the MBGC','Cyanothece_PCC7425','Bacteria','','Cyanobacteria','','Chroococcales','','Cyanothece','na','PCC7425',1,'6/19/2009 12:04:28 PM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (519,1126,'Cyanothece_strain_PCC7822','Cyanothece strain sent by Himadri Pakrasi as part of the MBGC','Cyanothece_PCC7822','Bacteria','','Cyanobacteria','','Chroococcales','','Cyanothece','na','PCC7822',1,'6/19/2009 12:04:31 PM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (520,1124,'Cyanothece_strain_PCC8801','Cyanothece strain sent by Himadri Pakrasi as part of the MBGC','Cyanothece_PCC8801','Bacteria','','Cyanobacteria','','Chroococcales','','Cyanothece','na','PCC8801',1,'6/19/2009 12:04:33 PM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (521,1127,'Cyanothece_strain_PCC8802','Cyanothece strain sent by <NAME> as part of the MBGC','Cyanothece_PCC8802','Bacteria','','Cyanobacteria','','Chroococcales','','Cyanothece','na','PCC8802',1,'6/19/2009 12:06:20 PM','PNL\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (522,1140,'SBI_Seawater_MicrobialCommunity','Bacterial community from Saanich Basin Inlet water','BATS','Bacteria','Prokaryote','Community','na','na','na','na','na','na',1,'7/7/2009 4:37:41 PM','d3m580 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (523,1140,'SBI_Seawater_MicrobialCommunity','Bacterial community from Saanich Basin Inlet water','BATS','Bacteria','Prokaryote','Community','na','na','na','na','na','na',1,'7/7/2009 4:39:52 PM','d3m580 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (524,1141,'Oncorhynchus_mykiss','Rainbow trout','O_mykiss','Eukaryote','Metazoan','Chordata','Actinopterygii','Salmoniformes','Salmonidae','Oncorhynchus','mykiss','na',1,'7/16/2009 3:11:25 PM','D3M578 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (525,1142,'Micromonas_CCMP1545','Picoeukaryote from Alex Warden MBARI','','Eukaryota','Viridiplantae','Chlorophyta','Parsinophyceae','Mamiellales','Micromonas','Micromonas','na','CCMP1545',1,'8/5/2009 1:47:24 PM','d3m120 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (526,1143,'Verrucomicrobium_sp_TAV1','Verrucomicrobium species TAV1','Verrucomicrobium_TAV1','Bacteria','Prokaryote','Chlamydiae_Verrucomicrobia','Verrucomicrobia','Verrucomicrobiae','Verrucomicrobiales','Verrucomicrobium','sp','TAV1',0,'8/20/2009 3:20:07 PM','d3m120 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (527,1144,'Verrucomicrobium_sp_TAV5','Verrucomicrobium species TAV5','Verrucomicrobium_TAV5','Bacteria','Prokaryote','Chlamydiae_Verrucomicrobia','Verrucomicrobia','Verrucomicrobiae','Verrucomicrobiales','Verrucomicrobium','sp','TAV5',0,'8/20/2009 3:20:58 PM','d3m120 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (528,1145,'Bacillus_anthracis_Ames','Bacillus anthracis strain Ames','B_anthracis_Ames','Bacteria','Prokaryote','Firmicutes','Bacilli','Bacillales','Bacillaceae','Bacillus','anthracis','Ames',1,'8/26/2009 3:49:29 PM','D3M580 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (529,1155,'Mycobacterium_tuberculosis','Mycobacterium tuberculosis','M_tuberculosis','Bacteria','Prokaryote','Actinobacteria','Actinobacteridae','Actinomycetales','Corynebacteriaceae','Mycobacterium','tuberculosis','Rv37',1,'9/1/2009 3:36:42 PM','DMSWebUser')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (530,1,'Deinococcus_radiodurans_R1','Deinococcus radiodurans','D_radiodurans','Bacteria','Prokaryote','Deinococcus-Thermus','Deinococci','Deinococcales','Deinococcaceae','Deinococcus','radiodurans','R1',1,'9/9/2009 6:26:31 PM','D3L243 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (531,1156,'Phaeodactylum tricornutum','Phaeodactylum tricornutum is a diatom. It is the only species in the genus Phaeodactylum.','P_tricornutum','','Chromalveolata','Heterokontophyta','Bacillariophyceae','Naviculales','Phaeodactylaceae','Phaeodactylum','P. tricornutum','na',1,'9/16/2009 5:39:54 PM','D3M580 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (532,1157,'Acidiphilium cryptum JF-5','this bacterium has 8 plasmids, pACRY01 to 08, in addition to the chromosome','A_cryptum_JF-5','Bacteria','Proteobacteria','Alphaproteobacteria','Rhodospirillales','Acetobacteraceae','Acidiphilium','Acidiphilium','cryptum','JF-5',1,'9/17/2009 4:02:55 PM','D3M580 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (533,1158,'Novosphingobium aromaticivorans F199','F199 is the same as DSM 12444; this strain has 2 plasmids, pNL1 and pNL2, in addition to the chromosome','N_aromaticivorans','Bacteria','Proteobacteria','Alphaproteobacteria','Sphingomonadales','Sphingomonadaceae','Novosphingobium','Sphingomonas aromaticivorans','aromaticivorans','F199',1,'9/17/2009 4:06:08 PM','D3M580 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (534,1159,'Euplotes crassus','Euplotes crassus - single cell eukaryote','E_crassus','Eukaryota','Protozoa','Ciliophora','Ciliatea','Hypotrichida','Euplotidae','Euplotes','crassus','na',1,'10/28/2009 1:29:02 PM','D3M580 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (535,1160,'Great_Salt_Lake_North_Arm_Community','','','','','','','','','na','na','na',1,'11/10/2009 9:59:06 AM','d3m120 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (536,1159,'Euplotes_crassus','Euplotes crassus - single cell eukaryote','E_crassus','Eukaryota','Protozoa','Ciliophora','Ciliatea','Hypotrichida','Euplotidae','Euplotes','crassus','na',1,'11/19/2009 11:22:36 PM','pnl\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (537,1157,'Acidiphilium_cryptum_JF-5','this bacterium has 8 plasmids, pACRY01 to 08, in addition to the chromosome','A_cryptum_JF-5','Bacteria','Proteobacteria','Alphaproteobacteria','Rhodospirillales','Acetobacteraceae','Acidiphilium','Acidiphilium','cryptum','JF-5',1,'11/19/2009 11:25:37 PM','pnl\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (538,1158,'Novosphingobium_aromaticivorans_F199','F199 is the same as DSM 12444; this strain has 2 plasmids, pNL1 and pNL2, in addition to the chromosome','N_aromaticivorans','Bacteria','Proteobacteria','Alphaproteobacteria','Sphingomonadales','Sphingomonadaceae','Novosphingobium','Sphingomonas aromaticivorans','aromaticivorans','F199',1,'11/19/2009 11:26:23 PM','pnl\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (539,1142,'Micromonas_CCMP1545','Picoeukaryote from <NAME>arden MBARI','Micromonas_CCMP1545','Eukaryota','Viridiplantae','Chlorophyta','Parsinophyceae','Mamiellales','Micromonas','Micromonas','na','CCMP1545',1,'11/19/2009 11:28:28 PM','pnl\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (540,1156,'Phaeodactylum_tricornutum','Phaeodactylum tricornutum is a diatom. It is the only species in the genus Phaeodactylum.','P_tricornutum','','Chromalveolata','Heterokontophyta','Bacillariophyceae','Naviculales','Phaeodactylaceae','Phaeodactylum','P. tricornutum','na',1,'11/19/2009 11:29:26 PM','pnl\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (541,1160,'Great_Salt_Lake_North_Arm_Community','Great Salt Lake North American Community','Great_Salt_Lake_North_Arm_Community','','','','','','','na','na','na',1,'11/19/2009 11:30:21 PM','pnl\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (542,1160,'Great_Salt_Lake_North_Arm_Community','Great Salt Lake North Arm Community','Great_Salt_Lake_North_Arm_Community','','','','','','','na','na','na',1,'12/3/2009 11:56:21 AM','D3L243 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (543,1162,'GSL_North_Arm_Stromatolite','','','','','','','','','na','na','na',1,'12/9/2009 9:48:34 AM','d3m120 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (544,1163,'GSL_South_Arm_Stromatolite','','','','','','','','','na','na','na',1,'12/9/2009 9:48:58 AM','d3m120 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (545,1164,'Escherichia_coli_RK4353','Escherichia coli RK4353','E_coli_RK4353','Bacteria','Prokaryote','Proteobacteria','Gammaproteobacteria','Enterobacteriales','Enterobacteriaceae','Escherichia','coli','RK4353',1,'1/6/2010 8:58:13 AM','D3M578 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (546,1165,'Serpula_lacrymans','Serpula lacrymans','S_lacrymans','Eukaryote','Fungi','','','','','','','na',1,'1/8/2010 7:03:05 PM','pnl\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (547,1166,'Leishmania_infantum','Leishmania infantum','L_infantum','Eukaryote','Protista','Euglenozoa','Kinetoplastida','Trypanosomatida','Trypanosomatidae','Leishmania','infantum','na',1,'1/19/2010 3:32:21 PM','D3M578 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (548,1167,'Geobacter_sp_M18','Geobacter species M18','Geobacter_M18','Bacteria','Prokaryote','Proteobacteria','Deltaproteobacteria','Desulfuromonadales','Geobacteraceae','Geobacter','species','M18',1,'2/5/2010 1:26:27 PM','D3M578 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (549,1162,'GSL_North_Arm_Stromatolite','','Great_Salt_Lake_North_Arm_Stromatolite','','','','','','','na','na','na',1,'2/10/2010 5:09:13 PM','pnl\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (550,1163,'GSL_South_Arm_Stromatolite','','Great_Salt_Lake_South_Arm_Stromatolite','','','','','','','na','na','na',1,'2/10/2010 5:09:19 PM','pnl\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (551,1168,'Aedes_albopictus','Aedes albopictus (Asian tiger mosquito)','A_albopictus','Eukaryote','Animalia','Arthropoda','Insecta','Diptera','Culicidae','Aedes','albopictus','na',1,'2/12/2010 1:41:51 PM','D3M578 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (552,1171,'Zea_mays','Corn (maize)','Z_mays','Plantae','Poales','Proteobacteria','Gammaproteobacteria','Poales','Poaceae','Zea','mays','na',1,'2/25/2010 4:07:44 PM','D3M580 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (553,1172,'Campylobacter_jejuni','Campylobacter jejuni','C_jejuni','Bacteria','Prokaryote','Proteobacteria','Epsilon Proteobacteria','Campylobacterales','Campylobacteraceae','Campylobacter','jejuni','na',1,'3/12/2010 1:32:42 PM','D3L243 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (554,1175,'Paralvinella_sulfincola','Polychaete worm Paralvinella sulfincola closely related to Paralvinella palmiformis','','','Animalia','Annelida','Polychaeta','Terebellida','Alvinellidae','Paralvinella','sulfincola','na',1,'4/13/2010 3:35:35 PM','D3M120 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (555,1177,'Metallosphaera_sedula','Extremely thermoacidophilic archaeon','M_sedula','Archaea','Archaea','Crenarchaeota','Thermoprotei','Sulfolobales','Sulfolobaceae','Metallosphaera','sedula','DSM5348',1,'5/4/2010 5:40:13 PM','D3M578 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (556,1178,'Leishmania_major','Leishmania major','L_major','Eukaryote','Protista','Euglenozoa','Kinetoplastida','Trypanosomatida','Trypanosomatidae','Leishmania','major','na',1,'5/18/2010 12:48:04 PM','D3L243 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (557,1179,'Leishmania_braziliensis','Leishmania braziliensis','L_braziliensis','Eukaryote','Protista','Euglenozoa','Kinetoplastida','Trypanosomatida','Trypanosomatidae','Leishmania','braziliensis','na',1,'5/18/2010 12:48:27 PM','D3L243 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (558,1180,'Metallosphaera_yellowstonii','Metallosphaera isolated from Yellowstone draft genome','M_yellowstonii','Archaea','Archaea','Crenarchaeota','Thermoprotei','Sulfolobales','Sulfolobaceae','Metallosphaera','yellowstonii','MK1',1,'6/7/2010 11:58:16 AM','D3M578 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (559,1181,'Cyanothece_strain_CCY0110','Cyanothece strain sent by <NAME> as part of the MBGC','Cyanothece_CCY0110','Bacteria','','Cyanobacteria','','Chroococcales','','Cyanothece','na','CCY0110',1,'6/22/2010 5:02:07 PM','D3M580 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (560,1182,'Medicago_sativa','Medicago sativa also known as Alfalfa','M_sativa','Eukaryote','Plantae','Magnoliophyta','Magnoliopsida','Fabales','Faboideae','Medicago','sativa','na',1,'6/25/2010 12:44:21 PM','D3M578 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (561,1183,'Saccharomyces_bayanus','saccharomyces bayanus','S_bayanus','Eukaryote','Fungi','Ascomycota','Saccharomycetes','Saccharomycetales','Saccharomycetaceae','Saccharomyces','bayanus','na',1,'6/25/2010 2:53:25 PM','D3M578 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (562,1184,'Streptococcus_mitis','Streptococcus mitis','S_mitis','Bacteria','Eukaryota','Firmicutes','Bacilli','Lactobacillales','Streptococcaceae','Streptococcus','mitis','na',1,'6/25/2010 2:58:51 PM','D3M578 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (563,1185,'Medicago_truncatula','Medicago truncatula also known as Alfalfa','M_truncatula','Eukaryote','Plantae','Magnoliophyta','Magnoliopsida','Fabales','Faboideae','Medicago','truncatula','na',1,'6/30/2010 3:00:08 PM','D3M578 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (564,1188,'Thiocapsa_marina_DSM_5653T','Thiocapsa marina','T_marina','Bacteria','Prokaryote','Proteobacteria','Gammaproteobacteria','chromatiales','chromatiaceae','Thiocapsa','Thiocapsa marina','DSM 5653T',1,'7/1/2010 3:03:15 PM','caol388 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (565,1189,'Human_Oral_Microbial_Community','Bacterial community isolated from human mouth','Oral_Microbiome','Bacteria','Prokaryote','Community','na','na','na','na','na','na',1,'7/2/2010 1:34:46 PM','D3M578 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (566,1190,'Sinorhizobium_meliloti_1021','Sinorhizobium meliloti 1021','S_meliloti_1021','Bacteria','Prokaryote','Proteobacteria','Alpha Proteobacteria','Rhizobiales','Rhizobiaceae','Sinorhizobium','meliloti','1021',1,'8/9/2010 3:36:51 PM','D3M578 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (567,1191,'Leishmania_mexicana','Leishmania mexicana','L_mexicana','Eukaryota','Protozoa','Euglenozoa','Kinetoplastida','Trypanosomatidae','Leishmania','Leishmania','mexicana','na',1,'9/3/2010 2:59:33 PM','D3M578 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (568,1192,'Chlamydomonas_reinhardtii','Chlamydomonas reinhardtii','C_reinhardtii','Eukaryote','Viridiplantae','Chlorophyta','Chlorophyceae','Chlamydomonadales','Chlamydomonadaceae','Chlamydomonas','reinhardtii','na',1,'9/15/2010 1:16:08 PM','D3M578 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (569,1193,'Phaeocystis_globosa','Phaeocystis globosa','P_globosa','Plantae','Chromista','Haptophyta','Prymnesiophyceae','Prymnesiales','Phaeocystaceae','Phaeocystis','globosa','na',1,'11/5/2010 10:20:56 AM','D3M578 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (570,1158,'Novosphingobium_aromaticivorans_F199','F199 is the same as DSM 12444; this strain has 2 plasmids, pNL1 and pNL2, in addition to the chromosome. Formerly named Sphingomonas aromaticivorans','N_aromaticivorans','Bacteria','Proteobacteria','Alphaproteobacteria','Sphingomonadales','Sphingomonadaceae','Novosphingobium','Sphingomonas aromaticivorans','aromaticivorans','F199',1,'11/18/2010 12:26:45 PM','D3L243 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (571,1194,'Thermophillic_Switchgrass_Community','Thermus, Rhodothermus, Paenibacillus, Thermobacillus, Gemmatamonadetes (phylum), Thermobaculum, Conexibacter, Sphaerobacter, Thermomicrobium, and Hyphomicrobium','','','','','','','','na','na','na',1,'11/30/2010 12:54:37 PM','D3M580 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (572,1195,'Thermotoga_maritima','Thermotoga maritima','T_maritima','Bacteria','Eukaryota','Thermotogae','Thermotogae','Thermotogales','Thermotogaceae','Thermotoga','maritima','na',1,'12/6/2010 1:13:01 PM','D3M578 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (573,1196,'Geobacter_sp_M21','Geobacter species M21','Geobacter_M21','Bacteria','Prokaryote','Proteobacteria','Deltaproteobacteria','Desulfuromonadales','Geobacteraceae','Geobacter','species','M21',1,'12/7/2010 2:43:36 PM','D3M578 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (574,1197,'Desulfuromonas_acetoxidans','Desulfuromonas acetoxidans','D_acetoxidans','Bacteria','Prokaryote','Proteobacteria','Delta Proteobacteria','Desulfuromonadales','Desulfuromonadaceae','Desulfuromonas','acetoxidans','na',1,'12/7/2010 2:52:46 PM','D3M578 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (575,1198,'Chlorella_NC64A','Chlorella NC64A','Chlorella_NC64A','Eukaryote','Viridiplantae','Chlorophyta','Trebouxiophyceae','Chlorellales','Chlorellaceae','Chlorella','NC64A','na',1,'12/8/2010 9:58:40 AM','D3M578 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (576,1199,'Pseudonocardia_sp','Pseudonocardia species','Pseudonocardia','Bacteria','Prokaryote','Actinobacteria','Actinobacteria','Actinomycetales','Pseudonocardiaceae','Pseudonocardia','spp','na',1,'12/9/2010 4:05:53 PM','D3L243 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (577,1200,'Streptomyces_sp','Streptomyces species','Streptomyces','Bacteria','Prokaryote','Actinobacteria','Actinobacteria','Actinomycetales','Streptomycetaceae','Streptomyces','spp','na',1,'12/9/2010 4:10:45 PM','D3L243 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (578,1201,'Pantoea_sp','Pantoea species','Streptomyces','Bacteria','Prokaryote','Proteobacteria','Gamma Proteobacteria','Enterobacteriales','Enterobacteriaceae','Pantoea','spp','na',1,'12/9/2010 4:16:51 PM','D3L243 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (579,1194,'Thermophillic_Switchgrass_Community','Thermus, Rhodothermus, Paenibacillus, Thermobacillus, Gemmatamonadetes (phylum), Thermobaculum, Conexibacter, Sphaerobacter, Thermomicrobium, and Hyphomicrobium','','','','','','','','na','na','na',1,'12/10/2010 1:58:24 PM','D3L243 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (580,1202,'Paralvinella_palmiformis','Paralvinella palmiformis','P_palmiformis','Eukaryota','Animalia','Annelida','Polychaeta','Terebellida','Alvinellidae','Paralvinella','palmiformis','na',1,'12/14/2010 3:24:31 PM','D3M580 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (581,1203,'Micromonas_RCC299','Picoeukaryote from Alex Warden MBARI','Micromonas_CCMP1545','Eukaryota','Viridiplantae','Chlorophyta','Parsinophyceae','Mamiellales','Micromonas','Micromonas','na','RCC299',1,'12/15/2010 9:17:47 AM','D3M120 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (582,1203,'Micromonas_RCC299','Picoeukaryote from Alex Warden MBARI','Micromonas_RCC299','Eukaryota','Viridiplantae','Chlorophyta','Parsinophyceae','Mamiellales','Micromonas','Micromonas','na','RCC299',1,'12/22/2010 12:46:13 PM','D3M120 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (583,1171,'Zea_mays','Corn (maize)','Z_mays','Eukaryote','Plantae','Magnoliophyta','Magnoliopsida','Poales','Poaceae','Zea','mays','na',1,'12/30/2010 3:17:44 PM','D3L243 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (584,1171,'Zea_mays','Corn (maize) for dogs','Z_mays','Eukaryote','Plantae','Magnoliophyta','Magnoliopsida','Poales','Poaceae','Zea','mays','na',1,'12/30/2010 3:32:23 PM','payn535 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (585,1171,'Zea_mays','Corn (maize)','Z_mays','Eukaryote','Plantae','Magnoliophyta','Magnoliopsida','Poales','Poaceae','Zea','mays','na',1,'12/30/2010 3:33:05 PM','payn535 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (586,1205,'Bacillus_subtilis_168','Gram-positive, soil-dwelling bacterium; Genbank accession # AL009126','B_subtilis','Bacteria','Bacteria','Firmicutes','Bacilli','Bacillales','Bacillaceae','Bacillus','subtilis','168',1,'1/3/2011 12:16:52 PM','D3M580 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (587,1206,'Desulfobacterium_autotrophicum','Desulfobacterium autotrophicum','D_autotrophicum','Bacteria','Prokaryote','Proteobacteria','Delta Proteobacteria','Desulfobacterales','Desulfobacteraceae','Desulfobacterium','autotrophicum','HRM2',1,'1/4/2011 7:06:58 PM','D3L243 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (588,1207,'Halobacterium_salinarum_HSC','Temporary name given to an environmental carbonate precipitate isolate from the Great Salt Lake. Exact taxonomic categorization is still pending. Current name is based upon 16S rRNA sequencing','','','','','','','','na','na','na',1,'1/20/2011 12:48:36 PM','D3M120 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (589,1208,'Halobacterium_salinarum_HSZ','Temporary name given to the second of two environmental carbonate precipitate isolates from the Great Salt Lake. Exact taxonomic categorization is still pending. Current name is based upon 16S rRNA sequencing','','','','','','','','na','na','na',1,'1/20/2011 12:49:26 PM','D3M120 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (590,1207,'Halobacterium_salinarum_HSC','Temporary name given to one of two environmental carbonate precipitate isolates from the Great Salt Lake. Exact taxonomic categorization is still pending. Current name is based upon 16S rRNA sequencing','','','','','','','','na','na','na',1,'1/20/2011 12:49:49 PM','D3M120 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (591,1209,'Halobacterium_salinarum_R1','','','Prokaryote','Archaea','Euryacrchaeota','Halobacteria','Halobacteriales','Halobacteriaceae','Halobacterium','salinarum','R1',1,'1/20/2011 1:04:36 PM','D3M120 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (592,1210,'Sideroxydans_lithotrophicus_ES-1','Sideroxydans lithotrophicus strain ES-1,','S_lithotrophicus_ES-1','Bacteria','Prokaryote','Proteobacteria','Beta Proteobacteria','Gallionellales','Gallionellaceae','Sideroxydans','lithotrophicus','ES-1',1,'2/10/2011 12:26:32 PM','D3M578 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (593,1211,'Toxoplasma_gondii','Toxoplasma gondii, a mammalian blood borne parasite.','T_gondii','Eukaryota','Chromalveolata','Apicomplexa','Coccidia','Eucoccidiorida','Sarcocystidae','Toxoplasma','gondii','na',1,'2/18/2011 11:14:38 AM','D3M578 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (594,1212,'Tribolium_castaneum_GA2','Tribolium castaneum, GenBank accession AAJJ00000000.1, Red Flour beetle','T_castaneum_GA2','Eukaryote','Metazoa','Arthropoda','Insecta','Coleoptera','Tenebrionidae','Tribolium','castaneum','Georgia GA2',1,'2/25/2011 10:06:34 AM','D3M578 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (595,1213,'Clostridium_cellulolyticum_H10','Clostridium cellulolyticum H10','C_cellulolyticum_H10','Bacteria','Prokaryote','Firmicutes','Clostridia','Clostridiales','Clostridiaceae','Clostridium','cellulolyticum','H10',1,'2/25/2011 10:09:27 AM','D3M578 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (596,1214,'Streptomyces_sp_SA3_actF','Streptomyces species SA3_actF, Gram-positive, soil-dwelling bacterium; Genbank accession # ADXB00000000.1,','Streptomyces_SA3_actF','Bacteria','Prokaryote','Actinobacteria','Actinobacteria','Actinomycetales','Streptomycetaceae','Streptomyces','spp','SA3_actF',1,'2/25/2011 10:12:22 AM','D3M578 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (597,1213,'Clostridium_cellulolyticum_H10','Clostridium cellulolyticum H10, Gram-positive, cellulolytic bacterium; Genbank accession # CP001348.1','C_cellulolyticum_H10','Bacteria','Prokaryote','Firmicutes','Clostridia','Clostridiales','Clostridiaceae','Clostridium','cellulolyticum','H10',1,'2/25/2011 10:13:48 AM','D3M578 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (598,1215,'Cladonia_grayi','Cladonia grayi','C_grayi','Eukaryote','Fungi','Ascomycota','Lecanoromycetes','Lecanorales','Lecanorineae','Cladonia','grayi','na',1,'2/25/2011 10:21:07 AM','D3M578 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (599,1216,'Asterochloris_sp_CgrDA1pho','Asterochloris species Cgr/DA1pho','Asterochloris_CgrDA1pho','Eukaryota','Viridiplantae','Chlorophyta','Trebouxiophyceae','Microthamniales','Asterochloris','Asterochloris','spp','CgrDA1pho',1,'2/25/2011 10:26:24 AM','D3M578 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (600,1217,'Dehalococcoides_ethenogenes','Dehalococcoides ethenogenes','D_ethenogenes','Bacteria','Prokaryote','Chloroflexi','Dehalococcoidetes','Dehalococcoides','Dehalococcoidae','Dehalococcoides','ethenogenes','na',1,'3/1/2011 10:13:01 AM','D3M578 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (601,1218,'Utkanos','Organism for testing informatics procedures','Utkanos','ReallyReallyBigDomain','ReallyBigKingdom','LittlePhylum','','','','na','na','na',1,'3/31/2011 5:32:10 PM','D3M580 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (602,1219,'Aspergillus_clavatus','Aspergillus_clavatus','A_clavatus','Eukaryote','Fungi','Ascomycota','Eurotiomycetes','Eurotiales','Trichocomaceae','Aspergillus','clavatus','NRLL1',1,'4/4/2011 9:56:05 AM','D3M578 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (603,1220,'Neosartorya_fischeri','Neosartorya fischeri','N_fischeri','Eukaryote','Fungi','Ascomycota','Eurotiomycetes','Eurotiales','Trichocomaceae','Neosartorya','fischeri','NRLL181',1,'4/4/2011 10:10:35 AM','D3M578 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (604,1221,'Porphyromonas_gingivalis','Porphyromonas gingivalis (Bacteroides gingivalis)','P_gingivalis','Bacteria','Bacteria','Bacteroidetes','Bacteroidia','Bacteroidales','Porphyromonadaceae','Porphyromonas','gingivalis','na',1,'4/22/2011 3:17:00 PM','D3M578 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (605,1221,'Porphyromonas_gingivalis','Porphyromonas gingivalis (Bacteroides gingivalis)','P_gingivalis','Bacteria','Bacteria','Bacteroidetes','Bacteroidia','Bacteroidales','Porphyromonadaceae','Porphyromonas','gingivalis','W83',1,'4/22/2011 3:27:46 PM','D3M578 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (606,1222,'Caldocellulosiruptor_saccharolyticus_DSM_8903','','','Bacteria','','Firmicutes','Clostridia','Thermoanaerobacterales','Thermoanaerobacterales Family III','Caldicellulosiruptor','saccharolyticus','DSM_8903',1,'4/26/2011 11:21:43 AM','D3M120 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (607,1224,'Microbial_Community_from_BSEL_Bioreactor_P','Microbial community from a cellulose degrading anaerobic bioreactor maintained at BSEL. Seedstock for this reactor was obtained from the cow rumen. This is the perturbation reactor.','','','','','','','','na','na','na',1,'5/3/2011 12:37:31 PM','D3M120 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (608,1225,'Candidatus_Methanoregula_boonei_6A8','Candidatus Methanoregula boonei 6A8','CM_boonei_6A8','Archaea','Archaea','Euryarchaeota','Methanomicrobia','Methanomicrobiales','Genera incertae sedis','Candidatus Methanoregula','boonei','6A8',1,'5/27/2011 10:12:10 PM','D3M578 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (609,1226,'Dehalococcoides_sp_BAV1','Dehalococcoides species strain BAV1','D_sp_BAV1','Bacteria','Prokaryote','Chloroflexi','Dehalococcoidetes','Dehalococcoides','Dehalococcoidae','Dehalococcoides','sp','BAV1',1,'5/27/2011 10:16:28 PM','D3M578 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (610,1227,'Dehalococcoides_sp_CBDB1','Dehalococcoides species strain CBDB1','D_sp_CBDB1','Bacteria','Prokaryote','Chloroflexi','Dehalococcoidetes','Dehalococcoides','Dehalococcoidae','Dehalococcoides','sp','CBDB1',1,'5/31/2011 2:21:51 PM','D3M578 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (611,1228,'Dehalococcoides_ethenogenes_195','Dehalococcoides species ethenogenes strain 195','D_ethenogenes_1951','Bacteria','Prokaryote','Chloroflexi','Dehalococcoidetes','Dehalococcoides','Dehalococcoidae','Dehalococcoides','ethenogenes','195',1,'5/31/2011 2:23:43 PM','D3M578 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (612,1229,'Dehalococcoides_sp_VS','Dehalococcoides species strain VS','D_sp_VS','Bacteria','Prokaryote','Chloroflexi','Dehalococcoidetes','Dehalococcoides','Dehalococcoidae','Dehalococcoides','sp','VS',1,'5/31/2011 2:24:54 PM','D3M578 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (613,1230,'Methanobrevibacter_smithii_ATCC_35061','Methanobrevibacter smithii ATCC 35061','M_smithii_ATCC_35061','Archaea','Archaea','Euryarchaeota','Methanobacteria','Methanobacteriales','Methanobacteriaceae','Methanobrevibacter','smithii','ATCC_35061',1,'5/31/2011 2:29:14 PM','D3M578 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (614,1231,'Methanobrevibacter_smithii_F1_DSM_2374','Methanobrevibacter smithii F1 DSM 2374','M_smithii_F1_DSM_2374','Archaea','Archaea','Euryarchaeota','Methanobacteria','Methanobacteriales','Methanobacteriaceae','Methanobrevibacter','smithii_F1','DSM_2374',1,'5/31/2011 2:34:46 PM','D3M578 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (615,1232,'Methanocaldococcus_fervens_AG86','Methanocaldococcus fervens AG86,','M_fervens _G86','Archaea','Archaea','Euryarchaeota','Methanococci','Methanococcales','Methanocaldococcaceae','Methanocaldococcus','fervens','AG86',1,'5/31/2011 2:38:00 PM','D3M578 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (616,1233,'Methanocaldococcus_infernus_ME','Methanocaldococcus infernus ME','M_infernus ME','Archaea','Archaea','Euryarchaeota','Methanococci','Methanococcales','Methanocaldococcaceae','Methanocaldococcus','infernus','ME',1,'5/31/2011 2:39:11 PM','D3M578 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (617,1234,'Methanocaldococcus_jannaschii_DSM_2661','Methanocaldococcus jannaschii DSM 2661','M_infernus ME','Archaea','Archaea','Euryarchaeota','Methanococci','Methanococcales','Methanocaldococcaceae','Methanocaldococcus','jannaschii','DSM_2661',1,'5/31/2011 2:40:15 PM','D3M578 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (618,1235,'Methanocaldococcus_vulcanius_M7','Methanocaldococcus vulcanius M7','M_infernus ME','Archaea','Archaea','Euryarchaeota','Methanococci','Methanococcales','Methanocaldococcaceae','Methanocaldococcus','vulcanius','M7',1,'5/31/2011 2:41:13 PM','D3M578 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (619,1236,'Methanococcoides_burtonii_DSM_6242','Methanococcoides burtonii DSM 6242','M_burtonii_DSM_6242','Archaea','Archaea','Euryarchaeota','Methanomicrobia','Methanosarcinales','Methanosarcinaceae','Methanococcoides','burtonii','DMS_6242',1,'5/31/2011 2:43:34 PM','D3M578 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (620,1237,'Methanococcus_aeolicus_Nankai-3','Methanococcus aeolicus Nankai-3','M_aeolicus_Nankai-3','Archaea','Archaea','Euryarchaeota','Methanomicrobia','Methanosarcinales','Methanosarcinaceae','Methanococcoides','aeolicus','Nankai-3',1,'5/31/2011 2:45:13 PM','D3M578 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (621,1238,'Methanococcus_maripaludis_C5','Methanococcus maripaludis C5','M_maripaludis_C5','Archaea','Archaea','Euryarchaeota','Methanococci','Methanococcales','Methanococcaceae','Methanococcus','maripaludis','C5',1,'5/31/2011 2:47:07 PM','D3M578 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (622,1239,'Methanococcus_maripaludis_C6','Methanococcus maripaludis C6','M_maripaludis_C6','Archaea','Archaea','Euryarchaeota','Methanococci','Methanococcales','Methanococcaceae','Methanococcus','maripaludis','C6',1,'5/31/2011 2:47:30 PM','D3M578 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (623,1240,'Methanococcus_maripaludis_C7','Methanococcus maripaludis C7','M_maripaludis_C7','Archaea','Archaea','Euryarchaeota','Methanococci','Methanococcales','Methanococcaceae','Methanococcus','maripaludis','C7',1,'5/31/2011 2:48:01 PM','D3M578 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (624,1241,'Methanococcus_vannielii_SB','Methanococcus vannielii SB','M_vannielii_SB','Archaea','Archaea','Euryarchaeota','Methanococci','Methanococcales','Methanococcaceae','Methanococcus','vannielii','SB',1,'5/31/2011 2:49:08 PM','D3M578 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (625,1242,'Methanococcus_voltae_A3','Methanococcus voltae A3,','M_voltae_A3','Archaea','Archaea','Euryarchaeota','Methanococci','Methanococcales','Methanococcaceae','Methanococcus','voltae','A3',1,'5/31/2011 2:50:42 PM','D3M578 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (626,1243,'Methanocorpusculum_labreanum_Z','Methanocorpusculum labreanum Z','M_labreanum_Z','Archaea','Archaea','Euryarchaeota','Methanomicrobia','Methanomicrobiales','Methanocorpusculaceae','Methanocorpusculum','labreanum','Z',1,'5/31/2011 2:52:54 PM','D3M578 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (627,1244,'Methanoculleus_marisnigri_JR1','Methanoculleus marisnigri JR1','M_marisnigri_JR1','Archaea','Archaea','Euryarchaeota','Methanomicrobia','Methanomicrobiales','Methanocorpusculaceae','Methanoculleus','marisnigri','JR1',1,'5/31/2011 2:54:20 PM','D3M578 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (628,1245,'Methanopyrus_kandleri_AV19','Methanopyrus kandleri AV19','M_kandleri_AV19','Archaea','Archaea','Euryarchaeota','Methanopyri','Methanopyrales','Methanopyraceae','Methanopyrus','kandleri','AV19',1,'5/31/2011 2:56:02 PM','D3M578 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (629,1246,'Methanosaeta_thermophila_PT','Methanosaeta thermophila PT','M_thermophila_PT','Archaea','Archaea','Euryarchaeota','Methanomicrobia','Methanosarcinales','Methanosaetaceae','Methanosaeta','thermophila','PT',1,'5/31/2011 2:57:50 PM','D3M578 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (630,1247,'Methanosarcina_acetivorans_C2A','Methanosarcina acetivorans C2A','M_acetivorans_C2A','Archaea','Archaea','Euryarchaeota','Methanomicrobia','Methanosarcinales','Methanosarcinaceae','Methanosarcina','acetivorans','C2A',1,'5/31/2011 2:59:59 PM','D3M578 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (631,1248,'Methanosarcina_barkeri_Fusaro','Methanosarcina barkeri Fusaro','M_acetivorans_C2A','Archaea','Archaea','Euryarchaeota','Methanomicrobia','Methanosarcinales','Methanosarcinaceae','Methanosarcina','barkeri','Fusaro',1,'5/31/2011 3:01:43 PM','D3M578 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (632,1249,'Methanosarcina_mazei_Go1','Methanosarcina mazei Go1','M_mazei_Go1','Archaea','Archaea','Euryarchaeota','Methanomicrobia','Methanosarcinales','Methanosarcinaceae','Methanosarcina','mazei','Go1',1,'5/31/2011 3:02:41 PM','D3M578 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (633,1250,'Methanosphaera_stadtmanae_DSM_3091','Methanosphaera stadtmanae DSM 3091','M_stadtmanae_DSM_3091','Archaea','Archaea','Euryarchaeota','Methanobacteria','Methanobacteriales','Methanobacteriaceae','Methanosphaera','stadtmanae','DSM_3091',1,'5/31/2011 3:04:37 PM','D3M578 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (634,1251,'Methanosphaerula_palustris_E1-9c','Methanosphaerula palustris E1-9c','M_palustris_E1-9c','Archaea','Archaea','Euryarchaeota','Methanomicrobia','Methanomicrobiales','Genera incertae sedis','Methanosphaerula','palustris','E1-9c',1,'5/31/2011 3:07:23 PM','D3M578 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (635,1225,'Candidatus_Methanoregula_boonei_6A8','Candidatus Methanoregula boonei 6A8','M_boonei_6A8','Archaea','Archaea','Euryarchaeota','Methanomicrobia','Methanomicrobiales','Genera incertae sedis','Candidatus Methanoregula','boonei','6A8',1,'5/31/2011 3:08:01 PM','D3M578 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (636,1253,'Methanothermobacter_thermautotrophicus_Delta_H','Methanothermobacter thermautotrophicus Delta H','M_thermautotrophicus_Delta_H','Archaea','Archaea','Euryarchaeota','Methanobacteria','Methanobacteriales','Methanobacteriaceae','Methanothermobacter','thermautotrophicus','Delta_H',1,'5/31/2011 3:12:42 PM','D3M578 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (637,1254,'Syntrophomonas_wolfei_wolfei_Goettingen','Syntrophomonas wolfei subsp. wolfei str. Goettingen','S_wolfei_wolfei_Goettingen','Bacteria','Prokaryote','Firmicutes','Clostridia','Clostridiales','Syntrophomonadaceae','Syntrophomonas','wolfei_wolfei','Goettingen',1,'5/31/2011 3:16:38 PM','D3M578 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (638,1255,'Methanobrevibacter_smithii_DSM_2375','Methanobrevibacter smithii DSM 2375','M_smithii_DSM_2375','Archaea','Archaea','Euryarchaeota','Methanobacteria','Methanobacteriales','Methanobacteriaceae','Methanobrevibacter','smithii','DSM_2375',1,'5/31/2011 3:41:34 PM','D3M578 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (639,1256,'Methanococcus_maripaludis_S2','Methanococcus maripaludis S2','M_maripaludis_S2','Archaea','Archaea','Euryarchaeota','Methanococci','Methanococcales','Methanococcaceae','Methanococcus','maripaludis','S2',1,'5/31/2011 3:45:55 PM','D3M578 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (640,1257,'Methanocella_sp_RC-I','Methanococcus species strain RC-I','M_marisp_RC-I','Archaea','Archaea','Euryarchaeota','Methanomicrobia','Methanocellales','Methanocellaceae','Methanocella','sp','RC-I',1,'5/31/2011 3:57:36 PM','D3M578 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (641,1258,'Dehalococcoides_sp','general Dehalococcoides species','D_sp','Bacteria','Prokaryote','Chloroflexi','Dehalococcoidetes','Dehalococcoides','Dehalococcoidae','Dehalococcoides','sp','na',1,'5/31/2011 4:13:51 PM','D3M578 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (642,1228,'Dehalococcoides_ethenogenes_195','Dehalococcoides species ethenogenes strain 195','D_ethenogenes_195','Bacteria','Prokaryote','Chloroflexi','Dehalococcoidetes','Dehalococcoides','Dehalococcoidae','Dehalococcoides','ethenogenes','195',1,'5/31/2011 4:45:49 PM','PNL\D3M578')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (643,1232,'Methanocaldococcus_fervens_AG86','Methanocaldococcus fervens AG86','M_fervens _AG86','Archaea','Archaea','Euryarchaeota','Methanococci','Methanococcales','Methanocaldococcaceae','Methanocaldococcus','fervens','AG86',1,'5/31/2011 4:53:12 PM','PNL\D3M578')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (644,1234,'Methanocaldococcus_jannaschii_DSM_2661','Methanocaldococcus jannaschii DSM 2661','M_jannaschii_DSM_2661','Archaea','Archaea','Euryarchaeota','Methanococci','Methanococcales','Methanocaldococcaceae','Methanocaldococcus','jannaschii','DSM_2661',1,'5/31/2011 4:55:25 PM','PNL\D3M578')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (645,1235,'Methanocaldococcus_vulcanius_M7','Methanocaldococcus vulcanius M7','M_vulcanius_M7','Archaea','Archaea','Euryarchaeota','Methanococci','Methanococcales','Methanocaldococcaceae','Methanocaldococcus','vulcanius','M7',1,'5/31/2011 4:55:38 PM','PNL\D3M578')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (646,1257,'Methanocella_sp_RC-I','Methanococcus species strain RC-I','M_sp_RC-I','Archaea','Archaea','Euryarchaeota','Methanomicrobia','Methanocellales','Methanocellaceae','Methanocella','sp','RC-I',1,'5/31/2011 5:03:38 PM','PNL\D3M578')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (647,1248,'Methanosarcina_barkeri_Fusaro','Methanos<NAME>','M_barkeri_Fusaro','Archaea','Archaea','Euryarchaeota','Methanomicrobia','Methanosarcinales','Methanosarcinaceae','Methanosarcina','barkeri','Fusaro',1,'5/31/2011 5:25:38 PM','PNL\D3M578')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (648,1260,'Bartonella_henselae_Houston-1','Bartonella henselae strain Houston-1','B_henselae_Houston-1','Bacteria','Prokaryote','Proteobacteria','Alpharoteobacteria','Rhizobiales','Bartonellaceae','Bartonella','henselae','Houston-1',1,'6/2/2011 11:48:59 AM','D3M578 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (649,1261,'Enterobacter_lignolyticus_SCF1','Enterobacter lignolyticus SCF1','E_lignolyticus_SCF1','Bacteria','Prokaryote','Proteobacteria','Gammaproteobacteria','Enterobacteriales','Enterobacteriaceae','Enterobacter','lignolyticus','SCF1',1,'6/16/2011 12:43:21 PM','D3M578 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (650,1261,'Enterobacter_cloacae_SCF1','Enterobacter cloacae SCF1 (also being reffered to as Enterobacter lignolyticus SCF1)','E_cloacae_SCF1','Bacteria','Prokaryote','Proteobacteria','Gammaproteobacteria','Enterobacteriales','Enterobacteriaceae','Enterobacter','cloacae','SCF1',1,'6/16/2011 12:57:22 PM','PNL\D3M578')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (651,1264,'Listeria_monocytogenes_EGDe','Listeria monocytogenes, causative agent of listeriosis, virulent foodborne pathogens','L_monocytogenes','Bacteria','Bacteria','Firmicutes','Bacilli','Bacillales','Listeriaceae','Listeria','monocytogenes','EGDe',1,'6/28/2011 6:07:06 PM','D3L243 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (652,1265,'Fibrobacter_succinogenes_S85','Cellulose degrading rumen isolate being studied by Garret Suen at University of Wisconsin Madison','','Bacteria','','Fibrobacteres/Acidobacteria Group','Fibrobacteres','Fibrobacterales','Fibrobacteraceae','Fibrobacter','succinogenes','ATCC 19169_S85',1,'8/10/2011 3:05:43 PM','D3M120 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (653,1266,'Bacteroides_thetaiotaomicron_VPI-5482','Bacteroides thetaiotaomicron strain VPI-5482','B_thetaiotaomicron','Bacteria','Prokaryote','Bacteroidetes','Bacteroidia','Bacteroidales','Bacteroidaceae','Bacteroides','hetaiotaomicron','VPI-5482',1,'8/23/2011 4:57:16 PM','D3M578 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (654,1267,'Kosmotoga_olearia_TBF_19-5-1','Kosmotoga olearia TBF 19.5.1, NC_012785','K_olearia_TBF_19-5-1','Bacteria','Prokaryota','Thermotogae','Thermotogae','Thermotogales','Thermotogaceae','Kosmotoga','olearia','19-5-1',1,'10/11/2011 12:11:01 PM','D3M578 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (655,1268,'Sinorhizobium_medicae','Sinorhizobium medicae','S_medicae','Bacteria','Prokaryote','Proteobacteria','Alpha Proteobacteria','Rhizobiales','Rhizobiaceae','Sinorhizobium','medicae','na',1,'10/19/2011 2:35:16 PM','D3M578 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (656,1269,'Streptomyces_roseosporus','Streptomyces roseosporus, a high-GC Gram-positive bacterium','Streptomyces_roseosporus','Bacteria','Prokaryote','Actinobacteria','Actinobacteria','Actinomycetales','Streptomycetaceae','Streptomyces','roseosporus','na',1,'10/27/2011 7:34:28 PM','D3L243 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (657,1269,'Streptomyces_roseosporus','Streptomyces roseosporus, a high-GC Gram-positive bacterium','S_roseosporus','Bacteria','Prokaryote','Actinobacteria','Actinobacteria','Actinomycetales','Streptomycetaceae','Streptomyces','roseosporus','na',1,'10/27/2011 7:35:02 PM','D3L243 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (658,1270,'Desulfovibrio_species','Desulfovibrio','Desulfovibrio_sp','Bacteria','Prokaryote','Proteobacteria','Deltaproteobacteria','Desulfovibrionales','Desulfovibrionaceae','Desulfovibrio','species','na',1,'11/30/2011 11:45:47 AM','D3M578 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (659,1271,'Desulfovibrio_sp_ND132','Desulfovibrio sp. ND132','Desulfovibrio_ND132','Bacteria','Prokaryote','Proteobacteria','Deltaproteobacteria','Desulfovibrionales','Desulfovibrionaceae','Desulfovibrio','species','ND132',1,'1/13/2012 11:10:55 AM','D3M578 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (660,1272,'Francisella_novicida_U112','Francisella novicida, sub-species U112','F_novicida_U112','Bacteria','Prokaryote','Proteobacteria','Gammaproteobacteria','Thiotrichales','Francisellaceae','Francisella','novicida','U112',1,'1/13/2012 11:42:08 AM','D3M578 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (661,1180,'Metallosphaera_yellowstonensis','Metallosphaera isolated from Yellowstone draft genome','M_yellowstonensis','Archaea','Archaea','Crenarchaeota','Thermoprotei','Sulfolobales','Sulfolobaceae','Metallosphaera','yellowstonensis','MK1',1,'2/22/2012 8:03:23 PM','pnl\D3L243')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (662,1273,'Leptospira_interrogans','Leptospira interrogans','L_interrogans','Bacteria','Prokaryote','Spirochaetes','Spirochaetes','Spirochaetales','Leptospiraceae','Leptospira','interrogans','na',1,'3/26/2012 12:52:48 PM','D3L243 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (663,1274,'Proteus_mirabilis_HI4320','Proteus mirabilis HI4320','P_mirabilis_HI4320','Bacteria','Prokaryote','Proteobacteria','Gammaproteobacteria','Enterobacteriales','Enterobacteriaceae','Proteus','mirabilis','HI4320',1,'4/24/2012 11:12:53 AM','D3L243 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (664,1274,'Proteus_mirabilis_HI4320','Proteus mirabilis HI4320','P_mirabilis','Bacteria','Prokaryote','Proteobacteria','Gammaproteobacteria','Enterobacteriales','Enterobacteriaceae','Proteus','mirabilis','HI4320',1,'4/24/2012 11:13:50 AM','D3L243 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (665,1274,'Proteus_mirabilis_HI4320','Proteus mirabilis HI4320','P_mirabilis','Bacteria','Bacteria','Proteobacteria','Gammaproteobacteria','Enterobacteriales','Enterobacteriaceae','Proteus','mirabilis','HI4320',1,'4/24/2012 11:14:24 AM','D3L243 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (666,1275,'Dermacentor_andersoni','Dermacentor andersoni','D_andersoni','Eukarya','Animalia','Arthropoda','Arachnida','Ixodida','Ixodidae','Dermacentor','andersoni','na',1,'5/8/2012 10:03:16 AM','turs875 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (667,1278,'Rhodopseudomonas_palustris_TIE-1','Aerobic and Anaerobic cultures from Carrie Harwood''s lab','R_pseudomonas_TIE-1','Bacteria','','Alphaproteobacteria','Rhizobiales','Bradyrhizobiaceae','Rhodopseudomonas','Rhodopseudomonas','palustris','TIE-1',1,'5/8/2012 10:29:44 AM','d3m120 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (668,1279,'Emiliania_huxleyi','Emiliania huxleyi, marine organism','E_huxleyi','Eukaryota','Chromalveolata','Haptophyta','Prymnesiophyceae','Isochrysidales','Noelaerhabdaceae','Emiliania','huxleyi','CCMP1516',1,'5/16/2012 2:38:27 PM','D3M578 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (669,1280,'Thermophilic_cellulose_adapted_Community','Microbial community from Thermophilic cellulose, composed of bacteria from the genus'' Thermus, Rhodothermus, Paenibacillus, Thermobacillus, Gemmatamonadetes (phylum), Thermobaculum, Conexibacter, Sphaerobacter, Thermomicrobium, and Hyphomicrobium.','Thermo_Cellulose_Com','Bacteria','Prokaryote','Community','na','na','na','na','na','na',1,'6/6/2012 4:08:39 PM','D3L243 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (670,1281,'PSI_Targeted_Studies','Combined organsim for sequences that are part of the targeted studiesforthe Protein Structuer Initiative','','','','','','','','na','na','na',1,'7/5/2012 3:28:07 PM','D3M578 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (671,1281,'PSI_Targeted_Studies','Combined organsim for sequences that are part of the targeted studiesforthe Protein Structuer Initiative','','','','','','','','na','na','na',1,'7/5/2012 3:28:40 PM','D3M578 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (672,1282,'Spirochaeta_thermophila_DSM_6192','Spirochaeta thermophila DSM 6192','S_thermophila_DSM_6192','Bacteria','Prokaryote','Spirochaetes','Spirochaetes','Spirochaetales','Spirochaetaceae','Spirochaeta','thermophila','DSM_6192',1,'7/6/2012 12:35:52 PM','D3M578 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (673,1283,'Syntrophus_aciditrophicus_SB','Syntrophus aciditrophicus SB','S_aciditrophicus_SB','Bacteria','Prokaryote','Proteobacteria','Deltaproteobacteria','Syntrophobacterales','Syntrophaceae','Syntrophus','aciditrophicus','SB',1,'7/6/2012 12:54:30 PM','D3M578 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (674,1283,'Syntrophus_aciditrophicus_SB','Syntrophus aciditrophicus SB, NC_007759','S_aciditrophicus_SB','Bacteria','Prokaryote','Proteobacteria','Deltaproteobacteria','Syntrophobacterales','Syntrophaceae','Syntrophus','aciditrophicus','SB',1,'7/6/2012 12:55:02 PM','D3M578 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (675,1284,'Lignocellulase_Sequences_For_Spectral_Mapping','bacterial and fungal community sequences involved in lignocellulose degradation','Lignocellulase_Sequences','Prokaryote','Prokaryote','Community','na','na','na','na','na','na',1,'7/19/2012 4:11:55 PM','D3M578 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (676,1284,'Lignocellulase_Sequences_For_Spectral_Mapping','Bacterial and fungal community sequences involved in lignocellulose degradation.','Lignocellulase_Sequences','Prokaryote','Prokaryote','Community','na','na','na','na','na','na',1,'8/1/2012 7:16:11 PM','D3L243 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (677,1284,'Lignocellulase_Sequences_For_Spectral_Mapping','Bacterial and fungal community sequences involved in lignocellulose degradation','Lignocellulase_Sequences','Prokaryote','Prokaryote','Community','na','na','na','na','na','na',1,'8/1/2012 7:16:35 PM','D3L243 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (678,1285,'Desulfotomaculum_reducens_MI-1','Sulfate Reducing Bacterium','D_reducens_MI-1','Bacteria','','Firmicutes','Clostridia','Clostridiales','Peptococcaceae','Desulfotomaculum','reducens','MI-1',1,'8/9/2012 11:37:34 AM','d3m120 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (679,1285,'Desulfotomaculum_reducens_MI-1','Sulfate and Iron Reducing Bacterium','D_reducens_MI-1','Bacteria','','Firmicutes','Clostridia','Clostridiales','Peptococcaceae','Desulfotomaculum','reducens','MI-1',1,'8/9/2012 11:41:03 AM','d3m120 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (680,1286,'Desulfotomaculum_acetoxidans_ATCC_49208_DSM_771','Sulfate Reducing Bacterium','D_acetoxidans','Bacteria','','Firmicutes','Clostridia','Clostridiales','Peptococcaceae','Desulfotomaculum','acetoxidans','ATCC_49209_DSM_771',1,'8/9/2012 11:42:31 AM','d3m120 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (681,1287,'Staphylococcus_aureus_ATCC33591','Staphylococcus Aureus (Methycillin Resistant) MRSA - strain ATCC 33591','S_aureus_ATCC33591','Bacteria','Eukaryota','Firmicutes','Bacilli','Bacillales','Staphylococcaceae','Staphylococcus','aureus','ATCC33591',1,'8/9/2012 12:06:23 PM','D3M578 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (682,1288,'Hydrogenobaculum_sp_Y04AAS1','Hydrogenobaculum species Y04AAS1','Hydrogenobaculum_Y04AAS1','Bacteria','Aquificae','Aquificae','Deltaproteobacteria','Aquificales','Aquificaceae','Hydrogenobaculum','species','Y04AAS1',1,'8/22/2012 11:37:59 AM','D3M578 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (683,1289,'Sulfurihydrogenibium_sp_YO3AOP1','Sulfurihydrogenibium species YO3AOP1','Sulfurihydrogenibium_YO3AOP1','Bacteria','Bacteria','Aquificae','Aquificae','Aquificales','Hydrogenothermaceae','Sulfurihydrogenibium','species','YO3AOP1',1,'8/22/2012 11:44:48 AM','D3M578 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (684,1288,'Hydrogenobaculum_sp_Y04AAS1','Hydrogenobaculum species Y04AAS1','Hydrogenobaculum_Y04AAS1','Bacteria','Bacteria','Aquificae','Aquificae','Aquificales','Aquificaceae','Hydrogenobaculum','species','Y04AAS1',1,'8/22/2012 11:45:12 AM','D3M578 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (685,1290,'Sulfurihydrogenibium_yellowstonense_SS-5','Sulfurihydrogenibium yellowstonense SS-5','S_yellowstonense_SS-5','Bacteria','Bacteria','Aquificae','Aquificae','Aquificales','Hydrogenothermaceae','Sulfurihydrogenibium','yellowstonense','SS-5',1,'8/22/2012 11:47:52 AM','D3M578 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (686,1291,'Candida_albicans','Candida albicans','C_albicans','Eukaryote','Fungi','Ascomycota','Saccharomycetes','Saccharomycetales','Saccharomycetaceae','Candida','albicans','na',1,'8/29/2012 12:56:35 PM','D3L243 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (687,1292,'Synechococcus_elongatus_PCC7942','Synechococcus elongatus PCC7942','Synechococcus_PCC7942','Bacteria','Prokaryote','Cyanobacteria','Cyanobacteria','Chroococcales','Synechococcaceae','Synechococcus','elongatus','PCC7942',1,'8/30/2012 4:42:09 PM','D3M578 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (688,1293,'Thermosynechococcus_sp_NAK55','Thermophilic cyanobacterium isolated from Nakabusa Spring, Japan','Thermosynechococcus_NAK55','Bacteria','Prokaryote','Cyanobacteria','Chroobacteria','Chroococcales','Synechococcaceae','Thermosynechococcus','species','NAK55',1,'8/31/2012 2:41:32 PM','D3M578 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (689,1293,'Thermosynechococcus_sp_NAK55','Thermophilic cyanobacterium isolated from Nakabusa Spring, Japan','Thermosynechococcus_NAK55','Bacteria','Prokaryote','Cyanobacteria','Chroobacteria','Chroococcales','Synechococcaceae','Thermosynechococcus','NAK55','na',1,'8/31/2012 2:58:26 PM','D3M578 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (690,1294,'Human_Gastrointestinal_Microbial_Community','Bacterial community isolated from human gastrointestinal tract','Gastrointestinal_Microbiome','Bacteria','Prokaryote','Community','na','na','na','na','na','na',1,'9/19/2012 6:56:47 PM','D3L243 (via DMSWebUser)')
INSERT INTO [T_Organisms_Change_History] (Event_ID, Organism_ID, OG_name, OG_description, OG_Short_Name, OG_Domain, OG_Kingdom, OG_Phylum, OG_Class, OG_Order, OG_Family, OG_Genus, OG_Species, OG_Strain, OG_Active, Entered, Entered_By) VALUES (691,1294,'Human_Gastrointestinal_Microbial_Community','Bacterial community isolated from human gastrointestinal tract','Gastrointestinal_Microbiome','Bacteria','Prokaryote','Community','na','na','na','na','na','na',1,'9/19/2012 6:57:34 PM','D3L243 (via DMSWebUser)')
SET IDENTITY_INSERT [T_Organisms_Change_History] OFF
|
<filename>WIKI/maintenance/archives/patch-updatelog.sql
CREATE TABLE /*$wgDBprefix*/updatelog (
ul_key varchar(255) NOT NULL,
PRIMARY KEY (ul_key)
) /*$wgDBTableOptions*/;
|
-- Adding ar_deleted field for revisiondelete
ALTER TABLE /*$wgDBprefix*/logging
ADD log_deleted tinyint unsigned NOT NULL default '0';
|
<filename>src/main/resources/db/migration/V6.1.2__add_actual_courses.sql<gh_stars>10-100
REPLACE INTO course(category,code,compulsory,semester,active,start_year,finish_year,title,credits,branch,type,class_work_marks,mid_sem_marks,final_marks,total_marks,lecture_part,tutorial_part,practical_part,department_code) VALUES
('BS','AC101',TRUE,1,FALSE,2001,2010,'Applied Chemistry-I',3,'FY','T',15,25,60,100,3,1,0,'AC')
,('BS','AC102',TRUE,2,FALSE,2001,2010,'Applied Chemistry-II',3,'FY','T',15,25,60,100,3,1,0,'AC')
,('BS','AC103',TRUE,1,FALSE,2001,2010,'Applied Chemistry',3,'AR','T',40,60,NULL,100,3,1,0,'AC')
,('BS','AC111',TRUE,0,TRUE,2011,NULL,'Applied Chemistry',4,'FY','T',15,25,60,100,3,1,0,'AC')
,('BS','AC191',TRUE,1,FALSE,2001,2010,'Applied Chemistry Lab-I',1,'FY','P',60,NULL,40,100,0,1,2,'AC')
,('BS','AC192',TRUE,2,FALSE,2001,2010,'Applied Chemistry Lab-II',1,'FY','P',60,NULL,40,100,0,1,2,'AC')
,('BS','AC193',TRUE,1,FALSE,2001,2010,'Applied Chemistry Lab',1,'AR','P',60,40,NULL,100,3,1,0,'AC')
,('BS','AC194',TRUE,0,TRUE,2011,NULL,'Applied Chemistry Lab',2,'FY','P',60,NULL,40,100,0,1,2,'AC')
,('BS','AC204',TRUE,4,FALSE,2001,2010,'Engg. Chemistry',3,'KE','T',15,25,60,100,3,1,0,'AC')
,('BS','AC211',TRUE,4,TRUE,2011,NULL,'Engg Chemistry & Material Science',4,'KE','T',15,25,60,100,3,1,0,'AC')
,('BS','AC294',TRUE,4,FALSE,2001,2010,'Applied Chemistry Lab III',1,'KE','P',60,NULL,40,100,0,1,2,'AC')
,('OE','AC308',FALSE,5,TRUE,2001,NULL,'Atmospheric Chemistry',4,'OE','T',15,25,60,100,3,1,0,'AC')
,('ESA','AC311',TRUE,5,TRUE,2011,NULL,'Engineering Materials',4,'PK','T',15,25,60,100,3,1,0,'AC')
,('ESA','AC317',TRUE,5,FALSE,2004,2010,'Engg. & Polymeric Materials',4,'PK','T',15,25,60,100,3,1,0,'AC')
,('BS','ACS1110',TRUE,0,TRUE,2017,NULL,'Applied Chemistry',4,'FY','T',15,25,60,100,3,1,0,'AC')
,('BS','ACS1910',TRUE,0,TRUE,2017,NULL,'Applied Chemistry Lab',1.5,'FY','P',60,NULL,40,100,0,0,3,'AC')
,('BS','AM101',TRUE,1,FALSE,2001,2010,'Applied Mathematics-I',5,'FY','T',15,25,60,100,3,1,0,'AM')
,('BS','AM102',TRUE,2,FALSE,2001,2010,'Applied Mathematics-II',5,'FY','T',15,25,60,100,3,1,0,'AM')
,('BS','AM111',TRUE,1,TRUE,2011,NULL,'Mathematics-I',4,'FY','T',15,25,60,100,3,1,0,'AM')
,('BS','AM112',TRUE,2,TRUE,2011,NULL,'Mathematics-II',4,'FY','T',15,25,60,100,3,1,0,'AM')
,('BS','AM181F',FALSE,0,FALSE,2005,2010,'Basic Engg Mathematics Seminar-I',1,'FY','P',60,NULL,40,100,0,1,2,'AM')
,('BS','AM182F',FALSE,0,FALSE,2005,2010,'Basic Engg Mathematics Seminar-II',1,'FY','P',60,NULL,40,100,0,1,2,'AM')
,('BS','AM211',TRUE,3,TRUE,2001,NULL,'Mathematics-III',4,'CE','T',15,25,60,100,3,1,0,'AM')
,('BS','AM212',TRUE,4,TRUE,2001,NULL,'Mathematics IV',4,'CE','T',15,25,60,100,3,1,0,'AM')
,('BS','AM221',TRUE,3,FALSE,2001,2010,'Higher Mathematics-I',4,'EE','T',15,25,60,100,3,1,0,'AM')
,('BS','AM222',TRUE,4,FALSE,2001,2010,'Higher Mathematics-II',4,'EE','T',15,25,60,100,3,1,0,'AM')
,('BS','AM223',TRUE,3,TRUE,2011,NULL,'Higher Mathematics',4,'EE','T',15,25,60,100,3,1,0,'AM')
,('OE','AM224',FALSE,5,TRUE,2001,NULL,'Higher Mathematics',4,'OE','T',15,25,60,100,3,1,0,'AM')
,('BS','AM231',TRUE,3,TRUE,2001,NULL,'Higher Mathematics',4,'ME','T',15,25,60,100,3,1,0,'AM')
,('ESA','AM232',TRUE,4,TRUE,2011,NULL,'Numerical Methods & Optimization',4,'ME','T',15,25,60,100,3,1,0,'AM')
,('BS','AM241',TRUE,3,TRUE,2001,NULL,'Higher Mathematics',4,'KE','T',15,25,60,100,3,1,0,'AM')
,('BS','AM242',TRUE,4,TRUE,2001,NULL,'Applied Numerical Methods',4,'PK','T',15,25,60,100,3,1,0,'AM')
,('BS','AM251',TRUE,3,TRUE,2001,NULL,'Higher Mathematics-I',4,'LE','T',15,25,60,100,3,1,0,'AM')
,('BS','AM252',TRUE,3,TRUE,2001,NULL,'Higher Mathematics-II',4,'LE','T',15,25,60,100,3,1,0,'AM')
,('BS','AM261',TRUE,3,TRUE,2001,NULL,'Higher Mathematics',4,'PE','T',15,25,60,100,3,1,0,'AM')
,('BS','AM262',TRUE,4,TRUE,2001,NULL,'Num. Anal., Transforms & Probab.',4,'PE','T',15,25,60,100,3,1,0,'AM')
,('BS','AM263',TRUE,4,TRUE,2011,NULL,'Discrete Structure',4,'PE','T',15,25,60,100,3,1,0,'AM')
,('BS','AM291N',TRUE,3,FALSE,2004,2010,'Computer Lab',1.5,'PK','P',60,NULL,40,100,0,1,2,'AM')
,('BS','AM331',TRUE,5,FALSE,2001,2010,'Numerical Methods & Optimization',4,'ME','T',15,25,60,100,3,1,0,'AM')
,('OE','AM351',FALSE,5,TRUE,2001,NULL,'Numerical Techniques',4,'OE','T',15,25,60,100,3,1,0,'AM')
,('OE','AM443',FALSE,5,TRUE,2001,NULL,'Advanced Numerical Methods',4,'OE','T',15,25,60,100,3,1,0,'AM')
,('BS','AMS1110',TRUE,1,TRUE,2017,NULL,'Applied Mathematics-I',4,'FY','T',15,25,60,100,3,1,0,'AM')
,('BS','AMS1120',TRUE,2,TRUE,2017,NULL,'Applied Mathematics-II',4,'FY','T',15,25,60,100,3,1,0,'AM')
,('BS','AP101',TRUE,1,FALSE,2001,2010,'Applied Physics-I',3,'FY','T',15,25,60,100,3,1,0,'AP')
,('BS','AP102',TRUE,2,FALSE,2001,2010,'Applied Physics-II',3,'FY','T',15,25,60,100,3,1,0,'AP')
,('BS','AP103',TRUE,1,FALSE,2001,2010,'Applied Physics',3,'AR','T',40,60,NULL,100,3,1,0,'AP')
,('BS','AP111',TRUE,0,TRUE,2011,NULL,'Applied Physics',4,'FY','T',15,25,60,100,3,1,0,'AP')
,('BS','AP191',TRUE,1,FALSE,2001,2010,'Applied Physics Lab-I',1,'FY','P',60,NULL,40,100,0,1,2,'AP')
,('BS','AP192',TRUE,2,FALSE,2001,2010,'Applied Physics Lab-II',1,'FY','P',60,NULL,40,100,0,1,2,'AP')
,('BS','AP193',TRUE,1,FALSE,2001,2010,'Applied Physics Lab',1,'AR','P',60,40,NULL,100,3,1,0,'AP')
,('BS','AP194',TRUE,0,TRUE,2011,NULL,'Applied Physics Lab',2,'FY','P',60,NULL,40,100,0,1,2,'AP')
,('ESA','AP204',TRUE,4,TRUE,2011,NULL,'Electromagnetics',4,'LE','T',15,25,60,100,3,1,0,'AP')
,('OE','AP304',FALSE,5,TRUE,2001,NULL,'Bio-physics',4,'OE','T',15,25,60,100,3,1,0,'AP')
,('DE','AP304D',FALSE,5,FALSE,2001,2010,'Bio-physics',4,'KE','T',15,25,60,100,3,1,0,'AP')
,('OE','AP308',FALSE,5,TRUE,2001,NULL,'Engg. Materials & Material Science',4,'OE','T',15,25,60,100,3,1,0,'AP')
,('OE','AP309',FALSE,5,TRUE,2001,NULL,'Nano-physics & Nano-technology-I',4,'OE','T',15,25,60,100,3,1,0,'AP')
,('OE','AP407',FALSE,5,TRUE,2001,NULL,'Nuclear Chemical Engg.',4,'OE','T',15,25,60,100,3,1,0,'AP')
,('OE','AP410',FALSE,5,TRUE,2001,NULL,'Nano-physics & Nano-technology-II',4,'OE','T',15,25,60,100,3,1,0,'AP')
,('OE','AP411',FALSE,5,TRUE,2001,NULL,'Indust. Physics: Emerging Technol.',4,'OE','T',15,25,60,100,3,1,0,'AP')
,('BS','APS1110',TRUE,0,TRUE,2017,NULL,'Applied Physics',4,'FY','T',15,25,60,100,3,1,0,'AP')
,('BS','APS1910',TRUE,0,TRUE,2017,NULL,'Applied Physics Lab',1.5,'FY','P',60,NULL,40,100,0,0,3,'AP')
,('DC','AR101',TRUE,1,FALSE,2001,2010,'Principles of Architecture',3,'AR','T',40,60,NULL,100,3,1,0,'AR')
,('DC','AR102',TRUE,2,TRUE,2001,NULL,'Construction & Materials-I',4,'AR','T',40,20,40,100,3,1,0,'AR')
,('DC','AR103',TRUE,1,TRUE,2001,NULL,'Architectural Drawing-I',4,'AR','T',40,20,40,100,3,1,0,'AR')
,('DC','AR104',TRUE,2,FALSE,2001,2010,'Arts & Graphics-I',3,'AR','T',40,60,NULL,100,3,1,0,'AR')
,('DC','AR105',TRUE,2,FALSE,2001,2010,'Design Philosophy',3,'AR','T',40,60,NULL,100,3,1,0,'AR')
,('DC','AR106',TRUE,2,TRUE,2011,NULL,'Arts & Graphics',3,'AR','T',40,20,40,100,3,1,0,'AR')
,('DC','AR111',TRUE,2,FALSE,2001,2010,'Basic Design',4.5,'AR','T',40,60,NULL,100,3,1,0,'AR')
,('DC','AR112',TRUE,1,TRUE,2011,NULL,'Principles & Philosophy of Architecture',4,'AR','T',15,25,60,100,3,1,0,'AR')
,('DC','AR113',TRUE,2,TRUE,2011,NULL,'Architectural Drawing-II',6,'AR','T',40,20,40,100,3,1,0,'AR')
,('DC','AR151',TRUE,2,TRUE,2011,NULL,'Basic Design',4,'AR','T',50,10,40,100,3,1,0,'AR')
,('DC','AR201',TRUE,3,FALSE,2001,2010,'Climatology',3,'AR','T',40,60,NULL,100,3,1,0,'AR')
,('DC','AR202',TRUE,4,FALSE,2001,2010,'Design With Climate',3,'AR','T',40,60,NULL,100,3,1,0,'AR')
,('DC','AR203',TRUE,3,TRUE,2001,NULL,'Construction & Materials-II',5,'AR','T',40,20,40,100,3,1,0,'AR')
,('DC','AR204',TRUE,4,TRUE,2001,NULL,'Construction & Materials-III',5,'AR','T',40,20,40,100,3,1,0,'AR')
,('DC','AR205',TRUE,3,FALSE,2001,2010,'Architectural Drawing-II',4,'AR','T',40,60,NULL,100,3,1,0,'AR')
,('DC','AR206',TRUE,4,FALSE,2001,2010,'Architectural Drawing-III',4,'AR','T',40,60,NULL,100,3,1,0,'AR')
,('DC','AR207',TRUE,3,FALSE,2001,2010,'Arts & Graphics-II',3,'AR','T',40,60,NULL,100,3,1,0,'AR')
,('DC','AR208',TRUE,4,FALSE,2001,2010,'Arts & Graphics-III',3,'AR','T',40,60,NULL,100,3,1,0,'AR')
,('DC','AR209',TRUE,3,TRUE,2001,NULL,'Ancient Archit.(Indian & Far East)',3,'AR','T',15,25,60,100,3,1,0,'AR')
,('DC','AR210',TRUE,4,TRUE,2001,NULL,'Pre-modern/western Architecture',3,'AR','T',15,25,60,100,3,1,0,'AR')
,('DC','AR211',TRUE,3,TRUE,2011,NULL,'Climate and Design',4,'AR','T',15,25,60,100,3,1,0,'AR')
,('DC','AR212',TRUE,4,TRUE,2011,NULL,'Building Bye Laws & Regulations',3,'AR','T',15,25,60,100,3,1,0,'AR')
,('DC','AR217',TRUE,3,TRUE,2011,NULL,'Water Supply & Sanitation',3,'AR','T',15,25,60,100,3,1,0,'AR')
,('DC','AR251',TRUE,3,FALSE,2001,2010,'Architectural Design-I',8,'AR','T',40,60,NULL,100,3,1,0,'AR')
,('DC','AR251N',TRUE,3,TRUE,2011,NULL,'Architectural Design-I',7,'AR','T',50,10,40,100,3,1,0,'AR')
,('DC','AR252',TRUE,4,FALSE,2001,2010,'Architectural Design-II',8,'AR','T',40,60,NULL,100,3,1,0,'AR')
,('DC','AR252N',TRUE,4,TRUE,2011,NULL,'Architecture Design-II',7,'AR','T',50,10,40,100,3,1,0,'AR')
,('DC','AR291',TRUE,3,FALSE,2001,2010,'Cadd',2,'AR','P',60,40,NULL,100,3,1,0,'AR')
,('DC','AR291N',TRUE,3,TRUE,2011,NULL,'CADD',3,'AR','P',60,0,40,100,3,1,0,'AR')
,('DC','AR292',TRUE,4,TRUE,2011,NULL,'Building Study',2,'AR','P',60,0,40,100,3,1,0,'AR')
,('DC','AR293',TRUE,3,FALSE,2001,2010,'Model Making',1.5,'AR','P',60,40,NULL,100,3,1,0,'AR')
,('DC','AR293N',TRUE,3,TRUE,2011,NULL,'Model Making & Photography',2,'AR','P',60,0,40,100,3,1,0,'AR')
,('DC','AR301',TRUE,5,TRUE,2001,NULL,'Islamic Architecture',3,'AR','T',15,25,60,100,3,1,0,'AR')
,('DC','AR302',TRUE,6,TRUE,2011,NULL,'Town Planning',4,'AR','T',15,25,60,100,3,1,0,'AR')
,('OE','AR303',FALSE,5,TRUE,2001,NULL,'Landscape Design',4,'OE','T',15,25,60,100,3,1,0,'AR')
,('DC','AR303N',TRUE,5,TRUE,2011,NULL,'Landscape Design',3,'AR','T',40,20,40,100,3,1,0,'AR')
,('DC','AR304',TRUE,6,FALSE,2001,2010,'Building By-laws',3,'AR','T',40,60,NULL,100,3,1,0,'AR')
,('DC','AR305',TRUE,5,FALSE,2001,2010,'Specification,Estimating & Costing',4,'AR','T',40,60,NULL,100,3,1,0,'AR')
,('DC','AR306',TRUE,6,TRUE,2001,NULL,'Building Services (Elect. & Mech.)',4,'AR','T',15,25,60,100,3,1,0,'AR')
,('DC','AR307',TRUE,5,FALSE,2001,2010,'Water Supply & Sanitation',3,'AR','T',40,60,NULL,100,3,1,0,'AR')
,('DC','AR308',TRUE,6,FALSE,2001,2010,'Construction & Materials-IV',6,'AR','T',40,60,NULL,100,3,1,0,'AR')
,('DC','AR308N',TRUE,6,TRUE,2011,NULL,'Construction & Materials IV',5,'AR','T',40,20,40,100,3,1,0,'AR')
,('DC','AR315',TRUE,5,TRUE,2011,NULL,'Introduction To Interior Design',3,'AR','T',40,20,40,100,3,1,0,'AR')
,('DC','AR351',TRUE,5,FALSE,2001,2010,'Architectural Design-III',8,'AR','T',40,60,NULL,100,3,1,0,'AR')
,('DC','AR351N',TRUE,5,TRUE,2011,NULL,'Architectural Design III',7,'AR','T',60,0,40,100,3,1,0,'AR')
,('DC','AR352',TRUE,6,FALSE,2001,2010,'Architectural Design-IV',8,'AR','T',40,60,NULL,100,3,1,0,'AR')
,('DC','AR352N',TRUE,6,TRUE,2011,NULL,'Architectural Design IV',7,'AR','T',50,10,40,100,3,1,0,'AR')
,('DC','AR392',TRUE,6,FALSE,2001,2010,'Building Study',2,'AR','P',60,40,NULL,100,3,1,0,'AR')
,('DC','AR394',TRUE,6,TRUE,2011,NULL,'Working Drawing',2,'AR','P',60,0,40,100,3,1,0,'AR')
,('OE','AR401',FALSE,5,TRUE,2001,NULL,'Interior Design',4,'OE','T',15,25,60,100,3,1,0,'AR')
,('DC','AR402',TRUE,8,TRUE,2001,NULL,'Modern & Contemporary Archit.',3,'AR','T',15,25,60,100,3,1,0,'AR')
,('DC','AR403',TRUE,7,FALSE,2001,2010,'Construction & Materials-V',6,'AR','T',40,60,NULL,100,3,1,0,'AR')
,('DC','AR403N',TRUE,7,TRUE,2011,NULL,'Construction & Materials V',5,'AR','T',40,20,40,100,3,1,0,'AR')
,('DC','AR404',TRUE,8,FALSE,2001,2010,'Urban & Rural Planning',3,'AR','T',40,60,NULL,100,3,1,0,'AR')
,('DC','AR404N',TRUE,8,TRUE,2011,NULL,'Urban & Rural Planning',4,'AR','T',15,25,60,100,3,1,0,'AR')
,('DC','AR405N',TRUE,7,FALSE,2007,2010,'Town Planning',4,'AR','T',40,60,NULL,100,3,1,0,'AR')
,('DC','AR406',TRUE,8,FALSE,2001,2010,'Valuation & Arbitration',3,'AR','T',40,60,NULL,100,3,1,0,'AR')
,('DC','AR408',TRUE,8,FALSE,2001,2010,'Building Economics',2,'AR','T',40,60,NULL,100,3,1,0,'AR')
,('DC','AR410',TRUE,8,FALSE,2001,2010,'Construction & Materials-VI',6,'AR','T',40,60,NULL,100,3,1,0,'AR')
,('HM','AR412',TRUE,8,TRUE,2011,NULL,'Building Const. Management & Economics',4,'AR','T',15,25,60,100,3,1,0,'AR')
,('DC','AR415',TRUE,7,TRUE,2011,NULL,'Estimating, Costing & Specification',4,'AR','T',15,25,60,100,3,1,0,'AR')
,('DC','AR451',TRUE,7,FALSE,2001,2010,'Architectural Design-V',8,'AR','T',40,60,NULL,100,3,1,0,'AR')
,('DC','AR451N',TRUE,7,TRUE,2011,NULL,'Architectural Design V',7,'AR','T',50,10,40,100,3,1,0,'AR')
,('DC','AR452',TRUE,8,FALSE,2001,2010,'Architectural Design-VI',8,'AR','T',40,60,NULL,100,3,1,0,'AR')
,('DC','AR452N',TRUE,8,TRUE,2011,NULL,'Architectural Design VI',7,'AR','T',50,10,40,100,3,1,0,'AR')
,('DC','AR491',TRUE,7,TRUE,2001,NULL,'Summer Training',2,'AR','P',0,0,100,100,3,1,0,'AR')
,('DC','AR493',TRUE,7,FALSE,2001,2010,'Working Drawing',2,'AR','P',60,40,NULL,100,3,1,0,'AR')
,('DC','AR501',TRUE,9,FALSE,2001,2010,'Professional Practices',3,'AR','T',40,60,NULL,100,3,1,0,'AR')
,('DE','AR503',FALSE,9,TRUE,2001,NULL,'Advanced Interior Design',4,'AR','T',15,25,60,100,3,1,0,'AR')
,('DE','AR505',FALSE,9,TRUE,2001,NULL,'Architectural Acoustics',4,'AR','T',15,25,60,100,3,1,0,'AR')
,('DE','AR507',FALSE,9,TRUE,2001,NULL,'Urban Design',4,'AR','T',15,25,60,100,3,1,0,'AR')
,('DE','AR509',FALSE,9,TRUE,2001,NULL,'Sustainable Architecture',4,'AR','T',15,25,60,100,3,1,0,'AR')
,('DE','AR511',FALSE,9,TRUE,2001,NULL,'Housing & Community Planning',4,'AR','T',15,25,60,100,3,1,0,'AR')
,('DE','AR513',FALSE,9,TRUE,2001,NULL,'Architectural Conservation',4,'AR','T',15,25,60,100,3,1,0,'AR')
,('DC','AR517',FALSE,9,TRUE,2011,NULL,'Professional Practice, Valuation & Arbitration',4,'AR','T',15,25,60,100,3,1,0,'AR')
,('DC','AR551',TRUE,9,FALSE,2001,2010,'Design Thesis',20,'AR','T',60,40,NULL,100,3,1,0,'AR')
,('DC','AR555',TRUE,9,TRUE,2011,NULL,'Design Thesis',12,'AR','T',60,0,40,100,3,1,0,'AR')
,('DC','AR592',TRUE,10,TRUE,2001,NULL,'Professional Training',8,'AR','P',0,0,100,100,3,1,0,'AR')
,('DC','ARC1010',TRUE,1,TRUE,2017,NULL,'Principles and Philosophy of Architecture',4,'AR','T',15,25,60,100,3,1,0,'AR')
,('DC','ARC1310',TRUE,1,TRUE,2017,NULL,'Architectural Drawing - I',5,'AR','T',40,20,40,100,1,0,2,'AR')
,('DC','ARC1610',TRUE,1,TRUE,2017,NULL,'Basic Design and Visual Appreciation',7,'AR','T',50,10,40,100,1,0,2,'AR')
,('ESA','CE101',TRUE,2,FALSE,2001,2010,'Strength of Materials',4,'FY','T',15,25,60,100,3,1,0,'CE')
,('ESA','CE111',TRUE,0,TRUE,2011,NULL,'Environmental Studies',4,'FY','T',15,25,60,100,3,1,0,'CE')
,('DC','CE212',TRUE,3,FALSE,2001,2014,'Civil Engineering Materials',4,'CE','T',15,25,60,100,3,1,0,'CE')
,('ESA','CE213',TRUE,3,TRUE,2001,NULL,'Fluid Mechanics',4,'CE','T',15,25,60,100,3,1,0,'CE')
,('DC','CE214',TRUE,4,TRUE,2015,NULL,'Water Supply and Treatment',4,'CE','T',15,25,60,100,3,1,0,'CE')
,('ESA','CE214N',TRUE,3,FALSE,2005,2010,'Environmental Science',4,'CE','T',15,25,60,100,3,1,0,'CE')
,('ESA','CE215',TRUE,3,TRUE,2001,NULL,'Engineering Geology',4,'CE','T',15,25,60,100,3,1,0,'CE')
,('DC','CE216',TRUE,4,TRUE,2001,NULL,'Structural Mechanics',4,'CE','T',15,25,60,100,3,1,0,'CE')
,('DC','CE217',TRUE,4,FALSE,2001,2014,'Construction Practice',4,'CE','T',15,25,60,100,3,1,0,'CE')
,('DC','CE218',TRUE,4,FALSE,2001,2010,'Surveying-I',4,'CE','T',15,25,60,100,3,1,0,'CE')
,('DC','CE218R',TRUE,4,TRUE,2011,NULL,'Surveying',4,'CE','T',15,25,60,100,3,1,0,'CE')
,('DC','CE219',TRUE,4,TRUE,2001,NULL,'Hydrology',4,'CE','T',15,25,60,100,3,1,0,'CE')
,('DC','CE220',TRUE,3,TRUE,2011,NULL,'Quantity Survey',4,'CE','T',15,25,60,100,3,1,0,'CE')
,('DC','CE221',TRUE,3,TRUE,2015,NULL,'Civil Engg. Materials & Construction Practice',4,'CE','T',15,25,60,100,3,1,0,'CE')
,('ESA','CE286R',TRUE,4,TRUE,2011,NULL,'Engg. Geology Camp',1,'CE','P',60,NULL,40,100,0,0,0,'CE')
,('DC','CE291N',TRUE,3,FALSE,2005,2010,'Civil Engg. Materials Lab',1.5,'CE','P',60,NULL,40,100,0,1,2,'CE')
,('DC','CE291R',TRUE,3,TRUE,2011,NULL,'Civil Engg. Materials Lab',2,'CE','P',60,NULL,40,100,0,1,2,'CE')
,('DC','CE292',TRUE,3,FALSE,2001,2010,'Fluid Mechanics Lab',1.5,'CE','P',60,NULL,40,100,0,1,2,'CE')
,('DC','CE292R',TRUE,3,TRUE,2011,NULL,'Fluid Mechanics Lab',2,'CE','P',60,NULL,40,100,0,1,2,'CE')
,('ESA','CE293N',TRUE,3,FALSE,2005,2010,'Engineering Geology Lab',1,'CE','P',60,NULL,40,100,0,1,2,'CE')
,('ESA','CE293R',TRUE,3,TRUE,2011,NULL,'Engineering Geology Lab',2,'CE','P',60,NULL,40,100,0,1,2,'CE')
,('DC','CE294',TRUE,4,FALSE,2001,2010,'Structural Mechanics Lab',1.5,'CE','P',60,NULL,40,100,0,1,2,'CE')
,('DC','CE294R',TRUE,4,TRUE,2011,NULL,'Structural Mechanics Lab',2,'CE','P',60,NULL,40,100,0,1,2,'CE')
,('DC','CE295',TRUE,4,FALSE,2001,2010,'Surveying Lab-I',1.5,'CE','P',60,NULL,40,100,0,1,2,'CE')
,('DC','CE295R',TRUE,4,TRUE,2011,NULL,'Surveying Lab',2,'CE','P',60,NULL,40,100,0,1,2,'CE')
,('ESA','CE296N',TRUE,4,FALSE,2005,2010,'Engg. Geology Camp',1,'CE','P',60,NULL,40,100,0,1,2,'CE')
,('DC','CE297N',TRUE,3,FALSE,2005,2010,'Drawing & Estimating',1.5,'CE','P',60,NULL,40,100,0,1,2,'CE')
,('DC','CE311',TRUE,5,TRUE,2001,NULL,'Design of Concrete Structure-I',4,'CE','T',15,25,60,100,3,1,0,'CE')
,('DC','CE312',TRUE,5,TRUE,2001,NULL,'Soil Mechanics',4,'CE','T',15,25,60,100,3,1,0,'CE')
,('DC','CE313',TRUE,5,TRUE,2015,NULL,'Waste Management',4,'CE','T',15,25,60,100,3,1,0,'CE')
,('DC','CE313N',TRUE,5,FALSE,2005,2014,'Environmental Engineering',4,'CE','T',15,25,60,100,3,1,0,'CE')
,('DC','CE314',TRUE,5,FALSE,2001,2010,'Surveying II',4,'CE','T',15,25,60,100,3,1,0,'CE')
,('DC','CE315',TRUE,6,TRUE,2001,NULL,'Structural Analysis-I',4,'CE','T',15,25,60,100,3,1,0,'CE')
,('DC','CE316',TRUE,6,TRUE,2001,NULL,'Engineering Hydraulics-I',4,'CE','T',15,25,60,100,3,1,0,'CE')
,('DC','CE317',TRUE,6,TRUE,2001,NULL,'Transportation Engineering',4,'CE','T',15,25,60,100,3,1,0,'CE')
,('DC','CE318N',TRUE,6,TRUE,2005,NULL,'Design of Steel Structures',4,'CE','T',15,25,60,100,3,1,0,'CE')
,('OE','CE335',FALSE,5,TRUE,2001,NULL,'Environmental Pollution Abatement',4,'OE','T',15,25,60,100,3,1,0,'CE')
,('DC','CE384',TRUE,6,FALSE,2015,2016,'Survey Camp',1,'CE','P',60,NULL,40,100,0,0,0,'CE')
,('DC','CE384R',TRUE,5,FALSE,2011,2014,'Survey Camp',2,'CE','P',60,NULL,40,100,0,0,0,'CE')
,('DC','CE389',TRUE,6,FALSE,2011,2014,'Colloquim',2,'CE','P',60,NULL,40,100,0,1,2,'CE')
,('DC','CE389R',TRUE,5,TRUE,2015,NULL,'Colloquim',2,'CE','P',60,NULL,40,100,0,1,2,'CE')
,('DC','CE391',TRUE,5,FALSE,2001,2010,'Soil Mechanics Lab',1,'CE','P',60,NULL,40,100,0,1,2,'CE')
,('ESA','CE391A',TRUE,5,FALSE,2001,2010,'Soil Mechanics Lab',1.5,'AR','P',60,40,NULL,100,3,1,0,'CE')
,('DC','CE391R',TRUE,5,TRUE,2011,NULL,'Soil Mechanics Lab',2,'CE','P',60,NULL,40,100,0,1,2,'CE')
,('DC','CE392',TRUE,5,FALSE,2001,2010,'Environmental Engg. Lab',1.5,'CE','P',60,NULL,40,100,0,1,2,'CE')
,('DC','CE392R',TRUE,5,TRUE,2011,NULL,'Environmental Engineering Lab',2,'CE','P',60,NULL,40,100,0,1,2,'CE')
,('DC','CE393',TRUE,5,FALSE,2001,2010,'Surveying Lab-II',1.5,'CE','P',60,NULL,40,100,0,1,2,'CE')
,('DC','CE394',TRUE,5,FALSE,2001,2010,'Survey Camp',1,'CE','P',60,NULL,40,100,0,0,0,'CE')
,('DC','CE395',TRUE,6,FALSE,2001,2010,'Structures Lab',1.5,'CE','P',60,NULL,40,100,0,1,2,'CE')
,('DC','CE395N',TRUE,6,TRUE,2015,NULL,'CAD Lab-I',2,'CE','P',60,NULL,40,100,0,1,2,'CE')
,('DC','CE395R',TRUE,6,FALSE,2011,2014,'Steel Design Practice Lab',2,'CE','P',60,NULL,40,100,0,1,2,'CE')
,('DC','CE396',TRUE,6,FALSE,2001,2010,'Hydraulics Lab',1.5,'CE','P',60,NULL,40,100,0,1,2,'CE')
,('DC','CE396R',TRUE,6,TRUE,2011,NULL,'Hydraulics Lab',2,'CE','P',60,NULL,40,100,0,1,2,'CE')
,('DC','CE397N',TRUE,6,FALSE,2005,2010,'Transportation Engg. Lab',1,'CE','P',60,NULL,40,100,0,1,2,'CE')
,('DC','CE397R',TRUE,6,TRUE,2011,NULL,'Transportation Engineering Lab',2,'CE','P',60,NULL,40,100,0,1,2,'CE')
,('HM','CE410',TRUE,8,TRUE,2001,NULL,'Construction Management',4,'CE','T',15,25,60,100,3,1,0,'CE')
,('DC','CE411',TRUE,7,TRUE,2001,NULL,'Design of Concrete Structure-II',4,'CE','T',15,25,60,100,3,1,0,'CE')
,('DC','CE413',TRUE,7,TRUE,2001,NULL,'Foundation Engineering',4,'CE','T',15,25,60,100,3,1,0,'CE')
,('DC','CE414',TRUE,8,TRUE,2001,NULL,'Engineering Hydraulics-II',4,'CE','T',15,25,60,100,3,1,0,'CE')
,('DC','CE415',TRUE,8,TRUE,2001,NULL,'Irrigation Engineering',4,'CE','T',15,25,60,100,3,1,0,'CE')
,('DE','CE421',FALSE,8,TRUE,2001,NULL,'Concrete Technology',4,'CE','T',15,25,60,100,3,1,0,'CE')
,('DE','CE422',FALSE,8,TRUE,2001,NULL,'Ecology & Environment',4,'CE','T',15,25,60,100,3,1,0,'CE')
,('DE','CE423',FALSE,8,TRUE,2001,NULL,'Traffic Engineering',4,'CE','T',15,25,60,100,3,1,0,'CE')
,('DE','CE424',FALSE,8,TRUE,2001,NULL,'Ground Water Engineering',4,'CE','T',15,25,60,100,3,1,0,'CE')
,('DE','CE425',FALSE,8,TRUE,2001,NULL,'Adv. Hydrology',4,'CE','T',15,25,60,100,3,1,0,'CE')
,('DE','CE426',FALSE,8,FALSE,2001,2014,'Environmental Pollution Abatement',4,'CE','T',15,25,60,100,3,1,0,'CE')
,('DE','CE427',FALSE,8,TRUE,2001,NULL,'Geo-Eng. of Rock & Rock Masses',4,'CE','T',15,25,60,100,3,1,0,'CE')
,('DE','CE428',FALSE,8,TRUE,2001,NULL,'Dam Engineering',4,'CE','T',15,25,60,100,3,1,0,'CE')
,('DE','CE429',FALSE,8,TRUE,2001,NULL,'Industrial Pollution Control',4,'CE','T',15,25,60,100,3,1,0,'CE')
,('DE','CE430',FALSE,7,FALSE,2001,2014,'Structural Analysis-II',4,'CE','T',15,25,60,100,3,1,0,'CE')
,('DC','CE430N',TRUE,7,TRUE,2015,NULL,'Structural Analysis-II',4,'CE','T',15,25,60,100,3,1,0,'CE')
,('DE','CE431',FALSE,7,TRUE,2001,NULL,'Reliability Analysis of Structures',4,'CE','T',15,25,60,100,3,1,0,'CE')
,('DE','CE432',FALSE,7,TRUE,2001,NULL,'Water Power Engineering',4,'CE','T',15,25,60,100,3,1,0,'CE')
,('DE','CE433',FALSE,7,TRUE,2001,NULL,'Adv. Highway Engineering',4,'CE','T',15,25,60,100,3,1,0,'CE')
,('DE','CE434',FALSE,7,TRUE,2001,NULL,'Bridge Engineering',4,'CE','T',15,25,60,100,3,1,0,'CE')
,('DE','CE435',FALSE,7,TRUE,2001,NULL,'Design of Energy Dissipaters',4,'CE','T',15,25,60,100,3,1,0,'CE')
,('DE','CE436',FALSE,7,TRUE,2001,NULL,'Sediment Transport',4,'CE','T',15,25,60,100,3,1,0,'CE')
,('DE','CE437',FALSE,7,TRUE,2001,NULL,'Prestressed Concrete',4,'CE','T',15,25,60,100,3,1,0,'CE')
,('DE','CE438',FALSE,8,TRUE,2001,NULL,'Adv. Structural Analysis',4,'CE','T',15,25,60,100,3,1,0,'CE')
,('DE','CE439',FALSE,8,TRUE,2001,NULL,'Industrial Structures',4,'CE','T',15,25,60,100,3,1,0,'CE')
,('DE','CE440',FALSE,8,TRUE,2001,NULL,'Adv. Hydraulic Structures',4,'CE','T',15,25,60,100,3,1,0,'CE')
,('DE','CE441',FALSE,8,TRUE,2001,NULL,'Adv. Foundation Engineering',4,'CE','T',15,25,60,100,3,1,0,'CE')
,('DE','CE442',FALSE,7,FALSE,2001,2014,'Water Power Engineering',4,'CE','T',15,25,60,100,3,1,0,'CE')
,('DE','CE442N',FALSE,8,FALSE,2001,2014,'Adv. Environmental Engg.',4,'CE','T',15,25,60,100,3,1,0,'CE')
,('DE','CE443N',FALSE,8,TRUE,2001,NULL,'River Engineering',4,'CE','T',15,25,60,100,3,1,0,'CE')
,('DE','CE444',FALSE,7,FALSE,2001,2014,'Adv. Highway Engineering',4,'CE','T',15,25,60,100,3,1,0,'CE')
,('OE','CE444N',FALSE,5,TRUE,2001,NULL,'Disaster Management',4,'OE','T',15,25,60,100,3,1,0,'CE')
,('DE','CE445',FALSE,7,FALSE,2001,2010,'Industrial Pollution Control',4,'CE','T',15,25,60,100,3,1,0,'CE')
,('DE','CE445N',FALSE,8,TRUE,2001,NULL,'Elem. of Earthquake & Wind Engg.',4,'CE','T',15,25,60,100,3,1,0,'CE')
,('OE','CE450',FALSE,5,TRUE,2001,NULL,'Geodesy',4,'OE','T',15,25,60,100,3,1,0,'CE')
,('DE','CE451',FALSE,7,FALSE,2001,2014,'Structural Analysis-II',4,'CE','T',15,25,60,100,3,1,0,'CE')
,('OE','CE455',FALSE,5,TRUE,2001,NULL,'Industrial Pollution Control',4,'OE','T',15,25,60,100,3,1,0,'CE')
,('OE','CE456',FALSE,5,TRUE,2001,NULL,'Engg. Environ. & Sustainable Dev.',4,'OE','T',15,25,60,100,3,1,0,'CE')
,('OE','CE459',FALSE,5,TRUE,2001,NULL,'Adv. Environmental Engg.',4,'OE','T',15,25,60,100,3,1,0,'CE')
,('DE','CE461',FALSE,8,FALSE,2001,2014,'Adv. Structural Analysis',4,'CE','T',15,25,60,100,3,1,0,'CE')
,('DE','CE462',FALSE,8,FALSE,2001,2014,'Industrial Structures',4,'CE','T',15,25,60,100,3,1,0,'CE')
,('DE','CE463',FALSE,8,FALSE,2001,2014,'Bridge Engineering',4,'CE','T',15,25,60,100,3,1,0,'CE')
,('DE','CE464',FALSE,8,FALSE,2001,2014,'Reliability Analysis of Structures',4,'CE','T',15,25,60,100,3,1,0,'CE')
,('OE','CE465',FALSE,5,TRUE,2001,NULL,'Water Reso. & Watershed Manag.',4,'OE','T',15,25,60,100,3,1,0,'CE')
,('DE','CE466',FALSE,8,FALSE,2001,2014,'Adv. Hydraulic Structures',4,'CE','T',15,25,60,100,3,1,0,'CE')
,('DE','CE467',FALSE,8,FALSE,2001,2014,'Design of Energy Dissipaters',4,'CE','T',15,25,60,100,3,1,0,'CE')
,('DE','CE468',FALSE,8,FALSE,2001,2014,'Sediment Transport',4,'CE','T',15,25,60,100,3,1,0,'CE')
,('DE','CE469',FALSE,8,FALSE,2001,2014,'Adv. Foundation Engineering',4,'CE','T',15,25,60,100,3,1,0,'CE')
,('DE','CE470',FALSE,8,FALSE,2001,2014,'Adv. Environmental Engg.',4,'CE','T',15,25,60,100,3,1,0,'CE')
,('OE','CE481',FALSE,5,TRUE,2001,NULL,'Fundamental Environmental Engg.',4,'OE','T',15,25,60,100,3,1,0,'CE')
,('OE','CE481R',FALSE,5,TRUE,2011,NULL,'Advanced Environmental Engineering',4,'OE','T',15,25,60,100,3,1,0,'CE')
,('OE','CE482',FALSE,5,TRUE,2001,NULL,'Remote Sensing',4,'OE','T',15,25,60,100,3,1,0,'CE')
,('OE','CE483',FALSE,5,TRUE,2001,NULL,'Water Reso. & Watershed Manag.',4,'OE','T',15,25,60,100,3,1,0,'CE')
,('OE','CE484',FALSE,5,TRUE,2001,NULL,'Project Management',4,'OE','T',15,25,60,100,3,1,0,'CE')
,('DC','CE488R',TRUE,7,FALSE,2011,2014,'Professional Training',1,'CE','P',60,NULL,40,100,0,0,0,'CE')
,('DC','CE490',TRUE,8,FALSE,2001,2010,'Project',6,'CE','P',60,NULL,40,100,0,1,2,'CE')
,('DC','CE490A',TRUE,7,FALSE,2001,2010,'Project',3,'CE','P',60,NULL,40,100,0,1,2,'CE')
,('DC','CE490B',TRUE,8,FALSE,2001,2010,'Project',3,'CE','P',60,NULL,40,100,0,1,2,'CE')
,('DC','CE491N',TRUE,7,FALSE,2005,2010,'Concrete Design Practice',1,'CE','P',60,NULL,40,100,0,1,2,'CE')
,('DC','CE491R',TRUE,7,FALSE,2011,2014,'Concrete Design Practice Lab',2,'CE','P',60,NULL,40,100,0,1,2,'CE')
,('DC','CE492N',TRUE,7,FALSE,2005,2010,'Steel Design Practice',1,'CE','P',60,NULL,40,100,0,1,2,'CE')
,('DC','CE492R',TRUE,7,TRUE,2011,NULL,'Structural Lab',2,'CE','P',60,NULL,40,100,0,1,2,'CE')
,('DC','CE493N',TRUE,8,FALSE,2005,2010,'Design of Irrigation Works',1,'CE','P',60,NULL,40,100,0,1,2,'CE')
,('DC','CE493R',TRUE,8,FALSE,2011,2014,'Design Of Irrigation Works',2,'CE','P',60,NULL,40,100,0,1,2,'CE')
,('DC','CE494A',TRUE,7,TRUE,2011,NULL,'Project Phase-I',4,'CE','P',60,NULL,40,100,0,1,2,'CE')
,('DC','CE494B',TRUE,8,TRUE,2011,NULL,'Project Phase-II',4,'CE','P',60,NULL,40,100,0,1,2,'CE')
,('DC','CE495N',TRUE,7,TRUE,2015,NULL,'CAD Lab-II',2,'CE','P',60,NULL,40,100,0,1,2,'CE')
,('DC','CE498N',TRUE,7,FALSE,2005,2010,'Vocational Training',1.5,'CE','P',60,NULL,40,100,0,1,2,'CE')
,('ESA','CEA1110',TRUE,0,TRUE,2017,NULL,'Environmental Studies',3,'FY','T',15,25,60,100,2,1,0,'CE')
,('ESA','CEA1120',TRUE,0,TRUE,2017,NULL,'Strength of Materials',3,'FY','T',15,25,60,100,2,1,0,'CE')
,('HM','CH206',FALSE,3,FALSE,2003,2010,'History of Science & Technology',3,'KE','T',15,25,60,100,3,1,0,'CH')
,('HM','CH209',FALSE,3,FALSE,2003,2010,'Soc. Cult. & Edu. Mvmnt. of India',3,'KE','T',15,25,60,100,3,1,0,'CH')
,('DC','CH211',TRUE,3,TRUE,2001,NULL,'Basic Principles of Chemical Engg.',4,'KE','T',15,25,60,100,3,1,0,'CH')
,('DC','CH212',TRUE,3,FALSE,2001,2010,'Mech. Oper. & Materials Handling',4,'KE','T',15,25,60,100,3,1,0,'CH')
,('DC','CH213',TRUE,3,TRUE,2011,NULL,'Fluid Mechanis',4,'KE','T',15,25,60,100,3,1,0,'CH')
,('DC','CH214',TRUE,3,TRUE,2011,NULL,'Fluid Particle Operations',4,'KE','T',15,25,60,100,3,1,0,'CH')
,('HM','CH217',FALSE,3,FALSE,2003,2010,'History of Dev. of Sc. Thoughts',3,'KE','T',15,25,60,100,3,1,0,'CH')
,('HM','CH218',FALSE,3,FALSE,2003,2010,'Organizational Behaviour',3,'KE','T',15,25,60,100,3,1,0,'CH')
,('HM','CH219',FALSE,3,FALSE,2003,2010,'Industrial Psychology',3,'KE','T',15,25,60,100,3,1,0,'CH')
,('HM','CH220',FALSE,3,FALSE,2003,2010,'Approp. Tech. For Rural Develop.',3,'KE','T',15,25,60,100,3,1,0,'CH')
,('DC','CH221',TRUE,4,TRUE,2001,NULL,'Chemical Engg. Thermodynamics',4,'KE','T',15,25,60,100,3,1,0,'CH')
,('DC','CH222N',TRUE,4,FALSE,2003,2010,'Fluid Mechanics & Fluid Flow Oper.',4,'KE','T',15,25,60,100,3,1,0,'CH')
,('DC','CH223',TRUE,4,FALSE,2003,2010,'Material Science & Engg. Materials',4,'KE','T',15,25,60,100,3,1,0,'CH')
,('DC','CH224',TRUE,4,TRUE,2011,NULL,'Process Instrumentation',4,'KE','T',15,25,60,100,3,1,0,'CH')
,('DC','CH225',TRUE,4,TRUE,2011,NULL,'Engineering Biology',4,'KE','T',15,25,60,100,3,1,0,'CH')
,('DC','CH226',TRUE,4,TRUE,2011,NULL,'Numerical Methods in Chemical Engg.',4,'KE','T',15,25,60,100,3,1,0,'CH')
,('DC','CH291',TRUE,3,TRUE,2011,NULL,'Computer Applications Lab I',2,'KE','P',60,NULL,40,100,0,1,2,'CH')
,('DC','CH291N',TRUE,4,FALSE,2003,2010,'Chemical Engineering Lab.-I',1.5,'KE','P',60,NULL,40,100,0,1,2,'CH')
,('DC','CH292',TRUE,4,TRUE,2011,NULL,'Unit Operations Lab. I',2,'KE','P',60,NULL,40,100,0,1,2,'CH')
,('DC','CH292N',TRUE,4,FALSE,2003,2010,'Chemical Engg. Computational Lab',3,'KE','P',60,NULL,40,100,0,1,2,'CH')
,('DC','CH311',TRUE,5,FALSE,2001,2010,'Numerical Methods & Optimization',4,'KE','T',15,25,60,100,3,1,0,'CH')
,('DC','CH312',TRUE,5,TRUE,2001,NULL,'Heat Transfer Operations',4,'KE','T',15,25,60,100,3,1,0,'CH')
,('DC','CH313',TRUE,5,TRUE,2001,NULL,'Mass Transfer Operations',4,'KE','T',15,25,60,100,3,1,0,'CH')
,('DC','CH314',TRUE,5,TRUE,2011,NULL,'Chemical Reaction Engineering',4,'KE','T',15,25,60,100,3,1,0,'CH')
,('DC','CH314N',TRUE,5,FALSE,2003,2010,'Chemical Reaction Engg.',4,'KE','T',15,25,60,100,3,1,0,'CH')
,('DC','CH320',TRUE,6,TRUE,2011,NULL,'Chemical Process Industries I',4,'KE','T',15,25,60,100,3,1,0,'CH')
,('DC','CH321',TRUE,6,TRUE,2011,NULL,'Chemical Process Industries II',4,'KE','T',15,25,60,100,3,1,0,'CH')
,('DC','CH321N',TRUE,6,FALSE,2003,2010,'Chemical Process Industries-I',3,'KE','T',15,25,60,100,3,1,0,'CH')
,('DC','CH322',TRUE,5,TRUE,2001,NULL,'Equilibrium Stage Processes',4,'KE','T',15,25,60,100,3,1,0,'CH')
,('DC','CH323',TRUE,6,TRUE,2001,NULL,'Transport Phenomena',4,'KE','T',15,25,60,100,3,1,0,'CH')
,('DC','CH324',TRUE,6,TRUE,2011,NULL,'Process Equipment Design',4,'KE','T',15,25,60,100,3,1,0,'CH')
,('DE','CH331',FALSE,6,TRUE,2011,NULL,'Industrial Biotechnology',4,'KE','T',15,25,60,100,3,1,0,'CH')
,('DE','CH331N',FALSE,5,FALSE,2003,2010,'Biochemical Engineering',3,'KE','T',15,25,60,100,3,1,0,'CH')
,('DE','CH332',FALSE,6,TRUE,2011,NULL,'Biomedical Engineering',4,'KE','T',15,25,60,100,3,1,0,'CH')
,('DE','CH332N',FALSE,5,FALSE,2003,2010,'Biotechnology',3,'KE','T',15,25,60,100,3,1,0,'CH')
,('DE','CH333',FALSE,6,TRUE,2011,NULL,'Fermentation and Enzyme Engineering',4,'KE','T',15,25,60,100,3,1,0,'CH')
,('DE','CH333N',FALSE,5,FALSE,2003,2010,'Biomedical Engineering',3,'KE','T',15,25,60,100,3,1,0,'CH')
,('DE','CH334',FALSE,6,TRUE,2011,NULL,'Genetic Engineering',4,'KE','T',15,25,60,100,3,1,0,'CH')
,('DE','CH334N',FALSE,5,FALSE,2003,2010,'Engineering Biology',3,'KE','T',15,25,60,100,3,1,0,'CH')
,('DE','CH335',FALSE,6,TRUE,2011,NULL,'Bioprocess Engineering',4,'KE','T',15,25,60,100,3,1,0,'CH')
,('DE','CH335N',FALSE,5,FALSE,2003,2010,'Genetic Engineering',3,'KE','T',15,25,60,100,3,1,0,'CH')
,('OE','CH336',FALSE,5,TRUE,2001,NULL,'Ind. Poll. Abatement & Waste Mgt.',4,'OE','T',15,25,60,100,3,1,0,'CH')
,('DE','CH336N',FALSE,5,FALSE,2003,2010,'Bioprocess Engineering',3,'KE','T',15,25,60,100,3,1,0,'CH')
,('OE','CH337',FALSE,5,TRUE,2001,NULL,'Solid Waste Management',4,'OE','T',15,25,60,100,3,1,0,'CH')
,('OE','CH339',FALSE,5,TRUE,2001,NULL,'Ind. Pollu. Control & Waste Utiliz.',4,'OE','T',15,25,60,100,3,1,0,'CH')
,('DE','CH341',FALSE,6,FALSE,2001,2010,'Pressure Vessel & Piping Design',3,'KE','T',15,25,60,100,3,1,0,'CH')
,('DE','CH342',FALSE,6,FALSE,2001,2010,'High Pressure Vessel Design',3,'KE','T',15,25,60,100,3,1,0,'CH')
,('DE','CH361N',FALSE,6,FALSE,2003,2010,'Heterogeneous Reaction Engg.',3,'KE','T',15,25,60,100,3,1,0,'CH')
,('DE','CH362N',FALSE,6,FALSE,2003,2010,'Chemical Reactor Anal. & Design',3,'KE','T',15,25,60,100,3,1,0,'CH')
,('DE','CH363N',FALSE,6,FALSE,2000,2010,'Catalysis & Reactor Design',3,'KE','T',15,25,60,100,3,1,0,'CH')
,('DC','CH381',TRUE,5,TRUE,2011,NULL,'Seminar And Report Writing',2,'KE','P',100,NULL,0,100,0,2,0,'CH')
,('DC','CH391',TRUE,5,TRUE,2011,NULL,'Computer Application Lab II',2,'KE','P',60,NULL,40,100,0,1,2,'CH')
,('DC','CH391N',TRUE,5,FALSE,2003,2010,'Computer Applications Lab',3,'KE','P',60,NULL,40,100,0,1,2,'CH')
,('DC','CH392',TRUE,6,TRUE,2011,NULL,'Chemical Engineering Design',2,'KE','P',60,NULL,40,100,0,1,2,'CH')
,('DC','CH392N',TRUE,5,FALSE,2003,2010,'Lit. Surv. Rep. Writing Sem.& G.D.',2,'KE','P',60,NULL,40,100,0,1,2,'CH')
,('DC','CH393',TRUE,6,TRUE,2011,NULL,'Unit Operation Lab II',2,'KE','P',60,NULL,40,100,0,1,2,'CH')
,('DC','CH393N',TRUE,6,FALSE,2003,2010,'Chemical Engineering Lab II',1.5,'KE','P',60,NULL,40,100,0,1,2,'CH')
,('DC','CH394',TRUE,6,TRUE,2011,NULL,'Reaction Engg. & Thermodynamics Lab',2,'KE','P',60,NULL,40,100,0,1,2,'CH')
,('DC','CH394N',TRUE,6,FALSE,2003,2010,'Chemical Engineering Lab III',1.5,'KE','P',60,NULL,40,100,0,1,2,'CH')
,('DC','CH395',TRUE,6,FALSE,2001,2010,'Chemical Engineering Design',1.5,'KE','P',60,NULL,40,100,0,1,2,'CH')
,('DC','CH410',TRUE,7,TRUE,2011,NULL,'Energy Engineering And Management',4,'KE','T',15,25,60,100,3,1,0,'CH')
,('DC','CH411',TRUE,7,TRUE,2001,NULL,'Process Dynamics & Control',4,'KE','T',15,25,60,100,3,1,0,'CH')
,('DC','CH412N',TRUE,7,FALSE,2003,2010,'Process Synthesis',4,'KE','T',15,25,60,100,3,1,0,'CH')
,('DC','CH413',TRUE,7,FALSE,2001,2010,'Energy Resources & Utilization',4,'KE','T',15,25,60,100,3,1,0,'CH')
,('DC','CH414',TRUE,7,FALSE,2003,2010,'Chemical Process Industries-II',3,'KE','T',15,25,60,100,3,1,0,'CH')
,('DC','CH415',TRUE,7,TRUE,2011,NULL,'Process Engineering & Plant Design I',4,'KE','T',15,25,60,100,3,1,0,'CH')
,('DC','CH420',TRUE,8,TRUE,2011,NULL,'Modeling Simulation & Optimization',4,'KE','T',15,25,60,100,3,1,0,'CH')
,('DC','CH421',TRUE,8,TRUE,2011,NULL,'Process Engineering and Plant Design II',4,'KE','T',15,25,60,100,3,1,0,'CH')
,('DC','CH421N',TRUE,8,FALSE,2003,2010,'Process Plant Design',5,'KE','T',15,25,60,100,3,1,0,'CH')
,('DC','CH422N',TRUE,8,FALSE,2003,2010,'Selected Topics in Chemical Engg.',4,'KE','T',15,25,60,100,3,1,0,'CH')
,('DC','CH423',TRUE,8,FALSE,2001,2010,'Process Instrumentation',3,'KE','T',15,25,60,100,3,1,0,'CH')
,('OE','CH426',FALSE,5,TRUE,2011,NULL,'MATLAB for Scientist & Engineers',4,'KE','T',15,25,60,100,3,1,0,'CH')
,('OE','CH427',FALSE,5,TRUE,2001,NULL,'Solid Waste Management',4,'OE','T',15,25,60,100,3,1,0,'CH')
,('OE','CH431',FALSE,5,TRUE,2001,NULL,'Hazardous Waste Management',4,'OE','T',15,25,60,100,3,1,0,'CH')
,('DE','CH440',FALSE,7,TRUE,2011,NULL,'Nanotechnology',4,'KE','T',15,25,60,100,3,1,0,'CH')
,('DE','CH441',FALSE,7,TRUE,2011,NULL,'Green Technology in Process Industries',4,'KE','T',15,25,60,100,3,1,0,'CH')
,('DE','CH442',FALSE,7,TRUE,2011,NULL,'Petroleum Processing',4,'KE','T',15,25,60,100,3,1,0,'CH')
,('OE','CH443',FALSE,5,TRUE,2001,NULL,'Design of Ind. Experiments',4,'OE','T',15,25,60,100,3,1,0,'CH')
,('OE','CH444',FALSE,5,TRUE,2001,NULL,'Modeling & Simul. of Chem. Proc.',4,'OE','T',15,25,60,100,3,1,0,'CH')
,('OE','CH445',FALSE,5,TRUE,2001,NULL,'Graph Th. & its Ap. in Chem. Eng.',4,'OE','T',15,25,60,100,3,1,0,'CH')
,('OE','CH446',FALSE,5,TRUE,2001,NULL,'Industrial Rheology',4,'OE','T',15,25,60,100,3,1,0,'CH')
,('OE','CH447',FALSE,5,TRUE,2001,NULL,'Statistical Methods in Process Ind.',4,'OE','T',15,25,60,100,3,1,0,'CH')
,('DE','CH448',FALSE,7,TRUE,2011,NULL,'Ceramic Technology',4,'KE','T',15,25,60,100,3,1,0,'CH')
,('DE','CH449',FALSE,7,TRUE,2011,NULL,'Plastic Technology',4,'KE','T',15,25,60,100,3,1,0,'CH')
,('DE','CH450',FALSE,7,TRUE,2011,NULL,'Fertilizer Technology',4,'KE','T',15,25,60,100,3,1,0,'CH')
,('DE','CH451',FALSE,7,TRUE,2011,NULL,'Pulp & Paper Technology',4,'KE','T',15,25,60,100,3,1,0,'CH')
,('DE','CH452',FALSE,7,TRUE,2011,NULL,'Leather Technology',4,'KE','T',15,25,60,100,3,1,0,'CH')
,('DE','CH452N',FALSE,7,FALSE,2003,2010,'Petroleum Processing',3,'KE','T',15,25,60,100,3,1,0,'CH')
,('DE','CH453',FALSE,8,TRUE,2011,NULL,'Environmental Pollution Control',4,'KE','T',15,25,60,100,3,1,0,'CH')
,('DE','CH453N',FALSE,7,FALSE,2003,2010,'Polymer Science & Technology',3,'KE','T',15,25,60,100,3,1,0,'CH')
,('DE','CH454',TRUE,5,TRUE,2001,NULL,'Industrial Polution Control',4,'KE','T',15,25,60,100,3,1,0,'CH')
,('DE','CH454N',FALSE,7,FALSE,2003,2010,'Pulp & Paper Technology',3,'KE','T',15,25,60,100,3,1,0,'CH')
,('DE','CH455',FALSE,8,TRUE,2011,NULL,'Industrial & Municipal Solid Waste Management',4,'KE','T',15,25,60,100,3,1,0,'CH')
,('DE','CH455N',FALSE,7,FALSE,2003,2010,'Paint Technology',3,'KE','T',15,25,60,100,3,1,0,'CH')
,('DE','CH456',FALSE,7,TRUE,2003,NULL,'Industrial Safety & Hazard Management',4,'KE','T',15,25,60,100,3,1,0,'CH')
,('DE','CH456N',FALSE,7,FALSE,2003,2010,'Plastic Technology',3,'KE','T',15,25,60,100,3,1,0,'CH')
,('DE','CH457',FALSE,7,TRUE,2003,NULL,'Industrial Pollution Abatement & Waste Minimization',4,'KE','T',15,25,60,100,3,1,0,'CH')
,('DE','CH457N',FALSE,7,FALSE,2003,2010,'Fertilizer Technology',3,'KE','T',15,25,60,100,3,1,0,'CH')
,('DE','CH458N',FALSE,7,FALSE,2003,2010,'Leather Technology',3,'KE','T',15,25,60,100,3,1,0,'CH')
,('DE','CH459N',FALSE,7,FALSE,2003,2010,'Food Science & Technology',3,'KE','T',15,25,60,100,3,1,0,'CH')
,('DE','CH460',FALSE,8,TRUE,2011,NULL,'Colloidal and Surface Science',4,'KE','T',15,25,60,100,3,1,0,'CH')
,('DE','CH461',FALSE,8,TRUE,2001,NULL,'Colloidal & Surface Science',4,'KE','T',15,25,60,100,3,1,0,'CH')
,('DE','CH462',FALSE,8,TRUE,2001,NULL,'Fluidization Engineering',4,'KE','T',15,25,60,100,3,1,0,'CH')
,('DE','CH463',FALSE,8,TRUE,2001,NULL,'Adv. Separation Processes',4,'KE','T',15,25,60,100,3,1,0,'CH')
,('DE','CH464',FALSE,8,TRUE,2001,NULL,'Industrial Safety Engineering',4,'KE','T',15,25,60,100,3,1,0,'CH')
,('DE','CH465',FALSE,8,TRUE,2001,NULL,'Adv. Transport Processes',4,'KE','T',15,25,60,100,3,1,0,'CH')
,('DE','CH466',FALSE,8,TRUE,2001,NULL,'Process Heat Transfer',4,'KE','T',15,25,60,100,3,1,0,'CH')
,('DE','CH467',FALSE,8,TRUE,2011,NULL,'Nuclear Chemical Engineering',4,'KE','T',15,25,60,100,3,1,0,'CH')
,('DE','CH468',FALSE,8,TRUE,2001,NULL,'Non Newton. Flow Heat & Mass Tr.',4,'KE','T',15,25,60,100,3,1,0,'CH')
,('DE','CH469',FALSE,8,TRUE,2003,NULL,'Nuclear Chemical Engineering',4,'KE','T',15,25,60,100,3,1,0,'CH')
,('DE','CH470',FALSE,8,TRUE,2003,NULL,'Computational Methods in Chemical Engg.',4,'KE','T',15,25,60,100,3,1,0,'CH')
,('OE','CH471',FALSE,5,TRUE,2001,NULL,'Adv. Programming Techniques',4,'OE','T',15,25,60,100,3,1,0,'CH')
,('OE','CH472',FALSE,5,TRUE,2001,NULL,'Computer Aided Plant Design',4,'OE','T',15,25,60,100,3,1,0,'CH')
,('OE','CH473',FALSE,5,TRUE,2001,NULL,'Process Flow-sheeting',4,'OE','T',15,25,60,100,3,1,0,'CH')
,('OE','CH474',FALSE,5,TRUE,2001,NULL,'Chemical Engg. Simulation',4,'OE','T',15,25,60,100,3,1,0,'CH')
,('DE','CH475',FALSE,8,TRUE,2011,NULL,'Process Integration',4,'KE','T',15,25,60,100,3,1,0,'CH')
,('DE','CH476',FALSE,8,TRUE,2011,NULL,'Process Flowsheeting',4,'KE','T',15,25,60,100,3,1,0,'CH')
,('DE','CH477',TRUE,5,FALSE,2001,2010,'Math. Methods in Chemical Engg.',4,'KE','T',15,25,60,100,3,1,0,'CH')
,('DE','CH478',FALSE,8,TRUE,2011,NULL,'CAD of Process Equipments',4,'KE','T',15,25,60,100,3,1,0,'CH')
,('DE','CH479',FALSE,8,TRUE,2011,NULL,'Process Optimization',4,'KE','T',15,25,60,100,3,1,0,'CH')
,('DE','CH480',FALSE,8,TRUE,2011,NULL,'ANN and its Application In Chemical Engg',4,'KE','T',15,25,60,100,3,1,0,'CH')
,('DC','CH481',TRUE,7,TRUE,2011,NULL,'Summer Training',1,'KE','P',100,NULL,0,100,0,1,0,'CH')
,('DE','CH482',FALSE,8,TRUE,2011,NULL,'Mathematical Methods in Chemical Engineering',4,'KE','T',15,25,60,100,3,1,0,'CH')
,('DE','CH483',FALSE,8,TRUE,2011,NULL,'Computational Fluid Dynamics',4,'KE','T',15,25,60,100,3,1,0,'CH')
,('DC','CH491',TRUE,7,TRUE,2011,NULL,'CAD/Simulation Lab',2,'KE','P',60,NULL,40,100,0,1,2,'CH')
,('DC','CH491N',TRUE,7,FALSE,2003,2010,'Chemical Engineering Lab-IV',1.5,'KE','P',60,NULL,40,100,0,1,2,'CH')
,('DC','CH492',TRUE,7,TRUE,2011,NULL,'Energy And Technology Lab',2,'KE','P',60,NULL,40,100,0,1,2,'CH')
,('DC','CH492N',TRUE,8,FALSE,2003,2010,'Chemical Engineering Lab-V',2,'KE','P',60,NULL,40,100,0,1,2,'CH')
,('DC','CH493',TRUE,8,TRUE,2011,NULL,'Process Control & Instrumentation Lab',2,'KE','P',60,NULL,40,100,0,1,2,'CH')
,('DC','CH498N',TRUE,7,FALSE,2003,2010,'Project I (Exp./computational)',4,'KE','P',60,NULL,40,100,0,1,2,'CH')
,('DC','CH499A',TRUE,7,TRUE,2011,NULL,'Project Phase-I',3,'KE','P',60,NULL,40,100,0,3,0,'CH')
,('DC','CH499B',TRUE,8,TRUE,2011,NULL,'Project Phase-II',4,'KE','P',60,NULL,40,100,0,4,0,'CH')
,('DC','CH499N',TRUE,8,FALSE,2003,2010,'Project II (plant Design)',4,'KE','P',60,NULL,40,100,0,1,2,'CH')
,('ESA','CO101',TRUE,2,FALSE,2001,2010,'Computers & Programming',4,'FY','T',15,25,60,100,3,1,0,'CO')
,('ESA','CO181F',FALSE,0,FALSE,2005,2010,'Basic Computer Engg Seminar-I',1,'FY','P',60,NULL,40,100,0,1,2,'CO')
,('ESA','CO182F',FALSE,0,FALSE,2005,2010,'Basic Computer Engg Seminar-II',1,'FY','P',60,NULL,40,100,0,1,2,'CO')
,('ESA','CO191',TRUE,0,TRUE,2011,NULL,'Computer Programming Lab',2,'FY','P',60,NULL,40,100,0,1,2,'CO')
,('DC','CO201',TRUE,3,FALSE,2001,2010,'Algorithm & Data Structure',5,'PE','T',15,25,60,100,3,1,0,'CO')
,('DC','CO202',TRUE,3,FALSE,2001,2010,'Logic Theory & Computer Org.',5,'PE','T',15,25,60,100,3,1,0,'CO')
,('DC','CO203',TRUE,3,TRUE,2011,NULL,'Object Oriented Programming',4,'PE','T',15,25,60,100,3,1,0,'CO')
,('DC','CO204',TRUE,4,FALSE,2001,2010,'Computer Architecture',5,'PE','T',15,25,60,100,3,1,0,'CO')
,('DC','CO205',TRUE,4,FALSE,2005,2010,'Discrete Structures',4,'PE','T',15,25,60,100,3,1,0,'CO')
,('DC','CO206',TRUE,3,TRUE,2011,NULL,'Algorithm and Data Structure',4,'PE','T',15,25,60,100,3,1,0,'CO')
,('DC','CO207',TRUE,3,TRUE,2011,NULL,'Logic Theory & Computer Organization',4,'PE','T',15,25,60,100,3,1,0,'CO')
,('DC','CO208',TRUE,4,TRUE,2011,NULL,'Computer Architecture',4,'PE','T',15,25,60,100,3,1,0,'CO')
,('DC','CO209',TRUE,4,TRUE,2011,NULL,'Software Engineering',4,'PE','T',15,25,60,100,3,1,0,'CO')
,('DC','CO281F',FALSE,3,FALSE,2001,2010,'Computer Engg Seminar-I',1,'PE','P',60,NULL,60,100,0,1,2,'CO')
,('DC','CO282F',FALSE,5,FALSE,2001,2010,'Computer Engg Seminar-II',1,'PE','P',60,NULL,40,100,0,1,2,'CO')
,('DC','CO291',TRUE,3,TRUE,2001,NULL,'Programming Lab',2,'PE','P',60,NULL,40,100,0,1,2,'CO')
,('DC','CO292',TRUE,4,TRUE,2001,NULL,'Data Structure Lab',2,'PE','P',60,NULL,40,100,0,1,2,'CO')
,('DC','CO293',TRUE,4,FALSE,2001,2010,'Mini Project I',2,'PE','P',60,NULL,40,100,0,1,2,'CO')
,('DC','CO301',TRUE,5,FALSE,2001,2010,'Microprocessors Theory & Appl.',5,'PE','T',15,25,60,100,3,1,0,'CO')
,('DC','CO302',TRUE,5,FALSE,2001,2010,'Software Engineering',5,'PE','T',15,25,60,100,3,1,0,'CO')
,('DC','CO303',TRUE,5,FALSE,2001,2010,'Operating Systems',5,'PE','T',15,25,60,100,3,1,0,'CO')
,('DC','CO304',TRUE,6,FALSE,2001,2010,'Data Base Management Systems',5,'PE','T',15,25,60,100,3,1,0,'CO')
,('DC','CO305',TRUE,6,FALSE,2001,2010,'Theory of Computation',5,'PE','T',15,25,60,100,3,1,0,'CO')
,('DC','CO306',TRUE,6,FALSE,2001,2010,'Systems Programming',4,'PE','T',15,25,60,100,3,1,0,'CO')
,('DC','CO307',TRUE,6,FALSE,2001,2010,'Computer Networks',5,'PE','T',15,25,60,100,3,1,0,'CO')
,('DC','CO308',TRUE,5,TRUE,2001,NULL,'Digital Electronics',4,'PE','T',15,25,60,100,3,1,0,'CO')
,('DC','CO309',TRUE,5,TRUE,2011,NULL,'Microprocessor Theory And Applications',4,'PE','T',15,25,60,100,3,1,0,'CO')
,('DC','CO310',TRUE,5,TRUE,2011,NULL,'Operating Systems',4,'PE','T',15,25,60,100,3,1,0,'CO')
,('DC','CO311',TRUE,6,TRUE,2011,NULL,'Theory of Computation',4,'PE','T',15,25,60,100,3,1,0,'CO')
,('DC','CO312',TRUE,6,TRUE,2011,NULL,'Database Management System',4,'PE','T',15,25,60,100,3,1,0,'CO')
,('DC','CO313',TRUE,6,TRUE,2011,NULL,'Computer Networks',4,'PE','T',15,25,60,100,3,1,0,'CO')
,('DC','CO314',TRUE,6,TRUE,2011,NULL,'Design & Anlysis of Algorithm',4,'PE','T',15,25,60,100,3,1,0,'CO')
,('DC','CO315',TRUE,6,TRUE,2011,NULL,'Computer Graphics',4,'PE','T',15,25,60,100,3,1,0,'CO')
,('DC','CO380',TRUE,6,TRUE,2011,NULL,'Colloquium',2,'PE','P',60,NULL,40,100,0,2,0,'CO')
,('DC','CO382F',FALSE,5,FALSE,2001,2010,'Seminar on Operating System',1,'PE','P',60,NULL,60,100,0,1,2,'CO')
,('DC','CO385F',FALSE,5,FALSE,2001,2010,'Seminar on Computer Network',1,'PE','P',60,NULL,60,100,0,1,2,'CO')
,('DC','CO392',TRUE,5,FALSE,2001,2010,'Mini Project II',2,'PE','P',60,NULL,40,100,0,1,2,'CO')
,('DC','CO393',TRUE,5,TRUE,2001,NULL,'Software Lab I',2,'PE','P',60,NULL,40,100,0,1,2,'CO')
,('DC','CO394',TRUE,6,TRUE,2001,NULL,'Microprocessors Lab',2,'PE','P',60,NULL,40,100,0,1,2,'CO')
,('DC','CO395',TRUE,5,TRUE,2011,NULL,'Minor Project',3,'PE','P',60,NULL,40,100,0,0,6,'CO')
,('DC','CO396',TRUE,6,TRUE,2011,NULL,'Software Laboratory II',2,'PE','P',60,NULL,40,100,0,1,2,'CO')
,('DC','CO401',TRUE,7,FALSE,2001,2010,'Design & Analysis of Algorithms',4,'PE','T',15,25,60,100,3,1,0,'CO')
,('DC','CO402',TRUE,7,FALSE,2001,2010,'Compiler Design',5,'PE','T',15,25,60,100,3,1,0,'CO')
,('DE','CO403',TRUE,7,TRUE,2001,NULL,'Design of Programming Languages',4,'PE','T',15,25,60,100,3,1,0,'CO')
,('DC','CO404',TRUE,8,FALSE,2001,2010,'Computer Graphics',5,'PE','T',15,25,60,100,3,1,0,'CO')
,('DC','CO405',TRUE,8,TRUE,2001,NULL,'Distributed & Parallel Systems',4,'PE','T',15,25,60,100,3,1,0,'CO')
,('DC','CO406',TRUE,7,TRUE,2011,NULL,'Compiler Design',4,'PE','T',15,25,60,100,3,1,0,'CO')
,('DE','CO430',FALSE,7,TRUE,2001,NULL,'Artif. Intell. & Neural Network',4,'PE','T',15,25,60,100,3,1,0,'CO')
,('DE','CO431',FALSE,7,TRUE,2001,NULL,'Internet Tools',4,'PE','T',15,25,60,100,3,1,0,'CO')
,('DE','CO432',FALSE,7,TRUE,2001,NULL,'Image Processing',4,'PE','T',15,25,60,100,3,1,0,'CO')
,('DE','CO433',FALSE,7,FALSE,2001,2010,'Computer Aided Design',4,'PE','T',15,25,60,100,3,1,0,'CO')
,('DE','CO434',FALSE,7,FALSE,2001,2010,'Fault Tolerant Computing',4,'PE','T',15,25,60,100,3,1,0,'CO')
,('DE','CO435',FALSE,7,FALSE,2001,2010,'Computer System Reliability',4,'PE','T',15,25,60,100,3,1,0,'CO')
,('DE','CO436',FALSE,7,TRUE,2001,NULL,'Information Technology',4,'PE','T',15,25,60,100,3,1,0,'CO')
,('DE','CO437',FALSE,7,FALSE,2001,2010,'Optimization Techniques',4,'PE','T',15,25,60,100,3,1,0,'CO')
,('DE','CO438',FALSE,7,TRUE,2011,NULL,'Selected Topics in Computer Appl.',4,'PE','T',15,25,60,100,3,1,0,'CO')
,('DE','CO439',FALSE,7,TRUE,2001,NULL,'Adv. Microprocessor Sys. & Design',4,'PE','T',15,25,60,100,3,1,0,'CO')
,('DE','CO440',FALSE,7,FALSE,2001,2010,'Computer Modeling & Simulation',4,'PE','T',15,25,60,100,3,1,0,'CO')
,('DE','CO441',FALSE,7,TRUE,2001,NULL,'Pattern Recog. & Comp. Vision',4,'PE','T',15,25,60,100,3,1,0,'CO')
,('DE','CO442',FALSE,7,TRUE,2001,NULL,'VLSI Design Tools Techniques',4,'PE','T',15,25,60,100,3,1,0,'CO')
,('DE','CO443',FALSE,7,FALSE,2001,2010,'Fiber Optic Net. & Signal Proc.',4,'PE','T',15,25,60,100,3,1,0,'CO')
,('DE','CO444',FALSE,7,TRUE,2001,NULL,'Soft Computing',4,'PE','T',15,25,60,100,3,1,0,'CO')
,('DE','CO445',FALSE,7,TRUE,2001,NULL,'Network Security',4,'PE','T',15,25,60,100,3,1,0,'CO')
,('OE','CO446',FALSE,5,TRUE,2001,NULL,'Fundamentals of Computer Techno.',4,'OE','T',15,25,60,100,3,1,0,'CO')
,('OE','CO446N',FALSE,5,TRUE,2001,NULL,'Select. Topics in Computer Engg.-I',4,'OE','T',15,25,60,100,3,1,0,'CO')
,('OE','CO447',FALSE,5,TRUE,2001,NULL,'Network Database & S/W Develop.',4,'OE','T',15,25,60,100,3,1,0,'CO')
,('OE','CO447N',FALSE,5,TRUE,2001,NULL,'Select. Topics in Computer Engg.-II',4,'OE','T',15,25,60,100,3,1,0,'CO')
,('DE','CO448',FALSE,7,TRUE,2001,NULL,'Embedded Systems',4,'PE','T',15,25,60,100,3,1,0,'CO')
,('DE','CO449',FALSE,7,TRUE,2001,NULL,'Internet Protocol',4,'PE','T',15,25,60,100,3,1,0,'CO')
,('DE','CO450',FALSE,8,TRUE,2001,NULL,'Multimedia Technologies',4,'PE','T',15,25,60,100,3,1,0,'CO')
,('DE','CO451',FALSE,8,TRUE,2001,NULL,'Computer Network design',4,'PE','T',15,25,60,100,3,1,0,'CO')
,('DE','CO452',FALSE,8,TRUE,2001,NULL,'Mobile Computing',4,'PE','T',15,25,60,100,3,1,0,'CO')
,('DE','CO453',FALSE,8,TRUE,2001,NULL,'Artif. Intell. & Soft Computing',4,'PE','T',15,25,60,100,3,1,0,'CO')
,('DE','CO454',FALSE,8,TRUE,2011,NULL,'Software Testing',4,'PE','T',15,25,60,100,3,1,0,'CO')
,('ESA','CO460',TRUE,7,TRUE,2001,NULL,'Computer Architecture',4,'LE','T',15,25,60,100,3,1,0,'CO')
,('DC','CO490',TRUE,8,FALSE,2001,2010,'Project',7,'PE','P',60,NULL,40,100,0,1,2,'CO')
,('DC','CO490A',TRUE,7,FALSE,2001,2010,'Project',3,'PE','P',60,NULL,40,100,0,1,2,'CO')
,('DC','CO490B',TRUE,8,FALSE,2001,2010,'Project',4,'PE','P',60,NULL,40,100,0,1,2,'CO')
,('DC','CO491',TRUE,7,FALSE,2001,2010,'Hardware Lab',2,'PE','P',60,NULL,40,100,0,1,2,'CO')
,('DC','CO494',TRUE,7,FALSE,2001,2010,'Software Lab II',2,'PE','P',60,NULL,40,100,0,1,2,'CO')
,('DC','CO495',TRUE,7,TRUE,2011,NULL,'Network & Embedded System Lab',2,'PE','P',60,NULL,40,100,0,1,2,'CO')
,('DC','CO499A',TRUE,7,TRUE,2011,NULL,'Project Phase-I',4,'PE','P',60,NULL,40,100,0,0,8,'CO')
,('DC','CO499B',TRUE,8,TRUE,2011,NULL,'Project Phase-II',5,'PE','P',60,NULL,40,100,0,0,10,'CO')
,('ESA','COA1910',TRUE,0,TRUE,2017,NULL,'Computer Programming Lab',1.5,'FY','P',60,NULL,40,100,0,0,3,'CO')
,('ESA','EE101',TRUE,1,FALSE,2001,2010,'Basic Electrical Engineering',3,'FY','T',15,25,60,100,3,1,0,'EE')
,('ESA','EE111',TRUE,0,TRUE,2011,NULL,'Basics of Elect. & Electronics Engg',4,'FY','T',15,25,60,100,3,1,0,'EE')
,('ESA','EE202N',TRUE,4,TRUE,2005,NULL,'Electrical Engineering',4,'LE','T',15,25,60,100,3,1,0,'EE')
,('ESA','EE203',TRUE,3,FALSE,2001,2010,'Electrical Engineering',3,'KE','T',15,25,60,100,3,1,0,'EE')
,('ESA','EE204',TRUE,4,TRUE,2001,NULL,'Electrical Technology',4,'ME','T',15,25,60,100,3,1,0,'EE')
,('ESA','EE206',TRUE,3,TRUE,2011,NULL,'Electrical Engineering',4,'KE','T',15,25,60,100,3,1,0,'EE')
,('DC','EE211N',TRUE,3,TRUE,2003,NULL,'Electrical Machines-I',4,'EE','T',15,25,60,100,3,1,0,'EE')
,('DC','EE213',TRUE,4,TRUE,2011,NULL,'Electrical Machines II',4,'EE','T',15,25,60,100,3,1,0,'EE')
,('DC','EE231N',TRUE,3,TRUE,2003,NULL,'Power System Engineering',4,'EE','T',15,25,60,100,3,1,0,'EE')
,('DC','EE232N',TRUE,4,FALSE,2003,2010,'Electric Power Generation',4,'EE','T',15,25,60,100,3,1,0,'EE')
,('DC','EE251N',TRUE,4,TRUE,2003,NULL,'Electrical Measurement',4,'EE','T',15,25,60,100,3,1,0,'EE')
,('DC','EE276',TRUE,3,TRUE,2011,NULL,'Circuit Theory',4,'EE','T',15,25,60,100,3,1,0,'EE')
,('DC','EE277',TRUE,3,TRUE,2011,NULL,'Electrical Engineering Materials',4,'EE','T',15,25,60,100,3,1,0,'EE')
,('ESA','EE278',TRUE,4,TRUE,2011,NULL,'Matlab for Engineers',4,'EE','T',15,25,60,100,3,1,0,'EE')
,('DC','EE281N',TRUE,3,FALSE,2003,2010,'Circuit Theory I',3,'EE','T',15,25,60,100,3,1,0,'EE')
,('DC','EE282N',TRUE,4,TRUE,2003,NULL,'Signals & Systems',4,'EE','T',15,25,60,100,3,1,0,'EE')
,('ESA','EE283N',TRUE,3,FALSE,2003,2010,'Electrical Engg. Materials',3,'EE','T',15,25,60,100,3,1,0,'EE')
,('DC','EE284N',TRUE,4,FALSE,2003,2010,'Circuit Theory II',3,'EE','T',15,25,60,100,3,1,0,'EE')
,('DC','EE285N',TRUE,4,TRUE,2003,NULL,'Electromagnetic Field Theory',4,'EE','T',15,25,60,100,3,1,0,'EE')
,('DC','EE291N',TRUE,3,FALSE,2003,2010,'Electrical Engineering Lab-I',1.5,'EE','P',60,NULL,40,100,0,1,2,'EE')
,('ESA','EE292',TRUE,3,FALSE,2001,2010,'Electrical Engineering Lab',1.5,'LE','P',60,NULL,40,100,0,1,2,'EE')
,('ESA','EE293',TRUE,3,FALSE,2001,2010,'Electrical Engineering Lab',1.5,'KE','P',60,NULL,40,100,0,1,2,'EE')
,('ESA','EE294',TRUE,4,FALSE,2001,2010,'Electrical Technology Lab',1.5,'ME','P',60,NULL,40,100,0,1,2,'EE')
,('DC','EE295',TRUE,4,TRUE,2011,NULL,'Electrical Machines Lab I',2,'EE','P',60,NULL,40,100,0,1,2,'EE')
,('ESA','EE296',TRUE,3,TRUE,2011,NULL,'Electrical Engineering Lab',2,'KE','P',60,NULL,40,100,0,1,2,'EE')
,('ESA','EE297',TRUE,4,TRUE,2011,NULL,'Electrical Technology Lab',2,'ME','P',60,NULL,40,100,0,1,2,'EE')
,('OE','EE301',FALSE,5,TRUE,2001,NULL,'Power Electronics & Applications',4,'OE','T',15,25,60,100,3,1,0,'EE')
,('ESA','EE305',TRUE,5,TRUE,2001,NULL,'Control Engineering',4,'ME','T',15,25,60,100,3,1,0,'EE')
,('DC','EE312N',TRUE,5,FALSE,2003,2010,'Electrical Machines-II',4,'EE','T',15,25,60,100,3,1,0,'EE')
,('DC','EE321N',TRUE,5,TRUE,2003,NULL,'Power Electronics-I',4,'EE','T',15,25,60,100,3,1,0,'EE')
,('DC','EE322N',TRUE,6,TRUE,2003,NULL,'Power Electronics-II',4,'EE','T',15,25,60,100,3,1,0,'EE')
,('DC','EE325',TRUE,6,TRUE,2011,NULL,'New and Renewable Energy Sources',4,'EE','T',15,25,60,100,3,1,0,'EE')
,('DC','EE331',TRUE,5,TRUE,2011,NULL,'Electrical Power Gen. & Utilization',4,'EE','T',15,25,60,100,3,1,0,'EE')
,('DC','EE333N',TRUE,6,TRUE,2003,NULL,'Power System Protection',4,'EE','T',15,25,60,100,3,1,0,'EE')
,('DC','EE334N',TRUE,6,FALSE,2003,2010,'Electrical Power Utilization',4,'EE','T',15,25,60,100,3,1,0,'EE')
,('DC','EE335N',TRUE,6,TRUE,2003,NULL,'Power System Analysis',4,'EE','T',15,25,60,100,3,1,0,'EE')
,('DC','EE341N',TRUE,6,TRUE,2003,NULL,'Dynamic System Analysis',4,'EE','T',15,25,60,100,3,1,0,'EE')
,('DC','EE352N',TRUE,5,TRUE,2003,NULL,'Electrical & Electronic Instr.',4,'EE','T',15,25,60,100,3,1,0,'EE')
,('DC','EE361',TRUE,5,TRUE,2011,NULL,'High Voltage Engineering',4,'EE','T',15,25,60,100,3,1,0,'EE')
,('OE','EE362',FALSE,5,TRUE,2011,NULL,'Insulation Technology',4,'OE','T',15,25,60,100,3,1,0,'EE')
,('OE','EE371',FALSE,5,TRUE,2011,NULL,'Optimization Techniques',4,'OE','T',15,25,60,100,3,1,0,'EE')
,('DC','EE380',TRUE,6,TRUE,2011,NULL,'Seminar',2,'EE','P',100,NULL,0,100,0,2,0,'EE')
,('OE','EE386',FALSE,5,FALSE,2001,2010,'Microprocessor Systems & Appl.',4,'OE','T',15,25,60,100,3,1,0,'EE')
,('DC','EE386N',TRUE,6,FALSE,2003,2010,'Microprocessor Systems & Appl.',4,'EE','T',15,25,60,100,3,1,0,'EE')
,('OE','EE388',FALSE,5,FALSE,2001,2010,'Microprocessor Systems',4,'OE','T',15,25,60,100,3,1,0,'EE')
,('DC','EE391N',TRUE,5,FALSE,2003,2010,'Electrical Engineering Lab-II',1.5,'EE','P',60,NULL,40,100,0,1,2,'EE')
,('DC','EE392N',TRUE,5,FALSE,2003,2010,'Electrical Engineering Lab-III',1.5,'EE','P',60,NULL,40,100,0,1,2,'EE')
,('DC','EE393N',TRUE,6,FALSE,2003,2010,'Electrical Engineering Lab-IV',1.5,'EE','P',60,NULL,40,100,0,1,2,'EE')
,('DC','EE394N',TRUE,6,FALSE,2003,2010,'Electrical Engineering Lab-V',1.5,'EE','P',60,NULL,40,100,0,1,2,'EE')
,('DC','EE395',TRUE,5,TRUE,2011,NULL,'Circuits and Measurements Lab',2,'EE','P',60,NULL,40,100,0,1,2,'EE')
,('DC','EE396',TRUE,5,TRUE,2011,NULL,'Electrical Machines Lab II',2,'EE','P',60,NULL,40,100,0,1,2,'EE')
,('DC','EE397',TRUE,6,TRUE,2011,NULL,'Power Electronics Lab',2,'EE','P',60,NULL,40,100,0,1,2,'EE')
,('DC','EE398',TRUE,6,TRUE,2011,NULL,'Power System and High Voltage Lab',2,'EE','P',60,NULL,40,100,0,1,2,'EE')
,('DC','EE413N',TRUE,8,TRUE,2003,NULL,'Electrical Drives',4,'EE','T',15,25,60,100,3,1,0,'EE')
,('DE','EE414',FALSE,7,TRUE,2001,NULL,'Advanced Electrical Machines',4,'EE','T',15,25,60,100,3,1,0,'EE')
,('DE','EE415',FALSE,7,TRUE,2001,NULL,'Comp. Aided Elect. Mach. Design',4,'EE','T',15,25,60,100,3,1,0,'EE')
,('DE','EE416',FALSE,8,TRUE,2011,NULL,'Design of Three-Phase Induction Motor',4,'EE','T',15,25,60,100,3,1,0,'EE')
,('OE','EE421',FALSE,5,TRUE,2011,NULL,'Renewable Energy Sources',4,'OE','T',15,25,60,100,3,1,0,'EE')
,('DE','EE422',FALSE,8,TRUE,2001,NULL,'Power Semiconductor Controllers',4,'EE','T',15,25,60,100,3,1,0,'EE')
,('DE','EE423',FALSE,8,TRUE,2011,NULL,'Solar Energy and Applications',4,'EE','T',15,25,60,100,3,1,0,'EE')
,('DE','EE424',FALSE,7,TRUE,2011,NULL,'Energy Auditing and Conservation',4,'EE','T',15,25,60,100,3,1,0,'EE')
,('DE','EE431',FALSE,8,TRUE,2011,NULL,'Power System Deregulation',4,'EE','T',15,25,60,100,3,1,0,'EE')
,('DE','EE432',FALSE,7,TRUE,2011,NULL,'Digital Simulation Of Power Systems',4,'EE','T',15,25,60,100,3,1,0,'EE')
,('DE','EE433',FALSE,7,TRUE,2011,NULL,'HVDC and FACTS Technology',4,'EE','T',15,25,60,100,3,1,0,'EE')
,('DE','EE434',FALSE,7,TRUE,2011,NULL,'Energy Management and Automation',4,'EE','T',15,25,60,100,3,1,0,'EE')
,('DE','EE435',FALSE,8,TRUE,2001,NULL,'Power Station Practice',4,'EE','T',15,25,60,100,3,1,0,'EE')
,('DE','EE436',FALSE,7,FALSE,2001,2010,'Comp. Methods in Power Systems',4,'EE','T',15,25,60,100,3,1,0,'EE')
,('DE','EE437',FALSE,8,TRUE,2011,NULL,'Power Quality',4,'EE','T',15,25,60,100,3,1,0,'EE')
,('DE','EE438',FALSE,8,FALSE,2001,2010,'Distribution System & Automation',2,'EE','T',15,25,60,100,3,1,0,'EE')
,('OE','EE439',FALSE,5,FALSE,2001,2010,'Power Plant Engineering',4,'OE','T',15,25,60,100,3,1,0,'EE')
,('DC','EE442N',TRUE,7,TRUE,2003,NULL,'Control Systems',4,'EE','T',15,25,60,100,3,1,0,'EE')
,('DE','EE443',FALSE,7,FALSE,2001,2010,'Fuzzy Logic Control',4,'EE','T',15,25,60,100,3,1,0,'EE')
,('OE','EE444',FALSE,5,TRUE,2001,NULL,'Fuzzy Logic Systems & Appl.',4,'OE','T',15,25,60,100,3,1,0,'EE')
,('DE','EE445',FALSE,8,TRUE,2001,NULL,'Mechatronic Systems',4,'EE','T',15,25,60,100,3,1,0,'EE')
,('DE','EE446',FALSE,7,TRUE,2011,NULL,'Soft Computing',4,'EE','T',15,25,60,100,3,1,0,'EE')
,('OE','EE447',FALSE,5,TRUE,2011,NULL,'Modern Control Systems',4,'OE','T',15,25,60,100,3,1,0,'EE')
,('DE','EE453',FALSE,7,TRUE,2001,NULL,'Process Instrumentation & Control',4,'EE','T',15,25,60,100,3,1,0,'EE')
,('DE','EE454',FALSE,7,FALSE,2001,2010,'Adv. Electrical Measurement & Inst.',4,'EE','T',15,25,60,100,3,1,0,'EE')
,('OE','EE455',FALSE,5,TRUE,2001,NULL,'Process Instrumentation',4,'OE','T',15,25,60,100,3,1,0,'EE')
,('DE','EE456',FALSE,8,TRUE,2011,NULL,'Bio Instrumentation',4,'EE','T',15,25,60,100,3,1,0,'EE')
,('DE','EE457',FALSE,7,TRUE,2011,NULL,'Advanced Instrumentation',4,'EE','T',15,25,60,100,3,1,0,'EE')
,('DE','EE458',FALSE,8,FALSE,2001,2010,'Modern Trends in Instr. System',2,'EE','T',15,25,60,100,3,1,0,'EE')
,('DE','EE461',FALSE,7,FALSE,2001,2010,'High Voltage Engineering',4,'EE','T',15,25,60,100,3,1,0,'EE')
,('DE','EE462',FALSE,7,FALSE,2001,2010,'EHV AC & DC Transmission',4,'EE','T',15,25,60,100,3,1,0,'EE')
,('DE','EE463',FALSE,7,TRUE,2011,NULL,'High Voltage Testing Technique',4,'EE','T',15,25,60,100,3,1,0,'EE')
,('DE','EE464',FALSE,8,TRUE,2011,NULL,'Advances in High Voltage Engineering',4,'EE','T',15,25,60,100,3,1,0,'EE')
,('OE','EE471',FALSE,5,FALSE,2001,2010,'Non Conventional Energy Sources',4,'OE','T',15,25,60,100,3,1,0,'EE')
,('OE','EE472',FALSE,5,FALSE,2001,2010,'Renewable Energy Sources',4,'OE','T',15,25,60,100,3,1,0,'EE')
,('ESA','EE473',TRUE,7,TRUE,2011,NULL,'Microprocessor Systems and Appl.',4,'EE','T',15,25,60,100,3,1,0,'EE')
,('OE','EE477',FALSE,5,TRUE,2011,NULL,'Introduction to Artificial Intelligence',4,'OE','T',15,25,60,100,3,1,0,'EE')
,('OE','EE478',FALSE,5,TRUE,2011,NULL,'Microcontroller Systems',4,'OE','T',15,25,60,100,3,1,0,'EE')
,('DE','EE482',FALSE,8,TRUE,2001,NULL,'Digital Signal Processing',4,'EE','T',15,25,60,100,3,1,0,'EE')
,('DE','EE485',FALSE,7,FALSE,2001,2010,'Artificial Intell. & Soft Computing',4,'EE','T',15,25,60,100,3,1,0,'EE')
,('OE','EE486',FALSE,5,FALSE,2001,2010,'Soft Comp. & Expert Syst. Design',4,'OE','T',15,25,60,100,3,1,0,'EE')
,('DC','EE490',TRUE,8,FALSE,2001,2010,'Project',7,'EE','P',60,NULL,40,100,0,1,2,'EE')
,('DC','EE490A',TRUE,7,FALSE,2001,2010,'Project',3,'EE','P',60,NULL,40,100,0,1,2,'EE')
,('DC','EE490B',TRUE,8,FALSE,2001,2010,'Project',4,'EE','P',60,NULL,40,100,0,1,2,'EE')
,('DC','EE491N',TRUE,7,FALSE,2003,2010,'Seminar',1.5,'EE','P',60,NULL,40,100,0,2,0,'EE')
,('DC','EE492',TRUE,7,TRUE,2011,NULL,'Microprocessor Lab',2,'EE','P',60,NULL,40,100,0,1,2,'EE')
,('DC','EE492N',TRUE,7,FALSE,2003,2010,'Electrical Machine Design-I',1.5,'EE','P',60,NULL,40,100,0,1,2,'EE')
,('DC','EE493',TRUE,7,TRUE,2011,NULL,'Power System Protection Lab',2,'EE','P',60,NULL,40,100,0,1,2,'EE')
,('DC','EE493N',TRUE,7,FALSE,2003,2010,'Electrical Engineering Lab.-VI',1.5,'EE','P',60,NULL,40,100,0,1,2,'EE')
,('DC','EE494N',TRUE,7,FALSE,2003,2010,'Electrical Engineering Lab-VII',1.5,'EE','P',60,NULL,40,100,0,1,2,'EE')
,('DC','EE495',TRUE,8,TRUE,2011,NULL,'Control Lab',2,'EE','P',60,NULL,40,100,0,1,2,'EE')
,('DC','EE495N',TRUE,8,FALSE,2003,2010,'Electrical Machine Design-II',1.5,'EE','P',60,NULL,40,100,0,1,2,'EE')
,('DC','EE496',TRUE,8,TRUE,2011,NULL,'Instrumentation Lab',2,'EE','P',60,NULL,40,100,0,1,2,'EE')
,('DC','EE496N',TRUE,8,FALSE,2003,2010,'Power System Design',1.5,'EE','P',60,NULL,40,100,0,1,2,'EE')
,('DC','EE497N',TRUE,8,FALSE,2003,2010,'Electrical Engineering Lab-VIII',1.5,'EE','P',60,NULL,40,100,0,1,2,'EE')
,('DC','EE498N',TRUE,8,FALSE,2003,2010,'Electrical Engineering Lab-IX',1.5,'EE','P',60,NULL,40,100,0,1,2,'EE')
,('DC','EE499A',TRUE,7,TRUE,2011,NULL,'Project Phase-I',3,'EE','P',60,NULL,40,100,0,3,0,'EE')
,('DC','EE499B',TRUE,8,TRUE,2011,NULL,'Project Phase-II',3,'EE','P',60,NULL,40,100,0,3,0,'EE')
,('ESA','EEA1110',TRUE,0,TRUE,2017,NULL,'Principles of Electrical Engineering',3,'FY','T',15,25,60,100,2,1,0,'EE')
,('ESA','EL101',TRUE,2,FALSE,2001,2010,'Basic Electronics Engg.',3,'FY','T',15,25,60,100,3,1,0,'EL')
,('ESA','EL201',TRUE,3,TRUE,2001,NULL,'Electronic Devices & Circuits',4,'EE','T',15,25,60,100,3,1,0,'EL')
,('ESA','EL202',TRUE,3,FALSE,2001,2010,'Electronics & Instrumentation',3,'KE','T',15,25,60,100,3,1,0,'EL')
,('ESA','EL203',TRUE,4,TRUE,2001,NULL,'Logic & Digital Circuits',4,'EE','T',15,25,60,100,3,1,0,'EL')
,('ESA','EL211',TRUE,3,TRUE,2001,NULL,'Electronic Devices & Circuits',4,'PE','T',15,25,60,100,3,1,0,'EL')
,('DC','EL211N',TRUE,3,TRUE,2005,NULL,'Electronic Devices',4,'LE','T',15,25,60,100,3,1,0,'EL')
,('DC','EL212',TRUE,3,TRUE,2001,NULL,'Circuit Theory',4,'LE','T',15,25,60,100,3,1,0,'EL')
,('DC','EL213',TRUE,4,TRUE,2001,NULL,'Analog Electronics',4,'LE','T',15,25,60,100,3,1,0,'EL')
,('DC','EL221',TRUE,3,FALSE,2001,2010,'Measurements & Instrumentation',4,'LE','T',15,25,60,100,3,1,0,'EL')
,('DC','EL222',TRUE,3,TRUE,2011,NULL,'Electronic Instrumentation',4,'LE','T',15,25,60,100,3,1,0,'EL')
,('DC','EL223',TRUE,4,TRUE,2011,NULL,'Control Systems',4,'LE','T',15,25,60,100,3,1,0,'EL')
,('DC','EL231',TRUE,4,TRUE,2001,NULL,'Logic Circuits',4,'LE','T',15,25,60,100,3,1,0,'EL')
,('DC','EL241',TRUE,3,TRUE,2001,NULL,'Signals & Systems',4,'LE','T',15,25,60,100,3,1,0,'EL')
,('DC','EL242',TRUE,4,TRUE,2011,NULL,'Principles of Communication Engg.',4,'LE','T',15,25,60,100,3,1,0,'EL')
,('DC','EL252',TRUE,4,FALSE,2007,2010,'Theory of Electromagnetic waves',4,'LE','T',15,25,60,100,3,1,0,'EL')
,('ESA','EL290',TRUE,4,TRUE,2011,NULL,'Electronics Laboratory',2,'PE','P',60,NULL,40,100,0,1,2,'EL')
,('ESA','EL291',TRUE,3,FALSE,2001,2010,'Electronics Lab-I',1.5,'PE','P',60,NULL,40,100,0,1,2,'EL')
,('ESA','EL291N',TRUE,3,FALSE,2005,2010,'Electronics Lab-I',1.5,'LE','P',60,NULL,40,100,0,1,2,'EL')
,('ESA','EL292',TRUE,4,FALSE,2001,2010,'Electronics Lab-II',1.5,'PE','P',60,NULL,40,100,0,1,2,'EL')
,('DC','EL292N',TRUE,4,FALSE,2007,2010,'Electronics Lab-II',1.5,'LE','P',60,NULL,40,100,0,1,2,'EL')
,('DC','EL293',TRUE,4,FALSE,2001,2010,'Instrumentation Lab',1.5,'LE','P',60,NULL,40,100,0,1,2,'EL')
,('ESA','EL294',TRUE,4,FALSE,2001,2010,'Electronics Engineering Lab',1.5,'EE','P',60,NULL,40,100,0,1,2,'EL')
,('ESA','EL294X',TRUE,4,TRUE,2011,NULL,'Electronics Engg. Lab',2,'EE','P',60,NULL,40,100,0,1,2,'EL')
,('ESA','EL295',TRUE,3,FALSE,2001,2010,'Electronics Engineering Lab',1.5,'KE','P',60,NULL,40,100,0,1,2,'EL')
,('DC','EL296',TRUE,3,TRUE,2011,NULL,'Electronics Lab I',2,'LE','P',60,NULL,40,100,0,1,2,'EL')
,('DC','EL297',TRUE,4,TRUE,2011,NULL,'Electronics Lab II',2,'LE','P',60,NULL,40,100,0,1,2,'EL')
,('DC','EL298',TRUE,4,TRUE,2011,NULL,'Instrumentation Lab',2,'LE','P',60,NULL,40,100,0,1,2,'EL')
,('DC','EL311',TRUE,5,TRUE,2001,NULL,'Digital Electronics',4,'LE','T',15,25,60,100,3,1,0,'EL')
,('DC','EL312',TRUE,5,TRUE,2001,NULL,'Active Network Synthesis',4,'LE','T',15,25,60,100,3,1,0,'EL')
,('DC','EL313',TRUE,6,FALSE,2001,2010,'Microelectronics',4,'LE','T',15,25,60,100,3,1,0,'EL')
,('OE','EL314',FALSE,5,TRUE,2001,NULL,'Semiconductor Devices & Modelling',4,'OE','T',15,25,60,100,3,1,0,'EL')
,('DE','EL314N',FALSE,6,TRUE,2001,NULL,'Semiconductor Device Modelling',4,'LE','T',15,25,60,100,3,1,0,'EL')
,('DC','EL315',TRUE,5,TRUE,2011,NULL,'VLSI Design & Technology',4,'LE','T',15,25,60,100,3,1,0,'EL')
,('OE','EL320',FALSE,5,TRUE,2011,NULL,'Industrial Electronics and Instrumentation',4,'OE','T',15,25,60,100,3,1,0,'EL')
,('DC','EL321',TRUE,6,FALSE,2001,2010,'Control Systems',4,'LE','T',15,25,60,100,3,1,0,'EL')
,('DC','EL331',TRUE,5,FALSE,2001,2010,'Microprocessors & Microcomputers',4,'LE','T',15,25,60,100,3,1,0,'EL')
,('DC','EL332',TRUE,5,TRUE,2011,NULL,'Microprocessors & Microcontrollers',4,'LE','T',15,25,60,100,3,1,0,'EL')
,('ESA','EL340',TRUE,5,TRUE,2004,NULL,'Communication Engineering',4,'PE','T',15,25,60,100,3,1,0,'EL')
,('DC','EL341',TRUE,5,FALSE,2001,2010,'Principles of Communication Engg.',4,'LE','T',15,25,60,100,3,1,0,'EL')
,('DC','EL342',TRUE,5,TRUE,2001,NULL,'Digital Communication',4,'LE','T',15,25,60,100,3,1,0,'EL')
,('DC','EL343N',TRUE,6,TRUE,2004,NULL,'Digital Signal Processing-I',4,'LE','T',15,25,60,100,3,1,0,'EL')
,('DC','EL344',TRUE,6,TRUE,2011,NULL,'Communication Networks',4,'LE','T',15,25,60,100,3,1,0,'EL')
,('DE','EL352',FALSE,6,TRUE,2011,NULL,'Optoelectronics',4,'LE','T',15,25,60,100,3,1,0,'EL')
,('DE','EL352N',FALSE,6,FALSE,2001,2010,'Optoelectronics',4,'LE','T',15,25,60,100,3,1,0,'EL')
,('OE','EL353',FALSE,5,TRUE,2001,NULL,'Adv. Electromagnetic Field',4,'OE','T',15,25,60,100,3,1,0,'EL')
,('DE','EL353N',FALSE,6,FALSE,2001,2010,'Adv. Electromagnetic Fields',4,'LE','T',15,25,60,100,3,1,0,'EL')
,('DC','EL354',TRUE,5,TRUE,2007,NULL,'Microwaves and Antennas',4,'LE','T',15,25,60,100,3,1,0,'EL')
,('DC','EL380',TRUE,6,TRUE,2011,NULL,'Colloquium',2,'LE','P',100,NULL,0,100,0,2,0,'EL')
,('DC','EL391',TRUE,5,FALSE,2001,2010,'Electronics Lab-III',1.5,'LE','P',60,NULL,40,100,0,1,2,'EL')
,('DC','EL392',TRUE,5,FALSE,2001,2010,'Communication Lab-I',1.5,'LE','P',60,NULL,40,100,0,1,2,'EL')
,('DC','EL393',TRUE,6,FALSE,2001,2010,'Microprocessor Lab',1.5,'LE','P',60,NULL,40,100,0,1,2,'EL')
,('DC','EL394',TRUE,6,FALSE,2001,2010,'Communication Lab-II',1.5,'LE','P',60,NULL,40,100,0,1,2,'EL')
,('DC','EL395',TRUE,5,TRUE,2011,NULL,'Electronics Lab III',2,'LE','P',60,NULL,40,100,0,1,2,'EL')
,('DC','EL396',TRUE,5,TRUE,2011,NULL,'Communication Lab I',2,'LE','P',60,NULL,40,100,0,1,2,'EL')
,('DC','EL397',TRUE,6,TRUE,2011,NULL,'Microprocessors Lab',2,'LE','P',60,NULL,40,100,0,1,2,'EL')
,('DC','EL398',TRUE,6,TRUE,2011,NULL,'Communication Lab II',2,'LE','P',60,NULL,40,100,0,1,2,'EL')
,('DC','EL400',TRUE,7,FALSE,2007,2010,'Seminar',2,'LE','P',60,NULL,40,100,0,1,2,'EL')
,('DE','EL410',FALSE,8,TRUE,2001,NULL,'RF System Design',4,'LE','T',15,25,60,100,3,1,0,'EL')
,('DE','EL411',FALSE,7,TRUE,2001,NULL,'Filter Circuit Design',4,'LE','T',15,25,60,100,3,1,0,'EL')
,('DE','EL412',FALSE,7,TRUE,2001,NULL,'Analog I.C. Design',4,'LE','T',15,25,60,100,3,1,0,'EL')
,('DE','EL413',FALSE,7,TRUE,2011,NULL,'Digital I.C. Design',4,'LE','T',15,25,60,100,3,1,0,'EL')
,('DC','EL413N',TRUE,7,FALSE,2003,2010,'Digital I.C. Design',3,'LE','T',15,25,60,100,3,1,0,'EL')
,('DE','EL414',FALSE,8,TRUE,2001,NULL,'Switched Capacitor Network',4,'LE','T',15,25,60,100,3,1,0,'EL')
,('DE','EL415',FALSE,8,TRUE,2001,NULL,'Digital System Design',4,'LE','T',15,25,60,100,3,1,0,'EL')
,('DE','EL416',FALSE,7,TRUE,2011,NULL,'Current Mode Analog Signal Processing',4,'DE','T',15,25,60,100,3,1,0,'EL')
,('DE','EL417',FALSE,7,TRUE,2011,NULL,'VLSI Architecture for Digital Signal Processing',4,'DE','T',15,25,60,100,3,1,0,'EL')
,('OE','EL421N',FALSE,5,TRUE,2001,NULL,'Electronic Instrumentation',4,'OE','T',15,25,60,100,3,1,0,'EL')
,('DE','EL422',FALSE,7,TRUE,2001,NULL,'Bio-medical Instrumentation',4,'LE','T',15,25,60,100,3,1,0,'EL')
,('OE','EL422N',FALSE,5,TRUE,2001,NULL,'Bio-medical Instrumentation',4,'OE','T',15,25,60,100,3,1,0,'EL')
,('OE','EL424',FALSE,5,TRUE,2011,NULL,'Industrial Instrumentation',4,'OE','T',15,25,60,100,3,1,0,'EL')
,('DE','EL431',FALSE,7,TRUE,2001,NULL,'Computer Communication Network',4,'LE','T',15,25,60,100,3,1,0,'EL')
,('DC','EL431N',TRUE,7,FALSE,2003,2010,'Computer Communication Network',4,'LE','T',15,25,60,100,3,1,0,'EL')
,('OE','EL432N',FALSE,5,TRUE,2001,NULL,'Artif. Intell. & Neural Networks',4,'OE','T',15,25,60,100,3,1,0,'EL')
,('DE','EL433',FALSE,8,TRUE,2001,NULL,'Adv. Microprocessor System',4,'LE','T',15,25,60,100,3,1,0,'EL')
,('OE','EL440',FALSE,5,TRUE,2001,NULL,'Principles of Communication Engg.',4,'OE','T',15,25,60,100,3,1,0,'EL')
,('ESA','EL440N',TRUE,7,FALSE,2003,2010,'Principles of Communication Engg.',4,'EE','T',15,25,60,100,3,1,0,'EL')
,('DE','EL441N',FALSE,7,TRUE,2001,NULL,'Telecom. Switching & Networks',4,'LE','T',15,25,60,100,3,1,0,'EL')
,('DE','EL442',FALSE,7,TRUE,2001,NULL,'Adv. Digital Communication',4,'LE','T',15,25,60,100,3,1,0,'EL')
,('DE','EL443',FALSE,7,TRUE,2001,NULL,'Communication Hardware Design',4,'LE','T',15,25,60,100,3,1,0,'EL')
,('DE','EL444',FALSE,8,TRUE,2001,NULL,'Adv. Digital Signal Processing',4,'LE','T',15,25,60,100,3,1,0,'EL')
,('DE','EL444N',FALSE,8,TRUE,2001,NULL,'Digital Signal Processing-II',4,'LE','T',15,25,60,100,3,1,0,'EL')
,('DE','EL445',FALSE,8,TRUE,2001,NULL,'Audio & Video Signal Processing',4,'LE','T',15,25,60,100,3,1,0,'EL')
,('DE','EL446',FALSE,8,TRUE,2001,NULL,'Data Communication',4,'LE','T',15,25,60,100,3,1,0,'EL')
,('DE','EL447',FALSE,8,TRUE,2001,NULL,'Multimedia Systems & Networks',4,'LE','T',15,25,60,100,3,1,0,'EL')
,('OE','EL453',FALSE,5,TRUE,2001,NULL,'Radio & T. V. Engg.',4,'OE','T',15,25,60,100,3,1,0,'EL')
,('DE','EL454',FALSE,8,TRUE,2001,NULL,'Satellite Communication',4,'LE','T',15,25,60,100,3,1,0,'EL')
,('DE','EL455',FALSE,8,TRUE,2001,NULL,'Communication Links',4,'LE','T',15,25,60,100,3,1,0,'EL')
,('DE','EL456',FALSE,6,TRUE,2001,NULL,'Fiber Optic Communication',4,'LE','T',15,25,60,100,3,1,0,'EL')
,('DE','EL457',FALSE,8,TRUE,2001,NULL,'Mobile Communication',4,'LE','T',15,25,60,100,3,1,0,'EL')
,('DC','EL458',TRUE,8,FALSE,2007,2010,'TV and Radar Engineering',4,'LE','T',15,25,60,100,3,1,0,'EL')
,('DE','EL458N',FALSE,7,TRUE,2011,NULL,'TV and Radar Engineering',4,'LE','T',15,25,60,100,3,1,0,'EL')
,('DC','EL490',TRUE,8,FALSE,2001,2010,'Project',8,'LE','P',60,NULL,40,100,0,1,2,'EL')
,('DC','EL490A',TRUE,7,TRUE,2001,NULL,'Project Phase-I',4,'LE','P',60,NULL,40,100,0,2,4,'EL')
,('DC','EL490B',TRUE,8,TRUE,2001,NULL,'Project Phase-II',4,'LE','P',60,NULL,40,100,0,2,4,'EL')
,('DC','EL491',TRUE,7,FALSE,2001,2010,'Electronics Lab-IV',1.5,'LE','P',60,NULL,40,100,0,1,2,'EL')
,('DC','EL492',TRUE,8,FALSE,2001,2010,'Communication Lab-III',1.5,'LE','P',60,NULL,40,100,0,1,2,'EL')
,('DC','EL493',TRUE,7,TRUE,2011,NULL,'Electronics Lab IV',2,'LE','P',60,NULL,40,100,0,1,2,'EL')
,('DC','EL494',TRUE,7,TRUE,2011,NULL,'Communication Lab III',2,'LE','P',60,NULL,40,100,0,1,2,'EL')
,('ESA','ELA1110',TRUE,0,TRUE,2017,NULL,'Principles of Electronics Engineering',3,'FY','T',15,25,60,100,2,1,0,'EL')
,('HM','EN101',TRUE,0,TRUE,2001,NULL,'English',4,'FY','T',15,25,60,100,3,1,0,'HU')
,('HM','EZ291',TRUE,4,TRUE,2011,NULL,'Communication Skills Lab',2,'CE','P',60,NULL,40,100,0,1,2,'HU')
,('HM','EZH1110',TRUE,0,TRUE,2017,NULL,'English',3,'FY','T',15,25,60,100,2,1,0,'HU')
,('HM','HU202',TRUE,4,FALSE,2001,2010,'Communication Skills',4,'EE','T',15,25,60,100,3,1,0,'HU')
,('HM','HU203',FALSE,3,FALSE,2001,2010,'Economics',4,'ME','T',15,25,60,100,3,1,0,'HU')
,('HM','HU208',TRUE,3,FALSE,2001,2016,'Man, Society & Buildings',2,'AR','T',15,25,60,100,3,1,0,'HU')
,('HM','HU210',FALSE,3,FALSE,2001,2010,'Introduction to Psychology',4,'ME','T',15,25,60,100,3,1,0,'HU')
,('HM','HU211',FALSE,3,FALSE,2001,2010,'Philosophy & Technology',4,'ME','T',15,25,60,100,3,1,0,'HU')
,('HM','HU212',FALSE,3,FALSE,2001,2010,'Applied Psychology',4,'ME','T',15,25,60,100,3,1,0,'HU')
,('OE','HU301',FALSE,5,TRUE,2011,NULL,'intellectual property rights',4,'OE','T',15,25,60,100,3,1,0,'HU')
,('HM','HU302',TRUE,6,FALSE,2001,2010,'Communication Skills',4,'CE','T',15,25,60,100,3,1,0,'HU')
,('ESA','ME101',TRUE,0,TRUE,2001,NULL,'Thermal Sciences',4,'FY','T',15,25,60,100,3,1,0,'ME')
,('ESA','ME102',TRUE,2,FALSE,2001,2010,'Engineering Graphics',4,'FY','T',15,25,60,100,3,1,0,'ME')
,('ESA','ME103',TRUE,1,FALSE,2001,2010,'Engineering Mechanics',4,'FY','T',15,25,60,100,3,1,0,'ME')
,('ESA','ME111',TRUE,0,TRUE,2011,NULL,'Applied Mechanics',4,'FY','T',15,25,60,100,3,1,0,'ME')
,('ESA','ME181F',FALSE,0,FALSE,2005,2010,'Engg Graphics Seminar-I',1,'FY','P',60,NULL,40,100,0,1,2,'ME')
,('ESA','ME182F',FALSE,0,FALSE,2005,2010,'Engg Graphics Seminar-II',1,'FY','P',60,NULL,40,100,0,1,2,'ME')
,('ESA','ME191',TRUE,1,FALSE,2001,2010,'Manufacturing Processes Lab-I',1.5,'FY','P',60,NULL,40,100,0,1,2,'ME')
,('ESA','ME192',TRUE,2,FALSE,2001,2010,'Manufacturing Processes Lab-II',1.5,'FY','P',60,NULL,40,100,0,1,2,'ME')
,('ESA','ME193',TRUE,0,TRUE,2011,NULL,'Engineering Graphics Lab',2,'FY','P',60,NULL,40,100,0,1,2,'ME')
,('ESA','ME194',TRUE,0,TRUE,2011,NULL,'Manufacturing Process Lab',2,'FY','P',60,NULL,40,100,0,1,2,'ME')
,('DC','ME201',TRUE,3,FALSE,2001,2010,'Manufacturing Process',5,'ME','T',15,25,60,100,3,1,0,'ME')
,('DC','ME202',TRUE,4,TRUE,2001,NULL,'Materials Science',4,'ME','T',15,25,60,100,3,1,0,'ME')
,('ESA','ME210',TRUE,4,FALSE,2001,2010,'Mechanics of Solids',4,'KE','T',15,25,60,100,3,1,0,'ME')
,('DC','ME211',TRUE,4,FALSE,2001,2013,'Machine Drawing & Comp. Graph.',4,'ME','T',15,25,40,100,1,3,0,'ME')
,('DC','ME212',TRUE,4,FALSE,2001,2010,'Machine Design I',5,'ME','T',15,25,60,100,3,1,0,'ME')
,('DC','ME213',TRUE,3,TRUE,2001,NULL,'Mechanics of Solids',4,'ME','T',15,25,60,100,3,1,0,'ME')
,('DC','ME214',TRUE,3,TRUE,2011,NULL,'Manufacturing Technology I',4,'ME','T',15,25,60,100,3,1,0,'ME')
,('DC','ME215',TRUE,4,TRUE,2011,NULL,'Kinematics and Design of Machines',4,'ME','T',15,25,60,100,3,1,0,'ME')
,('ESA','ME220',TRUE,3,TRUE,2001,NULL,'Experimental Methods & Analysis',4,'ME','T',15,25,60,100,3,1,0,'ME')
,('DC','ME221',TRUE,3,TRUE,2001,NULL,'Applied Thermodynamics',4,'ME','T',15,25,60,100,3,1,0,'ME')
,('DC','ME231',TRUE,3,TRUE,2001,NULL,'Fluids Mechanics I',4,'ME','T',15,25,60,100,3,1,0,'ME')
,('HM','ME240',TRUE,4,FALSE,2001,2010,'Economics & Management',4,'CE','T',15,25,60,100,3,1,0,'ME')
,('DC','ME281F',FALSE,3,FALSE,2001,2010,'Mechanical Engg. Seminar',1,'ME','P',60,NULL,40,100,0,1,0,'ME')
,('DC','ME282F',FALSE,4,FALSE,2001,2010,'Mechanical Engg. Seminar II',1,'ME','P',60,NULL,40,100,0,1,2,'ME')
,('ESA','ME290',TRUE,3,FALSE,2001,2010,'Machine Drawing & Comp. Graph.',1.5,'KE','P',60,NULL,40,100,0,1,2,'ME')
,('DC','ME291',TRUE,3,FALSE,2001,2010,'Manufacturing Processes Lab III',1.5,'ME','P',60,NULL,40,100,0,1,2,'ME')
,('DC','ME292',TRUE,3,FALSE,2001,2010,'Thermodynamics Lab',1.5,'ME','P',60,NULL,40,100,0,1,2,'ME')
,('DC','ME293',TRUE,4,FALSE,2001,2010,'Fluids Mechanics Lab',1.5,'ME','P',60,NULL,40,100,0,1,2,'ME')
,('ESA','ME294',TRUE,3,TRUE,2011,NULL,'Machine Drawing and Comp. Graphics',2,'KE','P',60,NULL,40,100,0,1,2,'ME')
,('DC','ME295',TRUE,3,TRUE,2011,NULL,'Manufacturing Technology Lab I',2,'ME','P',60,NULL,40,100,0,1,2,'ME')
,('DC','ME296',TRUE,3,TRUE,2011,NULL,'Thermodynamics Lab',2,'ME','P',60,NULL,40,100,0,1,2,'ME')
,('DC','ME297',TRUE,4,TRUE,2011,NULL,'Fluids Mechanics Lab',2,'ME','P',60,NULL,40,100,0,1,2,'ME')
,('DC','ME298',TRUE,4,TRUE,2014,NULL,'Machine Drawing',2,'ME','P',60,NULL,40,100,0,1,2,'ME')
,('DC','ME303',TRUE,6,FALSE,2001,2010,'Manufacturing Sciences',5,'ME','T',15,25,60,100,3,1,0,'ME')
,('DC','ME314',TRUE,5,FALSE,2001,2010,'Kinematics of Machines',5,'ME','T',15,25,60,100,3,1,0,'ME')
,('DC','ME315',TRUE,6,TRUE,2001,NULL,'Machinery Dynamics',4,'ME','T',15,25,60,100,3,1,0,'ME')
,('DC','ME316',TRUE,5,FALSE,2001,2010,'Machine Design II',4,'ME','T',15,25,60,100,3,1,0,'ME')
,('DC','ME317',TRUE,5,TRUE,2011,NULL,'Machine Design',4,'ME','T',15,25,60,100,3,1,0,'ME')
,('DC','ME322',TRUE,6,TRUE,2001,NULL,'Energy Conversion System',4,'ME','T',15,25,60,100,3,1,0,'ME')
,('DC','ME323',TRUE,5,TRUE,2001,NULL,'Heat & Mass Transfer',4,'ME','T',15,25,60,100,3,1,0,'ME')
,('DC','ME324',TRUE,6,TRUE,2001,NULL,'I.C. Engines',4,'ME','T',15,25,60,100,3,1,0,'ME')
,('DC','ME325',TRUE,6,TRUE,2011,NULL,'Manufacturing Technology II',4,'ME','T',15,25,60,100,3,1,0,'ME')
,('DC','ME332',TRUE,5,TRUE,2001,NULL,'Fluid Mechanics II',4,'ME','T',15,25,60,100,3,1,0,'ME')
,('HM','ME340',TRUE,5,FALSE,2001,2010,'Economics & Management',4,'CE','T',15,25,60,100,3,1,0,'ME')
,('DC','ME341',TRUE,5,TRUE,2001,NULL,'Industrial Engineering',4,'ME','T',15,25,60,100,3,1,0,'ME')
,('DC','ME389',TRUE,6,TRUE,2011,NULL,'Collquium',2,'ME','P',60,NULL,40,100,0,2,0,'ME')
,('DC','ME391',TRUE,6,TRUE,2011,NULL,'Manufacturing Technology Lab II',2,'ME','P',60,NULL,40,100,0,1,2,'ME')
,('DC','ME392',TRUE,5,TRUE,2011,NULL,'Heat & Mass Transfer Lab',2,'ME','P',60,NULL,40,100,0,1,2,'ME')
,('DC','ME393',TRUE,5,TRUE,2011,NULL,'Kinematics & Stress Analysis Lab',2,'ME','P',60,NULL,40,100,0,1,2,'ME')
,('DC','ME394',TRUE,5,FALSE,2001,2010,'Heat & Mass Transfer Lab',1.5,'ME','P',60,NULL,40,100,0,1,2,'ME')
,('DC','ME395',TRUE,5,FALSE,2001,2010,'Kinematics & Stress Analysis Lab',1.5,'ME','P',60,NULL,40,100,0,1,2,'ME')
,('DC','ME396',TRUE,6,FALSE,2001,2010,'Energy Conversion Systems Lab',1.5,'ME','P',60,NULL,40,100,0,1,2,'ME')
,('DC','ME397',TRUE,6,FALSE,2001,2010,'Manufacturing Science Lab',1.5,'ME','P',60,NULL,40,100,0,1,2,'ME')
,('DC','ME398',TRUE,5,TRUE,2011,NULL,'Machine Design Practice',2,'ME','P',60,NULL,40,100,0,1,2,'ME')
,('DC','ME404',TRUE,7,FALSE,2001,2010,'Manufacturing Engineering',4,'ME','T',15,25,60,100,3,1,0,'ME')
,('DE','ME405',FALSE,8,TRUE,2001,NULL,'Non Traditional Machining',4,'ME','T',15,25,60,100,3,1,0,'ME')
,('DE','ME406',FALSE,8,TRUE,2001,NULL,'Powder Metallurgy',4,'ME','T',15,25,60,100,3,1,0,'ME')
,('DE','ME407',FALSE,7,TRUE,2001,NULL,'Proc. of Plastics,Polymer & Ceram.',4,'ME','T',15,25,60,100,3,1,0,'ME')
,('DE','ME410',FALSE,8,TRUE,2001,NULL,'Industrial Tribology',4,'ME','T',15,25,60,100,3,1,0,'ME')
,('DC','ME411',TRUE,7,TRUE,2011,NULL,'Mechanical Vibrations',4,'ME','T',15,25,60,100,3,1,0,'ME')
,('DC','ME417',TRUE,8,FALSE,2001,2010,'Mechanical Vibrations',5,'ME','T',15,25,60,100,3,1,0,'ME')
,('DE','ME418',FALSE,7,TRUE,2001,NULL,'Adv. Mechanics of Solids',4,'ME','T',15,25,60,100,3,1,0,'ME')
,('DE','ME419',FALSE,8,TRUE,2001,NULL,'Fracture Mechanics',4,'ME','T',15,25,60,100,3,1,0,'ME')
,('DE','ME420',FALSE,8,TRUE,2001,NULL,'Fuel & Combustion Engg.',4,'ME','T',15,25,60,100,3,1,0,'ME')
,('OE','ME425',FALSE,5,TRUE,2001,NULL,'Air Pollution Technology',4,'OE','T',15,25,60,100,3,1,0,'ME')
,('DE','ME426',FALSE,7,TRUE,2001,NULL,'Automotive Engineering',4,'ME','T',15,25,60,100,3,1,0,'ME')
,('DE','ME427',FALSE,7,TRUE,2001,NULL,'Computational Aerodynamics',4,'ME','T',15,25,60,100,3,1,0,'ME')
,('DE','ME428',FALSE,8,TRUE,2001,NULL,'Power Plant Engineering',4,'ME','T',15,25,60,100,3,1,0,'ME')
,('DE','ME429',FALSE,8,FALSE,2001,2013,'Refrigeration & Cryogenics',4,'ME','T',15,25,60,100,3,1,0,'ME')
,('DE','ME429N',FALSE,6,TRUE,2001,NULL,'Refrigeration & Air Conditioning',4,'ME','T',15,25,60,100,3,1,0,'ME')
,('OE','ME430',FALSE,5,TRUE,2001,NULL,'Fluid Mechanics & Fluid Machinery',4,'OE','T',15,25,60,100,3,1,0,'ME')
,('DC','ME433',TRUE,7,TRUE,2001,NULL,'Fluid Machinery',4,'ME','T',15,25,60,100,3,1,0,'ME')
,('DE','ME434',FALSE,8,TRUE,2001,NULL,'Microprocessor Appl. in Mech. Eng.',4,'ME','T',15,25,60,100,3,1,0,'ME')
,('OE','ME435',FALSE,5,TRUE,2001,NULL,'Finite Element Methods',4,'OE','T',15,25,60,100,3,1,0,'ME')
,('OE','ME436',FALSE,5,TRUE,2001,NULL,'Computational Fluid Dynamics',4,'OE','T',15,25,60,100,3,1,0,'ME')
,('OE','ME437',FALSE,5,TRUE,2001,NULL,'Pumps Blowers & Compressor',4,'OE','T',15,25,60,100,3,1,0,'ME')
,('DE','ME438',FALSE,6,TRUE,2001,NULL,'Gas Dynamics',4,'ME','T',15,25,60,100,3,1,0,'ME')
,('DE','ME439',FALSE,6,TRUE,2001,NULL,'Turbulence',4,'ME','T',15,25,60,100,3,1,0,'ME')
,('OE','ME441',FALSE,5,TRUE,2001,NULL,'Entrepreneurship',4,'OE','T',15,25,60,100,3,1,0,'ME')
,('OE','ME442',FALSE,5,TRUE,2001,NULL,'Total Quality Management',4,'OE','T',15,25,60,100,3,1,0,'ME')
,('DE','ME443',FALSE,7,TRUE,2001,NULL,'Manufacturing System Engg.',4,'ME','T',15,25,60,100,3,1,0,'ME')
,('DE','ME444',FALSE,7,TRUE,2001,NULL,'Noise Engineering',4,'ME','T',15,25,60,100,3,1,0,'ME')
,('DE','ME445',FALSE,7,TRUE,2001,NULL,'Operational Research',4,'ME','T',15,25,60,100,3,1,0,'ME')
,('DE','ME446',FALSE,7,TRUE,2001,NULL,'Ergonomics',4,'ME','T',15,25,60,100,3,1,0,'ME')
,('DE','ME447',FALSE,7,TRUE,2001,NULL,'Facilities Planning & Plant Engg.',4,'ME','T',15,25,60,100,3,1,0,'ME')
,('DE','ME448',FALSE,8,TRUE,2001,NULL,'Maintenance Engg. Management',4,'ME','T',15,25,60,100,3,1,0,'ME')
,('DE','ME449',FALSE,8,TRUE,2001,NULL,'Artif. Intelligence in Manufacturing',4,'ME','T',15,25,60,100,3,1,0,'ME')
,('DE','ME451',FALSE,7,TRUE,2001,NULL,'Computer Aided Design',4,'ME','T',15,25,60,100,3,1,0,'ME')
,('DE','ME452',FALSE,8,TRUE,2001,NULL,'Robotics',4,'ME','T',15,25,60,100,3,1,0,'ME')
,('DE','ME453',FALSE,6,TRUE,2001,NULL,'Numer. Control of Machine Tools',4,'ME','T',15,25,60,100,3,1,0,'ME')
,('DE','ME454',FALSE,7,TRUE,2011,NULL,'Six Sigma Quality Engg.',4,'ME','T',15,25,60,100,3,1,0,'ME')
,('DE','ME455',FALSE,6,TRUE,2012,NULL,'Applied Computational Fluid Dynamics',4,'ME','T',15,25,60,100,3,1,0,'ME')
,('OE','ME461',FALSE,5,TRUE,2001,NULL,'Heating, Vent. & Air Cond.(HVAC)',4,'OE','T',15,25,60,100,3,1,0,'ME')
,('OE','ME462',FALSE,5,TRUE,2001,NULL,'Non Conventional Energy',4,'OE','T',15,25,60,100,3,1,0,'ME')
,('DE','ME463',FALSE,7,TRUE,2001,NULL,'Propulsion Technology',4,'ME','T',15,25,60,100,3,1,0,'ME')
,('OE','ME464',FALSE,5,TRUE,2001,NULL,'Introduction to Cognitive Science',4,'OE','T',15,25,60,100,3,1,0,'ME')
,('DE','ME465',FALSE,8,TRUE,2012,NULL,'Introduction To Finite Element Method',4,'ME','T',15,25,60,100,3,1,0,'ME')
,('DE','ME476',FALSE,8,TRUE,2012,NULL,'Introduction To Acoustics',4,'ME','T',15,25,60,100,3,1,0,'ME')
,('OE','ME477',FALSE,5,TRUE,2011,NULL,'Dynamics, Vibration and Control',4,'OE','T',15,25,60,100,3,1,0,'ME')
,('DE','ME478',FALSE,6,TRUE,2012,NULL,'Introduction to Aerospace Structural Analysis',4,'ME','T',15,25,60,100,3,1,0,'ME')
,('DE','ME479',FALSE,6,TRUE,2012,NULL,'Introduction to Composite Materials',4,'ME','T',15,25,60,100,3,1,0,'ME')
,('DC','ME490',TRUE,8,FALSE,2001,2010,'Project',9,'ME','P',60,NULL,40,100,0,1,2,'ME')
,('DC','ME490A',TRUE,7,FALSE,2001,2010,'Project',4,'ME','P',60,NULL,40,100,0,1,2,'ME')
,('DC','ME490B',TRUE,8,FALSE,2001,2010,'Project',5,'ME','P',60,NULL,40,100,0,1,2,'ME')
,('DC','ME491A',TRUE,7,TRUE,2011,NULL,'Project Phase-I',3,'ME','P',60,NULL,40,100,0,0,3,'ME')
,('DC','ME491B',TRUE,8,TRUE,2011,NULL,'Project Phase-II',3,'ME','P',60,NULL,40,100,0,0,3,'ME')
,('DC','ME492',TRUE,8,TRUE,2011,NULL,'Vibrations Lab',2,'ME','P',60,NULL,40,100,0,1,2,'ME')
,('DC','ME493',TRUE,7,TRUE,2011,NULL,'Fluid Machinery Lab',2,'ME','P',60,NULL,40,100,0,1,2,'ME')
,('DC','ME494',TRUE,8,TRUE,2014,NULL,'Solid Modelling and Analysis',2,'ME','T',15,25,40,100,3,1,0,'ME')
,('DC','ME496',TRUE,8,TRUE,2011,NULL,'Energy Conversion System Lab',2,'ME','P',60,NULL,40,100,0,1,2,'ME')
,('DC','ME497',TRUE,7,TRUE,2011,NULL,'Manufacturing Technology Lab III',2,'ME','P',60,NULL,40,100,0,1,2,'ME')
,('DC','ME498',TRUE,7,FALSE,2001,2010,'Fluid Machinery Lab',1.5,'ME','P',60,NULL,40,100,0,1,2,'ME')
,('DC','ME499',TRUE,8,FALSE,2001,2010,'Vibrations Lab.',1.5,'ME','P',60,NULL,40,100,0,1,2,'ME')
,('ESA','MEA1110',TRUE,0,TRUE,2017,NULL,'Engineering Thermodynamics',4,'FY','T',15,25,60,100,3,1,0,'ME')
,('ESA','MEA1120',TRUE,0,TRUE,2017,NULL,'Engineering Mechanics',3,'FY','T',15,25,60,100,2,1,0,'ME')
,('ESA','MEA1910',TRUE,0,TRUE,2017,NULL,'Engineering Graphics Lab',2,'FY','P',60,NULL,40,100,0,1,1,'ME')
,('ESA','MEA1920',TRUE,0,TRUE,2017,NULL,'Manufacturing Process Lab',1.5,'FY','P',60,NULL,40,100,0,0,3,'ME')
,('DC','PK211',TRUE,3,TRUE,2004,NULL,'Basic Principles of Chemical Engg.',4,'PK','T',15,25,60,100,3,1,0,'PK')
,('DC','PK212N',TRUE,3,FALSE,2004,2010,'Intro. To Petrochemical Tech.',4,'PK','T',15,25,60,100,3,1,0,'PK')
,('DC','PK213N',TRUE,3,FALSE,2004,2010,'Fluid Mechanics & Mechanic. Oper.',5,'PK','T',15,25,60,100,3,1,0,'PK')
,('DC','PK214',TRUE,3,TRUE,2004,NULL,'Reaction Kinetics & Reactor Design',4,'PK','T',15,25,60,100,3,1,0,'PK')
,('DC','PK221N',TRUE,4,TRUE,2004,NULL,'Chemical Engg. Thermodynamics',4,'PK','T',15,25,60,100,3,1,0,'PK')
,('DC','PK222N',TRUE,4,FALSE,2004,2010,'Crude Oil & Petroleum Products',4,'PK','T',15,25,60,100,3,1,0,'PK')
,('DC','PK223N',TRUE,4,FALSE,2004,2010,'Tech. of Intermediate Petrochem.',4,'PK','T',15,25,60,100,3,1,0,'PK')
,('DC','PK224',TRUE,4,FALSE,2004,2010,'Introduction To Petroleum Engg.',4,'PK','T',15,25,60,100,3,1,0,'PK')
,('DC','PK231',TRUE,3,TRUE,2011,NULL,'Chemistry of Hydrocarbons',4,'PK','T',15,25,60,100,3,1,0,'PK')
,('DC','PK232',TRUE,3,TRUE,2011,NULL,'Fluid Mechanis',4,'PK','T',15,25,60,100,3,1,0,'PK')
,('DC','PK233',TRUE,3,TRUE,2011,NULL,'Fluid-Particle Operations',4,'PK','T',15,25,60,100,3,1,0,'PK')
,('DC','PK241',TRUE,4,TRUE,2011,NULL,'Separation Proc. in Hydrocarb. Ind.',4,'PK','T',15,25,60,100,3,1,0,'PK')
,('DC','PK242',TRUE,4,TRUE,2011,NULL,'Process Development and Equip. Design',4,'PK','T',15,25,60,100,3,1,0,'PK')
,('DE','PK243A',FALSE,4,TRUE,2011,NULL,'Alternative Fuels and Energe Resources',4,'PK','T',15,25,60,100,3,1,0,'PK')
,('DE','PK243B',FALSE,4,TRUE,2011,NULL,'Renewable Energy',4,'PK','T',15,25,60,100,3,1,0,'PK')
,('DE','PK243C',FALSE,4,TRUE,2011,NULL,'Energy Resources & Environment Management',4,'PK','T',15,25,60,100,3,1,0,'PK')
,('DE','PK243D',FALSE,4,TRUE,2011,NULL,'Synthetic Fuels',4,'PK','T',15,25,60,100,3,1,0,'PK')
,('DC','PK291',TRUE,4,FALSE,2001,2010,'Petroleum Testing Lab',1.5,'PK','P',60,NULL,40,100,0,1,2,'PK')
,('DC','PK293',TRUE,4,TRUE,2011,NULL,'Petroleum Testing Lab.',2,'PK','P',60,NULL,40,100,0,1,2,'PK')
,('DC','PK311N',TRUE,5,TRUE,2004,NULL,'Petroleum Refining Processes',4,'PK','T',15,25,60,100,3,1,0,'PK')
,('DC','PK312N',TRUE,5,TRUE,2004,NULL,'Heat Transfer Operations',4,'PK','T',15,25,60,100,3,1,0,'PK')
,('DC','PK313N',TRUE,5,TRUE,2004,NULL,'Mass Transfer Operations',4,'PK','T',15,25,60,100,3,1,0,'PK')
,('DC','PK314',TRUE,5,FALSE,2004,2010,'Polymer Science & Technology',4,'PK','T',15,25,60,100,3,1,0,'PK')
,('DC','PK315N',TRUE,6,TRUE,2004,NULL,'Natural Gas Processing',4,'PK','T',15,25,60,100,3,1,0,'PK')
,('DC','PK321N',TRUE,6,FALSE,2004,2010,'Alternate Fuels & Energy Resources',4,'PK','T',15,25,60,100,3,1,0,'PK')
,('DC','PK322N',TRUE,6,FALSE,2004,2010,'Separation Proc. in HC Industries',3,'PK','T',15,25,60,100,3,1,0,'PK')
,('DC','PK323',TRUE,6,TRUE,2004,NULL,'Transport Phenomena',4,'PK','T',15,25,60,100,3,1,0,'PK')
,('DC','PK324N',TRUE,6,FALSE,2004,2010,'Heterogeneous Reaction Engg.',3,'PK','T',15,25,60,100,3,1,0,'PK')
,('DC','PK325N',TRUE,6,FALSE,2004,2010,'Tech. of Value Added Petrochem.',4,'PK','T',15,25,60,100,3,1,0,'PK')
,('OE','PK328',FALSE,5,TRUE,2001,NULL,'Ind. Instr. & Instr. Method of Anal.',4,'OE','T',15,25,60,100,3,1,0,'PK')
,('DE','PK328A',FALSE,6,FALSE,2004,2010,'Proc. Equipment & Piping Design',4,'PK','T',15,25,60,100,3,1,0,'PK')
,('DE','PK328B',FALSE,6,FALSE,2004,2010,'Pressure Vessel & Piping Design',4,'PK','T',15,25,60,100,3,1,0,'PK')
,('DE','PK328C',FALSE,6,FALSE,2004,2010,'Combustion Technology',4,'PK','T',15,25,60,100,3,1,0,'PK')
,('OE','PK329',FALSE,5,TRUE,2001,NULL,'Select. Topics in Petroleum Proc.',4,'OE','T',15,25,60,100,3,1,0,'PK')
,('DC','PK331',TRUE,5,TRUE,2011,NULL,'Refinery Engineering Calculations',4,'PK','T',15,25,60,100,3,1,0,'PK')
,('DE','PK341A',FALSE,6,TRUE,2011,NULL,'Heterogeneous Reaction Engineering',4,'PK','T',15,25,60,100,3,1,0,'PK')
,('DE','PK341B',FALSE,6,TRUE,2011,NULL,'Catalysis',4,'PK','T',15,25,60,100,3,1,0,'PK')
,('DE','PK341C',FALSE,6,TRUE,2011,NULL,'Chemical Reactor Design',4,'PK','T',15,25,60,100,3,1,0,'PK')
,('DC','PK342',TRUE,6,TRUE,2011,NULL,'Petrochemical Technology I',4,'PK','T',15,25,60,100,3,1,0,'PK')
,('DC','PK343',TRUE,6,TRUE,2011,NULL,'Health, Safety & Env. In Hydcarb. Ind.',4,'PK','T',15,25,60,100,3,1,0,'PK')
,('DC','PK391',TRUE,5,FALSE,2004,2010,'Petrol. Test. & Polymer Ident. Lab',1.5,'PK','P',60,NULL,40,100,0,1,2,'PK')
,('DC','PK392N',TRUE,6,FALSE,2004,2010,'Design of HC Process. Equipments',2,'PK','P',60,NULL,40,100,0,1,2,'PK')
,('DC','PK393',TRUE,5,TRUE,2011,NULL,'Computer Applications Lab.',2,'PK','P',60,NULL,60,100,0,1,2,'PK')
,('DC','PK394',TRUE,6,TRUE,2011,NULL,'Reaction Engg. Lab.',2,'PK','P',60,NULL,40,100,0,1,2,'PK')
,('DC','PK395',TRUE,6,TRUE,2011,NULL,'Process Equipment Design',2,'PK','P',60,NULL,40,100,0,1,2,'PK')
,('DC','PK411',TRUE,7,TRUE,2001,NULL,'Process Dynamics & Control',4,'PK','T',15,25,60,100,3,1,0,'PK')
,('DC','PK412N',TRUE,7,FALSE,2004,2010,'Process Engg. & Plant Design',4,'PK','T',15,25,60,100,3,1,0,'PK')
,('DC','PK413N',TRUE,7,FALSE,2004,2010,'Refinery Engg. Calculations',4,'PK','T',15,25,60,100,3,1,0,'PK')
,('DE','PK417A',FALSE,7,FALSE,2004,2010,'Gas Utilization & Conversion Tech.',4,'PK','T',15,25,60,100,3,1,0,'PK')
,('DE','PK417B',FALSE,7,FALSE,2004,2010,'Gas Storage & Transportation',4,'PK','T',15,25,60,100,3,1,0,'PK')
,('DE','PK417C',FALSE,7,FALSE,2004,2010,'Coal Conversion Processes',4,'PK','T',15,25,60,100,3,1,0,'PK')
,('DE','PK417D',FALSE,7,FALSE,2004,2010,'Synthetic Fuels',4,'PK','T',15,25,60,100,3,1,0,'PK')
,('DE','PK418A',FALSE,7,FALSE,2004,2010,'Fertilizer Technology',4,'PK','T',15,25,60,100,3,1,0,'PK')
,('DE','PK418B',FALSE,7,FALSE,2004,2010,'Select. Topics in Petrochem. Engg.',4,'PK','T',15,25,60,100,3,1,0,'PK')
,('DE','PK418C',FALSE,7,FALSE,2004,2010,'Biofertilizer',4,'PK','T',15,25,60,100,3,1,0,'PK')
,('DE','PK418D',FALSE,7,FALSE,2004,2010,'Bioprocess Engineering',4,'PK','T',15,25,60,100,3,1,0,'PK')
,('DE','PK418E',FALSE,7,FALSE,2004,2010,'Biochemical Engineering',4,'PK','T',15,25,60,100,3,1,0,'PK')
,('OE','PK419A',FALSE,5,TRUE,2001,NULL,'Econ. & Geopolitics of Hydrocarb.',4,'OE','T',15,25,60,100,3,1,0,'PK')
,('OE','PK419B',FALSE,5,TRUE,2001,NULL,'Risk Assessment in HC Industries',4,'OE','T',15,25,60,100,3,1,0,'PK')
,('OE','PK419C',FALSE,5,TRUE,2001,NULL,'Drilling Engineering',4,'OE','T',15,25,60,100,3,1,0,'PK')
,('OE','PK419D',FALSE,5,TRUE,2001,NULL,'Computational Fluid Dynamics',4,'OE','T',15,25,60,100,3,1,0,'PK')
,('OE','PK419E',FALSE,5,TRUE,2001,NULL,'Production & Reservoir Engg.',4,'OE','T',15,25,60,100,3,1,0,'PK')
,('OE','PK419F',FALSE,5,TRUE,2001,NULL,'Project Management',4,'OE','T',15,25,60,100,3,1,0,'PK')
,('OE','PK421',FALSE,5,TRUE,2001,NULL,'Corrosion & its Con. in HC Pro. Ind.',4,'OE','T',15,25,60,100,3,1,0,'PK')
,('DC','PK421N',TRUE,8,FALSE,2004,2010,'Plant Safety & Pollution Control',4,'PK','T',15,25,60,100,3,1,0,'PK')
,('DC','PK422N',TRUE,8,TRUE,2004,NULL,'Process Utilit. & Energy Manag.',4,'PK','T',15,25,60,100,3,1,0,'PK')
,('DE','PK427A',FALSE,8,FALSE,2004,2010,'Industrial Instrumentation',4,'PK','T',15,25,60,100,3,1,0,'PK')
,('DE','PK427B',FALSE,8,FALSE,2004,2010,'Process Integration',4,'PK','T',15,25,60,100,3,1,0,'PK')
,('DE','PK427C',FALSE,8,FALSE,2004,2010,'Corrosion & Its Control in Pet. Ind.',4,'PK','T',15,25,60,100,3,1,0,'PK')
,('DE','PK427D',FALSE,8,FALSE,2004,2010,'Plastic Waste Management',4,'PK','T',15,25,60,100,3,1,0,'PK')
,('OE','PK428A',FALSE,5,TRUE,2001,NULL,'Process Modeling & Simulation',4,'OE','T',15,25,60,100,3,1,0,'PK')
,('OE','PK428B',FALSE,5,TRUE,2001,NULL,'Process Optimization',4,'OE','T',15,25,60,100,3,1,0,'PK')
,('OE','PK428C',FALSE,5,TRUE,2001,NULL,'Exploration & Drilling Engg.',4,'OE','T',15,25,60,100,3,1,0,'PK')
,('OE','PK428D',FALSE,5,TRUE,2001,NULL,'Structure Property Relationships',4,'OE','T',15,25,60,100,3,1,0,'PK')
,('OE','PK428E',FALSE,5,TRUE,2001,NULL,'Petroleum Geology & Explor. Tech.',4,'OE','T',15,25,60,100,3,1,0,'PK')
,('OE','PK429',FALSE,5,TRUE,2001,NULL,'Computer Aided Process Control',4,'OE','T',15,25,60,100,3,1,0,'PK')
,('OE','PK430',FALSE,5,TRUE,2001,NULL,'Polymer Processing',4,'OE','T',15,25,60,100,3,1,0,'PK')
,('DC','PK431',TRUE,7,TRUE,2011,NULL,'Plant Design & Economics',4,'PK','T',15,25,60,100,3,1,0,'PK')
,('DC','PK432',TRUE,7,TRUE,2011,NULL,'Petrochemical Technology II',4,'PK','T',15,25,60,100,3,1,0,'PK')
,('DC','PK433',TRUE,7,TRUE,2011,NULL,'Polymer Science And Technology',4,'PK','T',15,25,60,100,3,1,0,'PK')
,('DE','PK441A',FALSE,8,TRUE,2011,NULL,'Process Instrumentation',4,'PK','T',15,25,60,100,3,1,0,'PK')
,('DE','PK441B',FALSE,8,TRUE,2011,NULL,'Piping and Instrumentation',4,'PK','T',15,25,60,100,3,1,0,'PK')
,('DE','PK441C',FALSE,8,TRUE,2011,NULL,'Instrumentation Engineering',4,'PK','T',15,25,60,100,3,1,0,'PK')
,('DE','PK442A',FALSE,8,TRUE,2011,NULL,'Fertilizer Technology',4,'PK','T',15,25,60,100,3,1,0,'PK')
,('DE','PK442B',FALSE,8,TRUE,2011,NULL,'Coal and Gas Conversion Technology',4,'PK','T',15,25,60,100,3,1,0,'PK')
,('DE','PK442C',FALSE,8,TRUE,2011,NULL,'Select. Topics in Refining and Petrochemicals',4,'PK','T',15,25,60,100,3,1,0,'PK')
,('OE','PK443J',FALSE,5,TRUE,2011,NULL,'Polymer Structure Property Relationship',4,'OE','T',15,25,60,100,3,1,0,'PK')
,('OE','PK443L',FALSE,5,TRUE,2011,NULL,'Industrial Instrumentation',4,'OE','T',15,25,60,100,3,1,0,'PK')
,('OE','PK443P',FALSE,5,TRUE,2001,NULL,'Process Design and Integration',4,'OE','T',15,25,60,100,3,1,0,'PK')
,('DC','PK481',TRUE,7,TRUE,2011,NULL,'Seminar',2,'PK','P',60,NULL,40,100,0,1,2,'PK')
,('DC','PK490',TRUE,8,FALSE,2001,2010,'Project',6,'PK','P',60,NULL,40,100,0,1,2,'PK')
,('DC','PK490A',TRUE,7,FALSE,2001,2010,'Project',3,'PK','P',60,NULL,40,100,0,1,2,'PK')
,('DC','PK490B',TRUE,8,FALSE,2001,2010,'Project',3,'PK','P',60,NULL,40,100,0,1,2,'PK')
,('DC','PK491',TRUE,7,FALSE,2004,2010,'Lit. Surv., Rep. Writing & Seminar',1.5,'PK','P',60,NULL,40,100,0,1,2,'PK')
,('DC','PK492',TRUE,8,FALSE,2004,2010,'Proc. Cont. & Reaction Engg. Lab',1.5,'PK','P',60,NULL,40,100,0,1,2,'PK')
,('DC','PK493A',TRUE,7,TRUE,2011,NULL,'Project Phase-I',4,'PK','P',60,NULL,40,100,0,4,0,'PK')
,('DC','PK493B',TRUE,8,TRUE,2011,NULL,'Project Phase-II',4,'PK','P',60,NULL,40,100,0,4,0,'PK')
,('DC','PK494',TRUE,8,TRUE,2011,NULL,'Instr. And Process Control Lab.',2,'PK','P',60,NULL,40,100,0,1,2,'PK')
,('DC','PK495',TRUE,8,TRUE,2011,NULL,'Polymer Laboratory',2,'PK','P',60,NULL,40,100,0,1,2,'PK');
|
-- game activity
select
pl.name player_name,
pl.web_path player_web_path,
g.name game_name,
g.web_path game_web_path,
dt.distinct_teams distinct_teams,
t.name team_name,
t.WEB_PATH team_web_path,
g.time_position,
g.TIME_UNIT_INDEX,
gpt.name participation_type,
gat.name activity_type,
pxg.ranking ranking,
gt.name game_type_name,
gt.WEB_PATH game_type_web_path,
gst.name game_stake_type_name,
gst.WEB_PATH game_stake_type_web_path,
GROUP_CONCAT(distinct
CONCAT_WS(
'|',
r.name,
r.web_path,
r.is_positive
)
order by ggxr.DISPLAY_ORDER
) rewards,
GROUP_CONCAT(distinct
CONCAT_WS(
'|',
r2.name,
r2.web_path,
r2.is_positive
)
order by gxr.DISPLAY_ORDER
) game_rewards
,GROUP_CONCAT(distinct
CONCAT_WS(
'|',
x.name,
x.web_path
)
order by x.DISPLAY_ORDER
) game_tags
from GS_PARTICIPANT_X_GAME pxg
left outer join GS_PARTICIPANT_GAME_X_REWARD ggxr on ggxr.GS_PARTICIPANT_X_GAME_ID = pxg.ID
left outer join GS_REWARD r on ggxr.GS_REWARD_ID = r.ID,
gs_program pr,
gs_player pl,
gs_participant pa,
gs_team t,
gs_game g
left outer join GS_GAME_X_REWARD gxr on gxr.GS_GAME_ID = g.ID
left outer join GS_REWARD r2 on gxr.GS_REWARD_ID = r2.ID
left outer join (
select GS_GAME_ID, DISPLAY_ORDER, gta.NAME, gta.WEB_PATH from GS_GAME_X_TAG gxt, GS_GAME_TAG gta where gxt.GS_GAME_TAG_ID = gta.ID
) x on x.GS_GAME_ID = g.ID,
GS_GAME_PARTICIPATION_TYPE gpt,
GS_GAME_ACTIVITY_TYPE gat,
GS_GAME_STAKE_TYPE gst,
GS_GAME_TYPE gt,
(
select g.id game_id, count(distinct t.name) distinct_teams from gs_team t, gs_game g, GS_PARTICIPANT_X_GAME pxg
where
pxg.gs_team_id = t.id and pxg.gs_game_id = g.id
group by g.id
) dt ,
(
select g.id game_id, count(distinct p.id) distinct_participants from gs_game g, gs_participant p, GS_PARTICIPANT_X_GAME pxg
where
pxg.gs_game_id = g.id and pxg.gs_participant_id = p.id
and pxg.GS_GAME_ACTIVITY_TYPE_ID = 1
group by g.id
) dp
where
pxg.GS_Participant_id = pa.ID and
pxg.GS_GAME_ID = g.ID and
pxg.GS_TEAM_ID = t.ID and
pxg.GS_GAME_PARTICIPATION_TYPE_ID = gpt.ID and
pxg.GS_GAME_ACTIVITY_TYPE_ID = gat.ID and
pa.GS_PROGRAM_ID = pr.ID and
pa.GS_PLAYER_ID = pl.ID and
g.GS_GAME_STAKE_TYPE_ID = gst.ID and
g.GS_GAME_TYPE_ID = gt.ID and
dt.game_id = g.id and
dp.game_id = g.id
-- $whereProgramWebPath
-- $wherePlayerWebPath
-- $whereGameWebPath
group by pxg.ID
order by g.TIME_UNIT_INDEX
;
select g.id game_id, count(distinct t.name) distinct_teams from gs_team t, gs_game g, GS_PARTICIPANT_X_GAME pxg
where
pxg.gs_team_id = t.id and pxg.gs_game_id = g.id
-- and g.WEB_PATH = 'bamboo-2020'
group by g.id
;
select g.id game_id, count(distinct p.id) distinct_participants from gs_game g, gs_participant p, GS_PARTICIPANT_X_GAME pxg
where
pxg.gs_game_id = g.id and pxg.gs_participant_id = p.id
and pxg.GS_GAME_ACTIVITY_TYPE_ID = 1
-- and g.WEB_PATH = 'bamboo-2020'
group by g.id
;
-- distinct_games
select distinct
g.name name,
g.web_path WEB_PATH,
g.TIME_POSITION,
g.TIME_UNIT_INDEX,
g.PROGRAM_INDEX,
gt.name game_type_name,
gt.web_path game_type_web_path,
gst.name game_stake_type_name,
gst.web_path game_stake_type_web_path,
p.name program_name,
p.web_path program_web_path
from gs_game g, gs_participant_x_game pxg, gs_game_type gt, gs_game_stake_type gst, gs_program p, gs_participant pa
where
pxg.GS_GAME_ID = g.ID and
pxg.GS_PARTICIPANT_ID = pa.ID and
pa.GS_PROGRAM_ID = p.ID and
g.GS_GAME_TYPE_ID = gt.id and
g.GS_GAME_STAKE_TYPE_ID = gst.ID
;
-- similar_game_for_other_program
select distinct
g.name name,
g.web_path WEB_PATH,
g.TIME_POSITION,
g.TIME_UNIT_INDEX,
g.PROGRAM_INDEX,
gt.name game_type_name,
gt.web_path game_type_web_path,
gst.name game_stake_type_name,
gst.web_path game_stake_type_web_path,
p.name program_name,
p.web_path program_web_path
from gs_game g, gs_participant_x_game pxg, gs_game_type gt, gs_game_stake_type gst, gs_program p, gs_participant pa
where
pxg.GS_GAME_ID = g.ID and
pxg.GS_PARTICIPANT_ID = pa.ID and
pa.GS_PROGRAM_ID = p.ID and
g.GS_GAME_TYPE_ID = gt.id and
g.GS_GAME_STAKE_TYPE_ID = gst.ID
--
and gt.WEB_PATH = 'poursuite-chargee'
;
|
-- Name: VisualReviewStatusWithCollectionById
-- Schema: posda_files
-- Columns: ['collection', 'site', 'series_instance_uid', 'review_status', 'modality', 'series_description', 'series_date', 'num_equiv_classes', 'num_files']
-- Args: ['visual_review_instance_id', 'review_status']
-- Tags: ['by_collection', 'find_series', 'compare_collection_site', 'search_series', 'edit_files', 'simple_phi', 'dciodvfy', 'ctp_details', 'select_for_phi', 'visual_review_new_workflow']
-- Description: Get Series in A Collection, site with dicom_file_type, modality, and sop_count
--
select
distinct project_name as collection, site_name as site,
series_instance_uid, review_status, modality, series_description,
series_date, count(distinct image_equivalence_class_id) as num_equiv_classes,
count(distinct file_id) as num_files
from
visual_review_instance natural join image_equivalence_class natural join
image_equivalence_class_input_image natural join
file_series natural join ctp_file
where
visual_review_instance_id = ? and review_status = ? and visibility is null
group by collection, site, series_instance_uid, review_status, modality, series_description, series_date;
|
<gh_stars>10-100
-- AC
GRANT SELECT, INSERT, UPDATE ON TABLE
data_donation.api_token,
data_donation.device_token,
data_donation.exposure_risk_metadata,
data_donation.exposure_window,
data_donation.key_submission_metadata_with_client_metadata,
data_donation.key_submission_metadata_with_user_metadata,
data_donation.one_time_password,
data_donation.salt,
data_donation.scan_instance,
data_donation.test_result_metadata,
data_donation.client_metadata,
data_donation.user_metadata,
data_donation.exposure_window_test_result,
data_donation.exposure_windows_at_test_registration,
data_donation.scan_instances_at_test_registration,
data_donation.summarized_exposure_windows_with_user_metadata
TO cwa_ppdd_ppac;
GRANT ALL ON ALL SEQUENCES IN SCHEMA data_donation TO cwa_ppdd_ppac;
GRANT SELECT, INSERT, UPDATE ON TABLE
data_donation.one_time_password
TO cwa_ppdd_edus;
GRANT SELECT, DELETE ON TABLE
data_donation.api_token,
data_donation.device_token,
data_donation.exposure_risk_metadata,
data_donation.exposure_window,
data_donation.key_submission_metadata_with_client_metadata,
data_donation.key_submission_metadata_with_user_metadata,
data_donation.one_time_password,
data_donation.salt,
data_donation.scan_instance,
data_donation.test_result_metadata,
data_donation.client_metadata,
data_donation.user_metadata,
data_donation.exposure_window_test_result,
data_donation.exposure_windows_at_test_registration,
data_donation.scan_instances_at_test_registration,
data_donation.summarized_exposure_windows_with_user_metadata
TO cwa_ppdd_retention;
|
<reponame>jhoaquinsito/portfolio-tracker
-- readable: valuations per account and assets
select a.name, a2.name, v.total_quantity, v.valuation_chf, v.valuation_usd, v.valuation_btc
from valuations v, accounts a, assets a2
where v.account_id = a.id and v.asset_id = a2.id and a.account_type_id != 5;
-- readable: valuations per assets
select a2.name, at2.name , sum(v.total_quantity), sum(v.valuation_chf), sum(v.valuation_usd), sum(v.valuation_btc)
from valuations v, assets a2 , asset_types at2
where v.asset_id = a2.id and a2.asset_type_id = at2.id
group by v.asset_id;
-- readable: valuations per asset type
select at2.name , sum(v.total_quantity), sum(v.valuation_chf), sum(v.valuation_usd), sum(v.valuation_btc)
from valuations v, assets a2 , asset_types at2
where v.asset_id = a2.id and a2.asset_type_id = at2.id
group by at2.id;
-- readable: valuations per account
select a.name, sum(v.total_quantity), sum(v.valuation_chf), sum(v.valuation_usd), sum(v.valuation_btc)
from valuations v, accounts a
where v.account_id = a.id
group by v.account_id ;
-- readable: total size
select sum(v.valuation_chf), sum(v.valuation_usd), sum(v.valuation_btc)
from valuations v
-- run reco global
select booking_type, sum(reco_rate * amount) from bookings b group by booking_type ;
-- reco per transaction, only unsuccessful ones
select transaction_id, round(sum(reco_rate * amount),6) from bookings b group by transaction_id having sum(reco_rate * amount) != 0;
-- to fix the problematic ones
select *, reco_rate*amount from bookings b where transaction_id = 155
-- readable store procedure outcomes
select dp.position_date, a2.name, at2.name, dp.quantity, dp.valuation_btc , dp.valuation_chf , dp.valuation_usd from daily_positions dp, assets a2, asset_types at2 where valuation_btc is not null and a2.asset_type_id = at2.id and dp.asset_id = a2.id
-- SP calls after data updates
CALL daily_positions();
CALL daily_valuations();
|
<filename>prisma/migrations/20210625022857_add_university_id_on_resource_assignment_quiz/migration.sql
/*
Warnings:
- A unique constraint covering the columns `[activityId,universityId]` on the table `Assignment` will be added. If there are existing duplicate values, this will fail.
- A unique constraint covering the columns `[activityId,universityId]` on the table `Quiz` will be added. If there are existing duplicate values, this will fail.
- A unique constraint covering the columns `[activityId,universityId]` on the table `Resource` will be added. If there are existing duplicate values, this will fail.
- Added the required column `universityId` to the `Assignment` table without a default value. This is not possible if the table is not empty.
- Added the required column `universityId` to the `Quiz` table without a default value. This is not possible if the table is not empty.
- Added the required column `universityId` to the `Resource` table without a default value. This is not possible if the table is not empty.
*/
-- AlterTable
ALTER TABLE "Assignment" ADD COLUMN "universityId" TEXT NOT NULL;
-- AlterTable
ALTER TABLE "Quiz" ADD COLUMN "universityId" TEXT NOT NULL;
-- AlterTable
ALTER TABLE "Resource" ADD COLUMN "universityId" TEXT NOT NULL;
-- CreateIndex
CREATE UNIQUE INDEX "Assignment.activityId_universityId_unique" ON "Assignment"("activityId", "universityId");
-- CreateIndex
CREATE UNIQUE INDEX "Quiz.activityId_universityId_unique" ON "Quiz"("activityId", "universityId");
-- CreateIndex
CREATE UNIQUE INDEX "Resource.activityId_universityId_unique" ON "Resource"("activityId", "universityId");
-- AddForeignKey
ALTER TABLE "Resource" ADD FOREIGN KEY ("universityId") REFERENCES "University"("id") ON DELETE CASCADE ON UPDATE CASCADE;
-- AddForeignKey
ALTER TABLE "Assignment" ADD FOREIGN KEY ("universityId") REFERENCES "University"("id") ON DELETE CASCADE ON UPDATE CASCADE;
-- AddForeignKey
ALTER TABLE "Quiz" ADD FOREIGN KEY ("universityId") REFERENCES "University"("id") ON DELETE CASCADE ON UPDATE CASCADE;
|
-- MySQL dump 10.13 Distrib 8.0.12, for osx10.14 (x86_64)
--
-- Host: localhost Database: bookstore
-- ------------------------------------------------------
-- Server version 8.0.12
/*!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 */;
SET NAMES utf8mb4 ;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
--
-- Table structure for table `books`
--
DROP TABLE IF EXISTS `books`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
SET character_set_client = utf8mb4 ;
CREATE TABLE `books` (
`id` varchar(100) NOT NULL,
`name` varchar(100) DEFAULT NULL,
`author` varchar(100) DEFAULT NULL,
`price` float(8,2) DEFAULT NULL,
`path` varchar(100) DEFAULT NULL,
`filename` varchar(100) DEFAULT NULL,
`des` varchar(255) DEFAULT NULL,
`categoryId` varchar(100) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `books`
--
LOCK TABLES `books` WRITE;
/*!40000 ALTER TABLE `books` DISABLE KEYS */;
INSERT INTO `books` VALUES ('15fcd4da-9ad5-491c-abac-ad828270935f','O\'Reilly精品图书系列:JavaScript权威指南(第6版)','弗兰纳根(<NAME>)',108.00,'2018-12-19','e4d0e6c2-16b0-4302-879b-5c207a0642e3.jpg','asdf','2'),('34c9e47e-6c5a-4af4-8293-475045ad1c15','O\'Reilly精品图书系列:JavaScript权威指南(第6版)','弗兰纳根(<NAME>anagan)',108.00,'2018-12-19','dccbb32e-cf0d-40ed-b2a1-6a85f5ef0fd5.jpg','《O\'Reilly精品图书系列:JavaScript权威指南(第6版)》讲述的内容涵盖JavaScript语言本身,以及Web浏览器所实现的JavaScriptAPI。','2');
/*!40000 ALTER TABLE `books` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `categorys`
--
DROP TABLE IF EXISTS `categorys`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
SET character_set_client = utf8mb4 ;
CREATE TABLE `categorys` (
`id` varchar(100) NOT NULL,
`name` varchar(100) NOT NULL,
`des` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `name` (`name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `categorys`
--
LOCK TABLES `categorys` WRITE;
/*!40000 ALTER TABLE `categorys` DISABLE KEYS */;
INSERT INTO `categorys` VALUES ('2','计算机技术','计算机技术'),('6206193e-c052-454c-a987-9e43dfe28c61','科普','科普分类');
/*!40000 ALTER TABLE `categorys` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `customers`
--
DROP TABLE IF EXISTS `customers`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
SET character_set_client = utf8mb4 ;
CREATE TABLE `customers` (
`id` varchar(100) NOT NULL,
`username` varchar(100) NOT NULL,
`password` varchar(100) NOT NULL,
`phone` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '',
`address` varchar(255) NOT NULL,
`email` varchar(20) NOT NULL,
`code` varchar(200) DEFAULT NULL,
`actived` bit(1) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `username` (`username`),
UNIQUE KEY `photo` (`phone`),
UNIQUE KEY `email` (`email`),
UNIQUE KEY `code` (`code`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `customers`
--
LOCK TABLES `customers` WRITE;
/*!40000 ALTER TABLE `customers` DISABLE KEYS */;
INSERT INTO `customers` VALUES ('10f38186-b0f9-4872-b7a0-ef9e6ab48daf','ymqy','123','18012341234','留和路','<EMAIL>','317f1f05-749b-4f5e-9d74-9549c34f4971',_binary '');
/*!40000 ALTER TABLE `customers` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `functions`
--
DROP TABLE IF EXISTS `functions`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
SET character_set_client = utf8mb4 ;
CREATE TABLE `functions` (
`id` varchar(100) NOT NULL,
`name` varchar(100) NOT NULL,
`uri` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `name` (`name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `functions`
--
LOCK TABLES `functions` WRITE;
/*!40000 ALTER TABLE `functions` DISABLE KEYS */;
INSERT INTO `functions` VALUES ('1','主页','/BookStore/manage/index.jsp'),('2','消息','/BookStore/manage/message.jsp'),('3','添加分类','/BookStore/manage/addCategory.jsp'),('4','查询分类','/BookStore/servlet/ManageServlet?op=listCategories'),('5','添加书籍','/BookStore/servlet/ManageServlet?op=addBookUI'),('6','查询书籍','/BookStore/servlet/ManageServlet?op=listBooks');
/*!40000 ALTER TABLE `functions` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `orderitems`
--
DROP TABLE IF EXISTS `orderitems`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
SET character_set_client = utf8mb4 ;
CREATE TABLE `orderitems` (
`id` varchar(100) NOT NULL,
`number` int(11) DEFAULT NULL,
`price` float(8,2) DEFAULT NULL,
`ordernum` varchar(100) DEFAULT NULL,
`bookid` varchar(100) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `orderitems`
--
LOCK TABLES `orderitems` WRITE;
/*!40000 ALTER TABLE `orderitems` DISABLE KEYS */;
INSERT INTO `orderitems` VALUES ('9d3ccb1c-ea24-4022-8055-ccfdef96704a',1,68.70,'2018121800000000003','1'),('a7cb3ec2-579c-412f-9237-9272be083707',10,687.00,'2018121900000000001','1'),('aff09b7e-086c-4299-b5e1-5de1ed08f86c',1,68.70,'2018121800000000004','1'),('c1261dab-bdda-4eee-98c9-870041342760',1,68.70,'2018121800000000005','1'),('e6181a59-5d74-4fa6-8a97-af3d5c13043f',1,108.00,'2018121900000000002','15fcd4da-9ad5-491c-abac-ad828270935f'),('e848e5d3-8054-48e3-b11b-5ee3f91507eb',1,68.70,'2018121800000000001','1'),('e9ae6180-da15-4665-b819-8232d2c1818c',1,68.70,'2018121800000000006','1'),('f40aec8f-af01-41c2-b302-286ab6e57f02',1,68.70,'2018121800000000002','1');
/*!40000 ALTER TABLE `orderitems` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `ordernum`
--
DROP TABLE IF EXISTS `ordernum`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
SET character_set_client = utf8mb4 ;
CREATE TABLE `ordernum` (
`prefix` date DEFAULT NULL,
`num` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `ordernum`
--
LOCK TABLES `ordernum` WRITE;
/*!40000 ALTER TABLE `ordernum` DISABLE KEYS */;
INSERT INTO `ordernum` VALUES ('2018-12-18',6),('2018-12-19',2);
/*!40000 ALTER TABLE `ordernum` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `orders`
--
DROP TABLE IF EXISTS `orders`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
SET character_set_client = utf8mb4 ;
CREATE TABLE `orders` (
`ordernum` varchar(100) NOT NULL,
`price` float(8,2) DEFAULT NULL,
`number` int(11) DEFAULT NULL,
`status` int(11) DEFAULT NULL,
`customerId` varchar(100) DEFAULT NULL,
PRIMARY KEY (`ordernum`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `orders`
--
LOCK TABLES `orders` WRITE;
/*!40000 ALTER TABLE `orders` DISABLE KEYS */;
INSERT INTO `orders` VALUES ('2018121800000000001',68.70,1,0,'10f38186-b0f9-4872-b7a0-ef9e6ab48daf'),('2018121800000000002',68.70,1,0,'10f38186-b0f9-4872-b7a0-ef9e6ab48daf'),('2018121800000000003',68.70,1,0,'10f38186-b0f9-4872-b7a0-ef9e6ab48daf'),('2018121800000000004',68.70,1,0,'10f38186-b0f9-4872-b7a0-ef9e6ab48daf'),('2018121800000000005',68.70,1,0,'10f38186-b0f9-4872-b7a0-ef9e6ab48daf'),('2018121800000000006',68.70,1,0,'10f38186-b0f9-4872-b7a0-ef9e6ab48daf'),('2018121900000000001',687.00,10,0,'10f38186-b0f9-4872-b7a0-ef9e6ab48daf'),('2018121900000000002',108.00,1,0,'10f38186-b0f9-4872-b7a0-ef9e6ab48daf');
/*!40000 ALTER TABLE `orders` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `role_function`
--
DROP TABLE IF EXISTS `role_function`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
SET character_set_client = utf8mb4 ;
CREATE TABLE `role_function` (
`r_id` varchar(100) NOT NULL,
`f_id` varchar(100) NOT NULL,
PRIMARY KEY (`r_id`,`f_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `role_function`
--
LOCK TABLES `role_function` WRITE;
/*!40000 ALTER TABLE `role_function` DISABLE KEYS */;
INSERT INTO `role_function` VALUES ('1','1'),('1','2'),('1','3'),('1','4'),('1','5'),('1','6'),('2','1'),('2','2'),('2','5'),('2','6');
/*!40000 ALTER TABLE `role_function` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `roles`
--
DROP TABLE IF EXISTS `roles`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
SET character_set_client = utf8mb4 ;
CREATE TABLE `roles` (
`id` varchar(100) NOT NULL,
`name` varchar(100) NOT NULL,
`des` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `name` (`name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `roles`
--
LOCK TABLES `roles` WRITE;
/*!40000 ALTER TABLE `roles` DISABLE KEYS */;
INSERT INTO `roles` VALUES ('1','超级管理员','可以访问任何页面'),('2','普通管理员','书籍部分');
/*!40000 ALTER TABLE `roles` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `user_role`
--
DROP TABLE IF EXISTS `user_role`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
SET character_set_client = utf8mb4 ;
CREATE TABLE `user_role` (
`u_id` varchar(100) NOT NULL,
`r_id` varchar(100) NOT NULL,
PRIMARY KEY (`u_id`,`r_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `user_role`
--
LOCK TABLES `user_role` WRITE;
/*!40000 ALTER TABLE `user_role` DISABLE KEYS */;
INSERT INTO `user_role` VALUES ('1','1'),('2','2');
/*!40000 ALTER TABLE `user_role` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `users`
--
DROP TABLE IF EXISTS `users`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
SET character_set_client = utf8mb4 ;
CREATE TABLE `users` (
`id` varchar(100) NOT NULL,
`username` varchar(100) NOT NULL,
`password` varchar(100) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `username` (`username`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `users`
--
LOCK TABLES `users` WRITE;
/*!40000 ALTER TABLE `users` DISABLE KEYS */;
INSERT INTO `users` VALUES ('1','admin','123'),('2','aa','123');
/*!40000 ALTER TABLE `users` ENABLE KEYS */;
UNLOCK TABLES;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-- Dump completed on 2018-12-24 14:09:57
|
CREATE DATABASE IF NOT EXISTS `hotel_das_dianas` /*!40100 DEFAULT CHARACTER SET utf8 */;
USE `hotel_das_dianas`;
-- MySQL dump 10.17 Distrib 10.3.15-MariaDB, for Win64 (AMD64)
--
-- Host: 127.0.0.1 Database: hotel_das_dianas
-- ------------------------------------------------------
-- Server version 10.3.15-MariaDB
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
--
-- Table structure for table `quartos`
--
DROP TABLE IF EXISTS `quartos`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `quartos` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`quarto` varchar(45) NOT NULL COMMENT '0 = quarto de luxo\n1 = mega quarto\n2 = quarto de solteiro\n3 = casal duplo',
`numero_do_quarto` int(11) NOT NULL,
`id_reserva` int(11) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `numero_do_quarto_UNIQUE` (`numero_do_quarto`),
UNIQUE KEY `id_reserva_UNIQUE` (`id_reserva`),
CONSTRAINT `id_reserva` FOREIGN KEY (`id_reserva`) REFERENCES `reservas` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB AUTO_INCREMENT=16 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `quartos`
--
LOCK TABLES `quartos` WRITE;
/*!40000 ALTER TABLE `quartos` DISABLE KEYS */;
INSERT INTO `quartos` VALUES (1,'Quarto Luxo',100,NULL),(2,'Quarto Luxo',101,NULL),(3,'Quarto Luxo',102,NULL),(4,'Quarto Luxo',103,NULL),(5,'Mega Quarto',104,NULL),(6,'Mega Quarto',105,NULL),(7,'Mega Quarto',106,NULL),(8,'Mega Quarto',107,NULL),(9,'Casal Duplo',108,NULL),(10,'Casal Duplo',109,NULL),(11,'Casal Duplo',110,NULL),(12,'Quarto Solteiro',111,NULL),(13,'Quarto Solteiro',112,NULL),(14,'Quarto Solteiro',113,NULL),(15,'Quarto Solteiro',114,NULL);
/*!40000 ALTER TABLE `quartos` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `reservas`
--
DROP TABLE IF EXISTS `reservas`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `reservas` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`preco_diaria` decimal(10,2) NOT NULL,
`preco_total` decimal(10,2) NOT NULL,
`entrada_data` date NOT NULL,
`saida_data` date NOT NULL,
`de_onde_vem` varchar(60) NOT NULL,
`pra_onde_vai` varchar(60) NOT NULL,
`status` int(11) NOT NULL DEFAULT 1 COMMENT '1 = ativo\n0 = inativo',
`id_usuario` int(11) NOT NULL,
PRIMARY KEY (`id`),
KEY `id_usuario_idx` (`id_usuario`),
CONSTRAINT `id_usuario_reserva` FOREIGN KEY (`id_usuario`) REFERENCES `usuario` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `reservas`
--
LOCK TABLES `reservas` WRITE;
/*!40000 ALTER TABLE `reservas` DISABLE KEYS */;
/*!40000 ALTER TABLE `reservas` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `usuario`
--
DROP TABLE IF EXISTS `usuario`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `usuario` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`email` varchar(65) NOT NULL,
`senha` varchar(105) NOT NULL,
`nome_completo` varchar(105) NOT NULL,
`telefone` varchar(13) NOT NULL,
`status` int(11) NOT NULL DEFAULT 1 COMMENT '1 = Ativo\n0 = Inativo',
PRIMARY KEY (`id`),
UNIQUE KEY `email_UNIQUE` (`email`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `usuario`
--
LOCK TABLES `usuario` WRITE;
/*!40000 ALTER TABLE `usuario` DISABLE KEYS */;
INSERT INTO `usuario` VALUES (1,'<EMAIL>','$2y$10$vesr1x3AcVmEVRWD8Mirre.CAFz03lH2NPIbotw/Gtnxhhg.ZLH2G','qweqweqwe','123123123132',1);
/*!40000 ALTER TABLE `usuario` 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-06-25 15:12:43
|
-- phpMyAdmin SQL Dump
-- version 4.8.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Aug 27, 2018 at 11:24 PM
-- Server version: 10.1.33-MariaDB
-- PHP Version: 7.1.18
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: `shop`
--
-- --------------------------------------------------------
--
-- Table structure for table `manufacture`
--
CREATE TABLE `manufacture` (
`manufacture_id` int(10) UNSIGNED NOT NULL,
`manufacture_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`manufacture_description` text COLLATE utf8mb4_unicode_ci NOT NULL,
`publication_status` tinyint(4) NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `manufacture`
--
INSERT INTO `manufacture` (`manufacture_id`, `manufacture_name`, `manufacture_description`, `publication_status`, `created_at`, `updated_at`) VALUES
(1, 'Yellows', 'This is Yellows Brand', 1, NULL, NULL),
(3, 'Zara', 'This is Zara Brand', 1, NULL, NULL),
(4, 'Otobi', 'This is Otobi Brand', 1, NULL, NULL),
(5, 'Addidas', 'This is Addidas brand', 1, NULL, NULL),
(6, 'Samsung', 'This is Samsung Brand', 1, NULL, NULL);
-- --------------------------------------------------------
--
-- Table structure for table `migrations`
--
CREATE TABLE `migrations` (
`id` int(10) UNSIGNED NOT NULL,
`migration` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`batch` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `migrations`
--
INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES
(1, '2018_08_15_085348_create_tbl_admin_table', 1),
(2, '2018_08_15_192952_create_tbl_category_table', 2),
(3, '2018_08_17_121715_create_manufacture_table', 3),
(4, '2018_08_17_201341_create_products_table', 4),
(5, '2018_08_24_084613_create_tbl_slider_table', 5),
(6, '2018_08_26_172000_create_tbl_customer_table', 6),
(7, '2018_08_26_185857_create_tbl_shipping_table', 7),
(8, '2018_08_27_112225_create_tbl_payment_table', 8),
(9, '2018_08_27_112627_create_tbl_order_table', 8),
(10, '2018_08_27_112657_create_tbl_order_details_table', 8);
-- --------------------------------------------------------
--
-- Table structure for table `tbl_admin`
--
CREATE TABLE `tbl_admin` (
`admin_id` int(10) UNSIGNED NOT NULL,
`admin_email` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`admin_password` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`admin_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`admin_phone` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `tbl_admin`
--
INSERT INTO `tbl_admin` (`admin_id`, `admin_email`, `admin_password`, `admin_name`, `admin_phone`, `created_at`, `updated_at`) VALUES
(1, '<EMAIL>', '<PASSWORD>', 'amin<PASSWORD>', '01687938424', '2018-08-14 18:00:00', '2018-08-14 18:00:00');
-- --------------------------------------------------------
--
-- Table structure for table `tbl_category`
--
CREATE TABLE `tbl_category` (
`category_id` int(10) UNSIGNED NOT NULL,
`category_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`category_description` text COLLATE utf8mb4_unicode_ci NOT NULL,
`publication_status` tinyint(4) DEFAULT '0',
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `tbl_category`
--
INSERT INTO `tbl_category` (`category_id`, `category_name`, `category_description`, `publication_status`, `created_at`, `updated_at`) VALUES
(1, 'Men', 'This is Men Category', 1, NULL, NULL),
(2, 'Women', 'This is Women Category', 1, NULL, NULL),
(3, 'Boy', 'This is Boy Category', 1, NULL, NULL),
(4, 'Girl', 'This is Girl Category', 1, NULL, NULL),
(5, 'Child', 'This is child Category', 1, NULL, NULL),
(6, 'Sports', 'This is Sports category', 1, NULL, NULL),
(7, 'Laptops', 'This is Laptop category', 1, NULL, NULL),
(8, 'Cloths', 'This is Cloth category', 1, NULL, NULL);
-- --------------------------------------------------------
--
-- Table structure for table `tbl_customer`
--
CREATE TABLE `tbl_customer` (
`customer_id` int(10) UNSIGNED NOT NULL,
`customer_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`customer_email` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`password` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`mobile_number` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `tbl_customer`
--
INSERT INTO `tbl_customer` (`customer_id`, `customer_name`, `customer_email`, `password`, `mobile_number`, `created_at`, `updated_at`) VALUES
(3, 'sumon', '<EMAIL>', '<PASSWORD>', '01687938424', NULL, NULL);
-- --------------------------------------------------------
--
-- Table structure for table `tbl_order`
--
CREATE TABLE `tbl_order` (
`order_id` int(10) UNSIGNED NOT NULL,
`customer_id` int(11) NOT NULL,
`shipping_id` int(11) NOT NULL,
`payment_id` int(11) NOT NULL,
`order_total` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`order_status` varchar(20) COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `tbl_order`
--
INSERT INTO `tbl_order` (`order_id`, `customer_id`, `shipping_id`, `payment_id`, `order_total`, `order_status`, `created_at`, `updated_at`) VALUES
(11, 3, 8, 12, '2,000.00', 'shipped', '2018-08-27 20:53:34', NULL);
-- --------------------------------------------------------
--
-- Table structure for table `tbl_order_details`
--
CREATE TABLE `tbl_order_details` (
`order_details_id` int(10) UNSIGNED NOT NULL,
`order_id` int(11) NOT NULL,
`product_id` int(11) NOT NULL,
`product_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`product_price` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`product_sales_quantity` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `tbl_order_details`
--
INSERT INTO `tbl_order_details` (`order_details_id`, `order_id`, `product_id`, `product_name`, `product_price`, `product_sales_quantity`, `created_at`, `updated_at`) VALUES
(15, 11, 8, 'sports track shuit', '2000', '1', NULL, NULL);
-- --------------------------------------------------------
--
-- Table structure for table `tbl_payment`
--
CREATE TABLE `tbl_payment` (
`payment_id` int(10) UNSIGNED NOT NULL,
`payment_method` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`payment_status` varchar(20) COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `tbl_payment`
--
INSERT INTO `tbl_payment` (`payment_id`, `payment_method`, `payment_status`, `created_at`, `updated_at`) VALUES
(12, 'handcash', 'pending', '2018-08-27 20:53:33', NULL);
-- --------------------------------------------------------
--
-- Table structure for table `tbl_products`
--
CREATE TABLE `tbl_products` (
`product_id` int(10) UNSIGNED NOT NULL,
`category_id` int(11) NOT NULL,
`manufacture_id` int(11) NOT NULL,
`product_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`product_short_description` text COLLATE utf8mb4_unicode_ci NOT NULL,
`product_long_description` text COLLATE utf8mb4_unicode_ci NOT NULL,
`product_price` double NOT NULL,
`product_image` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`product_size` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`product_color` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`publication_status` tinyint(4) NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `tbl_products`
--
INSERT INTO `tbl_products` (`product_id`, `category_id`, `manufacture_id`, `product_name`, `product_short_description`, `product_long_description`, `product_price`, `product_image`, `product_size`, `product_color`, `publication_status`, `created_at`, `updated_at`) VALUES
(2, 3, 5, 'Yellow T-shirt', 'This is Yellow T-Shirt', 'Yellow is a famous brand in Bangladesh. yellow t-shirt wear to nice. we have small medium large and extra-large size is here . stock is limited please buy now', 2000, 'image/kDK8G1efuhkGULBzCAvJ.jpg', 'small Medium large', 'Yellow', 1, NULL, NULL),
(3, 1, 3, 'Easy Polo Black Edition', 'this is easy polo shirt', 'its nice', 200, 'image/QwHeTOX1ThHVtvYlnYCg.jpg', 'small Medium large', 'blue', 1, NULL, NULL),
(4, 2, 3, 'Women Polo Shirt', 'This is Women polo shirt', 'polo shirt is nice to fit for women', 300, 'image/LFEdYiWWbUVqmSbw4HXj.jpg', 'small Medium large', 'balck , blue , red', 1, NULL, NULL),
(5, 3, 3, 'Boys Jeans', 'this is zara brand jeans', 'nice to feet for boys', 1000, 'image/Q7GeE25FY8RY1Xv9on5q.jpg', 'small , medium , large', 'black', 1, NULL, NULL),
(6, 4, 5, 'Girls Addidas shirt', 'this is nice girls t-shirt', 'this shirt wear to women fit', 1000, 'image/TGJNubzlY8vZ2q8cpDGY.jpg', 'small Medium large', 'black', 1, NULL, NULL),
(7, 5, 3, 'Child Frog', 'this is child frog', 'this frog wear to child fit and comfortable ', 5000, 'image/nyN7Ntlbr4vu9oFoVI84.jpg', 'small Medium large', 'white', 1, NULL, NULL),
(8, 6, 5, 'sports track shuit', 'this is addidas track shuit', 'anyone can wear it', 2000, 'image/LIrf6xODp87T8Pr9uZIu.jpg', 'small Medium large', 'Red', 1, NULL, NULL),
(9, 7, 6, 'Samsung laptop', 'samsung cool laptops', 'nice laptops', 4000, 'image/0PhyJvYygRzqDPJYJ4BX.jpg', '13inch', 'black', 1, NULL, NULL),
(10, 8, 1, 'yellow jeans', 'this is nice yellow jeans', 'wear to fit anyone', 4000, 'image/XZEuQGNIXZkeRHdytWJJ.jpg', 'small Medium large', 'black', 1, NULL, NULL),
(11, 7, 6, 'core i9 laptops samsung', 'nice laptops', 'many feature is here', 5000, 'image/utAVV0wQuyocz7loUaxs.jpg', '13inch', 'Silver', 1, NULL, NULL);
-- --------------------------------------------------------
--
-- Table structure for table `tbl_shipping`
--
CREATE TABLE `tbl_shipping` (
`shipping_id` int(10) UNSIGNED NOT NULL,
`shipping_email` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`shipping_first_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`shipping_last_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`shipping_address` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`shipping_mobile` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`shipping_city` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `tbl_shipping`
--
INSERT INTO `tbl_shipping` (`shipping_id`, `shipping_email`, `shipping_first_name`, `shipping_last_name`, `shipping_address`, `shipping_mobile`, `shipping_city`, `created_at`, `updated_at`) VALUES
(8, '<EMAIL>', 'aminur', 'rashid', '113/c 3/a/1', '01772119941', 'dhaka', NULL, NULL);
-- --------------------------------------------------------
--
-- Table structure for table `tbl_slider`
--
CREATE TABLE `tbl_slider` (
`slider_id` int(10) UNSIGNED NOT NULL,
`slider_image` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`publication_status` tinyint(4) NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `tbl_slider`
--
INSERT INTO `tbl_slider` (`slider_id`, `slider_image`, `publication_status`, `created_at`, `updated_at`) VALUES
(3, 'simage/QXEUtxQKyD7IEwv1e1LJ.jpg', 1, NULL, NULL),
(5, 'simage/VvGabJYAJlImOHQN5gLM.jpg', 1, NULL, NULL),
(6, 'simage/u6DgnQXmGuV9f0A1cWki.jpg', 1, NULL, NULL);
--
-- Indexes for dumped tables
--
--
-- Indexes for table `manufacture`
--
ALTER TABLE `manufacture`
ADD PRIMARY KEY (`manufacture_id`);
--
-- Indexes for table `migrations`
--
ALTER TABLE `migrations`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `tbl_admin`
--
ALTER TABLE `tbl_admin`
ADD PRIMARY KEY (`admin_id`);
--
-- Indexes for table `tbl_category`
--
ALTER TABLE `tbl_category`
ADD PRIMARY KEY (`category_id`);
--
-- Indexes for table `tbl_customer`
--
ALTER TABLE `tbl_customer`
ADD PRIMARY KEY (`customer_id`);
--
-- Indexes for table `tbl_order`
--
ALTER TABLE `tbl_order`
ADD PRIMARY KEY (`order_id`);
--
-- Indexes for table `tbl_order_details`
--
ALTER TABLE `tbl_order_details`
ADD PRIMARY KEY (`order_details_id`);
--
-- Indexes for table `tbl_payment`
--
ALTER TABLE `tbl_payment`
ADD PRIMARY KEY (`payment_id`);
--
-- Indexes for table `tbl_products`
--
ALTER TABLE `tbl_products`
ADD PRIMARY KEY (`product_id`);
--
-- Indexes for table `tbl_shipping`
--
ALTER TABLE `tbl_shipping`
ADD PRIMARY KEY (`shipping_id`);
--
-- Indexes for table `tbl_slider`
--
ALTER TABLE `tbl_slider`
ADD PRIMARY KEY (`slider_id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `manufacture`
--
ALTER TABLE `manufacture`
MODIFY `manufacture_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;
--
-- AUTO_INCREMENT for table `migrations`
--
ALTER TABLE `migrations`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;
--
-- AUTO_INCREMENT for table `tbl_admin`
--
ALTER TABLE `tbl_admin`
MODIFY `admin_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `tbl_category`
--
ALTER TABLE `tbl_category`
MODIFY `category_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;
--
-- AUTO_INCREMENT for table `tbl_customer`
--
ALTER TABLE `tbl_customer`
MODIFY `customer_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `tbl_order`
--
ALTER TABLE `tbl_order`
MODIFY `order_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=12;
--
-- AUTO_INCREMENT for table `tbl_order_details`
--
ALTER TABLE `tbl_order_details`
MODIFY `order_details_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=16;
--
-- AUTO_INCREMENT for table `tbl_payment`
--
ALTER TABLE `tbl_payment`
MODIFY `payment_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13;
--
-- AUTO_INCREMENT for table `tbl_products`
--
ALTER TABLE `tbl_products`
MODIFY `product_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=12;
--
-- AUTO_INCREMENT for table `tbl_shipping`
--
ALTER TABLE `tbl_shipping`
MODIFY `shipping_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;
--
-- AUTO_INCREMENT for table `tbl_slider`
--
ALTER TABLE `tbl_slider`
MODIFY `slider_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;
COMMIT;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
<filename>sql/comment/delete.sql
DELETE FROM IB01_INDEX_COMMENT
WHERE ENTITY_ID = :entity_id;
|
<reponame>edigonzales/oereb-db-data
CREATE OR REPLACE VIEW live.vw_egrid_search AS
SELECT
t_id AS id,
egris_egrid AS egrid,
egris_egrid AS displaytext,
LOWER(egris_egrid) AS searchtext
FROM
live.dm01vch24lv95dliegenschaften_grundstueck
UNION ALL
SELECT
grundstueck.t_id,
grundstueck.egris_egrid AS egrid,
CASE
WHEN grundbuchkreis.aname = gemeindegrenze.aname THEN 'GB-Nr. '||grundstueck.nummer||' '||grundbuchkreis.aname
ELSE 'GB-Nr. '||grundstueck.nummer||' '||grundbuchkreis.aname||' ('||gemeindegrenze.aname||')'
END AS displaytext,
CASE
WHEN grundbuchkreis.aname = gemeindegrenze.aname THEN 'gb nr '||LOWER(grundstueck.nummer)||' '||LOWER(grundbuchkreis.aname)
ELSE 'gb nr '||LOWER(grundstueck.nummer)||' '||LOWER(grundbuchkreis.aname)||' ('||LOWER(gemeindegrenze.aname)||')'
END AS searchtext
FROM
live.dm01vch24lv95dliegenschaften_grundstueck AS grundstueck
RIGHT JOIN live.dm01vch24lv95dliegenschaften_liegenschaft AS liegenschaft
ON liegenschaft.liegenschaft_von = grundstueck.t_id
LEFT JOIN
(
SELECT
gemeinde.aname,
ST_Multi(ST_Union(gemgrenze.geometrie)) AS geometrie
FROM
live.dm01vch24lv95dgemeindegrenzen_gemeinde AS gemeinde
LEFT JOIN live.dm01vch24lv95dgemeindegrenzen_gemeindegrenze AS gemgrenze
ON gemeinde.t_id = gemgrenze.gemeindegrenze_von
GROUP BY
gemeinde.aname
) AS gemeindegrenze
ON ST_Intersects(ST_PointOnSurface(liegenschaft.geometrie), gemeindegrenze.geometrie)
LEFT JOIN live.so_g_v_0180822grundbuchkreise_grundbuchkreis AS grundbuchkreis
ON ST_Intersects(ST_PointOnSurface(liegenschaft.geometrie), grundbuchkreis.perimeter)
;
ALTER TABLE live.vw_egrid_search OWNER TO admin;
GRANT ALL ON TABLE live.vw_egrid_search TO admin;
GRANT SELECT ON TABLE live.vw_egrid_search TO public;
GRANT SELECT ON TABLE live.vw_egrid_search TO ogc_server;
|
<reponame>rezaararsy/tes_nindya_karya
-- phpMyAdmin SQL Dump
-- version 4.8.2
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Waktu pembuatan: 24 Okt 2020 pada 05.08
-- Versi server: 10.1.34-MariaDB
-- Versi PHP: 5.6.37
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: `nindya`
--
-- --------------------------------------------------------
--
-- Struktur dari tabel `tbl_barang`
--
CREATE TABLE `tbl_barang` (
`id` int(11) NOT NULL,
`nm_brg` varchar(100) NOT NULL,
`jml` int(11) NOT NULL,
`merek` varchar(100) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data untuk tabel `tbl_barang`
--
INSERT INTO `tbl_barang` (`id`, `nm_brg`, `jml`, `merek`) VALUES
(1, 'PC 1', 100, 'Asus'),
(2, 'PC 2', 200, 'Acer'),
(3, 'HP', 22, 'LG');
--
-- Indexes for dumped tables
--
--
-- Indeks untuk tabel `tbl_barang`
--
ALTER TABLE `tbl_barang`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT untuk tabel yang dibuang
--
--
-- AUTO_INCREMENT untuk tabel `tbl_barang`
--
ALTER TABLE `tbl_barang`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
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>Lista 2/Atividade 3 -TABLES.sql
use db_farmacia_do_bem;
create table tb_categoria(
id int not null AUTO_INCREMENT,
nome_cat varchar(50) not null,
responsavel varchar(50) not null,
PRIMARY KEY(id));
create table tb_produto(
id int not null auto_increment,
nome varchar(50) not null,
marca varchar(50) not null,
valor double not null,
qtd int not null,
id_cat int not null,
PRIMARY KEY(id),
FOREIGN KEY (id_cat) REFERENCES tb_categoria(id));
|
-- Generated by Ora2Pg, the Oracle database Schema converter, version 17.4
-- Copyright 2000-2016 <NAME>. All rights reserved.
-- DATASOURCE: dbi:Oracle:host=sgd-nex2-db.stanford.edu;sid=SGD
SET client_encoding TO 'UTF8';
\set ON_ERROR_STOP ON
-- Archive tables
DROP TABLE IF EXISTS nex.arch_contig CASCADE;
CREATE TABLE nex.arch_contig (
contig_id bigint NOT NULL DEFAULT nextval('object_seq'),
format_name varchar(100) NOT NULL,
display_name varchar(500) NOT NULL,
obj_url varchar(500),
source_id bigint NOT NULL,
taxonomy_id bigint NOT NULL,
so_id bigint NOT NULL,
centromere_start integer,
centromere_end integer,
genbank_accession varchar(40),
gi_number varchar(40),
refseq_id varchar(40),
reference_chromosome_id bigint,
reference_start integer,
reference_end integer,
reference_percent_identity double precision,
reference_alignment_length integer,
seq_version timestamp,
coord_version timestamp,
genomerelease_id bigint,
file_header varchar(200),
download_filename varchar(200),
file_id bigint,
description varchar(500),
residues text NOT NULL,
date_created timestamp NOT NULL,
created_by varchar(12) NOT NULL,
date_archived timestamp NOT NULL DEFAULT LOCALTIMESTAMP,
CONSTRAINT arch_contig_pk PRIMARY KEY (contig_id)
) ;
COMMENT ON TABLE nex.arch_contig IS 'Archived whole chromosome or contig sequences.';
COMMENT ON COLUMN nex.arch_contig.refseq_id IS 'REFerence SEQuence identifier assigned by NCBI.';
COMMENT ON COLUMN nex.arch_contig.gi_number IS 'GenInfo identifier assigned by NCBI.';
COMMENT ON COLUMN nex.arch_contig.created_by IS 'Username of the person who entered the record into the database.';
COMMENT ON COLUMN nex.arch_contig.date_created IS 'Date the record was entered into the database.';
COMMENT ON COLUMN nex.arch_contig.seq_version IS 'From BUD.SEQ.SEQ_VERSION.';
COMMENT ON COLUMN nex.arch_contig.centromere_end IS 'End coordinate of the centromere.';
COMMENT ON COLUMN nex.arch_contig.reference_start IS 'Start coordinate relative to the reference sequence S288C.';
COMMENT ON COLUMN nex.arch_contig.display_name IS 'Public display name.';
COMMENT ON COLUMN nex.arch_contig.taxonomy_id IS 'From TAXONOMY.TAXONOMY_ID.';
COMMENT ON COLUMN nex.arch_contig.file_header IS 'Header line of the download file.';
COMMENT ON COLUMN nex.arch_contig.reference_percent_identity IS 'Percent identify to the reference sequence S288C.';
COMMENT ON COLUMN nex.arch_contig.reference_chromosome_id IS 'From CONTIG.CONTIG_ID.';
COMMENT ON COLUMN nex.arch_contig.format_name IS 'Unique name to create download files.';
COMMENT ON COLUMN nex.arch_contig.so_id IS 'From SO.SO_ID (contig, chromosome, plasmid).';
COMMENT ON COLUMN nex.arch_contig.coord_version IS 'From BUD.FEAT_LOCATION.COORD_VERSION.';
COMMENT ON COLUMN nex.arch_contig.genomerelease_id IS 'From GENOMERELEASE.GENOMERELEASE_ID.';
COMMENT ON COLUMN nex.arch_contig.centromere_start IS 'Start coordinate of the centromere.';
COMMENT ON COLUMN nex.arch_contig.download_filename IS 'User interface download filename.';
COMMENT ON COLUMN nex.arch_contig.source_id IS 'From SOURCE.SOURCE_ID.';
COMMENT ON COLUMN nex.arch_contig.genbank_accession IS 'GenBank Accession id including version number (e.g., BK006939.2).';
COMMENT ON COLUMN nex.arch_contig.reference_alignment_length IS 'Length of the sequence alignment to the reference sequence S288C.';
COMMENT ON COLUMN nex.arch_contig.reference_end IS 'End coordinate relative to the reference sequence S288C.';
COMMENT ON COLUMN nex.arch_contig.date_archived IS 'Date the record was archived.';
COMMENT ON COLUMN nex.arch_contig.residues IS 'DNA sequence of the contig, chromosome or plasmid.';
COMMENT ON COLUMN nex.arch_contig.obj_url IS 'URL of the object (relative for local links or complete for external links).';
COMMENT ON COLUMN nex.arch_contig.file_id IS 'From FILEDBENTITY.DBENTITY_ID.';
COMMENT ON COLUMN nex.arch_contig.contig_id IS 'From CONTIG.CONTIG_ID.';
ALTER TABLE nex.arch_contig ADD CONSTRAINT arch_contig_uk UNIQUE (format_name);
CREATE INDEX archcontig_genomerelease_index ON nex.arch_contig (genomerelease_id);
CREATE INDEX archcontig_source_index ON nex.arch_contig (source_id);
CREATE INDEX archcontig_tax_index ON nex.arch_contig (taxonomy_id);
CREATE INDEX archcontig_so_index ON nex.arch_contig (so_id);
CREATE INDEX archcontig_file_index ON nex.arch_contig (file_id);
DROP TABLE IF EXISTS nex.arch_contigchange CASCADE;
CREATE TABLE nex.arch_contigchange (
archive_id bigint NOT NULL DEFAULT nextval('archive_seq'),
contig_id bigint NOT NULL,
source_id bigint NOT NULL,
bud_id bigint,
genomerelease_id bigint NOT NULL,
change_type varchar(40) NOT NULL,
change_min_coord integer NOT NULL,
change_max_coord integer NOT NULL,
old_value varchar(1000),
new_value varchar(1000),
date_changed timestamp NOT NULL,
changed_by varchar(12) NOT NULL,
date_archived timestamp NOT NULL DEFAULT LOCALTIMESTAMP,
CONSTRAINT arch_contigchange_pk PRIMARY KEY (archive_id)
) ;
COMMENT ON TABLE nex.arch_contigchange IS 'Archived individual changes to the S288C reference chromosome sequence.';
COMMENT ON COLUMN nex.arch_contigchange.date_changed IS 'Date the change was made.';
COMMENT ON COLUMN nex.arch_contigchange.date_archived IS 'Date the record was archived.';
COMMENT ON COLUMN nex.arch_contigchange.bud_id IS 'From BUD.SEQ_CHANGE_ARCHIVE.SEQ_CHANGE_ARCHIVE_NO.';
COMMENT ON COLUMN nex.arch_contigchange.genomerelease_id IS 'From GENOMERELEASE.GENOMERELEASE_ID.';
COMMENT ON COLUMN nex.arch_contigchange.change_min_coord IS 'Minimum coordinate of the change relative to the whole chromosome.';
COMMENT ON COLUMN nex.arch_contigchange.changed_by IS 'Username of the person who made the change.';
COMMENT ON COLUMN nex.arch_contigchange.contig_id IS 'From CONTIG.CONTIG_ID.';
COMMENT ON COLUMN nex.arch_contigchange.old_value IS 'Sequence prior to the change.';
COMMENT ON COLUMN nex.arch_contigchange.change_max_coord IS 'Maximum coordinate of the change relative to the whole chromosome.';
COMMENT ON COLUMN nex.arch_contigchange.new_value IS 'Sequence after the change.';
COMMENT ON COLUMN nex.arch_contigchange.change_type IS 'Type of sequence change (Deletion, Insertion, Substitution).';
COMMENT ON COLUMN nex.arch_contigchange.archive_id IS 'Unique identifier (serial number).';
ALTER TABLE nex.arch_contigchange ADD CONSTRAINT arch_contigchange_uk UNIQUE (contig_id,genomerelease_id,change_type,change_min_coord,change_max_coord);
ALTER TABLE nex.arch_contigchange ADD CONSTRAINT archcontigchange_type_ck CHECK (CHANGE_TYPE IN ('Deletion', 'Insertion', 'Substitution'));
CREATE INDEX archcontigchange_genomerelease_index ON nex.arch_contigchange (genomerelease_id);
DROP TABLE IF EXISTS nex.arch_dnasequenceannotation CASCADE;
CREATE TABLE nex.arch_dnasequenceannotation (
annotation_id bigint NOT NULL DEFAULT nextval('annotation_seq'),
dbentity_id bigint NOT NULL,
source_id bigint NOT NULL,
taxonomy_id bigint NOT NULL,
reference_id bigint,
bud_id bigint,
so_id bigint NOT NULL,
dna_type varchar(50) NOT NULL,
contig_id bigint,
seq_version timestamp,
coord_version timestamp,
genomerelease_id bigint,
start_index integer,
end_index integer,
strand varchar(1) NOT NULL,
file_header varchar(200),
download_filename varchar(200),
file_id bigint,
residues text NOT NULL,
date_created timestamp NOT NULL,
created_by varchar(12) NOT NULL,
date_archived timestamp NOT NULL DEFAULT LOCALTIMESTAMP,
CONSTRAINT arch_dnasequenceannotation_pk PRIMARY KEY (annotation_id)
) ;
COMMENT ON TABLE nex.arch_dnasequenceannotation IS 'Archived DNA sequence details for contig, chromosomal, or plasmid features.';
COMMENT ON COLUMN nex.arch_dnasequenceannotation.date_created IS 'Date the record was entered into the database.';
COMMENT ON COLUMN nex.arch_dnasequenceannotation.start_index IS 'Start coordinate.';
COMMENT ON COLUMN nex.arch_dnasequenceannotation.seq_version IS 'Date of the sequence version.';
COMMENT ON COLUMN nex.arch_dnasequenceannotation.end_index IS 'End coordinate.';
COMMENT ON COLUMN nex.arch_dnasequenceannotation.created_by IS 'Username of the person who entered the record into the database.';
COMMENT ON COLUMN nex.arch_dnasequenceannotation.coord_version IS 'Date of the coordinate version.';
COMMENT ON COLUMN nex.arch_dnasequenceannotation.so_id IS 'From SO.SO_ID.';
COMMENT ON COLUMN nex.arch_dnasequenceannotation.genomerelease_id IS 'From GENOMERELEASE.GENOMERELEASE_ID.';
COMMENT ON COLUMN nex.arch_dnasequenceannotation.taxonomy_id IS 'From TAXONOMY.TAXONOMY_ID.';
COMMENT ON COLUMN nex.arch_dnasequenceannotation.file_header IS 'Fasta header line of the download file.';
COMMENT ON COLUMN nex.arch_dnasequenceannotation.bud_id IS 'From BUD.SEQ.SEQ_NO.';
COMMENT ON COLUMN nex.arch_dnasequenceannotation.strand IS 'Which strand the sequence is on (Watson = +, Crick = -, None = 0).';
COMMENT ON COLUMN nex.arch_dnasequenceannotation.download_filename IS 'User interface download filename.';
COMMENT ON COLUMN nex.arch_dnasequenceannotation.dna_type IS 'Type of DNA sequence (CODING, 1KB, GENOMIC).';
COMMENT ON COLUMN nex.arch_dnasequenceannotation.annotation_id IS 'From DNASEQUENCEANNOTATION.ANNOTATION_ID.';
COMMENT ON COLUMN nex.arch_dnasequenceannotation.source_id IS 'From SOURCE.SOURCE_ID.';
COMMENT ON COLUMN nex.arch_dnasequenceannotation.dbentity_id IS 'From DBENTITY.DBENTITY_ID.';
COMMENT ON COLUMN nex.arch_dnasequenceannotation.residues IS 'DNA sequence of the feature.';
COMMENT ON COLUMN nex.arch_dnasequenceannotation.file_id IS 'From FILE.FILE_ID.';
COMMENT ON COLUMN nex.arch_dnasequenceannotation.contig_id IS 'From CONTIG.CONTIG_ID.';
COMMENT ON COLUMN nex.arch_dnasequenceannotation.reference_id IS 'From REFERENCEBENTITY.DBENTITY_ID.';
COMMENT ON COLUMN nex.arch_dnasequenceannotation.date_archived IS 'Date the record was archived.';
ALTER TABLE nex.arch_dnasequenceannotation ADD CONSTRAINT arch_dnasequenceannotation_uk UNIQUE (dbentity_id,taxonomy_id,contig_id,genomerelease_id,so_id,dna_type);
ALTER TABLE nex.arch_dnasequenceannotation ADD CONSTRAINT archdnasequenceanno_type_ck CHECK (DNA_TYPE IN ('CODING', '1KB', 'GENOMIC'));
ALTER TABLE nex.arch_dnasequenceannotation ADD CONSTRAINT archdnasequenceanno_strand_ck CHECK (STRAND IN ('+', '-', '0'));
CREATE INDEX archdnasequenceanno_contig_fk_index ON nex.arch_dnasequenceannotation (contig_id);
CREATE INDEX archdnasequenceanno_so_index ON nex.arch_dnasequenceannotation (so_id);
CREATE INDEX archdnasequenceanno_source_index ON nex.arch_dnasequenceannotation (source_id);
CREATE INDEX archdnasequenceanno_file_index ON nex.arch_dnasequenceannotation (file_id);
CREATE INDEX archdnasequenceanno_genomerelease_index ON nex.arch_dnasequenceannotation (genomerelease_id);
CREATE INDEX archdnasequenceanno_tax_index ON nex.arch_dnasequenceannotation (taxonomy_id);
CREATE INDEX archdnasequenceanno_ref_index ON nex.arch_dnasequenceannotation (reference_id);
DROP TABLE IF EXISTS nex.arch_dnasubsequence CASCADE;
CREATE TABLE nex.arch_dnasubsequence (
dnasubsequence_id bigint NOT NULL DEFAULT nextval('detail_seq'),
annotation_id bigint NOT NULL,
dbentity_id bigint NOT NULL,
display_name varchar(500) NOT NULL,
bud_id bigint,
so_id bigint NOT NULL,
relative_start_index integer NOT NULL,
relative_end_index integer NOT NULL,
contig_start_index integer NOT NULL,
contig_end_index integer NOT NULL,
seq_version timestamp,
coord_version timestamp,
genomerelease_id bigint,
file_header varchar(200) NOT NULL,
download_filename varchar(100) NOT NULL,
file_id bigint,
residues text NOT NULL,
date_created timestamp NOT NULL,
created_by varchar(12) NOT NULL,
date_archived timestamp NOT NULL DEFAULT LOCALTIMESTAMP,
CONSTRAINT arch_dnasubsequence_pk PRIMARY KEY (dnasubsequence_id)
) ;
COMMENT ON TABLE nex.arch_dnasubsequence IS 'Archived DNA sequence details for subfeatures.';
COMMENT ON COLUMN nex.arch_dnasubsequence.relative_end_index IS 'Relative stop coordinate based on the dbentity (feature).';
COMMENT ON COLUMN nex.arch_dnasubsequence.created_by IS 'Username of the person who entered the record into the database.';
COMMENT ON COLUMN nex.arch_dnasubsequence.date_created IS 'Date the record was entered into the database.';
COMMENT ON COLUMN nex.arch_dnasubsequence.relative_start_index IS 'Relative start coordinate based on the dbentity (feature).';
COMMENT ON COLUMN nex.arch_dnasubsequence.seq_version IS 'Date of the sequence version.';
COMMENT ON COLUMN nex.arch_dnasubsequence.display_name IS 'Public display name.';
COMMENT ON COLUMN nex.arch_dnasubsequence.bud_id IS 'From BUD.SEQ.SEQ_NO.';
COMMENT ON COLUMN nex.arch_dnasubsequence.file_header IS 'Fasta header line of the download file.';
COMMENT ON COLUMN nex.arch_dnasubsequence.so_id IS 'From SO.SO_ID.';
COMMENT ON COLUMN nex.arch_dnasubsequence.coord_version IS 'Date of the coordinate version.';
COMMENT ON COLUMN nex.arch_dnasubsequence.genomerelease_id IS 'From GENOMERELEASE.GENOMERELEASE_ID.';
COMMENT ON COLUMN nex.arch_dnasubsequence.download_filename IS 'User interface download filename.';
COMMENT ON COLUMN nex.arch_dnasubsequence.annotation_id IS 'From DNASEQUENCEANNOTATION.ANNOTATION_ID.';
COMMENT ON COLUMN nex.arch_dnasubsequence.contig_start_index IS 'Start coordinate based on the contig.';
COMMENT ON COLUMN nex.arch_dnasubsequence.date_archived IS 'Date the record was archived.';
COMMENT ON COLUMN nex.arch_dnasubsequence.dnasubsequence_id IS 'From DNASUBSEQUENCE.DNASUBSEQUENCE_ID.';
COMMENT ON COLUMN nex.arch_dnasubsequence.contig_end_index IS 'Stop coordinate based on the contig.';
COMMENT ON COLUMN nex.arch_dnasubsequence.dbentity_id IS 'From DBENTITY.DBENTITY_ID.';
COMMENT ON COLUMN nex.arch_dnasubsequence.residues IS 'DNA subfeature sequence.';
COMMENT ON COLUMN nex.arch_dnasubsequence.file_id IS 'From FILE.FILE_ID.';
ALTER TABLE nex.arch_dnasubsequence ADD CONSTRAINT arch_dnasubsequence_uk UNIQUE (annotation_id,dbentity_id,genomerelease_id,relative_start_index,relative_end_index);
CREATE INDEX archdnasubsequence_file_index ON nex.arch_dnasubsequence (file_id);
CREATE INDEX archdnasubsequence_genomerelease_index ON nex.arch_dnasubsequence (genomerelease_id);
CREATE INDEX archdnasubsequence_dbentity_index ON nex.arch_dnasubsequence (dbentity_id);
CREATE INDEX archdnasubsequence_so_index ON nex.arch_dnasubsequence (so_id);
DROP TABLE IF EXISTS nex.arch_literatureannotation CASCADE;
CREATE TABLE nex.arch_literatureannotation (
archive_id bigint NOT NULL DEFAULT nextval('archive_seq'),
reference_id bigint NOT NULL,
source_id bigint NOT NULL,
taxonomy_id bigint NOT NULL,
locus_id bigint,
bud_id bigint,
topic varchar(42) NOT NULL,
date_created timestamp NOT NULL,
created_by varchar(12) NOT NULL,
date_archived timestamp NOT NULL DEFAULT LOCALTIMESTAMP,
CONSTRAINT arch_literatureannotation_pk PRIMARY KEY (archive_id)
) ;
COMMENT ON TABLE nex.arch_literatureannotation IS 'Archived literature topics or categories assigned to references from BUD.';
COMMENT ON COLUMN nex.arch_literatureannotation.date_created IS 'Date the record was entered into the database.';
COMMENT ON COLUMN nex.arch_literatureannotation.archive_id IS 'Unique identifier (serial number).';
COMMENT ON COLUMN nex.arch_literatureannotation.created_by IS 'Username of the person who entered the record into the database.';
COMMENT ON COLUMN nex.arch_literatureannotation.source_id IS 'From SOURCE.SOURCE_ID.';
COMMENT ON COLUMN nex.arch_literatureannotation.topic IS 'Topic or category assigned to a reference.';
COMMENT ON COLUMN nex.arch_literatureannotation.locus_id IS 'From LOCUSDBENTITY.DBENTITY_ID.';
COMMENT ON COLUMN nex.arch_literatureannotation.reference_id IS 'From REFERENCEBENTITY.DBENTITY_ID.';
COMMENT ON COLUMN nex.arch_literatureannotation.date_archived IS 'Date the record was archived.';
COMMENT ON COLUMN nex.arch_literatureannotation.bud_id IS 'From BUD.LIT_GUIDE.LIT_GUIDE_NO.';
COMMENT ON COLUMN nex.arch_literatureannotation.taxonomy_id IS 'From TAXONOMY.TAXONOMY_ID.';
ALTER TABLE nex.arch_literatureannotation ADD CONSTRAINT arch_literatureannotation_uk UNIQUE (reference_id,topic,locus_id);
DROP TABLE IF EXISTS nex.arch_locuschange CASCADE;
CREATE TABLE nex.arch_locuschange (
archive_id bigint NOT NULL DEFAULT nextval('archive_seq'),
dbentity_id bigint NOT NULL,
source_id bigint NOT NULL,
bud_id bigint,
change_type varchar(100) NOT NULL,
old_value varchar(40),
new_value varchar(40),
date_added_to_database timestamp NOT NULL,
added_by varchar(12) NOT NULL,
date_name_standardized timestamp,
date_archived timestamp NOT NULL DEFAULT LOCALTIMESTAMP,
CONSTRAINT arch_locuschange_pk PRIMARY KEY (archive_id)
) ;
COMMENT ON TABLE nex.arch_locuschange IS 'Archived changes to a locus that have historical significance.';
COMMENT ON COLUMN nex.arch_locuschange.change_type IS 'Type of locus change (Status, Qualifier, Gene name).';
COMMENT ON COLUMN nex.arch_locuschange.source_id IS 'From SOURCE.SOURCE_ID.';
COMMENT ON COLUMN nex.arch_locuschange.archive_id IS 'Unique identifier (serial number).';
COMMENT ON COLUMN nex.arch_locuschange.new_value IS 'New value after change.';
COMMENT ON COLUMN nex.arch_locuschange.date_archived IS 'Date the record was archived.';
COMMENT ON COLUMN nex.arch_locuschange.bud_id IS 'From BUD.ARCHIVE.ARCHIVE_NO.';
COMMENT ON COLUMN nex.arch_locuschange.date_added_to_database IS 'Date the name or value was added to the database.';
COMMENT ON COLUMN nex.arch_locuschange.old_value IS 'Previous value before change.';
COMMENT ON COLUMN nex.arch_locuschange.added_by IS 'Username of the person who added the name or made the change.';
COMMENT ON COLUMN nex.arch_locuschange.date_name_standardized IS 'Date the name was standardized via the gene registration system.';
COMMENT ON COLUMN nex.arch_locuschange.dbentity_id IS 'From DBENTITY.DBENTITY_ID.';
ALTER TABLE nex.arch_locuschange ADD CONSTRAINT arch_locuschange_uk UNIQUE (dbentity_id,change_type,old_value,new_value,date_added_to_database);
ALTER TABLE nex.arch_locuschange ADD CONSTRAINT archlocuschange_type_ck CHECK (CHANGE_TYPE IN ('Status', 'Qualifier', 'Gene name'));
DROP TABLE IF EXISTS nex.arch_proteinsequenceannotation CASCADE;
CREATE TABLE nex.arch_proteinsequenceannotation (
annotation_id bigint NOT NULL DEFAULT nextval('annotation_seq'),
dbentity_id bigint NOT NULL,
source_id bigint NOT NULL,
taxonomy_id bigint NOT NULL,
reference_id bigint,
bud_id bigint,
contig_id bigint NOT NULL,
seq_version timestamp,
genomerelease_id bigint,
file_header varchar(200),
download_filename varchar(200),
file_id bigint,
residues text NOT NULL,
date_created timestamp NOT NULL,
created_by varchar(12) NOT NULL,
date_archived timestamp NOT NULL DEFAULT LOCALTIMESTAMP,
CONSTRAINT arch_proteinsequenceannotation_pk PRIMARY KEY (annotation_id)
) ;
COMMENT ON TABLE nex.arch_proteinsequenceannotation IS 'Archived protein sequence information.';
COMMENT ON COLUMN nex.arch_proteinsequenceannotation.annotation_id IS 'FROM PROTEINSEQUENCEANNOTATION.ANNOTATION_ID.';
COMMENT ON COLUMN nex.arch_proteinsequenceannotation.source_id IS 'From SOURCE.SOURCE_ID.';
COMMENT ON COLUMN nex.arch_proteinsequenceannotation.download_filename IS 'User interface download filename.';
COMMENT ON COLUMN nex.arch_proteinsequenceannotation.reference_id IS 'From REFERENCEBENTITY.DBENTITY_ID.';
COMMENT ON COLUMN nex.arch_proteinsequenceannotation.date_archived IS 'Date the record was archived.';
COMMENT ON COLUMN nex.arch_proteinsequenceannotation.file_id IS 'From FILE.FILE_ID.';
COMMENT ON COLUMN nex.arch_proteinsequenceannotation.contig_id IS 'From CONTIG.CONTIG_ID.';
COMMENT ON COLUMN nex.arch_proteinsequenceannotation.dbentity_id IS 'From DBENTITY.DBENTITY_ID.';
COMMENT ON COLUMN nex.arch_proteinsequenceannotation.residues IS 'Sequence of the protein.';
COMMENT ON COLUMN nex.arch_proteinsequenceannotation.created_by IS 'Username of the person who entered the record into the database.';
COMMENT ON COLUMN nex.arch_proteinsequenceannotation.seq_version IS 'Date of the protein sequence release.';
COMMENT ON COLUMN nex.arch_proteinsequenceannotation.date_created IS 'Date the record was entered into the database.';
COMMENT ON COLUMN nex.arch_proteinsequenceannotation.file_header IS 'Fasta header line of the download file.';
COMMENT ON COLUMN nex.arch_proteinsequenceannotation.bud_id IS 'From BUD.PROTEIN.INFO.';
COMMENT ON COLUMN nex.arch_proteinsequenceannotation.taxonomy_id IS 'From TAXONOMY.TAXONOMY_ID.';
COMMENT ON COLUMN nex.arch_proteinsequenceannotation.genomerelease_id IS 'From GENOMERELEASE.GENOMERELEASE_ID.';
ALTER TABLE nex.arch_proteinsequenceannotation ADD CONSTRAINT arch_proteinsequenceannotation_uk UNIQUE (dbentity_id,taxonomy_id,contig_id,genomerelease_id);
CREATE INDEX archproteinsequenceanno_genomerelease_index ON arch_proteinsequenceannotation (genomerelease_id);
CREATE INDEX archproteinsequenceanno_tax_index ON nex.arch_proteinsequenceannotation (taxonomy_id);
CREATE INDEX archproteinsequenceanno_contig_fk_index ON nex.arch_proteinsequenceannotation (contig_id);
CREATE INDEX archproteinsequenceanno_source_index ON nex.arch_proteinsequenceannotation (source_id);
CREATE INDEX archproteinsequenceanno_file_index ON nex.arch_proteinsequenceannotation (file_id);
CREATE INDEX archproteinsequenceanno_ref_index ON nex.arch_proteinsequenceannotation (reference_id);
|
<reponame>nyzsirt/openstack<gh_stars>1-10
CREATE DATABASE sahara;
GRANT ALL PRIVILEGES ON sahara.* TO 'sahara'@'localhost' \
IDENTIFIED BY 'SAHARA_DBPASS';
GRANT ALL PRIVILEGES ON sahara.* TO 'sahara'@'%' \
IDENTIFIED BY 'SAHARA_DBPASS';
CREATE DATABASE saharadb;
GRANT ALL PRIVILEGES ON sahara.* TO 'sahara-common'@'localhost' \
IDENTIFIED BY 'SAHARA_DBPASS';
GRANT ALL PRIVILEGES ON sahara.* TO 'sahara-common'@'%' \
IDENTIFIED BY 'SAHARA_DBPASS';
|
CREATE OR REPLACE FUNCTION ti.gettaxondatarecordscount(_taxonid integer)
RETURNS TABLE(count bigint)
LANGUAGE sql
AS $function$
select count(dt.variableid) as count
from ndb.variables AS var
inner join ndb.data AS dt on var.variableid = dt.variableid
where (var.taxonid = _taxonid)
$function$
|
<gh_stars>10-100
-- RedShift HealthCheck ToolKit
-- Version 1.0
-- Developed by Searce Data team
-- Updates: https://thedataguy.in/
-- Disable cache for this session
SET enable_result_cache_for_session = OFF;
-- Drop the temp table for storing the checklist results
DROP TABLE IF EXISTS rstk_metric_result;
-- Create temp table for storing the checklist results
create temp table rstk_metric_result
(
priority int,
category varchar(50),
finding varchar(300),
details varchar(65000),
url varchar(300),
value varchar(1000),
checkid int
);
-- Insert information row
INSERT INTO rstk_metric_result
VALUES (0,
current_timestamp,
'RedShift HealthCheck ToolKit',
'To get help or add you own contribution join us at https://github.com/BhuviTheDataGuy/RedShift-ToolKit',
'https://thedataguy.in',
NULL,
NULL);
-- Tables without sort keys
INSERT INTO rstk_metric_result
(checkid,
category,
finding,
url,
value)
SELECT 1,
'Design',
'Tables without sort key',
'https://thedataguy.in/rskit/sortkeys',
Count(*)
FROM pg_catalog.svv_table_info
WHERE sortkey1 IS NULL
AND "schema" not like 'pg_temp%';
-- Sort key column compressed
INSERT INTO rstk_metric_result
(checkid,
category,
finding,
url,
value)
SELECT 2,
'Design',
'Sort key column compressed',
'https://thedataguy.in/rskit/sortkeycompress',
Count(*)
FROM pg_catalog.svv_table_info
WHERE sortkey1 IS NOT NULL
AND sortkey1_enc <> 'none'
AND "schema" not like 'pg_temp%';
-- Sort key skew > 4
INSERT INTO rstk_metric_result
(checkid,
category,
finding,
url,
value)
SELECT 3,
'Design',
'Sort key skew',
'https://thedataguy.in/rskit/sortkeyskew',
Count(*)
FROM svv_table_info
WHERE sortkey1 IS NOT NULL
AND skew_sortkey1 > 4
AND "schema" not like 'pg_temp%';
-- Tables with high Skew
INSERT INTO rstk_metric_result
(checkid,
category,
finding,
url,
value)
SELECT 4,
'Design',
'Tables with high Skew',
'https://thedataguy.in/rskit/tableskew',
Count(*)
FROM svv_table_info
WHERE diststyle LIKE 'KEY%'
AND skew_rows > 3
AND "schema" not like 'pg_temp%';
-- Tables without compression
INSERT INTO rstk_metric_result
(checkid,
category,
finding,
url,
value)
SELECT 5,
'Design',
'Tables without compression',
'https://thedataguy.in/rskit/tablecompress',
Count(*)
FROM pg_catalog.svv_table_info
WHERE encoded <> 'Y'
AND "schema" not like 'pg_temp%';
-- WLM queue wait time > 1min
INSERT INTO rstk_metric_result
(checkid,
category,
finding,
url,
value)
SELECT 6,
'WLM',
'WLM queue wait time',
'https://thedataguy.in/rskit/queuewait',
Count(*)
FROM stl_wlm_query w
WHERE w.total_queue_time / 1000000 > 60;
-- WLM max connection hit
-- Credit: This query is taken from AWS RedShit Utilities with some changes to boost up performance on single node cluster.
-- Script name: wlm_apex_hourly
INSERT INTO rstk_metric_result
(checkid,
category,
finding,
url,
value)
WITH generate_dt_series AS
(
SELECT SYSDATE - (n * interval '1 minute') AS dt
FROM (
SELECT row_number() over () AS n
FROM stl_scan limit 10080)), apex AS
(
SELECT iq.dt,
iq.service_class,
iq.num_query_tasks,
count(iq.slot_count) AS service_class_queries,
SUM(iq.slot_count) AS service_class_slots
FROM (
SELECT gds.dt,
wq.service_class,
wscc.num_query_tasks,
wq.slot_count
FROM stl_wlm_query wq
join stv_wlm_service_class_config wscc
ON (
wscc.service_class = wq.service_class
AND wscc.service_class > 4)
join generate_dt_series gds
ON (
wq.service_class_start_time <= gds.dt
AND wq.service_class_end_time > gds.dt)
WHERE wq.userid > 1
AND wq.service_class > 4) iq
GROUP BY iq.dt,
iq.service_class,
iq.num_query_tasks), maxes AS
(
SELECT apex.service_class,
trunc(apex.dt) AS d,
date_part(h,apex.dt) AS dt_h,
max(service_class_slots) max_service_class_slots
FROM apex
GROUP BY apex.service_class,
apex.dt,
date_part(h,apex.dt)) , final_result AS
(
SELECT apex.service_class,
apex.num_query_tasks AS max_wlm_concurrency,
maxes.d AS day,
maxes.dt_h
|| ':00 - '
|| maxes.dt_h
|| ':59' AS hour,
max(apex.service_class_slots) AS max_service_class_slots
FROM apex
join maxes
ON (
apex.service_class = maxes.service_class
AND apex.service_class_slots = maxes.max_service_class_slots)
GROUP BY apex.service_class,
apex.num_query_tasks,
maxes.d,
maxes.dt_h
ORDER BY apex.service_class,
maxes.d,
maxes.dt_h)
SELECT 7,
'WLM',
'WLM max connection hit',
'https://thedataguy.in/rskit/highconnection',
max(max_service_class_slots) AS maxv
FROM final_result
WHERE service_class >=6;
-- Number of WLM queue
INSERT INTO rstk_metric_result
(checkid,
category,
finding,
url,
value)
SELECT 8,
'WLM',
'Number of WLM queue',
'https://thedataguy.in/rskit/queue',
Count(*)
FROM stv_wlm_service_class_config
WHERE service_class BETWEEN 6 and 13;
-- Auto WLM enabled
INSERT INTO rstk_metric_result
(checkid,
category,
finding,
url,
value)
SELECT 9,
'WLM',
'Auto WLM enabled',
'https://thedataguy.in/rskit/autowlm',
Count(*)
FROM stv_wlm_service_class_config
WHERE service_class >= 100;
-- Max concurrency for a slot
INSERT INTO rstk_metric_result
(checkid,
category,
finding,
url,
value)
SELECT 10,
'WLM',
'Max concurrency for a slot',
'https://thedataguy.in/rskit/concurrencyslot',
Max(num_query_tasks)
FROM stv_wlm_service_class_config
WHERE service_class BETWEEN 6 AND 13;
-- WLM commit queue wait
INSERT INTO rstk_metric_result
(
checkid,
category,
finding,
url,
value
)
SELECT 11,
'WLM',
'WLM commit queue wait',
'https://thedataguy.in/rskit/commitqueue',
Max(queue_time)
FROM (SELECT Datediff(seconds, startqueue, startwork) AS queue_time
FROM stl_commit_stats
WHERE startqueue >= Dateadd(day, -7, current_date)
ORDER BY queue_time DESC);
-- Ghost rows
INSERT INTO rstk_metric_result
(checkid,
category,
finding,
url,
value)
WITH raw_gh AS
(
SELECT query,
tbl,
perm_table_name ,
segment,
SUM(a.rows_pre_filter-a.rows_pre_user_filter)AS ghrows
FROM stl_scan a
WHERE a.starttime > current_timestamp - interval '5 days'
and perm_table_name NOT IN ('Internal Worktable',
'S3')
AND is_rlf_scan = 'f'
AND (
a.rows_pre_filter <> 0
AND a.rows_pre_user_filter <> 0 )
GROUP BY SEGMENT,
query,
tbl,
perm_table_name ), ran AS
(
SELECT *,
dense_rank() over (PARTITION BY tbl ORDER BY query DESC, SEGMENT DESC) AS rnk
FROM raw_gh ), final_cte AS
(
SELECT max(query),
SUM(ghrows)AS ghrows
FROM ran
WHERE rnk = 1
GROUP BY tbl)
SELECT 12,
'Vacuum',
'Ghost rows',
'https://thedataguy.in/rskit/ghostrows',
SUM(ghrows)
FROM final_cte;
-- Tables never performed vacuum (based on STL_Vacuum)
INSERT INTO rstk_metric_result
(checkid,
category,
finding,
url,
value)
SELECT 13,
'Vacuum',
'Tables never performed vacuum',
'https://thedataguy.in/rskit/vacuum',
count(*)
FROM pg_catalog.svv_table_info
WHERE table_id NOT IN (SELECT table_id
FROM stl_vacuum);
-- Table vacuum older than 5 days
INSERT INTO rstk_metric_result
(
checkid,
category,
finding,
url,
value
)
WITH cte AS
(
SELECT table_id,
Max(eventtime)AS eventtime1
FROM stl_vacuum
WHERE status LIKE '%Finished%'
GROUP BY table_id
)
SELECT 14,
'Vacuum',
'Table vacuum older than 5 days',
'https://thedataguy.in/rskit/vacuum',
Count(*)
FROM pg_catalog.svv_table_info
join cte
ON svv_table_info.table_id= cte.table_id
WHERE cte.eventtime1>= current_date - interval '5 day';
-- Tables with tombstone blocks
INSERT INTO rstk_metric_result
(checkid,
category,
finding,
url,
value)
WITH cte
AS (SELECT Trim(name) AS tablename,
Count(CASE
WHEN tombstone > 0 THEN 1
ELSE NULL
END) AS tombstones
FROM svv_diskusage
GROUP BY 1
HAVING Count(CASE
WHEN tombstone > 0 THEN 1
ELSE NULL
END) > 0
ORDER BY 2 DESC)
SELECT 15,
'Vacuum',
'Tables with tombstone blocks',
'https://thedataguy.in/rskit/tombstone',
Count(tablename)
FROM cte;
-- Tables with missing stats
INSERT INTO rstk_metric_result
(checkid,
category,
finding,
url,
value)
SELECT 16,
'Vacuum',
'Tables with missing stats',
'https://thedataguy.in/rskit/stats',
Count(*)
FROM (SELECT plannode
FROM stl_explain
WHERE plannode LIKE '%missing statistics%'
AND plannode NOT LIKE '%redshift_auto_health_check_%'
GROUP BY plannode);
-- Tables with stale stats (> 5 percent)
INSERT INTO rstk_metric_result
(checkid,
category,
finding,
url,
value)
SELECT 17,
'Vacuum',
'Tables with stale stats',
'https://thedataguy.in/rskit/stats',
Count(*)
FROM svv_table_info
WHERE stats_off > 5;
-- Top sized tables
INSERT INTO rstk_metric_result
(checkid,
category,
finding,
url,
value)
SELECT 18,
'Table',
'Top sized tables',
'https://thedataguy.in/rskit/specturm',
Count(*)
FROM pg_catalog.svv_table_info
WHERE pct_used >= 40;
-- Table with high number of alerts (>3 alerts)
INSERT INTO rstk_metric_result
(checkid,
category,
finding,
url,
value)
SELECT 19,
'Table',
'Tables with high number of alerts',
'https://thedataguy.in/rskit/alert',
Count("table")
FROM (SELECT "table",
Count(*) AS count
FROM (SELECT Trim(s.perm_table_name) AS table,
Trim(Split_part(l.event, ':', 1)) AS event
FROM stl_alert_event_log AS l
left join stl_scan AS s
ON s.query = l.query
AND s.slice = l.slice
AND s.segment = l.segment
WHERE l.userid > 1
AND l.event_time >= Dateadd(day, -7, Getdate())
AND s.perm_table_name NOT LIKE 'volt_tt%'
AND s.perm_table_name NOT LIKE 'Internal Worktable'
GROUP BY 1,
2)
GROUP BY 1)
WHERE count >= 3;
-- Non scaned Tables (based on STL Scan)
INSERT INTO rstk_metric_result
(checkid,
category,
finding,
url,
value)
SELECT 20,
'Table',
'Non scaned Tables',
'https://thedataguy.in/rskit/unusedtable',
Count(*)
FROM pg_catalog.svv_table_info
WHERE "table" NOT IN (SELECT DISTINCT ( perm_table_name )
FROM pg_catalog.stl_scan);
-- Tables without backup
INSERT INTO rstk_metric_result
(checkid,
category,
finding,
url,
value)
SELECT 21,
'Table',
'Tables without backup',
'https://thedataguy.in/rskit/nobackup',
Count(*)
FROM stv_tbl_perm
WHERE BACKUP = 0 and temp=0;
-- Tables with fragmentation
-- Credit: This query is taken from AWS RedShit Utilities
-- Script name: v_fragmentation_info.sql
INSERT INTO rstk_metric_result
(
checkid,
category,
finding,
url,
value
)
SELECT 22,
'Table',
'Tables with fragmentation',
'https://thedataguy.in/rskit/fragmentation',
Count(tablename)
FROM (
SELECT tbl,
tablename,
dbname,
SUM(t_excess_blks) est_space_gain
FROM (SELECT tbl,
col,
node,
tablename,
Trim(datname) AS dbname,
SUM(excess_blks) * ( col + 1 ) AS t_excess_blks
FROM (SELECT tbl,
slice,
col,
Count(*) total_blks
FROM stv_blocklist
WHERE num_values > 0
GROUP BY 1,
2,
3) a
join (SELECT tbl,
slice,
Max(col) AS col
FROM stv_blocklist
GROUP BY 1,
2) b USING (tbl, slice, col)
join (SELECT tbl,
slice,
col,
Count(*) - Ceil(SUM(num_values) / 130994.0)
AS
excess_blks
FROM stv_blocklist
WHERE num_values > 0
AND num_values < 130994
GROUP BY 1,
2,
3) c USING (tbl, slice, col)
join stv_slices d USING (slice)
join (SELECT id,
Trim("name") AS tablename,
db_id
FROM stv_tbl_perm
WHERE slice = 0) f
ON b.tbl = f.id
join pg_database g
ON f.db_id = g.oid
WHERE excess_blks > 1
GROUP BY 1,
2,
3,
4,
5)
WHERE tbl > 1
AND t_excess_blks > (SELECT CASE
WHEN SUM(capacity) > 200000 THEN
1024
ELSE 102.4
END
FROM stv_partitions
WHERE host = owner
AND host = 0
GROUP BY host)
GROUP BY 1,
2,
3
ORDER BY 4 DESC);
-- Disk based queries
INSERT INTO rstk_metric_result
(checkid,
category,
finding,
url,
value)
SELECT 23,
'Performance',
'Disk based queries',
'https://thedataguy.in/rskit/diskquery',
Count(*)
FROM (SELECT query
FROM svl_query_summary
WHERE is_diskbased = 't'
GROUP BY query);
-- COPY not optimized
INSERT INTO rstk_metric_result
(checkid,
category,
finding,
url,
value)
SELECT 24,
'Performance',
'COPY not optimized',
'https://thedataguy.in/rskit/copy',
Count(*)
FROM (SELECT Count(*) AS n_files
FROM stl_s3client
WHERE http_method = 'GET'
AND query > 0
AND transfer_time > 0
GROUP BY query)
WHERE n_files % (SELECT Count(slice)
FROM stv_slices) != 0;
-- High CPU queries (>80 Percent)
INSERT INTO rstk_metric_result
(checkid,
category,
finding,
url,
value)
SELECT 25,
'Performance',
'High CPU queries',
'https://thedataguy.in/rskit/highcpu',
Count(*)
FROM (SELECT query,
Max(query_cpu_usage_percent) cpu
FROM svl_query_metrics
WHERE query_execution_time > 60
AND query_cpu_usage_percent IS NOT NULL
AND (service_class BETWEEN 6 AND 13 or service_class >100)
AND query_cpu_usage_percent > 80
AND query NOT IN(SELECT query
FROM stl_query
WHERE querytxt NOT LIKE 'Vacuum'
OR querytxt NOT LIKE 'vacuum')
GROUP BY query );
-- Most frequent Alert (> 500 times)
INSERT INTO rstk_metric_result
(checkid,
category,
finding,
url,
value)
SELECT 26,
'Performance',
'Most frequent Alert',
'https://thedataguy.in/rskit/alert',
Listagg(event, ' ,')
FROM (SELECT Trim(Split_part(event, ':', 1)) AS event,
Count(*)
FROM stl_alert_event_log
GROUP BY 1)
WHERE count > 500;
-- Long running queries (> 30mins)
INSERT INTO rstk_metric_result
(checkid,
category,
finding,
url,
value)
SELECT 27,
'Performance',
'Long running queries',
'https://thedataguy.in/rskit/slowquery',
Count(*)
FROM svl_query_metrics
WHERE query_execution_time >= 1800;
-- Max temp space used by queries
INSERT INTO rstk_metric_result
(checkid,
category,
finding,
url,
value)
SELECT 28,
'Performance',
'Max temp space used by queries',
'https://thedataguy.in/rskit/diskquery',
Max(gigabytes)
FROM (SELECT SUM(( bytes ) / 1024 / 1024 / 1024) AS GigaBytes
FROM stl_query q
join svl_query_summary qs
ON qs.query = q.query
WHERE qs.is_diskbased = 't'
AND q.starttime BETWEEN SYSDATE - 7 AND SYSDATE
GROUP BY q.query);
-- -------------------------------------
-- Adding the description and priority
-- -------------------------------------
-- Tables without sort keys
UPDATE rstk_metric_result
SET details = sq.details,
priority = sq.priority
FROM (SELECT checkid,
CASE
WHEN Cast(value AS INT) > 0 THEN 'There are '
|| value
||
' tables without sortkeys. This will result in scanning of all blocks for even range restricted predicates'
ELSE 'Awesome, all of your tables having sort keys!!!'
END AS details,
CASE
WHEN Cast(value AS INT) > 10 THEN 1
WHEN Cast(value AS INT) BETWEEN 1 AND 10 THEN 2
WHEN Cast(value AS INT) =0 then 3
END AS priority
FROM rstk_metric_result
WHERE checkid = 1) sq
WHERE rstk_metric_result.checkid = sq.checkid;
-- Sort key column compressed
UPDATE rstk_metric_result
SET details = sq.details,
priority = sq.priority
FROM (SELECT checkid,
CASE
WHEN Cast(value AS INT) > 0 THEN 'There are '
|| value
||
' tables where sort key columns are compressed, this may lead to a slight performance degradation'
ELSE 'Awesome, none of your sort key columns are compressed'
END AS details,
CASE
WHEN Cast(value AS INT) > 10 THEN 1
WHEN Cast(value AS INT) BETWEEN 1 AND 10 THEN 2
WHEN Cast(value AS INT) =0 then 3
END AS priority
FROM rstk_metric_result
WHERE checkid = 2) sq
WHERE rstk_metric_result.checkid = sq.checkid;
-- Sort key skew > 4
UPDATE rstk_metric_result
SET details = sq.details,
priority = sq.priority
FROM (SELECT checkid,
CASE
WHEN Cast(value AS INT) > 0 THEN value
||
' tables sort keys are skewed which indicates that you have to uncompress the sort key column or these columns may not be the right candidate for the sort keys. '
ELSE 'Your sort keys are does not have any skew.'
END AS details,
CASE
WHEN Cast(value AS INT) > 10 THEN 1
WHEN Cast(value AS INT) BETWEEN 1 AND 10 THEN 2
WHEN Cast(value AS INT) =0 then 3
END AS priority
FROM rstk_metric_result
WHERE checkid = 3) sq
WHERE rstk_metric_result.checkid = sq.checkid;
-- Tables with high Skew
UPDATE rstk_metric_result
SET details = sq.details,
priority = sq.priority
FROM (SELECT checkid,
CASE
WHEN Cast(value AS INT) > 0 THEN value
||
' tables have skew in termns of distribution. This will result in more load on few nodes. Consider changing the dist key if required'
ELSE 'Seems the table distribution looks good'
END AS details,
CASE
WHEN Cast(value AS INT) > 10 THEN 1
WHEN Cast(value AS INT) BETWEEN 1 AND 10 THEN 2
WHEN Cast(value AS INT) = 0 then 3
END AS priority
FROM rstk_metric_result
WHERE checkid = 4) sq
WHERE rstk_metric_result.checkid = sq.checkid;
-- Tables without compression
UPDATE rstk_metric_result
SET details = sq.details,
priority = sq.priority
FROM (SELECT checkid,
CASE
WHEN Cast(value AS INT) > 0 THEN value
||
' tables are not compressed yet, this is not a good practice and needs to be fixed immediately, please compress all the columns except the sort key'
ELSE 'Good Job!!! All the tables are compressed'
END AS details,
CASE
WHEN Cast(value AS INT) > 10 THEN 1
WHEN Cast(value AS INT) BETWEEN 1 AND 10 THEN 2
WHEN Cast(value AS INT) =0 then 3
END AS priority
FROM rstk_metric_result
WHERE checkid = 5) sq
WHERE rstk_metric_result.checkid = sq.checkid;
-- WLM queue wait time > 1min
UPDATE rstk_metric_result
SET details = sq.details,
priority = sq.priority
FROM (SELECT checkid,
CASE
WHEN Cast(value AS INT) > 180 THEN ' Sometimes your cluster is spending more time on wait on the queue. The max wait time from last 7 days is '
|| value
||
' seconds. You have to tune your WLM to reduce the wait time.'
WHEN Cast(value AS INT) < 180 THEN
'We found that the wait time is less than 180 second ('||value||') which is Good. But still consider tuning WLM if need.'
ELSE 'Unknown - - Your system tables may not have enough data'
END AS details,
CASE
WHEN Cast(value AS INT) > 900 THEN 1
WHEN Cast(value AS INT) BETWEEN 180 AND 900 THEN 2
WHEN Cast(value AS INT) < 180 then 3
END AS priority
FROM rstk_metric_result
WHERE checkid = 6) sq
WHERE rstk_metric_result.checkid = sq.checkid;
-- WLM max connection hit
UPDATE rstk_metric_result
SET details = sq.details,
priority = sq.priority
FROM (SELECT checkid,
CASE
WHEN Cast(value AS INT) BETWEEN 100 AND 400 THEN
' This cluster hits '
|| value
||
' as the high number of connections recently. RedShift supports 500 max connections, so please tune your WLM setting to reduce the wait time and boost the queries.'
WHEN Cast(value AS INT) < 100 THEN
'Great!!! This cluster never reach 100 connections (only '||value||') at any point of time, But to speed up concurrent queries in a queue, you may tune the WLM settings.'
ELSE 'Unknown - - Your system tables may not have enough data'
END AS details,
CASE
WHEN Cast(value AS INT) > 300 THEN 1
WHEN Cast(value AS INT) BETWEEN 100 AND 300 THEN 2
WHEN Cast(value AS INT) < 100 THEN 3
END AS priority
FROM rstk_metric_result
WHERE checkid = 7) sq
WHERE rstk_metric_result.checkid = sq.checkid;
-- Number of WLM queue
UPDATE rstk_metric_result
SET details = sq.details,
priority = sq.priority
FROM (SELECT checkid,
CASE
WHEN Cast(value AS INT) = 1 THEN
' You are using Default queue only, its a Red Flag. At least keep minimum 2 Queues to balance the workload'
WHEN Cast(value AS INT)BETWEEN 2 AND 3 THEN 'OK! you have '
|| value
||
' queues, not bad. Still if you see any waiting process on the queue then tune WLM'
WHEN Cast(value AS INT)BETWEEN 3 AND 7 THEN 'OK! you have '
|| value
||
' queues, not bad. But make sure it should to eat much resources. For a generic workload 2 to 3 queues will work fine.'
WHEN Cast(value AS INT) =0 then 'You are using Auto WLM, so this check is not applicable'
ELSE 'Unknown - - Your system tables may not have enough data'
END AS details,
CASE
WHEN Cast(value AS INT)= 1 THEN 1
WHEN Cast(value AS INT) BETWEEN 3 AND 7 THEN 2
WHEN Cast(value AS INT) BETWEEN 2 AND 3 THEN 3
END AS priority
FROM rstk_metric_result
WHERE checkid = 8) sq
WHERE rstk_metric_result.checkid = sq.checkid;
-- Auto WLM enabled
UPDATE rstk_metric_result
SET details = sq.details,
priority = sq.priority
FROM (SELECT checkid,
CASE
WHEN Cast(value AS INT) = 0 THEN
' You are using manual WLM, if you are aware about your workload and the manual WLM has more than 2 or 3 queues then may be it will fit. Or just give a try with Auto WLM and let RedShift decide to allocate the resource'
WHEN Cast(value AS INT) > 0 THEN
'You have Auto WLM enbled, Good!!! still you are not convinced then switch to Manual WLM and tune the queues properly.'
ELSE 'Unknown - - Your system tables may not have enough data'
END AS details,
CASE
WHEN Cast(value AS INT) = 0 THEN 2
WHEN Cast(value AS INT) > 0 THEN 2
END AS priority
FROM rstk_metric_result
WHERE checkid = 9) sq
WHERE rstk_metric_result.checkid = sq.checkid;
-- Max concurrency for a slot
UPDATE rstk_metric_result
SET details = sq.details,
priority = sq.priority
FROM (SELECT checkid,
CASE
WHEN Cast(value AS INT) > 20 THEN ' You have allocated'
|| value
||
' to your queue, generally more concurrey reduce the capacity. We recommed to use the slots between 15 to 20'
WHEN Cast(value AS INT) BETWEEN 10 AND 20 THEN 'You have '
|| value
||
' concurrent slots, Good!!! '
WHEN Cast(value AS INT) < 10 THEN 'You have '
|| value
||
' which is very less, it may allocate more resource per slot, but many sessions will go to waiting state iin the queue. Optimal value is 15 to 20'
WHEN value IS NULL then 'You are using Auto WLM, so this check is not applicable'
ELSE 'Unknown - - Your system tables may not have enough data'
END AS details,
CASE
WHEN Cast(value AS INT) > 20 THEN 1
WHEN Cast(value AS INT)BETWEEN 10 AND 20 THEN 2
WHEN Cast(value AS INT) < 10 THEN 3
END AS priority
FROM rstk_metric_result
WHERE checkid = 10) sq
WHERE rstk_metric_result.checkid = sq.checkid;
-- WLM commit queue wait
UPDATE rstk_metric_result
SET details = sq.details,
priority = sq.priority
FROM (SELECT checkid,
CASE
WHEN Cast(value AS INT) > 120 THEN
'We found recently the commit was in the waiting queue for '
|| value
||
' seconds, many reasons for this, but an optimized WLM will make this process much better'
WHEN Cast(value AS INT) BETWEEN 60 AND 120 THEN
'We found recently the commit was in the waiting queue for '
|| value
||
' seconds, no flags in that. If you feel its a high numnber, then an optimized WLM will make this process much better '
WHEN Cast(value AS INT) < 60 THEN 'Great!!! the commit wait was '
|| value
|| ' seconds, this looks good'
ELSE 'Unknown - - Your system tables may not have enough data'
END AS details,
CASE
WHEN Cast(value AS INT) > 120 THEN 1
WHEN Cast(value AS INT) BETWEEN 60 AND 120 THEN 2
WHEN Cast(value AS INT) < 60 THEN 3
END AS priority
FROM rstk_metric_result
WHERE checkid = 11) sq
WHERE rstk_metric_result.checkid = sq.checkid;
-- Ghost rows
UPDATE rstk_metric_result
SET details = sq.details,
priority = sq.priority
FROM (SELECT checkid,
CASE
WHEN Cast(value AS INT) > 100000 THEN
' You have more than 100K Ghost rows totally, it is a Red flag, please run vacuum on these tables.'
WHEN Cast(value AS INT) BETWEEN 1000 AND 100000 THEN 'You have '
|| value
||
' Ghost rows(marked for delete), please run vacuum to remove them'
WHEN Cast(value AS INT) < 1000 THEN
'Awesome!!! You have less than 1K Ghost rows(only '||value||'), but frequently running vacuum will help you to clean up the Ghost rows.'
ELSE 'Unknown - - Your system tables may not have enough data'
END AS details,
CASE
WHEN Cast(value AS INT) > 100000 THEN 1
WHEN Cast(value AS INT) BETWEEN 1000 AND 100000 THEN 2
WHEN Cast(value AS INT) < 1000 THEN 3
END AS priority
FROM rstk_metric_result
WHERE checkid = 12) sq
WHERE rstk_metric_result.checkid = sq.checkid;
-- Tables never performed vacuum (based on STL_Vacuum)
UPDATE rstk_metric_result
SET details = sq.details,
priority = sq.priority
FROM (SELECT checkid,
CASE
WHEN Cast(value AS INT) > 5 THEN
' This cluster has '||value||' tables never vacuumed(from STL_Vacuum result), It is a RedFlag. Frequently running vacuum will make this count 0 and improve the overall process'
WHEN Cast(value AS INT)BETWEEN 1 AND 5 THEN
' This cluster has '||value||' tables where vacuum never run(from STL_Vacuum result), Frequently running vacuum will make this count 0 and improve the overall process'
WHEN Cast(value AS INT) = 0 THEN 'Good Job!!! all the tables are vacummed'
ELSE 'Unknown - - Your system tables may not have enough data'
END AS details,
CASE
WHEN Cast(value AS INT) > 5 THEN 1
WHEN Cast(value AS INT) BETWEEN 1 AND 5 THEN 2
WHEN Cast(value AS INT) = 0 THEN 3
END AS priority
FROM rstk_metric_result
WHERE checkid = 13) sq
WHERE rstk_metric_result.checkid = sq.checkid;
-- Table vacuum older than 5 days
UPDATE rstk_metric_result
SET details = sq.details,
priority = sq.priority
FROM (SELECT checkid,
CASE
WHEN Cast(value AS INT) > 10 THEN
' More than 10 tables did not perform vacuum from past 5 days, we found '||value||' tables. If the does not have any Ghost rows, then ignore this else run the vacuum'
WHEN Cast(value AS INT)BETWEEN 5 AND 10 THEN
'You have less than 10 tables where vacuum did not perform from last 5 days, we found '||value||' tables, this is OK, but still frequently running vacuum will make this count 0 and improve the overall process'
WHEN Cast(value AS INT) = 0 THEN 'Good Job!!! all the tables are vacummed'
ELSE 'Unknown - - Your system tables may not have enough data'
END AS details,
CASE
WHEN Cast(value AS INT) > 10 THEN 1
WHEN Cast(value AS INT) BETWEEN 5 AND 10 THEN 2
WHEN Cast(value AS INT) = 0 THEN 3
END AS priority
FROM rstk_metric_result
WHERE checkid = 14) sq
WHERE rstk_metric_result.checkid = sq.checkid;
-- Tables with tombstone blocks
UPDATE rstk_metric_result
SET details = sq.details,
priority = sq.priority
FROM (SELECT checkid,
CASE
WHEN Cast(value AS INT) > 5 THEN
' There are '||value||' tables where Tombstone blocks are there. It will spill the disk quickly and it is a Red Flag. Frequently running vacuum will make this count 0 and improve the overall process'
WHEN Cast(value AS INT)BETWEEN 1 AND 5 THEN
' There are '||value||' tables where Tombstone blocks are there, Frequently running vacuum will make this count 0 and improve the overall process'
WHEN Cast(value AS INT) = 0 THEN 'Good Job!!! No Tombstone blocks found'
ELSE 'Unknown - - Your system tables may not have enough data'
END AS details,
CASE
WHEN Cast(value AS INT) > 5 THEN 1
WHEN Cast(value AS INT) BETWEEN 1 AND 5 THEN 2
WHEN Cast(value AS INT) = 0 THEN 3
END AS priority
FROM rstk_metric_result
WHERE checkid = 15) sq
WHERE rstk_metric_result.checkid = sq.checkid;
-- Tables with missing stats
UPDATE rstk_metric_result
SET details = sq.details,
priority = sq.priority
FROM (SELECT checkid,
CASE
WHEN Cast(value AS INT) > 5 THEN ' We found '
|| value
||
' tables with missing statistics, It is a main performance bottleneck. Please run Analyze to update the statistics'
WHEN Cast(value AS INT)BETWEEN 1 AND 5 THEN
'We found '||value||' tables with missing statistics, it is a less numer. But please run Analyze to update the statistics'
WHEN Cast(value AS INT) = 0 THEN
'Awesome!!! All the tables statistics are upto date'
ELSE 'Unknown - - Your system tables may not have enough data'
END AS details,
CASE
WHEN Cast(value AS INT) > 5 THEN 1
WHEN Cast(value AS INT) BETWEEN 1 AND 5 THEN 2
WHEN Cast(value AS INT) = 0 THEN 3
END AS priority
FROM rstk_metric_result
WHERE checkid = 16) sq
WHERE rstk_metric_result.checkid = sq.checkid;
-- Tables with stale stats (> 5 percent)
UPDATE rstk_metric_result
SET details = sq.details,
priority = sq.priority
FROM (SELECT checkid,
CASE
WHEN Cast(value AS INT) > 5 THEN ' We found '
|| value
||
' tables with stale statistics (greater than 5 percent), It is a main performance bottleneck. Please run Analyze to update the statistics'
WHEN Cast(value AS INT)BETWEEN 1 AND 5 THEN
'You have '||value||' tables with stale statistics (less than 5 percent), Please run Analyze to update the statistics'
WHEN Cast(value AS INT) = 0 THEN
'Awesome!!! All the tables statistics are upto date'
ELSE 'Unknown - - Your system tables may not have enough data'
END AS details,
CASE
WHEN Cast(value AS INT) > 5 THEN 1
WHEN Cast(value AS INT) BETWEEN 1 AND 5 THEN 2
WHEN Cast(value AS INT) = 0 THEN 3
END AS priority
FROM rstk_metric_result
WHERE checkid = 17) sq
WHERE rstk_metric_result.checkid = sq.checkid;
-- Top sized tables
UPDATE rstk_metric_result
SET details = sq.details,
priority = sq.priority
FROM (SELECT checkid,
CASE
WHEN Cast(value AS INT) > 2 THEN
' You have '||value||' tables where the total size of those tables are greter than 40% of the total cluster size. Please consider to use RedShift Spectrum is possible.'
WHEN Cast(value AS INT)BETWEEN 1 AND 2 THEN
' You have '||value||' tables where the total size of those tables are greter than 40% of the total cluster size. Please consider to use RedShift Spectrum is possible'
WHEN Cast(value AS INT) = 0 THEN
'Nice!!! All the tables are having less than 40% of the usgae from the total size'
ELSE 'Unknown - - Your system tables may not have enough data'
END AS details,
CASE
WHEN Cast(value AS INT) > 2 THEN 1
WHEN Cast(value AS INT) BETWEEN 1 AND 2 THEN 2
WHEN Cast(value AS INT) = 0 THEN 3
END AS priority
FROM rstk_metric_result
WHERE checkid = 18) sq
WHERE rstk_metric_result.checkid = sq.checkid;
-- Table with high number of alerts (>3 alerts)
UPDATE rstk_metric_result
SET details = sq.details,
priority = sq.priority
FROM (SELECT checkid,
CASE
WHEN Cast(value AS INT) > 5 THEN ' We found that there are '
|| value
||
' tables that has more than 3 alerts. Please visit stl_alert_event_log table to find those alerts'
WHEN Cast(value AS INT) BETWEEN 0 AND 5 THEN
'Nice!!! Your tables does not have much alerts.'
ELSE 'Unknown - - Your system tables may not have enough data'
END AS details,
CASE
WHEN Cast(value AS INT) > 5 THEN 1
WHEN Cast(value AS INT) BETWEEN 1 AND 5 THEN 2
WHEN Cast(value AS INT) = 0 THEN 3
END AS priority
FROM rstk_metric_result
WHERE checkid = 19) sq
WHERE rstk_metric_result.checkid = sq.checkid;
-- Non scaned Tables (based on STL Scan)
UPDATE rstk_metric_result
SET details = sq.details,
priority = sq.priority
FROM (SELECT checkid,
CASE
WHEN Cast(value AS INT) > 0 THEN ' We found that there are '
|| value
||
' tables never scanned(from STL_SCAN results), Please take a look at these tables, if not required then remove them or move to Specturm'
WHEN Cast(value AS INT) = 0 THEN 'Nice!!! All the tables are active'
ELSE 'Unknown - - Your system tables may not have enough data'
END AS details,
CASE
WHEN Cast(value AS INT) > 5 THEN 1
WHEN Cast(value AS INT) BETWEEN 1 AND 5 THEN 2
WHEN Cast(value AS INT) = 0 THEN 3
END AS priority
FROM rstk_metric_result
WHERE checkid = 20) sq
WHERE rstk_metric_result.checkid = sq.checkid;
-- Tables without backup
UPDATE rstk_metric_result
SET details = sq.details,
priority = sq.priority
FROM (SELECT checkid,
CASE
WHEN Cast(value AS INT) > 5 THEN ' There are '
|| value
||
' tables that mentioned as NOBACKUP in DDL, these tables are never backup via snapshot. Please take a look at these tables, if required then remove NO BACKUP flag'
WHEN Cast(value AS INT) = 0 THEN 'You have '
|| value
||
' tables with NoBackup flag, This looks fine'
ELSE 'Unknown - - Your system tables may not have enough data'
END AS details,
CASE
WHEN Cast(value AS INT) > 0 THEN 1
WHEN Cast(value AS INT) = 0 THEN 3
END AS priority
FROM rstk_metric_result
WHERE checkid = 21) sq
WHERE rstk_metric_result.checkid = sq.checkid;
-- Tables with fragmentation
UPDATE rstk_metric_result
SET details = sq.details,
priority = sq.priority
FROM (SELECT checkid,
CASE
WHEN Cast(value AS INT) > 5 THEN 'This cluster has '
|| value
||
' tables with Fragmentation, Please run vacuum to defrag the tables'
WHEN Cast(value AS INT) = 0 THEN
'Great!!! We did not find any tables with fragmentation'
ELSE 'Unknown - - Your system tables may not have enough data'
END AS details,
CASE
WHEN Cast(value AS INT) > 5 THEN 1
WHEN Cast(value AS INT) BETWEEN 1 AND 5 THEN 2
WHEN Cast(value AS INT) = 0 THEN 3
END AS priority
FROM rstk_metric_result
WHERE checkid = 22) sq
WHERE rstk_metric_result.checkid = sq.checkid;
-- Disk based queries
UPDATE rstk_metric_result
SET details = sq.details,
priority = sq.priority
FROM (SELECT checkid,
CASE
WHEN Cast(value AS INT) > 500 THEN 'You have '
|| value
||
' disk based queries, this can spill your disk too quickly and gives bad performance. WLM setting can also help you to fix this'
WHEN Cast(value AS INT) BETWEEN 300 AND 500 THEN 'You have '
|| value
||
' disk based queries, Its a less count, but Disk based queries can spill your disk too quickly and gives bad performance. WLM setting can also help you to fix this'
WHEN Cast(value AS INT) between 1 and 300 THEN 'Not much disk based quries. You have '||value||' quries only'
WHEN Cast(value AS INT) = 0 then 'Awesome!!! No disk based quries'
ELSE 'Unknown - - Your system tables may not have enough data'
END AS details,
CASE
WHEN Cast(value AS INT) > 500 THEN 1
WHEN Cast(value AS INT) BETWEEN 300 AND 500 THEN 2
WHEN Cast(value AS INT) < 300 THEN 3
END AS priority
FROM rstk_metric_result
WHERE checkid = 23) sq
WHERE rstk_metric_result.checkid = sq.checkid;
-- COPY not optimized
UPDATE rstk_metric_result
SET details = sq.details,
priority = sq.priority
FROM (SELECT checkid,
CASE
WHEN Cast(value AS INT) > 5 THEN 'You did the COPY operation '
|| value
||
' times without having the correct number for files, Generally the number of files is a multiple of the number of slices in your cluster'
WHEN Cast(value AS INT) BETWEEN 1 AND 5 THEN 'You did the COPY operation '
|| value
||
' times without having the correct number for files. Its a less number. Generally the number of files is a multiple of the number of slices in your cluster'
WHEN Cast(value AS INT) = 0 THEN 'Awesome!!! You files are properlly sized'
ELSE 'Unknown - - Your system tables may not have enough data'
END AS details,
CASE
WHEN Cast(value AS INT) > 5 THEN 1
WHEN Cast(value AS INT) BETWEEN 1 AND 5 THEN 2
WHEN Cast(value AS INT) = 0 THEN 3
END AS priority
FROM rstk_metric_result
WHERE checkid = 24) sq
WHERE rstk_metric_result.checkid = sq.checkid;
-- High CPU queries (>80 Percent)
UPDATE rstk_metric_result
SET details = sq.details,
priority = sq.priority
FROM (SELECT checkid,
CASE
WHEN Cast(value AS INT) > 10 THEN 'We found that '
|| value
||
' queries consumed more than 80% of the CPU. Please take a look at these queries and tune them.'
WHEN Cast(value AS INT) BETWEEN 5 AND 10 THEN 'We found that '
|| value
||
' queries consumed more than 80% of the CPU. This is OK.'
WHEN Cast(value AS INT) < 5 THEN
'Awesome!!! You do not have much High CPU consuming queries.'
ELSE 'Unknown - - Your system tables may not have enough data'
END AS details,
CASE
WHEN Cast(value AS INT) > 10 THEN 1
WHEN Cast(value AS INT) BETWEEN 5 AND 10 THEN 2
WHEN Cast(value AS INT) < 5 THEN 3
END AS priority
FROM rstk_metric_result
WHERE checkid = 25) sq
WHERE rstk_metric_result.checkid = sq.checkid;
-- Most frequent Alert (> 500 times)
UPDATE rstk_metric_result
SET details = sq.details,
priority = sq.priority
from (
SELECT checkid,
CASE
WHEN cast(value AS INT) IS NOT NULL THEN 'We found that '
|| value
||' events are occuring too many times (more then 500 times), Its better to take a look at the tables who has these alerts and tune'
ELSE 'You do not have much alerts on alert table'
END AS details,
(
SELECT count(event)
FROM (
SELECT trim(split_part(event, ':', 1)) AS event,
count(*)
FROM stl_alert_event_log
GROUP BY 1)
WHERE count > 500) AS count,
CASE
WHEN cast(count AS INT) > 10 THEN 1
WHEN cast(count AS INT) BETWEEN 5 AND 10 THEN 2
WHEN cast(count AS INT) < 5 THEN 3
END AS priority
FROM rstk_metric_result
WHERE checkid = 26) sq
WHERE rstk_metric_result.checkid = sq.checkid;
-- Long running queries (> 30mins)
UPDATE rstk_metric_result
SET details = sq.details,
priority = sq.priority
FROM (SELECT checkid,
CASE
WHEN Cast(value AS INT) > 120 THEN 'You have '
|| value
||
' queries that runs more than 120 mins, Its a Red Flag, please take a look and tune those queries.'
WHEN Cast(value AS INT) BETWEEN 30 AND 120 THEN 'You have '
|| value
||
' queries that runs from 1Hr to 2Hrs, lease take a look and tune those queries.'
WHEN Cast(value AS INT) < 30 THEN
'Awesome!!! All of your queries are completed within 30mins'
ELSE 'Unknown - - Your system tables may not have enough data'
END AS details,
CASE
WHEN Cast(value AS INT) > 300 THEN 1
WHEN Cast(value AS INT) BETWEEN 300 AND 100 THEN 2
WHEN Cast(value AS INT) < 100 THEN 3
END AS priority
FROM rstk_metric_result
WHERE checkid = 27) sq
WHERE rstk_metric_result.checkid = sq.checkid;
-- Max temp space used by queries
UPDATE rstk_metric_result
SET details = sq.details,
priority = sq.priority
FROM (SELECT checkid,
CASE
WHEN Cast(value AS INT) > 10 THEN
'One of your queries consumed '
|| value
||
' GB of disk space to store the intermediate results. If your cluster is already consumed 70% of the disk, then its a Red Flag. This may lead to spill the disk too quickly.'
WHEN Cast(value AS INT) BETWEEN 5 AND 10 THEN 'One of your queries consumed '
|| value
||
' GB of disk space to store the intermediate results. This may lead to spill the disk too quickly.'
WHEN Cast(value AS INT) < 5 THEN
'Your queries never consumed more than 5Gb to store intermediate results. This seems OK.'
ELSE 'Unknown - - Your system tables may not have enough data'
END AS details,
CASE
WHEN Cast(value AS INT) > 10 THEN 1
WHEN Cast(value AS INT) BETWEEN 5 AND 10 THEN 2
WHEN Cast(value AS INT) < 5 THEN 3
END AS priority
FROM rstk_metric_result
WHERE checkid = 28) sq
WHERE rstk_metric_result.checkid = sq.checkid;
-- Show the result:
SELECT CASE
WHEN priority = 0 THEN 0
WHEN priority = 1 THEN 10
WHEN priority = 2 THEN 50
WHEN priority = 3 THEN 200
ELSE 1000
END AS priority,
category,
finding,
details,
url
FROM rstk_metric_result
ORDER BY priority;
|
<reponame>CC-UNIP-CAMPINAS/SAPEP-back
-- AlterTable
ALTER TABLE `Patient` MODIFY `addressNumber` VARCHAR(191) DEFAULT 'S/N';
-- AlterTable
ALTER TABLE `User` ALTER COLUMN `updatedAt` DROP DEFAULT;
|
SELECT $1::INT + $2::INT;
|
<filename>inst/sql/sabl_lls_age1.sql
SELECT
year,
station_number,
startlat,
startlong,
sex,
age,
length,
weight,
age_notes
FROM afsc.age_view
WHERE country != 'Japan'
AND length > 0
AND length > 0
AND year = 2020
AND age_notes is null
|
<reponame>Legoman99573/BanManager-WebAPI
DROP TABLE `bm_ip_ban_all`;
DROP TABLE `bm_ip_ban_records`;
DROP TABLE `bm_ip_bans`;
DROP TABLE `bm_ip_mute_records`;
DROP TABLE `bm_ip_mutes`;
DROP TABLE `bm_ip_range_ban_records`;
DROP TABLE `bm_ip_range_bans`;
DROP TABLE `bm_ip_unban_all`;
DROP TABLE `bm_player_ban_all`;
DROP TABLE `bm_player_ban_records`;
DROP TABLE `bm_player_bans`;
DROP TABLE `bm_player_history`;
DROP TABLE `bm_player_kicks`;
DROP TABLE `bm_player_mute_all`;
DROP TABLE `bm_player_mute_records`;
DROP TABLE `bm_player_mutes`;
DROP TABLE `bm_player_note_all`;
DROP TABLE `bm_player_notes`;
DROP TABLE `bm_player_pins`;
DROP TABLE `bm_player_report_commands`;
DROP TABLE `bm_player_report_comments`;
DROP TABLE `bm_player_report_locations`;
DROP TABLE `bm_player_report_states`;
DROP TABLE `bm_player_reports`;
DROP TABLE `bm_player_unban_all`;
DROP TABLE `bm_player_unmute_all`;
DROP TABLE `bm_player_warnings`;
DROP TABLE `bm_players`;
DROP TABLE `bm_report_logs`;
DROP TABLE `bm_server_logs`;
|
<reponame>goldmansachs/obevo-kata
CREATE PROCEDURE SP160(OUT MYCOUNT INTEGER) SPECIFIC SP160_93028 LANGUAGE SQL NOT DETERMINISTIC READS SQL DATA NEW SAVEPOINT LEVEL BEGIN ATOMIC DECLARE MYVAR INT;SELECT COUNT(*)INTO MYCOUNT FROM TABLE79;SELECT COUNT(*)INTO MYCOUNT FROM TABLE162;SELECT COUNT(*)INTO MYCOUNT FROM TABLE3;SELECT COUNT(*)INTO MYCOUNT FROM VIEW18;SELECT COUNT(*)INTO MYCOUNT FROM VIEW48;SELECT COUNT(*)INTO MYCOUNT FROM VIEW93;CALL SP866(MYVAR);CALL SP349(MYVAR);CALL SP987(MYVAR);CALL SP804(MYVAR);END
GO
|
<reponame>eliana-flo/folio-analytics<filename>sql/tmp/title_count/deprecated_title_count_v0.83.sql
/** RM TITLE COUNT
MAIN TABLES WITH NEEDED COLUMNS
- inventory_instances
- id
- cataloged_date
- discovery_suppress
- instance_type_id
- mode_of_issuance_id
- previously_held
- status_id
- status_updated_date (not in ldp at this time)
- data JSON:
- instanceFormatIds
- natureOfContentTermIds
- publication->dateOfPublication
- statisticalCodeIds
- inventory_holdings
- id
- call_number
- call_number_type_id
- holdings_type_id
- instance_id
- permanent_location_id
- receipt_status
- discovery_suppress (not in ldp at this time)
- data JSON:
- statisticalCodeIds
Tables for additional fields -- Using IDs from Instances and Holdings to get names
id, name :
- inventory_instance_statuses
- inventory_instance_types
- inventory_modes_of_issuance
- inventory_statistical_codes
- inventory_nature_of_content_terms
- inventory_instance_formats
- inventory_holdings_types
- inventory_call_number_types
- inventory_campuses
- inventory_institutions
- inventory_libraries
- inventory_instance_relationships_types
id, campus_id, institution_id, library_id, discovery_display_name:
- inventory_locations
id, super_instance_id, sub_instance_id:
- inventory_instance_relationships
AGGREGATION:
instance_type, mode_of_issuance, instance_format, instance_statistical_code, instance_nature_of_content, holding_type, callnumber_type, holding_statistical_code, super_relation_type,
sub_relation_type
FILTERS: FOR USERS TO SELECT
cataloged_date, instance_type, instance_format, mode_of_issuance, nature_of_content_terms, holdings_receipt_status, holdings_type, holdings_callnumber,
instance_statistical_code, holdings_statistical_code, permanent_location_name_filter, campus_filter, library_filter, institution_filter
HARDCODED FILTERS
instance_discovery_suppress, instance_statuses (cataloged or batchloaded)
STILL IN PROGRESS:
- dateOfPublication
- add more filters and values for virtual titles as hardcoded filter (instance_type, nature_of_content, inventory_libraries.name)
- holdings_discovery_suppress (not in ldp at this time)
- status_updated_date (not in ldp at this time)
- add more fields as they are avaiable (eg. geographic, language, open access, withdrawn)
*/
WITH parameters AS (
/** Choose a start and end date if needed */
SELECT
'1950-04-01' :: DATE AS cataloged_date_start_date, --ex:2000-01-01
'2020-05-01' :: DATE AS cataloged_date_end_date, -- ex:2020-01-01
-- POSSIBLE FORMAT MEASURES -- USE EXACTLY EXACT TERM, CASE SENSITIVE. USE ONE FILTER FOR EACH SPECIFIC ELEMENT NEEDED
'' :: VARCHAR AS instance_type_filter1, -- select 'Text', 'Performed Music', 'Other' etc. or leave blank for all.
'' :: VARCHAR AS instance_type_filter2, -- select 'Text', 'Performed Music', 'Other' etc. or leave blank for all.
'' :: VARCHAR AS instance_type_filter3, -- select 'Text', 'Performed Music', 'Other' etc. or leave blank for all.
'' :: VARCHAR AS instance_format_filter1,-- select 'audio -- audio disc', 'computer -- other' etc. or leave blank for all. You can use %% as wildcards.
'' :: VARCHAR AS instance_format_filter2,-- select 'audio -- audio disc', 'computer -- other' etc. or leave blank for all. You can use %% as wildcards.
'' :: VARCHAR AS instance_format_filter3,-- select 'audio -- audio disc', 'computer -- other' etc. or leave blank for all. You can use %% as wildcards.
'' :: VARCHAR AS instance_mode_of_issuance_filter, -- select 'integrating resource', 'serial', 'multipart monograph' etc. or leave blank for all.
'' :: VARCHAR AS nature_of_content_terms_filter, -- select 'textbook', 'journal' etc. or leave blank for all.
'' :: VARCHAR AS holdings_receipt_status_filter, -- select 'partially received', 'fully received' etc.
'' :: VARCHAR AS holdings_type_filter, -- select 'Electronic', 'Monograph' etc. or elave blank for all. (This is case sensitive)
'' :: VARCHAR AS holdings_callnumber_type_filter, -- select .....
'' :: VARCHAR AS holdings_callnumber_filter, -- use %% as wildcards '1234-abc%%','%%1234-abc','%%1234-abc%%'
-- STATISTICAL CODES
'' :: VARCHAR AS instance_statistical_code_filter, -- select 'Active Serial', 'Book, print (books)', 'Book, electronic (ebooks), 'Microfiche' etc. or leave blank for all.
'' :: VARCHAR AS holdings_statistical_code_filter, -- select 'Active Serial', 'Book, print (books)', 'Book, electronic (ebooks), 'Microfiche' etc. or leave blank for all.
-- LOCATION
'' :: VARCHAR AS permanent_location_name_filter, --Online, Annex, Main Library
'' :: VARCHAR AS campus_filter, -- select 'Main Campus','City Campus','Online' as needed
'' :: VARCHAR AS library_filter, -- select 'Datalogisk Institut','Adelaide Library' as needed
'' :: VARCHAR AS institution_filter -- select 'K�benhavns Universitet','Montoya College' as needed
),
-- SUBQUERIES/TO MAKE NEEDED TEMPORARY TABLES --
instance_formats_extract AS (
SELECT
inst.id AS instance_id,
JSON_ARRAY_ELEMENTS_TEXT(JSON_EXTRACT_PATH(inst.data, 'instanceFormatIds')) :: VARCHAR AS instance_format_id
FROM
inventory_instances AS inst
),
instance_format_names AS (
SELECT
instance_formats_extract.instance_id AS instance_id,
instform.name AS instance_format_name
FROM instance_formats_extract
LEFT JOIN inventory_instance_formats AS instform
ON instance_formats_extract.instance_format_id = instform.id
),
instance_statisticalcodes_extract AS (
SELECT
inst.id AS instance_id,
JSON_ARRAY_ELEMENTS_TEXT(JSON_EXTRACT_PATH(inst.data, 'statisticalCodeIds')) :: VARCHAR AS instance_statisticalcode_id
FROM
inventory_instances AS inst
),
instance_statisticalcode_names AS (
SELECT
instance_statisticalcodes_extract.instance_id AS instance_id,
inststatcode.name AS instance_statisticalcode_name
FROM instance_statisticalcodes_extract
LEFT JOIN inventory_statistical_codes AS inststatcode
ON instance_statisticalcodes_extract.instance_statisticalcode_id = inststatcode.id
),
instance_natureofcontentterms_extract AS (
SELECT
inst.id AS instance_id,
JSON_ARRAY_ELEMENTS_TEXT(JSON_EXTRACT_PATH(inst.data, 'natureOfContentTermIds')) :: VARCHAR AS instance_natureofcontent_id
FROM
inventory_instances AS inst
),
instance_natureofcontentterms_names AS (
SELECT
instance_natureofcontentterms_extract.instance_id AS instance_id,
instnatcontent.name AS instance_natureofcontentterms_name
FROM instance_natureofcontentterms_extract
LEFT JOIN inventory_nature_of_content_terms AS instnatcontent
ON instance_natureofcontentterms_extract.instance_natureofcontent_id = instnatcontent.id
),
holding_statisticalcodes_extract AS (
SELECT
hold.id AS holding_id,
JSON_ARRAY_ELEMENTS_TEXT(JSON_EXTRACT_PATH(hold.data, 'statisticalCodeIds')) :: VARCHAR AS holding_statisticalcode_id
FROM
inventory_holdings AS hold
),
holding_statisticalcode_names AS (
SELECT
holding_statisticalcodes_extract.holding_id AS holding_id,
inststatcode.name AS holding_statisticalcode_name
FROM holding_statisticalcodes_extract
LEFT JOIN inventory_statistical_codes AS inststatcode
ON holding_statisticalcodes_extract.holding_statisticalcode_id = inststatcode.id
)
---------- MAIN QUERY ----------
SELECT
instance_types.name AS "instance type",
instance_mode_of_issuance.name AS "instance mode of issuance",
instance_format_names.instance_format_name AS "instance format",
instance_statisticalcode_names.instance_statisticalcode_name AS "instance statistical code",
instance_natureofcontentterms_names.instance_natureofcontentterms_name AS "instance nature of content",
holding_type.name AS "holding type",
call_number_type.name AS "callnumber type",
holding_statisticalcode_names.holding_statisticalcode_name AS "holding statistical code",
hold.receipt_status AS "holdings receipt status",
locations.name AS "location",
inst.previously_held AS "previously held",
super_relation_type.name AS "super_instance as",
sub_relation_type.name AS "sub_instance as",
COUNT(DISTINCT inst.id) AS "title count"
-- pull the instances related data by joining tables
FROM inventory_instances AS inst
LEFT JOIN inventory_instance_types AS instance_types
ON inst.instance_type_id = instance_types.id
LEFT JOIN inventory_instance_statuses AS instance_statuses
ON instance_statuses.id = inst.status_id
LEFT JOIN inventory_modes_of_issuance as instance_mode_of_issuance
ON instance_mode_of_issuance.id = inst.mode_of_issuance_id
LEFT JOIN instance_format_names
ON instance_format_names.instance_id = inst.id
LEFT JOIN instance_statisticalcode_names
ON instance_statisticalcode_names.instance_id = inst.id
LEFT JOIN instance_natureofcontentterms_names
ON instance_natureofcontentterms_names.instance_id = inst.id
-- add the holdings stuff by joining tables
LEFT JOIN inventory_holdings AS hold
ON hold.instance_id = inst.id
LEFT JOIN inventory_holdings_types AS holding_type
ON holding_type.id = hold.holdings_type_id
LEFT JOIN inventory_call_number_types AS call_number_type
ON call_number_type.id = hold. call_number_type_id
LEFT JOIN holding_statisticalcode_names
ON holding_statisticalcode_names.holding_id = hold.id
-- get location stuff by joining tables
LEFT JOIN inventory_locations AS locations
ON hold.permanent_location_id = locations.id
LEFT JOIN inventory_libraries AS library
ON locations.library_id = library.id
LEFT JOIN inventory_campuses AS campus
ON library.campus_id = campus.id
LEFT JOIN inventory_institutions AS institution
ON campus.institution_id = institution.id
-- get instance relations and their types
LEFT JOIN inventory_instance_relationships AS super_relation
ON super_relation.super_instance_id = inst.id
LEFT JOIN inventory_instance_relationships AS sub_relation
ON sub_relation.sub_instance_id = inst.id
LEFT JOIN inventory_instance_relationship_types as super_relation_type
ON super_relation.instance_relationship_type_id = super_relation_type.id
LEFT JOIN inventory_instance_relationship_types as sub_relation_type
ON sub_relation.instance_relationship_type_id = sub_relation_type.id
WHERE
-- hardcoded filters
-- if suppressed don't count
((NOT inst.discovery_suppress) OR (inst.discovery_suppress ISNULL))
AND
-- filter all virtual titles (surely need more virtual indicators)
(instance_format_names.instance_format_name NOT IN ('computer -- online resource') or instance_format_names.instance_format_name ISNULL)
AND
(library.name NOT IN ('Online') or library.name ISNULL)
AND
/* this is commented out atm because of to few test data
((instance_statuses.name = 'Cataloged') OR
(instance_statuses.name = 'Batchloaded')) -- get only instances with the right status
-- begin to process the set filters
AND
inst.cataloged_date :: DATE >= (SELECT cataloged_date_start_date FROM parameters)
AND
inst.cataloged_date :: DATE < (SELECT cataloged_date_end_date FROM parameters)
AND
*/
(
(
instance_types.name IN (
(SELECT instance_type_filter1 FROM parameters),
(SELECT instance_type_filter2 FROM parameters),
(SELECT instance_type_filter3 FROM parameters)
)
)
OR
(
(SELECT instance_type_filter1 FROM parameters) = '' AND
(SELECT instance_type_filter2 FROM parameters) = '' AND
(SELECT instance_type_filter3 FROM parameters) = ''
)
)
AND
(
(
instance_format_names.instance_format_name LIKE (SELECT instance_format_filter1 FROM parameters) OR
instance_format_names.instance_format_name LIKE (SELECT instance_format_filter2 FROM parameters) OR
instance_format_names.instance_format_name LIKE (SELECT instance_format_filter3 FROM parameters)
)
OR
(
(SELECT instance_format_filter1 FROM parameters) = '' AND
(SELECT instance_format_filter2 FROM parameters) = '' AND
(SELECT instance_format_filter3 FROM parameters) = ''
)
)
AND
(instance_mode_of_issuance.name = (SELECT instance_mode_of_issuance_filter FROM parameters) OR
(SELECT instance_mode_of_issuance_filter FROM parameters) = '')
AND
(instance_natureofcontentterms_names.instance_natureofcontentterms_name =
(SELECT nature_of_content_terms_filter FROM parameters) OR
(SELECT nature_of_content_terms_filter FROM parameters) = '')
AND
(hold.receipt_status = (SELECT holdings_receipt_status_filter FROM parameters) OR
(SELECT holdings_receipt_status_filter FROM parameters) = '')
AND
(holding_type.name = (SELECT holdings_type_filter FROM parameters) OR
(SELECT holdings_type_filter FROM parameters) = '')
AND
(call_number_type.name = (SELECT holdings_callnumber_type_filter FROM parameters) OR
(SELECT holdings_callnumber_type_filter FROM parameters) = '')
AND
(hold.call_number like (SELECT holdings_callnumber_filter FROM parameters) OR
(SELECT holdings_callnumber_filter FROM parameters) = '')
AND
(instance_statisticalcode_names.instance_statisticalcode_name =
(SELECT instance_statistical_code_filter FROM parameters) OR
(SELECT instance_statistical_code_filter FROM parameters) = '')
AND
(holding_statisticalcode_names.holding_statisticalcode_name =
(SELECT holdings_statistical_code_filter FROM parameters) OR
(SELECT holdings_statistical_code_filter FROM parameters) = '')
AND
(campus.name = (SELECT campus_filter FROM parameters) OR
(SELECT campus_filter FROM parameters) = '')
AND
(institution.name = (SELECT institution_filter FROM parameters) OR
(SELECT institution_filter FROM parameters) = '')
AND
(library.name = (SELECT library_filter FROM parameters) OR
(SELECT library_filter FROM parameters) = '')
AND
(locations.name =
(SELECT permanent_location_name_filter FROM parameters) OR
(SELECT permanent_location_name_filter FROM parameters) = '')
GROUP BY
-- you may want to comment any group option to customize your view but keep in mind to have it commented in the SELECT section too
instance_types.name,
instance_mode_of_issuance.name,
instance_format_names.instance_format_name,
instance_statisticalcode_names.instance_statisticalcode_name,
instance_natureofcontentterms_names.instance_natureofcontentterms_name,
holding_type.name,
call_number_type.name,
holding_statisticalcode_names.holding_statisticalcode_name,
hold.receipt_status,
inst.previously_held,
locations.name,
super_relation_type.name,
sub_relation_type.name
;
|
<filename>src/test/regress/sql/round(date).sql<gh_stars>100-1000
set grammar to oracle;
set datestyle='ISO,YMD';
SELECT ROUND (TO_DATE ('2000-10-20', 'YYYY-MM-DD'),'YEAR') nd FROM DUAL;
SELECT ROUND (TO_DATE ('2000-7-2', 'YYYY-MM-DD'),'SYEAR') nd FROM DUAL;
SELECT ROUND (TO_DATE ('2000-7-1', 'YYYY-MM-DD'),'YYYY') nd FROM DUAL;
SELECT ROUND (TO_DATE ('2000-6-30', 'YYYY-MM-DD'),'SYYYY') nd FROM DUAL;
SELECT ROUND (TO_DATE ('2000-12-20', 'YYYY-MM-DD'),'YYY') nd FROM DUAL;
SELECT ROUND (TO_DATE ('2000-1-20', 'YYYY-MM-DD'),'YY') nd FROM DUAL;
SELECT ROUND (TO_DATE ('2000-10-20', 'YYYY-MM-DD'),'Y') nd FROM DUAL;
SELECT ROUND (TO_DATE ('2000-10-20', 'YYYY-MM-DD'),'IYYY') nd FROM DUAL;
SELECT ROUND (TO_DATE ('2000-10-20', 'YYYY-MM-DD'),'IY') nd FROM DUAL;
SELECT ROUND (TO_DATE ('2000-10-15', 'YYYY-MM-DD'),'month') nd FROM DUAL;
SELECT ROUND (TO_DATE ('2000-2-15 22:40:45', 'YYYY-MM-DD hh24:mi:ss'),'mon') nd FROM DUAL;
SELECT ROUND (TO_DATE ('2000-2-16 22:40:45', 'YYYY-MM-DD hh24:mi:ss'),'rm') nd FROM DUAL;
SELECT ROUND (TO_DATE ('2000-2-16 22:40:45', 'YYYY-MM-DD hh24:mi:ss'),'mm') nd FROM DUAL;
SELECT ROUND (TO_DATE ('2000-10-15 22:40:45', 'YYYY-MM-DD hh24:mi:ss'),'j') nd FROM DUAL;
SELECT ROUND (TO_DATE ('2000-10-15 22:40:45', 'YYYY-MM-DD hh24:mi:ss'),'dd') nd FROM DUAL;
SELECT ROUND (TO_DATE ('2000-10-15 22:40:45', 'YYYY-MM-DD hh24:mi:ss'),'ddd') nd FROM DUAL;
SELECT ROUND (TO_DATE ('2016-3-1 22:40:45', 'YYYY-MM-DD hh24:mi:ss'),'day') nd FROM DUAL;
SELECT ROUND (TO_DATE ('2016-3-2 22:40:45', 'YYYY-MM-DD hh24:mi:ss'),'dy') nd FROM DUAL;
SELECT ROUND (TO_DATE ('2016-3-3 22:40:45', 'YYYY-MM-DD hh24:mi:ss'),'D') nd FROM DUAL;
SELECT ROUND (TO_DATE ('2000-2-16 22:40:45', 'YYYY-MM-DD hh24:mi:ss'),'Q') nd FROM DUAL;
SELECT ROUND (TO_DATE ('2016-2-4', 'YYYY-MM-DD'),'ww') nd FROM DUAL;
SELECT ROUND (TO_DATE ('2016-2-4', 'YYYY-MM-DD'),'iw') nd FROM DUAL;
SELECT ROUND (TO_DATE ('2016-3-10', 'YYYY-MM-DD'),'w') nd FROM DUAL;
SELECT ROUND (TO_DATE ('2016-3-2 22:29:50', 'YYYY-MM-DD hh24:mi:ss'),'hh24') nd FROM DUAL;
SELECT ROUND (TO_DATE ('2016-3-2 12:29:50', 'YYYY-MM-DD hh:mi:ss'),'hh') nd FROM DUAL;
SELECT ROUND (TO_DATE ('2016-3-2 11:39:50', 'YYYY-MM-DD hh:mi:ss'),'hh12') nd FROM DUAL;
SELECT ROUND (TO_DATE ('2016-3-2 11:39:50 pm', 'YYYY-MM-DD hh:mi:ss pm'),'hh12') nd FROM DUAL;
SELECT ROUND (TO_DATE ('2016-3-2 11:39:50 am', 'YYYY-MM-DD hh:mi:ss am'),'hh12') nd FROM DUAL;
SELECT ROUND (TO_DATE ('2016-3-2 11:39:30', 'YYYY-MM-DD hh:mi:ss'),'mi') nd FROM DUAL;
SELECT ROUND (TO_DATE ('2016-3-2 11:39:30', 'YYYY-MM-DD hh:mi:ss'),to_char('mi')) nd FROM DUAL;
SELECT ROUND (null,'mi') nd FROM DUAL;
SELECT ROUND ('','mi') nd FROM DUAL;
SELECT ROUND (TO_DATE ('2016-3-2 11:39:30', 'YYYY-MM-DD hh:mi:ss'),'') nd FROM DUAL;
|
CREATE TABLE ARTICLE (
id int NOT NULL AUTO_INCREMENT,
title varchar(1024) NOT NULL,
slug varchar(1024) NOT NULL,
body LONGTEXT not null,
created_at int,
updated_at INT,
created_by int,
updated_by int,
PRIMARY KEY(id)
);
alter table ARTICLE
add constraint article_user_created_by_fk
foreign key (created_by) references user (id);
alter table article
add constraint article_user_updated_by_fk
foreign key (updated_by) references user (id)
|
-- @testpoint:openGauss关键字nvl(非保留),同时作为表名和列名带引号,与union结合查询合并两个SELECT 语句查询
drop table if exists "nvl";
create table "nvl"(
c_id int, c_int int, c_integer integer, c_bool int, c_boolean int, c_bigint integer,
c_real real, c_double real,
c_decimal decimal(38), c_number number(38), c_numeric numeric(38),
c_char char(50) default null, c_varchar varchar(20), c_varchar2 varchar2(4000),
c_date date, c_datetime date, c_timestamp timestamp,
"nvl" varchar(100) default 'nvl'
)
PARTITION BY RANGE (c_integer)
(
partition P_20180121 values less than (0),
partition P_20190122 values less than (50000),
partition P_20200123 values less than (100000),
partition P_max values less than (maxvalue)
);
insert into "nvl"(c_id,"nvl") values(1,'hello');
insert into "nvl"(c_id,"nvl") values(2,'china');
insert into "nvl"(c_id,"nvl") values(3,'gauss');
---两个select语句合并查询,查询结果显示hello、china、gauss,对括号中的select子句取limit 2
select "nvl" from "nvl" where "nvl"='hello'
union all (select "nvl" from "nvl" where "nvl"!='hello' order by "nvl" limit 2);
drop table "nvl";
|
-- phpMyAdmin SQL Dump
-- version 4.5.1
-- http://www.phpmyadmin.net
--
-- Servidor: 127.0.0.1
-- Tiempo de generación: 13-10-2016 a las 01:46:04
-- Versión del servidor: 10.1.9-MariaDB
-- Versión de PHP: 5.6.15
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- Base de datos: `login-php`
--
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `usuarios`
--
CREATE TABLE `usuarios` (
`id` int(11) NOT NULL,
`nombre` varchar(50) COLLATE utf8_spanish_ci NOT NULL,
`usuario` varchar(30) COLLATE utf8_spanish_ci NOT NULL,
`email` varchar(60) COLLATE utf8_spanish_ci NOT NULL,
`password` varchar(100) COLLATE utf8_spanish_ci NOT NULL,
`privilegio` int(2) NOT NULL,
`fecha_registro` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_spanish_ci;
--
-- Volcado de datos para la tabla `usuarios`
--
INSERT INTO `usuarios` (`id`, `nombre`, `usuario`, `email`, `password`, `privilegio`, `fecha_registro`) VALUES
(1, '<NAME>', 'ucesar', '<EMAIL>', '1234', 1, '2016-08-18 03:59:20'),
(2, '<NAME>', 'ualan', '<EMAIL>', '1234', 2, '2016-08-18 03:59:20'),
(5, 'De<NAME>', 'uadmin', '<EMAIL>', 'Pa$$w0rd!', 2, '2016-10-06 06:30:53'),
(6, 'alan', 'asdasd', '<EMAIL>', '12345', 2, '2016-10-06 06:33:37'),
(7, 'Vsadsad', 'asdad', '<EMAIL>', 'Pa$$w0rd!', 2, '2016-10-06 06:34:30'),
(8, '<NAME>', 'udev', '<EMAIL>', '1234', 2, '2016-10-06 06:35:32');
--
-- Índices para tablas volcadas
--
--
-- Indices de la tabla `usuarios`
--
ALTER TABLE `usuarios`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT de las tablas volcadas
--
--
-- AUTO_INCREMENT de la tabla `usuarios`
--
ALTER TABLE `usuarios`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
SELECT Manufacturer, Model, SUM(CountOfOrdersId) AS TimesOrdered
FROM(
SELECT m.Manufacturer, m.Model, v.Id,
COUNT(v.Id) AS CountOfOrdersId
FROM Orders AS o
LEFT JOIN Vehicles AS v ON v.Id = o.VehicleId
RIGHT JOIN Models AS m ON m.Id = v.ModelId
GROUP BY m.Manufacturer, m.Model, v.Id)
AS H1
GROUP BY Manufacturer, Model
ORDER BY TimesOrdered DESC, Manufacturer DESC, Model
|
<reponame>mario-martinez-proyecto1/db-ajedrez
set pages 66
set linesize 120
SET SERVEROUTPUT ON
create or replace procedure p_hist_partidas(apodo varchar2)
is
apodo2 partidas.nickname1%type := apodo;
registrado number;
jugador varchar2(47);
begin
apodo2 := upper(apodo2);
registrado := f_existe_nickname (apodo2);
if registrado = 1 then
jugador := f_full_name_otro(apodo2);
declare
cursor historico is
select id_partida, fecha_inicio, fecha_fin, resultado
from partidas
where nickname1 = apodo2 or nickname2 = apodo2;
begin
dbms_output.put_line(chr(13));
dbms_output.put_line('. Resumen de partidas en las que participa el jugador:');
dbms_output.put_line('. '||jugador);
dbms_output.put_line(chr(13));
dbms_output.put_line('. partida fecha inicio fecha finalizacion resultado ');
dbms_output.put_line('. --------- ------------ ------------------ ---------------------------------------------------------');
for his in historico loop
dbms_output.put_line('. '||lpad(to_char(his.id_partida),9, ' ')||lpad(to_char(his.fecha_inicio), 15)||lpad(to_char(his.fecha_fin), 21)||' '||rpad(his.resultado, 60, ' '));
end loop;
end;
else
dbms_output.put_line(chr(13));
dbms_output.put_line('No existe el nickname que intenta ingresar, vuelva a intentarlo...');
end if;
end;
/
|
<gh_stars>0
-- Function: public.fn_get_sf_block_groups()
-- DROP FUNCTION public.fn_get_sf_block_groups();
CREATE OR REPLACE FUNCTION public.fn_get_sf_block_groups()
RETURNS text AS
$BODY$
begin
return (
select response from public.vw_sf_geojson
);
end;
$BODY$
LANGUAGE plpgsql VOLATILE
COST 100;
ALTER FUNCTION public.fn_get_sf_block_groups()
OWNER TO postgres;
|
<reponame>farizardin/PBKK<filename>assets/sql/simkwu-mysql.sql
-- phpMyAdmin SQL Dump
-- version 4.8.0.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Aug 01, 2018 at 12:27 PM
-- Server version: 10.1.32-MariaDB
-- PHP Version: 7.2.5
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- Database: `simkwu`
--
-- --------------------------------------------------------
--
-- Table structure for table `anggota`
--
CREATE TABLE `anggota` (
`id` int(11) NOT NULL,
`id_temp` varchar(32) DEFAULT NULL,
`id_proposal` int(11) NOT NULL,
`nrp_anggota` char(14) NOT NULL,
`is_ketua` bit(1) NOT NULL,
`is_setuju` bit(1) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `angsuran`
--
CREATE TABLE `angsuran` (
`id` int(11) NOT NULL,
`id_temp` varchar(32) DEFAULT NULL,
`nip_petugas` char(18) NOT NULL,
`id_proposal` int(11) NOT NULL,
`tanggal` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`jumlah` int(11) NOT NULL,
`status_persetujuan` bit(1) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `berita`
--
CREATE TABLE `berita` (
`id` int(11) NOT NULL,
`id_temp` varchar(32) DEFAULT NULL,
`nip_petugas` char(18) NOT NULL,
`judul` varchar(256) NOT NULL,
`konten_dir` varchar(64) NOT NULL,
`waktu_terbit` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`waktu_edit_terakhir` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`foto_dir` varchar(64) NOT NULL,
`file_dir` varchar(64) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `bimbingan`
--
CREATE TABLE `bimbingan` (
`id` int(11) NOT NULL,
`id_temp` varchar(32) DEFAULT NULL,
`id_pembimbing` int(11) NOT NULL,
`tanggal` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`isi_bimbingan` varchar(64) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `dosen`
--
CREATE TABLE `dosen` (
`nip` char(18) NOT NULL,
`nama` varchar(64) NOT NULL,
`departemen` varchar(64) NOT NULL,
`foto_dir` varchar(64) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `dosen`
--
INSERT INTO `dosen` (`nip`, `nama`, `departemen`, `foto_dir`) VALUES
('195102221985022001', 'Endah Yuswarini', 'Teknik Sipil ', NULL),
('195410081980031003', '<NAME>', 'Desain Interior', NULL),
('196002211984031001', '<NAME>', 'Teknik Informatika', NULL),
('196008111986031001', '<NAME>', 'Teknik Industri', NULL),
('196104041991021001', '<NAME>', 'Fisika', NULL),
('196204181990031004', 'Tasripa', 'Teknik Elektro ', NULL),
('196301271990021003', '<NAME>', 'Fisika', NULL),
('196307261989031003', '<NAME>', 'Teknik Sipil', NULL),
('196401301990021001', '<NAME>', 'Fisika', NULL),
('196406081991021001', 'Sumarno', 'Teknik Kimia', NULL),
('196509191990031003', '<NAME>', 'Teknik Mesin', NULL),
('196511011985101001', '<NAME>', '', NULL),
('196809302000031001', '<NAME>', 'Teknik Material dan Metalurgi', NULL),
('196906141998021001', '<NAME>', 'M K U', NULL),
('197001221995121002', '<NAME>', 'Desain Produk Industri', NULL),
('197004211998021001', '<NAME>', '', NULL),
('197103132009121001', 'Sholiq', 'Sistem Informasi', NULL),
('197107231995121001', 'Suntoyo', 'Teknik Kelauta', NULL),
('197207151998022001', '<NAME>', 'Matematika ', NULL),
('197208091995121001', '<NAME>', 'Teknik Informatika', NULL),
('197609182003122002', '<NAME>', 'Teknik Kimia', NULL),
('197906202006042001', 'Dr. Widyastuti', 'Teknik Material dan Metalurgi', NULL),
('197906262005012002', '<NAME>', 'Teknik Informatika', NULL),
('198101052005011004', 'Suwito', 'Teknik Elektro ', NULL),
('198101052010051200', '<NAME>.', 'Fisika', NULL),
('198102102014042001', '<NAME>', 'Teknik Sipil', NULL),
('198102242014041001', '<NAME>, S.Si., M.Si.', 'Statistika ', NULL),
('198410162008121002', '<NAME> ', 'Teknik Informatika', NULL),
('198501082007061300', '<NAME>.', 'Informatika', NULL),
('19860312201212204', '<NAME>', 'Tek;nik Informatika', NULL),
('198802252014041001', '<NAME>', 'Manajemen Bisnis', NULL),
('199001042014041001', '<NAME>', 'Transportasi Laut', NULL),
('199001052011121001', '<NAME>.', 'Matematika', NULL);
-- --------------------------------------------------------
--
-- Table structure for table `list_aspek`
--
CREATE TABLE `list_aspek` (
`id` int(11) NOT NULL,
`aspek` varchar(64) NOT NULL,
`bobot` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `mahasiswa`
--
CREATE TABLE `mahasiswa` (
`nrp` char(14) NOT NULL,
`nama` varchar(64) NOT NULL,
`departemen` varchar(64) NOT NULL,
`foto_dir` varchar(64) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `mahasiswa`
--
INSERT INTO `mahasiswa` (`nrp`, `nama`, `departemen`, `foto_dir`) VALUES
('05111440000067', '<NAME>.', 'Kimia', NULL),
('05111440000137', '<NAME>.', 'Informatika', NULL),
('05111440000153', '<NAME>.', 'Matematika', NULL),
('05111640000001', 'Dimas', 'Kimia', NULL),
('05111640000002', 'Almas', 'Matematika', NULL),
('05111640000003', 'Fasma', 'Matematika', NULL),
('05111640000004', 'Nada', 'Matematika', NULL),
('05111640000005', 'Nida', 'Kimia', NULL),
('05111640000043', 'Rafi', 'Informatika', NULL),
('05111640000081', 'Deka', 'Informatika', NULL),
('05111640000134', 'Alam', 'Informatika', NULL);
-- --------------------------------------------------------
--
-- Table structure for table `pembimbing`
--
CREATE TABLE `pembimbing` (
`id` int(11) NOT NULL,
`id_temp` varchar(32) DEFAULT NULL,
`nip_pembimbing` char(18) NOT NULL,
`id_proposal` int(11) NOT NULL,
`is_setuju` bit(1) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `penilaian`
--
CREATE TABLE `penilaian` (
`id` int(11) NOT NULL,
`id_temp` varchar(32) DEFAULT NULL,
`nip_penguji` char(18) NOT NULL,
`id_aspek` int(11) NOT NULL,
`id_proposal` int(11) NOT NULL,
`tanggal` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`nilai` int(11) NOT NULL,
`komentar_dir` varchar(64) DEFAULT NULL,
`jenis_penilaian` varchar(64) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `petugas`
--
CREATE TABLE `petugas` (
`nip` char(18) NOT NULL,
`nama` varchar(64) NOT NULL,
`jabatan` varchar(64) NOT NULL,
`fotodir` varchar(64) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `proposal`
--
CREATE TABLE `proposal` (
`id` int(11) NOT NULL,
`id_temp` varchar(32) DEFAULT NULL,
`judul` varchar(256) NOT NULL,
`abstrak` varchar(64) NOT NULL,
`bidang` varchar(64) NOT NULL,
`tanggal_daftar` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`tanggal_diterima` timestamp NULL DEFAULT NULL,
`tanggal_habis` timestamp NULL DEFAULT NULL,
`status_diterima` bit(1) DEFAULT NULL,
`pengajuan_dana` int(11) NOT NULL,
`dana_disetujui` int(11) DEFAULT NULL,
`file_dir` varchar(64) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Indexes for dumped tables
--
--
-- Indexes for table `anggota`
--
ALTER TABLE `anggota`
ADD PRIMARY KEY (`id`),
ADD KEY `id_proposal` (`id_proposal`),
ADD KEY `nrp_anggota` (`nrp_anggota`);
--
-- Indexes for table `angsuran`
--
ALTER TABLE `angsuran`
ADD PRIMARY KEY (`id`),
ADD KEY `id_proposal` (`id_proposal`),
ADD KEY `nip_petugas` (`nip_petugas`);
--
-- Indexes for table `berita`
--
ALTER TABLE `berita`
ADD PRIMARY KEY (`id`),
ADD KEY `nip_petugas` (`nip_petugas`);
--
-- Indexes for table `bimbingan`
--
ALTER TABLE `bimbingan`
ADD PRIMARY KEY (`id`),
ADD KEY `id_pembimbing` (`id_pembimbing`);
--
-- Indexes for table `dosen`
--
ALTER TABLE `dosen`
ADD PRIMARY KEY (`nip`);
--
-- Indexes for table `list_aspek`
--
ALTER TABLE `list_aspek`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `mahasiswa`
--
ALTER TABLE `mahasiswa`
ADD PRIMARY KEY (`nrp`);
--
-- Indexes for table `pembimbing`
--
ALTER TABLE `pembimbing`
ADD PRIMARY KEY (`id`),
ADD KEY `id_proposal` (`id_proposal`),
ADD KEY `nip_pembimbing` (`nip_pembimbing`);
--
-- Indexes for table `penilaian`
--
ALTER TABLE `penilaian`
ADD PRIMARY KEY (`id`),
ADD KEY `id_aspek` (`id_aspek`),
ADD KEY `id_proposal` (`id_proposal`),
ADD KEY `nip_penguji` (`nip_penguji`);
--
-- Indexes for table `petugas`
--
ALTER TABLE `petugas`
ADD PRIMARY KEY (`nip`);
--
-- Indexes for table `proposal`
--
ALTER TABLE `proposal`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `anggota`
--
ALTER TABLE `anggota`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `angsuran`
--
ALTER TABLE `angsuran`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `berita`
--
ALTER TABLE `berita`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `bimbingan`
--
ALTER TABLE `bimbingan`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `list_aspek`
--
ALTER TABLE `list_aspek`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `pembimbing`
--
ALTER TABLE `pembimbing`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `penilaian`
--
ALTER TABLE `penilaian`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `proposal`
--
ALTER TABLE `proposal`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- Constraints for dumped tables
--
--
-- Constraints for table `anggota`
--
ALTER TABLE `anggota`
ADD CONSTRAINT `anggota_ibfk_1` FOREIGN KEY (`id_proposal`) REFERENCES `proposal` (`id`),
ADD CONSTRAINT `anggota_ibfk_2` FOREIGN KEY (`nrp_anggota`) REFERENCES `mahasiswa` (`nrp`);
--
-- Constraints for table `angsuran`
--
ALTER TABLE `angsuran`
ADD CONSTRAINT `angsuran_ibfk_1` FOREIGN KEY (`id_proposal`) REFERENCES `proposal` (`id`),
ADD CONSTRAINT `angsuran_ibfk_2` FOREIGN KEY (`nip_petugas`) REFERENCES `petugas` (`nip`);
--
-- Constraints for table `berita`
--
ALTER TABLE `berita`
ADD CONSTRAINT `berita_ibfk_1` FOREIGN KEY (`nip_petugas`) REFERENCES `petugas` (`nip`);
--
-- Constraints for table `bimbingan`
--
ALTER TABLE `bimbingan`
ADD CONSTRAINT `bimbingan_ibfk_1` FOREIGN KEY (`id_pembimbing`) REFERENCES `pembimbing` (`id`);
--
-- Constraints for table `pembimbing`
--
ALTER TABLE `pembimbing`
ADD CONSTRAINT `pembimbing_ibfk_1` FOREIGN KEY (`id_proposal`) REFERENCES `proposal` (`id`),
ADD CONSTRAINT `pembimbing_ibfk_2` FOREIGN KEY (`nip_pembimbing`) REFERENCES `dosen` (`nip`);
--
-- Constraints for table `penilaian`
--
ALTER TABLE `penilaian`
ADD CONSTRAINT `penilaian_ibfk_1` FOREIGN KEY (`id_aspek`) REFERENCES `list_aspek` (`id`),
ADD CONSTRAINT `penilaian_ibfk_2` FOREIGN KEY (`id_proposal`) REFERENCES `proposal` (`id`),
ADD CONSTRAINT `penilaian_ibfk_3` FOREIGN KEY (`nip_penguji`) REFERENCES `dosen` (`nip`);
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>iangodin/dhcpdb
CREATE TABLE dhcp_lease (
ip_addr INT UNSIGNED NOT NULL,
mac_addr BINARY(6) NOT NULL,
expiration DATETIME NOT NULL,
PRIMARY KEY(ip_addr)
);
CREATE TABLE dhcp_options (
id BIGINT UNSIGNED NOT NULL,
ip_addr_from INT UNSIGNED NOT NULL,
ip_addr_to INT UNSIGNED NOT NULL,
options VARBINARY(64) NOT NULL,
PRIMARY KEY(id)
);
CREATE TABLE dhcp_host (
ip_addr INT UNSIGNED NOT NULL,
mac_addr BINARY(6) NOT NULL,
PRIMARY KEY(ip_addr)
);
|
-- file:collate.icu.utf8.sql ln:404 expect:true
CREATE TABLE collate_dep_test4t (a int, b text)
|
USE [perpetuumsa]
GO
PRINT N'PATCH 26: GAMMA BEGINS - PHASE 1';
------------------------------------------------------
-- Patch 26: Gamma phase 1/3
--00_harvestlog_table_proc__2021_10_15.sql
--00_npcEscalations_createtable_col__2021_09_18.sql
--01_OPP_GAMMA_ZONE_INIT__2021_06_09.sql
--02_decor_all_gammas__2021_08_06.sql
--03_artifactspawninfo__2021_08_01.sql
--04_teleports__2021_08_07.sql
--07_npcreinforcements_gamma_t0_flux__2021_09_01.sql
--09_zoneeffects__2021_09_03.sql
--14_relics__2021_10_09.sql
--Date Modified: 2021/10/20
------------------------------------------------------
PRINT N'00_harvestlog_table_proc__2021_10_15.sql';
USE [perpetuumsa]
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
DROP TABLE IF EXISTS [dbo].[harvestlog]
GO
CREATE TABLE [dbo].[harvestlog](
[eventtime] [smalldatetime] NOT NULL,
[zoneid] [int] NOT NULL,
[definition] [int] NOT NULL,
[amount] [int] NOT NULL
) ON [PRIMARY]
GO
CREATE OR ALTER PROCEDURE [dbo].[writeharvestlog]
@zoneid INT,
@definition INT,
@quantity INT,
@eventtime DATETIME
AS
BEGIN
SET NOCOUNT ON;
IF EXISTS (SELECT zoneid FROM harvestlog WHERE eventtime=@eventtime AND zoneid=@zoneid AND definition=@definition)
BEGIN
UPDATE harvestlog SET amount=amount+@quantity WHERE eventtime=@eventtime AND zoneid=@zoneid AND definition=@definition
end
ELSE
BEGIN
INSERT harvestlog (zoneid,definition,amount,eventtime) VALUES (@zoneid,@definition,@quantity,@eventtime)
END
END
GO
PRINT N'00_npcEscalations_createtable_col__2021_09_18.sql';
USE [perpetuumsa]
GO
-------------------------------------
-- Define new col/table for GrowingPresences
--
-- Date modifified: 2021/09/18
-------------------------------------
PRINT N'ALTER [dbo].[npcpresence]';
IF NOT EXISTS (SELECT * FROM sys.columns WHERE object_id = OBJECT_ID(N'[perpetuumsa].[dbo].[npcpresence]')
AND name = 'growthseconds')
BEGIN
PRINT N'ADDING COL pbsTechLimit';
ALTER TABLE [perpetuumsa].[dbo].[npcpresence] ADD
growthseconds INT NULL
END
GO
PRINT N'CREATE TABLE [dbo].[npcescalactions]';
DROP TABLE IF EXISTS dbo.npcescalactions;
CREATE TABLE dbo.npcescalactions (
id INT NOT NULL IDENTITY PRIMARY KEY,
presenceId INT NOT NULL,
flockId INT NOT NULL,
level INT NOT NULL,
chance FLOAT NOT NULL DEFAULT 1.0
);
GO
PRINT N'01_OPP_GAMMA_ZONE_INIT__2021_06_09.sql';
USE [perpetuumsa]
GO
-----------------------------------
-- Gamma zone inits and basic configs
-- This file sets the zone records
-- plants, minerals, and (empty) spawns
--
-- Date modified: 2021/10/12
-----------------------------------
DROP TABLE IF EXISTS #GAMMAPLANTS;
CREATE TABLE #GAMMAPLANTS(
ruleSetID INT,
plantRuleFile VARCHAR(100)
);
INSERT INTO #GAMMAPLANTS (ruleSetID, plantRuleFile) VALUES
--raceid3 thelodica
--t0
(30,'electroplant_t0.txt'),
(30,'irontree_t0.txt'),
(30,'slimeroot_t0.txt'),
--(30,'rustbush_t0.txt'),
(30,'bush_a.txt'),
(30,'bush_b.txt'),
(30,'coppertree.txt'),
(30,'devrinol.txt'),
(30,'grass_a.txt'),
(30,'grass_b.txt'),
(30,'nanowheat.txt'),
(30,'pinetree.txt'),
(30,'poffeteg.txt'),
(30,'quag.txt'),
(30,'rango.txt'),
(30,'reed.txt'),
--t1
--(31,'electroplant_t1.txt'),
(31,'irontree_t1.txt'),
(31,'slimeroot_t1.txt'),
--(31,'rustbush_t1.txt'),
(31,'electroplant_seeded_t1.txt'),
(31,'irontree_seeded_t1.txt'),
(31,'slimeroot_seeded_t1.txt'),
(31,'rustbush_seeded_t1.txt'),
(31,'bush_a.txt'),
(31,'bush_b.txt'),
(31,'coppertree.txt'),
(31,'devrinol.txt'),
(31,'grass_a.txt'),
(31,'grass_b.txt'),
(31,'nanowheat.txt'),
(31,'pinetree.txt'),
(31,'poffeteg.txt'),
(31,'quag.txt'),
(31,'rango.txt'),
(31,'reed.txt'),
(31,'wall.txt'),
--t2
--(32,'electroplant_t2.txt'),
(32,'irontree_t2.txt'),
(32,'slimeroot_t2.txt'),
--(32,'rustbush_t2.txt'),
(32,'electroplant_seeded_t2.txt'),
--(32,'irontree_seeded_t2.txt'),
--(32,'slimeroot_seeded_t2.txt'),
(32,'rustbush_seeded_t2.txt'),
(32,'bush_a.txt'),
(32,'bush_b.txt'),
(32,'coppertree.txt'),
(32,'devrinol.txt'),
(32,'grass_a.txt'),
(32,'grass_b.txt'),
(32,'nanowheat.txt'),
(32,'pinetree.txt'),
(32,'poffeteg.txt'),
(32,'quag.txt'),
(32,'rango.txt'),
(32,'reed.txt'),
(32,'wall.txt'),
--t3
--(33,'electroplant_t3.txt'),
(33,'irontree_t3.txt'),
(33,'slimeroot_t3.txt'),
--(33,'rustbush_t3.txt'),
--(33,'electroplant_seeded_t3.txt'),
--(33,'irontree_seeded_t3.txt'),
--(33,'slimeroot_seeded_t3.txt'),
(33,'rustbush_seeded_t3.txt'),
(33,'bush_a.txt'),
(33,'bush_b.txt'),
(33,'coppertree.txt'),
(33,'devrinol.txt'),
(33,'grass_a.txt'),
(33,'grass_b.txt'),
(33,'nanowheat.txt'),
(33,'pinetree.txt'),
(33,'poffeteg.txt'),
(33,'quag.txt'),
(33,'rango.txt'),
(33,'reed.txt'),
(33,'wall.txt'),
--TC
(34,'bush_a.txt'),
(34,'bush_b.txt'),
(34,'coppertree.txt'),
(34,'devrinol.txt'),
(34,'grass_a.txt'),
(34,'grass_b.txt'),
(34,'nanowheat.txt'),
(34,'pinetree.txt'),
(34,'poffeteg.txt'),
(34,'quag.txt'),
(34,'rango.txt'),
(34,'reed.txt'),
--raceid2 nuimqol
--t0
(20,'electroplant_t0.txt'),
(20,'irontree_t0.txt'),
--(20,'slimeroot_t0.txt'),
(20,'rustbush_t0.txt'),
(20,'bush_a.txt'),
(20,'bush_b.txt'),
(20,'coppertree.txt'),
(20,'devrinol.txt'),
(20,'grass_a.txt'),
(20,'grass_b.txt'),
(20,'nanowheat.txt'),
(20,'pinetree.txt'),
(20,'poffeteg.txt'),
(20,'quag.txt'),
(20,'rango.txt'),
(20,'reed.txt'),
--t1
--(21,'electroplant_t1.txt'),
(21,'irontree_t1.txt'),
--(21,'slimeroot_t1.txt'),
(21,'rustbush_t1.txt'),
(21,'electroplant_seeded_t1.txt'),
(21,'irontree_seeded_t1.txt'),
(21,'slimeroot_seeded_t1.txt'),
(21,'rustbush_seeded_t1.txt'),
(21,'bush_a.txt'),
(21,'bush_b.txt'),
(21,'coppertree.txt'),
(21,'devrinol.txt'),
(21,'grass_a.txt'),
(21,'grass_b.txt'),
(21,'nanowheat.txt'),
(21,'pinetree.txt'),
(21,'poffeteg.txt'),
(21,'quag.txt'),
(21,'rango.txt'),
(21,'reed.txt'),
(21,'wall.txt'),
--t2
--(22,'electroplant_t2.txt'),
(22,'irontree_t2.txt'),
--(22,'slimeroot_t2.txt'),
(22,'rustbush_t2.txt'),
(22,'electroplant_seeded_t2.txt'),
--(22,'irontree_seeded_t2.txt'),
(22,'slimeroot_seeded_t2.txt'),
--(22,'rustbush_seeded_t2.txt'),
(22,'bush_a.txt'),
(22,'bush_b.txt'),
(22,'coppertree.txt'),
(22,'devrinol.txt'),
(22,'grass_a.txt'),
(22,'grass_b.txt'),
(22,'nanowheat.txt'),
(22,'pinetree.txt'),
(22,'poffeteg.txt'),
(22,'quag.txt'),
(22,'rango.txt'),
(22,'reed.txt'),
(22,'wall.txt'),
--t3
--(23,'electroplant_t3.txt'),
(23,'irontree_t3.txt'),
--(23,'slimeroot_t3.txt'),
(23,'rustbush_t3.txt'),
--(23,'electroplant_seeded_t3.txt'),
--(23,'irontree_seeded_t3.txt'),
(23,'slimeroot_seeded_t3.txt'),
--(23,'rustbush_seeded_t3.txt'),
(23,'bush_a.txt'),
(23,'bush_b.txt'),
(23,'coppertree.txt'),
(23,'devrinol.txt'),
(23,'grass_a.txt'),
(23,'grass_b.txt'),
(23,'nanowheat.txt'),
(23,'pinetree.txt'),
(23,'poffeteg.txt'),
(23,'quag.txt'),
(23,'rango.txt'),
(23,'reed.txt'),
(23,'wall.txt'),
--TC
(24,'bush_a.txt'),
(24,'bush_b.txt'),
(24,'coppertree.txt'),
(24,'devrinol.txt'),
(24,'grass_a.txt'),
(24,'grass_b.txt'),
(24,'nanowheat.txt'),
(24,'pinetree.txt'),
(24,'poffeteg.txt'),
(24,'quag.txt'),
(24,'rango.txt'),
(24,'reed.txt'),
--raceid1 pelistal
--t0
(10,'electroplant_t0.txt'),
--(10,'irontree_t0.txt'),
(10,'slimeroot_t0.txt'),
(10,'rustbush_t0.txt'),
(10,'bush_a.txt'),
(10,'bush_b.txt'),
(10,'coppertree.txt'),
(10,'devrinol.txt'),
(10,'grass_a.txt'),
(10,'grass_b.txt'),
(10,'nanowheat.txt'),
(10,'pinetree.txt'),
(10,'poffeteg.txt'),
(10,'quag.txt'),
(10,'rango.txt'),
(10,'reed.txt'),
--t1
--(11,'electroplant_t1.txt'),
--(11,'irontree_t1.txt'),
(11,'slimeroot_t1.txt'),
(11,'rustbush_t1.txt'),
(11,'electroplant_seeded_t1.txt'),
(11,'irontree_seeded_t1.txt'),
(11,'slimeroot_seeded_t1.txt'),
(11,'rustbush_seeded_t1.txt'),
(11,'bush_a.txt'),
(11,'bush_b.txt'),
(11,'coppertree.txt'),
(11,'devrinol.txt'),
(11,'grass_a.txt'),
(11,'grass_b.txt'),
(11,'nanowheat.txt'),
(11,'pinetree.txt'),
(11,'poffeteg.txt'),
(11,'quag.txt'),
(11,'rango.txt'),
(11,'reed.txt'),
(11,'wall.txt'),
--t2
--(12,'electroplant_t2.txt'),
--(12,'irontree_t2.txt'),
(12,'slimeroot_t2.txt'),
(12,'rustbush_t2.txt'),
(12,'electroplant_seeded_t2.txt'),
(12,'irontree_seeded_t2.txt'),
--(12,'slimeroot_seeded_t2.txt'),
--(12,'rustbush_seeded_t2.txt'),
(12,'bush_a.txt'),
(12,'bush_b.txt'),
(12,'coppertree.txt'),
(12,'devrinol.txt'),
(12,'grass_a.txt'),
(12,'grass_b.txt'),
(12,'nanowheat.txt'),
(12,'pinetree.txt'),
(12,'poffeteg.txt'),
(12,'quag.txt'),
(12,'rango.txt'),
(12,'reed.txt'),
(12,'wall.txt'),
--t3
--(13,'electroplant_t3.txt'),
--(13,'irontree_t3.txt'),
(13,'slimeroot_t3.txt'),
(13,'rustbush_t3.txt'),
--(13,'electroplant_seeded_t3.txt'),
(13,'irontree_seeded_t3.txt'),
--(13,'slimeroot_seeded_t3.txt'),
--(13,'rustbush_seeded_t3.txt'),
(13,'bush_a.txt'),
(13,'bush_b.txt'),
(13,'coppertree.txt'),
(13,'devrinol.txt'),
(13,'grass_a.txt'),
(13,'grass_b.txt'),
(13,'nanowheat.txt'),
(13,'pinetree.txt'),
(13,'poffeteg.txt'),
(13,'quag.txt'),
(13,'rango.txt'),
(13,'reed.txt'),
(13,'wall.txt'),
--TC
(14,'bush_a.txt'),
(14,'bush_b.txt'),
(14,'coppertree.txt'),
(14,'devrinol.txt'),
(14,'grass_a.txt'),
(14,'grass_b.txt'),
(14,'nanowheat.txt'),
(14,'pinetree.txt'),
(14,'poffeteg.txt'),
(14,'quag.txt'),
(14,'rango.txt'),
(14,'reed.txt');
DROP TABLE IF EXISTS #FACTIONPLANTMAP;
CREATE TABLE #FACTIONPLANTMAP(
raceID INT,
tierLevel INT,
ruleID INT
);
INSERT INTO #FACTIONPLANTMAP (raceID, tierLevel, ruleID) VALUES
(1, 0, 10),
(1, 1, 11),
(1, 2, 12),
(1, 3, 13),
(1, -1, 14),
(2, 0, 20),
(2, 1, 21),
(2, 2, 22),
(2, 3, 23),
(2, -1, 24),
(3, 0, 30),
(3, 1, 31),
(3, 2, 32),
(3, 3, 33),
(3, -1, 34);
DROP TABLE IF EXISTS #GAMMAZONEPREP;
CREATE TABLE #GAMMAZONEPREP(
zId INT,
zPrefix VARCHAR(100),
zSize INT,
x INT,
y INT,
raceID INT,
tier INT
);
INSERT INTO #GAMMAZONEPREP (zId, zPrefix, zSize, x, y, raceID, tier) VALUES
--Tc islands
(100, 'zone_gamma_tc_z', 256, 9488, -31302, 1, -1),
(101, 'zone_gamma_tc_z', 256, 774, -36237, 1, -1),
(102, 'zone_gamma_tc_z', 256, -9582, -32128, 3, -1),
(103, 'zone_gamma_tc_z', 256, -9035, -23034, 3, -1),
(104, 'zone_gamma_tc_z', 256, 1647, -16026, 2, -1),
(105, 'zone_gamma_tc_z', 256, 13275, -23435, 2, -1),
--Phase1
(106, 'zone_gamma_z', 2048, 3731, -29068, 2, 2),
(107, 'zone_gamma_z', 2048, -81, -27422, 3, 3),
(108, 'zone_gamma_z', 2048, -6233, -29242, 3, 2),
(109, 'zone_gamma_z', 2048, -5410, -22223, 3, 1),
(110, 'zone_gamma_z', 2048, 1435, -22223, 2, 0),
(111, 'zone_gamma_z', 2048, 7630, -24519, 2, 1),
(112, 'zone_gamma_z', 2048, 10923, -27985, 2, 1),
(113, 'zone_gamma_z', 2048, 3168, -33574, 1, 1),
(114, 'zone_gamma_z', 2048, -3677, -33487, 1, 0),
(115, 'zone_gamma_z', 2048, -7230, -35697, 1, 1),
(116, 'zone_gamma_z', 2048, -12862, -28548, 3, 1),
--Phase2
(117, 'zone_gamma_z', 2048, -15678, -24303, 3, 1),
(118, 'zone_gamma_z', 2048, -17584, -19624, 3, 2),
(119, 'zone_gamma_z', 2048, -16588, -31884, 3, 0),
(120, 'zone_gamma_z', 2048, -13468, -36867, 3, 1),
(121, 'zone_gamma_z', 2048, -12515, -41502, 1, 2),
(122, 'zone_gamma_z', 2048, -8876, -44102, 1, 3),
(123, 'zone_gamma_z', 2048, -4240, -42455, 1, 2),
(124, 'zone_gamma_z', 2048, -428, -46354, 1, 2),
(125, 'zone_gamma_z', 2048, 3774, -44535, 1, 1),
(126, 'zone_gamma_z', 2048, 8367, -41372, 1, 2),
(127, 'zone_gamma_z', 2048, 4858, -38556, 1, 2),
(128, 'zone_gamma_z', 2048, 9536, -36910, 2, 3),
(129, 'zone_gamma_z', 2048, 14389, -37516, 2, 2),
(130, 'zone_gamma_z', 2048, 14215, -33877, 2, 1),
(131, 'zone_gamma_z', 2048, 15299, -30108, 2, 0),
(132, 'zone_gamma_z', 2048, 17118, -25256, 2, 1),
(133, 'zone_gamma_z', 2048, 17725, -20577, 2, 2),
(134, 'zone_gamma_z', 2048, 14259, -17761, 2, 3),
(135, 'zone_gamma_z', 2048, 8973, -19147, 2, 2),
(136, 'zone_gamma_z', 2048, 10360, -13298, 2, 2),
(137, 'zone_gamma_z', 2048, 3428, -11688, 3, 1),
(138, 'zone_gamma_z', 2048, -4674, -14078, 3, 2),
(139, 'zone_gamma_z', 2048, -5150, -17674, 3, 2),
(140, 'zone_gamma_z', 2048, -13165, -17804, 3, 3);
DROP TABLE IF EXISTS #GAMMAORES;
CREATE TABLE #GAMMAORES(
raceID INT,
tier INT,
mineralName VARCHAR(100),
maxFields INT,
maxTilesPerField INT,
totalAmountPerField INT
);
INSERT INTO #GAMMAORES(raceID, tier, mineralName, maxFields, maxTilesPerField, totalAmountPerField) VALUES
(1, 0, 'titan', 10, 600, 225000000),
(1, 0, 'crude', 5, 600, 225000000),
--(1, 0, 'stermonit', 6, 600, 225000000),
(1, 0, 'imentium', 10, 600, 225000000),
(1, 0, 'liquizit', 5, 600, 225000000),
(1, 0, 'epriton', 5, 300, 50000000),
(1, 0, 'silgium', 10, 600, 225000000),
--(1, 0, 'gammaterial', 3, 50, 10000000),
--(1, 0, 'energymineral', 9, 200, 12000000),
(1, 0, 'fluxore', 2, 200, 5000000),
(2, 0, 'titan', 10, 600, 225000000),
(2, 0, 'crude', 5, 600, 225000000),
(2, 0, 'stermonit', 10, 600, 225000000),
(2, 0, 'imentium', 10, 600, 225000000),
(2, 0, 'liquizit', 5, 600, 225000000),
(2, 0, 'epriton', 5, 300, 50000000),
--(2, 0, 'silgium', 6, 600, 225000000),
--(2, 0, 'gammaterial', 3, 50, 10000000),
--(2, 0, 'energymineral', 9, 200, 12000000),
(2, 0, 'fluxore', 2, 200, 5000000),
(3, 0, 'titan', 10, 600, 225000000),
(3, 0, 'crude', 5, 600, 225000000),
(3, 0, 'stermonit', 10, 600, 225000000),
--(3, 0, 'imentium', 6, 600, 225000000),
(3, 0, 'liquizit', 5, 600, 225000000),
(3, 0, 'epriton', 5, 300, 50000000),
(3, 0, 'silgium', 10, 600, 225000000),
--(3, 0, 'gammaterial', 3, 50, 10000000),
--(3, 0, 'energymineral', 9, 200, 12000000),
(3, 0, 'fluxore', 2, 200, 5000000),
(1, 1, 'titan', 10, 600, 175000000),
(1, 1, 'crude', 5, 600, 175000000),
--(1, 1, 'stermonit', 5, 600, 175000000),
(1, 1, 'imentium', 10, 600, 175000000),
(1, 1, 'liquizit', 5, 600, 175000000),
--(1, 1, 'epriton', 2, 300, 50000000),
(1, 1, 'silgium', 10, 600, 175000000),
(1, 1, 'gammaterial', 10, 100, 10000000),
(1, 1, 'energymineral', 10, 200, 12000000),
--(1, 1, 'fluxore', 2, 200, 5000000),
(2, 1, 'titan', 10, 600, 175000000),
(2, 1, 'crude', 5, 600, 175000000),
(2, 1, 'stermonit', 10, 600, 175000000),
(2, 1, 'imentium', 10, 600, 175000000),
(2, 1, 'liquizit', 5, 600, 175000000),
--(2, 1, 'epriton', 2, 300, 50000000),
--(2, 1, 'silgium', 5, 600, 175000000),
(2, 1, 'gammaterial', 10, 100, 10000000),
(2, 1, 'energymineral', 10, 200, 12000000),
--(2, 1, 'fluxore', 2, 200, 5000000),
(3, 1, 'titan', 10, 600, 175000000),
(3, 1, 'crude', 5, 600, 175000000),
(3, 1, 'stermonit', 10, 600, 175000000),
--(3, 1, 'imentium', 5, 600, 175000000),
(3, 1, 'liquizit', 5, 600, 175000000),
--(3, 1, 'epriton', 2, 300, 50000000),
(3, 1, 'silgium', 10, 600, 175000000),
(3, 1, 'gammaterial', 10, 100, 10000000),
(3, 1, 'energymineral', 10, 200, 12000000),
--(3, 1, 'fluxore', 2, 200, 5000000),
(1, 2, 'titan', 7, 600, 125000000),
(1, 2, 'crude', 4, 600, 125000000),
--(1, 2, 'stermonit', 4, 600, 125000000),
(1, 2, 'imentium', 7, 600, 125000000),
(1, 2, 'liquizit', 4, 600, 125000000),
--(1, 2, 'epriton', 2, 300, 50000000),
(1, 2, 'silgium', 7, 600, 125000000),
(1, 2, 'gammaterial', 7, 100, 10000000),
(1, 2, 'energymineral', 12, 200, 24000000),
--(1, 2, 'fluxore', 2, 200, 5000000),
(2, 2, 'titan', 7, 600, 125000000),
(2, 2, 'crude', 4, 600, 125000000),
(2, 2, 'stermonit', 7, 600, 125000000),
(2, 2, 'imentium', 7, 600, 125000000),
(2, 2, 'liquizit', 4, 600, 125000000),
--(2, 2, 'epriton', 2, 300, 50000000),
--(2, 2, 'silgium', 4, 600, 125000000),
(2, 2, 'gammaterial', 7, 100, 10000000),
(2, 2, 'energymineral', 12, 200, 24000000),
--(2, 2, 'fluxore', 2, 200, 5000000),
(3, 2, 'titan', 7, 600, 125000000),
(3, 2, 'crude', 4, 600, 125000000),
(3, 2, 'stermonit', 7, 600, 125000000),
--(3, 2, 'imentium', 4, 600, 125000000),
(3, 2, 'liquizit', 4, 600, 125000000),
--(3, 2, 'epriton', 2, 300, 50000000),
(3, 2, 'silgium', 7, 600, 125000000),
(3, 2, 'gammaterial', 7, 100, 10000000),
(3, 2, 'energymineral', 12, 200, 24000000),
--(3, 2, 'fluxore', 2, 200, 5000000),
(1, 3, 'titan', 5, 600, 100000000),
(1, 3, 'crude', 3, 600, 100000000),
--(1, 3, 'stermonit', 3, 600, 100000000),
(1, 3, 'imentium', 5, 600, 100000000),
(1, 3, 'liquizit', 3, 600, 100000000),
--(1, 3, 'epriton', 2, 300, 50000000),
(1, 3, 'silgium', 5, 600, 100000000),
(1, 3, 'gammaterial', 3, 100, 10000000),
(1, 3, 'energymineral', 15, 200, 36000000),
--(1, 3, 'fluxore', 2, 200, 5000000),
(2, 3, 'titan', 5, 600, 100000000),
(2, 3, 'crude', 3, 600, 100000000),
(2, 3, 'stermonit', 5, 600, 100000000),
(2, 3, 'imentium', 5, 600, 100000000),
(2, 3, 'liquizit', 3, 600, 100000000),
--(2, 3, 'epriton', 2, 300, 50000000),
--(2, 3, 'silgium', 3, 600, 100000000),
(2, 3, 'gammaterial', 3, 100, 10000000),
(2, 3, 'energymineral', 15, 200, 36000000),
--(2, 3, 'fluxore', 2, 200, 5000000),
(3, 3, 'titan', 5, 600, 100000000),
(3, 3, 'crude', 3, 600, 100000000),
(3, 3, 'stermonit', 5, 600, 100000000),
--(3, 3, 'imentium', 3, 600, 100000000),
(3, 3, 'liquizit', 3, 600, 100000000),
--(3, 3, 'epriton', 2, 300, 50000000),
(3, 3, 'silgium', 5, 600, 100000000),
(3, 3, 'gammaterial', 3, 100, 10000000),
(3, 3, 'energymineral', 15, 200, 36000000);
--(3, 3, 'fluxore', 2, 200, 5000000);
--PRINT N'CLEAR teleportdescriptions';
--DELETE FROM teleportdescriptions WHERE sourcezone in (SELECT zId FROM #GAMMAZONEPREP) OR targetzone in (SELECT zId FROM #GAMMAZONEPREP);
--DELETE FROM zoneentities WHERE zoneID in (SELECT zId FROM #GAMMAZONEPREP);
--DELETE FROM zoneuserentities WHERE zoneID in (SELECT zId FROM #GAMMAZONEPREP);
PRINT N'CLEAR PLANT RULES';
SELECT * FROM plantrules WHERE rulesetid IN (SELECT DISTINCT ruleSetID FROM #GAMMAPLANTS);
DELETE FROM plantrules WHERE rulesetid IN (SELECT DISTINCT ruleSetID FROM #GAMMAPLANTS);
PRINT N'INSERT PLANT RULES';
INSERT INTO plantrules (plantrule, rulesetid, note)
SELECT plantRuleFile, ruleSetID, 'Gamma Plant Rules' FROM #GAMMAPLANTS;
PRINT N'CLEAR FLOCKS';
SELECT * FROM npcflock WHERE presenceid IN (
SELECT id FROM npcpresence WHERE spawnid IN (
SELECT spawnid FROM zones WHERE id IN (
SELECT zId FROM #GAMMAZONEPREP
)
)
);
DELETE FROM npcflock WHERE presenceid IN (
SELECT id FROM npcpresence WHERE spawnid IN (
SELECT spawnid FROM zones WHERE id IN (
SELECT zId FROM #GAMMAZONEPREP
)
)
);
PRINT N'CLEAR PRESENCE';
SELECT * FROM npcpresence WHERE spawnid IN (
SELECT spawnid FROM zones WHERE id IN (
SELECT zId FROM #GAMMAZONEPREP
)
);
DELETE FROM npcpresence WHERE spawnid IN (
SELECT spawnid FROM zones WHERE id IN (
SELECT zId FROM #GAMMAZONEPREP
)
);
PRINT N'CLEAR SPAWN';
SELECT * FROM npcspawn WHERE name IN (SELECT 'zone_gamma_' + CONVERT(varchar(10), zId) + '_spawn' FROM #GAMMAZONEPREP);
DELETE FROM npcspawn WHERE name IN (SELECT 'zone_gamma_' + CONVERT(varchar(10), zId) + '_spawn' FROM #GAMMAZONEPREP);
PRINT N'INSERT SPAWN';
INSERT INTO [dbo].[npcspawn] ([name],[description],[note])
SELECT 'zone_gamma_' + CONVERT(varchar(10), zId) + '_spawn',
'zone_gamma_' + CONVERT(varchar(10), zId) + '_spawn',
'zone_gamma_' + CONVERT(varchar(10), zId) + '_spawn' FROM #GAMMAZONEPREP;
--SET ENTITY FOR ZONE STORAGE
DECLARE @storageDef AS INT = (SELECT TOP 1 definition FROM entitydefaults WHERE definitionname='def_zone_storage');
--MAJOR ASSUMPTION [entities] eid's 2200<->2300 are unused!
MERGE [dbo].[entities] AS e
USING #GAMMAZONEPREP AS g
ON (e.ename = 'es_zone_'+CONVERT(varchar(10), g.zId)+'_storage')
WHEN MATCHED THEN
UPDATE SET
e.eid=2100+g.zId
WHEN NOT MATCHED
THEN INSERT (eid,definition,owner,parent,health,ename,quantity,repackaged,dynprop) VALUES
(2100+zId,@storageDef,NULL,NULL,100,'es_zone_'+CONVERT(varchar(10), zId)+'_storage',1,0,NULL);
MERGE [dbo].[entitystorage] AS s
USING #GAMMAZONEPREP AS g
ON (s.storage_name = 'es_zone_'+CONVERT(varchar(10), g.zId)+'_storage')
WHEN MATCHED THEN
UPDATE SET
s.eid=(SELECT TOP 1 eid FROM entities WHERE ename='es_zone_'+CONVERT(varchar(10), zId)+'_storage')
WHEN NOT MATCHED
THEN INSERT (storage_name,eid) VALUES
('es_zone_'+CONVERT(varchar(10), zId)+'_storage', (SELECT TOP 1 eid FROM entities WHERE ename='es_zone_'+CONVERT(varchar(10), zId)+'_storage'));
MERGE [dbo].[zones] AS z
USING #GAMMAZONEPREP AS g
ON g.zId=z.id
WHEN MATCHED THEN
UPDATE SET
x=g.x,
y=g.y,
name=g.zPrefix+CONVERT(varchar(10), g.zId),
description=g.zPrefix+CONVERT(varchar(10), g.zId)+'_desc',
note='gamma tier '+CONVERT(varchar(10), g.tier),
fertility=15,
zoneplugin='zone_'+CONVERT(varchar(10), g.zId),
zoneip='192.168.127.12',
zoneport=18800+g.zId,
isinstance=0,
enabled=1,
spawnid=(SELECT TOP 1 id FROM npcspawn WHERE name='zone_gamma_' + CONVERT(varchar(10), g.zId) + '_spawn'),
plantruleset=(SELECT TOP 1 f.ruleID FROM #FACTIONPLANTMAP AS f WHERE f.raceID=g.raceID AND f.tierLevel=g.tier),
protected=0,
raceid=g.raceID,
width=g.zSize,
height=g.zSize,
terraformable=CASE WHEN g.tier > 0 THEN 1 ELSE 0 END,
zonetype=2,
sparkcost=3,
maxdockingbase=CASE WHEN g.tier > 0 THEN 2 ELSE 0 END,
sleeping=0,
plantaltitudescale=1,
host='genxyHost-01',
active=1,
pbsTechLimit=CASE WHEN g.tier > 0 THEN g.tier ELSE 0 END
WHEN NOT MATCHED THEN
INSERT ([id],[x],[y],[name],[description],[note],[fertility],[zoneplugin],[zoneip],[zoneport],[isinstance],[enabled],[spawnid],[plantruleset]
,[protected],[raceid],[width],[height],[terraformable],[zonetype],[sparkcost],[maxdockingbase],[sleeping],[plantaltitudescale],[host],[active],[pbsTechLimit])
VALUES
(g.zId,
g.x,
g.y,
g.zPrefix+CONVERT(varchar(10), g.zId),--[name]
g.zPrefix+CONVERT(varchar(10), g.zId)+'_desc',--[description]
'gamma tier '+CONVERT(varchar(10), g.tier),--[note]
15,--[fertility]
'zone_'+CONVERT(varchar(10), g.zId),--[zoneplugin]
'192.168.127.12',--[zoneip]
18800+g.zId,--[zoneport]
0,--[isinstance]
1,--[enabled]
(SELECT TOP 1 id FROM npcspawn WHERE name='zone_gamma_' + CONVERT(varchar(10), g.zId) + '_spawn'),--[spawnid]
(SELECT TOP 1 f.ruleID FROM #FACTIONPLANTMAP AS f WHERE f.raceID=g.raceID AND f.tierLevel=g.tier),--[plantruleset]
0,--[protected]
g.raceID,--[raceid]
g.zSize,--[width]
g.zSize,--[height]
CASE WHEN g.tier > 0 THEN 1 ELSE 0 END,--[terraformable]--Set to 0 to disable erosion to altitude edits
2,--[zonetype]
3,--[sparkcost]
CASE WHEN g.tier > 0 THEN 2 ELSE 0 END, --[maxdockingbase]
0,--[sleeping]
1,--[plantaltitudescale]
'genxyHost-01',--[host]
1,--[active],
CASE WHEN g.tier > 0 THEN g.tier ELSE 0 END--[pbsTechLimit]
);
SELECT * FROM zoneriftsconfig WHERE zoneid IN (SELECT zId FROM #GAMMAZONEPREP);
DELETE FROM zoneriftsconfig WHERE zoneid IN (SELECT zId FROM #GAMMAZONEPREP);
INSERT INTO zoneriftsconfig (zoneid, maxrifts, maxlevel)
SELECT zId, 10, 4 FROM #GAMMAZONEPREP WHERE tier>0 OR zSize>2000;
INSERT INTO zoneriftsconfig (zoneid, maxrifts, maxlevel)
SELECT zId, 0, 0 FROM #GAMMAZONEPREP WHERE zId NOT IN (SELECT zoneid FROM zoneriftsconfig);
SELECT * FROM mineralnodes WHERE zoneid IN (SELECT zId FROM #GAMMAZONEPREP);
DELETE FROM mineralnodes WHERE zoneid IN (SELECT zId FROM #GAMMAZONEPREP);
SELECT * FROM mineralconfigs WHERE zoneid IN (SELECT zId FROM #GAMMAZONEPREP);
DELETE FROM mineralconfigs WHERE zoneid IN (SELECT zId FROM #GAMMAZONEPREP);
INSERT INTO mineralconfigs (zoneid, materialtype, maxnodes, maxtilespernode, totalamountpernode, minthreshold)
SELECT
z.zId,
(select top 1 idx from minerals where name=o.mineralName) as matId,
o.maxFields,
o.maxTilesPerField,
o.totalAmountPerField,
0.5
FROM #GAMMAZONEPREP z JOIN #GAMMAORES o on o.tier=z.tier AND o.raceID=z.raceID
order by z.zId, matId;
DROP TABLE IF EXISTS #FACTIONPLANTMAP;
DROP TABLE IF EXISTS #GAMMAPLANTS;
DROP TABLE IF EXISTS #GAMMAORES;
DROP TABLE IF EXISTS #GAMMAZONEPREP;
GO
PRINT N'02_decor_all_gammas__2021_08_06.sql';
USE [perpetuumsa]
GO
-------------------------------------------
-- Set Decor of all applicable gamma zones
--
-- Date Modified: 2021/08/06
-------------------------------------------
PRINT N'SETTING DECOR ON ALL DECORED GAMMAS';
USE [perpetuumsa]
GO
DECLARE @zoneID INT;
SET @zoneID = 110;
PRINT N'DELETING ALL DECOR ON ZONE: ' + CONVERT(varchar(10), @zoneID);
DELETE FROM decor WHERE zoneid=@zoneID;
INSERT INTO decor (definition, quaternionx, quaterniony, quaternionz, quaternionw, zoneid, x, y, z, scale, changed, fadedistance, category, locked) VALUES
(3424,0,0,0,1,110,257152,255616,23599,1,1,0,1,1);
SET @zoneID = 114;
PRINT N'DELETING ALL DECOR ON ZONE: ' + CONVERT(varchar(10), @zoneID);
DELETE FROM decor WHERE zoneid=@zoneID;
INSERT INTO decor (definition, quaternionx, quaterniony, quaternionz, quaternionw, zoneid, x, y, z, scale, changed, fadedistance, category, locked) VALUES
(3493,0,0.544639,0,0.838671,114,233088,254080,21642,1,1,0,1,1);
SET @zoneID = 119;
PRINT N'DELETING ALL DECOR ON ZONE: ' + CONVERT(varchar(10), @zoneID);
DELETE FROM decor WHERE zoneid=@zoneID;
INSERT INTO decor (definition, quaternionx, quaterniony, quaternionz, quaternionw, zoneid, x, y, z, scale, changed, fadedistance, category, locked) VALUES
(3495,0,0,0,1,119,295552,253824,30190,1,1,0,1,1);
SET @zoneID = 131;
PRINT N'DELETING ALL DECOR ON ZONE: ' + CONVERT(varchar(10), @zoneID);
DELETE FROM decor WHERE zoneid=@zoneID;
INSERT INTO decor (definition, quaternionx, quaterniony, quaternionz, quaternionw, zoneid, x, y, z, scale, changed, fadedistance, category, locked) VALUES
(3430,0,0,0,1,131,261248,249984,27424,1,1,0,1,1);
GO
USE [perpetuumsa]
GO
DECLARE @zoneID INT;
SET @zoneID = 105;
PRINT N'DELETING ALL DECOR ON ZONE: ' + CONVERT(varchar(10), @zoneID);
DELETE FROM decor WHERE zoneid=@zoneID;
INSERT INTO decor (definition, quaternionx, quaterniony, quaternionz, quaternionw, zoneid, x, y, z, scale, changed, fadedistance, category, locked) VALUES
--REPLACE
(3291,0,0,0,1,105,20096,26496,4140,1,1,0,1,1),
(3291,0,0.507538,0,0.861629,105,15232,34944,4140,1,1,0,1,1),
(3291,0,-0.529919,0,0.848048,105,26752,35456,4140,1,1,0,1,1),
(3291,0.095229,0.01085,0.112682,0.988997,105,20096,21852,4077,1,1,0,1,1),
(3291,0,0,-0.078459,0.996917,105,20096,17252,4073,1,1,0,1,1),
(3291,0,0,0.07846,0.996917,105,20096,12944,3953,1,1,0,1,1),
(3291,0.023254,0.189387,-0.11963,0.97431,105,20847,8767,3954,1,1,0,1,1),
(3291,-0.050837,-0.528265,0.000929,0.847556,105,31068,37741,4140,1,1,0,1,1),
(3291,-0.143563,-0.519404,0.049008,0.840956,105,34695,39727,4018,1,1,0,1,1),
(3291,0.012692,0.500902,0.098366,0.859801,105,10437,37389,4031,1,1,0,1,1),
(3692,0,0,0,1,105,17792,28288,4122,1,1,0,1,1),
(3691,0,0,0,1,105,23424,28288,4140,1,1,0,1,1),
(3692,0,0,0.241922,0.970296,105,23680,42112,3426,1,1,0,1,1),
(3693,0,0,-0.34202,0.939693,105,20864,45696,4008,1,1,0,1,1),
(3691,0,0,-0.113203,0.993572,105,17024,40320,3247,1,1,0,1,1);
--END REPLACE
GO
USE [perpetuumsa]
GO
DECLARE @zoneID INT;
SET @zoneID = 104;
PRINT N'DELETING ALL DECOR ON ZONE: ' + CONVERT(varchar(10), @zoneID);
DELETE FROM decor WHERE zoneid=@zoneID;
INSERT INTO decor (definition, quaternionx, quaterniony, quaternionz, quaternionw, zoneid, x, y, z, scale, changed, fadedistance, category, locked) VALUES
--REPLACE
(3343,-0.002131,0.997527,-0.034834,0.061012,104,18048,29568,4834,5,1,0,1,1),
(3443,0,0,0.052336,0.99863,104,13952,17024,4107,1,1,0,1,1),
(3498,-0.046422,0.758988,-0.039648,-0.648237,104,24704,21856,5158,0.5,1,0,1,1),
(2747,0,0,-0.165048,0.986286,104,47488,35712,911,1,1,0,1,1);
--END REPLACE
GO
USE [perpetuumsa]
GO
DECLARE @zoneID INT;
SET @zoneID = 103;
PRINT N'DELETING ALL DECOR ON ZONE: ' + CONVERT(varchar(10), @zoneID);
DELETE FROM decor WHERE zoneid=@zoneID;
INSERT INTO decor (definition, quaternionx, quaterniony, quaternionz, quaternionw, zoneid, x, y, z, scale, changed, fadedistance, category, locked) VALUES
--REPLACE
(3474,0,0,0,1,103,43136,30336,4144,1,1,0,1,1),
(3337,0,0,0,1,103,43136,33152,6460,1,1,0,1,1),
(3337,0,0,0,1,103,43136,31872,6462,1,1,0,1,1),
(3474,0,0,0,1,103,43109,27776,4144,1,1,0,1,1),
(3337,0,0,0,1,103,43154,29056,6477,1,1,0,1,1),
(3345,0,0.99863,0,0.052336,103,43136,26240,3625,1,1,0,1,1),
(3718,0,-0.999657,0,-0.026177,103,44908,20864,4144,1,1,0,1,1),
(3718,0,0.999847,0,0.017452,103,44943,23424,4144,1,1,0,1,1),
(3727,0,0,0,1,103,44117,26953,4144,3,1,0,1,1),
(3393,0,0,0,1,103,44160,25425,4144,1,1,0,1,1),
(3396,0,0,0,1,103,44292,27008,9146,1,1,0,1,1),
(3697,0,0,0,1,103,40064,33152,4144,1,1,0,1,1),
(3697,0,0,0,1,103,47744,29312,4136,1,1,0,1,1),
(3697,0,0,0,1,103,39040,22400,4144,1,1,0,1,1),
(3337,0,0.707107,0,0.707106,103,17280,19995,4487,1,1,0,1,1),
(3337,0,0.707107,0,0.707107,103,19599,20000,4475,1,1,0,1,1),
(3337,0,0.700909,0,0.71325,103,21960,19972,4456,1,1,0,1,1),
(3337,0,0.707106,0,0.707107,103,24192,19953,4452,1,1,0,1,1),
(3337,0,0.707107,0,0.707106,103,26496,19948,4453,1,1,0,1,1),
(3458,0,-0.999049,0,-0.043619,103,20956,20096,3509,1,1,0,1,1),
(3458,0,-0.999049,0,-0.043619,103,25340,20096,3472,1,1,0,1,1),
(3458,0,0.99863,0,0.052336,103,27682,19929,3430,1,1,0,1,1),
(3342,0,-0.737278,0,0.67559,103,16053,21632,4144,1,1,0,1,1),
(3342,0,-0.725375,0,0.688354,103,18264,21632,4144,1,1,0,1,1),
(3342,0,-0.725375,0,0.688354,103,20806,21632,4144,1,1,0,1,1),
(3342,0,-0.725375,0,0.688354,103,23006,21632,4144,1,1,0,1,1),
(3342,0,-0.725375,0,0.688354,103,25205,21632,4144,1,1,0,1,1),
(3342,0,-0.725375,0,0.688354,103,25205,21632,4144,1,1,0,1,1),
(3342,0,-0.725375,0,0.688354,103,27549,21632,4144,1,1,0,1,1),
(1406,0,0,0,1,103,20864,54656,4122,2.5,1,0,1,1),
(3458,0,-0.999049,0,-0.043619,103,23124,20096,3529,1,1,0,1,1),
(3458,0,-0.999048,0,-0.043619,103,16163,20096,3382,1,1,0,1,1),
(3458,0,-0.999657,0,-0.026177,103,18397,20096,3402,1,1,0,1,1),
(3723,0,0.999848,0,-0.017452,103,42839,26949,3837,5,1,0,1,1),
(2762,0,0,0,1,103,52699,38801,534,7.5,1,0,1,1);
--END REPLACE
GO
USE [perpetuumsa]
GO
DECLARE @zoneID INT;
SET @zoneID = 102;
PRINT N'DELETING ALL DECOR ON ZONE: ' + CONVERT(varchar(10), @zoneID);
DELETE FROM decor WHERE zoneid=@zoneID;
INSERT INTO decor (definition, quaternionx, quaterniony, quaternionz, quaternionw, zoneid, x, y, z, scale, changed, fadedistance, category, locked) VALUES
--REPLACE
(3288,0.040722,0.015632,-0.017435,0.998896,102,18561,38333,1542,1,1,0,1,1);
--END REPLACE
GO
USE [perpetuumsa]
GO
DECLARE @zoneID INT;
SET @zoneID = 101;
PRINT N'DELETING ALL DECOR ON ZONE: ' + CONVERT(varchar(10), @zoneID);
DELETE FROM decor WHERE zoneid=@zoneID;
INSERT INTO decor (definition, quaternionx, quaterniony, quaternionz, quaternionw, zoneid, x, y, z, scale, changed, fadedistance, category, locked) VALUES
--REPLACE
(3509,0,0,0,1,101,22400,22912,4242,1,1,0,1,1),
(2760,0,0,0,1,101,8320,24192,6372,1,1,0,1,1),
(2760,0.095846,0,0,0.995396,101,56019,29056,-3823,3,1,0,1,1),
(2753,0,0,-0.156434,0.98769,101,43882,46206,-415,1,1,0,1,1),
(1993,0,0,0,1,101,35712,36480,4310,1,1,0,1,1),
(1992,0,0,0,1,101,38016,34432,5208,1,1,0,1,1),
(1992,0,0,0,1,101,36785,35200,4940,1,1,0,1,1);
--END REPLACE
GO
USE [perpetuumsa]
GO
DECLARE @zoneID INT;
SET @zoneID = 100;
PRINT N'DELETING ALL DECOR ON ZONE: ' + CONVERT(varchar(10), @zoneID);
DELETE FROM decor WHERE zoneid=@zoneID;
INSERT INTO decor (definition, quaternionx, quaterniony, quaternionz, quaternionw, zoneid, x, y, z, scale, changed, fadedistance, category, locked) VALUES
--REPLACE
(3491,0,0,0,1,100,32883,33910,5778,1,1,0,1,1),
(3458,0,-0.997564,0,0.069756,100,44672,35712,3994,1,1,0,1,1),
(3458,0,0.999848,0,0.017452,100,47232,35712,3942,1,1,0,1,1),
(2798,0,0,0,1,100,46922,35495,3992,1,1,0,1,1),
(3464,0,0,0,1,100,42264,37504,5256,1,1,0,1,1),
(3464,0,0,0,1,100,42131,41772,5296,1,1,0,1,1),
(3689,0,0,0,1,100,40320,42112,4998,1,1,0,1,1),
(3696,0,0,0,1,100,32128,41344,5020,1,1,0,1,1),
(3718,0,0,0,1,100,45695,33408,3984,1,1,0,1,1),
(2760,0,0,0,1,100,41088,34029,4998,1,1,0,1,1),
(2826,0,0,0,1,100,42943,20608,5020,1,1,0,1,1),
(3689,0,-0.207912,0,0.978148,100,39421,20096,5020,1,1,0,1,1),
(3393,0,0,0,1,100,43904,24960,5018,1,1,0,1,1),
(3393,0,0,0,1,100,43878,27008,5020,1,1,0,1,1),
(3333,0,0.71325,0,0.700909,100,47232,29312,3712,1,1,0,1,1),
(3333,0,0.707107,0,0.707107,100,47229,25728,3660,1,1,0,1,1),
(3333,0,0.694658,0,0.71934,100,47159,22144,3540,1,1,0,1,1),
(3333,0,0.694659,0,0.719339,100,47133,18816,3496,1,1,0,1,1),
(3333,0,0,0,1,100,45850,17160,3836,1,1,0,1,1),
(3333,0,0,0,1,100,42546,17108,4044,1,1,0,1,1),
(3333,0,0,0,1,100,39040,17121,3870,1,1,0,1,1),
(3333,0,-0.390731,0,0.920505,100,34363,21120,3958,1,1,0,1,1),
(3333,0,-0.358368,0,0.93358,100,29654,25650,3982,1,1,0,1,1),
(3333,0,0.707106,0,-0.707107,100,28496,28145,3944,1,1,0,1,1),
(3333,0,0.700909,0,-0.713251,100,28469,31809,4027,1,1,0,1,1),
(3333,0,0.681998,0,-0.731354,100,28663,35200,3992,1,1,0,1,1),
(3333,0,0.707106,0,-0.707107,100,28699,38528,4035,1,1,0,1,1),
(3333,0,-0.707107,0,0.707107,100,28779,42368,3985,1,1,0,1,1),
(3333,0,0,0,1,100,39552,44928,3966,1,1,0,1,1),
(3333,0,-0.008727,0,0.999962,100,36300,44886,3966,1,1,0,1,1),
(3333,0,0,0,1,100,33278,44879,3966,1,1,0,1,1),
(3333,0,0,0,1,100,30046,44806,4030,1,1,0,1,1),
(3333,0,0,0,1,100,42557,44928,3966,1,1,0,1,1),
(3333,-0.006111,-0.430364,-0.025453,0.902276,100,36413,18358,3966,1,1,0,1,1),
(3333,0,-0.382683,0,0.92388,100,32057,23334,3844,1,1,0,1,1),
(3689,0,0,0,1,100,43904,29056,5018,1,1,0,1,1);
--END REPLACE
PRINT N'DONE SETTING DECOR ON ALL DECORED GAMMAS';
GO
PRINT N'03_artifactspawninfo__2021_08_01.sql';
USE [perpetuumsa]
GO
---------------------------------------------
-- GAMMA ARTIFACT SPAWN INFO
--
-- Date Modified: 2021/08/01
---------------------------------------------
DROP TABLE IF EXISTS #GAMMA_ARTI_SPAWN_INFO;
CREATE TABLE #GAMMA_ARTI_SPAWN_INFO(
tier INT NULL,
artifactTypeName VARCHAR(100),
probWeight FLOAT
);
INSERT INTO #GAMMA_ARTI_SPAWN_INFO(tier, artifactTypeName, probWeight) VALUES
--(0,'salvage_pelistal_level1_gamma',0),
--(0,'observer_pelistal_level1_gamma',0),
--(0,'infestation_pelistal_level1_gamma',0),
--(0,'industrial_pelistal_level1_gamma',0),
(0,'salvage_pelistal_level2_gamma',10),
(0,'science_pelistal_level2_gamma',10),
(0,'observer_pelistal_level2_gamma',10),
(0,'infestation_pelistal_level2_gamma',10),
(0,'industrial_pelistal_level2_gamma',10),
(0,'salvage_pelistal_level3_gamma',75),
(0,'science_pelistal_level3_gamma',75),
(0,'observer_pelistal_level3_gamma',75),
(0,'infestation_pelistal_level3_gamma',75),
(0,'industrial_pelistal_level3_gamma',75),
--(0,'science_nuimqol_level1_gamma',0),
--(0,'salvage_nuimqol_level1_gamma',0),
--(0,'observer_nuimqol_level1_gamma',0),
--(0,'infestation_nuimqol_level1_gamma',0),
--(0,'industrial_nuimqol_level1_gamma',0),
(0,'salvage_nuimqol_level2_gamma',10),
(0,'science_nuimqol_level2_gamma',10),
(0,'observer_nuimqol_level2_gamma',10),
(0,'infestation_nuimqol_level2_gamma',10),
(0,'industrial_nuimqol_level2_gamma',10),
(0,'salvage_nuimqol_level3_gamma',75),
(0,'science_nuimqol_level3_gamma',75),
(0,'observer_nuimqol_level3_gamma',75),
(0,'infestation_nuimqol_level3_gamma',75),
(0,'industrial_nuimqol_level3_gamma',75),
--(0,'salvage_thelodica_level1_gamma',0),
--(0,'science_thelodica_level1_gamma',0),
--(0,'observer_thelodica_level1_gamma',0),
--(0,'infestation_thelodica_level1_gamma',0),
--(0,'industrial_thelodica_level1_gamma',0),
(0,'salvage_thelodica_level2_gamma',10),
(0,'infestation_thelodica_level2_gamma',10),
(0,'industrial_thelodica_level2_gamma',10),
(0,'salvage_thelodica_level3_gamma',75),
(0,'science_thelodica_level3_gamma',75),
(0,'observer_thelodica_level3_gamma',75),
(0,'infestation_thelodica_level3_gamma',75),
(0,'industrial_thelodica_level3_gamma',75),
--(1,'salvage_pelistal_level1_gamma',0),
--(1,'observer_pelistal_level1_gamma',0),
--(1,'infestation_pelistal_level1_gamma',0),
--(1,'industrial_pelistal_level1_gamma',0),
(1,'salvage_pelistal_level2_gamma',25),
(1,'science_pelistal_level2_gamma',25),
(1,'observer_pelistal_level2_gamma',25),
(1,'infestation_pelistal_level2_gamma',25),
(1,'industrial_pelistal_level2_gamma',25),
(1,'salvage_pelistal_level3_gamma',50),
(1,'science_pelistal_level3_gamma',50),
(1,'observer_pelistal_level3_gamma',50),
(1,'infestation_pelistal_level3_gamma',50),
(1,'industrial_pelistal_level3_gamma',50),
--(1,'science_nuimqol_level1_gamma',0),
--(1,'salvage_nuimqol_level1_gamma',0),
--(1,'observer_nuimqol_level1_gamma',0),
--(1,'infestation_nuimqol_level1_gamma',0),
--(1,'industrial_nuimqol_level1_gamma',0),
(1,'salvage_nuimqol_level2_gamma',25),
(1,'science_nuimqol_level2_gamma',25),
(1,'observer_nuimqol_level2_gamma',25),
(1,'infestation_nuimqol_level2_gamma',25),
(1,'industrial_nuimqol_level2_gamma',25),
(1,'salvage_nuimqol_level3_gamma',50),
(1,'science_nuimqol_level3_gamma',50),
(1,'observer_nuimqol_level3_gamma',50),
(1,'infestation_nuimqol_level3_gamma',50),
(1,'industrial_nuimqol_level3_gamma',50),
--(1,'salvage_thelodica_level1_gamma',0),
--(1,'science_thelodica_level1_gamma',0),
--(1,'observer_thelodica_level1_gamma',0),
--(1,'infestation_thelodica_level1_gamma',0),
--(1,'industrial_thelodica_level1_gamma',0),
(1,'salvage_thelodica_level2_gamma',25),
(1,'infestation_thelodica_level2_gamma',25),
(1,'industrial_thelodica_level2_gamma',25),
(1,'salvage_thelodica_level3_gamma',50),
(1,'science_thelodica_level3_gamma',50),
(1,'observer_thelodica_level3_gamma',50),
(1,'infestation_thelodica_level3_gamma',50),
(1,'industrial_thelodica_level3_gamma',50),
(2,'salvage_pelistal_level1_gamma',5),
(2,'observer_pelistal_level1_gamma',5),
(2,'infestation_pelistal_level1_gamma',5),
(2,'industrial_pelistal_level1_gamma',5),
(2,'salvage_pelistal_level2_gamma',20),
(2,'science_pelistal_level2_gamma',20),
(2,'observer_pelistal_level2_gamma',20),
(2,'infestation_pelistal_level2_gamma',20),
(2,'industrial_pelistal_level2_gamma',20),
(2,'salvage_pelistal_level3_gamma',50),
(2,'science_pelistal_level3_gamma',50),
(2,'observer_pelistal_level3_gamma',50),
(2,'infestation_pelistal_level3_gamma',50),
(2,'industrial_pelistal_level3_gamma',50),
(2,'science_nuimqol_level1_gamma',5),
(2,'salvage_nuimqol_level1_gamma',5),
(2,'observer_nuimqol_level1_gamma',5),
(2,'infestation_nuimqol_level1_gamma',5),
(2,'industrial_nuimqol_level1_gamma',5),
(2,'salvage_nuimqol_level2_gamma',20),
(2,'science_nuimqol_level2_gamma',20),
(2,'observer_nuimqol_level2_gamma',20),
(2,'infestation_nuimqol_level2_gamma',20),
(2,'industrial_nuimqol_level2_gamma',20),
(2,'salvage_nuimqol_level3_gamma',50),
(2,'science_nuimqol_level3_gamma',50),
(2,'observer_nuimqol_level3_gamma',50),
(2,'infestation_nuimqol_level3_gamma',50),
(2,'industrial_nuimqol_level3_gamma',50),
(2,'salvage_thelodica_level1_gamma',5),
(2,'science_thelodica_level1_gamma',5),
(2,'observer_thelodica_level1_gamma',5),
(2,'infestation_thelodica_level1_gamma',5),
(2,'industrial_thelodica_level1_gamma',5),
(2,'salvage_thelodica_level2_gamma',20),
(2,'infestation_thelodica_level2_gamma',20),
(2,'industrial_thelodica_level2_gamma',20),
(2,'salvage_thelodica_level3_gamma',50),
(2,'science_thelodica_level3_gamma',50),
(2,'observer_thelodica_level3_gamma',50),
(2,'infestation_thelodica_level3_gamma',50),
(2,'industrial_thelodica_level3_gamma',50),
(3,'salvage_pelistal_level1_gamma',10),
(3,'observer_pelistal_level1_gamma',10),
(3,'infestation_pelistal_level1_gamma',10),
(3,'industrial_pelistal_level1_gamma',10),
(3,'salvage_pelistal_level2_gamma',15),
(3,'science_pelistal_level2_gamma',15),
(3,'observer_pelistal_level2_gamma',15),
(3,'infestation_pelistal_level2_gamma',15),
(3,'industrial_pelistal_level2_gamma',15),
(3,'salvage_pelistal_level3_gamma',20),
(3,'science_pelistal_level3_gamma',20),
(3,'observer_pelistal_level3_gamma',20),
(3,'infestation_pelistal_level3_gamma',20),
(3,'industrial_pelistal_level3_gamma',20),
(3,'science_nuimqol_level1_gamma',10),
(3,'salvage_nuimqol_level1_gamma',10),
(3,'observer_nuimqol_level1_gamma',10),
(3,'infestation_nuimqol_level1_gamma',10),
(3,'industrial_nuimqol_level1_gamma',10),
(3,'salvage_nuimqol_level2_gamma',15),
(3,'science_nuimqol_level2_gamma',15),
(3,'observer_nuimqol_level2_gamma',15),
(3,'infestation_nuimqol_level2_gamma',15),
(3,'industrial_nuimqol_level2_gamma',15),
(3,'salvage_nuimqol_level3_gamma',20),
(3,'science_nuimqol_level3_gamma',20),
(3,'observer_nuimqol_level3_gamma',20),
(3,'infestation_nuimqol_level3_gamma',20),
(3,'industrial_nuimqol_level3_gamma',20),
(3,'salvage_thelodica_level1_gamma',10),
(3,'science_thelodica_level1_gamma',10),
(3,'observer_thelodica_level1_gamma',10),
(3,'infestation_thelodica_level1_gamma',10),
(3,'industrial_thelodica_level1_gamma',10),
(3,'salvage_thelodica_level2_gamma',15),
(3,'infestation_thelodica_level2_gamma',15),
(3,'industrial_thelodica_level2_gamma',15),
(3,'salvage_thelodica_level3_gamma',20),
(3,'science_thelodica_level3_gamma',20),
(3,'observer_thelodica_level3_gamma',20),
(3,'infestation_thelodica_level3_gamma',20),
(3,'industrial_thelodica_level3_gamma',20);
SELECT * FROM artifactspawninfo WHERE zoneid > 99 AND zoneid < 141;
DELETE artifactspawninfo WHERE zoneid > 99 AND zoneid < 141;
INSERT INTO artifactspawninfo(artifacttype, zoneid, rate)
SELECT
(SELECT TOP 1 id FROM artifacttypes WHERE i.artifactTypeName=name),
z.id,
i.probWeight
FROM #GAMMA_ARTI_SPAWN_INFO i
JOIN zones z ON z.pbsTechLimit=i.tier AND z.id > 105
ORDER BY z.pbsTechLimit, z.id;
DROP TABLE IF EXISTS #GAMMA_ARTI_SPAWN_INFO;
GO
PRINT N'04_teleports__2021_08_07.sql';
USE [perpetuumsa]
GO
-----------------------------------------------
-- Gamma teleport network
-- Phase 1: setup all but disable beta/gamma connections
-- Date modified: 2021/10/20
-----------------------------------------------
PRINT N'BUILDING TELEPORT NETWORK';
DECLARE @eidStart AS BIGINT = 5600;
DROP TABLE IF EXISTS #TELEDEF_BYRACE;
CREATE TABLE #TELEDEF_BYRACE(
def int,
raceId int
);
INSERT INTO #TELEDEF_BYRACE (def, raceId) VALUES
(1394,1),
(1395,2),
(667,3);
DROP TABLE IF EXISTS #DISABLED_CONNECTIONS;
CREATE TABLE #DISABLED_CONNECTIONS(
sourceColName VARCHAR(100),
targetColName VARCHAR(100)
);
INSERT INTO #DISABLED_CONNECTIONS (sourceColName, targetColName) VALUES
('teleport_column_tmpvp_4','tpc_z100'),
('tpc_z100','teleport_column_tmpvp_4'),
('teleport_column_initia_sw','tpc_z101'),
('tpc_z101','teleport_column_initia_sw'),
('teleport_column_asipvp_5','tpc_z102'),
('tpc_z102','teleport_column_asipvp_5'),
('teleport_column_asi2_vougar','tpc_z103'),
('tpc_z103','teleport_column_asi2_vougar'),
('teleport_column_icspvp_2','tpc_z104'),
('tpc_z104','teleport_column_icspvp_2'),
('teleport_column_ics2_vsehovski','tpc_z105'),
('tpc_z105','teleport_column_ics2_vsehovski');
DROP TABLE IF EXISTS #CONNECTIONS;
CREATE TABLE #CONNECTIONS(
sourceColName VARCHAR(100),
targetColName VARCHAR(100)
);
INSERT INTO #CONNECTIONS (sourceColName, targetColName) VALUES
('teleport_column_tmpvp_4','tpc_z100'),
('tpc_z100','teleport_column_tmpvp_4'),
('tpc_z100','tpc_z130_SW'),
('tpc_z100','tpc_z112_NE'),
('tpc_z100','tpc_z113_S'),
('teleport_column_initia_sw','tpc_z101'),
('tpc_z101','teleport_column_initia_sw'),
('tpc_z101','tpc_z113_N'),
('tpc_z101','tpc_z115_E'),
('teleport_column_asipvp_5','tpc_z102'),
('tpc_z102','teleport_column_asipvp_5'),
('tpc_z102','tpc_z120_SE'),
('tpc_z102','tpc_z115_W'),
('tpc_z102','tpc_z116_N'),
('teleport_column_asi2_vougar','tpc_z103'),
('tpc_z103','teleport_column_asi2_vougar'),
('tpc_z103','tpc_z116_S'),
('tpc_z103','tpc_z117_E'),
('tpc_z103','tpc_z109_N'),
('teleport_column_icspvp_2','tpc_z104'),
('tpc_z104','teleport_column_icspvp_2'),
('tpc_z104','tpc_z137_N'),
('tpc_z104','tpc_z109_S'),
('tpc_z104','tpc_z111_W'),
('teleport_column_ics2_vsehovski','tpc_z105'),
('tpc_z105','teleport_column_ics2_vsehovski'),
('tpc_z105','tpc_z132_SW'),
('tpc_z105','tpc_z112_SE'),
('tpc_z105','tpc_z111_E'),
('tpc_z110_W','tpc_z109_E'),
('tpc_z110_E','tpc_z111_N'),
('tpc_z119_S','tpc_z117_NW'),
('tpc_z119_N','tpc_z120_SW'),
('tpc_z131_NW','tpc_z130_SE'),
('tpc_z131_E','tpc_z132_NW'),
('tpc_z106_NE','tpc_z112_NW'),
('tpc_z106_SW','tpc_z107_E'),
('tpc_z107_E','tpc_z106_SW'),
('tpc_z107_W','tpc_z108_E'),
('tpc_z108_E','tpc_z107_W'),
('tpc_z108_SW','tpc_z116_E'),
('tpc_z109_N','tpc_z103'),
('tpc_z109_W','tpc_z139_N'),
('tpc_z109_S','tpc_z104'),
('tpc_z109_E','tpc_z110_W'),
('tpc_z111_N','tpc_z110_E'),
('tpc_z111_E','tpc_z105'),
('tpc_z111_S','tpc_z135_N'),
('tpc_z111_W','tpc_z104'),
('tpc_z112_NW','tpc_z106_NE'),
('tpc_z112_NE','tpc_z100'),
('tpc_z112_SE','tpc_z105'),
('tpc_z113_N','tpc_z101'),
('tpc_z113_S','tpc_z100'),
('tpc_z113_E','tpc_z127_SW'),
('tpc_z114_S','tpc_z113_W'),
('tpc_z114_N','tpc_z115_S'),
('tpc_z115_N','tpc_z123_SW'),
('tpc_z115_S','tpc_z114_N'),
('tpc_z116_S','tpc_z103'),
('tpc_z116_E','tpc_z108_SW'),
('tpc_z117_NW','tpc_z119_S'),
('tpc_z117_NE','tpc_z103'),
('tpc_z117_SW','tpc_z118_N'),
('tpc_z118_N','tpc_z117_SW'),
('tpc_z118_S','tpc_z140_W'),
('tpc_z120_NW','tpc_z121_SW'),
('tpc_z120_SE','tpc_z102'),
('tpc_z120_SW','tpc_z119_N'),
('tpc_z121_NE','tpc_z122_NW'),
('tpc_z121_SW','tpc_z120_NW'),
('tpc_z122_NW','tpc_z121_NE'),
('tpc_z122_SE','tpc_z123_NW'),
('tpc_z123_NW','tpc_z122_SE'),
('tpc_z123_NE','tpc_z124_W'),
('tpc_z123_SW','tpc_z115_N'),
('tpc_z124_E','tpc_z125_N'),
('tpc_z124_W','tpc_z123_NE'),
('tpc_z125_N','tpc_z124_E'),
('tpc_z125_E','tpc_z126_N'),
('tpc_z125_W','tpc_z101'),
('tpc_z126_N','tpc_z125_E'),
('tpc_z126_S','tpc_z127_NE'),
('tpc_z127_SW','tpc_z113_E'),
('tpc_z127_SE','tpc_z128_NW'),
('tpc_z127_NE','tpc_z126_S'),
('tpc_z128_NW','tpc_z127_SE'),
('tpc_z128_NE','tpc_z129_W'),
('tpc_z129_W','tpc_z128_NE'),
('tpc_z129_S','tpc_z130_NE'),
('tpc_z130_NE','tpc_z129_S'),
('tpc_z130_SE','tpc_z131_NW'),
('tpc_z130_SW','tpc_z100'),
('tpc_z132_NW','tpc_z131_E'),
('tpc_z132_SE','tpc_z133_NE'),
('tpc_z132_SW','tpc_z105'),
('tpc_z133_NE','tpc_z132_SE'),
('tpc_z133_SW','tpc_z134_E'),
('tpc_z134_W','tpc_z135_E'),
('tpc_z134_E','tpc_z133_SW'),
('tpc_z135_N','tpc_z111_S'),
('tpc_z135_S','tpc_z136_N'),
('tpc_z135_E','tpc_z134_W'),
('tpc_z136_N','tpc_z135_S'),
('tpc_z136_W','tpc_z137_E'),
('tpc_z137_N','tpc_z104'),
('tpc_z137_W','tpc_z138_E'),
('tpc_z137_E','tpc_z136_W'),
('tpc_z138_N','tpc_z139_S'),
('tpc_z138_E','tpc_z137_W'),
('tpc_z139_N','tpc_z109_W'),
('tpc_z139_W','tpc_z140_E'),
('tpc_z139_S','tpc_z138_N'),
('tpc_z140_W','tpc_z118_S'),
('tpc_z140_E','tpc_z139_W');
DROP TABLE IF EXISTS #RAWDATA;
CREATE TABLE #RAWDATA(
zoneid int,
raceid int,
x int,
y int,
teleName VARCHAR(100)
);
INSERT INTO #RAWDATA (zoneid, raceid, x, y, teleName) VALUES
(100,1,139, 131,'tpc_z100'),
(101,1,90, 85,'tpc_z101'),
(102,3,73, 148,'tpc_z102'),
(103,3,92,121,'tpc_z103'),
(104,2,128, 81,'tpc_z104'),
(105,2,78, 127,'tpc_z105'),
(110,2,261, 1201,'tpc_z110_W'),
(110,2,1711, 1155,'tpc_z110_E'),
(114,1,1642, 1607,'tpc_z114_S'),
(114,1,463,507,'tpc_z114_N'),
(119,3,580, 1635,'tpc_z119_S'),
(119,3,1428, 481,'tpc_z119_N'),
(131,2,471,456,'tpc_z131_NW'),
(131,2,1779, 1162,'tpc_z131_E'),
(106,2,289, 468,'tpc_z106_NW'),
(106,2,1390, 1829,'tpc_z106_SE'),
(106,2,1695, 348,'tpc_z106_NE'),
(106,2,187, 1536,'tpc_z106_SW'),
(107,3,996,297,'tpc_z107_N'),
(107,3,1761, 1192,'tpc_z107_E'),
(107,3,1013, 1911,'tpc_z107_S'),
(107,3,288, 1190,'tpc_z107_W'),
(108,3,1015, 435,'tpc_z108_N'),
(108,3,1821, 856,'tpc_z108_E'),
(108,3,1764, 1740,'tpc_z108_SE'),
(108,3,603, 1694,'tpc_z108_SW'),
(109,3,975, 333,'tpc_z109_N'),
(109,3,255, 915,'tpc_z109_W'),
(109,3,1109, 1720,'tpc_z109_S'),
(109,3,1718, 801,'tpc_z109_E'),
(111,2,619, 313,'tpc_z111_N'),
(111,2,1878, 897,'tpc_z111_E'),
(111,2,1416, 1849,'tpc_z111_S'),
(111,2,289, 1316,'tpc_z111_W'),
(112,2,386, 235,'tpc_z112_NW'),
(112,2,1577, 199,'tpc_z112_NE'),
(112,2,1364, 1269,'tpc_z112_SE'),
(112,2,602, 1663,'tpc_z112_SW'),
(113,1,1068, 346,'tpc_z113_N'),
(113,1,342, 1482,'tpc_z113_W'),
(113,1,1416, 1802,'tpc_z113_S'),
(113,1,1729, 857,'tpc_z113_E'),
(115,1,929, 265,'tpc_z115_N'),
(115,1,324, 1315,'tpc_z115_W'),
(115,1,1759, 1755,'tpc_z115_S'),
(115,1,1699, 881,'tpc_z115_E'),
(116,3,975, 534,'tpc_z116_N'),
(116,3,156, 1189,'tpc_z116_W'),
(116,3,1405, 1874,'tpc_z116_S'),
(116,3,1897, 1044,'tpc_z116_E'),
(117,3,280, 247,'tpc_z117_NW'),
(117,3,1425, 389,'tpc_z117_NE'),
(117,3,1731, 1348,'tpc_z117_SE'),
(117,3,808, 1456,'tpc_z117_SW'),
(118,3,1245, 272,'tpc_z118_N'),
(118,3,1789, 769,'tpc_z118_E'),
(118,3,837, 1807,'tpc_z118_S'),
(118,3,302, 930,'tpc_z118_W'),
(120,3,460, 270,'tpc_z120_NW'),
(120,3,1531, 321,'tpc_z120_NE'),
(120,3,1547, 1408,'tpc_z120_SE'),
(120,3,254, 1387,'tpc_z120_SW'),
(121,1,428, 305,'tpc_z121_NW'),
(121,1,1624, 401,'tpc_z121_NE'),
(121,1,1566, 1679,'tpc_z121_SE'),
(121,1,436, 1739,'tpc_z121_SW'),
(122,1,369, 622,'tpc_z122_NW'),
(122,1,1648, 1673,'tpc_z122_SE'),
(122,1,1430, 486,'tpc_z122_NE'),
(122,1,535, 1739,'tpc_z122_SW'),
(123,1,265, 446,'tpc_z123_NW'),
(123,1,1570, 352,'tpc_z123_NE'),
(123,1,1431, 1559,'tpc_z123_SE'),
(123,1,381, 1806,'tpc_z123_SW'),
(124,1,829, 325,'tpc_z124_N'),
(124,1,1794, 900,'tpc_z124_E'),
(124,1,1363, 1722,'tpc_z124_S'),
(124,1,285, 1251,'tpc_z124_W'),
(125,1,756, 233,'tpc_z125_N'),
(125,1,1772, 888,'tpc_z125_E'),
(125,1,1151, 1667,'tpc_z125_S'),
(125,1,380, 1277,'tpc_z125_W'),
(126,1,880, 262,'tpc_z126_N'),
(126,1,1725, 884,'tpc_z126_E'),
(126,1,1226, 1583,'tpc_z126_S'),
(126,1,385, 1171,'tpc_z126_W'),
(127,1,916, 382,'tpc_z127_NW'),
(127,1,348, 1715,'tpc_z127_SW'),
(127,1,1542, 1478,'tpc_z127_SE'),
(127,1,1856, 584,'tpc_z127_NE'),
(128,2,375, 240,'tpc_z128_NW'),
(128,2,1837, 515,'tpc_z128_NE'),
(128,2,1669, 1410,'tpc_z128_SE'),
(128,2,359, 1518,'tpc_z128_SW'),
(129,2,1020, 233,'tpc_z129_N'),
(129,2,1727, 777,'tpc_z129_E'),
(129,2,234, 1271,'tpc_z129_W'),
(129,2,1508, 1737,'tpc_z129_S'),
(130,2,530, 387,'tpc_z130_NW'),
(130,2,1675, 372,'tpc_z130_NE'),
(130,2,1715, 1534,'tpc_z130_SE'),
(130,2,600, 1448,'tpc_z130_SW'),
(132,2,683, 245,'tpc_z132_NW'),
(132,2,1767, 148,'tpc_z132_NE'),
(132,2,1768, 1543,'tpc_z132_SE'),
(132,2,229, 1281,'tpc_z132_SW'),
(133,2,340, 546,'tpc_z133_NW'),
(133,2,1780, 856,'tpc_z133_NE'),
(133,2,1708, 1664,'tpc_z133_SE'),
(133,2,284, 1725,'tpc_z133_SW'),
(134,2,992, 199,'tpc_z134_N'),
(134,2,283, 978,'tpc_z134_W'),
(134,2,651, 1597,'tpc_z134_S'),
(134,2,1809, 835,'tpc_z134_E'),
(135,2,528, 416,'tpc_z135_N'),
(135,2,261, 1217,'tpc_z135_W'),
(135,2,1159, 1780,'tpc_z135_S'),
(135,2,1833, 1239,'tpc_z135_E'),
(136,2,866, 448,'tpc_z136_N'),
(136,2,333, 982,'tpc_z136_W'),
(136,2,942, 1635,'tpc_z136_S'),
(136,2,1770, 952,'tpc_z136_E'),
(137,3,984, 456,'tpc_z137_N'),
(137,3,187, 1057,'tpc_z137_W'),
(137,3,1126, 1770,'tpc_z137_S'),
(137,3,1609, 991,'tpc_z137_E'),
(138,3,1176, 309,'tpc_z138_N'),
(138,3,320, 1036,'tpc_z138_W'),
(138,3,652, 1745,'tpc_z138_S'),
(138,3,1604, 978,'tpc_z138_E'),
(139,3,855, 273,'tpc_z139_N'),
(139,3,336, 1231,'tpc_z139_W'),
(139,3,1168, 1720,'tpc_z139_S'),
(139,3,1863, 916,'tpc_z139_E'),
(140,3,411, 314,'tpc_z140_W'),
(140,3,1758, 438,'tpc_z140_N'),
(140,3,1484, 1371,'tpc_z140_E'),
(140,3,548, 1617,'tpc_z140_S');
DROP TABLE IF EXISTS #TELES;
CREATE TABLE #TELES(
zoneid int,
raceid int,
x int,
y int,
eid bigint,
def int,
ename NVARCHAR(128),
synckey varchar(50),
);
INSERT INTO #TELES (zoneid, raceid, x, y, eid, def, ename, synckey)
SELECT
d.zoneid,
d.raceid,
d.x,
d.y,
@eidStart+ROW_NUMBER() OVER(order by d.zoneid),
(SELECT TOP 1 r.def FROM #TELEDEF_BYRACE r WHERE r.raceid=d.raceid),
d.teleName,
d.teleName
FROM #RAWDATA d order by d.zoneid;
PRINT N'DELETE AND REINSERT teleportdescriptions, entities, zoneentities';
--select * from entities where eid in (select eid from #TELES)
--select * from zoneentities where eid in (select eid from #TELES)
--SELECT * FROM teleportdescriptions WHERE sourcecolumn in (select eid from #TELES) OR targetcolumn in (select eid from #TELES);
DELETE FROM teleportdescriptions WHERE sourcecolumn in (select eid from #TELES) OR targetcolumn in (select eid from #TELES);
DELETE from entities where eid in (select eid from #TELES);
DELETE from zoneentities where eid in (select eid from #TELES);
PRINT N'INSERT entities';
INSERT INTO entities (eid, definition, owner, parent, health, ename, quantity, repackaged, dynprop)
SELECT eid, def, NULL, NULL, 100, ename, 1, 0, '#enabled=i1' FROM #TELES;
PRINT N'INSERT zoneentities';
INSERT INTO zoneentities (zoneID, eid, definition, owner, ename, x, y, z, orientation, enabled, note, runtime, synckey)
SELECT zoneid, eid, NULL, NULL, ename, x+0.5, y+0.5, 0, 0, 1, 'tpcol', 0, synckey FROM #TELES;
PRINT N'INSERT *EXISTING* TELEPORT ENTITIES INTO #TELES (AFTER DELETE/INSERT CALLS USING #TELES)';
INSERT INTO #TELES (zoneid, raceid, x, y, eid, def, ename, synckey)
SELECT zoneID,
(SELECT TOP 1 r.raceId FROM #TELEDEF_BYRACE r WHERE r.def=e.definition),
z.x, z.y, z.eid, e.definition, z.ename, z.synckey
FROM zoneentities z
INNER JOIN entities e ON e.ename=z.ename
WHERE z.ename in (SELECT distinct sourceColName FROM #CONNECTIONS) AND z.ename NOT IN (SELECT ename FROM #TELES);
PRINT N'INSERT teleportdescriptions';
PRINT N'CONNECTING A->B';
INSERT INTO teleportdescriptions
(description, sourcecolumn, targetcolumn, sourcezone, sourcerange, targetzone, targetrange, usetimeout, listable, active, type, sourcecolumnname, targetcolumnname)
SELECT
s.ename+'_to_'+t.ename,
s.eid, t.eid, s.zoneid, 7, t.zoneid, 7, 0, 1, 1, 2, s.ename, t.ename
FROM #CONNECTIONS c
INNER JOIN #TELES s on s.ename = c.sourceColName
INNER JOIN #TELES t on t.ename = c.targetColName;
PRINT N'Bidirectional misses: ';
SELECT
s.ename+'_to_'+t.ename,
s.eid, t.eid, s.zoneid, 7, t.zoneid, 7, 0, 1, 1, 2, s.ename, t.ename
FROM #CONNECTIONS c
INNER JOIN #TELES s on s.ename = c.targetColName
INNER JOIN #TELES t on t.ename = c.sourceColName
WHERE s.ename+'_to_'+t.ename NOT IN (SELECT description from teleportdescriptions)
PRINT N'CONNECTING B->A if missing from config';
--Insert the other direction by joining the opposite names
INSERT INTO teleportdescriptions
(description, sourcecolumn, targetcolumn, sourcezone, sourcerange, targetzone, targetrange, usetimeout, listable, active, type, sourcecolumnname, targetcolumnname)
SELECT
s.ename+'_to_'+t.ename,
s.eid, t.eid, s.zoneid, 7, t.zoneid, 7, 0, 1, 1, 2, s.ename, t.ename
FROM #CONNECTIONS c
INNER JOIN #TELES s on s.ename = c.targetColName
INNER JOIN #TELES t on t.ename = c.sourceColName
WHERE s.ename+'_to_'+t.ename NOT IN (SELECT description from teleportdescriptions)
PRINT N'DISABLING KEY BETA<->GAMMA TELEPORTS FOR PHASE 1';
SELECT * FROM teleportdescriptions
WHERE sourcecolumn IN (SELECT eid FROM zoneentities WHERE ename IN (SELECT sourceColName FROM #DISABLED_CONNECTIONS))
AND targetcolumn IN (SELECT eid FROM zoneentities WHERE ename IN (SELECT targetColName FROM #DISABLED_CONNECTIONS))
UPDATE teleportdescriptions SET
active=0
WHERE sourcecolumn IN (SELECT eid FROM zoneentities WHERE ename IN (SELECT sourceColName FROM #DISABLED_CONNECTIONS))
AND targetcolumn IN (SELECT eid FROM zoneentities WHERE ename IN (SELECT targetColName FROM #DISABLED_CONNECTIONS))
DROP TABLE IF EXISTS #RAWDATA;
DROP TABLE IF EXISTS #TELES;
DROP TABLE IF EXISTS #TELEDEF_BYRACE;
DROP TABLE IF EXISTS #CONNECTIONS;
DROP TABLE IF EXISTS #DISABLED_CONNECTIONS;
PRINT N'TELEPORT NETWORK BUILT';
GO
PRINT N'07_npcreinforcements_gamma_t0_flux__2021_09_01.sql';
USE [perpetuumsa]
GO
-------------------------------------
-- Npc reinforcements for Flux ore
-- on new gamma zones
-- Date modified: 2021/09/01
-------------------------------------
DECLARE @fluxOre INT;
SET @fluxOre = (SELECT TOP 1 idx FROM minerals WHERE name = 'fluxore');
DECLARE @reinforceType INT;
SET @reinforceType = (SELECT TOP 1 id FROM npcreinforcementtypes WHERE name='minerals');
SELECT * FROM npcreinforcements WHERE reinforcementType=@reinforceType AND targetId=@fluxOre AND
zoneId IN (110, 114, 119, 131);
DELETE FROM npcreinforcements WHERE reinforcementType=@reinforceType AND targetId=@fluxOre AND
zoneId IN (110, 114, 119, 131);
INSERT INTO npcreinforcements (reinforcementType, targetId, threshold, presenceId, zoneId) VALUES
(@reinforceType, @fluxOre, 0.1, (SELECT TOP 1 id FROM npcpresence WHERE NAME='flux_ore_npc_wave_1_pelistal'), 110),
(@reinforceType, @fluxOre, 0.2, (SELECT TOP 1 id FROM npcpresence WHERE NAME='flux_ore_npc_wave_2_nuimqol'), 110),
(@reinforceType, @fluxOre, 0.3, (SELECT TOP 1 id FROM npcpresence WHERE NAME='flux_ore_npc_wave_3_thelodica'), 110),
(@reinforceType, @fluxOre, 0.4, (SELECT TOP 1 id FROM npcpresence WHERE NAME='flux_ore_npc_wave_4_pelistal'), 110),
(@reinforceType, @fluxOre, 0.5, (SELECT TOP 1 id FROM npcpresence WHERE NAME='flux_ore_npc_wave_5_nuimqol'), 110),
(@reinforceType, @fluxOre, 0.6, (SELECT TOP 1 id FROM npcpresence WHERE NAME='flux_ore_npc_wave_6_thelodica'), 110),
(@reinforceType, @fluxOre, 0.7, (SELECT TOP 1 id FROM npcpresence WHERE NAME='flux_ore_npc_wave_7_pelistal'), 110),
(@reinforceType, @fluxOre, 0.8, (SELECT TOP 1 id FROM npcpresence WHERE NAME='flux_ore_npc_wave_8_nuimqol'), 110),
(@reinforceType, @fluxOre, 0.9, (SELECT TOP 1 id FROM npcpresence WHERE NAME='flux_ore_npc_wave_9_thelodica'), 110),
(@reinforceType, @fluxOre, 0.1, (SELECT TOP 1 id FROM npcpresence WHERE NAME='flux_ore_npc_wave_1_pelistal'), 114),
(@reinforceType, @fluxOre, 0.2, (SELECT TOP 1 id FROM npcpresence WHERE NAME='flux_ore_npc_wave_2_pelistal'), 114),
(@reinforceType, @fluxOre, 0.3, (SELECT TOP 1 id FROM npcpresence WHERE NAME='flux_ore_npc_wave_3_pelistal'), 114),
(@reinforceType, @fluxOre, 0.4, (SELECT TOP 1 id FROM npcpresence WHERE NAME='flux_ore_npc_wave_4_pelistal'), 114),
(@reinforceType, @fluxOre, 0.5, (SELECT TOP 1 id FROM npcpresence WHERE NAME='flux_ore_npc_wave_5_pelistal'), 114),
(@reinforceType, @fluxOre, 0.6, (SELECT TOP 1 id FROM npcpresence WHERE NAME='flux_ore_npc_wave_6_pelistal'), 114),
(@reinforceType, @fluxOre, 0.7, (SELECT TOP 1 id FROM npcpresence WHERE NAME='flux_ore_npc_wave_7_pelistal'), 114),
(@reinforceType, @fluxOre, 0.8, (SELECT TOP 1 id FROM npcpresence WHERE NAME='flux_ore_npc_wave_8_pelistal'), 114),
(@reinforceType, @fluxOre, 0.9, (SELECT TOP 1 id FROM npcpresence WHERE NAME='flux_ore_npc_wave_9_pelistal'), 114),
(@reinforceType, @fluxOre, 0.1, (SELECT TOP 1 id FROM npcpresence WHERE NAME='flux_ore_npc_wave_1_thelodica'), 119),
(@reinforceType, @fluxOre, 0.2, (SELECT TOP 1 id FROM npcpresence WHERE NAME='flux_ore_npc_wave_2_thelodica'), 119),
(@reinforceType, @fluxOre, 0.3, (SELECT TOP 1 id FROM npcpresence WHERE NAME='flux_ore_npc_wave_3_thelodica'), 119),
(@reinforceType, @fluxOre, 0.4, (SELECT TOP 1 id FROM npcpresence WHERE NAME='flux_ore_npc_wave_4_thelodica'), 119),
(@reinforceType, @fluxOre, 0.5, (SELECT TOP 1 id FROM npcpresence WHERE NAME='flux_ore_npc_wave_5_thelodica'), 119),
(@reinforceType, @fluxOre, 0.6, (SELECT TOP 1 id FROM npcpresence WHERE NAME='flux_ore_npc_wave_6_thelodica'), 119),
(@reinforceType, @fluxOre, 0.7, (SELECT TOP 1 id FROM npcpresence WHERE NAME='flux_ore_npc_wave_7_thelodica'), 119),
(@reinforceType, @fluxOre, 0.8, (SELECT TOP 1 id FROM npcpresence WHERE NAME='flux_ore_npc_wave_8_thelodica'), 119),
(@reinforceType, @fluxOre, 0.9, (SELECT TOP 1 id FROM npcpresence WHERE NAME='flux_ore_npc_wave_9_thelodica'), 119),
(@reinforceType, @fluxOre, 0.1, (SELECT TOP 1 id FROM npcpresence WHERE NAME='flux_ore_npc_wave_1_nuimqol'), 131),
(@reinforceType, @fluxOre, 0.2, (SELECT TOP 1 id FROM npcpresence WHERE NAME='flux_ore_npc_wave_2_nuimqol'), 131),
(@reinforceType, @fluxOre, 0.3, (SELECT TOP 1 id FROM npcpresence WHERE NAME='flux_ore_npc_wave_3_nuimqol'), 131),
(@reinforceType, @fluxOre, 0.4, (SELECT TOP 1 id FROM npcpresence WHERE NAME='flux_ore_npc_wave_4_nuimqol'), 131),
(@reinforceType, @fluxOre, 0.5, (SELECT TOP 1 id FROM npcpresence WHERE NAME='flux_ore_npc_wave_5_nuimqol'), 131),
(@reinforceType, @fluxOre, 0.6, (SELECT TOP 1 id FROM npcpresence WHERE NAME='flux_ore_npc_wave_6_nuimqol'), 131),
(@reinforceType, @fluxOre, 0.7, (SELECT TOP 1 id FROM npcpresence WHERE NAME='flux_ore_npc_wave_7_nuimqol'), 131),
(@reinforceType, @fluxOre, 0.8, (SELECT TOP 1 id FROM npcpresence WHERE NAME='flux_ore_npc_wave_8_nuimqol'), 131),
(@reinforceType, @fluxOre, 0.9, (SELECT TOP 1 id FROM npcpresence WHERE NAME='flux_ore_npc_wave_9_nuimqol'), 131);
GO
PRINT N'09_zoneeffects__2021_09_03.sql';
USE [perpetuumsa]
GO
----------------------------------------
-- Zone effects for Tiered Gamma islands
--
-- Date modified: 9/3/2021
-----------------------------------------
DROP TABLE IF EXISTS #FIELDS;
CREATE TABLE #FIELDS
(
fieldID INT,
fieldName VARCHAR(100)
);
INSERT INTO #FIELDS (fieldID, fieldName) VALUES
(664, 'pbs_tech_limit'),
(665, 'pvp_no_teleport');
DROP TABLE IF EXISTS #EFFS;
CREATE TABLE #EFFS
(
effId INT,
effName VARCHAR(100)
);
DROP TABLE IF EXISTS #EFFECTMODS;
CREATE TABLE #EFFECTMODS
(
effId INT,
fieldName VARCHAR(100),
fieldValue FLOAT
);
DECLARE @effectCatName AS VARCHAR(100) = 'effcat_zone_effects';
DECLARE @T0_EFFECT_NAME AS VARCHAR(100) = 'effect_gamma_t0';
DECLARE @T1_EFFECT_NAME AS VARCHAR(100) = 'effect_gamma_t1';
DECLARE @T2_EFFECT_NAME AS VARCHAR(100) = 'effect_gamma_t2';
DECLARE @T3_EFFECT_NAME AS VARCHAR(100) = 'effect_gamma_t3';
DECLARE @TC_EFFECT_NAME AS VARCHAR(100) = 'effect_gamma_tc';
DECLARE @T0_EFFECT_ID AS INT = 116;
DECLARE @T1_EFFECT_ID AS INT = 117;
DECLARE @T2_EFFECT_ID AS INT = 118;
DECLARE @T3_EFFECT_ID AS INT = 119;
DECLARE @TC_EFFECT_ID AS INT = 120;
DECLARE @catFlag AS BIGINT = (SELECT POWER(CAST(2 as bigint), CAST(flag as bigint)) FROM effectcategories WHERE name='effcat_zone_effects');
DECLARE @effCatPower AS BIGINT = (SELECT TOP 1 CAST(flag as bigint) FROM effectcategories WHERE name='effcat_zone_effects');;
INSERT INTO #EFFECTMODS (effId, fieldName, fieldValue) VALUES
(@T0_EFFECT_ID, 'effect_mining_amount_modifier', 1.75),
(@T0_EFFECT_ID, 'effect_harvesting_amount_modifier', 1.75),
(@T0_EFFECT_ID, 'pbs_tech_limit', 0),
(@T1_EFFECT_ID, 'effect_mining_amount_modifier', 1.3),
(@T1_EFFECT_ID, 'effect_harvesting_amount_modifier', 1.3),
(@T1_EFFECT_ID, 'pbs_tech_limit', 1),
(@T2_EFFECT_ID, 'effect_mining_amount_modifier', 1.3),
(@T2_EFFECT_ID, 'effect_harvesting_amount_modifier', 1.3),
(@T2_EFFECT_ID, 'pbs_tech_limit', 2),
(@T3_EFFECT_ID, 'effect_mining_amount_modifier', 1.3),
(@T3_EFFECT_ID, 'effect_harvesting_amount_modifier', 1.3),
(@T3_EFFECT_ID, 'pbs_tech_limit', 3),
(@TC_EFFECT_ID, 'pvp_no_teleport', 1);
INSERT INTO #EFFS (effId, effName) VALUES
(@TC_EFFECT_ID, @TC_EFFECT_NAME),
(@T0_EFFECT_ID, @T0_EFFECT_NAME),
(@T1_EFFECT_ID, @T1_EFFECT_NAME),
(@T2_EFFECT_ID, @T2_EFFECT_NAME),
(@T3_EFFECT_ID, @T3_EFFECT_NAME);
DELETE FROM effectdefaultmodifiers WHERE effectid IN (SELECT effId FROM #EFFS);
DELETE FROM effects WHERE id IN (SELECT effId FROM #EFFS);
DELETE FROM aggregatefields where id IN (SELECT fieldId FROM #FIELDS);
SET IDENTITY_INSERT aggregatefields ON;
INSERT INTO aggregatefields (id, name, formula, measurementunit, measurementmultiplier, measurementoffset, category, digits, moreisbetter, usedinconfig, note)
SELECT fieldID, fieldName, 1, fieldName+'_unit', 1, 0, 6, 0, 0, 0, 'Special Gamma zone effect fields'
FROM #FIELDS;
SET IDENTITY_INSERT aggregatefields OFF;
SET IDENTITY_INSERT effects ON;
INSERT INTO effects (id, effectcategory, duration, name, description, note, isaura, auraradius, ispositive, display, saveable)
SELECT effId, @catFlag, 0, effName, effName+'_desc', 'gamma zone effects', 1, 0, 1, 1, 0
FROM #EFFS;
SET IDENTITY_INSERT effects OFF;
INSERT INTO effectdefaultmodifiers (effectid, field, value)
SELECT effId, (SELECT TOP 1 id FROM aggregatefields WHERE name=fieldName), fieldValue
FROM #EFFECTMODS;
--SELECT * FROM zoneeffects WHERE zoneid IN (SELECT id FROM zones WHERE name LIKE 'zone_gamma_%' AND id > 99);
DELETE FROM zoneeffects WHERE zoneid IN (SELECT id FROM zones WHERE name LIKE 'zone_gamma_%' AND id > 99);
INSERT INTO zoneeffects (zoneid, effectid)
SELECT id, @TC_EFFECT_ID FROM zones
WHERE pbsTechLimit=0 AND id <= 105 AND name LIKE 'zone_gamma_tc_%' AND id > 99;
INSERT INTO zoneeffects (zoneid, effectid)
SELECT id, @T0_EFFECT_ID FROM zones
WHERE pbsTechLimit=0 AND id > 105 AND name LIKE 'zone_gamma_%';
INSERT INTO zoneeffects (zoneid, effectid)
SELECT id, @T1_EFFECT_ID FROM zones
WHERE pbsTechLimit=1 AND id > 105 AND name LIKE 'zone_gamma_%';
INSERT INTO zoneeffects (zoneid, effectid)
SELECT id, @T2_EFFECT_ID FROM zones
WHERE pbsTechLimit=2 AND id > 105 AND name LIKE 'zone_gamma_%';
INSERT INTO zoneeffects (zoneid, effectid)
SELECT id, @T3_EFFECT_ID FROM zones
WHERE pbsTechLimit=3 AND id > 105 AND name LIKE 'zone_gamma_%';
DROP TABLE IF EXISTS #EFFECTMODS;
DROP TABLE IF EXISTS #EFFS;
DROP TABLE IF EXISTS #FIELDS;
GO
USE [perpetuumsa]
GO
PRINT N'14_relics__2021_10_09.sql';
USE [perpetuumsa]
GO
---------------------------------
-- GAMMA RELICS
-- Contributors: Ghroom
-- Date Modified: 2021/10/20
---------------------------------
PRINT N'Configure and insert gamma relics';
DROP TABLE IF EXISTS #TMPRELICTYPE;
CREATE TABLE #TMPRELICTYPE(
name varchar(128) NOT NULL,
raceid int NULL,
level int NULL,
ep int NULL
);
INSERT INTO #TMPRELICTYPE (name,raceid,level,ep) VALUES
('relic_level4_neutral_gamma',0,4,130),
('relic_level4_indy_gamma',4,4,130),
('relic_level4_numiqol_gamma',2,4,130),
('relic_level4_thelodica_gamma',3,4,130),
('relic_level4_pelistal_gamma',1,4,130);
--SELECT * FROM relictypes WHERE name IN (SELECT DISTINCT name FROM #TMPRELICTYPE);
DELETE FROM relictypes WHERE name IN (SELECT DISTINCT name FROM #TMPRELICTYPE);
INSERT INTO relictypes (name, raceid, level, ep)
SELECT name, raceid, level, ep FROM #TMPRELICTYPE;
INSERT INTO dbo.relictypes (name,raceid,level,ep)
SELECT name,raceid,level,ep
FROM #TMPRELICTYPE;
DROP TABLE IF EXISTS #TMPRELICTYPE;
GO
USE [perpetuumsa]
GO
DROP TABLE IF EXISTS #ZONES_BY_TIER;
CREATE TABLE #ZONES_BY_TIER(
zoneid int,
tier int
);
INSERT INTO #ZONES_BY_TIER (zoneid, tier)
SELECT id, pbsTechLimit FROM zones WHERE pbsTechLimit IS NOT NULL AND id>99;
--Tc's flag with -1 for case statement
UPDATE #ZONES_BY_TIER SET
tier = -1
WHERE zoneid < 106 AND zoneid > 99;
DROP TABLE IF EXISTS #TMPRELICSPAWNINFO;
CREATE TABLE #TMPRELICSPAWNINFO(
tiername varchar(100),
relictypename varchar(100),
relictypeid int NULL,
tier int NULL,
rate int NOT NULL,
x int NULL,
y int NULL
);
INSERT INTO #TMPRELICSPAWNINFO(tiername,relictypename,rate)
VALUES
('T0','relic_level2_neutral_beta2',10),
('T0','relic_level3_neutral_beta2',20),
('T0','relic_level4_neutral_gamma',25),
('T0','relic_level2_indy_beta2',10),
('T0','relic_level3_indy_beta2',20),
('T0','relic_level4_indy_gamma',25),
('T0','relic_level2_numiqol_beta2',10),
('T0','relic_level3_numiqol_beta2',20),
('T0','relic_level4_numiqol_gamma',25),
('T0','relic_level2_thelodica_beta2',10),
('T0','relic_level3_thelodica_beta2',20),
('T0','relic_level4_thelodica_gamma',25),
('T0','relic_level2_pelistal_beta2',10),
('T0','relic_level3_pelistal_beta2',20),
('T0','relic_level4_pelistal_gamma',25),
('T1','relic_level2_neutral_beta2',10),
('T1','relic_level3_neutral_beta2',25),
('T1','relic_level4_neutral_gamma',20),
('T1','relic_level2_indy_beta2',10),
('T1','relic_level3_indy_beta2',25),
('T1','relic_level4_indy_gamma',20),
('T1','relic_level2_numiqol_beta2',10),
('T1','relic_level3_numiqol_beta2',25),
('T1','relic_level4_numiqol_gamma',20),
('T1','relic_level2_thelodica_beta2',10),
('T1','relic_level3_thelodica_beta2',25),
('T1','relic_level4_thelodica_gamma',20),
('T1','relic_level2_pelistal_beta2',10),
('T1','relic_level3_pelistal_beta2',25),
('T1','relic_level4_pelistal_gamma',20),
('T2','relic_level2_neutral_beta2',15),
('T2','relic_level3_neutral_beta2',25),
('T2','relic_level4_neutral_gamma',15),
('T2','relic_level2_indy_beta2',15),
('T2','relic_level3_indy_beta2',25),
('T2','relic_level4_indy_gamma',15),
('T2','relic_level2_numiqol_beta2',15),
('T2','relic_level3_numiqol_beta2',25),
('T2','relic_level4_numiqol_gamma',15),
('T2','relic_level2_thelodica_beta2',10),
('T2','relic_level3_thelodica_beta2',25),
('T2','relic_level4_thelodica_gamma',20),
('T2','relic_level2_pelistal_beta2',10),
('T2','relic_level3_pelistal_beta2',25),
('T2','relic_level4_pelistal_gamma',20),
('T3','relic_level2_neutral_beta2',30),
('T3','relic_level3_neutral_beta2',20),
('T3','relic_level4_neutral_gamma',10),
('T3','relic_level2_indy_beta2',30),
('T3','relic_level3_indy_beta2',20),
('T3','relic_level4_indy_gamma',10),
('T3','relic_level2_numiqol_beta2',30),
('T3','relic_level3_numiqol_beta2',20),
('T3','relic_level4_numiqol_gamma',10),
('T3','relic_level2_thelodica_beta2',30),
('T3','relic_level3_thelodica_beta2',20),
('T3','relic_level4_thelodica_gamma',10),
('T3','relic_level2_pelistal_beta2',30),
('T3','relic_level3_pelistal_beta2',20),
('T3','relic_level4_pelistal_gamma',10),
('TC','relic_level2_neutral_beta2',20),
('TC','relic_level2_indy_beta2',20),
('TC','relic_level2_numiqol_beta2',20),
('TC','relic_level2_pelistal_beta2',20),
('TC','relic_level2_thelodica_beta2',20);
DROP TABLE IF EXISTS #CONFIG;
CREATE TABLE #CONFIG(
tier int,
maxSpawn int,
respawnRate int
);
INSERT INTO #CONFIG(tier, maxSpawn, respawnRate) VALUES
(-1, 0, 10800),
(0, 18, 10800),
(1, 9, 10800),
(2, 9, 10800),
(3, 9, 10800);
UPDATE t
SET t.relictypeid = (SELECT TOP 1 reltyp.id FROM dbo.relictypes reltyp WHERE reltyp.name = t.relictypename),
t.tier = (CASE WHEN t.tiername = 'TC' THEN -1
WHEN t.tiername = 'T0' THEN 0
WHEN t.tiername = 'T1' THEN 1
WHEN t.tiername = 'T2' THEN 2
WHEN t.tiername = 'T3' THEN 3
END)
FROM #TMPRELICSPAWNINFO t;
DROP TABLE IF EXISTS #INFOS;
CREATE TABLE #INFOS(
relictypeid int NULL,
zoneid int NULL,
rate int NOT NULL,
x int NULL,
y int NULL
);
INSERT INTO #INFOS (relictypeid, zoneid, rate)
SELECT t.relictypeid, z.zoneid, t.rate
FROM #ZONES_BY_TIER z
JOIN #TMPRELICSPAWNINFO t ON t.tier=z.tier;
--SELECT * FROM dbo.relicspawninfo WHERE zoneid IN (SELECT DISTINCT zoneid FROM #ZONES_BY_TIER);
DELETE FROM dbo.relicspawninfo WHERE zoneid IN (SELECT DISTINCT zoneid FROM #ZONES_BY_TIER);
INSERT INTO dbo.relicspawninfo (relictypeid,zoneid,rate)
SELECT relictypeid,zoneid,rate
FROM #INFOS;
--SELECT * FROM dbo.reliczoneconfig WHERE zoneid IN (SELECT DISTINCT zoneid FROM #ZONES_BY_TIER);
DELETE FROM dbo.reliczoneconfig WHERE zoneid IN (SELECT DISTINCT zoneid FROM #ZONES_BY_TIER);
INSERT INTO dbo.reliczoneconfig(zoneid, maxspawn, respawnrate)
SELECT z.zoneid, c.maxSpawn, c.respawnRate
FROM #ZONES_BY_TIER z
JOIN #CONFIG c ON c.tier=z.tier;
DROP TABLE IF EXISTS #INFOS;
DROP TABLE IF EXISTS #TMPRELICSPAWNINFO;
DROP TABLE IF EXISTS #ZONES_BY_TIER;
GO
USE [perpetuumsa]
GO
DROP TABLE IF EXISTS #TMPRELICLOOT;
CREATE TABLE #TMPRELICLOOT(
relicname varchar(100) NOT NULL,
defname varchar(100) NOT NULL,
minquantity int NOT NULL,
maxquantity int NOT NULL,
chance decimal(9, 6) NOT NULL,
definition int NULL,
relictypeid int NULL
);
INSERT INTO #TMPRELICLOOT (relicname,defname,minquantity,maxquantity,chance)
VALUES
('relic_level4_neutral_gamma','def_robotshard_common_basic',70,75,1),
('relic_level4_neutral_gamma','def_robotshard_common_advanced',70,75,1),
('relic_level4_neutral_gamma','def_robotshard_common_expert',70,75,1),
('relic_level4_neutral_gamma','def_common_reactor_plasma',5850,7150,1),
('relic_level4_neutral_gamma','def_kernel_common',8776,10726,1),
('relic_level4_neutral_gamma','def_kernel_hitech',2926,3576,1),
('relic_level4_indy_gamma','def_robotshard_common_basic',70,75,1),
('relic_level4_indy_gamma','def_robotshard_common_advanced',70,75,1),
('relic_level4_indy_gamma','def_robotshard_common_expert',70,75,1),
('relic_level4_indy_gamma','def_common_reactor_plasma',5850,7150,1),
('relic_level4_indy_gamma','def_kernel_industrial',5850,7150,1),
('relic_level4_indy_gamma','def_kernel_common',5850,7150,1),
('relic_level4_numiqol_gamma','def_robotshard_nuimqol_basic',70,75,1),
('relic_level4_numiqol_gamma','def_robotshard_nuimqol_advanced',70,75,1),
('relic_level4_numiqol_gamma','def_robotshard_nuimqol_expert',70,75,1),
('relic_level4_numiqol_gamma','def_nuimqol_reactor_plasma',5850,7150,1),
('relic_level4_numiqol_gamma','def_kernel_nuimqol',5850,7150,1),
('relic_level4_numiqol_gamma','def_kernel_common',5850,7150,1),
('relic_level4_thelodica_gamma','def_robotshard_thelodica_basic',70,75,1),
('relic_level4_thelodica_gamma','def_robotshard_thelodica_advanced',70,75,1),
('relic_level4_thelodica_gamma','def_robotshard_thelodica_expert',70,75,1),
('relic_level4_thelodica_gamma','def_thelodica_reactor_plasma',5850,7150,1),
('relic_level4_thelodica_gamma','def_kernel_thelodica',5850,7150,1),
('relic_level4_thelodica_gamma','def_kernel_common',5850,7150,1),
('relic_level4_pelistal_gamma','def_robotshard_pelistal_basic',70,75,1),
('relic_level4_pelistal_gamma','def_robotshard_pelistal_advanced',70,75,1),
('relic_level4_pelistal_gamma','def_robotshard_pelistal_expert',70,75,1),
('relic_level4_pelistal_gamma','def_pelistal_reactor_plasma',5850,7150,1),
('relic_level4_pelistal_gamma','def_kernel_pelistal',5850,7150,1),
('relic_level4_pelistal_gamma','def_kernel_common',5850,7150,1);
UPDATE t
SET t.relictypeid = (SELECT TOP 1 reltyp.id FROM dbo.relictypes reltyp WHERE reltyp.name = t.relicname),
t.definition = (SELECT TOP 1 e.definition FROM dbo.entitydefaults e WHERE e.definitionname = t.defname)
FROM #TMPRELICLOOT t;
--SELECT * FROM relicloot WHERE id IN (SELECT DISTINCT relictypeid FROM #TMPRELICLOOT);
DELETE FROM relicloot WHERE id IN (SELECT DISTINCT relictypeid FROM #TMPRELICLOOT);
INSERT INTO dbo.relicloot (definition,minquantity,maxquantity,chance,relictypeid,packed)
SELECT definition, minquantity, maxquantity, chance, relictypeid, 0 as packed
FROM #TMPRELICLOOT
DROP TABLE IF EXISTS #TMPRELICLOOT;
GO
PRINT N'GAMMA RELICS CONFIGURED AND INSERTED';
GO
PRINT N'PATCH 26: GAMMA PHASE 1/3 COMPLETE';
GO
|
<reponame>NightkingCH/casestudy-webtech<filename>BusinessStreamline.Sql/dbo/Tables/Angebot.sql
CREATE TABLE [dbo].[Angebot] (
[AngebotId] INT NOT NULL IDENTITY(1,1),
[ErstelltAm] DATETIME NOT NULL DEFAULT GETDATE(),
[Status] INT NOT NULL DEFAULT 0, --0 = Offen; 1 = Akzeptiert; 2 = Abgelehnt
[PreisProTeil] DECIMAL (18,2) NOT NULL,
[AnbieterId] INT NOT NULL,
[NachfrageId] INT NOT NULL,
CONSTRAINT [PK_Angebot] PRIMARY KEY CLUSTERED ([AngebotId] ASC),
CONSTRAINT [FK_AnbieterAngebot] FOREIGN KEY ([AnbieterId]) REFERENCES [dbo].[Anbieter] ([AnbieterId]),
CONSTRAINT [FK_NachfrageAngebot] FOREIGN KEY ([NachfrageId]) REFERENCES [dbo].[Nachfrage] ([NachfrageId]),
CONSTRAINT [CHK_Angebot_PreisProTeil] CHECK (PreisProTeil > 0)
);
|
<reponame>laxmanvijay/QDM-QICore-Conversion<gh_stars>1-10
library SepsisLactateClearanceRate version '1.0.001'
using FHIR version '4.0.1'
include MATGlobalCommonFunctions_FHIR version '4.1.000' called Global
codesystem "LOINC": 'urn:oid:2.16.840.1.113883.6.1'
codesystem "CPT": 'urn:oid:2.16.840.1.113883.6.12'
codesystem "DischargeDisposition": 'urn:oid:2.16.840.1.113883.12.112'
codesystem "SNOMEDCT": 'urn:oid:2.16.840.1.113883.6.96'
valueset "Acute Care or Inpatient Facility": 'urn:oid:2.16.840.1.113883.17.4077.3.2056'
valueset "Acute Hypotension": 'urn:oid:2.16.840.1.113883.17.4077.3.2011'
valueset "Cardiac Arrest": 'urn:oid:2.16.840.1.113883.17.4077.3.2032'
valueset "Comfort Measures": 'urn:oid:1.3.6.1.4.1.33895.1.3.0.45'
valueset "Declined Sepsis Care": 'urn:oid:2.16.840.1.113883.17.4077.3.2047'
valueset "Emergency Department Visit": 'urn:oid:2.16.840.1.113883.3.526.3.1520'
valueset "End Stage Liver Disease": 'urn:oid:2.16.840.1.113883.17.4077.3.1000'
valueset "Epinephrine": 'urn:oid:2.16.840.1.113883.17.4077.3.2018'
valueset "Ethnicity": 'urn:oid:2.16.840.1.114222.4.11.837'
valueset "Gastrointestinal Hemorrhage": 'urn:oid:2.16.840.1.113883.17.4077.3.2051'
valueset "Hemorrhagic Stroke": 'urn:oid:2.16.840.1.113883.3.192.168.3.11.212'
valueset "Hospital Admission or Observation": 'urn:oid:2.16.840.1.113883.17.4077.3.2001'
valueset "Infection": 'urn:oid:2.16.840.1.113883.17.4077.3.2054'
valueset "Ischemic Stroke": 'urn:oid:2.16.840.1.113883.3.192.168.3.11.247'
valueset "Lactate Clearance Rate": 'urn:oid:2.16.840.1.113883.17.4077.3.2031'
valueset "Left Before Treatment Completion": 'urn:oid:2.16.840.1.113883.17.4077.3.2049'
valueset "Myocardial Infarction": 'urn:oid:2.16.840.1.113883.3.526.3.403'
valueset "ONC Administrative Sex": 'urn:oid:2.16.840.1.113762.1.4.1'
valueset "Payer": 'urn:oid:2.16.840.1.114222.4.11.3591'
valueset "Race": 'urn:oid:2.16.840.1.114222.4.11.836'
valueset "Seizure": 'urn:oid:2.16.840.1.113883.17.4077.3.2015'
valueset "Sepsis": 'urn:oid:2.16.840.1.113883.17.4077.3.2033'
valueset "Septic Shock": 'urn:oid:2.16.840.1.113883.17.4077.3.2046'
valueset "Serum Lactate": 'urn:oid:2.16.840.1.113883.17.4077.3.2019'
valueset "Status Epilepticus": 'urn:oid:2.16.840.1.113883.17.4077.3.2016'
valueset "Trauma": 'urn:oid:2.16.840.1.113883.3.464.1003.113.12.1036'
code "Birth date": '21112-8' from "LOINC" display 'Birth date'
code "Critical care, evaluation and management of the critically ill or critically injured patient; first 30-74 minutes": '99291' from "CPT" display 'Critical care, evaluation and management of the critically ill or critically injured patient; first 30-74 minutes'
code "Expired (i.e. dead)": '20' from "DischargeDisposition" display 'Expired (i.e. dead)'
code "Patient deceased during stay (discharge status = dead) (finding)": '371828006' from "SNOMEDCT" display 'Patient deceased during stay (discharge status = dead) (finding)'
parameter "Measurement Period" Interval<DateTime>
context Patient
define "Emergency Department Visit During Measurement Period With Order for Admission":
( ["Encounter": "Emergency Department Visit"]
union ["Encounter": "Critical care, evaluation and management of the critically ill or critically injured patient; first 30-74 minutes"] ) EDVisit
with ["ServiceRequest": "Hospital Admission or Observation"] OrderForAdmission
such that EDVisit.period during "Measurement Period"
and OrderForAdmission.authoredOn during EDVisit.period
define "Emergency Department Visit for Septic Shock":
"Emergency Department Visit with Septic Shock Diagnosis"
union "Emergency Department Visit with Acute Hypotension and Sepsis or Infection Diagnoses"
define "Emergency Department Visit for Septic Shock with Other Secondary Diagnosis":
"Emergency Department Visit for Septic Shock" SepticShockEDVisit
where exists ( SepticShockEDVisit.diagnoses SepticShockEDVisitDiagnosis
where ( SepticShockEDVisitDiagnosis.code in "Cardiac Arrest"
or SepticShockEDVisitDiagnosis.code in "Seizure"
or SepticShockEDVisitDiagnosis.code in "Gastrointestinal Hemorrhage"
or SepticShockEDVisitDiagnosis.code in "Hemorrhagic Stroke"
or SepticShockEDVisitDiagnosis.code in "Ischemic Stroke"
or SepticShockEDVisitDiagnosis.code in "Myocardial Infarction"
or SepticShockEDVisitDiagnosis.code in "Trauma"
)
)
define "Emergency Department Visit with Acute Hypotension and Sepsis or Infection Diagnoses":
"Emergency Department Visit During Measurement Period With Order for Admission" EDEncounter
where exists ( EDEncounter.diagnoses EDEncounterDiagnosis
where EDEncounterDiagnosis.code in "Acute Hypotension"
and ( EDEncounterDiagnosis.code in "Infection"
or EDEncounterDiagnosis.code in "Sepsis"
)
)
define "Emergency Department Visit with Septic Shock Diagnosis":
"Emergency Department Visit During Measurement Period With Order for Admission" EDEncounter
where exists ( EDEncounter.diagnoses EDEncounterDiagnosis
where EDEncounterDiagnosis.code in "Septic Shock"
)
define "Patient Currently Taking Epinephrine":
"Emergency Department Visit for Septic Shock" SepticShockEDVisit
with ["MedicationStatement": "Epinephrine"] ActiveEpinephrine
such that SepticShockEDVisit.period during ActiveEpinephrine.effective
define "Patient Declined Sepsis Care":
"Emergency Department Visit for Septic Shock" SepticShockEDVisit
with ["Observation": "Declined Sepsis Care"] DeclinedSepsisCare
such that DeclinedSepsisCare.Unknown during SepticShockEDVisit.period
define "Patient Has End Stage Liver Disease or Status Epilepticus":
"Emergency Department Visit for Septic Shock" SepticShockEDVisit
with ( ["Condition": "End Stage Liver Disease"]
union ["Condition": "Status Epilepticus"] ) ExistingCondition
such that ExistingCondition.onset overlaps before SepticShockEDVisit.period
define "Patient Left Before Treatment Completion":
"Emergency Department Visit for Septic Shock" SepticShockEDVisit
where SepticShockEDVisit.dischargeDisposition in "Left Before Treatment Completion"
define "Patient Receiving Comfort Measures":
( "Emergency Department Visit for Septic Shock" SepticShockEDVisit
with ["ServiceRequest": "Comfort Measures"] OrderForComfortMeasures
such that OrderForComfortMeasures.authoredOn during SepticShockEDVisit.period
)
union ( "Emergency Department Visit for Septic Shock" SepticShockEDVisit
with ["Procedure": "Comfort Measures"] ReceivingComfortMeasures
such that ReceivingComfortMeasures.dateTime overlaps after SepticShockEDVisit.period
)
define "Patient Transferred from Acute Care or Inpatient Facility":
"Emergency Department Visit for Septic Shock" SepticShockEDVisit
where SepticShockEDVisit.hospitalization.admitSource in "Acute Care or Inpatient Facility"
define "SDE Ethnicity":
["Patient Characteristic Ethnicity": "Ethnicity"]
define "SDE Payer":
["Patient Characteristic Payer": "Payer"]
define "SDE Race":
["Patient Characteristic Race": "Race"]
define "SDE Sex":
["Patient Characteristic Sex": "ONC Administrative Sex"]
define "Patient Died During Emergency Department Visit for Septic Shock":
"Emergency Department Visit for Septic Shock" SepticShockEDVisit
where ( SepticShockEDVisit.hospitalization.dischargeDisposition ~ "Patient deceased during stay (discharge status = dead) (finding)"
or SepticShockEDVisit.hospitalization.dischargeDisposition ~ "Expired (i.e. dead)"
)
define "Initial Population":
"Emergency Department Visit for Septic Shock" SepticShockEDVisit
with ["Patient Characteristic Birthdate": "Birth date"] BirthDate
such that Global."CalendarAgeInYearsAt" ( BirthDate.birthDatetime, start of SepticShockEDVisit.period ) >= 18
define "Numerator":
"Emergency Department Visit for Septic Shock" SepticShockEDVisit
with ["Observation": "Lactate Clearance Rate"] LactateClearanceRate
such that LactateClearanceRate.effective starts 1 day or less after day of start of SepticShockEDVisit.period
and LactateClearanceRate.component.value >= 10 '%'
define "Denominator Exclusions":
"Patient Transferred from Acute Care or Inpatient Facility"
union "Patient Left Before Treatment Completion"
union "Patient Died During Emergency Department Visit for Septic Shock"
union "Patient Receiving Comfort Measures"
union "Patient Declined Sepsis Care"
union "Emergency Department Visit for Septic Shock with Other Secondary Diagnosis"
union "Patient Has End Stage Liver Disease or Status Epilepticus"
union "Patient Currently Taking Epinephrine"
define "Patient Had Follow Up Serum Lactate Measurement After Elevated Serum Lactate Level During Emergency Department Visit for Septic Shock":
from
"Emergency Department Visit for Septic Shock" SepticShockEDVisit,
( First(["Observation": "Serum Lactate"] SerumLactateMeasurement
where SerumLactateMeasurement.component.value > 2 'mmol/L'
sort by issued
)) FirstElevatedLactate,
["Observation": "Serum Lactate"] SubsequentSerumLactate
where FirstElevatedLactate.issued during SepticShockEDVisit.period
and SubsequentSerumLactate.component.value is not null
and SubsequentSerumLactate.effective starts 6 hours or less after FirstElevatedLactate.issued
and SubsequentSerumLactate.effective starts 1 hours or more after FirstElevatedLactate.issued
return SepticShockEDVisit
define "Denominator":
"Initial Population"
intersect "Patient Had Follow Up Serum Lactate Measurement After Elevated Serum Lactate Level During Emergency Department Visit for Septic Shock"
|
<gh_stars>0
INSERT INTO KREW_DOC_TYP_PROC_T (DOC_TYP_PROC_ID,NM,DOC_TYP_ID,INIT_RTE_NODE_ID,INIT_IND,VER_NBR)
VALUES (KREW_RTE_NODE_S.NEXTVAL,'PRIMARY',(SELECT DOC_TYP_ID FROM KREW_DOC_TYP_T WHERE DOC_TYP_NM = 'KualiDocument' AND DOC_TYP_VER_NBR = 1),(SELECT RTE_NODE_ID FROM KREW_RTE_NODE_T WHERE DOC_TYP_ID = (SELECT DOC_TYP_ID FROM KREW_DOC_TYP_T WHERE DOC_TYP_NM = 'KualiDocument' AND DOC_TYP_VER_NBR = 1)),1,3)
/
INSERT INTO KREW_DOC_TYP_PROC_T (DOC_TYP_PROC_ID,NM,DOC_TYP_ID,INIT_RTE_NODE_ID,INIT_IND,VER_NBR)
VALUES (KREW_RTE_NODE_S.NEXTVAL,'PRIMARY',(SELECT DOC_TYP_ID FROM KREW_DOC_TYP_T WHERE DOC_TYP_NM = 'KcMaintenanceDocument' AND DOC_TYP_VER_NBR = 0),(SELECT RTE_NODE_ID FROM KREW_RTE_NODE_T WHERE DOC_TYP_ID = (SELECT DOC_TYP_ID FROM KREW_DOC_TYP_T WHERE DOC_TYP_NM = 'KcMaintenanceDocument' AND DOC_TYP_VER_NBR = 0)),1,24)
/
INSERT INTO KREW_DOC_TYP_PROC_T (DOC_TYP_PROC_ID,NM,DOC_TYP_ID,INIT_RTE_NODE_ID,INIT_IND,VER_NBR)
VALUES (KREW_RTE_NODE_S.NEXTVAL,'PRIMARY',(SELECT DOC_TYP_ID FROM KREW_DOC_TYP_T WHERE DOC_TYP_NM = 'KcSharedMaintenanceDocument' AND DOC_TYP_VER_NBR = 0),(SELECT RTE_NODE_ID FROM KREW_RTE_NODE_T WHERE DOC_TYP_ID = (SELECT DOC_TYP_ID FROM KREW_DOC_TYP_T WHERE DOC_TYP_NM = 'KcSharedMaintenanceDocument' AND DOC_TYP_VER_NBR = 0)),1,61)
/
|
select
l_orderkey,
p_name,
n_name
from
lineitem_large,
orders,
part,
customer_large,
nation
where
l_orderkey = o_orderkey
and l_partkey = p_partkey
and o_custkey = c_custkey
and c_nationkey = n_nationkey
|
<filename>jpa-tutorial/Tutorials/RetrieveData/migration/V1_0__olingo.sql
SET schema "OLINGO";
-- create schema "OLINGO";
--------BUSINESS PARTNER---------------------------------------------------------------------------------------------------------
CREATE TABLE "OLINGO"."BusinessPartner"(
"ID" VARCHAR(32) CONSTRAINT BusinessPartner_pkey PRIMARY KEY,
"ETag" BIGINT,
"Type" VARCHAR(2),
"CustomString1" VARCHAR(250),
"CustomString2" VARCHAR(250),
"CustomNum1" DECIMAL(16, 5),
"CustomNum2" DECIMAL(31, 0),
"NameLine1" VARCHAR(250),
"NameLine2" VARCHAR(250),
"BirthDay" DATE,
"Address.StreetName" VARCHAR(200),
"Address.StreetNumber" VARCHAR(60),
"Address.PostOfficeBox" VARCHAR(60),
"Address.City" VARCHAR(100),
"Address.PostalCode" VARCHAR(60),
"ADDRESS_REGIONCODEPUBLISHER" VARCHAR(10) NOT NULL,
"ADDRESS_REGIONCODEID" VARCHAR(10) NOT NULL,
"ADDRESS_REGION" VARCHAR(10) NOT NULL,
"Address.Country" VARCHAR(100),
"Telecom.Phone" VARCHAR(100),
"Telecom.Mobile" VARCHAR(100),
"Telecom.Fax" VARCHAR(100),
"Telecom.Email" VARCHAR(100),
"CreatedBy" VARCHAR(32) NOT NULL CONSTRAINT bpa_bpa00_fk REFERENCES "OLINGO"."BusinessPartner",
"CreatedAt" TIMESTAMP /*WITH TIME ZONE*/ DEFAULT CURRENT_TIMESTAMP,
"UpdatedBy" VARCHAR(32) CONSTRAINT bpa_bpa01_fk REFERENCES "OLINGO"."BusinessPartner",
"UpdatedAt" TIMESTAMP,
"Country" VARCHAR(4),
"AbcClass" VARCHAR(1),
"AccessRights" INTEGER,
CHECK ("UpdatedAt" >= "CreatedAt"));
INSERT INTO "OLINGO"."BusinessPartner" VALUES ( '1', 0, '2', '', '', 6000.5, null, 'First Org.', '', null, 'Test Road', '23', '', 'Test City', '94321', 'ISO', '3166-2', 'US-CA', 'USA', '', '', '', '', '99', '2016-01-20 09:21:23', '', null, 'USA', 'A', null);
INSERT INTO "OLINGO"."BusinessPartner" VALUES ('10', 0, '2', '', '', null, null, 'Tenth Org.', '', null, 'Test Road', '12', '', 'Test City', '03921', 'ISO', '3166-2', 'US-ME', 'USA', '', '', '', '', '99', '2016-01-20 09:21:23', '', null, 'DEU', null, null);
INSERT INTO "OLINGO"."BusinessPartner" VALUES ( '2', 0, '2', '', '', null, null, 'Second Org.', '', null, 'Test Road', '45', '', 'Test City', '76321', 'ISO', '3166-2', 'US-TX', 'USA', '', '', '', '', '97', '2016-01-20 09:21:23', '', null, 'USA', 'B', null);
INSERT INTO "OLINGO"."BusinessPartner" VALUES ( '3', 0, '2', '', '', null, null, 'Third Org.', '', null, 'Test Road', '223', '', 'Test City', '94322', 'ISO', '3166-2', 'US-CA', 'USA', '', '', '', '', '99', '2016-01-20 09:21:23', '', null, 'USA', 'C', null);
INSERT INTO "OLINGO"."BusinessPartner" VALUES ( '4', 0, '2', '', '', null, null, 'Fourth Org.', '', null, 'Test Road', '56', '', 'Test City', '84321', 'ISO', '3166-2', 'US-UT', 'USA', '', '', '', '', '98', '2016-01-20 09:21:23', '', null, 'USA', 'C', null);
INSERT INTO "OLINGO"."BusinessPartner" VALUES ( '5', 0, '2', '', '', null, null, 'Fifth Org.', '', null, 'Test Road', '35', '', 'Test City', '59321', 'ISO', '3166-2', 'US-MT', 'USA', '', '', '', '', '99', '2016-01-20 09:21:23', '', null, 'USA', null, null);
INSERT INTO "OLINGO"."BusinessPartner" VALUES ( '6', 0, '2', '', '', null, null, 'Sixth Org.', '', null, 'Test Road', '7856', '', 'Test City', '94324', 'ISO', '3166-2', 'US-CA', 'USA', '', '', '', '', '99', '2016-01-20 09:21:23', '', null, 'USA', null, null);
INSERT INTO "OLINGO"."BusinessPartner" VALUES ( '7', 0, '2', '', '', null, null, 'Seventh Org.', '', null, 'Test Road', '4', '', 'Test City', '29321', 'ISO', '3166-2', 'US-SC', 'USA', '', '', '', '', '99', '2016-01-20 09:21:23', '', null, 'USA', null, null);
INSERT INTO "OLINGO"."BusinessPartner" VALUES ( '8', 0, '2', '', '', null, null, 'Eighth Org.', '', null, 'Test Road', '453', '', 'Test City', '29221', 'ISO', '3166-2', 'US-SC', 'USA', '', '', '', '', '99', '2016-01-20 09:21:23', '', null, 'USA', null, null);
INSERT INTO "OLINGO"."BusinessPartner" VALUES ( '9', 0, '2', '', '', null, null, 'Ninth Org.', '', null, 'Test Road', '93', '', 'Test City', '55021', 'ISO', '3166-2', 'US-MN', 'USA', '', '', '', '', '99', '2016-01-20 09:21:23', '', null, 'USA', null, null);
INSERT INTO "OLINGO"."BusinessPartner" VALUES ('97', 0, '1', '', '', null, null, 'Urs', 'Müller', null, 'Test Straße', '23', '', 'Test Dorf', '4123', 'ISO', '3166-2', 'CH-BL', 'CHE', '', '', '', '', '99', '2016-07-20 09:21:23', '', null, 'CHE', null, 9);
INSERT INTO "OLINGO"."BusinessPartner" VALUES ('98', 0, '1', '', '', null, null, 'John', 'Doe', null, 'Test Road', '55', '', 'Test City', '76321', 'ISO', '3166-2', 'US-TX', 'USA', '', '', '', '', '99', '2016-01-20 09:21:23', '', null, 'DEU', null, 2);
INSERT INTO "OLINGO"."BusinessPartner" VALUES ('99', 0, '1', '', '', null, null, 'Max', 'Mustermann', null, 'Test Straße', '12', '', 'Teststadt', '10115', 'ISO', '3166-2', 'DE-BE', 'DEU', '', '', '', '', '99', '2016-01-20 09:21:23', '', null, 'DEU', null, 1);
--------BUSINESS PARTNER ROLE----------------------------------------------------------------------------------------------------
CREATE TABLE "OLINGO"."BusinessPartnerRole"
(
"BusinessPartnerID" VARCHAR(32) NOT NULL CONSTRAINT fk_bpr_bpa REFERENCES "OLINGO"."BusinessPartner",
"BusinessPartnerRole" VARCHAR(10) NOT NULL,
PRIMARY KEY ("BusinessPartnerID", "BusinessPartnerRole")
);
INSERT INTO "OLINGO"."BusinessPartnerRole" VALUES ('1', 'A');
INSERT INTO "OLINGO"."BusinessPartnerRole" VALUES ('2', 'A');
INSERT INTO "OLINGO"."BusinessPartnerRole" VALUES ('2', 'C');
INSERT INTO "OLINGO"."BusinessPartnerRole" VALUES ('3', 'A');
INSERT INTO "OLINGO"."BusinessPartnerRole" VALUES ('3', 'B');
INSERT INTO "OLINGO"."BusinessPartnerRole" VALUES ('3', 'C');
INSERT INTO "OLINGO"."BusinessPartnerRole" VALUES ('7', 'C');
--------ADMINISTRATIVE DIVISION DESCRIPTION--------------------------------------------------------------------------------------
CREATE TABLE "OLINGO"."AdministrativeDivisionDescription"
(
"CodePublisher" VARCHAR(10) NOT NULL,
"CodeID" VARCHAR(10) NOT NULL,
"DivisionCode" VARCHAR(10) NOT NULL,
"LanguageISO" VARCHAR(4) NOT NULL,
"Description" VARCHAR(100) NOT NULL,
PRIMARY KEY ("CodePublisher", "CodeID", "DivisionCode", "LanguageISO")
);
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('Eurostat', 'NUTS1', 'BE1', 'de', 'Region Brüssel-Hauptstadt');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('Eurostat', 'NUTS1', 'BE1', 'en', 'Brussels-Capital Region');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('Eurostat', 'NUTS1', 'BE2', 'de', 'Flämische Region');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('Eurostat', 'NUTS1', 'BE2', 'en', 'Flemish Region');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('Eurostat', 'NUTS1', 'BE3', 'de', 'Wallonische Region');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('Eurostat', 'NUTS1', 'BE3', 'en', 'Walloon Region');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('Eurostat', 'NUTS1', 'CH0', 'de', 'Schweiz');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('Eurostat', 'NUTS2', 'BE10', 'de', 'Region Brüssel-Hauptstadt');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('Eurostat', 'NUTS2', 'BE10', 'en', 'Brussels-Capital Region');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('Eurostat', 'NUTS2', 'BE21', 'de', 'Provinz Antwerpen');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('Eurostat', 'NUTS2', 'BE21', 'en', 'Antwerp');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('Eurostat', 'NUTS2', 'BE22', 'de', 'Provinz Limburg');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('Eurostat', 'NUTS2', 'BE22', 'en', 'Limburg');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('Eurostat', 'NUTS2', 'BE23', 'de', 'Provinz Ostflandern');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('Eurostat', 'NUTS2', 'BE23', 'en', 'East Flanders');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('Eurostat', 'NUTS2', 'BE24', 'de', 'Provinz Flämisch-Brabant');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('Eurostat', 'NUTS2', 'BE24', 'en', 'Flemish Brabant');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('Eurostat', 'NUTS2', 'BE25', 'de', 'Provinz Westflandern');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('Eurostat', 'NUTS2', 'BE25', 'en', 'West Flanders');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('Eurostat', 'NUTS2', 'BE31', 'de', 'Provinz Wallonisch-Brabant');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('Eurostat', 'NUTS2', 'BE31', 'en', 'Walloon Brabant');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('Eurostat', 'NUTS2', 'BE32', 'de', '<NAME>');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('Eurostat', 'NUTS2', 'BE32', 'en', 'Hainaut');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('Eurostat', 'NUTS2', 'BE33', 'de', 'Provinz Lüttich');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('Eurostat', 'NUTS2', 'BE33', 'en', 'Liège');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('Eurostat', 'NUTS2', 'BE34', 'de', 'Provinz Luxemburg');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('Eurostat', 'NUTS2', 'BE34', 'en', 'Luxembourg (Belgium)');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('Eurostat', 'NUTS2', 'BE35', 'de', 'Provinz Namur');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('Eurostat', 'NUTS2', 'BE35', 'en', 'Namur');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('Eurostat', 'NUTS3', 'BE100', 'de', 'Bezirk Brüssel-Hauptstadt');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('Eurostat', 'NUTS3', 'BE100', 'en', 'Arrondissement of Brussels-Capital');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('Eurostat', 'NUTS3', 'BE211', 'de', 'Bezirk Antwerpen');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('Eurostat', 'NUTS3', 'BE211', 'en', 'Arrondissement of Antwerp');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('Eurostat', 'NUTS3', 'BE212', 'de', 'Bezirk Mechelen');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('Eurostat', 'NUTS3', 'BE212', 'en', 'Arrondissement of Mechelen');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('Eurostat', 'NUTS3', 'BE213', 'de', 'Bezirk Turnhout');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('Eurostat', 'NUTS3', 'BE213', 'en', 'Arrondissement of Turnhout');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('Eurostat', 'NUTS3', 'BE221', 'de', 'Bezirk Hasselt');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('Eurostat', 'NUTS3', 'BE221', 'en', 'Arrondissement of Hasselt');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('Eurostat', 'NUTS3', 'BE222', 'de', 'Bezirk Maaseik');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('Eurostat', 'NUTS3', 'BE222', 'en', 'Arrondissement of Maaseik');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('Eurostat', 'NUTS3', 'BE223', 'de', 'Bezirk Tongeren');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('Eurostat', 'NUTS3', 'BE223', 'en', 'Arrondissement of Tongeren');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('Eurostat', 'NUTS3', 'BE231', 'de', 'Bezirk Aalst');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('Eurostat', 'NUTS3', 'BE231', 'en', 'Arrondissement of Aalst');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('Eurostat', 'NUTS3', 'BE232', 'de', 'Bezirk Dendermonde');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('Eurostat', 'NUTS3', 'BE232', 'en', 'Arrondissement of Dendermonde');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('Eurostat', 'NUTS3', 'BE233', 'de', 'Bezirk Eeklo');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('Eurostat', 'NUTS3', 'BE233', 'en', 'Arrondissement of Eeklo');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('Eurostat', 'NUTS3', 'BE234', 'de', 'Bezirk Gent');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('Eurostat', 'NUTS3', 'BE234', 'en', 'Arrondissement of Ghent');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('Eurostat', 'NUTS3', 'BE235', 'de', 'Bezirk Oudenaarde');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('Eurostat', 'NUTS3', 'BE235', 'en', 'Arrondissement of Oudenaarde');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('Eurostat', 'NUTS3', 'BE236', 'de', 'Bezirk Sint-Niklaas');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('Eurostat', 'NUTS3', 'BE236', 'en', 'Arrondissement of Sint-Niklaas');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('Eurostat', 'NUTS3', 'BE241', 'de', 'Bezirk Halle-Vilvoorde');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('Eurostat', 'NUTS3', 'BE241', 'en', 'Arrondissement of Halle-Vilvoorde');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('Eurostat', 'NUTS3', 'BE242', 'de', 'Bezirk Löwen');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('Eurostat', 'NUTS3', 'BE242', 'en', 'Arrondissement of Leuven');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('Eurostat', 'NUTS3', 'BE251', 'de', 'Bezirk Brügge');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('Eurostat', 'NUTS3', 'BE251', 'en', 'Arrondissement of Bruges');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('Eurostat', 'NUTS3', 'BE252', 'de', 'Bezirk Diksmuide');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('Eurostat', 'NUTS3', 'BE252', 'en', 'Arrondissement of Diksmuide');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('Eurostat', 'NUTS3', 'BE253', 'de', 'Bezirk Ypern');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('Eurostat', 'NUTS3', 'BE253', 'en', 'Arrondissement of Ypres');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('Eurostat', 'NUTS3', 'BE254', 'de', 'Bezirk Kortrijk');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('Eurostat', 'NUTS3', 'BE254', 'en', 'Arrondissement of Kortrijk');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('Eurostat', 'NUTS3', 'BE255', 'de', 'Bezirk Ostende');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('Eurostat', 'NUTS3', 'BE255', 'en', 'Arrondissement of Ostend');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('Eurostat', 'NUTS3', 'BE256', 'de', 'Bezirk Roeselare');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('Eurostat', 'NUTS3', 'BE256', 'en', 'Arrondissement of Roeselare');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('Eurostat', 'NUTS3', 'BE257', 'de', 'Bezirk Tielt');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('Eurostat', 'NUTS3', 'BE257', 'en', 'Arrondissement of Tielt');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('Eurostat', 'NUTS3', 'BE258', 'de', 'Bezirk Veurne');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('Eurostat', 'NUTS3', 'BE258', 'en', 'Arrondissement of Veurne');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('Eurostat', 'NUTS3', 'BE310', 'de', 'Bezirk Nivelles');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('Eurostat', 'NUTS3', 'BE310', 'en', 'Arrondissement of Nivelles');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('Eurostat', 'NUTS3', 'BE321', 'de', 'Bezirk Ath');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('Eurostat', 'NUTS3', 'BE321', 'en', 'Arrondissement of Ath');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('Eurostat', 'NUTS3', 'BE322', 'de', 'Bezirk Charleroi');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('Eurostat', 'NUTS3', 'BE322', 'en', 'Arrondissement of Charleroi');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('Eurostat', 'NUTS3', 'BE323', 'de', 'Bezirk Mons');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('Eurostat', 'NUTS3', 'BE323', 'en', 'Arrondissement of Mons');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('Eurostat', 'NUTS3', 'BE324', 'de', 'Bezirk Mouscron');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('Eurostat', 'NUTS3', 'BE324', 'en', 'Arrondissement of Mouscron');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('Eurostat', 'NUTS3', 'BE325', 'de', 'Bezirk Soignies');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('Eurostat', 'NUTS3', 'BE325', 'en', 'Arrondissement of Soignies');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('Eurostat', 'NUTS3', 'BE326', 'de', 'Bezirk Thuin');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('Eurostat', 'NUTS3', 'BE326', 'en', 'Arrondissement of Thuin');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('Eurostat', 'NUTS3', 'BE327', 'de', 'Bezirk Tournai');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('Eurostat', 'NUTS3', 'BE327', 'en', 'Arrondissement of Tournai');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('Eurostat', 'NUTS3', 'BE331', 'de', 'Bezirk Huy');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('Eurostat', 'NUTS3', 'BE331', 'en', 'Arrondissement of Huy');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('Eurostat', 'NUTS3', 'BE332', 'de', 'Bezirk Lüttich');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('Eurostat', 'NUTS3', 'BE332', 'en', 'Arrondissement of Liège');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('Eurostat', 'NUTS3', 'BE334', 'de', 'Bezirk Waremme');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('Eurostat', 'NUTS3', 'BE334', 'en', 'Arrondissement of Waremme');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('Eurostat', 'NUTS3', 'BE335', 'de', 'Bezirk Verviers – frz. Sprachgebiet');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('Eurostat', 'NUTS3', 'BE335', 'en', 'Arrondissement of Verviers, municipalities of the French Community');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('Eurostat', 'NUTS3', 'BE336', 'de', 'Bezirk Verviers – deu. Sprachgebiet');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('Eurostat', 'NUTS3', 'BE336', 'en', 'Arrondissement of Verviers,municipalities of the German Community');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('Eurostat', 'NUTS3', 'BE341', 'de', 'Bezirk Arlon');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('Eurostat', 'NUTS3', 'BE341', 'en', 'Arrondissement of Arlon');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('Eurostat', 'NUTS3', 'BE342', 'de', 'Bezirk Bastogne');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('Eurostat', 'NUTS3', 'BE342', 'en', 'Arrondissement of Bastogne');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('Eurostat', 'NUTS3', 'BE343', 'de', 'Bezirk Marche-en-Famenne');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('Eurostat', 'NUTS3', 'BE343', 'en', 'Arrondissement of Marche-en-Famenne');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('Eurostat', 'NUTS3', 'BE344', 'de', 'Bezirk Neufchâteau');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('Eurostat', 'NUTS3', 'BE344', 'en', 'Arrondissement of Neufchâteau');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('Eurostat', 'NUTS3', 'BE345', 'de', 'Bezirk Virton');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('Eurostat', 'NUTS3', 'BE345', 'en', 'Arrondissement of Virton');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('Eurostat', 'NUTS3', 'BE351', 'de', 'Bezirk Dinant');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('Eurostat', 'NUTS3', 'BE351', 'en', 'Arrondissement of Dinant');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('Eurostat', 'NUTS3', 'BE352', 'de', 'Bezirk Namur');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('Eurostat', 'NUTS3', 'BE352', 'en', 'Arrondissement of Namur');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('Eurostat', 'NUTS3', 'BE353', 'de', 'Bezirk Philippeville');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('Eurostat', 'NUTS3', 'BE353', 'en', 'Arrondissement of Philippeville');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-1', 'BEL', 'de', 'Belgien');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-1', 'BEL', 'en', 'Belgium');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-1', 'CHE', 'de', 'Schweiz');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-1', 'CHE', 'en', 'Switzerland');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-1', 'DEU', 'de', 'Deutschland');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-1', 'DEU', 'en', 'Germany');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-1', 'USA', 'de', 'Vereinigte Staaten von Amerika');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-1', 'USA', 'en', 'United States of America');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'CH-AG', 'de', 'Aargau');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'CH-AI', 'de', 'Appenzell Innerrhoden');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'CH-AR', 'de', 'Appenzell Ausserrhoden');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'CH-BE', 'de', 'Bern');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'CH-BL', 'de', 'Basel-Landschaft');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'CH-BS', 'de', 'Basel-Stadt');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'CH-FR', 'de', 'Freiburg');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'CH-GE', 'de', 'Genf');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'CH-GL', 'de', 'Glarus');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'CH-GR', 'de', 'Graubünden');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'CH-JU', 'de', 'Jura');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'CH-LU', 'de', 'Luzern');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'CH-NE', 'de', 'Neuenburg');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'CH-NW', 'de', 'Nidwalden');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'CH-OW', 'de', 'Obwalden');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'CH-SG', 'de', 'St. Gallen');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'CH-SH', 'de', 'Schaffhausen');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'CH-SO', 'de', 'Solothurn');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'CH-SZ', 'de', 'Schwyz');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'CH-TG', 'de', 'Thurgau');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'CH-TI', 'de', 'Tessin');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'CH-UR', 'de', 'Uri');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'CH-VD', 'de', 'Waadt');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'CH-VS', 'de', 'Wallis');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'CH-ZG', 'de', 'Zug');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'CH-ZH', 'de', 'Zürich');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'DE-BB', 'de', 'Brandenburg');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'DE-BB', 'en', 'Brandenburg');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'DE-BE', 'de', 'Berlin');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'DE-BE', 'en', 'Berlin');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'DE-BW', 'de', 'Baden-Württemberg');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'DE-BW', 'en', 'Baden-Württemberg');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'DE-BY', 'de', 'Bayern Bayern');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'DE-BY', 'en', 'Bavaria');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'DE-HB', 'de', 'Bremen');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'DE-HB', 'en', 'Bremen');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'DE-HE', 'de', 'Hessen');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'DE-HE', 'en', 'Hesse');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'DE-HH', 'de', 'Hamburg');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'DE-HH', 'en', 'Hamburg');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'DE-MV', 'de', 'Mecklenburg-Vorpommern');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'DE-MV', 'en', 'Mecklenburg-Western Pomerania');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'DE-NI', 'de', 'Niedersachsen');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'DE-NI', 'en', 'Lower Saxony');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'DE-NW', 'de', 'Nordrhein-Westfalen');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'DE-NW', 'en', 'North Rhine-Westphalia');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'DE-RP', 'de', 'Rheinland-Pfalz');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'DE-RP', 'en', 'Rhineland-Palatinate');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'DE-SH', 'de', 'Schleswig-Holstein');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'DE-SH', 'en', 'Schleswig-Holstein');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'DE-SL', 'de', 'Saarland');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'DE-SL', 'en', 'Saarland');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'DE-SN', 'de', 'Sachsen');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'DE-SN', 'en', 'Saxony');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'DE-ST', 'de', 'Sachsen-Anhalt');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'DE-ST', 'en', 'Saxony-Anhalt');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'DE-TH', 'de', 'Thüringen');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'DE-TH', 'en', 'Thuringia');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'US-AK', 'de', 'Alaska');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'US-AK', 'en', 'Alaska');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'US-AL', 'de', 'Alabama');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'US-AL', 'en', 'Alabama');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'US-AR', 'de', 'Arkansas');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'US-AR', 'en', 'Arkansas');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'US-AZ', 'de', 'Arizona');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'US-AZ', 'en', 'Arizona');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'US-CA', 'de', 'Kalifornien');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'US-CA', 'en', 'California');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'US-CO', 'de', 'Colorado');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'US-CO', 'en', 'Colorado');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'US-CT', 'de', 'Connecticut');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'US-CT', 'en', 'Connecticut');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'US-DC', 'de', 'District of Columbia');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'US-DC', 'en', 'District of Columbia');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'US-DE', 'de', 'Delaware');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'US-DE', 'en', 'Delaware');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'US-FL', 'de', 'Florida');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'US-FL', 'en', 'Florida');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'US-GA', 'de', 'Georgia');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'US-GA', 'en', 'Georgia');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'US-HI', 'de', 'Hawaii');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'US-HI', 'en', 'Hawaii');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'US-IA', 'de', 'Iowa');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'US-IA', 'en', 'Iowa');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'US-ID', 'de', 'Idaho');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'US-ID', 'en', 'Idaho');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'US-IL', 'de', 'Illinois');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'US-IL', 'en', 'Illinois');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'US-IN', 'de', 'Indiana');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'US-IN', 'en', 'Indiana');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'US-KS', 'de', 'Kansas');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'US-KS', 'en', 'Kansas');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'US-KY', 'de', 'Kentucky');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'US-KY', 'en', 'Kentucky');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'US-LA', 'de', 'Louisiana');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'US-LA', 'en', 'Louisiana');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'US-MA', 'de', 'Massachusetts');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'US-MA', 'en', 'Massachusetts');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'US-MD', 'de', 'Maryland');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'US-MD', 'en', 'Maryland');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'US-ME', 'de', 'Maine');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'US-ME', 'en', 'Maine');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'US-MI', 'de', 'Michigan');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'US-MI', 'en', 'Michigan');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'US-MN', 'de', 'Minnesota');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'US-MN', 'en', 'Minnesota');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'US-MO', 'de', 'Missouri');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'US-MO', 'en', 'Missouri');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'US-MS', 'de', 'Mississippi');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'US-MS', 'en', 'Mississippi');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'US-MT', 'de', 'Montana');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'US-MT', 'en', 'Montana');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'US-NC', 'de', 'North Carolina');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'US-NC', 'en', 'North Carolina');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'US-ND', 'de', 'North Dakota');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'US-ND', 'en', 'North Dakota');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'US-NE', 'de', 'Nebraska');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'US-NE', 'en', 'Nebraska');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'US-NH', 'de', 'New Hampshire');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'US-NH', 'en', 'New Hampshire');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'US-NJ', 'de', 'New Jersey');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'US-NJ', 'en', 'New Jersey');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'US-NM', 'de', 'New Mexico');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'US-NM', 'en', 'New Mexico');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'US-NV', 'de', 'Nevada');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'US-NV', 'en', 'Nevada');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'US-NY', 'de', 'New York');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'US-NY', 'en', 'New York');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'US-OH', 'de', 'Ohio');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'US-OH', 'en', 'Ohio');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'US-OK', 'de', 'Oklahoma');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'US-OK', 'en', 'Oklahoma');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'US-OR', 'de', 'Oregon');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'US-OR', 'en', 'Oregon');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'US-PA', 'de', 'Pennsylvania');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'US-PA', 'en', 'Pennsylvania');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'US-RI', 'de', 'Rhode Island');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'US-RI', 'en', 'Rhode Island');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'US-SC', 'de', 'South Carolina');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'US-SC', 'en', 'South Carolina');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'US-SD', 'de', 'South Dakota');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'US-SD', 'en', 'South Dakota');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'US-TN', 'de', 'Tennessee');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'US-TN', 'en', 'Tennessee');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'US-TX', 'de', 'Texas');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'US-TX', 'en', 'Texas');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'US-UT', 'de', 'Utah');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'US-UT', 'en', 'Utah');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'US-VA', 'de', 'Virginia');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'US-VA', 'en', 'Virginia');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'US-VT', 'de', 'Vermont');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'US-VT', 'en', 'Vermont');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'US-WA', 'de', 'Washington');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'US-WA', 'en', 'Washington');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'US-WI', 'de', 'Wisconsin');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'US-WI', 'en', 'Wisconsin');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'US-WV', 'de', 'West Virginia');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'US-WV', 'en', 'West Virginia');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'US-WY', 'de', 'Wyoming');
INSERT INTO "OLINGO"."AdministrativeDivisionDescription" VALUES ('ISO', '3166-2', 'US-WY', 'en', 'Wyoming');
--------ADMINISTRATIVE DIVISION--------------------------------------------------------------------------------------------------
CREATE TABLE "OLINGO"."AdministrativeDivision"
(
"CodePublisher" VARCHAR(10) NOT NULL,
"CodeID" VARCHAR(10) NOT NULL,
"DivisionCode" VARCHAR(10) NOT NULL,
"CountryISOCode" VARCHAR(4) NOT NULL,
"ParentCodeID" VARCHAR(10),
"ParentDivisionCode" VARCHAR(10),
"AlternativeCode" VARCHAR(10),
"Area" INTEGER, --DECIMAL(34,0),
"Population" BIGINT,
PRIMARY KEY ("CodePublisher", "CodeID", "DivisionCode")
);
--Eurostat
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('Eurostat', 'LAU2', '31003', 'BEL', 'NUTS3', 'BE251', null, 71675809, 15493);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('Eurostat', 'LAU2', '31004', 'BEL', 'NUTS3', 'BE251', null, 17411180, 20028);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('Eurostat', 'LAU2', '31005', 'BEL', 'NUTS3', 'BE251', null, 138402202, 118335);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('Eurostat', 'LAU2', '31006', 'BEL', 'NUTS3', 'BE251', null, 89520475, 10885);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('Eurostat', 'LAU2', '31012', 'BEL', 'NUTS3', 'BE251', null, 53764838, 13861);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('Eurostat', 'LAU2', '31022', 'BEL', 'NUTS3', 'BE251', null, 79645460, 23133);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('Eurostat', 'LAU2', '31033', 'BEL', 'NUTS3', 'BE251', null, 45232765, 20371);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('Eurostat', 'LAU2', '31040', 'BEL', 'NUTS3', 'BE251', null, 60335913, 22424);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('Eurostat', 'LAU2', '31042', 'BEL', 'NUTS3', 'BE251', null, 48862499, 2720);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('Eurostat', 'LAU2', '31043', 'BEL', 'NUTS3', 'BE251', null, 56443228, 33485);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('Eurostat', 'LAU2', '32003', 'BEL', 'NUTS3', 'BE252', null, 149401818, 16564);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('Eurostat', 'LAU2', '32006', 'BEL', 'NUTS3', 'BE252', null, 55893936, 9995);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('Eurostat', 'LAU2', '32010', 'BEL', 'NUTS3', 'BE252', null, 39185258, 8712);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('Eurostat', 'LAU2', '32011', 'BEL', 'NUTS3', 'BE252', null, 54999796, 12357);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('Eurostat', 'LAU2', '32030', 'BEL', 'NUTS3', 'BE252', null, 62938759, 3282);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('Eurostat', 'LAU2', '33011', 'BEL', 'NUTS3', 'BE253', null, 130610415, 35098);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('Eurostat', 'LAU2', '33016', 'BEL', 'NUTS3', 'BE253', null, 3578335, 1037);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('Eurostat', 'LAU2', '33021', 'BEL', 'NUTS3', 'BE253', null, 119330610, 19968);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('Eurostat', 'LAU2', '33029', 'BEL', 'NUTS3', 'BE253', null, 43612479, 18456);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('Eurostat', 'LAU2', '33037', 'BEL', 'NUTS3', 'BE253', null, 67573324, 12400);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('Eurostat', 'LAU2', '33039', 'BEL', 'NUTS3', 'BE253', null, 94235304, 7888);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('Eurostat', 'LAU2', '33040', 'BEL', 'NUTS3', 'BE253', null, 52529046, 8144);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('Eurostat', 'LAU2', '33041', 'BEL', 'NUTS3', 'BE253', null, 38148241, 3625);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('Eurostat', 'LAU2', '34002', 'BEL', 'NUTS3', 'BE254', null, 41788652, 14580);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('Eurostat', 'LAU2', '34003', 'BEL', 'NUTS3', 'BE254', null, 21748127, 9803);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('Eurostat', 'LAU2', '34009', 'BEL', 'NUTS3', 'BE254', null, 16815679, 11687);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('Eurostat', 'LAU2', '34013', 'BEL', 'NUTS3', 'BE254', null, 29140007, 27476);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('Eurostat', 'LAU2', '34022', 'BEL', 'NUTS3', 'BE254', null, 80020386, 75577);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('Eurostat', 'LAU2', '34023', 'BEL', 'NUTS3', 'BE254', null, 10008346, 13113);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('Eurostat', 'LAU2', '34025', 'BEL', 'NUTS3', 'BE254', null, 13150180, 5756);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('Eurostat', 'LAU2', '34027', 'BEL', 'NUTS3', 'BE254', null, 33070836, 33099);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('Eurostat', 'LAU2', '34040', 'BEL', 'NUTS3', 'BE254', null, 44343752, 37385);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('Eurostat', 'LAU2', '34041', 'BEL', 'NUTS3', 'BE254', null, 38761463, 31345);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('Eurostat', 'LAU2', '34042', 'BEL', 'NUTS3', 'BE254', null, 63242438, 24301);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('Eurostat', 'LAU2', '34043', 'BEL', 'NUTS3', 'BE254', null, 10776650, 2155);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('Eurostat', 'LAU2', '35002', 'BEL', 'NUTS3', 'BE255', null, 13079087, 17333);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('Eurostat', 'LAU2', '35005', 'BEL', 'NUTS3', 'BE255', null, 42254065, 11771);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('Eurostat', 'LAU2', '35006', 'BEL', 'NUTS3', 'BE255', null, 45334695, 13972);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('Eurostat', 'LAU2', '35011', 'BEL', 'NUTS3', 'BE255', null, 75653353, 19312);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('Eurostat', 'LAU2', '35013', 'BEL', 'NUTS3', 'BE255', null, 37723883, 70813);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('Eurostat', 'LAU2', '35014', 'BEL', 'NUTS3', 'BE255', null, 35383003, 9231);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('Eurostat', 'LAU2', '35029', 'BEL', 'NUTS3', 'BE255', null, 42169175, 12611);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('Eurostat', 'LAU2', '36006', 'BEL', 'NUTS3', 'BE256', null, 37836247, 10079);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('Eurostat', 'LAU2', '36007', 'BEL', 'NUTS3', 'BE256', null, 16157265, 10748);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('Eurostat', 'LAU2', '36008', 'BEL', 'NUTS3', 'BE256', null, 25483137, 27449);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('Eurostat', 'LAU2', '36010', 'BEL', 'NUTS3', 'BE256', null, 24758200, 9519);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('Eurostat', 'LAU2', '36011', 'BEL', 'NUTS3', 'BE256', null, 25931415, 8625);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('Eurostat', 'LAU2', '36012', 'BEL', 'NUTS3', 'BE256', null, 35341058, 10964);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('Eurostat', 'LAU2', '36015', 'BEL', 'NUTS3', 'BE256', null, 59793935, 60707);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('Eurostat', 'LAU2', '36019', 'BEL', 'NUTS3', 'BE256', null, 46240034, 11196);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('Eurostat', 'LAU2', '37002', 'BEL', 'NUTS3', 'BE257', null, 25935511, 8376);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('Eurostat', 'LAU2', '37007', 'BEL', 'NUTS3', 'BE257', null, 29348057, 11039);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('Eurostat', 'LAU2', '37010', 'BEL', 'NUTS3', 'BE257', null, 16621841, 7715);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('Eurostat', 'LAU2', '37011', 'BEL', 'NUTS3', 'BE257', null, 34421545, 6798);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('Eurostat', 'LAU2', '37012', 'BEL', 'NUTS3', 'BE257', null, 30201523, 5266);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('Eurostat', 'LAU2', '37015', 'BEL', 'NUTS3', 'BE257', null, 68504357, 20110);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('Eurostat', 'LAU2', '37017', 'BEL', 'NUTS3', 'BE257', null, 21760376, 9441);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('Eurostat', 'LAU2', '37018', 'BEL', 'NUTS3', 'BE257', null, 68420735, 14283);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('Eurostat', 'LAU2', '37020', 'BEL', 'NUTS3', 'BE257', null, 34576094, 9072);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('Eurostat', 'LAU2', '38002', 'BEL', 'NUTS3', 'BE258', null, 80009790, 5007);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('Eurostat', 'LAU2', '38008', 'BEL', 'NUTS3', 'BE258', null, 23896896, 10854);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('Eurostat', 'LAU2', '38014', 'BEL', 'NUTS3', 'BE258', null, 43959624, 22202);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('Eurostat', 'LAU2', '38016', 'BEL', 'NUTS3', 'BE258', null, 31004430, 11434);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('Eurostat', 'LAU2', '38025', 'BEL', 'NUTS3', 'BE258', null, 96339703, 11509);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('Eurostat', 'NUTS1', 'BE1', 'BEL', null, null, null, 0, 0);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('Eurostat', 'NUTS1', 'BE2', 'BEL', null, null, null, 0, 0);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('Eurostat', 'NUTS1', 'BE3', 'BEL', null, null, null, 0, 0);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('Eurostat', 'NUTS2', 'BE10', 'BEL', 'NUTS1', 'BE1', null, 0, 0);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('Eurostat', 'NUTS2', 'BE21', 'BEL', 'NUTS1', 'BE2', null, 0, 0);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('Eurostat', 'NUTS2', 'BE22', 'BEL', 'NUTS1', 'BE2', null, 0, 0);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('Eurostat', 'NUTS2', 'BE23', 'BEL', 'NUTS1', 'BE2', null, 0, 0);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('Eurostat', 'NUTS2', 'BE24', 'BEL', 'NUTS1', 'BE2', null, 0, 0);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('Eurostat', 'NUTS2', 'BE25', 'BEL', 'NUTS1', 'BE2', null, 0, 0);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('Eurostat', 'NUTS2', 'BE31', 'BEL', 'NUTS1', 'BE3', null, 0, 0);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('Eurostat', 'NUTS2', 'BE32', 'BEL', 'NUTS1', 'BE3', null, 0, 0);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('Eurostat', 'NUTS2', 'BE33', 'BEL', 'NUTS1', 'BE3', null, 0, 0);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('Eurostat', 'NUTS2', 'BE34', 'BEL', 'NUTS1', 'BE3', null, 0, 0);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('Eurostat', 'NUTS2', 'BE35', 'BEL', 'NUTS1', 'BE3', null, 0, 0);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('Eurostat', 'NUTS3', 'BE100', 'BEL', 'NUTS2', 'BE10', null, 0, 0);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('Eurostat', 'NUTS3', 'BE211', 'BEL', 'NUTS2', 'BE21', null, 0, 0);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('Eurostat', 'NUTS3', 'BE212', 'BEL', 'NUTS2', 'BE21', null, 0, 0);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('Eurostat', 'NUTS3', 'BE213', 'BEL', 'NUTS2', 'BE21', null, 0, 0);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('Eurostat', 'NUTS3', 'BE221', 'BEL', 'NUTS2', 'BE22', null, 0, 0);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('Eurostat', 'NUTS3', 'BE222', 'BEL', 'NUTS2', 'BE22', null, 0, 0);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('Eurostat', 'NUTS3', 'BE223', 'BEL', 'NUTS2', 'BE22', null, 0, 0);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('Eurostat', 'NUTS3', 'BE231', 'BEL', 'NUTS2', 'BE23', null, 0, 0);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('Eurostat', 'NUTS3', 'BE232', 'BEL', 'NUTS2', 'BE23', null, 0, 0);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('Eurostat', 'NUTS3', 'BE233', 'BEL', 'NUTS2', 'BE23', null, 0, 0);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('Eurostat', 'NUTS3', 'BE234', 'BEL', 'NUTS2', 'BE23', null, 0, 0);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('Eurostat', 'NUTS3', 'BE235', 'BEL', 'NUTS2', 'BE23', null, 0, 0);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('Eurostat', 'NUTS3', 'BE236', 'BEL', 'NUTS2', 'BE23', null, 0, 0);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('Eurostat', 'NUTS3', 'BE241', 'BEL', 'NUTS2', 'BE24', null, 0, 0);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('Eurostat', 'NUTS3', 'BE242', 'BEL', 'NUTS2', 'BE24', null, 0, 0);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('Eurostat', 'NUTS3', 'BE251', 'BEL', 'NUTS2', 'BE25', null, 0, 0);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('Eurostat', 'NUTS3', 'BE252', 'BEL', 'NUTS2', 'BE25', null, 0, 0);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('Eurostat', 'NUTS3', 'BE253', 'BEL', 'NUTS2', 'BE25', null, 0, 0);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('Eurostat', 'NUTS3', 'BE254', 'BEL', 'NUTS2', 'BE25', null, 0, 0);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('Eurostat', 'NUTS3', 'BE255', 'BEL', 'NUTS2', 'BE25', null, 0, 0);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('Eurostat', 'NUTS3', 'BE256', 'BEL', 'NUTS2', 'BE25', null, 0, 0);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('Eurostat', 'NUTS3', 'BE257', 'BEL', 'NUTS2', 'BE25', null, 0, 0);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('Eurostat', 'NUTS3', 'BE258', 'BEL', 'NUTS2', 'BE25', null, 0, 0);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('Eurostat', 'NUTS3', 'BE310', 'BEL', 'NUTS2', 'BE31', null, 0, 0);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('Eurostat', 'NUTS3', 'BE321', 'BEL', 'NUTS2', 'BE32', null, 0, 0);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('Eurostat', 'NUTS3', 'BE322', 'BEL', 'NUTS2', 'BE32', null, 0, 0);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('Eurostat', 'NUTS3', 'BE323', 'BEL', 'NUTS2', 'BE32', null, 0, 0);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('Eurostat', 'NUTS3', 'BE324', 'BEL', 'NUTS2', 'BE32', null, 0, 0);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('Eurostat', 'NUTS3', 'BE325', 'BEL', 'NUTS2', 'BE32', null, 0, 0);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('Eurostat', 'NUTS3', 'BE326', 'BEL', 'NUTS2', 'BE32', null, 0, 0);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('Eurostat', 'NUTS3', 'BE327', 'BEL', 'NUTS2', 'BE32', null, 0, 0);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('Eurostat', 'NUTS3', 'BE331', 'BEL', 'NUTS2', 'BE33', null, 0, 0);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('Eurostat', 'NUTS3', 'BE332', 'BEL', 'NUTS2', 'BE33', null, 0, 0);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('Eurostat', 'NUTS3', 'BE334', 'BEL', 'NUTS2', 'BE33', null, 0, 0);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('Eurostat', 'NUTS3', 'BE335', 'BEL', 'NUTS2', 'BE33', null, 0, 0);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('Eurostat', 'NUTS3', 'BE336', 'BEL', 'NUTS2', 'BE33', null, 0, 0);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('Eurostat', 'NUTS3', 'BE341', 'BEL', 'NUTS2', 'BE34', null, 0, 0);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('Eurostat', 'NUTS3', 'BE342', 'BEL', 'NUTS2', 'BE34', null, 0, 0);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('Eurostat', 'NUTS3', 'BE343', 'BEL', 'NUTS2', 'BE34', null, 0, 0);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('Eurostat', 'NUTS3', 'BE344', 'BEL', 'NUTS2', 'BE34', null, 0, 0);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('Eurostat', 'NUTS3', 'BE345', 'BEL', 'NUTS2', 'BE34', null, 0, 0);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('Eurostat', 'NUTS3', 'BE351', 'BEL', 'NUTS2', 'BE35', null, 0, 0);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('Eurostat', 'NUTS3', 'BE352', 'BEL', 'NUTS2', 'BE35', null, 0, 0);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('Eurostat', 'NUTS3', 'BE353', 'BEL', 'NUTS2', 'BE35', null, 0, 0);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('ISO', '3166-1', 'BEL', 'BEL', null, null, null, 0, 0);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('ISO', '3166-1', 'DEU', 'DEU', null, null, null, 0, 0);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('ISO', '3166-1', 'USA', 'USA', null, null, null, 0, 0);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('ISO', '3166-2', 'BE-BRU', 'BEL', '3166-1', 'BEL', null, 0, 0);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('ISO', '3166-2', 'BE-VAN', 'BEL', '3166-2', 'BE-VLG', null, 0, 0);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('ISO', '3166-2', 'BE-VBR', 'BEL', '3166-2', 'BE-VLG', null, 0, 0);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('ISO', '3166-2', 'BE-VLG', 'BEL', '3166-1', 'BEL', null, 0, 0);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('ISO', '3166-2', 'BE-VLI', 'BEL', '3166-2', 'BE-VLG', null, 0, 0);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('ISO', '3166-2', 'BE-VOV', 'BEL', '3166-2', 'BE-VLG', null, 0, 0);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('ISO', '3166-2', 'BE-VWV', 'BEL', '3166-2', 'BE-VLG', null, 0, 0);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('ISO', '3166-2', 'BE-WAL', 'BEL', '3166-1', 'BEL', null, 0, 0);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('ISO', '3166-2', 'BE-WBR', 'BEL', '3166-2', 'BE-WAL', null, 0, 0);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('ISO', '3166-2', 'BE-WHT', 'BEL', '3166-2', 'BE-WAL', null, 0, 0);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('ISO', '3166-2', 'BE-WLG', 'BEL', '3166-2', 'BE-WAL', null, 0, 0);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('ISO', '3166-2', 'BE-WLX', 'BEL', '3166-2', 'BE-WAL', null, 0, 0);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('ISO', '3166-2', 'BE-WNA', 'BEL', '3166-2', 'BE-WAL', null, 0, 0);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('ISO', '3166-2', 'DE-BB', 'DEU', '3166-1', 'DEU', null, 0, 0);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('ISO', '3166-2', 'DE-BE', 'DEU', '3166-1', 'DEU', null, 0, 0);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('ISO', '3166-2', 'DE-BW', 'DEU', '3166-1', 'DEU', null, 0, 0);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('ISO', '3166-2', 'DE-BY', 'DEU', '3166-1', 'DEU', null, 0, 0);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('ISO', '3166-2', 'DE-HB', 'DEU', '3166-1', 'DEU', null, 0, 0);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('ISO', '3166-2', 'DE-HE', 'DEU', '3166-1', 'DEU', null, 0, 0);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('ISO', '3166-2', 'DE-HH', 'DEU', '3166-1', 'DEU', null, 0, 0);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('ISO', '3166-2', 'DE-MV', 'DEU', '3166-1', 'DEU', null, 0, 0);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('ISO', '3166-2', 'DE-NI', 'DEU', '3166-1', 'DEU', null, 0, 0);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('ISO', '3166-2', 'DE-NW', 'DEU', '3166-1', 'DEU', null, 0, 0);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('ISO', '3166-2', 'DE-RP', 'DEU', '3166-1', 'DEU', null, 0, 0);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('ISO', '3166-2', 'DE-SH', 'DEU', '3166-1', 'DEU', null, 0, 0);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('ISO', '3166-2', 'DE-SL', 'DEU', '3166-1', 'DEU', null, 0, 0);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('ISO', '3166-2', 'DE-SN', 'DEU', '3166-1', 'DEU', null, 0, 0);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('ISO', '3166-2', 'DE-ST', 'DEU', '3166-1', 'DEU', null, 0, 0);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('ISO', '3166-2', 'DE-TH', 'DEU', '3166-1', 'DEU', null, 0, 0);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('ISO', '3166-2', 'US-AK', 'USA', '3166-1', 'USA', null, 0, 0);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('ISO', '3166-2', 'US-AL', 'USA', '3166-1', 'USA', null, 0, 0);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('ISO', '3166-2', 'US-AR', 'USA', '3166-1', 'USA', null, 0, 0);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('ISO', '3166-2', 'US-AZ', 'USA', '3166-1', 'USA', null, 0, 0);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('ISO', '3166-2', 'US-CA', 'USA', '3166-1', 'USA', null, 0, 0);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('ISO', '3166-2', 'US-CO', 'USA', '3166-1', 'USA', null, 0, 0);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('ISO', '3166-2', 'US-CT', 'USA', '3166-1', 'USA', null, 0, 0);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('ISO', '3166-2', 'US-DC', 'USA', '3166-1', 'USA', null, 0, 0);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('ISO', '3166-2', 'US-DE', 'USA', '3166-1', 'USA', null, 0, 0);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('ISO', '3166-2', 'US-FL', 'USA', '3166-1', 'USA', null, 0, 0);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('ISO', '3166-2', 'US-GA', 'USA', '3166-1', 'USA', null, 0, 0);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('ISO', '3166-2', 'US-HI', 'USA', '3166-1', 'USA', null, 0, 0);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('ISO', '3166-2', 'US-IA', 'USA', '3166-1', 'USA', null, 0, 0);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('ISO', '3166-2', 'US-ID', 'USA', '3166-1', 'USA', null, 0, 0);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('ISO', '3166-2', 'US-IL', 'USA', '3166-1', 'USA', null, 0, 0);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('ISO', '3166-2', 'US-IN', 'USA', '3166-1', 'USA', null, 0, 0);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('ISO', '3166-2', 'US-KS', 'USA', '3166-1', 'USA', null, 0, 0);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('ISO', '3166-2', 'US-KY', 'USA', '3166-1', 'USA', null, 0, 0);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('ISO', '3166-2', 'US-LA', 'USA', '3166-1', 'USA', null, 0, 0);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('ISO', '3166-2', 'US-MA', 'USA', '3166-1', 'USA', null, 0, 0);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('ISO', '3166-2', 'US-MD', 'USA', '3166-1', 'USA', null, 0, 0);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('ISO', '3166-2', 'US-ME', 'USA', '3166-1', 'USA', null, 0, 0);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('ISO', '3166-2', 'US-MI', 'USA', '3166-1', 'USA', null, 0, 0);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('ISO', '3166-2', 'US-MN', 'USA', '3166-1', 'USA', null, 0, 0);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('ISO', '3166-2', 'US-MO', 'USA', '3166-1', 'USA', null, 0, 0);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('ISO', '3166-2', 'US-MS', 'USA', '3166-1', 'USA', null, 0, 0);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('ISO', '3166-2', 'US-MT', 'USA', '3166-1', 'USA', null, 0, 0);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('ISO', '3166-2', 'US-NC', 'USA', '3166-1', 'USA', null, 0, 0);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('ISO', '3166-2', 'US-ND', 'USA', '3166-1', 'USA', null, 0, 0);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('ISO', '3166-2', 'US-NE', 'USA', '3166-1', 'USA', null, 0, 0);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('ISO', '3166-2', 'US-NH', 'USA', '3166-1', 'USA', null, 0, 0);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('ISO', '3166-2', 'US-NJ', 'USA', '3166-1', 'USA', null, 0, 0);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('ISO', '3166-2', 'US-NM', 'USA', '3166-1', 'USA', null, 0, 0);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('ISO', '3166-2', 'US-NV', 'USA', '3166-1', 'USA', null, 0, 0);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('ISO', '3166-2', 'US-NY', 'USA', '3166-1', 'USA', null, 0, 0);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('ISO', '3166-2', 'US-OH', 'USA', '3166-1', 'USA', null, 0, 0);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('ISO', '3166-2', 'US-OK', 'USA', '3166-1', 'USA', null, 0, 0);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('ISO', '3166-2', 'US-OR', 'USA', '3166-1', 'USA', null, 0, 0);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('ISO', '3166-2', 'US-PA', 'USA', '3166-1', 'USA', null, 0, 0);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('ISO', '3166-2', 'US-RI', 'USA', '3166-1', 'USA', null, 0, 0);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('ISO', '3166-2', 'US-SC', 'USA', '3166-1', 'USA', null, 0, 0);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('ISO', '3166-2', 'US-SD', 'USA', '3166-1', 'USA', null, 0, 0);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('ISO', '3166-2', 'US-TN', 'USA', '3166-1', 'USA', null, 0, 0);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('ISO', '3166-2', 'US-TX', 'USA', '3166-1', 'USA', null, 0, 0);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('ISO', '3166-2', 'US-UT', 'USA', '3166-1', 'USA', null, 0, 0);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('ISO', '3166-2', 'US-VA', 'USA', '3166-1', 'USA', null, 0, 0);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('ISO', '3166-2', 'US-VT', 'USA', '3166-1', 'USA', null, 0, 0);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('ISO', '3166-2', 'US-WA', 'USA', '3166-1', 'USA', null, 0, 0);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('ISO', '3166-2', 'US-WI', 'USA', '3166-1', 'USA', null, 0, 0);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('ISO', '3166-2', 'US-WV', 'USA', '3166-1', 'USA', null, 0, 0);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('ISO', '3166-2', 'US-WY', 'USA', '3166-1', 'USA', null, 0, 0);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('ISO', '3166-1', 'CHE', 'CHE', null, null, null, 0, 0);
INSERT INTO "OLINGO"."AdministrativeDivision" VALUES ('ISO', '3166-2', 'CH-BL', 'CHE', '3166-1', 'CHE', null, 0, 0);
ALTER TABLE "OLINGO"."BusinessPartner"
ADD CONSTRAINT bpa_adv_fk
FOREIGN KEY ("ADDRESS_REGIONCODEPUBLISHER", "ADDRESS_REGIONCODEID", "ADDRESS_REGION")
REFERENCES "OLINGO"."AdministrativeDivision" ("CodePublisher", "CodeID", "DivisionCode");
CREATE TABLE "OLINGO"."Comment" (
"BusinessPartnerID" VARCHAR(32) NOT NULL,
"Order" INTEGER NOT NULL,
"Text" VARCHAR(280),
PRIMARY KEY ("BusinessPartnerID", "Order"));
INSERT INTO "OLINGO"."Comment" VALUES ('1', 1, 'This is just a test');
INSERT INTO "OLINGO"."Comment" VALUES ('1', 3, 'This is another test');
--------DUMMY FOR TESTING--------------------------------------------------------------------------------------------------------
CREATE TABLE "OLINGO"."DummyToBeIgnored"
(
"ID" VARCHAR(32) NOT NULL,
PRIMARY KEY ("ID")
);
--------User defined scalar functions--------------------------------------------------------------------------------------------
CREATE FUNCTION OLINGO."PopulationDensity"("Area" BIGINT, "Population" BIGINT)
RETURNS DOUBLE
BEGIN ATOMIC
IF "Area" <= 0 THEN RETURN 0;
ELSE RETURN CAST("Population" / "Area" AS DOUBLE);
END IF;
END;
CREATE FUNCTION OLINGO."ConvertToQkm"("Area" BIGINT)
RETURNS BIGINT
BEGIN ATOMIC
IF "Area" <= 0 THEN RETURN 0;
ELSE RETURN "Area" / 1000000;
END IF;
END;
// User Defined Function as created by query.TestJPAFunction.createFunction
/*CREATE FUNCTION "Siblings" ("Publisher" VARCHAR(10), "ID" VARCHAR(10), "Division" VARCHAR(10))
RETURNS TABLE(
"CodePublisher" VARCHAR(10),
"CodeID" VARCHAR(10),
"DivisionCode" VARCHAR(10),
"CountryISOCode" VARCHAR(4),
"ParentCodeID" VARCHAR(10),
"ParentDivisionCode" VARCHAR(10),
"AlternativeCode" VARCHAR(10),
"Area" int,
"Population" BIGINT)
READS SQL DATA
RETURN TABLE( SELECT *
FROM "AdministrativeDivision" as a
WHERE EXISTS (SELECT "CodePublisher"
FROM "AdministrativeDivision" as b
WHERE b."CodeID" = "ID"
AND b."DivisionCode" = "Division"
AND b."CodePublisher" = a."CodePublisher"
AND b."ParentCodeID" = a."ParentCodeID"
AND b."ParentDivisionCode" = a."ParentDivisionCode")
AND NOT( a."CodePublisher" = "Publisher"
AND a."CodeID" = "ID"
AND a."DivisionCode" = "Division" )
);*/
|
<reponame>binarylei/spring-boot-test-support<gh_stars>1-10
drop table if exists user;
CREATE TABLE user (
id bigint(20) NOT NULL AUTO_INCREMENT,
name varchar(255) DEFAULT NULL,
PRIMARY KEY (id)
) ENGINE=innodb ;
|
--select * from record limit 1,5;
--select sum(fee) from record group by time;
--select * from record group by xiaoleiid having sum(fee)>50;
--select distinct time from record;
--select * from record order by time desc;
--select * from record inner join xiaolei on record.xiaoleiid=xiaolei._id;
--select * from record inner join xiaolei on record.xiaoleiid=xiaolei._id join dalei on dalei._id=xiaolei.daleiid order by time;
--select * from xiaolei left outer join record on xiaolei._id=record.xiaoleiid order by time;
--select * from record where time like '%2016%01%';
--select * from record where xiaoleiid in (0,3);
--select * from record where xiaoleiid between 3 and 6 order by xiaoleiid;
--select avg(fee) from record;
--select count(fee) from record;
--select sum(fee) from record;
--select max(fee),min(fee) from record;
--select group_concat(daleiname,'@') from dalei;
--select random();
--select replace(time,'2016','2015') from record;
--select round(tee,2) from record;
--select substr('apple',1,3);
--select total_changes();
--select trim('PPAP','P');
--select ltrim('PPAP','P');
--select rtrim('PPAP','P');
--select typeof(fee) from record;
--select zeroblob(10);
--select randomblob(10);
--select quote(fee) from record;
--select instr('PPAP','A');
--select date('now');
--select date('2013-11-06','+2000 days');
--select date('now','start of month','+1 month','-1 day');
--select datetime('now');
--select time('now');
--select strftime('%Y/%m/%d','now');
--select julianday('now')-julianday('2013-11-06');
--select date('now','start of year','+9 months','weekday 2');
--select json('{"name":"morris","age":"25"}');
--select json_object('name','wendy','age',30);
--select json_insert('{"a":1,"b":2}','$.e',10);
--select json_replace('{"a":1,"b":2}','$.a',10);
--begin transaction;
--insert into record values(0,13,date('now'));
--insert into record values(3,29,date('now'));
--insert into record values(5,15,date('now'));
--commit;
--vacuum;
select * from record where time like '%2016-12-08%';
|
CREATE TABLE [dm].[dim_date]
(
[date_id] INT NOT NULL,
[date] DATE NOT NULL,
[week_no] AS datepart(wk, [date]),
[month_no] AS month([date]),
[month_name] AS datename(MM,[date]),
[quarter] AS datename(q,[date]),
[year] AS year([date]) ,
[created] DATETIME DEFAULT(getdate())
CONSTRAINT [PK_dim_date] PRIMARY KEY ([date_id])
)
GO
CREATE INDEX [IX_dim_date_Column] ON [dm].[dim_date] ([date])
|
<reponame>rasitha1/RBatisNet
use [IBatisNet]
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[Coupons]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
BEGIN
drop table [dbo].[Coupons]
END
CREATE TABLE [dbo].[Coupons] (
[Coupon_ID] [int] NOT NULL ,
[Coupon_Code] [varchar] (32) NOT NULL
) ON [PRIMARY]
ALTER TABLE [dbo].[Coupons] WITH NOCHECK ADD
CONSTRAINT [PK_Coupons] PRIMARY KEY CLUSTERED
(
[Coupon_ID]
) ON [PRIMARY]
-- Creating Test Data
INSERT INTO [dbo].[Coupons] VALUES(1,'AAA' );
INSERT INTO [dbo].[Coupons] VALUES(2,'BBB');
INSERT INTO [dbo].[Coupons] VALUES(3,'CCC');
INSERT INTO [dbo].[Coupons] VALUES(4,'DDD');
INSERT INTO [dbo].[Coupons] VALUES(5,'EEE');
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[Coupons_Brands]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
BEGIN
drop table [dbo].[Coupons_Brands]
END
CREATE TABLE [dbo].[Coupons_Brands] (
[Coupon_ID] [int] NOT NULL ,
[Brand_Id] [int] NOT NULL
) ON [PRIMARY]
-- Creating Test Data
INSERT INTO [dbo].[Coupons_Brands] VALUES(1,1 );
INSERT INTO [dbo].[Coupons_Brands] VALUES(1,2);
INSERT INTO [dbo].[Coupons_Brands] VALUES(1,3);
INSERT INTO [dbo].[Coupons_Brands] VALUES(2,4);
INSERT INTO [dbo].[Coupons_Brands] VALUES(2,5);
INSERT INTO [dbo].[Coupons_Brands] VALUES(5,6);
|
<filename>sql/queries.sql
/* Get referencing tables and keys - these are all the parent tables we are referencing */
SELECT
rel_kcu.table_schema as primary_schema,
rel_kcu.table_name as primary_table,
kcu.column_name as fk_column,
kcu.constraint_name,
(SELECT
CASE WHEN count(*) > 1 THEN true
ELSE false
END
FROM
information_schema.key_column_usage kcu1
WHERE
kcu1.table_schema = kcu.table_schema AND
kcu1.table_name = kcu.table_name AND
kcu1.constraint_name = kcu.constraint_name) is_composite
FROM
information_schema.table_constraints tco
JOIN information_schema.key_column_usage kcu
ON tco.constraint_schema = kcu.constraint_schema
AND tco.constraint_name = kcu.constraint_name
JOIN information_schema.referential_constraints rco
ON tco.constraint_schema = rco.constraint_schema
AND tco.constraint_name = rco.constraint_name
JOIN information_schema.key_column_usage rel_kcu
ON rco.unique_constraint_schema = rel_kcu.constraint_schema
AND rco.unique_constraint_name = rel_kcu.constraint_name
AND kcu.ordinal_position = rel_kcu.ordinal_position
WHERE
tco.constraint_type = 'FOREIGN KEY' AND
kcu.table_schema = 'public' AND
kcu.table_name = 'part_part'
ORDER BY primary_schema, primary_table, rel_kcu.column_name, kcu.constraint_name;
/* Get referenced by tables - these are all the child tables that are referencing us */
SELECT
tc.constraint_schema reference_schema,
tc.table_name reference_table,
ftc.constraint_schema referencing_schema,
ftc.table_name referencing_table
FROM
information_schema.referential_constraints rc,
information_schema.table_constraints tc,
information_schema.table_constraints ftc
WHERE
tc.constraint_type = 'PRIMARY KEY' AND
tc.constraint_name = rc.unique_constraint_name AND
tc.constraint_schema = rc.unique_constraint_schema AND
ftc.constraint_type = 'FOREIGN KEY' AND
ftc.constraint_name = rc.constraint_name AND
ftc.constraint_schema = rc.constraint_schema;
/* Get referenced tables - these are all the child tables that are referencing us and note those that are join tables */
SELECT
tc.constraint_schema reference_schema,
tc.table_name reference_table,
ftc.constraint_schema referencing_schema,
ftc.table_name referencing_table,
(SELECT
CASE WHEN count(p_kcu.column_name) = count(f_kcu.column_name) AND count(p_kcu.column_name) > 0 THEN true
ELSE false
END
FROM
information_schema.key_column_usage p_kcu,
information_schema.table_constraints p_tc,
information_schema.key_column_usage f_kcu,
information_schema.table_constraints f_tc
WHERE
p_tc.constraint_schema = ftc.constraint_schema AND
p_tc.constraint_type = 'PRIMARY KEY' AND
p_tc.constraint_name = p_kcu.constraint_name AND
p_tc.table_schema = p_kcu.table_schema AND
p_tc.table_name = p_kcu.table_name AND
p_tc.table_name = ftc.table_name AND
f_tc.constraint_type = 'FOREIGN KEY' AND
f_tc.constraint_name = f_kcu.constraint_name AND
f_tc.table_schema = f_kcu.table_schema AND
f_tc.table_name = f_kcu.table_name AND
f_tc.table_name = ftc.table_name AND
p_kcu.column_name = f_kcu.column_name) is_join
FROM
information_schema.referential_constraints rc,
information_schema.table_constraints tc,
information_schema.table_constraints ftc
WHERE
tc.constraint_type = 'PRIMARY KEY' AND
tc.constraint_name = rc.unique_constraint_name AND
tc.constraint_schema = rc.unique_constraint_schema AND
ftc.constraint_type = 'FOREIGN KEY' AND
ftc.constraint_name = rc.constraint_name AND
ftc.constraint_schema = rc.constraint_schema AND
tc.table_schema = 'public' AND
tc.table_name = 'product'
|
-- grading
create table o_grad_to_identity (
id bigserial,
creationdate timestamp not null,
lastmodified timestamp not null,
g_status varchar(16) default 'activated' not null,
fk_identity int8 not null,
fk_entry int8 not null,
primary key (id)
);
alter table o_grad_to_identity add constraint grad_to_ident_idx foreign key (fk_identity) references o_bs_identity (id);
create index idx_grad_to_ident_idx on o_grad_to_identity (fk_identity);
alter table o_grad_to_identity add constraint grad_id_to_repo_idx foreign key (fk_entry) references o_repositoryentry (repositoryentry_id);
create index idx_grad_id_to_repo_idx on o_grad_to_identity (fk_entry);
create table o_grad_assignment (
id bigserial,
creationdate timestamp not null,
lastmodified timestamp not null,
g_status varchar(16) default 'unassigned' not null,
g_assessment_date timestamp,
g_assignment_date timestamp,
g_assignment_notification timestamp,
g_reminder_1 timestamp,
g_reminder_2 timestamp,
g_deadline timestamp,
g_extended_deadline timestamp,
g_closed timestamp,
fk_reference_entry int8 not null,
fk_assessment_entry int8 not null,
fk_grader int8,
primary key (id)
);
alter table o_grad_assignment add constraint grad_assign_to_entry_idx foreign key (fk_reference_entry) references o_repositoryentry (repositoryentry_id);
create index idx_grad_assign_to_entry_idx on o_grad_assignment (fk_reference_entry);
alter table o_grad_assignment add constraint grad_assign_to_assess_idx foreign key (fk_assessment_entry) references o_as_entry (id);
create index idx_grad_assign_to_assess_idx on o_grad_assignment (fk_assessment_entry);
alter table o_grad_assignment add constraint grad_assign_to_grader_idx foreign key (fk_grader) references o_grad_to_identity (id);
create index idx_grad_assign_to_grader_idx on o_grad_assignment (fk_grader);
create table o_grad_time_record (
id bigserial,
creationdate timestamp not null,
lastmodified timestamp not null,
g_time int8 default 0 not null,
g_date_record date not null default current_date,
fk_assignment int8,
fk_grader int8 not null,
primary key (id)
);
alter table o_grad_time_record add constraint grad_time_to_assign_idx foreign key (fk_assignment) references o_grad_assignment (id);
create index idx_grad_time_to_assign_idx on o_grad_time_record (fk_assignment);
alter table o_grad_time_record add constraint grad_time_to_grader_idx foreign key (fk_grader) references o_grad_to_identity (id);
create index idx_grad_time_to_grader_idx on o_grad_time_record (fk_grader);
create table o_grad_configuration (
id bigserial,
creationdate timestamp not null,
lastmodified timestamp not null,
g_grading_enabled bool not null default false,
g_identity_visibility varchar(32) default 'anonymous' not null,
g_grading_period int8,
g_notification_type varchar(32) default 'afterTestSubmission' not null,
g_notification_subject varchar(255),
g_notification_body text,
g_first_reminder int8,
g_first_reminder_subject varchar(255),
g_first_reminder_body text,
g_second_reminder int8,
g_second_reminder_subject varchar(255),
g_second_reminder_body text,
fk_entry int8 not null,
primary key (id)
);
alter table o_grad_configuration add constraint grad_config_to_entry_idx foreign key (fk_entry) references o_repositoryentry (repositoryentry_id);
create index idx_grad_config_to_entry_idx on o_grad_configuration (fk_entry);
-- Catalog sorting
alter table o_catentry add column order_index int8 default null;
alter table o_catentry add column short_title varchar(255);
-- absence leave
create table o_user_absence_leave (
id bigserial,
creationdate timestamp not null,
lastmodified timestamp not null,
u_absent_from timestamp,
u_absent_to timestamp,
u_resname varchar(50),
u_resid int8,
u_sub_ident varchar(2048),
fk_identity int8 not null,
primary key (id)
);
alter table o_user_absence_leave add constraint abs_leave_to_ident_idx foreign key (fk_identity) references o_bs_identity (id);
create index idx_abs_leave_to_ident_idx on o_user_absence_leave (fk_identity);
|
SELECT (1,'') IN ((-1,''));
SELECT (1,'') IN ((1,''));
SELECT (1,'') IN (-1,'');
SELECT (1,'') IN (1,'');
SELECT (1,'') IN ((-1,''),(1,''));
SELECT (number, toString(number)) IN ((1, '1'), (-1, '-1')) FROM system.numbers LIMIT 10;
SELECT (number - 1, toString(number - 1)) IN ((1, '1'), (-1, '-1')) FROM system.numbers LIMIT 10;
|
<filename>usr/module/user/sql/social.sql
# Pi Engine schema
# http://pialog.org
# Author: <NAME> <<EMAIL>>
# --------------------------------------------------------
# ------------------------------------------------------
# User custom compound
# >>>>
# Entity for user custom compound: social tools
CREATE TABLE `{social}` (
`id` int(10) unsigned NOT NULL auto_increment,
`uid` int(10) unsigned NOT NULL,
`order` smallint(5) unsigned NOT NULL default '0',
`type` varchar(64) NOT NULL default '',
`title` varchar(64) NOT NULL,
`identifier` varchar(64) NOT NULL,
PRIMARY KEY (`id`),
KEY `uid` (`uid`)
);
|
-- p1 ------------------------------------------------------
DELIMITER ###
CREATE PROCEDURE usp_get_employees_salary_above_35000()
BEGIN
SELECT
`first_name`,
`last_name`
FROM
`employees`
WHERE
`salary` > 35000
ORDER BY `first_name`, `last_name`, `employee_id`;
END
###
DELIMITER ;
CALL usp_get_employees_salary_above_35000;
-- p2 -----------------------------------------------------
DELIMITER ###
CREATE PROCEDURE usp_get_employees_salary_above(given_salary DECIMAL(19,4))
BEGIN
SELECT
`first_name`,
`last_name`
FROM
`employees`
WHERE
`salary` >= given_salary
ORDER BY `first_name`, `last_name`, `employee_id`;
END
###
DELIMITER ;
CALL usp_get_employees_salary_above(48099);
-- p3 -----------------------------------------------------
DELIMITER ###
CREATE PROCEDURE usp_get_towns_starting_with(substring VARCHAR(50))
BEGIN
SELECT
`name` AS `town_name`
FROM
`towns`
WHERE `name` LIKE concat(substring , '%')
ORDER BY `town_name`;
END
###
DELIMITER ;
CALL usp_get_towns_starting_with('b');
-- p4 ---------------------------------------------------
DELIMITER ###
CREATE PROCEDURE usp_get_employees_from_town(`town_name` VARCHAR(50))
BEGIN
SELECT
e.`first_name`, e.`last_name`
FROM
`employees` AS e
JOIN
`addresses` AS a ON e.`address_id` = a.`address_id`
JOIN
`towns` AS t ON a.`town_id` = t.`town_id`
WHERE
t.`name` = `town_name`
ORDER BY e.`first_name` , e.`last_name`;
END
###
DELIMITER ;
CALL usp_get_employees_from_town('Sofia');
-- p5 ---------------------------------------------------
DELIMITER ###
CREATE FUNCTION ufn_get_salary_level (`salary` DOUBLE)
RETURNS VARCHAR(50)
DETERMINISTIC
RETURN (CASE
WHEN `salary` < 30000 THEN 'Low'
WHEN `salary` <= 50000 THEN 'Average'
ELSE 'High'
END)
###
DELIMITER ;
SELECT ufn_get_salary_level(500000);
-- p6 --------------------------------------------------
DELIMITER ###
CREATE PROCEDURE usp_get_employees_by_salary_level(`salary_level` VARCHAR(50))
BEGIN
SELECT
e.`first_name`, e.`last_name`
FROM
`employees` AS e
WHERE
ufn_get_salary_level(e.`salary`) = `salary_level`
ORDER BY e.`first_name` DESC, e.`last_name` DESC;
END
###
DELIMITER ;
CALL usp_get_employees_by_salary_level('High');
DELIMITER ###
CREATE PROCEDURE usp_get_employees_by_salary_level(`salary_level` VARCHAR(50))
BEGIN
SELECT
e.`first_name`, e.`last_name`
FROM
`employees` AS e
WHERE
(CASE
WHEN `salary` < 30000 THEN 'Low'
WHEN `salary` <= 50000 THEN 'Average'
ELSE 'High'
END) = 'High'
ORDER BY e.`first_name` DESC, e.`last_name` DESC;
END
###
DELIMITER ;
-- p7 ------------------------------------------------------
DELIMITER ###
CREATE FUNCTION ufn_is_word_comprised(`set_of_letters` varchar(50), `word`varchar(50))
RETURNS BIT
DETERMINISTIC
BEGIN
RETURN `word` REGEXP concat('^[', `set_of_letters`, ']+$');
END
###
DELIMITER ;
-- p8 -----------------------------------------------------
DELIMITER ###
CREATE PROCEDURE usp_get_holders_full_name()
BEGIN
SELECT
concat(h.`first_name`,' ', h.`last_name`) AS `full_name`
FROM
`account_holders` AS h
ORDER BY `full_name`, h.`id`;
END
###
DELIMITER ;
-- p9 -----------------------------------------------------
DELIMITER ###
CREATE PROCEDURE usp_get_holders_with_balance_higher_than(`balance` DECIMAL)
BEGIN
SELECT
h.`first_name`, h.`last_name`
FROM
`account_holders` as h
JOIN
`accounts` as a ON h.`id` = a.`account_holder_id`
GROUP BY h.`id`
HAVING sum(a.balance) > balance
ORDER BY h.`id`;
END
###
DELIMITER ;
-- p10 -----------------------------------------------------
DELIMITER ###
CREATE FUNCTION ufn_calculate_future_value(sum DECIMAL(19,4), yearly_interest_rate DOUBLE, number_of_years INT)
RETURNS DECIMAL(19,4)
DETERMINISTIC
BEGIN
RETURN (sum * (pow((1 + yearly_interest_rate), number_of_years)));
END
###
DELIMITER ;
SELECT ufn_calculate_future_value(1000, 0.5, 5);
-- p11 ---------------------------------------------------
DELIMITER ###
CREATE PROCEDURE usp_calculate_future_value_for_account(id_of_account INT, interest_rate DECIMAL(19,4))
BEGIN
SELECT
a.`id` as `account_id`,
h.`first_name`,
h.`last_name`,
a.`balance` as `current_balance`,
ufn_calculate_future_value(a.`balance`, interest_rate, 5)
FROM
`account_holders` as h
JOIN
`accounts` as a ON h.`id` = a.`account_holder_id`
WHERE
a.`id` = id_of_account;
END
###
DELIMITER ;
CALL usp_calculate_future_value_for_account(1, 0.1);
-- ---------------
DELIMITER ###
CREATE PROCEDURE usp_calculate_future_value_for_account(id_of_account INT, interest_rate DECIMAL(19,4))
BEGIN
DECLARE result DECIMAL (19,4);
SET result := (SELECT
a.`balance` * (pow((1 + interest_rate), 5))
FROM
`accounts` as a
WHERE
a.`id` = id_of_account);
SELECT
a.`id` as `account_id`,
h.`first_name`,
h.`last_name`,
a.`balance` as `current_balance`,
`result`
FROM
`account_holders` as h
JOIN
`accounts` as a ON h.`id` = a.`account_holder_id`
WHERE
a.`id` = id_of_account;
END
###
DELIMITER ;
CALL usp_calculate_future_value_for_account2(1, 0.1);
-- p12 ---------------------------------------------------
DELIMITER ###
CREATE PROCEDURE usp_deposit_money(account_id INT, money_amount DECIMAL(19,4))
BEGIN
IF(money_amount > 0) THEN
UPDATE
`accounts` AS acc
SET
acc.`balance` = acc.`balance` + money_amount
WHERE
`id` = account_id;
END IF;
END
###
DELIMITER ;
CALL usp_deposit_money(1, 50.3555);
SELECT * FROM accounts WHERE id = 1;
-- p13 ---------------------------------------------------
DELIMITER ###
CREATE PROCEDURE usp_withdraw_money(account_id INT, money_amount DECIMAL(19,4))
BEGIN
DECLARE current_balance DECIMAL(19,4);
SET current_balance = (SELECT `balance` FROM `accounts` WHERE `id` = account_id);
IF(money_amount > 0 AND current_balance >= money_amount) THEN
UPDATE
`accounts` AS acc
SET
acc.`balance` = acc.`balance` - money_amount
WHERE
`id` = account_id;
END IF;
END
###
DELIMITER ;
call usp_withdraw_money(1, 81.8480);
|
CREATE TABLE System_Options (
system_option_id integer PRIMARY KEY AUTOINCREMENT,
option_name varchar,
option_value varchar
);
CREATE TABLE System_Option_Changes (
system_option_change_id integer PRIMARY KEY AUTOINCREMENT,
system_option_id integer,
timestamp datetime DEFAULT CURRENT_TIMESTAMP,
change_type varchar,
option_name varchar,
Old_option_name varchar,
option_value varchar,
Old_option_value varchar
);
CREATE TABLE Barcode (
barcode_id varchar,
timestamp datetime DEFAULT CURRENT_TIMESTAMP,
barcode varchar
);
CREATE TABLE Weight (
weight_id varchar,
timestamp datetime DEFAULT CURRENT_TIMESTAMP,
weight integer,
weight_raw varchar
);
CREATE TRIGGER trg_System_Options_Delete AFTER DELETE ON System_Options
BEGIN
INSERT INTO System_Option_Changes (system_option_id,change_type,Old_option_name,Old_option_value)
SELECT Old.system_option_id,'D',Old.option_name,Old.option_value;
END;
CREATE TRIGGER trg_System_Options_Insert AFTER INSERT ON System_Options
BEGIN
INSERT INTO System_Option_Changes (system_option_id,change_type,option_name,option_value)
SELECT New.system_option_id,'I',New.option_name,New.option_value;
END;
CREATE TRIGGER trg_System_Options_Update AFTER UPDATE ON System_Options
BEGIN
INSERT INTO System_Option_Changes (system_option_id,change_type,option_name,Old_option_name,option_value,Old_option_value)
SELECT New.system_option_id,'U',New.option_name,Old.option_name,New.option_value,Old.option_value;
END;
INSERT INTO System_Options (option_name, option_value) VALUES('SCALE_DATA_PIN','24');
INSERT INTO System_Options (option_name, option_value) VALUES('SCALE_CLOCK_PIN','25');
INSERT INTO System_Options (option_name, option_value) VALUES('SCALE_CHANNEL','A');
INSERT INTO System_Options (option_name, option_value) VALUES('SCALE_GAIN','64');
INSERT INTO System_Options (option_name, option_value) VALUES('LID_SWITCH_PIN','14');
INSERT INTO System_Options (option_name, option_value) VALUES('LID_OPEN_PIN','15');
INSERT INTO System_Options (option_name, option_value) VALUES('LID_CLOSE_PIN','18');
INSERT INTO System_Options (option_name, option_value) VALUES('LIGHT_PIN','8');
INSERT INTO System_Options (option_name, option_value) VALUES('FAN_PIN','7');
INSERT INTO System_Options (option_name, option_value) VALUES('LED_PIN','12');
INSERT INTO System_Options (option_name, option_value) VALUES('WATCHDOG_SLEEP_TIMER','15');
INSERT INTO System_Options (option_name, option_value) VALUES('LID_SLEEP_TIMER','5');
INSERT INTO System_Options (option_name, option_value) VALUES('CLEANING_LED','true');
INSERT INTO System_Options (option_name, option_value) VALUES('NUM_MEASUREMENTS','25');
INSERT INTO System_Options (option_name, option_value) VALUES('TARE','');
INSERT INTO System_Options (option_name, option_value) VALUES('BC_TRIGGER_PIN','23');
INSERT INTO System_Options (option_name, option_value) VALUES('BARCODE_SCANNER_PATH','/dev/hidraw0');
INSERT INTO System_Options (option_name, option_value) VALUES('HOME_SERVER_URL','http://172.16.17.32:5000');
INSERT INTO System_Options (option_name, option_value) VALUES('LONG_CYCLE_BOTH_HOUR','');
INSERT INTO System_Options (option_name, option_value) VALUES('LONG_CYCLE_BOTH_MINUTE','');
INSERT INTO System_Options (option_name, option_value) VALUES('SHORT_CYCLE_BOTH_HOUR','');
INSERT INTO System_Options (option_name, option_value) VALUES('SHORT_CYCLE_BOTH_MINUTE','');
INSERT INTO System_Options (option_name, option_value) VALUES('PHONE_HOME_SLEEP','30');
INSERT INTO System_Options (option_name, option_value) VALUES('BROADCAST_SLEEP','30');
INSERT INTO System_Options (option_name, option_value) VALUES('PI_BROADCAST_PORT','10001');
INSERT INTO System_Options (option_name, option_value) VALUES('CONVERSION_FACTOR','');
INSERT INTO System_Options (option_name, option_value) VALUES('UPLOAD_FAILURE_LIMIT','2');
|
-- phpMyAdmin SQL Dump
-- version 5.0.4
-- https://www.phpmyadmin.net/
--
-- Hôte : localhost
-- Généré le : lun. 15 mars 2021 à 21:44
-- Version du serveur : 10.3.27-MariaDB-0+deb10u1
-- Version de PHP : 7.3.19-1~deb10u1
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- Base de données : `dahlia`
--
-- --------------------------------------------------------
--
-- Structure de la table `add_user_as`
--
CREATE TABLE `add_user_as` (
`circle` int(11) NOT NULL,
`user` int(11) NOT NULL,
`user_added` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- Structure de la table `agenda`
--
CREATE TABLE `agenda` (
`owner` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- Structure de la table `chat`
--
CREATE TABLE `chat` (
`id` int(11) NOT NULL,
`title` varchar(64) NOT NULL,
`author` int(11) NOT NULL,
`date_creation` timestamp NOT NULL DEFAULT current_timestamp(),
`personal_circle` int(11) NOT NULL,
`heading` varchar(64) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Déchargement des données de la table `chat`
--
INSERT INTO `chat` (`id`, `title`, `author`, `date_creation`, `personal_circle`, `heading`) VALUES
(1, 'linux', 1, '2021-03-11 18:40:24', 8, NULL),
(2, 'linux', 1, '2021-03-11 18:40:30', 8, NULL);
-- --------------------------------------------------------
--
-- Structure de la table `event`
--
CREATE TABLE `event` (
`agenda` int(11) NOT NULL,
`date` timestamp NOT NULL DEFAULT current_timestamp(),
`description` varchar(500) NOT NULL,
`type` enum('private','shared','public') NOT NULL DEFAULT 'private'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- Structure de la table `file`
--
CREATE TABLE `file` (
`id` int(11) NOT NULL,
`data` mediumint(9) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- Structure de la table `heading`
--
CREATE TABLE `heading` (
`id` int(11) NOT NULL,
`author` int(11) NOT NULL,
`date_creation` timestamp NOT NULL DEFAULT current_timestamp(),
`title` varchar(64) NOT NULL,
`public_circle` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- Structure de la table `member`
--
CREATE TABLE `member` (
`user` int(11) NOT NULL,
`chat` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- Structure de la table `message`
--
CREATE TABLE `message` (
`author` int(11) NOT NULL,
`date` timestamp NOT NULL DEFAULT current_timestamp(),
`text` varchar(400) NOT NULL,
`picture_address` varchar(128) DEFAULT NULL,
`event` int(11) DEFAULT NULL,
`chat` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Déchargement des données de la table `message`
--
INSERT INTO `message` (`author`, `date`, `text`, `picture_address`, `event`, `chat`) VALUES
(1, '2021-03-11 20:08:38', '', NULL, NULL, 1),
(1, '2021-03-11 20:08:47', 'test3', NULL, NULL, 1);
-- --------------------------------------------------------
--
-- Structure de la table `personal_circle`
--
CREATE TABLE `personal_circle` (
`id` int(11) NOT NULL,
`title` varchar(64) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- Structure de la table `public_circle`
--
CREATE TABLE `public_circle` (
`id` int(11) NOT NULL,
`title` varchar(64) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- Structure de la table `test`
--
CREATE TABLE `test` (
`test1` int(11) NOT NULL,
`test2` varchar(32) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Déchargement des données de la table `test`
--
INSERT INTO `test` (`test1`, `test2`) VALUES
(1, ' . my test .'),
(2, ''),
(3, 'test3'),
(4, '');
-- --------------------------------------------------------
--
-- Structure de la table `user`
--
CREATE TABLE `user` (
`id` int(11) NOT NULL,
`user_id` int(11) NOT NULL,
`first_name` varchar(32) NOT NULL,
`last_name` varchar(64) DEFAULT NULL,
`email_address` varchar(64) NOT NULL,
`password` varchar(255) NOT NULL,
`gender` enum('M','F','Other') DEFAULT NULL,
`language` enum('en','fr','vn') NOT NULL,
`birth` date DEFAULT NULL,
`geo_location` point DEFAULT NULL,
`picture` int(11) DEFAULT NULL,
`status` varchar(255) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- Structure de la table `visible_in`
--
CREATE TABLE `visible_in` (
`circle` int(11) NOT NULL,
`event` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Index pour les tables déchargées
--
--
-- Index pour la table `agenda`
--
ALTER TABLE `agenda`
ADD PRIMARY KEY (`owner`);
--
-- Index pour la table `chat`
--
ALTER TABLE `chat`
ADD PRIMARY KEY (`id`);
--
-- Index pour la table `event`
--
ALTER TABLE `event`
ADD PRIMARY KEY (`agenda`,`date`);
--
-- Index pour la table `file`
--
ALTER TABLE `file`
ADD PRIMARY KEY (`id`);
--
-- Index pour la table `heading`
--
ALTER TABLE `heading`
ADD PRIMARY KEY (`id`),
ADD KEY `author_id` (`author`),
ADD KEY `circle_id` (`public_circle`);
--
-- Index pour la table `message`
--
ALTER TABLE `message`
ADD PRIMARY KEY (`author`,`date`),
ADD KEY `chat_id` (`chat`);
--
-- Index pour la table `personal_circle`
--
ALTER TABLE `personal_circle`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `id` (`id`);
--
-- Index pour la table `public_circle`
--
ALTER TABLE `public_circle`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `id` (`id`);
--
-- Index pour la table `test`
--
ALTER TABLE `test`
ADD PRIMARY KEY (`test1`);
--
-- Index pour la table `user`
--
ALTER TABLE `user`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `user_id` (`user_id`);
--
-- AUTO_INCREMENT pour les tables déchargées
--
--
-- AUTO_INCREMENT pour la table `chat`
--
ALTER TABLE `chat`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT pour la table `file`
--
ALTER TABLE `file`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `heading`
--
ALTER TABLE `heading`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `message`
--
ALTER TABLE `message`
MODIFY `author` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT pour la table `test`
--
ALTER TABLE `test`
MODIFY `test1` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT pour la table `user`
--
ALTER TABLE `user`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- Contraintes pour les tables déchargées
--
--
-- Contraintes pour la table `heading`
--
ALTER TABLE `heading`
ADD CONSTRAINT `author_id` FOREIGN KEY (`author`) REFERENCES `user` (`id`),
ADD CONSTRAINT `circle_id` FOREIGN KEY (`public_circle`) REFERENCES `public_circle` (`id`);
COMMIT;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
<gh_stars>0
/*
Navicat Premium Data Transfer
Source Server : q1
Source Server Type : MySQL
Source Server Version : 50553
Source Host : localhost:3306
Source Schema : laravel
Target Server Type : MySQL
Target Server Version : 50553
File Encoding : 65001
Date: 25/01/2018 01:07:47
*/
SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;
-- ----------------------------
-- Table structure for blog_article
-- ----------------------------
DROP TABLE IF EXISTS `blog_article`;
CREATE TABLE `blog_article` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`article_title` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT '' COMMENT '//分类名称',
`article_name` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT '' COMMENT '//分类标题',
`article_description` text CHARACTER SET utf8 COLLATE utf8_general_ci COMMENT '//关键词',
`article_see` int(11) DEFAULT 0 COMMENT '//点击次数',
`article_or` varchar(11) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT '' COMMENT '//发布状态',
`article_order` tinyint(11) DEFAULT 0 COMMENT '//排序',
`article_fid` int(11) DEFAULT 0 COMMENT '//父级ID',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = MyISAM AUTO_INCREMENT = 12 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '//文章列表' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of blog_article
-- ----------------------------
INSERT INTO `blog_article` VALUES (1, '新闻', 'win问资讯', '新闻', 0, '取消', 0, 1);
INSERT INTO `blog_article` VALUES (2, '军事新闻1', '军事新闻', '军事新闻', 0, '取消', 1, 1);
INSERT INTO `blog_article` VALUES (8, '新闻', '新闻列表1', '新闻资讯', 0, '发布', 1, 0);
INSERT INTO `blog_article` VALUES (4, 'qqq', 'qq', 'qq', 0, '取消', 1, 1);
INSERT INTO `blog_article` VALUES (5, '1', '1', '1', 0, '隐藏', 1, 1);
INSERT INTO `blog_article` VALUES (6, '2123123', '3123', '312312', 0, '发布', 127, 1);
INSERT INTO `blog_article` VALUES (7, '132', '31', '132', 0, '发布', 0, 1);
INSERT INTO `blog_article` VALUES (9, '11', '11', '1', 0, '发布', 0, 0);
-- ----------------------------
-- Table structure for blog_picture
-- ----------------------------
DROP TABLE IF EXISTS `blog_picture`;
CREATE TABLE `blog_picture` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '//',
`pic_title` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '//归属导航',
`pic_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '//图片名称',
`pic_src` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '//图片上传名称',
`pic_url` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT '' COMMENT '//图片附带链接',
`pic_orders` int(11) DEFAULT 0 COMMENT '//图片排序',
`pic_or` varchar(11) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT '' COMMENT '//图片状态',
`fid` int(11) DEFAULT 0 COMMENT '//图片外键',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = MyISAM AUTO_INCREMENT = 22 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of blog_picture
-- ----------------------------
INSERT INTO `blog_picture` VALUES (20, '新闻', '11', '20171208080717433.JPG', '11', 0, '待审核...', 0);
INSERT INTO `blog_picture` VALUES (19, '新闻', '', '20171208074438102.JPG', '', 0, '待审核...', 0);
INSERT INTO `blog_picture` VALUES (21, '新闻', '111', '20171208084848972.jpg', '11', 1, '待审核...', 0);
INSERT INTO `blog_picture` VALUES (16, '新闻', '12312', '20171208074036324.JPG', '11', 0, '待审核...', 0);
-- ----------------------------
-- Table structure for blog_user
-- ----------------------------
DROP TABLE IF EXISTS `blog_user`;
CREATE TABLE `blog_user` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`username` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '//用户名',
`userpwd` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '//密码',
`mumber` varchar(11) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '//登陆次数',
`old_time` datetime DEFAULT NULL COMMENT '//上次登录时间',
`old_ip` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '//上次登录ip',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = MyISAM AUTO_INCREMENT = 4 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '//管理员' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of blog_user
-- ----------------------------
INSERT INTO `blog_user` VALUES (1, 'admin', '<KEY> NULL, NULL, NULL);
-- ----------------------------
-- Table structure for blog_writing
-- ----------------------------
DROP TABLE IF EXISTS `blog_writing`;
CREATE TABLE `blog_writing` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`title` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '//归属导航',
`name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '//文章标题',
`content` text CHARACTER SET utf8 COLLATE utf8_general_ci COMMENT '//文章内容',
`tal` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '//关键词',
`see` int(11) DEFAULT 0 COMMENT '//浏览量',
`author` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '//文章作者',
`orders` int(11) DEFAULT 0 COMMENT '//排序值',
`writing_or` varchar(11) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '//发布状态',
`fid` int(11) DEFAULT 0 COMMENT '//外键',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = MyISAM AUTO_INCREMENT = 27 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of blog_writing
-- ----------------------------
INSERT INTO `blog_writing` VALUES (2, '军事新闻1', '亚马逊军事新闻', '<p>军事热搜军事热搜军事热搜军事热搜军事热搜<img src=\"/ueditor/php/upload/image/20171204/1512381321.png\" title=\"1512381321.png\" alt=\"手机端title修改.png\"/></p>', '军事热搜', 0, '王哲', 3, '待审核...', 0);
INSERT INTO `blog_writing` VALUES (5, '新闻', '123', ' <p>123</p>', '13123', 0, '1', 3, '待审核...', 0);
INSERT INTO `blog_writing` VALUES (4, '新闻', '123', '<p>12312312</p>', '12', 0, '312', 123, '待审核...', 0);
INSERT INTO `blog_writing` VALUES (6, '新闻', '123', '<p>123</p>', '123', 0, '32123', 23, '待审核...', 0);
INSERT INTO `blog_writing` VALUES (7, '新闻', '123', '<p>123</p>', '3', 0, '13123', 131, '发布', 0);
INSERT INTO `blog_writing` VALUES (8, '新闻', '1231', ' <p>231312312</p>', '23', 0, '123123', 31, '待审核...', 0);
INSERT INTO `blog_writing` VALUES (9, '新闻', '1231', ' <p>231312312</p>', '23', 0, '123123', 31, '待审核...', 0);
INSERT INTO `blog_writing` VALUES (10, '新闻', '1231', ' <p>231312312</p>', '23', 0, '123123', 31, '待审核...', 0);
INSERT INTO `blog_writing` VALUES (11, '新闻', '123', '<p>1 3123123123</p>', '123', 0, '12313123', 123, '待审核...', 0);
INSERT INTO `blog_writing` VALUES (12, '新闻', '123', '<p>1 3123123123</p>', '123', 0, '12313123', 123, '待审核...', 0);
INSERT INTO `blog_writing` VALUES (13, '新闻', '123', '<p>1 3123123123</p>', '123', 0, '12313123', 123, '待审核...', 0);
INSERT INTO `blog_writing` VALUES (14, '新闻', '123', '<p>1 3123123123</p>', '123', 0, '12313123', 123, '待审核...', 0);
INSERT INTO `blog_writing` VALUES (15, '新闻', '123', '<p>1 3123123123</p>', '123', 0, '12313123', 123, '待审核...', 0);
INSERT INTO `blog_writing` VALUES (16, '新闻', '3', '<p>1231231</p>', '1231', 0, '23123123', 123, '待审核...', 0);
INSERT INTO `blog_writing` VALUES (17, '新闻', '3', '<p>1231231</p>', '1231', 0, '23123123', 123, '待审核...', 0);
INSERT INTO `blog_writing` VALUES (18, '新闻', '3', '<p>1231231</p>', '1231', 0, '23123123', 123, '待审核...', 0);
INSERT INTO `blog_writing` VALUES (19, '新闻', '3', '<p>1231231</p>', '1231', 0, '23123123', 123, '待审核...', 0);
INSERT INTO `blog_writing` VALUES (20, '新闻', '3', '<p>1231231</p>', '1231', 0, '23123123', 123, '待审核...', 0);
INSERT INTO `blog_writing` VALUES (21, '新闻', '3', '<p>1231231</p>', '1231', 0, '23123123', 123, '待审核...', 0);
INSERT INTO `blog_writing` VALUES (22, '新闻', '3', '<p>1231231</p>', '1231', 0, '23123123', 123, '待审核...', 0);
INSERT INTO `blog_writing` VALUES (23, '新闻', '3', '<p>1231231</p>', '1231', 0, '23123123', 123, '待审核...', 0);
INSERT INTO `blog_writing` VALUES (24, '新闻', '3', '<p>1231231</p>', '1231', 0, '23123123', 123, '待审核...', 0);
INSERT INTO `blog_writing` VALUES (25, '新闻', '3', '<p>1231231</p>', '1231', 0, '23123123', 123, '待审核...', 0);
INSERT INTO `blog_writing` VALUES (26, '新闻', '3', '<p>1231231</p>', '1231', 0, '23123123', 123, '待审核...', 0);
SET FOREIGN_KEY_CHECKS = 1;
|
SELECT COUNT(*)
FROM Countries AS c
LEFT JOIN MountainsCountries AS mc ON mc.CountryCode = c.CountryCode
WHERE mc.MountainId IS NULL
|
<gh_stars>0
-- phpMyAdmin SQL Dump
-- version 4.9.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Dec 26, 2019 at 07:41 PM
-- Server version: 10.4.8-MariaDB
-- PHP Version: 7.1.33
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: `dayclean`
--
-- --------------------------------------------------------
--
-- Table structure for table `detail_transaksi`
--
CREATE TABLE `detail_transaksi` (
`id_detail` int(11) NOT NULL,
`invoice` varchar(30) NOT NULL,
`id_treatment` int(11) NOT NULL,
`nama_treatment` varchar(30) NOT NULL,
`jumlah_sepatu` int(11) NOT NULL,
`total` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `detail_transaksi`
--
INSERT INTO `detail_transaksi` (`id_detail`, `invoice`, `id_treatment`, `nama_treatment`, `jumlah_sepatu`, `total`) VALUES
(53, 'TR251220190040', 1, 'Deep Clean', 1, 25000),
(54, 'TR251220190040', 2, 'Fast Clean', 1, 15000),
(61, 'TR251220190045', 1, 'Deep Clean', 1, 25000),
(62, 'TR251220190046', 1, 'Deep Clean', 3, 75000),
(63, 'TR251220190047', 1, 'Deep Clean', 1, 25000),
(64, 'TR251220190048', 1, 'Deep Clean', 1, 25000),
(65, 'TR251220190048', 1, 'Deep Clean', 1, 25000),
(66, 'TR251220190048', 1, 'Deep Clean', 1, 25000),
(78, 'TR261220190054', 1, 'Deep Clean', 2, 50000),
(88, 'TR261220190054', 2, 'Fast Clean', 3, 45000),
(95, 'TR181220190001', 1, 'Deep Clean', 1, 25000);
-- --------------------------------------------------------
--
-- Table structure for table `pegawai`
--
CREATE TABLE `pegawai` (
`id_pegawai` int(5) NOT NULL,
`nm_pegawai` varchar(50) NOT NULL,
`alamat_pegawai` varchar(50) NOT NULL,
`no_hp` varchar(13) NOT NULL,
`level` varchar(10) NOT NULL,
`username` varchar(16) NOT NULL,
`password` varchar(16) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `transaksi`
--
CREATE TABLE `transaksi` (
`id_transaksi` int(10) NOT NULL,
`invoice` varchar(30) NOT NULL,
`tanggal` date NOT NULL,
`nama_user` varchar(30) NOT NULL,
`no_hp` int(11) NOT NULL,
`alamat_user` varchar(30) NOT NULL,
`jumlah_sepatu` int(11) NOT NULL,
`status` text NOT NULL,
`total` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `transaksi`
--
INSERT INTO `transaksi` (`id_transaksi`, `invoice`, `tanggal`, `nama_user`, `no_hp`, `alamat_user`, `jumlah_sepatu`, `status`, `total`) VALUES
(13, 'TR181220190001', '2019-12-18', 'erwr', 231, 'err', 3, 'Belum', 75000),
(14, 'TR181220190014', '2019-12-18', 'erwr2', 231, 'err', 0, 'Belum', 0),
(15, 'TR181220190015', '2019-12-18', 'erwr2', 231, 'err', 0, 'Belum', 0),
(16, 'TR181220190016', '2019-12-18', 'erwr2', 231, 'err', 0, 'Belum', 0),
(17, 'TR181220190017', '2019-12-18', 'erwr2', 231, 'err', 0, 'Belum', 0),
(18, 'TR181220190018', '2019-12-18', 'erwr2', 231, 'err', 0, 'Belum', 0),
(19, 'TR181220190019', '2019-12-18', 'erwr2', 231, 'err', 0, 'Belum', 0),
(20, 'TR181220190020', '2019-12-18', 'erwr2', 231, 'err', 0, 'Belum', 0),
(21, 'TR181220190021', '2019-12-18', 'erwr2', 231, 'err', 0, 'Belum', 0),
(22, 'TR181220190022', '2019-12-18', 'erwr2', 231, 'err', 0, 'Belum', 0),
(23, 'TR181220190023', '2019-12-18', 'erwr2', 231, 'err', 0, 'Belum', 0),
(24, 'TR181220190024', '2019-12-18', 'erwr2', 231, 'err', 0, 'Belum', 0),
(25, 'TR181220190025', '2019-12-18', 'erwr2', 231, 'err', 0, 'Belum', 0),
(26, 'TR181220190026', '2019-12-18', 'erwr2', 231, 'err', 0, 'Belum', 0),
(27, 'TR181220190027', '2019-12-18', 'erwr2', 231, 'err', 0, 'Belum', 0),
(28, 'TR181220190028', '2019-12-18', 'erwr2', 231, 'err', 0, 'Belum', 0),
(29, 'TR181220190029', '2019-12-18', 'erwr2', 231, 'err', 0, 'Belum', 0),
(30, 'TR181220190030', '2019-12-18', 'erwr2', 231, 'err', 0, 'Belum', 0),
(31, 'TR241220190031', '2019-12-24', 'dsfs', 324, 'dsf', 5, 'Belum', 95000),
(32, 'TR241220190032', '2019-12-24', 'gg', 111, 'ggg', 2, 'Belum', 40000),
(33, 'TR241220190033', '2019-12-24', 'erwr2', 3, 'err', 6, 'Belum', 130000),
(34, 'TR251220190034', '2019-12-25', 'rererererere', 2121212, 'rerrerer', 0, 'Belum', 0),
(35, 'TR251220190034', '2019-12-25', 'rererererere', 2121212, 'rerrerer', 0, 'Belum', 0),
(36, 'TR251220190036', '2019-12-25', 'wewrwrwewewew', 1, 'wewewe', 0, 'Belum', 0),
(37, 'TR251220190037', '2019-12-25', 'erwr2', 1, '3223', 0, 'Belum', 0),
(38, 'TR251220190038', '2019-12-25', 'wewewr', 111, 'ewrewr', 0, 'Belum', 0),
(39, 'TR251220190039', '2019-12-25', 'ee', 222, 'er3erwr3w', 0, 'Belum', 0),
(40, 'TR251220190040', '2019-12-25', 'weeweweewewee', 2222, 'asdsd', 2, 'Belum', 40000),
(41, 'TR251220190040', '2019-12-25', 'weeweweewewee', 2222, 'asdsd', 2, 'Belum', 40000),
(42, 'TR251220190042', '2019-12-25', '324', 22, 'ewrwr', 0, 'Belum', 0),
(43, 'TR251220190043', '2019-12-25', '324', 22, 'asdsd', 0, 'Belum', 0),
(44, 'TR251220190044', '2019-12-25', 'erwr2', 2, 'err', 0, 'Belum', 0),
(45, 'TR251220190045', '2019-12-25', 'dsdsd', 2233, 'sdsd', 1, 'Belum', 25000),
(46, 'TR251220190046', '2019-12-25', 'dsdsd', 2233, 'sdsd', 3, 'Belum', 75000),
(47, 'TR251220190047', '2019-12-25', 'dsdsd', 2233, 'sdsd', 0, 'Belum', 0),
(48, 'TR251220190048', '2019-12-25', 'dsdsd', 2233, 'sdsd', 0, 'Belum', 0),
(49, 'TR251220190049', '2019-12-25', 'dsdsd', 2233, 'sdsd', 0, 'Belum', 0),
(50, 'TR251220190050', '2019-12-25', 'erwr2', 2, 'asdsd', 0, 'Belum', 0),
(51, 'TR251220190051', '2019-12-25', 'erwr2', 2, 'asdsd', 0, 'Belum', 0),
(52, 'TR251220190052', '2019-12-25', 'erwr2', 2, 'asdsd', 0, 'Belum', 0),
(53, 'TR251220190053', '2019-12-25', 'erwr2', 3, 'err', 0, 'Belum', 0),
(54, 'TR261220190054', '2019-12-26', '324', 112, 'err', 0, 'Belum', 0);
-- --------------------------------------------------------
--
-- Table structure for table `treatment`
--
CREATE TABLE `treatment` (
`id_treatment` int(3) NOT NULL,
`nama_treatment` varchar(15) NOT NULL,
`deskripsi` text NOT NULL,
`harga` int(8) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `treatment`
--
INSERT INTO `treatment` (`id_treatment`, `nama_treatment`, `deskripsi`, `harga`) VALUES
(1, 'Deep Clean', 'Pembersihan hingga ke insole sepatu', 25000),
(2, 'Fast Clean', 'Adalah treatment pembersihan secara cepat dan bersih hanya pada bagian MIDSOLE dan UPPER sepatu. Waktu pengerjaan maksimal 1-2 hari', 15000),
(3, 'Re-Glue', 'Adalah proses perbaikan sepatu bagian SOLE yang sudah rusak akbiat kegiatan sehari-hari dengan menggunakan lem khusus sepatu.', 20000);
--
-- Indexes for dumped tables
--
--
-- Indexes for table `detail_transaksi`
--
ALTER TABLE `detail_transaksi`
ADD PRIMARY KEY (`id_detail`);
--
-- Indexes for table `pegawai`
--
ALTER TABLE `pegawai`
ADD PRIMARY KEY (`id_pegawai`);
--
-- Indexes for table `transaksi`
--
ALTER TABLE `transaksi`
ADD PRIMARY KEY (`id_transaksi`);
--
-- Indexes for table `treatment`
--
ALTER TABLE `treatment`
ADD PRIMARY KEY (`id_treatment`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `detail_transaksi`
--
ALTER TABLE `detail_transaksi`
MODIFY `id_detail` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=96;
--
-- AUTO_INCREMENT for table `pegawai`
--
ALTER TABLE `pegawai`
MODIFY `id_pegawai` int(5) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `transaksi`
--
ALTER TABLE `transaksi`
MODIFY `id_transaksi` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=55;
--
-- AUTO_INCREMENT for table `treatment`
--
ALTER TABLE `treatment`
MODIFY `id_treatment` int(3) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
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 */;
|
DROP TABLE IF EXISTS meta;
CREATE TABLE meta (
key TEXT UNIQUE PRIMARY KEY,
value TEXT
);
INSERT INTO meta (key, value) VALUES ("version", "001");
DROP TABLE IF EXISTS syndicate;
CREATE TABLE syndicate (
id INTEGER PRIMARY KEY,
owner TEXT UNIQUE NOT NULL,
year INTEGER NOT NULL
);
DROP TABLE IF EXISTS user;
CREATE TABLE user (
crsid TEXT UNIQUE PRIMARY KEY,
forename TEXT,
surname TEXT NOT NULL,
year INTEGER NOT NULL,
syndicate INTEGER DEFAULT NULL,
formtoken TEXT NOT NULL,
has_filled INTEGER NOT NULL DEFAULT 0
);
DROP TABLE IF EXISTS syndicate_invitation;
CREATE TABLE syndicate_invitation (
id INTEGER PRIMARY KEY,
syndicate INTEGER NOT NULL,
recipient TEXT NOT NULL,
used INTEGER DEFAULT 0
);
DROP TABLE IF EXISTS log_message;
CREATE TABLE log_message (
id INTEGER PRIMARY KEY,
user TEXT NOT NULL,
time INTEGER NOT NULL,
message TEXT NOT NULL
);
DROP TABLE IF EXISTS mail_queue;
CREATE TABLE mail_queue (
id INTEGER PRIMARY KEY,
recipient TEXT NOT NULL,
subject TEXT NOT NULL,
body TEXT NOT NULL
);
DROP TABLE IF EXISTS form_payload;
CREATE TABLE form_payload (
id INTEGER PRIMARY KEY,
time INTEGER NOT NULL,
json TEXT NOT NULL
);
DROP TABLE IF EXISTS room;
CREATE TABLE room (
id INTEGER PRIMARY KEY,
shortname TEXT UNIQUE NOT NULL,
inhabitant TEXT DEFAULT NULL
);
DROP TABLE IF EXISTS review;
CREATE TABLE review (
id INTEGER PRIMARY KEY,
author TEXT NOT NULL,
room INTEGER NOT NULL,
layout_rating INTEGER NOT NULL,
facilities_rating INTEGER NOT NULL,
noise_rating INTEGER NOT NULL,
overall_rating INTEGER NOT NULL,
title TEXT NOT NULL,
body TEXT NOT NULL
);
|
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';
CREATE TABLE IF NOT EXISTS `departamentos` (
`id_departamento` INT(11) NOT NULL AUTO_INCREMENT ,
`departamento` VARCHAR(100) NULL DEFAULT NULL ,
`descripcion` VARCHAR(1000) NULL DEFAULT NULL ,
`codigo` VARCHAR(10) NULL DEFAULT NULL ,
PRIMARY KEY (`id_departamento`) ,
UNIQUE INDEX `departamento_UNIQUE` (`departamento` ASC) )
ENGINE = InnoDB
DEFAULT CHARACTER SET = utf8;
CREATE TABLE IF NOT EXISTS `aulas` (
`id_aula` INT(11) NOT NULL AUTO_INCREMENT ,
`aula` VARCHAR(100) NULL DEFAULT NULL ,
`descripcion` VARCHAR(1000) NULL DEFAULT NULL ,
`departamentos_id_departamento` INT(11) NOT NULL ,
PRIMARY KEY (`id_aula`) ,
UNIQUE INDEX `aula_UNIQUE` (`aula` ASC) ,
INDEX `fk_aulas_departamentos_idx` (`departamentos_id_departamento` ASC) ,
CONSTRAINT `fk_aulas_departamentos`
FOREIGN KEY (`departamentos_id_departamento` )
REFERENCES `departamentos` (`id_departamento` )
ON DELETE RESTRICT
ON UPDATE NO ACTION)
ENGINE = InnoDB
DEFAULT CHARACTER SET = utf8;
CREATE TABLE IF NOT EXISTS `proveedores` (
`id_proveedor` INT(11) NOT NULL AUTO_INCREMENT ,
`proveedor` VARCHAR(100) NULL DEFAULT NULL ,
`codigo` VARCHAR(10) NULL DEFAULT NULL ,
`descripcion` VARCHAR(200) NULL DEFAULT NULL ,
`material` VARCHAR(100) NULL DEFAULT NULL ,
`telefono` VARCHAR(50) NULL DEFAULT NULL ,
`movil` VARCHAR(10) NULL DEFAULT NULL ,
`fax` VARCHAR(50) NULL DEFAULT NULL ,
`nif` VARCHAR(10) NULL DEFAULT NULL ,
`email` VARCHAR(100) NULL DEFAULT NULL ,
`direccion` VARCHAR(200) NULL DEFAULT NULL ,
`localidad` VARCHAR(100) NULL DEFAULT NULL ,
`provincia` VARCHAR(100) NULL DEFAULT NULL ,
`cp` VARCHAR(10) NULL DEFAULT NULL ,
PRIMARY KEY (`id_proveedor`) ,
UNIQUE INDEX `proveedor_UNIQUE` (`proveedor` ASC) ,
UNIQUE INDEX `codigo_UNIQUE` (`codigo` ASC) ,
UNIQUE INDEX `nif_UNIQUE` (`nif` ASC) )
ENGINE = InnoDB
DEFAULT CHARACTER SET = utf8;
CREATE TABLE IF NOT EXISTS `tipos_materiales` (
`id_tipo` INT(11) NOT NULL AUTO_INCREMENT ,
`tipo` VARCHAR(100) NULL DEFAULT NULL ,
`mantenimiento` TINYINT(1) NULL DEFAULT NULL ,
PRIMARY KEY (`id_tipo`) ,
UNIQUE INDEX `tipo_UNIQUE` (`tipo` ASC) )
ENGINE = InnoDB
DEFAULT CHARACTER SET = utf8;
CREATE TABLE IF NOT EXISTS `inventario` (
`id_inventario` INT(11) NOT NULL AUTO_INCREMENT ,
`modelo` VARCHAR(100) NOT NULL ,
`codigo` VARCHAR(50) NULL DEFAULT NULL ,
`fecha_adquisicion` DATE NULL DEFAULT NULL ,
`aulas_id_aula` INT(11) NULL DEFAULT NULL ,
`puesto` INT(1) NULL ,
`tipos_id_tipo` INT(11) NOT NULL ,
`proveedores_id_proveedor` INT(11) NULL DEFAULT NULL ,
`estado` ENUM('En uso', 'Baja', 'Averiado') NULL DEFAULT NULL ,
`obs` VARCHAR(200) NULL DEFAULT NULL ,
`departamentos_id_departamento` INT(11) NOT NULL ,
PRIMARY KEY (`id_inventario`, `departamentos_id_departamento`) ,
UNIQUE INDEX `codigo_UNIQUE` (`codigo` ASC) ,
INDEX `fk_inventario_aulas1_idx` (`aulas_id_aula` ASC) ,
INDEX `fk_inventario_tipos1_idx` (`tipos_id_tipo` ASC) ,
INDEX `fk_inventario_proveedores1_idx` (`proveedores_id_proveedor` ASC) ,
INDEX `fk_inventario_departamentos1_idx` (`departamentos_id_departamento` ASC) ,
CONSTRAINT `fk_inventario_aulas1`
FOREIGN KEY (`aulas_id_aula` )
REFERENCES `aulas` (`id_aula` )
ON DELETE NO ACTION
ON UPDATE NO ACTION,
CONSTRAINT `fk_inventario_departamentos1`
FOREIGN KEY (`departamentos_id_departamento` )
REFERENCES `departamentos` (`id_departamento` )
ON DELETE NO ACTION
ON UPDATE NO ACTION,
CONSTRAINT `fk_inventario_proveedores1`
FOREIGN KEY (`proveedores_id_proveedor` )
REFERENCES `proveedores` (`id_proveedor` )
ON DELETE NO ACTION
ON UPDATE NO ACTION,
CONSTRAINT `fk_inventario_tipos1`
FOREIGN KEY (`tipos_id_tipo` )
REFERENCES `tipos_materiales` (`id_tipo` )
ON UPDATE CASCADE)
ENGINE = InnoDB
DEFAULT CHARACTER SET = utf8;
CREATE TABLE IF NOT EXISTS `usuarios` (
`id_usuario` INT(11) NOT NULL AUTO_INCREMENT ,
`nick` VARCHAR(202) NULL DEFAULT NULL ,
`password` VARCHAR(200) NULL DEFAULT NULL ,
`nombre` VARCHAR(100) NULL DEFAULT NULL ,
`apellido` VARCHAR(100) NULL DEFAULT NULL ,
`estado` TINYINT(1) NOT NULL DEFAULT 1 ,
`email` VARCHAR(100) NOT NULL ,
`departamentos_id_departamento` INT(11) NOT NULL ,
`perfil` tinyint(1) NOT NULL ,
`activacion` VARCHAR(100) NULL ,
PRIMARY KEY (`id_usuario`) ,
INDEX `fk_usuarios_departamentos1_idx` (`departamentos_id_departamento` ASC) ,
UNIQUE INDEX `email_UNIQUE` (`email` ASC) ,
CONSTRAINT `fk_usuarios_departamentos1`
FOREIGN KEY (`departamentos_id_departamento` )
REFERENCES `departamentos` (`id_departamento` )
ON DELETE RESTRICT
ON UPDATE NO ACTION,
CONSTRAINT `fk_usuarios_perfiles1`
FOREIGN KEY (`perfil` )
REFERENCES `perfiles` (`id` )
ON DELETE RESTRICT
ON UPDATE RESTRICT)
ENGINE = InnoDB
DEFAULT CHARACTER SET = utf8;
CREATE TABLE IF NOT EXISTS `incidencias` (
`id_incidencia` INT(11) NOT NULL AUTO_INCREMENT ,
`inventario_id_inventario` INT(11) NULL DEFAULT NULL ,
`causa` VARCHAR(100) NULL DEFAULT NULL ,
`descripcion` TEXT NULL DEFAULT NULL ,
`fecha_incidencia` DATE NULL DEFAULT NULL ,
`fecha_solucion` DATE NULL DEFAULT NULL ,
`estadoinc` ENUM('Abierta en Centro', 'Abierta en Proveedor', 'Cerrada') NULL DEFAULT NULL ,
`prioridad` ENUM('Media', 'Baja', 'Alta') NULL DEFAULT NULL ,
`responsable` INT(11) NOT NULL ,
`detectadapor` INT(11) NOT NULL ,
PRIMARY KEY (`id_incidencia`) ,
INDEX `fk_incidencias_inventario1_idx` (`inventario_id_inventario` ASC) ,
INDEX `fk_incidencias_usuarios1_idx` (`responsable` ASC) ,
INDEX `fk_incidencias_usuarios2_idx` (`detectadapor` ASC) ,
CONSTRAINT `fk_incidencias_inventario1`
FOREIGN KEY (`inventario_id_inventario` )
REFERENCES `inventario` (`id_inventario` )
ON DELETE CASCADE
ON UPDATE NO ACTION,
CONSTRAINT `fk_incidencias_usuarios1`
FOREIGN KEY (`responsable` )
REFERENCES `usuarios` (`id_usuario` )
ON DELETE NO ACTION
ON UPDATE NO ACTION,
CONSTRAINT `fk_incidencias_usuarios2`
FOREIGN KEY (`detectadapor` )
REFERENCES `usuarios` (`id_usuario` )
ON DELETE NO ACTION
ON UPDATE NO ACTION)
ENGINE = InnoDB
DEFAULT CHARACTER SET = utf8;
CREATE TABLE IF NOT EXISTS `incidencias_det` (
`id_incidencia_det` INT(11) NOT NULL AUTO_INCREMENT ,
`incidencias_id_incidencia` INT(11) NOT NULL ,
`fecha` DATE NULL DEFAULT NULL ,
`causa` VARCHAR(100) NULL ,
`descripcion_detalle` TEXT NULL DEFAULT NULL ,
`usuarios_id_usuario` INT(11) NOT NULL ,
`tipo` ENUM('Apertura', 'Cierre', 'Asignación', 'Reasignación', 'Actualización') NULL ,
`estadomat` ENUM('En uso', 'Baja', 'Averiado') NULL ,
PRIMARY KEY (`id_incidencia_det`) ,
INDEX `fk_incidencias_det_incidencias1_idx` (`incidencias_id_incidencia` ASC) ,
INDEX `fk_incidencias_det_usuarios1_idx` (`usuarios_id_usuario` ASC) ,
CONSTRAINT `fk_incidencias_det_incidencias1`
FOREIGN KEY (`incidencias_id_incidencia` )
REFERENCES `incidencias` (`id_incidencia` )
ON DELETE CASCADE
ON UPDATE NO ACTION,
CONSTRAINT `fk_incidencias_det_usuarios1`
FOREIGN KEY (`usuarios_id_usuario` )
REFERENCES `usuarios` (`id_usuario` )
ON DELETE RESTRICT
ON UPDATE NO ACTION)
ENGINE = InnoDB
DEFAULT CHARACTER SET = utf8;
CREATE TABLE IF NOT EXISTS `materiales_departamento` (
`id_materiales_departamento` INT(11) NOT NULL AUTO_INCREMENT ,
`tipos_materiales_id_tipo` INT(11) NOT NULL ,
`departamentos_id_departamento` INT(11) NOT NULL ,
PRIMARY KEY (`id_materiales_departamento`, `tipos_materiales_id_tipo`, `departamentos_id_departamento`) ,
INDEX `fk_materiales_departamento_tipos_materiales1_idx` (`tipos_materiales_id_tipo` ASC) ,
INDEX `fk_materiales_departamento_departamentos1_idx` (`departamentos_id_departamento` ASC) ,
CONSTRAINT `fk_materiales_departamento_departamentos1`
FOREIGN KEY (`departamentos_id_departamento` )
REFERENCES `departamentos` (`id_departamento` )
ON DELETE NO ACTION
ON UPDATE NO ACTION,
CONSTRAINT `fk_materiales_departamento_tipos_materiales1`
FOREIGN KEY (`tipos_materiales_id_tipo` )
REFERENCES `tipos_materiales` (`id_tipo` )
ON DELETE NO ACTION
ON UPDATE NO ACTION)
ENGINE = InnoDB
DEFAULT CHARACTER SET = utf8;
CREATE TABLE IF NOT EXISTS `proveedores_departamento` (
`id_prov_depto` INT(11) NOT NULL ,
`departamentos_id_departamento` INT(11) NOT NULL ,
`proveedores_id_proveedor` INT(11) NOT NULL ,
PRIMARY KEY (`id_prov_depto`, `departamentos_id_departamento`, `proveedores_id_proveedor`) ,
INDEX `fk_proveedores_departamento_departamentos1_idx` (`departamentos_id_departamento` ASC) ,
INDEX `fk_proveedores_departamento_proveedores1_idx` (`proveedores_id_proveedor` ASC) ,
CONSTRAINT `fk_proveedores_departamento_departamentos1`
FOREIGN KEY (`departamentos_id_departamento` )
REFERENCES `departamentos` (`id_departamento` )
ON DELETE CASCADE
ON UPDATE NO ACTION,
CONSTRAINT `fk_proveedores_departamento_proveedores1`
FOREIGN KEY (`proveedores_id_proveedor` )
REFERENCES `proveedores` (`id_proveedor` )
ON DELETE CASCADE
ON UPDATE NO ACTION)
ENGINE = InnoDB
DEFAULT CHARACTER SET = utf8;
CREATE TABLE IF NOT EXISTS `usuarios_aulas` (
`aulas_id_aula` INT(11) NOT NULL ,
`usuarios_id_usuario` INT(11) NOT NULL ,
`responsable` TINYINT(1) NULL DEFAULT NULL ,
INDEX `fk_mantenimientos_aulas1_idx` (`aulas_id_aula` ASC) ,
INDEX `fk_mantenimientos_usuarios1_idx` (`usuarios_id_usuario` ASC) ,
PRIMARY KEY (`aulas_id_aula`, `usuarios_id_usuario`) ,
CONSTRAINT `fk_mantenimientos_aulas1`
FOREIGN KEY (`aulas_id_aula` )
REFERENCES `aulas` (`id_aula` )
ON DELETE CASCADE
ON UPDATE NO ACTION,
CONSTRAINT `fk_mantenimientos_usuarios1`
FOREIGN KEY (`usuarios_id_usuario` )
REFERENCES `usuarios` (`id_usuario` )
ON DELETE CASCADE
ON UPDATE NO ACTION)
ENGINE = InnoDB
DEFAULT CHARACTER SET = utf8;
CREATE TABLE IF NOT EXISTS `mensajes` (
`id_mensaje` INT NOT NULL AUTO_INCREMENT ,
`usuarios_id_usuario` INT NOT NULL ,
`asunto` VARCHAR(100) NOT NULL ,
`mensaje` TEXT NOT NULL ,
`destino` VARCHAR(100) NOT NULL ,
`fecha` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ,
PRIMARY KEY (`id_mensaje`) ,
INDEX `fk_mensajes_usuarios1_idx` (`usuarios_id_usuario` ASC) ,
CONSTRAINT `fk_mensajes_usuarios1`
FOREIGN KEY (`usuarios_id_usuario` )
REFERENCES `usuarios` (`id_usuario` )
ON DELETE CASCADE
ON UPDATE NO ACTION)
ENGINE = InnoDB;
CREATE TABLE IF NOT EXISTS `mantenimientos` (
`id_mantenimiento` INT(11) NOT NULL AUTO_INCREMENT ,
`causa` VARCHAR(100) NULL DEFAULT NULL ,
`descripcion` TEXT NULL DEFAULT NULL ,
`fecha_mantenimiento` DATE NULL DEFAULT NULL ,
`fecha_solucion` DATE NULL DEFAULT NULL ,
`estadoman` ENUM('Abierto', 'Concluido') NULL DEFAULT NULL ,
`prioridad` ENUM('Media', 'Baja', 'Alta') NULL DEFAULT NULL ,
`responsable` INT(11) NOT NULL ,
`detectadapor` INT(11) NOT NULL ,
`aulas_id_aula` INT(11) NOT NULL ,
PRIMARY KEY (`id_mantenimiento`) ,
INDEX `fk_incidencias_usuarios1_idx` (`responsable` ASC) ,
INDEX `fk_incidencias_usuarios2_idx` (`detectadapor` ASC) ,
INDEX `fk_mantenimientos_aulas2_idx` (`aulas_id_aula` ASC) ,
CONSTRAINT `fk_incidencias_usuarios10`
FOREIGN KEY (`responsable` )
REFERENCES `usuarios` (`id_usuario` )
ON DELETE NO ACTION
ON UPDATE NO ACTION,
CONSTRAINT `fk_incidencias_usuarios20`
FOREIGN KEY (`detectadapor` )
REFERENCES `usuarios` (`id_usuario` )
ON DELETE NO ACTION
ON UPDATE NO ACTION,
CONSTRAINT `fk_mantenimientos_aulas2`
FOREIGN KEY (`aulas_id_aula` )
REFERENCES `aulas` (`id_aula` )
ON DELETE NO ACTION
ON UPDATE NO ACTION)
ENGINE = InnoDB
DEFAULT CHARACTER SET = utf8;
CREATE TABLE IF NOT EXISTS `mantenimientos_det` (
`id_mantenimiento_det` INT(11) NOT NULL AUTO_INCREMENT ,
`inventario_id_inventario` INT(11) NOT NULL ,
`mantenimientos_id_mantenimiento` INT(11) NOT NULL ,
PRIMARY KEY (`id_mantenimiento_det`) ,
INDEX `fk_mantenimientos_det_inventario1_idx` (`inventario_id_inventario` ASC) ,
INDEX `fk_mantenimientos_det_mantenimientos1_idx` (`mantenimientos_id_mantenimiento` ASC) ,
CONSTRAINT `fk_mantenimientos_det_inventario1`
FOREIGN KEY (`inventario_id_inventario` )
REFERENCES `inventario` (`id_inventario` )
ON DELETE CASCADE
ON UPDATE NO ACTION,
CONSTRAINT `fk_mantenimientos_det_mantenimientos1`
FOREIGN KEY (`mantenimientos_id_mantenimiento` )
REFERENCES `mantenimientos` (`id_mantenimiento` )
ON DELETE CASCADE
ON UPDATE NO ACTION)
ENGINE = InnoDB
DEFAULT CHARACTER SET = utf8;
CREATE TABLE `perfiles` (
`id` tinyint(1) NOT NULL AUTO_INCREMENT,
`perfil` varchar(20) DEFAULT NULL,
PRIMARY KEY (`id`)
);
CREATE TABLE `acl` (
`id` int(10) NOT NULL AUTO_INCREMENT,
`controller` varchar(100) NOT NULL,
`action` varchar(100) DEFAULT NULL,
`nombre` varchar(100) DEFAULT 'Regla nueva, sin definir',
`descripcion` varchar(200) DEFAULT NULL,
`visible` boolean default true,
PRIMARY KEY (`id`),
UNIQUE KEY `controller` (`controller`,`action`)
);
CREATE TABLE `acl_to_perfiles` (
`id` int(10) NOT NULL AUTO_INCREMENT,
`acl_id` int(10) NOT NULL,
`perfil_id` tinyint(10) NOT NULL,
PRIMARY KEY (`id`),
KEY `acl_id` (`acl_id`),
KEY `perfil_id` (`perfil_id`),
CONSTRAINT `acl_to_perfiles_ibfk_1` FOREIGN KEY (`acl_id`)
REFERENCES `acl` (`id`) ON DELETE CASCADE,
CONSTRAINT `acl_to_perfiles_ibfk_2` FOREIGN KEY (`perfil_id`)
REFERENCES `perfiles` (`id`) ON DELETE CASCADE
);
CREATE TABLE IF NOT EXISTS `incidenciasfungibles` (
`id_incidencia` int(11) NOT NULL AUTO_INCREMENT,
`aulas_id_aula` int(11) DEFAULT NULL,
`causa` varchar(100) DEFAULT NULL,
`descripcion` text,
`fecha_incidencia` date DEFAULT NULL,
`fecha_solucion` date DEFAULT NULL,
`estadoinc` enum('Abierta en Centro','Abierta en Proveedor','Cerrada') DEFAULT NULL,
`prioridad` enum('Media','Baja','Alta') DEFAULT NULL,
`responsable` int(11) NOT NULL,
`detectadapor` int(11) NOT NULL,
PRIMARY KEY (`id_incidencia`),
KEY `fk_incidenciasfungibles_aulas_idx` (`aulas_id_aula`),
KEY `fk_incidenciasfungibles_usuarios1_idx` (`responsable`),
KEY `fk_incidenciasfungibles_usuarios2_idx` (`detectadapor`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
ALTER TABLE `incidenciasfungibles`
ADD CONSTRAINT `fk_incidenciasfungibles_aula` FOREIGN KEY (`aulas_id_aula`) REFERENCES `aulas` (`id_aula`) ON DELETE CASCADE ON UPDATE NO ACTION,
ADD CONSTRAINT `fk_incidenciasfungibles_usuarios1` FOREIGN KEY (`responsable`) REFERENCES `usuarios` (`id_usuario`) ON DELETE NO ACTION ON UPDATE NO ACTION,
ADD CONSTRAINT `fk_incidenciasfungibles_usuarios2` FOREIGN KEY (`detectadapor`) REFERENCES `usuarios` (`id_usuario`) ON DELETE NO ACTION ON UPDATE NO ACTION;
CREATE TABLE IF NOT EXISTS `incidenciasfungibles_det` (
`id_incidencia_det` int(11) NOT NULL AUTO_INCREMENT,
`incidencias_id_incidencia` int(11) NOT NULL,
`fecha` date DEFAULT NULL,
`causa` varchar(100) DEFAULT NULL,
`descripcion_detalle` text,
`usuarios_id_usuario` int(11) NOT NULL,
`tipo` enum('Apertura','Cierre','Asignación','Reasignación','Actualización') DEFAULT NULL,
PRIMARY KEY (`id_incidencia_det`),
KEY `fk_incidenciasfungibles_det_incidencias_idx` (`incidencias_id_incidencia`),
KEY `fk_incidenciasfungibles_det_usuarios1_idx` (`usuarios_id_usuario`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
ALTER TABLE `incidenciasfungibles_det`
ADD CONSTRAINT `fk_incidenciasfungibles_det_incidencias1` FOREIGN KEY (`incidencias_id_incidencia`) REFERENCES `incidenciasfungibles` (`id_incidencia`) ON DELETE CASCADE ON UPDATE NO ACTION,
ADD CONSTRAINT `fk_incidenciasfungibles_det_usuarios1` FOREIGN KEY (`usuarios_id_usuario`) REFERENCES `usuarios` (`id_usuario`) ON UPDATE NO ACTION;
CREATE OR REPLACE VIEW vaula
AS
SELECT
id_aula, aula, aulas.descripcion as descripcion, aulas.departamentos_id_departamento as id_departamento, departamento,
group_concat(usuarios_id_usuario) as id_usuarios,
concat('<ul><li>',group_concat(CONCAT(nombre, ' ', apellido) order by apellido separator '</li><li>'),'</li></ul>') as responsables
FROM
aulas
left join departamentos on departamentos.id_departamento=aulas.departamentos_id_departamento
left join usuarios_aulas on aulas.id_aula=usuarios_aulas.aulas_id_aula and responsable=true
left join usuarios on usuarios.id_usuario= usuarios_aulas.usuarios_id_usuario
group by id_aula;
CREATE OR REPLACE VIEW vinventario
AS
SELECT
id_inventario, modelo, inventario.codigo as codigo, fecha_adquisicion, inventario.aulas_id_aula, aula, puesto, tipos_id_tipo,
tipo, proveedores_id_proveedor as id_proveedor, proveedor, inventario.estado,
obs, inventario.departamentos_id_departamento as id_departamento, departamento,
concat('<ul><li>',group_concat(CONCAT(nombre, ' ', apellido) order by apellido separator '</li><li>'),'</li></ul>') as responsables
FROM
inventario
left join departamentos on departamentos.id_departamento=inventario.departamentos_id_departamento
left join tipos_materiales on tipos_materiales.id_tipo=inventario.tipos_id_tipo
left join proveedores on proveedores.id_proveedor=inventario.proveedores_id_proveedor
left join aulas on aulas.id_aula=inventario.aulas_id_aula
left join usuarios_aulas on aulas.id_aula=usuarios_aulas.aulas_id_aula and responsable=true
left join usuarios on usuarios.id_usuario= usuarios_aulas.usuarios_id_usuario
group by id_inventario, id_aula;
CREATE OR REPLACE VIEW vproveedores
AS
SELECT
id_proveedor, proveedor, proveedores.codigo as codigo, proveedores.descripcion as descripcion, material, telefono, movil, fax, nif, email, direccion, localidad, provincia, cp,
group_concat(id_departamento order by departamento ASC SEPARATOR ',') as id_departamento,
concat('<ul><li>',group_concat(departamento order by departamento separator '</li><li>'),'</li></ul>') as departamentos
FROM
proveedores
left join proveedores_departamento on proveedores.id_proveedor=proveedores_departamento.proveedores_id_proveedor
left join departamentos on departamentos.id_departamento=proveedores_departamento.departamentos_id_departamento
group by id_proveedor;
CREATE OR REPLACE VIEW vusuarios
AS
SELECT
id_usuario, CONCAT(nombre, ' ', apellido) as nombrecompleto, nombre, apellido, estado, email, usuarios.departamentos_id_departamento, departamento, perfiles.id as id_perfil, perfiles.perfil as perfil, group_concat(id_aula) as id_aulas,
concat('<ul><li>',group_concat(aulas.aula order by aulas.aula separator '</li><li>'),'</li></ul>') as aulas
FROM
usuarios
left join departamentos on departamentos.id_departamento=usuarios.departamentos_id_departamento
left join usuarios_aulas on usuarios.id_usuario=usuarios_aulas.usuarios_id_usuario
left join aulas on aulas.id_aula = usuarios_aulas.aulas_id_aula
left join perfiles on usuarios.perfil = perfiles.id
group by usuarios.id_usuario;
CREATE OR REPLACE VIEW vincidencias
AS
SELECT
id_incidencia, id_inventario, modelo, inventario.codigo as codigo, fecha_adquisicion, puesto, proveedor, responsable, CONCAT(nombre, ' ', apellido) as nombrecompleto, incidencias.estadoinc as estado, departamentos.id_departamento as id_departamento, departamento, aulas_id_aula, aula,
causa, incidencias.descripcion as descripcion, fecha_incidencia, fecha_solucion, prioridad, tipo
FROM
incidencias
left join inventario on incidencias.inventario_id_inventario=inventario.id_inventario
left join proveedores on inventario.proveedores_id_proveedor=proveedores.id_proveedor
left join usuarios on usuarios.id_usuario=incidencias.responsable
left join aulas on aulas.id_aula=inventario.aulas_id_aula
left join departamentos on inventario.departamentos_id_departamento=departamentos.id_departamento
join tipos_materiales on tipos_materiales.id_tipo=inventario.tipos_id_tipo;
CREATE OR REPLACE VIEW vincidencias_usuarios
AS
SELECT
id_incidencia_det, incidencias_id_incidencia, fecha, causa, descripcion_detalle, usuarios_id_usuario, tipo, CONCAT(nombre, ' ', apellido) as nombrecompleto, estadomat
FROM
incidencias_det
join usuarios on usuarios.id_usuario=incidencias_det.usuarios_id_usuario;
CREATE OR REPLACE VIEW vmantenimientos
AS
SELECT
id_mantenimiento, causa, mantenimientos.descripcion, fecha_mantenimiento, fecha_solucion, estadoman, prioridad, responsable, detectadapor,
CONCAT(nombre, ' ', apellido) as nombrecompleto, id_departamento, departamento, aulas_id_aula, aula
FROM
mantenimientos
left join usuarios on usuarios.id_usuario=mantenimientos.responsable
left join aulas on aulas.id_aula=mantenimientos.aulas_id_aula
left join departamentos on aulas.departamentos_id_departamento=departamentos.id_departamento;
CREATE OR REPLACE VIEW `vhistorial` AS
select id_incidencia, "Incidencia" as tipo, fecha_incidencia, inventario_id_inventario, causa, descripcion, estadoinc, CONCAT(nombre, ' ', apellido) as responsable from
incidencias, usuarios where responsable=id_usuario
UNION
select id_mantenimiento, "Mantenimiento", fecha_mantenimiento, inventario_id_inventario, causa, descripcion, estadoman, CONCAT(nombre, ' ', apellido) as responsable from
mantenimientos, usuarios, mantenimientos_det where responsable=id_usuario and mantenimientos_id_mantenimiento=id_mantenimiento
;
CREATE OR REPLACE VIEW vpermisos AS
select acl.controller, acl.action, acl.nombre, acl.descripcion, acl.visible, acl.id as acl_id, acl_to_perfiles.perfil_id as perfil_id, perfil,
acl_to_perfiles.id as regla_id from acl
join acl_to_perfiles on acl_to_perfiles.acl_id=acl.id
join perfiles on perfiles.id=acl_to_perfiles.perfil_id
UNION
select acl.controller, acl.action, acl.nombre, acl.descripcion, acl.visible, acl.id as acl_id, perfiles.id, perfil,
null
from
acl, perfiles
where concat (acl.controller, acl.action, perfiles.id) not in (select concat(acl.controller, acl.action, acl_to_perfiles.perfil_id) from acl join acl_to_perfiles on acl_to_perfiles.acl_id=acl.id
join perfiles on perfiles.id=acl_to_perfiles.perfil_id)
order by perfil, controller;
CREATE OR REPLACE VIEW vincidenciasfungibles_usuarios
AS
SELECT
id_incidencia_det, incidencias_id_incidencia, fecha, causa, descripcion_detalle, usuarios_id_usuario, tipo, CONCAT(nombre, ' ', apellido) as nombrecompleto
FROM
incidenciasfungibles_det
join usuarios on usuarios.id_usuario=incidenciasfungibles_det.usuarios_id_usuario;
CREATE VIEW vincidenciasfungibles
AS
SELECT
id_incidencia, responsable, CONCAT(nombre, ' ', apellido) as nombrecompleto, incidenciasfungibles.estadoinc as estado, departamentos.id_departamento as id_departamento, departamento, aulas_id_aula, aula,
causa, incidenciasfungibles.descripcion as descripcion, fecha_incidencia, fecha_solucion, prioridad
FROM
incidenciasfungibles
left join usuarios on usuarios.id_usuario=incidenciasfungibles.responsable
left join aulas on aulas.id_aula=incidenciasfungibles.aulas_id_aula
left join departamentos on aulas.departamentos_id_departamento=departamentos.id_departamento;
SET SQL_MODE=@OLD_SQL_MODE;
SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS;
SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS;
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
-- Insertamos los mínimos datos necesarios--:
INSERT INTO perfiles (id, perfil) VALUES (1, 'Profesor');
INSERT INTO perfiles (id, perfil) VALUES (2, 'Jefe de Departamento');
INSERT INTO perfiles (id, perfil) VALUES (3, 'Secretario');
INSERT INTO perfiles (id, perfil) VALUES (4, 'Jefe de Estudios');
INSERT INTO perfiles (id, perfil) VALUES (5, 'Director');
INSERT INTO `acl` (`id`, `controller`, `action`, `nombre`, `descripcion`, `visible`) VALUES
(1, 'aulas', 'index', 'Configuración Aulas', 'Listado de aulas', 1),
(2, 'aulas', 'borrar', 'Configuración Aulas', 'Borrado de aulas', 1),
(3, 'aulas', 'guardar', 'Configuración Aulas', 'Crear nuevas aulas o modificar existentes.', 1),
(4, 'aulas', 'getresponsables', 'Configuración Aulas', 'Aulas: Obtener responsables de aula. Necesario para incidencias y mantenimientos.', 0),
(5, 'aulas', 'getprofesores', 'Configuración Aulas', 'Aulas: Obtener profesores del aula. Necesario para dar de alta incidencias y mantenimientos.', 0),
(6, 'departamentos', 'index', 'Configuración Departamentos', 'Listado de departamentos', 1),
(7, 'departamentos', 'borrar', 'Configuración Departamentos', 'Borrado de departamentos', 1),
(8, 'departamentos', 'guardar', 'Configuración Departamentos', 'Crear nuevos departamentos o modificar existentes', 1),
(9, 'departamentos', 'getprofesores', 'Configuración Departamentos', 'Departamentos: obtener listado de profesores del departamento. Necesario para incidencias y mantenimientos', 0),
(10, 'departamentos', 'getjefedepartamento', 'Configuración Departamentos', 'Departamentos: obtener jefe del departamento. Necesario para incidencias y mantenimientos', 0),
(11, 'incidencias', 'index', 'Incidencias Equipos', 'Listado de incidencias del material del inventario', 1),
(12, 'incidencias', 'borrar', 'Incidencias Equipos', 'Borrar incidencias de material del inventario', 1),
(13, 'incidencias', 'editar', 'Incidencias Equipos', 'Editar incidencia de material del inventario. Necesario para el permiso de Guardar nuevas incidencias.', 1),
(14, 'incidencias', 'editardet', 'Incidencias Equipos', 'Ver el detalle de una incidencia de material del inventario', 1),
(15, 'incidencias', 'guardar', 'Incidencias Equipos', 'Guardar nuevas incidencias de material del inventario', 1),
(16, 'incidencias', 'guardardet', 'Incidencias Equipos', 'Modificar incidencia de material del inventario: reasignarla, cambiar su estado o cerrarla', 1),
(17, 'index', 'index', 'Inicio', 'Inicio: Acceso a la pantalla inicial de la aplicación. Necesario siempre', 0),
(18, 'inventario', 'index', 'Inventario', 'Listado de inventario', 1),
(19, 'inventario', 'historial', 'Inventario', 'Ver historial de incidencias y mantenimientos del material del inventario. Necesita permisos de Inventario: Listado de Inventario', 1),
(20, 'inventario', 'borrar', 'Inventario', 'Borrar materiales del inventario', 1),
(21, 'inventario', 'guardar', 'Inventario', 'Crear nuevos materiales o modificar existentes del inventario', 1),
(22, 'inventario', 'obtenercodigo', 'Inventario', 'Obtener código para material del inventario', 1),
(23, 'mantenimientos', 'index', 'Mantenimientos', 'Listado de mantenimientos', 1),
(24, 'mantenimientos', 'borrar', 'Mantenimientos', 'Borrar mantenimientos', 1),
(25, 'mantenimientos', 'editar', 'Mantenimientos', 'Editar mantenimientos', 1),
(26, 'mantenimientos', 'guardar', 'Mantenimientos', 'Crear nuevo mantenimiento o modificar existentes', 1),
(27, 'materiales', 'index', 'Configuración Tipos de Materiales', 'Listado de tipos de materiales', 1),
(28, 'materiales', 'borrar', 'Configuración Tipos de Materiales', 'Borrado de tipos de materiales', 1),
(29, 'materiales', 'guardar', 'Configuración Tipos de Materiales', 'Crear nuevos tipos de materiales o modificar existentes', 1),
(30, 'permisos', 'index', 'Configuración Permisos', 'Listado de permisos por usuario.', 1),
(31, 'permisos', 'borrar', 'Configuración Permisos', 'Eliminar permisos a usuarios', 1),
(32, 'permisos', 'guardar', 'Configuración Permisos', 'Añadir permisos a usuarios', 1),
(33, 'proveedores', 'index', 'Configuración Proveedores', 'Listado de proveedores', 1),
(34, 'proveedores', 'borrar', 'Configuración Proveedores', 'Borrado de proveedores', 1),
(35, 'proveedores', 'guardar', 'Configuración Proveedores', 'Crear nuevos proveedores o modificar existentes', 1),
(36, 'usuarios', 'index', 'Configuración Usuarios', 'Listado de usuarios ', 1),
(37, 'usuarios', 'borrar', 'Configuración Usuarios', 'Borrado de usuarios', 1),
(38, 'usuarios', 'cambiarestado', 'Configuración Usuarios', 'Activar o desactivar el acceso de un usuario a la aplicación', 1),
(39, 'usuarios', 'guardar', 'Configuración Usuarios', 'Crear nuevo usuario o modificar existente', 1),
(40, 'usuarios', 'preactivar', 'Configuración', 'No es necesario configurarlo', 0),
(41, 'usuarios', 'activar', 'Configuración', 'No es necesario configurarlo', 0),
(42, 'usuarios', 'login', 'Configuración', 'No es necesario configurarlo', 0),
(43, 'usuarios', 'logout', 'Configuración', 'Usuarios: cerrar sesión. ¡Deberían tener permiso siempre!', 0),
(44, 'incidenciasfungibles', 'index', 'Incidencias fungible', 'Listado de incidencias de material fungible', 1),
(45, 'incidenciasfungibles', 'borrar', 'Incidencias fungible', 'Borrar incidencias de material fungible', 1),
(46, 'incidenciasfungibles', 'editar', 'Incidencias fungible', 'Editar incidencia de material fungible. Necesario para el permiso de Guardar nuevas incidencias.', 1),
(47, 'incidenciasfungibles', 'editardet', 'Incidencias fungible', 'Ver el detalle de una incidencia de material fungible', 1),
(48, 'incidenciasfungibles', 'guardar', 'Incidencias fungible', 'Guardar nuevas incidencias de material fungible', 1),
(49, 'incidenciasfungibles', 'guardardet', 'Incidencias fungible', 'Modificar incidencia de material fungible: reasignarla, cambiar su estado o cerrarla', 1),
(50, 'compras', 'index', 'Regla nueva, sin definir', NULL, 1);
INSERT INTO `acl_to_perfiles` (`id`, `acl_id`, `perfil_id`) VALUES
(4, 4, 1),
(5, 5, 1),
(9, 9, 1),
(10, 10, 1),
(11, 11, 1),
(12, 12, 1),
(13, 13, 1),
(14, 14, 1),
(15, 15, 1),
(16, 16, 1),
(17, 17, 1),
(18, 18, 1),
(19, 19, 1),
(22, 22, 1),
(23, 23, 1),
(24, 24, 1),
(25, 25, 1),
(26, 26, 1),
(40, 40, 1),
(41, 41, 1),
(42, 42, 1),
(43, 43, 1),
(44, 44, 1),
(45, 45, 1),
(46, 46, 1),
(47, 47, 1),
(48, 48, 1),
(49, 49, 1),
(50, 1, 2),
(51, 2, 2),
(52, 3, 2),
(53, 4, 2),
(54, 5, 2),
(58, 9, 2),
(59, 10, 2),
(60, 11, 2),
(61, 12, 2),
(62, 13, 2),
(63, 14, 2),
(64, 15, 2),
(65, 16, 2),
(66, 17, 2),
(67, 18, 2),
(68, 19, 2),
(69, 20, 2),
(70, 21, 2),
(71, 22, 2),
(72, 23, 2),
(73, 24, 2),
(74, 25, 2),
(75, 26, 2),
(85, 36, 2),
(86, 37, 2),
(87, 38, 2),
(88, 39, 2),
(89, 40, 2),
(90, 41, 2),
(91, 42, 2),
(92, 43, 2),
(93, 44, 2),
(94, 45, 2),
(95, 46, 2),
(96, 47, 2),
(97, 48, 2),
(98, 49, 2),
(99, 1, 3),
(100, 2, 3),
(101, 3, 3),
(102, 4, 3),
(103, 5, 3),
(104, 6, 3),
(105, 7, 3),
(106, 8, 3),
(107, 9, 3),
(108, 10, 3),
(109, 11, 3),
(110, 12, 3),
(111, 13, 3),
(112, 14, 3),
(113, 15, 3),
(114, 16, 3),
(115, 17, 3),
(116, 18, 3),
(117, 19, 3),
(118, 20, 3),
(119, 21, 3),
(120, 22, 3),
(121, 23, 3),
(122, 24, 3),
(123, 25, 3),
(124, 26, 3),
(125, 27, 3),
(126, 28, 3),
(127, 29, 3),
(128, 30, 3),
(129, 31, 3),
(130, 32, 3),
(131, 33, 3),
(132, 34, 3),
(133, 35, 3),
(134, 36, 3),
(135, 37, 3),
(136, 38, 3),
(137, 39, 3),
(138, 40, 3),
(139, 41, 3),
(140, 42, 3),
(141, 43, 3),
(142, 44, 3),
(143, 45, 3),
(144, 46, 3),
(145, 47, 3),
(146, 48, 3),
(147, 49, 3),
(148, 1, 4),
(149, 2, 4),
(150, 3, 4),
(151, 4, 4),
(152, 5, 4),
(153, 6, 4),
(154, 7, 4),
(155, 8, 4),
(156, 9, 4),
(157, 10, 4),
(158, 11, 4),
(159, 12, 4),
(160, 13, 4),
(161, 14, 4),
(162, 15, 4),
(163, 16, 4),
(164, 17, 4),
(165, 18, 4),
(166, 19, 4),
(167, 20, 4),
(168, 21, 4),
(169, 22, 4),
(170, 23, 4),
(171, 24, 4),
(172, 25, 4),
(173, 26, 4),
(174, 27, 4),
(175, 28, 4),
(176, 29, 4),
(177, 30, 4),
(178, 31, 4),
(179, 32, 4),
(180, 33, 4),
(181, 34, 4),
(182, 35, 4),
(183, 36, 4),
(184, 37, 4),
(185, 38, 4),
(186, 39, 4),
(187, 40, 4),
(188, 41, 4),
(189, 42, 4),
(190, 43, 4),
(191, 44, 4),
(192, 45, 4),
(193, 46, 4),
(194, 47, 4),
(195, 48, 4),
(196, 49, 4),
(197, 1, 5),
(198, 2, 5),
(199, 3, 5),
(200, 4, 5),
(201, 5, 5),
(202, 6, 5),
(203, 7, 5),
(204, 8, 5),
(205, 9, 5),
(206, 10, 5),
(207, 11, 5),
(208, 12, 5),
(209, 13, 5),
(210, 14, 5),
(211, 15, 5),
(212, 16, 5),
(213, 17, 5),
(214, 18, 5),
(215, 19, 5),
(216, 20, 5),
(217, 21, 5),
(218, 22, 5),
(219, 23, 5),
(220, 24, 5),
(221, 25, 5),
(222, 26, 5),
(223, 27, 5),
(224, 28, 5),
(225, 29, 5),
(226, 30, 5),
(227, 31, 5),
(228, 32, 5),
(229, 33, 5),
(230, 34, 5),
(231, 35, 5),
(232, 36, 5),
(233, 37, 5),
(234, 38, 5),
(235, 39, 5),
(236, 40, 5),
(237, 41, 5),
(238, 42, 5),
(239, 43, 5),
(240, 44, 5),
(241, 45, 5),
(242, 46, 5),
(243, 47, 5),
(244, 48, 5),
(245, 49, 5);
INSERT INTO `departamentos` (`id_departamento`, `departamento`, `descripcion`, `codigo`) VALUES
(1, 'Centro', 'Nombre departamento genérico', 'CENTRO');
INSERT INTO `usuarios` (`id_usuario`, `nick`, `password`, `nombre`, `apellido`, `estado`, `email`, `departamentos_id_departamento`, `perfil`, `activacion`) VALUES
(1, '', '<PASSWORD>', 'Usuario', 'Administrador', 1, '<EMAIL>', 1, 5, NULL);
/*!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>rodglins/SQL_databases
REM INSERTING into SYS.CLI_TS$
SET DEFINE OFF;
|
<reponame>GetsEclectic/instagram-helper
create table WHITELIST_REASON (
REASON varchar(128) primary key
);
insert into WHITELIST_REASON values ('scanned when pruning mutual followers');
insert into WHITELIST_REASON values ('manually whitelisted');
|
<reponame>Eric-Exasol/database-migration
open schema database_migration;
/* This script will generate create table and create import statements to load all needed data from a Vectorwise database.
Automatic datatype conversion is applied whenever needed. Feel free to adjust it. */
-- in EXASOL use JDBC driver for Java 7 i.e. 4.1.8 (install via EXAOperation -> Software -> JDBC Drivers)
-- http://esd.actian.com/product/drivers/JDBC/java
-- JDBC driver class: com.ingres.jdbc.IngresDriver
-- The connection string follows this form:
-- "jdbc:ingres://${HOSTNAME}:${PORT}/${DB};UID=${USERNAME};PWD=${PASSWORD}"
-- Port is the Data Access Server (DAS) Port (in my case 17031 - Actian Vector AP 3.5.1) or the replacement (AP7)
-- see in Actian Director Server -> Management -> Data Access Servers -> (default) -> ... [right click, "Properties"]; then "Protocols"
create or replace script database_migration.VECTORWISE_TO_EXASOL(
CONNECTION_NAME --name of the database connection inside exasol -> e.g. vector_conn
,IDENTIFIER_CASE_INSENSITIVE -- if true then all is converted to uppercase in EXASOL, if false identifiers are double-qouted (")
,TABLE_FILTER --filter for the tables to generate and load -> '%' to load all
) RETURNS TABLE
AS
exa_upper_begin='"'
exa_upper_end='"'
if IDENTIFIER_CASE_INSENSITIVE == true then
exa_upper_begin=''
exa_upper_end=''
end
suc, res = pquery([[
with tbl_cols as (
select * from (import from jdbc at ]]..CONNECTION_NAME..[[ statement 'select t.table_name, column_name, column_datatype, column_length, column_scale, column_nulls, column_defaults, column_sequence -- getting all user tbls
from iitables t left join iicolumns c on c.table_name = t.table_name
where t.table_type = ''T'' and system_use = ''U'' and t.table_name not like ''ii%'' and t.table_name like '']]..TABLE_FILTER..[['' order by table_name, column_sequence asc')
),
tbl_ddl as (select 'create table ]]..exa_upper_begin..[[' || rtrim("table_name") || ']]..exa_upper_end..[[( '|| group_concat(']]..exa_upper_begin..[[' || rtrim("column_name") || ']]..exa_upper_end..[[ ' ||
case
when rtrim("column_datatype") = 'INTEGER' then 'DECIMAL(' || "column_length" || ',' || "column_scale" || ')'
when rtrim("column_datatype") = 'DECIMAL' then 'DECIMAL(' || "column_length" || ',' || "column_scale" || ')'
when rtrim("column_datatype") = 'CHAR' then 'CHAR(' || "column_length" || ')' -- VW: fixed byte length
when rtrim("column_datatype") = 'NCHAR' then 'CHAR(' || "column_length" || ')'-- VW: fixed character length
when rtrim("column_datatype") = 'VARCHAR' then 'VARCHAR(' || "column_length" || ')'
when rtrim("column_datatype") = 'NVARCHAR' then 'VARCHAR(' || "column_length" || ')'
when rtrim("column_datatype") = 'FLOAT' then 'DOUBLE PRECISION'
when rtrim("column_datatype") = 'MONEY' then 'DECIMAL(14,2)'
when rtrim("column_datatype") = 'IPV4' then 'VARCHAR(16)'
when rtrim("column_datatype") = 'IPV6' then 'VARCHAR(40)'
when rtrim("column_datatype") = 'MONEY' then 'DECIMAL(14,2)'
when rtrim("column_datatype") = 'INTEGER' then case when "column_length" > 36 then 'DOUBLE PRECISION' else 'DECIMAL(' || "column_length" || ',' || "column_scale" || ')' end
when rtrim("column_datatype") = 'ANSIDATE' then 'DATE'
when rtrim("column_datatype") = 'TIMESTAMP WITHOUT TIME ZONE' then 'TIMESTAMP'
when rtrim("column_datatype") = 'TIMESTAMP WITH LOCAL TIME ZONE' then 'TIMESTAMP WITH LOCAL TIME ZONE'
when rtrim("column_datatype") = 'TEXT' then 'VARCHAR( 2000000 )'
when rtrim("column_datatype") = 'BOOLEAN' then 'BOOLEAN'
-- ### fallback for unknown types ###
else '/*UNKNOWN_DATATYPE:' || "column_datatype" || '*/ varchar(2000000)'
end order by "column_sequence")
|| ' ); '
as stmts from tbl_cols group by "table_name"),
tbl_imp as (select 'IMPORT INTO ]]..exa_upper_begin..[[' || rtrim("table_name") || ']]..exa_upper_end..[[(' || group_concat(']]..exa_upper_begin..[['|| rtrim("column_name") || ']]..exa_upper_end..[[' order by "column_sequence" ) || ') ' ||' FROM jdbc AT vector_conn STATEMENT ''select ' || group_concat(
case
when rtrim("column_datatype") = 'IPV4' then 'cast('|| rtrim("column_name") || ' as varchar(16)) as ]]..exa_upper_begin..[[' || rtrim("column_name") || ']]..exa_upper_end..[['
when rtrim("column_datatype") = 'IPV6' then 'cast('|| rtrim("column_name") || ' as varchar(40)) as ]]..exa_upper_begin..[[' || rtrim("column_name") || ']]..exa_upper_end..[['
when rtrim("column_datatype") = 'MONEY' then 'cast('|| rtrim("column_name") || ' as decimal(14,2)) as ]]..exa_upper_begin..[[' || rtrim("column_name") || ']]..exa_upper_end..[['
else ']]..exa_upper_begin..[[' || rtrim("column_name") || ']]..exa_upper_end..[['
end
order by "column_sequence"
) -- group_concat bracket
|| ' from ' || rtrim("table_name") || ''';' as s from tbl_cols group by "table_name")
select * from tbl_ddl
union all
select * from tbl_imp
]],{})
if not suc then
error('"'..res.error_message..'" Caught while executing: "'..res.statement_text..'"')
end
return(res)
/
execute script database_migration.VECTORWISE_TO_EXASOL('vector_conn' --name of your database connection
,true
,'%' -- table filter --> '%' to load all tables (
);
ALTER CONNECTION VECTOR_CONN
TO 'jdbc:ingres://192.168.137.4:AP7/sample'
USER 'administrator'
IDENTIFIED BY '********';
|
<gh_stars>0
DROP DATABASE IF EXISTS ProfeSoft;
CREATE DATABASE ProfeSoft;
USE ProfeSoft;
-- -----------------------------------------------------
-- Table `biblioteca`.`Profesor`
-- -----------------------------------------------------
CREATE TABLE Profesor (
IdProfesor INT PRIMARY KEY AUTO_INCREMENT,
PrimerNombre VARCHAR(45) NOT NULL,
SegundoNombre VARCHAR(45) NULL,
ApellidoPaterno VARCHAR(45) NOT NULL,
ApellidoMaterno VARCHAR(45) NOT NULL,
Usuario VARCHAR(45) NOT NULL,
Contrasenia VARCHAR(45) NOT NULL
);
-- -----------------------------------------------------
-- Table `biblioteca`.`Clase`
-- -----------------------------------------------------
CREATE TABLE Curso (
IdCurso INT PRIMARY KEY AUTO_INCREMENT,
Curso VARCHAR(45) NOT NULL,
Grado VARCHAR(45) NOT NULL,
Paralelo VARCHAR(15) NOT NULL,
Campo VARCHAR(45) NULL,
Area VARCHAR(45) NULL,
fechaCreacion DATE NULL,
IdProfesor INT NOT NULL,
FOREIGN KEY (IdProfesor) REFERENCES Profesor(IdProfesor)
);
-- -----------------------------------------------------
-- Table `biblioteca`.`Clase`
-- -----------------------------------------------------
CREATE TABLE Materia (
IdMateria INT PRIMARY KEY AUTO_INCREMENT,
Materia VARCHAR(45) NOT NULL,
fechaCreacion DATE NULL,
IdCurso INT NOT NULL,
FOREIGN KEY (IdCurso) REFERENCES Curso(IdCurso)
);
-- -----------------------------------------------------
-- Table `biblioteca`.`Estudiante`
-- -----------------------------------------------------
CREATE TABLE Estudiante (
IdEstudiante INT PRIMARY KEY AUTO_INCREMENT,
PrimerNombre VARCHAR(45) NOT NULL,
SegundoNombre VARCHAR(45) NULL,
ApellidoPaterno VARCHAR(45) NOT NULL,
ApellidoMaterno VARCHAR(45) NOT NULL,
CiEstudiante VARCHAR(45) NULL,
Genero ENUM('Masculino','Femenino'),
FechaNacimiento DATE NOT NULL,
IdCurso INT NOT NULL,
FOREIGN KEY (IdCurso) REFERENCES Curso(IdCurso)
);
-- -----------------------------------------------------
-- Table `biblioteca`.`ClaseEstudiante`
-- -----------------------------------------------------
-- CREATE TABLE ClaseEstudiante (
-- IdClaseEstudiante INT PRIMARY KEY AUTO_INCREMENT,
-- IdEstudiante INT NOT NULL,
-- IdClase INT NOT NULL,
-- FOREIGN KEY (IdEstudiante) REFERENCES Estudiante(IdEstudiante),
-- FOREIGN KEY (IdClase) REFERENCES Clase(IdClase)
-- );
-- -----------------------------------------------------
-- Table `biblioteca`.`Trimestre`
-- -----------------------------------------------------
CREATE TABLE Trimestre (
IdTrimestre INT PRIMARY KEY AUTO_INCREMENT,
Trimestre VARCHAR(45) NOT NULL,
fechaCreacion DATE NULL,
IdCurso INT NOT NULL,
FOREIGN KEY (IdCurso) REFERENCES Curso(IdCurso)
);
-- -----------------------------------------------------
-- Table `biblioteca`.`Evaluaciones`
-- -----------------------------------------------------
CREATE TABLE Dimencion (
IdDimencion INT PRIMARY KEY AUTO_INCREMENT,
Dimencion VARCHAR(45) NOT NULL,
fechaCreacion DATE NULL,
IdTrimestre INT NOT NULL,
FOREIGN KEY (IdTrimestre) REFERENCES Trimestre(IdTrimestre)
);
-- -----------------------------------------------------
-- Table `biblioteca`.`Evaluaciones`
-- -----------------------------------------------------
CREATE TABLE Evaluacion (
IdEvaluacion INT PRIMARY KEY AUTO_INCREMENT,
Evaluacion VARCHAR(45) NOT NULL,
fechaCreacion DATE NULL,
IdDimencion INT NOT NULL,
IdMateria INT NOT NULL,
FOREIGN KEY (IdDimencion) REFERENCES Dimencion(IdDimencion),
FOREIGN KEY (IdMateria) REFERENCES Materia(IdMateria)
);
-- -----------------------------------------------------
-- Table `biblioteca`.`Evaluaciones`
-- -----------------------------------------------------
CREATE TABLE EvaluacionEstudiante (
IdEvaluacionEstudiante INT PRIMARY KEY AUTO_INCREMENT,
NotaEvaluacion INT NOT NULL,
fechaCreacion DATE NULL,
IdEvaluacion INT NOT NULL,
IdEstudiante INT NOT NULL,
FOREIGN KEY (IdEvaluacion) REFERENCES Evaluacion(IdEvaluacion),
FOREIGN KEY (IdEstudiante) REFERENCES Estudiante(IdEstudiante)
);
|
<filename>country/cldr/sw_TZ/country.sqlserver.sql
CREATE TABLE country (id NVARCHAR(2) NOT NULL, name NVARCHAR(64) NOT NULL, PRIMARY KEY (id));
INSERT INTO [country] ([id], [name]) VALUES ('ZA', 'Afrika ya Kusini');
INSERT INTO [country] ([id], [name]) VALUES ('AR', 'Ajentina');
INSERT INTO [country] ([id], [name]) VALUES ('AG', 'Antigua na Barbuda');
INSERT INTO [country] ([id], [name]) VALUES ('SA', 'Arabuni Saudi');
INSERT INTO [country] ([id], [name]) VALUES ('IS', 'Barafu');
INSERT INTO [country] ([id], [name]) VALUES ('BA', 'Bosnia na Herzegowina');
INSERT INTO [country] ([id], [name]) VALUES ('BR', 'Brazili');
INSERT INTO [country] ([id], [name]) VALUES ('TD', 'Chadi');
INSERT INTO [country] ([id], [name]) VALUES ('DM', 'Dominika');
INSERT INTO [country] ([id], [name]) VALUES ('EC', 'Ekvado');
INSERT INTO [country] ([id], [name]) VALUES ('PH', 'Filipino');
INSERT INTO [country] ([id], [name]) VALUES ('GQ', 'Guinea ya Ikweta');
INSERT INTO [country] ([id], [name]) VALUES ('HU', 'Hungaria');
INSERT INTO [country] ([id], [name]) VALUES ('IQ', 'Iraki');
INSERT INTO [country] ([id], [name]) VALUES ('JM', 'Jamaika');
INSERT INTO [country] ([id], [name]) VALUES ('CF', 'Jamhuri ya Afrika ya Kati');
INSERT INTO [country] ([id], [name]) VALUES ('CZ', 'Jamhuri ya Czech');
INSERT INTO [country] ([id], [name]) VALUES ('DO', 'Jamhuri ya Dominikan');
INSERT INTO [country] ([id], [name]) VALUES ('DJ', 'Jibuti');
INSERT INTO [country] ([id], [name]) VALUES ('CM', 'Kamerun');
INSERT INTO [country] ([id], [name]) VALUES ('KH', 'Kampuchea');
INSERT INTO [country] ([id], [name]) VALUES ('CA', 'Kanada');
INSERT INTO [country] ([id], [name]) VALUES ('KE', 'Kenya');
INSERT INTO [country] ([id], [name]) VALUES ('TO', 'Kitonga');
INSERT INTO [country] ([id], [name]) VALUES ('CO', 'Kolombia');
INSERT INTO [country] ([id], [name]) VALUES ('CG', 'Kongo');
INSERT INTO [country] ([id], [name]) VALUES ('KP', 'Korea ya Kaskazini');
INSERT INTO [country] ([id], [name]) VALUES ('KR', 'Korea ya Kusini');
INSERT INTO [country] ([id], [name]) VALUES ('HR', 'Kroatia');
INSERT INTO [country] ([id], [name]) VALUES ('LU', 'Luksemburg');
INSERT INTO [country] ([id], [name]) VALUES ('MY', 'Malasya');
INSERT INTO [country] ([id], [name]) VALUES ('MX', 'Meksiko');
INSERT INTO [country] ([id], [name]) VALUES ('EG', 'Misri');
INSERT INTO [country] ([id], [name]) VALUES ('MC', 'Monako');
INSERT INTO [country] ([id], [name]) VALUES ('MA', 'Moroko');
INSERT INTO [country] ([id], [name]) VALUES ('MZ', 'Msumbiji');
INSERT INTO [country] ([id], [name]) VALUES ('AE', 'Muugano wa Falme za Nchi za Kiarabu');
INSERT INTO [country] ([id], [name]) VALUES ('US', 'Muungano wa Nchi za Amerika');
INSERT INTO [country] ([id], [name]) VALUES ('NP', 'Nepali');
INSERT INTO [country] ([id], [name]) VALUES ('NI', 'Nikaragua');
INSERT INTO [country] ([id], [name]) VALUES ('PG', 'Papua Guinea Mpya');
INSERT INTO [country] ([id], [name]) VALUES ('PY', 'Paragwai');
INSERT INTO [country] ([id], [name]) VALUES ('CI', 'Pwani ya Pembe');
INSERT INTO [country] ([id], [name]) VALUES ('CV', 'Rasi Verde');
INSERT INTO [country] ([id], [name]) VALUES ('KN', 'Saint Kitts na Nevis');
INSERT INTO [country] ([id], [name]) VALUES ('VC', 'Saint Vincent na Grenadines');
INSERT INTO [country] ([id], [name]) VALUES ('ST', 'Sao Tome na Principe');
INSERT INTO [country] ([id], [name]) VALUES ('CS', 'Serbiya da Montenegro');
INSERT INTO [country] ([id], [name]) VALUES ('SO', 'Somali');
INSERT INTO [country] ([id], [name]) VALUES ('TZ', 'Tanzania');
INSERT INTO [country] ([id], [name]) VALUES ('TL', 'Timor ya Mashariki');
INSERT INTO [country] ([id], [name]) VALUES ('TT', 'Trinidad na Tobago');
INSERT INTO [country] ([id], [name]) VALUES ('IR', 'Uajemi');
INSERT INTO [country] ([id], [name]) VALUES ('BE', 'Ubelgiji');
INSERT INTO [country] ([id], [name]) VALUES ('CN', 'Uchina');
INSERT INTO [country] ([id], [name]) VALUES ('DE', 'Udachi');
INSERT INTO [country] ([id], [name]) VALUES ('DK', 'Udenmarki');
INSERT INTO [country] ([id], [name]) VALUES ('FR', 'Ufaransa');
INSERT INTO [country] ([id], [name]) VALUES ('ET', 'Uhabeshi');
INSERT INTO [country] ([id], [name]) VALUES ('IN', 'Uhindi');
INSERT INTO [country] ([id], [name]) VALUES ('ES', 'Uhispania');
INSERT INTO [country] ([id], [name]) VALUES ('NL', 'Uholanzi');
INSERT INTO [country] ([id], [name]) VALUES ('GB', 'Uingereza');
INSERT INTO [country] ([id], [name]) VALUES ('IT', 'Uitaliani');
INSERT INTO [country] ([id], [name]) VALUES ('JP', 'Ujapani');
INSERT INTO [country] ([id], [name]) VALUES ('NO', 'Unorwe');
INSERT INTO [country] ([id], [name]) VALUES ('PT', 'Ureno');
INSERT INTO [country] ([id], [name]) VALUES ('UY', 'Urugwai');
INSERT INTO [country] ([id], [name]) VALUES ('RU', 'Urusi');
INSERT INTO [country] ([id], [name]) VALUES ('SE', 'Uswidi');
INSERT INTO [country] ([id], [name]) VALUES ('CH', 'Uswisi');
INSERT INTO [country] ([id], [name]) VALUES ('TR', 'Uturuki');
INSERT INTO [country] ([id], [name]) VALUES ('IL', 'Uyahudi');
INSERT INTO [country] ([id], [name]) VALUES ('VA', 'Vatikano');
INSERT INTO [country] ([id], [name]) VALUES ('BS', 'Visiwa vya Bahama');
INSERT INTO [country] ([id], [name]) VALUES ('KM', 'Visiwa vya Komoro');
INSERT INTO [country] ([id], [name]) VALUES ('MH', 'Visiwa vya Marshall');
INSERT INTO [country] ([id], [name]) VALUES ('SC', 'Visiwa vya Shelisheli');
INSERT INTO [country] ([id], [name]) VALUES ('SB', 'Visiwa vya Solomon');
INSERT INTO [country] ([id], [name]) VALUES ('YE', 'Yemeni');
|
<reponame>pensnarik/domains-database
create table public.queue
(
id serial primary key,
site_id integer not null,
session_id integer not null,
task_id integer not null,
domain varchar(255) not null,
job varchar(126),
status task_status_mnemonic default 'new' not null
);
create unique index queue_uniq_idx on public.queue(site_id, task_id);
create index queue_session_idx on public.queue(session_id);
grant delete on public.queue to dispatcher;
|
<reponame>ckanitz/oRO-Bot
CREATE TABLE IF NOT EXISTS `module_builds_builds` (
`id` INT NOT NULL AUTO_INCREMENT,
`author` VARCHAR(45) NULL,
`title` VARCHAR(45) NULL,
`description` TEXT(255) NULL,
`skills` TEXT(255) NULL,
`stats` TEXT(255) NULL,
`gear` VARCHAR(45) NULL,
`class` INT NOT NULL,
PRIMARY KEY (`id`),
UNIQUE INDEX `id_UNIQUE` (`id` ASC),
INDEX `class_idx` (`class` ASC),
CONSTRAINT `class` FOREIGN KEY (`class`) REFERENCES `module_rodata_jobclasses` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION
);
CREATE TABLE IF NOT EXISTS `module_builds_tags` (
`id` INT NOT NULL AUTO_INCREMENT,
`name` VARCHAR(45) NULL,
PRIMARY KEY (`id`),
UNIQUE INDEX `id_UNIQUE` (`id` ASC)
);
CREATE TABLE IF NOT EXISTS `module_builds_build_tag` (
`buildid` INT NOT NULL,
`tagid` INT NOT NULL,
PRIMARY KEY (`buildid`, `tagid`),
INDEX `tagid_idx` (`tagid` ASC),
CONSTRAINT `buildid` FOREIGN KEY (`buildid`) REFERENCES `module_builds_builds` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
CONSTRAINT `tagid` FOREIGN KEY (`tagid`) REFERENCES `module_builds_tags` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION
);
INSERT IGNORE INTO `module_builds_builds` (
`id`,
`author`,
`title`,
`description`,
`skills`,
`stats`,
`gear`,
`class`
) VALUES (
1,
'Jenks',
'Jenks Assa PvM Builds: Dual Dagger',
'',
'__Thief:__\n- Double Attack 10\n- Improve Dodge 10\n- Envenom 6 (10)\n- Detoxify 1\n- Steal 10\n- Hiding 2 (8)\n\n__Assassin__\n- Right Hand Mastery 5\n- Left Hand Mastery 5\n- Cloaking 3 (10)\n- 41 bzw. 34 Restpunkte frei zu verteilen',
'Str: 90-120\nAgi: 90-110\nVit: 1 - 30\nInt: 1-2\nDex: 32/42\nLuk: 1\n',
'',
12
);
INSERT IGNORE INTO `module_builds_tags`
(`id`, `name`)
VALUES
(1, 'assassin'),
(2, 'assa'),
(3, 'sin'),
(4, 'dagger'),
(5, 'dual dagger');
INSERT IGNORE INTO `module_builds_build_tag`
(`buildid`, `tagid`)
VALUES
(1, 1),
(1, 2),
(1, 3),
(1, 4),
(1, 5);
|
use ck2;
create or replace function title_score(title_id varchar(100))
returns int unsigned
return (
select case substring(title_id, 1, 2)
when 'e_' then 256
when 'k_' then 64
when 'd_' then 16
when 'c_' then 4
when 'b_' then 1
else 0 end
);
create or replace function char_titles_score(cid int unsigned, snapshot char(10))
returns int unsigned
return (
select sum(title_score(title_id))
from Title_Status
where holder_id = cid and date = snapshot
);
create or replace function dynasty_titles_score(did int unsigned, snapshot char(10))
returns int unsigned
return (
select coalesce(sum(char_titles_score(c.character_id, snapshot)),0)
from Character_Status c
where c.dynasty_id = did and c.date = snapshot
);
/*
TESTING FUNCTIONS ABOVE:
Test Case:
6392 (Charlemange) at 0770-01-01 has 8
Dynasty is 25061 (Karling)
Charlemange has 9 titles, Karlomam has 5 for a total of 14 of Karling Dynasty
select dynasty_titles_score(25061, '0770-01-01');
select c.character_id, c.name, char_titles_score(c.character_id, c.date)
from Character_Status c
where c.dynasty_id = 25061 and c.date = '0770-01-01'
;
*/
select name,
dynasty_titles_score(id, first_year) as first_year_score,
dynasty_titles_score(id, last_year) as last_year_score
from
Dynasties,
(select min(date) as first_year from Snapshots) as first_year_q,
(select max(date) as last_year from Snapshots) as last_year_q
order by first_year_score desc limit 10
;
|
<reponame>zhanght86/data-exchange-platform<filename>sql/create_dat.sql<gh_stars>1-10
/*==============================================================*/
/* DBMS name: ORACLE Version 11g */
/* Created on: 2018/5/26 16:51:26 */
/*==============================================================*/
/*==============================================================*/
/* Table: DAT_CHECK_DATA */
/*==============================================================*/
create table DAT_CHECK_DATA
(
CHECK_NO VARCHAR2(32) not null,
CHECK_TYPE VARCHAR2(1) not null,
SITE_ID VARCHAR2(32) not null,
EQUIP_ID VARCHAR2(32),
LINE VARCHAR2(2),
VEHICLE_NO VARCHAR2(12),
VEHICLE_TYPE VARCHAR2(4),
AXLES NUMBER(1),
TYRES NUMBER(2),
CHECK_RESULT VARCHAR2(1) not null,
CHECK_BY VARCHAR2(40),
CHECK_TIME TIMESTAMP not null,
SPEED NUMBER(5,2),
LIMIT_TOTAL NUMBER(6),
OVER_TOTAL NUMBER(6),
TOTAL NUMBER(6) default 0 not null,
DESC_INFO VARCHAR2(200),
CREATE_BY VARCHAR2(40) not null,
CREATE_TIME TIMESTAMP not null,
UPDATE_BY VARCHAR2(40) not null,
UPDATE_TIME TIMESTAMP not null,
constraint PK_DAT_CHECK_DATA primary key (CHECK_NO)
);
|
CREATE TABLE STATUSES(
STATUS_ID INT NOT NULL IDENTITY (1, 1) PRIMARY KEY,
STATUS_DESCRIPTION varchar(15) NOT NULL
);
|
use payroll
execute p_add_time_entry @employee_id=20, @entry_date='2018-04-29 00:00:00', @hours_worked=4
execute p_add_time_entry @employee_id=43, @entry_date='2018-04-29 00:00:00', @hours_worked=6
execute p_add_time_entry @employee_id=51, @entry_date='2018-04-29 00:00:00', @hours_worked=7
execute p_add_time_entry @employee_id=12, @entry_date='2018-04-29 00:00:00', @hours_worked=5
execute p_add_time_entry @employee_id=41, @entry_date='2018-04-29 00:00:00', @hours_worked=4
execute p_add_time_entry @employee_id=39, @entry_date='2018-04-29 00:00:00', @hours_worked=5
execute p_add_time_entry @employee_id=32, @entry_date='2018-04-29 00:00:00', @hours_worked=3
execute p_add_time_entry @employee_id=30, @entry_date='2018-04-29 00:00:00', @hours_worked=3
execute p_add_time_entry @employee_id=36, @entry_date='2018-04-29 00:00:00', @hours_worked=3
execute p_add_time_entry @employee_id=23, @entry_date='2018-04-29 00:00:00', @hours_worked=4
execute p_add_time_entry @employee_id=21, @entry_date='2018-04-29 00:00:00', @hours_worked=4
execute p_add_time_entry @employee_id=42, @entry_date='2018-04-29 00:00:00', @hours_worked=3
execute p_add_time_entry @employee_id=35, @entry_date='2018-04-29 00:00:00', @hours_worked=4
execute p_add_time_entry @employee_id=19, @entry_date='2018-04-29 00:00:00', @hours_worked=6
execute p_add_time_entry @employee_id=15, @entry_date='2018-04-29 00:00:00', @hours_worked=4
execute p_add_time_entry @employee_id=34, @entry_date='2018-04-29 00:00:00', @hours_worked=3
|
<reponame>zachradtka/Data-Profiler
insert into applications (app,key,created_at,updated_at) values('Data Profiler', 'dp-rou-key', current_timestamp, current_timestamp);
|
<filename>chapter_008/db/scripts/update_003.sql
create table if not exists users
(
id serial primary key not null,
name varchar(2000),
login varchar(2000),
password varchar(2<PASSWORD>),
email varchar(2000),
date varchar(2000)
);
|
-- MySQL Script generated by MySQL Workbench
-- Mon Jan 13 03:36:01 2020
-- Model: New Model Version: 1.0
-- MySQL Workbench Forward Engineering
SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0;
SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0;
SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION';
-- -----------------------------------------------------
-- Schema CCS_DB
-- -----------------------------------------------------
-- -----------------------------------------------------
-- Schema CCS_DB
-- -----------------------------------------------------
CREATE SCHEMA IF NOT EXISTS `CCS_DB` DEFAULT CHARACTER SET utf8 ;
USE `CCS_DB` ;
-- -----------------------------------------------------
-- Table `CCS_DB`.`ChatLog`
-- -----------------------------------------------------
CREATE TABLE IF NOT EXISTS `CCS_DB`.`ChatLog` (
`id` INT NOT NULL,
`room` VARCHAR(45) NULL,
`user` VARCHAR(45) NULL,
`message` LONGTEXT NULL,
`senttime` REAL NULL,
PRIMARY KEY (`id`))
ENGINE = InnoDB;
-- -----------------------------------------------------
-- Table `CCS_DB`.`Rooms`
-- -----------------------------------------------------
CREATE TABLE IF NOT EXISTS `CCS_DB`.`Rooms` (
`id` INT NOT NULL,
`checkc` LONGTEXT NULL,
`adminpw` LONGTEXT NULL,
`lastjoin` REAL NULL,
PRIMARY KEY (`id`))
ENGINE = InnoDB;
-- -----------------------------------------------------
-- Table `CCS_DB`.`Users`
-- -----------------------------------------------------
CREATE TABLE IF NOT EXISTS `CCS_DB`.`Users` (
`id` INT NOT NULL,
`checkc` LONGTEXT NULL,
`adminpw` LONGTEXT NULL,
`lastlogin` REAL NULL,
PRIMARY KEY (`id`))
ENGINE = InnoDB;
SET SQL_MODE=@OLD_SQL_MODE;
SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS;
SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS;
|
<filename>db/pgsql/db-scripts/create-fs-20/sql/create_mals_05_plpgsql.sql
SET statement_timeout = 0;
SET lock_timeout = 0;
SET client_encoding = 'UTF8';
SET standard_conforming_strings = on;
SELECT pg_catalog.set_config('search_path', 'mals_app', true);
SET check_function_bodies = false;
SET client_min_messages = warning;
-- FUNCTION: FN_UPDATE_AUDIT_COLUMNS
-- PROCEDURE: PR_GENERATE_PRINT_JSON
-- PROCEDURE: PR_GENERATE_PRINT_JSON_ACTION_REQUIRED
-- PROCEDURE: PR_GENERATE_PRINT_JSON_APIARY_INSPECTION
-- PROCEDURE: PR_GENERATE_PRINT_JSON_APIARY_PRODUCER_CITY
-- PROCEDURE: PR_GENERATE_PRINT_JSON_APIARY_PRODUCER_DISTRICT
-- PROCEDURE: PR_GENERATE_PRINT_JSON_APIARY_PRODUCER_REGION
-- PROCEDURE: PR_GENERATE_PRINT_JSON_APIARY_SITE
-- PROCEDURE: PR_GENERATE_PRINT_JSON_DAIRY_FARM_DETAILS
-- PROCEDURE: PR_GENERATE_PRINT_JSON_DAIRY_FARM_QUALITY
-- PROCEDURE: PR_GENERATE_PRINT_JSON_DAIRY_FARM_TANK_RECHECK
-- PROCEDURE: PR_GENERATE_PRINT_JSON_DAIRY_FARM_TEST_THRESHOLD
-- PROCEDURE: PR_GENERATE_PRINT_JSON_LICENCE_EXPIRY
-- PROCEDURE: PR_GENERATE_PRINT_JSON_LICENCE_LOCATION
-- PROCEDURE: PR_GENERATE_PRINT_JSON_VETERINARY_DRUG_DETAILS
-- PROCEDURE: PR_START_DAIRY_FARM_TEST_JOB
-- PROCEDURE: PR_START_PRINT_JOB
-- PROCEDURE: PR_UPDATE_DAIRY_FARM_TEST_RESULTS
--
-- FUNCTION: FN_UPDATE_AUDIT_COLUMNS
--
create or replace function fn_update_audit_columns()
returns trigger as $$
begin
if TG_OP = 'UPDATE' then
NEW.update_userid = coalesce(NEW.update_userid, current_user);
NEW.update_timestamp = current_timestamp;
elsif TG_OP = 'INSERT' then
NEW.create_userid = coalesce(NEW.create_userid, current_user);
NEW.create_timestamp = current_timestamp;
NEW.update_userid = coalesce(NEW.update_userid, current_user);
NEW.update_timestamp = current_timestamp;
end if;
return NEW;
end;
$$ language 'plpgsql';
--
-- PROCEDURE: PR_GENERATE_PRINT_JSON
--
CREATE OR REPLACE PROCEDURE pr_generate_print_json(
IN ip_print_category character varying,
IN ip_start_date date,
IN ip_end_date date,
INOUT iop_print_job_id integer)
LANGUAGE plpgsql
AS $procedure$
declare
l_certificate_json_count integer default 0;
l_envelope_json_count integer default 0;
l_card_json_count integer default 0;
l_renewal_json_count integer default 0;
l_dairy_infraction_json_count integer default 0;
l_recheck_notice_json_count integer default 0;
begin
--
-- Start a row in the mal_print_job table
call pr_start_print_job(
ip_print_category => ip_print_category,
iop_print_job_id => iop_print_job_id
);
--
-- Populate the CERTIFICATE, ENVELOPE and CARD JSONs.
if ip_print_category = 'CERTIFICATE' then
--
-- Generate the CERTIFICATE JSONs
--
insert into mal_print_job_output(
print_job_id,
licence_type,
licence_number,
document_type,
document_json,
document_binary,
create_userid,
create_timestamp,
update_userid,
update_timestamp)
select
iop_print_job_id,
licence_type,
licence_number,
'CERTIFICATE',
certificate_json,
null,
current_user,
current_timestamp,
current_user,
current_timestamp
from mal_print_certificate_vw;
GET DIAGNOSTICS l_certificate_json_count = ROW_COUNT;
--
-- Generate the ENVELOPE JSONs
--
insert into mal_print_job_output(
print_job_id,
licence_type,
licence_number,
document_type,
document_json,
document_binary,
create_userid,
create_timestamp,
update_userid,
update_timestamp)
select
iop_print_job_id,
licence_type,
licence_number,
'ENVELOPE',
envelope_json,
null,
current_user,
current_timestamp,
current_user,
current_timestamp
from mal_print_certificate_vw;
GET DIAGNOSTICS l_envelope_json_count = ROW_COUNT;
--
-- Generate the CARD JSONs, one row per licence type.
--
insert into mal_print_job_output(
print_job_id,
licence_type,
licence_number,
document_type,
document_json,
document_binary,
create_userid,
create_timestamp,
update_userid,
update_timestamp)
select
iop_print_job_id,
licence_type,
null,
'CARD',
card_json,
null,
current_user,
current_timestamp,
current_user,
current_timestamp
from mal_print_card_vw;
GET DIAGNOSTICS l_card_json_count = ROW_COUNT;
end if;
--
-- Populate the RENEWAL JSONs.
if ip_print_category = 'RENEWAL' then
insert into mal_print_job_output(
print_job_id,
licence_type,
licence_number,
document_type,
document_json,
document_binary,
create_userid,
create_timestamp,
update_userid,
update_timestamp)
select
iop_print_job_id,
licence_type,
licence_number,
'RENEWAL',
renewal_json,
null,
current_user,
current_timestamp,
current_user,
current_timestamp
from mal_print_renewal_vw;
GET DIAGNOSTICS l_renewal_json_count = ROW_COUNT;
end if;
--
-- Populate the DAIRY_INFRACTION JSONs.
if ip_print_category = 'DAIRY_INFRACTION' then
insert into mal_print_job_output(
print_job_id,
licence_type,
licence_number,
document_type,
document_json,
document_binary,
create_userid,
create_timestamp,
update_userid,
update_timestamp)
select
iop_print_job_id,
licence_type,
licence_number,
'DAIRY_INFRACTION',
infraction_json,
null,
current_user,
current_timestamp,
current_user,
current_timestamp
from mal_print_dairy_farm_infraction_vw
where print_dairy_infraction = true
and recorded_date between ip_start_date and ip_end_date;
GET DIAGNOSTICS l_dairy_infraction_json_count = ROW_COUNT;
end if;
--
-- Populate the RECHECK_NOTICE JSONs.
if ip_print_category = 'RECHECK_NOTICE' then
insert into mal_print_job_output(
print_job_id,
licence_type,
licence_number,
document_type,
document_json,
document_binary,
create_userid,
create_timestamp,
update_userid,
update_timestamp)
select
iop_print_job_id,
licence_type,
licence_number,
'RECHECK_NOTICE',
recheck_notice_json,
null,
current_user,
current_timestamp,
current_user,
current_timestamp
from mal_print_dairy_farm_tank_recheck_vw
where print_recheck_notice = true;
GET DIAGNOSTICS l_recheck_notice_json_count = ROW_COUNT;
end if;
--
-- Update the Print Job table.
update mal_print_job set
job_status = 'COMPLETE',
json_end_time = current_timestamp,
certificate_json_count = l_certificate_json_count,
envelope_json_count = l_envelope_json_count,
card_json_count = l_card_json_count,
renewal_json_count = l_renewal_json_count,
dairy_infraction_json_count = l_dairy_infraction_json_count,
recheck_notice_json_count = l_recheck_notice_json_count,
update_userid = current_user,
update_timestamp = current_timestamp
where id = iop_print_job_id;
end;
$procedure$
;
--
-- PROCEDURE: PR_GENERATE_PRINT_JSON_ACTION_REQUIRED
--
CREATE OR REPLACE PROCEDURE pr_generate_print_json_action_required(
IN ip_licence_type_id integer,
INOUT iop_print_job_id integer)
LANGUAGE plpgsql
AS $procedure$
declare
l_report_json_count integer default 0;
begin
--
-- Start a row in the mal_print_job table
call pr_start_print_job(
ip_print_category => 'REPORT',
iop_print_job_id => iop_print_job_id
);
--
-- Insert the JSON into the output table
with licence_type_summary as (
select
licence_type,
json_agg(json_build_object('LicenceNumber', licence_number,
'LastFirstName', registrant_last_first,
'MailingAddress', licence_address,
'MailingCity', licence_city,
'MailingProv', licence_province,
'PostCode', licence_postal_code,
'Phone', licence_primary_phone,
'Email', email_address,
'LicenceHolderCompany', company_name)
order by licence_number) licence_json,
count(*) num_rows
from mal_licence_action_required_vw
where licence_type_id = ip_licence_type_id
group by licence_type)
--
-- MAIN QUERY
--
insert into mal_print_job_output(
print_job_id,
licence_type,
licence_number,
document_type,
document_json,
document_binary,
create_userid,
create_timestamp,
update_userid,
update_timestamp)
select
iop_print_job_id,
licence_type,
null,
'ACTION_REQUIRED',
json_build_object('DateTime', to_char(current_timestamp, 'fmyyyy-mm-dd hh24mi'),
'Licence_Type', licence_type,
'Licence', licence_json,
'RowCount', num_rows) report_json,
null,
current_user,
current_timestamp,
current_user,
current_timestamp
from licence_type_summary;
--
GET DIAGNOSTICS l_report_json_count = ROW_COUNT;
--
-- Update the Print Job table.
update mal_print_job set
job_status = 'COMPLETE',
json_end_time = current_timestamp,
report_json_count = l_report_json_count,
update_userid = current_user,
update_timestamp = current_timestamp
where id = iop_print_job_id;
end;
$procedure$
;
--
-- PROCEDURE: PR_GENERATE_PRINT_JSON_APIARY_INSPECTION
--
CREATE OR REPLACE PROCEDURE pr_generate_print_json_apiary_inspection(
IN ip_start_date date,
IN ip_end_date date,
INOUT iop_print_job_id integer)
LANGUAGE plpgsql
AS $procedure$
declare
l_report_json_count integer default 0;
begin
--
-- Start a row in the mal_print_job table
call pr_start_print_job(
ip_print_category => 'REPORT',
iop_print_job_id => iop_print_job_id
);
--
-- Insert the JSON into the output table
with details as (
select
licence_id,
licence_number,
apiary_site_id,
region_name,
last_name,
first_name,
inspection_date,
colonies_tested,
brood_tested,
american_foulbrood_result,
european_foulbrood_result,
nosema_result,
chalkbrood_result,
sacbrood_result,
varroa_tested,
varroa_mite_result,
varroa_mite_result_percent,
small_hive_beetle_tested,
small_hive_beetle_result,
supers_inspected,
supers_destroyed,
hives_per_apiary,
hive_count
from mal_apiary_inspection_vw
where inspection_date between ip_start_date and ip_end_date
),
licence_summary as (
select
json_agg(json_build_object('LicenceNumber', licence_number,
'SiteID', apiary_site_id,
'LastName', last_name,
'FirstName', first_name,
'ColoniesInspected', colonies_tested,
'BroodsInspected', brood_tested,
'AFB', american_foulbrood_result,
'EFB', european_foulbrood_result,
'Nosema', nosema_result,
'Chalkbrood', chalkbrood_result,
'Sacbrood', sacbrood_result,
'VarroaColoniesTested', varroa_tested,
'VarroaMites', varroa_mite_result,
'VarroaMitesPercent', varroa_mite_result_percent,
'SHBColoniesTested', small_hive_beetle_tested,
'SHB', small_hive_beetle_result,
'SupersInspected', supers_inspected,
'SupersDestroyed', supers_destroyed,
'HivesInApiary', hives_per_apiary,
'TotalNumHives', hive_count)
order by licence_number) licence_json
from details),
region_summary as (
select
json_agg(json_build_object('RegionName', region_name,
'ColoniesInspected', region_colonies_tested,
'BroodsInspected', region_brood_tested,
'AFB', region_american_foulbrood_result,
'EFB', region_european_foulbrood_result,
'Nosema', region_nosema_result,
'Chalkbrood', region_chalkbrood_result,
'Sacbrood', region_sacbrood_result,
'VarroaColoniesTested', region_varroa_tested,
'VarroaMites', region_varroa_mite_result,
'SHBColoniesTested', region_small_hive_beetle_tested,
'SHB', region_small_hive_beetle_result,
'SupersInspected', region_supers_inspected,
'SupersDestroyed', region_supers_destroyed)
order by region_name) region_json
from (
select
region_name,
coalesce(sum(colonies_tested), 0) region_colonies_tested,
coalesce(sum(brood_tested), 0) region_brood_tested,
coalesce(sum(american_foulbrood_result), 0) region_american_foulbrood_result,
coalesce(sum(european_foulbrood_result), 0) region_european_foulbrood_result,
coalesce(sum(nosema_result), 0) region_nosema_result,
coalesce(sum(chalkbrood_result), 0) region_chalkbrood_result,
coalesce(sum(sacbrood_result), 0) region_sacbrood_result,
coalesce(sum(varroa_tested), 0) region_varroa_tested,
coalesce(sum(varroa_mite_result), 0) region_varroa_mite_result,
coalesce(sum(small_hive_beetle_tested), 0) region_small_hive_beetle_tested,
coalesce(sum(small_hive_beetle_result), 0) region_small_hive_beetle_result,
coalesce(sum(supers_inspected), 0) region_supers_inspected,
coalesce(sum(supers_destroyed), 0) region_supers_destroyed
from details
group by region_name) region_totals),
report_summary as (
select
coalesce(sum(colonies_tested), 0) tot_colonies_tested,
coalesce(sum(brood_tested), 0) tot_brood_tested,
coalesce(sum(american_foulbrood_result), 0) tot_american_foulbrood_result,
coalesce(sum(european_foulbrood_result), 0) tot_european_foulbrood_result,
coalesce(sum(nosema_result), 0) tot_nosema_result,
coalesce(sum(chalkbrood_result), 0) tot_chalkbrood_result,
coalesce(sum(sacbrood_result), 0) tot_sacbrood_result,
coalesce(sum(varroa_tested), 0) tot_varroa_tested,
coalesce(sum(varroa_mite_result), 0) tot_varroa_mite_result,
coalesce(sum(small_hive_beetle_tested), 0) tot_small_hive_beetle_tested,
coalesce(sum(small_hive_beetle_result), 0) tot_small_hive_beetle_result,
coalesce(sum(supers_inspected), 0) tot_supers_inspected,
coalesce(sum(supers_destroyed), 0) tot_supers_destroyed
from details)
--
-- MAIN QUERY
--
insert into mal_print_job_output(
print_job_id,
licence_type,
licence_number,
document_type,
document_json,
document_binary,
create_userid,
create_timestamp,
update_userid,
update_timestamp)
select
iop_print_job_id,
'APIARY',
null,
'APIARY_INSPECTION',
json_build_object('DateTime', to_char(current_timestamp, 'fmyyyy-mm-dd hh24mi'),
'DateRangeStart', to_char(ip_start_date, 'fmyyyy-mm-dd hh24mi'),
'DateRangeEnd', to_char(ip_end_date, 'fmyyyy-mm-dd hh24mi'),
'Licence', lic_sum.licence_json,
'Region', rgn_sum.region_json,
'Tot_Colonies_Inspected', rpt_sum.tot_colonies_tested,
'Tot_Broods_Inspected', rpt_sum.tot_brood_tested,
'Tot_AFB', rpt_sum.tot_american_foulbrood_result,
'Tot_EFB', rpt_sum.tot_european_foulbrood_result,
'Tot_Nosema', rpt_sum.tot_nosema_result,
'Tot_Chalkbrood', rpt_sum.tot_chalkbrood_result,
'Tot_Sacbrood', rpt_sum.tot_sacbrood_result,
'Tot_Colonies_Tested_Varroa', rpt_sum.tot_varroa_tested,
'Tot_Varroa_Mites', rpt_sum.tot_varroa_mite_result,
'Tot_Colonies_Tested_SHB', rpt_sum.tot_small_hive_beetle_tested,
'Tot_SHB', rpt_sum.tot_small_hive_beetle_result,
'Tot_SupersInspected', rpt_sum.tot_supers_inspected,
'Tot_SupersDestroyed', rpt_sum.tot_supers_destroyed) report_json,
null,
current_user,
current_timestamp,
current_user,
current_timestamp
from licence_summary lic_sum
cross join region_summary rgn_sum
cross join report_summary rpt_sum;
--
GET DIAGNOSTICS l_report_json_count = ROW_COUNT;
--
-- Update the Print Job table.
update mal_print_job set
job_status = 'COMPLETE',
json_end_time = current_timestamp,
report_json_count = l_report_json_count,
update_userid = current_user,
update_timestamp = current_timestamp
where id = iop_print_job_id;
end;
$procedure$
;
--
-- PROCEDURE: PR_GENERATE_PRINT_JSON_APIARY_PRODUCER_CITY
--
CREATE OR REPLACE PROCEDURE pr_generate_print_json_apiary_producer_city(
IN ip_city character varying,
IN ip_min_hives integer,
IN ip_max_hives integer,
INOUT iop_print_job_id integer)
LANGUAGE plpgsql
AS $procedure$
declare
l_report_json_count integer default 0;
begin
--
-- Start a row in the mal_print_job table
call pr_start_print_job(
ip_print_category => 'REPORT',
iop_print_job_id => iop_print_job_id
);
--
-- Insert the JSON into the output table
with site_summary as (
select
json_agg(json_build_object('LicenceNumber', licence_number,
'LastName', registrant_last_name,
'FirstName', registrant_first_name,
'PrimaryPhone', site_primary_phone,
'Email', registrant_email_address,
'Address', site_address,
'City', site_city,
'Registration_Date', registration_date,
'Num_Hives', site_hive_count)
order by licence_number) licence_json,
count(licence_number) num_producers,
sum(site_hive_count) num_hives
from mal_apiary_producer_vw
where site_city = ip_city
and site_hive_count between ip_min_hives and ip_max_hives)
--
-- MAIN QUERY
--
insert into mal_print_job_output(
print_job_id,
licence_type,
licence_number,
document_type,
document_json,
document_binary,
create_userid,
create_timestamp,
update_userid,
update_timestamp)
select
iop_print_job_id,
'APIARY',
null,
'APIARY_PRODUCER_CITY',
json_build_object('DateTime', to_char(current_timestamp, 'fmyyyy-mm-dd hh24mi'),
'NumColoniesBegin', ip_min_hives,
'NumColoniesEnd', ip_max_hives,
'Reg', licence_json,
'Tot_Producers', num_producers,
'Tot_Hives', num_hives) report_json,
null,
current_user,
current_timestamp,
current_user,
current_timestamp
from site_summary;
--
GET DIAGNOSTICS l_report_json_count = ROW_COUNT;
--
-- Update the Print Job table.
update mal_print_job set
job_status = 'COMPLETE',
json_end_time = current_timestamp,
report_json_count = l_report_json_count,
update_userid = current_user,
update_timestamp = current_timestamp
where id = iop_print_job_id;
end;
$procedure$
;
--
-- PROCEDURE: PR_GENERATE_PRINT_JSON_APIARY_PRODUCER_DISTRICT
--
CREATE OR REPLACE PROCEDURE pr_generate_print_json_apiary_producer_district(
INOUT iop_print_job_id integer)
LANGUAGE plpgsql
AS $procedure$
declare
l_report_json_count integer default 0;
begin
--
-- Start a row in the mal_print_job table
call pr_start_print_job(
ip_print_category => 'REPORT',
iop_print_job_id => iop_print_job_id
);
--
-- Insert the JSON into the output table
with licence_summary as (
select licence_id,
site_regional_district_id,
count(*) num_sites,
sum(site_hive_count) num_hives,
count(case when site_hive_count = 0 then 1 else null end) num_producers_hives_0
from mals_app.mal_apiary_producer_vw
group by licence_id,
site_regional_district_id),
district_summary as (
select coalesce(dist.district_name, 'No Region Specified') district_name,
count(case when num_sites between 1 and 9 then 1 else null end) num_sites_1to9,
count(case when num_sites >= 10 then 1 else null end) num_sites_10plus,
count(case when num_sites between 1 and 24 then 1 else null end) num_sites_1to24,
count(case when num_sites >= 25 then 1 else null end) num_sites_25plus,
count(*) num_sites,
sum(case when num_sites between 1 and 9 then num_hives else 0 end) num_hives_1to9,
sum(case when num_sites >= 10 then num_hives else 0 end) num_hives_10plus,
sum(case when num_sites between 1 and 24 then num_hives else 0 end) num_hives_1to24,
sum(case when num_sites >= 25 then num_hives else 0 end) num_hives_25plus,
sum(num_hives) num_hives,
sum(num_producers_hives_0) num_producers_hives_0
from licence_summary ls
left join mal_regional_district_lu dist
on ls.site_regional_district_id = dist.id
group by dist.district_name),
report_summary as (
select
json_agg(json_build_object('DistrictName', district_name,
'Producers1To9', num_sites_1to9,
'Producers10Plus', num_sites_10plus,
'Producers1To24', num_sites_1to24,
'Producers25Plus', num_sites_25plus,
'ProducersTotal', num_sites,
'Colonies1To9', num_hives_1to9,
'Colonies10Plus', num_hives_10plus,
'Colonies1To24', num_hives_1to24,
'Colonies25Plus', num_hives_25plus,
'ColoniesTotal', num_hives)
order by district_name) district_json,
sum(num_sites_1to9) total_sites_1To9,
sum(num_sites_10plus) total_sites_10Plus,
sum(num_sites_1to24) total_sites_1To24,
sum(num_sites_25plus) total_sites_25Plus,
sum(num_sites) total_sites,
sum(num_hives_1to9) total_hives_1To9,
sum(num_hives_10plus) total_hives_10Plus,
sum(num_hives_1to24) total_hives_1To24,
sum(num_hives_25plus) total_hives_25Plus,
sum(num_hives) total_hives,
sum(num_producers_hives_0) total_producers_hives_0
from district_summary)
--
-- MAIN QUERY
--
insert into mal_print_job_output(
print_job_id,
licence_type,
licence_number,
document_type,
document_json,
document_binary,
create_userid,
create_timestamp,
update_userid,
update_timestamp)
select
iop_print_job_id,
'APIARY',
null,
'APIARY_PRODUCER_DISTRICT',
json_build_object('DateTime', to_char(current_timestamp, 'fmyyyy-mm-dd hh24mi'),
'District', district_json,
'TotalProducers1To9', total_sites_1To9,
'TotalProducers10Plus', total_sites_10Plus,
'TotalProducers1To24', total_sites_1To24,
'TotalProducers25Plus', total_sites_25Plus,
'TotalNumProducers', total_sites,
'TotalColonies1To9', total_hives_1To9,
'TotalColonies10Plus', total_hives_10Plus,
'TotalColonies1To24', total_hives_1To24,
'TotalColonies25Plus', total_hives_25Plus,
'TotalNumColonies', total_hives,
'ProducersWithNoColonies', total_producers_hives_0) report_json,
null,
current_user,
current_timestamp,
current_user,
current_timestamp
from report_summary;
--
GET DIAGNOSTICS l_report_json_count = ROW_COUNT;
--
-- Update the Print Job table.
update mal_print_job set
job_status = 'COMPLETE',
json_end_time = current_timestamp,
report_json_count = l_report_json_count,
update_userid = current_user,
update_timestamp = current_timestamp
where id = iop_print_job_id;
end;
$procedure$
;
--
-- PROCEDURE: PR_GENERATE_PRINT_JSON_APIARY_PRODUCER_REGION
--
CREATE OR REPLACE PROCEDURE pr_generate_print_json_apiary_producer_region(
INOUT iop_print_job_id integer)
LANGUAGE plpgsql
AS $procedure$
declare
l_report_json_count integer default 0;
begin
--
-- Start a row in the mal_print_job table
call pr_start_print_job(
ip_print_category => 'REPORT',
iop_print_job_id => iop_print_job_id
);
--
-- Insert the JSON into the output table
with licence_summary as (
select licence_id,
site_region_id,
count(*) num_sites,
sum(site_hive_count) num_hives,
count(case when site_hive_count = 0 then 1 else null end) num_producers_hives_0
from mals_app.mal_apiary_producer_vw
group by licence_id,
site_region_id),
region_summary as (
select coalesce(rgn.region_name, 'No Region Specified') region_name,
count(case when num_sites between 1 and 9 then 1 else null end) num_sites_1to9,
count(case when num_sites >= 10 then 1 else null end) num_sites_10plus,
count(case when num_sites between 1 and 24 then 1 else null end) num_sites_1to24,
count(case when num_sites >= 25 then 1 else null end) num_sites_25plus,
count(*) num_sites,
sum(case when num_sites between 1 and 9 then num_hives else 0 end) num_hives_1to9,
sum(case when num_sites >= 10 then num_hives else 0 end) num_hives_10plus,
sum(case when num_sites between 1 and 24 then num_hives else 0 end) num_hives_1to24,
sum(case when num_sites >= 25 then num_hives else 0 end) num_hives_25plus,
sum(num_hives) num_hives,
sum(num_producers_hives_0) num_producers_hives_0
from licence_summary ls
left join mal_region_lu rgn
on ls.site_region_id = rgn.id
group by rgn.region_name),
report_summary as (
select
json_agg(json_build_object('RegionName', region_name,
'Producers1To9', num_sites_1to9,
'Producers10Plus', num_sites_10plus,
'Producers1To24', num_sites_1to24,
'Producers25Plus', num_sites_25plus,
'ProducersTotal', num_sites,
'Colonies1To9', num_hives_1to9,
'Colonies10Plus', num_hives_10plus,
'Colonies1To24', num_hives_1to24,
'Colonies25Plus', num_hives_25plus,
'ColoniesTotal', num_hives)
order by region_name) region_json,
sum(num_sites_1to9) total_sites_1To9,
sum(num_sites_10plus) total_sites_10Plus,
sum(num_sites_1to24) total_sites_1To24,
sum(num_sites_25plus) total_sites_25Plus,
sum(num_sites) total_sites,
sum(num_hives_1to9) total_hives_1To9,
sum(num_hives_10plus) total_hives_10Plus,
sum(num_hives_1to24) total_hives_1To24,
sum(num_hives_25plus) total_hives_25Plus,
sum(num_hives) total_hives,
sum(num_producers_hives_0) total_producers_hives_0
from region_summary)
--
-- MAIN QUERY
--
insert into mal_print_job_output(
print_job_id,
licence_type,
licence_number,
document_type,
document_json,
document_binary,
create_userid,
create_timestamp,
update_userid,
update_timestamp)
select
iop_print_job_id,
'APIARY',
null,
'APIARY_PRODUCER_REGION',
json_build_object('DateTime', to_char(current_timestamp, 'fmyyyy-mm-dd hh24mi'),
'Region', region_json,
'TotalProducers1To9', total_sites_1To9,
'TotalProducers10Plus', total_sites_10Plus,
'TotalProducers1To24', total_sites_1To24,
'TotalProducers25Plus', total_sites_25Plus,
'TotalNumProducers', total_sites,
'TotalColonies1To9', total_hives_1To9,
'TotalColonies10Plus', total_hives_10Plus,
'TotalColonies1To24', total_hives_1To24,
'TotalColonies25Plus', total_hives_25Plus,
'TotalNumColonies', total_hives,
'ProducersWithNoColonies', total_producers_hives_0) report_json,
null,
current_user,
current_timestamp,
current_user,
current_timestamp
from report_summary;
--
GET DIAGNOSTICS l_report_json_count = ROW_COUNT;
--
-- Update the Print Job table.
update mal_print_job set
job_status = 'COMPLETE',
json_end_time = current_timestamp,
report_json_count = l_report_json_count,
update_userid = current_user,
update_timestamp = current_timestamp
where id = iop_print_job_id;
end;
$procedure$
;
--
-- PROCEDURE: PR_GENERATE_PRINT_JSON_APIARY_SITE
--
CREATE OR REPLACE PROCEDURE pr_generate_print_json_apiary_site(
IN ip_region_name character varying,
INOUT iop_print_job_id integer)
LANGUAGE plpgsql
AS $procedure$
declare
l_report_json_count integer default 0;
begin
--
-- Start a row in the mal_print_job table
call pr_start_print_job(
ip_print_category => 'REPORT',
iop_print_job_id => iop_print_job_id
);
--
-- Insert the JSON into the output table
with site_summary as (
select
json_agg(json_build_object('RegionName', site_region_name,
'DistrictName', site_district_name,
'LicenceNumber', licence_number,
'LastName', registrant_last_name,
'FirstName', registrant_first_name,
'PrimaryPhone', registrant_primary_phone,
'Email', registrant_email_address,
'Num_Colonies', site_hive_count,
'Address', site_address,
'City', site_city,
'Registration_Date', registration_date,
'Num_Hives', licence_hive_count)
order by licence_number) licence_json,
count(licence_number) total_producers,
sum(licence_hive_count) total_hives
from mal_apiary_producer_vw
where site_region_name = ip_region_name)
--
-- MAIN QUERY
--
insert into mal_print_job_output(
print_job_id,
licence_type,
licence_number,
document_type,
document_json,
document_binary,
create_userid,
create_timestamp,
update_userid,
update_timestamp)
select
iop_print_job_id,
'APIARY',
null,
'APIARY_SITE',
json_build_object('DateTime', to_char(current_timestamp, 'fmyyyy-mm-dd hh24mi'),
'Reg', licence_json,
'Tot_Producers', total_producers,
'Tot_Hives', total_hives) report_json,
null,
current_user,
current_timestamp,
current_user,
current_timestamp
from site_summary;
--
GET DIAGNOSTICS l_report_json_count = ROW_COUNT;
--
-- Update the Print Job table.
update mal_print_job set
job_status = 'COMPLETE',
json_end_time = current_timestamp,
report_json_count = l_report_json_count,
update_userid = current_user,
update_timestamp = current_timestamp
where id = iop_print_job_id;
end;
$procedure$
;
--
-- PROCEDURE: PR_GENERATE_PRINT_JSON_DAIRY_FARM_DETAILS
--
CREATE OR REPLACE PROCEDURE pr_generate_print_json_dairy_farm_details(
IN ip_irma_number character varying,
IN ip_start_date date,
IN ip_end_date date,
INOUT iop_print_job_id integer)
LANGUAGE plpgsql
AS $procedure$
declare
l_report_json_count integer default 0;
begin
--
-- Start a row in the mal_print_job table
call pr_start_print_job(
ip_print_category => 'REPORT',
iop_print_job_id => iop_print_job_id
);
--
-- Insert the JSON into the output table
with tank_details as (
select licence_id,
json_agg(json_build_object('Date', to_char(greatest(spc1_date,scc_date,cry_date,ffa_date,ih_date), 'fmyyyy-mm-dd'),
'IBC', spc1_value,
'SCC', scc_value,
'CRY', cry_value,
'FFA', ffa_value,
'IH', ih_value)
order by greatest(spc1_date,scc_date,cry_date,ffa_date,ih_date)) test_json,
avg(spc1_value) average_spc1,
avg(scc_value) average_scc,
avg(cry_value) average_cry,
avg(ffa_value) average_ffa,
avg(ih_value) average_ih
from mal_dairy_farm_test_result
where irma_number = ip_irma_number
and greatest(spc1_date,scc_date,cry_date,ffa_date,ih_date)
between ip_start_date and ip_end_date
group by licence_id
),
licence_details as (
select
json_agg(json_build_object('IRMA_NUM', tank.irma_number,
'Status', tank.licence_status,
'LicenceHolderCompany', tank.company_name,
'LastnameFirstName', tank.registrant_last_first,
'Address', tank.address,
'City', tank.city,
'Province', tank.province,
'Postcode', tank.postal_code,
'Phone', tank.registrant_primary_phone,
'Fax', tank.registrant_fax_number,
'Cell', tank.registrant_secondary_phone,
'Email', tank.registrant_email_address,
'IssueDate', tank.issue_date_display,
'SiteAddress', tank.site_address,
'SiteCity', tank.site_city,
'SiteProvince', tank.site_province,
'TankCompany', tank.tank_company_name,
'TankModel', tank.tank_model_number,
'TankSerial', tank.tank_serial_number,
'TankCapacity', tank.tank_capacity,
'LastInspectionDate', to_char(tank.inspection_date, 'fmyyyy-mm-dd hh24mi'),
'LastInspector', tank.inspector_name,
'Insp', dtl.test_json,
'Avg_IBC', to_char(dtl.average_spc1,'fm9999990.0'),
'Avg_SCC', to_char(dtl.average_scc,'fm9999990.0'),
'Avg_CRY', to_char(dtl.average_cry,'fm9999990.0'),
'Avg_FFA', to_char(dtl.average_ffa,'fm9999990.0'),
'Avg_IH', to_char(dtl.average_ih,'fm9999990.0'))
order by licence_number) licence_json
from mal_dairy_farm_tank_vw tank
left join tank_details dtl
on tank.licence_id = dtl.licence_id
where tank.irma_number = ip_irma_number
)
--
-- MAIN QUERY
--
insert into mal_print_job_output(
print_job_id,
licence_type,
licence_number,
document_type,
document_json,
document_binary,
create_userid,
create_timestamp,
update_userid,
update_timestamp)
select
iop_print_job_id,
'DAIRY FARM',
null,
'DAIRY_FARM_DETAIL',
json_build_object('DateTime', to_char(current_timestamp, 'fmyyyy-mm-dd hh24mi'),
'DateRangeStart', to_char(ip_start_date, 'fmyyyy-mm-dd'),
'DateRangeEnd', to_char(ip_end_date, 'fmyyyy-mm-dd'),
'Client', licence_json) report_json,
null,
current_user,
current_timestamp,
current_user,
current_timestamp
from licence_details;
--
GET DIAGNOSTICS l_report_json_count = ROW_COUNT;
--
-- Update the Print Job table.
update mal_print_job set
job_status = 'COMPLETE',
json_end_time = current_timestamp,
report_json_count = l_report_json_count,
update_userid = current_user,
update_timestamp = current_timestamp
where id = iop_print_job_id;
end;
$procedure$
;
CREATE OR REPLACE PROCEDURE pr_generate_print_json_dairy_farm_quality(ip_start_date date, ip_end_date date, INOUT iop_print_job_id integer)
LANGUAGE plpgsql
AS $procedure$
declare
l_report_json_count integer default 0;
begin
--
-- Start a row in the mal_print_job table
call pr_start_print_job(
ip_print_category => 'REPORT',
iop_print_job_id => iop_print_job_id
);
--
-- Insert the JSON into the output table
with licence_summary as (
select lic.id licence_id,
lic.irma_number,
-- Consider the Company Name Override flag to determine the Licence Holder name.
case
when lic.company_name_override and lic.company_name is not null
then lic.company_name
else nullif(trim(concat(reg.first_name, ' ', reg.last_name)),'')
end derived_licence_holder_name,
reg.last_name registrant_last_name,
sum(rslt.scc_value) sum_scc_value,
count(rslt.scc_value) num_scc_results,
case when coalesce(count(rslt.scc_value), 0) >0
then sum(rslt.scc_value)/count(rslt.scc_value)
else null
end scc_average,
sum(rslt.spc1_value) sum_spc1_value,
count(rslt.spc1_value) num_spc1_results,
case when coalesce(count(rslt.spc1_value), 0) >0
then sum(rslt.spc1_value)/count(rslt.spc1_value)
else null
end spc1_average
from mal_licence lic
inner join mal_registrant reg
on lic.primary_registrant_id = reg.id
inner join mal_dairy_farm_test_result rslt
on lic.id = rslt.licence_id
where rslt.spc1_date between ip_start_date and ip_end_date
or rslt.scc_date between ip_start_date and ip_end_date
group by lic.id,
lic.irma_number,
case
when lic.company_name_override and lic.company_name is not null
then lic.company_name
else nullif(trim(concat(reg.first_name, ' ', reg.last_name)),'')
end,
reg.last_name),
json_summary as (
select
json_agg(json_build_object('IRMA_Num', irma_number,
'LicenceHolderCompany', derived_licence_holder_name,
'Lastname', registrant_last_name,
'SCC_Average', scc_average,
'IBC_Average', spc1_average)
order by irma_number) licence_json,
-- SCC
sum(sum_scc_value) tot_scc_value,
sum(num_scc_results) num_scc_results,
case when coalesce(sum(num_scc_results), 0) >0
then sum(sum_scc_value)/sum(num_scc_results)
else null
end report_scc_average,
-- SPC1
sum(sum_spc1_value) tot_spc1_value,
sum(num_spc1_results) num_spc1_results,
case when coalesce(sum(num_spc1_results), 0) >0
then sum(sum_spc1_value)/sum(num_spc1_results)
else null
end report_spc1_average
from licence_summary)
--
-- MAIN QUERY
--
insert into mal_print_job_output(
print_job_id,
licence_type,
licence_number,
document_type,
document_json,
document_binary,
create_userid,
create_timestamp,
update_userid,
update_timestamp)
select
iop_print_job_id,
'DAIRY FARM',
null,
'DAIRY_FARM_QUALITY',
json_build_object('DateTime', to_char(current_timestamp, 'fmyyyy-mm-dd hh24mi'),
'DateRangeStart', to_char(ip_start_date, 'fmyyyy-mm-dd'),
'DateRangeEnd', to_char(ip_end_date, 'fmyyyy-mm-dd'),
'Reg', json_summary.licence_json,
'SCC_Report_Avg', report_scc_average,
'IBC_Report_Avg', report_spc1_average) report_json,
null,
current_user,
current_timestamp,
current_user,
current_timestamp
from json_summary;
--
GET DIAGNOSTICS l_report_json_count = ROW_COUNT;
--
-- Update the Print Job table.
update mal_print_job set
job_status = 'COMPLETE',
json_end_time = current_timestamp,
report_json_count = l_report_json_count,
update_userid = current_user,
update_timestamp = current_timestamp
where id = iop_print_job_id;
end;
$procedure$
;
--
-- PROCEDURE: PR_GENERATE_PRINT_JSON_DAIRY_FARM_TANK_RECHECK
--
CREATE OR REPLACE PROCEDURE pr_generate_print_json_dairy_farm_tank_recheck(
IN ip_recheck_year character varying,
INOUT iop_print_job_id integer)
LANGUAGE plpgsql
AS $procedure$
declare
l_report_json_count integer default 0;
begin
--
-- Start a row in the mal_print_job table
call pr_start_print_job(
ip_print_category => 'REPORT',
iop_print_job_id => iop_print_job_id
);
--
-- Insert the JSON into the output table
with tank_details as (
select
json_agg(json_build_object('IRMA_Num', irma_number,
'LicenceHolderCompany', derived_licence_holder_name,
'YearToCheck', recheck_year,
'TankCalibrationDate', calibration_date_display,
'TankCompany', tank_company_name,
'TankModel', tank_model_number,
'TankSerialNo', tank_serial_number,
'TankCapacity', tank_capacity)) tank_json,
count(*) num_tanks
from mal_dairy_farm_tank_vw
where recheck_year = ip_recheck_year)
--
-- MAIN QUERY
--
insert into mal_print_job_output(
print_job_id,
licence_type,
licence_number,
document_type,
document_json,
document_binary,
create_userid,
create_timestamp,
update_userid,
update_timestamp)
select
iop_print_job_id,
'DAIRY FARM',
null,
'DAIRY_FARM_TANK',
json_build_object('DateTime', to_char(current_timestamp, 'fmyyyy-mm-dd hh24mi'),
'RecheckYear', ip_recheck_year,
'Reg', tank_json,
'Total_Num_Tanks', num_tanks) report_json,
null,
current_user,
current_timestamp,
current_user,
current_timestamp
from tank_details;
--
GET DIAGNOSTICS l_report_json_count = ROW_COUNT;
--
-- Update the Print Job table.
update mal_print_job set
job_status = 'COMPLETE',
json_end_time = current_timestamp,
report_json_count = l_report_json_count,
update_userid = current_user,
update_timestamp = current_timestamp
where id = iop_print_job_id;
end;
$procedure$
;
--
-- PROCEDURE: PR_GENERATE_PRINT_JSON_DAIRY_FARM_TEST_THRESHOLD
--
CREATE OR REPLACE PROCEDURE pr_generate_print_json_dairy_farm_test_threshold(
IN ip_start_date date,
IN ip_end_date date,
INOUT iop_print_job_id integer)
LANGUAGE plpgsql
AS $procedure$
declare
l_report_json_count integer default 0;
begin
--
-- Start a row in the mal_print_job table
call pr_start_print_job(
ip_print_category => 'REPORT',
iop_print_job_id => iop_print_job_id
);
--
-- Insert the JSON into the output table
with result_base as (
select lic.id licence_id,
rslt.irma_number,
coalesce(lic.company_name, nullif(trim(concat(reg.first_name, ' ', reg.last_name)),'')) derived_licence_holder_name,
coalesce(spc1_date, scc_date, cry_date, ffa_date, ih_date) derived_test_date,
rslt.spc1_infraction_flag,
case when rslt.spc1_infraction_flag then rslt.spc1_value else null end spc1_value,
rslt.scc_infraction_flag,
case when rslt.scc_infraction_flag then rslt.scc_value else null end scc_value,
rslt.cry_infraction_flag,
case when rslt.cry_infraction_flag then rslt.cry_value else null end cry_value,
rslt.ffa_infraction_flag,
case when rslt.ffa_infraction_flag then rslt.ffa_value else null end ffa_value,
rslt.ih_infraction_flag,
case when rslt.ih_infraction_flag then rslt.ih_value else null end ih_value
from mal_licence lic
inner join mal_registrant reg
on lic.primary_registrant_id = reg.id
inner join mal_dairy_farm_test_result rslt
on lic.id = rslt.licence_id
where greatest(spc1_date, scc_date, cry_date, ffa_date, ih_date)
between ip_start_date and ip_end_date
and greatest(spc1_infraction_flag, scc_infraction_flag, cry_infraction_flag, ffa_infraction_flag, ih_infraction_flag) = true
),
licence_list as (
select json_agg(json_build_object('IRMA_Num', irma_number,
'LicenceHolderCompany', derived_licence_holder_name,
'TestDate', derived_test_date,
'IBC_Result', spc1_value,
'SCC_Result', scc_value,
'CRY_Result', cry_value,
'FFA_Result', ffa_value,
'IH_Result', ih_value)
order by irma_number) licence_json
from result_base),
result_summary as (
select
count(spc1_value) spc1_count,
count(scc_value) scc_count,
count(cry_value) cry_count,
count(ffa_value) ffa_count,
count(ih_value) ih_count
from result_base)
--
-- MAIN QUERY
--
insert into mal_print_job_output(
print_job_id,
licence_type,
licence_number,
document_type,
document_json,
document_binary,
create_userid,
create_timestamp,
update_userid,
update_timestamp)
select
iop_print_job_id,
'DAIRY FARM',
null,
'DAIRY_TEST_THRESHOLD',
json_build_object('DateTime', to_char(current_timestamp, 'fmyyyy-mm-dd hh24:mi'),
'DateRangeStart', to_char(ip_start_date, 'fmMonth dd, yyyy'),
'DateRangeEnd', to_char(ip_end_date, 'fmMonth dd, yyyy'),
'Reg', list.licence_json,
'Tot_IBC_Count', smry.spc1_count,
'Tot_SCC_Count', smry.scc_count,
'Tot_CRY_Count', smry.cry_count,
'Tot_FFA_Count', smry.ffa_count,
'Tot_IH_Count', smry.ih_count) report_json,
null,
current_user,
current_timestamp,
current_user,
current_timestamp
from licence_list list
cross join result_summary smry;
--
GET DIAGNOSTICS l_report_json_count = ROW_COUNT;
--
-- Update the Print Job table.
update mal_print_job set
job_status = 'COMPLETE',
json_end_time = current_timestamp,
report_json_count = l_report_json_count,
update_userid = current_user,
update_timestamp = current_timestamp
where id = iop_print_job_id;
end;
$procedure$
;
--
-- PROCEDURE: PR_GENERATE_PRINT_JSON_LICENCE_EXPIRY
--
CREATE OR REPLACE PROCEDURE pr_generate_print_json_licence_expiry(
IN ip_start_date date,
IN ip_end_date date,
INOUT iop_print_job_id integer)
LANGUAGE plpgsql
AS $procedure$
declare
l_report_json_count integer default 0;
begin
--
-- Start a row in the mal_print_job table
call pr_start_print_job(
ip_print_category => 'REPORT',
iop_print_job_id => iop_print_job_id
);
--
-- Insert the JSON into the output table
with licence_details as (
select
json_agg(json_build_object('LicenceNumber', licence_number,
'Lastname', last_name,
'FirstName', first_name,
'LicenceHolderCompany', company_name,
'PrimaryPhone', primary_phone,
'Email', email_address,
'LicenceType', licence_type,
'IssueDate', to_char(issue_date, 'fmyyyy-mm-dd'),
'ExpiryDate', to_char(expiry_date, 'fmyyyy-mm-dd'))
order by licence_number) licence_json
from mals_app.mal_licence_summary_vw
where licence_type != 'APIARY'
and expiry_date between ip_start_date and ip_end_date
)
--
-- MAIN QUERY
--
insert into mal_print_job_output(
print_job_id,
licence_type,
licence_number,
document_type,
document_json,
document_binary,
create_userid,
create_timestamp,
update_userid,
update_timestamp)
select
iop_print_job_id,
null,
null,
'LICENCE_EXPIRY',
json_build_object('DateTime', to_char(current_timestamp, 'fmyyyy-mm-dd hh12mi'),
'DateRangeStart', to_char(ip_start_date, 'fmyyyy-mm-dd'),
'DateRangeEnd', to_char(ip_end_date, 'fmyyyy-mm-dd'),
'Reg', licence_json) report_json,
null,
current_user,
current_timestamp,
current_user,
current_timestamp
from licence_details;
--
GET DIAGNOSTICS l_report_json_count = ROW_COUNT;
--
-- Update the Print Job table.
update mal_print_job set
job_status = 'COMPLETE',
json_end_time = current_timestamp,
report_json_count = l_report_json_count,
update_userid = current_user,
update_timestamp = current_timestamp
where id = iop_print_job_id;
end;
$procedure$
;
--
-- PROCEDURE: PR_GENERATE_PRINT_JSON_LICENCE_LOCATION
--
CREATE OR REPLACE PROCEDURE pr_generate_print_json_licence_location(
IN ip_licence_type_id integer,
INOUT iop_print_job_id integer)
LANGUAGE plpgsql
AS $procedure$
declare
l_report_json_count integer default 0;
begin
--
-- Start a row in the mal_print_job table
call pr_start_print_job(
ip_print_category => 'REPORT',
iop_print_job_id => iop_print_job_id
);
--
-- Insert the JSON into the output table
with licence_summary as (
select
lic.licence_type,
json_agg(json_build_object('LicenceNumber', lic.licence_number,
'IssueDate', issue_date,
'ExpiryDate', lic.expiry_date,
'Lastname', lic.last_name,
'Firstname', lic.first_name,
'MailingAddress', lic.derived_mailing_address,
'MailingCity', lic.derived_mailing_city,
'MailingProv', lic.derived_mailing_province,
'PostCode', lic.derived_mailing_postal_code,
'Phone', lic.primary_phone,
'Email', lic.email_address,
'FeeCollected', lic.fee_collected,
'BondContinuationExpiryDate', lic.bond_continuation_expiry_date,
'SpeciesType', spec.species_code,
'SpeciesMale', spec.male_count,
'SpeciesFemale', spec.female_count)
order by lic.licence_number, spec.species_code) licence_json,
count(*) num_rows
from mal_licence_summary_vw lic
-- MALE and FEMALE accounts are relevant for FUR FARM and GAME FARM
left join mal_licence_species_vw spec
on lic.licence_id = spec.licence_id
where lic.licence_type_id = ip_licence_type_id
group by lic.licence_type)
--
-- MAIN QUERY
--
insert into mal_print_job_output(
print_job_id,
licence_type,
licence_number,
document_type,
document_json,
document_binary,
create_userid,
create_timestamp,
update_userid,
update_timestamp)
select
iop_print_job_id,
licence_type,
null,
'LICENCE_LOCATION',
json_build_object('DateTime', to_char(current_timestamp, 'fmyyyy-mm-dd hh24mi'),
'Licence_Type', licence_type,
'Licence', licence_json,
'RowCount', num_rows) report_json,
null,
current_user,
current_timestamp,
current_user,
current_timestamp
from licence_summary;
--
GET DIAGNOSTICS l_report_json_count = ROW_COUNT;
--
-- Update the Print Job table.
update mal_print_job set
job_status = 'COMPLETE',
json_end_time = current_timestamp,
report_json_count = l_report_json_count,
update_userid = current_user,
update_timestamp = current_timestamp
where id = iop_print_job_id;
end;
$procedure$
;
--
-- PROCEDURE: PR_GENERATE_PRINT_JSON_VETERINARY_DRUG_DETAILS
--
CREATE OR REPLACE PROCEDURE pr_generate_print_json_veterinary_drug_details(
INOUT iop_print_job_id integer)
LANGUAGE plpgsql
AS $procedure$
declare
l_report_json_count integer default 0;
begin
--
-- Start a row in the mal_print_job table
call pr_start_print_job(
ip_print_category => 'REPORT',
iop_print_job_id => iop_print_job_id
);
--
-- Insert the JSON into the output table
with prnt_lic as (
select
lic.licence_id,
cast(lic.licence_number as varchar) licence_number,
lic.licence_type_id,
lic.licence_type,
lic.licence_status,
lic.company_name,
trim(concat(lic.mail_address_line_1 , ' ', lic.mail_address_line_2)) address,
lic.city,
lic.province,
lic.postal_code,
case when lic.primary_phone is null
then null
else concat('(', substr(lic.primary_phone, 1, 3),
') ', substr(lic.primary_phone, 4, 3),
'-', substr(lic.primary_phone, 7, 4))
end primary_phone_display,
case when lic.secondary_phone is null
then null
else concat('(', substr(lic.secondary_phone, 1, 3),
') ', substr(lic.secondary_phone, 4, 3),
'-', substr(lic.secondary_phone, 7, 4))
end secondary_phone_display,
case when lic.fax_number is null
then null
else concat('(', substr(lic.fax_number, 1, 3),
') ', substr(lic.fax_number, 4, 3),
'-', substr(lic.fax_number, 7, 4))
end fax_number_display,
lic.email_address,
lic.issue_date,
to_char(lic.issue_date, 'FMMonth dd, yyyy') issue_date_display,
lic.expiry_date,
to_char(lic.expiry_date, 'FMMonth dd, yyyy') expiry_date_display,
lic.fee_collected,
to_char(lic.fee_collected,'FM990.00') fee_collected_display
from mal_licence_summary_vw lic
where lic.licence_type in ('VETERINARY DRUG')
and lic.licence_status = 'Active'),
chld_lic as (
select prnt_lic.licence_id parent_licence_id,
disp_lic.id child_licence_id,
disp_lic.licence_number,
disp_lictyp.id licence_type_id,
disp_lictyp.licence_type,
disp_licstat.code_name licence_status,
trim(concat(disp_lic.mail_address_line_1 , ' ', disp_lic.mail_address_line_2)) address,
disp_lic.city,
disp_lic.province,
disp_lic.postal_code,
disp_lic.expiry_date,
reg.last_name,
reg.first_name,
to_char(disp_lic.expiry_date, 'FMyyyy') expiry_date_display,
-- All Dispenser addresses should be the exact same. Choose one randomly.
row_number() over (partition by prnt_lic.licence_id order by null) row_seq,
count(*) over (partition by prnt_lic.licence_id) num_disp
from prnt_lic
left join mal_licence_parent_child_xref xref
on prnt_lic.licence_id = xref.parent_licence_id
left join mal_licence disp_lic
on xref.child_licence_id = disp_lic.id
inner join mal_licence_type_lu disp_lictyp
on disp_lic.licence_type_id = disp_lictyp.id
inner join mal_status_code_lu disp_licstat
on disp_lic.status_code_id = disp_licstat.id
inner join mal_registrant reg
on disp_lic.primary_registrant_id = reg.id
and disp_lictyp.licence_type in ('DISPENSER')
and disp_licstat.code_name = 'ACT'),
chld_smry as (
select parent_licence_id,
json_agg(json_build_object('DispLicense', licence_number,
'DispSurname', last_name,
'DispGivenName', first_name,
'DispExpiryDate', expiry_date_display)
order by licence_number) licence_json
from chld_lic
group by parent_licence_id),
vet_drug_site as (
select s.id site_id,
l.id licence_id,
s.inspector_name,
s.inspection_date,
-- There should exist only 1 site per Veterinary Drug licence
row_number() over (partition by s.licence_id order by s.create_timestamp) row_seq
from mal_licence l
inner join mal_site s
on l.id=s.licence_id
inner join mal_licence_type_lu l_t
on l.licence_type_id = l_t.id
left join mal_status_code_lu stat
on s.status_code_id = stat.id
-- Print flag included to improve performance.
where stat.code_name='ACT'
and l_t.licence_type = 'VETERINARY DRUG'
),
licence_summary as (
select
prnt_lic.licence_type,
json_agg(json_build_object('LicenceNumber', prnt_lic.licence_number,
'Status', prnt_lic.licence_status,
'LicenceHolderCompany', prnt_lic.company_name,
'Address', prnt_lic.address,
'City', prnt_lic.city,
'Province', prnt_lic.province,
'PostCode', prnt_lic.postal_code,
'Phone', prnt_lic.primary_phone_display,
'Fax', prnt_lic.secondary_phone_display,
'Call', prnt_lic.fax_number_display,
'Email', prnt_lic.email_address,
'IssueDate', prnt_lic.issue_date_display,
'ExpiryDate', prnt_lic.expiry_date_display,
'Fee', prnt_lic.fee_collected_display,
'SiteInspectionDate', site.inspection_date,
'SiteInspector', site.inspector_name,
'DispenserAddress', chld_lic.address,
'DispenserCity', chld_lic.city,
'DispenserProvince', chld_lic.province,
'DispenserPostcode', chld_lic.postal_code,
'Disp', chld_smry.licence_json)
order by prnt_lic.licence_number) licence_json
from prnt_lic
left join chld_lic
on prnt_lic.licence_id = chld_lic.parent_licence_id
and row_seq = 1
left join chld_smry
on prnt_lic.licence_id = chld_smry.parent_licence_id
left join vet_drug_site site
on prnt_lic.licence_id = site.licence_id
group by prnt_lic.licence_type)
--
-- MAIN QUERY
--
insert into mal_print_job_output(
print_job_id,
licence_type,
licence_number,
document_type,
document_json,
document_binary,
create_userid,
create_timestamp,
update_userid,
update_timestamp)
select
iop_print_job_id,
'<NAME>',
null,
'VETERINARY_DRUG_DETAILS',
json_build_object('DateTime', to_char(current_timestamp, 'fmyyyy-mm-dd hh24mi'),
'Licence_Type', licence_type,
'Client', licence_json) report_json,
null,
current_user,
current_timestamp,
current_user,
current_timestamp
from licence_summary;
--
GET DIAGNOSTICS l_report_json_count = ROW_COUNT;
--
-- Update the Print Job table.
update mal_print_job set
job_status = 'COMPLETE',
json_end_time = current_timestamp,
report_json_count = l_report_json_count,
update_userid = current_user,
update_timestamp = current_timestamp
where id = iop_print_job_id;
end;
$procedure$
;
--
-- PROCEDURE: PR_START_DAIRY_FARM_TEST_JOB
--
CREATE OR REPLACE PROCEDURE pr_start_dairy_farm_test_job(
IN ip_job_type character varying,
INOUT iop_job_id integer)
LANGUAGE plpgsql
AS $procedure$
begin
-- Start a row in the
insert into mal_dairy_farm_test_job(
job_source,
job_status,
execution_start_time,
execution_end_time,
source_row_count,
target_insert_count,
target_update_count,
create_userid,
create_timestamp,
update_userid,
update_timestamp)
values(
ip_job_type,
'RUNNING',
current_timestamp,
null,
null,
null,
null,
current_user,
current_timestamp,
current_user,
current_timestamp)
returning id into iop_job_id;
end;
$procedure$
;
--
-- PROCEDURE: PR_START_PRINT_JOB
--
CREATE OR REPLACE PROCEDURE pr_start_print_job(
IN ip_print_category character varying,
INOUT iop_print_job_id integer)
LANGUAGE plpgsql
AS $procedure$
begin
-- Start a row in the mal_print_job table
insert into mal_print_job(
job_status,
print_category,
execution_start_time,
json_end_time,
document_end_time,
certificate_json_count,
envelope_json_count,
card_json_count,
renewal_json_count,
dairy_infraction_json_count,
report_json_count,
create_userid,
create_timestamp,
update_userid,
update_timestamp)
values(
'RUNNING',
ip_print_category,
current_timestamp,
null,
null,
0,
0,
0,
0,
0,
0,
current_user,
current_timestamp,
current_user,
current_timestamp)
returning id into iop_print_job_id;
end;
$procedure$
;
--
-- PROCEDURE: PR_UPDATE_DAIRY_FARM_TEST_RESULTS
--
CREATE OR REPLACE PROCEDURE pr_update_dairy_farm_test_results(
IN ip_job_id integer,
IN ip_source_row_count integer,
INOUT iop_job_status character varying,
INOUT iop_process_comments character varying)
LANGUAGE plpgsql
AS $procedure$
declare
l_target_insert_count integer default 0;
l_target_update_count integer default 0;
begin
-- Update those columns which are derived from the inserted results.
with src as (
select *
from mal_dairy_farm_test_infraction_vw
where test_job_id = ip_job_id)
update mal_dairy_farm_test_result tgt
set
licence_id = src.licence_id,
spc1_date = src.spc1_date,
spc1_infraction_flag = src.spc1_infraction_flag,
spc1_previous_infraction_first_date = src.spc1_previous_infraction_first_date,
spc1_previous_infraction_count = src.spc1_previous_infraction_count,
spc1_levy_percentage = src.spc1_levy_percentage,
spc1_correspondence_code = src.spc1_correspondence_code,
spc1_correspondence_description = src.spc1_correspondence_description,
scc_date = src.scc_date,
scc_infraction_flag = src.scc_infraction_flag,
scc_previous_infraction_first_date = src.scc_previous_infraction_first_date,
scc_previous_infraction_count = src.scc_previous_infraction_count,
scc_levy_percentage = src.scc_levy_percentage,
scc_correspondence_code = src.scc_correspondence_code,
scc_correspondence_description = src.scc_correspondence_description,
cry_date = src.cry_date,
cry_infraction_flag = src.cry_infraction_flag,
cry_previous_infraction_first_date = src.cry_previous_infraction_first_date,
cry_previous_infraction_count = src.cry_previous_infraction_count,
cry_levy_percentage = src.cry_levy_percentage,
cry_correspondence_code = src.cry_correspondence_code,
cry_correspondence_description = src.cry_correspondence_description,
ffa_date = src.ffa_date,
ffa_infraction_flag = src.ffa_infraction_flag,
ffa_previous_infraction_first_date = src.ffa_previous_infraction_first_date,
ffa_previous_infraction_count = src.ffa_previous_infraction_count,
ffa_levy_percentage = src.ffa_levy_percentage,
ffa_correspondence_code = src.ffa_correspondence_code,
ffa_correspondence_description = src.ffa_correspondence_description,
ih_date = src.ih_date,
ih_infraction_flag = src.ih_infraction_flag,
ih_previous_infraction_first_date = src.ih_previous_infraction_first_date,
ih_previous_infraction_count = src.ih_previous_infraction_count,
ih_levy_percentage = src.ih_levy_percentage,
ih_correspondence_code = src.ih_correspondence_code,
ih_correspondence_description = src.ih_correspondence_description
from src
where tgt.id = src.test_result_id;
GET DIAGNOSTICS l_target_update_count = ROW_COUNT;
-- Determine the process status.
select count(licence_id)
into l_target_insert_count
from mal_dairy_farm_test_result
where test_job_id = ip_job_id;
iop_job_status := case
when ip_source_row_count = l_target_update_count and
ip_source_row_count = l_target_insert_count
then 'COMPLETE'
else 'WARNING'
end;
iop_process_comments := concat( 'Source count: ', ip_source_row_count,
', Insert count: ',l_target_insert_count,
', Update count: ',l_target_update_count);
-- Update the Job table.
update mal_dairy_farm_test_job
set
job_status = iop_job_status,
execution_end_time = current_timestamp,
source_row_count = ip_source_row_count,
target_insert_count = l_target_insert_count,
target_update_count = l_target_update_count,
update_userid = current_user,
update_timestamp = current_timestamp
where id = ip_job_id;
end;
$procedure$
;
|
-- init database in MySQL
drop database if exists scaling_ds_10;
create database scaling_ds_10 default charset utf8;
drop database if exists scaling_ds_11;
create database scaling_ds_11 default charset utf8;
drop database if exists scaling_ds_12;
create database scaling_ds_12 default charset utf8;
-- create table in proxy
CREATE TABLE t_order (order_id INT NOT NULL, user_id INT NOT NULL, status VARCHAR(45) NULL, PRIMARY KEY (order_id));
CREATE TABLE t_order_item (item_id INT NOT NULL, order_id INT NOT NULL, user_id INT NOT NULL, status VARCHAR(45) NULL, creation_date DATE, PRIMARY KEY (item_id));
|
--THIS FILE CONTAINS SQL WHICH CREATES TABLES AS USED BY THE MOCK WEBSTORE
-- This CLP file was created using DB2LOOK Version "11.1"
-- Timestamp: Wed Jun 14 18:19:14 2017
-- Database Name: WEBSTORE
-- Database Manager Version: DB2/LINUXX8664 Version 11.1.2.2
-- Database Codepage: 1208
-- Database Collating Sequence is: SYSTEM_819
-- Alternate collating sequence(alt_collate): null
-- varchar2 compatibility(varchar2_compat): OFF
-- You can create this database or replace with one you already have
-- Omit this line if copy-pasting into Run SQL in DSM
CONNECT TO WEBSTORE;
------------------------------------------------
-- DDL Statements for Schemas
------------------------------------------------
-- Running the DDL below will explicitly create a schema in the
-- new database that corresponds to an implicitly created schema
-- in the original database.
CREATE SCHEMA "WEBSTORE";
------------------------------------------------
-- DDL Statements for Table "WEBSTORE"."CUSTOMER"
------------------------------------------------
CREATE TABLE "WEBSTORE"."CUSTOMER" (
"C_SALUTATION" VARCHAR(5 OCTETS) ,
"C_LAST_NAME" VARCHAR(20 OCTETS) ,
"C_FIRST_NAME" VARCHAR(20 OCTETS) ,
"C_CUSTOMER_SK" INTEGER NOT NULL GENERATED BY DEFAULT AS IDENTITY (
START WITH +1
INCREMENT BY +1
MINVALUE +1
MAXVALUE +2147483647
NO CYCLE
CACHE 20
NO ORDER ) )
IN "USERSPACE1"
ORGANIZE BY ROW;
-- DDL Statements for Primary Key on Table "WEBSTORE"."CUSTOMER"
ALTER TABLE "WEBSTORE"."CUSTOMER"
ADD CONSTRAINT "CUSTOMER_PK" PRIMARY KEY
("C_CUSTOMER_SK")
NOT ENFORCED;
ALTER TABLE "WEBSTORE"."CUSTOMER" ALTER COLUMN "C_CUSTOMER_SK" RESTART WITH 221;
------------------------------------------------
-- DDL Statements for Table "WEBSTORE"."INVENTORY"
------------------------------------------------
CREATE TABLE "WEBSTORE"."INVENTORY" (
"INV_ITEM_SK" INTEGER NOT NULL GENERATED BY DEFAULT AS IDENTITY (
START WITH +1
INCREMENT BY +1
MINVALUE +1
MAXVALUE +2147483647
NO CYCLE
CACHE 20
NO ORDER ) ,
"INV_QUANTITY_ON_HAND" INTEGER NOT NULL WITH DEFAULT 0 )
IN "USERSPACE1"
ORGANIZE BY ROW;
-- DDL Statements for Primary Key on Table "WEBSTORE"."INVENTORY"
ALTER TABLE "WEBSTORE"."INVENTORY"
ADD CONSTRAINT "ITEM_PK" PRIMARY KEY
("INV_ITEM_SK")
NOT ENFORCED;
ALTER TABLE "WEBSTORE"."INVENTORY" ALTER COLUMN "INV_ITEM_SK" RESTART WITH 1001;
------------------------------------------------
-- DDL Statements for Table "WEBSTORE"."WEBSALES"
------------------------------------------------
CREATE TABLE "WEBSTORE"."WEBSALES" (
"WS_ORDER_NUMBER" INTEGER NOT NULL GENERATED BY DEFAULT AS IDENTITY (
START WITH +1
INCREMENT BY +1
MINVALUE +1
MAXVALUE +2147483647
NO CYCLE
CACHE 20
NO ORDER ) ,
"WS_CUSTOMER_SK" INTEGER ,
"WS_QUANTITY" INTEGER NOT NULL WITH DEFAULT 1 ,
"WS_ITEM_SK" INTEGER )
IN "USERSPACE1"
ORGANIZE BY ROW;
-- DDL Statements for Primary Key on Table "WEBSTORE"."WEBSALES"
ALTER TABLE "WEBSTORE"."WEBSALES"
ADD CONSTRAINT "ORDER_NUMBER_PK" PRIMARY KEY
("WS_ORDER_NUMBER")
NOT ENFORCED;
ALTER TABLE "WEBSTORE"."WEBSALES" ALTER COLUMN "WS_ORDER_NUMBER" RESTART WITH 21;
------------------------------------------------
-- DDL Statements for Table "WEBSTORE"."TESTJSON"
------------------------------------------------
CREATE TABLE "WEBSTORE"."TESTJSON" (
"JSON_FIELD" BLOB(4000) INLINE LENGTH 4000 LOGGED NOT COMPACT )
IN "USERSPACE1"
ORGANIZE BY ROW;
-- DDL Statements for Foreign Keys on Table "WEBSTORE"."WEBSALES"
ALTER TABLE "WEBSTORE"."WEBSALES"
ADD CONSTRAINT "CUSTOMER_SK" FOREIGN KEY
("WS_CUSTOMER_SK")
REFERENCES "WEBSTORE"."CUSTOMER"
("C_CUSTOMER_SK")
ON DELETE NO ACTION
ON UPDATE NO ACTION
NOT ENFORCED
TRUSTED
ENABLE QUERY OPTIMIZATION;
ALTER TABLE "WEBSTORE"."WEBSALES"
ADD CONSTRAINT "ITEM_SK" FOREIGN KEY
("WS_ITEM_SK")
REFERENCES "WEBSTORE"."INVENTORY"
("INV_ITEM_SK")
ON DELETE NO ACTION
ON UPDATE NO ACTION
NOT ENFORCED
TRUSTED
ENABLE QUERY OPTIMIZATION;
-- Omit these lines if copy-pasting into Run SQL in DSM
COMMIT WORK;
CONNECT RESET;
TERMINATE;
-- Omit these lines if copy-pasting into Run SQL in DSM
|
CREATE TABLE IF NOT EXISTS PERSON (
ID BIGINT NOT NULL AUTO_INCREMENT,
FIRST_NAME VARCHAR(255),
LAST_NAME VARCHAR(255),
EMAIL VARCHAR(255),
PRIMARY KEY (ID)
);
|
-- phpMyAdmin SQL Dump
-- version 4.9.0.1
-- https://www.phpmyadmin.net/
--
-- Хост: 127.0.0.1:3306
-- Время создания: Окт 15 2019 г., 01:42
-- Версия сервера: 8.0.15
-- Версия PHP: 7.3.9
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- База данных: `useraddress`
--
-- --------------------------------------------------------
--
-- Структура таблицы `migration`
--
CREATE TABLE `migration` (
`version` varchar(180) COLLATE utf8mb4_general_ci NOT NULL,
`apply_time` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
--
-- Дамп данных таблицы `migration`
--
INSERT INTO `migration` (`version`, `apply_time`) VALUES
('m000000_000000_base', 1571069942),
('m191013_190423_create_user_table', 1571070371),
('m191013_190551_create_post_table', 1571070372);
-- --------------------------------------------------------
--
-- Структура таблицы `post`
--
CREATE TABLE `post` (
`id` int(12) NOT NULL,
`id_user` int(11) DEFAULT NULL,
`post_index` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`country_code` varchar(2) COLLATE utf8_unicode_ci NOT NULL,
`town` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`street` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`num_build` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`num_office` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
--
-- Дамп данных таблицы `post`
--
INSERT INTO `post` (`id`, `id_user`, `post_index`, `country_code`, `town`, `street`, `num_build`, `num_office`) VALUES
(10, 13, '00236', 'su', 'Иваново', 'Олимпийская', '12г', '10'),
(11, 13, '04365', 'FR', 'Париж', 'Гонсалес', '12а', '3'),
(12, 13, '04365', 'ФР', 'Париж', 'Гонсалес', '12б', '4'),
(16, 15, '75325', 'GE', 'Днепр', 'Стрелковая12', '12', '12'),
(17, 16, '23456', 'EN', 'Львов', 'Мазепы', '89', '2'),
(18, 17, '98321', 'BE', 'Минск', 'Трамвайная', '12', '36'),
(19, 18, '57960', 'SW', 'Петропаловск', 'Вокзальная', '14', '3');
-- --------------------------------------------------------
--
-- Структура таблицы `user`
--
CREATE TABLE `user` (
`id` int(12) NOT NULL,
`username` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`auth_key` varchar(32) COLLATE utf8_unicode_ci NOT NULL,
`password_hash` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`pasw_nohash` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`password_reset_token` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`email` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`status` smallint(6) NOT NULL DEFAULT '10',
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`f_name` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
`l_name` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
`gender` smallint(3) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
--
-- Дамп данных таблицы `user`
--
INSERT INTO `user` (`id`, `username`, `auth_key`, `password_hash`, `pasw_nohash`, `password_reset_token`, `email`, `status`, `created_at`, `updated_at`, `f_name`, `l_name`, `gender`) VALUES
(13, 'user1', '<PASSWORD>', <PASSWORD>', '123456', NULL, '<EMAIL>', 10, '2019-10-14 20:05:58', '2019-10-14 20:05:58', 'Александр', 'Алгеев', 1),
(15, 'user3', 'r8OS109NciSGTg2HAXSOSLAu3ywf60cI', '$2y$13$fSbi70uM7VYn8aJ91JU0n.31qIsUemqheTnuMXlP.cWNgQLDaI1ye', '123456', NULL, '<EMAIL>', 10, '2019-10-14 20:35:18', '2019-10-14 20:35:18', 'Сергей', 'Есенин', 1),
(16, 'user4', '18xyscT3XqJYVWap_lb1Q_NdhtOskVR_', '$2y$13$hNCyPQNPWZBv1IQo6zCfguPseH7.SdBLZxHzay4ETUnNJdPboGAvq', '123456', NULL, '<EMAIL>', 10, '2019-10-14 20:36:46', '2019-10-14 20:36:46', 'Юлия', 'Золотарева', 2),
(17, 'user5', 'AUP6QSh6kU6rUs0Hg9mcwjDfou62jIPG', '$2y$13$dM64SGqrv9c/owe.pI96EOHXPk/7f.HlbN1LG4FlonpjjI8fIIlwq', '123456', NULL, '<EMAIL>', 10, '2019-10-14 20:38:42', '2019-10-14 20:38:42', 'Елена', 'Кравченко', 0),
(18, 'user6', 'uStXwrtsglt-WEO0kP746ttqW7KR-tBT', '$2y$13$8vNUr5pZB5C3trCYvmM0r.yJzTpBP0/2W0W.0NSw5Yj83QGm19Mky', '123456', NULL, '<EMAIL>', 10, '2019-10-14 21:29:59', '2019-10-14 21:29:59', 'Евгений', 'Исаев', 1);
--
-- Индексы сохранённых таблиц
--
--
-- Индексы таблицы `migration`
--
ALTER TABLE `migration`
ADD PRIMARY KEY (`version`);
--
-- Индексы таблицы `post`
--
ALTER TABLE `post`
ADD PRIMARY KEY (`id`),
ADD KEY `post_to_user` (`id_user`);
--
-- Индексы таблицы `user`
--
ALTER TABLE `user`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `username` (`username`),
ADD UNIQUE KEY `email` (`email`),
ADD UNIQUE KEY `password_reset_token` (`password_reset_token`);
--
-- AUTO_INCREMENT для сохранённых таблиц
--
--
-- AUTO_INCREMENT для таблицы `post`
--
ALTER TABLE `post`
MODIFY `id` int(12) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=20;
--
-- AUTO_INCREMENT для таблицы `user`
--
ALTER TABLE `user`
MODIFY `id` int(12) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=19;
--
-- Ограничения внешнего ключа сохраненных таблиц
--
--
-- Ограничения внешнего ключа таблицы `post`
--
ALTER TABLE `post`
ADD CONSTRAINT `post_to_user` FOREIGN KEY (`id_user`) REFERENCES `user` (`id`) ON DELETE 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 */;
|
<reponame>CGATechnologies/sctp2
DROP PROCEDURE IF EXISTS runCommunityBasedTargetingRankingOnEligibleHouseholds;
DELIMITER $$
CREATE PROCEDURE runCommunityBasedTargetingRankingOnEligibleHouseholds(IN _cbt_session_id bigint, IN _pev_session_id bigint)
COMMENT 'This procedure will rank households based on the pmt_score from UBR. Unlike `runCommunityBasedTargetingRanking` which uses the entire population set, the source of the household list will come from the pre-eligibilty verification session, whose id is passed here.'
BEGIN
CREATE TEMPORARY TABLE cbt_selection (id_as_rank int PRIMARY KEY AUTO_INCREMENT)
AS
SELECT h.pmt_score, h.ubr_code, h.household_id, _cbt_session_id AS cbt_session_id
FROM eligible_households eh
JOIN households h ON h.household_id = eh.household_id
WHERE eh.session_id = _pev_session_id
ORDER BY h.pmt_score ASC;
/* Update the selection in the household table to reflect the selection status */
UPDATE households h
INNER JOIN cbt_selection s ON s.household_id = h.household_id
SET h.cbt_rank = s.id_as_rank
,h.cbt_pmt = s.pmt_score
,h.cbt_session_id = s.cbt_session_id
,h.cbt_selection = TRUE
,h.cbt_status = 1
,h.last_cbt_ranking = CURRENT_TIMESTAMP()
;
/* Gracefully delete the temporary table */
DROP TEMPORARY TABLE IF EXISTS cbt_selection;
END $$
DELIMITER ;
|
<reponame>olgarozhdestvina/Applied-Databases<gh_stars>0
-- insert into subject (
-- subject, description
-- ) Values (
-- 'Applied Databases',
-- 'The art of SQL and NoSQL Mastery'
-- );
DELETE FROM subject
WHERE subject = 'Applied Databases';
|
-- phpMyAdmin SQL Dump
-- version 4.6.5.2
-- https://www.phpmyadmin.net/
--
-- Client : localhost
-- Généré le : Sam 13 Janvier 2018 à 20:47
-- Version du serveur : 10.1.21-MariaDB
-- Version de PHP : 7.0.15
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
--
-- Base de données : `velib`
--
-- --------------------------------------------------------
--
-- Structure de la table `resumeConso`
--
CREATE TABLE `resumeConso` (
`id` int(11) NOT NULL,
`date` datetime NOT NULL,
`duree` int(4) NOT NULL,
`nbStation` int(11) NOT NULL,
`nbStationDetecte` int(11) DEFAULT NULL,
`nbBikeMin` int(11) NOT NULL,
`nbBikeMax` int(11) NOT NULL,
`nbBikeMoyenne` int(11) NOT NULL,
`nbEBikeMin` int(11) NOT NULL,
`nbEBikeMax` int(11) NOT NULL,
`nbEBikeMoyenne` int(11) NOT NULL,
`nbFreeEDockMin` int(11) NOT NULL,
`nbFreeEDockMax` int(11) NOT NULL,
`nbFreeEDockMoyenne` int(11) NOT NULL,
`nbEDock` int(11) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Structure de la table `resumeStatus`
--
CREATE TABLE `resumeStatus` (
`id` int(11) NOT NULL,
`code` int(11) NOT NULL,
`date` datetime NOT NULL,
`duree` int(4) NOT NULL,
`nbBikeMin` int(3) NOT NULL,
`nbBikeMax` int(3) NOT NULL,
`nbBikeMoyenne` decimal(5,2) NOT NULL,
`nbBikePris` int(3) NOT NULL,
`nbBikeRendu` int(3) NOT NULL,
`nbEBikeMin` int(3) NOT NULL,
`nbEBikeMax` int(3) NOT NULL,
`nbEBikeMoyenne` decimal(5,2) NOT NULL,
`nbEBikePris` int(3) NOT NULL,
`nbEBikeRendu` int(3) NOT NULL,
`nbFreeEDockMin` int(3) NOT NULL,
`nbFreeEDockMax` int(3) NOT NULL,
`nbFreeEDockMoyenne` decimal(5,2) NOT NULL,
`nbEDock` int(3) NOT NULL,
`nbBikeOverflowMin` int(3) NOT NULL,
`nbBikeOverflowMax` int(3) NOT NULL,
`nbBikeOverflowMoyenne` decimal(5,2) NOT NULL,
`nbEBikeOverflowMin` int(3) NOT NULL,
`nbEBikeOverflowMax` int(3) NOT NULL,
`nbEBikeOverflowMoyenne` decimal(5,2) NOT NULL,
`maxBikeOverflow` int(3) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT;
-- --------------------------------------------------------
--
-- Structure de la table `signalement`
--
CREATE TABLE `signalement` (
`id` int(11) NOT NULL,
`code` int(11) NOT NULL,
`dateSignalement` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`estFonctionnel` tinyint(1) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Structure de la table `stations`
--
CREATE TABLE `stations` (
`code` int(11) NOT NULL,
`name` varchar(256) NOT NULL,
`latitude` decimal(16,14) NOT NULL,
`longitude` decimal(16,14) NOT NULL,
`type` varchar(256) NOT NULL,
`dateOuverture` date DEFAULT NULL,
`adresse` text,
`insee` int(5) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Structure de la table `status`
--
CREATE TABLE `status` (
`id` int(11) NOT NULL,
`code` int(11) NOT NULL,
`idConso` int(11) NOT NULL,
`state` varchar(32) NOT NULL,
`nbBike` int(3) NOT NULL,
`nbEBike` int(3) NOT NULL,
`nbFreeEDock` int(3) NOT NULL,
`nbEDock` int(3) NOT NULL,
`nbBikeOverflow` int(3) NOT NULL,
`nbEBikeOverflow` int(3) NOT NULL,
`maxBikeOverflow` int(3) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Structure de la table `statusConso`
--
CREATE TABLE `statusConso` (
`id` int(11) NOT NULL,
`date` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`nbStation` int(11) DEFAULT NULL,
`nbStationDetecte` int(11) DEFAULT NULL,
`nbBike` int(11) DEFAULT NULL,
`nbEbike` int(11) DEFAULT NULL,
`nbFreeEDock` int(11) DEFAULT NULL,
`nbEDock` int(11) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=FIXED;
--
-- Index pour les tables exportées
--
--
-- Index pour la table `resumeConso`
--
ALTER TABLE `resumeConso`
ADD PRIMARY KEY (`id`);
--
-- Index pour la table `resumeStatus`
--
ALTER TABLE `resumeStatus`
ADD PRIMARY KEY (`id`),
ADD KEY `date` (`date`),
ADD KEY `duree` (`duree`);
--
-- Index pour la table `signalement`
--
ALTER TABLE `signalement`
ADD PRIMARY KEY (`id`);
--
-- Index pour la table `stations`
--
ALTER TABLE `stations`
ADD PRIMARY KEY (`code`),
ADD KEY `insee` (`insee`);
--
-- Index pour la table `status`
--
ALTER TABLE `status`
ADD PRIMARY KEY (`id`),
ADD KEY `station` (`code`),
ADD KEY `idConso` (`idConso`);
--
-- Index pour la table `statusConso`
--
ALTER TABLE `statusConso`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT pour les tables exportées
--
--
-- AUTO_INCREMENT pour la table `resumeConso`
--
ALTER TABLE `resumeConso`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `resumeStatus`
--
ALTER TABLE `resumeStatus`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `signalement`
--
ALTER TABLE `signalement`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `status`
--
ALTER TABLE `status`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `statusConso`
--
ALTER TABLE `statusConso`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
|
<gh_stars>0
-- ChaFes event initialization
CREATE TABLE `event_player_ranking_$event_id` (
user_id INTEGER NOT NULL PRIMARY KEY, -- Player user ID
total_points INTEGER NOT NULL, -- Total event points
live_difficulty_id_list TEXT, -- ChaFes live_difficulty_id list or NULL if not started
exp_count INTEGER, -- Total accumulated EXP
gold_count INTEGER, -- Total accumulated G
event_point_count INTEGER, -- Total accumulated event points
prize_bronze INTEGER, -- Bronze prize count
prize_silver INTEGER, -- Silver prize count
prize_gold INTEGER -- Gold prize count
);
CREATE TABLE `event_song_ranking_$event_id` (
user_id INTEGER NOT NULL PRIMARY KEY, -- Player user ID
high_score INTEGER NOT NULL, -- Highest score
live_difficulty_id INTEGER NOT NULL, -- Live which has highest score
deck_snapshot_id INTEGER NOT NULL, -- Snapshot of used deck for this song
score INTEGER NOT NULL, -- Live score
perfect INTEGER NOT NULL, -- Perfect count
great INTEGER NOT NULL, -- Great count
good INTEGER NOT NULL, -- Good count
bad INTEGER NOT NULL, -- Bad count
miss INTEGER NOT NULL -- Miss count
);
|
<reponame>Flo-Slv/CS50-2022
SELECT movies.title, ratings.rating FROM movies JOIN ratings ON movies.id=ratings.movie_id WHERE movies.year=2010 ORDER BY ratings.rating DESC, movies.title;
|
USE demographics
GO
IF OBJECT_ID(N'[dbo].[usp_LoadFactStaff]','P') IS NOT NULL
DROP PROCEDURE [dbo].[usp_LoadFactStaff]
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [dbo].[usp_LoadFactStaff]
AS
BEGIN
/* Call usp_LoadFactStaff to insert into the school year dimension table */
/* any new school years found in the latest batch in the staff */
/* demographics staging table. */
SET NOCOUNT ON;
INSERT INTO FactStaff
(yearID,schoolID,genderID,raceID,hispanicID,[cert])
SELECT yearID, schoolID, genderID, raceID, hispanicID, [cert]
FROM StageStaffDemographics staff
JOIN DimSchoolYear schoolYear ON schoolYear.schoolYear9 = staff.schoolYear
JOIN DimSchool school ON school.buildingNumber = staff.bldgn
JOIN DimGender gender ON gender.genderCode = staff.sex
JOIN DimRace race ON race.raceCode = staff.race
JOIN DimHispanic hispanic ON hispanic.isHispanic = CASE WHEN staff.hispanic = 'Y' THEN 1 ELSE 0 END
WHERE staff.loadDatetime =
(SELECT MAX(loadDatetime)
FROM StageStaffDemographics)
AND [cert] IS NOT NULL
AND NOT EXISTS
(SELECT *
FROM FactStaff fs
WHERE fs.[cert] = staff.[cert])
DECLARE @rowsInserted INT;
SELECT @rowsInserted = @@ROWCOUNT;
SELECT @rowsInserted AS RowsInserted;
END
GO
GRANT EXECUTE ON usp_LoadFactStaff
TO demographics_user;
GO
|
SELECT m_name AS '이름', SUM(d_category * d_ammount) AS '잔액' from `deposit_history` where t_team = 'NON' GROUP BY m_name;
|
<reponame>cviorel/automation<filename>src/configurations/SQLQueries/CycleErrorLogGetScript.sql
SELECT [job_id], [name]
FROM [msdb].[dbo].[sysjobs]
WHERE name = 'Cycle Error Log'
|
/*
Notes:
1) First 2 attributes are included so lineage tracing and source primary key
identification is clearly contained in the prospective extract file.
2) The output IDENTITY_CONTEXT clearly indicates the primary source of the
extract file.
3) The output SOURCE_PK will always contain the column(s) which identify
the primary key for the source system of record. In cases where source
keys include more than one element they should be sequentially numbered,
i.e. SOURCE_PK_01, SOURCE_PK_02,etc
4) In instances where there is no equivalent concept in the source table(s),
simply include a "NULL as MISSING_COLUMN_NAME" in the SQL so it it clear
that the omission is not an oversight.
5) The structure will largely resemble the structure of the target table and
wherever practical contain all source elements needed to populate the
target, excluding OMOP metadata keys which will be looked up during the
Staging to Persistent Store ETL operation.
6) Single value sub-selects are recommended for external lookups vs. lots of
joins. Makes everything easier to read. Additionally, all single element
sub selects must include TOP 1 for SQLServer or ROWNUM < 2 for Oracle instances.
This simply protects against SQLCODE -1427 in cases where the source data
may not be properly constrained.
7) Always include a WHERE clause even if it only validates the source
PK is not null.
8) Include as much commenting as needed to clearly express the work being
performed.
9) This script is to be run and is written to be run in MS SQL Server and will generate errors if run in other DB platforms
Non-measurement observations/Assessments
Questions:
1) Mapping:
If the Response to the Assessment Question is returned in the field Observe.Obs_Choice
--> Get response from ObsDef where ObsDef.Obd_id = Observe.Obs_Choice
--> Then - it gets complicated -- see data
If the Response is not in the Observe.Obs_choice field,
-- Response will be in the Obs_String or Obs_float field (and will be returned from the function Mosaiq.dbo.fn_GetResults)
-- A Date response may represented in the float field, but the Results-function will return a date (Obs_results)
2) Patient Alerts -- pre-2.5 stored in Observations (and so included in this dataset) - post-2.5 in PatAlert (not included in this data set)
-- Inigo/RS21 should we include Pat Alerts?
3) Need to review Observations that fell into the UNKNOWN Bucket to see whether to include them
Notes: Need help with mapping to OMOP
confidence level 60% -- non-standard assessments
Addressed NULLS 01/12/22
EXECUTION CHECK SUCCESSFUL -- DAH 01/12/2022
Ask Inigo about setting unique key
-- 2/10/2022 INIGO: I decided to present the Assessment Name, Assessment Item names, Sequence # of Item names within an Assessment, and patient responses in a variety of ways to see what works for RS21.
Assessment Name - in QUALIFIER_CONCEPT_ID
Item Label - in VALUE_AS_CONCEPT_ID, OBS_DESC (field added by us), OBS_RESULTS (field added by us; concatenated response)
Patient response/Answer (obd.label) - in VALUE_AS_NUMBER for numeric values (eg. Pain-level = 5)
Patient response/Answer (obd.description) - in VALUE_AS_STRING for character values (eg. Pain-level = 'Moderate', 'Able to perform daily activities with rest periods')
Patient response/Answer (obx.obs_float) - in VALUE_AS DATETIME for date responses (stored in MQ as FLOAT and must be retrieved using MQ fn_GetObsResult() using obx_id as parameter
Sequence # of Assessment Item: - in QUALIFIER_SOURCE_VALUE, OBS_LABEL (field added by us; Concatenate Seq # & Item-label)
Sort output file as example of how data would look in assessment form: Assessment-Name, Patient-ID, Observation-DtTm, Label-Seq#
NOTE that only assessment items having responses for a given a given patient are returned. The entire assessment is NOT represented for each patient.
Debbie
*/
SET NOCOUNT ON;
SELECT '|IDENTITY_CONTEXT|SOURCE_PK|OBSERVATION_ID|PERSON_ID|OBSERVATION_CONCEPT_ID|OBSERVATION_DATE|OBSERVATION_DATETIME|OBSERVATION_TYPE_CONCEPT_ID|VALUE_AS_NUMBER|VALUE_AS_STRING|VALUE_AS_CONCEPT_ID|QUALIFIER_CONCEPT_ID|UNIT_CONCEPT_ID|PROVIDER_ID|VISIT_OCCURRENCE_ID|VISIT_DETAIL_ID|OBSERVATION_SOURCE_VALUE|UNIT_SOURCE_VALUE|QUALIFIER_SOURCE_VALUE|OBSERVATION_EVENT_ID|OBS_EVENT_FIELD_CONCEPT_ID|VALUE_AS_DATETIME|ASSESSMENT_NAME|ASSESSMENT_SEQ|ASSESSMENT_QUESTION|ASSESSMENT_ANSWER|Modified_DtTm';
SELECT 'MosaiqAdmin OBSERVE(OMOP_OBSERVATION)' AS IDENTITY_CONTEXT
,Assessment.OBX_ID AS SOURCE_PK
,Assessment.OBX_ID AS OBSERVATION_ID
,Assessment.pat_id1 AS PERSON_ID
,'' AS OBSERVATION_CONCEPT_ID
,isNULL(FORMAT(Assessment.Obs_DtTm,'yyyy-MM-dd 00:00:00'), '') AS OBSERVATION_DATE
,isNULL(FORMAT(Assessment.Obs_DtTm,'yyyy-MM-dd HH:mm:ss'), '') AS OBSERVATION_DATETIME
,'EHR Assessment' AS OBSERVATION_TYPE_CONCEPT_ID
,REPLACE(iSNULL(Assessment.Value_AS_NUMBER,''),0,'') AS VALUE_AS_NUMBER --ANSWER to the Assessment Item
,isNULL(Assessment.VALUE_AS_STRING,'') AS VALUE_AS_STRING --ANSWER to the Assessment Item
,'' AS VALUE_AS_CONCEPT_ID -- Question
,'' AS QUALIFIER_CONCEPT_ID -- Name of Assessment -- there will be many Item_Labels associated with each Assessment Name
,'' AS UNIT_CONCEPT_ID
,'' AS PROVIDER_ID -- providers aren't associated with assessments
,'' AS VISIT_OCCURRENCE_ID -- assessment not necessarily taken when patient has an appt (could be over phone; mail; email)
,'' AS VISIT_DETAIL_ID -- Not linked to a particular appointment
,'' AS OBSERVATION_SOURCE_VALUE
,'' AS UNIT_SOURCE_VALUE
,'' AS QUALIFIER_SOURCE_VALUE -- label of the Assessment Item (Items should appear in the order of View_Seq when presented as part of the Assessment as a whole)
,'' AS OBSERVATION_EVENT_ID
,'' AS OBS_EVENT_FIELD_CONCEPT_ID
,'' AS VALUE_AS_DATETIME -- if response is a date, it is stored as a float and must be retrieved using MQ FN
,isNULL(Assessment.Assessment_Label,'') AS ASSESSMENT_NAME
,isNULL(Assessment.View_Seq,'') AS ASSESSMENT_SEQ -- Seq#/Order of QUESTIONS
,isNULL(Assessment.Item_label,'') AS ASSESSMENT_QUESTION
,Assessment.VALUE_AS_STRING AS ASSESSMENT_ANSWER
,isNULL(Format(Assessment.Modified_DtTm,'yyyy-MM-dd HH:mm:ss'),'') AS Modified_DtTm
from MosaiqAdmin.dbo.Ref_Observation_Assessments Assessment
WHERE year(Assessment.obs_DtTm) = '2019'
and (Assessment.Assessment_Label like '%TCP%' or Assessment.Assessment_Label = 'Pain Assessment')
ORDER BY
Assessment.Assessment_Label
,Assessment.Pat_ID1
,Assessment.Obs_DtTm
,Assessment.View_Seq
;
|
<gh_stars>1-10
-- =============================================
-- Author: (C<NAME>; <NAME>)
-- Create date: 2014-07-10
-- Updates Infos in JobExecution
-- Changes:
-- 2016-01-21, CS: Added Parameter @IsFinal, if not 1 no end time is set
-- =============================================
CREATE PROCEDURE [etljob].[prc_UpdateJobExecution] @JobExecutionID AS INT
,@IsFinal AS SMALLINT = 1
AS
SET NOCOUNT ON
UPDATE Ex
SET Ex.EndTime = CASE @IsFinal
WHEN 1
THEN IsNull(Ex.EndTime, GetDate())
ELSE NULL
END
,Ex.Failed = STATUS.Failed
,Ex.CriticalFailed = STATUS.CriticalFailed
,Ex.Total = STATUS.Total
,Ex.Started = STATUS.Started
,Ex.Finished = STATUS.Finished
,Ex.CriticalAbnormal = STATUS.CriticalAbnormal
,Ex.Abnormal = STATUS.Abnormal
FROM [etljob].vw_JobExecution Ex
CROSS JOIN (
SELECT Sum(Failed) AS Failed
,Sum(Total) AS Total
,Sum(Started) AS Started
,Sum(Finished) AS Finished
,Sum(CriticalFailed) AS CriticalFailed
,Sum(CriticalAbnormal) AS CriticalAbnormal
,Sum(Abnormal) AS Abnormal
FROM [etljob].[fn_StatusJobSteps](@JobExecutionID)
) AS STATUS
WHERE Ex.JobExecutionID = @JobExecutionID
|
<reponame>ntiufalara/openerp7
--
-- PostgreSQL database dump
--
SET statement_timeout = 0;
SET client_encoding = 'UTF8';
SET standard_conforming_strings = off;
SET check_function_bodies = false;
SET client_min_messages = warning;
SET escape_string_warning = off;
SET search_path = public, pg_catalog;
SET default_tablespace = '';
SET default_with_oids = false;
--
-- Name: companies; Type: TABLE; Schema: public; Owner: fp; Tablespace:
--
CREATE TABLE companies (
id integer NOT NULL,
company_name character varying
);
ALTER TABLE public.companies OWNER TO fp;
--
-- Name: companies_id_seq; Type: SEQUENCE; Schema: public; Owner: fp
--
CREATE SEQUENCE companies_id_seq
START WITH 1
INCREMENT BY 1
NO MAXVALUE
NO MINVALUE
CACHE 1;
ALTER TABLE public.companies_id_seq OWNER TO fp;
--
-- Name: companies_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: fp
--
ALTER SEQUENCE companies_id_seq OWNED BY companies.id;
--
-- Name: companies_id_seq; Type: SEQUENCE SET; Schema: public; Owner: fp
--
SELECT pg_catalog.setval('companies_id_seq', 3, true);
--
-- Name: persons; Type: TABLE; Schema: public; Owner: fp; Tablespace:
--
CREATE TABLE persons (
id integer NOT NULL,
company_id integer,
person_name character varying
);
ALTER TABLE public.persons OWNER TO fp;
--
-- Name: persons_id_seq; Type: SEQUENCE; Schema: public; Owner: fp
--
CREATE SEQUENCE persons_id_seq
START WITH 1
INCREMENT BY 1
NO MAXVALUE
NO MINVALUE
CACHE 1;
ALTER TABLE public.persons_id_seq OWNER TO fp;
--
-- Name: persons_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: fp
--
ALTER SEQUENCE persons_id_seq OWNED BY persons.id;
--
-- Name: persons_id_seq; Type: SEQUENCE SET; Schema: public; Owner: fp
--
SELECT pg_catalog.setval('persons_id_seq', 4, true);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: fp
--
ALTER TABLE ONLY companies ALTER COLUMN id SET DEFAULT nextval('companies_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: fp
--
ALTER TABLE ONLY persons ALTER COLUMN id SET DEFAULT nextval('persons_id_seq'::regclass);
--
-- Data for Name: companies; Type: TABLE DATA; Schema: public; Owner: fp
--
COPY companies (id, company_name) FROM stdin;
1 Bigees
2 Organi
3 Boum
\.
--
-- Data for Name: persons; Type: TABLE DATA; Schema: public; Owner: fp
--
COPY persons (id, company_id, person_name) FROM stdin;
1 1 Fabien
2 1 Laurence
3 2 Eric
4 3 Ramsy
\.
--
-- Name: companies_pkey; Type: CONSTRAINT; Schema: public; Owner: fp; Tablespace:
--
ALTER TABLE ONLY companies
ADD CONSTRAINT companies_pkey PRIMARY KEY (id);
--
-- Name: persons_company_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: fp
--
ALTER TABLE ONLY persons
ADD CONSTRAINT persons_company_id_fkey FOREIGN KEY (company_id) REFERENCES companies(id);
--
-- PostgreSQL database dump complete
--
|
alter table medicine_sale
add constraint medicine_sale_fk2 foreign key (staff_id) references staff (id);
|
<filename>db/src/main/resources/db/migration/V20180302140511__add_auditing_to_referral.sql<gh_stars>100-1000
ALTER TABLE referral
ADD COLUMN creation_date TIMESTAMP;
ALTER TABLE referral
ADD COLUMN last_modified_date TIMESTAMP;
ALTER TABLE referral
ADD COLUMN created_by VARCHAR(100);
ALTER TABLE referral
ADD COLUMN last_modified_by VARCHAR(100);
|
<gh_stars>10-100
"""
Table: Employees
+---------------+---------+
| Column Name | Type |
+---------------+---------+
| employee_id | int |
| employee_name | varchar |
| manager_id | int |
+---------------+---------+
employee_id is the primary key for this table.
Each row of this table indicates that the employee with ID employee_id and name employee_name reports his work to his/her direct manager with manager_id
The head of the company is the employee with employee_id = 1.
Write an SQL query to find employee_id of all employees that directly or indirectly report their work to the head of the company.
The indirect relation between managers will not exceed 3 managers as the company is small.
Return result table in any order without duplicates.
The query result format is in the following example:
Employees table:
+-------------+---------------+------------+
| employee_id | employee_name | manager_id |
+-------------+---------------+------------+
| 1 | Boss | 1 |
| 3 | Alice | 3 |
| 2 | Bob | 1 |
| 4 | Daniel | 2 |
| 7 | Luis | 4 |
| 8 | Jhon | 3 |
| 9 | Angela | 8 |
| 77 | Robert | 1 |
+-------------+---------------+------------+
Result table:
+-------------+
| employee_id |
+-------------+
| 2 |
| 77 |
| 4 |
| 7 |
+-------------+
The head of the company is the employee with employee_id 1.
The employees with employee_id 2 and 77 report their work directly to the head of the company.
The employee with employee_id 4 report his work indirectly to the head of the company 4 --> 2 --> 1.
The employee with employee_id 7 report his work indirectly to the head of the company 7 --> 4 --> 2 --> 1.
The employees with employee_id 3, 8 and 9 don't report their work to head of company directly or indirectly.
Solution:
Since the max recursion depth is 3, we can select from 3 employee tables.
"""
SELECT e1.employee_id
FROM Employees e1,
Employees e2,
Employees e3
WHERE e1.manager_id = e2.employee_id
AND e2.manager_id = e3.employee_id
AND e3.manager_id = 1
AND e1.employee_id != 1
|
-- file:json.sql ln:497 expect:true
SELECT jsa FROM json_populate_record(NULL::jsrec, '{"jsa": null}') q
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.