sql
stringlengths
6
1.05M
SELECT tab0.v1 AS v1 , tab2.v0 AS v0 , tab5.v5 AS v5 , tab4.v6 AS v6 , tab3.v4 AS v4 , tab1.v2 AS v2 FROM (SELECT sub AS v0 FROM wsdbm__hasGenre$$3$$ WHERE obj = 'wsdbm:SubGenre83' ) tab2 JOIN (SELECT obj AS v1 , sub AS v0 FROM sorg__contentRating$$1$$ ) tab0 ON(tab2.v0=tab0.v0) JOIN (SELEC...
<filename>src/it/oracle-b/verify/install_manual.sql<gh_stars>1-10 prompt prompt === DATABASE-MAVEN-PLUGIN prompt Oracle database [database] version [test] created at [2018-09-01 21:41:08] @./service/input_parameters_manual.sql @./service/sqlplus_setup.sql @./service/check_connections.sql @./service/spool_start.sql @./s...
GRANT pg_signal_backend TO admin_user;
<gh_stars>0  CREATE PROCEDURE [dbo].[Yammer_RemoveURLFromAttachments_Test] AS BEGIN SET NOCOUNT ON DECLARE @ID BIGINT DECLARE @attachments NVARCHAR(max) DECLARE @Output NVARCHAR(max) DECLARE @RowNumber nvarchar(max) DECLARE YM_Messages_CURSOR_T CURSOR LOCAL FOR SELECT ROW_NUMBER() ...
alter table APPLICATIONINSTANCE ADD ( deployDate timestamp(6) ); alter table APPLICATIONINSTANCE_AUD ADD ( deployDate timestamp(6) ); -- Set deploydate initially to last updated UPDATE APPLICATIONINSTANCE SET deployDate = updated;
<reponame>b-cube/Response-Identification-Info<gh_stars>0 with i as ( select d.response_id, jsonb_array_elements(d.identity::jsonb) ident from identities d where d.identity is not null ), h as ( select r.host, count(r.host) as total_for_host from responses r where r.host is not null and r.host != '' group by r.h...
<reponame>DiamondDAO/dao-research<filename>POAP_analysis/data_gather/chainverse_db_queries/dao_proposal_votes_daohaus.sql SELECT prop.*, vt.name vote_type, memb.address member_address, dao.address dao_address, dao.name dao_name FROM daohaus.proposal_votes prop INNER JOIN daohaus.member memb ON (prop.member_id...
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.6.5.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jul 18, 2018 at 07:50 AM -- Server version: 10.1.21-MariaDB -- PHP Version: 7.1.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@C...
-- rowid.test -- -- execsql { -- INSERT INTO t7 VALUES(NULL,'b'); -- SELECT x, y FROM t7; -- } INSERT INTO t7 VALUES(NULL,'b'); SELECT x, y FROM t7;
<gh_stars>1-10 INSERT INTO magic_sets (name,code,code_magiccards,release_date,is_promo) VALUES ('15th Anniversary','15A','15ANN','00/0000',1); INSERT INTO magic_sets (name,code,code_magiccards,release_date,is_promo) VALUES ('Alara Reborn','ARB','ARB','04/2009',0); INSERT INTO magic_sets (name,code,code_magiccards,rele...
/* Because a product can be sold at a discount, we want to know the highest unit price ever sold for each product. This query uses correlated subquery to get the highest unit price for each product sold. Alias is used for order_details in both the subquery and outer query. */ select distinct a.ProductID, ...
<filename>db/migrations/0001_tenative_attendance.sql ALTER TABLE user_event MODIFY attending INT NOT NULL;
SELECT* FROM FILMS WHERE BUDGET>1000000 ; SELECT* FROM ACTEURS WHERE NATIONACT='Américain' AND SEXE='f'; SELECT NOMACT, PRENOMACT FROM ACTEURS WHERE NATIONACT='Français' OR NATIONACT='Belge'; SELECT TITREFILM FROM REALISATEURS, FILMS WHERE NOMREAL='Cameron' AND PRENOMREAL='James'...
-- La DELETE FROM instrucción elimina una o más filas de una tabla. -- Puede usar la declaración cuando desee eliminar registros existentes. DELETE FROM celebs WHERE twitter_handle IS NULL; -- Elimine todas las filas que tienen un NULLvalor en la columna del identificador de Twitter. DELETE FROM celebs WHERE twit...
<gh_stars>1-10 /* Formatted on 12-19-2018 8:43:26 AM (QP5 v5.126.903.23003) */ DROP TABLE EPAY.EPAY_PSB5_TRNS CASCADE CONSTRAINTS PURGE; CREATE TABLE EPAY.EPAY_PSB5_TRNS ( COMPLAINT_ID NUMBER NOT NULL, COMPLAINT_TYPE_ID NUMBER, FEMALE_COMPLAINANTS_NO INTEGER, COMPLAINTS_RCVD_R...
<reponame>fbb-oc/sqlfluff CREATE TABLE `foo` ( created_date DATETIME DEFAULT CURRENT_TIMESTAMP NOT NULL, ts1 TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, dt1 DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, ts2 TIMESTAMP DEFAULT CURRENT_TIMESTAMP, dt2 DATETIME DEFAULT CURREN...
<gh_stars>10-100 -- DB/SPAWN: Mottled Boar Remove tons of wrong locs taking from official (http://www.wowhead.com/npc=3098) -- Tehere is like tons of this npc but we need only a few ones DELETE FROM `creature` WHERE `id`=3098; INSERT INTO `creature` (`guid`,`id`,`map`,`spawnMask`,`phaseMask`,`modelid`,`equipment_id`,`p...
<gh_stars>0 CREATE TABLE k_sequences ( nm_table CHAR(18) NOT NULL, nu_initial INTEGER NOT NULL, nu_maxval INTEGER NOT NULL, nu_increase INTEGER NOT NULL, nu_current INTEGER NOT NULL, CONSTRAINT pk_sequences PRIMARY KEY (nm_table) ) ; INSERT INTO k_sequences (nm_table,nu_initial,nu_maxval,nu_in...
SELECT mc.country_code, m.mountain_range, p.peak_name, p.elevation FROM mountains_countries AS mc JOIN mountains AS m ON mc.mountain_id = m.id JOIN peaks AS p ON m.id = p.mountain_id WHERE mc.country_code = 'BG' AND p.elevation > 2835 ORDER BY p.elevation DESC;
<filename>src/test/resources/db/migration/V1__create_schema.sql CREATE SCHEMA IF NOT EXISTS users;
CREATE TABLE [dbo].[Proposer] ( [Id] INT NOT NULL, [Id_ClientCompany] INT NOT NULL, [Id_HeavyUser] INT NOT NULL, CONSTRAINT [PK_Proposer] PRIMARY KEY ([Id],[Id_ClientCompany],[Id_HeavyUser]), CONSTRAINT [FK_Proposer_Offer] FOREIGN KEY ([Id]) REFERENCES [dbo].[Offer], CONSTRAINT [FK_...
CREATE TABLE `page_views` ( `id` BIGINT NOT NULL AUTO_INCREMENT , `request_uri` VARCHAR(512) NOT NULL , `timestamp` INT NOT NULL , `ip_address` VARCHAR(45) NULL , `user_agent` VARCHAR(512) NULL , `login_identifier` VARCHAR(256) NULL , `referer` VARCHAR(512) NULL , `note` VARCHAR(256) NULL , PRIMARY ...
INSERT INTO hydra_client (id, client_name, client_secret, redirect_uris, grant_types, response_types, scope, owner, policy_uri, tos_uri, client_uri, logo_uri, contacts, client_secret_expires_at, sector_identifier_uri, jwks, jwks_uri, request_uris, token_endpoint_auth_method, request_object_signing_alg, userinfo_signed_...
drop table if exists sessions; drop table if exists sessions_attributes; create table sessions ( primary_id char(36) not null, session_id char(36) not null, creation_time bigint not null, last_access_time bigint not null, max_inactive_interval int not null, expiry_time bigint not null, principal_name varchar(25...
CREATE TABLE [dbo].[Invoices] -- As per UBL 2.2 Specs ( [Id] INT NOT NULL CONSTRAINT PK_Invoices__Id PRIMARY KEY, --[TenantId] INT NOT NULL INDEX IX_Invoices__TenantId([TenantId]) CONSTRAINT FK_Invoices__TenantId REFERENCES dbo.Tenants([Id]), [Number] NVARCHAR (50) NOT NULL CONSTRAINT [UQ_Invoices__Num...
create table messages ( message_id bigserial primary key , sender varchar not null , receiver varchar not null , contents varchar , is_read boolean default false );
--+ holdcas on; --cases from dev set system parameters 'string_max_size_bytes=1048576'; select space(8); select length(space(1048576)); select length(space(1048577)); set system parameters 'string_max_size_bytes=33554432'; select length(space('33554432')); select length(space('33554433')); select space('aaa'); -...
/* Navicat Premium Data Transfer Source Server : localhost Source Server Type : MariaDB Source Server Version : 100130 Source Host : localhost:3306 Source Schema : db_banbung Target Server Type : MariaDB Target Server Version : 100130 File Encoding : 65001 Date: 09/0...
<reponame>anjingbin/starccm -- -- TRIGGERS -- create table pkeys (pkey1 int4 not null, pkey2 text not null); create table fkeys (fkey1 int4, fkey2 text, fkey3 int); create table fkeys2 (fkey21 int4, fkey22 text, pkey23 int not null); create index fkeys_i on fkeys (fkey1, fkey2); create index fkeys2_i on fkeys2 (fkey2...
-- @testpoint: opengauss关键字drop(非保留),作为游标名,部分测试点合理报错 --前置条件 drop table if exists drop_test cascade; create table drop_test(cid int,fid int); --关键字不带引号-成功 start transaction; cursor drop for select * from drop_test order by 1; close drop; end; --关键字带双引号-成功 start transaction; cursor "drop" for select * from drop_test o...
<filename>sql/core/src/test/resources/sql-tests/inputs/inline-table.sql<gh_stars>100-1000 -- single row, without table and column alias select * from values ("one", 1); -- single row, without column alias select * from values ("one", 1) as data; -- single row select * from values ("one", 1) as data(a, b); -- single...
<filename>CSharp DB Fundamentals MSSQL/CSharpDBFundDataDefinitionAndDataTypes/CSharpDBFundDataDefinitionAndDataTypes/08.CreateTableUsers.sql USE Minions CREATE TABLE Users( Id BIGINT PRIMARY KEY IDENTITY, Username VARCHAR(30) UNIQUE NOT NULL, Password VARCHAR(26) NOT NULL, ProfilePicture VARBINARY(MAX), LastLogin...
CREATE TABLE IF NOT EXISTS `territory_registrations` ( `castleId` int(1) NOT NULL default '0', `registeredId` int(11) NOT NULL default '0', PRIMARY KEY (`castleId`,`registeredId`) );
<reponame>sulungistianti/sisfopenjualan<filename>abs.sql<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.8.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Dec 08, 2018 at 03:53 PM -- Server version: 10.1.32-MariaDB -- PHP Version: 7.2.5 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT...
version https://git-lfs.github.com/spec/v1 oid sha256:d8c30702a939d6369e70412998ee6cdfed9045f9cad9e5118287750a87276bdd size 198152759
SELECT pk_id AS t_id, tid, id, geometrie, name_nummer, art FROM gemgis.t_ele_trassepkt ;
-- 8/5/2021. SQL to build sabpq dataset around Europe PMC search for exosome -- between years 1990 and 2010. --CREATE s TABLE (I used command line) for \COPY \COPY public.europepmc_1990_2010_s FROM 'europepmc_1990_2010_ids.csv' WITH(FORMAT CSV, HEADER); --CREATE a TABLE (cites s) DROP TABLE IF EXISTS europepmc_exosom...
<filename>staff.sql<gh_stars>1-10 -- phpMyAdmin SQL Dump -- version 4.7.9 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Dec 20, 2018 at 08:26 PM -- Server version: 10.1.31-MariaDB -- PHP Version: 7.2.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zo...
<gh_stars>1-10 SELECT Name FROM STUDENTS WHERE Marks > 75 ORDER BY RIGHT(Name, 3), RIGHT(Name, 2), RIGHT(Name, 1), ID
-- laststmtchanges.test -- -- execsql { -- ROLLBACK; -- CREATE INDEX t3_i1 ON t3(a); -- BEGIN; -- DELETE FROM t3; -- SELECT changes(); -- } ROLLBACK; CREATE INDEX t3_i1 ON t3(a); BEGIN; DELETE FROM t3; SELECT changes();
create database if not exists my_database
# metal.sql # This script creates the initial version of the metal table used in # the strings chapter. DROP TABLE IF EXISTS metal; #@ _CREATE_TABLE_ CREATE TABLE metal ( name VARCHAR(20), PRIMARY KEY(name)); #@ _CREATE_TABLE_ # populate table INSERT INTO metal (name) VALUES ('gold'), ('iron'), ('...
SELECT o_ol_cnt, count(*) AS order_count FROM oorder WHERE exists (SELECT * FROM order_line WHERE o_id = ol_o_id AND o_w_id = ol_w_id AND o_d_id = ol_d_id AND ol_delivery_d >= o_entry_d) GROUP BY o_ol_cnt ORDER BY o_ol_cnt;
SELECT 'Upgrading Sentry store schema from 1.4.0 to 1.5.0' AS ' '; SOURCE 001-SENTRY-327.mysql.sql; SOURCE 002-SENTRY-339.mysql.sql; SOURCE 003-SENTRY-380.mysql.sql; SOURCE 004-SENTRY-74.mysql.sql; UPDATE SENTRY_VERSION SET SCHEMA_VERSION='1.5.0', VERSION_COMMENT='Sentry release version 1.5.0' WHERE VER_ID=1; SELECT '...
CREATE TABLE subscriptions ( id STRING, user_id INT, type STRING, start_date TIMESTAMP(3), end_date TIMESTAMP(3), payment_expiration TIMESTAMP(3), proc_time AS PROCTIME() ) WITH ( 'connector' = 'faker', 'fields.id.expression' = '#{Internet.uuid}', 'fields.user_id.expression' = '#{numbe...
<reponame>leandrocgsi/SpringBootPlayground<gh_stars>0 -- CREATE DATABASE `rest_with_spring_boot_udemy`; USE [rest_with_spring_boot_udemy] GO CREATE TABLE dbo.books ( [id] int NOT NULL IDENTITY, [author] varchar(max), [launch_date] datetime2(6) NOT NULL, [price] decimal(38,2) NOT NULL, [title] varchar(max), ...
<filename>quickstart/tpch-exp/tpch-test/tpch/21.sql explain analyze select s_name, count(*) as numwait from SUPPLIER, LINEITEM l1, ORDERS, NATION where s_suppkey = l1.l_suppkey and o_orderkey = l1.l_orderkey and o_orderstatus = 'F' and l1.l_receiptdate > l1.l_commitdate and exists(selec...
<gh_stars>1-10 ALTER TABLE DATICAL_ADMIN.posts MODIFY inserted_date CONSTRAINT test_notNull NOT NULL
<reponame>raviworkato/ravi_workato {% if not var("enable_custom_source_2") %} {{ config( enabled=false ) }} {% endif %} WITH source AS ( select * from {{ source('custom_source_2','s_accounts' ) }} ), renamed as ( SELECT concat('custom_2-',id) AS contact_id, cast(null as {{ dbt_utils.t...
<reponame>isuruuy429/product-ei<gh_stars>100-1000 insert into Files (fileName,type) values ('WSO2DSS','WSO2 Data Services Server'); insert into Files (fileName,type) values ('WSO2DAS','WSO2 Data Analytics Server'); insert into Files (fileName,type) values ('WSO2ML','WSO2 Machine Learner'); insert into Files (fileNam...
CREATE TABLE users ( id INTEGER NOT NULL PRIMARY KEY, name VARCHAR NOT NULL UNIQUE, email VARCHAR NOT NULL, password VARCHAR NOT NULL )
-- this is non-SRF returning record --create or replace function out_float8(out x float8, in a float8, out y float8[]) as $$ create or replace function out_float8(out x anyelement, in a anyelement, out y anyarray) as $$ # container: plc_r_shared list(a, rep(a, 3)) $$ language plcontainer; select * from out_float8(42.5)...
-- -- Script for migrating a BioSQL database from version 1.0.0 to 1.0.1. -- -- You DO NOT need this if you installed BioSQL v1.0.1 or later. This -- script will not check the installed version - if you run it on a -- newer version than 1.0.0 you may revert changes made in later -- versions. -- -- It is strongly recomm...
<reponame>Mavarice/POW-url -- ---------------------------------------------------------------------------- -- table: url CREATE TABLE url ( id INTEGER NOT NULL DEFAULT nextval('object_id_seq'::TEXT) PRIMARY KEY, code TEXT NOT NULL UNIQUE, url TEXT NOT NULL, LIKE bas...
:CONNECT SQL2K12-SVR3 SELECT category_no, category_desc FROM [CreditReporting].[dbo].[category]; GO :CONNECT SQL2K12-SVR1 INSERT [Credit].[dbo].[category] (category_desc) VALUES ('This is a Test'); GO -- Wait a few seconds :CONNECT SQL2K12-SVR3 SELECT category_no, category_desc FROM [CreditReporting].[dbo].[category...
<reponame>azhry/pariwisata360 -- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: 29 Mei 2018 pada 00.32 -- Versi Server: 10.1.16-MariaDB -- PHP Version: 7.0.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_...
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Dec 25, 2016 at 07:23 PM -- Server version: 10.1.10-MariaDB -- PHP Version: 7.0.4 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLI...
SELECT COUNT(*) FROM customers,orders,items WHERE customers.cid = orders.cid AND orders.oid = items.oid AND items.sku < '8888' AND items.quan = 100
<filename>Basic CRUD - Exercise/CRUD/9. Find Names of All Employees by Salary in Range.sql<gh_stars>0 SELECT FirstName , LastName , JobTitle FROM Employees WHERE Employees.Salary BETWEEN 20000 AND 30000
WHENEVER SQLERROR EXIT SQL.SQLCODE SET SCAN ON SET FEEDBACK OFF SET VERIFY OFF SET DEFINE ON DEFINE install_dir=&1 DEFINE logfile_name=&2 DEFINE schema_alias=&3 DEFINE schema_name=&schema_alias._MANAGER DEFINE schema_pwd=&4 DEFINE schema_tblsp=&5 DEFINE schema_temp_tblsp=&6 SPOOL &install_dir\&logfile...
-- Buffer a point in 4326 by n meters or miles, resulting in a polygon with n segments DELIMITER $$ DROP FUNCTION IF EXISTS wp_buffer_point_m$$ DROP FUNCTION IF EXISTS wp_buffer_point_mi$$ DROP FUNCTION IF EXISTS wp_buffer_point_real$$ CREATE FUNCTION wp_buffer_point_m(p POINT, radius FLOAT, segments INT) RETURNS PO...
-- -------------------------------------------------- -- Entity Designer DDL Script for SQL Server 2005, 2008, 2012 and Azure -- -------------------------------------------------- -- Date Created: 05/03/2018 14:53:27 -- Generated from EDMX file: C:\Users\mclemens\SVN-Projects\STP-Tool\trunk\TestSDK\Database\TestS...
SELECT spheres.loc, COUNT(spheres.loc) * 100.0 / 100000 FROM spheres LEFT JOIN (SELECT spheres.seed, spheres.sphere FROM [woth] LEFT JOIN spheres ON (spheres.seed = woth.seed AND spheres.item = woth.item) LEFT JOIN locations on spheres.loc = locations.loc WHERE woth.[item] = 'Bottle with Letter' AND locations.alw...
<filename>db/migrations/20210203014820_add_feed_fetch_limit.sql<gh_stars>1-10 -- +goose Up -- SQL in this section is executed when the migration is applied. ALTER TABLE "feeds" ADD "fetch_limit" integer DEFAULT 0; -- +goose Down -- SQL in this section is executed when the migration is rolled back. ALTER TABLE "feeds" ...
<filename>HemaDrillBook/HemaDrillBookDB/Data/OneTime/Fabris/Sources.Section.Part.27.sql<gh_stars>1-10 IF $(OneTimeLoad) = 1 BEGIN DECLARE @Section TABLE ( SectionKey int NOT NULL PRIMARY KEY, PartKey int NOT NULL, ParentSectionKey int NULL, SectionName nvarchar(250) NOT NULL, PageReference nvarchar(50) NULL, DisplayOr...
-- file:collate.sql ln:239 expect:true CREATE TABLE collate_test23 (f1 text collate mycoll2)
-- file:event_trigger.sql ln:318 expect:true alter table rewriteme add column onemore int default 0, add column another int default -1, alter column foo type numeric(10,4)
with ce as ( select ce.icustay_id , ce.charttime -- TODO: handle high ICPs when monitoring two ICPs , case when valuenum > 0 and valuenum < 100 then valuenum else null end as icp FROM `physionet-data.mimiciii_clinical.chartevents` ce -- exclude rows marked as error where (ce.error IS NULL OR ce.erro...
<reponame>dram/metasfresh<filename>backend/de.metas.adempiere.adempiere/migration/src/main/sql/postgresql/system/10-de.metas.adempiere/5567040_sys_gh9924_Mark_Invoice.Alocation_AD_Tab.IsAdvancedTab_False.sql<gh_stars>1000+ -- 2020-09-11T05:31:05.720Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPD...
<filename>DataBase/bd1.sql<gh_stars>1-10 CREATE USER adminjuez WITH PASSWORD '<PASSWORD>'; CREATE DATABASE judge; GRANT ALL PRIVILEGES ON DATABASE judge TO adminjuez;
select distinct candidate_moms.person_id as mom_person_id, candidate_moms.year_of_birth as mom_yob, candidate_babies.person_id as baby_person_id, candidate_babies.date_of_birth as baby_dob, ROW_NUMBER() OVER (PARTITION BY candidate_babies.person_id order by candidate_babies.person_id, ca...
<reponame>multiscripter/job4j<gh_stars>1-10 create table if not exists users ( id serial primary key, name varchar(64) not null, login varchar(64) not null, email varchar(128) not null, createDate date not null ) /* insert into users (name, login, email, createDate) values ('Путин', 'president', '<E...
Use Lab1 INSERT INTO Driver VALUES (1, '<NAME>', 2, '121-41-23'); INSERT INTO Driver VALUES (2, '<NAME>', 10, '666-69-666'); INSERT INTO School VALUES (1, 'Good school', 'high-school', 200); INSERT INTO School VALUES (2, 'Not good school', 'high-school', 1200); INSERT INTO Route VALUES (1, 1, 'No financing, you ar...
DROP TABLE IF EXISTS locations_service_points; CREATE TABLE locations_service_points AS SELECT service_points.data #>> '{}' AS service_point_id, isp.discovery_display_name AS service_point_discovery_display_name, isp."name" AS service_point_name, ll.location_id, ll.discovery_dis...
/* Navicat MySQL Data Transfer Source Server : 118.24.178.170_3306 Source Server Version : 50717 Source Host : 118.24.178.170:3306 Source Database : test Target Server Type : MYSQL Target Server Version : 50717 File Encoding : 65001 Date: 2019-06-18 17:39:44 */ SET ...
CREATE TABLE GSPANOTHER.INDEX_TEST2 ( INDEX_TEST2_ID NUMBER(18) NOT NULL , SUB_ID_1 NUMBER(18) NOT NULL , SUB_ID_2 NUMBER(18) NOT NULL ); COMMENT ON table GSPANOTHER.INDEX_TEST2 is 'INDEX_TEST2'; COMMENT ON column GSPANOTHER.INDEX_TEST2.INDEX_TEST2_ID is 'INDEX_TEST2_ID'; COMMENT ON column GSPANOTHER.INDEX_TEST2...
delimiter // use monotest // -- =================================== OBJECT NUMERIC_FAMILY ========================= -- TABLE : NUMERIC_FAMILY -- data with id > 6000 is not gaurenteed to be read-only. drop table if exists numeric_family; // create table numeric_family ( id int PRIMARY KEY NOT NULL, type_bit bit NULL...
SELECT substr(w_warehouse_name, 1, 20), sm_type, cc_name, sum(CASE WHEN (cs_ship_date_sk - cs_sold_date_sk <= 30) THEN 1 ELSE 0 END) AS `30 days `, sum(CASE WHEN (cs_ship_date_sk - cs_sold_date_sk > 30) AND (cs_ship_date_sk - cs_sold_date_sk <= 60) THEN 1 ELSE 0 END) AS `31 - 60 days...
insert into test (id, rank, title, synonyms, updated_at) values (1, 0, 'some title 1', ARRAY['some'], now()), (2, 0, 'some title 2', ARRAY['some'], now()) ; insert into test (id, rank, title, synonyms, updated_at) values (1, 0, 'some title 3', ARRAY['some'], now()); insert into test (id, rank, title, synonyms...
-- tests for \if ... \endif \if true select 'okay'; select 'still okay'; \else not okay; still not okay \endif -- at this point query buffer should still have last valid line \g
<reponame>Zhaojia2019/cubrid-testcases<filename>medium/_02_xtests/cases/numops.sql<gh_stars>1-10 autocommit off; evaluate 1.5 * 65.43; evaluate 0.0015 * 65.43; evaluate 0.0015 * 0.6543; evaluate 15.0 * 6543; evaluate 654.3 * 1500000.00; evaluate 1.5 / 65.43; evaluate 0.0015 / 65.43; evaluate 0.0015 / 0.6543; evaluate 1...
CREATE TABLE "AirlineSentiment_1"( "col_0" varchar(17) NOT NULL, "col_1" varchar(14) NOT NULL );
-- MySQL dump 10.13 Distrib 5.7.17, for Win64 (x86_64) -- -- Host: 127.0.0.1 Database: compare_hardisk_db -- ------------------------------------------------------ -- Server version 5.5.5-10.1.25-MariaDB /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHA...
drop table if exists weather; create table weather ( id integer primary key autoincrement, date timestamp, temperature float, humidity float, pressure float );
WITH RECURSIVE -- ... simulation_hands AS ( -- ... UNION ALL ( WITH -- ... simulation_hand_precalculations AS ( -- Remove the last card from each player's packet and determine -- what card will be played in opposition. SELECT player_index,...
USE `algo_trading`; CREATE TABLE `analysis` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `quotes_id` bigint(20) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
<gh_stars>0 /* Warnings: - You are about to drop the column `hex` on the `rarity` table. All the data in the column will be lost. - Added the required column `endHex` to the `rarity` table without a default value. This is not possible if the table is not empty. - Added the required column `startHex` to the `ra...
<reponame>SamuelRibeiroDevelop/ECA -- MySQL dump 10.13 Distrib 5.7.17, for Win64 (x86_64) -- -- Host: localhost Database: db_eca -- ------------------------------------------------------ -- Server version 5.7.21-log /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_R...
<filename>cpp_and_cs_2010/SqlServerCLR/SqlServerCLR/PreDeployScript.sql print 'enabling clr' exec sp_configure 'clr enabled', 1 go reconfigure go
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.0.5 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1:3306 -- Czas wygenerowania: 11 Wrz 2014, 11:44 -- Wersja serwera: 5.6.19-0ubuntu0.14.04.1 -- Wersja PHP: 5.5.7 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIEN...
SELECT * FROM ({% include 'complex/child.sql' %}) AS t1
<reponame>theonesp/vol_leak_index --------------------------------------------------------------- -- Queries the capleakmaster table, applying exclusion criteria --------------------------------------------------------------- WITH blood_colloid as ( SELECT admissionid FROM `physionet-data.amsterdamdb.drug...
SELECT * FROM `bananas` WHERE (color = '''red''');
ALTER TABLE AWARD_BUDGET_EXT MODIFY DOCUMENT_NUMBER VARCHAR(40);
CREATE TABLE IF NOT EXISTS `person` ( `id` INT UNSIGNED AUTO_INCREMENT, `name` VARCHAR(32) NOT NULL, `age` INT, `birthday` DATE, PRIMARY KEY (`id`) )ENGINE=InnoDB DEFAULT CHARSET=utf8;
<gh_stars>0 IF OBJECT_ID(N'[__EFMigrationsHistory]') IS NULL BEGIN CREATE TABLE [__EFMigrationsHistory] ( [MigrationId] nvarchar(150) NOT NULL, [ProductVersion] nvarchar(32) NOT NULL, CONSTRAINT [PK___EFMigrationsHistory] PRIMARY KEY ([MigrationId]) ); END; GO CREATE TABLE [Buildings]...
<gh_stars>0 CREATE TABLE IDN_BASE_TABLE ( PRODUCT_NAME VARCHAR2 (20), PRIMARY KEY (PRODUCT_NAME) ) / INSERT INTO IDN_BASE_TABLE values ('WSO2 Identity Server') / CREATE TABLE IDN_OAUTH_CONSUMER_APPS ( CONSUMER_KEY VARCHAR2 (512), CONSUMER_SECRET VARCHAR2 (512), ...
<reponame>Reference-Components/spring-boot-reference -- <#SCHEDULING> -- Creates tables used by Quartz, when job data is set to persist in database. CREATE TABLE QRTZ_CALENDARS ( SCHED_NAME VARCHAR(120) NOT NULL, CALENDAR_NAME VARCHAR (200) NOT NULL, CALENDAR IMAGE NOT NULL ); CREATE TABLE QRTZ_CRON_TRIGGERS ( ...
DROP TABLE IF EXISTS voices; DROP TABLE IF EXISTS dishes; DROP TABLE IF EXISTS restaurants; DROP TABLE IF EXISTS user_roles; DROP TABLE IF EXISTS users; DROP SEQUENCE IF EXISTS global_seq; CREATE SEQUENCE global_seq START WITH 100000; CREATE TABLE users ( id BIGINT GENERATED BY DEFAULT AS IDENTITY SEQUE...
<filename>phpems/phpems/phpems.sql<gh_stars>1-10 /* Navicat MySQL Data Transfer Source Server : localhost_3306 Source Server Version : 50554 Source Host : localhost:3306 Source Database : 777 Target Server Type : MYSQL Target Server Version : 50554 File Encoding : 65001 ...