blob_id
stringlengths
40
40
language
stringclasses
1 value
repo_name
stringlengths
5
133
path
stringlengths
3
276
src_encoding
stringclasses
33 values
length_bytes
int64
23
9.61M
score
float64
2.52
5.28
int_score
int64
3
5
detected_licenses
listlengths
0
44
license_type
stringclasses
2 values
text
stringlengths
23
9.43M
download_success
bool
1 class
ac7e9c6e82374d75e6ccabb9f59bb7ac5ad61e1a
SQL
GaberRB/Oracle_Script_Tuning_InsertBindVariebles
/Bind_varibles.sql
ISO-8859-1
1,017
3.640625
4
[]
no_license
--criar tabela teste CREATE TABLE PRODUTO_TESTE( ID_PRODUTO NUMBER(9), NOME_PRODUTO VARCHAR2(30) ) ; --criao da procedure CREATE OR REPLACE PROCEDURE PKG_PRODUTO_TESTE AS ID_PRODUTO NUMBER(9); NOME_PRODUTO VARCHAR2(30); start_time PLS_INTEGER :=0; stop_time PLS_INTEGER :=0; total_time PLS_INT...
true
19ad538f8d2548f74e927abac4e99ff0f0cca2d2
SQL
rushitadubal24/gkb-core-employee
/curddatabase.sql
UTF-8
1,618
3
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Sep 22, 2021 at 05:27 AM -- Server version: 10.4.11-MariaDB -- PHP Version: 7.2.29 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
true
68a1757882b53529f08c449669d415641fe29dc9
SQL
kingcoconut/slypAPI
/sql/expose_friends.sql
UTF-8
518
4.125
4
[]
no_license
use slyp_alpha; select u.id, u.email, count(distinct scm.id) from ( select scu.slyp_chat_id, scu.last_read_at from slyp_chats sc join slyp_chat_users scu on (sc.id = scu.slyp_chat_id) where scu.user_id = 2 and sc.slyp_id=1 ) x join slyp_chat_users scu on (scu.slyp_chat_id = x.slyp_chat_id and scu.user_id <> 2...
true
85ea5dc77ac5a4586bbd763a2164daa7624541d1
SQL
praveshphp/cakephpA
/DBBackup/liveDB_20150114_1908.sql
UTF-8
5,114
2.734375
3
[]
no_license
-- MySQL dump 10.13 Distrib 5.5.40, for debian-linux-gnu (i686) -- -- Host: localhost Database: cakephpA -- ------------------------------------------------------ -- Server version 5.5.40-0ubuntu0.12.04.1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CH...
true
08b6e6f784dd4a02206afa45683e211ba696d5cd
SQL
aleksander-GD/brewSoft_v2
/brewsoft/mvc/app/core/migration.sql
UTF-8
8,690
3.53125
4
[ "MIT" ]
permissive
DROP SCHEMA if exists brewSoftDBTest cascade; CREATE SCHEMA if not exists brewSoftDBTest; SET search_path = brewSoftDBTest; Create Table BreweryMachine ( BreweryMachineID serial Primary Key, Hostname VARCHAR (255), Port int, Running BOOL DEFAULT 'false' ); Create table ProductionList( ProductionL...
true
ee0fefd786b7dfb8091bef97a09f4814ffadbbdc
SQL
samuelkubai/tinyurl
/infra/migrations/init.sql
UTF-8
151
2.53125
3
[]
no_license
CREATE TABLE IF NOT EXISTS codes ( code VARCHAR(10) PRIMARY KEY, destination TEXT NOT NULL, created_at TIMESTAMP NOT NULL DEFAULT now() );
true
5a2377b968b2df085e59dd7aab5e58cc7c760520
SQL
brg-ib/inscriptionsSportives
/Documentation/table.sql
UTF-8
2,981
3.578125
4
[]
no_license
#------------------------------------------------------------ # Script MySQL. #------------------------------------------------------------ #------------------------------------------------------------ # Table: Candidat #------------------------------------------------------------ CREATE TABLE Candidat( ...
true
84c3e7496787a8f2e421df7f9c37314297857b83
SQL
sibenye/naijaskillhub-api-ci
/db_init_scripts/naijaskillhubdb_nsh_usersessions.sql
UTF-8
2,524
2.984375
3
[]
no_license
CREATE DATABASE IF NOT EXISTS `naijaskillhubdb` /*!40100 DEFAULT CHARACTER SET utf8 */; USE `naijaskillhubdb`; -- MySQL dump 10.13 Distrib 5.6.17, for Win64 (x86_64) -- -- Host: localhost Database: naijaskillhubdb -- ------------------------------------------------------ -- Server version 5.5.8 /*!40101 S...
true
31d725ef080232d412882e99a3aa97ff920d9fe3
SQL
apache/subversion
/subversion/libsvn_wc/wc-checks.sql
UTF-8
11,953
3.75
4
[ "BSD-3-Clause", "LicenseRef-scancode-generic-cla", "LicenseRef-scancode-other-permissive", "X11", "BSD-2-Clause", "LicenseRef-scancode-unknown-license-reference", "MIT", "HPND-Markus-Kuhn", "LicenseRef-scancode-unicode", "Apache-2.0", "FSFAP" ]
permissive
/* wc-checks.sql -- trigger-based checks for the wc-metadata database. * This is intended for use with SQLite 3 * * ==================================================================== * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE f...
true
7b288baa0370e70828d47390fe1c45a02e8122c5
SQL
danieldiamond/gitlab-analytics
/transform/snowflake-dbt/models/sources/sheetload/sheetload_marketing_pipe_to_spend_headcount_source.sql
UTF-8
326
2.609375
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
WITH source AS ( SELECT * FROM {{ source('sheetload', 'marketing_pipe_to_spend_headcount') }} ), renamed AS ( SELECT date_month::DATE AS date_month, pipe, headcount::FLOAT AS headcount, salary_per_month::FLOAT AS salary_per_month FROM source ) SELECT * FROM re...
true
834899b6a2b3ffb316472994f2a18128bf0b9243
SQL
nahmed23/lifetime_DataOps.OnPrem
/lifetime_DataOps.OnPrem/dbo/Views/vClubActivityAreaMemberUsage.sql
UTF-8
226
2.796875
3
[]
no_license
CREATE VIEW dbo.vClubActivityAreaMemberUsage AS SELECT ClubActivityAreaMemberUsageID,ClubID,ValActivityAreaID,MemberID,UsageDateTime,UTCUsageDateTime,UsageDateTimeZone FROM MMS.dbo.ClubActivityAreaMemberUsage WITH(NOLOCK)
true
f0180927ff35b3aec37f28e7a34cddbfe774c3bf
SQL
syntacs-coetus/stgaming_samp
/stgaming_samp.sql
UTF-8
10,252
3.328125
3
[]
no_license
CREATE DATABASE IF NOT EXISTS stgaming_samp; USE stgaming_samp; CREATE TABLE IF NOT EXISTS `stg_chardet` ( `pid` int PRIMARY KEY, `posx` float(16, 5) NOT NULL, `posy` float(16, 5) NOT NULL, `posz` float(16, 5) NOT NULL, `posa` float(16, 5) NOT NULL, `posint` smallint DEFAULT 0, `posvw` smallint DEFAULT ...
true
bd04a2c4e5faa693f13d709fa733a27b22df5011
SQL
profchiso/webcam-login
/database.sql
UTF-8
318
2.875
3
[ "MIT" ]
permissive
CREATE TABLE `user` ( `personId` varchar(36) NOT NULL, `faceId` varchar(36) NOT NULL, `name` varchar(64) NOT NULL, `email` varchar(64) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; ALTER TABLE `user` ADD PRIMARY KEY (`personId`), ADD UNIQUE KEY `faceId` (`faceId`), ADD UNIQUE KEY `email` (`email`);
true
a588804a685733f44c3e46fb3f7ce7115f6e1450
SQL
hiren018/Training-Aug-21
/SQL/Hiren Sanghani/Additional_Assignment/assignment1.sql
UTF-8
1,558
4.4375
4
[]
no_license
/* List Names of Customers who are Depositors and have Same Branch City as that of SUNIL */ SELECT Cname FROM Customer WHERE Cname IN (SELECT Cname FROM Deposit WHERE Bname IN (SELECT Bname FROM Branch WHERE CITY = (SELECT CITY FROM Branch WHERE Bname = (SELECT Bname FROM Deposit WHERE Cname = 'SUNIL')))) /*List ...
true
25464f58c34baf8a5042e2fd85af11ec6b8735cb
SQL
cainiaozizi/CS6400_Shelter_Project
/SQLData/8.sql
UTF-8
2,388
4.40625
4
[ "MIT" ]
permissive
USE cs6400_su20_team07_final; -- view for dog dashboard CREATE OR REPLACE VIEW dashboardView AS SELECT d.dog_ID, d.dog_name, b.breed_name, d.sex, d.alteration_status, PERIOD_DIFF(EXTRACT(year_month from CURDATE()), EXTRACT(year_month from d.date_of_birth)) as age, d.adoptability_status, d.surrender_date FROM Dog...
true
8cc0c8ea25902c1d9bbd5fbdfc5582044410c2fd
SQL
pagotarane/program_for_reffer
/mysql/Demo/L8/p7.sql
UTF-8
244
2.890625
3
[]
no_license
-- wamp to check if the given string is palindrome delimiter $$ drop procedure if exists p7 $$ create procedure p7(str varchar(100)) begin if reverse(str)=str then select 'yess' as MSG; else select 'oh noooo' MSG; end if; end $$ delimiter ;
true
24836c6eeaf88502c9c10894d959d82a6323872a
SQL
martinschmitz77/Compustat
/PostGreSQL/CSTAT_Common_Equity_Tangible_On_A_Quarterly_Basis_In_XF.sql
UTF-8
793
3.3125
3
[]
no_license
/*********************************************************************************************** Returns Compustat Common Equity Packages Required: Core Core 2 Core History Core Prelim Standardized Universal Identifiers: GVKEY Primary Columns Used: datadate datafmt gvkey indfmt Database_Type: POSTGRESQL Query_Vers...
true
ce99c178b25ffb6e1fd5c7ff0bda0e16f24e00c2
SQL
yunusemrebaloglu/proje1
/proje1/isim.sql
UTF-8
3,894
3.453125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.5.2 -- http://www.phpmyadmin.net -- -- Anamakine: localhost -- Üretim Zamanı: 21 Ara 2016, 20:17:08 -- Sunucu sürümü: 10.1.19-MariaDB -- PHP Sürümü: 5.6.24 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIE...
true
f2f454770851b35ebbfa1bc0cde125215d8714a1
SQL
szkonopka/advanced-databases
/phase5/2.6/2.6.sql
UTF-8
1,642
3.5625
4
[]
no_license
ALTER SYSTEM FLUSH BUFFER_CACHE; ALTER SYSTEM FLUSH SHARED_POOL; SET AUTOTRACE TRACEONLY STATISTICS; TIMING START no_col_tables; alter table sales_outlet_target drop constraint FK_SALES_TARGET_SALES_OUTLET_ID; alter table sales_receipt drop constraint FK_SALES_RECEIPT_SALES_OUTLET_ID; alter table customer drop con...
true
53e39cdb6ab8962271581de1888e385d240b68bc
SQL
SimonaCalentir79/FinalApp
/SQL files/SCHOOLJOURNAL_CreareBD.sql
UTF-8
3,069
3.828125
4
[]
no_license
--DROP TABLE UserAccount; --DROP TABLE Timetable; --DROP TABLE TermReport; --DROP TABLE Homework; --DROP TABLE Grade; --DROP TABLE Course; --DROP TABLE Semester; --DROP TABLE Student; --DROP TABLE Teacher; CREATE TABLE Teacher ( TeacherID INT IDENTITY(1,1) PRIMARY KEY, TeacherName VARCHAR(150) NOT NULL, TeacherEmai...
true
74b309b0bb849a6f3e0ed763d80f8ac8e0aee370
SQL
fellipe-s-brandao/Estudos-php
/paginas/bd/bd_noticias.sql
UTF-8
2,915
3.328125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Tempo de geração: 30/07/2021 às 18:32 -- Versão do servidor: 10.4.20-MariaDB -- Versão do PHP: 8.0.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLI...
true
f84c2db122076da1a6693cf2c4b964c0e036992a
SQL
pham-van-ha/Pham_Van-Ha_1851061760
/cv_bt.sql
UTF-8
7,123
3.125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.3 -- https://www.phpmyadmin.net/ -- -- Máy chủ: 127.0.0.1 -- Thời gian đã tạo: Th1 17, 2021 lúc 06:54 PM -- Phiên bản máy phục vụ: 10.4.14-MariaDB -- Phiên bản PHP: 7.2.34 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHAR...
true
997c9bcb21b542858cd4eec773d00f8579978650
SQL
erickgordo64/backend-mia-1s2021
/oracle/trigger insert usuario.sql
UTF-8
575
3.109375
3
[]
no_license
create or replace TRIGGER Registro BEFORE INSERT OR UPDATE ON usuario FOR EACH ROW declare USUARIOT varchar2(50); BEGIN BEGIN select COUNT(username) INTO USUARIOT FROM usuario WHERE username = :new.username; END; IF INSERTING THEN if (USUARIOT>0) then RAISE_APPLICATION_ERROR(-20000, 'El usuario ya existe'); elsif not ...
true
a05a300192e99b5700b27bf0cd46a5bc25ca3b99
SQL
nationalarchives/tdr-consignment-api-data
/lambda/src/main/resources/db/migration/V44__add_file_parent_details.sql
UTF-8
467
3.1875
3
[ "LicenseRef-scancode-proprietary-license", "MIT" ]
permissive
-- Alter the table and add the columns to support storing folder structure -- Subsequent migration will make make the information required once it is being added by the API ALTER TABLE "File" ADD COLUMN "FileType" text, ADD COLUMN "FileName" text, ADD COLUMN "ParentId" uuid ; -- save the changes COMMIT ; -- O...
true
bf830bde254636f8232639b0162382c5f4e456c6
SQL
HrishikeshThombare/EventMS
/DATABASE/event.sql
UTF-8
1,521
2.75
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.6.5.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Apr 17, 2017 at 10:16 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=@@...
true
f0fdda927f63eb32672a03442bbb4bffc238b2a7
SQL
NacerSebtiMS/Hotel-Reservation
/HotelReservation/HotelQueries.sql
UTF-8
5,154
4
4
[ "MIT" ]
permissive
use HotelTSG; /* 1 Write a query that returns a list of reservations that end in July 2023, including the name of the guest, the room number(s), and the reservation dates. */ select guests.FirstName, guests.LastName, rooms.RoomNumber, reservation.StartDate, reservation.EndDate from guests inner join reservation on gu...
true
f971fa8f4cd1db7436d9eb085b9071ef99f5c563
SQL
ken-fyfe/BootcampX
/4_queries/cohortWithLongestAssistances.sql
UTF-8
705
3.90625
4
[]
no_license
SELECT cohorts.name, avg(completed_at - started_at) as average_assistance_time FROM assistance_requests JOIN students ON students.id = assistance_requests.student_id JOIN cohorts ON cohorts.id = cohort_id GROUP BY cohorts.name ORDER BY average_assistance_time DESC LIMIT 1; -- I attempted this with nested select statem...
true
354ad1f7e79f2c5f7821cbbd988f916d67ff27fe
SQL
pmizerani/craftbeer
/database/craftbeer.sql
UTF-8
1,543
3.1875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.4 -- https://www.phpmyadmin.net/ -- -- Host: db -- Tempo de geração: 06/04/2019 às 19:29 -- Versão do servidor: 10.3.12-MariaDB-1:10.3.12+maria~bionic -- Versão do PHP: 7.2.13 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; ...
true
05d4ada15083b82ad6abafaae908340bd64e6433
SQL
marcolbx/ProyectoBDII
/pruebas_blob.sql
UTF-8
1,567
3.203125
3
[]
no_license
-- Blob upload by : https://community.oracle.com/message/14603283#14603283 -- 2da forma: http://sureshvaishya.blogspot.com/2009/08/insert-blob-image-file-into-database.html --3era forma: https://dba.stackexchange.com/questions/120765/updating-blob-columns CREATE or replace DIRECTORY MY_DIR AS 'C:\Users\Veronic...
true
35b1ecbd9bacd4ae28c108280d6cc3a340b9c115
SQL
YegorKost/javaHW6
/create.sql
UTF-8
1,079
3.609375
4
[]
no_license
CREATE TABLE car ( car_id SERIAL NOT NULL, date date, make CHARACTER VARYING, model CHARACTER VARYING, price NUMERIC, CONSTRAINT car_pkey PRIMARY KEY (car_id) ); CREATE TABLE service_station ( service_station_id SERIAL NOT NULL, address CHARACTER VARYING, CONSTRAINT service_station_pkey PRIMARY KEY (...
true
988a07de72616db5230ba77ba26c96c165cca059
SQL
alena195101/Laboratoy-Work--PostgreSQL
/5_insert_update_delete.sql
UTF-8
1,803
4.4375
4
[]
no_license
--1) Давайте создадим и заполним таблицу по поставкам в разрезе дней и складов: -- Дата, Склад, Сумма руб., Объем м3, Число разных товаров create table inc (ddate date,STORAGE TEXT, summ DECIMAL(18,4), valume int, count_goods int); insert into inc(ddate, STORAGE, summ, valume, count_goods) select income.ddate, stora...
true
b2ead518ce3ac0912762725f3b5a6963eac6609d
SQL
shkr91960/forum
/user.sql
UTF-8
2,289
3.015625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.2.11 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: May 15, 2015 at 08:25 PM -- Server version: 5.6.21 -- PHP Version: 5.6.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; ...
true
71d0e2b96bc73b36d32b68163fb6622dcdba706d
SQL
yffu/hosp_comp
/clean/normalize.sql
UTF-8
999
3.5
4
[]
no_license
select * from newhgi; alter table newhgi drop column address2, drop column address3; select * from newhgi where location1 != ''; alter table newhgi drop column location1; select * from newhgi; select distinct hospitaltype from newhgi; select distinct h.HospitalOwner from newhgi h; -- normalize the hospital gener...
true
218eb7ae4b64574f3e3440bdca36b6ae4afd8a84
SQL
HumnResources/CS50
/pset7/movies/5.sql
UTF-8
154
3.203125
3
[]
no_license
-- Display all Harry Potter film names | year in cronological order -- SELECT title, year FROM movies WHERE title LIKE 'Harry Potter%' ORDER BY year ASC;
true
cf9c7568c00d3f9b77b8e55e2298cb019e3152fe
SQL
tranSMART-N/tranSMART-N_ETL
/ETL-Pipelines/Database/TM_CZ/DML/CZX_END_AUDIT.sql
UTF-8
789
3.109375
3
[]
no_license
CREATE OR REPLACE PROCEDURE TM_CZ.CZX_END_AUDIT(BIGINT, CHARACTER VARYING(100)) RETURNS INTEGER LANGUAGE NZPLSQL AS BEGIN_PROC DECLARE P_JOB_ID ALIAS FOR $1; P_JOB_STATUS ALIAS FOR $2; v_end_date TIMESTAMP; BEGIN select now() into v_end_date; UPDATE TM_CZ.CZ_JOB_MASTER SET ACTIVE='N', END_DATE = v_end_d...
true
a0059d0f71b162dc740aa49ac0d94dacc843a57a
SQL
ret0/Wikipedia-Article-Links
/db_scripts/page_link_revisions_2011-06-27.sql
UTF-8
2,958
3.359375
3
[]
no_license
# Sequel Pro dump # Version 2492 # http://code.google.com/p/sequel-pro # # Host: 18.111.7.226 (MySQL 5.5.13) # Database: page_link_revisions # Generation Time: 2011-06-27 10:50:03 -0400 # ************************************************************ /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!4...
true
32499ae055c1f5f214333e1419e8525d05354bc9
SQL
Viktoraparra/SistemaTiendaElectro
/SistemaTiendaElectro/src/main/java/ar/org/centro8/curso/java/sql/InsercionDatos.sql
UTF-8
3,818
2.765625
3
[]
no_license
-- Datos Usuarios insert into Usuarios values (1,'Pedro','Carmona','Pedroca','pedrocar','Administrador'), (2,'Jose','Cabrera','josecabre','josecabre','Administrador'), (3,'Roberto','Perez','robertop','robertop','Empleado'), (4,'Marcelo','Pompillo','Marcelopompi','mpompillo','Empleado'), (5,'Anibal','Alfaro','An...
true
4457511c106a41b027d7f2b037d15fd6c835e2c4
SQL
scott-anderson-wc/minerva
/sql/meals-outside-mealtimes.sql
UTF-8
784
3.90625
4
[]
no_license
-- It sometimes happens that we identify a meal (carbs and insulin -- within +/- 30 minutes) that is after 9pm or before 6am. This query -- identifies those select count(*) from insulin_carb_smoothed where carb_code = 'before6' or carb_code = 'after9'; select rtime,carbs from insulin_carb_smoothed where carb_code = '...
true
d2ef29f22f220aafe54f3e52c032fc85eb5679b8
SQL
bporcelli/sbuify
/database/sql/create_views.sql
UTF-8
499
4
4
[]
no_license
DROP VIEW IF EXISTS playlist_albums; CREATE VIEW playlist_albums AS SELECT ps.playlist_id, s.album_id, MIN(ps.date_saved) AS date_saved FROM playlist_songs ps, song s WHERE ps.song_id = s.id GROUP BY playlist_id, album_id; DROP VIEW IF EXISTS playlist_artists; CREATE VIEW playlist_artists AS SELECT ps.playlist_...
true
fa74a412ec509702cf2e2bf0f612a7734a2ff696
SQL
TCNorris/pvslib
/Hypatheon-1.2/sql/Public.sql
UTF-8
14,055
3.921875
4
[ "LicenseRef-scancode-us-govt-public-domain", "LicenseRef-scancode-unknown-license-reference" ]
permissive
/* Copyright (c) 2012 United States Government as represented by the National Aeronautics and Space Administration. No copyright is claimed in the United States under Title 17, U.S.Code. All Other Rights Reserved. The software in this package has been released as open-source software under the...
true
106def1b5a207dc6ffe874eb44d48c6863007fa3
SQL
udhos/btick
/scripts/table.sql
UTF-8
283
2.953125
3
[ "MIT" ]
permissive
DB_REAL=1 DB_USER=tickets DB_PASS=tickets1 DB_HOST=host:8080 DB_NAME=tickets go run main.go mysql -u tickets -ptickets1 -h host -P 8080 -D tickets use tickets; CREATE TABLE ticket_table ( user VARCHAR(100) NOT NULL, ticket VARCHAR(100) NOT NULL, PRIMARY KEY (user) );
true
88fb82fe34148d2ccbecb5eca8fdd1b049cfe019
SQL
aratodana/foto
/database_init/PHOTOSITE_PRIVATE.sql
UTF-8
1,878
3.1875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Gép: localhost -- Létrehozás ideje: 2019. Nov 02. 10:17 -- Kiszolgáló verziója: 10.1.36-MariaDB -- PHP verzió: 7.2.10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
fa0e2da4f137bad981936750ed946d6622753585
SQL
alexferreiragpe/Sig
/Dados/totalprodutos.sql
UTF-8
304
3.125
3
[]
no_license
select distinct Id_Produto,sum(qtde) as total from produto group by Id_Produto; Update Produto set Produto.Qtde=(select distinct Id_Produto,sum(qtde) from produto group by Id_Produto)+itensnotafiscal.quantidade from Produto inner join ItensNotaFiscal on Produto.Id_Produto=ItensNotaFiscal.Id_Produto
true
fb611ebfcf93c96e91abe07a219463dacba224cc
SQL
ryanneary/php-mysql-docker-example
/service/mysql/init/001.schema.sql
UTF-8
333
3.234375
3
[]
no_license
CREATE DATABASE `app`; USE `app`; CREATE TABLE `user` ( `id` VARCHAR(64) NOT NULL COMMENT 'Permanent identifier', `username` VARCHAR(50) NOT NULL COMMENT 'Changeable username', `created_datetime` DATETIME NOT NULL COMMENT 'When the user was created', PRIMARY KEY (`id`), UNIQUE KEY `username` (`username`) ) CO...
true
9fdeb15794e2efe30cb50fcf703f920bd2eeeb32
SQL
ddanhs/336_DB_FinalProj
/Q1to3.sql
UTF-8
1,075
3.953125
4
[]
no_license
USE PROJ4; /**SELECT DISTINCT start_station_id AS 'STATION' , start_station_name AS 'NAME', start_station_latitude AS 'LATITUDE', start_station_longitude AS 'LONGITUDE' FROM citi ORDER BY STATION;**/ /**SELECT start_station_id AS 'STATION', MAX(tripduration) AS 'MAX DURATION' , MIN(tripduration) AS 'MIN DURATI...
true
d2c197fb1a8881f43adfc79aad2406edc30c3f1f
SQL
filipv11/edunova
/vjezba-samostanjp21.sql
UTF-8
2,583
3.5
4
[]
no_license
drop database if exists samostanjp21; create database samostanjp21; use samostanjp21; create table svecenik( sifra int not null primary key auto_increment, ime varchar(50) not null, prezime varchar(50) not null, dekan int not null, posao int not null ); create table posao( sifra i...
true
ba771015415fa372d6351b17a35d60184d652fa2
SQL
silence-do-good/stress-test-Postgres-and-MySQL
/dump/high/day17/select0123.sql
UTF-8
191
2.765625
3
[]
no_license
SELECT timeStamp, temperature FROM ThermometerObservation WHERE timestamp>'2017-11-16T01:23:00Z' AND timestamp<'2017-11-17T01:23:00Z' AND SENSOR_ID='7e9f8d39_8011_4808_9428_b6e23f99263d'
true
14b3171ac71364823407b7148cdb43ebbf7cdc11
SQL
NTXpro/NTXbases_de_datos
/DatabaseNTXpro/ERP/Stored Procedures/Procs2/Usp_Upd_TransformacionServicio.sql
UTF-8
536
2.78125
3
[]
no_license
 CREATE PROC ERP.Usp_Upd_TransformacionServicio @IdTransformacionServicio INT, @Nombre VARCHAR(250), @Descripcion VARCHAR(250), @Flag BIT, @FlagBorrador BIT, @UsuarioModifico VARCHAR(250) AS BEGIN UPDATE Maestro.TransformacionServicio SET Nombre = @Nombre, Descripcion = @Descripcion, Flag ...
true
49b147d0bde2cff9bc638b751d107466c6e0b1b3
SQL
NYMRAZE/erp_project
/frontend-api-develop/internal/platform/db/migrations/20191107041223_alter_add_column_users_table.up.sql
UTF-8
255
2.921875
3
[ "MIT" ]
permissive
alter table users add column email_for_update varchar(100); alter table users add column update_email_code text; alter table users add column update_email_code_expired_at timestamp; create index index_users_update_email_code on users (update_email_code);
true
89d640be6a1ef5b830f6279f1d9ce7744f354fdf
SQL
samiuljahan/proj_ddb_suse17
/Test/PARSELS1T.SQL
UTF-8
813
3.0625
3
[]
no_license
set echo on; alter session set nls_language = english; alter session set nls_date_format = 'DD-MON-YYYY'; alter session set nls_date_language = english; /* SELECT ONE TUPLE */ SELECT * FROM FLUGLINIE WHERE FLC = 'BA'; /* SELECT FROM ONE PARTITION */ SELECT FLC, NAME, LAND FROM FLUGLINIE WHERE NAME = 'United Airline...
true
580e07487fa3f3e44bcb87d6b205135450e01e43
SQL
cssat/sql_dev
/annie/annie/prtl/Stored Procedures/build_ia_trends_cache.sql
UTF-8
4,213
3.609375
4
[]
no_license
CREATE PROCEDURE [prtl].[build_ia_trends_cache] AS TRUNCATE TABLE prtl.ia_trends_cache IF EXISTS ( SELECT * FROM sys.indexes i WHERE name = 'idx_ia_trends_cache' AND object_id = OBJECT_ID('prtl.ia_trends_cache') ) DROP INDEX idx_ia_trends_cache ON prtl.ia_trends_cache IF EXISTS ( SELECT * FROM sys.in...
true
feab731135606d66073db363fa6191e6a688ceeb
SQL
fenago/Oracle12cCourse
/ora12labs/cr8external.sql
UTF-8
512
2.59375
3
[]
no_license
CREATE TABLE STAFF_EXTERNAL ( ID NUMBER(4), NAME CHAR(11), DEPT NUMBER(4), JOB CHAR(5), SALARY NUMBER(7,2) ) ORGANIZATION EXTERNAL ( type oracle_loader DEFAULT DIRECTORY STAFF_LOAD ACCESS PARAMETERS ( RECORDS FIXED 50 badfile staff_load: 'staff_ext.bad' logfile staff_load:'staff_ext.log' FIELDS...
true
74d84794e0789ef63fb86e9e81319bba7570293e
SQL
CUBRID/cubrid-testcases
/sql/_12_mysql_compatibility/_03_string_functions/cases/_q2006_left.sql
UTF-8
797
3.09375
3
[ "BSD-3-Clause" ]
permissive
SELECT LEFT('''''''', 3) from db_root; SELECT LEFT('''''''', '3') from db_root; SELECT LEFT('''''''', CHAR_LENGTH('333') | 1) from db_root; SELECT LEFT('''''''', FIELD('ej', 'Hej', 'ej', 'Heja', 'hej', 'foo') ) from db_root; SELECT LEFT('''''''', FIELD('ej', 'Hej', 'ej', 'Heja', 'hej', 'foo') | 1) from db_root; SELECT ...
true
d9855da77f2f3af15f32a5accbebaece96dccbef
SQL
panan2215/PublicProjects
/CuriousDrive/CuriousDriveWebService/src/main/resources/SQLScripts/User/getUsersByUserGroupId.sql
UTF-8
192
3.375
3
[]
no_license
SELECT SU.* FROM tran_user_group UG INNER JOIN tran_user_group_detail UGD ON UGD.USER_GROUP_ID = UG.USER_GROUP_ID INNER JOIN sys_user SU ON SU.USER_ID = UGD.USER_ID WHERE UG.USER_GROUP_ID = ?
true
d96ee8fd5d8943fbc419c9e254a8ef1cbeae5585
SQL
wachino/codefights-arcade-databases
/83_battleshipGameResults/solution.sql
UTF-8
565
3.390625
3
[ "MIT" ]
permissive
/*Please add ; after each select statement*/ CREATE PROCEDURE battleshipGameResults() BEGIN SELECT size, SUM(hits=0) AS undamaged, SUM(hits > 0 AND hits < size) AS partly_damaged, SUM(hits = size) AS sunk FROM (SELECT *, (bottom_right_x - upper_left_x + 1 ) * (bottom_right_y - upper_left_y + 1) AS size, (SELECT CO...
true
3b49f762ad44fe7316c9152727911fcd40d98c20
SQL
skmbw/vteba-batch
/vteba-batch/src/main/resources/tianxun_user.sql
UTF-8
5,737
3.453125
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : localhost Source Server Version : 50711 Source Host : localhost:3306 Source Database : tianxun_user Target Server Type : MYSQL Target Server Version : 50711 File Encoding : 65001 Date: 2016-03-21 09:09:40 */ SET FOREIGN...
true
ea3a693a1bf87e840addcbe7cae5368e3d6925c4
SQL
hasanbasri2307/inventory_pgn
/db_eximp.sql
UTF-8
14,282
3.28125
3
[ "MIT" ]
permissive
/* Navicat MySQL Data Transfer Source Server : 192.168.33.10 Source Server Version : 50547 Source Host : 192.168.33.10:3306 Source Database : db_eximp Target Server Type : MYSQL Target Server Version : 50547 File Encoding : 65001 Date: 2016-05-24 00:29:23 */ SET FOREIGN_KEY_CHECKS...
true
a1739a6836606971bd470cc79bbe6c39b3a0d8b5
SQL
njmube/facturacion
/sql/factura_ordenador.sql
UTF-8
6,766
3.15625
3
[]
no_license
-- MySQL dump 10.13 Distrib 5.5.37, for Win64 (x86) -- -- Host: localhost Database: factura_ordenador -- ------------------------------------------------------ -- Server version 5.5.37 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS ...
true
94f9b43d3438ae38222ed0c80e338fe15ccc0928
SQL
junchaofan/College_Test
/JAVA/mysql.sql
UTF-8
5,338
2.890625
3
[]
no_license
DROP TABLE IF EXISTS `T_GLXX`; DROP TABLE IF EXISTS `T_DZXX`; DROP TABLE IF EXISTS `T_TSXX`; DROP TABLE IF EXISTS `T_JYXX`; DROP TABLE IF EXISTS `T_HSXX`; CREATE TABLE `T_GLXX` ( `GLZH` char(6), `GLMM` char(6) NOT NULL, `GLDH` char(13) NOT NULL, `GLMC` char(20) NOT NULL, PRIMARY KEY (`GLZH`) ) ENGINE=I...
true
b7d70736751c11e3fa4d04045f80ea9e23ab0aa9
SQL
dbaruahtcd/GENIE
/sql/doctor_info.sql
UTF-8
919
3.015625
3
[]
no_license
/*This table will store all the information related the doctor */ /*This table will store all the information related the doctor */ DROP TABLE IF EXISTS DOCTOR_INFO; CREATE TABLE IF NOT EXISTS DOCTOR_INFO( FIRST_NAME CHARACTER VARYING(30) NOT NULL, LAST_NAME CHARACTER VARYING(30) NOT NULL, QUALIFICATION...
true
b3d7522b15915f5bc7ec855e7de32f904c86388d
SQL
GlobalFishingWatch/pipe-events
/assets/postgres/index.j2.sql
UTF-8
872
3.484375
3
[ "Apache-2.0" ]
permissive
-- Setup constraints and indices CREATE INDEX {{ table_name }}_event_id ON public.{{ table_name }} (event_id); CREATE INDEX {{ table_name }}_event_type ON public.{{ table_name }} (event_type); CREATE INDEX {{ table_name }}_event_start ON public.{{ table_name }} (event_type, event_start); CREATE INDEX {{ table_name }}_v...
true
58575690d2bb07926769536608b14022e7ba38fe
SQL
Yuki23329626/wifi-auth
/db_init.sql
UTF-8
670
3
3
[]
no_license
-- 用來初始化 mysql database 並輸入資料的 SQL SHOW DATABASE; CREATE DATABASE wifi_auth; USE wifi_auth; DROP TABLE IF EXISTS `user`; CREATE TABLE `user` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` text COLLATE utf8mb4_unicode_ci NOT NULL, `password` text COLLATE utf8mb4_unicode_ci NOT NULL, PRIMARY KEY (`id`) ) ENGINE=I...
true
69e709e40609fda345ff716bbabcc986aa09c791
SQL
Jrvivas/stools
/0-Proyecto/1-Analisis/data_base/db.sql
UTF-8
6,960
3.359375
3
[]
no_license
-- MySQL Script generated by MySQL Workbench -- Sat May 23 10:20:58 2020 -- 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_MODE='TR...
true
1ddcfb6e65f7528602712f024be15c16b46a1ff2
SQL
husi/t3
/example/db.sql
UTF-8
865
3.359375
3
[]
no_license
BEGIN TRANSACTION; CREATE TABLE projects ( "Description" TEXT, "Id" INTEGER PRIMARY KEY, "Name" TEXT, "Parent" INTEGER , "Deleted" INTEGER); INSERT INTO "projects" VALUES('Example Project',1,'Example',NULL,NULL); INSERT INTO "projects" VALUES('1st Example Subproject',2,'1st subproject',1,NULL); INSERT I...
true
e5d3c86c17e166651e1cfc8089d1d60e0ed40d80
SQL
dovthang/VTIAcademy
/Assignment4.sql
UTF-8
5,166
4.46875
4
[]
no_license
USE TestingSystem; -- Exercise 1: Join -- Question 1: Viết lệnh để lấy ra danh sách nhân viên và thông tin phòng ban của họ SELECT * FROM `Account` A INNER JOIN Department D ON A.DepartmentID = D.DepartmentID; -- Question 2: Viết lệnh để lấy ra thông tin các account được tạo sau ngày 20/12/2010 SELECT * FROM...
true
b727a8d4f1a0c9ebf8e5bacaa415a7bde0665d4d
SQL
nacho270/spring-alternatives
/spring-alternatives-full-demo/init.sql
UTF-8
991
3.921875
4
[]
no_license
drop schema if exists alternatives_demo; create schema if not exists alternatives_demo; use alternatives_demo; CREATE TABLE t_user ( id int NOT NULL, email text NOT NULL, PRIMARY KEY (id) ); CREATE TABLE t_shipment ( id varchar(36) NOT NULL, total decimal(9,2) NOT NULL, f_user_id int NOT NULL, KEY f_us...
true
6f8680649276140ed5343dc198165e48a716954d
SQL
igg/BBD9000
/Server/setup/BBD-Schema.sql
UTF-8
19,012
2.890625
3
[]
no_license
-- File BBD-Schema-2013-09-09.sql generated by dump-DB-schema.sh on Mon Sep 9 20:46:52 UTC 2013 -- ------------------------------------------------------------- -- BBD9000 CMS Schema Dump -- This file is used to build a new empty BBD9000 CMS database -- Includes BBD9000 system table data -- -----------------------...
true
f7c2217ed690d77a206f596ec9896ca5c569f707
SQL
PawarAditi/HackerRank
/SQL/Advanced Join/Projects/Solution.sql
UTF-8
365
4.0625
4
[ "MIT" ]
permissive
SELECT START_DATE, MIN(END_DATE) FROM (SELECT START_DATE FROM PROJECTS WHERE START_DATE NOT IN (SELECT END_DATE FROM PROJECTS)) A, (SELECT END_DATE FROM PROJECTS WHERE END_DATE NOT IN (SELECT START_DATE FROM PROJECTS)) B WHERE START_DATE < END_DATE GROUP BY START_DATE ORDER...
true
27a14918c533efdf9262545f1435d2d06515ba2e
SQL
dsman1823/api-app
/src/main/webapp/WEB-INF/classes/liquibase/initial_schema.sql
UTF-8
254
2.546875
3
[]
no_license
DROP TABLE IF EXISTS app_action_log; CREATE TABLE app_action_log ( id SERIAL NOT NULL, app_id VARCHAR(255) DEFAULT NULL, message VARCHAR(255) DEFAULT NULL, tag VARCHAR(255) DEFAULT NULL, timestamp TIMESTAMP DEFAULT NULL, PRIMARY KEY (id) );
true
9d05887d332610bdf8bd84f21c31ffb46fb1b17b
SQL
mabmahmud/Student_Parking_Pass_MVC_project
/TrackingParkingPass/target/classes/db/mysql/createDatabase.sql
UTF-8
830
3.390625
3
[]
no_license
DROP DATABASE if exists cis2232_parking; CREATE DATABASE cis2232_parking; USE cis2232_parking; CREATE TABLE ParkingPass ( id int(5) NOT NULL, firstName varchar(20) DEFAULT NULL COMMENT 'First Name', lastName varchar(20) DEFAULT NULL COMMENT 'Last Name', licensePlate varchar(06) DEFAULT NULL COMMENT 'li...
true
0c3ee851d843068af8b4fb1d4c77b0f71329786e
SQL
Fran9101/TFG-Riego
/entrega/Código fuente/Base de datos/BaseDeDatos.sql
UTF-8
6,045
3.203125
3
[]
no_license
CREATE DATABASE IF NOT EXISTS `ardureg` /*!40100 DEFAULT CHARACTER SET utf8 */; USE `ardureg`; -- MySQL dump 10.13 Distrib 5.7.12, for Win64 (x86_64) -- -- Host: 127.0.0.1 Database: ardureg -- ------------------------------------------------------ -- Server version 5.7.17-log /*!40101 SET @OLD_CHARACTER_SET_CLIEN...
true
8d0870dc6cfa03a5d21e45da891f02b518129e49
SQL
watson031/placeholder
/SQL/dbStore.sql
UTF-8
19,433
3.484375
3
[]
no_license
DROP DATABASE IF EXISTS dbstore; CREATE DATABASE dbstore; USE dbstore; CREATE TABLE `categories` ( `id` int(11) NOT NULL AUTO_INCREMENT, `description` text NOT NULL, `img_url` text NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- dbstore.services definition CREATE TABLE `services` ( ...
true
cf6cbc1af65d858be5837ff0042af8d4de83d98c
SQL
tarim/Tarim.Api
/Sql files/database/top_10_liked_name.sql
UTF-8
373
4.125
4
[]
no_license
CREATE DEFINER=`root`@`localhost` PROCEDURE `TOP_10_LIKE_NAME`() BEGIN select N.name_ug `Name`,S.* from tbl_uyghur_name AS N JOIN( select A.name_recid Recid, COUNT(CASE A.action WHEN 'LIKE' THEN 1 END) as `Like` FROM tbl_name_action AS A #JOIN tbl_uyghur_name AS N ON A.name_recid=N.recid GROUP BY A.name_recid ORDER B...
true
b0fffcf03c71d6a6d351a87bb0d563692c74a83e
SQL
BobbyOldani/12-MySQL-Homework
/SQLstuff.sql
UTF-8
608
3.78125
4
[]
no_license
drop database if exists employee_db; create database employee_db; use employee_db; create table department ( departmentid int auto_increment not null, primary key (departmentid), name varchar(30) ); create table role ( roleid int auto_increment not null, primary key (roleid), title varchar(30), salary decimal(10, 2...
true
11ad12ecef950ae7bc072473e038d2dbb0e2592e
SQL
leetasktw/javaweb_crud
/sql/create-tables.sql
UTF-8
363
2.890625
3
[]
no_license
CREATE DATABASE 'demo'; USE demo; create table members ( id int(3) NOT NULL AUTO_INCREMENT, name varchar(120) NOT NULL, password varchar(120) NOT NULL, email varchar(220), PRIMARY KEY (id) ); create table users ( id int(3) NOT NULL AUTO_INCREMENT, name varchar(120) NOT NULL, email varchar(220), c...
true
a7f7036a0a01de12cfd13a156dfaea1f0fd9f7fd
SQL
AdrianPardo99/bedu_primer_curso
/sesion4/ejemplo2.sql
UTF-8
254
2.6875
3
[]
no_license
USE MiNombre; # Creacion de tabla 'users' en caso de no existir CREATE TABLE IF NOT EXISTS users ( user_id INT PRIMARY KEY, genero VARCHAR(1), edad INT, ocup INT, cp VARCHAR(20) ); # En caso de existir o no # DROP TABLE IF EXISTS nombre;
true
01100bbf738fd9231198bffbe25c5e9a665259eb
SQL
silence-do-good/stress-test-Postgres-and-MySQL
/dump/high/day09/select0955.sql
UTF-8
178
2.625
3
[]
no_license
SELECT timeStamp, temperature FROM ThermometerOBSERVATION o WHERE timestamp>'2017-11-08T09:55:00Z' AND timestamp<'2017-11-09T09:55:00Z' AND temperature>=27 AND temperature<=85
true
8cb6d5f02d3a0ca125c4e9d63bff5809e58498b9
SQL
atronah/firebird_utils
/dbmon/view_dbmon_changes_summary.sql
UTF-8
337
3.265625
3
[]
no_license
create or alter view dbmon_changes_summary as select db, obj_type, obj_name , count(*) changes_count , max(changed) as last_changing , max(checked) as last_checking , min(checked) as first_checking from dbmon_changes_history group by db, obj_type, obj_name order by last_changing desc, db, o...
true
d7dda625e30ae260406e7dd46ed822c1b1ce1b5f
SQL
javadev/LeetCode-in-Kotlin
/src/main/kotlin/g1001_1100/s1045_customers_who_bought_all_products/script.sql
UTF-8
234
2.9375
3
[ "MIT" ]
permissive
# Write your MySQL query statement below # #Medium #Database #2023_05_28_Time_881_ms_(90.47%)_Space_0B_(100.00%) select customer_id from customer group by customer_id having count(distinct product_key)=(select count(*) from product);
true
0082b7d1f11b5f563f486f7e96355777f7535a10
SQL
karldennis/X2Engine-1
/x2engine/protected/modules/calendar/data/install.sql
UTF-8
1,399
3.09375
3
[ "BSD-3-Clause" ]
permissive
DROP TABLE IF EXISTS x2_calendars,x2_calendar_permissions; CREATE TABLE x2_calendars ( id INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY, name VARCHAR(100) NOT NULL, viewPermission TEXT, editPermission TEXT, googleCalendar TINYINT, googleFeed VARCHAR(255), createDate BIGINT, createdBy...
true
20fa7700bb7cb661518bf27eb33cdd1f88e6ed88
SQL
syaifulrmdhn/webseminar
/dbseminar.sql
UTF-8
12,478
2.796875
3
[ "BSD-3-Clause" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.6.4 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Mar 21, 2017 at 06:41 AM -- Server version: 10.1.19-MariaDB -- PHP Version: 7.0.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER...
true
2dbd50f5cecfbe7771d87afb9f5eaadc8ad608b5
SQL
amoralesh/pruebasYII
/querys/querys.sql
UTF-8
1,017
3.28125
3
[]
permissive
use database baseYii; Create table Usuario ( id int AUTO_INCREMENT PRIMARY KEY, nombre varchar (255) not null, apellidos varchar(255), edad int (2) not null, telefono varchar (255) not null, correo varchar(255), fechaAlta date not null ); CREATE TABLE 'country' ( 'id' int AUTO_INCREMENT P...
true
17e21d450cd4019930896da71e418c996e97c00d
SQL
KDiggory/WorkshopProject
/src/test/resources/testschema.sql
UTF-8
863
3.640625
4
[]
no_license
drop table if exists projects CASCADE; drop table if exists workshop CASCADE; drop table if exists powertools CASCADE; create table workshop ( id integer primary key auto_increment, name varchar(255), address varchar(255) ); create table projects ( id integer primary key auto_increment, days intege...
true
5ac8cf1a5d2020fff840fedceba59d47d61a4943
SQL
gladiopeace/digital-data-syn
/documents/oms/TB_PMTIA.sql
GB18030
4,053
3.1875
3
[]
no_license
/* ================================================================================ ṹ:TB_PMTIA ṹ:ȯ ṹĿ: ================================================================================ */ drop sequence SEQ_TB_PMTIA; drop index AK_TB_PMTIA; drop table TB_PMTIA; create table TB_PMTIA ( PMTIA_ID INTEGER ...
true
c4f1aa1d2a42394f1589d66869f8934fb340f4fc
SQL
merindahong/class-108-php-webdesign-1st
/2019-05-13-file/schema/labor.sql
UTF-8
1,627
3.21875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- 主機: 127.0.0.1 -- 產生時間: 2019 年 05 月 16 日 23:38 -- 伺服器版本: 10.1.38-MariaDB -- PHP 版本: 7.3.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARA...
true
83190629601d7ec7600bd82acb31a77241a2e417
SQL
alexcamp/ArrobaTiempoGradle
/workspace_movistar_wl11/zejbSolTec/ejbModule/META-INF/backends/DB2UDBNT_V72_1/Table.ddl
UTF-8
341
2.59375
3
[]
no_license
-- Generated by Relational Schema Center on Wed Apr 11 17:45:22 VET 2007 for DB2 Universal Database V7.2 CREATE SCHEMA SOLTEC; CREATE TABLE SOLTEC.FLUJO (FLUJ_ID INTEGER NOT NULL, FLUJ_CODIGO VARCHAR(250) NOT NULL, FLUJ_DESCRIPCION VARCHAR(2500)); ALTER TABLE SOLTEC.FLUJO ADD CONSTRAINT P_FLUJ_PRIMARY P...
true
f545bfbd31623977f238bc247f5d82518da8bf07
SQL
luanmarquess/AutoPlay
/bancoDeDados/oracle-plsql-procedures-funcoes-e-excecoes/create_or_replace_procedure_structure.sql
ISO-8859-1
470
2.65625
3
[]
no_license
CREATE OR REPLACE PROCEDURE INCLUIR_SEGMERCADO (p_ID SEGMERCADO.ID%TYPE, p_DESCRICAO SEGMERCADO.DESCRICAO%TYPE) --CREATE PROCEDURE NOME_PROCEDURE (PARMETROS) -- CREATE OR REPLACE = CRIA OU SUBSTITUI ALGUM EXISTENTE; -- %TYPE = IR DECLARAR A VARIVEL COM O MESMO TIPO DO CAMPO DECLARADO NA TABELA, EVITANDO ERROS; IS -- DE...
true
1c47b426a81a33a9f0e26bb33b3be1fabddb9c16
SQL
jjyycchh/mytest
/yexq/src/main/webapp/db_script/access_init_script.sql
UTF-8
23,546
3.625
4
[]
no_license
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_mode='traditional,allow_invalid_dates'; -- ----------------------------------------------------- -- schema twifi_access -- ---------------------------------...
true
8af69d46b348fed885279a263f12ce1c9d559609
SQL
Joel007David/prueba_erp
/base de datos.sql
UTF-8
98,998
3.3125
3
[]
no_license
CREATE TABLE Ubigeo( Cod_Ciudad char(6), Ciudad varchar(255), Estado_Ciudad int(1), CONSTRAINT PK_Ubigeo PRIMARY KEY (Cod_Ciudad) ) ; CREATE PROCEDURE PA_Buscar_Ubigeo() SELECT * FROM Ubigeo WHERE Estado_Ciudad = 1 ; CREATE PROCEDURE PA_Buscar_Ubigeo_Codigo( IN Cod_Ciudad_ char(8) ) SELECT *...
true
a532dc407edebdcf9596a258d1994c1b17ccfde2
SQL
KosAlexander/MySQL-Lessons
/lesson5/5.1/task2.sql
UTF-8
494
2.984375
3
[]
no_license
USE shop; -- Таблица users была неудачно спроектирована. -- Записи created_at и updated_at были заданы типом VARCHAR и в них долгое время помещались значения в формате "20.10.2017 8:10". -- Необходимо преобразовать поля к типу DATETIME, сохранив введеные ранее значения. SELECT STR_TO_DATE(updated_at,'%d.%m.%Y %h:%i'...
true
c8dbe354fe65e2af46efc7cffbfb170074da55a9
SQL
vlzangel/NewKmimos
/ayuda_secciones.sql
UTF-8
1,295
2.859375
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : localhost Source Server Version : 50505 Source Host : localhost:3306 Source Database : kmimos_mx_new Target Server Type : MYSQL Target Server Version : 50505 File Encoding : 65001 Date: 2018-01-12 19:16:06 */ SET FOREIGN_KEY_CHECKS=0;...
true
2fe98a8b9f356be1acb44e9a6f43081517d4bfec
SQL
ThankYouMario/proprietary_vendor_xiaomi
/sunny/proprietary/vendor/radio/qcril_database/upgrade/12_version_update_ecc_table.sql
UTF-8
1,366
2.578125
3
[]
no_license
/* Copyright (c) 2020 Qualcomm Technologies, Inc. All Rights Reserved. Confidential and Proprietary - Qualcomm Technologies, Inc. */ BEGIN TRANSACTION; INSERT OR REPLACE INTO qcril_properties_table (property, value) VALUES ('qcrildb_version', 13); DELETE FROM qcril_emergency_source_mcc_table where MCC = '602';...
true
589c8a63284de2848f13cd6c130f5f6385bfbfbc
SQL
wildhunt-unique/neptune
/db/v1.init.sql
UTF-8
11,678
3.609375
4
[]
no_license
CREATE TABLE `item` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `category_id` bigint(20) DEFAULT NULL COMMENT '类目id', `item_code` varchar(45) DEFAULT NULL COMMENT '商品编码', `shop_id` bigint(20) NOT NULL COMMENT '店铺id', `shop_name` varchar(128) DEFAULT '' COMMENT '店铺名', `name` varchar(1024) NOT NULL DEFAULT '' ...
true
1ae8012eb31faa2361f18775f4e66ea484261d8a
SQL
justinclarkhome/AlphaVantageStockDB
/code_mysql/STOREDPROCS.sql
UTF-8
8,247
4.4375
4
[]
no_license
-- Add a new datasource DROP PROCEDURE IF EXISTS AddNewDataSource; DELIMITER $$ CREATE PROCEDURE AddNewDataSource ( _DataSourceName VARCHAR(50), _DataSourceURL VARCHAR(100)) NOT DETERMINISTIC MODIFIES SQL DATA BEGIN IF NOT EXISTS ( SELECT DataSourceName FROM ...
true
f3964e788a8086fc5143320d76222d9cf94ff9e1
SQL
Sumelt/Daily-Coding
/SQL/sql_code/Homework 6.sql
UTF-8
464
4.0625
4
[]
no_license
-- 6.1 SELECT product_name, purchase_price FROM Product WHERE purchase_price NOT IN (500, 2800, 5000); SELECT product_name, purchase_price FROM Product WHERE purchase_price NOT IN (500, 2800, 5000, NULL); -- NO NULL -- 6.2 SELECT SUM(CASE WHEN sale_price <= 1000 THEN 1 ELSE 0 END) AS low_price, SUM(CASE WHEN sa...
true
22f0a3249461529498379e784bc007335a38b3c8
SQL
zhengjr/bis
/sql/callcenter/mssql/install/042_create_table_PATTERNS.sql
WINDOWS-1251
1,410
3.984375
4
[]
no_license
/* */ CREATE TABLE /*PREFIX*/PATTERNS ( PATTERN_ID VARCHAR(32) NOT NULL, NAME VARCHAR(100) NOT NULL, DESCRIPTION VARCHAR(250), PATTERN IMAGE NOT NULL, PRIMARY KEY (PATTERN_ID) ) -- /* */ CREATE VIEW /*PREFIX*/S_PATTERNS AS SELECT * FROM /*PREFIX*/PATTERNS -- /* */ CREATE PROCEDURE /*PREFIX*/...
true
9e2e4217664c4cee219a676b4cd07ca88952c99c
SQL
JRGeneGarrigos/Sistemas_DB_Test
/Sistemas_DB_privileges_test.sql
UTF-8
395
2.609375
3
[]
no_license
-- Creating a new user dell/dell, that is going to be accessed by other computer CREATE USER 'dell'@'%' IDENTIFIED VIA mysql_native_password USING '***'; GRANT SELECT, INSERT, UPDATE, DELETE, FILE ON *.* TO 'dell'@'%' REQUIRE NONE WITH MAX_QUERIES_PER_HOUR 0 MAX_CONNECTIONS_PER_HOUR 0 MAX_UPDATES_PER_HOUR 0 MAX_USER_...
true
7f4ade2a8bf2fcd2352f36fec1632292c02603c0
SQL
AlanDeveloper/Aprendendo_PHP
/Conexão com Banco/Outra versão/Loja/loja.sql
UTF-8
7,323
3.9375
4
[ "MIT" ]
permissive
--DROPS DROP TABLE IF EXISTS ItemVenda; DROP TABLE IF EXISTS NotaFiscal; DROP TABLE IF EXISTS Produto; DROP TABLE IF EXISTS Cliente; DROP TABLE IF EXISTS Funcionario; DROP TABLE IF EXISTS Departamento; CREATE TABLE Cliente ( CODCLIENTE serial, NOME VARCHAR(100) NOT NULL, CPF VARCHAR(15) UNIQUE, EMAIL VARCHAR(...
true
cc390ff4229f0209d0ae4f2fbd04de4fd35f2390
SQL
kinwang6632/vb6
/App/CSMIS/EMC-Nick/NightRun/EMC_Script_921209/StartReCntAllMdu_920718.sql
BIG5
1,003
3.0625
3
[]
no_license
-- ҦjӦUؤ(SP_ReCntAllMdu.sql) Night-run ]w{ -- Date: 2003.07.18 By: Pierre set serveroutput on VARIABLE jobno number; declare v_ExecTime date; v_Job number; v_What varchar2(4000); BEGIN v_ExecTime := to_date('20030718230000', 'YYYYMMDDHH24MISS'); v_What := 'SP_RECNTALLMDU;'; begin select J...
true
1eca4216e6f588dc82ab2c5b3af15a109313b7c7
SQL
CaioCresencio/4Semestre
/Disciplinas/script.sql
UTF-8
1,190
3.59375
4
[]
no_license
insert into disciplina (codigo_disc,nome_disc) values(1,'POO'); insert into disciplina (codigo_disc,nome_disc) values(2,'EDA'); insert into disciplina (codigo_disc,nome_disc) values(3,'LPE'); insert into requisitos (nome_disc,requisito) values ('POO','EDA'); insert into requisitos (nome,requisito) values ('POO','LPE');...
true