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
3d7a8463301bd3baf89b1a153e055cc36f950729
SQL
Takiyo/WebDev
/OLD/labs/week02/aliendatabase.sql
UTF-8
1,718
2.859375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Sep 08, 2018 at 02:55 AM -- Server version: 10.1.35-MariaDB -- PHP Version: 7.2.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
6cbceca210ffc967130ec1560aa9a7b655b49ad0
SQL
sagersmith8/java_projects
/JavaIILabs/bin/sql/Example.sql
UTF-8
401
3.078125
3
[]
no_license
declare cursor item_cursor is select item_desc, sum(item_id) total from item group by item_desc; current_item item_cursor%rowtype; begin open item_cursor; loop fetch item_cursor into current_item; exit when item_cursor%notfound; dbms_output.put_line(' Item Description = ' || current_item.item_desc...
true
bbb4b235bbdb083438b527645ad8fc88e976d861
SQL
fyubang/Projects_Ecole_Polytechnique
/Big_data_analytics/hw1/Q5.sql
UTF-8
311
3.65625
4
[]
no_license
select distinct sname from Catalog c, Suppliers s, Parts p where c.sid = s.sid and c.pid = p.pid and color = 'Red' and cost < 100 and sname in( select distinct sname from Catalog c, Suppliers s, Parts p where c.sid = s.sid and c.pid = p.pid and color = 'Green' and cost < 100 ) order by sname;
true
3136017d76e8c1bc423344da58b8a9c72abda6fa
SQL
arishasan/app_retail
/_DB/db_retail.sql
UTF-8
29,890
3
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: 21 Apr 2018 pada 08.01 -- Versi Server: 10.1.8-MariaDB -- PHP Version: 5.6.14 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT ...
true
1333b0495329ba13f23a04da21535b5ce3f2feb0
SQL
farhanmb02/pw2021_203040128
/pertemuan 13/phpdasar.sql
UTF-8
3,451
2.890625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Apr 26, 2021 at 06:49 AM -- Server version: 10.4.16-MariaDB -- PHP Version: 7.4.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
true
4f6e1dea383faca406a594d8740fddc4fd3378b2
SQL
junioryauricasa/PRY2706172045-RSTC
/datos/administrativo/clases_moneda_comercial/SQL_PA_Moneda_Comercial_v0.1.sql
UTF-8
2,888
3.53125
4
[]
no_license
USE db_resteco; DROP PROCEDURE IF EXISTS INSERTARMONEDACOMERCIAL; DELIMITER $$ CREATE PROCEDURE INSERTARMONEDACOMERCIAL( OUT _intIdMonedaComercial INT, IN _intIdTipoCambio INT, IN _dcmCambio1 DECIMAL(10,6), IN _dcmCambio2 DECIMAL(10,6), IN _dtmFechaCambio DATETIME ) BEGIN INSERT INTO tb_cambio_moneda_c...
true
6fc55f6271d61e75ede9b4f2fcdfb6d3779a9632
SQL
SimeonKazandzhiev/Software-University-DataBase-module
/MySQL/Basic CRUD/sql-exersices-problems.sql
UTF-8
1,904
3.984375
4
[]
no_license
SELECT * FROM `departments` ORDER BY `department_id`; SELECT `name` FROM `departments`; SELECT `first_name` , `last_name`, `salary` FROM `employees`; SELECT `first_name`, `middle_name` , `last_name` FROM `employees`; SELECT concat(`first_name`,'.' , `last_name`, '@softuni.bg') AS 'full_email_address' FROM `employ...
true
5b9993da3da345f986436dddb83518c40c5c43a3
SQL
inponomarev/java-mipt
/springjdbc-example/src/main/resources/edu/phystech/jdbcdemo/dbcreate.sql
UTF-8
558
3.4375
3
[]
no_license
create table speaker ( id INT not null primary key, name VARCHAR(50) ); create table conference ( id INT not null primary key, name VARCHAR(50) ); create table talk ( id INT not null primary key, name VARCHAR(500) not null, conferenceid INT not null, foreign key (conferenceid) references...
true
bb50daf1859b5986251ebf6aa7b80613cb343d3b
SQL
liosvaldo/DB_cours
/material/mySQL_Parte_1/bd/-secao04.sql
UTF-8
1,670
3.984375
4
[]
no_license
-- CREATE DATABASE secao04; USE secao04; /*CREATE TABLE tipos_produto( codigo INT NOT NULL AUTO_INCREMENT, descricao VARCHAR(30) NOT NULL, PRIMARY KEY(codigo) ); CREATE TABLE produtos( codigo INT NOT NULL AUTO_INCREMENT PRIMARY KEY, descricao VARCHAR(30) NOT NULL, preco DECIMAL(8,2) NOT NULL...
true
3e223ed8ae0744e17b959127d4de3fd5535871a3
SQL
FirebirdSQL/x-cvs-vulcanj
/VulcanJ/ddl/nist/cdr009.sql
UTF-8
1,836
3.203125
3
[]
no_license
SET NAMES ASCII; CREATE DATABASE 'test.fdb' DEFAULT CHARACTER SET ISO8859_1; INPUT ddl/input/base-tab.sql; COMMIT; DELETE FROM STAFF3; COMMIT; CREATE TABLE PROJ3 (PNUM CHAR(3) NOT NULL, PNAME CHAR(20), PTYPE CHAR(6), BUDGET DECIMAL(9), CITY CHAR(15), UNIQUE (PNUM)); CREATE TABLE WORKS3 (EMPNUM CHAR(3) NOT NULL, P...
true
d175ab43cd9c537afd5ccff506dfac99effa2b7c
SQL
mdonov/Coursera_DU_SQL.sql
/SQL_Coursera_DU_code.sql
UTF-8
11,500
4.59375
5
[]
no_license
--What is the city and state of the store which had the greatest increase in average daily revenue from November to December? SELECT sub.store, sub.MonthlyChange, str.city, str.state FROM (SELECT tr.store, COUNT (DISTINCT (CASE WHEN EXTRACT(MONTH FROM tr.saledate)=11 then tr.saledate E...
true
e7613fbcdfef30a2bd373bdf590ff39200d0574e
SQL
frankbwire/iVerify---imei_verification_system
/sql/imei_db.sql
UTF-8
305,579
2.859375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Oct 28, 2019 at 01:56 PM -- Server version: 10.3.16-MariaDB -- PHP Version: 7.3.6 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @O...
true
75f89d4f55290d003829b44e952dff9f8e21670d
SQL
FirstPlaygroundAndThenIcecream/PBA_Semester_01
/Database/create_view_query.sql
UTF-8
183
3.03125
3
[]
no_license
CREATE VIEW Property_Owner_VIEW AS SELECT Property_For_Rent.pno, Property_For_Rent.ono, Owner.fname, Owner.lname FROM Property_For_Rent, Owner WHERE Property_For_Rent.ono = Owner.ono;
true
e8563c35acaa2e0fa703df54b7db68dda3e34430
SQL
vanminh0910/yii7
/protected/modules/accounts/data/schema_mysql.sql
UTF-8
1,213
3.046875
3
[]
no_license
CREATE TABLE `tbl_account` ( `id` int(11) NOT NULL AUTO_INCREMENT, `username` varchar(20) NOT NULL, `password` varchar(128) NOT NULL, `email` varchar(128) NOT NULL, `first_name` varchar(128) NOT NULL, `last_name` varchar(128) NOT NULL, `activation_key` varchar(128) NOT NULL DEFAULT '', `street` VARCHAR(...
true
ae8aaa8666a54c808e6a920f5bd64f1244c9966c
SQL
sunsu18/testSvnSync
/Portals/tags/TEST_ENGAGE_REL_version 1.0/trunk/SQL_SCRIPTS/Tables/PRT_CARD_TRANSACTION_HEADER.sql
UTF-8
4,091
2.953125
3
[]
no_license
CREATE TABLE PRT_CARD_TRANSACTION_HEADER ( PALS_COUNTRY_CODE VARCHAR2(2 BYTE) NOT NULL , UREF_TRANSACTION_ID VARCHAR2(10 BYTE) NOT NULL , PURCHASE_COUNTRY_CODE VARCHAR2(2 BYTE) , ORDER_ID VARCHAR2(10 BYTE) , PRELIM_ID VARCHAR2(10 BYTE) , CARD_1_ID VARCHAR2(20 BYTE) , CARD_2_ID VARCHAR2(20 BYTE) , CAR...
true
2575d3c0f21d8f3ef1cb852e6438ede641868ba9
SQL
efritts/WholesaleTeam6
/sql/wholesaler_team6_insert.sql
UTF-8
1,902
2.984375
3
[]
no_license
INSERT INTO Supplier (`Sup_id`, `Sup_name`, `Sup_address`, `phone`) VALUES (1, 'Number One Supplier', '111 First Ave', '111-111-1111'), (2, 'Twin City Goods', '2 Pear St.', '222-222-0010'), (3, 'Trinity Trinkets', '11 Jefferson Ct.', '333-011-3333'), (4, 'ATV Retail', '40 Dollar Way', '100-444-0100'), (5, 'The Sulliva...
true
d6c8bcd13c44784bcd4d84a55ba61c1c86887437
SQL
JAPHETHNYARANGA/nyaranga-todo
/create.sql
UTF-8
259
2.5625
3
[]
no_license
CREATE DATABASE todolist; \c todolist; CREATE TABLE tasks (id SERIAL PRIMARY KEY, description VARCHAR, completed BOOLEAN, categoryid INTEGER); CREATE TABLE categories (id SERIAL PRIMARY KEY, name VARCHAR); CREATE DATABASE todolist_test WITH TEMPLATE todolist;
true
c5460999024557bf66dd553a64f97f78abde437f
SQL
ThinkUpLLC/makerbase
/sql/2015-09-02_xoxo-optin.sql
UTF-8
1,102
3.515625
4
[]
no_license
ALTER TABLE event_makers RENAME TO event_permissions; ALTER TABLE event_permissions CHANGE twitter_username twitter_username VARCHAR(100) NOT NULL COMMENT 'Twitter username.'; ALTER TABLE event_permissions ADD INDEX (event, twitter_username); -- -------------------------------------------------------- -- -- Table s...
true
fe490c9706c169ccbbede00cc9d87933c0978255
SQL
Rodney0119/EJECUCION-DE-CONSULTAS
/CONSULTAS.sql
UTF-8
309
3.21875
3
[]
no_license
-- conssulta selec t y fro m SELECT * from productos; -- where: consulta wher e select ID_Producto, Desc_Producto, ID_MARCA, ID_TIPO_PRODUCTO, Precio FROM productos WHERE Precio between 80 and 120 -- Desc_Producto like '%PAPEL%' -- Desc_Producto = 'CALCULADORA DR-120' -- Precio > 50 order by Precio asc
true
27a740b3fd31a327b7f6c3f94104e1bc401e8dfc
SQL
CSSE-17/WaterfordMobile
/src/main/resources/db_dumps/Dump20171103-2/deema_baby_fair_inventory.sql
UTF-8
2,732
3.015625
3
[]
no_license
-- MySQL dump 10.13 Distrib 5.7.9, for Win64 (x86_64) -- -- Host: localhost Database: deema_baby_fair -- ------------------------------------------------------ -- Server version 5.7.11-log /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESU...
true
8e7e04010ec7c1b3dff2136875a7299c86c3194c
SQL
sxu2012/eurocup
/sql_q16_sol.sql
UTF-8
419
4.3125
4
[]
no_license
-- 16. Write a SQL query to find referees and the number of matches they worked in each venue. WITH tt AS (SELECT COUNT(*) AS number_of_matches, referee_id, venue_id FROM match_mast GROUP BY venue_id, referee_id ) SELECT rm.referee_name, sv.venue_name, tt.number_of_matches FROM referee_mast rm INNER JOIN ...
true
7a67d10bc28c32d635847cfd659e1f7e42bfb989
SQL
Arevy/BD-SQL
/Laboratoare complete/Lab 7/lab7ex21.sql
UTF-8
350
3.03125
3
[]
no_license
desc dept_col; accept p_cod prompt "Introduceti codul departamentului"; select * from dept_col where department_id = &p_cod; accept p_nume prompt "Introduceti numele departamentului"; accept p_mgr prompt "Introduceti codul managerului"; update dept_col set department_name = '&p_nume', manager_id = &p_mgr where depa...
true
7fa1ef7d7d1c078b0cf92797f3173119e48e1314
SQL
MakeMeAMeMe/BAN01
/docs/db_create.sql
UTF-8
780
3.59375
4
[]
no_license
CREATE SEQUENCE cod_pessoa_seq; CREATE SEQUENCE cod_equipe_seq; CREATE TABLE Pessoas ( cod_pessoa INT UNIQUE, nome VARCHAR(40), documento VARCHAR(15) UNIQUE, data_nascimento DATE, CONSTRAINT pk_pessoa PRIMARY KEY (cod_pessoa) ); CREATE TABLE Equipes ( cod_equipe INT UNIQUE, nome varchar(40), CONSTRAINT pk_equ...
true
6d437649a5598d2188fc914ad5cf1042309a28cb
SQL
melsborburgh/kederan
/src/main/database/install/tables/kdr_usages.sql
UTF-8
973
3.046875
3
[]
no_license
CREATE TABLE KDR_USAGES ( USAGE_ID NUMBER NOT NULL ENABLE, USAGE_NAME VARCHAR2(100) NOT NULL ENABLE, USAGE_DESC VARCHAR2(1000), AUDIT_CREATION_DATE DATE INVISIBLE, AUDIT_CREATION_USER VARCHAR2(1000) INVISIBLE, AUDIT_CREATION_SOURCE VARCHAR2(1000) INVISIBLE, AUDIT_MUTATION_DATE DATE INVISIBLE, ...
true
70afdd5157fbadd3d17a6969b4a29c0391b9e398
SQL
pavel-voinov/oracle-dba-workspace
/scripts/reports/sysaux_top_segments.sql
UTF-8
754
3.515625
4
[ "MIT" ]
permissive
/* */ @@reports.inc col SgmntSize heading 'Sgmnt|Size|Mb' col SgmntSize format 99999 col TSname heading 'TSpace|Name|' col TSname format a25 col SgmntOwner heading 'Sgmnt|Owner|' col SgmntOwner format a15 col SgmntName heading 'Sgmnt|Name|' col SgmntName format a35 col SgmntType heading 'Sgmnt|Type|' col SgmntType for...
true
d7bb17f2f61698695a0097318aad5c48ee27595a
SQL
fabianaguirre10/Fuente_industrial
/Mardis.Engine.Database/Branch.sql
UTF-8
1,911
3.046875
3
[]
no_license
CREATE TABLE [MardisCore].[Branch] ( [Id] UNIQUEIDENTIFIER NOT NULL PRIMARY KEY, [IdAccount] UNIQUEIDENTIFIER NOT NULL, [Code] VARCHAR(50) NOT NULL, [ExternalCode] VARCHAR(20) NULL, [Name] VARCHAR(200) NOT NULL, [Label] VARCHAR(200) NOT NULL, [CreationDate] DATETIME NOT NULL, [IdCountry] ...
true
3c4c62bd1c774927fcabdc7aad3d946676066318
SQL
Kkandidov/userbanklistHEROKU
/src/main/resources/createDb.sql
UTF-8
560
3.53125
4
[]
no_license
-- table creation users CREATE TABLE users( user_id SERIAL PRIMARY KEY, name CHARACTER VARYING(30) NOT NULL, surname CHARACTER VARYING(30) NOT NULL ); -- table creation accounts CREATE TABLE accounts( account_id SERIAL PRIMAR...
true
75a96d1204da2123ae5dd55092f85833dfe7c02b
SQL
imrancluster/stay-healthy
/physiology/src/main/resources/data.sql
UTF-8
462
2.78125
3
[]
no_license
-- INSERT INTO roles(name) VALUES('ROLE_ADMIN'); -- INSERT INTO roles(name) VALUES('ROLE_PATIENT'); -- INSERT INTO roles(name) VALUES('ROLE_DOCTOR'); /* Create Admin User Password 123456 */ -- INSERT INTO users (name, username, email, password, is_active, type, created_on) VALUES ('Admin', 'admin', 'admin@test.com', '...
true
89790efea829c94d16963572fa1c630d40622b57
SQL
dianaparr/holbertonschool-higher_level_programming
/0x0D-SQL_introduction/16-no_link.sql
UTF-8
169
3.046875
3
[]
no_license
-- Lists all records - MySQL server -- Clause WHERE don't list rows without name value SELECT score, name FROM second_table WHERE name IS NOT NULL ORDER BY score DESC;
true
088a8be85fdcc38d5241ba2bc72a9676d20e6c96
SQL
mattbgold/OnTap
/db-init/db-init.sql
UTF-8
4,579
3.578125
4
[ "MIT" ]
permissive
Create Schema if not exists ontap; Use `ontap`; CREATE TABLE IF NOT EXISTS `taps` ( `TapId` int(11) NOT NULL AUTO_INCREMENT, `TapName` varchar(128) NOT NULL, `Description` varchar(256) DEFAULT NULL, `Status` varchar(64) DEFAULT NULL COMMENT 'Any special information about the status of the tap. Is it overly fro...
true
6855ba6c7a30c98aa772070484d7eb227e224237
SQL
Linocent/P6
/donnee_demo.sql
UTF-8
1,833
3.140625
3
[]
no_license
INSERT INTO utilisateur(nom, prenom) VALUES('Livreur', 'numero 1'), ('Caissier', 'numero 1'), ('Pizzaiolo', 'numero 1'), ('Client1', 'numero 1'), ('Client2', 'numero 2'), ('Client3', 'numero 3'); INSERT INTO restaurant(nom_restaurant) VALUES('Restaurant 1'...
true
7994cffd95f66ce4b777695292d2d369e15db719
SQL
wikiteams/demandaron
/sql/schema.sql
UTF-8
902
3.640625
4
[]
no_license
CREATE TABLE "jobs" ( "id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL , "title" VARCHAR UNIQUE ); CREATE TABLE "tags" ( "id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL , "name" VARCHAR UNIQUE , "original" BOOL DEFAULT false, is_deleted BOOL DEFAULT false, "created_at" DATETIME DEFAULT CURRENT_TIMESTA...
true
33caf214e3669ba7c5ddb76912544bbf622311d2
SQL
nafae/rpki-validator
/rpki-validator-app/src/main/resources/db/objectstore/migration/V3__unique_uri_and_update_order.sql
UTF-8
368
3.015625
3
[ "BSD-3-Clause" ]
permissive
DROP TABLE retrieved_objects; CREATE TABLE retrieved_objects ( hash CHARACTER VARYING(2000) NOT NULL PRIMARY KEY, uri CHARACTER VARYING(2000) NOT NULL, encoded_object CHARACTER VARYING NOT NULL, expires TIMESTAMP NOT NULL, update_order BIGINT NOT NULL ); CREATE INDEX uri_idx ON retrieved_objects(uri, updat...
true
ae7aab09e7d2dc2f3e05697062e8373ede604a9e
SQL
RoyMolenaar77/Spider_test
/SQL Script/2.5/003 - Add ParentProductID Column to Product table.sql
UTF-8
427
3.828125
4
[]
no_license
IF NOT exists(select * from sys.columns where Name = N'ParentProductID' and Object_ID = Object_ID(N'Product')) begin alter table product add ParentProductID int null alter table product add constraint Product_ParentProduct foreign key (ParentProductID) references Product (ProductID) print 'Added Pa...
true
b132691b5946c078817434160d3150f2fdd32fff
SQL
chaesiong/rtp-database
/production/PIBICSDM2/tables/mfa_sent.sql
UTF-8
2,289
2.5625
3
[]
no_license
CREATE TABLE "PIBICSDM2"."MFA_SENT" ( "SENT_SEQNO" NUMBER, "CALL_SEQNO" NUMBER, "PASSTYPE" CHAR(1 CHAR), "ROUNDNO" VARCHAR2(5 CHAR), "RECORDCOUNT" NUMBER, "TOTAL_STS_A" NUMBER, "TOTAL_STS_C" NUMBER, "TOTAL_STS_L" NUMBER, "TOTAL_STS_R" NUMBER, "TOTAL_STS_D" NUMBER, "CREATE_BY" VARCHAR2...
true
48389e11db24da936e9416d0d21029bb70ecfcc7
SQL
FernandaDeOliveira/iilic
/bancoNovo2.sql
UTF-8
12,122
2.890625
3
[]
no_license
-- MySQL dump 10.13 Distrib 5.7.12, for Win64 (x86_64) -- -- Host: 127.0.0.1 Database: iilic -- ------------------------------------------------------ -- Server version 5.7.16-log /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULT...
true
75ad919e816e2223857f6ae9165307219183e5fd
SQL
vinidomeli/bootcamp-spring-challenge
/src/main/resources/db/migration/V20210601142825__init_database.sql
UTF-8
1,673
3.890625
4
[ "MIT" ]
permissive
CREATE TABLE user ( id BINARY(16) NOT NULL, name VARCHAR(50) NOT NULL, username VARCHAR(40) NOT NULL, type VARCHAR(15), PRIMARY KEY (id) ); CREATE TABLE product_category ( id INT AUTO_INCREMENT, description VARCHAR(50), PRIMARY KEY (id) ); CREATE TABLE product...
true
93717680089b9aefe4ddf2f7ba1cd3e832d0a2d3
SQL
FLYERFIGHTER66/Kube
/PROD/TGMSDATA/QDDLSRC.FILE/FEDEXBOXCH.SQL
UTF-8
835
3.59375
4
[ "MIT" ]
permissive
CREATE OR REPLACE FUNCTION FedExBoxingCharges(OrderIn Int, BoxSize Char(2)) -- The FedExBoxSizeFreight fucntion returns the Freight for boxes of a particular size -- for a specific given order number. Valid box sizes are on the Table File -- under table code 'BX'. Box Size UD will will give the the count of UNDEFI...
true
450def3ab22a2bf2d3f15d79117e6a5fb03c09b4
SQL
ErtugruLx/KelimeOgren
/DB/kelimeler.sql
UTF-8
1,601
3.1875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.5.4.1deb2ubuntu2 -- http://www.phpmyadmin.net -- -- Anamakine: localhost -- Üretim Zamanı: 07 Ağu 2017, 16:57:49 -- Sunucu sürümü: 5.7.19-0ubuntu0.16.04.1 -- PHP Sürümü: 7.0.18-0ubuntu0.16.04.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHA...
true
0044716c2cc836f296daf268853f59ba9ba056cb
SQL
ponlawat-w/uji-siw002-project
/schema.sql
UTF-8
5,542
3.796875
4
[]
no_license
CREATE EXTENSION IF NOT EXISTS postgis; DROP TYPE IF EXISTS disaster_type CASCADE; CREATE TYPE disaster_type AS ENUM ('earthquake', 'landslide', 'volcanic_eruption', 'tsunami', 'inundation', 'fire', 'storm'); DROP TYPE IF EXISTS user_type CASCADE; CREATE TYPE user_type AS ENUM ('citizen', 'call_center', 'organisati...
true
d98708b19fb8b4df80ffd9b27da0ce305439fbce
SQL
smyers1243/multithread_2_2_update
/03_record_entry_two/after/100_aaa_two_after8.sql
UTF-8
220
2.59375
3
[]
no_license
CREATE INDEX metabib_full_rec_tnf_idx ON metabib.real_full_rec USING btree (record, tag COLLATE pg_catalog."default", subfield COLLATE pg_catalog."default") WHERE tag = 'tnf'::bpchar AND subfield = 'a'::text;
true
69285fb95b808e10d3f93119ebc02856273bb54a
SQL
Oberrydee/ProjetNoe
/base de données/script création bddV2.sql
UTF-8
15,796
3.140625
3
[]
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='ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION'; drop schema if exists mydb; -...
true
081eb38edfbab38834c3b12093ed185dfd39bf56
SQL
andreim9816/Facultate
/Anul II/Sem 2/Baze de date/exam28.sql
ISO-8859-13
2,777
3.859375
4
[]
no_license
-- MANOLACHE ANDREI 244 SELECT * FROM rezervare r JOIN eveniment e ON (e.id = r.id_eveniment) JOIN spectator s ON (s.id = r.id_spectator) JOIN abonat ab ON (ab.id_spectator = s.id) JOIN abonament a ON (a.id = ab.id_abonament) JOIN sala sa ON (sa.id = e.id_sala); -- ex 1 --S? se afi?eze pentru fiecare spectator cu un a...
true
1f05d4deaa5c7a86adfded9eeb2963aa42b4b363
SQL
aarhusstadsarkiv/sql_queries
/batch 1/avidaars10.sql
UTF-8
13,304
3.21875
3
[]
no_license
SELECT dagsorden.MøArt mødeforum, dagsorden.IndMøDato mødedato, dagsorden.dagsorden_id, referat.referat_id FROM dagsorden INNER JOIN referat ON dagsorden.MøArt = referat.MøArt AND dagsorden.IndMøDato = referat.DateX WHERE dagsorden.IndMøDato = '2004-03-31' AND dagsorden.MøArt = 'Formøder hos borgmesteren' SELECT * F...
true
b24784fb862e84e5a91e23a50d1dea0c07f028f6
SQL
TYPO3-svn-archive/sk_pagecomments
/ext_tables.sql
UTF-8
1,655
2.65625
3
[]
no_license
# # Table structure for table 'tx_skpagecomments_comments' # CREATE TABLE tx_skpagecomments_comments ( uid int(11) NOT NULL auto_increment, pid int(11) DEFAULT '0' NOT NULL, parentId int(11) DEFAULT '0' NOT NULL, tstamp int(11) DEFAULT '0' NOT NULL, crdate int(11) DEFAULT '0' NOT NULL, ...
true
ceac742c09188648b38e8567add603f5f0e29eec
SQL
Rohithvarma1998/prior-work-in-web-dev
/student/examination_cell (1).sql
UTF-8
24,107
3.21875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Oct 26, 2018 at 03:44 PM -- Server version: 10.1.36-MariaDB -- PHP Version: 5.6.38 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
true
17b151d6295fdef1a00c23a0be67d6f4e34b9976
SQL
dzitkowskik/Gis-Spatial-Index-Comparison
/SpatialIndexesComparison/Scripts/kkk.sql
UTF-8
2,229
3.625
4
[]
no_license
SELECT * FROM pg_index where --indexrelid = 'random_points_10000_btree_idx'::regclass --OR indexrelid = 'random_points_10000_btree_idx'::regclass --OR indexrelid = 'random_points_10000_gist_idx'::regclass --OR indexrelid = 'random_points_100000_btree_idx'::regclass --OR indexrelid = 'random_points_100000_gist_idx'::...
true
a943df3d35708e5cef29fc84cfe741cd2fa3deeb
SQL
hrimar/Exercises-of-SoftUni-Database-Basics-Course---MS-SQL-Server
/PREP I - EXAM 24-04-2017 - Wasing Machine Service/10. Hard Earners.sql
UTF-8
290
3.921875
4
[]
no_license
SELECT TOP 3 m.FirstName+' '+m.LastName AS Mechanic, COUNT(j.JobId) AS Jobs FROM Mechanics AS m JOIN Jobs AS j ON j.MechanicId = m.MechanicId WHERE j.Status !='Finished' GROUP BY m.FirstName+' '+m.LastName, m.MechanicId HAVING COUNT(j.JobId) >1 Order by COUNT(j.JobId) DESC, m.MechanicId
true
4694e50bbc1930a18cfa2648b82e29587b01350d
SQL
dpavez14/RallyBD
/Documentos/rallydump.sql
UTF-8
25,519
2.765625
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
-- -- PostgreSQL database dump -- -- Dumped from database version 10.0 -- Dumped by pg_dump version 10.0 -- Started on 2017-11-06 11:47:20 SET statement_timeout = 0; SET lock_timeout = 0; SET idle_in_transaction_session_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; SET check_functi...
true
65bacbb470d08612d43d1c374eb932791b7a51b5
SQL
openit/Oracle_SQL_Scripts
/p_check.sql
UTF-8
43,123
2.8125
3
[]
no_license
set linesize 360 set pagesize 1000 COLUMN name FORMAT a40 COLUMN set FORMAT a8 COLUMN remark FORMAT a60 COLUMN recommendation FORMAT a120 COLUMN is_value FORMAT a50 COLUMN should_be_value FORMAT a50 select name, substr(order_recommendation,3) recommenda...
true
31c1f8ebc298c964045be1a2d678abfbb416d80b
SQL
TKM-MCA-2020-DBMS-LAB/20MCA206-AMJIYAD-AHSAN
/trigger.sql
UTF-8
748
3.484375
3
[]
no_license
USE db; CREATE TABLE emp_trigger(Name varchar(20) NOT NULL,Job varchar(20) NOT NULL,Date_of_join DATE,Working_hours varchar(10)); describe emp_trigger; insert into emp_trigger values ('Aromal','doctor','2012-09-13',14), ('nijil','teacher','2011-08-13',8), ('Anzal','engineer','2022-07-11',11), ('Vandana','professor',...
true
20282cb0ccfee9078ee5d7abc280e9ea1ee427ac
SQL
artsem-samarosenka/DB
/proj/test-fill.sql
UTF-8
2,773
2.875
3
[]
no_license
INSERT INTO "user" ("id", "login" , "password") VALUES ( 1 , 'root' , 'root'), ( 2 , 'chel' , '12345'), ( 3 , 'chelick' , 'qwerty'), ( 4 , 'boss', 'megaboss'), ( 5 , 'user', '123321'); INSERT INTO "contact_person" ("id", "surname", "name", "patronymic") VALUES ( 4 , 'Ivanov' , 'Ivan', 'Ivanovich'), ( 2 , '...
true
7a8acc7d4da3b60b0df5f739b96092616a9fc37b
SQL
zuoxiaojun/sql
/物料允许负库存.sql
UTF-8
155
3.203125
3
[]
no_license
select code from bd_material where pk_material in (select pk_material from bd_materialstock where negallowed = 'Y')--查询允许负库存物料
true
54a5f7ff4b1ec621973a5e29aa4f583b79814d99
SQL
ClickHouse/ClickHouse
/tests/queries/0_stateless/00386_enum_in_pk.sql
UTF-8
2,326
3.453125
3
[ "BSL-1.0", "Apache-2.0" ]
permissive
DROP TABLE IF EXISTS enum_pk; set allow_deprecated_syntax_for_merge_tree=1; CREATE TABLE enum_pk (date Date DEFAULT '0000-00-00', x Enum8('0' = 0, '1' = 1, '2' = 2), d Enum8('0' = 0, '1' = 1, '2' = 2)) ENGINE = MergeTree(date, x, 1); INSERT INTO enum_pk (x, d) VALUES ('0', '0')('1', '1')('0', '0')('1', '1')('1', '1')('...
true
4ddd95a1f81a025fc49d520b6e5d14219f5b50cb
SQL
austin-techfabric/personal-project
/db/init.sql
UTF-8
1,812
4.03125
4
[]
no_license
drop table if exists users cascade; drop table if exists instructor_profile cascade; drop table if exists reviews cascade; drop table if exists lessons cascade; create table users ( id serial primary key, auth0_id text unique not null, name varchar(30) not null, email varchar(100) unique not null, ...
true
cd8aa2856e18144ccc174a1de473f00b7b66595f
SQL
thejosess/Informatica-UGR
/2ºAÑO/2ºCuatrimestre/FBD/Teoria/segundo_parcial/SQL/Consultas Sencillas/eje3.sql
ISO-8859-1
508
3.609375
4
[]
no_license
---Alumnos entre 20 y 30 aos procedentes de las provincias de Granada, Jaen o Almera -- ordenados por apellidos y nombre. select dni,nombre,ape1,ape2 from alumnos where edad between 20 and 30 and provincia in ('Jaen','Granada','Almeria') order by ape1,ape2,nombre; --Clculo WinRDBI: Alumnos menor...
true
f9f64b80eed1cbacad87581f6b3a22f236bbca00
SQL
camila-santos-ferreira/MySQL
/Exercícios - 20.07/03 - Alunos.sql
UTF-8
1,298
3.421875
3
[]
no_license
create database db_escola; use db_escola; create table tb_alunos( id bigint auto_increment, matricula int, nome varchar(255), serie varchar(255), turno varchar(255), nota decimal(4,2), primary key(id) ); insert into tb_alunos(matricula, nome, serie, turno, nota) values (10101, "Ana Mendes da Silva", "8º ano", "Diurn...
true
f1f6eebe042e50c4b44acb8d768af584a2cb1bc9
SQL
bellmit/SVNrepo
/DBScripts/Release_20180119_Lockedfor_GSM/Misc/600.pm.sel_securities_by_theme.sql
UTF-8
2,903
3.78125
4
[]
no_license
DROP PROCEDURE IF EXISTS `sel_securities_by_theme`; DELIMITER $$ CREATE PROCEDURE `sel_securities_by_theme`( IN p_advisor VARCHAR(20) , IN p_theme VARCHAR(50) ) BEGIN SELECT DISTINCT IFNULL(`user_basket_access`.`advisor`, 'Invessence') AS `advisor`, IFNULL(`user_basket_acces...
true
7ddc3f970b73ba42957d03d25cfc92ea58937349
SQL
IamManchanda/postgres-auroradb-11-command-sandbox
/select-records/where/in/2.sql
UTF-8
174
2.59375
3
[]
no_license
SELECT * FROM person WHERE country_of_birth IN ( 'China', 'Brazil', 'France', 'Mexico', 'Portugal', 'Nigeria' ) LIMIT 100;
true
19d846bdcc2d84ee37cefa7fe23defbec92710ab
SQL
bookflex/bookflex
/bookflex-server/asset/create.sql
UTF-8
1,624
3.78125
4
[]
no_license
-- CREATE TABLE -- CREATE TABLE Books ( bookId BIGINT(30) NOT NULL AUTO_INCREMENT, title VARCHAR(100) NOT NULL, description TEXT NOT NULL, author VARCHAR(100) NOT NULL, isbn VARCHAR(100) NOT NULL, coverLargeUrl VARCHAR(1000) NOT NULL, customerReviewRank DOUBLE(10) NOT NULL, standardPrice...
true
21486220312bae0463f3df3ecff0f4ac3c61510f
SQL
monitp686/CollageProject
/DATABASE FILE/uni.sql
UTF-8
10,006
2.859375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.6.5.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jun 05, 2021 at 06:48 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
a7e3fd91e05ffb708576778aae90027051527991
SQL
cbsProcessMining/GMH_ALL
/IBC Backup Celonis/Transformations/SAP ECC Purchase to Pay/JDBC P2P Transformations/Backup of Transformation - Add Activity Order Messages.sql
UTF-8
3,428
3.265625
3
[]
no_license
/*DESCRIPTION: 1. Transformation Description: This transformation creates the following activities: Send Overdue Notice, Send Purchase Order Update, Dun Order Confirmation, Send Purchase Order 2. Required Tables: DD07T NAST T685T TMP_P2P_EKKO_EKPO USR02 3. Required Columns: DD07T.DDLANGUAGE DD07T.DOMN...
true
b79a9ff8b756f09068c7bd20ad3a88119ad0d7e6
SQL
Harkindey/Coachjules
/coachjules/coachjules.sql
UTF-8
1,713
2.796875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.0.10.14 -- http://www.phpmyadmin.net -- -- Host: localhost:3306 -- Generation Time: Sep 23, 2016 at 02:01 AM -- Server version: 5.5.49-cll-lve -- PHP Version: 5.6.20 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTE...
true
e75d4f9c8b9d5633609c96da82ac0cf9727b26b1
SQL
payamprivate/ketabkhune
/ketabkhone.sql
UTF-8
4,188
2.875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 3.3.9 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Jun 04, 2014 at 10:33 AM -- Server version: 5.5.8 -- PHP Version: 5.3.5 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SE...
true
d2e62f6bf694ac1ad836b347b2e5efef13ea0f3f
SQL
heavyrainik/product_analytics
/calculation_of_metrics/[WIP]novochahtinsk_kernel_201909.sql
UTF-8
9,319
2.671875
3
[]
no_license
create table fediq_team.novochahtinsk_kernel_201909 as ( with p as (select passenger_id, date_trunc('month', dttm) as month, count(*) as cnt from fediq_team.novochahtinsk_orders_201909 where status='complete' group by month, passenger_id), t as (select passenger_id from p where month = '2018-02-01' and cnt >= 4 ...
true
a9a4f3302b8dddb73cf132c332d30e4ff8e4d075
SQL
turtletse/cmcms
/SQL/sp_predef_pres_dt_get.sql
UTF-8
1,288
3.734375
4
[]
no_license
DROP PROCEDURE IF EXISTS sp_predef_pres_dt_get; DELIMITER $$ CREATE PROCEDURE sp_predef_pres_dt_get ( IN in_pres_id INT ) BEGIN DROP TEMPORARY TABLE IF EXISTS result; CREATE TEMPORARY TABLE result SELECT predefined_prescription_dt.drug_id, predefined_prescription_dt.sub_drug_id, CASE WHEN sub_drug_id>0...
true
2d4a598b0d0cf47e1dbd21a7bf7f884f92583487
SQL
Andrewlearning/Leetcoding
/leetcode/Sql/596. 超过5名学生的课.sql
UTF-8
131
3.09375
3
[]
no_license
--# Write your MySQL query statement below select c.class from courses as c group by c.class having COUNT(DISTI NCT student) >= 5;
true
d1785540327eedcdb7b580e572677f5d5d76094b
SQL
johnlfreire/crcjud
/src/main/resources/db/migration/V3__usuario_perfil_permissao_migration.sql
UTF-8
1,325
3.796875
4
[]
no_license
CREATE TABLE IF NOT EXISTS usuario ( id BIGINT PRIMARY KEY AUTO_INCREMENT, nome VARCHAR(50) NOT NULL, email VARCHAR(50) NOT NULL, cpf VARCHAR(14) NOT NULL, senha VARCHAR(120) NOT NULL, telefone VARCHAR(20) NOT NULL, ativo BOOLEAN DEFAULT true, id_cidade BIGINT NOT NULL, id_entidade ...
true
12ebf7cb2bcc95920a456d32c2d4a4aa2443197e
SQL
GOVINDHARAJT/Sql_Day2
/lab-DML-command-prograd-kabbadi-league-master/dml-pkl.sql
UTF-8
1,825
3.375
3
[]
no_license
-- PROGRESSION 1: --1. Insert into city INSERT INTO city (id,name) VALUES(1,'Chennai'); --2. Insert into referee INSERT INTO referee (id,name) VALUES(2,'Mohammad Azam Khan'); --3. Insert into innings INSERT INTO innings (id,innings_number) VALUES(3,1); --4. Insert into extra_type INSERT INTO extra_type (id,name...
true
6652b6db9be95231276802954e853f727ae7511a
SQL
patrickhpatin/SQL_Day1
/05-Stu_Making_IDs/Unsolved/programming_db.sql
UTF-8
778
3.59375
4
[]
no_license
--DROP TABLE IF EXISTS programming_languages; CREATE TABLE programming_languages ( "id" SERIAL PRIMARY KEY, "language" VARCHAR(20) NOT NULL, rating INT DEFAULT 0 ); INSERT INTO programming_languages ("language", rating) VALUES ('HTML', 95), ('JS', 99), ('JQuery', 98), ('MySQL', 70), ('MySQL', 70)...
true
6d3a6cfb6c7692581b3bed2636f13146858d680b
SQL
jakeazus/sql-challenge
/data_analysis.sql
UTF-8
2,818
4.5
4
[]
no_license
-- List the following details of each employee: employee number, last name, first name, sex, and salary. SELECT employees.emp_no, employees.last_name, employees.first_name, employees.sex, salaries.salary FROM employees INNER JOIN salaries ON employees.emp_no = salaries.emp_no -- List first name, last name, and hire d...
true
fb291b547896757315e815eb8259b052d08ae667
SQL
apex-kosova/SmartLogger
/patch/release/SML/SML-1.0.0/SML-1.0.0/install.sql
UTF-8
2,446
2.78125
3
[ "BSD-2-Clause" ]
permissive
PROMPT LOG TO SML-1.0.0.log PROMPT . SET AUTOCOMMIT OFF SET AUTOPRINT ON SET ECHO ON SET FEEDBACK ON SET PAUSE OFF SET SERVEROUTPUT ON SIZE 1000000 SET TERMOUT ON SET TRIMOUT ON SET VERIFY ON SET trims on pagesize 3000 SET auto off SET verify off echo off define on WHENEVER OSERROR EXIT FAILURE ROLLBACK ...
true
7ebebe3e2ce48da0b40fdfe7f97caa578d36add6
SQL
jacob-bw/Chinook
/line_item_track_artist.sql
UTF-8
265
3.3125
3
[]
no_license
select InvoiceLine.InvoiceId, Track.*, Artist.Name as ArtistName, Album.* from InvoiceLine join Track on Track.TrackId = InvoiceLine.TrackId join Album on Album.AlbumId = Track.AlbumId join Artist on Artist.ArtistId = Album.ArtistId order by InvoiceId
true
e6be4aa281c3fc42ac5afe595f5eccb8b7d980cd
SQL
ToborTheGreat/Repository01
/toolkit.etl.sql
UTF-8
863
2.78125
3
[]
no_license
-- -- PostgreSQL database dump -- SET statement_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = off; SET check_function_bodies = false; SET client_min_messages = warning; SET escape_string_warning = off; SET search_path = toolkit, pg_catalog; ALTER TABLE ONLY toolkit.etl DROP CONSTRAINT ...
true
fe4ae08e812f6a83495a37dfbd26dafc4440b1e4
SQL
mujiqadri/haystaxs-lib
/src/main/java/com/haystack/sql/createTables.sql
UTF-8
2,834
3.765625
4
[]
no_license
-- Table: gp_query_log DROP TABLE IF EXISTS haystack.run_log cascade; DROP TABLE IF EXISTS haystack.dbconnections cascade; DROP TABLE IF EXISTS haystack.query_log cascade; drop table if exists haystack.tables cascade; DROP TABLE if exists haystack.columns cascade; DROP TABLE IF EXISTS haystack.users CASCADE; DROP TABL...
true
43fb73e3c8bba2db922c76c70b502e51b4a77663
SQL
adamwenger44/employee_tracker.github.io
/seed.sql
UTF-8
706
3.390625
3
[]
no_license
DROP DATABASE IF EXISTS company_db; CREATE DATABASE company_db; USE company_db; CREATE TABLE employee ( id INT NOT NULL AUTO_INCREMENT, first_name VARCHAR(30) NOT NULL, last_name VARCHAR(30) NOT NULL, role_id INT NOT NULL, manager_id INT NOT NULL PRIMARY KEY (id) ); CREATE TABLE role ( id INT NOT NULL...
true
f9cdf722cc72ce03826e8a6bf0a330b8afc22c03
SQL
kannan1986/look2wise
/database/look2wise.sql
UTF-8
2,199
2.96875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Sep 02, 2018 at 08:14 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
bf643bd0b9c1e9d2897de6defa95a27e9b30a7b9
SQL
LabKey/cnprcEHRModules
/cnprc_ehr/resources/queries/study/pathologyReportBiopsyMD.sql
UTF-8
1,387
3.28125
3
[ "Apache-2.0" ]
permissive
/* * Copyright (c) 2018 LabKey Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or...
true
1aba6ce5be3981d67f4b1a5f53bc5025ba6fc9fd
SQL
bigeasy/relatable
/t/ddl/mysql.sql
UTF-8
1,683
3.484375
3
[ "MIT" ]
permissive
CREATE TABLE Manufacturer ( id INTEGER AUTO_INCREMENT NOT NULL, name VARCHAR(32), PRIMARY KEY(id) ) \g CREATE TABLE Customer ( id INTEGER AUTO_INCREMENT NOT NULL, firstName VARCHAR(32) NOT NULL, lastName VARCHAR(32) NOT NULL, PRIMARY KEY(id) ) \g CREATE TABLE Sale ( id INTEGER AUTO_INCRE...
true
dff32bf6017e0fdd48bdad62a9bf794cae49b333
SQL
tnemotox/sandbox
/src/main/resources/schema.sql
UTF-8
468
2.875
3
[]
no_license
DROP TABLE IF EXISTS employee; DROP TABLE IF EXISTS department; DROP TABLE IF EXISTS sub_department; DROP TABLE IF EXISTS benchmark; CREATE TABLE employee ( id SERIAL PRIMARY KEY, name VARCHAR, mail_address VARCHAR, department_id VARCHAR ); CREATE TABLE department ( id SERIAL PRIMARY KEY, name VARCHAR ); ...
true
74dc0b23a8ab3a5789fe26d54c3cedd71bd36161
SQL
SiloSas/DTEV
/server/conf/evolutions/default/1.sql
UTF-8
4,999
3.125
3
[]
no_license
# --- !Ups CREATE TABLE rooms ( id VARCHAR PRIMARY KEY, name VARCHAR, presentation VARCHAR, header VARCHAR, images VARCHAR, isAnApartment BOOLEAN, price VARCHAR ); INSERT INTO roo...
true
2eeeb4ef80a44f1c69dc623e92449232512df714
SQL
lhannest/monarch-subgraph
/scripts/upload.cql
UTF-8
635
3.625
4
[]
no_license
CREATE CONSTRAINT ON (n:`named thing`) ASSERT n.id IS UNIQUE; USING PERIODIC COMMIT LOAD CSV WITH HEADERS FROM "file:///edges.csv" AS row MERGE (subject:`named thing` {id: row.subject}) MERGE (object:`named thing` {id: row.object}) WITH DISTINCT subject, object, row CALL apoc.create.relationship(subject, row.predicate...
true
eb7804feafe63633eb29d007d34c71edd748c4e6
SQL
cms-sw/cmssw
/OnlineDB/EcalCondDB/sql/update_iov_dates_procedure_new.sql
UTF-8
2,577
3.84375
4
[ "Apache-2.0" ]
permissive
/* * * Procedure to validate an IoV to be inserted and update a previous * IoV so that there are no overlaps. * * GO: september 2010 * This new procedure allows multiple IOVs with the same start date * IOVs have a mask based on which one can assign a given IOV to a given table * */ CREATE OR REPLACE PROCE...
true
f104d80398fd5dc120de85461dd86832347fb7e4
SQL
SoledadVallejos/Tp-dbTablas
/bazar_digital.sql
UTF-8
4,870
3.375
3
[]
no_license
-- 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='ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTI...
true
a425c03f5a757c39f016c8aeb51184b2817864d0
SQL
donaldjohn/mySQLDebugFiles
/drms55.sql
GB18030
4,203
3.359375
3
[]
no_license
select * from S_INDEX_FILE_DETAIL_ORIGIN; -- Create table create table S_INDEX_FILE_DETAIL_ORIGIN ( id VARCHAR2(100) not null, date_exchange VARCHAR2(100), date_produced VARCHAR2(100), date_publication VARCHAR2(100), pat_cnt VARCHAR2(100), pub_country...
true
b5cf9c0b360e1e5c6c3b84154b4b03d6bcac4c93
SQL
PHPBenelux/mupw
/docs/db/mysql.schema.sql
UTF-8
517
3.03125
3
[]
no_license
DROP TABLE IF EXISTS `event_member`; CREATE TABLE `event_member` ( `event_id` INT UNSIGNED NOT NULL, `member_id` INT UNSIGNED NOT NULL, `name` VARCHAR(150) NOT NULL, `thumb_link` VARCHAR(255) NULL, `response` VARCHAR(3) NOT NULL DEFAULT 'yes', `rsvp_id` INT UNSIGNED NOT NULL, `mtime` BIGINT UNSIGNED NOT ...
true
acff97f71599a5ca275ce62397b76e34ddf5f121
SQL
iblladi/BD51WR
/ETL/01_SCRIPTS SQL/scripts.sql
UTF-8
6,893
4.4375
4
[]
no_license
--ARTICLE_LOOKUP -- Clé primaires doubles SELECT AL.ARTICLE_CODE "ARTICLE_CODE", COUNT(AL.ARTICLE_CODE) "Nombre de clés primaires" FROM ARTICLE_LOOKUP AL GROUP BY AL.ARTICLE_CODE HAVING COUNT(AL.ARTICLE_CODE) > 1 ORDER BY 1 ASC; -- Table de rejet CREATE TABLE ARTICLE_LOOKU...
true
29e21921b66c30bc88f61772259ef8da09576aea
SQL
alamkhaan/Distributed-Database-Management-System-Project-using-Oracle-Database
/Site 2 (Main PC)/teammembers.sql
UTF-8
2,280
3.71875
4
[]
no_license
SET SERVEROUTPUT ON; CREATE OR REPLACE PACKAGE teammembers AS PROCEDURE UsingPlayerName(S IN VARCHAR2); PROCEDURE UsingTeamName(P IN VARCHAR2); PROCEDURE UsingContinentName(S IN VARCHAR2); END teammembers; / CREATE OR REPLACE PACKAGE BODY teammembers AS PROCEDURE UsingPlayerName(S IN VARCHAR2) IS A VARCHAR2(2...
true
db8f9429ac5d29ec35d2e0740c826c098dac993e
SQL
debanjan89/SQLProblems
/HackerRank_NewCompanies.sql
UTF-8
748
4.6875
5
[]
no_license
/* Given the table schemas below, write a query to print the company_code, founder name, total number of lead managers, total number of senior managers, total number of managers, and total number of employees. Order your output by ascending company_code.*/ SELECT c.company_code, founder, COUNT(DISTINCT L.Lead_Mana...
true
e6c9bba5d79c7c5196d31ddf16093f81dab6a09c
SQL
maedeht/phalcon-order-management
/database/v1.0.0/0002_create_orders_table.sql
UTF-8
320
3.390625
3
[]
no_license
CREATE TABLE orders ( id serial PRIMARY KEY, order_number VARCHAR (255) NOT NULL UNIQUE, description VARCHAR (255), total_price INTEGER NOT NULL, status INTEGER DEFAULT 1, user_id INTEGER, created_at TIMESTAMP, updated_at TIMESTAMP, FOREIGN KEY (user_id) REFERENCES users (id) );
true
ad323aaa72be8e59fa46c27c1eb0bfa2b5f5fce9
SQL
Matmaus/Windower
/windower.sql
UTF-8
1,399
2.9375
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.2.7 -- http://www.phpmyadmin.net -- -- Host: localhost:3306 -- Generation Time: Sep 11, 2017 at 05:15 PM -- Server version: 5.5.41-log -- PHP Version: 5.6.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLI...
true
a5f8389e4708cee5cf1eebb23b5ac049a2280289
SQL
Magic-System/Gestion_EDT_Java
/database/planning.sql
UTF-8
13,079
3.390625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.2 -- https://www.phpmyadmin.net/ -- -- Hôte : 127.0.0.1:3306 -- Généré le : Dim 07 juin 2020 à 15:08 -- Version du serveur : 10.4.10-MariaDB -- Version de PHP : 7.3.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!...
true
9652e430ccc75e74ff92671814cd154b31f66003
SQL
tristar82/lab-mysql
/your-code/seeding.sql
UTF-8
2,184
3.203125
3
[]
no_license
use ironhack_lab; DROP TABLE customers; CREATE TABLE IF NOT EXISTS customers ( `ID` INT, `Customer_ID` INT, `Name` VARCHAR(30), `Phone` VARCHAR(30), `Email` VARCHAR(30), `Address` VARCHAR(30), `City` VARCHAR(20), `State_Province` VARCHAR(20), `Country` VARCHAR(20), `Postal` VARCH...
true
7810731c2963dad35aee9ddb0366586b248a9701
SQL
NayshlokLearning/nayshlok-learning-sql
/migrations/V1__CreateUserTable.sql
UTF-8
1,094
3.421875
3
[]
no_license
-- ===================================== -- Author: Nayshlok -- Date: 2018-07-04_12:46:07 -- Description: Create a user, class, and role tables -- ===================================== START TRANSACTION; CREATE TABLE lms."User" ( userid SERIAL, CONSTRAINT PK_user_userId PRIMARY KEY (userId), firstname VARCHAR...
true
c3a49a511c11324a248988b067e3a484d5c1d9b8
SQL
AllSourcer/allsourcer
/AlphaDb.sql
UTF-8
8,217
3.015625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.6.0 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Jun 27, 2017 at 01:59 AM -- Server version: 10.1.22-MariaDB- -- PHP Version: 7.0.19-1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET...
true
dd87d9646fc36de55477b8e4000203ec5c663c84
SQL
montatLeast/SQl-Base-2019-5-17-2-0-39-612
/student.sql
UTF-8
603
3.578125
4
[]
no_license
create database student_examination_sys; create table student(id int, name varchar(20), age int, sex char(2) ); create table subject(id int, subject varchar(20), teacher varchar(20), description varchar(50) ); create table score(id int, student_id int, subject_id int, score decimal(10,1) ); insert into student values (...
true
97b93cea590c1df6db420c72ab12f5c9ea2dafff
SQL
Pab450/Application-Web-Terrain-Connecte
/database/development.sql
UTF-8
10,505
3.0625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Hôte : localhost -- Généré le : Dim 06 juin 2021 à 13:23 -- Version du serveur : 10.1.38-MariaDB -- Version de PHP : 5.6.40 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101...
true
fa47f0e0579510fad266f2c0cde2c64ae4961707
SQL
cloudmusic-dev/backend
/migrations/20200121192825_create_playlist_songs.up.sql
UTF-8
329
3.28125
3
[ "MIT" ]
permissive
CREATE TABLE playlist_songs( playlistId varchar(36) not null, songId varchar(36) not null, primary key (playlistId, songId), foreign key (playlistId) references playlists(id), foreign key (songId) references songs(id) ); ALTER TABLE songs DROP FOREIGN KEY songs_ibfk_2; ALTER TABLE songs DROP COLUMN ...
true
5beaec6aaf9cc36a18b82209516c938fb6937b4e
SQL
dannyboydsilva/my-be-project
/q.sql
UTF-8
1,133
3.546875
4
[]
no_license
/* no mention of InnoDb Please check */ CREATE DATABASE IF NOT EXISTS `supermarketdb` DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_ci; USE `supermarketdb`; CREATE TABLE Items ( Id int NOT NULL AUTO_INCREMENT, IName varchar(255) NOT NULL, Des varchar(255), Cost int not null, Barcode varchar...
true
e8d51342deda6c024e452cc949b4afcf871cfa15
SQL
anzonygr/Analisis
/colegio.sql
UTF-8
12,707
2.96875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 19-05-2019 a las 21:26:40 -- Versión del servidor: 10.1.39-MariaDB -- Versión de PHP: 7.3.5 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; ...
true