sql
stringlengths
6
1.05M
-- phpMyAdmin SQL Dump -- version 4.4.12 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Jun 14, 2016 at 03:53 PM -- Server version: 5.6.25 -- PHP Version: 5.6.11 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;...
CREATE TABLE sm_admins ( id INTEGER PRIMARY KEY AUTOINCREMENT, authtype varchar(16) NOT NULL CHECK(authtype IN ('steam', 'ip', 'name')), identity varchar(65) NOT NULL, password varchar(65), flags varchar(30) NOT NULL, name varchar(65) NOT NULL, immunity INTEGER NOT NULL ); CREATE TABLE sm_gro...
<reponame>jfinzel/pglogical_ticker<filename>sql/99_cleanup.sql SET client_min_messages TO WARNING; DROP EXTENSION pglogical_ticker CASCADE; DROP EXTENSION pglogical;
ALTER TABLE users DROP KEY name, MODIFY COLUMN name TEXT NOT NULL;
SELECT json_build_object('publicationid', pub.publicationid, 'pubtypeid', pub.pubtypeid, 'pubtype', pt.pubtype, 'year' , pub.year, 'citation', pub.citation, 'articletitle', pub.articletitle, ...
select s_login('test01', '123456', '1.1.1.1', 'http://www.2c-why.com/' );
<filename>application/querys/[SP_Editar_Formulario_Promotor].sql USE [AppAu] GO /****** Object: StoredProcedure [dbo].[SP_Editar_Formulario_Promotor] Script Date: 17-05-2018 10:55:07 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO -- ============================================= -- Author: <Author,,Nam...
call query_checksum('select distinct n from (select cast(n/10 as unsigned) as n from numbers) s1 order by n'); call query_checksum('select n from (select cast(n/10 as unsigned) as n from numbers) s1 group by n order by n desc'); call query_checksum('select n+1 from numbers where n <= 410');
insert into game_state select game_number ,comb_class_id ,game_hash_top ,game_hash_bottom ,is_goal_state ,optimal_neighbor ,red_car_end_a ,topo_class_hash ,connected_component_id ,degree ,NULL as solution_distance from states;
-- -- Copyright 2004-2014 The Kuali Foundation -- -- Licensed under the Educational Community 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.opensource.org/licenses/ecl2.php -- -- Unless requi...
<gh_stars>0 -- +migrate Up ALTER TABLE history_transactions ADD ledger_bounds int8range; -- xdr.Uint32s ALTER TABLE history_transactions ADD min_account_sequence bigint; -- xdr.SequenceNumber -> int64 ALTER TABLE history_transactions ADD min_account_sequence_age varchar(20...
<reponame>andrewp-as-is/sqlite-examples<gh_stars>0 SELECT date('now','start of month','+1 month','-1 day')
<filename>BalsamicSolutions.ReadUnreadSiteColumn/Framework/CreateResourceTableTemplate.sql  CREATE TABLE [dbo].[_TABLENAME_]( [Id] [int] IDENTITY(1,1) NOT NULL, [Culture] [nvarchar](32) NULL, [Name] [nvarchar](64) NULL, [Value] [nvarchar](max) NULL, CONSTRAINT [PK__TABLENAME_] PRIMARY KEY CLUSTERED ( [Id] ASC )...
<filename>v1.sql CREATE DATABASE IF NOT EXISTS `datahive_versions` /*!40100 DEFAULT CHARACTER SET utf8 */; USE `datahive_versions`; DROP TABLE IF EXISTS `db_version`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `db_version` ( `id` int(10)...
<filename>framework/resources/Functional/limit0/filters/data/q24.sql<gh_stars>0 select x, y, z from ( select t1.a1, max(t1.b1), avg(t1.a1) from t1_v t1, t2_v t2 where t1.c1 = t2.c2 group by t1.a1, t1.b1) as sq(x, y, z) where y not like '%b%' OR x = 10;
UPDATE `entities` set `siteid` = ( SELECT `_id` FROM `site` limit 1 ); UPDATE `reader` set `siteid` = ( SELECT `_id` FROM `site` limit 1 ); UPDATE `config` set `siteid` = ( SELECT `_id` FROM `site` limit 1 ); REPLACE INTO `versions` VALUES('schema', '2020120201');
## 查询班级维度统计 #macro($listDoQuestionClassStat(classId,topN,startDate,endDate)) SELECT * FROM do_question_class_rank WHERE class_id = :classId AND start_date = :startDate AND end_date = :endDate ORDER BY rank ASC LIMIT :topN #end ## 查询指定学生统计信息 #macro($findStudentInClassRank(classId,userId,startDate,endDate)...
CREATE TABLE [dbo].[Sponsor] ( [SponsorId] INT IDENTITY (1, 1) NOT NULL, [SponsorTypeId] INT NOT NULL, [Title] NVARCHAR (1000) NOT NULL, [ShortTitle] NVARCHAR (500) NULL, [Description] NVARCHAR (4000) NULL, [ImageUrl] NVARCHAR (1000) NU...
/*==============================================================*/ /* Table: admin */ /*==============================================================*/ create table admin ( id bigint(20) not null auto_increment, username varchar(64) comment '用户名', ...
-- Created by <NAME> -- Last modification date: 2021-05-08 18:55:03.182 -- tables -- Table: set_score insert into set_score (match_id, set_number, first_registration_games, second_registration_games) values (1, 1, 1, 2); insert into set_score (match_id, set_number, first_registration_games, second_registration_games) v...
-- -- Copyright 2015-2016 USEF Foundation -- -- 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 agree...
truncate cop_early_response; truncate cop_workflow_instance; truncate cop_wfi_id;
<gh_stars>10-100 select * from `PROJECT.idc_v5.original_collections_metadata`
<filename>console/dumps/regions.sql<gh_stars>1-10 INSERT INTO `geo_regions` (`id`, `country_id`, `iso_code`, `sort`) VALUES (279, 3, 'UA-05', 0), (280, 3, 'UA-07', 0), (281, 3, 'UA-12', 0), (282, 3, 'UA-14', 0), (283, 3, 'UA-18', 0), (284, 3, 'UA-21', 0), (285, 3, 'UA-23', 0), (286, 3, 'UA-26', 0), (287, 3, 'UA-32', 0...
-- MariaDB dump 10.17 Distrib 10.4.3-MariaDB, for debian-linux-gnu (x86_64) -- -- Host: localhost Database: pmacontrol -- ------------------------------------------------------ -- Server version 10.4.3-MariaDB-1:10.4.3+maria~bionic-log /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET ...
/* regex replace find \B replace ' ' <-- space */ DROP TABLE IF EXISTS #Stage_backup DROP TABLE IF EXISTS #Stage CREATE TABLE #Stage ( Bit01 tinyint NOT NULL , Bit02 tinyint NOT NULL , Bit03 tinyint NOT NULL , Bit04 tinyint NOT NULL , Bit05 tinyint NOT NULL , Bit06 tinyint NOT NULL , Bit07 tinyint 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,ALLOW_INVALID_DATES'; ALTER TABLE `videos` CHANGE COLUMN `type` `type` ENUM('audio', 'video', 'embed', 'linkVideo', 'linkAudio', 'torren...
<filename>EMP2012/SQL/Combine20082012Inventory_SAC.sql<gh_stars>0 --This script combines 2008 and 2012 employment inventory by matching company name and address --Inventory2008:2008 employment inventory; imported from P:\Employment Inventory\Employment 2012\2012\files for review\FinalReview\sacramento.xlsx --Inventory...
----------------------------------------------------------------------------------------------------------------------- -- 020 - CreateAutoTracker_2_Database.sql -- Version 1.0.6 -- Look for the most recent version of this script at www.tf3604.com/temporal. -- MIT License. See the bottom of this file for details. ...
select id, concat(repeat ('-', (select count(parent.id)-1 from chapter_73 as parent where node.lft between parent.lft and parent.rght)), node.hts_code) as hts_code, title, lft, rght, depth from chapter_73 as node order by node.lft;
<gh_stars>0 DELIMITER ENDROUTINE CREATE PROCEDURE party_create_database_user ( IN arg_party_name $PARTY_NAME_TYPE , IN arg_party_password_hash $PARTY_PASSWORD_HASH_TYPE ) LANGUAGE SQL NOT DETERMINISTIC MODIFIES SQL DATA SQL SECURITY DEFINER BEGIN START TRANSACTION ; SET @var_username = ge...
<filename>about/WorldName.sql /*!40101 SET NAMES utf8mb4 */; INSERT INTO `df_worldname` (`enname`, `krname`, `cnname`) VALUES ('USA', '미국', '美国'), ('Brazil', '브라질', '巴西'), ('India', '인도', '印度'), ('Russia', '러시아', '俄罗斯'), ('Peru', '페루', '秘鲁'), ('Chile', '칠레', '智利'), ('Mexico', '멕시코', '墨西哥'), ('South Africa', '남아프리카공화국'...
<reponame>ynothan/code_test DROP DATABASE IF EXISTS `code_test`; -- on supprime, si refresh, dans la table user de la base mysql l'utilisateur créé DELETE FROM mysql.user WHERE user='admin' and host='admin'; CREATE DATABASE `code_test` DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci; -- création d'un utilisa...
<gh_stars>0 CREATE DATABASE IF NOT EXISTS `cl_judge` /*!40100 DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci */ /*!80016 DEFAULT ENCRYPTION='N' */; USE `cl_judge`; -- MySQL dump 10.13 Distrib 8.0.22, for Linux (x86_64) -- -- Host: localhost Database: cl_judge -- ------------------------------------------...
ALTER TABLE addays MODIFY COLUMN Day enum('Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday') NOT NULL;|| UPDATE addays SET Day = 'Sun' WHERE Day = 'Sunday';|| UPDATE addays SET Day = 'Mon' WHERE Day = 'Monday';|| UPDATE addays SET Day = 'Tue' W...
SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE OR ALTER PROCEDURE dbo.prc_Config_SQLAgentProperties AS BEGIN SET NOCOUNT ON /*IF(OBJECT_ID('temp..#temp_SQLAgentProperties') IS NOT NULL) DROP TABLE #temp_SQLAgentProperties CREATE TABLE #temp_SQLAgentProperties( [auto_start] [int] NOT NULL, [msx_s...
-- -------------------------------------------------- -- Entity Designer DDL Script for SQL Server 2005, 2008, 2012 and Azure -- -------------------------------------------------- -- Date Created: 03/14/2021 20:51:48 -- Generated from EDMX file: E:\MMMMMMM\MyGenshinDemo\MyGenshin\Server\GameServer\GameServer\Enti...
--Creating manual table with concept_code_1 representing attribute (Brand Name,Supplier, Dose Form) that you want to replace by another already existing one (concept_code_2) INSERT INTO concept_relationship_stage ( concept_code_1, concept_code_2, vocabulary_id_1, vocabulary_id_2, relationship_id, valid_start_date...
SELECT tab0.v1 AS v1 , tab1.v0 AS v0 , tab4.v5 AS v5 , tab7.v7 AS v7 , tab5.v6 AS v6 , tab6.v4 AS v4 , tab9.v9 AS v9 , tab3.v3 AS v3 , tab8.v8 AS v8 , tab2.v2 AS v2 FROM (SELECT sub AS v2 FROM sorg__eligibleRegion$$3$$ WHERE obj = 'wsdbm:Country5' ) tab2 JOIN (SELECT sub AS v0 , obj AS v2 FROM gr__...
# Note: There are two sections in this file. You can only override the section two using generated Sql from domain. # Section one: The following section is NOT generated # DO NOT override create table users( username varchar(200) not null primary key, password varchar(256) not null, enabled boolean not null, failed_a...
<filename>data/lacarreta.sql -- phpMyAdmin SQL Dump -- version 4.3.11 -- http://www.phpmyadmin.net -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 06-12-2017 a las 18:48:44 -- Versión del servidor: 5.6.24 -- Versión de PHP: 5.6.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_...
CREATE TABLE keyvalTable ( k VARCHAR(240) NOT NULL, v VARCHAR(240), PRIMARY KEY(k) ); INSERT INTO schemaVersionTable (schemaVersion, scriptName) VALUES (40, '00040_create_keyval_table.sql');
<reponame>2ndQuadrant/array_textsort SELECT array_distinct('{"four","six","five","four","eleven"}'); SELECT array_distinct('{"four","six",NULL,"four","eleven"}');
/* SQLyog Enterprise - MySQL GUI v6.5 MySQL - 5.0.45-community-nt : Database - bisloandatabase ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */...
<filename>SQL_ukazi/koncna.sql<gh_stars>0 -- -- File generated with SQLiteStudio v3.2.1 on pon. maj 11 18:39:45 2020 -- -- Text encoding used: UTF-8 -- -- Table: SEKTOR CREATE TABLE SEKTOR (ID TEXT PRIMARY KEY, IME_SEKTORJA TEXT NOT NULL, CENA_MRD INTEGER); INSERT INTO SEKTOR (ID, IME_SEKTORJA, CENA_MRD) VALUES ('XLE',...
-- Creator: MySQL Workbench 8.0.12/ExportSQLite Plugin 0.1.0 -- Author: macpoule -- Caption: New Model -- Project: Name of the project -- Changed: 2018-10-16 22:28 -- Created: 2018-10-16 00:43 PRAGMA foreign_keys = OFF; -- Schema: mydb -- ATTACH "db.sdb" AS "mydb"; BEGIN; CREATE TA...
-- MySQL Script generated by MySQL Workbench -- sáb 07 nov 2020 16:04:09 -- 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='ON...
<gh_stars>0 INSERT INTO public.deutschkurs_kosten( "Kosten_Lehrmaterial", "Kosten_Gesamtkurs", "Kosten_Einzelkurs", "Kosten_Einstufungstest", "Kosten_subventioniert") VALUES ('Kosten_Lehrmaterial', 'Kosten_Gesamtkurs', 'Kosten_Einzelkurs', 'Kosten_Einstufungstest', 'Kosten_subventioniert'); INSERT INTO public.deut...
-- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 04 Jun 2019 pada 01.08 -- Versi server: 10.1.36-MariaDB -- Versi PHP: 7.2.10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHAR...
SELECT CONCAT (name, '(', SUBSTRING(Occupation, 1,1),')') FROM Occupations ORDER BY name; SELECT CONCAT ('There are a total of ', COUNT(occupation), ' ', LOWER(Occupation), 's.') FROM Occupations GROUP BY Occupation ORDER BY COUNT(Occupation), Occupation;
<filename>src/main/resources/sql/schema.sql drop table if exists files; create table files ( path varchar(1500) primary key, name varchar(100), hints bigint default 1 ); create index idx_path on files(path);
<gh_stars>1-10 --- This script generated features that use the speed and flow data by aggregating from 15 min to 1 hour. --- The resulting table will be called by the Python pipeline script to use for prediction --- Schema: features_speedflow_agg --- Tables --- onehour_aggfrom15min_ten_km_v1: Uses the fifteenmin_te...
CREATE DATABASE dataStorage; USE dataStorage; CREATE TABLE macros ( calories INTEGER(11) AUTO_INCREMENT NOT NULL, protiens INTEGER(11) AUTO_INCREMENT NOT NULL, carbs INTEGER(11) AUTO_INCREMENT NOT NULL, fats INTEGER(11) AUTO_INCREMENT NOT NULL, ); -- INSERT INTO products (calories, protiens, carbs, fats) -- V...
/* Create Missing Foreign Key Indexes ---------------------------------- Missing indices are created with the following naming convention: <table_name>_<column_list>_FK_IX Each column in the column list is constructed by concatenating the character `C` with the column position in the table. The column list is o...
-- -- Licensed to the Apache Software Foundation (ASF) under one or more -- contributor license agreements. See the NOTICE file distributed with -- this work for additional information regarding copyright ownership. -- The ASF licenses this file to You under the Apache License, Version 2.0 -- (the "License")...
<reponame>TechLauncher-its-personal/almond-cloud<filename>model/migrations/7254ac6-user_conversation.sql DROP TABLE IF EXISTS `user_conversation`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `user_conversation` ( `userId` int(11) not NULL, ...
<filename>backend/migrations/000006_add_staked_token_strategy.up.sql ALTER TYPE strategies ADD VALUE 'staked-token-weighted-default'; COMMIT; INSERT INTO voting_strategies (key, name, description) VALUES ('staked-token-weighted-default', 'Staked Token Weighted', 'Vote weight is proportional to the number tokens staked....
<filename>database/dexdevs_db.sql -- phpMyAdmin SQL Dump -- version 4.7.9 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jun 09, 2018 at 03:18 PM -- Server version: 10.1.31-MariaDB -- PHP Version: 7.2.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zo...
-- @testpoint: 插入数据为拼接字符串超出设定长度测试,合理报错 DECLARE V_C varchar(8000); BEGIN drop table if exists test_varchar_09; create table test_varchar_09 (name varchar(8000)); FOR I IN 1 .. 8000 LOOP V_C := V_C || 'q'; END LOOP; insert into test_varchar_09 values (V_C); END; / insert into test_varchar_09 select subs...
CREATE TABLE "TableroSistemaPenal_6"( "col_00" varchar(52) NOT NULL, "col_01" smallint NOT NULL, "col_02" smallint NOT NULL, "col_03" smallint NOT NULL, "col_04" varchar(24) NOT NULL, "col_05" varchar(64), "col_06" timestamp NOT NULL, "col_07" smallint NOT NULL, "col_08" varchar(5) NOT NULL, "col_09" smallint NOT NULL,...
-- MySQL Script generated by MySQL Workbench -- Mon Apr 26 19:52:03 2021 -- 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='ON...
create or alter procedure Role.[test that primary key constraint exists] as begin declare @SchemaName nvarchar(max) = N'auth'; declare @TableName nvarchar(max) = N'Role'; declare @ConstraintType nvarchar(20) = N'PRIMARY KEY' declare @ConstraintName nvarchar(max) = N'PK_Role'; declare @ColumnName nvarchar(10) = N'...
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Dec 31, 2018 at 10:14 AM -- Server version: 10.1.19-MariaDB -- PHP Version: 5.5.38 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHAR...
<gh_stars>0 ALTER TABLE `hb_student_tracker`.`student` ADD COLUMN `date_of_birth` DATETIME NULL AFTER `last_name`;
-- phpMyAdmin SQL Dump -- version 5.0.3 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Nov 13, 2020 at 01:18 PM -- Server version: 10.4.14-MariaDB -- PHP Version: 7.4.11 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
<filename>5.2.3/Database/Constraints/AFW_37_GADGT_CATGR_FK2.sql SET DEFINE OFF; ALTER TABLE AFW_37_GADGT_CATGR ADD ( CONSTRAINT AFW_37_GADGT_CATGR_FK2 FOREIGN KEY (REF_GADGT_CATGR) REFERENCES AFW_37_GADGT_CATGR (SEQNC) ON DELETE CASCADE ENABLE VALIDATE) /
<gh_stars>1-10 SELECT bucket AS "time", metric, rate_time(value, lag(value) OVER w, '${__interval}') AS "value" FROM ( SELECT labels->>'pod' AS "metric", $__timeGroup(time, ${__interval}) AS "bucket", MAX(value) AS "value" FROM metrics WHERE $__timeFilter("time") and name = 'prometheus_r...
<reponame>none-word/Automatic-Time-Table-Creation -- +goose Up -- +goose StatementBegin CREATE OR REPLACE FUNCTION updated_at_refresh() RETURNS TRIGGER AS $$ BEGIN NEW.updated_at = NOW(); RETURN NEW; END; $$ LANGUAGE 'plpgsql'; CREATE TABLE "users" ( "id" UUID NOT NULL, "email" text NOT NULL, "p...
WITH base AS ( SELECT * FROM {{ source('salesforce', 'opportunity_field_history') }} ), renamed AS ( SELECT opportunityid AS opportunity_id, id AS field_history_id, createddate AS field_modified_at, LOWER(field) AS opportunity_field, ...
<reponame>omegazip/dba_scripts -- -- Perfsheet4's query to extract data in csv format -- Perfsheet4_query_AWR_iostat_detail.sql -> Extracts data from dba_hist_iostat_detail, computes delta values between snapshots and rates (i.e. delta values divided over delta time) -- output is in csv format -- <NAME>, APR 2014 -- --...
<gh_stars>1000+ -- 2020-11-17T07:57:58.314Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Element (AD_Client_ID,AD_Element_ID,AD_Org_ID,Created,CreatedBy,EntityType,IsActive,Name,PrintName,Updated,UpdatedBy) VALUES (0,578551,0,TO_TIMESTAMP('2020-11-16 09:57:58','YYYY-MM-DD HH24:MI:SS'...
-- -- -- -- @author <NAME> (<EMAIL>) -- @creation-date 2004-12-18 -- @arch-tag: 46a0ecc0-b123-44dd-9e91-4a565f742071 -- @cvs-id $Id: upgrade-0.4d1-0.4d2.sql,v 1.1.1.1 2010/10/21 12:47:26 po34demo Exp $ -- alter table txt drop constraint txt_object_id_fk; alter table txt add constraint txt_object_id_fk foreign key (...
<gh_stars>0 -- start query 1 in stream 0 using template query92.tpl select sum(ws_ext_discount_amt) as "Excess_Discount_Amount" from web_sales ,item ,date_dim where i_manufact_id = 269 and i_item_sk = ws_item_sk and cast(d_date as timestamp) between cast('1998-03-18' as timestamp) and date_add(cas...
INSERT INTO `@prefix@api_tab_menu` (`Description`, `Description_courte`, `id_categorie`, `Lien`) VALUES ('activity-list.title', 'activity-list.title', '4', 'activity-list'); INSERT INTO `@prefix@api_tab_menu` (`Description`, `Description_courte`, `id_categorie`, `Lien`) VALUES ('activity-rapport-client.title', 'activit...
<reponame>andreylipattsev/almanac.httparchive.org #standardSQL # frequency of the number of element types used on a page # returns all the data we need from _element_count CREATE TEMPORARY FUNCTION get_element_type_COUNT(element_count_string STRING) RETURNS INT64 LANGUAGE js AS ''' try { if (!element_count_string)...
create function f() begin print 'no return'; end;
# Run this script to create the MYSQL DB for the shaopping cart sample and populate the DB # Run this script as follows => mysql -u root -proot < ./Init_Sample_Query.sql drop database if exists shopping_cart_db; create database shopping_cart_db; use shopping_cart_db; source ./CreateDB.sql;
ALTER TABLE PERSON_OPPFOLGINGSTILFELLE ADD COLUMN virksomhetsnavn VARCHAR DEFAULT NULL;
<reponame>Cedric-Jefferson/projet_parfumerie -- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Hôte : 127.0.0.1:3306 -- Généré le : mar. 04 fév. 2020 à 04:25 -- Version du serveur : 5.7.19 -- Version de PHP : 5.6.31 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSAC...
--creates a view for today's cases on a district level for austria to use as a WFS create or replace view austria_cases_today as select ag.name, ag.geom, ca.* from (select distinct on (ca."GKZ") ca."GKZ" as gkz, ca."Time", ca."AnzahlFaelle", ca."AnzahlFaelle7Tage", replace(ca."SiebenTageInzidenzFaelle",...
<filename>Eve.ESI.Database/Tables/AccountLink.sql CREATE TABLE [dbo].[AccountLink] ( [Id] INT IDENTITY(1,1) PRIMARY KEY, [TypeID] TINYINT NOT NULL, [AccountGuid] UNIQUEIDENTIFIER NOT NULL, [Link] VARCHAR(MAX) NOT NULL )
<reponame>dmc0/db-scripts<gh_stars>0 /* MIT License Copyright (c) 2020 <NAME> DESCRIPTION: This script is based on the disk and table reports available in SSMS for a SQL Server database. I captured the SQL Profiler activity while running those reports and modified them to suit most peoples' needs. I also modified ...
<gh_stars>1-10 -- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Dec 08, 2016 at 05:33 PM -- Server version: 10.1.9-MariaDB -- PHP Version: 5.6.15 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CH...
DROP TABLE beer; CREATE TABLE IF not exists beer ( id SERIAL PRIMARY KEY, brewId VARCHAR(255) );
<filename>sql/prototypical_general.sql CREATE TABLE prototypical_general AS SELECT prediction, actualSource, title, predictionScore FROM predictions_top_score WHERE prediction = "BBC" AND prediction = actualSource ORDER BY predictionScore DESC, length(title) DESC LIMIT 1; INSERT INTO protot...
/* VerseBot for reddit By <NAME> create_user_translations_table.sql Copyright (c) 2015 <NAME> (MIT License) */ CREATE TABLE user_translations ( id INTEGER PRIMARY KEY, username TEXT, ot_default TEXT, nt_default TEXT, deut_default TEXT, last_used DATETIME NOT NULL DEFAULT CURRENT_TIMESTA...
<reponame>pradeepkumarcm-egov/DIGIT-Dev ALTER TABLE EDCR_PDF_DETAIL RENAME COLUMN failedLayers TO failurereasons;
<filename>SistemaClinica.BackEnd.BD/Stored Procedures/SP_Diagnosticos_Actualizar.sql CREATE PROCEDURE SP_Diagnosticos_Actualizar @IdDiagnostico INT, @Diagnostico VARCHAR(50), @Activo BIT, @ModificadoPor VARCHAR(60) AS BEGIN UPDATE Diagnosticos SET Diagnostico = @Diagnostico, Activo = @Activo, Modificad...
<filename>src/test/resources/randexpr1.test_2051.sql -- randexpr1.test -- -- db eval {SELECT case when not c<b and case when not (11 not in (c+b+t1.d- -13+e,(select -min((case (abs(t1.a)/abs(a)) when 13 then b else -19 end+11)) from t1),d)) and 13 in (19,t1.c,t1.e) then t1.b else 17 end<=~t1.e then +b*t1.c else t1.b...
<filename>hasura/migrations/1597577665522_alter_table_public_cards_alter_column_position/up.sql ALTER TABLE "public"."cards" ADD CONSTRAINT "cards_position_key" UNIQUE ("position");
-- file:numeric_big.sql ln:215 expect:true INSERT INTO num_exp_div VALUES (4,4,'1.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
<filename>benchmark/MLB/queries/58.sql<gh_stars>1-10 SELECT CAST("MLB_15"."year" AS SIGNED) AS "year" FROM "MLB_15" GROUP BY "MLB_15"."year", "MLB_15"."year";
# hgdpGeo.sql was originally generated by the autoSql program, which also # generated hgdpGeo.c and hgdpGeo.h. This creates the database representation of # an object which can be loaded and saved from RAM in a fairly # automatic way. #Human Genome Diversity Project population allele frequencies (bed 4+) CREATE TAB...
<gh_stars>1000+ -- 2018-04-28T09:35:51.570 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Menu (Action,AD_Client_ID,AD_Menu_ID,AD_Org_ID,AD_Window_ID,Created,CreatedBy,Description,EntityType,InternalName,IsActive,IsCreateNew,IsReadOnly,IsSOTrx,IsSummary,Name,Updated,UpdatedBy,WEBUI_Na...
<reponame>workcartersmith/smart-anc library ANCDT16 using FHIR version '4.0.1' include FHIRHelpers version '4.0.1' include ANCConfig called Config include ANCConcepts called Cx include ANCDataElements called PatientData include ANCContactDataElements called ContactData context Patient /* ("Population prevalence of...
/* * Copyright 1999-2018 Alibaba Group Holding Ltd. * * 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 applica...
select title, tags, akas from aws.aws_ec2_application_load_balancer where arn = '{{ output.resource_aka.value }}'
<reponame>mitring/cuba -- Description: alter table SYS_APP_FOLDER add column APPLY_DEFAULT boolean; alter table SEC_SEARCH_FOLDER add column APPLY_DEFAULT boolean;
/* Navicat MySQL Data Transfer Source Server : ActivitOrder Source Server Version : 50505 Source Host : localhost:3306 Source Database : activitorder Target Server Type : MYSQL Target Server Version : 50505 File Encoding : 65001 Date: 2017-03-10 16:57:12 */ SET FOREIGN_KEY_CHECKS=...
drop table if exists t_par; CREATE TABLE t_par (c_short smallint, c_bigint bigint,c_date DATE, c_timestamp TIMESTAMP,c_datetime DATETIME, c_timestampltz TIMESTAMPLTZ, c_timestamptz TIMESTAMPTZ, c_datetimeltz DATETIMELTZ, c_datetimetz DATETIMETZ); insert into t_par values(1,1000,date'2020-12-12', timestamp'1999-04-23 ...