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
d97abe1388a87887dba4d1873faf78b398db18a8
SQL
brpapa/4720A-higeia
/populate.sql
UTF-8
12,520
2.703125
3
[]
no_license
-- patient para demonstração: asilveira -- doctor para demonstração: bpapa DELETE FROM `health_quote`; DELETE FROM `prescription`; DELETE FROM `medicine`; DELETE FROM `appointment`; DELETE FROM `doctor_week_opening_hour`; DELETE FROM `doctor`; DELETE FROM `doctor_medical_care_location`; DELETE FROM `doctor_specializat...
true
f17b280267d85262ff4c0ca8804a54a17d65f794
SQL
Ranjana1996/SmartPill
/queries.sql
UTF-8
1,875
3.984375
4
[]
no_license
CREATE TABLE IF NOT EXISTS Type ( id INT PRIMARY KEY, title VARCHAR (32) UNIQUE, description VARCHAR (512) ); CREATE TABLE IF NOT EXISTS Users ( id INT AUTO_INCREMENT PRIMARY KEY, name VARCHAR (64), username VARCHAR (32) UNIQUE, password VARCHAR (64), typeId INT, FOREIGN KEY (typeId...
true
ff63cd0b5aa5d17085dafa03447c1436da13fdef
SQL
AnastasiaKislyakova/warehouse_management_service
/warehouse_app/src/main/resources/db.migration/V1.0.0__init.sql
UTF-8
296
2.78125
3
[]
no_license
CREATE SCHEMA IF NOT EXISTS warehouse_management; CREATE TABLE IF NOT EXISTS warehouse_management.items ( id SERIAL NOT NULL PRIMARY KEY, name VARCHAR(100) NOT NULL, amount INTEGER check (amount >= 0) NOT NULL, price BIGINT check (amount >= 0) NOT NULL );
true
47192bf5be9b12e8b1a4e6e92f81240ea2378386
SQL
leizhi/sfwine
/scripts/oracle/oracle-sqlplus/clear-fl_pushrecord.sql
GB18030
1,510
3.171875
3
[]
no_license
prompt PL/SQL Developer import file prompt Created on 2010524 һ by Administrator set feedback off set define off prompt Dropping fl_pushrecord_bk... drop table fl_pushrecord_bk cascade constraints; --start prompt Creating fl_pushrecord_bk create table fl_pushrecord_bk as select * from fl_pushrecord; prompt Delete < ...
true
5cc2d56589ee1f3e0260f07f90be3cdd31eed970
SQL
blancowilson/saint-sql
/administrativo/Actualizar campo texento cuando hay decimales errardos.sql
UTF-8
875
3.25
3
[]
no_license
-- Un error que debe corregirse en el program no ejecutar sin un analisis previo update SACOMP set TExento= 0, TGravable= TGravable+TExento from sacomp where (TExento >-0.1 and TExento<0) or (TExento >0 and TExento<0.1) update SAACXP set TExento=0, baseimpo = BaseImpo+TExento from SAACXP where ((TExento >-0.1 and TEx...
true
75f2b95715b83a5f69494d862e099bdef5557788
SQL
simondvt/SQL-class
/Lab3/4_3.sql
UTF-8
165
3.59375
4
[]
no_license
DELETE FROM CORSI WHERE CodC IN ( SELECT C.CodC FROM (SELECT * FROM CORSI) C INNER JOIN PROGRAMMA P ON C.CodC = P.CodC GROUP BY C.CodC HAVING COUNT(*) < 2 );
true
b98cce26934489033bc09a529e99150569152aa5
SQL
prap44/Telkom-195
/t195.sql
UTF-8
277
2.734375
3
[]
no_license
CREATE TABLE IF NOT EXISTS `t195_transactions` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `invoice` varchar(25) NOT NULL, `payment_code` varchar(20) NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `invoice` (`invoice`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
true
e891051c10831f3beb3d8baa6866cf2cd53e7a41
SQL
Imbatentti/Tuntikirjanpito
/tunnit/database/CreateTable_tunnit.sql
UTF-8
1,218
3.421875
3
[]
no_license
CREATE TABLE KAYTTAJAT ( kayttaja_id int NOT NULL AUTO_INCREMENT, kayttajatunnus varchar(50) NOT NULL, email varchar(50) NOT NULL, enabled tinyint NOT NULL, etunimi varchar(50) NOT NULL, sukunimi varchar(50) NOT NULL, salasana varchar(500) NOT NULL, PRIMARY KEY (kayttaja_id) ); ALTER TABLE KAYTTAJAT AUTO_INCREMENT=1; ...
true
8fd3df8f75fae183996b5703eeba2431e518b569
SQL
StickFunFight/Filmatory
/DataBase en CSV/Losse Tabellen/userliking.sql
UTF-8
1,901
3.1875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Gegenereerd op: 28 okt 2020 om 18:16 -- Serverversie: 10.4.14-MariaDB -- PHP-versie: 7.2.33 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHA...
true
01461a5d5ffe688fc2afa20a1b534970bd30afb0
SQL
kingtai168/lishi
/recruit-service/src/test/resources/config/commodity.sql
UTF-8
4,538
3.453125
3
[]
no_license
-- zt add start---- CREATE DATABASE /*!32312 IF NOT EXISTS*/`commodity` /*!40100 DEFAULT CHARACTER SET utf8 COLLATE utf8_bin */; USE `commodity`; DROP TABLE IF EXISTS `t_brand`; CREATE TABLE `t_brand` ( `id` varchar(35) COLLATE utf8_bin NOT NULL COMMENT '主键', `code` varchar(35) COLLATE utf8_bin NOT NULL COM...
true
89d1a1d79644be1a7a3104ea94b4e403b396c2a3
SQL
y-agg/AttandanceManagmentSystem
/data.sql
UTF-8
6,319
2.875
3
[]
no_license
/* SQLyog Community Edition- MySQL GUI v5.22a Host - 5.0.19-nt : Database - dbattandance ********************************************************************* Server version : 5.0.19-nt */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; create database if not exists `dbattandance`; USE `dbatta...
true
0e76995dce4843cb77b66ad89023390ea41e4156
SQL
rickieleehao/WebStore
/sql_for_phpmyadmin/faq.sql
UTF-8
2,332
3.203125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1:3306 -- Generation Time: Mar 28, 2021 at 06:48 AM -- Server version: 5.7.31 -- PHP Version: 7.3.21 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@...
true
64093ccdca854c7aa040f652570c5247277693b0
SQL
BadeaAndreea/afaceri_electronice
/sql/myApp.sql
UTF-8
1,532
3.46875
3
[]
no_license
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; -- CREATE DATABASE myApp; -- CREATE DATABASE `catalog` DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_ci; USE `myApp`; CREATE TABLE IF NOT EXISTS `sejururis` ( `id` smallint(5) NOT NULL AUTO_INCREMENT, `titlu` varchar(30) DEFAULT NULL, `destinatie` varchar(500) DEFA...
true
078057b408f68be381d67d95d09661b719b23ec7
SQL
XVNYATA/JavaEE
/Oracle/day01/4.创建用户和表空间.sql
GB18030
2,053
3.890625
4
[]
no_license
/** Oracleͨûȥݡ Ҫ洢,Ƚռ䣬ٽûٽ(ͼ) 1. ԼԼûҪʹSystemϵͳû 2. ûһҪʹñռ */ /* ռ䣺 ӳʵʴ洢λãһûʹһռ */ /* ռ ռ ļ·С Զչ ע⣺ ռj1604 ִгɹ·»һj1604.dbfļ */ CREATE TABLESPACE j1604 DATAFILE 'C:\oracle\product\10.2.0\oradata\orcl\j1604.dbf' SIZE 20M AUTOEXTEND ON ; --ɾռͬʱɾռڵļ DROP TABLESPACE j1604 INCLUDING CONT...
true
06804d86bd7fca550efae8f35d5cfa275070c4a1
SQL
monteiroluana/D.Evolution_imobiliaria
/ImobiliariaTest/src/main/java/resources/bdImobiliaria.sql
UTF-8
260
2.84375
3
[ "MIT" ]
permissive
create database imobiliariadb; use imobiliariadb; create table usuario( id bigint not null auto_increment, nome varchar(100) not null, email varchar(100) null, login varchar(30) not null, senha varchar(30) not null, primary key(id) ) select * from usuario
true
5d069408a5f15d83536afa13f64430e47a7d4742
SQL
Kunal6699/COLLEGE-ADMISSION-AND-STUDENT-MANAGEMENT
/exportdetails1/export-excel.sql
UTF-8
2,387
3
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.6.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jul 15, 2017 at 05:51 AM -- Server version: 5.7.14 -- PHP Version: 5.6.25 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */...
true
8d8dabe642a1facdc45a040675a28b05aa65ca4f
SQL
Matt1208Dev/VillageGreen
/v_produits-fournisseurs.sql
UTF-8
514
2.796875
3
[]
no_license
-- Vue produits-fournisseurs CREATE OR REPLACE VIEW V_produits_fournisseurs AS SELECT `pro_id` AS `idProduit`, `pro_ref` AS `RefProduit`, `pro_label` AS `Libelle`, `pro_ppet` AS `PA HT`, `pro_spet` AS `PV HT`, `pro_phy_stk` AS `Stock`, `pro_lock` AS `Verrou`, `pro_add_date` AS `DateAjout`, `sup_id` AS `idFournisseur`...
true
17479aacdc090731aa08dedf15ee1f3f4694a963
SQL
Tahmid-islam/my-portfolio-website
/portfolio.sql
UTF-8
3,824
3.234375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.3 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Dec 10, 2020 at 06:52 AM -- Server version: 10.4.14-MariaDB -- PHP Version: 7.2.34 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
true
d54635e64af537506c8e4ad0ff9996813a2581bc
SQL
paaaattighe/swcguild
/SQL Exercises/ProcedureWithScope.sql
UTF-8
276
2.84375
3
[]
no_license
CREATE PROCEDURE EmployeeGetAll AS BEGIN SELECT * FROM Employees END CREATE PROCEDURE RegionInsert( @RegionDescription nchar(50), @RegionId int output ) AS BEGIN INSERT INTO Region (RegionDescription) VALUES (@RegionDescription); SET @RegionId = SCOPE_IDENTITY(); END
true
cbf7f8f340da64d2cbc577d23632fd2a4add1cfb
SQL
pendelhaven3/magic
/alterscripts/alterscript-1.39.0.sql
UTF-8
360
2.875
3
[]
no_license
insert into PROMO_REDEMPTION_REWARD (PROMO_REDEMPTION_ID, PRODUCT_ID, UNIT, QUANTITY) select a.ID, c.PRODUCT_ID, c.UNIT, PRIZE_QUANTITY from PROMO_REDEMPTION a join PROMO b on b.ID = a.PROMO_ID join PROMO_TYPE_1_RULE c on c.PROMO_ID = b.ID where b.PROMO_TYPE_ID = 1 and a.POST_IND = 'Y'; alter table PROM...
true
b47ddfe17be12b3941ea8874e6ab1c006614bfb4
SQL
sylingd/Yesf-Example
/user.sql
UTF-8
1,653
3.296875
3
[ "MIT" ]
permissive
/* Navicat Premium Data Transfer Source Server : localhost Source Server Type : MySQL Source Server Version : 50721 Source Host : localhost:3306 Source Schema : video Target Server Type : MySQL Target Server Version : 50721 File Encoding : 65001 Date: 10/05/2019 08:5...
true
70a5736512d99d835e27da6a54ba52931e213534
SQL
nhatsmrt/DatabasePractice
/LeetCode/1045. Customers Who Bought All Products/Solution.sql
UTF-8
240
3.5625
4
[]
no_license
/* Write your T-SQL query statement below */ select distinct c.customer_id from customer c where not exists ( (select product_key from product) except (select product_key from customer c2 where c2.customer_id = c.customer_id) )
true
7c8aa796e82fd2c052e712141a7e14c4f6ea7e3d
SQL
Martloni/Udemy-SQL-Bootcamp
/SQL statement Fundamentals.sql
UTF-8
4,576
4.34375
4
[]
no_license
-- SELECT COUNT(DISTINCT amount) FROM payment; -- SELECT * FROM customer LIMIT 5; --SELECT first_name, last_name FROM customer --ORDER BY first_name DESC; --SELECT first_name, last_name FROM customer --ORDER BY last_name DESC; --SELECT first_name, last_name FROM customer --ORDER BY first_name ASC, last_name ASC...
true
b58eace64c42393f829f76ac882855fafb7cd9bd
SQL
ghoshmithun/ImpProjectDoc
/AT US Activity Preference Model SSoni/AT_US_Act_Pref_Training_v3_ssoni.sql
UTF-8
17,526
3.546875
4
[]
no_license
--- File last updated - 5th July 2017 -- Set hive options use ssoni; set mapred.job.queue.name=bdload; set hive.cli.print.header=true; --Set the variables. Run this everytime running hive. Also, change these parameters when initiating a new scoring script set first_quarter_start_date = '2016-04-01'; set first_quar...
true
cd79e1a81c3917e3dd4c3379ce802a51078d7983
SQL
lutfiadysh/binjas
/binjas_polri.sql
UTF-8
6,234
3.03125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Waktu pembuatan: 11 Okt 2019 pada 05.45 -- Versi server: 10.4.6-MariaDB -- Versi PHP: 7.1.32 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHA...
true
6f28fea09b0574b54cd559fe7dc61086c5fa618b
SQL
j7ng/CLFY_SA
/SA/Tables/ADFCRM_CARRIER_SWITCH_COVERAGE.sql
UTF-8
780
2.90625
3
[]
no_license
CREATE TABLE sa.adfcrm_carrier_switch_coverage ( source_parent VARCHAR2(30 BYTE), target_parent VARCHAR2(30 BYTE), warning VARCHAR2(30 BYTE) ); COMMENT ON TABLE sa.adfcrm_carrier_switch_coverage IS 'This table is used to hold upgrade combinations source phone''s carrier and target phone''s carrier that would...
true
756d4f0109ebf5a7d2aaa192dfbc1e8094522478
SQL
pm2kjiagm/bbsmax
/bbsmax5_src/MaxLabs.bbsMax.Project/Database/MsSql/Procedures/v30/bx_GetThreadRanksByThreadID.sql
UTF-8
356
2.71875
3
[]
no_license
-- ============================================= -- Author: <sek> -- Create date: <2006/12/26> -- Description: <根据threadID获取信息> -- ============================================= CREATE PROCEDURE [bx_GetThreadRanksByThreadID] @ThreadID int AS SET NOCOUNT ON SELECT * FROM [bx_ThreadRanks] WITH(NOLOCK) WHERE ThreadI...
true
5830e24557d4c53d32d6f7f29cfab03128fe3bf9
SQL
lfbettcher/Launch-Academy
/java-movie-validations/src/main/resources/db/migration/V3__associate_movies_with_studios_and_genre.sql
UTF-8
139
2.890625
3
[]
no_license
ALTER TABLE movies ADD FOREIGN KEY (genre_id) REFERENCES genres(id); ALTER TABLE movies ADD FOREIGN KEY (studio_id) REFERENCES studios(id);
true
b3a16bc38c7e202464ba732ad2c49eb616e451dd
SQL
danlamarca/sistemareservas
/SistemaReservas_vs2013_Entrega220815/MODELAGEM/Modelagem/Script_DDL.sql
ISO-8859-1
3,752
3.8125
4
[]
no_license
BEGIN TRANSACTION Use SistemaReservas print 'Criando Tabelas' IF NOT EXISTS (SELECT * FROM SYS.TABLES WHERE NAME ='TB_FILIAL') BEGIN CREATE TABLE TB_FILIAL( CODFILIAL INT IDENTITY(1,1) NOT NULL, DESCRICAO VARCHAR(50), LOCALIDADE VARCHAR(100) CONSTRAINT PK_FILIAL PRIMARY KEY(CODFILIAL) ...
true
6cc8ad8e30a24aeced8d5883d3f1b0f98ad0bbb8
SQL
AAMSLieutenant/HOSPITAL
/epam_project_DB/scripts/base.sql
UTF-8
5,240
3.5
4
[]
no_license
DROP TABLE patient; DROP TABLE address; DROP TABLE appointment; DROP TABLE diagnosis; DROP TABLE operation; DROP TABLE medicine; DROP TABLE proced; DROP TABLE employee; DROP TABLE position; DROP TABLE diag_oper; DROP TABLE diag_med; DROP TABLE diag_proc; DROP TABLE uuser; CREATE TABLE patient( card_id number(11) NOT ...
true
d03b335ad6293509d46a70cfd87a535c46b6fe62
SQL
Eyleenqh/Proyecto1RedesEnLosNegocios
/bdProyecto1Redes.sql
UTF-8
7,378
2.625
3
[]
no_license
CREATE DATABASE bdRedes; use bdRedes; CREATE TABLE archivosPeligrosos( id int primary key AUTO_INCREMENT, nombre varchar(100) not null, firma varchar(200) not null ); CREATE TABLE clientes( id int primary key AUTO_INCREMENT, direccionIp varchar(50) not null ); CREATE TABLE cliente_archivo( id int primary key...
true
e3aba89f82f61c16f82f372feb66d583efb795ec
SQL
Komzpa/fastmap
/fastmap_monolithic_reference.sql
UTF-8
9,101
3.5
4
[]
no_license
--- Tunables for debugging --\timing on --set enable_hashjoin to off; --set enable_seqscan to off; \pset border 0 \pset format unaligned \pset tuples_only on begin read only; -- This one is for debugging using http://tatiyants.com/pev/#/plans/new --#explain ( analyze, costs, verbose, buffers, format json ) --explain (...
true
341d43064fbf47e1a9d3c04dc1ca9120e3f5734a
SQL
ChintanRank/RDBMS-on-YelpDataSet
/Yelp_test.sql
UTF-8
1,071
2.78125
3
[]
no_license
select max(cool) from yelp_db.review; select max(cool) from yelp_db.review; select count(*) from yelp_db.review where text Like '%dirty%'; select count(*) from yelp_db.review where text Like '%dirty%'; select count(*) from yelp_db.review where text like '%clean%'; select count(*) from yelp_db.review where text like '%c...
true
52d78f49f6ef3ad3e1baae17efe31781bf6f3384
SQL
marcowchan/holbertonschool-higher_level_programming
/0x0E-SQL_more_queries/14-my_genres.sql
UTF-8
279
3.609375
4
[]
no_license
-- Lists all genres of the show Dexter. -- Lists all genres of the show Dexter. SELECT tv_genres.name FROM tv_genres, tv_show_genres, tv_shows WHERE tv_shows.title = "Dexter" AND tv_show_genres.show_id = tv_shows.id AND tv_show_genres.genre_id = tv_genres.id ORDER BY name;
true
a3fab7cab2c818ece0e9542ba2935f04d1eda2d6
SQL
mhnrcjgs/editable-grid-with-laravel-backend
/database/seeds/demo.sql
UTF-8
57,958
3.015625
3
[ "MIT" ]
permissive
/* * examples/mysql/demo.sql * * This file is part of EditableGrid. * http://editablegrid.net * * Copyright (c) 2011 Webismymind SPRL * Dual licensed under the MIT or GPL Version 2 licenses. * http://editablegrid.net/license */ SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @O...
true
829ebf0ae8032e862cb5f1f5186dcdc0ebdf22de
SQL
psotou/sql-datagovuc
/actualizacion-tablas/actualizacionFechaSTGTablasdeVistasTBL.sql
UTF-8
7,759
2.984375
3
[]
no_license
-- ADMISION -- chequeamos existencia SELECT * FROM MCP.MCP_CATALOGO WHERE NOMBRE_OWNER = 'ADMISION' AND NOMBRE_TABLA IN ( 'ANTECED_ADMIS' , 'CASO_ADMIS' , 'COLEGIO_ADMISION' -- no está en el mcp catálogo , 'ETNIA' , 'HIST_CARRERA' , 'INDICE_VULNER_ESCOLAR' , 'PERS_ADMIS' , 'PERSONA_AD...
true
89b4d95acb52897edcb8c660bd655ca318e045a3
SQL
C-H-I-L-L/MySQL-University-Project
/BryceCox-University-MySQL-Proj.sql
UTF-8
10,534
2.90625
3
[]
no_license
USE university_project_schema; SELECT * FROM professors; SELECT * FROM grades; SELECT * FROM students; SELECT * FROM courses; INSERT INTO students (students_id, students_name, students_email) VALUES(1, 'Alan Watts', 'old_dried_turd@middleway.com'); INSERT INTO students (students_id, students_name, students_email) ...
true
12d93e8d6a137a839e1640d98cd7210228e38990
SQL
Ca-moes/BDAD
/BDAD-Proj/criar.sql
UTF-8
5,998
3.40625
3
[]
no_license
DROP TABLE IF EXISTS Document; DROP TABLE IF EXISTS Stated; DROP TABLE IF EXISTS DocPossesses; DROP TABLE IF EXISTS RevPossesses; DROP TABLE IF EXISTS Modified; DROP TABLE IF EXISTS Belongs; DROP TABLE IF EXISTS Request; DROP TABLE IF EXISTS Company; DROP TABLE IF EXISTS Language; DROP TABLE IF EXISTS File; DROP TABLE ...
true
4ee0bb735c8f42d3dc334f2887433af0342b58dc
SQL
hyderabad18/team-6
/yfs/databasefiles/yfs.sql
UTF-8
4,037
3.015625
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.8.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jul 14, 2018 at 01:37 PM -- Server version: 10.1.34-MariaDB -- PHP Version: 7.2.7 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
31ef159c2f0192eed10583013e32e500593839b0
SQL
gyanz/qgis-flo-2d-plugin
/flo2d/db_triggers.sql
UTF-8
16,902
3.578125
4
[]
no_license
-- Create GeoPackage triggers -- Inflow - INFLOW.DAT CREATE TRIGGER IF NOT EXISTS "find_inflow_cells_insert" AFTER INSERT ON "inflow" WHEN (new."geom" NOT NULL AND NOT ST_IsEmpty(NEW."geom")) BEGIN DELETE FROM "inflow_cells" WHERE inflow_fid = NEW."fid"; INSERT INTO "inflow_cells" (inflow_...
true
dd7d0360367c31024d280583604903754657fd6a
SQL
KiraFR/Life_Kira
/patch/notaire.sql
UTF-8
798
2.84375
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : local Source Server Version : 50505 Source Host : localhost:3306 Source Database : arma3life Target Server Type : MYSQL Target Server Version : 50505 File Encoding : 65001 Date: 2017-06-18 00:14:21 */ SET FOREIGN_KEY_CHECKS=0; -- ---...
true
929301de7a11a62bc7d1639a05d1fc6763bb4a99
SQL
Shariful-NomaD-Islam/sync-db
/sql/postgre-event-log-jsonb.sql
UTF-8
1,910
3.21875
3
[]
no_license
CREATE TABLE EVENT_LOG ( ID SERIAL NOT NULL PRIMARY KEY, ORIGINAL_TABLE_NAME VARCHAR(100), OPERATION VARCHAR(20), FILTER JSONB, NEW_DATA JSONB, OLD_DATA JSONB, CREATE_DATE_TIME TIMESTAMP, STATUS VARCHAR(20) ); INSERT INTO EVENT_LOG (ORIGINAL_TABLE_NAME, OPERATION, FILTER, NEW_DATA, OLD_DATA, CR...
true
61392f2d28eaa9a03ff1625691e69d6b2cd8bc0e
SQL
Isaac00rz/Creative
/public/consultas de prueba.sql
UTF-8
2,325
3.5625
4
[ "MIT" ]
permissive
use creative; select * from clientes; select rfc, concat(nombre,' ', apellidoP,' ',apellidoP) as nombreC, cp, direccion, correo, telefonoPersonal from clientes; select * from sucursal; select * from users; SET FOREIGN_KEY_CHECKS=0; truncate table users; SET FOREIGN_KEY_CHECKS=1; insert into users(id,name,email,p...
true
a563791a217044bc379d0576193f145e38c13cb9
SQL
star-centauri/Movie-DB
/TrabBd_BombaPatch.sql
UTF-8
3,179
3.546875
4
[]
no_license
CREATE TABLE Filme ( Id VARCHAR(6) PRIMARY KEY, Nome VARCHAR(10), Ano DATE, Orcamento INTEGER, Bileteria INTEGER, Sinopse VARCHAR(300), Rank FLOAT ); CREATE TABLE Diretor ( Id VARCHAR(6) PRIMARY KEY, Primeiro_Nome VARCHAR(30), Segundo_Nome VARCHAR(30), Sexo CHAR, Data_N...
true
116e9468a80c17f3a3248793b4746fc91eb9ecde
SQL
Sersergei/test_blog
/blog.sql
UTF-8
2,465
3.03125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.0.10.6 -- http://www.phpmyadmin.net -- -- Хост: 127.0.0.1:3306 -- Время создания: Июл 03 2015 г., 00:30 -- Версия сервера: 5.6.22-log -- Версия PHP: 5.3.29 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIE...
true
0ffcdf952e1cb6c25abaa419a2cc476f33a0d485
SQL
JJJJJJH/New-but-Fantastic-
/Leetcode DB/183.sql
UTF-8
211
3.359375
3
[]
no_license
#183. Customers Who Never Order # Write your MySQL query statement below select Customers.Name as 'Customers' from Customers left join Orders on Customers.ID = Orders.CustomerID where Orders.CustomerId is null
true
ebc102b163fb30dc4096210cbc9460091c16008c
SQL
zj-dreamly/love-sharing-service
/sql/love-sharing.sql
UTF-8
5,587
3.5
4
[]
no_license
SET NAMES utf8mb4; SET FOREIGN_KEY_CHECKS = 0; -- ---------------------------- -- Table structure for bonus_event_log -- ---------------------------- DROP TABLE IF EXISTS `bonus_event_log`; CREATE TABLE `bonus_event_log` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Id', `user_id` int(11) DEFAULT NULL COMMENT ...
true
9c6bf43043925d3db8c1d196f44882a15311f746
SQL
reyhane-goli/DB_CA
/Company.sql
UTF-8
21,291
3.875
4
[]
no_license
create database Company; use Company; CREATE TABLE employee (number INTEGER PRIMARY KEY, name VARCHAR(20), salary INTEGER, manager INTEGER, birthyear INTEGER, startyear INTEGER); CREATE TABLE dept (number INTEGER PRIMARY KEY, name VARCHAR(20), ...
true
cea990127b8c77b5c89b9691d7fb4938390157d5
SQL
MichaelLiKwan/Alzheimer-Detection-Application
/sql/init.sql
UTF-8
4,495
3.328125
3
[]
no_license
CREATE DATABASE alzheimersDetectionProject; USE alzheimersDetectionProject; -- phpMyAdmin SQL Dump -- version 4.9.5 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Nov 27, 2020 at 05:53 AM -- Server version: 5.7.30 -- PHP Version: 7.4.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zo...
true
802dc0f2730695faebe5b615e4329b293ed532d8
SQL
ashikdinesh10/sql-bootcamp
/Instagram Clone/solutions/solution_7.sql
UTF-8
288
4.15625
4
[]
no_license
# find users who have liked every single photo on the site SELECT username, Count(*) AS num_likes FROM users INNER JOIN likes ON users.id = likes.user_id GROUP BY likes.user_id HAVING num_likes = (SELECT Count(*) FROM photos);
true
e9d629bab42f6adbbcae44ee5ef85440d050c379
SQL
antonibx/ITAcademy-Vue-M9-2
/BBDDmysql.sql
UTF-8
941
4.15625
4
[]
no_license
## EXERCICI 1 SELECT count(flightID) FROM flights; ## EXERCICI 2 SELECT origin, avg(ArrDelay) as "sortida", avg(DepDelay) as "arribada" FROM flights GROUP BY origin; ## EXERCICI 3 SELECT origin, colYear, colMonth, AVG(ArrDelay) FROM flights GROUP BY origin, colYear, colMonth ORDER BY origin, colYear, colMonth; ## EX...
true
4a3632947b392341fe5b3fc3725b65fa284da28b
SQL
imsocxld/homework4
/table.sql
UTF-8
1,475
3.578125
4
[]
no_license
create table users( id serial primary key, name varchar(255), surname varchar(255), email varchar(255), work_id int ); create table works( id serial primary key , ...
true
d73a1919fc8fbe3d9265367b5557f3c8eeb586a3
SQL
shruti-goswami/ekartApp
/ekart/src/main/resources/sql/schema.sql
UTF-8
285
2.59375
3
[]
no_license
DROP TABLE IF EXISTS account; DROP TABLE IF EXISTS wishlist; create table account( name varchar(20), password varchar(20), email varchar(30) primary key ); create table wishlist( product_id varchar(5), user_email varchar(30) , primary key(product_id,user_email) );
true
9b79663783f93c83adb56e14f936065e093a3001
SQL
carlosrmfernandes/SIARVE-Sistema-de-Agendamento-de-Renova-o-de-Visto-de-Estrangeiros
/db/comandos_sql.sql
ISO-8859-1
788
3
3
[]
no_license
CREATE TABLE produtos( codigo integer not null, descricao varchar(30) not null ) CREATE TABLE cadastroestrangeiro ( numpassaporte varchar(30) not null primary key, celular varchar(60) not null, nome varchar(60) not null, endereco varchar(60) not null, email varchar(60) not null, data date, estadocivil varchar...
true
7ecdfd97e0f1043e3a87c7442b3cd675a50def29
SQL
zohaibalvi/Mp3-Cloud
/db/sql.sql
UTF-8
2,713
3.03125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Sep 21, 2020 at 06:53 PM -- Server version: 10.4.14-MariaDB -- PHP Version: 7.2.33 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
true
3baaeca3d0cb51f9a41d59dfc9873012891bf049
SQL
iankressin/aplicacao_db
/12-05/atividade_3.sql
UTF-8
4,806
3.65625
4
[]
no_license
-- Questão 1 create table cliente ( cpf integer primary key, nome varchar(60), nascimento date ) create table modelo ( codigo serial primary key, descricao varchar(40) ) create table veiculo ( placa varchar(8) primary key, modelo_codigo integer, cliente_cpf integer, cor varchar(20), constraint fk_modelo fo...
true
afbde1ffce75fb5d7d92184d806fca1f0836bea7
SQL
bhushan-patil-12/UMS
/assets/database/ums.sql
UTF-8
8,155
3.203125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jul 20, 2021 at 10:12 AM -- Server version: 10.4.14-MariaDB -- PHP Version: 7.4.10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
true
a77509763e34d4dbf625db445906a89118f6ef9c
SQL
SynisterWallace/Final-Project-PBO-Liga-Sepak-Bola
/Database/Per Tabel/t_pemain.sql
UTF-8
1,575
2.96875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Dec 01, 2018 at 03:57 PM -- Server version: 10.1.34-MariaDB -- PHP Version: 7.2.7 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
8f180168a708d233c19f091373ac0535599e56f3
SQL
neen-chanissara/SQL
/President Practice 51-60.sql
UTF-8
1,661
4.0625
4
[]
no_license
-- 51. Shows the number of administrative periods and the number of vice-presidents of the period in which there are more than 1 vice president. select admin_nr,count(pres_name) from admin_pr_vp group by admin_nr having count(vice_pres_name) > 1 -- 52. Show the governing era with more than 1 president. select adm...
true
c0687081d5540b9cbd146c94184c6fb4207d9ac6
SQL
ajeet85/larvel_5
/lara.sql
UTF-8
4,878
2.734375
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.1.14 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Mar 04, 2016 at 10:24 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
0c776349d115eae6cc76003791c2d0a87f49ed9e
SQL
TasniaHeya/course-machine-learning-chikonguniya
/Data from Paho/sql/2017/chikonguniya.sql
UTF-8
213,189
2.96875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Sep 01, 2018 at 09:46 PM -- Server version: 10.1.30-MariaDB -- PHP Version: 5.6.33 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
true
5102762b3e92080d51336848c30c0d3b31b7b98a
SQL
erezrubinstein/aa
/retail_queries/matching/address_matching.sql
UTF-8
5,711
3.578125
4
[]
no_license
--exact match by full address select count(distinct s0.id) from retaildb_test_june2011.dbo.stores s0 with (nolock) inner join retaildb_test_june2011.dbo.addresses_vw a0 with (nolock) on a0.store_id = s0.id --30337 inner join retaildb_test_june2011.dbo.companies c with (nolock) on c.id = s0.company_id inner join retail...
true
040e279f3f2afe72bf794003dafb4ed01575bd34
SQL
lordnynex/CLEANUP
/FORKS/Shell/uber-scripts/tree/postgresql/sql/c1_01_database_common_stat.sql
UTF-8
575
3.125
3
[ "WTFPL", "LicenseRef-scancode-warranty-disclaimer", "MIT" ]
permissive
-- Database structure checklist. -- Show databases common view SELECT datname, numbackends, xact_commit, (tup_returned + tup_fetched) as reads, (tup_inserted + tup_updated + tup_deleted) as writes, round(((100 * tup_inserted + tup_updated + tup_deleted) / (tup_inserted + tup_updated + tup_deleted + tup_ret...
true
9de978c24179527f2970640d101e4f661197ac25
SQL
alexnec37/tsql-scripts
/diagnostics/execution-stats/last-hour-query-stats.sql
UTF-8
1,626
3.3125
3
[ "MIT" ]
permissive
----------------------------------------------------------------- -- -- rudi@babaluga.com, go ahead license ----------------------------------------------------------------- SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED; SELECT qs.execution_count ,qs.last_rows ,SUBSTRING(st.text, (qs.statement_start_off...
true
9f3bec5cd982e2759f874986429a6a2af41ac799
SQL
mason-ge/worknotes
/报表/成长路径/PC/按老师/数据引擎/原sql.sql
UTF-8
1,187
3.953125
4
[]
no_license
SELECT TBL.* FROM ( SELECT t2.path_name AS path_name, t3. NAME AS checkpoint_name, su1.user_code AS student_code, su1. NAME AS student_name, su2.user_code AS teacher_code, su2. NAME AS teacher_name, IF ( t6.student_assess_detail_id IS NULL, '未评估', '已评估' ) AS is_assess, t5.total_sco...
true
cec26bdb361ccbe44c70f0e4f856023987cbb232
SQL
rohini-raja/leetcode
/problems/article-views-i/mysql_schemas.sql
UTF-8
833
2.859375
3
[ "MIT" ]
permissive
Create table If Not Exists Views (article_id int, author_id int, viewer_id int, view_date date); Truncate table Views; insert into Views (article_id, author_id, viewer_id, view_date) values ('1', '3', '5', '2019-08-01'); insert into Views (article_id, author_id, viewer_id, view_date) values ('1', '3', '6', '2019-08-02'...
true
1e8ee573f9b9554c818f277380909af567d4e722
SQL
paoloap/blogads
/sql/1.0.0/init_datatables.sql
UTF-8
1,966
3.765625
4
[]
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='TRADITIONAL,ALLOW_INVALID_DATES'; -- ----------------------------------------------------- -- Schema blogads -...
true
03c02323dd97d00cbd6700b3ce0d3e667293f22c
SQL
scchess/LabKey
/server/modules/study/resources/schemas/dbscripts/postgresql/obsolete/study-14.10-14.20.sql
UTF-8
3,353
3.0625
3
[]
no_license
/* * Copyright (c) 2014-2016 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 app...
true
791ada3144cb21b6ef39f9d764411d769a5668fc
SQL
Mzhussiyev/fastapi
/reporting/routes/sql/bpm/bpm.sql
UTF-8
214
2.640625
3
[]
no_license
select * from stage_performance.v_bpm_reporting vbr where start_date between :since and :until and ((:name = 'All' and process_definition_name is not null) or (:name != 'All' and process_definition_name = :name))
true
f79ee23557008e50f39908668a50bf933898ea07
SQL
saqibnizami/dat-dashboard
/app/queries/order_state_count.sql
UTF-8
153
2.96875
3
[]
no_license
SELECT DATE_TRUNC({}, created_at)::date AS created, state, count(DISTINCT id) FROM orders.orders_view GROUP BY state, created ORDER BY created DESC
true
b7b497624f806ed48852f08bdc77ddff17ee4873
SQL
clementgalidie/api-cinema
/database/tables/movies.sql
UTF-8
377
2.6875
3
[]
no_license
-- -- Database: `cinema-api` -- -- -------------------------------------------------------- -- -- `movies` table structure -- CREATE TABLE IF NOT EXISTS `movies` ( `id` int(11) NOT NULL AUTO_INCREMENT, `title` varchar(50) NOT NULL, `cover` varchar(128) NOT NULL, `genre` int(11) NOT NULL, PRIMARY KEY (`id`)...
true
a0a13ea21accbad9142d90a1aea240946befd15a
SQL
maji94/ci-workshop
/database/db_workshop.sql
UTF-8
9,842
3.046875
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Nov 03, 2019 at 06:58 PM -- Server version: 10.1.28-MariaDB -- PHP Version: 5.6.32 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
true
bf95bb7830df1a9a154e915771e494175de3d145
SQL
bcgov/mds
/migrations/sql/V2020.06.01.10.10__add_new_bond_document_types.sql
UTF-8
1,532
3.1875
3
[ "Apache-2.0" ]
permissive
ALTER TABLE bond_document_type ADD COLUMN IF NOT EXISTS display_order integer NOT NULL DEFAULT 0; UPDATE bond_document_type SET description = 'Acknowledgement of Security Letter' WHERE bond_document_type_code = 'AKL'; UPDATE bond_document_type SET description = 'Scan of Reclamation Security Document' WHERE bond_docume...
true
77583d09b6cf6f559adfbfb76a32bee062ad380e
SQL
Arctruzeh/thumbstopper
/question_2.sql
UTF-8
124
3.625
4
[]
no_license
SELECT u.id, u.name, c.name FROM users u LEFT JOIN clients c ON u.client_id = c.id ORDER BY u.id ASC
true
e67c6cb60d42b9adad5d6e2daa8f87eb490710de
SQL
soatok/headless-lounge-bot
/sql/00-telegram.sql
UTF-8
1,688
3.78125
4
[]
no_license
CREATE TABLE IF NOT EXISTS headless_users ( userid BIGSERIAL PRIMARY KEY, telegram_user BIGINT UNIQUE, twitch_user BIGINT NULL UNIQUE, patreon_user BIGINT NULL UNIQUE, created TIMESTAMP DEFAULT NOW(), modified TIMESTAMP DEFAULT NOW() ); CREATE TABLE IF NOT EXISTS headless_users_oauth ( oaut...
true
b6c611238faf2e4a68d3eeff2f78299d746f4e13
SQL
jalvaran/tss_eps
/migrationsOld/2019_07_11_01_ts_eps_ips.sql
UTF-8
15,047
2.90625
3
[]
no_license
CREATE TABLE `copagos_pendientes` ( `ID` int(20) NOT NULL AUTO_INCREMENT, `NumeroRadicado` varchar(20) COLLATE utf8_spanish_ci NOT NULL COMMENT 'Número de la radicado que genera la EPS', `Origen` varchar(10) COLLATE utf8_spanish_ci NOT NULL COMMENT 'Origien', `DepartamentoRadicacion` varchar(25) COLLATE utf...
true
77fc7bca96e0ba72bf4d9bb792b8d917bf5739d5
SQL
arifbedor/Pemrograman3
/JavaDesktopUTS/Java Desktop UTS/javadesktop.sql
UTF-8
3,251
3.140625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.4.11 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Oct 29, 2015 at 07:57 PM -- Server version: 5.5.32 -- PHP Version: 5.4.19 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;...
true
3d9b4e5b9725c93c768ccec2fef516960f30cd71
SQL
Thodei/Maplan
/maplan_avant.sql
UTF-8
5,035
2.65625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.4 -- https://www.phpmyadmin.net/ -- -- Hôte : 127.0.0.1 -- Généré le : jeu. 24 jan. 2019 à 09:37 -- Version du serveur : 10.1.37-MariaDB -- Version de PHP : 7.3.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101...
true
ef205047c8399c20e6f516ee3e32d213d9fb7a3a
SQL
ogabeezle/SIAKAD-Penilaian
/penilaian.sql
UTF-8
8,885
2.96875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Dec 15, 2019 at 04:02 PM -- Server version: 10.1.38-MariaDB -- PHP Version: 7.3.4 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
ee503ebbf4c784e17229ad3c120892afc70ace1f
SQL
PhirePhly/blackflower
/data/updates/update-to-1_12_0.sql
UTF-8
970
3.5625
4
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0", "MIT" ]
permissive
SET @provides_database_version = '1.12.0.0'; SET @requires_code_version = '1.12.0'; SET @upgrade_from_database_version = '1.10.*'; INSERT INTO status_options VALUES ('Staged At Location'); -- Magic string ALTER TABLE channels ADD COLUMN staging_id INTEGER after incident_id; ALTER TABLE channels ADD INDEX(staging_...
true
6b4cda928ae9fb236d392e13b0648ad76e18b431
SQL
PolyCash/polycash
/src/sql/126.sql
UTF-8
664
3.5
4
[ "MIT" ]
permissive
ALTER TABLE `addresses` ADD `address_set_id` INT NULL DEFAULT NULL AFTER `primary_blockchain_id`; ALTER TABLE `addresses` ADD UNIQUE (`address_set_id`, `option_index`); ALTER TABLE `addresses` ADD INDEX (`address_set_id`); CREATE TABLE `address_sets` ( `address_set_id` int(11) NOT NULL, `game_id` int(11) DEFAULT N...
true
b92a332177f2689643cf86abe3f57bf76ec49d6e
SQL
jdfenlason/c0321-code-solutions
/sql-aggregates/profit-margin.sql
UTF-8
828
3.734375
4
[]
no_license
with "cte_revenue" as ( select "films"."title" as "film", "films"."filmId", sum("payments"."amount") as "revenue" from "films" join "inventory" using ("filmId") join "rentals" using ("inventoryId") join "payments" using ("rentalId") group by "films"."filmId" ), "cte_cost" as ...
true
a752a2857fb73eeb99f84bfd840a3fa782bf863b
SQL
sgeorge-cb/turbo-potato
/database/create_tables.sql
UTF-8
1,460
2.671875
3
[]
no_license
CREATE SCHEMA oauth; CREATE TABLE users ( username varchar(256), password varchar(256), enabled tinyint(1) ); CREATE TABLE authorities ( username varchar(256), authority varchar(256) ); CREATE TABLE oauth_client_details ( client_id varchar(256), resource_ids ...
true
9390b3de802db3eb480b0c7679ca4c045809835e
SQL
pipo6280/onda_fit
/bd_onda_fit_29_10_2017.sql
UTF-8
12,982
3.453125
3
[]
no_license
/* SQLyog Ultimate v11.11 (64 bit) MySQL - 5.7.14-log : Database - onda_fit ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_KEY_C...
true
a3ed911ca5e1e0f9184a4f58e1ad29f88ac4cce0
SQL
greenplum-db/gpdb
/src/test/regress/sql/bitmapscan.sql
UTF-8
16,120
3.796875
4
[ "Apache-2.0", "LicenseRef-scancode-generic-cla", "PostgreSQL", "OpenSSL", "LicenseRef-scancode-stream-benchmark", "ISC", "LicenseRef-scancode-openssl", "LicenseRef-scancode-other-copyleft", "LicenseRef-scancode-ssleay-windows", "BSD-2-Clause", "Python-2.0" ]
permissive
create table bitmapscan_bug as select '2008-02-01'::DATE AS DT, case when j <= 96 then 0 when j<= 98 then 2 when j<= 99 then 3 when i % 1000 < 900 then 4 when i % 1000 < 800 then 5 when i % 1000 <= 998 then 5 else 6 end as ind, (i*117-j)::bigint as s from generate_series(1,100) i, generate_series(1,1...
true
1dfdf310291530763b70846c36984e928f0e9245
SQL
abirdatta/spring-boot-rest-api-user-management
/init-mysql.sql
UTF-8
1,059
4.0625
4
[]
no_license
CREATE DATABASE IF NOT EXISTS mydb; GRANT ALL PRIVILEGES ON mydb.* TO 'myuser'@'%' IDENTIFIED BY 'mysql'; GRANT ALL PRIVILEGES ON mydb.* TO 'myuser'@'localhost' IDENTIFIED BY 'mysql'; USE mydb; CREATE TABLE IF NOT EXISTS user_type (user_type_id INT NOT NULL AUTO_INCREMENT, type VARCHAR(100), description VARCHAR(100...
true
1812f20372390124fe0be41e0c689743356a7808
SQL
RedFirebreak/HBO-ICTMemes
/src/sql/old/overtredingen.sql
UTF-8
1,407
2.765625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Oct 25, 2019 at 04:07 PM -- Server version: 10.4.6-MariaDB -- PHP Version: 7.3.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
true
cb37b5e0058020416d9be18c44fa4619c13a0a43
SQL
umchooh/task-management
/sql/6_create_table_faq.sql
UTF-8
824
2.84375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.3 -- https://www.phpmyadmin.net/ -- -- Host: localhost:8889 -- Generation Time: Mar 08, 2021 at 06:40 PM -- Server version: 5.7.26 -- PHP Version: 7.4.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; -- -- Database: `task_management` -- -- --------------------...
true
72a66b05b421ea65952c745dad8c0a28d1eeeedf
SQL
sygns13/sistemafarmaciafacturaelectronica
/Sistema-Farma-PagoElectronico/para instalacion/Script.sql
UTF-8
3,669
3.453125
3
[]
no_license
-- ------------------------------------------------------------------------------- -- ------------------------------------------------------------------------------- -- ------------------------------------------------------------------------------- DELIMITER $$ DROP PROCEDURE IF EXISTS `pagoProveedor` $$ CREATE DEFIN...
true
fdd0693b33ba91596061bbaf0977610d028e6b31
SQL
giannifontanot/employee-management-system
/db/seeds.sql
UTF-8
3,204
2.78125
3
[ "MIT" ]
permissive
insert into company_db.department (name) # 1 values('None'); insert into company_db.department (name) # 2 values('Production'); insert into company_db.department (name) # 3 values('Sales'); insert into company_db.department (name) # 4 values('R&D'); insert into company_db.department (name) # 5 values('HR'); insert into...
true
2e22fbbed966ee7ba37b79128e7803383bc1d78c
SQL
dingGator/C2540-Database-Management
/C4_SSC_1.sql
UTF-8
378
3.03125
3
[]
no_license
use schoolschedulingexample; select subjectName from subjects ; /* CREATE ALGORITHM = UNDEFINED DEFINER = `root`@`localhost` SQL SECURITY DEFINER VIEW `schoolschedulingexample`.`ch04_subject_list` AS SELECT `schoolschedulingexample`.`subjects`.`SubjectName` AS `SubjectName` FROM ...
true
cb76814c45f8bf3ebdd4c265ed43f47479b8650a
SQL
lttr/esch-webapp
/src/main/resources/esch-setup-mysql.ddl
UTF-8
3,193
3.875
4
[]
no_license
DROP DATABASE IF EXISTS esch; CREATE DATABASE IF NOT EXISTS esch; USE esch; DROP TABLE IF EXISTS event ; DROP TABLE IF EXISTS event_configuration ; DROP TABLE IF EXISTS event_instructors ; DROP TABLE IF EXISTS instructor ; DROP TABLE IF EXISTS program_block ; DROP TABLE IF EXISTS program_day ; DROP TABLE IF ...
true
5929f3f08c672197e45ef9f44a5187f1c209f163
SQL
muthukumars/IS-607-Week5
/Week5Assignment/Week5Assignment.sql
UTF-8
2,950
3.46875
3
[]
no_license
select * from flights where (origin='EWR' or origin='JFK' or origin='LGA') and dest='LAX' select to_date((to_char(month,'99')||'/'||to_char(day,'99')||'/'||to_char(year,'9999')),'mm/dd/yyyy') from flights select TO_CHAR((air_time || ' second')::interval, 'HH24:MI:SS') from flights select * from planes where tailnum=...
true
0fdb632d2531301171bc76a767e250855c8895d9
SQL
nishitshrestha/Moveez
/MovieCrud.sql
UTF-8
1,088
2.96875
3
[]
no_license
/* SQLyog Community v11.0 Beta1 (32 bit) MySQL - 5.0.91-community-nt : Database - moviecrud ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40101 SET @O...
true
2eeac385935be6e75a43ca605559c0931d269be6
SQL
MDD659/-
/hrdb.sql
UTF-8
16,895
3.328125
3
[]
no_license
/* Navicat Premium Data Transfer Source Server : root Source Server Type : MySQL Source Server Version : 50623 Source Host : localhost:3306 Source Schema : hrdb Target Server Type : MySQL Target Server Version : 50623 File Encoding : 65001 Date: 16/09/2019 09:30:32 ...
true
65f6498a94eb25ea8ff2f4dd9f2d873a0e7ce148
SQL
bernatfornescarbonell/banco
/src/main/resources/sql/squema.sql
UTF-8
8,370
2.921875
3
[]
no_license
-- -- PostgreSQL database dump -- -- Dumped from database version 9.1.9 -- Dumped by pg_dump version 9.1.9 -- Started on 2013-08-16 03:12:03 COT SET statement_timeout = 0; SET client_encoding = 'SQL_ASCII'; SET standard_conforming_strings = on; SET check_function_bodies = false; SET client_min_messages = warning; --...
true
ad3ad316491f842a5eb0d6207ceb73179fc8011b
SQL
Inant/sehatin
/sehatin_db.sql
UTF-8
23,722
3.078125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jan 16, 2019 at 12:58 PM -- Server version: 10.1.37-MariaDB -- PHP Version: 7.3.0 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
5eac54d4da993cadec356593f154ec3adbe53e62
SQL
ynsingh/repos
/brihaspati/trunk/brihCI/database/createtablesis-20180802.sql
UTF-8
1,452
2.875
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
-- ------------------------------------------------------------------- -- -- Table structure for table `staff_academic_qualification` -- CREATE TABLE `staff_academic_qualification` ( `saq_id` int(11) PRIMARY KEY AUTO_INCREMENT, `saq_empid` int(11) NOT NULL, `saq_dgree` varchar(255) DEFAULT NULL, `saq_board_u...
true
9bb370e9d8f0af056704b44c7803cc000c10a603
SQL
jccode/guestbook
/sql/guestbook.sql
UTF-8
1,579
2.953125
3
[]
no_license
DROP TABLE IF EXISTS ex_guestbook; CREATE TABLE ex_guestbook ( id mediumint(8) unsigned NOT NULL auto_increment, nickname char(15) NOT NULL default '', email varchar(100) NOT NULL default '', content text NOT NULL, createtime int(10) unsigned NOT NULL default '0', PRIMARY KEY (id) ) ENGINE=MyISAM DEFAULT ...
true
bcc51c75e9a52f7ec85b452b7b23f39b3b7010a1
SQL
yardcrane/demo-mybatis
/src/test/java/com/example/mybatis/users.sql
UTF-8
267
3.015625
3
[]
no_license
CREATE SEQUENCE users_seq; create table users ( user_id integer not null DEFAULT nextval('users_seq'), user_nickname varchar(20) not null, user_name varchar(32) not null, primary key(user_id) ); insert into users(user_nickname, user_name) values ('1', 'my name');
true