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
140f3919bb081af249790389ad5699c9544ceb46
SQL
maicky00/jagua
/jap/src/jap/sistemaagua2.sql
UTF-8
9,843
3.171875
3
[]
no_license
/*==============================================================*/ /* DBMS name: MySQL 5.0 */ /* Created on: 19/08/2015 10:43:33 */ /*==============================================================*/ drop table if exists ASISTENCIA; drop tab...
true
5a49d9931042f9dbcb4f53ee8c6748dba4f67e04
SQL
sharma-sanjeev/eshoppers
/src/main/resources/data.sql
UTF-8
6,640
3.15625
3
[]
no_license
SET REFERENTIAL_INTEGRITY FALSE; INSERT INTO AUTHORITIES (AUTHORITIESID, AUTHORITY, USERNAME) VALUES ('1', 'ROLE_ADMIN', 'admin'), ('2', 'ROLE_USER', 'admin'), ('3', 'ROLE_USER', 'customer'), ('4', 'ROLE_USER', 'user1'), ('5', 'ROLE_USER', 'user2'), ('6', 'ROLE_USER', 'user3'), ('7', 'ROLE_USER', 'user4'...
true
5c9f33bb3ef99db238d4ee194d78486b47e30c2a
SQL
KrijnvdBurg/profile_gw2
/android_api.sql
UTF-8
1,726
2.890625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.1.14 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Feb 19, 2016 at 12:27 AM -- Server version: 5.6.17 -- PHP Version: 5.5.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;...
true
f9b0f71ebd8927e340f8728b749ab2c647ac70ec
SQL
macbre/index-digest
/setup.sql
UTF-8
342
2.84375
3
[ "MIT" ]
permissive
-- create databases CREATE DATABASE IF NOT EXISTS index_digest; CREATE DATABASE IF NOT EXISTS index_digest_empty; -- #146 -- create a user and grant access to our databases CREATE USER 'index_digest'@'%' IDENTIFIED BY 'qwerty'; GRANT ALL ON index_digest.* TO 'index_digest'@'%'; GRANT ALL ON index_digest_empty.* TO 'i...
true
0c76a30d4519fce650ce2c6356416894314eaa6b
SQL
charliealpha094/MYSQL-bootcamp-code
/Section11_Power_Logical_Operators/in_and_notin.sql
UTF-8
925
4.09375
4
[]
no_license
-- Done by Carlos Amaral (2021/02/27) -- IN SELECT title, author_lname FROM books WHERE author_lname = 'Carver' OR author_lname = 'Lahiri' OR author_lname = 'Smith'; -- or in a better way SELECT title, author_lname FROM books WHERE author_lname IN ('Carver', 'Lahiri', 'Smith'); SELECT title, released_year FROM books...
true
4c94e9e131153188c8e6501f84458e751ff6b4c3
SQL
pushgfx/medical_backend
/create.sql
UTF-8
6,902
3.328125
3
[]
no_license
CREATE TABLE roles ( role_id int NOT NULL AUTO_INCREMENT, role_name varchar(40) NOT NULL, PRIMARY KEY (role_id) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; CREATE TABLE users ( id int NOT NULL AUTO_INCREMENT, email varchar(40) NOT NULL, password varchar(128) NOT NULL, role_id int NOT NULL, user_role_id int NOT NUL...
true
1265fa826701a1fde3cbad6e557f39c6b6a5fed9
SQL
zhu327/blog
/www/schema.sql
UTF-8
834
3.328125
3
[ "MIT" ]
permissive
-- mysql -u root -p < schema.sql create table `user` ( `id` varchar(50) not null, `email` varchar(50) not null, `password` varchar(50) not null, `name` varchar(50) not null, primary key(`id`) ) engine=MyISAM default charset=utf8; create table `blogs` ( `id` int(10) not null auto_increment, ...
true
3542c5023cfdc1d664d8beb427bb12292a55657d
SQL
maysgar/traffic_database
/Lab1/insertion_script.sql
UTF-8
2,474
2.9375
3
[]
no_license
INSERT INTO PEOPLE (Name,Surname_1,Surname_2,Address,Town,Dni,Mobile,Email,Birth) (SELECT NOMBRE_DUENO,APELL_1_DUENO,APELL_2_DUENO,DIRECC_DUENO,CIUDAD_DUENO,NIF_DUENO,TO_NUMBER(TLF_DUENO,'999999999'),EMAIL_DUENO,TO_DATE(CUMPLE_DUENO,'YYYY-MM-DD') FROM FSDB.MEGATABLE UNION SELECT NOMBRE_CONDTR,APELL_1_CO...
true
ceb71ee954b16e6081387ea0136712309e9833f4
SQL
Fivium/ScriptRunner
/src/com/fivium/scriptrunner2/database/sql/ScriptRunnerVersionCheck.sql
UTF-8
138
2.953125
3
[]
permissive
SELECT NVL(max_patch, 0) FROM ( SELECT MAX(patch_number) max_patch FROM patch_runs WHERE patch_label = ? AND ignore_flag IS NULL )
true
fad082cbc91bd0f08f70cea74be24ddee7c8b9de
SQL
xiongdi9456/minernow
/server/src/init_script/sql/otc_tables.sql
UTF-8
51,708
3.46875
3
[]
no_license
-- -------------------------------------------------- -- Table Structure for `models.Token` -- -------------------------------------------------- CREATE TABLE IF NOT EXISTS `token` ( `uid` bigint unsigned NOT NULL COMMENT 'user id', `client_type` int unsigned NOT NULL COMMENT 'app type', `mtime` bigint NOT NULL COMME...
true
058b0df49f68a49ad9775a419b03c5024f1a95ec
SQL
adamsors97/MoziFilmek
/src/main/resources/import.sql
UTF-8
4,351
3.53125
4
[]
no_license
CREATE TABLE GENRES ( ID integer PRIMARY KEY, GENRE varchar(40) ); CREATE TABLE COUNTRIES( ID integer PRIMARY KEY, COUNTRY varchar(30) ); CREATE TABLE MOVIES ( ID integer PRIMARY KEY NOT NULL, TITLE varchar(50), RELEASE_DATE integer NOT NULL, GENRE integer NOT NULL, COUNTRY integer NOT NULL, PRICE...
true
d1af44a834134777d15104a45714a7d44b6cf11c
SQL
rodrigoorf/ToDoList
/querys.sql
UTF-8
705
3.71875
4
[]
no_license
# Consulta 1 SELECT a.nome from Aluno as a inner join turma as t on t.id = a.id inner join professor as p on p.id = t.id WHERE p.nome = 'JOAO PEDRO'; #Consulta 2 SELECT t.dia_da_semana from Turma as t inner join Disciplina as d on t.id = d.id WHERE d.nome = 'MATEMATICA'; #Consulta 3 SELECT a.nome from Aluno as a inne...
true
5b70f07b0d7775f4cbcd2f02a440186c97810767
SQL
victoravtr/Proyecto
/files/mysql/init_db.sql
UTF-8
436
3.34375
3
[]
no_license
create table CREDENCIALES ( usuario varchar(10) not null, pass varchar(255) not null, correo varchar(50) not null, constraint credenciales_pk primary key (usuario) ); create table RESET_PASS ( correo varchar(50) not null, codigo varchar(255) not null, fecha_peticion date, fecha_limit...
true
1aeba74a95fc8eb12b8879e3d5ba1b4da83ff11c
SQL
rkumar061/hackcbs4
/h4c.sql
UTF-8
3,088
3.046875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.1 -- https://www.phpmyadmin.net/ -- -- Host: mysql-55985-db.mysql-55985:17298 -- Generation Time: Oct 29, 2021 at 10:18 AM -- Server version: 8.0.26 -- PHP Version: 7.2.34 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*...
true
0c4afa4f2082824146b9ebc7f7f6e07043d78672
SQL
yeon4032/STUDY
/GIT_NOTE/01_SQL_workplace/chap10_JOIN/step01_join_work.sql
UTF-8
1,572
4.09375
4
[]
no_license
-- 1.join.sql /* * 물리적 조인(Join) * - 특정 칼럼(외래키)을 이용하여 두 개 이상의 테이블을 연결하는 DB 기법 * 조인 절차 * 1. 기본키가 포함된 테이블(master table) 생성 * 2. 기본키가 포함된 테이블에 레코드 삽입 * 3. 외래키가 포함된 테이블(transaction table) 생성 * 4. 외래키가 포함된 테이블에 레코드 삽입 * * 조인 테이블 삭제 : 위 순서에 역순이다. * 강제 테이블 삭제 : drop table 테이블명 cascade constraint; *...
true
95e45deac35fd49c5cd4ef31fdec6efed5022061
SQL
albayin/albasbest
/RowColumnPivot.sql
UTF-8
340
3.40625
3
[]
no_license
/* SQL problem: Change row values to coloumn header using MSSQL Pivot author: Yanchun Stanley upload date: 06/18/2019*/ SELECT StudentId ,Math as 'Math' ,English as 'English' ,Score FROM (SELECT StudendID ,Score ,Class FROM Score) p PIVOT (SELECT MAX(Score) FOR Class in ('Math','English')) as...
true
ad29afe1768476fbe76aeba8246cdcd1a87a57af
SQL
decentos/BookingService
/src/main/resources/database/initDB.sql
UTF-8
699
3.78125
4
[]
no_license
DROP TABLE IF EXISTS booking; DROP SEQUENCE IF EXISTS booking_id_seq; DROP TABLE IF EXISTS rooms; DROP SEQUENCE IF EXISTS rooms_id_seq; CREATE TABLE rooms ( id INTEGER PRIMARY KEY, room_number INTEGER NOT NULL, room_floor INTEGER NOT NULL, beds_count INTEGER NOT NULL, delete SMALLINT NOT NULL DE...
true
0fff667241b7f9564b82f8ef7db239797450dc57
SQL
silence-do-good/stress-test-Postgres-and-MySQL
/dump/high/day21/select2101.sql
UTF-8
178
2.625
3
[]
no_license
SELECT timeStamp, temperature FROM ThermometerOBSERVATION o WHERE timestamp>'2017-11-20T21:01:00Z' AND timestamp<'2017-11-21T21:01:00Z' AND temperature>=35 AND temperature<=83
true
e5236a3a0b2169c7f38129da49019bffc1ea337c
SQL
lysu96/DATN_DM
/db_dongho.sql
UTF-8
11,213
2.859375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Máy chủ: 127.0.0.1 -- Thời gian đã tạo: Th5 05, 2021 lúc 02:53 PM -- Phiên bản máy phục vụ: 10.1.36-MariaDB -- Phiên bản PHP: 7.2.11 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*...
true
1b85750f468fd33447a71bdfaf6c77dfadb383c3
SQL
balamini-dev/TP_SQL
/tp_vendredi/TP_Vendredi_AM.sql
UTF-8
1,523
4.21875
4
[]
no_license
#1 SELECT productName, QuantityPerUnit FROM products #2 SELECT productID, ProductName FROM products WHERE discontinued = FALSE ORDER BY ProductName # en booleen FALSE est similaire a 0 et TRUE est similaire à 1 #3 SELECT productID, ProductName FROM products WHERE discontinued = TRUE ORDER BY ProductName #4 SELEC...
true
e42089ffcf9f38afff33921c128aef909bc9b6ee
SQL
cams7/curso-de-bi-com-pentaho
/sql180210.sql
UTF-8
3,636
4.25
4
[]
no_license
select * from products; select * from categories; select c.categoryname, p.productname, p.unitprice FROM products p inner join categories c on p.categoryid=c.categoryid; select c.categoryname, ( select p1.productname from products p1 where p1.unitprice=max(p.unitprice) and p1.categoryid=c.categoryid ) as produto1...
true
698a6e0f1470d04bc27242c55eba02d722ab8548
SQL
rodrigo-mdz/pokeapi-node.js
/base de datos/pokeapi .sql
UTF-8
4,213
4.09375
4
[]
no_license
/* SQLyog Ultimate v9.63 MySQL - 5.5.5-10.1.21-MariaDB : Database - pokeapi ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_KEY_...
true
9f77c3ef2d0519e901d260c40250445c5bd59783
SQL
opencookiecms/eloglatihan
/data/data_bomba.sql
UTF-8
5,380
3.15625
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Dec 05, 2020 at 04:20 AM -- Server version: 10.4.6-MariaDB -- PHP Version: 7.1.32 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @O...
true
5eb591e4ec428ad97a6062d46c5fd402e6cd590f
SQL
iceblack2k/SQL
/StatsMonitor/Erin_UserGroup_Stats.sql
UTF-8
2,290
4
4
[ "MIT" ]
permissive
CREATE TABLE dbo.SQLSkills_StatsHistory ( CaptureDate DATETIME2(7) NOT NULL DEFAULT(SYSDATETIME()) ,DatabaseID INT NULL ,TableName SYSNAME NOT NULL ,Statistic SYSNAME ,WasAutoCreated BIT NULL ,WasUserCreated BIT NUL...
true
10029a30f8c781f5393abf8d28c66bae6d463ec1
SQL
LuckyAnggara/BelajarLagi
/data_kecamatan.sql
UTF-8
2,236
2.953125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Aug 08, 2018 at 02:30 PM -- 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"; /*!40101 SET @OLD...
true
d7ab1439286877d1b6dc883495f48eafbcf38d34
SQL
ShahakBH/jazzino-master
/bi/bi-dbdw/src/main/resources/deltas/144.sql
UTF-8
2,068
4
4
[]
no_license
ALTER TABLE LOBBY_USER ADD COLUMN REGISTRATION_REFERRER VARCHAR(255) DEFAULT NULL AFTER REFERRAL_ID# CREATE INDEX IDX_LOBBY_USER_REFERRER ON LOBBY_USER(REGISTRATION_REFERRER)# DROP TRIGGER IF EXISTS ad_tracking_trigger# RENAME TABLE AD_TRACKING TO AD_TRACKING_OLD# CREATE VIEW AD_TRACKING AS SELECT LU.USER_ID, L...
true
9773576f828f42ca2f0ba263c62326cc74fd38f4
SQL
Avivitw/LightBnB
/1_queries/4_most_visited_cities.sql
UTF-8
200
3.5625
4
[]
no_license
SELECT properties.city, COUNT(reservations) as total_resrvations FROM properties JOIN reservations ON properties.id = reservations.property_id GROUP BY properties.city ORDER BY total_resrvations DESC;
true
edb0f8795952c813efe536b142c68e2f69420768
SQL
honux77/introdb
/week2/select.sql
UTF-8
227
2.6875
3
[]
no_license
DROP TABLE IF EXISTS auction_user; CREATE TABLE auction_user( id CHAR(4) PRIMARY KEY, name CHAR(8), grade CHAR(1), money INT ); LOAD DATA LOCAL INFILE 'auction_user.csv' INTO TABLE auction_user FIELDS TERMINATED BY ',';
true
f4e177005af9eb6c18b68f82b8dfa562080dded8
SQL
etrivino/pokemon
/InverterMatchPokemon/pokemones.sql
UTF-8
25,418
2.71875
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.9.1 -- https://www.phpmyadmin.net/ -- -- Servidor: localhost -- Tiempo de generación: 15-10-2019 a las 03:57:39 -- Versión del servidor: 8.0.17 -- Versión de PHP: 7.3.10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!401...
true
93a79c60af1a42031acc43d466f21e43f7ab668c
SQL
wildflower/SCMTurboCharge
/Unison_AICO greater than 1 meter_all info.sql
UTF-8
802
2.671875
3
[]
no_license
select unison_registry.icp, distpricecat,unison_eiep1.startdate,unison_eiep1.enddate, unison_eiep1.reportmonth, unison_eiep1.unittype, unison_eiep1.units,unison_eiep1.status, unison_eiep1.fixedvariable, unison_eiep1.chargeabledays, unison_eiep1.pricecode, unison_eiep1.pricerate, unison_eiep1....
true
9ff8413cfe7c4bfd909b0ac3c441add37b0ff8a0
SQL
cnnay/db_escola
/script.sql
UTF-8
5,642
3.359375
3
[]
no_license
CREATE DATABASE projeto_escola; CREATE TABLE endereco( id INT PRIMARY KEY AUTO_INCREMENT, rua VARCHAR(50) NOT NULL, numero VARCHAR(10) NOT null, bairro VARCHAR(50) NOT null, cep VARCHAR(8) NOT NULL, cidade VARCHAR(50) NOT NULL, estado VARCHAR(50) NOT NULL, pais VARCHAR(50) NOT NULL ); INSERT INTO endereco (ru...
true
16c53b09015342df68233599dee12de6f93b0629
SQL
bellmit/SVNrepo
/DBScripts/Release_20170331-BB/500.pm.sel_AdvisorAcctProfile.sql
UTF-8
1,444
3.5
4
[]
no_license
DROP PROCEDURE IF EXISTS `sel_AdvisorAcctProfile`; DELIMITER $$ CREATE PROCEDURE `sel_AdvisorAcctProfile`( p_acctnum BIGINT ) BEGIN begin select user.logonid, `profile`.acctnum, `profile`.advisor, `profile`.rep, `profile`.theme, `profile`.goal, 'Pending' a...
true
644c3159d646ad7c12758bd184b13164effcf2e8
SQL
susannahnah/Real_Estate_API
/database.sql
UTF-8
2,350
3.09375
3
[]
no_license
CREATE TABLE "realestatelisting" (   "id" SERIAL PRIMARY KEY,   "MLS_number" VARCHAR(50) NOT NULL,   "listing_agent" VARCHAR(120) NOT NULL, "agent_id" VARCHAR(30),   "listing_price_US_dollars" VARCHAR(20) NOT NULL,   "listing_date" VARCHAR(20) NOT NULL,   "address1" VARCHAR(200) NOT NULL,   "address2" VARCHAR(200),...
true
1350e33ba7562363846a1065f801bdf83846b768
SQL
NetOxygen/no2-php-framework
/dev/db/20120502163118_create_users_table.mysql.sql
UTF-8
823
3.46875
3
[ "MIT" ]
permissive
CREATE TABLE users ( id CHAR(36) NOT NULL PRIMARY KEY, updated_at DATETIME NOT NULL, created_at DATETIME NOT NULL, updated_by CHAR(36) DEFAULT NULL, INDEX updated_by_index (updated_by), FOREIGN KEY (updated_by) REFERENCES users(id), created_by CHAR(36) DEFA...
true
9f6633abf789e9e5d230e7e54ba6bb9efdffa5c7
SQL
vzhorin/SQL
/tambon_road_rank.sql
UTF-8
310
3.65625
4
[]
no_license
SELECT substr(p1.key_, 1,6), p1.mjrddis, COUNT(p2.mjrddis) AS RoadLength_Rank FROM tambon_points p1, tambon_points p2 WHERE p1.mjrddis>= p2.mjrddis OR (p1.mjrddis=p2.mjrddis and p1.key_ = p2.key_) and LTRIM(RTRIM(p1.key_)) <> '0000000000' GROUP BY p1.key_, p1.mjrddis ORDER BY p1.mjrddis asc, p1.key_ asc;
true
31313953426fb47797ed79843db14448a63624e6
SQL
JermeySen/lyf_2021
/others/直播业务表结构.sql
UTF-8
58,833
3.359375
3
[]
no_license
/* Navicat Premium Data Transfer Source Server : live_lai Source Server Type : MySQL Source Server Version : 50730 Source Host : 47.96.173.209:3306 Source Schema : live_lai Target Server Type : MySQL Target Server Version : 50730 File Encoding : 65001 Date: 26/01/202...
true
ce32d428029b8834b8e258eabe467c3b7b926d68
SQL
giannis20012001/ARCy
/src/main/java/com/lumi/myspringapp/utils/setup.sql
UTF-8
687
3.3125
3
[ "Apache-2.0" ]
permissive
CREATE TABLE Cryptocurrency ( cryptocurrencyID SERIAL NOT NULL, base TEXT NOT NULL DEFAULT '', target TEXT NOT NULL DEFAULT '', price DOUBLE PRECISION NOT NULL, volume DOUBLE PRECISION NOT NULL, change DOUBLE PRECISION NOT NULL, time_stamp BIGINT NOT NULL, success BOOLEAN NOT NULL, error TEXT NOT NULL DEFAULT ...
true
b42fdc33d8a06d9cb7b25da301123fb105bdb2d2
SQL
ibnoe/bc-miracle
/UPDATE_DB/3. kasir-rawat_n_piutang.sql
UTF-8
2,503
3.625
4
[]
no_license
/* * CHECKING total hutang di db.master_jual_rawat (alias: vu_piutang_jrawat), * yang TIDAK SAMA DENGAN db.master_lunas_piutang */ SELECT vu_piutang_jrawat.jrawat_tanggal ,vu_piutang_jrawat.jrawat_nobukti ,vu_piutang_jrawat.piutang_total ,master_lunas_piutang.lpiutang_total FROM vu_piutang_jrawat left jo...
true
5259d375d51571b04bd08b2d18bd87deadd899e0
SQL
hasepi/rabbit
/program/db/td_user_ex1.sql
EUC-JP
1,065
2.984375
3
[]
no_license
----------------------------------- -- 桼ǡ ĥ1 ----------------------------------- DROP TABLE td_user_ex1; DROP SEQUENCE td_user_ex1_seq; CREATE TABLE td_user_ex1 ( user_ex1_id int4 DEFAULT NEXTVAL('td_user_ex1_seq') PRIMARY KEY, -- ID user_id int4 NOT NULL, -- 桼ID ...
true
6af584ccd0e000517d685f75a81fc1e71607b6d9
SQL
WordZzzz/tianchi_location
/dropout/multi_train_and_predict/21.sql
UTF-8
12,440
2.546875
3
[ "MIT" ]
permissive
PAI -name ps_smart -DinputTablePartitions="mall_id=m_800" -DclassNum=54 -DinputTableName=user_shop_behavior_kv -DmodelName=dropout_multi_model_m_800 -DlabelColName=label -DfeatureColNames=kv -DenableSparse=true -Dobjective=multi:softprob -DtreeCount=109 -DsampleRatio=0.6 -Df...
true
c1ad4cfc4cc1cd24e5965725b7457b8946cd110d
SQL
SOERGI/st-heroku-backend
/api-impl/src/main/resources/db-migration/V1_init.sql
UTF-8
1,743
2.5625
3
[]
no_license
-- -- PostgreSQL database dump -- -- Dumped from database version 10.3 -- Dumped by pg_dump version 10.3 -- Started on 2018-05-21 16:06:04 SET statement_timeout = 0; SET lock_timeout = 0; SET idle_in_transaction_session_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; SELECT pg_catalo...
true
094a83387f4b81033c001c5c3eaf4b0048f18d37
SQL
maxmijatovic/edunovajp21
/salonjp21.sql
UTF-8
1,826
3.6875
4
[]
no_license
drop database if exists salonjp21; create database salonjp21 default character set utf8; use salonjp21; create table djelatnica( sifra int not null primary key auto_increment, ime varchar(50) not null, prezime varchar(50) not null, oib char(11), iban varchar(50) ); create table posjeta( sifra ...
true
3cea7e90311b7fcac93dcd1477cc0ac7b678f6bb
SQL
MariyaShukhtina/SQL-MS-Homework5
/Homework5.sql
UTF-8
811
3.84375
4
[]
no_license
-- «Операторы, фильтрация, сортировка и ограничение» -- -- 1 задание -- INSERT INTO users (created_at, updated_at) VALUES ('users', NOW(), DATE_ADD(NOW(), INTERVAL 10 DAY)); -- 2 задание -- SELECT CONVERT(DATETIME,created_at ,103) SELECT CONVERT(DATETIME,updated_at ,103) -- 3 задание -- SELECT * FROM storehouses_...
true
4264a62d30114b21982c3c7c450493dba421c36b
SQL
rak13/Library-Management-System-Database
/sql ro create tables.sql
UTF-8
3,294
4.15625
4
[]
no_license
//auto increment create table Author ( ID integer, Name varchar(100) constraint "Author_Name_CHK_NL" not null, Gender char(1) constraint "Author_Gender_CHK_NL" not null, Qualification varchar(50), constraint "Author_Gender_CHK" check (Gender in ('M', 'F')), constraint "Author_ID_PK" primary key (ID) ); CREATE ...
true
fa36739e1af84333ed13283868da8e2e36712a30
SQL
raulAlbertorf/Proyecto-Integracion
/SQL/423_sp_Reporte_Seleccionar_Reportes_Termino_Direccion.sql
UTF-8
1,090
3.984375
4
[]
no_license
--Delimiter $$ DROP PROCEDURE IF EXISTS sp_Reporte_Seleccionar_Reportes_Termino_Direccion $$ CREATE PROCEDURE sp_Reporte_Seleccionar_Reportes_Termino_Direccion ( inDireccion VARCHAR(255), inPage int, inCantResult int ) BEGIN SELECT r.Id AS Reporte_Id, r.Descripcion AS Reporte_Descripcion, r.Fecha ...
true
e20750815e53282404426e65abcabc9e56b5efc0
SQL
adityanandaaa/TA_B_7
/pengadaanfasilitas.sql
UTF-8
1,863
3.09375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Nov 08, 2019 at 11:25 AM -- Server version: 10.4.6-MariaDB -- PHP Version: 7.3.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
true
299cbee28ee91e34b2e88f75bca01606ba23cec9
SQL
arunbadhai/StockManagementSystem
/src/main/resources/db/migration/V4__InitializeProductions.sql
UTF-8
282
2.875
3
[]
no_license
CREATE TABLE if not exists productions( id varchar NOT NULL PRIMARY KEY, item_code varchar REFERENCES items(item_code), production_date DATE, producer varchar, quantity int, timestamp timestamp default current_timestamp, is_active boolean DEFAULT TRUE );
true
4064e36022361bbe12af5f7d227076c2b82c858f
SQL
thorwbm/lixiera_sql
/organizar/financeiro/lancamentos/desconto_duplicado.sql
UTF-8
2,189
3.84375
4
[]
no_license
with cte_log_insert_duplicado_desconto as ( select lancamento_id, desconto_contrato_id--, tipo_id from log_financeiro_desconto dlt where dlt.history_type = '+' and dlt.desconto_contrato_id is not null group by lancamento_id, desconto_contrato_id--, tipo_id having count(dlt.id) > 1 ) ...
true
0b1d181b0af0627275e23a8ebe84e3e3b014b277
SQL
byErraco/Compiladores
/compiler/compiler.sql
UTF-8
11,532
2.765625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 19-03-2019 a las 01:29:32 -- Versión del servidor: 10.1.8-MariaDB -- Versión de PHP: 5.6.14 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=...
true
43c06e8381858d5b07536b63673d12a9dd9166a1
SQL
lhy274/oraclesource2
/insert.sql
UHC
2,362
4.125
4
[]
no_license
-- ȸ, Խñ , Ա... ǻȰ õ . -- DEPT ̺ ؼ dept_temp ̺ CREATE TABLE DEPT_TEMP AS SELECT * FROM DEPT; -- ̺ ȸ SELECT * FROM DEPT_TEMP; -- ߰ϱ( 1) INSERT INTO DEPT_TEMP(DEPTNO, DNAME, LOC) VALUES(50, 'DATABASE', 'SEOUL'); -- ߰ϱ( 2) INSERT INTO DEPT_TEMP VALUES(60, 'NETWORK', 'BUSAN'); -- -- INSERT INTO DEPT_TEMP(DEPTN...
true
038726c42db6effce0de2f1b28acf89edee68f08
SQL
Symplicity/subdivision-list
/data/ca/sqlite/subdivisions_IT.sqlite.sql
UTF-8
11,617
2.59375
3
[ "MIT" ]
permissive
CREATE TABLE subdivision_IT (id VARCHAR(6) NOT NULL, name VARCHAR(255), level VARCHAR(64) NOT NULL, PRIMARY KEY(id)); INSERT INTO "subdivision_IT" ("id", "name", "level") VALUES ('IT-65', 'Abruços', 'region'); INSERT INTO "subdivision_IT" ("id", "name", "level") VALUES ('IT-AG', 'Agrigent', 'province'); INSERT INTO "s...
true
485ee16e0f75218e00d18570303623f269c7b77c
SQL
tuyetsonfutu/upanh
/install/dulieu.sql
UTF-8
10,294
3.046875
3
[]
no_license
DROP TABLE IF EXISTS `administrators`; CREATE TABLE `administrators` ( `ADMINID` bigint(20) NOT NULL auto_increment, `email` varchar(80) NOT NULL default '', `username` varchar(80) NOT NULL default '', `password` varchar(50) NOT NULL default '', PRIMARY KEY (`ADMINID`), UNIQUE KEY `email` (`email`), UNIQ...
true
e53e244fbfe6e7e38a108ce7378a932971b46b87
SQL
JamesMugo/Displina
/displina.sql
UTF-8
629
2.890625
3
[ "MIT" ]
permissive
CREATE DATABASE `displina` /*!40100 DEFAULT CHARACTER SET latin1 */ use `displina`; CREATE TABLE `users` ( `userid` int(11) NOT NULL AUTO_INCREMENT, `username` varchar(100) NOT NULL, `email` varchar(100) NOT NULL, `phone` varchar(100) NOT NULL, `age` varchar(4) NOT NULL, `organization` varchar(100) NOT NULL, `...
true
e0c1c5d4dca2c8dc411b15d35e010cd1824bba86
SQL
qkmc-rk/panda
/src/main/java/SQL/panda.sql
UTF-8
1,122
3.375
3
[]
no_license
/* this is database designed by ruankun. contact: qkmc@outlook.com db name should be:panda */ CREATE TABLE t_user( user_id INT NOT NULL PRIMARY KEY AUTO_INCREMENT, user_login VARCHAR(16) NOT NULL, user_pass VARCHAR(32), old_pass VARCHAR(32), user_name VARCHAR(12), user_mail VARCHAR(32), user_url VA...
true
29d298ef69d53556fb0dc2b8d16d4ba3fb0761f5
SQL
RebeccaClarkson/mimicry-db
/shared/scripts/db/buildmimic.sql
UTF-8
2,175
3.453125
3
[]
no_license
-- Adapted from MIT Licensed https://github.com/MIT-LCP/mimic-code DROP TABLE IF EXISTS ADMISSIONS; CREATE TABLE ADMISSIONS ( ROW_ID INT NOT NULL, SUBJECT_ID INT NOT NULL, HADM_ID INT NOT NULL, ADMITTIME TIMESTAMP(0) NOT NULL, DISCHTIME TIMESTAMP(0) NOT NULL, DEATHTIME TIMESTAMP(0), ADMISSION_TYPE VARCH...
true
dd075b605bcbaa7d374c63d4c743a00ab605993e
SQL
silence-do-good/stress-test-Postgres-and-MySQL
/dump/high/day24/select0204.sql
UTF-8
268
2.96875
3
[]
no_license
SELECT sen.name FROM SENSOR sen, SENSOR_TYPE st, COVERAGE_INFRASTRUCTURE ci WHERE sen.SENSOR_TYPE_ID=st.id AND st.name='WiFiAP' AND sen.id=ci.SENSOR_ID AND ci.INFRASTRUCTURE_ID=ANY(array['4038','5100_5','3100_2','4051','5232','4061','5228','2100_6','3226','3243'])
true
1dc8116766d5640515b601b7066df37fe8dbe883
SQL
seafwg/javaSpringClouldTest
/doc/db/all.sql
UTF-8
770
3.21875
3
[]
no_license
drop table if exists `test`; create table `test` ( `id` char(8) not null default '' comment 'id', `name` varchar(50) comment '名称', primary key (`id`) ) engine=innodb default charset=utf8 comment='测试'; insert into `test` (id, name) values (2, '测试2'); insert into `test` (id, name) values (1, '测试'); insert in...
true
39d6fa4fa367229e81325f48f4daad49038f7e9c
SQL
rafadelnero/alura
/alura/consultas-sql-complexas-sql-2/alura_sql_2.sql
UTF-8
4,679
4
4
[]
no_license
select * from aluno left outer join matricula on matricula.aluno_id = aluno.id where matricula.aluno_id is null; select a.nome from aluno a where not exists (select m.id from matricula m where m.aluno_id = a.id); select a.nome from aluno a where not exists (select m.id from matricula m where m.aluno_id = a.id and ...
true
c886e493cd813346cd2a1376acfd25eb27722d3f
SQL
caenHiro/Restricciones_Integridad
/Tablas/CreacionTablas.sql
UTF-8
44,767
3.53125
4
[]
no_license
 CREATE SCHEMA REPRESENTANTES; CREATE SCHEMA CASILLAS; CREATE SCHEMA GEOGRAFICO; CREATE SCHEMA PARTIDOSPOLITICOS; DROP SCHEMA PUBLIC; ------------------------------------------------------------------------------------------------------------------------- -------------------------------- ESQUEMA GEOGRAFICO...
true
c0a25ac10a8461eeb591b5142e220b70f2416dcb
SQL
Nikitasobakabmx/DBLessons
/lab4/join.sql
UTF-8
3,121
4.4375
4
[]
no_license
/*1*/ Select P.PersonID, name, surname, patronumic from Person AS P JOIN Phone AS H ON H.PersonID = P.PersonID JOIN MarkSet AS MS ON MS.PersonID = P.PersonID JOIN Mark AS M ON M.MarkID = MS.MarkID WHERE type = 'Друзья' AND phonenumber LIKE '8911%'; /*2*/ Select P.PersonID, name, surname, patronumic from ...
true
cfc4f9e930587c66ff28c2900326df0c39c8c700
SQL
NikitaSNS/Web
/18/pract16.sql
UTF-8
2,472
3.0625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.6.5.2 -- https://www.phpmyadmin.net/ -- -- Хост: 127.0.0.1:3306 -- Время создания: Апр 19 2017 г., 12:34 -- Версия сервера: 5.7.16 -- Версия PHP: 7.1.0 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT *...
true
115c96aa2205a08620ecc7450c5e4085479694be
SQL
gaFregatto/5COP009
/ListaConsultas-S18/ex18.sql
UTF-8
162
3.15625
3
[]
no_license
SELECT CONCAT(empregado.nome) AS empregado, CONCAT(chefe.nome) AS chefe FROM empregado LEFT JOIN empregado AS chefe ON empregado.cod_emp_chefe = chefe.codigo_emp;
true
6f6f5e9c9d0d3d231383043bb8edfe75f9101dc4
SQL
rnavroze/aiesec-expa-op-simulation
/aiesec_xpdf.sql
UTF-8
4,488
3.109375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.6.3 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Sep 08, 2016 at 10:37 PM -- Server version: 5.7.13 -- PHP Version: 5.6.16 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */...
true
315a1f07ca3568d40ca61aead99042313e7af0a5
SQL
OHDSI/Vocabulary-v5.0
/ICD9Proc/load_stage.sql
UTF-8
9,605
3.5
4
[ "Unlicense" ]
permissive
/************************************************************************** * Copyright 2016 Observational Health Data Sciences and Informatics (OHDSI) * * 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 Li...
true
c4c86f10da26e7c99baa02e5bf425a0bde20eaa3
SQL
psyipm/umls-db
/33.sql
UTF-8
2,871
3.515625
4
[]
no_license
-- Tasks #124 ALTER TABLE re_object ADD COLUMN commission_total double precision DEFAULT 0 NOT NULL; ALTER TABLE re_object ADD COLUMN commission_total_type BOOLEAN DEFAULT false NOT NULL; ALTER TABLE re_object ADD COLUMN commission_partner double precision DEFAULT 0 NOT NULL; ALTER TABLE re_object ADD COLUMN commissi...
true
461019ec1eec3a44300e751cdf36802c69326bfd
SQL
ujnak/JPCOVIT19ETL
/parsers/210005_parse_pdf_table_gifu.sql
UTF-8
2,753
3.328125
3
[ "MIT" ]
permissive
create or replace function parse_pdf_table_gifu( P_MUNICIPALITY_CODE IN NUMBER DEFAULT 210005, P_URL IN VARCHAR2, P_CACHE IN NUMBER DEFAULT 1 ) return t_table pipelined as l_columns apex_t_varchar2; l_line varchar2(1000); l_parsed varchar2(1000); l_row t_table_row := null; l_file_name var...
true
6ee6bdb077cdfdf13890c8382ca2b7c8985eb442
SQL
szarbartosz/pbd-lab
/zadania_koncowe/zadanie2.sql
UTF-8
1,745
3.78125
4
[]
no_license
use northwind /*cwiczenie 1*/ select orderid, sum(unitprice * quantity * (1 - discount)) as 'total sum' from [order details] group by orderid order by 2 desc select top 10 orderid, sum(unitprice * quantity * (1 - discount)) as 'total sum' from [order details] group by orderid order by 2 desc select top 10 with ties...
true
b8823880c8ad97a2d6f8232023eb09e88a3612bf
SQL
mdjukic/repos
/q_weworks/repos/mdjRetailAX/Markdown.Data.PostgresSql/app/02_schema_PriceLadder.sql
UTF-8
349
2.765625
3
[]
no_license
CREATE TABLE IF NOT EXISTS price_ladder ( price_ladder_id SERIAL NOT NULL CONSTRAINT pk_price_ladder PRIMARY KEY, price_ladder_type_id INT NOT NULL, description VARCHAR(255) NOT NULL, CONSTRAINT fk_price_ladder_type_id FOREIGN KEY (price_ladder_type_id) REFERENCES price_ladder_typ...
true
d88a8f64e9fb59a32cd62224a43c2f6f658aafa1
SQL
cornelioroyer/abaco-design
/i_cxpbalance.sql
UTF-8
421
3.265625
3
[]
no_license
delete from cxpbalance where compania = '03' and year = 2007 and periodo = 8; insert into cxpbalance(compania, aplicacion, year, periodo, proveedor, saldo) select cxpdocm.compania,'CXP',2007,8,proveedor, sum(cxpdocm.monto*cxpmotivos.signo) from cxpdocm, cxpmotivos where cxpdocm.motivo_cxp = cxpmotivos.motivo_cxp and c...
true
05275b16402022a04dd3d933e37d43d2d7069ce5
SQL
siklinikdreko/siklinikdreko
/klinik.sql
UTF-8
4,120
3.1875
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 5.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: May 31, 2020 at 09:30 AM -- Server version: 10.4.11-MariaDB -- PHP Version: 7.4.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
b0255cf14cb8d589136a8cd8171228bc679789fd
SQL
prometheusjj/springboot-blog
/blog_db.sql
UTF-8
9,621
3.5
4
[]
no_license
/* Navicat Premium Data Transfer Source Server : localhost Source Server Type : MySQL Source Server Version : 80013 Source Host : localhost:3306 Source Schema : blog_db Target Server Type : MySQL Target Server Version : 80013 File Encoding : 65001 Date: 02/01/2020 23...
true
fcc5f375a278cba1c6cce1738746773eaf9573b3
SQL
FiglerReNi/headfirstjquery_7_ui
/tabla.sql
UTF-8
616
3.21875
3
[]
no_license
CREATE DATABASE user_interface; CREATE USER 'user_db_user'@'localhost' IDENTIFIED BY 'user_db_password'; GRANT SELECT,INSERT,UPDATE,DELETE ON user_interface.* TO 'user_db_user'@'localhost'; USE user_interface; CREATE TABLE `user_interface`.`form`( `id` INT NOT NULL AUTO_INCREMENT, `date` VARCHAR(16) NOT NULL,...
true
1d865dd43decbfee6be78d3a6713474d2b1795e4
SQL
MrBrook/Dimensionador-de-Cabos
/Dados/Banco/Banco_Dados/instalacoes_materiais.sql
UTF-8
2,020
2.703125
3
[]
no_license
-- MySQL dump 10.13 Distrib 5.7.17, for Win64 (x86_64) -- -- Host: localhost Database: instalacoes -- ------------------------------------------------------ -- Server version 5.7.18-log /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_...
true
89cd08117bef5e069f4cdcbbcd022f10110dbbde
SQL
harishan2013/test
/MIGDataCollector/scripts/migrations/migrations/versions/004_add-notification-and-alert-tables_mysql_upgrade.sql
UTF-8
2,897
3.4375
3
[]
no_license
-- ----------------------------------------------------- -- Table `notification` -- ----------------------------------------------------- CREATE TABLE IF NOT EXISTS `notification` ( `notification_id` INT(20) NOT NULL auto_increment, `notification_type` VARCHAR(20) NOT NULL, PRIMARY KEY (`notification...
true
d8458b9778f14daa78b487e96b05da0373f5f5fa
SQL
mrchenliang/BootcampX
/1_queries/1_students_and_cohorts.sql
UTF-8
3,042
4.75
5
[]
no_license
-- Students in Cohort -- Get the names of all of the students from a single cohort. -- Select their id and name. -- Order them by their name in alphabetical order. -- Since this query needs to work with any specific cohort, just use any number for the cohort_id. SELECT id, name FROM students where cohort_id = 1 ORDER...
true
151bf1a1f73a6684a1f472e63950d4e181e74df1
SQL
avamsykiran/PLSQL_23Apr2021_28Apr2021_14001600
/script06.sql
UTF-8
397
2.875
3
[]
no_license
declare v_bonusper number(5); v_department_id employees.department_id%type; begin select department_id into v_department_id from employees where employee_id = 120; v_bonusper := case v_department_id when 30 then 20 when 40 then 15 when 50 then 10 else 5 end; ...
true
0d1d2b61f3377779cfe04237585df7e48e853378
SQL
wonhyukc/oracle1_2020
/206-06 보충 비교.sql
UTF-8
1,248
3.984375
4
[]
no_license
/* 정원혁 2020.10 for Oracle */ -- JOIN / 하위질의 subquery / 상관하위질의 correlated subquery / EXIST select * from department; select * from deptUnit; -- INSERT department VALUES ( 'x', 'xxx', 'x', '2020-01-01'); ALTER TABLE department DROP FOREIGN KEY fk_dept_deptUnit; DESC department; INSERT department VALUES ( 'x', 'xxx',...
true
c68d07c1b625514e91fef27ebb30011e14ef55fc
SQL
mcgidev/mPortal
/Portal/WebSystem/WCMS.Framework.SqlDabase/dbo/Stored Procedures/IncidentCategory_Set.sql
UTF-8
621
3.390625
3
[ "MIT" ]
permissive
CREATE PROCEDURE dbo.IncidentCategory_Set ( @Id int = -1, @Name nvarchar(500), @GroupId int, @Description nvarchar(4000), @Rank int ) AS SET NOCOUNT ON IF(@Id > 0) BEGIN -- Update UPDATE IncidentCategory SET Name = @Name, GroupId = @GroupId, Description = @Description, R...
true
a9166837dc81d050f4044ebb84262fa2e7e857df
SQL
alexlarbi/AstronomyDB
/Data/AstroDB_cb_pub.sql
UTF-8
2,298
3.015625
3
[]
no_license
-- MySQL dump 10.13 Distrib 5.7.17, for macos10.12 (x86_64) -- -- Host: localhost Database: AstroDB -- ------------------------------------------------------ -- Server version 8.0.11 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */...
true
c22c45c6b103061d1c6add7f32251dedbbd763e6
SQL
fformenti/University_of_Washington
/Introduction to Data Science/assignment2/answers/answers.sql
UTF-8
3,482
4.09375
4
[]
no_license
------------------ -- Problem 1 ------------------ -- Create table CREATE TABLE frequency ( docid character(30), term character(30), count integer ) COPY frequency FROM 'C:\Users\Cicero\Documents\Estudos\University of Washigton\Introduction to Data Science\assignment2\Frequency2.csv' CSV HE...
true
1a001345c11dc5b2a47490cfd822f55eb04ade18
SQL
kenyon-luce/database-exercises
/functions_exercises.sql
UTF-8
894
3.8125
4
[]
no_license
USE employees; SELECT * FROM employees WHERE (first_name = 'Irena' OR first_name = 'Vidya' OR first_name = 'Maya') ORDER BY last_name, first_name; SELECT CONCAT(first_name, ' ', last_name) FROM employees WHERE last_name LIKE 'E%' OR last_name LIKE '%E' ORDER BY emp_no; SELECT * FROM employees WHERE month(birth_date)...
true
c7afd2608bd9b2c67e971204f4794930f937cbe6
SQL
EIDSS/EIDSS7
/OpenEIDSS/EIDSS.DB/dbo/Stored Procedures/Procs1/spCountry_SelectLookup.sql
UTF-8
494
3.203125
3
[ "BSD-2-Clause" ]
permissive
 --exec spCountry_SelectLookup 'en' CREATE PROCEDURE dbo.spCountry_SelectLookup @LangID As nvarchar(50) AS SELECT country.idfsReference as idfsCountry, country.[name] as strCountryName, country.[ExtendedName] as strCountryExtendedName, gisCountry.strCode as strCountryCode, country.intRowStatus F...
true
3dac3022e684e8eb873bfa05863ff37edcd9f7bd
SQL
apmareggoh/diplom
/www/test/diplom.sql
UTF-8
19,067
2.96875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 3.5.1 -- http://www.phpmyadmin.net -- -- Хост: 127.0.0.1 -- Время создания: Янв 29 2014 г., 02:05 -- Версия сервера: 5.5.25 -- Версия PHP: 5.3.13 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!4010...
true
77786469f06df722861999ef86b60b5bc49077d6
SQL
silence-do-good/stress-test-Postgres-and-MySQL
/dump/low/day19/select1956.sql
UTF-8
177
2.625
3
[]
no_license
SELECT timeStamp, temperature FROM ThermometerOBSERVATION o WHERE timestamp>'2017-11-18T19:56:00Z' AND timestamp<'2017-11-19T19:56:00Z' AND temperature>=5 AND temperature<=61
true
fce633d8711c2f86400f4e8e724eb3c8061b0a94
SQL
rldutch1/emar
/sql/emar.mysql
UTF-8
391
2.828125
3
[]
no_license
-- Create user database. CREATE DATABASE emar; -- Create local user. CREATE USER 'emar'@'localhost' IDENTIFIED BY 'emar'; GRANT ALL PRIVILEGES ON emar.* TO 'emar'@'localhost' WITH GRANT OPTION; -- Create remote user. CREATE USER 'emar'@'%' IDENTIFIED BY 'emar'; GRANT ALL PRIVILEGES ON emar.* TO 'emar'@'%' WITH GRANT OP...
true
09b885366b34a1115bf3caf52b2200c6d54607c9
SQL
JKaplan814/UTexas_SQL_Homework
/Query List.sql
UTF-8
5,310
4.59375
5
[]
no_license
USE sakila; -- 1a: SELECT first_name, last_name FROM actor; -- 1b: SELECT CONCAT(first_name, ' ', last_name) AS Full_Name FROM actor; -- 2a: SELECT * FROM actor WHERE first_name IN ('JOE','JOSEPH'); -- 2b: SELECT * FROM actor WHERE last_name LIKE '%GEN%'; -- 2c: SELECT * FROM actor WHERE last_name LIKE '%LI%'...
true
2e857966387f8e9bb1022386501982db5145a70b
SQL
khangdo2019/stiff_money
/api/database/registration.sql
UTF-8
1,204
3.0625
3
[]
no_license
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; ​ -- -- Database: `database` -- ​ -- -------------------------------------------------------- ​ -- -- Table structure for table `registration` -- USE stiff_money​ CREATE TABLE 'registration' ( 'Full Name' varchar...
true
4d04a225c4d1dd21828765860a0f6452224ce98a
SQL
rnaw/trr
/Database/Tables/[2016] - RB_HST_BORROWINGS_01.sql
UTF-8
3,960
2.53125
3
[]
no_license
-------------------------------------------------------- -- DDL - DROP for Table RB_HST_DERIVATIVES_01 -------------------------------------------------------- BEGIN EXECUTE IMMEDIATE 'DROP TABLE "RB_HST_BORROWINGS_01"'; EXCEPTION WHEN OTHERS THEN IF SQLCODE != -942 THEN RAISE; END IF; END; / -----...
true
7dcd664b24866a708d4cea5bf2b5770eee719f2a
SQL
bater-swag/Homework-MySQL
/Homework_6/hm6.sql
WINDOWS-1251
2,207
4.625
5
[]
no_license
ALTER TABLE profiles ADD CONSTRAINT profiles_fk_photo_id FOREIGN KEY (photo_id) REFERENCES media(id), ADD CONSTRAINT profiles_users_fk_comm_id FOREIGN KEY (community_id) REFERENCES communities(id), ADD CONSTRAINT comm_users_fk_user_id FOREIGN KEY (user_id) REFERENCES users(id); ALTER TABLE media ...
true
2d6853698dec2c0dc33dfeeca6f728ca262b25e6
SQL
tcdale/ASBO
/web/sql/idle_sessions.sql
UTF-8
799
3.796875
4
[]
permissive
-- -- $Id: //Infrastructure/GitHub/Database/asbo/web/sql/idle_sessions.sql#1 $ -- WITH inactive_users AS ( SELECT s.username, s.machine, s.type, COUNT(1) how_many FROM v$process p JOIN v$session s on s.paddr = p.addr WHERE -- -- Days inactive -- fl...
true
429af06074f87233b4fb4375520163f071743585
SQL
mrotteveel/fb-datagrip
/catalog/queries/fb30/RetrieveProcedureReturnColumnsQuery.fb30.sql
UTF-8
5,272
3.25
3
[]
no_license
-- Retrieves OUT return columns for procedures -- Suitable for Firebird 3.0 and higher -- TODO Report domain name if applicable? Distinguish between domain default/not null and field specific default/not null? -- TODO Report TYPE OF COLUMN select trim(trailing from PACKAGE_NAME) as PACKAGE_NAME, trim(trailing fr...
true
380cd08ee0fcf1903614c316e3f81ae2cb814345
SQL
wf539/LearningTree925SQLProgrammingLanguageIntro
/925_HOCD1_H1_708_G2/Course925Examples/c8-04.sql
UTF-8
77
2.734375
3
[ "MIT" ]
permissive
SELECT SUM(CurrentSalary+COALESCE(Commission,0)) AS SumSal FROM Employees;
true
7fc901d020e112927053d034be9ff1d03c251d13
SQL
MaeyoiTeam/webtech2
/seat.sql
UTF-8
1,494
3
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.6.4 -- https://www.phpmyadmin.net/ -- -- Host: mysql56 -- Generation Time: Apr 22, 2018 at 12:48 PM -- Server version: 5.6.33 -- PHP Version: 5.6.26 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; ...
true
a32387d1c8326fef0e7641662bb7a84218a030f4
SQL
CUBRID/cubrid-testcases
/sql/_13_issues/_12_2h/cases/bug_bts_8664.sql
UTF-8
451
3.1875
3
[ "BSD-3-Clause" ]
permissive
drop table if exists t2; create table t2 (a varchar(10) default 'QA'); insert into t2 values ('QA'); insert into t2 values ('QB'); insert into t2 values ('QA'); --Q1 note: return two rows select * from t2 where a like '%A'; --note: this is important for this issue select * from t2 where a like '%A' limit 0; --test:...
true
294c0d5e2de841f476b428ea1e6fd0b625ce9bcd
SQL
yadav-sachin/database-assignment-3
/1i.sql
UTF-8
307
3.84375
4
[]
no_license
CREATE VIEW indian_players_view AS SELECT player_name as 'name', SUM(IFNULL(runs_scored, 0 )) as 'runs' FROM ball_batsman_runs RIGHT JOIN players ON striker = player_id WHERE country_name = "India" GROUP BY player_name; CREATE TABLE indian_players AS (SELECT * FROM indian_players_view ORDER BY name ASC);
true
f3e777117faa6f7b40de74fa19484df3fa9b11c4
SQL
raphael-trzpit/fifa-test
/scripts/init.sql
UTF-8
312
2.59375
3
[]
no_license
CREATE TABLE users ( name VARCHAR(255) PRIMARY KEY NOT NULL, password_hash VARCHAR(255) NOT NULL, team_id VARCHAR(255) NOT NULL ); CREATE TABLE players ( id VARCHAR(255) PRIMARY KEY, team_id VARCHAR(255) NOT NULL, first_name VARCHAR(255) NOT NULL, last_name VARCHAR(255) NOT NULL );
true
5c5ad3a44d1a1205ad9007272e982acee86557ee
SQL
khalan1789/Groupomania-Social-Network-Project
/Base_de_donnees/Groupomania.sql
UTF-8
7,846
3.328125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Hôte : 127.0.0.1:3306 -- Généré le : sam. 14 août 2021 à 19:52 -- Version du serveur : 8.0.21 -- Version de PHP : 7.3.21 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_C...
true
4b1c87f407817c82a0adbb8f65bcbcb2b06bf5d2
SQL
ramyothman/Qiyas
/Source/EventoNew/QiyasDatabase/aicaqiyasf/Stored Procedures/InsertNewConferenceRegistrationSettings.sql
UTF-8
672
3.359375
3
[]
no_license
CREATE PROCEDURE [aicaqiyasf].InsertNewConferenceRegistrationSettings @ConferenceRegistrationSettingID int output , @ConferenceID int, @RegistrationEndDate datetime, @RegistrationStartDate datetime, @IsActive bit AS INSERT INTO [Conference].[ConferenceRegistrationSettings] ( [ConferenceID], ...
true
a624228379dc6522d59164d1acba9909aa9d5a10
SQL
pedroidiap/Sandwicherie
/docs/dbSandwicherie.sql
UTF-8
7,842
3.875
4
[]
no_license
/*------------------------------------------- * @site sandwicherie * @page dbSandwicherie.sql * @description Script for database * @author Ferreira Pedro * @date 04.03.2017 -------------------------------------------*/ -- ------------ DATABASE CREATION -------------- -- dbSandwicherie DROP DATABASE IF EXISTS db...
true
e37be31038f9da87fac7a38ea34cb49f72b63116
SQL
Samson300/project-elon
/seed.sql
UTF-8
3,380
3.203125
3
[]
no_license
insert into users (first_name, last_name, account_name, email, password) values ('Jocelyn', 'Bergdorff', 'JoceRoseB', 'j.bergdorff@sparkleapp.com','*****'), ('Chris', 'Trauco', 'Trauco', 'Chris@trau.co', '$2a$10$GUD4b2PGn0oMByCTAS4Twu76o4i4N8/YhuV3XuvE8SpqMWicRsVCS'), ('Siri', 'the Pug', 'SirithePug','Sirithepug@gmail...
true