sql
stringlengths
6
1.05M
DROP VIEW IF EXISTS `notifications_view`; DROP VIEW IF EXISTS `user_notifications_view`; DROP VIEW IF EXISTS `user_devices_view`; DROP VIEW IF EXISTS `notification_user_devices_view`;
<filename>Elis user and persistent storage service implementations/src/main/resources/db/test.sql -- phpMyAdmin SQL Dump -- version 4.0.6deb1 -- http://www.phpmyadmin.net -- -- Värd: localhost -- Skapad: 19 mars 2014 kl 17:46 -- Serverversion: 5.5.35-0ubuntu0.13.10.2 -- PHP-version: 5.5.3-1ubuntu2.2 SET SQL_MODE = "NO...
<reponame>peknight/security create table if not exists application ( app_id bigint auto_increment comment '主键' primary key, app_name varchar(255) null comment '应用名称', org_id bigint null comment '应用所属组织ID', obj_type bigint null comment '所属对象类别', app_type bigint null comment '应用类别', parent_app_id bigint null comm...
SET DEFINE OFF; create or replace package body afw_12_lien_sa_scenr_notfc_pkg as end afw_12_lien_sa_scenr_notfc_pkg; /
CREATE PROCEDURE `add_user_roles`(IN user_id INT,IN role_id_array VARCHAR(255),IN role_id_array_length INT,IN operator_id INT,INOUT return_code INT) BEGIN DECLARE _index INT; DECLARE _role_id_str varchar(255); DECLARE _role_id INT; DECLARE EXIT HANDLER FOR SQLEXCEPTION BEGIN -- Only For Debugger -- GET DIAGNOSTICS C...
-- -- DELETE FROM debug; -- -- CALL debug_on('JSON_ARRAYAGG'); SELECT CONCAT( JSON_OBJECT( "_id", concat("Movement_2_", CONCAT( DATE_FORMAT(IFNULL(e.date_entrega, NOW()), "%Y%m%d%H%i%S") , "O" , LPAD(CAST(IFNULL(e.partner_id, 0) as CHAR(5)), 5, "0") ...
-- -- CzechIdM 11.3.0 Flyway script -- BCV solutions s.r.o. -- -- System entity - add audit. CREATE TABLE sys_system_entity_a ( id binary(16) NOT NULL, rev numeric(19, 0) NOT NULL, revtype numeric(19, 0) NULL, created datetime2 NULL, created_m bit NULL, creator nvarchar(255) NULL, creator_m bit NULL, creator_...
begin; drop table if exists ncaa._schedule_factors; create table ncaa._schedule_factors ( school_id integer, year integer, year_factor float, park float, offensive float, defensive float, strength float, par...
<filename>lektion10/ovningar.sql SELECT * FROM tblOwner; SELECT fldRegNo, COUNT(fldRegNo) FROM tblOwner GROUP BY fldRegNo; SELECT fldRegNo, COUNT(fldRegNo) FROM tblOwner GROUP BY fldRegNo HAVING COUNT(fldRegNo) > 1; SELECT fldRegNo, COUNT(fldRegNo) FROM tblOwner WHERE fldMeterCount > 12064 GROUP BY fldRegNo HAVI...
<filename>transform/snowflake-dbt/models/staging/sheetload/sheetload_communication_certificate.sql WITH source AS ( SELECT * FROM {{ ref('sheetload_communication_certificate_source') }} ), {{cleanup_certificates("'communication_certificate'",)}}
<reponame>maiha/facebook.cr<gh_stars>1-10 CREATE TABLE messenger_destination_page_welcome_message ( id String, page_welcome_message_body Nullable(String), page_welcome_message_type Nullable(String), template_name Nullable(String), time_created Nullable(String), time_last_used Nullable(String) ) ENGINE = Log...
print 'CONFIG License'; GO set nocount on; GO exec dbo.spCONFIG_InsertOnly null, 'system', 'gnu_license', '<p>This program is free software: you can redistribute it and/or modify it under the terms of the <a href="http://www.gnu.org/licenses/agpl.txt">GNU Affero General Public License</a> as published by ...
<gh_stars>10-100 ALTER TABLE vetd.prompts ADD PRIMARY KEY (id)
SELECT COUNT(DISTINCT "MulheresMil_1"."Calculation_838513981462429699") AS "ctd:Calculation_838513981462429699:ok", "MulheresMil_1"."nome da sit matricula (situacao detalhada)" AS "nome da sit matricula (situacao detalhada)", "MulheresMil_1"."subtipo_curso" AS "subtipo_curso", CAST(EXTRACT(YEAR FROM "MulheresMil_...
DELIMITER / ALTER TABLE COI_DISCLOSURE_STATUS ADD CONSTRAINT PK_COI_DISCLOSURE_STATUS_CODE PRIMARY KEY (COI_DISCLOSURE_STATUS_CODE) / DELIMITER ;
<gh_stars>1-10 -- -- Copyright 2005-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 -- ...
<filename>conf/evolutions/default/4.sql -- metabase graph -- !Ups CREATE TABLE `graph` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `task_id` int(11) unsigned NOT NULL, `graph_id` int(11) NOT NULL, `graph_name` varchar(500) NOT NULL DEFAULT '', `created_on` bigint(20) NOT NULL, `last_modified` bigint(2...
<filename>models/stg_google_play__store_performance_country.sql<gh_stars>0 with base as ( select * from {{ ref('stg_google_play__store_performance_country_tmp') }} ), fields as ( select {{ fivetran_utils.fill_staging_columns( source_columns=adapter.get_columns_in_re...
<gh_stars>0 /* Navicat MySQL Data Transfer Source Server : localhost_3306 Source Server Version : 50717 Source Host : localhost:3306 Source Database : chatrobot Target Server Type : MYSQL Target Server Version : 50717 File Encoding : 65001 Date: 2017-12-06 10:29:28 */ use chatrobot...
<reponame>OHDSI/Circe-be CREATE TABLE #Codesets ( codeset_id int NOT NULL, concept_id bigint NOT NULL ) ; @codesetInserts
INSERT INTO TBL_STORE (id, address,city, name, zip) VALUES (1,'900 Nicollet Mall', 'MN', 'Minneapolis','55402'); INSERT INTO TBL_STORE (id, address,city, name, zip) VALUES (2,'1329 5th South Street SE', 'MN', 'Minneapolis','55414'); INSERT INTO TBL_STORE (id, address,city, name, zip) VALUES (3,'2500 East Lake S...
<filename>dbs/3b1_joskalukas_db1_v0.1.4.sql -- phpMyAdmin SQL Dump -- version 4.2.9.1 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Feb 23, 2018 at 10:58 PM -- Server version: 5.5.55-0+deb7u1 -- PHP Version: 5.4.45-0+deb7u8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*...
select id, name from azure.azure_app_service_environment where name = '{{resourceName}}'
--# Copyright IBM Corp. All Rights Reserved. --# SPDX-License-Identifier: Apache-2.0 /* * Database version and release information */ CREATE OR REPLACE VIEW DB_LEVEL AS SELECT I.SERVICE_LEVEL , I.FIXPACK_NUM , I.BLD_LEVEL , I.PTF , S.OS_NAME , S.OS_VERSION , S.OS_RELEASE , S.HOST_NAME FR...
<filename>pgAdmin/pgadmin4/web/pgadmin/browser/server_groups/servers/databases/schemas/packages/templates/packages/ppas/9.1_plus/acl.sql SELECT 'pkgacl' as deftype, COALESCE(gt.rolname, 'PUBLIC') grantee, g.rolname grantor, array_agg(privilege_type) as privileges, array_agg(is_grantable) as grantable FROM (SELECT ...
<gh_stars>1000+ CREATE EXTENSION test_bloomfilter; -- See README for explanation of arguments: SELECT test_bloomfilter(power => 23, nelements => 838861, seed => -1, tests => 1); -- Equivalent "10 bits per element" tests for all possible bitset sizes: -- -- SELECT test_bloomfilter(24, 1677722) -- SELECT te...
<reponame>GiorgioCaculli/B3_Application_Entreprise_Multi-Tiers_et_Veille_Technologique -- Copyright 2004-2019 H2 Group. Multiple-Licensed under the MPL 2.0, -- and the EPL 1.0 (https://h2database.com/html/license.html). -- Initial Developer: H2 Group -- select left(null, 10) en, left('abc', null) en2, left('boat', 2) ...
<filename>db/migrations/00000000000050_rename_min_price_for_consistency/down.sql ALTER TABLE fee_schedule_ranges RENAME COLUMN min_price_in_cents to min_price;
/* Delete_Stray_Author_Webpage.sql is a MySQL script intended to remove author webpages left behind when the author was deleted. Version: $Revision$ Date: $Date$ (C) COPYRIGHT 2013 <NAME> ALL RIGHTS RESERVED The copyright notice above does not evidence any actual or intended...
<reponame>Zhaojia2019/cubrid-testcases<filename>medium/_08_mc_ind/cases/I014_dub1.sql autocommit off; SELECT MAX(attr1_int_unique_idx) + 1 TO :maxvalue FROM x_virtual_c0; INSERT INTO x_virtual_c0 SELECT attr1_int_unique_idx + :maxvalue, attr1_int_unique_noidx + :maxvalue, cast(at...
-- @testpoint:opengauss关键字constraint_name(非保留),作为模式名 --关键字不带引号-成功 drop schema if exists constraint_name; create schema constraint_name; drop schema constraint_name; --关键字带双引号-成功 drop schema if exists "constraint_name"; create schema "constraint_name"; drop schema "constraint_name"; --关键字带单引号-合理报错 drop schema if ex...
<filename>application/migrations/create_usuarios.sql CREATE TABLE `usuarios` ( `id` INT NOT NULL AUTO_INCREMENT, `nome` VARCHAR(255) DEFAULT NULL, `email` VARCHAR(255) DEFAULT NULL, `idade` INT DEFAULT NULL, `created_at` DATETIME NOT NULL, `updated_at` DATETIME DEFAULT NULL, PRIMARY KEY (`id`) ); SELE...
CREATE EVENT SESSION [QueryStatistics] ON SERVER ADD EVENT sqlserver.sp_statement_completed(SET collect_statement=(1) ACTION(package0.collect_system_time,sqlserver.client_app_name,sqlserver.client_hostname,sqlserver.database_name,sqlserver.session_id) WHERE (([package0].[equal_uint64]([sqlserver].[query_h...
/* | This program is a part of the Quest Error Manager for Oracle. | This product is freeware and is not supported by Quest. | | www.quest.com | | Copyright, Quest Software, Inc, 2007 | All rights reserved */ DROP SEQUENCE q$error_seq / DROP SEQUENCE q$log_seq / DROP SEQUENCE q$error_context_seq / DR...
<reponame>KarmaScripter/BudgetX CREATE TABLE Appropriations ( AppropriationId INTEGER NOT NULL UNIQUE CONSTRAINT PK_Appropriations PRIMARY KEY AUTOINCREMENT, BFY TEXT(255) NOT NULL, Title TEXT(255) NULL, PublicLaw TEXT(255) NULL, EnactedDate DATETIME NULL );
<reponame>lunaplus/accmgr create table accounts ( AID bigint auto_increment primary key, name varchar(20), isCard bit(1) not null default b'0', UID varchar(8), balance bigint, adddate datetime, editdate datetime );
<reponame>exclamaforte/bevolution --name: create-user! -- creates a new user record INSERT INTO users (id, first_name, last_name, email, pass) VALUES (:id, :first_name, :last_name, :email, :pass) --name: update-user! -- update an existing user record UPDATE users SET first_name = :first_name, last_name = :last_name, e...
<filename>src/SharedPipelineComponents/Datalock/Deploy/sql/MigrationScripts/2_Ilr.Deds.DataLock.Tables.Change_version_id_type.sql -- ALTER for DataLock.PriceEpisodePeriodMatch ALTER TABLE DataLock.PriceEpisodePeriodMatch Alter column [VersionId] varchar(25) NOT NULL GO
select Id, Bank, (Select Code FROM _Banks where _Banks.Bank = CompiledSet.Bank And Action = 'Compra') As BuyCode, (Select Code FROM _Banks where _Banks.Bank = CompiledSet.Bank And Action = 'Venta') As SaleCode, (Select Type FROM _Banks where _Banks.Bank = CompiledSet.Bank And Action = 'Compra') As Type from( select...
SET DEFINE OFF; CREATE INDEX AFW_23_ENONC_RECHR_FK1 ON AFW_23_ENONC_RECHR (REF_RECHR) LOGGING /
USE [DataQualityDB] GO IF NOT EXISTS (SELECT 1 FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME = 'RuleExecutionHistory' AND TABLE_SCHEMA = 'DQ' ) BEGIN CREATE TABLE [DQ].[RuleExecutionHistory]( [RXLogId] [int] IDENTITY(1,1) NOT NULL, [LoadId] [int] NULL, [DatabaseName] [varchar](255) NULL, [SchemaName]...
<reponame>SkillsFundingAgency/das-data<filename>src/SFA.DAS.Data.Database/Tables/DAS_Provider.sql CREATE TABLE [Data_Load].[Provider] ( [Id] BIGINT NOT NULL PRIMARY KEY IDENTITY, [Ukprn] BIGINT NOT NULL, [Uri] NVARCHAR(MAX) NULL, [ProviderTypeId] INT NULL, [ProviderTypeDescription] NVARCHAR(MAX) NULL, [ParentCom...
INSERT INTO tweb_apbd(`berkas_id`,`lembaga_id`, `lembaga_kode`, `wilayah_kode`,`tahun`, `rekening_kode`, `uraian`, `nominal`,`nominal_sebelum`, `nominal_sesudah`, `nominal_perubahan`, `nominal_persen`, `keterangan`, `created_by`, `updated_by`) VALUES ('324','126','2.05.01','3402','2014','2.05.2.05.01.00.00.4.','PENDAP...
<gh_stars>1-10 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='STRICT_TRANS_TABLES'; DROP FUNCTION IF EXISTS rot18; DELIMITER // CREATE FUNCTION rot18 (stringParam VARCHAR(255)) RETURNS VARCHAR(255) DETERMINISTIC NO SQL SQL SECURITY DEFINER COMMENT 'Encodes/decodes a string with the ROT18 substitution cipher (v1.00)' /***...
:Connect WindowsNod4 ALTER AVAILABILITY GROUP ClusterLessAg JOIN With (Cluster_Type = NONE) GO ALTER AVAILABILITY GROUP ClusterLessAg GRANT CREATE ANY DATABASE GO :Connect WindowsNod5 ALTER AVAILABILITY GROUP ClusterLessAg JOIN With (Cluster_Type = NONE) GO ALTER AVAILABILITY GROUP ClusterLessAg GRAN...
USE [ANTERO] GO /****** Object: View [dw].[v_amos_tutkinnot_ja_tutkinnonosat] Script Date: 24.10.2019 17:42:53 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO ALTER VIEW [dw].[v_amos_tutkinnot_ja_tutkinnonosat] AS SELECT [Tilastovuosi] = f.[tilastovuosi] ,[Tutkinto] = d2.koulutusluokitus_fi ,[...
-- For details on how to use this report, visit -- https://modeanalytics.zendesk.com/hc/en-us/articles/203501550 WITH users AS ( SELECT user_id, activated_at FROM tutorial.playbook_users ), events AS ( SELECT user_id, occurred_at FROM tutorial.playbook_events WHERE event_type = 'engagement...
<reponame>scheltwort-it-services/common_schema<filename>tests/root/repeat_exec/02/test.sql<gh_stars>100-1000 SET @repeat_counter := 0; CALL repeat_exec(0.01, 'SET @repeat_counter := @repeat_counter + 1', '5'); SELECT @repeat_counter = 5;
<reponame>dram/metasfresh -- 2021-04-09T06:18:54.876Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Column SET FieldLength=60, TechnicalNote='Setting the length to 60 because right now the value is set from AD_Archive.Name which can also be 60 chars long',Updated=TO_TIMESTAMP('2021-04-09 ...
{{ config( materialized='table' ) }} SELECT order_id, user_guid, created_at, order_cost, shipping_cost, order_total, status as order_status, count(product_id) total_type_of_products, sum(quantity) total_num_of_items_per_order FROM {{ ref('stg_orders') }} LEFT JOIN {{ref('st...
<reponame>alexavila150/luciddb set schema 's'; SELECT KSEQ from BENCH10K where K2 = 0 OR K2 = 3 order by 1;
<reponame>SOVLOOKUP/goforest-token /** 前后端分离菜单 **/ DELETE FROM `sys_menu`; INSERT INTO `sys_menu` VALUES (1, 20, '系统首页', 'welcome', 'home', '/welcome', '', 1, 2, 10, 2, 1, '2019-12-06 10:37:44', 1, '2015-04-27 17:28:06', 1); INSERT INTO `sys_menu` VALUES (2, 0, '系统管理', 'settings', 'system_root', NULL, NULL, 1, 1, 190, ...
<filename>t/sql/selenium.sql \set ON_ERROR_STOP 1 BEGIN; -- Skip past $EDITOR_MODBOT and 'editor' below. SELECT setval('editor_id_seq', 6, FALSE); -- Skip past special purpose artists. SELECT setval('artist_id_seq', 3, FALSE); INSERT INTO area (id, gid, name, type, edits_pending, last_updated, begin_date_year, begi...
/* Navicat MySQL Data Transfer Source Server : 192.168.1.231 Source Server Version : 50623 Source Host : 192.168.1.231:3306 Source Database : anjie Target Server Type : MYSQL Target Server Version : 50623 File Encoding : 65001 Date: 2018-03-27 09:16:13 */ SET FOREIGN_KEY_CHECKS=0;...
<filename>tsadm/db/db-devdata.sql -- slave hosts INSERT INTO `host` (`id`, `fqdn`) VALUES (101, 'tsadm-node0'); -- sites INSERT INTO `site` (`id`, `name`) VALUES (61001, 'regr'); INSERT INTO `site` (`id`, `name`) VALUES (61002, 's0'); INSERT INTO `site` (`id`, `name`, `parent_id`) VALUES (61003, 's10', 61002); -- s...
<filename>src/test/regress/sql/gpi_unique_check.sql DROP TABLE if exists gpi_uniquecheck_table1; CREATE TABLE gpi_uniquecheck_table1 ( c1 int, c2 int, c3 int ) partition by range (c1) ( partition p0_gpi_uniquecheck_table1 VALUES less than (10000), partition p1_gpi_uniquecheck_table1 VALUES less than...
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: May 27, 2020 at 11:23 AM -- Server version: 10.4.6-MariaDB -- PHP Version: 7.3.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
--User Story 94 and 95 /****** Object: Table [dbo].[DATASET_TRANSFORMATION_XWALK] Script Date: 02-11-2018 11:07:05 ******/ DROP TABLE IF EXISTS [dbo].[DATASET_TRANSFORMATION_XWALK] GO CREATE TABLE [dbo].[DATASET_TRANSFORMATION_XWALK]( [XWALK_ID] [int] IDENTITY(1,1) NOT NULL PRIMARY KEY, [DATAFEED_ID]...
-- phpMyAdmin SQL Dump -- version 4.6.5.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Mar 18, 2017 at 04:04 AM -- Server version: 10.1.21-MariaDB -- PHP Version: 5.6.30 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SE...
<reponame>tanaytourismthesis/tanaytourismweb -- MySQL Script generated by MySQL Workbench -- Sat Aug 4 23:28:41 2018 -- 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=...
<reponame>JodiKurniawan99/web-pusdiklat -- phpMyAdmin SQL Dump -- version 4.9.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jul 26, 2021 at 01:10 PM -- Server version: 10.4.10-MariaDB -- PHP Version: 7.3.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET ...
-- Types CREATE TYPE cache_status AS ENUM ('in_progress', 'failed', 'complete'); -- Tables CREATE TABLE cache_meta ( id text, created_at timestamp without time zone NOT NULL DEFAULT timezone('utc'::text, now()), updated_at timestamp without time zone, identifier text, cache_state cache_status NOT ...
<gh_stars>1-10 -- Table: public."Minnesota_DNR_TroutStreams" DROP TABLE public."Stream"; CREATE TABLE public."Stream" ( gid integer NOT NULL DEFAULT nextval('"Stream_seq"'::regclass), name character varying(50), local_name character varying(50), length_mi double precision, public_length_mi numeric, centr...
<reponame>Perryguy/MinimalLinkShortenerAPI<filename>MinimalLinkShortenerAPIApp/LinksDB/dbo/Stored Procedures/spLink_Insert.sql CREATE PROCEDURE [dbo].[spLink_Insert] @LinkName nvarchar(50), @LinkURL nvarchar(300), @LinkDescription nvarchar(300) AS begin insert into dbo.[Links] (LinkName, LinkURL, LinkDescription) ...
ALTER TABLE cfds ADD COLUMN opening_fee NOT NULL DEFAULT '0';
<reponame>Yoris1/OneHourGameJam<filename>SQL/versions/37_addStreamerToJam.sql ALTER TABLE jam ADD COLUMN jam_streamer_user_id INT NULL AFTER jam_start_datetime, ADD COLUMN jam_streamer_twitch_username VARCHAR(45) NULL AFTER jam_streamer_user_id; DELETE FROM config WHERE config_key = "STREAMER_TWITCH_NAME"; INSERT INT...
-- #SPDX-License-Identifier: MIT CREATE TABLE augur_data.repo_cluster_messages ( msg_cluster_id serial8, repo_id bigint, cluster_content integer, cluster_mechanism integer, "tool_source" varchar, "tool_version" varchar, "data_source" varchar, "data_collection_date" timestamp(0) DEFAULT CURRENT_TIM...
-- ***************************************************** -- -- Purpose of this script: make WideWorldImportersDW -- bigger - so you can see more impactful -- Intelligent QP demonstrations (aka.ms/iqp) -- -- Script last updated 05/03/2019 -- -- Database backup source: aka.ms/wwibak -- -- Initial database file to resto...
<reponame>marydlawyer/beneficiary-fhir-data<filename>apps/bfd-model/bfd-model-rif/src/main/resources/db/migration/V4__Correct_claim_line_index_ordering.sql /* * Rebuilds the claim line tables' PK indexes to have the correct column order: * `parentClaim` columns should always be the first index column, allowing for *...
<reponame>Ed-Fi-Exchange-OSS/Ed-Fi-X-OtisEd-iMart<gh_stars>0 CREATE TABLE [tdw].[dim_Marking_Period] ( [Marking_Period_Key] INT IDENTITY (1, 1) NOT NULL, [Hash_Key_BK] VARBINARY (16) NOT NULL, [Calendar_Track_Cd] VARCHAR (30) NOT NULL, [Calendar_...
<filename>backend/manager/dbscripts/upgrade/03_01_0580_recoverable.sql<gh_stars>1-10 alter table vds_static add column recoverable boolean not null default true; alter table storage_domain_static add column recoverable boolean not null default true;
-- These tables were originally merged with develop under the guise that we did not know if we would use them in this format. -- The data in these tables is now to be stored in mongo in the compentencyMap and competency documents. DROP TABLE english_comp_map; DROP TABLE esl_comp_map; DROP TABLE math_comp_map;
create temporary view t as select * from values 0, 1, 2 as t(id); create temporary view t2 as select * from values 0, 1 as t(id); -- WITH clause should not fall into infinite loop by referencing self WITH s AS (SELECT 1 FROM s) SELECT * FROM s; -- WITH clause should reference the base table WITH t AS (SELECT 1 FROM t...
INSERT INTO `lh_chat_config` (`identifier`, `value`, `type`, `explain`, `hidden`) VALUES ('start_chat_data', 'a:10:{i:0;b:0;s:21:\"name_visible_in_popup\";b:1;s:27:\"name_visible_in_page_widget\";b:1;s:19:\"name_require_option\";s:8:\"required\";s:22:\"email_visible_in_popup\";b:1;s:28:\"email_visible_in_page_widget\";...
<reponame>wuchunfu/LakeSoul CREATE KEYSPACE IF NOT EXISTS test_lakesoul_meta WITH replication = {'class': 'SimpleStrategy', 'replication_factor': '3'} AND durable_writes = true; CREATE TABLE test_lakesoul_meta.table_info ( table_name text, table_id text, table_schema text, range_column text, hash_column text...
-- -- database_schema.sql -- -- Version: $Revision$ -- -- Date: $Date$ -- -- Copyright (c) 2002-2009, The DSpace Foundation. All rights reserved. -- -- Redistribution and use in source and binary forms, with or without -- modification, are permitted provided that the following conditions are -- met: -- -- - Redistr...
-- @author prabhd -- @created 2012-12-05 12:00:00 -- @modified 2012-12-05 12:00:00 -- @tags dml -- @db_name dmldb -- @description test1: Update data that satisfy the check constraints \echo --start_ignore set gp_enable_column_oriented_table=on; \echo --end_ignore SELECT SUM(d) FROM dml_heap_check_s; UPDATE dml_hea...
-- Test locking behaviour. When creating, dropping, querying or adding indexes -- partitioned tables, we want to lock only the master, not the children. -- Show locks in master and in segments. Because the number of segments -- in the cluster depends on configuration, we print only summary information -- of the locks ...
create sequence hibernate_sequence start 1 increment 1; create table user_role ( user_id int8 not null, roles varchar(255) ); create table usr ( id int8 not null, activation_code varchar(255), active boolean not null, email varchar(255), password varchar(255) not null, username varchar...
<filename>src/django/api/reports/facility_list_items_uploaded.sql<gh_stars>0 -- Count the number of facility list CSV rows uploaded each month. SELECT to_char(i.created_at, 'YYYY-MM') AS month, CASE WHEN u.email LIKE '%openapparel.org%' THEN 'y' ELSE 'n' END AS is_public_list, COUNT(*) AS item_count FROM api_f...
<reponame>osvaldosandoli/MySQL /** Agenda de contatos @author <NAME> */ -- exibir banco de dados do servidor show databases; -- criar um novo banco de dados create database dbagenda; -- excluir um banco de dados drop database dbtest; drop database sdtest; -- selecionar o banco de dados use dbagenda; -- CRUD (Cre...
<reponame>xiejiadalong/spring_activiti_demo ALTER TABLE menu_t ADD level VARCHAR(20); ALTER TABLE menu_t ADD url VARCHAR(500);
<filename>CustomerTracker/create-user.sql CREATE USER 'customertracker'@'localhost' IDENTIFIED BY 'customertracker'; GRANT ALL PRIVILEGES ON * . * TO 'customertracker'@'localhost';
<filename>corejava2e7/v2/v2ch4/ExecSQL/Authors.sql CREATE TABLE Authors (Author_Id CHAR(4), Name CHAR(25), Fname CHAR(25)) INSERT INTO Authors VALUES ('ALEX', 'Alexander', 'Christopher') INSERT INTO Authors VALUES ('BROO', 'Brooks', '<NAME>.') INSERT INTO Authors VALUES ('CORM', 'Cormen', '<NAME>.') INSERT INTO Aut...
/* Navicat MySQL Data Transfer Target Server Type : MYSQL Target Server Version : 50639 File Encoding : 65001 Date: 2019-04-12 10:59:58 */ SET FOREIGN_KEY_CHECKS = 0; -- ---------------------------- -- Table structure for tbl_ont_oep4 -- ---------------------------- DROP TABLE IF EXISTS `tbl_oep4`; CRE...
create table sykefravar_statistikk_virksomhet_med_gradering ( id serial primary key, orgnr varchar(20) not null, naring varchar not null, naring_kode varchar not null, arstall smallint not null, kvartal smallint not null, antall_graderte_sykemeldinger numeric(17,0) not null, tapte_dagsverk_gradert_sykem...
-- trans.test -- -- execsql { -- BEGIN TRANSACTION; -- DROP TABLE t1; -- DROP TABLE t2; -- SELECT name fROM sqlite_master -- WHERE type='table' OR type='index' -- ORDER BY name; -- } BEGIN TRANSACTION; DROP TABLE t1; DROP TABLE t2; SELECT name fROM sqlite_master WHERE type='table' OR type='in...
<gh_stars>1-10 delete from ddal_test_0.scores; delete from ddal_test_1.scores; delete from ddal_test_2.scores; delete from ddal_test_3.scores; insert into ddal_test_1.scores(scoreno,sno,cno,term,grade) values(100,200901020101,112618,'2011-2012第二学期','98'); insert into ddal_test_1.scores(scoreno,sno,cno,term,grade) ...
<filename>Databases and SQL for Data Science with Python/Week 5/MultipleTables_Solution_Script.sql<gh_stars>0 --- Query 1A --- select * from employees where JOB_ID IN (select JOB_IDENT from jobs) ; --- Query 1B --- select * from employees where JOB_ID IN (select JOB_IDENT from jobs where JOB_TITLE= 'Jr. Designer') ;...
<filename>tests/queries/0_stateless/02111_json_column_name_encoding.sql -- Tags: no-fasttest SET output_format_write_statistics = 0; SELECT length('\x80') FORMAT JSONCompact;
<filename>dbms/tests/queries/0_stateless/00661_optimize_final_replicated_without_partition_zookeeper.sql DROP TABLE IF EXISTS test.partitioned_by_tuple_replica1; DROP TABLE IF EXISTS test.partitioned_by_tuple_replica2; CREATE TABLE test.partitioned_by_tuple_replica1(d Date, x UInt8, w String, y UInt8) ENGINE = Replicat...
UPDATE {$NAMESPACE}_ponder.ponder_question SET status = 'open' WHERE status = '0';
CREATE TABLE sys."Praise" ( id bigint PRIMARY KEY NOT NULL, "momentId" bigint NOT NULL, "userId" bigint NOT NULL, date timestamp(6) ); COMMENT ON COLUMN sys."Praise".id IS '动态id'; COMMENT ON COLUMN sys."Praise"."momentId" IS '唯一标识'; COMMENT ON COLUMN sys."Praise"."userId" IS '用户id'; COMMENT ON COLUMN sy...
<reponame>Caprowni/concourse<gh_stars>1000+ /* Nothing to do because up migration is deleting rows. */
<filename>integration-tests/flyway/src/main/resources/db/location3/afterMigrate.sql<gh_stars>1000+ select count(1) from multiple_flyway_test;
<reponame>rodel-talampas/gpdb<gh_stars>1-10 \echo '-- start_ignore' CREATE OR REPLACE FUNCTION pltest.super_untrustfunc() RETURNS integer AS $$ my $tmpfile = "TMPFILENAME"; open my $fh, '>', $tmpfile or elog(ERROR, qq{could not open the file "$tmpfile": $!}); print $fh "Testing superuser can execute unsa...
<reponame>taritom/bn-api CREATE TABLE regions ( id uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL, name TEXT NOT NULL, created_at TIMESTAMP NOT NULL DEFAULT now(), updated_at TIMESTAMP NOT NULL DEFAULT now() ); -- Indices CREATE UNIQUE INDEX index_regions_name ON regions (name);
<filename>db/dyntech2.sql -- phpMyAdmin SQL Dump -- version 4.1.14 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Apr 18, 2018 at 09:08 PM -- Server version: 5.6.17-log -- PHP Version: 5.6.30 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLI...
<gh_stars>0 select top {0} es.[Id], es.[Version], et.[TypeName] EventType, es.[EventEnvelope], es.[EventId], es.[SequenceNumber], es.[DateRegistered] from [dbo].[EventStore] es inner join [dbo].[EventType] et on et.Id = es.EventTypeId where es.SequenceNumber >= @FromSequenceNumber {1} order by es.Sequence...
<gh_stars>0 select * from public."Ca_result_job_category" where ca_id=/* caresultjobcategory.getCaId() */'N1';