sql stringlengths 6 1.05M |
|---|
<reponame>Boyazhou/CS160_Project<filename>data/moocs160.sql<gh_stars>0
-- phpMyAdmin SQL Dump
-- version 4.0.4
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Mar 21, 2014 at 10:30 PM
-- Server version: 5.5.16-log
-- PHP Version: 5.3.8
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00... |
<reponame>duranfatih/hmc-cft-hearing-service
ALTER TABLE public.hearing ALTER COLUMN status TYPE varchar(100);
|
<gh_stars>0
DROP TABLE IF EXISTS fyle_load_tpa_export_batches;
DROP TABLE IF EXISTS fyle_load_tpa_export_batch_lineitems;
CREATE TABLE fyle_load_tpa_export_batches (
id INTEGER,
name TEXT,
success BOOLEAN,
description TEXT,
exported_at DATETIME,
url Text
);
CREATE TABLE fyle_load_tpa_export_ba... |
UPDATE denuncias_poligonos SET the_geom = st_geomfromtext($1,4258) WHERE gid=$2
|
<reponame>aha-oretama/spring-boot-multi-datasource-sample<filename>src/main/resources/db/migration/V1__Create_initial_tables.sql
create table book(
isbn varchar(50) not null primary key,
title varchar(50) not null
);
|
<reponame>williamtavares/votepolitics
-- Host: localhost Database: db_votepolitics
-- ------------------------------------------------------
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@... |
-- file:date.sql ln:10 expect:true
INSERT INTO DATE_TBL VALUES ('1996-02-29')
|
<gh_stars>10-100
insert into users (username,password,enabled) values ('<EMAIL>','<PASSWORD>1',1);
insert into users (username,password,enabled) values ('<EMAIL>','admin1',1);
insert into users (username,password,enabled) values ('<EMAIL>','admin1',1);
insert into users (username,password,enabled) values ('<EMAIL>','<P... |
<reponame>Danial41/-
DELETE FROM `#__quiz_t_qtypes` WHERE c_id = '9';
INSERT INTO #__quiz_t_qtypes (c_id, c_qtype, c_type) VALUES (9, 'Boilerplate', 'boilerplate');
UPDATE `#__extensions` SET `enabled` = 1 WHERE `element` = 'boilerplate'; |
DROP TABLE IF EXISTS departments;
DROP TABLE IF EXISTS roles;
DROP TABLE IF EXISTS employee;
CREATE TABLE departments (
id INTEGER PRIMARY KEY,
name VARCHAR (30)
);
CREATE TABLE roles (
id INTEGER AUTO_INCREMENT PRIMARY KEY,
title VARCHAR (30),
salary DECIMAL (6,2),
department_id INTEGER,
FOREIGN KEY... |
ALTER TABLE [AATF].[WeeeReusedAmount] DROP COLUMN ObligationType
ALTER TABLE [AATF].[WeeeReusedAmount] DROP COLUMN Tonnage
ALTER TABLE [AATF].[WeeeReusedAmount] DROP COLUMN RowVersion
ALTER TABLE [AATF].[WeeeReusedAmount] ADD HouseholdTonnage decimal(28, 3)
ALTER TABLE [AATF].[WeeeReusedAmount] ADD NonHouseholdTonnage ... |
<reponame>ATBMHTTT-2017/lab01-1412439-1412529-1412270
Alter Session Set "_ORACLE_SCRIPT"=True;
--create user
--truong du an
Create User NV001 Identified By 111;
Create User Nv002 Identified By 111;
Create User Nv003 Identified By 111;
Create User Nv004 Identified By 111;
Create User Nv005 Identified By 111;
--truon... |
create table PlanningTask (
taskId numeric(19,0) not null,
OPTLOCK int,
assignedUser varchar(255),
taskIndex int not null,
lastModificationDate datetime,
published smallint not null,
primary key (taskId)
);
alter table PlanningTask
add constra... |
DELETE FROM CUSTOMER;
DELETE FROM CUSTOMER_ORDER;
DELETE FROM ITEM;
DELETE FROM ORDER_ITEM;
-- customer records
INSERT INTO CUSTOMER(ID, NAME)
VALUES('customer1', '<NAME>');
INSERT INTO CUSTOMER(ID, NAME)
VALUES('customer2', '<NAME>');
-- item records
INSERT INTO ITEM(ID, NAME, PRICE, DESCRIPTION)
VALUES('item1', 'P... |
-- start query 40 in stream 0 using template query40.tpl
select
w_state
,i_item_id
,sum(case when (cast(d_date as timestamp) < cast ('2000-03-28' as timestamp))
then cs_sales_price - coalesce(cr_refunded_cash,0) else 0 end) as sales_before
,sum(case when (cast(d_date as timestamp) >= cast ('200... |
DROP TABLE IF EXISTS test_table_for_01070_exception_code_in_query_log_table;
SELECT * FROM test_table_for_01070_exception_code_in_query_log_table; -- { serverError 60 }
CREATE TABLE test_table_for_01070_exception_code_in_query_log_table (value UInt64) ENGINE=Memory();
SELECT * FROM test_table_for_01070_exception_code_i... |
use requestdb;
ALTER TABLE infra_active_requests ADD COLUMN IF NOT EXISTS WORKFLOW_NAME varchar(200);
ALTER TABLE archived_infra_requests ADD COLUMN IF NOT EXISTS WORKFLOW_NAME varchar(200);
ALTER TABLE infra_active_requests ADD COLUMN IF NOT EXISTS OPERATION_NAME varchar(200);
ALTER TABLE archived_infra_requests ADD... |
CREATE SCHEMA IF NOT EXISTS ${dbName};
USE ${dbName};
CREATE TABLE record_change (
id CHAR(36) NOT NULL,
zone_id CHAR(36) NOT NULL,
created BIGINT(13) NOT NULL,
type TINYINT NOT NULL,
data BLOB NOT NULL,
PRIMARY KEY (id),
INDEX zone_id_index (zone_id),
INDEX created_index (created)
);
|
<reponame>felixzh2020/flink-sql-benchmark<gh_stars>10-100
create database if not exists ${DB};
use ${DB};
drop table if exists web_returns;
create table web_returns
stored as ${FILE}
as select * from ${SOURCE}.web_returns
;
|
<gh_stars>10-100
BEGIN;
ALTER TABLE tasks ADD COLUMN tag text;
COMMIT;
|
<reponame>AmirAshkan7091/hw-12-Reverse-Engineering-Authentication
DROP DATABASE IF EXISTS passport_demo;
CREATE DATABASE passport_demo;
DROP DATABASE IF EXISTS database_test;
CREATE DATABASE database_test;
DROP DATABASE IF EXISTS database_production;
CREATE DATABASE database_production;
|
SELECT
sr.No 銷貨單號,
sr.SDate 銷貨日期,
e.code 業務人員代號,
e.Name 業務人員姓名,
c.code 部門代號,
c.Name 部門名稱,
su.Code 廠客代號,
su.Name 廠客姓名,
g.code 商品代號,
g.name 商品名稱,
d.Amount 數量,
d.NoTaxListPrice 稅前定價,
d.TaxedListPrice 定價,
d.noTaxUnitPrice 單價,
d.NoTax 稅前金額,
d.TaxedT... |
insert into `dbversion` values('2.8', now()); |
#
# TABLE STRUCTURE FOR: item_type
#
DROP TABLE IF EXISTS item_type;
CREATE TABLE `item_type` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`item_type_name` varchar(255) NOT NULL,
`item_type_description` varchar(1000) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=latin1;
INSERT ... |
<gh_stars>0
-- phpMyAdmin SQL Dump
-- version 4.8.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Sep 25, 2018 at 10:10 AM
-- Server version: 10.1.33-MariaDB
-- PHP Version: 7.2.6
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40... |
<reponame>ohk/ElderlyCareCenter
CREATE SEQUENCE room_number START 101;
CREATE TYPE elder_record AS (id int,first_name VARCHAR(50),last_name VARCHAR(50),date_of_birth DATE,gender VARCHAR(50),number_of_room int,room_number int,visit_count int);
CREATE TYPE empty_record AS (id int, room_number int);
CREATE TYPE visitor_r... |
CREATE DATABASE IF NOT EXISTS `dawid_movieinventory` /*!40100 DEFAULT CHARACTER SET utf8 */;
USE `dawid_movieinventory`;
-- MySQL dump 10.13 Distrib 8.0.19, for Win64 (x86_64)
--
-- Host: localhost Database: dawid_movieinventory
-- ------------------------------------------------------
-- Server version 5.7.21-log... |
<reponame>rickxy/Final-Project----Calculator-Asp-MVC
Create database Final_Project
create table UsersTbl
(
Uid int identity(1,1) primary key not null,
Username nvarchar(100)Null,
Password nvarchar(100)Null,
Email nvarchar(100)Null,
)
insert into UsersTbl Values('user','<PASSWORD>','<EMAIL>')
select * from Users... |
<filename>back-end/data/cw-cms.sql
-- phpMyAdmin SQL Dump
-- version 4.2.7.1
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Nov 27, 2014 at 01:17 AM
-- Server version: 5.6.20
-- PHP Version: 5.5.15
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
--
--
-- -------------------... |
<filename>database/doan.sql
-- phpMyAdmin SQL Dump
-- version 5.1.1
-- https://www.phpmyadmin.net/
--
-- Máy chủ: 127.0.0.1
-- Thời gian đã tạo: Th10 08, 2021 lúc 08:30 AM
-- Phiên bản máy phục vụ: 10.4.20-MariaDB
-- Phiên bản PHP: 7.4.21
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:... |
<reponame>lgcarrier/AFW<filename>5.2.3/Database/Indexes/AFW_17_SMS_TWILI_ENTRA_PK.sql<gh_stars>1-10
SET DEFINE OFF;
CREATE UNIQUE INDEX AFW_17_SMS_TWILI_ENTRA_PK ON AFW_17_SMS_TWILI_ENTRA
(SEQNC)
LOGGING
/
|
SELECT FirstName FROM Employees
WHERE DepartmentID IN(3,10)
AND YEAR(HireDate) >= 1995 AND YEAR(HireDate) <= 2005 |
-- Generation time: Tue, 25 Dec 2018 23:25:05 +0000
-- Host: mysql.hostinger.ro
-- DB name: u574849695_25
/*!40030 SET NAMES UTF8 */;
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_C... |
<filename>src/test/resources/tkt3298.test_1.sql<gh_stars>100-1000
-- tkt3298.test
--
-- execsql {
-- CREATE TABLE t1(a INTEGER PRIMARY KEY, b INT);
-- INSERT INTO t1 VALUES(0, 1);
-- INSERT INTO t1 VALUES(1, 1);
-- INSERT INTO t1 VALUES(2, 1);
-- CREATE VIEW v1 AS SELECT a AS x, b+1 AS y FROM t1;
-... |
<gh_stars>100-1000
-- shared.test
--
-- execsql {
-- SELECT * FROM seq;
-- }
SELECT * FROM seq; |
-- file:select.sql ln:143 expect:true
VALUES (1,2), (3,4+4), (7,77.7)
|
<reponame>andypohl/kent
# cdsSpec.sql was originally generated by the autoSql program, which also
# generated cdsSpec.c and cdsSpec.h. This creates the database representation of
# an object which can be loaded and saved from RAM in a fairly
# automatic way.
#GenBank-style CDS specification, indexed by sequence id
... |
--
-- Copyright (C) 2013 Glyptodon LLC
--
-- Permission is hereby granted, free of charge, to any person obtaining a copy
-- of this software and associated documentation files (the "Software"), to deal
-- in the Software without restriction, including without limitation the rights
-- to use, copy, modify, merge, publi... |
<filename>db/migrations/002.do.create-games.sql<gh_stars>1-10
CREATE TABLE games (
game_id INTEGER PRIMARY KEY GENERATED BY DEFAULT AS IDENTITY,
total_score REAL,
artworks INTEGER [],
date_created TIMESTAMP DEFAULT now() NOT NULL
);
|
<filename>db-h2database/src/test/resources/db/migrations/201211202133_create_tables.sql<gh_stars>0
create table account (
id bigint not null auto_increment,
created_by varchar(64) not null,
created_time datetime not null,
last_updated_by varchar(64) not null,
last_updated_time datetime,
version int default ... |
<filename>sql_files/create_new_table.sql
CREATE TABLE IF NOT EXISTS weather
(State varchar(50),
Description varchar(50),
Temperature numeric,
Feels_Like_Temperature NUMERIC,
Min_Temperature NUMERIC,
Max_Temperature NUMERIC,
Humidity NUMERIC,
Clouds INTEGER);
|
--
-- PostgreSQL database dump
--
-- Dumped from database version 10.6
-- Dumped by pg_dump version 10.6
--
-- Name: all_cluster_usage_rs; Type: TYPE; Schema: public; Owner: engine
--
CREATE TYPE all_cluster_usage_rs AS (
quota_cluster_id uuid,
quota_id uuid,
cluster_id uuid,
cluster_name character varying(40),
... |
SELECT toColumnTypeName(toLowCardinality(1));
|
<filename>resources/database/3dcitydb/oracle/DISABLE_ADE_VERSIONING.sql
-- This document was automatically created by the ADE-Manager tool of 3DCityDB (https://www.3dcitydb.org) on 2021-10-08 13:50:33
-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
-- **********************... |
-- ----------------------------------------------------------------------------
-- MIMIC IV to OMOP CDM
-- Odysseus, Sep-2020
-- ----------------------------------------------------------------------------
/*OMOP CDM v5.3.1 14June2018*/
#standardsql
CREATE OR REPLACE TABLE `@etl_project`.@etl_dataset.cdm_cohort_defin... |
CREATE PROCEDURE SP362(OUT MYCOUNT INTEGER) SPECIFIC SP362_95699 LANGUAGE SQL NOT DETERMINISTIC READS SQL DATA NEW SAVEPOINT LEVEL BEGIN ATOMIC DECLARE MYVAR INT;SELECT COUNT(*)INTO MYCOUNT FROM TABLE71;SELECT COUNT(*)INTO MYCOUNT FROM TABLE326;SELECT COUNT(*)INTO MYCOUNT FROM TABLE142;SELECT COUNT(*)INTO MYCOUNT FROM ... |
<gh_stars>100-1000
CREATE OR REPLACE FUNCTION test_pipeline_user_roles_table()
RETURNS SETOF TEXT
LANGUAGE plpgsql
AS $$
BEGIN
RETURN QUERY SELECT has_table('pipeline_user_roles');
-- Columns
RETURN QUERY SELECT columns_are('pipeline_user_roles', ARRAY['pipeline_id',
... |
-- database: presto; groups: window;
select orderkey, discount, extendedprice,
min(extendedprice) over (order by discount range current row) min_extendedprice,
max(extendedprice) over (order by discount range current row) max_extendedprice
from tpch.tiny.lineitem where partkey = 272
|
<filename>samples/complex/data/tables/table_versions.sql
CREATE TABLE data.table_versions (
id serial NOT NULL,
ident_id integer NOT NULL,
start_date date NOT NULL,
end_date date NULL,
CONSTRAINT pk_data_table_versions PRIMARY KEY (id),
... |
--+ holdcas on;
set system parameters 'add_column_update_hard_default = yes';
create table t (i int primary key auto_increment, j int);
insert into t (j) values (1);
insert into t (j) select j from t;
insert into t (j) select j from t;
insert into t (j) select j from t;
insert into t (j) select j from t;
insert into ... |
alter table "public"."ContentItemHallway" rename column "itemId" to "groupId";
|
--SELECT * FROM INFORMATION_SCHEMA.TABLES
--DROP TABLE EMPLOYEES
CREATE TABLE employees
([employee_id] int, [name] nvarchar(20), [months] datetime, [salary] int)
;
INSERT INTO employees
([employee_id], [name], [months], [salary])
VALUES
(12228, 'Rose', 15, 1968),
(33645, 'Angela', 1, 3443),
... |
<gh_stars>0
CREATE OR REPLACE VIEW keep3r_network.view_job_credits_log AS (
WITH work_evt AS (
SELECT evt_block_time AS timestamp,
'0x' || encode(evt_tx_hash, 'hex') AS tx_hash,
evt_index,
'KeeperWork' AS event,
'0x' || encode(contract_address, 'hex') AS keep3r,
'0x' || encode(_job, 'he... |
-- Copyright (c) KhooverSoft. All rights reserved.
-- Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
CREATE TYPE [dbo].[DesType]
FROM varchar(50) NULL;
|
CREATE FUNCTION dbo.ufn_SecurityGroupDomainId
(
@SecurityGroupId uniqueidentifier
)
RETURNS tinyint
as
BEGIN
DECLARE @SecurityGroupDomainId tinyint
SELECT @SecurityGroupDomainId = a.DomainId
FROM ref.tbl_SecurityGroup as a with (nolock)
WHERE a.Id = @SecurityGroupId
RETURN @SecurityGroupDomainId
E... |
<filename>herbal.sql
(name, img_url, case_using, Preparation, description)
('Lime flower', 'https://p0.pikist.com/photos/857/117/lime-flower-white-flower-lime-white-flower-green-nature-leaf-yellow.jpg','Cough and cold, Mental stress and mood disorders', 'By soaking the lemon blossom', 'Lemon blossom is part of the lemo... |
<gh_stars>0
--select * from WeightOfIssue
--select * from RootCause
--select * from Project
--select * from Observation order by Obs_Contractor
--select * from SubDivCode where ParentCode='05' and SubCode = '40'
--select * from Contractor order by id
--select * from ProjectSubcontractor
--select Obs_SubDiv,... |
-- MariaDB dump 10.18 Distrib 10.4.17-MariaDB, for Win64 (AMD64)
--
-- Host: localhost Database: laravel_api
-- ------------------------------------------------------
-- Server version 10.4.17-MariaDB
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARAC... |
<gh_stars>0
create table product_dtl ( product_id: int, product-name: string, product_price: float, product_category: string) rows format delimited fields terminated by ',' ; |
<filename>src/main/resources/liquibase/changelog/1_0_0/postgresql/01_tables.sql
/*******************************************************************************
Chinook Database - Version 1.4
Script: Chinook_PostgreSql.sql
Description: Creates and populates the Chinook database.
DB Server: PostgreSql
Aut... |
-- MySQL Script generated by MySQL Workbench
-- to 15. syyskuuta 2016 15.37.01
-- 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_MODE=@@SQL_MODE, SQL_MO... |
SELECT * FROM mock LIMIT 5; |
SET DEFINE OFF;
ALTER TABLE AFW_13_CONDT_PILTB ADD (
CONSTRAINT AFW_13_CONDT_PILTB_FK1
FOREIGN KEY (REF_PAGE)
REFERENCES AFW_13_PAGE (SEQNC)
ON DELETE CASCADE
ENABLE VALIDATE)
/
|
<gh_stars>1-10
CREATE SCHEMA nw;
COMMENT ON SCHEMA nw IS
'Transit network, route versions and analysis sections on it.';
CREATE TYPE nw.vehicle_mode AS enum('bus', 'tram');
-- NODES
CREATE TABLE nw.node (
node_id serial PRIMARY KEY,
errors text[],
geom geometry(POINT, 3067) NOT NULL
);
C... |
<reponame>Zubieta/CPP
# https://www.hackerrank.com/challenges/japanese-cities-attributes
select * from city where countrycode = "JPN"
|
<gh_stars>1-10
USE [Vipunen_koodisto]
GO
/****** Object: StoredProcedure [dbo].[p_korjaa_aineistovirheet] Script Date: 21.6.2017 15:34:37 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[p_korjaa_aineistovirheet]') AND type in (N'... |
INSERT INTO "_JutsuToRenamedClass" ("A", "B") VALUES
(1, 1),
(1, 2),
(2, 1),
(3, 1),
(3, 3),
(4, 1),
(5, 1),
(5, 3),
(6, 2),
(7, 1),
(8, 1),
(9, 1),
(9, 3),
(10, 1),
(11, 1),
(12, 1),
(13, 1),
(13, 2),
(14, 1),
(15, 2),
(16, 2),
(17, 1),
(18, 1),
(19, 2),
(20, 1),
(21, 1),
(22, 1),
(23, 1),
(24, 1),
(25, 1),
(26, 1),
(... |
SELECT
nacer.smiafiliados.id_smiafiliados as id,
nacer.smiafiliados.clavebeneficiario as ClaveInscripto,
nacer.smiafiliados.afiapellido as Apellido,
nacer.smiafiliados.afinombre as Nombre,
nacer.smiafiliados.afidni as DNI,
nacer.efe_conv.nombre as Efector,
date (nacer.smiafiliados.fechainscripcion) as Fe... |
<filename>Database/Upgrade/DDL/2.11.0a_v_igaudittrail_fix.sql
IF EXISTS (SELECT * FROM INFORMATION_SCHEMA.VIEWS WHERE table_name = 'v_igaudittrail')
BEGIN
DROP VIEW v_igaudittrail
END
GO
CREATE VIEW [dbo].[v_igaudittrail]
AS
SELECT
a.username,
a.auditDate,
a.ip,
a.type,
a.note,
ISNULL(a.implementationGuide... |
<reponame>bulentgucuk/CISL
/*
CSIL - Columnstore Indexes Scripts Library for SQL Server 2014:
Columnstore Tests - cstore_GetFragmentation is tested with the columnstore table containing 1 row in compressed row group and a Delta-Store with 1 row
Version: 1.5.0, August 2017
Copyright 2015-2017 <NAME>, OH22 IS (http... |
/*Connect to database*/
\connect mobydq
/*Create table data source type*/
CREATE TABLE base.data_source_type (
id SERIAL PRIMARY KEY
, name TEXT NOT NULL UNIQUE
, created_date TIMESTAMP DEFAULT CURRENT_TIMESTAMP
, updated_date TIMESTAMP DEFAULT CURRENT_TIMESTAMP
, created_by_id INTEGER DEFAULT base.get_c... |
CREATE TABLE public.testtable (
id integer NOT NULL,
field1 character(64),
field2 character(64),
field3 character(64),
field4 character(64),
field5 character(64)
);
ALTER TABLE ONLY public.testtable ALTER COLUMN field2 SET (n_distinct=3.0, n_distinct_inherited=2.0);
ALTER TABLE ONLY public.testt... |
library Retrieve
using FHIR version '4.0.0'
include FHIRHelpers version '4.0.0'
context Specimen
define InInitialPopulation:
true
define StorageTemperatureCodings:
flatten
from Specimen.extension E
where E.url = 'https://fhir.bbmri.de/StructureDefinition/StorageTemperature'
return E.value.coding
... |
-- phpMyAdmin SQL Dump
-- version 4.7.0
-- https://www.phpmyadmin.net/
--
-- Хост: 127.0.0.1
-- Время создания: Авг 29 2017 г., 10:57
-- Версия сервера: 10.1.22-MariaDB
-- Версия PHP: 7.1.4
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHAR... |
<reponame>opengauss-mirror/Yat
-- @testpoint:opengauss关键字map非保留),作为序列名
--关键字不带引号-成功
drop sequence if exists map;
create sequence map start 100 cache 50;
drop sequence map;
--关键字带双引号-成功
drop sequence if exists "map";
create sequence "map" start 100 cache 50;
drop sequence "map";
--关键字带单引号-合理报错
drop sequence if exis... |
-- phpMyAdmin SQL Dump
-- version 4.5.1
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: Apr 15, 2017 at 08:46 AM
-- Server version: 10.1.16-MariaDB
-- PHP Version: 5.6.24
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CL... |
<filename>src/test/resources/db/migration/V3__Alter_Employee_Add_DepartmentId.sql
ALTER TABLE employee
ADD department_id integer NOT NULL
AFTER employee_id;
ALTER TABLE employee
ADD FOREIGN KEY (department_id) REFERENCES department (department_id); |
-- MySQL dump 10.13 Distrib 5.7.20, for osx10.12 (x86_64)
--
-- Host: localhost Database: shengxian
-- ------------------------------------------------------
-- Server version 5.7.20
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */... |
USE edydaktyka;
CREATE TABLE Users ( # student
Album INT NOT NULL,
FirstName VARCHAR(50) NOT NULL,
LastName VARCHAR(50) NOT NULL,
Password VARCHAR(128) NOT NULL,
PasswordSalt VARCHAR (8) NOT NULL,
Email VARCHAR(320) NOT NULL,
Photo TEXT,
IsAdmin BOOL DEFAULT FALSE,
IsActive BOOL DEF... |
/*
Navicat MySQL Data Transfer
Source Server : localhost
Source Server Version : 50508
Source Host : localhost:3306
Source Database : sistema_delta
Target Server Type : MYSQL
Target Server Version : 50508
File Encoding : 65001
Date: 2011-12-01 14:50:28
SET FOREIGN_KEY_CHECKS=0;
... |
<gh_stars>0
IF NOT EXISTS (SELECT 1
FROM sysobjects
WHERE name='Users' and xtype='U')
CREATE TABLE dbo.Users
(
UserID int PRIMARY KEY CLUSTERED,
FirstName VARCHAR (50) NOT NULL,
LastName VARCHAR (50) NOT NULL,
UserHandle VARCHAR (50) NOT NULL
);
GO
IF NOT EXISTS (SELECT TOP(1)
1
FROM Users)
INSERT ... |
<filename>assets/kons_store (1).sql
-- phpMyAdmin SQL Dump
-- version 4.5.1
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: Feb 25, 2018 at 05:01 AM
-- Server version: 10.1.10-MariaDB
-- PHP Version: 5.6.19
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHA... |
-- phpMyAdmin SQL Dump
-- version 5.0.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Waktu pembuatan: 06 Jan 2021 pada 09.04
-- Versi server: 10.4.11-MariaDB
-- Versi PHP: 7.4.3
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARA... |
<filename>ModernizeYourDatabases2019/ModernizeSQL2019/Module 5 Activity - Modern Development Platform/java/Javangramdemo.sql
USE JavaTest
GO
DECLARE @myClassPath nvarchar(50)
DECLARE @n int
--This is where you store your classes or jars.
--Update this to your own classpath
SET @myClassPath = N'C:\java'
--This i... |
<reponame>ImamHossain-eng/book-app-v3
-- phpMyAdmin SQL Dump
-- version 5.1.0
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Nov 20, 2021 at 05:49 PM
-- 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";
... |
-- Copyright Materialize, Inc. All rights reserved.
--
-- 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 in the LICENSE file at the
-- root of this repository, or online at
--
-- http://www.a... |
<reponame>WZMJ/Algorithms<filename>0183.customers_who_never_order/solution.sql
# Write your MySQL query statement below
# select Name as Customers from Customers where Id not in (select distinct CustomerId from Orders)
select Name Customers from Customers c left join Orders o on c.id = o.CustomerId where o.CustomerId... |
<reponame>cjoakim/azure-cosmosdb<filename>dbs/mongo/mongo/azure_init.ddl
// MongoDB "DDL" initialize the dev database with airports collection.
// <NAME>, Microsoft, 2021/01/31
use dev
// db.airports.ensureIndex({"pk" : 1}, {"unique" : false})
db.airports.ensureIndex({"iata_code" : 1}, {"unique" : false})
db.airports... |
<reponame>dram/metasfresh
-- 2021-06-28T10:34:30.993Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO WEBUI_KPI (AD_Client_ID,AD_Org_ID,ChartType,Created,CreatedBy,IsActive,IsApplySecuritySettings,IsGenerateComparation,KPI_AllowedStaledTimeInSec,KPI_DataSource_Type,Name,Source_Table_ID,SQL... |
<reponame>njahn82/hoaddashtest<gh_stars>1-10
SELECT
issn_l,
cr_year,
COUNT(DISTINCT doi) AS publication_volume
FROM
`hoad-dash.oam.cr_raw`
GROUP BY
issn_l,
cr_year
|
IF OBJECT_ID('@schema@schemaDelim@destination', 'U') IS NOT NULL
DROP TABLE @schema@schemaDelim@destination;
select
analysis_id,
stratum_1,
stratum_2,
statistic_value,
measure_id
into @schema@schemaDelim@destination
from
(
@derivedSqls
) Q
; |
select d.*, s.STAFF_NAME from DEPT d left join STAFF s on d.STAFF_ID= s.STAFF_ID where s.IS_DELETED=0
|
<gh_stars>10-100
//// CHANGE name=change0
CREATE MEMORY TABLE TABLE202(ID INTEGER NOT NULL PRIMARY KEY,FIELD1 VARCHAR(30),USERTYPE0FIELD USERTYPE0,USERTYPE2FIELD USERTYPE2)
GO
|
<reponame>blinkops/blink-aws-query
select association_id, association_version, region, account_id
from aws.aws_ssm_association
where association_id = 'aaaaaaaa-bbbb-cccc-dddd-abcdef123456';
|
<filename>contrib/citext/sql/citext_utf8.sql
/*
* This test must be run in a database with UTF-8 encoding
* and a Unicode-aware locale.
*/
SELECT getdatabaseencoding() <> 'UTF8' OR
current_setting('lc_ctype') = 'C'
AS skip_test \gset
\if :skip_test
\quit
\endif
set client_encoding = utf8;
-- CREATE ... |
<reponame>Zhaojia2019/cubrid-testcases<gh_stars>0
--[I18N] In database with euckr charset, error occurs when comparing two session variables while one of them is assigned value with host variable.
set names euckr;
prepare s from 'select CONCAT (?) into :result';
execute s using 'aaa';
evaluate 'aaa' into :expected;... |
<filename>backoffice/file/IPV1006190954.sql
INSERT INTO pos_itemtemp VALUES("IPVT190000085","193033","191001","192005","42000","1","42000","0","42000","1","1","1","IPV1006190954","NHO2018000008","PAID","curry yg banyak ","193033"),
("IPVT190000085","193011","191001","192001","40000","1","40000","0","40000","1","1","1",... |
<reponame>muhamadsyahril/arielslf-pelatihan
delete from sesi;
delete from m_materi;
insert into m_materi (id, kode, nama)
values ('aa6', 'JF-001', 'Java Fundamental');
insert into m_materi (id, kode, nama)
values ('aa7', 'JF-002', 'Java Web');
insert into m_materi (id, kode, nama)
values ('aa8', 'JF-003', 'Android F... |
<reponame>dualdng/willcf
create table bookdetail(
id int(5) not null primary key auto_increment,
bookId int(5) not null,
name varchar(50) not null,
detail varchar(100) not null,
created_at timestamp,
updated_at timestamp
)
|
<reponame>eugene-mindset/Poli-Interactive<gh_stars>0
-- <NAME> aadon1, <NAME> easare3
DROP TABLE IF EXISTS Bill_Subject;
DROP TABLE IF EXISTS Cosponsor;
DROP TABLE IF EXISTS Role;
DROP TABLE IF EXISTS Sponsor;
DROP TABLE IF EXISTS Subject;
DROP TABLE IF EXISTS Vote;
DROP TABLE IF EXISTS Bill;
DROP TABLE IF EXISTS Area... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.