sql stringlengths 6 1.05M |
|---|
/******************************************************************************/
/* Generated by IBExpert 2008.02.19 19/03/2016 07:52:51 */
/******************************************************************************/
SET SQL DIALECT 3;
SET NAMES NONE;
CREATE DATABASE 'D:\Projetos\Delphi\phM... |
/*
Navicat MySQL Data Transfer
Source Server : 本地
Source Server Version : 50553
Source Host : localhost:3306
Source Database : test
Target Server Type : MYSQL
Target Server Version : 50553
File Encoding : 65001
Date: 2017-04-07 09:40:20
*/
SET FOREIGN_KEY_CHECKS=0;
-- -----------... |
drop table if exists test1;
drop table if exists test_tuple;
drop table if exists test_two_args;
create table test1(p DateTime, k int) engine MergeTree partition by toDate(p) order by k settings index_granularity = 1;
insert into test1 values ('2020-09-01 00:01:02', 1), ('2020-09-01 20:01:03', 2), ('2020-09-02 00:01:0... |
CREATE INDEX "I_SP_DER_FROM_CAT_ITEM" ON "SPECIMEN_PART" ("DERIVED_FROM_CAT_ITEM")
|
CREATE TABLE [Membership].[AnonymousUser] (
[AnonymousUserID] UNIQUEIDENTIFIER NOT NULL,
[LastActivityDate] DATETIME NOT NULL,
CONSTRAINT [PK_AnonymousUser_AnonymousUserID] PRIMARY KEY CLUSTERED ([AnonymousUserID] ASC)
);
|
<filename>dms/mc/mc.test_harness.sql<gh_stars>1-10
--
-- Name: test_harness(text); Type: FUNCTION; Schema: mc; Owner: d3l243
--
CREATE OR REPLACE FUNCTION mc.test_harness(_managernamelist text) RETURNS TABLE(manager_name text)
LANGUAGE plpgsql
AS $$
DECLARE
_message TEXT;
_sqlstate text;
... |
INSERT INTO permit_amendment_status_code (permit_amendment_status_code, description, display_order , active_ind , create_user , create_timestamp , update_user , update_timestamp )
VALUES ('DFT', 'Draft', 30, true, 'system-mds', now(), 'system-mds', now());
ALTER TABLE permit_status_code ADD COLUMN active_ind boolean D... |
CREATE FUNCTION pg_catalog.pg_ptrack_test(oid) RETURNS _int4 AS 'pg_ptrack_test' LANGUAGE internal STRICT VOLATILE;
|
-- Get the Longitude and Latitude of all occurrences for a species
SELECT ST_X(location) as longitude, ST_Y(location) as latitude FROM occurrences
WHERE species_id = 1 -- the species to look at
;
|
<gh_stars>1-10
/*L
Copyright SAIC
Distributed under the OSI-approved BSD 3-Clause License.
See http://ncip.github.com/cabio/LICENSE.txt for details.
L*/
drop index SYS_C0021170_IDX;
drop index PROTEIN_SION_PROTEIN_ID;
drop index PROTEIN_SION_SECONDARY_;
drop index PROTEIN_SION_ID;
drop index PROTE... |
<filename>openGaussBase/testcase/KEYWORDS/parameter_specific_name/Opengauss_Function_Keyword_Parameter_specific_name_Case0019.sql
-- @testpoint:opengauss关键字parameter_specific_name(非保留),作为外部数据源名
--关键字不带引号-成功
drop data source if exists parameter_specific_name;
create data source parameter_specific_name;
drop data sourc... |
-- @testpoint: 词条位置的词汇中包含常量
SELECT $$the lexeme 'Joe''s' contains a quote$$::tsvector; |
<reponame>opengauss-mirror/Yat
-- @testpoint:opengauss关键字Buckets(保留),作为角色名
--关键字不带引号-合理报错
drop role if exists Buckets;
create role Buckets with password '<PASSWORD>' valid until '2020-12-31';
--关键字带双引号-成功
drop role if exists "Buckets";
create role "Buckets" with password '<PASSWORD>' valid until '2020-12-31';
--清理环... |
SELECT code, year
FROM economies
union all
SELECT country_code, year
FROM populations
ORDER BY code, year; |
<gh_stars>0
/*
<NAME> 2, Zadatak 6
Prikazati broj proizvoda po kategoriji. Listu sortirati opadajucim redosljedom po
broju proizvoda. Prikazati samo 10 kategorija. Takodjer, provjeriti da li ima
kategorija koji imaju isti broj proizvoda kao ona na 10 mjestu.
(AdventureWorksLT)
*/
USE AdventureWorksLT2014
SELECT... |
<gh_stars>0
if exists(select * from sysobjects where name='pr_Reports_PresumptiveTBRegister' and type='p')
drop proc pr_Reports_PresumptiveTBRegister
go
create proc pr_Reports_PresumptiveTBRegister @fromdate datetime, @todate datetime
as
begin
if exists(select * from sysobjects where name='tempPresumptiveTB' and typ... |
DROP PROCEDURE IF EXISTS getTreeNodes;
DELIMITER $$
# CALL getTreeNodes('Reports');
CREATE DEFINER=`root`@`localhost` PROCEDURE `getTreeNodes`(IN _treeDesc VARCHAR(50))
BEGIN
DROP TEMPORARY TABLE IF EXISTS _parentNodes;
CREATE TEMPORARY TABLE IF NOT EXISTS _parentNodes AS
(SELECT CONCAT(LOWER(_treeDesc), '_P',... |
CREATE TABLE [dbo].[Alunos]
(
[Id] INT NOT NULL PRIMARY KEY IDENTITY(1,1),
[Nome] VARCHAR(100) NOT NULL,
[Turma] INT NOT NULL,
[Nota1] INT NULL,
[Nota2] INT NULL,
[Nota3] INT NULL,
[Nota4] INT NULL
)
|
select 'alter tablespace '|| a.tablespace_name || ' end backup;'
from dba_Data_files a, v$backup b
where a.file_id=b.file#
and b.status = 'ACTIVE';
/ |
CREATE OR ALTER PROCEDURE [spStudentCourse] (
@StudentId UNIQUEIDENTIFIER
)
AS
SELECT
[Student].[Name] AS [Student],
[Course].[Title] AS [Course],
[StudentCourse].[Progress],
[StudentCourse].[LastUpdateDate]
FROM
[StudentCourse]
INNER JOIN
[Student]
ON
[StudentCourse].[StudentId] = [St... |
<reponame>junior3635/proyecto-sai<gh_stars>0
--
-- PostgreSQL database dump
--
-- Dumped from database version 9.6.7
-- Dumped by pg_dump version 9.6.7
SET statement_timeout = 0;
SET lock_timeout = 0;
SET idle_in_transaction_session_timeout = 0;
SET client_encoding = 'UTF8';
SET standard_conforming_strings = on;
SET ... |
DROP TABLE IF EXISTS users CASCADE;
DROP TABLE IF EXISTS stores CASCADE;
DROP TABLE IF EXISTS signup_users;
DROP TABLE IF EXISTS create_employees;
DROP Table IF EXISTS stores_employees CASCADE;
DROP TABLE IF EXISTS coupons CASCADE;
DROP TABLE IF EXISTS archive_coupons;
DROP TABLE IF EXISTS redeemed_coupons CASCA... |
-- URL: https://www.hackerrank.com/challenges/average-population/problem
select floor(avg(population))
from city;
|
CREATE FUNCTION dbo.REGEXP_LIKE
(
@input nvarchar(4000),
@pattern nvarchar(4000),
@caseSensitive int
)
RETURNS bit
AS
BEGIN
DECLARE @hresult integer
DECLARE @oRegexp integer
DECLARE @objMatches integer
DECLARE @objMatch integer
DECLARE @count integer
DECLARE @results bit
EXEC @hresult = sp_OACreate 'VBScrip... |
-- phpMyAdmin SQL Dump
-- version 4.2.7.1
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: Oct 30, 2014 at 03:15 PM
-- 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=@@CHARACTER_SET_CLIENT */... |
DROP TABLE IF EXISTS hello_world_messages; |
<reponame>reshimahendra/lbw-go
-- DROP TABLE public.membership_status;
CREATE TABLE public.membership_status (
id int2 NOT NULL, -- membership id will refer to user id. using 1:1 relation
status_name varchar(30) NOT NULL,
description text NULL,
CONSTRAINT membership_status_name_un UNIQUE (status_name),
CONSTRAINT ... |
ALTER TABLE `resource`
MODIFY `dir_path` varchar(45);
|
<filename>src/main/resources/db/migration/nomis/ddl/V1_402__AGY_INT_LOC_PROFILES.sql
CREATE TABLE AGY_INT_LOC_PROFILES (
INTERNAL_LOCATION_ID NUMBER(10,0) NOT NULL,
INT_LOC_PROFILE_TYPE VARCHAR2(12 CHAR) NOT NULL,
INT_LOC_PROFILE_CODE VARCHAR2(12 CHAR) NOT NULL,
CREATE_DATETIME TIMESTAMP DEFAULT systimestamp NO... |
<reponame>andypohl/kent
# Add scientificName column to dbDb table
# This will have the format: Genus species
ALTER TABLE dbDb ADD COLUMN scientificName VARCHAR(255);
# Add entries for all organisms currently in table
UPDATE dbDb SET scientificName='Papio hamadryas' WHERE organism='Baboon';
UPDATE dbDb SET scientifi... |
<gh_stars>0
begin;
savepoint SP1;
create table T(A int);
insert into T values(0);
rollback transaction to savepoint SP1;
release SP1;
select * from T;
|
<filename>coeus-db/coeus-db-sql/src/main/resources/org/kuali/coeus/coeus-sql/current/5.0.1/constraints/KC_FK_PROTOCOL_VOTE_ABSTAINEES.sql
ALTER TABLE PROTOCOL_VOTE_ABSTAINEES
ADD CONSTRAINT PROT_VOTE_ABSTNEES_IACPRO_FK1
FOREIGN KEY (IACUC_PROTOCOL_ID_FK)
REFERENCES IACUC_PROTOCOL (PROTOCOL_ID)
/
ALTER TABLE PROTOCOL_V... |
DROP DATABASE IF EXISTS ets_DB;
CREATE DATABASE ets_DB;
USE ets_DB;
CREATE TABLE department(
id INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
name VARCHAR(50) NOT NULL,
);
CREATE TABLE role(
id INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
title VARCHAR(50) NOT NULL,
salary DECIMAL (10,2),
department_id INT NOT NU... |
<gh_stars>0
library NonEmergentAmbulanceTransport
using FHIR version '3.0.0'
include FHIRHelpers version '3.0.0' called FHIRHelpers
codesystem "ICD-10-CM": 'http://hl7.org/fhir/sid/icd-10-cm'
codesystem "ICD-9-CM": 'http://hl7.org/fhir/sid/icd-9'
codesystem "LOINC": 'http://loinc.org'
codesystem "HCPCS": 'https://hcpc... |
CREATE KEYSPACE IF NOT EXISTS raintank WITH replication = {'class': 'NetworkTopologyStrategy', 'us-central1': '2'} AND durable_writes = true;
CREATE TABLE IF NOT EXISTS raintank.metric (
key ascii,
ts int,
data blob,
PRIMARY KEY (key, ts)
) WITH CLUSTERING ORDER BY (ts DESC)
AND compaction = {'cla... |
<gh_stars>0
If Not Exists (Select * From sys.columns Where Name = N'PatientClassification' And Object_ID = Object_id(N'Ord_Visit'))
Begin
ALTER TABLE Ord_Visit
ADD PatientClassification int;
End
Go
If Not Exists (Select * From sys.columns Where Name = N'IsEnrolDifferenciatedCare' And Object_ID = Object_id(N'Ord... |
<reponame>drkennetz/CodingChallengeSite
-- insert me as a user
insert into public.accounts (full_name, email, opted_in) values('<NAME>', '<EMAIL>', true);
insert into public.users (account_id, admin_user, username, password, grade) values(1, true, 'drkennetz', 'password', '<PASSWORD>');
-- insert generic users for dat... |
ALTER TABLE gspanother.INDEX_TEST3
ADD CONSTRAINT PK_INDEX_TEST12 PRIMARY KEY
(
INDEX_TEST3_ID
);
|
SELECT tab0.v1 AS v1 , tab6.v7 AS v7 , tab4.v5 AS v5 , tab5.v6 AS v6 , tab3.v4 AS v4 , tab2.v3 AS v3 , tab7.v8 AS v8 , tab1.v2 AS v2
FROM (SELECT obj AS v1
FROM gr__offers$$1$$
WHERE sub = 'wsdbm:Retailer27355'
) tab0
JOIN (SELECT sub AS v1 , obj AS v2
FROM gr__includes$$2$$
) tab1
ON(tab0.v1=tab1.... |
<gh_stars>1-10
{{ config(tags=["requires_script"]) }}
select *
from {{ ref('data_snowplow_delete_from_manifest') }}
where model not in ({% for model in var("models_to_delete",[]) %} '{{ model }}' {% if not loop.last %}, {% endif %} {% endfor %})
|
SET CONSTRAINTS ALL IMMEDIATE
SET CONSTRAINTS foo, bar IMMEDIATE
SET CONSTRAINTS ALL DEFERRED
SET CONSTRAINTS foo, bar DEFERRED
SET TIME ZONE LOCAL
SET LOCAL TIME ZONE DEFAULT
SET SESSION TIME ZONE 'Europe/Rome'
SET datestyle TO postgres, dmy
SET search_path TO my_schema, public
|
-- View: synthese.v_tree_taxons_synthese
CREATE OR REPLACE VIEW synthese.v_tree_taxons_synthese AS
WITH taxon AS (
SELECT n.id_nom,
t_1.cd_ref,
t_1.lb_nom AS nom_latin,
CASE
WHEN n.nom_francais IS NULL THEN t_1.lb_nom
WHEN n.nom_... |
###############################################################
# Migration: V2.1.7.8__Insert_new_monitor_usage_keys.sql
#
# Adding in new Monitor History table and usage Activities to track
# history events
#
# Database changes:
#
# Table changes:
# + monitorevents
#
# Index changes:
#
# Column changes:... |
-- MySQL dump 10.13 Distrib 8.0.27, for macos11.6 (x86_64)
--
-- Host: 127.0.0.1 Database: project_db
-- ------------------------------------------------------
-- Server version 8.0.27
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS ... |
-- @testpoint: IN
--右侧括号中的是一个表达式列表。
--左侧表达式的结果与表达式列表的内容进行比较。
--如果列表中的内容符合左侧表达式的结果,则IN的结果为true。
--如果没有相符的结果,则IN的结果为false。
--一般常用的数值,日期,和字符表达式,与函数结合
SELECT 8000+500 IN (10000, 9000) AS RESULT;
SELECT 'hello'::TEXT || ' world'::TEXT IN ('hello world', 'hello','world') AS RESULT;
SELECT ADD_MONTHS('2020-10-13',1) IN ('20... |
/*
* This file is used to test the function of sort & sortagg with LLVM Optimization
*/
----
--- Create Table and Insert Data
----
drop schema if exists llvm_vecsort_engine2 cascade;
create schema llvm_vecsort_engine2;
set current_schema = llvm_vecsort_engine2;
set codegen_cost_threshold=0;
create table llvm_vecsort... |
--cat cargadados.sql | heroku pg:psql --app resthouse
DELETE FROM produto_tamanho;
DELETE FROM produto;
DELETE FROM associado_categorias;
DELETE FROM associado;
DELETE FROM associado_usuario_tags;
DELETE FROM categoria;
-- Categoria (OK)
INSERT INTO categoria (id, descricao, dtregistro, logo) VALUES (1, 'BEBIDAS', NU... |
CREATE TABLE IF NOT EXISTS CB (
COLLEGE_ID TEXT,
TERM_ID TEXT,
COURSE_ID TEXT,
CONTROL_NUMBER TEXT,
TITLE TEXT,
TOP_CODE TEXT,
CREDIT_STATUS TEXT,
TRANSFER_STATUS TEXT,
UNITS_MAXIMUM REAL,
UNITS_MINIMUM REAL,
BASIC_SKILLS_STATUS TEXT,
SAM_CODE TEXT,
COOP_ED_STATUS TEX... |
CREATE TABLE [procfwk].[BatchStageLink]
(
[BatchId] [UNIQUEIDENTIFIER] NOT NULL,
[StageId] [INT] NOT NULL,
CONSTRAINT [PK_BatchStageLink] PRIMARY KEY CLUSTERED
(
[BatchId] ASC,
[StageId] ASC
),
CONSTRAINT [FK_BatchStageLink_Batches] FOREIGN KEY([BatchId]) REFERENCES [procfwk].[Batches] ([BatchId]),
CONS... |
DROP TABLE IF EXISTS `category`;
CREATE TABLE `category` (
`id` mediumint unsigned not null auto_increment,
`name` varchar(250) not null,
`type` enum('A''s', 'B''s', 'C''s'),
`active` bool not null default 1,
`createdAt` datetime not null,
`changedAt` timestamp not null,
PRIMARY KEY (`id`),
... |
DROP TABLE WeatherData IF EXISTS;
CREATE TABLE WeatherData (
city VARCHAR(30),
description VARCHAR(30),
humidity VARCHAR(50),
pressure VARCHAR(50),
temperature VARCHAR(50),
creationtime VARCHAR(50),
speed VARCHAR(50),
degree VARCHAR(50)
);
|
/*
Code generated using gnorm.
postgrest api crud functions for table {{table.name}}
{{table.description}}
*/
GRANT ALL ON TABLE public.{{table.name}} TO web_user;
{%-for keyC in keys %}
GRANT USAGE, SELECT ON SEQUENCE public.{{table.name}}_{{keyC.name}}_seq TO web_user;
{%-endfor%}
DROP FUNCTION IF EXISTS api.{{... |
-- phpMyAdmin SQL Dump
-- version 4.0.4
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: Apr 24, 2018 at 02:23 PM
-- Server version: 5.5.32
-- PHP Version: 5.4.16
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
... |
CREATE TABLE [dbo].[l_priority_level]
(
[Id] INT NOT NULL PRIMARY KEY Identity,
[SortOrder] INT Not Null,
[Text] varchar(50) NOT NULL,
[Active] BIT NOT NULL
)
|
create database Bank
go
use Bank
go
create Table Organisation
(
OrgId INT IDENTITY(1,1) PRIMARY KEY NONCLUSTERED,
OrgGuid UNIQUEIDENTIFIER NOT NULL DEFAULT(NEWID()),
OrgName NVARCHAR(100) NOT NULL,
OrgStatus BIT NOT NULL
)
go
create Table Accounts
(
AccountId INT IDENTITY (1,1) PRIMARY KEY NONC... |
<filename>Merise/WorkgroupHorticool/Horticool.sql
USE Horticool;
CREATE TABLE depots(
depot_id INT,
PRIMARY KEY(depot_id)
);
CREATE TABLE geographical_areas(
geographical_name VARCHAR(64),
PRIMARY KEY(geographical_name)
);
CREATE TABLE cities(
city_zipcode VARCHAR(5),
city_name VARCHAR(64) NOT NULL,
... |
INSERT INTO RP_MOV_EGRESODET
(
DESCUENTOME,
DESCTO_UNIME,
IVA_UNIME,
PRECIOME,
PRECIO_VENTAME,
IVA_UNI,
DESCTO_UNI,
PRECIO,
EXIS_ANT,
COSTO_ANT,
DESCUENTO,
PORCENTAJE,
PRECIO_LISTA,
PRECIO_VENTA,
COSTO_UNITARIO,
COSTO_REPOSICION,
... |
DELETE FROM `sys_page_compose` WHERE `Page` = 'bx_sounds_view' AND `Func` = 'RelatedFiles';
INSERT INTO `sys_page_compose` (`Page`, `PageWidth`, `Desc`, `Caption`, `Column`, `Order`, `Func`, `Content`, `DesignBox`, `ColWidth`, `Visible`, `MinWidth`) VALUES
('bx_sounds_view', '1140px', '', '_bx_sounds_related', 0, 0, '... |
<gh_stars>0
/*
Navicat Premium Data Transfer
Source Server : MySQL
Source Server Type : MySQL
Source Server Version : 50726
Source Host : localhost:3306
Source Schema : coreapi
Target Server Type : MySQL
Target Server Version : 50726
File Encoding : 65001
Date: 14/04... |
<gh_stars>0
-- phpMyAdmin SQL Dump
-- version 5.1.0
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: May 11, 2021 at 01:38 AM
-- Server version: 10.4.18-MariaDB
-- PHP Version: 8.0.3
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACT... |
<filename>src/OpaEarning/Source/Interface/1718.01/Reference Data/InsertReferenceDataSQL_2.sql
truncate table [Reference].[EFA_PostcodeDisadvantage]
insert into
[Reference].[EFA_PostcodeDisadvantage]
select distinct
[EFA_PostcodeDisadvantage].[Postcode],
[EFA_PostcodeDisadvantage].[Uplift]
from
[Valid].[Learn... |
<reponame>StevenAdly32/attendingbasedarduino
-- phpMyAdmin SQL Dump
-- version 4.8.5
-- https://www.phpmyadmin.net/
--
-- Host: 1172.16.31.10
-- Waktu pembuatan: 23 Agu 2021 pada 09.10
-- Versi server: 10.1.38-MariaDB
-- Versi PHP: 5.6.40
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
S... |
/**
* Inserts data for bids
*/
/*price integer NOT NULL,
accepted_bid boolean DEFAULT false,
bidder VARCHAR(355),
caretaker VARCHAR(355),
pet_name VARCHAR(32),
start_date DATE,
end_date DATE,
FOREIGN KEY (caretaker, start_date, end_date) REFERENCES availability(caretaker, start_date, end_date) ON UPDATE CASCADE ... |
<gh_stars>1-10
-- Create database scoped credential to connect to MySQL server
-- Provide appropriate credentials to MySQL server in below statement.
-- If you are using SQL Server Management Studio then you can replace the parameters using
-- the Query menu, and "Specify Values for Template Parameters" option.
IF NOT ... |
<gh_stars>1-10
{{ config(materialized='table') }}
select
event,
count(*) as event_count,
count(distinct(anonymous_id)) as event_user_count,
21 as window_width, /* vary 21 as required */
event_count/window_width as event_daily_average,
CURRENT_TIMESTAMP as record_created_at
from
{{ source("<... |
<reponame>katzgrau/getsparks.org
-- phpMyAdmin SQL Dump
-- version 3.3.9.2
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Nov 23, 2011 at 12:12 PM
-- Server version: 5.5.9
-- PHP Version: 5.3.6
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT... |
<reponame>CSCfi/antero<gh_stars>1-10
USE [ANTERO]
GO
/****** Object: View [dw].[v_valos_koulutuksenkustannukset] Script Date: 22.3.2019 11:44:28 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
ALTER VIEW [dw].[v_valos_koulutuksenkustannukset] AS
SELECT
--Suomi
vuosi AS "Tilastovuosi"
,re... |
<filename>src/test/resources/sql/insert/ce4d0f23.sql
-- file:numeric_big.sql ln:209 expect:true
INSERT INTO num_exp_sub VALUES (4,3,'60302029489324713745939828071407972725.4815889002851326056854507417183084093489155453405263538322251835755287852988817727788674875673405001295960312675761832278870085302519388401708868897... |
-- THIS SCRIPT IS AUTOMATICALLY GENERATED. DO NOT EDIT IT DIRECTLY.
DROP TABLE IF EXISTS gcs; CREATE TABLE gcs AS
-- This query extracts the Glasgow Coma Scale, a measure of neurological function.
-- The query has a few special rules:
-- (1) The verbal component can be set to 0 if the patient is ventilated.
-- T... |
<reponame>djandrewd/flights-application<filename>search-engine-impl/src/test/resources/create_script.sql
CREATE TABLE AIRPORT (
ID INTEGER GENERATED BY DEFAULT AS IDENTITY,
NAME VARCHAR(100),
CITY VARCHAR(100),
COUNTRY VARCHAR(45),
IATA VARCHAR(3),
ICAO VARCHAR(4),
TIMEZONE V... |
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [AutoWho].[ViewLongRequests]
/*
Copyright 2016 <NAME>
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.o... |
INSERT INTO `guns`.`sys_menu` (`id`, `code`, `pcode`, `pcodes`, `name`, `icon`, `url`, `num`, `levels`, `ismenu`, `tips`, `status`, `isopen`) VALUES ('1057520574949728257', 'positionManagement', 'system', '[0],[system],', '职位管理', '', '/positionManagement', '99', '2', '1', NULL, '1', '0');
INSERT INTO `guns`.`sys_menu` ... |
<gh_stars>10-100
INSERT INTO "Storage"."RecordSets"("code", "name", "exposure", "shared", "hidden") VALUES('SMLC', 'SensorML Data catalog', 'EXTERNAL', false, false);
INSERT INTO "Storage"."Records" ("accessionNumber","recordSet", "identifier", "title", "maintainerID", "validatorID", "profile", "updateDate", "isValid... |
<reponame>Sandeepchau/MixErp22
IF OBJECT_ID('finance.salary_payable_selector_view') IS NOT NULL
DROP VIEW finance.salary_payable_selector_view;
GO
CREATE VIEW finance.salary_payable_selector_view
AS
SELECT
finance.account_scrud_view.account_id AS salary_payable_id,
finance.account_scrud_view.accou... |
/*
* Copyright 2017 <NAME> <<EMAIL>>
*
* 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
*
* Unless required by applicable law or agreed to in w... |
--liquibase formatted sql
--changeset quarkus:1:create-table-quarkus
--labels 1
CREATE TABLE quarkus (
id INT,
name VARCHAR(20)
); |
<filename>spring-data-jdbc/src/test/resources/org.springframework.data.jdbc.repository/JdbcRepositoryEmbeddedIntegrationTests-mysql.sql
CREATE TABLE dummy_entity (id BIGINT AUTO_INCREMENT PRIMARY KEY, TEST VARCHAR(100), PREFIX2_ATTR BIGINT, PREFIX_TEST VARCHAR(100), PREFIX_PREFIX2_ATTR BIGINT);
|
SELECT
toDecimal128(toString(-1.111), 5) AS val,
toTypeName(val) AS ty
|
--
-- WORKAROUND: Sqitch issue https://github.com/sqitchers/sqitch/issues/358
-- seems to resurface for some people on Windows + WSL + Docker setup.
-- As a workaround we create the sqitch schema manually before running sqitch.
--
--
-- PostgreSQL database dump
--
-- Dumped from database version 12.7 (Debian 12.7-1.p... |
<gh_stars>0
-- phpMyAdmin SQL Dump
-- version 5.1.0
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Jun 10, 2021 at 08:42 PM
-- Server version: 10.4.19-MariaDB
-- PHP Version: 8.0.6
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACT... |
<reponame>juanhebert/coffeechain-pilot<gh_stars>0
select p.*
from product p
join transformation_output t_out
on t_out.product = p.id
join transformation t
on t.id = t_out.transformation
left join sale_input si
on si.product = p.id
left join transformation_input ti
on ti.product = p.id
where si.sale is null and ti.trans... |
-- phpMyAdmin SQL Dump
-- version 4.9.0.1
-- https://www.phpmyadmin.net/
--
-- Host: localhost
-- Generation Time: Oct 28, 2019 at 07:12 AM
-- Server version: 10.3.16-MariaDB
-- PHP Version: 7.1.31
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @... |
<reponame>nqduy1805/suncorp<filename>.phpmydamin/suncorp.sql
-- phpMyAdmin SQL Dump
-- version 5.1.0
-- https://www.phpmyadmin.net/
--
-- Máy chủ: 127.0.0.1
-- Thời gian đã tạo: Th8 06, 2021 lúc 09:41 AM
-- Phiên bản máy phục vụ: 10.4.19-MariaDB
-- Phiên bản PHP: 7.3.28
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TR... |
CREATE TABLE IF NOT EXISTS `country_subdivisions` (
`country` CHAR(3) NOT NULL,
`alpha2` char(2) NOT NULL,
`name` varchar(25) NOT NULL,
`type` enum('State','District','Outlying Territory') NOT NULL,
`can_receive_mail` tinyint(1) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
INSERT INTO `country_subdivisions... |
<gh_stars>0
INSERT INTO `country`(`id`, `name`, `position`) VALUES (1, 'Việt Nam', 0);
INSERT INTO `city`(`id`, `country_id`, `name`, `type`, `position`) VALUES (1, 1, 'Hà Nội', 'Thành Phố', 0);
INSERT INTO `city`(`id`, `country_id`, `name`, `type`, `position`) VALUES (2, 1, 'Hà Giang', 'Tỉnh', 0);
INSERT INTO `city`(... |
<filename>init/02-database-user-itm.sql
CREATE DATABASE IF NOT EXISTS `itm`;
GRANT ALL PRIVILEGES ON itm.* TO 'itm'@'%' IDENTIFIED BY '<PASSWORD>';
|
SELECT DISTINCT CITY FROM STATION WHERE CITY RLIKE '.*[aeiouAEIOU]$'
|
USE burgers_db;
INSERT INTO burgers
(burger_name, devoured )
VALUES
('Cheeseburger', 0),
('Bacon Bacon Burger',0),
('Bill Gates no meat Burger',0),
('Biggest Baddest Burger', 0);
|
<filename>DBScripts/independientes211.sql
-- MySQL dump 10.13 Distrib 5.7.17, for Win64 (x86_64)
--
-- Host: 127.0.0.1 Database: independientes
-- ------------------------------------------------------
-- Server version 5.5.5-10.1.25-MariaDB
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
... |
SELECT colString,
colInt
FROM main.testTable
LIMIT 4 OFFSET 3 |
<gh_stars>1-10
select p from Product p where p.deleted = false
select uid, name from events
select u from User u where u.username = :username and u.password = :password
select u from User u where u.username=:username and u.password=:password").setParameter("username", credentials.getUsername()).setParameter("password
c... |
<reponame>neelnijhum/Bibaho.com<filename>Database/db_bibaho_com.sql
-- phpMyAdmin SQL Dump
-- version 5.0.4
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Dec 27, 2020 at 07:41 PM
-- Server version: 10.4.16-MariaDB
-- PHP Version: 7.4.12
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTI... |
<reponame>ruslantalpa/myproject<gh_stars>1-10
-- This file is a central place to define all the permissions for roles used by the application
-- You should write the sql in such a way that executing this file (even multiple times) will reset
-- all the roles to the correct permissions
-- the auto inclusion of this fil... |
-- file:identity.sql ln:115 expect:true
SELECT * FROM itest4
|
<filename>DATABASE/all_sht_ddl_mysql.sql
CREATE TABLE IDS (
TABLE_NAME varchar(20) NOT NULL,
NEXT_ID decimal(30,0) NOT NULL DEFAULT '0',
PRIMARY KEY (TABLE_NAME)
) ;
CREATE TABLE LETTCCMMNCLCODE (
CL_CODE char(3) NOT NULL,
CL_CODE_NM varchar(60) DEFAULT NULL,
CL_CODE_DC varchar(200) DEFAULT NULL,
USE... |
<reponame>dram/metasfresh
-- 2020-07-03T11:35:58.034Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Table (AccessLevel,ACTriggerLength,AD_Client_ID,AD_Org_ID,AD_Table_ID,CopyColumnsFromTable,Created,CreatedBy,EntityType,ImportTable,IsActive,IsAutocomplete,IsChangeLog,IsDeleteable,IsDL... |
<reponame>iooicc/Admin<gh_stars>1-10
-- ----------------------------
-- Table structure for sms
-- ----------------------------
CREATE TABLE `sms` (
`sms_id` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`bo_id` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL,
`bo_type` var... |
CREATE TABLE widget_param (
id bigserial NOT NULL,
description varchar(255),
name varchar(255) NOT NULL,
required char NOT NULL,
type varchar(255) NOT NULL,
usage_example varchar(255),
widget_id bigint,
default_value ... |
<reponame>MCZbase/DDL<filename>INDEX/U_TAX_SCI_NAME.sql
CREATE INDEX "U_TAX_SCI_NAME" ON "TAXONOMY" (UPPER("SCIENTIFIC_NAME"))
|
/*
Navicat Premium Data Transfer
Source Server : BLOG
Source Server Type : MySQL
Source Server Version : 80017
Source Host : localhost:3306
Source Schema : blog
Target Server Type : MySQL
Target Server Version : 80017
File Encoding : 65001
Date: 08/02/2021 11:56:58
*... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.