sql
stringlengths
6
1.05M
<filename>db/db/3table/upright/FM_REGION.sql drop table if exists FM_REGION; /*==============================================================*/ /* Table: FM_REGION */ /*==============================================================*/ create table FM_REGION ( REGION varchar(...
------------DDL for VR documents----------- CREATE TABLE egpt_vacancy_remission_docs ( vacancyremission bigint, document bigint ); ----inerts into application type------------ insert into egpt_application_type values(nextval('seq_egpt_application_type'),'VACANCY_REMISSION','VACANCYREMISSION',7,'Vacancy Remission',n...
<reponame>navikt/tiltaksgjennomforing-backend alter table avtale_innhold add column manedslonn100pst integer;
SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE FUNCTION [dbo].[DaysInAMonth] ( @pDate DATETIME ) RETURNS INT AS BEGIN RETURN CASE WHEN MONTH(@pDate) IN (1, 3, 5, 7, 8, 10, 12) THEN 31 WHEN MONTH(@pDate) IN (4, 6, 9, 11) THEN 30 ELSE CASE WHEN (YEAR(@pDate) % 4 = 0 AND...
<reponame>sdslabs/leaderboard SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; CREATE TABLE IF NOT EXISTS `access_tokens` ( `userid` varchar(255) NOT NULL, `service` varchar(255) NOT NULL, `access_token` varchar(255) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; CREATE TABLE IF NOT EXISTS `sco...
<reponame>CSCfi/antero<gh_stars>1-10 USE [VipunenTK] GO IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[f_K2_17_ulkomaalaistaustaiset_opisk_ja_tutk]') AND type in (N'U')) ALTER TABLE [dbo].[f_K2_17_ulkomaalaistaustaiset_opisk_ja_tutk] DROP CONSTRAINT IF EXISTS [f_K2_17_ulkomaalaistaustaiset_o...
drop table if exists `ods_socialnetwork_model_runtime_origin_log`; create table `ods_socialnetwork_model_runtime_origin_log` ( `id` bigint not null auto_increment comment 'unique id for db', `model_id` bigint not null comment 'unique id for each model', `round` int not null ...
CREATE SCHEMA IF NOT exists extensions; CREATE EXTENSION IF NOT EXISTS pg_stat_statements with schema extensions; CREATE EXTENSION IF NOT EXISTS uuid-ossp with schema extensions; CREATE EXTENSION IF NOT EXISTS pgcrypto with schema extensions; CREATE EXTENSION IF NOT EXISTS postgis with schema extensions; CREATE EXTENSI...
/* Navicat Premium Data Transfer Source Server : ultilmateshell Source Server Type : SQLite Source Server Version : 3017000 Source Schema : main Target Server Type : SQLite Target Server Version : 3017000 File Encoding : 65001 Date: 05/09/2021 14:30:39 */ -- ------------------...
<gh_stars>0 INSERT INTO table1 (name) VALUES ('nagaitis'); INSERT INTO table1 (name) VALUES ('messi'); INSERT INTO table1 (name) VALUES ('<NAME>'); INSERT INTO table1 (name) VALUES ('<NAME>'); INSERT INTO table1 (name) VALUES ('<NAME>'); INSERT INTO table1 (name) VALUES ('<NAME>'); INSERT INTO table1 (name) VALUES ('kr...
CREATE TABLE role ( id SERIAL PRIMARY KEY, name VARCHAR(20) ); CREATE TABLE users ( id SERIAL PRIMARY KEY, name VARCHAR(20), login VARCHAR(20) UNIQUE , email VARCHAR (50) UNIQUE , createDate TIMESTAMP, role_id INTEGER REFERENCES role(id) );
<gh_stars>0 -- Generation time: Fri, 23 Nov 2018 12:16:20 +0000 -- Host: mysql.hostinger.ro -- DB name: u574849695_21 /*!40030 SET NAMES UTF8 */; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@...
/****** Object: Table [dbo].[T_Dataset_Info] ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [dbo].[T_Dataset_Info]( [Dataset_ID] [int] NOT NULL, [ScanCountMS] [int] NOT NULL, [ScanCountMSn] [int] NOT NULL, [TIC_Max_MS] [real] NULL, [TIC_Max_MSn] [real] NULL, [BPI_Max_MS] [real] ...
use [ProyectoBD] DECLARE @xmlData XML SET @xmlData = ( SELECT * FROM OPENROWSET(BULK 'C:\Users\eastorga\Documents\GitHub\Tarea-Programada-BD-1-3-\DatosTarea2.xml', SINGLE_BLOB) AS xmlData ); INSERT INTO dbo.Departamentos(ID, NombreDep) SELECT T.Item.value('@Id', 'INT'), T.Item.value('@Nombre', 'VARCHAR...
<filename>scripts/redash_PGSQL_queries/query_49.sql /* Name: <NAME> Data source: 1 Created By: admin Last Update At: 2021-07-02T17:18:35.149Z */ SELECT key || ': ' || r.cell_id as series, r.cycle_index, r.test_time, value FROM (SELECT cell_id, trunc(cycle_index,0) as cycle_index, test_time, json_build_obje...
--test implicit type conversion of nchar type create table nchar_conversion( col1 datetime, col2 date, col3 time, col4 timestamp, col5 double, col6 float, col7 numeric, col8 bigint, col9 int, col10 short, col11 monetary, col12 bit(50), col13 bit varying, col14 char(30), col15 varchar, col16 nchar(30)...
-- @testpoint:opengauss关键字operation(非保留),作为用户名 --关键字explain作为用户名不带引号,创建成功 drop user if exists operation; CREATE USER operation PASSWORD '<PASSWORD>'; drop user operation; --关键字explain作为用户名加双引号,创建成功 drop user if exists "operation"; CREATE USER "operation" PASSWORD '<PASSWORD>'; drop user "operation"; --关键字explain作为...
<filename>Recepies/UPDATE_CONTRAGENTS.sql --Find Contragent ID SELECT LEGAL_NAME, ID_CONTRAGENT, CONTRAGENT_COL FROM FINANCE.CC_CONTRAGENTS WHERE LEGAL_NAME LIKE '%MOSH%' --Picker SELECT * FROM FINANCE.CC_CONTRAGENTS WHERE LEGAL_NAME LIKE '%MOSH%' OR LEGAL_NAME LIKE '%SOFT%' ORDER BY CONTRAGENT_COL; --update contrage...
<gh_stars>0 INSERT INTO burgers (burger_name) VALUES ('Mushroom & Swiss'); INSERT INTO burgers (burger_name) VALUES ('Southwest'); INSERT INTO burgers (burger_name) VALUES ('Buffalo Chicken');
-- phpMyAdmin SQL Dump -- version 4.8.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Dec 11, 2019 at 06:00 AM -- Server version: 10.1.37-MariaDB -- PHP Version: 7.3.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
PRAGMA foreign_keys=OFF; BEGIN TRANSACTION; CREATE TABLE IF NOT EXISTS "migrations" ("id" integer not null primary key autoincrement, "migration" varchar not null, "batch" integer not null); INSERT INTO "migrations" VALUES(130,'2017_02_04_142210_create_users_table',1); INSERT INTO "migrations" VALUES(131,'2017_02_05_06...
<filename>database/manager 12-09-2017.sql -- phpMyAdmin SQL Dump -- version 4.6.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Sep 12, 2017 at 01:52 AM -- Server version: 5.7.14 -- PHP Version: 5.6.25 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHAR...
select * from ScaCompanyDB..MP750100 where MP75012 = '2020-10-12' --which work centres are tied to which product group? goal is to try to see planned vs actual by day. test for rotomoulding as i know what the plan per day is
-- phpMyAdmin SQL Dump -- version 5.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: May 13, 2020 at 05:33 PM -- Server version: 10.4.11-MariaDB -- PHP Version: 7.2.27 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
 /****** Object: StoredProcedure [dbo].[app_PatronReview_GetAll] Script Date: 01/05/2015 14:43:24 ******/ --Create the Select Proc CREATE PROCEDURE [dbo].[app_PatronReview_GetAll] @pid INT = 0 AS SELECT * FROM [PatronReview] WHERE @PID = PID
create TYPE campaign_history_typ as object ( campaign_id VARCHAR2(50), emails_sent integer, send_time DATE, --VARCHAR2(50), recipient_list_id VARCHAR2(2000), template_id integer, subject_line varchar2(100), from_name varchar2(200), opens ...
/* Create index for countStakeholders query optimization */ BEGIN; CREATE INDEX "stake_orders_sAddress" ON stake_orders ("senderId"); COMMIT;
BEGIN; INSERT INTO samples (name) VALUES ('Sample1'); COMMIT;
<filename>migrations/2021-06-10-184018_user/up.sql CREATE TABLE users ( id serial PRIMARY KEY, name varchar(256) NOT NULL );
<filename>business-services/egf-master/src/main/resources/db/migration/dev/V20170629150224__bankaccount_data.sql INSERT INTO egf_bankaccount (id, branchid, glcodeid, fundid, accountnumber, accounttype, description, active, payto, type, createdby, createddate, lastmodifiedby, lastmodifieddate, version, tenantid) VALUES ...
<filename>tables/_rdebug_stats.sql DROP TABLE IF EXISTS _rdebug_stats; CREATE TABLE _rdebug_stats ( worker_id bigint unsigned not null, routine_schema varchar(64) not null, routine_name varchar(64) not null, statement_id int unsigned not null, count_visits bigint unsigned not null, PRIMARY KEY (worker_...
CREATE OR REPLACE FUNCTION pgl_ddl_deploy.set_tag_defaults() RETURNS trigger LANGUAGE plpgsql AS $function$ BEGIN IF NEW.create_tags IS NULL THEN NEW.create_tags = CASE WHEN NEW.include_only_repset_tables THEN pgl_ddl_deploy.standard_repset_only_tags() ELSE pgl_ddl_deploy.standard_create_tags() END; END IF; IF NE...
INSERT INTO burgers (burger_name, devoured) VALUES ("Cheeseburger", false), ("<NAME>", true), ("Clubhouse Steak", false);
select (select nombre_completo from cartera.cliente where id=m.id_cliente) as nombre_completo_cliente, m.numero_comprobante, m.fecha_emision, (select nombre from inventario.producto where id=d.id_producto) as nombre_producto, d.costo_unitario, (select codigo from inventario.producto where id=d.id_producto)...
-- phpMyAdmin SQL Dump -- version 4.1.14 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Jun 08, 2016 at 11:02 AM -- Server version: 5.6.17 -- PHP Version: 5.5.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;...
INSERT INTO solution_type(solution_type_id, description, title) VALUES (1, 'Builder', 'Builder'); INSERT INTO solution_type(solution_type_id, description, title) VALUES (2, 'Bricklayer', 'Bricklayer'); INSERT INTO solution_type(solution_type_id, description, title) VALUES (3, 'Carpet Fitter', 'Carpet Fitter'); INSER...
-- noinspection SqlWithoutWhere DELETE FROM game; ALTER TABLE game DROP CONSTRAINT game_white_token_key; ALTER TABLE game DROP CONSTRAINT game_black_token_key; ALTER TABLE game RENAME white_token TO white_player; ALTER TABLE game RENAME black_token TO black_player; ALTER TABLE game ADD CONSTRAI...
SET MODE MySQL; --SET IGNORECASE TRUE;
select 'Altering block_cache' as comment; CREATE INDEX IF NOT EXISTS block_cache_timestamp_idx ON block_cache(block_timestamp); CREATE INDEX IF NOT EXISTS block_cache_tx_count_idx ON block_cache(tx_count);
-- phpMyAdmin SQL Dump -- version 3.1.3.1 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Dec 08, 2015 at 12:49 PM -- Server version: 5.1.33 -- PHP Version: 5.2.9 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER...
# This is a fix for InnoDB in MySQL >= 4.1.x # It "suspends judgement" for fkey relationships until are tables are set. SET FOREIGN_KEY_CHECKS = 0; -- --------------------------------------------------------------------- -- admision -- --------------------------------------------------------------------- DROP TABLE ...
<reponame>decibel/extension_drop<filename>pgxntool/test/pgxntool/finish.sql SELECT finish(); \echo # TRANSACTION INTENTIONALLY LEFT OPEN!
-- @ : pooling peptide sequences ... DROP TABLE IF EXISTS mzIdentML_Peptide; CREATE TABLE mzIdentML_Peptide (UNIQUE(`index`)) ENGINE=MyISAM SELECT min(pep.index) as `index`, bp.sequence, bp.modifier FROM best_peptides_for_quantification bp JOIN peptide pep USING (sequence, modifier) ...
<reponame>opengauss-mirror/Yat<filename>openGaussBase/testcase/SQL/DDL/Index/Opengauss_Function_DDL_Index_Case0255.sql<gh_stars>0 -- @testpoint: 验证各种分区表操作对全局分区表索引的破坏能力 -- create table test_ugi_255 drop table if exists test_ugi_255; create table test_ugi_255 ( c_id integer not null, c_name varchar(16) default '...
<filename>cctv.sql -- phpMyAdmin SQL Dump -- version 4.2.12deb2+deb8u2 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Feb 21, 2020 at 02:39 AM -- Server version: 5.5.60-0+deb8u1 -- PHP Version: 5.6.40-0+deb8u8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD...
-- phpMyAdmin SQL Dump -- version 4.7.0 -- https://www.phpmyadmin.net/ -- -- 主機: localhost -- 產生時間: 2018 年 01 月 18 日 15:10 -- 伺服器版本: 5.5.56-MariaDB -- PHP 版本: 7.0.25 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARA...
create or replace package body com_fos_progress_bar as -- ============================================================================= -- -- FOS = FOEX Open Source (fos.world), by FOEX GmbH, Austria (www.foex.at) -- -- This plug-in provides you with a highly customisable Progress Bar item. -- -- License: MIT -- --...
-- MySQL dump 10.13 Distrib 8.0.21, for Linux (x86_64) -- -- Host: localhost Database: Travel -- ------------------------------------------------------ -- Server version 8.0.21-0ubuntu0.20.04.4 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET...
<reponame>luckymeluckyyes/CodeIgniter9 -- phpMyAdmin SQL Dump -- version 4.8.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Feb 14, 2019 at 06:56 AM -- Server version: 10.1.34-MariaDB -- PHP Version: 7.2.7 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET ti...
-- Initialization code for Species Autocomplete. -- For use in SQLite 3. -- Drop old tables. DROP TABLE IF EXISTS names; DROP TABLE IF EXISTS autocomplete; -- Create new table. CREATE TABLE names ( canonicalName TEXT UNIQUE, acceptedName TEXT, scientificName TEXT, nameAccordingTo TEXT, family TEXT...
INSERT INTO people (name, has_pet, pet_name, pet_age) VALUES ("Ahmed", TRUE, "Rockington", 100); INSERT INTO people (name, has_pet, pet_name, pet_age) VALUES ("Ahmed", TRUE, "Rockington", 100); INSERT INTO people (name, has_pet, pet_name, pet_age) VALUES ("Jacob", TRUE, "Misty", 10); INSERT INTO people (name, has_pe...
-- 2018-05-31T18:28:22.045 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Val_Rule SET Code='M_HU_LUTU_Configuration.M_Product_ID=@M_Product_ID/-1@ AND M_HU_LUTU_Configuration.QtyCU = @QtyEntered/0@ ',Updated=TO_TIMESTAMP('2018-05-31 18:28:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE A...
-- Get all employee and their super visors select e1.first_name as Employee, e2.first_name as Supervisor from employee as e1 inner join employee e2 on e1.supervisor_id=e2.id; insert into users (first_name) values ('Maran'), ('Karan'), ('Kalees'), ('Mahesh'); insert into users_friend (user_id,...
<filename>Postgres/DDL/022-Table-Backbone-Address2GeoLocation.sql DROP TABLE IF EXISTS Backbone.Address2GeoLocation; // CREATE TABLE Backbone.Address2GeoLocation ( Id SERIAL NOT NULL PRIMARY KEY, StateCode VARCHAR(5) NOT NULL, StateName VARCHAR(50) NOT NULL, County VARCHAR(100) NOT NULL, City ...
<filename>EpiInfo.Database.EIWeb/dbo/Tables/Canvas.sql CREATE TABLE [dbo].[Canvas]( [CanvasID] [int] IDENTITY(1,1) NOT NULL, [CanvasGUID] [uniqueidentifier] NOT NULL CONSTRAINT [DF_Canvas_CanvasGUID] DEFAULT (newid()), [CanvasName] [varchar](50) NOT NULL, [UserID] [int] NOT NULL, [CanvasDescription] [varchar](ma...
-- coalesce with columns from side that does not produce nulls -- string manipulation functions -- char_length - not a calcite built in function select count(*), substr(lower(UPPER(to_char(t1.c1, 'MMM-DD-YY'))), 5, 2), char_length(substr(lower(UPPER(to_char(t1.c1, 'MMM-DD-YY'))), 5, 2)) from t1 left outer ...
<reponame>CBIIT/HPC_DME_APIs UPDATE public."HPC_DATA_MANAGEMENT_CONFIGURATION" SET "COLLECTION_METADATA_VALIDATION_RULES"= '{ "metadataValidationRules": [ { "attribute":"collection_type", "mandatory":true, "validValues":[ "Project", "PI_...
<reponame>joaopaulofilho/desafio -- Adminer 4.2.5 MySQL dump SET NAMES utf8; SET time_zone = '+00:00'; SET foreign_key_checks = 0; SET sql_mode = 'NO_AUTO_VALUE_ON_ZERO'; DROP DATABASE IF EXISTS `desafio`; CREATE DATABASE `desafio` /*!40100 DEFAULT CHARACTER SET latin1 */; USE `desafio`; CREATE USER 'desafio_user'@'...
<reponame>humangeo/influent<filename>influent-spi/src/main/dataviews/influent-db-conversion-1.2.sql use [DB SCHEMA NAME]; -- NOTE: If dataview table names are different from defaults then modify the below scripts accordingly -- --- Update schema to version 1.2 dataviews from 1.1 -- create table FinEntity(EntityId var...
CREATE TABLE `tl_page` ( `ga_analyticsid` varchar(20) NOT NULL default '' `ga_anonymizeip` char(1) NOT NULL default '', `ga_measurespeed` char(1) NOT NULL default '', `ga_eventtracking` char(1) NOT NULL default '', `ga_externaltracking` char(1) NOT NULL default '', `ga_addlinktracking` char(1) NOT NULL defa...
DROP DATABASE marzagat; CREATE DATABASE marzagat; \c marzagat; CREATE TABLE restaurants ( restaurant_id INTEGER, name VARCHAR(50) NOT NULL, neighborhood VARCHAR(50) NOT NULL, google_rating NUMERIC(2,1) NOT NULL, zagat_rating NUMERIC(2,1) NOT NULL, review_count SMALLINT NOT NULL, description TEXT NOT NULL...
<reponame>aidsoul/vktote CREATE TABLE IF NOT EXISTS vkgroup ( id_group int NOT NULL AUTO_INCREMENT, name varchar(100) NOT NULL, PRIMARY KEY (id_group) ); CREATE TABLE IF NOT EXISTS post ( id_post int NOT NULL, group_id int NOT NULL, CONSTRAINT past_ibfk FOREIGN KEY (group_id) REFERENCES vkgroup (id_group) ...
<filename>application/migrations/20180516142322_weight_and_dimensions.sql -- weight_and_dimensions -- ALTER TABLE `phppos_items` ADD COLUMN weight DECIMAL (23,10) NULL DEFAULT NULL,ADD COLUMN length DECIMAL (23,10) NULL DEFAULT NULL,ADD COLUMN width DECIMAL (23,10) NULL DEFAULT NULL,ADD COLUMN height DECIMAL (23,10) N...
-- -- PostgreSQL database dump -- -- Dumped from database version 13.1 -- Dumped by pg_dump version 13.1 -- Started on 2021-01-09 18:05:24 SET statement_timeout = 0; SET lock_timeout = 0; SET idle_in_transaction_session_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; SELECT pg_catalo...
DROP SCHEMA IF EXISTS Visitors; CREATE SCHEMA Visitors; USE Visitors; DROP TABLE IF EXISTS `visitors`; CREATE TABLE `visitors` ( `id` int NOT NULL PRIMARY KEY AUTO_INCREMENT, `visit_date` date, `people` int ) ENGINE=InnoDB DEFAULT CHARSET=utf8; INSERT INTO `visitors` (`visit_date`, `people`) VALUES ('2017-01-...
<filename>Homework MySQL and PHP Advanced/carshop/problem8/create_triger.sql CREATE TABLE `total_sales` ( `id` INT NOT NULL AUTO_INCREMENT, `sale_amount` INT NOT NULL, PRIMARY KEY (`id`) ) CREATE DEFINER=`root`@`localhost` TRIGGER `total_sales` BEFORE INSERT ON `sales` FOR EACH ROW BEGIN SET @sum := @sum + NEW.`amou...
<filename>sql/dump_stat.sql CREATE OR REPLACE FUNCTION stat_to_json(relname name) RETURNS SETOF JSON AS ' SELECT row_to_json(p.*) FROM ( WITH stareloid(rn) AS ( SELECT oid FROM pg_class c WHERE c.relname=$1 ) SELECT starelid::regclass AS starelname, a.attname AS staattname, stainherit, stanullfrac, stawi...
update eg_module set enabled = false where name = 'BPA Occupancy Certificate' and contextroot = 'bpa';
-- -- The MIT License -- Copyright (c) 2011 Kuali Mobility Team -- -- Permission is hereby granted, free of charge, to any person obtaining a copy -- of this software and associated documentation files (the "Software"), to deal -- in the Software without restriction, including without limitation the rights -- to use, c...
/* This code provides enduring highest NQF (National Qualification Framework) qualification, per person, per year. Subsequent years are filled in with the highest qualification received. eg. if someone obtains a NQF level 3 qualification in 2007 and does no further study, their "highest qualification" will still be r...
<reponame>scheltwort-it-services/common_schema -- -- Replaces characters in a given text with a given replace-text. -- txt: input text -- from_characters: a text consisting of characters to replace. -- to_str: a string to plant in place of each occurance of a character from from_characters. -- Can be of any length. ...
<gh_stars>1000+ UPDATE AD_Message SET Value = 'de.metas.material.dispo.MD_Candidate_Request_MaterialDocument_No_Matching_Records_Selected' WHERE AD_Message_ID=544534; UPDATE AD_Message SET MsgText = 'Es müssen Produktions- oder Verteilungsdatensätze mit Status "geplant" ausgewählt werden.' WHERE AD_Message_ID=544534;...
-- Add create institutional proposal, submit institutional proposal permissions to Proposal Submission role insert into KRIM_ROLE_PERM_T (ROLE_PERM_ID, OBJ_ID, VER_NBR, ROLE_ID, PERM_ID, ACTV_IND) values (KRIM_ROLE_PERM_ID_S.NEXTVAL, 'EFEA9886C913436BA189CA7034CB26B4', 1, (select ROLE_ID from KRIM_ROLE_T where ROLE_NM=...
<reponame>gbif/openmaptiles -- 3575 views, cut off at Equator CREATE MATERIALIZED VIEW osm_poi_point_3575 AS SELECT (ST_Dump(ST_MakeValid(ST_Transform(t.geometry,3575)))).geom AS geometry, id, osm_id, name, name_en, name_de, tags, subclass, mapping_key, station FROM (SELECT ST_Intersection(ST_GeomFromEWKT('SRID=4326;P...
<filename>ntsiot-system/sql/track/cyoubike_appointment_manager.sql create table appointment_manager ( id BIGINT(19) auto_increment primary key, username VARCHAR(255) null comment '姓名', phone VARCHAR(50) null comment '电话', jurisdiction BIGINT(19) null comment '辖区', swi...
<reponame>dedmedved/cheburashka CREATE PROC InsertFromDMLDeleteProc AS BEGIN INSERT INTO TableC SELECT B1 , B2 FROM ( DELETE TableB OUTPUT deleted.B1 AS B1 , deleted.B2 AS B2 ) z; INSERT INTO TableC SELECT B1 , B2 FROM ( DELETE TableB ...
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: May 27, 2019 at 06:27 AM -- Server version: 10.1.38-MariaDB -- PHP Version: 7.3.4 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40...
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: May 02, 2020 at 02:32 PM -- Server version: 10.4.11-MariaDB -- PHP Version: 7.4.4 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIEN...
<filename>thenovaleague_2015-11-19.sql # ************************************************************ # Sequel Pro SQL dump # Version 4499 # # http://www.sequelpro.com/ # https://github.com/sequelpro/sequelpro # # Host: localhost (MySQL 5.6.26) # Database: thenovaleague # Generation Time: 2015-11-20 04:22:26 +0000 # **...
-- === will be used when view all employees is selected === -- SELECT employee.first_name, employee.last_name, role.title, role.salary, department.name, CONCAT(emp.first_name, ' ', emp.last_name) AS Manager FROM employee INNER JOIN role on role.id = employee.role_id INNER JOIN department on ...
<gh_stars>0 -- MySQL dump 10.13 Distrib 5.5.25, for Linux (x86_64) -- -- ------------------------------------------------------ -- Server version 5.5.20-log /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION...
CREATE TABLE SupplierPpeTypes ( SupplierId bigint NOT NULL, PpeTypeId tinyint NOT NULL, PpeTypeOther nvarchar(max), CostTypeId int NOT NULL, CostTypeOther nvarchar(500), CapacityPerWeek int NOT NULL, CurrentStock int NOT NULL, LeadTimeInDays int NOT NULL, Notes nvarchar(max), MeetsRegulatoryRequirementsId in...
<filename>CSharp DB Fundamentals MSSQL/DataAggregation/DataAggregation/06.DepositSumForOllivanderFamily.sql USE Gringotts SELECT DepositGroup, SUM(DepositAmount) AS [total Sum] FROM WizzardDeposits WHERE MagicWandCreator = '<NAME>' GROUP BY DepositGroup
begin; update testset set test_type='tpc-b' where info like 'tpc-b%' ; update testset set test_type='select' where info like 'select%' ; commit;
create table log.journal ( dt_clock timestamptz not null default clock_timestamp(), dt_trans timestamptz not null default current_timestamp(), site_id bigint, domain text, event text );
<gh_stars>1-10 WITH queries AS ( SELECT userid, xid, pid, starttime, endtime, DATEDIFF(sec, starttime, endtime) AS elapsed_time, "sequence", "type" AS query_type, TRIM(text) AS text FROM svl_statementtext WHERE xid = __xid__ ) SELECT TRIM(usename) AS user_name, que...
-- ---------------------------- -- Records of msg_email_config -- ---------------------------- INSERT INTO `msg_email_config` VALUES ('1', '默认配置', 'smtp.qq.com', '<EMAIL>', 'nmyytnzwadukcahh', '1', '1', '2019-07-17 15:42:43', '2019-07-17 15:42:46'); -- ---------------------------- -- Records of msg_email_template -- ...
<gh_stars>1-10 CREATE TABLE aaa (id INT NOT NULL); ALTER TABLE aaa ADD PRIMARY KEY (id), LOCK=SHARED; -- ^^^^^^^^^^^ This
prompt not installing &&1
-- 2020-07-08T15:11:00.989Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Element (AD_Client_ID,AD_Element_ID,AD_Org_ID,ColumnName,Created,CreatedBy,Description,EntityType,Help,IsActive,Name,PrintName,Updated,UpdatedBy) VALUES (0,577789,0,'IsReceiveAsSourceHU',TO_TIMESTAMP('2020-07-08...
Insert into KRNS_PARM_DTL_TYP_T ( nmspc_cd, parm_dtl_typ_cd, OBJ_ID, VER_NBR, NM, ACTV_IND) Values ('KC-AB','D','D3C1CEB4A1A645EBA83AA4EAD246AA25',1,'Document','Y'); Insert into KRNS_PARM_DTL_TYP_T ( nmspc_cd, parm_dtl_typ_cd, OBJ_ID, VER_NBR, NM, ACTV_IND) Values ('KC-AWARD','A','8D2232910ACB40B1A0054A1524F41B6C',1,'A...
<reponame>Laurent-c4/IP-WILDLIFE-TRACKER CREATE DATABASE wildlife_tracker; \c wildlife_tracker; CREATE TABLE fauna_species (id SERIAL PRIMARY KEY, name VARCHAR, type VARCHAR); CREATE TABLE animals (id SERIAL PRIMARY KEY, name VARCHAR, type VARCHAR, health VARCHAR, age VARCHAR, animalid INTEGER); CREATE TABLE sightings ...
CREATE OR REPLACE VIEW public.master_attribute_summary AS SELECT trip.code AS trip_code, s.code AS set_code, trip.id AS trip_id, s.id AS set_id, s.reef_habitat_id, mas.id AS video_id, mst.id AS master_status_id, mst.name AS master_status, obs.id AS observation_id, obs.type AS obser...
<gh_stars>0 SET @current_time = NOW(); SET @game_type=1; SELECT @@global.time_zone; SET @@global.time_zone = '+01:00'; SELECT UNIX_TIMESTAMP(), NOW(); # Pridobimo naslednji cikel za določen tip igre SELECT tc.id, tc.from_timestamp, tc.to_timestamp FROM task_cycle AS tc WHERE tc.from_timestamp > @current_time AN...
DROP TABLE IF EXISTS ${TARGET_DB}.${NAMESPACE}tbl_rainbow_schema; CREATE TABLE ${TARGET_DB}.${NAMESPACE}tbl_rainbow_schema ( id VARCHAR(256), timestamp_value TIMESTAMP, int_value INT );
ALTER TABLE tb_cerveja ADD foto VARCHAR(100), ADD content_type VARCHAR(100);
<filename>identity-core/identity-core-test/src/main/resources/com/sflpro/identity/test/db/resource.sql insert into resource(id, type, identifier, created, updated) values (1, 'customer', '1', now(), now());
<gh_stars>1-10 select name, dest_range, description, kind, network, self_link from gcp.gcp_compute_route where name = '{{ resourceName }}'
CREATE ROLE scalafiddle; CREATE DATABASE scalafiddle; -- log in to scalafiddle DB CREATE TABLE "fiddle" ( "id" VARCHAR NOT NULL, "version" INTEGER NOT NULL, "name" VARCHAR NOT NULL, "description" VARCHAR NOT NULL, "sourcecode" VARCHAR NOT NULL, "libraries" VARCHAR NOT N...
select akas from aws.aws_s3_bucket where name = '{{resourceName}}'