sql stringlengths 6 1.05M |
|---|
with raw_data as (
select i as ilk, call_block_time, call_block_number, dart, null as rate
from makermcd."VAT_call_frob"
where call_success
and dart <> 0.0
union all
select i as ilk, call_block_time, call_block_number, dart, 0.0 as rate
from makermcd."VAT_call_grab"
where call_succes... |
--
-- Table: permission
--
DROP TABLE IF EXISTS permission;
CREATE TABLE permission (
id SERIAL NOT NULL,
name VARCHAR(80) NOT NULL
)
DROP TABLE IF EXISTS group_permission;
CREATE TABLE group_permission (
id SERIAL PRIMARY KEY,
permission_id INTEG... |
-- 28.02.2017 12:23
-- URL zum Konzept
INSERT INTO AD_UI_Element (AD_Client_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,AD_UI_ElementGroup_ID,AD_UI_Element_ID,Created,CreatedBy,IsActive,IsAdvancedField,IsDisplayed,IsDisplayedGrid,IsDisplayed_SideList,Name,SeqNo,SeqNoGrid,SeqNo_SideList,Updated,UpdatedBy) VALUES (0,11462,0,402,... |
<reponame>dram/metasfresh<gh_stars>1000+
-- 2017-08-30T14:45:13.025
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_UI_Section (AD_Client_ID,AD_Org_ID,AD_Tab_ID,AD_UI_Section_ID,Created,CreatedBy,IsActive,SeqNo,Updated,UpdatedBy,Value) VALUES (0,0,540632,540446,TO_TIMESTAMP('2017-08-30 ... |
USE translations;
CREATE TABLE Resources (
id INT NOT NULL AUTO_INCREMENT UNIQUE KEY,
project VARCHAR(64),
context VARCHAR(20), -- for Android resources
locale VARCHAR(15),
reskey VARCHAR(100) NOT NULL,
text TEXT NO... |
/*
Navicat Premium Data Transfer
Source Server : localhost_3306
Source Server Type : MySQL
Source Server Version : 50736
Source Host : localhost:3306
Source Schema : myBlog
Target Server Type : MySQL
Target Server Version : 50736
File Encoding : 65001
Date: 15/02/202... |
<gh_stars>10-100
-- Copyright 2014-2015 Quickstep Technologies LLC.
--
-- 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
--
-- ... |
select col1, col2, col3
from (
select L_RETURNFLAG as col1, L_EXTENDEDPRICE as col2, concat(L_RECEIPTDATE, L_LINESTATUS) as col3 from lineitem
union
select P_TYPE as col1, P_RETAILPRICE col2, P_NAME col3 from part
) a
where col3 like '1993%' and col2 > 46796
|
------------------------------------------------------------------------------------
--
-- Filename: students_schema_1.sql
--
------------------------------------------------------------------------------------
CREATE TABLE students (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, first_name TEXT, surname TEXT);
|
CREATE TABLE v2(s VARCHAR(16));
|
<gh_stars>1-10
DROP table if exists pg_table_part_alter_alter_type cascade;
CREATE table pg_table_part_alter_alter_type (i int constraint chk1 check (i<10) ,t text) distributed by (i) partition by range(i) (start (1) end (10) every (5) );
ALTER table pg_table_part_alter_alter_type alter column i TYPE float;
select ... |
<filename>create.sql<gh_stars>0
CREATE TABLE IF NOT EXISTS irs527_filings (
record_type text,
form_type text,
form_id_number text,
period_begin_date date,
period_end_date date,
initial_report_indicator text,
amended_report_indicator text,
final_report_indicator text,
change_of_addres... |
<gh_stars>0
INSERT INTO `myisam_static2` (`text`,`text2`) VALUES ("Cakewalk","Niger");
INSERT INTO `myisam_static2` (`text`,`text2`) VALUES ("Altavista","Virgin Islands");
INSERT INTO `myisam_static2` (`text`,`text2`) VALUES ("Chami","Guinea");
INSERT INTO `myisam_static2` (`text`,`text2`) VALUES ("Adobe","Bhutan");
IN... |
<gh_stars>0
-- phpMyAdmin SQL Dump
-- version 5.1.1
-- https://www.phpmyadmin.net/
--
-- Host: localhost
-- Generation Time: Jul 31, 2021 at 06:15 AM
-- Server version: 10.4.20-MariaDB
-- PHP Version: 7.3.29
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARAC... |
<reponame>Zhaojia2019/cubrid-testcases<filename>sql/_13_issues/_14_1h/cases/bug_bts_13884.sql
set system parameters 'dont_reuse_heap_file=yes';
drop table if exists aaa;
drop table if exists bbb;
drop table if exists ccc;
drop table if exists ddd;
drop table if exists eee;
create table aaa (id int primary key);
create ... |
DELETE FROM card_tag_link WHERE card_id = 146991 AND tag_id = 95;
INSERT INTO card_tag_link (card_id, tag_id) VALUES (40113,95);
DELETE FROM card_tag_link WHERE card_id = 146991 AND tag_id = 94;
INSERT INTO card_tag_link (card_id, tag_id) VALUES (40113,94);
DELETE FROM card_tag_link WHERE card_id = 146991 AND tag_id = ... |
<gh_stars>0
-- --------------------------------------------------------
-- Хост: localhost
-- Версия сервера: 5.7.24 - MySQL Community Server (GPL)
-- Операционная система: Win64
-- HeidiSQL Версия: 9.5.0.5332
-- ------------------------------------------------... |
select A.codigo, A.nomeParticipante, count(B.codigo)as QuantidadesJogo from Atleta A join Participa P
on A.codigo = P.codigo
join Equipe E
on E.numero = P.numero
and E.nomePais = P.nomePais
and E.nomeEsporte = P.nomeEsporte
and E.nomeModalidade = P.nomeModalidade
join Compete B
on E.numero = B.numero
and E.... |
INSERT INTO
events (event_password, event_time, event_location, event_artists)
VALUES
('rabbit','From 2am til sunrise. BYOB.', '46 Minna St, San Francisco, CA 94105', 'BrittanyFromEarlier, Special Guest'),
('tiger','From 4am til 8am. BYOB.', '185 Berry St, San Francisco, CA 94107', 'Special Guest'),
('dragon',... |
<gh_stars>1-10
-- Reescribir la siguiente consulta con JOIN
/*
SELECT trackid,
name
FROM tracks
WHERE albumid = (
SELECT albumid
FROM albums
WHERE title = 'Let There Be Rock'
);
*/
SELECT trackid,
name
FROM tracks
INNER JOIN albums
ON albums.albumid = tracks.albumid
WHERE al... |
<reponame>OraOpenSource/apex-license
create or replace
PACKAGE BODY APEX_LICENSE
AS
-----------------------------------------------------------------------
--
-- Application : APEX Licensing
-- Subsystem : Owner side Licensing
-- Package Name : APEX_LICENSE
-- Purpose : Provide the ... |
create materialized view store_credit_from_gift_cards_view as
select
sc.id,
-- Gift cards
case when count(gc) = 0
then
null
else
to_json((gc.code, gc.origin_type, gc.currency, to_char(gc.created_at, 'YYYY-MM-DD"T"HH24:MI:SS.MS"Z"'))::export_gift_cards)
end as gift_card
from sto... |
<filename>src/test/resources/journal2.test_10.sql<gh_stars>100-1000
-- journal2.test
--
-- execsql {
-- CREATE TABLE t2(a UNIQUE, b UNIQUE);
-- INSERT INTO t2 VALUES(a_string(200), a_string(300));
-- INSERT INTO t2 SELECT a_string(200), a_string(300) FROM t2; -- 2
-- INSERT INTO t2 SELECT a_string(20... |
-- file:rules.sql ln:957 expect:true
create rule t1_ins_2 as on insert to t1
where new.a >= 10 and new.a < 20
do instead
insert into t1_2 values (new.a)
|
<reponame>Shuttl-Tech/antlr_psql
-- file:numeric_big.sql ln:178 expect:true
INSERT INTO num_exp_mul VALUES (3,5,'39362489275784146262776411377472433635883331946.794473520543457442955620133347015506556162839462623905489255080102447195050109095701660164272430316804466254467810714209179752718730906325952685817112992943656... |
SELECT CAST("MLB_60"."year" AS SIGNED) AS "year" FROM "MLB_60" GROUP BY "MLB_60"."year", "MLB_60"."year";
|
<filename>backend/de.metas.adempiere.adempiere/migration/src/main/sql/postgresql/system/10-de.metas.adempiere/5512420_sys_gh4952_C_Campaign_Price.sql
-- 2019-02-11T15:11:10.298
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Table (AccessLevel,ACTriggerLength,AD_Client_ID,AD_Org_ID,AD_T... |
-- 2018-09-07T14:26:04.845
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Window SET Help='this window can cause huge performance problems', IsActive='N',Updated=TO_TIMESTAMP('2018-09-07 14:26:04','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Window_ID=540089
;
-- 2018-09-07T14:26:40.187... |
<reponame>traitor6789/osm-tile-server
SET client_min_messages TO warning;
/*
1 1 1 1 1 1 1 1 1
1 2 2 2 1 2 2 2 1
1 2 3 2 2 2 3 2 1
1 2 2 2 1 2 2 2 1
1 1 2 1 3 1 2 1 1
1 2 2 2 1 2 2 2 1
1 2 3 2 2 2 3 2 1
1 2 2 2 1 2 2 2 1
1 1 1 1 1 1 1 1 1
*/
DROP TABLE IF EXISTS raster_elevation;
CREATE TABLE raster_elevation (rid in... |
-- Name: SeriesByMatchingImportEventsWithEventInfoCondensed
-- Schema: posda_files
-- Columns: ['import_type', 'import_comment', 'import_time', 'series_instance_uid']
-- Args: ['import_comment_like', 'import_type_like']
-- Tags: ['find_series', 'import_events']
-- Description: Get Series by Import Events by matching
... |
<reponame>ekmixon/open-smart-grid-platform
DO
$$
BEGIN
IF NOT EXISTS(SELECT 1 FROM device_function_mapping WHERE function = 'CONNECT')
THEN INSERT INTO device_function_mapping values ('OWNER', 'CONNECT');
END IF;
END;
$$ |
<reponame>radekg/kratos<gh_stars>1000+
ALTER TABLE "selfservice_recovery_flow_methods" RENAME COLUMN "selfservice_recovery_request_id" TO "selfservice_recovery_flow_id"; |
-- These views are just for reference. Parameter matching is done automatically by pelton's mysql proxy and no hard coding is done in pelton's endpoints.
CREATE VIEW q6 AS '"SELECT comments.upvotes, comments.downvotes, comments.story_id FROM comments JOIN stories ON comments.story_id = stories.id WHERE comments.story_i... |
-- phpMyAdmin SQL Dump
-- version 4.6.5.2
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Oct 26, 2017 at 06:08 AM
-- Server version: 10.1.21-MariaDB
-- PHP Version: 7.1.1
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET... |
COPY (SELECT * FROM country WHERE country_name LIKE 'A%') TO '/usr1/proj/bray/sql/a_list_countries.copy';
|
<gh_stars>0
-- prepare
DROP TABLE IF EXISTS PDLGD_OF_TA351307;
CREATE UNLOGGED TABLE PDLGD_OF_TA351307
(
TA351307001 VARCHAR(20)
,TA351307003 VARCHAR(60)
,TA351307005 DECIMAL(16,4)
,TA351307010 DECIMAL(7,4)
,Etl_Tx_Dt ... |
-----------------------------------------------------------------------------
--
-- testSpheral.sql
--
-- <NAME>
-- September 9, 2001
-- Last modified September 26, 2001.
-----------------------------------------------------------------------------
--
-- Test script for spheral++'s database. Make sure you have done th... |
<gh_stars>0
CREATE TABLE `user` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`user_id` bigint(20) NOT NULL,
`username` varchar(64) COLLATE utf8mb4_general_ci NOT NULL,
`password` varchar(64) COLLATE utf8mb4_general_ci NOT NULL,
`email` varchar(64) COLLATE utf8mb4_general_ci,
`gender` tinyint(4) N... |
insert into PLAYLIST(name, link)
values ('argentina','<KEY>'),
('australia','<KEY>'),
('austria','<KEY>'),
('belgium','<KEY>'),
('bolivia','<KEY>'),
('brazil','<KEY>'),
('bulgaria','<KEY>'),
('canada','<KEY>'),
('chile','<KEY>'),
('colombia','<KEY... |
INSERT INTO "spectral_types" VALUES(1,0,0.0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
INSERT INTO "spectral_types" VALUES(2,2427,65.5,NULL,'V',NULL,NULL,NULL,'Hill13',NULL,NULL,NULL,NULL);
INSERT INTO "spectral_types" VALUES(3,4368,63.5,NULL,'V',NULL,NULL,NULL,'Hill13',NULL,NULL,NULL,NULL);
INSERT INTO "spect... |
<filename>JobExecutionFramework/SSISDB/internal/Tables/event_messages.sql
CREATE TABLE [internal].[event_messages] (
[event_message_id] BIGINT NOT NULL,
[operation_id] BIGINT NOT NULL,
[execution_path] NVARCHAR (MAX) NULL,
[package_name] NVARCHAR (260) ... |
#adjust purchase made by Pulsar(consignment), to match the consignment report
update purchases set retail_price=195.00, processing_fee=0.00, price_paid=195.00 where id = 17677;
|
SELECT
CONCAT(
channel_name,
'\n',
"""
*2회차 글 리뷰어 알림*
- 지정된 리뷰어의 1회차 (2020/11/15) 사이에 제출된 글을 리뷰해주세요
- 다음 글쓰기 마감일인 2020/11/29 23:59 까지 리뷰하면 됩니다 (기한을 넘기면 예치금이 차감돼요!)
- 한 리뷰어당 한 개 이상의 피드백을 하면 됩니다 (한 리뷰어가 글을 여러 개 쓴 경우 1개 이상의 피드백만 하면 인정!)
""",
'\n',
STRING_AGG(CONCAT('*', CONCAT(user_na... |
<filename>src/Dfc.CourseDirectory.Database/Pttcd/Types/CourseRunsTable.sql
CREATE TYPE [Pttcd].[CourseRunsTable] AS TABLE
(
[CourseRunId] UNIQUEIDENTIFIER NOT NULL,
[CourseName] NVARCHAR(MAX),
[VenueId] UNIQUEIDENTIFIER,
[ProviderCourseId] NVARCHAR(MAX),
[DeliveryMode] TINYINT,
[FlexibleStartDate] BIT,
[StartDa... |
<gh_stars>1-10
DROP TABLE IF EXISTS `year_sharding_2020`;
create table year_sharding_2020
(
id int identity primary key not null ,
sharding_time varchar(20) not null ,
data varchar(20) null
)
;
DROP TABLE IF EXISTS `year_sharding_2021`;
create table year_sharding_2021
(
id int identity primary key not null ,
sharding_t... |
-- 2019-12-04T06:34:08.910Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Element_Trl SET IsTranslated='Y',Updated=TO_TIMESTAMP('2019-12-04 08:34:08','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language='de_CH' AND AD_Element_ID=576112
;
-- 2019-12-04T06:34:08.954Z
-- I forgot to set ... |
--FetchRewards Analytics Engineer Assessment
--Creation of Table 1: Users
Create table Users (
userId varchar(25) ,
state varchar(2),
createdDate datetime CONSTRAINT DF_Users_createdDate DEFAULT GETDATE() not null,
lastLogin datetime,
role varchar(20),
active bit not null,
signupSource varchar(20),
CONSTRAIN... |
<filename>rest-api/src/test/resources/cql/drop-schema.cql
use tuto_rest_api;
truncate comments_by_video;
drop table comments_by_video;
truncate comments_by_user;
drop table comments_by_user;
drop keyspace tuto_rest_api |
-- Module 3 - Lab Exercise 6 - Compress Partitions
-- Compress Partitions
USE HumanResources
GO
-- FG0
ALTER TABLE Payment.Timesheet REBUILD PARTITION = 1 WITH (DATA_COMPRESSION = ROW)
GO
-- FG2
ALTER TABLE Payment.Timesheet REBUILD PARTITION = 2 WITH (DATA_COMPRESSION = PAGE)
GO
-- FG3
ALTER TABLE Payment.Timeshee... |
# What this script will do:
#
# - Create a table `list_product_categories` to list the possible statutes for a record.
# - Create a trigger `uuid_list_product_categories` to automatically generate the UUID for a new record.
# - Create a table `logs_list_product_categories` to log all the changes in the table.
# - Creat... |
-- 3D City Database extension for the Scenario ADE v. 0.2
--
-- May 2018
--
-- 3D City Database: http://www.3dcitydb.org/
--
-- Copyright 2018
-- Austrian Institute of Technology G.m.b.H., Austria
-- Center for Energy - Smart Cities and Regions Research Field
-- http://www.a... |
CREATE TABLE [dbo].[IdentityClaims]
(
[Id] int NOT NULL IDENTITY,
[IdentityResourceId] int NOT NULL,
[Type] nvarchar(200) NOT NULL,
CONSTRAINT [PK_IdentityClaims] PRIMARY KEY ([Id]),
CONSTRAINT [FK_IdentityClaims_IdentityResources_IdentityResourceId] FOREIGN KEY ([IdentityResourceId]) REFERENCES [IdentityResource... |
DROP TABLE IF EXISTS dictionary_primary_key_source_table;
CREATE TABLE dictionary_primary_key_source_table
(
identifier UInt64,
v UInt64
) ENGINE = TinyLog;
INSERT INTO dictionary_primary_key_source_table VALUES (20, 1);
DROP DICTIONARY IF EXISTS flat_dictionary;
CREATE DICTIONARY flat_dictionary
(
identi... |
/*
Navicat Premium Data Transfer
SCHEMA 模式才会读取权限服务的 zuihou_extend.sql 和 zuihou_extend_data.sql 文件
Source Server : 127.0.0.1
Source Server Type : MySQL
Source Server Version : 50722
Source Host : 127.0.0.1:3306
Source Schema : zuihou_base_0000
Target Server Type : MySQL
Target... |
<filename>macros/email_events_joined.sql
{% macro email_events_joined(base_model) %}
with base as (
select *
from {{ base_model }}
), events as (
select *
from {{ var('email_event') }}
), contacts as (
select *
from {% if var('hubspot_contact_merge_audit_enabled', false) %}
{{... |
<filename>apgdiff.tests/src/main/resources/cz/startnet/utils/pgdiff/add_ms_sequence_with_user_type_diff.sql
CREATE SEQUENCE [dbo].[myseq]
AS [dbo].[MyType]
INCREMENT BY 1
MAXVALUE 255
MINVALUE 0
GO
|
<filename>tpch_conf/iqp_query/q14.sql
set max_parallel_workers_per_gather to 0;
set work_mem to 1000000;
set memory_budget to 3000;
set decision_method to dp;
set enable_nestloop to off;
set enable_indexscan to off;
set enable_mergejoin to off;
set tpch_delta_mode to uniform;
set bd_prob to 0.99;
set enable_increm... |
-- //
--
-- Altera o tipo da coluna carga_horaria de pmieducar.servidor_alocacao para
-- possibilitar a alocação de um servidor por mais de 24h em um período de aula
-- (matutino, vespertino, noturno).
--
-- @author <NAME> <<EMAIL>>
-- @license @@license@@
-- @version $Id$
--
ALTER TABLE pmieducar.servidor_alocac... |
-- start_ignore
SET gp_create_table_random_default_distribution=off;
-- end_ignore
alter table pg2_co_table_for_alter_b0 set tablespace pg2_co_ts2_b0;
|
-- MODULE MPB010D
-- ORDER OF EXECUTION: 8
-- PREVIOUS PROGRAM: MPA010D
-- NEXT PROGRAM: MPA010E
-- SQL Test Suite, V6.0, Interactive SQL, mpb010d.sql
-- 59-byte ID
-- TEd Version #
-- AUTHORIZATION HU
SELECT USER FROM HU.ECCO;
-- RERUN if USER value does not match preceding AUTHORIZATION comment
RO... |
-- @testpoint: 创建表验证字段大小写敏感:报错
drop table if EXISTS false_1 CASCADE;
create table false_1(a int,A int,b CHAR(10)); |
-- @testpoint: opengauss关键字read(非保留),作为游标名,部分测试点合理报错
--前置条件
drop table if exists read_test cascade;
create table read_test(cid int,fid int);
--关键字不带引号-成功
start transaction;
cursor read for select * from read_test order by 1;
close read;
end;
--关键字带双引号-成功
start transaction;
cursor "read" for select * from read_test o... |
--
-- PostgreSQL database dump
--
-- Dumped from database version 14.0
-- Dumped by pg_dump version 14.0
-- Started on 2022-01-27 17:56:59
SET statement_timeout = 0;
SET lock_timeout = 0;
SET idle_in_transaction_session_timeout = 0;
SET client_encoding = 'UTF8';
SET standard_conforming_strings = on;
SELECT pg_catalo... |
-- 1. Пример агрегатов
-- rowstore clustered index [PK_SalesOrderDetail_SalesOrderID_SalesOrderDetailID]
-- database engine применяет leaf-level page scan для агрегирования значений для ProductID и OrderQty;
SELECT ProductID
,SUM(OrderQty) AS ProductTotalQuantitySales
FROM [Sales].[SalesOrderDetail]
GROUP BY ... |
BEGIN;
DROP INDEX IF EXISTS idx_measurements_id;
DROP INDEX IF EXISTS idx_samples_id;
DROP INDEX IF EXISTS idx_samples_measurement_id;
DROP INDEX IF EXISTS idx_sample_groups_id;
DROP INDEX IF EXISTS idx_sample_groups_measurement_id;
DROP TABLE IF EXISTS samples;
DROP TABLE IF EXISTS sample_groups;
DROP TABLE IF EXIST... |
/* find sql*/
SELECT sql_id,
child_number,
plan_hash_value plan_hash,
executions execs,
(elapsed_time/1000000)/DECODE(NVL(executions,0),0,1,executions) avg_etime,
buffer_gets /DECODE(NVL(executions,0),0,1,executions) avg_lio,
sql_text
FROM v$sql s
WHERE upper(sql_text) LIKE upper(NVL('&sql_text',sql_text))... |
--*******************************************************************
---CARGA_AVERIAS_DUO_A_DATA------------------------------------------
TRUNCATE TABLE DATA1908
ALTER TABLE ADSL_FINAL ADD CONTRATA NVARCHAR(255)
ALTER TABLE STB_FINAL ADD CONTRATA NVARCHAR(255)
ALTER TABLE STB_FINAL ALTER COLUMN TI_LIQN_DE NVARC... |
<reponame>smarty-kiki/tag<filename>command/migration/tmp/2021_06_12_17_16_54_tag_target.sql
# up
create table if not exists `tag_target` (
`id` bigint(20) unsigned not null,
`version` int(11) not null,
`create_time` datetime default null,
`update_time` datetime default null,
`delete_time` datetime d... |
-- phpMyAdmin SQL Dump
-- version 5.0.2
-- https://www.phpmyadmin.net/
--
-- Hôte : 127.0.0.1:3306
-- Généré le : mer. 25 août 2021 à 07:14
-- Version du serveur : 5.7.31
-- Version de PHP : 7.4.9
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CL... |
<reponame>ThuHoang1502/Website-laptop<filename>reeoigpi_website-laptop.sql<gh_stars>0
-- phpMyAdmin SQL Dump
-- version 5.1.1
-- https://www.phpmyadmin.net/
--
-- Máy chủ: 127.0.0.1
-- Thời gian đã tạo: Th3 21, 2022 lúc 01:07 PM
-- Phiên bản máy phục vụ: 10.4.22-MariaDB
-- Phiên bản PHP: 8.1.2
SET SQL_MODE = "NO_AUTO_... |
<filename>database/querys/Setea Api Token Null.sql
/* Ver la varibale si esta activa */
/***********************************/
/*
SHOW VARIABLES
WHERE VARIABLE_NAME = 'event_scheduler'
*/
/* Genero el procedimiento almacenado*/
/***********************************/
/*
CREATE PROCEDURE actualizarUserTokenNull()... |
INSERT INTO tweb_apbd(`rangkuman`,`berkas_id`,`lembaga_id`, `lembaga_kode`,`pemda_kode`,
`wilayah_kode`,`tahun`, `rekening_kode`,`rekening`,
`program_kode`,`kode_program`,`kode_kegiatan`,`akuntansi`,
`uraian`, `nominal`,`nominal_sebelum`, `nominal_sesudah`, `nominal_perubahan`, `nominal_persen`, `ke... |
------------------------------------------------------------------------------
-- FILE: new_bbg_sumer_xp2.sql
-- AUTHOR: <NAME>. / <NAME>
-- PURPOSE: Database Civilization related modifications by new BBG
------------------------------------------------------------------------------
--================================... |
/*
Warnings:
- You are about to drop the column `customerId` on the `User` table. All the data in the column will be lost.
*/
-- DropIndex
DROP INDEX "User_customerId_key";
-- AlterTable
ALTER TABLE "User" DROP COLUMN "customerId",
ALTER COLUMN "id" DROP DEFAULT;
DROP SEQUENCE "User_id_seq";
|
<reponame>Shuttl-Tech/antlr_psql
-- file:path.sql ln:19 expect:true
INSERT INTO PATH_TBL VALUES ('[1,2,3, 4]')
|
-- settings
DELETE FROM `top`, `toc`, `to` USING `sys_options_types` AS `top` LEFT JOIN `sys_options_categories` AS `toc` ON `top`.`id`=`toc`.`type_id` LEFT JOIN `sys_options` AS `to` ON `toc`.`id`=`to`.`category_id` WHERE `top`.`name` = 'bx_smtp';
-- logs
DELETE FROM `sys_objects_logs` WHERE `object` = 'bx_... |
.echo on
.param init
.param set ?1 A
select 'A' = ?1;
select 'B' = ?1;
.param set ?1 B
select 'B' = ?1;
select 'B' = ?2;
.param list
.param init
.param set :query A
select 'A' = :query;
select 'B' = :query;
.param set :query B
select 'B' = :query;
.param init
.param set @query A
select 'A' = @query;
select 'B' = @que... |
DELIMITER /
CREATE TABLE IACUC_PROTOCOL_TYPE
(
PROTOCOL_TYPE_CODE VARCHAR(3)
, DESCRIPTION VARCHAR(200) NOT NULL
, UPDATE_TIMESTAMP DATE NOT NULL
, UPDATE_USER VARCHAR(60) NOT NULL
, VER_NBR DECIMAL(8) default 1 NOT NULL
, OBJ_ID VARCHAR(36)
) ENGINE InnoDB CHARACTER ... |
--
-- Copyright (C) 2005-2013 MaNGOS <http://getmangos.com/>
-- Copyright (C) 2009-2013 MaNGOSZero <https://github.com/mangoszero>
--
-- This program is free software; you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation; eit... |
<filename>EnergyDemandForecasting/SQLR/src/sql/usp_trainModel.sql
IF OBJECT_ID('dbo.usp_trainModel', 'P') IS NOT NULL
DROP PROCEDURE [dbo].[usp_trainModel]
GO
-- stored procedure for model training
CREATE PROCEDURE [dbo].[usp_trainModel]
@queryStr nvarchar(max),
@region VARCHAR(10),
@scoreStartTime VARCHAR(50... |
<filename>server/src/tests/cleanup.sql
delete from account where name = 'New User Test';
delete from alarm;
delete from alarm_event;
delete from alarm_contact;
delete from fill;
|
version https://git-lfs.github.com/spec/v1
oid sha256:7ca96875600d2f140cb6a8a06e7fe898cc5c7f9d695be0929edae357ea71f56e
size 38822
|
<reponame>UAMS-DBMI/PosdaTools
alter table seg_slice_bitmap_file add column seg_slice_png_file_id integer;
|
<reponame>gopalramadugu/obevo
//// CHANGE name=init
create table HibClassSchemaD (
id int not null,
name varchar(255) null,
hibClassC_id int null,
primary key (id)
) lock datarows
GO
//// CHANGE FK name=fk11
alter table HibClassSchemaD
add constraint FKB606BC2C47AA6F64
... |
<reponame>calvinaco/chain-indexing<filename>migrations/20201217193434_view_account_messages.down.sql
DROP TABLE IF EXISTS view_account_messages; |
-- Much of this was copied from Dendrite
--
----------------
-- Accounts
----------------
DROP TABLE IF EXISTS accounts;
CREATE TABLE IF NOT EXISTS accounts (
-- The Matrix user ID localpart for this account
localpart TEXT NOT NULL PRIMARY KEY,
-- When this account was first created, as a unix timestamp (ms resol... |
CREATE
VIEW `lamoric_db`.`log_format`
AS
(
SELECT id, SUBSTR(category,7) category,
SUBSTRING_INDEX(SUBSTR(category,7),'\\',1) region,
SUBSTR(SUBSTRING_INDEX(prefix, ']', 1), 4) prefix,
SUBSTR(message,INSTR(message,'USER[')+5, (INSTR(message,']') - (INSTR(message,'USER[')+5))) USER,
SUBSTR(message,IN... |
<reponame>aartur/mschematool
INSERT INTO mtest.article (id, body) VALUES (1, 'art1');
|
<filename>prisma/migrations/20210524043342_init/migration.sql
-- CreateTable
CREATE TABLE "User" (
"id" INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
"email" TEXT NOT NULL,
"username" TEXT NOT NULL,
"bio" TEXT,
"image" TEXT
);
-- CreateTable
CREATE TABLE "Article" (
"id" INTEGER NOT NULL PRIMARY ... |
--pokaż modele które nie były zamawiane
CREATE VIEW [rapOp].vNiezamawianeModele
AS
SELECT m.Mod_Nazwa
FROM Salon.Zamowienia z WITH (READUNCOMMITTED)
RIGHT JOIN Salon.Modele m WITH (READUNCOMMITTED) ON z.Mod_Id = m.Mod_Id
WHERE z.Zamowienie_Id IS NULL |
INSERT INTO users (username, name, bio, password, email, type) VALUES ('Docker','Docker','Docker is the leader in the containerization market, combining an enterprise-grade container platform with world-class services.', 'password', '<EMAIL>','company');
INSERT INTO users (username, name, bio, password, email, type) V... |
<filename>database/Database/Database/Tables/branch_map_schedule.sql
CREATE TABLE [dbo].[branch_map_schedule] (
[id] INT IDENTITY (1, 1) NOT NULL,
[branch_map_id] INT NOT NULL,
[week_day] INT NOT NULL,
PRIMARY KEY CLUSTERED ([id] ASC),
CONSTRAINT [fk_branch_map_schedule_branch_map] F... |
<filename>src/OrchestrationService/Scripts/create-schema.sql
-- ============================================
-- {0} Schema
-- {1} Hub
-- ============================================
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[{0}].[{1}_CommunicationSetting]') AND type in (N'U'))
BEGIN
CR... |
BEGIN;
DROP MATERIALIZED VIEW IF EXISTS gnosis_protocol.view_trades;
CREATE MATERIALIZED VIEW gnosis_protocol.view_trades AS
WITH reverts AS (
SELECT
reversion.owner,
reversion."orderId" AS order_id,
reversion.evt_block_time AS block_time,
RANK() OVER (
PARTITION BY solution."batchId", reversio... |
SET DEFINE OFF;
CREATE UNIQUE INDEX AFW_37_LIEN_GADGT_PARMT_R_UK1 ON AFW_37_LIEN_GADGT_PARMT_RACRC
(REF_GADGT_PARMT, REF_GADGT_PARMT_RACRC, NOM)
LOGGING
/
|
-- determines if patients received any dialysis during their stay
-- Some example aggregate queries which summarize the data here..
-- This query estimates 6.7% of ICU patients received RRT.
-- select count(rrt.icustay_id) as numobs
-- , sum(rrt) as numrrt
-- , sum(case when rrt=1 then 1 else 0 end)*100.0 ... |
<reponame>petervandivier/ED209
create table ED209.SpidHallPass (
constraint PK_SpidHallPass primary key clustered ( Spid )
,Spid int not null
,Expires datetime2(7) not null
,InsertedBy varchar(100) not null
constraint DF_USER default (suser_sname())
);
go
|
<gh_stars>1-10
CREATE INDEX IF NOT EXISTS fileswid_index ON FileQc (fileswid);
|
\c dest
CREATE SUBSCRIPTION testsub_source1 CONNECTION 'host=source1 dbname=source1 user=source1_rep_read password=<PASSWORD>' PUBLICATION alltables;
CREATE SUBSCRIPTION testsub_source2 CONNECTION 'host=source2 dbname=source2 user=source2_rep_read password=<PASSWORD>' PUBLICATION alltables;
|
<reponame>SkillsFundingAgency/DC-EAS-2021
DECLARE @SummaryOfChanges_AdjustmentTypes TABLE ([Id] INT, [Action] VARCHAR(100));
MERGE INTO [AdjustmentType] AS Target
USING (VALUES
(1,N'ALLB Excess Support'),
(2,N'Authorised Claims'),
(3,N'Authorised Claims - Additional payments for apprentice'),
(4,N'Authorised Cl... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.