sql
stringlengths
6
1.05M
ALTER TABLE users DROP COLUMN IF EXISTS starting_amount;
-- -- PostgreSQL database dump -- -- Dumped from database version 9.4.1 -- Dumped by pg_dump version 9.4.4 -- Started on 2016-03-25 13:54:01 CREATE EXTENSION postgis; SET statement_timeout = 0; SET lock_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; SET check_function_bodies = false...
<filename>src/apex/application/shared_components/globalization/translations.sql prompt --application/shared_components/globalization/translations begin -- Manifest -- TRANSLATIONS: 100 -- Manifest End wwv_flow_api.component_begin ( p_version_yyyy_mm_dd=>'2020.03.31' ,p_release=>'20.1.0.00.13' ,p_default_worksp...
--<snippetsp_tracertokens> DECLARE @publication AS sysname; DECLARE @tokenID AS int; SET @publication = N'AdvWorksProductTran'; USE [AdventureWorks2012] -- Insert a new tracer token in the publication database. EXEC sys.sp_posttracertoken @publication = @publication, @tracer_token_id = @tokenID OUTPUT...
USE [CodeFirstDB] GO IF NOT EXISTS(SELECT * FROM Subjects WHERE Name = 'History' AND TeacherId = 1) BEGIN INSERT INTO [dbo].[Subjects] ([Name] ,[TeacherId]) VALUES ('History' ,1) END GO IF NOT EXISTS(SELECT * FROM Subjects WHERE Name = 'Math' AND TeacherId = 1) BEGIN INSERT INTO [dbo].[Su...
CREATE TABLE "customers" ( "id" SERIAL PRIMARY KEY, "order_id" int UNIQUE, "name" text, "cpf" numeric, "tel" text, "address" text ); CREATE TABLE "agencies" ( "id" SERIAL PRIMARY KEY, "name" text, "cnpj" text, "description" text, "tel" text ); CREATE TABLE "addresses" ( "id" SERIAL PRIMARY KEY...
<reponame>mariodavid/testery alter table TESTERY_TESTSUITE add column TESTACTION_CATEGORY_ID uuid ;
-- SPDX-License-Identifier: Apache-2.0 -- Licensed to the Ed-Fi Alliance under one or more agreements. -- The Ed-Fi Alliance licenses this file to you under the Apache License, Version 2.0. -- See the LICENSE and NOTICES files in the project root for more information. PRINT N'Adding foreign keys to [edfi].[StudentScho...
<filename>opensrp-reporting/src/main/resources/migrations/postgres/anmReport/V1_0_6__Adding_User_Data_For_Training.sql INSERT INTO anm_report.dim_anm (anmIdentifier) VALUES ('trainer1'); INSERT INTO anm_report.dim_anm (anmIdentifier) VALUES ('trainer2'); INSERT INTO anm_report.dim_anm (anmIdentifier) VALUES ('user1')...
<reponame>da2x/websub.rocks CREATE TABLE `publishers` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `user_id` int(11) DEFAULT NULL, `date_created` datetime DEFAULT NULL, `input_url` varchar(255) DEFAULT NULL, `content_type` varchar(255) DEFAULT NULL, `hub_url` varchar(255) DEFAULT NULL, `self_url` varc...
<filename>BigQuery/query_201703.sql SELECT org.login as org, repo.name as repo, count(*) as activity, SUM(IF(type = 'IssueCommentEvent', 1, 0)) as comments, SUM(IF(type = 'PullRequestEvent', 1, 0)) as prs, SUM(IF(type = 'PushEvent', 1, 0)) as commits, SUM(IF(type = 'IssuesEvent', 1, 0)) as issues, EXACT...
/* * Copyright (c) 2016, 2019, Oracle and/or its affiliates. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License, version 2.0, * as published by the Free Software Foundation. * * This program is also distributed with...
<filename>db/migrations/sqlite/000072_add_tokenpool_info.down.sql ALTER TABLE tokenpool DROP COLUMN info;
<reponame>PierreDucroquet/icu_ext<filename>sql/tests-01.sql -- regression tests for icu_ext CREATE EXTENSION icu_ext; -- Check that the database has the built-in ICU collations -- required by the tests SELECT collname FROM pg_collation WHERE collname IN ('und-x-icu', 'en-x-icu') ORDER BY collname; -- icu_char_name ...
<gh_stars>1-10 /****** Object: Table [Profile.Data].[Person.FilterRelationship] Script Date: 9/10/2020 9:27:16 AM ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [UCSF.].[MonitorPersonFilter]( [action] [nvarchar](200) NOT NULL, [PersonID] [int] NOT NULL, [PersonFilterid] [int] NOT NULL, ...
<reponame>zionyun/cubrid-testcases --+ holdcas on; set names utf8; drop table if exists t; create table t (i int, s varchar(10) collate utf8_ja_exp); -- do not match contractions accross boundary: 'ぁゝ' is a constractions in utf8_ja_exp collation insert into t values (1,'ぁゝ _ぁゝ'); insert into t values (2,' ぁゝ_ぁゝ_ぁゝ ');...
<gh_stars>0 SELECT LastName ,Commission FROM Employees WHERE Commission < 400; SELECT LastName ,Commission FROM Employees WHERE NOT Commission < 400; SELECT LastName ,Commission FROM Employees WHERE Commission <> 300;
<gh_stars>0 SELECT t_id + 888888888 AS t_id, 888888802::int8 AS t_basket, 'plzoch1lv95dplzortschaft_ortschaftsname'::varchar(60) AS t_type, NULL::varchar(200) AS t_ili_tid, atext, kurztext, indextext, sprache, ortschaftsname_von + 888888888 AS ortschaftsname_von FROM agi_plz_ortschaften.plzortschaft_ortschaftsname;
<reponame>ilyazavadskij/BKP ALTER TABLE job_real ADD COLUMN executor_id uuid; CREATE OR REPLACE VIEW job AS SELECT * FROM job_real; ALTER VIEW job ALTER COLUMN id SET DEFAULT nextval('job_real_id_seq');
<reponame>AwalludinFajar/sisema<filename>dbx/logistic_db.sql -- phpMyAdmin SQL Dump -- version 4.9.1 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Aug 29, 2020 at 08:19 PM -- Server version: 5.7.29-0ubuntu0.18.04.1 -- PHP Version: 5.6.40-24+ubuntu18.04.1+deb.sury.org+1 SET SQL_MODE = "N...
-- phpMyAdmin SQL Dump -- version 4.7.9 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jun 04, 2018 at 07:52 AM -- 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_zone = "+00:00"; /*!40101 SET @OLD...
-- CreateTable CREATE TABLE "_AnimesToUsers" ( "A" TEXT NOT NULL, "B" TEXT NOT NULL ); -- CreateIndex CREATE UNIQUE INDEX "_AnimesToUsers_AB_unique" ON "_AnimesToUsers"("A", "B"); -- CreateIndex CREATE INDEX "_AnimesToUsers_B_index" ON "_AnimesToUsers"("B"); -- AddForeignKey ALTER TABLE "_AnimesToUsers" ADD ...
<filename>db/structure.sql<gh_stars>0 -- -- PostgreSQL database dump -- -- Dumped from database version 10.5 -- Dumped by pg_dump version 10.5 SET statement_timeout = 0; SET lock_timeout = 0; SET idle_in_transaction_session_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; SELECT pg_cat...
<reponame>rcus/rental -- -- Drop all tables in the right order. -- DROP TABLE IF EXISTS rm_Movie2Genre; DROP TABLE IF EXISTS rm_Genre; DROP TABLE IF EXISTS rm_Movie; -- -- Create table for my own movie database -- DROP TABLE IF EXISTS rm_Movie; CREATE TABLE rm_Movie ( id INT AUTO_INCREMENT PRIMARY KEY NOT NULL, ...
select item_id from ca_list_items where list_id=$vn_list_id)"; select item_id from ca_list_item_labels where name_singular = ? and is_preferred = 0 and locale_id = ? update ca_list_items set parent_id = 300 where list_id = 106 update ca_list_items set parent_id = 382 where list_id = 106
<gh_stars>1-10  -- Delete Dashboard data
<gh_stars>1-10 SET NAMES utf8mb4; SET FOREIGN_KEY_CHECKS = 0; -- ---------------------------- -- Table structure for i18n_message -- ---------------------------- DROP TABLE IF EXISTS `i18n_message`; CREATE TABLE `i18n_message` ( `code` varchar(250) NOT NULL COMMENT 'mapping code', `locale` varchar(100) NOT NULL CO...
--1. Faça inicialmente a seguinte inserção: insert into filme values(default,'Superman',120,2018,null,3); --2. Verifique quais os títulos dos filmes que possuem duração maior que 120 min (0,5)? select titulo, duracao from filme where duracao>120; --3. Na tabela ARTISTA, quais artistas possuem cidade n...
<gh_stars>1-10 perform 2; perform 2;
-- phpMyAdmin SQL Dump -- version 5.0.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 01 Sep 2021 pada 04.00 -- Versi server: 10.4.16-MariaDB -- Versi PHP: 7.4.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@C...
<gh_stars>1-10 USE [ANTERO] GO DROP TABLE [dw].[f_haku_ja_valinta_hakeneet_korkea_aste] GO /****** Object: Table [dw].[f_haku_ja_valinta_hakeneet_korkea_aste] Script Date: 7.2.2020 10:39:56 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO SET ANSI_PADDING ON GO CREATE TABLE [dw].[f_haku_ja_valinta_hake...
<gh_stars>10-100 -- file:cluster.sql ln:49 expect:true INSERT INTO clstr_tst (b, c) VALUES (30, 'treinta')
COLLECT STATISTICS COLUMN ( IND_TIPO_TARJETA ) ON DB_1.TABLE_1; COLLECT STATISTICS INDEX ( COD_TARJETA, COD_EST, IND_TIPO_TARJETA, FEC_ANIO_MES ) ON DB_1.TABLE_1;
<reponame>DzonnyDZ/Caps<filename>CapsData/Create Scripts/Tables/Keys/FK_Cap_Keyword_Int_Keyword.fkey.sql ALTER TABLE [dbo].[Cap_Keyword_Int] ADD CONSTRAINT [FK_Cap_Keyword_Int_Keyword] FOREIGN KEY ([KeywordID]) REFERENCES [dbo].[Keyword] ([KeywordID]) ON DELETE NO ACTION ON UPDATE NO ACTION;
ALTER TABLE t_item_type ADD COLUMN item_alias VARCHAR(100); update t_item_type set item_alias=item_name where item_alias is null; -- UPDATE t_item_count ic SET input_code = (SELECT input_code FROM t_item_type it WHERE it.item_code = ic.item_code);
<reponame>jonathangreen/simplified-server-core<gh_stars>1-10 -- We no longer make any assumptions about the medium associated -- with an edition. ALTER TABLE editions ALTER COLUMN medium DROP DEFAULT;
CREATE SCHEMA "IOM"; CREATE TABLE "IOM"."COMMENTS"( "CREATED_DATE" NVARCHAR(255), "COMMENT_TEXT" NVARCHAR(255), "AUTHOR" NVARCHAR(255), "MATNO_PLANT" NVARCHAR(255), "SD_NO_ITEM" NVARCHAR(255), "PD_NO_ITEM" NVARCHAR(255), "ID" BIGINT NOT NULL GENERATED BY DEFAULT AS IDENTITY, PRIMARY KEY ( "ID" ) ); CREATE ...
-- -- CREATE_OPERATOR -- CREATE OPERATOR ## ( leftarg = path, rightarg = path, procedure = path_inter, commutator = ## ); CREATE OPERATOR <% ( leftarg = point, rightarg = widget, procedure = pt_in_widget, commutator = >% , negator = >=% ); CREATE OPERATOR @#@ ( rightarg = int8, -- left...
<gh_stars>1-10 INSERT INTO `settings_parameters` (`parameter_id`, `name`, `description`, `var`, `type`, `module`, `enabled`, `group_id`, `config`) VALUES (NULL, 'Show VAT', 'Show the VAT number text field within the customer form.', 'customer_vat', 'checkbox', 'admin', '1', '1', NULL); INSERT INTO `settings_parameters`...
-- We want to compare a number of things. -- For a particular player: -- 1) # of eligible blocks mined -- 2) Generation and Drop events, by type, measuring size -- 3) # of ores mined -- 4) Within those event time slices, how many ores picked up -- Approach: -- 1) Create data subset with ore and stone-type mining ...
<filename>data/lubm/lubm_q5.sql<gh_stars>100-1000 select distinct ?x where { ?x <rdf:type> <ub:UndergraduateStudent>. }
<gh_stars>0 -- @testpoint:opengauss关键字national(非保留),作为表空间名 --关键字不带引号,创建成功 drop tablespace if exists national; CREATE TABLESPACE national RELATIVE LOCATION 'hdfs_tablespace/hdfs_tablespace_1'; drop tablespace national; --关键字带双引号,创建成功 drop tablespace if exists "national"; CREATE TABLESPACE "national" RELATIVE LOCATI...
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Feb 12, 2020 at 12:35 PM -- Server version: 10.1.19-MariaDB -- PHP Version: 7.0.13 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHAR...
<gh_stars>0 CREATE DATABASE todo_database; --\c into todo_database CREATE TABLE todo( todo_id SERIAL PRIMARY KEY, description VARCHAR(255) );
<gh_stars>0  CREATE PROCEDURE [dbo].[app_LibraryCrosswalk_GetByLibraryID] @ID INT = 0 AS SELECT * FROM LibraryCrosswalk WHERE BranchID = @ID
CREATE TABLE systems ( sys_id serial PRIMARY KEY, sys_name character varying(100) NOT NULL, sys_desc character varying(4000) ) WITH ( OIDS=FALSE ); COMMENT ON COLUMN systems.sys_name is 'System name, like a hostname or a metering point code'; COMMENT ON COLUMN systems.sys_desc is 'A human readable description ...
-- phpMyAdmin SQL Dump -- version 4.1.14 -- http://www.phpmyadmin.net -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 30-01-2017 a las 01:50:13 -- Versión del servidor: 5.6.17 -- Versión de PHP: 5.5.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARA...
SELECT AVG(standard_amt_usd) AS avg_std_usd, AVG(standard_qty) AS avg_std_qty, AVG(gloss_amt_usd) AS avg_gloss_usd, AVG(gloss_qty) AS avg_gloss_qty, AVG(poster_amt_usd) AS avg_poster_usd, AVG(poster_qty) AS avg_poster_qty FROM orders o; SELECT MIN(occurred_at) FROM orde...
<reponame>atombrella/Dawa DROP FUNCTION IF EXISTS vask_adgangsadresser_update_tsv() CASCADE;
-- phpMyAdmin SQL Dump -- version 4.7.0 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Mar 26, 2018 at 12:15 AM -- Server version: 10.1.26-MariaDB -- PHP Version: 7.1.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
-- insert into user (name, age) values ('lujiahao', 18); INSERT INTO user(`id`, `name`, `password`, `perms`) VALUES (1, 'lujiahao', '123', 'user:add'); INSERT INTO user(`id`, `name`, `password`, `perms`) VALUES (2, '111', '111', 'user:update');
<reponame>UWIT-IAM/uw-redcap-client<filename>schema/revert/warehouse/encounter/age.sql -- Revert seattleflu/schema:warehouse/encounter/age from pg begin; alter table warehouse.encounter drop column age; commit;
<filename>transform/snowflake-dbt/models/staging/netsuite/xf/netsuite_transaction_lines_xf.sql WITH transaction_lines AS ( SELECT * FROM {{ref('netsuite_transaction_lines')}} ), transaction_lines_pii AS ( SELECT * FROM {{ref('netsuite_transaction_lines_pii')}} ), transactions AS ( SELECT * FROM {{re...
ALTER TABLE `dbc_project` ADD `manualorder` BOOLEAN NOT NULL DEFAULT FALSE AFTER `notes`
<reponame>jdkoren/sqlite-parser<gh_stars>100-1000 -- select1.test -- -- execsql { -- SELECT t3.*, t4.b FROM t3, t4; -- } SELECT t3.*, t4.b FROM t3, t4;
<reponame>Shuttl-Tech/antlr_psql -- file:triggers.sql ln:924 expect:true CREATE TRIGGER no_op_trig INSTEAD OF INSERT OR UPDATE OR DELETE ON european_city_view FOR EACH ROW EXECUTE PROCEDURE no_op_trig_fn()
set verify off grant create session, create table, create sequence, create view, create procedure to co identified by "&co_password"; alter user co default tablespace &tbs quota unlimited on &tbs; alter user co temporary tablespace &ttbs;
ALTER TABLE public.ad_ui_section ALTER COLUMN value SET DEFAULT nextval('public.ad_ui_section_seq'); -- 2017-05-26T11:10:29.406 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO t_alter_column values('ad_ui_section','Value','VARCHAR(40)',null,null) ; -- 2017-05-26T11:10:29.416 -- I ...
<filename>coeus-db/coeus-db-sql/src/main/resources/org/kuali/coeus/coeus-sql/RELEASE-SCRIPTS/KC-RELEASE-3_0-CLEAN/oracle/krrelease/datasql/KREW_RULE_TMPL_T.sql TRUNCATE TABLE KREW_RULE_TMPL_T DROP STORAGE / INSERT INTO KREW_RULE_TMPL_T (NM,OBJ_ID,RULE_TMPL_DESC,RULE_TMPL_ID,VER_NBR) VALUES ('WorkflowDocumentDelegatio...
ALTER TABLE `areatrigger_template` ADD COLUMN `required_item` int(11) unsigned NOT NULL default '0' AFTER `required_level`;
-- MySQL Workbench Forward Engineering SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0; SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0; SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='TRADITIONAL,ALLOW_INVALID_DATES'; -- ----------------------------------------------------- -- Schema segui263_...
insert into exchange_value(id,currency_from,currency_to,conversion_multiple,port) values(1001,'USD','INR',65,0); insert into exchange_value(id,currency_from,currency_to,conversion_multiple,port) values(1002,'EUR','INR',75,0); insert into exchange_value(id,currency_from,currency_to,conversion_multiple,port) values(1003,...
drop table travel; create table travel(caseId VARCHAR(15), HolidayType VARCHAR(20), Price INTEGER, NumberOfPersons INTEGER, Region VARCHAR(30), Transportation VARCHAR(30), Duration INTEGER, Season VARCHAR(30), Accommodation VARCHAR(30), Hotel VARCHAR(50)); insert into travel values('Journey1','Bathing',2498,2,'Egypt','...
ALTER TABLE expiring_code_store ADD COLUMN intent LONGVARCHAR DEFAULT NULL;
<gh_stars>1-10 -- Memory limit must correctly apply, triggering an exception: SET max_memory_usage = '100M'; SELECT length(topK(5592405)(tuple(number))) FROM numbers(10) GROUP BY number; -- { serverError 241 }
<filename>bot/migrations/2021-04-10-125642_songs_add_played/down.sql<gh_stars>10-100 CREATE TABLE songs2 ( id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, deleted BOOLEAN NOT NULL DEFAULT FALSE, track_id VARCHAR NOT NULL, added_at TIMESTAMP NOT NULL, user VARCHAR, promoted_at TIMESTAMP DEFAULT NU...
BEGIN; SET search_path = 'cover_art_archive'; CREATE OR REPLACE FUNCTION materialize_caa_presence() RETURNS trigger AS $$ BEGIN -- On delete, set the presence flag to 'absent' if there's no more -- cover art IF TG_OP = 'DELETE' THEN IF NOT EXISTS ( SELECT TRUE F...
<filename>scripts/1. AddiXi_struttura.sql -- phpMyAdmin SQL Dump -- version 3.3.2deb1 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generato il: 26 set, 2011 at 08:03 PM -- Versione MySQL: 5.1.41 -- Versione PHP: 5.3.8-ZS5.5.0 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHA...
<gh_stars>0 USE flyway_test_db; INSERT INTO address ( city, street ) VALUES ( 'San Francisco', '6th' ); INSERT INTO user ( name, surname, address_id ) VALUES ( 'Darth', 'Vader', (SELECT id FROM address WHERE city='San Francisco'));
<reponame>centaurussa/Airport-Virtual-Agent-Public<filename>docs/database design/airportinfo.sql -- MySQL dump 10.13 Distrib 8.0.15, for Win64 (x86_64) -- -- Host: localhost Database: airportinfo -- ------------------------------------------------------ -- Server version 8.0.15 /*!40101 SET @OLD_CHARACTER_SET_CLIE...
-- extensions CREATE extension IF NOT EXISTS "uuid-ossp"; -- drop tables if they already exist drop table if exists public.compute_result, public.compute, public.event CASCADE; -- event CREATE TABLE IF NOT EXISTS public.event ( id UUID PRIMARY KEY NOT NULL DEFAULT uuid_generate_v4(), name VARCHA...
<gh_stars>0 CREATE TABLE IF NOT EXISTS products ( id int(11) NOT NULL PRIMARY KEY AUTO_INCREMENT, descripcion varchar(255), codProducto varchar(255), unidad varchar(255), mtoValorUnitario decimal(10,2), companyRuc varchar(11), updated_at datetime, created_at datetime ); CREATE TABLE IF NOT EXISTS clien...
<gh_stars>0 DROP VIEW IF EXISTS `v_chats_bookings`; CREATE VIEW `v_chats_bookings` AS SELECT `m`.`message` AS `message`, `m`.`date_sent` AS `date_sent`, `m`.`id_bookings` AS `id_bookings`, `m`.`ordre_message` AS `ordre_message`, `c`.`id` AS `id_owner`, `c`.`client_name` AS `owner_first_name`, ...
drop table if exists `policies_subtypes_definitions`; create table `policies_subtypes_definitions`( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, -- `policies_type_id` int(11) unsigned NOT NULL, -- `group_id` int(11) unsigned NOT NULL, `name` varchar(150) null, `description` text null, `create` timestamp n...
<reponame>SAEONData/SAEIS<filename>SAEIS.Database/dbo/Tables/WRC Reports.sql<gh_stars>0 CREATE TABLE [dbo].[WRC Reports] ( [Title] NVARCHAR (MAX) NULL, [Author] NVARCHAR (MAX) NULL, [ReportNo] NVARCHAR (MAX) NULL, [LinkToManuscript] NVARCHAR (MAX) NULL );
ALTER TABLE `dlayer`.`user_site_page_content_item_rich_text` ADD CONSTRAINT `user_site_page_content_item_rich_text_fk1` FOREIGN KEY (`site_id`) REFERENCES `user_site` (`id`), ADD CONSTRAINT `user_site_page_content_item_rich_text_fk2` FOREIGN KEY (`page_id`) REFERENCES `user_site_page` (`id`), ADD CONSTRAIN...
<filename>Code/Master/StoredProcedures/sp_helptext2.sql USE master; GO IF (OBJECT_ID('dbo.sp_helptext2') IS NULL) BEGIN EXEC('Create procedure dbo.sp_helptext2 as raiserror(''Empty Stored Procedure!!'', 10, 1) with seterror') IF (@@error = 0) PRINT 'Successfully created empty stored procedure dbo.sp_helptext2.' E...
<filename>Miscellaneous/StoredProcedures/Backup_2015 March 25/h3giMergeDpdTracking.sql CREATE PROC [dbo].[h3giMergeDpdTracking] AS BEGIN MERGE h3giDpdTracking AS dest USING h3giDpdTrackingTemp AS temp ON (dest.orderRef = temp.orderRef) WHEN MATCHED THEN UPDATE SET dest.dpdRef = temp.dpdRef, dest.ti...
<gh_stars>10-100 CREATE TABLE IF NOT EXISTS `activities_ActivityEntry` ( `activityEntryId` bigint(20) NOT NULL AUTO_INCREMENT, `memberId` bigint(20) NOT NULL, `createDate` datetime NOT NULL, `activityCategory` VARCHAR(30) NULL, `activityType` VARCHAR(75) NULL, `categoryId` BIGINT(20) NOT NULL, `additional...
<filename>db/migrate/000468_queue.sql<gh_stars>10-100 ALTER TABLE `queue` ADD `tries` int(11) DEFAULT 0;
UPDATE [dbo].[CalculationRule] SET choices ='[{"id": "0", "name": "N/A"}, {"id": "25", "name": "25%-49% spaces shared"}, {"id": "50", "name": "50%-74% spaces shared"}, {"id": "75", "name": "75%-99% spaces shared"}, {"id": "100", "name": "100% spaces shared"}]' WHERE calculationid = 1 AND code ='STRATEGY_PARKING_3'; U...
--View a list of submitted ECP claims' eligibility criteria select * from public.early_career_payments_eligibilities where created_at BETWEEN '2021-06-01T00:00:01' and '2021-10-29T14:33:14' -- e.g. Datetime format 2021-04-29T14:33:14 order by created_at --View a list of submitted ECP claims select * from publi...
<filename>tests/data/derived-tables/test.limb.1.sql INSERT INTO limb VALUES (1, 1, 45, 0), (1, 2, 45, 0), (1, 3, 45, 0), (1, 4, 45, 0); INSERT INTO limb VALUES (2, 1, 11, 1), (2, 2, 11, 1), (2, 3, 11, 1), (2, 4, 11, 1); INSERT INTO limb VALUES (3, 1, 88, 2), (3, 2, 88, 2), (3, 3, 88, 1), (3, 4, 88, 1);
<filename>internal/endtoend/testdata/ddl_alter_table_set_data_type/mysql/schema.sql CREATE TABLE foo (bar text); ALTER TABLE foo MODIFY bar integer;
<reponame>smallx/spark-tpcds-datagen<filename>tpcds-multi-engine/spark-prepared/q30.sql WITH customer_total_return AS (SELECT wr_returning_customer_sk AS ctr_customer_sk, ca_state AS ctr_state, sum(wr_return_amt) AS ctr_total_return FROM ${database}.web_returns, ${database}.date_dim, ${database}.customer_...
UPDATE TRANSCRIPT_MESSAGE SET GRAD_PROJECTED_MESSAGE='Based on the information provided by the school, this student is projected to graduate in the %s',HONOUR_PROJECTED_NOTE='Based on the information provided by the school, this student is projected to graduate in the %s with Honours.' WHERE GRADUATION_PROGRAM_CODE != ...
<filename>_install/data/ja/generalKeywords.sql<gh_stars>0 -- Feature types --INSERT INTO resto.keywords (name, value, lang, type) VALUES ('画像', 'image', 'ja', 'type'); --INSERT INTO resto.keywords (name, value, lang, type) VALUES ('データ', 'image', 'ja', 'type'); --INSERT INTO resto.keywords (name, value, lang, type) VAL...
<gh_stars>1-10 -- Copyright 2021 University of Stuttgart -- -- 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 appl...
BEGIN; -- delete all applications that have no tenant having access to them - orphaned data DELETE FROM applications WHERE id NOT IN (SELECT id FROM tenant_applications); -- delete all runtimes that have no tenant having access to them - orphaned data DELETE FROM runtimes WHERE id NOT IN (SELECT id FROM tenant_runtim...
INSERT INTO `app_user` VALUES ('c8bdc9a9971111111111152ed5', '11111111111', 'qqqqqqqqqq', 0, '2021/07/14 11:11:11', '2021/01/14 22:22:22');
-- Deploy open_changes_view -- requires: most_recent_patchsets_view BEGIN; DROP VIEW open_changes; CREATE OR REPLACE VIEW open_changes AS SELECT o.enterprise_id AS enterprise_id, o.id AS organization_id, p.id AS project_id, c.id, c.pipeline_id, c.feature_branch, ...
<gh_stars>1000+ -- ALERT! DESTRUCTIVE MIGRATION -- DO NOT DEPLOY UNTIL PREVIOUS COMMIT IS DEPLOYED ALTER TABLE version_downloads DROP CONSTRAINT version_downloads_pkey, ADD CONSTRAINT version_downloads_pkey PRIMARY KEY USING INDEX version_downloads_unique, DROP COLUMN id;
<gh_stars>1-10 CREATE TABLE tst (i int, s string default current_user); insert into tst values (1, 'user_string1'); insert into tst values (2, 'user_string2'); insert into tst values (3, 'user_string3'); insert into tst values (4, 'user_string4'); select * from tst order by 1,2; update tst set s = default where i...
-- @testpoint:opengauss关键字datetime_interval_code(非保留),作为模式名 --关键字不带引号-成功 drop schema if exists datetime_interval_code; create schema datetime_interval_code; drop schema datetime_interval_code; --关键字带双引号-成功 drop schema if exists "datetime_interval_code"; create schema "datetime_interval_code"; drop schema "datetime_...
<reponame>guinso/datavault -- Adminer 4.3.1 MySQL dump SET NAMES utf8; SET time_zone = '+00:00'; SET foreign_key_checks = 0; SET sql_mode = 'NO_AUTO_VALUE_ON_ZERO'; SET NAMES utf8mb4; DROP TABLE IF EXISTS `hub_invoice_order_rev0`; CREATE TABLE `hub_invoice_order_rev0` ( `invoice_order_hash_key` char(32) COLLATE ut...
<reponame>rochaandre/scripts-oracle-named<filename>+usados/Novos/Sessions/session_times.sql ------------------------------------------------------------------------------- -- -- Script: session_times.sql -- Purpose: to report the time used and waiting for a session -- -- Copyright: (c) Ixora Pty Ltd -- Author: <N...
-- phpMyAdmin SQL Dump -- version 4.6.5.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jul 15, 2017 at 11:28 PM -- Server version: 10.1.21-MariaDB -- PHP Version: 7.0.15 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SE...
<reponame>mens-rea/si-002-eightdistrict -- phpMyAdmin SQL Dump -- version 4.4.14 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: May 16, 2016 at 10:18 PM -- Server version: 5.6.26 -- PHP Version: 5.6.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACT...
<gh_stars>0 --DATA FOR USER TABLE --insert into user (ID, NAME, USERNAME, PASSWORD, TOKEN, birth_Date) values (1, '<NAME>', 'jdoe','1234', NULL, SYSDATE()); --insert into user (ID, NAME, USERNAME, PASSWORD, TOKEN, birth_Date) values (2, '<NAME>', 'fiore', '1234', NULL, SYSDATE()); --insert into user (ID, NAME, USERNAME...
-- phpMyAdmin SQL Dump -- version 4.8.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jul 29, 2018 at 06:00 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 @O...