sql stringlengths 6 1.05M |
|---|
-- Databricks notebook source
-- MAGIC %md # CCU002_02-D09-gdppr_outcomes
-- MAGIC
-- MAGIC **Description** This notebook generates the outcomes listed in the CCU002 vaccination protocol using the GDPPR dataset
-- MAGIC
-- MAGIC **Author(s)** <NAME>, <NAME>, <NAME>
-- COMMAND ----------
-- MAGIC %md
-- MAGIC #####V... |
<reponame>xiaoxiaoHe-E/gpdb
-- there should be no entry in large object table
SELECT count(*) FROM pg_largeobject;
|
-- simple example testing the * of LL(*)
def A = { Many (Match "a") }
def Main =
{ @a = Choose
{ x = { A ; Match "c" }
; y = { A ; Match "d" }
}
; END
}
|
CREATE TABLE REPORTING_WEB_UI_UAT.DELETED_OUTAGES (
id NUMBER(38,0) NOT NULL,
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
); |
--
-- 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_catalog.set_config('search_path', '', fal... |
<gh_stars>0
-- upgrade --
CREATE TABLE IF NOT EXISTS `scheduledevents` (
`scheduled_event_id` BIGINT NOT NULL PRIMARY KEY,
`event_slug` VARCHAR(40) NOT NULL,
`episode_id` INT NOT NULL
) CHARACTER SET utf8mb4;
-- downgrade --
DROP TABLE IF EXISTS `scheduledevents`;
|
USE [WheelChair]
GO
/****** Object: Table [dbo].[Condemn_Records] Script Date: 17/8/20 3:22:30 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[Condemn_Records](
[ref_ID] [int] IDENTITY(1,1) NOT NULL,
[ItemNo] [nvarchar](50) NOT NULL,
[ItemDescription] [nvarchar](255) NOT NULL,
... |
/*
Warnings:
- You are about to drop the column `defalut_value` on the `Payment` table. All the data in the column will be lost.
- Added the required column `default_value` to the `Payment` table without a default value. This is not possible if the table is not empty.
*/
-- AlterTable
ALTER TABLE "Payment" DROP... |
SET NAMES utf8;
SET FOREIGN_KEY_CHECKS = 0;
-- ----------------------------
-- Table structure for `plc`
-- ----------------------------
-- DROP TABLE IF EXISTS `plc`;
CREATE TABLE `plc` (
`id` int(10) NOT NULL AUTO_INCREMENT,
`tstamp` timestamp NOT NULL, COMMENT '时间戳',
`vint` int(8) NOT NULL DEFAULT '-1' COMME... |
-- logs activities of curators changing game_genres table
CREATE OR REPLACE FUNCTION update_game_genres ( ) RETURNS TRIGGER AS
'BEGIN
insert into curator_log(game_id_old, game_id_new, genre_id_old, genre_id_new, updated)
values(OLD.game_id, NEW.game_id, OLD.genre_id, NEW.genre_id, now());
RETURN NEW;
END;' LANGUAGE ... |
insert into tb_client (name, cpf, income, birth_Date, children) values ('<NAME>', '13399388966', 4238.39, '2021-09-04T20:50:52Z', 2);
insert into tb_client (name, cpf, income, birth_Date, children) values ('<NAME>', '51000762560', 3464.57, '2020-09-25T21:04:53Z', 2);
insert into tb_client (name, cpf, income, birth_Date... |
-- --------------------------------------------------------
-- Host: 127.0.0.1
-- Versión del servidor: 10.0.17-MariaDB - mariadb.org binary distribution
-- SO del servidor: Win32
-- HeidiSQL Versión: 9.3.0.5056
-- -------------------------------------------... |
CREATE TABLE ads_action_stats (
_1d_click Nullable(String),
_1d_view Nullable(String),
_28d_click Nullable(String),
_28d_view Nullable(String),
_7d_click Nullable(String),
_7d_view Nullable(String),
action_canvas_component_id Nullable(String),
action_canvas_component_name Nullable(String),
action_caro... |
-- phpMyAdmin SQL Dump
-- version 5.0.2
-- https://www.phpmyadmin.net/
--
-- Host: localhost
-- Generation Time: Sep 07, 2020 at 10:59 PM
-- Server version: 10.3.23-MariaDB-1
-- 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_CLI... |
<filename>plugins/google_kalender/sql/deinstall.sql<gh_stars>1-10
DROP TABLE IF EXISTS `XXX_plugin_google_kalender_lookup_read`; ##b_dump##
DROP TABLE IF EXISTS `XXX_plugin_google_kalender_lookup_write`; ##b_dump##
DROP TABLE IF EXISTS `XXX_plugin_google_kalender_lang`; ##b_dump##
DROP TABLE IF EXISTS `XXX_plugin_googl... |
<filename>schema.sql
DROP DATABASE IF EXISTS employees;
CREATE DATABASE employees;
USE employees;
CREATE TABLE department (
id INT AUTO_INCREMENT NOT NULL,
name VARCHAR(30) NOT NULL,
PRIMARY KEY(id)
);
INSERT INTO department (name)
VALUES ("Sales");
INSERT INTO department (name)
VALUES ("Engineering");
INSE... |
-- 13.09.2015 15:36
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_ImpFormat_Row SET Name='Produktart',Updated=TO_TIMESTAMP('2015-09-13 15:36:42','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_ImpFormat_Row_ID=531103
;
-- 13.09.2015 15:36
-- I forgot to set the DICTIONARY_ID_COMMENTS Syst... |
<reponame>th0x4c/coin
select
'WAITSTAT' CNAME, to_char(systimestamp, 'yyyy-mm-dd"T"hh24:mi:ss.ff') CTIMESTAMP,
v$waitstat.*
from
v$waitstat
/
|
INSERT INTO [MARoomTypes] VALUES (
@LocaleCd,
@TypeCd,
@TypeName,
@SearchName,
@Slug,
@Price,
@AdultPerRoom,
@FileCd,
@Notes,
@SortKey,
1,
@CreateUser,
@CreateDate,
@UpdateUser,
@UpdateDate,
@DeleteFlag
) |
<gh_stars>0
-- MySQL dump 10.13 Distrib 5.7.9, for Win64 (x86_64)
--
-- Host: localhost Database: guardartododb
-- ------------------------------------------------------
-- Server version 5.7.10-log
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTE... |
<filename>superfly-sql/src/get/get_user_for_description.prc
drop procedure if exists get_user_for_description;
delimiter $$
create procedure get_user_for_description(i_username varchar(32))
main_sql:
begin
select user_id
, user_name username
, email
, name
, surname
... |
<reponame>viswaratha12/dbwarden
/****** Object: View [dbo].[V_Analysis_Job_Completed_Count_Tool_by_day] ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE VIEW dbo.V_Analysis_Job_Completed_Count_Tool_by_day
AS
SELECT TOP 100 PERCENT CONVERT(datetime, CONVERT(varchar(24), m) + '/' + CONVERT(varchar(... |
ALTER TABLE stactionruns ADD COLUMN `hash` int NOT NULL DEFAULT 0 AFTER `tag`; |
<filename>test/integration/003_compare_test/models/downstream.sql
{{ config(materialized='view') }}
SELECT * FROM {{ ref('test_view') }}
|
<reponame>koron/xsqlparser<gh_stars>10-100
DROP TABLE IF EXISTS TEST CASCADE; |
DROP TABLE IF EXISTS `person`;
CREATE TABLE `person` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) DEFAULT NULL,
`age` int(20) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
<filename>migrations/categories.sql
set autocommit=0;begin;insert into categories (`name`, `icon`) values ('Переводы', 'translation');
insert into categories (`name`, `icon`) values ('Уборка', 'clean');
insert into categories (`name`, `icon`) values ('Переезды', 'cargo');
insert into categories (`name`, `icon`) values ... |
<gh_stars>0
-- @testpoint: 插入0值
drop table if exists float8_13;
create table float8_13 (name float8);
insert into float8_13 values (0);
insert into float8_13 values (0);
insert into float8_13 values (0);
select * from float8_13;
drop table float8_13; |
-- @testpoint: opengauss关键字trigger_catalog(非保留),作为函数名,部分测试点合理报错
--关键字不带引号-成功
drop function if exists trigger_catalog;
create function trigger_catalog(i integer)
returns integer
as $$
begin
return i+1;
end;
$$ language plpgsql;
/
drop function if exists trigger_catalog;
--关键字带双引号-成功
drop function if exists "trigger... |
DROP TABLE IF EXISTS `{prefix}`;
DROP TABLE IF EXISTS `{prefix}consensus`;
DROP TABLE IF EXISTS `{prefix}queue`;
DROP TABLE IF EXISTS `{prefix}consensus_queue`;
DROP TABLE IF EXISTS `{prefix}data`;
CREATE TABLE `{prefix}data` (
`id` tinyint(3) unsigned NOT NULL AUTO_INCREMENT,
`key` varchar(20) COLLATE utf8mb4_uni... |
-- phpMyAdmin SQL Dump
-- version 3.5.8.2
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: May 13, 2016 at 08:39 PM
-- Server version: 5.5.42-37.1-log
-- PHP Version: 5.4.31
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CL... |
<reponame>entraned/webim-for-php5<filename>webim/uninstall.sql
DROP TABLE IF EXISTS `webim_settings`;
DROP TABLE IF EXISTS `webim_histories`;
DROP TABLE IF EXISTS `webim_rooms`;
DROP TABLE IF EXISTS `webim_members`;
DROP TABLE IF EXISTS `webim_visitors`;
DROP TABLE IF EXISTS `webim_blocked`;
DROP TABLE IF EXISTS `webim... |
INSERT INTO `users`
(`name`, `profile_image`, `email`, `email_verified_at`, `password`, `role`, `description`, `category_id`, `telephone number`, `wage`, `remember_token`, `created_at`, `updated_at`)
VALUES
('Mary',NULL, '<EMAIL>',NULL, '$2y$10$0PbIhAgeiUi43O2V1ZDP2ugLnFo4Zq3ZtLlq.sHFTWUtSUkrSnAV.', 'provider', "I'v... |
-- phpMyAdmin SQL Dump
-- version 4.8.2
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Feb 08, 2019 at 09:08 AM
-- Server version: 10.1.34-MariaDB
-- PHP Version: 7.2.8
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD... |
/****** Object: Procedure [dbo].[sp_help_revlogin] Committed by VersionSQL https://www.versionsql.com ******/
CREATE PROCEDURE [dbo].[sp_help_revlogin] @login_name sysname = NULL AS
DECLARE @name sysname
DECLARE @type varchar (1)
DECLARE @hasaccess int
DECLARE @denylogin int
DECLARE @is_disabled int
DECLAR... |
itemdrop schema ims;
CREATE SCHEMA IF NOT EXISTS `ims`;
USE `ims` ;
CREATE TABLE IF NOT EXISTS `ims`.`Customers` (
`id` INT(11) UNIQUE NOT NULL AUTO_INCREMENT,
`first_name` VARCHAR(40) NULL DEFAULT NULL,
`surname` VARCHAR(40) NULL DEFAULT NULL,
PRIMARY KEY (`id`)
);
CREATE TABLE IF NOT EXISTS `ims`.`It... |
<filename>sql/xbt.sql
-- MySQL dump 10.11
--
-- Host: localhost Database: xbt
-- ------------------------------------------------------
-- Server version 5.0.32-Debian_7etch5-log
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!... |
SELECT TOP (50) [Name], FORMAT([Start],'yyyy-MM-dd') AS StartDate
FROM Games
WHERE YEAR([Start]) BETWEEN 2011 AND 2012
ORDER BY [Start], [Name]
SELECT UserName, STUFF(EMAIL,1,CHARINDEX('@',Email,1),'') AS [Email Provider]
FROM Users
ORDER BY [Email Provider], UserName
SELECT UserName, IpAddress
FROM Users
WHERE IpAdd... |
CREATE TABLE foo (
id BIGINT UNSIGNED PRIMARY KEY AUTO_INCREMENT,
name VARCHAR(40),
`order` INT,
bar_id INTEGER UNSIGNED,
is_enabled BOOL,
type VARCHAR(10),
`float` FLOAT(5, 5),
`double` DOUBlE(5, 5),
`decimal` DECIMAL(5, 5),
`datetime` DATETIME
);
INSERT INTO
foo
... |
ALTER TABLE guilds
ADD COLUMN register_member_role BIGINT;
ALTER TABLE guilds
ADD COLUMN register_cooldown_role BIGINT;
ALTER TABLE guilds
ADD COLUMN register_cooldown_duration INT;
ALTER TABLE guilds
ADD COLUMN cooldown_restricted_roles BIGINT [] NOT NULL DEFAULT array[]::bigint[]; |
<gh_stars>10-100
drop table flight cascade constraints;
drop table aircraft cascade constraints;
drop table employee cascade constraints;
drop table certificate cascade constraints;
create table flight(
flno number(4,0) primary key,
origin varchar2(20),
destination varchar2(20),
distance number(6,0),
de... |
<reponame>aliostad/deep-learning-lang-detection<gh_stars>10-100
INSERT INTO tiki_score (event, score, expiration) VALUES ('forum_topic_post',10,0);
INSERT INTO tiki_score (event, score, expiration) VALUES ('forum_topic_reply',5,0);
INSERT INTO tiki_score (event, score, expiration) VALUES ('forum_post_read',1,0);
INSERT... |
DROP TABLE IF EXISTS acs2009_3yr.tmp_seq0001;
DROP TABLE IF EXISTS acs2009_3yr.tmp_seq0001_moe;
DROP TABLE IF EXISTS acs2009_3yr.tmp_seq0002;
DROP TABLE IF EXISTS acs2009_3yr.tmp_seq0002_moe;
DROP TABLE IF EXISTS acs2009_3yr.tmp_seq0003;
DROP TABLE IF EXISTS acs2009_3yr.tmp_seq0003_moe;
DROP TABLE IF EXISTS acs2009_3yr... |
-- MySQL Administrator dump 1.4
--
-- ------------------------------------------------------
-- Server version 5.0.22-community-nt
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CO... |
--
-- Name: job_definition_id; Type: SEQUENCE; Schema: public; Owner: enstore
--
CREATE SEQUENCE job_definition_id
INCREMENT BY 1
NO MAXVALUE
NO MINVALUE
CACHE 1;
ALTER TABLE public.job_definition_id OWNER TO enstore;
--
-- Name: job_id; Type: SEQUENCE; Schema: public; Owner: enstore
--
CREATE SEQU... |
<reponame>dram/metasfresh<gh_stars>1000+
-- 24.11.2015 16:35
-- URL zum Konzept
INSERT INTO C_AggregationItem (AD_Client_ID,AD_Column_ID,AD_Org_ID,C_Aggregation_ID,C_AggregationItem_ID,Created,CreatedBy,EntityType,IsActive,Type,Updated,UpdatedBy) VALUES (1000000,552844,1000000,1000000,540023,TO_TIMESTAMP('2015-11-24 1... |
DROP TABLE IF EXISTS a;
DROP TABLE IF EXISTS b;
DROP TABLE IF EXISTS c;
DROP TABLE IF EXISTS d;
DROP TABLE IF EXISTS e;
DROP TABLE IF EXISTS f;
CREATE TABLE IF NOT EXISTS a (
a_id INTEGER PRIMARY KEY AUTOINCREMENT,
c_id INTEGER,
VALUE VARCHAR(45) NULL,
FOREIGN KEY(c_id) REFERENCES c(c_id)
);
CREATE TABLE IF ... |
ALTER TABLE conference_measurement_draft ADD automatic BIT NOT NULL DEFAULT 'FALSE';
ALTER TABLE conference_measurement_draft ADD waiting BIT NOT NULL DEFAULT 'FALSE';
ALTER TABLE conference_measurement_draft ADD fev6 DOUBLE PRECISION;
ALTER TABLE conference_measurement_draft ADD fev1_fev6_ratio DOUBLE PRECISION;
ALTE... |
<gh_stars>0
LOCK TABLES `solutionresource` WRITE;
UNLOCK TABLES;
|
-- database: presto; tables: table_with_header, table_with_footer, table_with_header_and_footer; groups: hive;
--! name: simple_scan with header
SELECT count(*) FROM table_with_header
--!
34816
--! name: filter with header
SELECT *
FROM table_with_header
WHERE data = 'data'
--!
--! name: simple_scan with footer
SELECT ... |
<reponame>xuzhikethinker/t4f-data
CALL SYSCS_UTIL.SYSCS_INPLACE_COMPRESS_TABLE('AOS', 'MEMBER_EVENT', 1, 1, 1);
CALL SYSCS_UTIL.SYSCS_INPLACE_COMPRESS_TABLE('AOS', 'MEMBER', 1, 1, 1);
CALL SYSCS_UTIL.SYSCS_INPLACE_COMPRESS_TABLE('AOS', 'IDENTITY', 1, 1, 1);
CALL SYSCS_UTIL.SYSCS_INPLACE_COMPRESS_TABLE('AOS', 'SUBSCRIPT... |
<reponame>stellar-fox/deneb
INSERT INTO public.users
(first_name, last_name, email, password_digest,
created_at, updated_at)
VALUES ('Igor', 'Wasinski', '<EMAIL>',
<PASSWORD>$10$XnzAvtLrJ6NkFxc<PASSWORD>n/.5YefD.oAy<PASSWORD>LA<PASSWORD>',
'2018-02-04 17:37:11.296', '2018-02-04 17:37:11.... |
<reponame>alexavila150/luciddb
-- Q21 (tpch2.6.1)
-- do NOT add to test; still have cartesian product
!set rowlimit 100
SELECT
S_NAME,
COUNT(*) AS NUMWAIT
FROM
TPCH.SUPPLIER,
TPCH.LINEITEM L1,
TPCH.ORDERS,
TPCH.NATION
WHERE
S_SUPPKEY = L1.L_SUPPKEY
AND O_ORDERKEY = L1.L_ORDERKEY
A... |
<gh_stars>1-10
SELECT e.emp_no, e.first_name, e.last_name, dm.dept_no, e.hire_date
FROM employees AS e
JOIN dept_manager AS dm ON e.emp_no = dm.emp_no;
|
-- phpMyAdmin SQL Dump
-- version 4.5.4.1deb2ubuntu2
-- http://www.phpmyadmin.net
--
-- Хост: localhost
-- Время создания: Ноя 15 2017 г., 18:53
-- Версия сервера: 10.0.31-MariaDB-0ubuntu0.16.04.2
-- Версия PHP: 7.0.22-0ubuntu0.16.04.1
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @O... |
<filename>engine/sql/api/241_add_hatchery_field_on_consumer.sql<gh_stars>1-10
-- +migrate Up
ALTER TABLE "auth_consumer" ADD COLUMN IF NOT EXISTS "service_ignore_job_with_no_region" BOOLEAN;
ALTER TABLE "service" ADD COLUMN IF NOT EXISTS "ignore_job_with_no_region" BOOLEAN;
-- +migrate Down
ALTER TABLE "auth_consumer... |
CREATE TABLE [dbo].[PPS_Grades] (
[Grade] VARCHAR (50) NULL,
[EffectiveDate] VARCHAR (50) NULL,
[PayPeriod] VARCHAR (50) NULL,
[MIN] VARCHAR (50) NULL,
[FISRT] VARCHAR (50) NULL,
[MID] VARCHAR (50) NULL,
[THIRD] VARCHAR (50) NULL,
[MAX] ... |
<filename>brazil_customers.sql
/*Provide a query only showing the Customers from Brazil*/
/*Map*/
SELECT c.FirstName, c.LastName, c.CustomerId, c.Country
/*What tables*/
FROM Customer c
/*Filter*/
WHERE c.Country = 'Brazil' |
ALTER TABLE `{prefix}blog` ADD `posted2telegram` BOOLEAN NOT NULL DEFAULT FALSE;
|
INSERT INTO worldofrations.comparisonFormulas
(
`id`,
`formulaId`
)
VALUES
(
'AE9268F2-45BC-4373-8CD9-00AAECEB8D77',
'1D1652F9-08C9-46C7-8E1C-A3198796EFB3'
);
INSERT INTO worldofrations.comparisonFormulas
(
`id`,
`formulaId`
)
VALUES
(
'6EC8AE9C-0D67-4E0C-8D9C-01308A0968F2',
'7BA9DD38-4828-4544-BDA7-F8EEBAEF88... |
{% macro get_time_key(column, parts=['hour','minute','second'], h24=True) %}
{{ adapter.dispatch('get_time_key', 'dbt_resto') (column, parts, h24) }}
{% endmacro %}
{% macro default__get_time_key(column, parts, h24) %}
{%- set pattern -%}
{%- if 'hour' in parts -%} HH {%- if h24 -%} 24 {%- else -%} 12 {%- end... |
INSERT INTO `user_role` (`role_id`, `role`)
VALUES (0, 'Admin');
INSERT INTO `user_role` (`role_id`, `role`)
VALUES (1, 'Staff');
INSERT INTO `user_role` (`role_id`, `role`)
VALUES (2, 'Teacher');
INSERT INTO `user_role` (`role_id`, `role`)
VALUES (3, 'Student');
INSERT INTO `academic_year` (`academic_y... |
-- incremental로 증분 추출/분석
{{ config(
materialized='view'
)}}
SELECT
event_id,
-- privacy info
privacy_info.analytics_storage as privacy_info_analytics_storage,
privacy_info.ads_storage as privacy_info_ads_storage,
privacy_info.uses_transient_token as privacy_info_uses_transient_token,
--... |
<reponame>leonelfolmer/CI_2.1.3<gh_stars>0
#
# TABLE STRUCTURE FOR: artigos
#
DROP TABLE IF EXISTS artigos;
CREATE TABLE `artigos` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`categoria_id` int(10) NOT NULL,
`categoria` varchar(250) NOT NULL,
`data` date NOT NULL,
`titulo` varchar(45) NOT NULL,
`url`... |
-- phpMyAdmin SQL Dump
-- version 4.8.4
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Apr 23, 2019 at 04:51 AM
-- Server version: 10.1.37-MariaDB
-- PHP Version: 7.3.0
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD... |
<reponame>harsha9292/chirpstack-application-server-1<filename>internal/storage/migrations/0001_initial.up.sql
create table application (
app_eui bytea primary key,
name character varying (100) not null
);
create table node (
dev_eui bytea primary key,
app_eui bytea references application on delete cascade not null... |
-- create database DIGED;
-- use DIGED;
-- PRIMARY KEY (per),
-- FOREIGN KEY (dep) REFERENCES departamentos(dep)
-- DROP TABLE DETALLE_SOLUCION;
-- DROP TABLE COMPROBACION_RESUELTA;
-- DROP TABLE CIUDAD;
-- DROP TABLE PAIS;
-- DROP TABLE PALABRA;
-- DROP TABLE RESPUESTA_INTERACTIVA;
-- DROP TABLE RESPUESTA_CORTA;
-- DR... |
<reponame>jdkoren/sqlite-parser<filename>src/test/resources/laststmtchanges.test_7.sql
-- laststmtchanges.test
--
-- execsql { ROLLBACK }
ROLLBACK |
-- file:create_table.sql ln:170 expect:true
CREATE TABLE aggtest (
a int2,
b float4
)
|
UPDATE m_picking_job_step
SET qtyrejectedtopick=qtytopick - qtypicked
WHERE rejectreason IS NOT NULL
;
|
-- 2020-01-29T12:21:59.402Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Table SET AccessLevel='1',Updated=TO_TIMESTAMP('2020-01-29 13:21:59','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Table_ID=540244
;
-- 2020-01-29T12:22:41.656Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System... |
<filename>World/Professions/Mining/reference_loot_template.Veins.sql
insert into `reference_loot_template` (`entry`, `item`, `ChanceOrQuestChance`, `lootmode`, `groupid`, `mincountOrRef`, `maxcount`) values('12996','36917','0','1','1','1','2'); -- Blutstein
insert into `reference_loot_template` (`entry`, `item`, `Chan... |
ALTER TABLE friend ADD COLUMN broadcast_flow_hash TEXT;
ALTER TABLE message ADD COLUMN broadcast_type TEXT; |
-- $Id: gong.sql,v 1.3 2003/07/01 18:59:55 rkh Exp $
-- GOng -- next generation GO tables
-- This sql creates new tables based on the GO term data. I find these
-- tables to be easier to navigate than the distributed tables, but YMMV.
-- This code is intended to be run after loading the (converted) GO mysql
-- data. ... |
DROP TABLE IF EXISTS test_run_artifacts;
CREATE TABLE IF NOT EXISTS test_run_artifacts (
id SERIAL,
name VARCHAR(255) NOT NULL,
link TEXT NOT NULL,
expires_at TIMESTAMP NULL,
test_run_id INT NOT NULL,
PRIMARY KEY (id),
FOREIGN KEY (test_run_id) REFERENCES test_runs (id)
ON DELETE CASCADE
ON UPDATE... |
--
-- Name: drop_old_time_partitions(integer, boolean); Type: FUNCTION; Schema: admin; Owner: d3l243
--
CREATE OR REPLACE FUNCTION admin.drop_old_time_partitions(older_than_days integer, dry_run boolean DEFAULT true) RETURNS integer
LANGUAGE plpgsql
AS $$
DECLARE
r record;
i int := 0;
l_schema_... |
EXEC DBMS_SQLTUNE.DROP_SQL_PROFILE('&1')
|
<gh_stars>0
-- phpMyAdmin SQL Dump
-- version 5.1.0
-- https://www.phpmyadmin.net/
--
-- Servidor: 127.0.0.1
-- Tiempo de generación: 18-10-2021 a las 03:57:41
-- Versión del servidor: 10.4.19-MariaDB
-- Versión de PHP: 8.0.6
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!401... |
DROP TABLE IF EXISTS magic_table;
CREATE TABLE magic_table (
id SERIAL PRIMARY KEY,
name VARCHAR(255),
artist VARCHAR(255),
image_url VARCHAR(255),
artist_store_url VARCHAR(255)
); |
<filename>LessonMonitor/Lessons.Database/MembersAchievements.sql
CREATE TABLE [dbo].[MembersAchievements]
(
[MemberId] INT NOT NULL ,
[AchievementId] INT NOT NULL,
[RecievedAt] DATETIME NOT NULL DEFAULT GETDATE(),
CONSTRAINT [PK_MembersAchievements] PRIMARY KEY ([MemberId], [AchievementId]),
CONST... |
<reponame>rebet/rebet
CREATE LOGIN [rebet]
WITH
PASSWORD = '<PASSWORD>',
DEFAULT_DATABASE = [rebet],
CHECK_EXPIRATION = OFF,
CHECK_POLICY = OFF
;
USE [rebet];
CREATE USER [rebet] FOR LOGIN [rebet];
EXEC sp_addrolemember 'db_owner', 'rebet';
|
<reponame>guilleminio/paseoscaninos
-- phpMyAdmin SQL Dump
-- version 5.1.1
-- https://www.phpmyadmin.net/
--
-- Servidor: 127.0.0.1
-- Tiempo de generación: 27-11-2021 a las 00:57:17
-- Versión del servidor: 10.4.21-MariaDB
-- Versión de PHP: 8.0.12
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_... |
-- CreateTable
CREATE TABLE `sessions` (
`id` VARCHAR(255) NOT NULL,
`sid` VARCHAR(255) NOT NULL,
`data` TEXT NOT NULL,
`expires_at` DATETIME(3) NOT NULL,
UNIQUE INDEX `sessions.sid_unique`(`sid`),
PRIMARY KEY (`id`)
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
<filename>db/production_db.sql
-- phpMyAdmin SQL Dump
-- version 5.0.3
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Dec 07, 2021 at 01:19 PM
-- Server version: 10.4.14-MariaDB
-- PHP Version: 7.2.34
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40... |
<gh_stars>0
-- ***************************************************************************
-- File: 8_3.sql
--
-- Developed By TUSC
--
-- Disclaimer: Neither Osborne/McGraw-Hill, TUSC, nor the author warrant
-- that this source code is error-free. If any errors are
-- found in this source code, ... |
<reponame>ajohnson96/2019-06-c-sharp-labs
select * from products where ProductName like '%ch%'
select * from products where ProductName like '[ABC]%'
select * from products where ProductName like '[^ABC]%'
select * from products where ProductName like 'ch__'
select* from Employees
/* IN */
select * from Employees w... |
<gh_stars>0
create or replace procedure uw_parse(p_name VARCHAR2) is
l_sql_line varchar2(4000);
l_tmp_clob clob;
l_sql_clob clob;
l_number_of_lines number;
l_offset pls_integer:=1;
l_line varchar2(32767);
l_total_length pls_integer;
l_line_length pls_integer;
l_idx numbe... |
USE Backend_ApiNetCore3_1
go
alter table dbo.AppUser set (SYSTEM_VERSIONING = off)
drop table dbo.AppUserHistory
drop table dbo.AppUser
alter table dbo.Employee set (SYSTEM_VERSIONING = off)
drop table dbo.EmployeeHistory
drop table dbo.Employee
alter table dbo.Position set (SYSTEM_VERSIONING = off)
drop table d... |
WITH user_newsletter_cal_status_temp AS (
SELECT u.northstar_id,
u.created_at_month,
u.last_mam,
u.months_since_created,
u.period_start,
u.period_end,
u.newsletter_topic,
CASE WHEN nl.topic_subscribed_at IS NULL
OR nl.topic_subscribed_at > u.period_end
OR nl.topic... |
DELETE FROM new_article_fileresources;
DELETE FROM new_contentnode_contentnodes;
DELETE FROM new_contentnode_fileresources;
DELETE FROM new_contenttree_contentnodes;
DELETE FROM new_digitalobject_fileresources;
DELETE FROM new_webpage_fileresources;
DELETE FROM new_webpage_webpages;
DELETE FROM new_website_webpages;
D... |
-- randexpr1.test
--
-- db eval {SELECT -f+( - -case when 13-b not between case when (a<>t1.f or case when not exists(select 1 from t1 where 11<>t1.a) then b when c<=t1.b then t1.f else 11 end in (select 17 from t1 union select t1.b from t1)) then b-c-b when t1.f=13 then a else 19 end | t1.d and t1.e and not exists(s... |
<reponame>akadarAkku/databases<filename>week-1-homework/createdb.sql
CREATE TABLE `Book` (
`ISBN` INT,
`Title` VARCHAR(50),
`Author` VARCHAR(30),
KEY `FK` (`ISBN`, `Author`)
);
CREATE TABLE `Copy` (
`Copy Number` <type>,
KEY `INT` (`Copy Number`)
);
CREATE TABLE `Loan` (
`Date out` <type>,
`Date in` <... |
create table MEMBER(
MEMBER_ID INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
MEMBER_NAME TEXT NOT NULL,
MEMBER_ACCOUNT TEXT NOT NULL,
MEMBER_STATUS_CODE TEXT NOT NULL REFERENCES MEMBER_STATUS(MEMBER_STATUS_CODE),
FORMALIZED_DATETIME DATETIME,
BIRTHDATE DATE,
MEMBER_REGISTER_DATETIME DATETIME NOT NULL,
MEM... |
-- Database: h2
-- Change Parameter: newColumnName=id
-- Change Parameter: oldColumnName=id
-- Change Parameter: tableName=person
ALTER TABLE person ALTER COLUMN id RENAME TO id;
|
<filename>src/main/resources/cds_db/postgresql/20141109212913_opencds_concept_rel.sql<gh_stars>0
--
-- The MTS cds EJB project is the base framework for the CDS Framework Middle Tier Service.
--
-- Copyright (C) 2016 New York City Department of Health and Mental Hygiene, Bureau of Immunization
-- Contributions by HLN C... |
/*d************************************************************/
/* project: traveldb database views */
/* */
/* attention !! types are hardcoded here !!! */
/* check with mpobjdef.h ... |
-- Only import this file if you have already imported the previous DBdump file before 8/8/17 - Create syntax for TABLE 'btrade_ohlc_tick'
CREATE TABLE `btrade_ohlc_tick` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`instrument` varchar(10) DEFAULT NULL,
`ctime` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
`tim... |
<filename>modules/core/db/update/hsql/18/180407-2-updateSchedulerLoaderLog.sql
alter table SCHEDULER_SCHEDULER_LOADER_LOG add column SCHEDULER_VERSION integer ^
update SCHEDULER_SCHEDULER_LOADER_LOG set SCHEDULER_VERSION = 0 where SCHEDULER_VERSION is null ;
alter table SCHEDULER_SCHEDULER_LOADER_LOG alter column SCHED... |
-- 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.
IF EXISTS (
SELECT 1
FROM INFORMATION_SCHEMA.... |
<reponame>ribsalad/piezo
ALTER TABLE `job_history`
MODIFY COLUMN trigger_name VARCHAR(100) NOT NULL,
MODIFY COLUMN trigger_group VARCHAR(100) NOT NULL,
MODIFY COLUMN job_name VARCHAR(100) NOT NULL,
MODIFY COLUMN job_group VARCHAR(100) NOT NULL,
DROP KEY job_key,
ADD KEY job_key (job_group, job_name, start)... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.