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
9089240aa2d6903d807c6fc0516074dc48021804
SQL
orzKris/prophecy
/docs/change_log/prophecy.dev.sql
UTF-8
6,197
3.625
4
[]
no_license
CREATE DATABASE IF NOT EXISTS `prophecy`; USE `prophecy`; -- -- Table structure for table `user` -- DROP TABLE IF EXISTS `user`; CREATE TABLE `user` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '自增主键', `name` varchar(45) NOT NULL COMMENT '用户名', `age` int(11) NOT NULL COMMENT '年龄', `password` varchar(45) NOT...
true
11412740b61735633779963379dea20649e06a5f
SQL
albarran99/ies-federica-montseny
/DAM1/Base De Datos/examen de base de datos.sql
UTF-8
4,107
4
4
[]
no_license
CREATE DATABASE nba_management; USE nba_management; #1. (1,5 puntos) Crea las sentencias SQL que nos permiten crear las tablas anteriores y #sus restricciones, teniendo en cuenta las siguientes restricciones: CREATE TABLE IF NOT EXISTS temporadas ( nombre_temporada VARCHAR(20) PRIMARY KEY ); CREATE TABLE IF NOT ...
true
4ac26b2f66d4085f0ab901a62366e7b836f713b9
SQL
TYPO3-svn-archive/li_gest_theses
/li_gest_theses/ext_tables.sql
UTF-8
3,106
3.046875
3
[]
no_license
# # Table structure for table 'tx_ligestmembrelabo_MembreDuLabo' # CREATE TABLE tx_ligestmembrelabo_MembreDuLabo ( Afficher_theses_hdr int(11) DEFAULT '0' NOT NULL, Afficher_theses_hdr_dirigees int(11) DEFAULT '0' NOT NULL, ); # # Table structure for table 'tx_ligesttheses_TheseHDR' # CREATE TABLE tx_ligesttheses_...
true
9053e940dd47d52af60c9abac5ac27e7f2b43f76
SQL
brodar12/orangeExchange
/Dump20210429.sql
UTF-8
5,497
3.34375
3
[]
no_license
-- MySQL dump 10.13 Distrib 5.7.17, for Win64 (x86_64) -- -- Host: localhost Database: exchange -- ------------------------------------------------------ -- Server version 5.7.19-log /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */...
true
72d4e3fe3ce3c559bd2ed9b76e5c8d0f74c5c00d
SQL
jramiloQV/Fonade
/FonadeDB/dbo/Stored Procedures/MD_Create_JefeUnidad_Admin.sql
UTF-8
829
2.65625
3
[]
no_license
/* Nombre: MD_Create_JefeUnidad_Admin. Fecha: 17:56 25/06/2014 Descripción: Procedimiento almacenado para guardar el nuevo jefe de unidad; éste procedimiento se llama para crear un nuevo jefe de unidad desde la pantalla "SeleccionarJefeUnidad". */ CREATE PROCEDURE MD_Create_JefeUnidad_Admin ( @Nombres VARCHAR(1...
true
b8b4b64aee9473bedd1c88ad6e4d949f9288c758
SQL
longdavid2k17/sandwitch_fullstack
/DataBase/db_fixed10062021.sql
UTF-8
7,598
3.140625
3
[]
no_license
-- MySQL dump 10.13 Distrib 8.0.25, for Win64 (x86_64) -- -- Host: localhost Database: sandwitchdatabase -- ------------------------------------------------------ -- Server version 8.0.25 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SE...
true
4534409181c616bb5875dae2abc5e9d00c64f6fa
SQL
krish1919ls/nhl_database_system
/scripts/nhl_create_views.sql
UTF-8
1,313
3.765625
4
[]
no_license
USE nhl; CREATE OR REPLACE VIEW hits AS SELECT gp.*, gpp.player_id, pi.first_name, pi.last_name, pi.primary_position, pi.birth_date FROM game_plays AS gp LEFT JOIN game_plays_players AS gpp USING (play_id) LEFT JOIN player_info AS pi USING (player_id) WHERE gp.play_event = "Hit" AND gpp.player_...
true
333704bb9a02d8f6896abc298ae50a4f6935db55
SQL
melodyvincent/ezcarpark-personal-project
/db/get_listing_by_id.sql
UTF-8
283
2.9375
3
[]
no_license
SELECT * FROM listings JOIN features ON features.listing_id = listings.id JOIN pictures ON pictures.listing_id = listings.id JOIN availabilities ON availabilities.listing_id = listings.id JOIN payments ON payments.listing_id = listings.id where listings.id = ${id};
true
62fbb00148017d5732bba02299bc77ac9acf2bf1
SQL
KEVINGILBERTTODING/Peta-Pemanah-handal
/assets/utskediri.sql
UTF-8
3,827
3.09375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.1.0 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Nov 12, 2021 at 12:30 AM -- Server version: 10.4.17-MariaDB -- PHP Version: 8.0.0 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIEN...
true
6790e14277c5f8f4e9a6c7fe1333aafae833a2a6
SQL
DevTeamQualtiva/ApocalypseCoreWeb
/install/sql/single/store_items.sql
UTF-8
586
2.5625
3
[]
no_license
CREATE TABLE `store_items` ( `sid` int(32) NOT NULL auto_increment, `name` varchar(64) default NULL, `display` varchar(64) default NULL, `item` varchar(128) default NULL, `ctype` int(32) default NULL, `cost` varchar(32) default NULL, `amount` int(32) default NULL, `parent_category` int(32) default NULL,...
true
122e4787407929d15acf416b27ec8938e69c2148
SQL
jebichii/holbertonschool-higher_level_programming-1
/0x0E-SQL_more_queries/2-create_read_user.sql
UTF-8
291
2.671875
3
[]
no_license
-- create the database hbtn_0d_2 CREATE DATABASE IF NOT EXISTS `hbtn_0d_2`; -- create read-only user user_0d_2 CREATE USER IF NOT EXISTS 'user_0d_2'@'localhost' IDENTIFIED BY 'user_0d_2_pwd'; -- grant user_0d_2 read-only permissions GRANT SELECT ON `hbtn_0d_2`.* TO 'user_0d_2'@'localhost';
true
26e699a6cd77ec535c861bb087bfd0ca8ef14641
SQL
VikMelyh/dbisworkshops
/km-51/Meliukh_Viktoriia/workshop1/sql/Populate.sql
UTF-8
3,984
3.25
3
[]
no_license
/* INSERTS INTO CLASSROOM*/ INSERT INTO classroom values(sys_guid(),95,15,20,0); INSERT INTO classroom values(sys_guid(),96,15,25,0); INSERT INTO classroom values(sys_guid(),97,15,60,1); INSERT INTO classroom values(sys_guid(),93,15,20,1); INSERT INTO classroom value...
true
20dad1439952a1c1b1422d5cd88f576b6bb1def8
SQL
afs-shukla/TLDP
/conf/1.sql
UTF-8
2,888
3.4375
3
[]
no_license
# DC schema # --- !Ups CREATE TABLE T_APP ( ID integer NOT NULL AUTO_INCREMENT PRIMARY KEY, C_APPID VARCHAR(45) NULL, C_APPNAME VARCHAR(45) NULL, C_APPDESC VARCHAR(200) NULL, C_APPTYPE VARCHAR(45) NULL, C_CONTAINER VARCHAR(45) NULL, C_DEPTYPE VARCHAR(45) NULL, C_PROJMGR VARCHAR(45) NULL, C_PROCESSN...
true
e72663bb2bcc153c24a1a6ffa6401c25f94d3667
SQL
yangqiaosheng/spatialdm
/OracleSpatialWeb/sql/PostgreSQL/DDL/flickr_europe_spilt_tag.sql
UTF-8
1,982
3.734375
4
[]
no_license
-- Table: flickr_europe_spilt_tag -- DROP TABLE flickr_europe_spilt_tag; CREATE TABLE flickr_europe_spilt_tag ( photo_id numeric NOT NULL, tag character varying(30) NOT NULL, taken_date timestamp without time zone, region_320000_id integer, region_160000_id integer, region_80000_id integer, ...
true
53a2fa559ef55ff9e1260e926a82191b401f8347
SQL
bellmit/origin
/family_order/sql/.svn/pristine/53/53a2fa559ef55ff9e1260e926a82191b401f8347.svn-base
UTF-8
581
3.328125
3
[]
no_license
SELECT to_char(user_id) user_id, to_char(user_id_a) user_id_a, inst_id, discnt_code, spec_tag, relation_type_code, to_char(start_date, 'yyyy-mm-dd hh24:mi:ss') start_date, to_char(end_date, 'yyyy-mm-dd hh24:mi:ss') end_date FROM TF_F_USER_DISCNT T WHERE USER_ID = TO_N...
true
2c821a1811b6df53346d492b2a44f83aa3cf0b77
SQL
ShimiaoRen/Web_Carpooling
/carpooling.sql
UTF-8
5,620
3.171875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.0.4 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Nov 21, 2013 at 06:13 PM -- Server version: 5.0.96-community-nt -- PHP Version: 5.4.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SE...
true
d03eb3e2e1f1633912d59e385b0bcdd3cf472e7c
SQL
JarrenLong/PCP
/db.sql
UTF-8
10,384
2.84375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 3.3.10.4 -- http://www.phpmyadmin.net -- -- Host: cis230.cis3scc.com -- Generation Time: Mar 16, 2012 at 08:24 AM -- Server version: 5.1.39 -- PHP Version: 5.2.17 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; -- -- Database: `jlong_cis3scc_com` -- -- ----------------------------------------...
true
bbb8345ea8681e9923f1bece76ea1c87b5478523
SQL
ilkka-rautiainen/mealbookers
/php/app/sql_updates/update0030.sql
UTF-8
592
3.625
4
[]
no_license
CREATE TABLE IF NOT EXISTS `users_restaurants_order` ( `user_id` int(10) unsigned NOT NULL, `restaurant_id` int(10) unsigned NOT NULL, `order_points` int(10) unsigned NOT NULL, PRIMARY KEY (`user_id`,`restaurant_id`), KEY `restaurant_id` (`restaurant_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; ALTER TABLE `use...
true
00f93822c20adaa5752ccd9fc1e6c2fdd08d3995
SQL
leonz2code/TeoriaTODO
/MySQLCourseUdemy/mysqlcurso.sql
UTF-8
8,859
3.921875
4
[]
no_license
Inicio Curso SOURCE C:/Estudio19/MySQLCourseUdemy/test_db-master/employee.sql BEST PRACTICES SELECT actor_id, first_name, lastname FROM actor; rules sentences with CAPITAL fields with minus para ver las tablas de una db SHOW 'FULL TABLES FROM dbname' -----------------------------------------------------...
true
986b8d87e5a640ac46550d0d77ff3c70b68a4071
SQL
jamil2gomes/projeto-com-laravel5.8
/matricula.sql
UTF-8
6,738
3.296875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: 13-Mar-2019 às 17:21 -- Versão do servidor: 10.1.34-MariaDB -- PHP Version: 7.2.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
df71110154727cc800eaba7aee837cfaccdc7886
SQL
smetona159/DviraciuSistema
/Duomenu bazės failas/tinklai.sql
UTF-8
15,484
3.046875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: 2019 m. Spa 18 d. 14:54 -- Server version: 10.1.36-MariaDB -- PHP Version: 7.2.10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
9fc5928571e23efbb84fbdc7e38748d22840bf23
SQL
gagraham/mysql_examples
/LOGIN_DATA_GENERATOR.sql
UTF-8
894
3.125
3
[]
no_license
DROP PROCEDURE IF EXISTS `INS_USER_LOGIN_DATA_GENERATOR`; DELIMITER // CREATE PROCEDURE `INS_USER_LOGIN_DATA_GENERATOR`() BEGIN DECLARE p_ip_address VARCHAR(20); DECLARE p_user_id INT; DECLARE p_loop_counter INT DEFAULT 10; WHILE p_loop_counter > 0 DO INSERT INTO `sample_staff`.`user_login` (`u...
true
d42dc4aff72695f83fe23644327d0fc614c1fb2d
SQL
baichangda/MySpringBootFrame
/src/main/resources/db/pgsql/V20170712_6__t_sys_permission.sql
UTF-8
1,433
3.390625
3
[ "MIT" ]
permissive
CREATE TABLE "public"."t_sys_permission" ( "id" serial8 NOT NULL, "name" varchar(20) NOT NULL, "code" varchar(50) NOT NULL, "remark" varchar(256), "role_id" int8, "create_time" timestamp(6), "create_user_id" int8, "creat...
true
0a24f1963d27b6df53040300011b5e0007f2a796
SQL
Wendell2509/MySQL_Exercicios
/21SET_Join/atividade5/apenas_categoria_1.sql
UTF-8
128
2.734375
3
[]
no_license
select * from tb_produto inner join tb_categoria on tb_categoria.id_categoria = tb_produto.categoria_id where id_categoria = 1;
true
9f7cc5d6eadce617c5b184eceaeabbd1648034d4
SQL
sophieli16/DB-management
/Scripts/Q45.sql
UTF-8
543
3.671875
4
[]
no_license
--theta join CREATE TABLE Q45winners AS ( SELECT DISTINCT driver_name FROM `Drivers` JOIN `Tournaments` ON driver_name = winner ) WITH DATA; INSERT INTO Q45winners SELECT DISTINCT driver_name FROM `Drivers` JOIN `Tournaments` ON driver_name = winner SELECT * FROM Q45winners --natural join CREATE TABLE Q45 AS...
true
5ec548b5d27e78faf3e83b0213fa65437e55dc91
SQL
Tigraccoon/OracleSQL-study
/Spring_TeamProject.sql
UHC
1,979
3.453125
3
[]
no_license
CREATE OR REPLACE PACKAGE PACK_ENCRYPTION_DECRYPTION IS FUNCTION FUNC_ENCRYPT -- ȣȭ Լ (V_INPUT_STRING IN VARCHAR2, KEY_DATA IN VARCHAR2:='java1234$!') RETURN RAW; FUNCTION FUNC_DECRYPT -- ȣȭ Լ (V_INPUT_STRING IN VARCHAR2, KEY_DATA IN VARCHAR2:='java1234$!') RETURN VARCHAR2; END PACK_ENCRYPTION_DECRYPTION; / --3. Ű ...
true
cc9eaf8848916ea8dd92e8a499adc2a0070701b9
SQL
iqiangzi/PHPWorkFlow
/src/PHPWorkFlow.sql
UTF-8
15,516
3.5
4
[]
no_license
# This is a fix for InnoDB in MySQL >= 4.1.x # It "suspends judgement" for fkey relationships until are tables are set. SET FOREIGN_KEY_CHECKS = 0; -- --------------------------------------------------------------------- -- PHPWF_arc -- --------------------------------------------------------------------- DROP TABLE...
true
85cc0af0b45d4298628ba7df3a4f4b6acde554b7
SQL
daofuzhang/WantPy
/CODE/WantData/01-MariaDB/03-DW/DWWANT/04-SP_KA_30102_KA_INV.sql
UTF-8
2,908
3.171875
3
[]
no_license
DROP PROCEDURE IF EXISTS DWWANT.SP_KA_30102_KA_INV; CREATE PROCEDURE DWWANT.SP_KA_30102_KA_INV ( VAR_EDI_NO CHAR(12), VAR_DATA_DATE CHAR(8), OUT VAR_SP_RESULT CHAR(1) ) BEGIN INSERT INTO DWWANT.TRAS_KA_INV SELECT VAR_EDI_NO AS EDI_NO, VAR_DATA_DATE AS DATA_DATE , K.ID AS INV_SEQ , (CASE ...
true
27c2186f711acc6ffffcc56c5f8ffd3075493734
SQL
sprokushev/Delphi
/MASTER/_DATABASE/Procedures/RENEW_KLS_LOAD_TYPE_MOS.sql
UTF-8
754
3.15625
3
[]
no_license
-- -- RENEW_KLS_LOAD_TYPE_MOS (Procedure) -- CREATE OR REPLACE PROCEDURE MASTER.Renew_Kls_Load_Type_mos (DATE_BEG DATE:=TRUNC(SYSDATE,'MONTH') ,DATE_END DATE:=SYSDATE, param1 VARCHAR2:='', param2 VARCHAR2:='', param3 VARCHAR2:='') IS BEGIN UPDATE KLS_LOAD_TYPE_MOS SET (NAME) = (SELECT TRANSPORT_NAME FROM l...
true
f369a114070a581ae13ab00cece4c32a17abc7f1
SQL
ljcrafty/Pictionary
/helpers/resetRooms.sql
UTF-8
772
3.40625
3
[]
no_license
DROP TABLE IF EXISTS Chat; DROP TABLE IF EXISTS Rooms; CREATE TABLE Rooms ( username varchar(20) NOT NULL, roomCode varchar(5) NOT NULL, picDescr varchar(30), picture text, receivedUser varchar(20), picGuess varchar(30), score int DEFAULT 0, stage ENUM('start', 'drawing', 'drawn', 'gues...
true
6fe566ae7f92e6a3eaf0808942d8c952ebd5a84d
SQL
aquaruiz/PHP-Web-Development-Basics
/PHP-MySQL-Introduction - Exercise/soft_uni.sql
UTF-8
1,898
3.921875
4
[]
no_license
SELECT * FROM departments ORDER BY department_id ASC; SELECT `name` FROM `departments`ORDER BY department_id; SELECT `first_name`, `last_name`, `salary` FROM `employees` ORDER BY `employee_id` ASC; SELECT first_name, middle_name, last_name FROM `employees` ORDER BY employee_id; SELECT CONCAT(first_name, '.', last_n...
true
b878d8c0f11b53e5dfb7d3c5337a6755c7ba60b8
SQL
nico-corthorn/public-portfolio
/Queries/reg_factors.sql
UTF-8
391
2.9375
3
[]
no_license
--drop table reg_factors CREATE TABLE public.reg_factors ( symbol character varying(10) COLLATE pg_catalog."default" NOT NULL, date date NOT NULL, ret real, equity bigint, mcap bigint, pb real, mom real, PRIMARY KEY (symbol, date), FOREIGN KEY (symbol) REFERENCES public.symbols (sym...
true
78692d2d38bbc97a54bbd51f545e7bc85311f08a
SQL
roziqbahtiar/ecode
/ecode.sql
UTF-8
6,813
3.265625
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.1.14 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: 07 Jun 2016 pada 16.15 -- Versi Server: 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
23fee86a18aa478eda31b7b647d197a6359ef293
SQL
ganemone/smart-njala-prototype
/installation/installDB/smartStudentSetup.sql
UTF-8
24,479
3.09375
3
[ "LicenseRef-scancode-unknown-license-reference", "BSD-2-Clause" ]
permissive
-- -- Tables for information about students and their academic progress. -- USE `njala_proto`; -- Drop triggers, functions, and procedures referring to tables defined -- in this file. DROP TRIGGER IF EXISTS CloseApplicant_Insert; DROP TRIGGER IF EXISTS CloseApplicant_Update; DROP TRIGGER IF EXISTS SAPstatusAndDate...
true
bad8aa2568b58880248e18967fb1a97f34feed65
SQL
avirdee0720/clockingpage
/SQL/Patches/iss10/sf_current_paid_leave_entitlement.sql
UTF-8
3,963
4.25
4
[]
no_license
DROP FUNCTION IF EXISTS current_paid_leave_entitlement; /* Returns employee's total paid leave entitlement for the current leave year. Formula: 1. Average daily hours in the preceding 13 weeks * number of weeks remaining in paid leave year + total hours worked so far this paid leave year = estimated total hours for ...
true
a896f22bc1376aae8dcdbf4e752cb44e82483920
SQL
zz0733/op-gbsql
/history/sql_back/boss/V1.0.1.0059__C_monitor_notice.sql
UTF-8
7,564
3.3125
3
[]
no_license
-- auto gen by Jason 2016-01-18 03:54:51 CREATE TABLE IF NOT EXISTS "notice_send" ( "id" SERIAL4 NOT NULL, "receiver_group_type" varchar(16) COLLATE "default" NOT NULL, "receiver_group_id" int4, "text_id" int4 NOT NULL, "publish_method" varchar(16) COLLATE "default" NOT NULL, "comet_subscribe_type" varchar...
true
4a7cd08db69f4e0c9dc179e22810717e2fe82455
SQL
eduardosflores/SisLeg
/db/Cambios_Sisleg_v_1_7_0.sql
UTF-8
2,022
2.890625
3
[ "MIT" ]
permissive
ALTER TABLE `sancion` CHANGE COLUMN `numeroSancion` `numeroSancion` VARCHAR(9) NULL DEFAULT NULL ; ALTER TABLE `dictamen` ADD COLUMN `ultimoMomento` TINYINT(1) NULL AFTER `textoArticulado`, ADD COLUMN `usuarioModificacion` VARCHAR(70) NULL AFTER `usuarioCreacion`, ADD COLUMN `fechaModificacion` DATETIME NULL AFTER `...
true
6b390a80156b2dde3ed82319ee77c9ad0598ad25
SQL
nurulhjsa/Latihan2-Postgre
/No4.SQL
UTF-8
188
3.140625
3
[]
no_license
SELECT (E.salary * 12) AS gaji_setahun, COUNT(E.employee_id) AS jumlah_karyawan FROM employees E WHERE E.commission_pct IS NOT NULL GROUP BY gaji_setahun ORDER BY gaji_setahun DESC
true
5a24afd202c6420ed47718ae042e2eb0afcea5e5
SQL
tuankhac/backup_data_141
/WEB-INF/templates/khoans/script.sql
UTF-8
3,012
3.375
3
[]
no_license
function new_khoans( pid varchar2, ptenkhoan varchar2, pma_loai varchar2, phieu_luc_tu varchar2, phieu_luc_den varchar2, pUserId varchar2, pUserIp varchar2) return varchar2 is s varchar2(1000); begin logger.access('tax.khoans|NEW',pid||'|'||ptenkhoan||'|'||pma_loai||'|'||phieu_luc_tu||'|'||phieu_luc_den); s:=...
true
5bd952a53cee27ee3e63201959a8051abfd275c9
SQL
basoares/hackerrank
/sql/0022_the_pads.sql
UTF-8
1,164
3.796875
4
[ "MIT" ]
permissive
/* Generate the following two result sets: Query an alphabetically ordered list of all names in OCCUPATIONS, immediately followed by the first letter of each profession as a parenthetical (i.e.: enclosed in parentheses). For example: AnActorName(A), ADoctorName(D), AProfessorName(P), and ASing...
true
5764f68fe2582811132f84a4b35d607ff8ce7963
SQL
evrimulgen/about-Avaloq
/tables/obj/country/select.sql
UTF-8
497
2.734375
3
[]
no_license
select ctr.obj_id, nam.name country_name, ctr.val_date_offset, ctr.intr_calc_method_id, ctr.val_date_offset_check, ctr.val_date_offset_note, ctr.iban_len, ctr.iban_bank_clr_start_pos, ctr.iban_bank_clr_end_pos, ctr.iban_ncc_key_1_id, ctr.iban_ncc_ref_obj_1_id, ctr...
true
a8039e9400434dae408f0ec29cfb48ff05e171b4
SQL
CarlosSoto93/database-exercises
/albums_seeder.sql
UTF-8
4,872
2.984375
3
[]
no_license
USE codeup_test_db; TRUNCATE albums; INSERT INTO albums (artist, name, release_date, genre, sales) VALUES ('Michael Jackson', 'Thriller', 1982, 'Pop, rock, R&B', 43.3), ('AC/DC', 'Back in Black', 1980, 'Hard rock', 25.9), ('Pink Floyd', 'The Dark Side of the Moon', 1973, 'Progressive rock', 22.7), ('Whitney H...
true
d321b0de9563cc003fc5d71b6142926e762f9f53
SQL
lukaszplk/sql_staff
/creaty.sql
UTF-8
600
3.328125
3
[ "MIT" ]
permissive
CREATE TABLE pojazdy( vin VARCHAR(30) UNIQUE, marka VARCHAR(30) NOT NULL, kolor VARCHAR(30), wlasciciel VARCHAR(150) NOT NULL ); CREATE TYPE tak_nie as ENUM('tak','nie'); CREATE TABLE zlecenia( id INT PRIMARY KEY, data_rozpoczecia DATE DEFAULT CURRENT_DATE, nazwa VARCHAR(30), ...
true
4ae59f18d38d66bbec9139afe2941e454c9a7737
SQL
JuanCampu/nodejs
/Proyecto/Modelo Datos v2/Data Model.sql
UTF-8
6,707
3.1875
3
[]
no_license
SET FOREIGN_KEY_CHECKS = 0; DROP TABLE IF EXISTS `movcom_usuarios`; DROP TABLE IF EXISTS `movcom_dominios`; DROP TABLE IF EXISTS `movcom_sitios_favoritos`; DROP TABLE IF EXISTS `movcom_entidades`; DROP TABLE IF EXISTS `movcom_secretarias`; DROP TABLE IF EXISTS `movcom_vehiculos`; DROP TABLE IF EXISTS `movcom_rutas`; DR...
true
dde6c4b26272a4f4c1ce729d0161304bdf99bc23
SQL
kalodiodev/plain-notes
/database.sql
UTF-8
905
3.46875
3
[ "MIT" ]
permissive
CREATE SCHEMA `plain-notes`; CREATE TABLE `plain-notes`.`users` ( `id` INT(11) NOT NULL AUTO_INCREMENT, `first_name` VARCHAR(45) NOT NULL, `last_name` VARCHAR(45) NOT NULL, `email` VARCHAR(255) NOT NULL, `password` VARCHAR(255) NOT NULL, `admin` BOOLEAN DEFAULT FALSE, `confirmation` VARCHAR(255), `forg...
true
00444941869d8590bc2b90eae4584c3386b596a5
SQL
getwes/SQL-estudos-
/colocando chave primaria na tabela.sql
UTF-8
501
3.109375
3
[]
no_license
-- colocando chave primaria para que n haja copias de dados nas coluna alter table [tabela de produtos] add constraint pk_produtos primary key clustered ([codigo do produto]) --para que a tabela possa funcionar precisamos tirar o null, para que possa receber uma chave primaria ou estrangeira alter table [tabela de p...
true
46b152982e994fbefa59f32a3c5cc0f1259c116b
SQL
LeonardoQuispe/elecciones_sub_2021_app_backend_core
/sql/pruebas.sql
UTF-8
2,018
3.125
3
[]
no_license
select -- u.* r.nombre ,r.total_mesa ,u.cuenta ,decrypt(u.contrasena::bytea, u.salt::bytea, 'aes') as contrasena from adm_usuario u inner join det_usuario_recinto dur on dur.id_usuario = u.id inner join recinto r on r.id = dur.id_recinto where 1=1 and r.id_distrito = 12 order by total_mesa DESC,r.nombre...
true
f6262435959c7a10c5936b59f4e3b2eeaa3017cc
SQL
hybrida/hybridaweb2-play
/db/schema.sql
UTF-8
2,352
3.609375
4
[ "Apache-2.0", "MIT" ]
permissive
create sequence specialization_seq; create table specialization ( id bigint primary key not null default nextval('specialization_seq'), description varchar(255) ); create sequence user_seq; create table hybrid ( id bigint primary key not null default nextval('user_seq'), username varchar(255) not null, firstname ...
true
5eb0723e1081a46be6e47fd2f09a3e81ad4d113b
SQL
ChervyachokMigo/2ch-yenten-faucet
/db_create.sql
UTF-8
221,713
2.703125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.6.6deb5ubuntu0.5 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Mar 20, 2021 at 07:30 PM -- Server version: 5.7.33-0ubuntu0.18.04.1-log -- PHP Version: 7.2.24-0ubuntu0.18.04.7 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101...
true
2139133e92395df4582cca340f1cd5b5a5805b68
SQL
zew/awis
/grants.sql
UTF-8
2,402
3.625
4
[]
no_license
CREATE USER 'category-editor'@'%' IDENTIFIED BY 'pass1'; CREATE USER 'category-editor'@'localhost' IDENTIFIED BY 'pass1'; GRANT SELECT , INSERT ( category_mcafee, category_statista, category_custom) , UPDATE ( category_mcafee, category_statista, category_custom) ON awisdb.category_zew TO 'catego...
true
472abb82e0372b277ae71e05e0009e376780835c
SQL
rosita7700/NinaRosita_Pw2021_203040082
/Tugas 6/latihan 6b/pw_tubes_203040082.sql
UTF-8
2,348
3.015625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.3 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Apr 21, 2021 at 04:46 PM -- Server version: 10.4.14-MariaDB -- PHP Version: 7.4.11 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
true
cee70530da77586b8877b56083371fa012978eb4
SQL
OlafMd/MedCon1.0
/mm-libs/dbaccess/Level 5/CL5_MyHealthClub_MedProCommunity/Atomic/Retrieval/SQL/cls_Get_TenantMemershipData.sql
UTF-8
995
3.65625
4
[]
no_license
Select hec_cmt_membership_credentials.Membership_Username, hec_cmt_membership_credentials.Membership_Password, hec_cmt_memberships.HEC_CMT_MembershipID, cmn_bpt_businessparticipants.CMN_BPT_BusinessParticipantID, hec_cmt_membership_credentials.HEC_CMT_Membership_CredentialID From cmn_bpt_businessparticipan...
true
b88466114f604c522ab249e765fd6867b7d8d749
SQL
wezu/pyweek26
/options.prc
UTF-8
986
2.78125
3
[ "ISC" ]
permissive
#Panda3D setup file #For a list of all config options see: #https://www.panda3d.org/manual/index.php/List_of_All_Config_Variables #resolution, size of the game window in pixels #the game can be resized by just resizing the game window win-size 1280 720 #vertical sync 0=off, 1=on #limit the fps to your monitor refresh...
true
d8c5cfcf31cd55785701221e7c4ad9d337ea523d
SQL
shchoi22/etl_scripts
/queries/pcore_showing_data_V0.2_2.14.14.sql
UTF-8
8,328
4
4
[]
no_license
set search_path = pangea_api; --explain with customers as (select trim(lower(replace(replace(customers.first_name,';',''),'/t',''))) as first_name_clean ,trim(lower(replace(replace(customers.last_name,';',''),'/t',''))) as last_name_clean ,replace(replace(replace(replace(customers.home_phone,' ',''),'-',''),'('...
true
051cd35e81ba7b3a492ca6b37d44a5237023705f
SQL
huutcha/web
/sql/sinhvien.sql
UTF-8
3,207
3.015625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.4 -- https://www.phpmyadmin.net/ -- -- Máy chủ: 127.0.0.1 -- Thời gian đã tạo: Th1 13, 2021 lúc 10:35 AM -- Phiên bản máy phục vụ: 10.4.16-MariaDB -- Phiên bản PHP: 7.4.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHAR...
true
c71219b1c2fdceff6a438139a08989bbaae47d7a
SQL
jiang-2song/shopping-web
/tableone.sql
UTF-8
14,093
2.671875
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 3.2.0.1 -- http://www.phpmyadmin.net -- -- 主機: localhost -- 建立日期: Apr 02, 2018, 12:45 AM -- 伺服器版本: 5.5.8 -- PHP 版本: 5.3.3 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_R...
true
bc5cc463528ede30b436bc56db802cabeafebced
SQL
DanilaSamusev/HomeWork
/Module9/NorthwindSSDT/Northwind/Scripts/TaskScripts/SQLQuery1.1.sql
UTF-8
126
2.6875
3
[]
no_license
SELECT o.OrderID, o.ShippedDate, o.ShipVia FROM Northwind.Orders as o WHERE o.ShippedDate > 06/05/1998 AND o.ShipVia >= 2;
true
160e3b8438cbebdee765031a3eea746f410e1781
SQL
Abdulrahman2k/Fusion
/HCM_EMPLOYEES.sql
UTF-8
2,990
3.171875
3
[]
no_license
-------------------------------------------------------- -- File created - Saturday-August-15-2020 -------------------------------------------------------- -------------------------------------------------------- -- DDL for Table HCM_EMPLOYEES -------------------------------------------------------- CREATE T...
true
a8784888db0b1462f8e83dd7cd69a7f4e7c8469d
SQL
rjiwancheche/avaliacao
/avaliacao.sql
UTF-8
2,660
2.96875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.5.4.1deb2ubuntu2 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: 09-Jan-2018 às 22:10 -- Versão do servidor: 5.7.20-0ubuntu0.16.04.1 -- PHP Version: 7.0.22-0ubuntu0.16.04.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_C...
true
5ce8c4c8cf580d4248e9d2859ac7a97132b1dd57
SQL
phongngtuan/MathSite
/dumps/sql/mathdb_django_content_type.sql
UTF-8
2,623
3.0625
3
[]
no_license
CREATE DATABASE IF NOT EXISTS `mathdb` /*!40100 DEFAULT CHARACTER SET latin1 */; USE `mathdb`; -- MySQL dump 10.13 Distrib 5.6.19, for osx10.7 (i386) -- -- Host: localhost Database: mathdb -- ------------------------------------------------------ -- Server version 5.6.21 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@C...
true
324d4f0b447d73cf2af4e1d05dbb68689dd5158e
SQL
skywindo/l1j-happy
/db/cn/william_item_magic.sql
UTF-8
1,017
2.546875
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : localhost_3306 Source Server Version : 50150 Source Host : localhost:3306 Source Database : l1j-cn Target Server Type : MYSQL Target Server Version : 50150 File Encoding : 65001 Date: 2011-07-24 22:35:34 */ SET FOREIGN_...
true
b0ff7617569eee3bfdfdd6bb94290e8e6c4f26ea
SQL
SaraPro52/LppConsola
/Sara_Ubuntu/DATA/Procedimientos/43_MisProductos.sql
UTF-8
704
3.6875
4
[]
no_license
-- MisProductos -- /* CALL MisProductos("5"); */ DROP PROCEDURE IF EXISTS MisProductos; DELIMITER ;; CREATE PROCEDURE MisProductos(IN idFuncionario_Var VARCHAR(5)) BEGIN SELECT DISTINCT pv.Id_P_Virtual,pv.Nom_P_Virtual,v.Num_Version, e.Nom_Estado,v.Fecha_Envio ,v.Url_Version,f.Id_Funcionario FROM Version ...
true
75f13e4a0cb1fddcb70cdc0624beffbf1152bca4
SQL
MaameAJ/decal-api
/scripts/getReminders.sql
UTF-8
162
2.65625
3
[]
no_license
DELIMITER $$ DROP PROCEDURE IF EXISTS get_rmdr$$ CREATE PROCEDURE get_rmdr(IN apptId int) BEGIN SELECT * FROM reminder WHERE appt_id = apptId; END$$ DELIMITER ;
true
6c8328773e69a60959fec8140e5571f6b40a7066
SQL
jwhy89/jarvis_list_redo
/database.sql
UTF-8
5,184
3.828125
4
[ "MIT" ]
permissive
-- USER is a reserved keyword with Postgres -- You must use double quotes in every query that user is in: -- ex. SELECT * FROM "user"; -- Otherwise you will have errors! CREATE TABLE "user" ( "id" SERIAL PRIMARY KEY, "username" VARCHAR (80) UNIQUE NOT NULL, "password" VARCHAR (1000) NOT NULL, "timestamp...
true
dae4876666a7de651f0b9d1c5318bdd6e850f6af
SQL
NguyenC-DWC/Nguyen_DatabaseProject1
/create_email.sql
UTF-8
459
3.65625
4
[]
no_license
USE normalization1; DROP TABLE IF EXISTS email; DROP TABLE IF EXISTS personEmail; CREATE TABLE email( person_id int(11) NOT NULL, email varchar(50) NOT NULL ) AS SELECT DISTINCT person_id,email from my_contacts where email IS NOT NULL; ALTER TABLE my_contacts DROP COLUMN email; S...
true
d1ceb554d648a3333b07089022e99d2038cc877d
SQL
pabloestebanZTE/zolid_on_air
/data base/modifications.sql
UTF-8
2,323
2.921875
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
ALTER TABLE user add n_mail_user varchar(100); ALTER TABLE user add i_phone_user integer; ALTER TABLE user add i_cellphone_user integer; ALTER TABLE user add n_password varchar(30); ALTER TABLE user add n_role_user varchar(100); ALTER TABLE ticket_on_air add n_round integer; ALTER TABLE ticket_on_air add d_finish date...
true
307d50dfcaf2beddc91b3aab741aa1ad98dc07b2
SQL
devaraj1234/MySQL
/MySQL_Workbench_Setup.sql
UTF-8
581
3.15625
3
[]
no_license
SELECT * FROM users; SELECT * FROM faves; SELECT * FROM follows; SELECT * FROM tweets; SELECT first_name FROM users; SELECT first_name FROM users WHERE ID = 2; SELECT first_name FROM users WHERE ID = 2 OR 3; SELECT * FROM users WHERE first_name LIKE "%e" ORDER BY birthday DESC; SELECT first_name FROM users ORDER BY fir...
true
47974b020f863d65cca09231391381529165c8da
SQL
nilscox/cah
/apps/server/src/persistence/migrations/0001_mysterious_beast.sql
UTF-8
1,335
3.359375
3
[]
no_license
CREATE TABLE IF NOT EXISTS "cah"."answers" ( "id" varchar(16) PRIMARY KEY NOT NULL, "gameId" varchar NOT NULL, "playerId" varchar NOT NULL, "questionId" text NOT NULL, "place" integer ); --> statement-breakpoint ALTER TABLE "cah"."choices" ADD COLUMN "answerId" varchar;--> statement-breakpoint DO $$ BEGIN ALTER T...
true
28d704320e2b0fd082d39d33a26714570148d55f
SQL
Mateussantis/Valler-Project
/bom/Valler-1.66/banco/VallerNovo.sql
UTF-8
2,132
3.484375
3
[]
no_license
create database Valler; use Valler; --TABELA TIPO_USUARIO - MARIANA create table Tipo_Usuario( id_tipo_usuario int identity primary key, tipo varchar (50) not null ); --TABELA USUARIO - MARIANA create table Usuario ( id_usuario int identity primary key, id_tipo_usuario int foreign key reference...
true
e3ae234cbc8b747b695cecb1198d821e70ea8b58
SQL
riadmahi/INF403
/python-app/data/boutique_creation.sql
UTF-8
2,648
4.3125
4
[]
no_license
DROP TABLE IF EXISTS Paniers; DROP TABLE IF EXISTS TypeArticles; DROP TABLE IF EXISTS Articles; DROP TABLE IF EXISTS Entrepot; DROP TABLE IF EXISTS Commandes; DROP TABLE IF EXISTS Clients; DROP VIEW IF EXISTS TypeArticles_View; DROP VIEW IF EXISTS Commandes_View; PRAGMA FOREIGN_KEYS=ON; CREATE TABLE Clients( nume...
true
9d668bfc3e08dea2c099b0c23012c25833047c7c
SQL
murari-goswami/bi
/ETL/DataVirtuality/views/ml/ml.project_size_category.sql
UTF-8
415
2.75
3
[]
no_license
-- Name: ml.project_size_category -- Created: 2015-04-24 18:17:49 -- Updated: 2015-04-24 18:17:49 CREATE VIEW ml.project_size_category AS SELECT "csv_table".* FROM (call "file".getFiles('ml_project_size_category.csv')) f, TEXTTABLE(to_chars(f.file,'UTF-8') COLUMNS "attribute_id_size" STRING , "attribute_id_ca...
true
69e2ce5802a24922e88c11d4c307e6f24db6c338
SQL
Adravilpda/AdravilpdaSQL
/mibase (1).sql
UTF-8
4,236
3.078125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.1.14 -- http://www.phpmyadmin.net -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 07-04-2021 a las 02:41:06 -- Versión del servidor: 5.6.17 -- Versión de PHP: 5.5.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARA...
true
f10ea6652e67ac475673d5e343f286d59cbea748
SQL
dom-henjes/eng-academy-2019
/src/model/db.sql
UTF-8
701
3.328125
3
[]
no_license
DROP DATABASE IF EXISTS jarcompany; CREATE database jarcompany; USE jarcompany; CREATE USER 'jaruser'@'localhost' IDENTIFIED by 'password'; GRANT select ON jarcompany.* TO jaruser@localhost; CREATE TABLE Employee( employeeNumber int PRIMARY KEY AUTO_INCREMENT, Name varchar(45) NOT NULL, Address varchar(150) NOT NU...
true
c9e518d09468b9a1cee83255259e3c0527701a13
SQL
g-a-i-k-a/kur.loc
/db.sql
UTF-8
10,116
3.1875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 3.3.8 -- http://www.phpmyadmin.net -- -- Хост: localhost -- Время создания: Июн 27 2012 г., 02:25 -- Версия сервера: 5.1.51 -- Версия PHP: 5.3.8 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RE...
true
8c0e62fb432aaa267608354595e17c79a0c89241
SQL
jimsforks/clientsdb
/init.sql
UTF-8
174
2.546875
3
[]
no_license
CREATE TABLE clients ( title text, comment text, name text, date date ); COPY clients(title,comment,name,date) FROM '/datasetwithusers.csv' DELIMITER ',' CSV HEADER;
true
efad9f515ddafd6c9ed8caba9a53ac651cf9fa4e
SQL
krychu/quake-stats
/sql/testing/games.sql
UTF-8
1,121
4.21875
4
[]
no_license
-- Get 100 recent games for bps WITH recent_game_ids AS ( SELECT games.id FROM games INNER JOIN game_players ON games.id = game_players.game_id WHERE name = 'bps' AND map != 'end' AND mode = 'duel' ORDER BY DATE DESC LIMIT 100 ), recent_games AS ( SELECT game_id, n...
true
7712aa107ec14225f3de0d77a53aec6d7443ff4b
SQL
Nditah/node-graphql-lesson-03
/prisma/migrations/20210815184145_more_features/migration.sql
UTF-8
1,456
3.9375
4
[ "ISC" ]
permissive
/* Warnings: - You are about to drop the column `dept` on the `Student` table. All the data in the column will be lost. - A unique constraint covering the columns `[email]` on the table `Student` will be added. If there are existing duplicate values, this will fail. */ -- AlterTable ALTER TABLE "Student" DROP C...
true
0d12cd5157acaeb38f4eb46787a22869605a88dd
SQL
whung10/data_science_projects
/ML_practice/data_wrangling_SQL/1520094343_sql_project.sql
UTF-8
6,829
4.4375
4
[]
no_license
/* Welcome to the SQL mini project. For this project, you will use Springboard' online SQL platform, which you can log into through the following link: https://sql.springboard.com/ Username: student Password: learn_sql@springboard The data you need is in the "country_club" database. This database contains 3 tables: ...
true
4f911d96734479c49ff78b151f858d6b85844e7c
SQL
40thieves/sportsball
/create.sql
UTF-8
8,293
3.375
3
[ "MIT" ]
permissive
DROP DATABASE sportsball; CREATE DATABASE sportsball; USE sportsball; CREATE TABLE stadium ( stadiumID integer(8) primary key AUTO_INCREMENT, name varchar(30) ); CREATE TABLE fixture ( fixtureID integer(8) primary key AUTO_INCREMENT, stadiumID integer(8) NOT NULL, FOREIGN KEY (stadiumID) REFERENCES stadium(stadiumID)...
true
ed0dcc027285af2f4e28e11c22e0ce68bddd0467
SQL
Gavin6581/community
/src/main/resources/db/migration/V1__Create_user_table.sql
UTF-8
551
2.671875
3
[]
no_license
CREATE TABLE `guser` ( `id` int(11) NOT NULL AUTO_INCREMENT, `account_id` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, `name` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, `token` char(36) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, ...
true
520509e31efa6f1a3943deeefa46de4416c90357
SQL
jamaps/CLTD
/older_work/src/census_area_weighting.sql
UTF-8
1,231
4.15625
4
[ "MIT" ]
permissive
-- basic areal weighting procedure -- example of 2011 to 2016 ------------------------------- -- get area of the source and put into new table CREATE TABLE wa_2011_ct AS ( SELECT ctuid, geom, ST_AREA(geom::geography) as area FROM in_2011_cbf_ct ); -- intersection with the target boundary CREATE TABLE wa_2011_2016_...
true
15a1772e0e1383c75f574c37122e35f77ac800f0
SQL
hotheat/LeetCode
/601. Human Traffic of Stadium/601.sql
UTF-8
286
3.578125
4
[]
no_license
# 和 180 类似 select distinct s1.* from stadium s1, stadium s2, stadium s3 where s1.people>=100 and s2.people>=100 and s3.people>=100 and( (s1.id=s2.id+1 and s2.id=s3.id+1) or (s2.id=s3.id+1 and s3.id=s1.id+1) or (s3.id=s1.id+1 and s1.id=s2.id+1) ) order by s1.id
true
362632a86073341bcfc527c51409617b53f7967a
SQL
Shawn-ZWJ/JKYSPTProject
/jkglpt.sql
UTF-8
4,949
3.359375
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : xing Source Server Version : 50540 Source Host : localhost:3306 Source Database : jkglpt Target Server Type : MYSQL Target Server Version : 50540 File Encoding : 65001 Date: 2019-03-23 21:56:00 */ SET FOREIGN_KEY_CHECKS=0; -- -------...
true
c3ea8f4b61a79b2d28130275ff00d58af72879dd
SQL
sonuftp/hrm
/database/hrm.sql
UTF-8
57,705
3.046875
3
[ "BSD-3-Clause" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.0.10deb1 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Sep 09, 2017 at 05:52 PM -- Server version: 5.6.33-0ubuntu0.14.04.1 -- PHP Version: 5.6.30-7+deb.sury.org~trusty+1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CH...
true
ee20c31aaf6b198c4275546ae30cb37345915f4c
SQL
1kko/multiedit
/multiedit.sql
UTF-8
1,981
3.25
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.0.10deb1 -- http://www.phpmyadmin.net -- -- 호스트: localhost -- 처리한 시간: 15-06-04 14:30 -- 서버 버전: 5.5.43-0ubuntu0.14.04.1 -- PHP 버전: 5.5.9-1ubuntu4.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*...
true
97e05fbf665ef276e039d8f9a05b88b5efc8af92
SQL
Punie/DCX
/00_WikiWeb_0.1/db/wiki_db.sql
UTF-8
2,037
3.890625
4
[]
no_license
CREATE TABLE "User" ( id SERIAL PRIMARY KEY, user_name VARCHAR(255), first_name VARCHAR(255), last_name VARCHAR(255), user_type VARCHAR(255) ); CREATE TABLE "Article" ( id SERIAL PRIMARY KEY, title VARCHAR(255), body TEXT, date_created DATE, nb_like INTEGER, author INTEGER ); CREATE TABLE "Comme...
true
1642559208d8a0bf40abc611dfa68bc442b1ac0c
SQL
GAUTHAM31/JobfairReg
/JF2016/jobFair_DB_struct.sql
UTF-8
2,187
3.09375
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.6.6deb4 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Aug 20, 2017 at 07:30 PM -- Server version: 10.1.23-MariaDB-9+deb9u1 -- PHP Version: 7.0.19-1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLI...
true
98dca0489877bc52da644bd58c123f08583abc3b
SQL
nhutlm1983/api-test
/database/sql.sql
UTF-8
9,309
2.90625
3
[ "MIT" ]
permissive
CREATE DATABASE IF NOT EXISTS `api_blog` /*!40100 DEFAULT CHARACTER SET latin1 */; USE `api_blog`; -- MySQL dump 10.13 Distrib 5.7.11, for Linux (x86_64) -- -- Host: 127.0.0.1 Database: api_blog -- ------------------------------------------------------ -- Server version 5.7.11 /*!40101 SET @OLD_CHARACTER_SET_CLIE...
true
664eac74c2597828d9118b9ed3e86026d08c4649
SQL
Daro1Daro/graphql-app
/server/prisma/migrations/20210408135201_init/migration.sql
UTF-8
4,363
3.390625
3
[]
no_license
-- CreateTable CREATE TABLE "Book" ( "id" INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, "title" TEXT NOT NULL, "description" TEXT, "published" DATETIME, "cover" TEXT, "author" INTEGER, FOREIGN KEY ("author") REFERENCES "Author" ("id") ON DELETE SET NULL ON UPDATE CASCADE ); -- CreateTable CRE...
true
fa3ed62d2c6713c0eb8fac57f527fdeb6cfe527a
SQL
Yogesh-S/SQL-MySQL_DBMS
/import_csv.sql
UTF-8
903
3.484375
3
[]
no_license
# *** Excel remove commas from the csv file # create an empty table by importing csv using the wizard CREATE TABLE films LIKE filmstemp; #truncate if there are any rows truncate films; # to get the csv file uploading path SHOW VARIABLES LIKE "secure_file_priv"; # upload the files to the same path or change secure_...
true
d2991c0ff69e962ec55d843ee31114bd16b90439
SQL
mstippa/Alan-s-Insanely-Incredible-Database-Class
/finalprojectscripts2.sql
UTF-8
29,130
3.5
4
[]
no_license
drop table if exists players; drop table if exists teams; drop table if exists teamsPlayers; drop table if exists games; drop table if exists regularSeason; drop table if exists playoffGames; drop table if exists conferenceFinals; drop table if exists quarterFinals; drop table if exists semiFinals; drop table if exist...
true
591407a169910b3d0bdc064101e8303a3fab3a84
SQL
iamtcby5188/work
/database/update_v1.6.0_Patch1.sql
WINDOWS-1252
2,350
2.75
3
[]
no_license
-- Manually Generated: 2016-04-18 18:33 -- Author: JiaLu ALTER TABLE `idb_bond`.`bond_bank` ADD COLUMN `company_id` VARCHAR(32) NULL DEFAULT NULL COMMENT '' AFTER `id`; ALTER TABLE `idb_bond`.`bond_bank_agent` ADD COLUMN `company_id` VARCHAR(32) NULL DEFAULT NULL COMMENT '' AFTER `id`; ALTER TABLE `idb_bond`.`bon...
true
5407b5af843332c86ee1de617c9c5dbb2112a3b2
SQL
Tangol/Osclass-Locations
/locations/FM-Micronesia.sql
UTF-8
9,313
2.65625
3
[]
no_license
REPLACE INTO /*TABLE_PREFIX*/t_country (pk_c_code, s_name, s_slug) VALUES ('FM', 'Micronesia', 'micronesia'); REPLACE INTO /*TABLE_PREFIX*/t_region (pk_i_id, fk_c_country_code, s_name, b_active, s_slug) VALUES (1002580, 'FM', 'Chuuk State', 1, 'chuuk-state'); REPLACE INTO /*TABLE_PREFIX*/t_city (pk_i_id, fk_i_regio...
true
68e2203f9a24b5912623c7c792c3cb5e65937b88
SQL
bufujiugan/adm
/soft.sql
UTF-8
3,402
3.375
3
[]
no_license
-- -------------------------------------------------------- -- 主机: 127.0.0.1 -- 服务器版本: 10.2.7-MariaDB - mariadb.org binary distribution -- 服务器操作系统: Win64 -- HeidiSQL 版本: 9.4.0.5125 -- --------------------------------------------...
true
38c6975f889561d0b8f6c4d6d63cd6704949b1ef
SQL
OoNascimentoOo/projeto_laravel_CRUD
/Dump20210217/crud_schools.sql
UTF-8
2,416
2.84375
3
[]
no_license
-- MySQL dump 10.13 Distrib 8.0.23, for Win64 (x86_64) -- -- Host: 127.0.0.1 Database: crud -- ------------------------------------------------------ -- Server version 8.0.23 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!401...
true
f0728b7e3062283567ee920e134ed5511956a18d
SQL
aeiou321/SistemaEscolar
/sistema.sql
UTF-8
14,276
3.0625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 06-05-2019 a las 02:18:14 -- Versión del servidor: 10.1.36-MariaDB -- Versión de PHP: 7.2.11 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00";...
true
7977e54bcc3143a47de99653feff65cc58b3ec46
SQL
lkarper/dog-date-api
/migrations/003.do.create_dog_date_howls.sql
UTF-8
472
2.984375
3
[]
no_license
CREATE TYPE meeting_type AS ENUM ( 'recurring', 'once' ); CREATE TABLE dog_date_howls ( id INT PRIMARY KEY GENERATED BY DEFAULT AS IDENTITY, user_id INT REFERENCES dog_date_users(id) ON DELETE CASCADE NOT NULL, howl_title TEXT NOT NULL, address TEXT NOT NULL, city TEXT NOT NULL, state T...
true
33dd7d361b89eb6ff0e70641e29c4b8ae2744599
SQL
Freehand-prime/freehand-prime
/database/database.sql
UTF-8
2,416
3.765625
4
[]
no_license
CREATE TABLE "user" ( "id" serial NOT NULL, "username" varchar(255) NOT NULL UNIQUE, "password" varchar(1000) NOT NULL, "isadmin" BOOLEAN DEFAULT FALSE NOT NULL, CONSTRAINT "user_pk" PRIMARY KEY ("id") ) WITH ( OIDS=FALSE ); CREATE TABLE "occasions" ( "id" serial NOT NULL, "occasion" varchar(255) NOT NULL, C...
true
b614df1c446c698eb8d1d7c8c8fa0b5e3409ca55
SQL
ccarson/SkolBrother
/mcCoreShield/Schema Objects/Schemas/dbo/Tables/Keys/dbo.Systems.keys.sql
UTF-8
100
2.65625
3
[]
no_license
ALTER TABLE dbo.Systems ADD CONSTRAINT PK_Systems PRIMARY KEY CLUSTERED ( id ASC ) ;
true
79c3925f43d11ed98dda040ab95a8c1511b1f55e
SQL
stenman/databasefun
/src/main/resources/create_schema.sql
UTF-8
599
3.4375
3
[]
no_license
DROP TABLE customer IF EXISTS CASCADE; DROP TABLE customerorder IF EXISTS CASCADE; DROP TABLE configuration IF EXISTS CASCADE; CREATE TABLE customer ( customer_id BIGINT IDENTITY, customer_firstname VARCHAR(100), customer_lastname VARCHAR(100) ); CREATE TABLE customerorder ( order_id BIGINT IDENTITY, customer_i...
true