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
82e3bfee4d9835905d750ca8a2ddc0e9fc2d2d17
SQL
bridgecrew-perf6/obo-training-deployments
/appserver/obo/server-modules/rameses-gov-etracs-obo-services.jar/sql/occupancy_permit_fee.sql
UTF-8
807
3.8125
4
[]
no_license
[getCategorizedFees] SELECT b.objid, b.item_title, b.grouptitle AS section, b.amount FROM (SELECT a.*, CASE a.feegroup WHEN 'OCCUPANCY_PERMIT' THEN 'OCCUPANCY PERMIT FEES' WHEN 'FIRE' THEN 'FIRE PERMIT FEES' ELSE 'OTHER FEES' END AS grouptitle, CASE a.feegroup WHEN 'OCCUPANCY_PERMIT' THEN 1000 WHEN '...
true
73484e3f735b51728f2e73223310c393aea92e64
SQL
acasax/Frizer
/frizer_reservation.sql
UTF-8
6,897
3.25
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Aug 09, 2021 at 05:06 PM -- 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
c0a05b8588c2fe2d5a5cf6fe0f571a3b78fd49b9
SQL
quaiton89/migration_4g
/4G_MIGRATION/bin/Debug/TABLE/MSSQL/02.사전검증 오류통보(R20)_MSSQL.sql
UHC
1,447
3.140625
3
[]
no_license
/*================================================= Table Name : GOVCBRR20A1 Description : _ 뺸 =================================================*/ IF EXISTS (SELECT * FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME = 'GOVCBRR20A1') BEGIN DROP TABLE GOVCBRR20A1 END; CREATE TABLE GOVCBRR20A1 ( DOC_KEY varchar(2...
true
c6b7cb4dff406ab6558cdd8a968cba550b52aae1
SQL
genbongo/charplingenterprise
/creamline_db (2).sql
UTF-8
42,411
2.90625
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Apr 15, 2021 at 03:12 PM -- Server version: 10.1.38-MariaDB -- PHP Version: 7.3.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
317706d062ca5788c326e9c4955078632d78b403
SQL
Stradakat/Bamazon
/bamazonSchema.sql
UTF-8
2,380
3.0625
3
[]
no_license
DROP DATABASE IF EXISTS bamazon_db; CREATE DATABASE bamazon_db; USE bamazon_db; CREATE TABLE products ( item_id INT NOT NULL, product_name VARCHAR(100) NOT NULL, department_name VARCHAR(100) NULL, price DECIMAL(6,2) NULL, stock_quantity INT NULL ); INSERT INTO products (item_id, product_name, departm...
true
b42cc47593bbca63b1c4011e7d471353eeb42f20
SQL
CSC4500/Dylan-Lyman
/League Database starter.sql
UTF-8
1,945
3.703125
4
[]
no_license
use league; CREATE TABLE Stats ( Playerstats_ID INT PRIMARY KEY AUTO_INCREMENT, Kills INT NOT NULL, Deaths INT NOT NULL, Total_CS INT NOT NULL, Elo_Rank VARCHAR(5) NOT NULL, Win_Rate DECIMAL NOT NULL ); Create TABLE Player( PlayerID INT PRIMARY KEY NOT NU...
true
b60e75efb6b9115e8f817fc957f9804bdd1c4baf
SQL
eranschweitzer/LPF
/sql/dbsetup.sql
UTF-8
1,031
3.171875
3
[]
no_license
CREATE SCHEMA IF NOT EXISTS linpf; CREATE TABLE IF NOT EXISTS linpf.res( casename VARCHAR(50), id VARCHAR(13), prop VARCHAR(4), criteria VARCHAR(3), value FLOAT ); CREATE TABLE IF NOT EXISTS linpf.nogw( casename VARCHAR(50), id VARCHAR(13), prop VARCHAR(4), criteria VARCHAR(3), value FLOAT ); CREATE TABLE ...
true
ceed059a676bbc66149a9ace9da79b60a991eff6
SQL
flodiebold/dcss_henzell
/henzell.sql
UTF-8
5,020
3.375
3
[]
no_license
DROP TABLE IF EXISTS milestone; DROP TABLE IF EXISTS spr_milestone; DROP TABLE IF EXISTS zot_milestone; DROP TABLE IF EXISTS milestone_files; DROP TABLE IF EXISTS logrecord; DROP TABLE IF EXISTS spr_logrecord; DROP TABLE IF EXISTS zot_logrecord; DROP TABLE IF EXISTS logfiles; DROP SEQUENCE IF EXISTS spr_logrecord_seq;...
true
34854ddd5e95466e1118c28d4f34e3d1cfcb692f
SQL
OpenLinkSoftware/SPASQL-Utility-Showcase-Queries
/equivalent-class-property-reasoning-uriburner.sql
UTF-8
6,115
2.78125
3
[]
no_license
LOG_ENABLE(2,1) ; -- Cleanup SPARQL CLEAR GRAPH <urn:equivalent:class:property:mappings> ; SPARQL CLEAR GRAPH <https://github.com/OpenLinkSoftware/Documentation/raw/master/rdf-turtle-based-documentation/virtuoso/windows/Upgrade83GuideWindows.ttl> ; SPARQL CLEAR GRAPH <https://github.com/OpenLinkSoftware/Documentati...
true
9daf68b96f93b833f4f6a078ec801c4dd3e08d30
SQL
bookmarkd-team/markd-webapp
/old-db/markdApp-db.sql
UTF-8
2,311
3.609375
4
[ "MIT" ]
permissive
CREATE DATABASE IF NOT EXISTS `markdApp-old` DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci; USE `markdApp-old`; CREATE TABLE `user` ( `userId` int PRIMARY KEY AUTO_INCREMENT, `firstName` varchar(255), `lastName` varchar(255), `emailAddress` varchar(255), `password` varchar(255), `created_at` timestamp...
true
df46e72ce7d6f1aef9db8429a31d37da1a71f283
SQL
1804Apr23Java/poker-app
/PokerApp/src/test/resources/PokerAppH2.sql
UTF-8
1,554
3.9375
4
[ "MIT" ]
permissive
CREATE TABLE USERS ( USER_ID INT AUTO_INCREMENT PRIMARY KEY, GAME_ID INTEGER, EMAIL VARCHAR2(50), PASSWORD VARCHAR2(50), FNAME VARCHAR2(50), LNAME VARCHAR2(50), USERNAME VARCHAR2(50), ISHOST BOOLEAN --if user is gamehost ); CREATE TABLE ADMINS ( USER_ID INTEGER PRIMARY KEY --users i...
true
a65628b7ab4d1a24bbb58da661540366d8709003
SQL
PutuEsa/Biwara
/biwara.sql
UTF-8
6,766
3
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 24 Des 2019 pada 12.15 -- Versi server: 10.4.6-MariaDB -- Versi PHP: 7.3.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHAR...
true
2fe16d1c0281069fe43f94bca07212346f46c371
SQL
975806566/icym
/create_im_db.sql
UTF-8
923
3.3125
3
[]
no_license
DROP DATABASE IF EXISTS `im_off_db`; create database `im_off_db`; use `im_off_db`; DROP TABLE IF EXISTS `msg_tmp`; CREATE TABLE `msg_tmp` ( `msg_id` bigint(20) unsigned NOT NULL, `from_id` varchar(50) NOT NULL, `topic` varchar(64) NOT NULL, `content` blob NOT NULL, `type` char(1) NOT NULL, `qos` tinyint...
true
4436fcfcbc895d1ebc472a8891a57e688fb17765
SQL
wuxiang1995/edu-system
/src/main/webapp/WEB-INF/db/edu.sql
UTF-8
2,433
3.78125
4
[]
no_license
SET SESSION FOREIGN_KEY_CHECKS=0; /* Drop Tables */ DROP TABLE IF EXISTS tb_student_feedback; DROP TABLE IF EXISTS tb_edu_feedback; DROP TABLE IF EXISTS tb_class_stage; DROP TABLE IF EXISTS tb_edu_chapter; DROP TABLE IF EXISTS tb_edu_student; DROP TABLE IF EXISTS tb_edu_class; DROP TABLE IF EXISTS tb_edu_st...
true
78d585ca3b63a95a569c93f009a1d7d4f6e03bc5
SQL
muratoruc2006/ORACLE_PL_SQL_SCRIPTS
/RECURSIVE_CODE_EXAMPLE.sql
UTF-8
358
3.34375
3
[]
no_license
with emp(sicil, adi, mudur_sicil, maas, seviye) as (select employee_id, first_name, manager_id, salary, 1 from employees where manager_id is null union all select employee_id, first_name, manager_id, salary, seviye + 1 from employees e join emp on (emp.sicil = e.manager_id) ) select seviye, count(*), avg(maas...
true
fbc497fdce8c74259687e36f11544ade4a80f67a
SQL
MinaMorkos-M/SoftwareEngineering-2
/notifications.sql
UTF-8
549
2.671875
3
[]
no_license
CREATE TABLE templates ( id VARCHAR(50) , subject VARCHAR(45) NOT NULL, content VARCHAR(45) NOT NULL, language VARCHAR(45) NOT NULL, primary key (id) ); CREATE TABLE sms ( id VARCHAR(50) , subject VARCHAR(45) NOT NULL, content VARCHAR(45) NOT NULL, language VARCHAR(45) NOT NULL, primary key (id) )...
true
b1b205ef10aff7d9f8b64d4aa991114eedbc00b0
SQL
renukadeshmukh/twm-master
/TravelWithMe/TravelWithMe.Data.MySql/DbBackup/booking_routines.sql
UTF-8
23,550
2.96875
3
[]
no_license
CREATE DATABASE IF NOT EXISTS `booking` /*!40100 DEFAULT CHARACTER SET latin1 */; USE `booking`; -- MySQL dump 10.13 Distrib 5.5.16, for Win32 (x86) -- -- Host: localhost Database: booking -- ------------------------------------------------------ -- Server version 5.5.27 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@C...
true
2afe0b038d6d799415e164d8b86e98b43f6a4a73
SQL
sberegeiko/TuningShopApplication
/src/main/resources/database.sql
UTF-8
5,924
3.65625
4
[]
no_license
-- Table: cars CREATE TABLE IF NOT EXISTS cars ( id SERIAL NOT NULL PRIMARY KEY, name VARCHAR(255) NOT NULL, model VARCHAR(255) NOT NULL, yearFromTo VARCHAR(255) NOT NULL ); -- Table: catalogs CREATE TABLE IF NOT EXISTS catalogs ( id SERIAL NOT NULL PRIMARY KEY, name VARCH...
true
162a31728406ffb119f0229997df868e2bc10adb
SQL
AlessandroTaglieri/Data-Management-for-Data-Science
/homework1&2/query_DMGT_2.sql
UTF-8
16,686
4
4
[]
no_license
SELECT @@SESSION.sql_mode; SET session sql_mode=(SELECT REPLACE(@@sql_mode,'ONLY_FULL_GROUP_BY','')); #firstname,lastName,height,weight,birthcountry of players born not in USA that played ONLY in 1 team in career(in the USA leagues) #time = 2.500 sec circa select firstname,lastName,height,weight,birthcountry from pl...
true
0693fb3e7e5a9058ecff1f88ec6b3e044443962e
SQL
ikesalazar/desafio-tecnico-SEFAZ
/CadastroUsuarios/src/main/resources/META-INF/CadastroUsuarios.sql
UTF-8
422
3.234375
3
[ "MIT" ]
permissive
create table usuario ( nome varchar(100) not null, email varchar(100) not null primary key, senha varchar(1100) not null ); create table telefone ( id int not null primary key, ddd int not null, numero varchar(100) not null, tipo varchar(100) not null, usuario varchar(100) not null, foreign key (usuario) references us...
true
e5b1e24d9968a76927011b98cea4b0e0117ba678
SQL
KangDongbum/JSP
/java/MiniBoard/src/main/sqlCode/miniboard.sql
UTF-8
186
2.53125
3
[]
no_license
CREATE TABLE board( idx INTEGER AUTO_INCREMENT, poster VARCHAR(20) NOT NULL, subject VARCHAR(255) NOT NULL, content TEXT NOT NULL, regDt DATETIME DEFAULT NOW(), PRIMARY KEY(idx) );
true
bfd48c396929ff3a0e3d3de9aaaf579bfaf6af67
SQL
developer-guy/batch-processing-hsqldb
/src/main/resources/schema-all.sql
UTF-8
176
2.71875
3
[]
no_license
SET AUTOCOMMIT TRUE; DROP TABLE people IF EXISTS; CREATE TABLE people ( person_id BIGINT IDENTITY NOT NULL PRIMARY KEY, first_name VARCHAR(20), last_name VARCHAR(20) );
true
7d01a6cca552f45a1b2312f68a6df81c743caa3f
SQL
BuninaVeronika/Guestbook_NOVATEST
/sql/0001_base.sql
UTF-8
1,212
3.4375
3
[]
no_license
-- Таблица пользователей -- create table if not exists `user` ( `id_user` int(10) unsigned not null auto_increment, `login` varchar(255) not null, `email` varchar(255) not null, `passsword` varchar(255) not null, `role` int(1) not null, primary key (id_user) ) engine = innodb auto_inc...
true
8fab6983910dc709402a94a058908ecf506d1be7
SQL
BartoszBak1/skni-project
/database/schema_data_base.sql
UTF-8
1,553
3.9375
4
[ "MIT" ]
permissive
/* creating database - schema and tables */ DROP SCHEMA IF EXISTS skni_project CASCADE; CREATE SCHEMA IF NOT EXISTS skni_project; DROP TABLE IF EXISTS skni_project.company CASCADE; CREATE TABLE IF NOT EXISTS skni_project.company( id_company serial PRIMARY KEY, company_name varchar(50) NOT NULL, full_name ...
true
5e51e4731dc83814efb7cc74f57f709c4ae898d3
SQL
baygust/CI3_System_Login
/CI3_Login/ci3_login.sql
UTF-8
6,104
3.1875
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 5.1.0 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Apr 28, 2021 at 09:31 AM -- Server version: 10.4.18-MariaDB -- PHP Version: 8.0.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIEN...
true
37c7a340ffc1e4ce9f4f450b15e3243cd87b8f12
SQL
VeronikaSagina/2019-11-otus-spring-sagina
/hw5/src/main/resources/schema.sql
UTF-8
696
3.421875
3
[]
no_license
drop table if exists book_genre; drop table if exists genre; drop table if exists author; drop table if exists book; create table genre ( genre_id int primary key, type varchar(255) ); create sequence seq_genre; create table author ( author_id int primary key, name varchar(255) ); create sequ...
true
79a28e88fe52618522ccecdf3f023639754e2aeb
SQL
amai1122/kougi
/0416sql内容/SELECT.sql
UTF-8
1,541
4
4
[]
no_license
SELECT * FROM product WHERE category_id =1; SELECT * FROM product WHERE product_name = 'ピアノ名曲ベスト100'; SELECT * FROM product WHERE price > 3000; SELECT * FROM product WHERE category_id =2 AND price > 2000; SELECT * FROM product WHERE category_id =1 OR category_id =2; SELECT product_name FROM product WHERE product_n...
true
cf2d882d4ec9617fe3d3ae0b08cf1a7c966581a8
SQL
huynv55/website_monhoc
/quanlymonhoc.sql
UTF-8
7,754
2.859375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.1.14 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Oct 24, 2014 at 09:50 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
21539c9f58a38c9963208753a14f5d3027a46669
SQL
plougsgaard/magicengine
/sql/tables/comments.sql
UTF-8
340
2.703125
3
[]
no_license
DROP TABLE IF EXISTS `magicengine`.`comments`; CREATE TABLE `magicengine`.`comments` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `text` mediumtext, `deck_id` int(10) unsigned NOT NULL, `author_id` int(10) unsigned NOT NULL, `date_added` datetime NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEF...
true
ce4df9d45530d22c3c7eab58ac3f283ede268ebe
SQL
blanklabs/IMPAKTER.Shared.Code
/DB/Programmability/Certificates/addCertificate.sql
UTF-8
1,464
4
4
[]
no_license
# attempts to insert comma demilited string into a table DROp PROCEDURE if exists SP_SplitString; DELIMITER // CREATE PROCEDURE SP_SplitString(Value longtext) BEGIN DECLARE front TEXT DEFAULT NULL; DECLARE frontlen INT DEFAULT NULL; DECLARE TempValue TEXT DEFAULT NULL; CREATE temporary TABLE store( Id int NOT NULL ...
true
224d960123f8abf89dc1c3815fe9ec6608ba48ee
SQL
zymeng1998/sql_practice_day3
/d3q5.sql
UTF-8
185
3.140625
3
[]
no_license
-- I dont think it is possible to use union to solve it and it is derivative to solve it using sub-query SELECT c.City FROM Customers c GROUP BY c.City HAVING COUNT(c.CustomerID) >= 2 ;
true
ed59a99811897f2209030739c09b2f9ac721997b
SQL
Mohammedbilal15/emart-design
/login.sql
UTF-8
4,169
3.125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Aug 13, 2020 at 10:01 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
8e102d4767ae2b58b75f8ba0b55afa8b93d7c6f8
SQL
KoksalKaradas/branch-delegation-service
/src/main/resources/data.sql
UTF-8
302
2.640625
3
[]
no_license
DROP TABLE IF EXISTS BRANCH_DELEGATION; create table BRANCH_DELEGATION ( app_id bigint not null, state varchar(255), primary key (app_id) ); INSERT INTO BRANCH_DELEGATION (app_id, state) VALUES (1, 'FIRST_USER'), (2, 'MANAGER'), (3, 'WAITING'), (4, 'REJECTED'), (5, 'COMPLETED')
true
b3069b3435890683f5ca2d4150f742dbc285c7c3
SQL
the-guitarman/brunch_finden
/db/test_structure.sql
UTF-8
29,185
3.03125
3
[]
no_license
CREATE TABLE `account_cheaters` ( `id` int(11) NOT NULL AUTO_INCREMENT, `frontend_user_id` int(11) DEFAULT NULL, `other_users` varchar(255) COLLATE utf8_unicode_ci DEFAULT '', `client_ip` varchar(255) COLLATE utf8_unicode_ci DEFAULT '', `client_agent` varchar(255) COLLATE utf8_unicode_ci DEFAULT '', `switch...
true
29ec65b7ba7a1bfe780b7d32116593921fec811c
SQL
AlexKMarshall/necromunda-next
/server/prisma/migrations/20210515064028_weapon/migration.sql
UTF-8
388
2.96875
3
[ "MIT" ]
permissive
/* Warnings: - You are about to drop the column `isSoldSeparately` on the `WeaponStats` table. All the data in the column will be lost. */ -- CreateEnum CREATE TYPE "CombiType" AS ENUM ('PRIMARY', 'SECONDARY'); -- AlterTable ALTER TABLE "WeaponStats" DROP COLUMN "isSoldSeparately", ADD COLUMN "isDefault" BOO...
true
3b1445495c4a27018be2d992ac172a487f9c57d8
SQL
NYMRAZE/erp_project
/frontend-api-develop/internal/platform/db/migrations/20201112064353_alter_user_permission_table.up.sql
UTF-8
318
3.078125
3
[ "MIT" ]
permissive
ALTER TABLE user_permissions DROP COLUMN IF EXISTS modules; ALTER TABLE user_permissions ADD COLUMN function_id int; ALTER TABLE user_permissions ADD COLUMN status smallint not null default 2; alter table user_permissions add constraint user_permission_function_id foreign key (function_id) references functions (id);
true
936fcc337d434667b7902887ebddbeee009733a6
SQL
arnabcode/springbootexample
/target/classes/DB_script.sql
UTF-8
278
3.171875
3
[]
no_license
CREATE TABLE USERS ( USER_ID SERIAL , FIRST_NAME character varying(20), LAST_NAME character varying(20), PHONE character varying(20), EMAIL character varying(30), PASSWORD character varying(20), CONSTRAINT USERS_PK PRIMARY KEY (USER_ID), CONSTRAINT USERS_PHONE UNIQUE (PHONE) );
true
60ec953d5a1c76b483b060d576a8da5e087e3f48
SQL
hc07180011/WeShare-Beta
/setup.sql
UTF-8
298
2.78125
3
[]
no_license
CREATE TABLE `EventCodeMapping` ( `id` INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, `eventCode` VARCHAR(8) NOT NULL, `eventToken` VARCHAR(12) NOT NULL, `eventName` VARCHAR(255) NULL DEFAULT NULL, `createTime` DATETIME NULL DEFAULT CURRENT_TIMESTAMP, UNIQUE (`eventCode`, `eventToken`));
true
3cc9a580876f13e9b2860db40a58c0d80f24a97e
SQL
yasir-albardawil/Car-Parking-Entrance-Access-Control-System
/database/cpeacs_database.sql
UTF-8
4,050
2.828125
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.6.5.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: May 09, 2017 at 06:23 AM -- Server version: 10.1.21-MariaDB -- PHP Version: 7.1.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET...
true
811664aedace94d2a8a41d5b27be23b45c5f8a6a
SQL
HKH515/MoldProject
/code/database/docker-entrypoint-initdb.d/init.sql
UTF-8
1,535
4.65625
5
[]
no_license
create database walldo owner postgres; CREATE TABLE room( id bigserial PRIMARY KEY, name character varying(255) NOT NULL UNIQUE ); CREATE TABLE device( id bigserial PRIMARY KEY, name character varying(255) NOT NULL UNIQUE, room_id integer REFERENCES room(id) ); CREATE TABLE measurement( id bi...
true
0dec8e816a1abdc47f9b5bf20bf340e71612f5d9
SQL
GabriM97/ClockCenter-Management
/utils/clockcenter.sql
UTF-8
11,019
3.109375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.1.4 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Ott 05, 2018 alle 00:29 -- Versione del server: 5.6.15-log -- PHP Version: 5.5.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIE...
true
8252f47884eb0b8a5b828feef2deef5a792c1cc8
SQL
itspladd/bootcampx
/4_queries/10_most_confusing_assignments.sql
UTF-8
352
3.96875
4
[]
no_license
SELECT assignments.id AS id, assignments.name AS name, assignments.day AS day, assignments.chapter AS chapter, COUNT(assistance_requests.*) AS total_requests FROM assignments JOIN assistance_requests ON assignment_id=assignments.id GROUP BY assignments.id, assignments.name, assignments.chapt...
true
2d2d8a847411646dc2cd0cf9e3e81b3d281baeef
SQL
blairsec/challenges
/angstromctf/2020/web/peculiar_query/prepare_db.sql
UTF-8
755
2.546875
3
[]
no_license
CREATE TABLE Criminals (Name varchar(255), Crime varchar(255)); CREATE USER readonly WITH PASSWORD 'readonlylmao'; COPY Criminals (Name, Crime) FROM stdin; clam He was looking at me funny. kmh I think he was probably hacking something maybe. boshua He says 'pawn' instead of 'pwn'. derekthesnake He's a snake, nothing el...
true
eeaaa8a081d85016ecc5efee0bf8b6b980d2a2ad
SQL
borowieckimichal/Twitter
/Twitter.sql
UTF-8
5,753
3.0625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.0.10deb1 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Nov 14, 2016 at 12:01 AM -- Server version: 5.5.53-0ubuntu0.14.04.1 -- PHP Version: 5.5.9-1ubuntu4.20 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_C...
true
fe86eee904905e946423cd7351d58d6ac3f90952
SQL
justinlettau/sql-source-control-example
/_sql-database/tables/Sales.SalesOrderDetail.sql
UTF-8
3,076
3.8125
4
[]
no_license
IF NOT EXISTS (SELECT 1 FROM sys.objects WHERE object_id = OBJECT_ID('[Sales].[SalesOrderDetail]') AND type = 'U') CREATE TABLE [Sales].[SalesOrderDetail] ( [SalesOrderID] int NOT NULL, [SalesOrderDetailID] int NOT NULL IDENTITY(1, 1), [CarrierTrackingNumber] nvarchar(25) COLLATE SQL_Latin1_General_CP1_CI_A...
true
32a9978b7fcd5a49759856e2b7a2acba06968c47
SQL
PabloArtero/RepoPHC
/Scripts/ConsultasSolicitadasPorCordero/4-CANTIDAD DE POSICIONES POR DEPARTAMENTO (CANTIDAD DE PERSONAS POR DPTO.).sql
UTF-8
524
3.453125
3
[]
no_license
-- 4-CANTIDAD DE POSICIONES POR DEPARTAMENTO (CANTIDAD DE PERSONAS POR DPTO.) SELECT Departamento.nombre AS 'Departamento', COUNT(Empleado.idEmpleado) AS 'Cantidad de empleados' FROM HistorialEmpleado JOIN Empleado ON HistorialEmpleado.idEmpleado = Empleado.idEmpleado JOIN Puesto ON HistorialEmpleado.idPuesto = Pues...
true
d256619d01bccb7ff1c6646a89bbb4229f7a1c24
SQL
davidfuny/php-notification
/notifikasi.sql
UTF-8
3,567
2.859375
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : iku Source Server Version : 50505 Source Host : localhost:3306 Source Database : notifikasi Target Server Type : MYSQL Target Server Version : 50505 File Encoding : 65001 Date: 2018-10-03 13:15:00 */ SET FOREIGN_KEY_CHECKS=0; -- ----...
true
42be3d8aaf228a735b13ccacb4b3b6fd0a134934
SQL
AndreyGarro/Sk84TEC
/Sucursal/procedures_and_functions.sql
UTF-8
3,351
4.25
4
[]
no_license
USE sucursal; -- Funciones /** Busca entre todos los empleados el mejor empleado del mes comprando el total de las vendas realizadas */ DELIMITER // CREATE FUNCTION getMejorEmpleado(inicio DATE, final DATE) RETURNS INT DETERMINISTIC BEGIN DECLARE id INT; SELECT E.IdEmpleado INTO id FROM Empleado E LEFT JOIN F...
true
afb4fd031df820931fea3529e4ea7ed550aedfc1
SQL
MODOFWAR/Aplikasi-Lowongan-Pekerjaan
/lowonganpekerjaan.sql
UTF-8
4,171
3.09375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Dec 02, 2019 at 04:33 PM -- Server version: 10.4.8-MariaDB -- PHP Version: 7.3.11 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
455eb19da1a6e2fa7f880dec201aaa73b3cb8002
SQL
juanossa026/equipo6_FAZ_PPI2020
/backend/db/scr_control_of_sugar.v.2.sql
UTF-8
1,393
3.25
3
[]
no_license
DROP TABLE IF EXISTS tbl_recordatorio; DROP TABLE IF EXISTS tbl_control; DROP TABLE IF EXISTS tbl_identificacion; CREATE TABLE IF NOT EXISTS tbl_identificacion ( documento varchar(10) NOT NULL, nombre_usuario varchar(50) NOT NULL, correo_ele varchar(60) NOT NULL, contraseña varchar(20) NOT NULL, PRIMARY KEY...
true
30e71ff0343b807fefd4bc139a01dec28e497d9f
SQL
EBISPOT/goci
/goci-core/goci-db-binding/src/main/resources/db/migration/V1.9.9_043__Standardise_intergenic.sql
UTF-8
1,026
2.65625
3
[ "Apache-2.0", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
/* ################################################################################ Migration script to remove duplicate entries for 'intergenic' in the gene table and use only one single one Designed for execution with Flyway database migrations tool; this should be automatically run to completely generate the schem...
true
f29f299b2967fe8e7b995bd39ef4103303f84867
SQL
rtrice1/coplink
/db/create_podata.sql
UTF-8
5,025
3.390625
3
[]
no_license
drop table if exists podata_critical_spares; CREATE TABLE `podata_critical_spares` ( `cop_id` varchar(30) NOT NULL, `podata_id` varchar(37) DEFAULT NULL, `num` varchar(25) DEFAULT NULL, `polineitem` int(11) DEFAULT NULL, `partnum` varchar(70) DEFAULT NULL, `serialnum` varchar(41) DEFAULT NULL, `ssaisrid` ...
true
4aaa836b6577333842df04eba7c211b2aa31b504
SQL
JacobElliott08/Fall2015
/Databases/A3/a3data.sql
UTF-8
1,328
3.40625
3
[]
no_license
DROP TABLE IF EXISTS vendor cascade; CREATE TABLE VENDOR ( Vno varchar(2) primary key, Vname varchar(30), City varchar(30), Vbalance float); DROP TABLE IF EXISTS customer cascade; CREATE TABLE CUSTOMER ( Account varchar(2) primary key, Cname varchar(30), Province varchar(4), Cbalance float, Crlimit int...
true
4fee49791361670d5ca87e3c46494c048551057c
SQL
GengRui01/spring-aop
/src/main/resources/spring-aop.sql
UTF-8
424
3.03125
3
[]
no_license
# 删除spring_aop数据库 drop database if exists spring_aop; # 创建spring_aop数据库 create database spring_aop; # 使用spring_aop数据库 use spring_aop; # 创建account表 create table account ( id int(11) auto_increment primary key, accountNum varchar(20) default NULL, money int(8) default 0 ); # 新增数据 insert into account (acco...
true
9c07826fc169aa805e49bb1160c65947e93df527
SQL
MrBasit/TMS
/Technomide_Corporation/scripts/TMSDummyDataScript.sql
UTF-8
14,017
3.015625
3
[]
no_license
Use [TheProject] SET IDENTITY_INSERT dbo.TypeTable ON; INSERT INTO TypeTable(T_ID,TypeName) VALUES (1,'Physical'); INSERT INTO TypeTable(T_ID,TypeName) VALUES (2,'Remotely'); SET IDENTITY_INSERT dbo.TypeTable OFF; ----------------------------------------- SET IDENTITY_INSERT dbo.GenderTable ON; INSERT INTO G...
true
8b491d4a5c03073f8cded70e01f485ae7a22a833
SQL
VijayMVC/JsMain
/web/sql_builds/trac_434.sql
UTF-8
709
3
3
[]
no_license
use bot_jeevansathi; CREATE TABLE `CHATACCEPTLIST` ( `SENDER` varchar(200) NOT NULL, `RECEIVER` varchar(200) NOT NULL ); CREATE TABLE `CHATTINGWITHWHOM` ( `SENDER` varchar(200) NOT NULL, `RECEIVER` varchar(200) NOT NULL, `STARTCHAT` bigint(20) DEFAULT '0', KEY `SENDER` (`SENDER`,`RECEIVER`) ); CREATE TABLE `TIME...
true
2240f01e8d75d836e308eaaa9ba7427f4f18e545
SQL
dzj0510/dzj1
/数据库.sql
UTF-8
677
3.390625
3
[]
no_license
--创建数据库 create database python_test charset=utf8; --使用数据库 use python_test; --显示使用的当前数据是哪个 select database() --students表gender enum('男','女','中性','保密') default '保密', create table students( id int unsigned primary key auto_increment not null, name varchar(20) default '', age tinyint unsigned default 0, ...
true
956efdc18e741a1a5f6a1d555f634196f349fe23
SQL
finnishtransportagency/viite
/viite-backend/database/src/main/resources/db/migration/V0_11__add_accepted_date_to_projects.sql
UTF-8
167
2.84375
3
[]
no_license
ALTER TABLE PROJECT ADD COLUMN ACCEPTED_DATE TIMESTAMP; UPDATE PROJECT SET ACCEPTED_DATE=MODIFIED_DATE WHERE STATE=12 AND ACCEPTED_DATE IS NULL; --STATE 12 is accepted
true
7be29b6aea5155cb063fe2062b9e1c00c5a11b89
SQL
DemetDemir1/Order-Service-JS
/_pizzaservice.sql
UTF-8
2,194
3.25
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.1.12 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Erstellungszeit: 23. Apr 2015 um 19:29 -- Server Version: 5.6.16 -- PHP-Version: 5.5.11 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*...
true
f450b860718b3fa84806e84d5159c4f6b05cd493
SQL
dsignlife/Lex
/W31/Northwind Övningar/ex26.sql
UTF-8
448
3.828125
4
[]
no_license
--26. Give the customer name and the product name such that the quantity of this product bought --by the customer in a single order is more than 5 times the average quantity --of this product bought in a single order among all clients. select c.ContactName, p.ProductName, od.Quantity from Customers c join Orders o...
true
208f5a6774917fcbe7bb4e08754216f8c9a01d88
SQL
A-Kinski/hh-school19-sql
/task_2.sql
UTF-8
5,655
3.84375
4
[]
no_license
/* fill specialization table*/ INSERT INTO specialization(name) SELECT 'spec name'||spec_num FROM generate_series(1,100) as g(spec_num); /* fill users table */ INSERT INTO users (last_name, first_name, sex, citezenship) SELECT (SELECT string_agg( substr( 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKL...
true
ca08021a9e805e1c90488f48881203a9fc24cdcb
SQL
Syakhisk/eReview
/table-reset.sql
UTF-8
957
2.859375
3
[ "MIT" ]
permissive
DELETE FROM users; DELETE FROM member; DELETE FROM editor; DELETE FROM reviewer; DELETE FROM makelaar; ALTER TABLE users DROP id_user; ALTER TABLE users AUTO_INCREMENT = 1; ALTER TABLE users ADD id_user int(11) UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY FIRST; ALTER TABLE member DROP id_member; ALTER TABLE member A...
true
22c2c01626c7101f6a919817313acadf150163fe
SQL
AndersLarsen/pro1000
/db/View/U01SP08.sql
UTF-8
720
3.171875
3
[ "PHP-3.01" ]
permissive
/* Lager et view for undersøkelse 1 spørsmål 8 som gir tilbake hvor mange personer som har svart hvilket svaralternativ */ DROP VIEW IF EXISTS U01SP08; CREATE VIEW U01SP08 AS SELECT count(*) AS SP08 FROM PreSporreundersokelse WHERE SP08 LIKE "%1%" UNION SELECT count(*) FROM PreSporreundersokelse WHERE SP08 LIKE...
true
3f77c3050e4f59b311ec9320a036785136ab3d1e
SQL
pendelhaven3/magic
/alterscripts/alterscript-1.15.0.sql
UTF-8
746
3.390625
3
[]
no_license
create table PRODUCT_PRICE_HISTORY ( ID integer auto_increment, PRICING_SCHEME_ID integer default 1 not null, PRODUCT_ID integer not null, UPDATE_DT datetime not null, UPDATE_BY integer not null, UNIT_PRICE_CSE numeric(10, 2) null, UNIT_PRICE_TIE numeric(10, 2) null, UNIT_PRICE_CTN numeric(10, 2...
true
70ddea959aa636679fc8727098c06322c672e044
SQL
LeonVA/it-ausleihe
/install/it-ausleihe.sql
UTF-8
5,092
3.359375
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Erstellungszeit: 14. Feb 2019 um 10:12 -- Server-Version: 10.1.36-MariaDB -- PHP-Version: 7.2.11 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_C...
true
a62955653fb0c13bf6693ab5212a7facb32a7310
SQL
Praveenchowdaryy/SQLTraining-Mind
/joins.sql
UTF-8
1,114
3.65625
4
[]
no_license
use praveen; create table orders (order_id int primary key not null ,order_name varchar(30),order_date date); insert into orders values(101,'phone','2021-01-13'); insert into orders values(102,'watch','2020-08-10'); insert into orders values(103,'band','2020-11-15'); insert into orders values(104,'trimmer','2019-08-13'...
true
a48cb7d1e532091f198dabb7606753807811bbf9
SQL
decod123/T-SQL
/70-461/70-461-21.sql
UTF-8
422
3.828125
4
[]
no_license
USE AdventureWorks2012; CREATE VIEW HumanResources.vEmployeeList AS SELECT c.FirstName, c.LastName, c.EmailPromotion, e.HireDate FROM Person.Person AS c INNER JOIN HumanResources.Employee AS e ON c.BusinessEntityID = e.BusinessEntityID; SELECT LastName + ', ' + Firstname AS 'FullName', Email...
true
6839c6da3d540ba5ebae1bc67f1c1ed2837574fe
SQL
Zorigt/mysql
/CS155A/155A_05_demo/155A_05-05_demo.sql
UTF-8
1,243
3.484375
3
[]
no_license
use a_testbed; /* Demo 01 */ Create table z_dml_students ( st_id int unsigned primary key , st_name varchar(15) null ) engine=InnoDB; Create table z_dml_scores ( st_id int unsigned not null , asgn_nmbr int unsigned not null , asgn_score int unsigned null , constraint z_dml_scores_pk primary key...
true
cee50db7fa5ade5d19ab523b6075c437b5eea3e8
SQL
silence-do-good/stress-test-Postgres-and-MySQL
/dump/high/day20/select1935.sql
UTF-8
262
2.984375
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='WeMo' AND sen.id=ci.SENSOR_ID AND ci.INFRASTRUCTURE_ID=ANY(array['5204','5068','5100_4','4029','3231','6024','1100','5028','2042','1431'])
true
368f2030e44f6886be78506bb664fa4c9f608f04
SQL
bluebox07/project1
/DB/shopstore.sql
UTF-8
6,646
3.34375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Mar 05, 2019 at 07:35 AM -- Server version: 10.1.37-MariaDB -- PHP Version: 5.6.40 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
true
4b2300d564514a9be63fec2e680016c53459a2ce
SQL
seanware/try_quantopian
/sql/scratch.sql
UTF-8
603
3.703125
4
[ "MIT" ]
permissive
/* scratch.sql * * Test how to calculate the spread and the returns for the S&P 500 data */ CREATE OR REPLACE VIEW test_spread AS ( SELECT h.dt, h.aapl = l.aapl AS appl, h.goog = l.goog AS goog FROM high AS h JOIN low AS l ON h.dt = l.dt ); CREATE OR REPLACE VIEW test_returns AS ( WITH lag_close AS ( ...
true
2d75f17f79becade1eb03615e57dee39a471136a
SQL
vincentbasset/cide1
/sql/cide_table_post.sql
UTF-8
2,322
3.203125
3
[]
no_license
-- -------------------------------------------------------- -- -- Structure de la table `post` -- CREATE TABLE `post` ( `id` int(11) NOT NULL, `idUtil` int(11) NOT NULL, `idGroupe` int(11) DEFAULT NULL, `idUtilmur` int(11) NOT NULL, `idPost` int(11) NOT NULL, `visibilite` tinyint(1) NOT NULL, `importan...
true
18372535ecff771f2f0f03944c49543373785cc2
SQL
janmurin/PrijimackyTester
/createDB.sql
UTF-8
1,236
3.375
3
[]
no_license
DROP SCHEMA PUBLIC CASCADE CREATE TABLE Biologia( id integer GENERATED BY DEFAULT AS IDENTITY (START WITH 1), otazka varchar(1000), odpoved_1 varchar(255), odpoved_2 varchar(255), odpoved_3 varchar(255), odpoved_4 varchar(255), odpoved_5 varchar(255), odpoved_6 varchar(255), odpoved_7 varchar(255), odpoved...
true
56cca8826baa0a262a97d1cd012acb0412bcae24
SQL
smoulton772/SQLQueries
/Comparison of Jamila results.sql
UTF-8
1,292
3.109375
3
[]
no_license
IF OBJECT_ID('tempdb..#TempTable') IS NOT NULL DROP TABLE #TempTable CREATE TABLE #TempTable ( [Id] NVARCHAR(100), [System] NVARCHAR(100), [FirstName] NVARCHAR(100), [LastName] NVARCHAR(100), [UserEmail] NVARCHAR(100), [Station] NVARCHAR(100), [LastLogin] NVARCHAR(100), [DisabledOn]...
true
e1f8303ddc0d493395221822bea2da5192ba6a9f
SQL
vlouro/Projecto-base-de-dados
/base de dados/colecao.sql
UTF-8
3,104
3
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 3.2.4 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Mar 18, 2013 at 09:15 PM -- Server version: 5.1.44 -- PHP Version: 5.3.1 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_S...
true
e52eb5d66667cefd0abd3017072b1daa1b5d39be
SQL
Fukada9905/pythagora
/sql/change_scripts/work/pyt_w_301000_details.sql
UTF-8
2,499
3.421875
3
[]
no_license
DROP TABLE IF EXISTS pyt_w_301000_details; delimiter // /** テーブル作成 **/ CREATE TABLE pyt_w_301000_details( work_detail_id int UNSIGNED NOT NULL COMMENT 'ワーク明細ID' , work_id int UNSIGNED NOT NULL COMMENT 'ワークID' , user_id varchar(20) NOT NULL COMMENT 'ユーザーID' , SHCD varchar(10) D...
true
5f2e61952d885adbc09331db3afa3072cbec2a6c
SQL
MrTToan/hannah
/label_sql/user_label_update_device_time.sql
UTF-8
1,396
3.40625
3
[]
no_license
#standardSQL merge `tiki-dwh.consumer_product.cs_user_info_access` a using ( select user_pseudo_id deviceID , user_id , min(DATETIME(TIMESTAMP_MICROS(event_timestamp),'Asia/Bangkok')) min_device_date , max(DATETIME(TIMESTAMP_MICROS(event_timestamp),'Asia/Bangkok')) max_device_d...
true
c6a57a7f35de718d316baf531ee355f8282ff316
SQL
cezcezz/bibd
/LAB3.sql
UTF-8
3,295
3.765625
4
[]
no_license
CREATE DATABASE L3; USE L3; CREATE TABLE `manuf` ( `IDM` int PRIMARY KEY, `Name` varchar(20), `city` varchar(20)); INSERT INTO `manuf` VALUES (1,'Intel','Santa Clara'), (2,'AMD','Santa Clara'), (3,'WD','San Jose'), (4,'seagete','Cupertino'), (5,'Asus','Taipei'), (6,'Dell','Round Rock'); ...
true
3902805635cf39bef5f9f144e51e2e9b114d732f
SQL
sfp8216/WebAppFinal
/chatSql.sql
UTF-8
718
2.8125
3
[]
no_license
-- -- Table structure for table `546ArchChat` -- CREATE TABLE IF NOT EXISTS `546ArchChat` ( `messageId` int(100) NOT NULL AUTO_INCREMENT, `name` varchar(15) NOT NULL, `message` varchar(200) NOT NULL, `timeStamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (`messageId...
true
bccf9b91a60274fcfbcb70564e629d9ce4773e35
SQL
Axkaban/ww_sql_lesson
/LOTR_tables.sql
UTF-8
2,583
3.390625
3
[]
no_license
/*Name: MySQL Sample Database classicmodels Link: http://www.mysqltutorial.org/mysql-sample-database.aspx Version 3.1 + changed data type from DOUBLE to DECIMAL for amount columns Version 3.0 + changed DATETIME to DATE for some colunmns Version 2.0 + changed table type from MyISAM to InnoDB + added foreign keys for all...
true
5687c75cfe163f4678413851c249b5600644a923
SQL
HISMalawi/BHT-EMR-API
/db/initial_setup/pharmacy.sql
UTF-8
4,525
3.25
3
[]
no_license
-- MySQL dump 10.13 Distrib 5.1.41, for debian-linux-gnu (i486) -- -- Host: localhost Database: bart -- ------------------------------------------------------ -- Server version 5.1.41-3ubuntu12.8 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_S...
true
51344c796ab3c823646bf354a44a437366cb9eef
SQL
Vanessa-silv/trabalho-bd
/backup.sql
UTF-8
11,699
2.828125
3
[]
no_license
-- -- PostgreSQL database dump -- -- Dumped from database version 13.0 -- Dumped by pg_dump version 13.0 -- Started on 2020-11-11 23:24:00 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
f524f88c09285e951c520e45605b659c39eccc52
SQL
Leleking/PMS
/config/pms.sql
UTF-8
19,883
2.71875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Feb 24, 2018 at 10:34 PM -- Server version: 10.1.29-MariaDB -- PHP Version: 7.0.26 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
true
abc57e6bd6d529bd6d82dc0f8745f3bb1f33f3e7
SQL
jSherz/lsd-members
/backend/src/main/resources/db/migration/V1_2__Create_api_keys_table.sql
UTF-8
252
2.609375
3
[ "MIT" ]
permissive
CREATE TABLE api_keys ( uuid UUID PRIMARY KEY, committee_member_uuid UUID REFERENCES committee_members(uuid) NOT NULL, created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, expires_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP );
true
eb2e138c8f9670d29dc8da4c9ab8c720aff5b0c8
SQL
gojiin/Oracle_toad
/DB_LINK.sql
UHC
400
2.890625
3
[]
no_license
--DBũ CREATE DATABASE LINK JI5_LINK --ũ CONNECT TO KOPO2019 -- ϴ ̺ ִ ID IDENTIFIED BY kopo2019 --PW USING 'DEV_KOPO'; -- ϴ ̺ ϴ CREATE TABLE KOPO_PRODUCT_VOLUME_ji10 AS SELECT * FROM KOPO_PRODUCT_VOLUME@JI5_LINK; select * from KOPO_PRODUCT_VOLUME_ji10
true
0416e8841f36e343439b025d46c3bf8585c69d50
SQL
chetmichals/MiscSchoolWork
/COP4703 Applied Database Systems/Assignments/Assignment3/hw3.sql
UTF-8
2,743
3.640625
4
[]
no_license
-- Problem 1 create or replace trigger ARENA_noDelete_trig before delete on ARENA begin DBMS_OUTPUT.put_line('ARENA_noDelete_trig has fired'); raise_application_error(-20008, 'Delete operations are not allowed on this table'); end; / -- Problem 2 create or replace trigger PLAYER_noDelete_trig before delet...
true
8c7906074a3a05aa2da0cbc06f67d0a757f5a7e9
SQL
cesar-gonzalez-sf/DesktopFX
/Deploy/config/Database/McastNews/Oracle/MCASTNEWS$ITEMS_GET.sql
UTF-8
2,054
3.546875
4
[]
no_license
CREATE OR REPLACE PROCEDURE MCASTNEWS$ITEMS_GET -------------------------------------------------------------------------------- -- Copyright (c) OBCOM INGENIERIA S.A. (Chile). All rights reserved. -- -- All rights to this product are owned by OBCOM INGENIERIA S.A. and may only be -- used under the terms of its asso...
true
7dd8105d7783b8bd251a216eedcc5f183cce534c
SQL
carthage-college/django-djpagan
/djpagan/sql/wisact284.rc.sql
UTF-8
14,704
2.90625
3
[ "MIT" ]
permissive
SELECT DISTINCT '00383900' AS OPEID, '20' || LEFT(CALREC.acyr, 2) || '-20' || RIGHT(CALREC.acyr, 2) AS AcadYear, ACADREC.sess, REPLACE(StuID.ss_no, '-', '') AS Social_Security_Number, TRIM(StuID.firstname) AS Student_First_Name, TRIM(StuID.lastname) AS Student_Last_Name, StuID.id AS Student_...
true
a819b3fa03b28ae8deab27bf7645ef71434cfccb
SQL
houfei11/test
/sql语句006.sql
UTF-8
214
2.765625
3
[]
no_license
SELECT MAX(stuAge) FROM personal SELECT MIN(stuAge) FROM personal SELECT AVG(stuAge), SUM(stuAge) FROM personal SELECT COUNT(stuAge) FROM personal SELECT * FROM personal SELECT COUNT(*) FROM personal
true
3f1e20d219f5e7d75627ce1056b0ee780c987473
SQL
JcGaara/SGA-PLSQL-OPE
/SGA-OPERACION/Tables/ESTADO_MOTIVO_SGA_ADC.sql
UTF-8
1,579
3.359375
3
[]
no_license
create table operacion.ESTADO_MOTIVO_SGA_ADC ( id_tipo_orden NUMBER(10) not null, idestado_sga_origen NUMBER(8) not null, idmotivo_sga_origen NUMBER(8) not null, idestado_adc_destino NUMBER(8) not null, idmotivo_sga_destino NUMBER(8) not null, estado CHAR(1) default '1', feccrea ...
true
f11c501b7982da9925209ea35a9237de9a5c3654
SQL
jdonaires/HelpDesk
/Documentacion/Base de datos/PROCEDURE/spHelpDesk_SET_Area.sql
UTF-8
1,290
3.046875
3
[]
no_license
CREATE PROCEDURE `spHelpDesk_SET_Area`( P_Opcion CHAR(1) , P_IdArea INT , P_Descripcion VARCHAR(100) ) BEGIN /************************************************************** '* CREADO POR: GRUPO HELPDESK '* Cristian Hernandez Villo '* FECHA CREA: 23/09/2018 *******************************************************...
true
020b287c6cb1dedc6d8598863ec75be5b083640d
SQL
khramtsov-sergey/otus-mssql-201907-khramtsov
/HW07/4.sql
UTF-8
1,002
4.3125
4
[]
no_license
/* 4. По каждому сотруднику выведите последнего клиента, которому сотрудник что-то продал В результатах должны быть ид и фамилия сотрудника, ид и название клиента, дата продажи, сумму сделки */ SELECT [PersonID] ,[FullName] ,[OrderID] ,[OrderDate] ,[CustomerID] ,[CustomerName] ,(SELECT SUM(UnitPri...
true
127ded4136328618f0d912669da63459072f58bb
SQL
kingof7/Oracle-SQL
/01_Select.sql
UHC
2,862
4.5625
5
[]
no_license
select * from employees; select * from jobs; -- ̺ describe employees; -- Ű describe jobs; -- ڷ , ,Date -- 01.˻() SELECT -- ) select [ʵ/÷ Ǵ ǥ] -- from [̺ Ǵ ] -- where -- group by [÷]having -- order by [÷] -- 1. ܼ˻ : select [column or expression] from [tablename or viewname...
true
6274545b225513e312da07f02b6d64ab65c7523d
SQL
yonice7/hackerrank-sql-solutions
/easy-exercises.sql
UTF-8
3,631
4.3125
4
[]
no_license
-- Revising the Select Query I SELECT * FROM CITY WHERE COUNTRYCODE = 'USA' AND POPULATION > 100000; -- Revising the Select Query II SELECT NAME FROM CITY WHERE COUNTRYCODE = 'USA' AND POPULATION > 120000; --Select ALL SELECT * FROM CITY; -- Select By ID SELECT * FROM CITY WHERE id=1661; -- Japanese Citie's Att...
true
7941f65dc382266e5e38ce53099f7908c9b9ef82
SQL
wldzc/SE_Sp2016_Group5
/db/sql/crud_dml/full_project_example_dml.sql
UTF-8
7,255
4.28125
4
[]
no_license
/* LOGIN PAGE */ # # Query Title # Authenticate User # # Values Passed: # $1 = The username entered # # Values Returned: # hash = The password hash for this user # salt = The salt that was used to create this password hash # # Purpose # This query will pull the password hash and salt from the 'user_authentica...
true
e7d651c058bb7d75fee9ffb9e8ee5886898f25c9
SQL
BrunaMS/MySQL
/courses/1_introduction_to_mysql/juices_company_database.sql
UTF-8
17,898
3.515625
4
[]
no_license
-- This database contains the user data of a imaginary juice company -- According to the company owner, the main data to them is: -- CPF, Complete name, Address, date of birth, age, genre -- Credit limit to buy products, minimum volume of juices, if had already made a purchase USE JUICES; DROP TABLE TBPRODUCTS; DROP T...
true
b53332c8703b335cd9e8df93a4328e0a3c771732
SQL
ersengultepe/mysql_hierarchy_recursive_procedure
/procedure.sql
UTF-8
1,545
3.953125
4
[ "MIT" ]
permissive
DROP PROCEDURE IF EXISTS store_procedure_name; CREATE PROCEDURE `store_procedure_name`(IN cat_id INT) BEGIN declare loopId Int; SET max_sp_recursion_depth = 255; -- If the value of the category that comes as a parameter is not in the table as parent_id, no further action is required IF(select count(id) ...
true
be515016df46a91fa1a56d37f2c27e6a9f9c30f8
SQL
hettipower/project-membership
/project-membership-db.sql
UTF-8
9,715
2.796875
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jun 28, 2019 at 08:28 AM -- Server version: 10.1.40-MariaDB -- PHP Version: 7.1.29 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
true
0083cc198c246b41f507deba6e0fb8dc162aa137
SQL
saeid-h/homeworks-repo
/University of Oklahoma/Database Management Systems/Group Project #2/Hw2-Alex.sql
WINDOWS-1250
5,784
4.5
4
[]
no_license
-- By Alexander Rodriguez -- create tables create table performer( pid integer, pname varchar(10), -- 15 years_of_experience integer, age integer, primary key(pid) ) create table director( did integer, dname varchar(10), earnings integer, primary key(did) ) create table mov...
true
064148a6b2267f79354ca1d2044ff4f273d9f24f
SQL
GabrielDougherty/org-share
/create_tables.sql
UTF-8
2,189
2.890625
3
[]
no_license
-- -- PostgreSQL database dump -- -- Dumped from database version 10.7 (Ubuntu 10.7-0ubuntu0.18.04.1) -- Dumped by pg_dump version 10.7 (Ubuntu 10.7-0ubuntu0.18.04.1) SET statement_timeout = 0; SET lock_timeout = 0; SET idle_in_transaction_session_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_str...
true