sql stringlengths 6 1.05M |
|---|
<reponame>imfantuan/bytebase
-- 0010 is reserved for workspace, but is not implemented yet.
|
<filename>fixtures/doctests/docguide/003/input.sql
sudo port install docbook-xml-4.5 docbook-xsl fop
|
<gh_stars>1-10
--[er]test insert with auto_increment keyword and without column list in insert statement
create class tb(
col1 int auto_increment primary key,
col2 varchar(20),
col3 varchar(20)
);
insert into tb values('aaa1', 'bbb1');
insert into tb values('aaa2', 'bbb2');
insert into tb values('aaa3', 'bbb3');
sele... |
<reponame>Joao-MRCS-Martins/MIEIC_BDAD_PROJ<filename>Queries/gatilho1_verifica.sql
.mode columns
.headers on
.nullvalue NULL
select id as PontoTroca, totalLivros as Total
from PontoTroca
where PontoTroca = 3;
INSERT INTO Dadiva (id, data, livro, utilizador, pontoTroca) VALUES (20, '2019/05/21', 20, 10, 3);
... |
ALTER TABLE wards ALTER COLUMN hospital_name DROP NOT NULL;
|
<gh_stars>0
USE "SoftUni";
SELECT
[FirstName]
FROM
"Employees"
WHERE
([DepartmentID] IN (3, 10)) AND
( CAST((FORMAT([HireDate], 'yyyy')) AS INT) BETWEEN 1995 AND 2005); |
<reponame>Bidulman/bidoyon-plus
SELECT id, juice, used_apples FROM squeezes WHERE id=?; |
<reponame>ADA-Inc/autentication-web
REM ******************************************************************
REM Fecha : 08/05/2018
REM Realizado por : <NAME>
REM Base de Datos : FS_AUWEB_US
REM Script : Paquetes
REM ******************************************************************
PROMPT US_QVPUSR.sql...
@@US_... |
-- Link to the problem statement : https://www.leetfree.com/problems/find-cumulative-salary-of-an-employee.html#
-- The Employee table holds the salary information in a year.
-- Write a SQL to get the cumulative sum of an employee's salary over a period of 3 months but exclude the most recent month.
-- The result shou... |
SELECT `Device`.`id`, `Device`.`name`, `Device`.`description`, `Device`.`mode`, `Device`.`state`, `Device`.`manualStart`,
`Device`.`manualDuration`, `Device`.`manualSolenoid`, `Device`.`pumpSolenoid`,
`Device`.`softwareVersion`, `Device`.`createdAt`, `Device`.`updatedAt`,
`schedules`.`id` AS `schedules.id`, `schedul... |
<reponame>fisuda/tutorials.PEP-Proxy
-- MySQL dump 10.13 Distrib 5.7.22, for Linux (x86_64)
--
-- Host: localhost Database: idm
-- ------------------------------------------------------
-- Server version 5.7.22
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULT... |
create table component_menu_icons
(
id varchar2(64) default sys_guid() not null primary key,
icon varchar2(64) not null unique,
created_by varchar2(100) not null,
created_date timestamp default current_timestamp not null
);... |
<reponame>dvsa/poc-new-selenium<filename>src/server/resources/queries/vehicle/VEHICLE_REG_DANGEROUS_MANUAL_EURW.sql
select veh.registration, rfrc.comment
from vehicle veh, mot_test_current mtc, mot_test_current_rfr_map rfr, mot_test_rfr_map_comment rfrc
where veh.registration is not null
and mtc.vehicle_id = veh.id
and... |
DROP DATABASE IF EXISTS schooldb;
CREATE DATABASE IF NOT EXISTS schooldb;
USE schooldb;
CREATE TABLE IF NOT EXISTS Student (
ssn VARCHAR(11) NOT NULL PRIMARY KEY,
f_name VARCHAR(20) NOT NULL,
l_name VARCHAR(20) NOT NULL,
phone VARCHAR(10),
city VARCHAR(20) NOT NULL,
zip VARCHAR(5) NOT NULL
);
CREATE TABLE IF ... |
<filename>modules/auth/pgFunctions/auth.current_user_has_proofed_provider.function.sql
-- current_user_has_proofed_provider function checks if a user has a proofed AuthFactor with the given provider-name
CREATE OR REPLACE FUNCTION _auth.current_user_has_proofed_provider(i_provider TEXT) RETURNS BOOLEAN AS $$
DECLARE
... |
<gh_stars>1-10
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_NULLS ON
GO
CREATE VIEW [tSQLt].[Private_SysTypes] AS SELECT * FROM sys.types AS T;
GO
|
-- migrate:up
CREATE TABLE public.owners (
id bigint NOT NULL PRIMARY KEY GENERATED BY DEFAULT AS IDENTITY,
resolver public.repo_resolver NOT NULL,
slug public.citext NOT NULL,
name text,
description text,
extra jsonb DEFAULT '{}'::jsonb NOT NULL,
shards_count integer,
dependents_count i... |
<filename>src/ResourceFirstTranslations.Database/Tables/Languages.sql
CREATE TABLE [dbo].[Languages] (
[Culture] NVARCHAR (10) NOT NULL,
[Description] NVARCHAR (255) NOT NULL,
CONSTRAINT [PK_Languages] PRIMARY KEY CLUSTERED ([Culture] ASC)
);
|
<reponame>ministryofjustice/prison-api
create or replace package api_owner.api_case_notes
as
function show_version return varchar2;
procedure get_case_notes_since(p_from_timestamp in timestamp,
p_case_note_type in offender_case_notes.case_note_type%type default null,
... |
<filename>mbdata/sql/CreateTriggers.sql
\set ON_ERROR_STOP 1
BEGIN;
CREATE TRIGGER b_upd_area BEFORE UPDATE ON area
FOR EACH ROW EXECUTE PROCEDURE b_upd_last_updated_table();
CREATE TRIGGER b_upd_area_alias BEFORE UPDATE ON area_alias
FOR EACH ROW EXECUTE PROCEDURE b_upd_last_updated_table();
CREATE TRIGGER ... |
<reponame>jkvetina/BUG
prompt --application/pages/page_groups
begin
-- Manifest
-- PAGE GROUPS: 700
-- Manifest End
wwv_flow_api.component_begin (
p_version_yyyy_mm_dd=>'2020.10.01'
,p_release=>'20.2.0.00.20'
,p_default_workspace_id=>9526531750928358
,p_default_application_id=>700
,p_default_id_offset=>2832318... |
<filename>extra/src/test/java/tk/mybatis/mapper/additional/select/CreateDB.sql
drop table book if exists;
create table book (
id integer NOT NULL PRIMARY KEY,
name varchar(32),
price integer,
published date
);
INSERT INTO book VALUES (1, 'JavaStarter1', '50', '2015-11-11');
INSERT INTO book VALUES (2, 'Java... |
<gh_stars>0
# --- Sample dataset
# --- !Ups
insert into style (id,name) values (1, 'Bungalow');
insert into style (id,name) values (2, 'Cottage');
insert into style (id,name) values (3, 'Semi-detached House');
insert into style (id,name) values (4, 'Detached House');
insert into style (id,name) values (5, 'Studio Ap... |
/* name: GetPosts :many */
SELECT
*
FROM
posts
WHERE
deleted_at IS NULL AND
posts.user_level <= ?
ORDER BY
posts.id DESC
LIMIT 50;
/* name: GetImagePosts :many */
SELECT
*
FROM
posts
WHERE
content_type = "image"
ORDER BY
posts.id DESC ;
/* name: Search :many */
SELECT
p.*
FROM
posts p
LEFT JOIN
po... |
/****** Object: Table [dbo].[FailedNodes] Script Date: 1/16/2015 1:40:37 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[FailedNodes](
[PartitionKey] [nvarchar](50) NOT NULL,
[RowKey] [nvarchar](50) NOT NULL,
[Timestamp] [datetime2](7) NOT NULL,
[CreatedOn] [datetime2](7) NOT N... |
select 1;
CREATE USER knowint WITH PASSWORD '<PASSWORD>';
DROP DATABASE if exists gokbg3dev;
CREATE DATABASE gokbg3dev;
GRANT ALL PRIVILEGES ON DATABASE gokbg3dev to knowint;
|
CREATE OR REPLACE VIEW XXHR_BUSINESS_GROUPS_VL AS
SELECT
O.ORGANIZATION_ID ,
OTL.NAME ,
O.DATE_FROM ,
O.DATE_TO
FROM
HR_ALL_ORGANIZATION_UNITS O ,
HR_ALL_ORGANIZATION_UNITS_TL OTL ,
HR_ORGANIZATION_INFORMATION O2 ,
HR_ORGANIZATION_INFORMATION O3 ,
HR_ORGANIZATION_INFORMATION O4
WHERE
O.... |
<filename>resources/3dcitydb/postgresql/SCHEMA/SCHEMA.sql
-- 3D City Database - The Open Source CityGML Database
-- http://www.3dcitydb.org/
--
-- Copyright 2013 - 2016
-- Chair of Geoinformatics
-- Technical University of Munich, Germany
-- https://www.gis.bgu.tum.de/
--
-- The 3D City Database is jointly developed ... |
-- Insert all data from table a into temp_table, plus a column
-- noting which ids from table b are downstream of records in table a
-- Features with equivalent blkey and measure (within 1m) are included
-- (ie, a point at the downstream end of a line)
INSERT INTO {schema_a}.{temp_table}
WITH src AS
(
SELECT *
FRO... |
/*
IF EXISTS (SELECT name FROM sysobjects WHERE (name = 'MemberCase_AssignToUser' AND type = 'P'))
DROP PROCEDURE dbo.MemberCase_AssignToUser
GO
*/
CREATE PROCEDURE dbo.MemberCase_AssignToUser
/* STORED PROCEDURE - INPUTS (BEGIN) */
@memberCaseId BIGINT,
@assignedToSecurityAutho... |
-- MySQL dump 10.16 Distrib 10.1.35-MariaDB, for Linux (x86_64)
--
-- Host: localhost Database: barracas
-- ------------------------------------------------------
-- Server version 10.1.35-MariaDB
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_... |
<reponame>ziggysauce/bib_social
CREATE TABLE IF NOT EXISTS migrations (
id INTEGER NOT NULL PRIMARY KEY,
created TIMESTAMPTZ DEFAULT NOW()
); |
delete from ArticuloEntity;
delete from EventoEntity;
delete from MASCOTAENADOPCIONENTITY_USUARIOENTITY;
delete from ClasificadoEntity;
delete from CalificacionEntity;
delete from MascotaExtraviadaEntity;
delete from RecompensaEntity;
delete from MascotaEnAdopcionEntity;
delete from MascotaEntity;
delete fro... |
USE SnakesAndLadder;
drop procedure if exists GenerateColorForPlayer;
DELIMITER //
CREATE PROCEDURE GenerateColorForPlayer
(pUsername varchar (50), pGameID int, pObstacleName varchar (10), pTokenID int, pColorNumberRange int)
BEGIN
DECLARE lcColorGenerator int;
DECLARE lcColor varchar (10);
if lcColorGenerator... |
{% macro get_base_times(level='hour', base='1970-01-01') %}
{{ adapter.dispatch('get_base_times', 'dbt_resto') (level, base) }}
{% endmacro %}
{% macro default__get_base_times(level, base) %}
{%- if level == 'second' %}
{# 1 day = 86400 seconds #}
with E1(N) as
(
select 1 union all select 1 un... |
<reponame>PaulLandaeta/BaseDatos2020
CREATE DATABASE IF NOT EXISTS `cuarentena` /*!40100 DEFAULT CHARACTER SET latin1 */;
USE `cuarentena`;
-- MySQL dump 10.13 Distrib 8.0.19, for macos10.15 (x86_64)
--
-- Host: localhost Database: cuarentena
-- ------------------------------------------------------
-- Server vers... |
<reponame>captainabap/Einstieg-in-SQLScript<filename>Listings/Kapitel 2/Listing 2.41.sql
-- Listing 2.41.sql
-- Ausführung des Tests
SELECT
erwarteter_Preis,
udf_versandpreis(laenge,
breite,
hoehe,
gewicht,
als_paeckchen,
... |
<reponame>HaqiAchmad/tugas-basis-data
/*
@author <NAME> / 01 / XII RPL-1
*/
---- Tugas rumah Soal no 1c
SELECT i.nip, i.nama, i.jurusan, i.asal_kota
FROM instruktur i
LEFT OUTER JOIN ambil_mk ak
ON i.nip = ak.nip
WHERE ak.nip IS NULL;
----> Copyright © 2020. <NAME>. |
<filename>src/Microsoft.Health.Fhir.SqlServer/Features/Schema/Sql/Sprocs/GetResourcesByTypeAndSurrogateIdRange.sql
--DROP PROCEDURE dbo.GetResourcesByTypeAndSurrogateIdRange
GO
CREATE PROCEDURE dbo.GetResourcesByTypeAndSurrogateIdRange @ResourceTypeId smallint, @StartId bigint, @EndId bigint, @GlobalStartId bigint = N... |
<filename>src/SFA.Apprenticeships.Data.AvmsPlus/dbo/Tables/MasterUPIN.sql
CREATE TABLE [dbo].[MasterUPIN] (
[MasterUPINId] INT IDENTITY (-1, -1) NOT FOR REPLICATION NOT NULL,
[UKPRN] INT NOT NULL,
[UPIN] INT NOT NULL,
CONSTRAINT [PK_MasterUPIN] PRIMARY KEY CLUSTERED ([MasterUPINId] ASC),... |
<gh_stars>1-10
-- Copyright Materialize, Inc. All rights reserved.
--
-- Use of this software is governed by the Business Source License
-- included in the LICENSE file at the root of this repository.
--
-- As of the Change Date specified in that file, in accordance with
-- the Business Source License, use of this soft... |
<reponame>rayxuln/JianDan_ChargeWebService_BackEnd
-- MySQL dump 10.13 Distrib 5.7.31, for Linux (x86_64)
--
-- Host: localhost Database: wuye
-- ------------------------------------------------------
-- Server version 5.7.31-0ubuntu0.16.04.1
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!401... |
CREATE TABLE subdivision_CL (id VARCHAR(6) NOT NULL, name VARCHAR(255), level VARCHAR(64) NOT NULL, PRIMARY KEY(id));
INSERT INTO "subdivision_CL" ("id", "name", "level") VALUES (E'CL-AT', E'Atacama', E'region');
INSERT INTO "subdivision_CL" ("id", "name", "level") VALUES (E'CL-BI', E'Biobío', E'region');
INSERT INTO ... |
CREATE DATABASE test;
USE test;
-- a single table is used for all events in the cqrs system
CREATE TABLE events
(
aggregate_type VARCHAR(256) NOT NULL,
aggregate_id VARCHAR(256) NOT NULL,
sequence bigint CHECK (sequence >= 0),
payload TEXT ... |
<filename>public_html/administrator/components/com_admin/sql/updates/mysql/3.9.0-2018-05-24.sql
INSERT INTO `#__extensions` (`extension_id`, `package_id`, `name`, `type`, `element`, `folder`, `client_id`, `enabled`, `access`, `protected`, `manifest_cache`, `params`, `custom_data`, `system_data`, `checked_out`, `checked... |
with base as (
select *
from {{ ref('stg_apple_store__downloads_device_tmp') }}
),
fields as (
select
{{
fivetran_utils.fill_staging_columns(
source_columns=adapter.get_columns_in_relation(ref('stg_apple_store__downloads_device_tmp')),
staging_columns=... |
alter table TESTERY_TESTSTEP_INPUT add column NAME varchar(255) ^
update TESTERY_TESTSTEP_INPUT set NAME = '' where NAME is null ;
alter table TESTERY_TESTSTEP_INPUT alter column NAME set not null ;
|
-- mysql data
insert into Players values (1,'Hazard','Eden','Chelsea','Center Midfield');
|
<reponame>nikosnikolaidis/sis
--
-- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements.
-- http://www.apache.org/licenses/LICENSE-2.0
--
--
-- This script creates some tables needed for SIS pre-defined Citation constants.
-- We do not need to create all tables or all tabl... |
<reponame>ATLANTBH/owl<gh_stars>10-100
-- Add missing constraints
-- Clear test runs which do not have test suites
DELETE FROM test_runs
WHERE test_suites_id IS NULL OR NOT EXISTS(SELECT * FROM test_suites WHERE id = test_suites_id);
-- Drop previous constraints
ALTER TABLE test_runs
DROP CONSTRAINT IF EXISTS tes... |
<reponame>LanceByun/DQUEEN_OMOP_CDM_Version
--
insert into @resultSchema.dq_check_result
select
'C204' as check_id
,s1.tb_id as stratum1
,d1.*
from
(select
d1.tbnm as stratum2
,d1.colnm as stratum3
,null as stratum4
,'Inpatinets should be have datetime' as stratum5
,count(*) as count_val
,null as num_val
,null as tx... |
--------------------------------------------------------------------------
-- avro import / export combo test
--------------------------------------------------------------------------
.run ../common/sqlserver_setup.sql
CREATE TABLE MyTable(a INTEGER, b BIT, c REAL, d FLOAT, e varbinary (100));
.desc MyTable
.export ... |
<filename>_includes/tutorials/count-messages/ksql/code/tutorial-steps/dev/04c-pull-query-table.sql
SELECT * FROM MSG_COUNT WHERE X='X'; |
/* central table holdings */
CREATE TABLE IF NOT EXISTS tables (
table_id INTEGER PRIMARY KEY AUTOINCREMENT,
table_name TEXT NOT NULL UNIQUE,
returned INTEGER DEFAULT 0
);
/* work assignments */
CREATE TABLE IF NOT EXISTS assignments (
table_id INTEGER NOT NULL,
client TEXT NOT NULL,
requestTime INTEGER,
... |
<filename>parse/src/test/resources/ddl/alter/test_20.sql
CREATE TABLE `tb_zjdvakwwwv` (
`col_bytftanpdh` mediumint(56) unsigned DEFAULT '1',
`col_zwyhucxxkr` year(4) NOT NULL,
`col_desbhtchpe` text(3076914288) CHARACTER SET latin1,
`col_figelwsuqt` set('enum_or_set_0','enum_or_set_1','enum_or_set_2') CHARACTER ... |
<gh_stars>1000+
-- valid time zones
SET TIME ZONE 'Asia/Hong_Kong';
SET TIME ZONE 'GMT+1';
SET TIME ZONE INTERVAL 10 HOURS;
SET TIME ZONE INTERVAL '15:40:32' HOUR TO SECOND;
SET TIME ZONE LOCAL;
-- invalid time zone
SET TIME ZONE;
SET TIME ZONE 'invalid/zone';
SET TIME ZONE INTERVAL 3 DAYS;
SET TIME ZONE INTERVAL 24 H... |
<gh_stars>1-10
SELECT i.repository, i.number, i.title
FROM issue i
WHERE
i.id IN (
-- get all nag issues written by others on the same team(s)
SELECT i.id
FROM issue i, issuecomment ic
WHERE
(ic.body LIKE 'f?%' || '@nrc%' OR
ic.body LIKE 'f?%' || '@rust-lang/lang%') AND
ic.fk_issue = i.id AND
i.fk_user ... |
<filename>updates/mimeo--0.12.0--0.12.1.sql
-- Moved the attempt at taking an advisory lock to the earliest point possible in the refresh jobs to avoid edge case of overlapping jobs causing errors instead of exiting gracefully.
-- Simplified exception blocks and made some error messages clearer in refresh functions.
--... |
create table pg.a as select * from csv.a;
create table pg.b as select * from csv.b;
|
/*L
Copyright Ekagra Software Technologies Ltd.
Copyright SAIC, SAIC-Frederick
Distributed under the OSI-approved BSD 3-Clause License.
See http://ncip.github.com/common-security-module/LICENSE.txt for details.
L*/
CREATE TABLE IF NOT EXISTS CSM_MAPPING (
MAPPING_ID bigint(20) NOT NULL auto_i... |
<filename>data/database.sql
-- MySQL Script generated by MySQL Workbench
-- Fri Jul 31 09:54:42 2015
-- 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=0;
SET @OLD_SQL_M... |
<reponame>Zhaojia2019/cubrid-testcases
autocommit off;
create class parent ( attr int);
create class child as subclass of parent
( attr double ) inherit attr of parent as aliased_attr;
rollback;
|
-- DROP TABLE IF EXISTS problems_status ;
SELECT 'create the "problems_status" table'
;
CREATE TABLE problems_status (
guid UUID NOT NULL DEFAULT gen_random_uuid()
, id bigint UNIQUE NOT NULL DEFAULT cast (to_char(current_timestamp, 'YYMMDDHH12MISS') as bigint)
, name ... |
<reponame>evardsson/s3c3<gh_stars>0
CREATE TABLE contexts (
id BIGSERIAL,
client VARCHAR(20) NOT NULL,
token VARCHAR(128),
created TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
expires TIMESTAMP,
completed TIMESTAMP,
usage_status SMALLINT DEFAULT 0,
PRIMARY KEY (id)
);
CREATE INDEX ON co... |
select d.id_dados,
d.ds_dados,
d.qt_dados,
d.id_situacao,
d.dt_manutencao,
s.ds_situacao
from elk.tb_dados d
left join elk.tb_situacao s on d.id_situacao = s.id_situacao
|
<reponame>Dri-Ferreira/ProjectPrisma
-- CreateTable
CREATE TABLE "product" (
"id" TEXT NOT NULL,
"name" TEXT NOT NULL,
"bar_code" DECIMAL(65,30) NOT NULL,
"create_at" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
CONSTRAINT "product_pkey" PRIMARY KEY ("id")
);
-- CreateTable
CREATE TABLE "categ... |
<filename>laravel8_basic.sql
-- phpMyAdmin SQL Dump
-- version 4.8.5
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: May 16, 2022 at 02:06 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 = ... |
<gh_stars>0
-- abbreviation used:
-- r - Request
-- s - Show (cinema session)
-- p - Place (seat)
-- f - Film
-- c - ticket Cost
-- h - cinema Hall
CREATE TABLE requests
(
r_id VARCHAR(8) NOT NULL,
r_name VARCHAR(32),
r_surname VARCHAR(32),
r_middlename VARCHAR(32),
rs_id VARCHAR(8) NOT NULL,
r... |
delete from SerieEntity;
insert into SerieEntity (id, name, description, category, rating, releaseYear ) values (100, 'The Umbrella Academy', 'Un conjunto de hermanos con superpoderes deben salvar al mundo del apocalipsis.', 'Aventura', 8.3, 2019);
insert into SerieEntity (id, name, description, category, rating, rele... |
<reponame>ShivaniH/News-site<gh_stars>0
-- phpMyAdmin SQL Dump
-- version 4.7.0
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Oct 30, 2017 at 05:45 PM
-- Server version: 10.1.25-MariaDB
-- PHP Version: 7.1.7
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET t... |
SET foreign_key_checks = 0;
#
# TABLE STRUCTURE FOR: notifications
#
DROP TABLE IF EXISTS `notifications`;
CREATE TABLE `notifications` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`image` text NOT NULL,
`type` varchar(100) NOT NULL,
`type_id` int(11) NOT NULL,
`status` tinyint(1) NOT NULL DEFAULT '1',
`sort_o... |
<reponame>mbustamanteAseinfo/configManager
/* Script Generado por Evolution - Editor de Formulación de Planillas. 16-01-2017 12:34 PM */
begin transaction
delete from [sal].[fcu_formulacion_cursores] where [fcu_codpai] = 'pa' and [fcu_nombre] = 'ISR_Salario';
insert into [sal].[fcu_formulacion_cursores] ([fcu_codpa... |
<reponame>sumankhadka/mycrm
-- Adminer 4.2.2 MySQL dump
SET NAMES utf8;
SET time_zone = '+00:00';
SET foreign_key_checks = 0;
SET sql_mode = 'NO_AUTO_VALUE_ON_ZERO';
DROP TABLE IF EXISTS `installer`;
CREATE TABLE `installer` (
`id` int(1) NOT NULL,
`installer_flag` int(1) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=I... |
-- MySQL dump 10.13 Distrib 5.6.19, for debian-linux-gnu (x86_64)
--
-- Host: localhost Database: reporting
-- ------------------------------------------------------
-- Server version 5.6.19-0ubuntu0.14.04.1
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@... |
<reponame>xhafan/databasecreator<filename>src/DatabaseScriptsExample/ChangeScripts/1.0.0.1.sql
-- first change script - creates Version table
create table "Version"
(
"Major" int
, "Minor" int
, "Revision" int
, "ScriptNumber" int
);
INSERT INTO "Version" ("Major", "Minor", "Revision", "ScriptNumber") ... |
<gh_stars>1-10
-- phpMyAdmin SQL Dump
-- version 4.2.7.1
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: May 22, 2015 at 08:48 AM
-- Server version: 5.6.20
-- PHP Version: 5.5.15
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTE... |
CREATE PROCEDURE [dbo].[LoadTargetCloneTables]
(@Run_Id bigint)
AS
-- ====================================================================================
-- Author: <NAME>
-- Create Date: 10/07/2019
-- Description: Load Target Tables from Staging Post Validation Checks
-- =======================================... |
USE [Koski_SA]
GO
/****** Object: Table [sa].[temp_tutkinnot_ja_tutkinnonosat_paatason_suoritukset] Script Date: 5.2.2020 15:16:23 ******/
DROP TABLE [sa].[temp_tutkinnot_ja_tutkinnonosat_paatason_suoritukset]
GO
/****** Object: Table [sa].[temp_tutkinnot_ja_tutkinnonosat_paatason_suoritukset] Script Date: 5.... |
<filename>src/test/resources/sql/select/1812e350.sql
-- file:join.sql ln:135 expect:true
SELECT '' AS "xxx", *
FROM J1_TBL t1 (a, b, c) NATURAL JOIN J2_TBL t2 (d, a)
|
<gh_stars>100-1000
CREATE TABLE [dbo].[sqlwatch_meta_repository_import_queue]
(
[sql_instance] varchar(32) not null,
[object_name] nvarchar(512) not null,
[time_queued] datetime2(7) not null,
[import_batch_id] uniqueidentifier not null,
[parent_object_name] nvarchar(512) null,
[priority] tinyint not null,
[load... |
<reponame>Arvato-Systems/t9t<filename>t9t-io-jpa/src/main/sql/POSTGRES/Migration/V5.0.20201201_1244__TBE374.sql
-- TBE-374 - new columns in p42_cfg_data_sinks POSTGRES
DROP VIEW IF EXISTS p42_cfg_data_sinks_nt;
DROP VIEW IF EXISTS p42_cfg_data_sinks_v;
ALTER TABLE p42_cfg_data_sinks ADD COLUMN lines_to_skip integer;
AL... |
<gh_stars>1-10
select round ( power( ( 1 + sqrt( 5 ) ) / 2, level ) / sqrt( 5 ) ) fib
from dual
connect by level <= 10;
|
--
-- PostgreSQL database cluster dump
--
SET default_transaction_read_only = off;
SET client_encoding = 'UTF8';
SET standard_conforming_strings = on;
--
-- Drop databases (except postgres and template1)
--
DROP DATABASE sigdiv_development;
DROP DATABASE sigdiv_production;
DROP DATABASE sigdiv_test;
... |
<filename>.sh/db/postgresql/sql/create_functions.sql
CREATE OR REPLACE FUNCTION public.to_ascii(bytea, name) RETURNS text
AS 'to_ascii_encname' LANGUAGE internal STRICT;
CREATE OR REPLACE FUNCTION public.ci_ai(text_value text) RETURNS text
AS $$
SELECT lower(public.to_ascii(convert_to(text_value, 'latin1'), 'latin... |
<gh_stars>0
/*
Navicat MySQL Data Transfer
Source Server : stuinfor
Source Server Version : 50553
Source Host : localhost:3306
Source Database : shop_hm01
Target Server Type : MYSQL
Target Server Version : 50553
File Encoding : 65001
Date: 2017-12-12 16:36:39
*/
SET... |
-- Reverting constraints til proper examination of issues introduced by it
SELECT fn_db_drop_constraint('async_tasks', 'fk_async_tasks_command_entities_command_id');
SELECT fn_db_drop_constraint('async_tasks', 'fk_async_tasks_command_entities_root_command_id');
|
<filename>MCResources/Assets/db/update_14_to_15.sql
CREATE INDEX ix_activity_reference ON activity (reference);
|
<reponame>blackjokie/arkademy-test<gh_stars>0
-- Adminer 4.7.8 MySQL dump
SET NAMES utf8;
SET time_zone = '+00:00';
SET foreign_key_checks = 0;
SET sql_mode = 'NO_AUTO_VALUE_ON_ZERO';
DROP TABLE IF EXISTS `produk`;
CREATE TABLE `produk` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`nama_produk` varchar(100) DEFAULT NU... |
<filename>exportlibrary.traverser/scripts/other_queries/querying_.sql
--
-- Copyright (C) 2013 <NAME> <j.atienza at har.mrc.ac.uk>
--
-- MEDICAL RESEARCH COUNCIL UK MRC
--
-- Harwell Mammalian Genetics Unit
--
-- http://www.har.mrc.ac.uk
--
-- Licensed under the Apache License, Version 2.0 (the "License"); you may not
... |
create or alter proc dbo.uspSaveSpecialEvents @TVP dbo.SpecialEventType READONLY as
begin
set nocount on
MERGE dbo.SpecialEvent AS t
USING @TVP s
ON (t.Id = s.Id and t.SpecialId = s.SpecialId)
WHEN MATCHED THEN
UPDATE
SET PeriodNumber = s.PeriodNumber,
Home ... |
CREATE TABLE flights_2008_7M (
flight_year SMALLINT,
flight_month SMALLINT,
flight_dayofmonth SMALLINT,
flight_dayofweek SMALLINT,
deptime SMALLINT,
crsdeptime SMALLINT,
arrtime SMALLINT,
crsarrtime SMALLINT,
uniquecarrier TEXT ENCODING DICT(32),
flightnum SMALLINT,
tailnum TEXT ENCODING DICT(32),... |
ALTER TABLE system_intake ADD COLUMN project_acronym text;
ALTER TABLE system_intake ADD COLUMN grt_date timestamp with time zone;
ALTER TABLE system_intake ADD COLUMN grb_date timestamp with time zone;
|
INSERT INTO bank_info (bank_name, bank_short_name, card_type, create_time, create_user, modify_time, modify_user)
VALUES ('中国工商银行', 'ICBC', 'DebitCard', now(), 'system', NULL, NULL),
('中国建设银行', 'CBC', 'DebitCard', now(), 'system', NULL, NULL),
('中国银行', 'BC', 'DebitCard', now(), 'system', NULL, NULL),
... |
CREATE TABLE `identity_verifiable_addresses` (
`id` char(36) NOT NULL,
PRIMARY KEY(`id`),
`code` VARCHAR (32) NOT NULL,
`status` VARCHAR (16) NOT NULL,
`via` VARCHAR (16) NOT NULL,
`verified` bool NOT NULL,
`value` VARCHAR (400) NOT NULL,
`verified_at` DATETIME,
`expires_at` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,... |
.bail on
.echo on
BEGIN TRANSACTION;
-- update schema version --
DELETE FROM meta WHERE key='schema_version' AND value='4';
INSERT OR ROLLBACK INTO meta (key, value) VALUES ('schema_version', '5');
-- database changes --
CREATE TABLE api_access (
api_user TEXT NOT NULL
REFERENCES users ( user_name ) ... |
<reponame>andrebian/curso-zf-avancado-son
-- MySQL dump 10.13 Distrib 8.0.11, for macos10.13 (x86_64)
--
-- Host: 127.0.0.1 Database: iniciando_zf
-- ------------------------------------------------------
-- Server version 8.0.11
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_C... |
ALTER TABLE `ecommerce_shipment_positions` DROP `tax_type`;
ALTER TABLE `ecommerce_shipment_positions` CHANGE `tax_rate` `amount_rate` INT(5) UNSIGNED NOT NULL;
ALTER TABLE `ecommerce_shipment_positions` MODIFY COLUMN `amount_rate` INT(5) UNSIGNED NOT NULL AFTER `amount_type`;
|
<reponame>CUBRID/cubrid-testcase
--+ holdcas on;
--[er]Revoke user privilege of select on superclass and subclass with keyword of except(select from DCL1,DCL3)
CALL login('dba','') ON CLASS db_user;
CREATE CLASS DCL1 (id INTEGER);
CREATE CLASS DCL2 UNDER DCL1 (id INTEGER);
CREATE CLASS DCL3 UNDER DCL1 (id INTEGER);
C... |
<filename>migrations/82-remove-toolbar-category.sql
-- bug 592168
INSERT INTO users_tags_addons (user_id, tag_id, addon_id, created)
SELECT '9945', '119', addon_id, NOW() FROM addons_categories WHERE category_id=92;
DELETE FROM addons_categories WHERE category_id=92;
DELETE FROM categories WHERE id=92;
|
<reponame>iotconnect-apps/AppConnect-SmartElevator
/*******************************************************************
DECLARE @count INT
,@output INT = 0
,@fieldName nvarchar(255)
EXEC [dbo].[Alert_List]
@deviceGuid = 'FA973382-0321-4701-A03E-CDDEAEC9F68B'
,@pagesize = 30
,@pageNumber = 1
,@order... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.