sql
stringlengths
6
1.05M
<filename>YammerApplication/YETIDatabase/dbo/Tables/Dupthreads_DocLibThreadDetails.sql CREATE TABLE [dbo].[Dupthreads_DocLibThreadDetails] ( [DocLibName] NVARCHAR (MAX) NULL, [TopLevelFolderSP] NVARCHAR (MAX) NULL, [ThreadID] NVARCHAR (MAX) NULL, [ThreadID_FileName] NVARCHA...
<reponame>Hadeaji/book_app<filename>data/books.sql DROP TABLE IF EXISTS books; CREATE TABLE books ( id SERIAL PRIMARY KEY, authors VARCHAR(255), title VARCHAR(255), isbn VARCHAR(255), image_url VARCHAR(1000), description VARCHAR(10000000), bookshelf VARCHAR(255) );
<filename>jpa/src/main/resources/db/migration/V2__init_database_data.sql INSERT INTO `department` VALUES (2, '研发部', 7, b'1', '2019-03-25 09:15:32','2019-03-25 09:14:05'); INSERT INTO `department` VALUES (5, '运维部', 7, b'1', '2019-03-25 09:20:44','2019-03-25 09:14:05'); INSERT INTO `department` VALUES (6, '测试部', 8, b'1',...
<reponame>YordanGeorgiev/isg-pub -- @SCHEMA_NAME define nice date and number formatting -- enable printing set serveroutput on format wrapped; set feedback off ; Begin Dbms_Output.Put_Line('START RUNNING script : /path/to/sql/script.sql'); Dbms_Output.Put_Line('SETTING YYYY-MM-DD HH24:MI:SS date format an...
WITH origin1 as(SELECT r.id_ricetta, re.id_farmacia, p.id as id_paziente, p.nome as nome_paziente, p.cognome as cognome_paziente, p.codice_fiscale as codFiscalePaziente, r.data_prescrizione, r.descrizione, m.id as codice_medico, m.nome || ' ' || m.cognome AS medico_prescrivente, m.sesso as sesso_medico, re.data_erogazi...
<gh_stars>0 /**********/ /* SCHEMA */ /**********/ CREATE SCHEMA recm8 AUTHORIZATION usr_recm8; ALTER ROLE usr_recm8 SET search_path = recm8; /*********/ /* TABLE */ /*********/ CREATE TABLE recm8.image ( img_id SERIAL PRIMARY KEY, image bytea, msec int, created_at timestamp DEFAULT (now()) ); CREATE TABLE...
<filename>processing/sql/dml/043b_prng_switch_tables.sql alter table prng rename to prng_old; alter table prng_new rename to prng; alter index idx_prng_geom rename to idx_prng_geom_old; alter index idx_prng_count rename to idx_prng_count_old; alter index idx_prng_geom_new rename to idx_prng_geom; alter index idx_prng_c...
<reponame>The-Makers-of-things/dune-snippets BEGIN; DROP MATERIALIZED VIEW IF EXISTS gnosis_protocol.view_balances; CREATE MATERIALIZED VIEW gnosis_protocol .view_balances AS WITH last_movement as (SELECT MAX (batch_id) as batch_id, MAX (movement_date) as movement_date, trader, token FROM gnosis...
PRINT 'Inserting Application.TransactionTypes' GO DECLARE @CurrentDateTime datetime2(7) = '20130101' DECLARE @EndOfTime datetime2(7) = '99991231 23:59:59.9999999' INSERT [Application].TransactionTypes (TransactionTypeID, TransactionTypeName, LastEditedBy, ValidFrom, ValidTo) VALUES (1,'Customer Invoice', 1, ...
<reponame>dram/metasfresh  DROP INDEX IF EXISTS exp_replicationtrxline_exp_replicationtrx_id; CREATE INDEX exp_replicationtrxline_exp_replicationtrx_id ON exp_replicationtrxline (exp_replicationtrx_id ASC NULLS LAST);
-- 2019-06-03T12:21:04.111 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Process (AccessLevel,AD_Client_ID,AD_Org_ID,AD_Process_ID,AllowProcessReRun,Classname,CopyFromProcess,Created,CreatedBy,EntityType,IsActive,IsApplySecuritySettings,IsBetaFunctionality,IsDirectPrint,IsOneInstanceO...
<reponame>nischalbasnet/play-scalikejdbc<filename>conf/db/migration/default/V4__Friends_Address_sub_records.sql<gh_stars>0 -- Adding friends record INSERT INTO friends (user_id, friend_user_id) VALUES ('usid_1000000', 'usid_1000001'), ('usid_1000000', 'usid_1000002'), ('usid_1000000', 'usid_1000005'), ('usid_10...
<reponame>boich249/EventTicketSim # --- !Ups CREATE TABLE orders ( id INTEGER AUTO_INCREMENT PRIMARY KEY, ticket_block_id INTEGER, customer_name VARCHAR, customer_email VARCHAR, ticket_quantity INTEGER, timestamp DATETIME, FOREIGN KEY (ticket_block_id) REFERENCES ticket_blocks(id) ); # ---...
<gh_stars>10-100 insert into message ( -- only post-related fields are filled explicitly m_messageid , m_ps_imagefile , m_creationdate , m_locationip , m_browserused , m_ps_language , m_content , m_length , m_creatorid , m_locationid , m_ps_forumid ) values ( :postId , CASE :imageFile ...
/* * Active complex maps should not have the same mapTarget in different groups for a given referenced component */ insert into qa_result (runid, assertionuuid, concept_id, details) select <RUNID>, '<ASSERTIONUUID>', a.referencedComponentId, concat('ComplexMap: id=',a.id,': mapTarget=', a.mapTarget, ' is ...
<reponame>murumkar/dremio-snowflake<gh_stars>10-100 -- Taken from https://github.com/dremio/dremio-oss/blob/master/sabot/kernel/src/test/resources/queries/tpch/ select s.s_name, s.s_address from "supplier" s, "nation" n where s.s_suppkey in ( select ps.ps_suppkey from "partsupp" ps whe...
CREATE PROCEDURE SP289(OUT MYCOUNT INTEGER) SPECIFIC SP289_24706 LANGUAGE SQL NOT DETERMINISTIC READS SQL DATA NEW SAVEPOINT LEVEL BEGIN ATOMIC DECLARE MYVAR INT;SELECT COUNT(*)INTO MYCOUNT FROM TABLE393;SELECT COUNT(*)INTO MYCOUNT FROM TABLE79;SELECT COUNT(*)INTO MYCOUNT FROM TABLE121;SELECT COUNT(*)INTO MYCOUNT FROM ...
-- tasks definition CREATE TABLE tasks ( id TEXT NOT NULL PRIMARY KEY, content TEXT NOT NULL, user_id TEXT NOT NULL REFERENCES users(id), created_date TEXT NOT NULL );
create table res_sql ();
CREATE TABLE IF NOT EXISTS welcome_message ( guild_id integer PRIMARY_KEY, background text NOT NULL, template integer NOT NULL DEFAULT 1 CHECK (template IN (1, 2, 3, 4)), text_color text NOT NULL DEFAULT 'white', FOREIGN KEY (guild_id) REFERENCES guilds(guild_id) ); CREATE TABLE IF NOT EXISTS gui...
<filename>__db/stdinfo.sql /* MySQL Data Transfer Source Host: localhost Source Database: stdinfo Target Host: localhost Target Database: stdinfo Date: 4/6/2012 5:22:59 PM */ -- ---------------------------- -- Table structure for student -- ---------------------------- CREATE TABLE `student` ( `Id` int(11) NOT NULL...
delete from department; delete from employee; delete from has_account; delete from saveacc; delete from checkacc; delete from account; delete from make_loan; delete from loan_pay; update loan set state = 0; delete from loan; delete from customer; delete from contacter; delete from bank; insert into contacter values ...
<gh_stars>1-10 -- CreateTable CREATE TABLE "users" ( "id" SERIAL NOT NULL, "email" VARCHAR(255) NOT NULL, "password" TEXT NOT NULL, "name" TEXT, "created_at" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP, "updated_at" TIMESTAMP(3) NOT NULL, CONSTRAINT "users_pkey" PRIMARY KEY ("id") ); -...
insert into user values(10001, SYSDATE(), 'Alex'); insert into user values(10002, SYSDATE(), 'Tomy'); insert into user values(10003, SYSDATE(), 'Jim'); insert into post values(50001, 'post 1', SYSDATE(), 10001); insert into post values(50002, 'post 2', SYSDATE(), 10001); insert into post values(50003, 'post 3', SYSDAT...
SELECT objectid, date_time FROM cnprcSrc_billing_aud.ARESOURCE_RATE_RC WHERE RRRC_AUD_CODE = 'D';
-- -- Copyright 2015 LinkedIn Corp. All rights reserved. -- Postgres conversion copyright 2018 ezCater, Inc. All rights reserved. -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- htt...
<gh_stars>1-10 CREATE TABLE IF NOT EXISTS `accelerometer` ( `_id` int(11) NOT NULL AUTO_INCREMENT, `timestamp` double DEFAULT '0', `device_id` varchar(150) DEFAULT '', `double_values_0` double DEFAULT '0', `double_values_1` double DEFAULT '0', `double_values_2` double DEFAULT '0', `accuracy` int(11) DEFAU...
<gh_stars>1-10 -- Verify mocks:schema_mocks on pg begin; select pg_catalog.has_schema_privilege('mocks', 'usage'); rollback;
-- -- 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"); you may ...
<filename>tests/queries/0_stateless/01033_quota_dcl.sql SHOW CREATE QUOTA default;
<filename>FM2Executive/installedConfig/sql/indextype_registry.sql -- ----------------------------------------------------------------------- -- Fill in the different types of image indexing performed -- by FM for landmark/face detection and matching -- ------------------------------------------------------------------...
-- Copyright 2016 The Chromium Authors. All Rights Reserved. -- -- Use of this source code is governed by a BSD-style -- license that can be found in the LICENSE file or at -- https://developers.google.com/open-source/licenses/bsd -- Create project-related tables in monorail db. CREATE TABLE User ( user_id INT UN...
BEGIN; ALTER TABLE roaconfiguration DROP CONSTRAINT roaconfiguration_unique_per_ca; ALTER TABLE roaconfiguration ADD CONSTRAINT roaconfiguration_unique_per_ca UNIQUE(certificateauthority_id); COMMIT;
-- [er] create vclass using Constraints DEFAULT,not null and SHARED create vclass t1 ( c1 int SHARED 9 not null DEFAULT 8 ); drop t1;
CREATE TABLE departamento( "id" serial, "nome" varchar(50) NOT NULL, "data_atu" timestamp, "idGerente" integer, CONSTRAINT "DepartamentoPK" PRIMARY KEY("id"), ); CREATE TABLE funcionario( "id" serial, "nome" varchar(50) NOT NULL, "idDepartamento" int, "email" varchar(50) NOT NULL, ...
-- Table to contain all object comments. Allows multiple users to add comments and allows comments to be tracked. -- 2017-05-09 Make sure that comments cannot be added more than once. Index added for migration purposes. drop table if exists `tcs_object_comments`; create table `tcs_object_comments` ( `id` bigint unsig...
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Mar 04, 2021 at 02:17 PM -- Server version: 10.4.11-MariaDB -- PHP Version: 7.4.5 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_...
SELECT SiteID, KeyID, KeyName, KeyDisplayName, KeyValue, KeyDefaultValue, KeyCategoryID, CategoryIDPath FROM CMS_SettingsKey S LEFT JOIN CMS_SettingsCategory C ON C.CategoryIDPath LIKE CONCAT('%', S.KeyCategoryID) WHERE KeyName IN @cmsSettingsKeysNames
<reponame>guptaPriyaD/php_ci<gh_stars>0 ALTER TABLE `users` ADD `username` VARCHAR(20) NOT NULL AFTER `last_name`; ALTER TABLE `users` ADD `password` VARCHAR(20) NOT NULL AFTER `username`; ALTER TABLE `users` ADD `email` VARCHAR(50) NOT NULL AFTER `password`; UPDATE `users` SET `username` = 'johnd', `password` = '<PA...
CREATE OR REPLACE FUNCTION ts.updatechroncontrolnotes(_chroncontrolid integer, _notes character varying DEFAULT NULL::character varying) RETURNS void LANGUAGE sql AS $function$ UPDATE ndb.chroncontrols SET notes = _notes WHERE chroncontrolid = _chroncontrolid $function$
<reponame>zkingboos/UniversalWrapper create table if not exists user ( name varchar(255) )
<reponame>Jeffiftyone/Employee-Management_System<filename>db/seeds.sql insert into Department (deptid,deptname) values(1,"Sales"), (2,"Engineering"), (3,"Finance"), (4,"Legal"); insert into Roles (roleid,deptid,title,salary) values(1,1,"Sales Lead", 100000), (2,1,"Salesperson", 80000), (3,2,"Lead Engineer", 150000), (...
COPY acs2007_1yr.tmp_geoheader FROM '/mnt/tmp/acs2007_1yr/g20071ak.txt' WITH ENCODING 'latin1'; COPY acs2007_1yr.tmp_geoheader FROM '/mnt/tmp/acs2007_1yr/g20071al.txt' WITH ENCODING 'latin1'; COPY acs2007_1yr.tmp_geoheader FROM '/mnt/tmp/acs2007_1yr/g20071ar.txt' WITH ENCODING 'latin1'; COPY acs2007_1yr.tmp_geoheader F...
--most frequent reason for returns on the web create or alter function maxReturnReasonWeb() returns char(100) as begin declare @r_reason_desc char(100), @reason_id char(16); select @reason_id = r_reason_id, @r_reason_desc = r_reason_desc from (select r_reason_id, r_reason_desc, count(*) as cnt fr...
<reponame>cincuranet/FirebirdDbComparer create sequence new_generator increment by 20;
-- file:roleattributes.sql ln:39 expect:true SELECT * FROM pg_authid WHERE rolname = 'regress_test_createdb'
-- ---------------------------------------- -- -- CLEAR DOWN THE TABLE -- -- ---------------------------------------- TRUNCATE TABLE `mangos_string`; -- ---------------------------------------- -- MySQL dump 10.13 Distrib 5.5.37, for Win32 (x86) -- -- Host: localhost Database: mangos0 -- --------...
-- Copyright (c) 2021 Oracle and/or its affiliates. -- Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/ CREATE USER $INVENTORY_USER IDENTIFIED BY "$INVENTORY_PASSWORD"; GRANT unlimited tablespace to $INVENTORY_USER; GRANT connect, resource TO $INVENTORY_USER; GRAN...
<gh_stars>0 DROP TABLE IF EXISTS accident; DROP TABLE IF EXISTS population; DROP TABLE IF EXISTS license; DROP TABLE IF EXISTS reg_vehicle; -- Create a table of reg_vehicle CREATE TABLE reg_vehicle( id SERIAL PRIMARY KEY, state_name VARCHAR, num_reg_vehicle VARCHAR ); --Craete a table for license CREATE TA...
CREATE TABLE store ( id CHAVE NOT NULL, id_country CHAVE NOT NULL, id_state CHAVE, city CHARACTER VARYING(64) NOT NULL, postcode CHARACTER VARYING(12) NOT NULL, latitude DECIMAL(13, 8), longitude DECIMAL(13, 8), phone CHARACTER VARYIN...
DROP TABLE IF EXISTS `shawn_admin`; CREATE TABLE `shawn_admin`( `id` int(11) NOT NULL AUTO_INCREMENT, `username` varchar(255) COLLATE utf8_bin NOT NULL DEFAULT '' COMMENT '用户名', `password` varchar(255) COLLATE utf8_bin NOT NULL DEFAULT '' COMMENT '密码', `loginnum` int(11) NOT NULL DEFAULT '0' COMMENT '登录次数', `last_...
<reponame>ycq323/alcinoe /*==============================================================*/ /* Database name: PostgreSql */ /* DBMS name: PostgreSQL 8.3 */ /* Created on: 04.02.2003 19:59:06 */ /*===================...
<filename>migrations/2020-04-04-074635_add_checks/down.sql DROP TABLE checks;
<reponame>wolf002/basic -- phpMyAdmin SQL Dump -- version 4.6.5.2 -- https://www.phpmyadmin.net/ -- -- Хост: 127.0.0.1:3306 -- Время создания: Мар 21 2017 г., 18:03 -- Версия сервера: 5.5.53 -- Версия PHP: 5.6.29 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT...
-- add columns to hold whether or not a project's samples should be banked and if so -- when their plating should begin plated (optional) ALTER TABLE barcodes.project ADD COLUMN bank_samples BOOLEAN; UPDATE barcodes.project SET bank_samples=FALSE WHERE bank_samples IS NULL; ALTER TABLE barcodes.project ALTER COLUMN ban...
<filename>prisma/migrations/20220222194446_boilerplate/migration.sql /* Warnings: - You are about to drop the `admin` table. If the table is not empty, all the data it contains will be lost. - You are about to drop the `lbPages` table. If the table is not empty, all the data it contains will be lost. - You are...
<reponame>bogdanghita/public_bi_benchmark-master_project<gh_stars>0 SELECT "Medicare2_1"."provider_type" AS "provider_type" FROM "Medicare2_1" WHERE ("Medicare2_1"."nppes_provider_state" = 'NY') GROUP BY 1 ORDER BY "provider_type" ASC;
create table libreta( id_libreta int AUTO_INCREMENT primary key, codigo varchar(50), nl varchar(50), rude varchar(50), ci varchar(50), pasaporte varchar(50), ap_paterno varchar(50), ap_materno varchar(50), nombre varchar(50), sexo varchar(50), nacionalidad_nacimiento varchar(50), departamento_nacimiento var...
<gh_stars>0 INSERT INTO `metadata` (`meta_type`, `description`, `meta_name`, `menugroup`, `disabled`) VALUES( 2, 'Состояние складов', 'StoreItems', 'Склад', 0); DELETE FROM `options` WHERE `options`.`optname` = 'val' ; INSERT INTO `options` (`optname`, `optvalue`) VALUES('val', 'a:2:{s:7:\"vallist\";a:2:{i:1642675955...
<reponame>Minz98/webhd -- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Apr 20, 2019 at 06:11 PM -- Server version: 10.1.38-MariaDB -- PHP Version: 7.3.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:0...
-- phpMyAdmin SQL Dump -- version 5.1.0 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Apr 16, 2021 at 03:08 PM -- Server version: 10.4.18-MariaDB -- PHP Version: 7.3.27 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
<reponame>paltua/birds UPDATE `animal_category_master` SET `acm_url_name`='All' WHERE `acm_id`='1'; UPDATE `animal_category_master` SET `acm_url_name`='Bird' WHERE `acm_id`='2'; UPDATE `animal_category_master_details` SET `acmd_name`='All' WHERE `acmd_id`='1'; UPDATE `animal_category_master_details` SET `acmd_name`='A...
drop table if exists stg.prices_monthly_snapshot; create table stg.prices_monthly_snapshot as select date(concat("REF_DATE", '-01')) as month_begin_date, "GEO" as geo, "Products and product groups" as product_group, cast("VALUE" as float) as consumer_price_index from src.monthly_prices where true AND "UOM" = '2...
<gh_stars>0 CREATE INDEX nodes_dist1 ON nodes (earth_distance(ll_to_earth(55, 83), ll_to_earth(nodes.latitude, nodes.longitude))); CREATE INDEX nodes_dist2 ON nodes (earth_distance(ll_to_earth(54, 82), ll_to_earth(nodes.latitude, nodes.longitude)));
 -- ============================================= -- Author: <Author,,Name> -- Create date: <Create Date,,> -- Description: <Description,,> -- ============================================= CREATE PROCEDURE [dbo].[dfc_CourseTransferProviderAuditAdd] ( @CourseTransferId int ,@Ukprn int ,@Course...
CREATE PROCEDURE importantEvents() BEGIN SELECT * FROM events ORDER BY WEEKDAY(event_date), participants DESC; END
INSERT INTO `site_params` VALUES (1,'Site Name','Example.com','2017-08-04 09:19:52'),(2,'Site Description','Description of web','2017-08-04 09:21:20'),(3,'Site Title','Web title','2017-08-04 09:23:09'); INSERT INTO `user` VALUES (1,'Admin JNN','admin','2<PASSWORD>743894a0e4a8<PASSWORD>',NULL,'2017-08-03 02:57:15');
<reponame>AldoMyrtaj/duckdb<gh_stars>1000+ SELECT a.ca_state state, count(*) cnt FROM customer_address a , customer c , store_sales s , date_dim d , item i WHERE a.ca_address_sk = c.c_current_addr_sk AND c.c_customer_sk = s.ss_customer_sk AND s.ss_sold_date_sk = d.d_date_sk AND s.ss_ite...
/* tsqllint-disable select-star set-ansi */ /* tsqllint-enable print-statement */ SELECT * FROM FOO; SELECT BAR FROM FOO;
<reponame>piovezan/SOpt CHECK (coluna > 0) --https://pt.stackoverflow.com/q/321841/101
USE [perpetuumsa] GO --MUST BE RUN AFTER ALL BOTS INSERTED PRINT N'DESTRO BOT proto-pairs'; DROP TABLE IF EXISTS #PROTOPAIRS; CREATE TABLE #PROTOPAIRS ( defName varchar(100), protoDefName varchar(100), ); INSERT INTO #PROTOPAIRS (defName, protoDefName) VALUES ('def_felos_bot','def_felos_bot_pr'), ('def_hydra_bot...
-- 13.09.2016 10:55 -- URL zum Konzept UPDATE AD_Val_Rule SET Code='not exists ( select 1 from M_PriceList p where p.M_PriceList_ID<>@M_PriceList_ID/0@ AND p.M_PricingSystem_ID=@M_PricingSystem_ID@ AND p.IsSOPriceList=@IsSOPriceList@ AND p.C_Country_ID=C_Country.C_Country...
SHUTDOWN IMMEDIATE; STARTUP; ALTER SESSION SET CONTAINER=CDB$ROOT; ALTER PLUGGABLE DATABASE ALL OPEN READ WRITE; ALTER PLUGGABLE DATABASE ALL SAVE STATE; EXIT;
CREATE TABLE IF NOT EXISTS `users` ( `id` varchar(36) NOT NULL, `name` varchar(100) NOT NULL, `username` varchar(20) NOT NULL, `password` blob NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `id_users_UNIQUE` (`id`), UNIQUE KEY `username_users_UNIQUE` (`username`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT = '...
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.6.6deb5 -- https://www.phpmyadmin.net/ -- -- l0m1s -- -- <EMAIL> -- -- Host: localhost:3306 -- Creato il: Lug 22, 2021 alle 11:45 -- Versione del server: 5.7.30-0ubuntu0.18.04.1 -- Versione PHP: 7.2.24-0ubuntu0.18.04.6 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zo...
<filename>files/search-export/parts/qa-status.sql COPY ( SELECT json_build_object( 'id', todo.id, 'urs_taxid', todo.urs_taxid, 'has_issue', qa.has_issue, 'possible_contamination', qa.possible_contamination, 'incomplete_sequence', qa.incomplete_sequence, 'missing_rfam_match', qa...
ALTER TABLE DirectMarketing.Opportunity ADD CONSTRAINT PK_Opportunity PRIMARY KEY CLUSTERED (OpportunityID, ProspectID); GO
<gh_stars>1-10 /****** Object: View [dbo].[V_Local_Processor_Job_Step_Exclusion] ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE VIEW V_Local_Processor_Job_Step_Exclusion AS SELECT LP.Processor_Name, LP.ID, JSE.Step FROM T_Local_Processor_Job_Step_Exclusion JSE INNER JOIN T_Local_Processors...
<gh_stars>1-10 /*drop table OM.OM_INTERFACE_LOGS; drop sequence INLO_RK_SEQ; drop trigger INLO_BR_I_TR; drop trigger INLO_AR_IU_TR; */ --************************************************************************************** --* SQL script to create OM.OM_INTERFACE_LOGS table, primary key, foreign key(s) and indexes. -...
<reponame>wforney/portal IF NOT EXISTS(SELECT * FROM [rb_PortalSettings] WHERE [SettingName] = 'SITESETTINGS_LOGIN_TYPE') BEGIN INSERT INTO [rb_PortalSettings] VALUES(0,'SITESETTINGS_LOGIN_TYPE','~/desktopmodules/coremodules/signin/signincool.ascx') END ELSE BEGIN update [rb_PortalSettings] set [SettingValue]...
CREATE TABLE `alibaba_acsk_clusters` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `provider_cluster_id` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `region_id` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `zone_id` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `master_instance_t...
<gh_stars>1-10 -- start_ignore SET gp_create_table_random_default_distribution=off; -- end_ignore \d pg2_co_table_gist_index_template set enable_seqscan=off; select property from pg2_co_table_gist_index_template where property='( (0,0), (1,1) )'; DROP TABLE pg2_co_table_gist_index_template;
<gh_stars>100-1000 CREATE TABLE `abuse_email` ( `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, `address` varchar(256) NOT NULL, `checked_at` timestamp null default null, `comment` varchar(256), `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `status` varchar(7) NOT NULL, PRIMARY KEY (`id`) ) EN...
-- @testpoint:opengauss关键字zone(非保留),作为模式名 --关键字不带引号-成功 drop schema if exists zone; create schema zone; drop schema zone; --关键字带双引号-成功 drop schema if exists "zone"; create schema "zone"; drop schema "zone"; --关键字带单引号-合理报错 drop schema if exists 'zone'; create schema 'zone'; --关键字带反引号-合理报错 drop schema if exists `zon...
/** * Criando o banco de dados */ CREATE DATABASE phptdc; USE phptdc; /** * Criando tabelas */ CREATE TABLE Usuarios ( usr_id INT PRIMARY KEY AUTO_INCREMENT, usr_login VARCHAR(16) NOT NULL, usr_senha CHAR(64) NOT NULL, usr_data_criacao DATETIME NOT NULL DEFAULT NOW() ); CREATE TABLE Aliancas ( usr_id INT N...
<filename>src/fhirbase_coll.sql<gh_stars>0 func _butlast(_ar_ anyarray) RETURNS anyarray --- cut last element of array SELECT _ar_[array_lower(_ar_,1) : array_upper(_ar_,1) - 1] func _rest(_ar_ anyarray) RETURNS anyarray --- return rest of array SELECT _ar_[2 : array_upper(_ar_,1)]; func _last(_ar_ anyarray)...
<filename>pemsisweb_deskap.sql -- phpMyAdmin SQL Dump -- version 4.7.0 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jan 25, 2022 at 03:25 PM -- 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 ...
 CREATE procedure [dbo].[ToglePersonCommentPinned]( @comment_id int ) as begin update person_comment set pinned = case when pinned = 1 then 0 else 1 end where id = @comment_id update p set p.pinned_comment_count = (select count(1) from person_comment pc2 where pc2.person_id = p.id and pinned = 1 and archive...
-- A script to create the initial state of a world for alpha testing -- What it does: -- Creates a 10x10 map called "America" -- Makes every tile in "America" grass -- Creates the basic unit types of Wizard & Bear USE master; # CREATE MAP AMERICA SET @map_id = 0; SET @num_rows = 10; SET @num_cols = 10; INSERT I...
SET @category_id = (SELECT category_id FROM cscart_categories WHERE category_id = 413 OR status = 'A' ORDER BY category_id = 413 DESC LIMIT 1); REPLACE INTO ?:products_categories (`product_id`, `category_id`, `link_type`, `position`) VALUES (278, @category_id, 'M', 0); REPLACE INTO ?:products_categories (`product_id`,...
ALTER TABLE `creature_template` ADD `mingold` int(30) unsigned NOT NULL default '0' AFTER `spell4` , ADD `maxgold` int(30) unsigned NOT NULL default '0' AFTER `mingold`;
--- a unique vulnerability indexed by an updater CREATE TABLE vuln ( updater text, --- claircore.Vulnerability fields id SERIAL PRIMARY KEY, name text, description text, links text, severity text, package_name text, package_version text, package_kind text, dist_id text, d...
select count(*) from tpcds1000gb.store_sales where ss_date>='2002-11-22';
<reponame>interledger-deprecated/five-bells-ledger ALTER TABLE "L_FULFILLMENTS" DROP COLUMN "FULFILLMENT_DATA"; ALTER TABLE "L_TRANSFER_ADJUSTMENTS" ALTER COLUMN "MEMO" TYPE VARCHAR(4000), ALTER COLUMN "REJECTION_MESSAGE" TYPE VARCHAR(4000);
<filename>dbmate/db/migrations/20200724181252_add_device_settings.sql<gh_stars>1-10 -- migrate:up CREATE TYPE LocationPermissionState AS ENUM ('ALWAYS', 'USING', 'ASK', 'NEVER', 'UNKNOWN'); ALTER TABLE devices ADD location_permission_state LocationPermissionState DEFAULT 'UNKNOWN' NOT NULL; ALTER TABLE devices ADD is...
<gh_stars>1000+ alter table ACT_RU_JOB add ELEMENT_ID_ nvarchar(255); alter table ACT_RU_JOB add ELEMENT_NAME_ nvarchar(255); alter table ACT_RU_TIMER_JOB add ELEMENT_ID_ nvarchar(255); alter table ACT_RU_TIMER_JOB add ELEMENT_NAME_ nvarchar(255); alter table ACT_RU_SUSPENDED_JOB add ELEMENT_ID_ nvarchar(255); alter ...
<gh_stars>10-100 --DO NOT MODIFY THIS FILE, IT IS GENERATED AUTOMATICALLY FROM SOURCES -- Complain if script is sourced in psql, rather than via CREATE EXTENSION \echo Use "ALTER EXTENSION cdb_dataservices_server UPDATE TO '0.11.0'" to load this file. \quit CREATE OR REPLACE FUNCTION cdb_dataservices_server.cdb_here_g...
<reponame>yashpatil/GTAS INSERT INTO role VALUES ('9', 'Manage Cases');
<reponame>Zhaojia2019/cubrid-testcases --cases from dev select substring_index('www.cubrid.org','.','2'); select substring_index('www.cubrid.org','.','2.3'); select substring_index('www.cubrid.org',':','2.3'); select substring_index('www.cubrid.org','cubrid',1); select substring_index('www.cubrid.org','.',100); --1...
<filename>pp/PpSingletonDecoratorTemplateColaborador/src/br/com/vinicius/dal/SQLTemplateBdEmpresaPp.sql<gh_stars>0 -- -- -----------------------------------------------------------------------------------------------> -- Licença : MIT - Copyright 2019 Viniciusalopes (Vovolinux) <<EMAIL>> -- Criad...