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
339299712cb259747ec7170f4004fbd992043dcc
SQL
zaibo-kirtis/dviraciu-remontas
/server/part-report/getReport.sql
UTF-8
308
3.125
3
[]
no_license
SELECT `order`.id as order_id, date_created, part.price, part.name, part.manufacturer, part.description, part.warranty_for as warrantyFor FROM `order` join part_order as po on po.order_id = id join part as part on po.part_id = part.id WHERE date_created > '{from}' AND date_created < '{to}' order by order_id
true
7bb13c7537d2532c1027135e20628a00dfba65ca
SQL
sudeep4893/Practice
/ora/plsql/dyn sql/getMaxId.sql
UTF-8
541
3.34375
3
[]
no_license
create or replace function getMaxId(x varchar, y varchar) return number IS str varchar(80); n number; q INTEGER; cid INTEGER; BEGIN str := 'select max(' || x || ') from ' || y; cid := DBMS_SQL.OPEN_CURSOR; DBMS_SQL.PARSE(cid, str, DBMS_SQL.NATIVE); DBMS_SQL.DEFINE_COLUMN(cid,1, n ); q := DBMS_SQL.EXECUTE(cid); I...
true
3aba2609e2b2195fd970ae8b4145680761257e88
SQL
tsaifoon/MySQL
/SQL03172019.sql
UTF-8
5,672
4.625
5
[]
no_license
USE sakila; -- look at full table -- SELECT * FROM actor; -- 1a -- SELECT first_name, last_name FROM actor; -- 1b -- SELECT CONCAT(first_name," ",last_name) as actor_name FROM actor; -- 2a -- SELECT actor_id, first_name, last_name FROM actor WHERE first_name = 'Joe'; -- 2b -- SELECT first_name, la...
true
1015648b903a62511397c54b4a454cab101d5e70
SQL
duminduweera/NSCOperationalPlan
/MySQLBackups/nsc_operation_plan_kpi.sql
UTF-8
3,090
3.234375
3
[]
no_license
-- MySQL dump 10.13 Distrib 5.7.12, for Win64 (x86_64) -- -- Host: nscutil Database: nsc_operation_plan -- ------------------------------------------------------ -- Server version 5.6.17 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULT...
true
241d968e2cee3c149cceab59de9667e1d2d3e8c1
SQL
carolinajativa/SQL-Profit-and-Loss-P-L-and-Balance-Sheet-B-S-statements
/Team_9_FV.sql
UTF-8
16,856
3.59375
4
[]
no_license
USE H_Accounting; #################################################################################################################################### # PROCEDURE CREATION - Please change the name of the procedure if it doesn't run #######################################################################################...
true
d0b5825158d0a4aa0ba178e68d8b0be29ddee2d0
SQL
mzerva/R.O.S.E.S
/db_config/DBEvolution.sql
UTF-8
8,802
3.765625
4
[]
no_license
/*STATS*/ DROP TABLE IF EXISTS `Stats` ; CREATE TABLE `Stats` ( `tableId` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(45) NOT NULL, `duration` int(11) NOT NULL, `birth` int(11) NOT NULL, `death` int(11) DEFAULT NULL, `changes` int(11) NOT NULL, `sStart` int(11) NOT NULL, `sEnd` int(11) NOT NULL, `...
true
d7215f5cf6e041c7e5f04ef845a40858fb9f1696
SQL
gstsgy/springCloudTemplates
/basedata/db/mysql_create_table.sql
UTF-8
896
2.734375
3
[]
no_license
create table if not exists wms_cli_basedata.dictionary ( insert_id varchar(255) not null comment '新增人', insert_ymd timestamp default CURRENT_TIMESTAMP null comment '新增日期', update_ymd timestamp default CURRENT_TIMESTAMP null on update CURRENT_TIMESTAMP comment '更新日期', update_id varchar(255) not null comment '更新人', ...
true
8cff2905e94732f5fd2b84c6614b434a7fb17a6d
SQL
bmfisher/securities-analysis
/Create_company.sql
UTF-8
181
2.84375
3
[]
no_license
CREATE TABLE IF NOT EXISTS company ( company_id SERIAL PRIMARY KEY, full_name varchar(40) NOT NULL, ticker varchar(8) NOT NULL, UNIQUE(full_name, ticker) );
true
ea92bfb87aa16aed5e749a7676399bffe77ffb45
SQL
aaabramov/course-work-4-blog
/server/src/main/resources/database/prod_data.sql
UTF-8
876
3.09375
3
[ "MIT" ]
permissive
INSERT INTO COLORS (ID, HEX, COLOR_NAME) VALUES (1, '#FF0000', 'Red'), (2, '#00FF00', 'Green'); INSERT INTO TAGS (ID, NAME, COLOR_ID) VALUES (1, 'test-tag-1', 1), (2, 'test-tag-2', 2); INSERT INTO USERS (ID, EMAIL, PASSWORD, USERNAME) VALUES (1, 'email1@example.com', 'password1', 'user1'), (2, 'email2@exa...
true
3a7e3352bf371bd1dee70aa7c61d67984cd894f0
SQL
delphi1977/NewDicomPACS
/Database/oracle/tables/trecipe_dlo_exp_onls.sql
WINDOWS-1251
2,352
3.546875
4
[]
no_license
ALTER TABLE ASU.TRECIPE_DLO_EXP_ONLS DROP PRIMARY KEY CASCADE / DROP TABLE ASU.TRECIPE_DLO_EXP_ONLS CASCADE CONSTRAINTS / -- -- TRECIPE_DLO_EXP_ONLS (Table) -- CREATE TABLE ASU.TRECIPE_DLO_EXP_ONLS ( C_FINL NUMBER DEFAULT 0, C_PROG NUMBER, NAME_PROG VARCHAR2(50 BYTE), D...
true
f0f0c49c24a0436859bcb394bfa8c7b7b39b3b7f
SQL
AkberAlwani/CarRentalSpringMVC
/sql/customer.sql
UTF-8
1,994
2.625
3
[]
no_license
insert into customer(city,country,customerNumber,firstname,lastName,account_id,email,phoneNumber) values ('Fairfield','USA','12345678','Akber','Ali',1,'aali@mum.edu','5122560929'); insert into customer(city,country,customerNumber,firstname,lastName,account_id,email,phoneNumber) values ('Fairfield','USA','1234567...
true
e0dc83969c2157ee6de3c7007a909b7b26d41d28
SQL
hiroton9/javascript
/c.sql
UTF-8
431
3.828125
4
[]
no_license
select e1.emp_name, d2.dept_name, e3.emp_name as manage, e3.dept_name from emp e1 left outer join ( select e2.emp_id, e2.emp_name, d.dep, d.dept_name from emp e2 left outer join dept d on e2.dep = d....
true
d10c95491500ecf2710b291474eca475a54f5133
SQL
ajpark30/FreeAgentsGroupProject
/src/test/resources/sql/create_waterfalls_db.sql
UTF-8
1,942
3.71875
4
[]
no_license
-- --------------------------------------------------------- -- This data was created in the Intellij database view by -- right clicking "waterfalls" and selecting "SQL Generator" -- --------------------------------------------------------- DROP TABLE photo, waterfall, zip_coords; create table waterfall ( waterf...
true
e1a61f94c9c9a4ced3d4298b6a241ec7f8ef7576
SQL
galaLib/PortfolioProject_1
/Project_1.sql
UTF-8
4,007
4.03125
4
[]
no_license
use PortfolioProject_1 select * from CovidDeaths order by 3,4 select * from CovidVaccinations order by 3,4 select cd.location, cd.date, cd.total_cases, cd.new_cases, cd.total_deaths, cd.population from CovidDeaths as cd order by 1,2 -- Looking at total cases vs total deaths -- Shows likelihood of dy...
true
c65c7e3109d40e238922ab1f41785b4d922c18e7
SQL
soyouz21/facturation-Cogip-Nad
/COGIPapp/facturation.sql
UTF-8
4,925
3.078125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.5.4.1deb2ubuntu2 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Sep 13, 2017 at 09:24 AM -- Server version: 5.7.19-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
02922890d76a115446576d73a62b67041c1bfe66
SQL
KanduriR/SQL_classic_models_queries
/single_entity_queries.sql
UTF-8
2,393
4.21875
4
[]
no_license
/*** These queries are single entitiy queries answering the questions posted here https://www.richardtwatson.com/dm6e/Reader/ClassicModels.html **/ -- list of officess-- select officeCode, country, state, city from offices order by country, state, city; -- Number of employees in the company -- select COUNT(*), COUNT...
true
4f095925dba285f77f52e678d567c6a9a412aa57
SQL
maecst/lab02-hairsalon
/scripts/images.sql
UTF-8
1,688
2.765625
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.1.7 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: May 05, 2014 at 10:44 PM -- Server version: 5.6.16 -- PHP Version: 5.5.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /...
true
d0da9e5a9da0ee4bd0d5770556fa03ced948cf16
SQL
lucasnr/desafio-ufersa
/Lucas Nascimento/db.sql
UTF-8
569
3.640625
4
[]
no_license
DROP DATABASE IF EXISTS TURING_TODO; CREATE DATABASE TURING_TODO; USE TURING_TODO; CREATE TABLE `USER`( ID INT PRIMARY KEY AUTO_INCREMENT, `NAME` VARCHAR(200), EMAIL VARCHAR(250) NOT NULL UNIQUE, `PASSWORD` CHAR(64) NOT NULL, AVATAR_URL VARCHAR(300) ); CREATE TABLE TASK( ID INT PRIMARY KEY AUTO_INCR...
true
a0a5a4183d0e5cad557fdea02695887737b84088
SQL
j7ng/CLFY_SA
/SA/Tables/TABLE_X_SIDS.sql
UTF-8
919
3.140625
3
[]
no_license
CREATE TABLE sa.table_x_sids ( objid NUMBER, sids2personality NUMBER, x_band VARCHAR2(1 BYTE), x_sid VARCHAR2(10 BYTE), x_sid_type VARCHAR2(10 BYTE), x_index NUMBER ); ALTER TABLE sa.table_x_sids ADD SUPPLEMENTAL LOG GROUP dmtsora1773720543_0 (objid, sids2personality, x_band, x_index, x_sid, x_sid_t...
true
8536cda7d63e6eafb67a4f927e92df830793fa0c
SQL
ParsianInsuranceGIT/sanam
/queries/920713 MabetafavotProjyeKarmozd_mordadShahrivar.sql
UTF-8
2,470
3.578125
4
[]
no_license
-- update bimename karmoz annhai ke sefr ast null shavad -- + update 3 field majmoo dar ghestbandi -- update ghest paid_amoun va real_amount anhaii ke sefr ast null shavad -- + hazfe karmozd_ghest ba khate_sanad_id =6914529 -- delete karmozd 0 dar 2 projeye jadid delete from (select kgh.* from tbl_karmozd_ghest kgh ...
true
cf18d16e944605810fd8d8fe1d10967ed033fa48
SQL
marcusguima/reunioes
/src/main/resources/db/migration/mysql/V1__init.sql
UTF-8
1,300
3.5
4
[]
no_license
CREATE TABLE `usuario` ( `id` INT NOT NULL AUTO_INCREMENT, `nome` VARCHAR(45) NOT NULL, `email` VARCHAR(100) NOT NULL, `senha` VARCHAR(100) NOT NULL, `data_Atualizacao` DATETIME NOT NULL, `ativo` INT (1) NOT NULL, PRIMARY KEY (`id`)) ENGINE = InnoDB; CREATE TABLE `reuniao` ( `id` INT NOT NUL...
true
a977e853c35c4e192cfce6c36140c92cc579e860
SQL
DenisYelkin/NPT
/Create DB.sql
UTF-8
6,840
3.5
4
[]
no_license
DROP TRIGGER onUserDelete; drop trigger onActorDelete; drop trigger onMovieDelete; drop trigger rate_trigger; drop trigger onDirectorDelete; drop trigger onCountryDelete; drop trigger onNominationDelete; drop trigger onAwardDelete; drop sequence unique_id; drop table MovieDirectorConnector; drop table MovieGenreConne...
true
e2a1b0a491c95e5eeb6ab9375481f515bbf9f1c7
SQL
primingrx/zhihu_topic
/sql/topic.sql
UTF-8
756
3.5
4
[]
no_license
SET FOREIGN_KEY_CHECKS=0; DROP TABLE IF EXISTS `topic`; CREATE TABLE `topic` ( `id` int(11) NOT NULL AUTO_INCREMENT, `topic_id` varchar(100) DEFAULT NULL, `topic_name` varchar(100) DEFAULT NULL, `topic_url` varchar(200) DEFAULT NULL, `follower_count` int(10) DEFAULT NULL COMMENT '关注人数', `describe` varchar(5...
true
343281891cf70343aea27739d61ac1ebd2237b63
SQL
moumoukings/LearnForJavaEE
/day29/Database/student.sql
UTF-8
1,045
4.15625
4
[ "MIT" ]
permissive
SELECT * FROM `student`; USE stdb; CREATE TABLE student( id INT PRIMARY KEY AUTO_INCREMENT, NAME VARCHAR(20), sex VARCHAR(20), score INT(10) ); INSERT INTO `stdb`.`student`(`name`,`sex`,`score`) VALUES ('李少荣','女','80'),('邵凯','男','75'), ('周强','男','95'),('王晓婷','女','55'),('张秀花','女','68') ,('顾会','女','50'),(...
true
6549e33959d0977100e9b7c39f3b636f15e65cd5
SQL
AdmiJW/SQL
/Hackerrank/Easy/Top Earners.sql
UTF-8
722
4.25
4
[]
no_license
/* Nested Select Solution */ SELECT CONCAT( MAX(salary * months), " ", COUNT(*) ) FROM Employee -- Obtain the amount of maximum earning, and the count of columns HAVING salary * months = ( -- Filter those employees without maximum earning SELECT MAX(salary * months) FROM Employee ...
true
3b48bc28b3d3ee4e62fee6aaeaea10f3db3ba091
SQL
zhangxudongsteven/sbo-tools
/bom_calculator/10-60.402.各BOM明细数据.sql
UTF-8
1,124
3.359375
3
[ "MIT" ]
permissive
select T0."Code" AS "物料编码", T2."ItemName" AS "物料名称", T6."ItmsGrpNam" AS "物料组", T2."SuppCatNum" AS "原厂料号", case when T2."PrcrmntMtd"='B' then '购买' when T2."PrcrmntMtd"='M' then '生产' else '未知' end AS "补给方式", T2."CardCode" AS "首选供应商", T3."Name" AS "物料分类二", T4."Name" AS "物料分类三", T2."BuyUnitMsr" AS "计量单位", T0."Fat...
true
5e8d1d4a830a00cce54dc32fcfa991637cdd51b7
SQL
joaops/MultiTenancy
/src/main/resources/META-INF/sql/BancoDados.sql
UTF-8
687
3.3125
3
[]
no_license
CREATE TABLE public.users ( username varchar(45) NOT NULL, password varchar(45) NOT NULL, db varchar(45), enabled SMALLINT not null default 1, CONSTRAINT users_pkey PRIMARY KEY (username) ) WITH (OIDS=FALSE); ALTER TABLE public.users OWNER TO postgres; CREATE INDEX idx_username ON public.users USING btree(use...
true
089ef215385afb0c67aaae1a749348c31b537aea
SQL
kPlusPlus/DatabaseCompare
/DatabaseCompare/bin/Debug/Triggers kredit_utrigA.sql
UTF-8
1,319
3.71875
4
[]
no_license
create trigger [kredit_utrig] on dbo.kredit for update as if exists(select * from inserted inner join dbo.analitika on inserted.analitikaid = dbo.analitika.id where analitikavrsta not in (2,3)) begin raiserror 44445 ' please select bank or partner origin: kredit_utrig' rollback transact...
true
524cda452d770de5f8c0d250470550fe6825838a
SQL
Tektos/Hackathon
/WebApp/Importation Flux RSS automatique/db_easyopale.sql
UTF-8
8,391
3.453125
3
[]
no_license
-- MySQL Script generated by MySQL Workbench -- 09/14/14 15:31:06 -- Model: New Model Version: 1.0 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'; -- -----------...
true
529876d5f1c24ca5f53aa6ad7a7da4198d2530ba
SQL
obsicn/bigdata
/hadoop-arch-book/ch08-clickstream/dedup/hive/dedup.sql
UTF-8
489
3.1875
3
[ "Apache-2.0" ]
permissive
INSERT INTO table $deduped_log SELECT ip, ts, url, referrer, user_agent, YEAR(FROM_UNIXTIME(unix_ts)) year, MONTH(FROM_UNIXTIME(unix_ts)) month FROM ( SELECT ip, ts, url, referrer, user_agent, UNIX_TIMESTAMP(ts,'dd/MMM/yyyy:HH:mm:ss') unix_ts FROM $raw_log WHERE year=...
true
a6788091dbbfd4756103277297ead28c296fb888
SQL
olgaboiar/codesignal
/arcades/db/selecting_what_to_select/emptyDepartments.sql
UTF-8
216
2.765625
3
[]
no_license
CREATE PROCEDURE emptyDepartments() BEGIN SELECT dep_name FROM departments WHERE NOT EXISTS (SELECT * FROM employees WHERE employees.department = departments.id); END
true
3aaa0d2129e126cfcc72787c9a1c34e93ff1f15c
SQL
OHDSI/Vocabulary-v5.0
/BDPM/load_stage.sql
UTF-8
88,194
3.140625
3
[ "Unlicense" ]
permissive
--change the dates according to the release date DO $_$ BEGIN PERFORM VOCABULARY_PACK.SetLatestUpdate( pVocabularyName => 'BDPM', pVocabularyDate => (SELECT vocabulary_date FROM sources.bdpm_drug LIMIT 1), pVocabularyVersion => (SELECT vocabulary_version FROM sources.bdpm_drug LIMIT 1), pVocabularyDevSchema ...
true
e53abd2bdb50bd4d3f19ab829a7fdba419af8740
SQL
blakeward05/SQL-Queries
/Movement/Types of Moves - In-Year.sql
UTF-8
4,009
4.28125
4
[]
no_license
SELECT ste.student_id, reg_sd.local_school_year, schaa.school_code, to_char(reg_sd.date_value, 'MM/DD/YYYY') as enter_date, case when reg_sd.local_enroll_day_in_school_yr >= 10 then 1 else 0 end as Entering, to_char(end_sd.date_value, 'MM/DD/YYYY') as end_date, case when enr.withdraw_date is not null and end_sd....
true
deb521a1c8e58fbff2b4363ea4609db7683bb87d
SQL
wPaniagua/Compra-y-venta-de-toda-papada-Back
/Procedimientos/PC_Categorias.sql
UTF-8
3,716
3.796875
4
[]
no_license
/*agregue este campo*/ ALTER TABLE categorias ADD estado VARCHAR(2) NULL ; CREATE OR REPLACE PROCEDURE SP_CATEGORIAS( IN nombreCategoria VARCHAR(50), IN idcategoria INT, IN accion VARCHAR(45), IN pestado VARCHAR(2), OUT mensaje V...
true
a22dfa5e9df72a85033e7266da11e661ec7569d9
SQL
Supagoat/autocross
/src/main/resources/db/migration/V1__Init.sql
UTF-8
421
2.75
3
[ "MIT" ]
permissive
create table person ( club_id varchar(38) NOT NULL, person_id varchar(38) NOT NULL, first_name varchar(64) NOT NULL, last_name varchar(64) NOT NULL, email_hash varchar(32), primary_number varchar(10), primary key(club_id, person_id) ); create table certification( person_id varchar(38) NOT NULL, ...
true
c0e4761b57e917e4d507bd2d467ab2adc5f269af
SQL
BeloSantos/universitario
/src/main/webapp/resources/init-script/init.sql
UTF-8
1,597
3.6875
4
[]
no_license
SET FOREIGN_KEY_CHECKS = 0; drop table if exists authorities; drop table if exists users; drop table if exists decane; drop table if exists employee; drop table if exists person; SET FOREIGN_KEY_CHECKS = 1; create table users( username varchar(50) not null primary key, password varchar(100) not n...
true
acd3ddfe6ebd667dbd2f59c6cd93c7c20d7be691
SQL
JAck0b/Klinika
/skrypt procedury.sql
UTF-8
39,641
3.640625
4
[]
no_license
-- Tutaj są kody wszystkich procedur -- Tutaj są kody wszystkich procedur # todo naprawić to, by się nie dało zapisać po godzinach pracy # todo zamienić porównywanie dat na integery i staram się nie używać datatime (zamiast tego time) # TODO można usunąć ilość i zostawić iterowanie po czasie DROP PROCEDURE IF EXISTS ...
true
a7468e9fe67b4ffc7f4f912aa98a246acee164cd
SQL
dm8ry/postgres-utilities
/sql/locks.sql
UTF-8
1,856
3.71875
4
[]
no_license
SELECT blocked_locks.pid AS blocked_pid, blocked_activity.usename AS blocked_user, blocking_locks.pid AS blocking_pid, blocking_activity.usename AS blocking_user, blocked_activity.query AS blocked_statement, blocking_activity.query AS current_statement_in_blocking_process FROM pg_catalog.pg_locks blocked_locks JOIN pg_...
true
a441cc263b13fbcba42d80a6c4473488a1564cdd
SQL
tierickson/Bombeiro-Civil
/database/banco de dados inicial v 1.0/bombeiro.sql
UTF-8
3,426
3.1875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: 01-Jan-2010 às 09:12 -- Versão do servidor: 10.1.13-MariaDB -- PHP Version: 7.0.6 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLI...
true
7f012cd0039dc1a87c58ae2e4e4b825c0e9efed7
SQL
huangliliu0917/springboot-jeecgboot
/db/scalp_system.sql
UTF-8
51,913
2.703125
3
[]
no_license
/* Navicat Premium Data Transfer Source Server : .. Source Server Type : MySQL Source Server Version : 50644 Source Host : localhost:3306 Source Schema : scalp_system Target Server Type : MySQL Target Server Version : 50644 File Encoding : 65001 Date: 22/05/2020 11:...
true
aa221413645f1fa332e4e363c8788ca6b70a215b
SQL
luddoro/Larablogg
/database/migrations/backup import/blog.sql
UTF-8
4,072
3.0625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.6.6deb5 -- https://www.phpmyadmin.net/ -- -- Värd: localhost:3306 -- Tid vid skapande: 16 apr 2019 kl 00:28 -- Serverversion: 5.7.25-0ubuntu0.18.04.2 -- PHP-version: 7.2.15-0ubuntu0.18.04.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACT...
true
dc8b506663d574c1d49f166c7c95da5c10d5e4da
SQL
froseph/VenueRunner
/schema.sql
UTF-8
2,262
3.71875
4
[]
no_license
CREATE TABLE IF NOT EXISTS customers ( id INTEGER PRIMARY KEY AUTOINCREMENT, first_name VARCHAR(255) NOT NULL, last_name VARCHAR(255), email VARCHAR(255), lead BOOLEAN NOT NULL, follow BOOLEAN NOT NULL, signup_date DATE NOT NULL, last_seen_date DATE NOT NULL, note STRING ); -- Futur...
true
690bed631b8365a9cff7cb7efdb1c69d4dda6f5e
SQL
LeoCantThinkOfAName/edx-rdb-sql
/social-network-extra.sql
UTF-8
2,154
4.78125
5
[]
no_license
/*************************************************************** Q1. For every situation where student A likes student B, but student B likes a different student C, return the names and grades of A, B, and C. ***************************************************************/ select h1.name, h1.grade, h2.name, h2....
true
73e9770d45328087b5402b4494a0aac8f08c1f2c
SQL
AaruushCreatives/Aaruush-2017
/v2017/contactus.sql
UTF-8
1,175
2.625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.6.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Aug 03, 2017 at 10:54 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
926c9657f7f751f08266dc150589fd0adf487cb3
SQL
josepitteloud/VESPA
/Vespa Projects/346 - Ethan STB Diagnostics/V346_load_et_technical_csv.sql
UTF-8
3,268
3.578125
4
[]
no_license
create or replace variable @input_file_path varchar(256) = '/ETL013/prod/sky/olive/data/share/clarityq/export/Decision_Sciences/tanghoi/Diagnostics/all_Diagnostics_data.csv'; -------------------- -- Undelimited raw data -------------------- drop table et_technical_undelimited; create table et_technical_undelimite...
true
34d7f3e4a8fd0177dcb2d4c87a33a2d563d9727d
SQL
afiqur/TourMatePro
/turemate.sql
UTF-8
4,396
3.125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: May 17, 2017 at 04:47 PM -- Server version: 10.1.13-MariaDB -- PHP Version: 5.5.34 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CL...
true
01edc1c9dfe0cb9992dc00f84a23b07ed37311a3
SQL
maltimor/svnTest
/src/stats.sql
UTF-8
3,542
4.21875
4
[ "MIT" ]
permissive
select * from svn_commits; select proy,login,count(*) from svn_commits group by proy,login order by count(*) desc; select login,min(TIMESTAMP),max(timestamp), count(*),sum(A),sum(M),sum(R),sum(D) from svn_commits group by login order by count(*) desc; select proy,rev,count(*) from svn_commits group by pr...
true
a0133969414ae22864d852c2d715993b27c73a1c
SQL
MCZbase/DDL
/TYPE/SEARCHTERMSRECORD.sql
UTF-8
397
2.546875
3
[ "Apache-2.0" ]
permissive
CREATE OR REPLACE TYPE "SEARCHTERMSRECORD" AS OBJECT (searchfield varchar2(20), comparator varchar2(10), searchterm varchar2(4000)) ; ALTER TYPE ""."SEARCHTERMSRECORD" modify attribute comparator varchar2(50) cascade ; ALTER TYPE ""."SEARCHTERMSRECORD" add attribute (joinfield varchar2(20)) cascade ; ALTER TYPE "...
true
7a6f788ea7e20c0dff9927bece56ffdb2e2ae96a
SQL
OlympieSuquet/test_MaisonDuMonde
/SQL_test/test_SQL.sql
UTF-8
558
4.125
4
[]
no_license
SELECT t.date, sum(t.prod_price*t.prod_qty) as "chiffre d'affaires" FROM transactions t WHERE t.date BETWEEN '2019-01-01' AND '2019-12-31' GROUP BY t.date ORDER BY t.date ASC; SELECT t.client_id AS Client, sum(CASE WHEN p.product_type = "MEUBLE" THEN t.prod_price*prod_qty ELSE 0 END) AS ventes_meuble, sum(CASE W...
true
59c5f8acf62f4bd075eb558ecac7a6f670e09664
SQL
CoffeeCodeSwitzerland/DB_Onlineshop
/Scripts/TABLE-CREATE/TABLE_CREATE_Bewertung.sql
UTF-8
407
2.734375
3
[]
no_license
CREATE TABLE Bewertung( BewertungID bigint identity(1,1) NOT NULL, ArtikelID bigint not null, KundeID bigint not null, Kommentar nvarchar(50) Not NUll, CONSTRAINT PK_Bewertung Primary KEY (BewertungID), constraint fk_artikel foreign Key (ArtikelID) References Artikel (ArtikelID) on update cascade, constra...
true
07580d7c432d0dd8411103c7524430ba2a96b03f
SQL
chengjingming060241/gizwits-lease
/sql/0.4/order_update.sql
UTF-8
281
2.84375
3
[]
no_license
ALTER TABLE `order_base` ADD COLUMN `real_money` DOUBLE(11,2) NULL COMMENT '订单金额中真实金额,只有此部分参与分润', ADD COLUMN `promotion_money` DOUBLE(11,2) NULL COMMENT '订单的优惠金额,与real_money合起来就是amount,此部分不参与分润' ;
true
ee88f670240be2e875922796fd49f6a6b04c98b6
SQL
Gudzon9/mps
/mps.sql
UTF-8
63,407
2.8125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 3.5.1 -- http://www.phpmyadmin.net -- -- Хост: 127.0.0.1 -- Время создания: Янв 11 2017 г., 02:00 -- Версия сервера: 5.5.25 -- Версия PHP: 5.4.9 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101...
true
fe2d89a319919dc28b381e69eb2b5dbb41b71d81
SQL
trainocate-repo/WebToDoStarter
/src/main/resources/schema.sql
UTF-8
622
3.234375
3
[]
no_license
CREATE TABLE task_type ( id int(2) NOT NULL, type varchar(20) NOT NULL, comment varchar(50) DEFAULT NULL, PRIMARY KEY (id) ); CREATE TABLE task ( id int(5) NOT NULL AUTO_INCREMENT, user_id int(5) NOT NULL, type_id int(2) NOT NULL, title varchar(50) NOT NULL, detail text, deadline datetime NOT NULL,...
true
f824a2c5f34de81ca4df2d7cab97a2f7aa893591
SQL
erhnam/Raspirover-Server-2018
/mysql3.sql
UTF-8
1,324
3.703125
4
[]
no_license
DROP DATABASE db_rover; CREATE DATABASE db_rover; CREATE USER 'raspirover' IDENTIFIED BY 'raspirover'; GRANT USAGE ON *.* TO 'raspirover'@localhost IDENTIFIED BY 'raspirover'; GRANT ALL privileges ON `db_rover`.* TO 'raspirover'@localhost; FLUSH PRIVILEGES; SHOW GRANTS FOR 'raspirover'@localhost; USE db_rov...
true
9cc453f5fc116b8c852b6f0cbd12c6402252e7a0
SQL
plo94/cr09_Omar_altayyar_carrental-
/cr09_omar_al_tayyar_carrental.sql
UTF-8
8,174
3.265625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Feb 03, 2018 at 04:47 PM -- Server version: 10.1.30-MariaDB -- PHP Version: 7.2.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
86fc9ed43dcc4e884156efad5c1da1f30ed61a19
SQL
pmirand6/soliris
/base_datos/bajada_pablo/soliris/log_institucion_inst.sql
UTF-8
4,539
2.78125
3
[]
no_license
-- -------------------------------------------------------- -- Host: localhost -- Versión del servidor: 5.7.24 - MySQL Community Server (GPL) -- SO del servidor: Win64 -- HeidiSQL Versión: 11.0.0.5965 -- -------------------------------------------------------- /...
true
3d45d9b0b58688f3e98a931aa5844628f89f599b
SQL
divik20/157A_AptProj
/SQL_Files/Tables.sql
UTF-8
5,036
4.21875
4
[]
no_license
use cs157a_aptdatabase; CREATE TABLE Suite( suiteId int NOT NULL AUTO_INCREMENT PRIMARY KEY, roomSharing boolean, price decimal(12,2), specifications varchar(255), petsAllowed boolean, numberOfRooms int ); CREATE TABLE Apartment( name varchar(255), longitude double, latitude double...
true
4f3be62c778124b201097bfbe4480ccb9b010c96
SQL
alexgobran/SQL
/SQLinsert.sql
UTF-8
832
3.65625
4
[]
no_license
--Delete by primary key delete from orders where Id = 26 --Update the order we just added update orders set description= 'My First updated Order for Kroger', customerId = (select id from customers where name = 'Kroger') where id = 26; select * from orders o join customers c on c.id = o.customerid where o.id = 26;...
true
3d5875407e49f0364ca206628c21fdf8017d8dbd
SQL
yz-dd/DList
/DList.sql
UTF-8
32,267
2.96875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Mar 27, 2018 at 09:21 AM -- Server version: 10.1.28-MariaDB -- PHP Version: 7.1.11 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
true
cdbfcfa0b3d94d4b651d0b5ca22039ca455c9524
SQL
gicadmin/allo
/PHENIX/Packages/EDI_OUT_PACK.sql
UTF-8
1,312
2.703125
3
[]
no_license
CREATE OR REPLACE PACKAGE phenix.EDI_OUT_PACK IS PROCEDURE CREATE_EDI_INVOICE_PROC( p_inh_id IN NUMBER ); PROCEDURE CREATE_EDI_ASN_PROC( p_plh_id IN NUMBER ); PROCEDURE CREATE_875_PROC ( p_poh_id IN NUMBER ); --appellé par la réconciliation des DROP (ACCPAC_PACK) PROCEDURE CREATE_EDI_DROP_PROC( p_inh_id IN ...
true
1eb37e7bf390870b7b3b940104f3f76506a3e8bf
SQL
nicolasbonnici/webkernel
/Tests/Dummy/Entities/Deploy/Dummy/Dummy.sql
UTF-8
698
3.390625
3
[ "MIT" ]
permissive
-- ----------------------------------------------------- -- Table `dummy` -- ----------------------------------------------------- CREATE TABLE IF NOT EXISTS `dummy` ( `iddummy` INT(15) NOT NULL AUTO_INCREMENT, `test_string` VARCHAR(45) NOT NULL, `test_int` INT(15) NOT NULL, `test_float` FLOAT NOT NULL, `test...
true
426f119d970c822b6decbb07aaa854a99056a1e8
SQL
QuyenLy87/release-validation-framework
/importer/src/main/resources/scripts/component-centric/component-centric-snapshot-historical-association-active-target.sql
UTF-8
1,241
3.828125
4
[ "Apache-2.0" ]
permissive
/******************************************************************************** component-centric-snapshot-historical-association-active-target Assertion: Active historical association refset members have active or limited status concepts as targets. ***********************************************************...
true
110fcc050e88d3fce652de5c715f92f307f2112c
SQL
UCLALibrary/sql-scripts
/Voyager/Cataloging/Clark 690s VBT-1663.sql
UTF-8
1,088
3.796875
4
[]
no_license
/* Clark Library bibs with 690 fields. Two reports: #1: Only Clark holdings #2: Clark holdings and any others VBT-1663 */ with bibs as ( select distinct record_id as bib_id , field_seq , indicators from vger_subfields.ucladb_bib_subfield where tag like '690%' ) , clark as ( selec...
true
08398122c99ac280760d722557cc96cd8f367f8b
SQL
turma-prog-web/todo-api
/resources/migrations/20210505053836-create-tbl-tasks.up.sql
UTF-8
325
2.75
3
[]
no_license
create table if not exists tbl_tasks ( id serial not null primary key, title varchar(200) not null default null, description text, date_time_limit timestamp, created_at timestamp default CURRENT_TIMESTAMP not null, updated_at timestamp default CURRENT_TIMESTAMP not null, deleted_at timestamp...
true
83310272389004c3347322121572928bfb835afb
SQL
ltaiyh/ssm
/config/demo.sql
UTF-8
4,557
3.375
3
[]
no_license
/* Navicat Premium Data Transfer Source Server : 本地 Source Server Type : MySQL Source Server Version : 50532 Source Host : localhost:3306 Source Schema : demo Target Server Type : MySQL Target Server Version : 50532 File Encoding : 65001 Date: 21/01/2019 09:50:49 */ ...
true
06a04f9243676419d08493f8f91d389de1b2a0d2
SQL
miltondp/phenomexcan
/scripts/200_webapp/postgresql/load_spredixcan.sql
UTF-8
386
2.6875
3
[ "MIT" ]
permissive
drop table if exists spredixcan; create table spredixcan ( pheno_id smallint not null REFERENCES phenotypes, tissue_id smallint not null REFERENCES tissues, gene_num_id smallint not null REFERENCES genes, effect_size double precision null, pvalue double precision not null, zscore double precisi...
true
bd6936fb75d050d18e2cdc799a3a71cb2adf4b52
SQL
879765254/sql
/unit17.sql
GB18030
719
3.40625
3
[]
no_license
1.ûneu create user neu identified by 123456; 2.ûneuȨ,ʹܹ¼ݿ⣬ܹѯscottµemp޸empsal,enameֶ grant create session to neu; grant select on scott.emp to neu; grant update(sal,ename) on scott.emp to neu; 3.ûneuĵ¼Ȩ revoke create session from neu; 4.ûneuжȨ revoke all on scott.emp from neu; 5.ɫrole_neu create role role_ne...
true
14402cacf5661ea580511e911d490b75e497913c
SQL
disqoAssignment/Ecommerce
/repository-service/sql/dump_31_05.sql
UTF-8
6,296
2.921875
3
[]
no_license
-- MySQL dump 10.13 Distrib 5.7.17, for Win64 (x86_64) -- -- Host: localhost Database: ecommerce -- ------------------------------------------------------ -- Server version 5.7.22-log /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS *...
true
73a0720fc53b6d889e2a76ecc2e8103eb7b91793
SQL
quartzz720/quartzz-mode-master
/db/serverlogs.sql
UTF-8
10,586
2.78125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Хост: 127.0.0.1 -- Время создания: Апр 26 2021 г., 20:33 -- Версия сервера: 10.3.16-MariaDB -- Версия PHP: 7.3.6 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CH...
true
8df924b02bd57d98afea3b476697cc7c81a89b85
SQL
AlexFridman/DM-DBMS-OLD
/LabWork_02/2.29.sql
UTF-8
412
3.5
4
[]
no_license
DECLARE CURSOR cur IS SELECT Customers.Customer_Id, rentals.Rent_Id FROM Customers INNER JOIN rentals ON Rentals.Customer_Id = Customers.Customer_Id; BEGIN FOR item IN cur LOOP IF cur%rowcount = 5 THEN dbms_output.put_line('The 5th record'); dbms_output.put_line('Id = ' || ...
true
5edeeec5dcadb79eceb5e18bc84557995447eca6
SQL
j7ng/CLFY_SA
/SA/Procedures/SP_IMPORT_PRC.sql
UTF-8
4,331
3.1875
3
[]
no_license
CREATE OR REPLACE PROCEDURE sa.SP_IMPORT_PRC ( ip_backup_id in number, op_result out VARCHAR2 ) AS bk_id number; cursor c1 is select * from crm.bk_mtm_partclass2sp_value_def@apexprd where backup_id = bk_id; cursor c2 is select * from crm.bk_mtm_sp_carrierfeatures@apexprd where backup_id = bk_id...
true
1e4ef2e844c01bc432310a6f6c724268f4b52c8b
SQL
SkillsFundingAgency/dfc-providerportal-database
/dfc-coursedirectory/Pttcd/Tables/ApprenticeshipQASubmissions.sql
UTF-8
839
2.859375
3
[ "MIT" ]
permissive
CREATE TABLE [Pttcd].[ApprenticeshipQASubmissions] ( [ApprenticeshipQASubmissionId] INT IDENTITY NOT NULL CONSTRAINT [PK_ApprenticeshipQASubmissions] PRIMARY KEY, [ProviderId] UNIQUEIDENTIFIER NOT NULL, [SubmittedOn] DATETIME NOT NULL, [SubmittedByUserId] VARCHAR(100) NOT NULL CONSTRAINT [FK_ApprenticeshipQASubmis...
true
91199d88498197a3f3ff7234158d2822b06aa296
SQL
eric12342006/VrFurniture
/dofs_db (2).sql
UTF-8
4,163
3.078125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- 主機: 127.0.0.1 -- 產生時間: 2017-02-05 16:31:33 -- 伺服器版本: 10.1.10-MariaDB -- PHP 版本: 5.6.19 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARA...
true
d2aeae9fd55a1cc2e88c0e17d0484352d6896afd
SQL
Wuv1Up/incubator-dolphinscheduler
/dolphinscheduler-dao/src/main/resources/sql/upgrade/2.0.4_schema/mysql/dolphinscheduler_dml.sql
UTF-8
3,317
3.59375
4
[ "Apache-2.0", "BSD-3-Clause" ]
permissive
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
true
553e28406360dec7979bc0c028834449d399ac80
SQL
Kristianengberg/RoskildeFrie
/Database/RFB_db.sql
UTF-8
2,404
3.46875
3
[]
no_license
-- MySQL Workbench Forward Engineering SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0; SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0; SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTI...
true
a8a3a0ce7dc0914cab9294ee3dc88209f7b98ec3
SQL
diegoarvz4/SQL-zoo
/select_in_select.sql
UTF-8
1,578
3.984375
4
[]
no_license
/*ANSWERS FROM https://sqlzoo.net/wiki/SELECT_within_SELECT_Tutorial*/ /*1. */ SELECT name FROM world WHERE population > (SELECT population FROM world WHERE name='Russia') /*2. */ SELECT name FROM world WHERE gdp/population > (SELECT gdp/population FROM world WHERE name='United Kingdom') AND ...
true
c30ef25455656520d0b46f4e30e397a8d56f559f
SQL
ttocsnamfuak/hw10sql
/homewrk10.sql
UTF-8
8,322
4.53125
5
[ "MIT" ]
permissive
use sakila; -- 1a. Display the first and last names of all actors from the table actor select first_name, last_name from actor; -- 1b. Display the first and last name of each actor in a single column in upper case letters. Name the column Actor Name ALTER TABLE actor ADD COLUMN ActorName VARCHAR(50); UPDATE actor ...
true
57c19e970cccc63c11602ec37ccdeb997ed65d39
SQL
zman2013/spring-multiple-models
/multiple-models-data/src/test/resources/db/sql/prepare-data.sql
UTF-8
271
2.921875
3
[]
no_license
CREATE SCHEMA SA AUTHORIZATION DBA; -- 个人 CREATE TABLE person( id bigint NOT NULL PRIMARY KEY GENERATED ALWAYS AS IDENTITY (START WITH 0, INCREMENT BY 1), name VARCHAR(45) DEFAULT NULL ); -- 插入测试数据 INSERT INTO person (name) VALUES ('name-test-1');
true
d69b8c7a6ae719981fae35c05159b62b36af72b5
SQL
yezhibo/leetcode
/sql/select_employee.sql
UTF-8
249
3.5
4
[]
no_license
# 181. 超过经理收入的员工 # https://leetcode-cn.com/problems/employees-earning-more-than-their-managers/ SELECT a.Name AS 'Employee' FROM Employee AS a, Employee AS b WHERE a.ManagerId = b.Id AND a.Salary > b.Salary
true
9ebdabcc445f3419074de95168198301ffe2c3f7
SQL
heonjunkim/Biz_502_2020_07_DBMS
/oracle/관리자(2020_07_14).sql
UTF-8
5,997
3.875
4
[]
no_license
-- Comment : 주석 /* 여러줄 주석 SQL 명령을 입력할때 명령이 끝났다라는 것을 알리기 위해 ; 붙여준다. Ctrl + Enter : 현재 커서가 있는곳이 명령문을 DBMS로 보내고 결과를 받기 */ -- 현재 오라클에 접속된 사용자(sys)가 관리하는 table들이 잇는데 -- 그중에서 tab이라는 이름의 table 정보를 가져와서 나에게 보여달라 -- 오라클의 tab table은 현재 접속된 사용자가 관리하는 -- table DB Object(객체)들의 정보를 보관하고 있는 table SELECT * FROM tab...
true
4a59407bed146733c42f22cfc499c25a09ba93be
SQL
jackc/tpr
/postgresql/migrations/005_create_unread_items.sql
UTF-8
469
3.421875
3
[]
no_license
create table unread_items( user_id integer not null, feed_id integer not null, item_id integer not null, primary key(user_id, feed_id, item_id), foreign key (user_id, feed_id) references subscriptions (user_id, feed_id) on delete cascade, foreign key (feed_id, item_id) references items (feed_id, id) on dele...
true
e23966678b615938674d71fe08435a7760c29142
SQL
shugit/cs1520-a22
/db_setup.sql
UTF-8
1,040
3.34375
3
[]
no_license
USE shz58db; DROP TABLE IF EXISTS posts; DROP TABLE IF EXISTS users; DROP TABLE IF EXISTS reviews; DROP TABLE IF EXISTS messages; DROP TABLE IF EXISTS comments; CREATE TABLE posts ( id INT UNSIGNED AUTO_INCREMENT PRIMARY KEY, user_id INT UNSIGNED, title VARCHAR(50), body TEXT, created DATETIME, modified DATETIME...
true
8e3d3a3ce8d685ed6ec382844dde29c34ba60d06
SQL
anggitoabimanyu/pemograman-web1
/sql/profil.sql
UTF-8
4,471
2.953125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 03 Nov 2020 pada 01.45 -- Versi server: 10.4.14-MariaDB -- Versi PHP: 7.4.10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@C...
true
affcb205de80d0b5429e0f92e7962cd84a5e7cae
SQL
xiuqianli1996/jsp_bbs
/jsp_bbs.sql
UTF-8
8,646
3.375
3
[ "MIT" ]
permissive
/* SQLyog Ultimate v11.27 (32 bit) MySQL - 5.7.14 : Database - jsp_bbs ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS...
true
c35ebd172cac5fbe48d1b58e156f757312659301
SQL
chanoonna/open-house-of-commons-api
/db/schema/04_motions.sql
UTF-8
434
2.5625
3
[]
no_license
DROP TABLE IF EXISTS motions CASCADE; CREATE TABLE motions ( id SERIAL PRIMARY KEY NOT NULL, vote_num INTEGER NOT NULL, parl_num INTEGER NOT NULL, sess_num INTEGER NOT NULL, sitting_num INTEGER NOT NULL, bill_num VARCHAR(255), bill_url VARCHAR(255), motion_url VARCHAR(255) NOT NULL, -- mp_id for mot...
true
b7629ea8baf41db3683afe1ee9a12f366378ffdb
SQL
das-praktische-schreinerlein/mytourbook
/installer/db/mysql/mytbdb/fixture-set-todokeywords.sql
UTF-8
1,178
3.3125
3
[]
no_license
-- -- set todo-keywords -- -- insert keyword INSERT INTO keyword (kw_name) SELECT "KW_TODOKEYWORDS" FROM dual WHERE NOT EXISTS (SELECT 1 FROM keyword WHERE kw_name="KW_TODOKEYWORDS") -- add todo-keywords INSERT INTO kategorie_keyword(k_id, kw_id) SELECT k_id, (SELECT MAX(kw_id) FROM keyword WHERE kw_name="KW...
true
afb0db6965c1504e43f828ef61a0a2a98f87fe15
SQL
com-chain/simpleUserHandling
/DataBase.sql
UTF-8
1,123
2.96875
3
[]
no_license
CREATE USER 'monnaie_db_user'@'localhost'; set password for 'monnaie_db_user'@'localhost'=password('<yourPassword>'); CREATE DATABASE IF NOT EXISTS monnaie_db; GRANT SELECT, INSERT, UPDATE, DELETE ON monnaie_db.* TO 'monnaie_db_user'@'localhost'; USE monnaie_db; CREATE TABLE MonnaieSiteUser ( Id IN...
true
ac751cd9a3652389a9d30b359b14317d95aa58ed
SQL
Coding-Squad/accounting
/src/main/resources/db/migration/V4__Create_account_closure_table.sql
UTF-8
481
3.265625
3
[]
no_license
CREATE TABLE ACCOUNT_CLOSURE( ANCESTOR_ACCOUNT_ID VARCHAR(36) NOT NULL, DESCENDANT_ACCOUNT_ID VARCHAR(36) NOT NULL, CONSTRAINT ACCOUNT_CLOSURE__ANCESTOR_ACCOUNT_ID__FK FOREIGN KEY(ANCESTOR_ACCOUNT_ID) REFERENCES ACCOUNT(ID), CONSTRAINT ACCOUNT_CLOSURE__DESCENDANT_ACCOUNT_ID__FK FOREIGN KEY(DESCENDANT_ACCOUNT_ID...
true
4e83fc4d701b7c3532416b99bf349c4dc94242ae
SQL
younggie/watch-gql-server
/prisma/migrations00/20210521220232_congressman/migration.sql
UTF-8
773
3.671875
4
[]
no_license
/* Warnings: - Added the required column `congressmanId` to the `Bill` table without a default value. This is not possible if the table is not empty. */ -- AlterTable ALTER TABLE "Bill" ADD COLUMN "congressmanId" INTEGER NOT NULL; -- CreateTable CREATE TABLE "Congressman" ( "id" SERIAL NOT NULL, "nam...
true
623608da913c2f6bc239f4fe5a0b87a047a70be9
SQL
BranfordTGbieor/openmrs-module-mirebalaisreports
/api/src/main/resources/org/openmrs/module/mirebalaisreports/sql/fullDataExport/edTriage.sql
UTF-8
15,669
3.90625
4
[]
no_license
SELECT p.patient_id, zl.identifier zlemr, dos.identifier dossier_id, zl_loc.name loc_registered, un.value unknown_patient, pr.gender, ROUND(DATEDIFF(e.encounter_datetime, pr.birthdate)/365.25, 1) age_at_enc, pa.state_province department, pa.city_village commune, pa.address3 section, pa.address1 locality, pa.address2 st...
true
82b40b710166000618a4082ba3c7b1f1476fbb5b
SQL
mbarretogit/sql
/FTC_POSSIVEIS_CONCLUINTES.sql
UTF-8
1,855
3.875
4
[]
no_license
SELECT DISTINCT A.ALUNO ,A.NOME_COMPL AS NOME_ALUNO ,P.CPF ,P.E_MAIL ,P.FONE ,A.CURRICULO ,A.CURSO ,A.TURNO ,A.SERIE ,A.UNIDADE_FISICA ,CONVERT(VARCHAR(10),A.DT_INGRESSO,103) AS DT_INGRESSO ,A.ANO_INGRESSO ,A.SEM_INGRESSO ,C.NOME AS NOME_CURSO ,((SELECT format(SUM(H.HORAS_AULA), '#') *100 FROM LY_HISTMATRICULA H WHER...
true
d4eb05b2a86834bcb69af276b1b1945ab32ef7ca
SQL
DSRoden/spotlight
/db/tables/ilikes.sql
UTF-8
161
2.703125
3
[]
no_license
create table ilikes( user_id integer not null references users(id), image_id integer references images(id), day_id integer not null references days(id) );
true
b2fcf9c2b409e5c0dad9ee75984165459c1e1410
SQL
caoxiaowei414/github
/new_wuliancard.sql
UTF-8
26,939
3.328125
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : 120.24.242.243-stxy Source Server Version : 50536 Source Host : 120.24.242.243:3306 Source Database : new_wuliancard Target Server Type : MYSQL Target Server Version : 50536 File Encoding : 65001 Date: 2018-11-26 08:57:59 */ SET FOREI...
true
2f503e0af63d90be5e9dedb2565d589f07917cbc
SQL
bellmit/origin
/family_order/sql/TF_BH_TRADE/SEL_BY_SEARCH.sql
UTF-8
1,619
2.71875
3
[]
no_license
SELECT to_char(trade_id) trade_id,to_char(batch_id) batch_id,to_char(bpm_id) bpm_id, trade_type_code, f_csm_getnamebycode(trade_type_code,:EPARCHY_CODE,'TD_S_TRADETYPE') TRADE_TYPE, in_mode_code, priority, subscribe_state, next_deal_tag, product_id, f_csm_getnamebycode(...
true
3025d6eef783766e5bb3190260cc0441f340aac9
SQL
sadikovi/Oracle-BI-Comments
/CommentPKG (DB Branch)/fnc_get_next_word.sql
UTF-8
536
2.671875
3
[]
no_license
create or replace function fnc_get_next_word( p_list in varchar2, p_spos in number, p_sep in varchar2, p_res out varchar2 ) return number is fp number(3) := 1; lp number(3) := 0; s varchar2(1024); begin fp := p_spos; s := substr(p_list,fp,length(p_list)); if s not like '...
true
eb94b2ddc19c38a37aabe47932fdd6def62e90f8
SQL
mirrormind/mo-test-eam
/mo-test-eam/src/moeam/db/query/driver/Users.sql
UTF-8
252
2.5625
3
[ "Apache-2.0" ]
permissive
-- This is dangerous and not compliant with JDBC specs, should be changed in the future DROP TABLE IF EXISTS users; CREATE TABLE users ( P_userId int PRIMARY KEY NOT NULL AUTO_INCREMENT UNIQUE, userName VARCHAR(30), password VARCHAR(30) );
true
163847c6cbf4bf5faaa555fa964f70170752f149
SQL
xijiaoguai/admin
/sql_db/menu.sql
UTF-8
598
3.125
3
[]
no_license
CREATE TABLE `admin_menu` ( `id` int UNSIGNED NOT NULL AUTO_INCREMENT, `name` varchar(50) NOT NULL COMMENT '菜单名称', `url` varchar(255) NOT NULL DEFAULT '' COMMENT '菜单地址', `proj_id` int UNSIGNED NOT NULL COMMENT '所属项目id', `pid` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '所属项目id', `status` tinyint unsigned NOT N...
true
5b05e9a38cf5721b54f90489714f0eb350a1ce80
SQL
moriarty-verana/sql-scripts
/GL Bad Debt v.1.sql
UTF-8
2,247
4.03125
4
[]
no_license
/* 11/18/15 BAD DEBT GL CPT CODE 5002, 6002, 5060 5002 to collection agency 6002 recovery code (patient payment, set for a year with no recovery is terminal debt) 5060 terminal debt Providers: 1603149 post dates: 5/1 - 5/31 7,232.73 11106127 SWOH BAD DEBT RECOVERY REPORT Provider: 1624493 dates: 2/1 - 2/28 6002 + 506...
true
803b603eb0671416251b6ef2d4c8c5126909a230
SQL
IndianaUEdFi/CompassReports-Datamart
/Database/EdFi.Ods.Db.Ods.CompassReports/cmp/Views/AssessmentFact_WIDA.sql
UTF-8
4,478
3.859375
4
[]
no_license
CREATE VIEW [cmp].[AssessmentFact_WIDA] AS /* STUDENT ASSESSMENT PERFORMANCE FOR SAT AND ACT TAKEN */ WITH StudentEnrollment AS ( SELECT * FROM cmp.StudentEnrollment() ) ,PERFORMANCELEVELS AS ( SELECT PerformanceLevel, ScoreResult, PerformanceKey FROM cmp.PerformanceDim() WHERE PerformanceLevel IN ('Entering', 'Emerg...
true
bfb54ef2ba8e5f7e330a020e2b10ceae15840e23
SQL
silence-do-good/stress-test-Postgres-and-MySQL
/dump/high/day08/select1618.sql
UTF-8
264
2.875
3
[]
no_license
SELECT sen.name FROM SENSOR sen, SENSOR_TYPE st, COVERAGE_INFRASTRUCTURE ci WHERE sen.SENSOR_TYPE_ID=st.id AND st.name='WiFiAP' AND sen.id=ci.SENSOR_ID AND ci.INFRASTRUCTURE_ID=ANY(array['6052','5032','4100_7','3065','2052','2209','4206','4038','4059','6218'])
true