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
0803866a3a3c35f3a39f87d43959ffc2d110dced
SQL
thebravoman/elsys-db-practices
/exam2016/exam20160218/b/Stefan_Iliev_12B_28/create.sql
UTF-8
753
3.59375
4
[]
no_license
/*1. Create the following tables Create table Article_26 with columns: published_on->date, created_on->date, name->varchar, Create table Category with columns: name->varchar, priority->double, Create table User with columns: income->float, created_on->date, description->long text, Create table Tag with c...
true
3ff745b760c7d5526a3388d2735a5ff0efab2b12
SQL
aholanda12/employee-tracker
/seeds.sql
UTF-8
1,785
2.8125
3
[ "MIT" ]
permissive
INSERT INTO department (name) VALUES ("Marketing"); INSERT INTO department (name) VALUES ("Accounting"); INSERT INTO department (name) VALUES ("IT"); INSERT into role (title, salary, department_id) VALUES ("Marketing Manager", 100000, 1); INSERT into role (title, salary, department_id) VALUES ("Marketing Coordinator",...
true
3f47caff0cca3569f7ee2cc3efafb5fdd4d72550
SQL
algarran/project2
/config/heroku.sql
UTF-8
931
3.125
3
[]
no_license
create table User ( id int auto_increment not null, email varchar(255) null unique, password varchar(255) null, primary key(id) ); create table Client ( id int auto_increment not null, firstName char(255) not null, lastName char(255) not null, phone varchar(255) not null, email varchar(255) null unique, primar...
true
3cb461395592b0306ec3bc8d99e7dc118465939a
SQL
vitorsalesdev/generation_MySQL
/exercicios28-09/construcao.database.sql
UTF-8
1,498
4.15625
4
[]
no_license
create database if not exists db_construindo_a_nossa_vida; use db_construindo_a_nossa_vida; create table if not exists tb_categoria( id int(10) auto_increment, departamentoDoMaterial varchar(60), tipoDeMaterial varchar(60), primary key(id) ); create table if not exists tb_produto ( id int(10) auto_increment, nome va...
true
f74eb5d06beaab71df5d724a4888b037c40c1b21
SQL
devmailrepository/app
/src/main/resources/changesetsSQL/changeSet_001.sql
UTF-8
1,794
3.46875
3
[]
no_license
--liquibase formatted sql --changeset bulka:1 CREATE TABLE IF NOT EXISTS country_codes ( id SERIAL PRIMARY KEY NOT NULL, code VARCHAR(3) NOT NULL ); --changeset bulka:2 context:!test INSERT INTO country_codes (code) VALUES ('BEL'); INSERT INTO country_codes (code) VALUES ('GBR'); INSERT INTO country...
true
38c80ab2d0eef71372db2c1dab64ada793fcae24
SQL
eXtr3me/IWantToBreakFree
/src/main/resources/db.sql
UTF-8
690
2.640625
3
[]
no_license
DELETE FROM customer; INSERT INTO customer(ID, USERNAME, PASSWORD, EMAIL, PHONE, ADDICTION) VALUES (1, 'James', '1234', 'james@gmail.com', '666777888', 'tobacco'); INSERT INTO customer(ID, USERNAME, PASSWORD, EMAIL, PHONE, ADDICTION) VALUES (2, 'John', '2345', 'john@gmail.com', '777666888', 'tobacco'); INSERT INTO ...
true
27c04f84c1ead54082964845c94f2b74f2c712cf
SQL
yeojeonghyeon/sixth
/database/20190710.sql
UTF-8
1,358
3.578125
4
[]
no_license
DECLARE CURSOR C_CUSTOMER IS SELECT A.CUST_ID, A.CUST_NM, A.ADDRESS, A.CEL_PHONE FROM CUSTOMER A WHERE A.CUST_ID = '2019' ; V_CUSTOMER_REC CUSTOMER%ROWTYPE; V_BOOK_REC BOOK%ROWTYPE; BEGIN SELECT A.BOOK_ID, A.BOOK_NM INTO V_BOOK_REC.BOOK_ID, V_BOOK_REC.BOOK_NM FROM ...
true
5ad163b77b55d7c296369cc29b2db9be953a9630
SQL
KirilPecev/CSharp-DB-Fundamentals
/01. C# Databases Basics/01. Data Definition and Datatypes - Exercises/16. Create SoftUni Database.sql
UTF-8
752
3.84375
4
[]
no_license
CREATE DATABASE SoftUni USE SoftUni CREATE TABLE Towns ( Id INT PRIMARY KEY IDENTITY, [Name] NVARCHAR(50) NOT NULL, ) CREATE TABLE Addresses ( Id INT PRIMARY KEY IDENTITY, AddressText NVARCHAR(MAX) NOT NULL, TownId INT FOREIGN KEY REFERENCES Towns (Id) NOT NULL ) CREATE TABLE Departments ( Id INT PRIMARY KEY...
true
3acbcd29e42a7414169dc1430566ca2cb6dbdc94
SQL
qametmammadli/mortgage-calculator
/sql/credit.sql
UTF-8
1,058
3.640625
4
[]
no_license
CREATE TABLE CREDIT ( ID NUMBER NOT NULL , CUSTOMER_ID NUMBER NOT NULL , HOME_PRICE NUMBER NOT NULL , INITIAL_PAYMENT NUMBER NOT NULL , CREDIT_AMOUNT NUMBER NOT NULL , INTEREST_AMOUNT NUMBER NOT NULL , FIRST_PAYMENT_DATE DATE , LAST_PAYMENT_DATE DATE , ACTION_DATE DATE DEFAULT sysdate NOT NULL , CONSTRAINT ...
true
259a399c82bfc9e15dc6dce8af78115b3d842b8f
SQL
leandrocprates/TesteJerseyWithAngularRest
/src/main/resources/dump_cadastro_usuario.sql
UTF-8
3,716
3.046875
3
[]
no_license
CREATE DATABASE IF NOT EXISTS `teste_peopleway` /*!40100 DEFAULT CHARACTER SET latin1 */; USE `teste_peopleway`; -- MySQL dump 10.13 Distrib 5.6.24, for Win64 (x86_64) -- -- Host: localhost Database: teste_peopleway -- ------------------------------------------------------ -- Server version 5.5.45 /*!40101 SET @O...
true
2fff9cf994f6844a6a026114c9db721572e0990b
SQL
loveleen1234/new-db-test
/V5__AddEmployyePostionView.sql
UTF-8
173
2.984375
3
[]
no_license
create view employee_positions AS Select employees.id AS employee_id, first_name, last_name, title FROM employees LEFT JOIN titles on employees.title_id=titles.id
true
d2bff154a07fd2f0fbc7c7f67aa715367312b508
SQL
parallaxion/Board-Game-ETL
/STLPieces mysql query.sql
UTF-8
349
3.1875
3
[]
no_license
CREATE DATABASE stlpieces_db; USE stlpieces_db; select * from stlpiecesclean; select * from gameid; CREATE TABLE stlpieceswithid SELECT stlpiecesclean.name as game, gameid.id as id, category, playerno, difficulty, avgplaytime, age FROM stlpiecesclean INNER JOIN gameid ON stlpiecesclean.name=gameid.name; se...
true
9fec70d94d91dba3437303502ec86ac7819b5f4b
SQL
pankajmangl/TPV_Database
/TransformPV/Procedures/P_ETL_CFG_USER_GROUPS_HIST.sql
UTF-8
1,927
3.140625
3
[]
no_license
CREATE OR REPLACE PROCEDURE &TRANSFORMPV_USER..P_ETL_CFG_USER_GROUPS_HIST ( LV_GROUP_ID NUMBER, LV_VERSION_NUMBER NUMBER, LN_AUDIT_ID NUMBER, LN_OPERATION_TYPE NUMBER ) AS LD_SYSDATE DATE := SYSDATE; LD_EFFECTIVE_END_DATE DATE := TO_DATE ('...
true
d121b7e309fa692ba70c5676470f0700477e8943
SQL
ib-anurag-mishra/testProject
/config/schema/Url_schema_16th_Aug.sql
UTF-8
234
2.546875
3
[]
no_license
CREATE TABLE IF NOT EXISTS `urls` ( `id` int(11) NOT NULL AUTO_INCREMENT, `library_id` int(11) NOT NULL, `domain_name` varchar(255) NOT NULL, `created` datetime NOT NULL, `modified` datetime NOT NULL, PRIMARY KEY (`id`) );
true
d163cf68bd09f0275a1db13fe6d5db45c9647438
SQL
Orion-qx/414
/console.sql
UTF-8
1,927
3.84375
4
[]
no_license
-- part 1 create table Carriers(cid varchar(7) primary key, name varchar(83) not null); create table Months(mid int primary key, month varchar(20) not null); create table Weekdays(did int primary key, day_of_week varchar(20) not null); create table Flights( fid int primary key, month_id int not null references Month...
true
4bbe34ad98d6727303c176828f6b9330aa494c9e
SQL
Nabil-Chaouki/TDI205
/Base de données/S2 - Langage SQL/P2 - Langage SQL/P10 - Partie 2 - Langage SQL/Groupe D/2.select -jointure/omar ben sabih el imrany.sql
UTF-8
368
2.984375
3
[]
no_license
insert into projets(id_projet,titre) values(1,'evaluation'); select * from projets; select a.id_projet,a.titre,t.projets.id_projet from projets a.inner join taches t On a.id = t.id_projet; select b.id_projet,b.titre,t.projets.id_projet , ts.id_tache from projets inner join taches On b.id_projet = ts.id_tache inner joi...
true
eb902e101562e65395e92a395879f14e0a16fb04
SQL
dineshjrd/hackerrank_sql
/The Pads.sql
UTF-8
250
3.0625
3
[]
no_license
Select concat(Name,'(',left(occupation,1),')') as name from occupations order by name; Select concat('There are total ',count(occupation),' ',lcase(occupation),'s.') as total from occupations group by occupation order by count(occupation),occupation
true
126b6dab878ceddf3540e52a86eae1d58386ccfe
SQL
ihkawiss/wodss
/backend/src/main/resources/data.sql
UTF-8
19,771
2.59375
3
[ "Apache-2.0" ]
permissive
-- sample account (admin) INSERT INTO `account` (`id`, `activation_key`, `active`, `admin`, `mail`, `password`, `salt`, `username`, `verified`) VALUES (1, '92549257615158256383', b'1', b'1', 'kevin.kirn@students.fhwn.ch', '$argon2i$v=19$m=65536,t=20,p=4$mfYfUobRiPYPkYeQ5V3rtw$qHeBhHdtABi079RWeg9nzLRNw+lCgW4YBDgA30zfCq...
true
52eea322ec9e7108d0699873967daf691dfec7bc
SQL
vacrozet/Camagru
/config/Database.sql
UTF-8
3,070
3.203125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.6.0 -- http://www.phpmyadmin.net -- -- Client : localhost -- Généré le : Mar 06 Juin 2017 à 09:29 -- Version du serveur : 5.7.11 -- Version de PHP : 7.0.0 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_C...
true
8eb366bd22922f80863dc8ad527eb7b8a5cb5208
SQL
wenrurumon/smart_city
/lingdian/4_path_len.sql
UTF-8
177
3.375
3
[]
no_license
select a.prov_id, count(1) as n, sum(r) as sr, max(r) as mr from (select prov_id, uid, count(1) as r from temp_ld20180717_table2 group by prov_id, uid) a group by a.prov_id;
true
13d4ca15b39553ae09c7f829972b88a122749bcf
SQL
anocero4133/StudentDatabase
/projectdata.sql
UTF-8
21,093
3.234375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3307 -- Generation Time: Jul 16, 2020 at 12:03 AM -- Server version: 10.1.38-MariaDB -- PHP Version: 7.3.4 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET...
true
a5cf92b0f5131be90015229e720564f7534ef171
SQL
sdyycn/myvotes
/doc/eclipse.sql
UTF-8
6,629
3.53125
4
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.2.11 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: 2015-06-06 08:57:37 -- 服务器版本: 5.6.21 -- PHP Version: 5.6.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @...
true
e7059f73441ce920e43ceed2de5cd0e03740e3f0
SQL
CUBRID/cubrid-testcases
/sql/_02_user_authorization/_02_authorization/_001_grant/cases/1013.sql
UTF-8
502
3.125
3
[ "BSD-3-Clause" ]
permissive
--+ holdcas on; --Grant user privilege of select on specifically class CALL login('dba','') ON CLASS db_user; CREATE CLASS DCL1 (id INTEGER); CREATE CLASS DCL2 (id INTEGER); CALL add_user('DCL_USER1','DCL1') ON CLASS db_user; GRANT SELECT ON DCL1, DCL2 TO DCL_USER1; CALL login('DCL_USER1','DCL1') ON CLASS db_user;...
true
6f6a5810a499789a8f51d74789924c956c9fd1c8
SQL
jmitchell0528/gaming-prac
/db/delete_high_scores.sql
UTF-8
115
2.6875
3
[]
no_license
DELETE FROM high_scores WHERE id IN ( SELECT id FROM high_scores ORDER BY score ASC LIMIT 1 ) RETURNING *;
true
2738e1d9012c5bd62e510ed54975c1fdb065daa5
SQL
vijaydairyf/TimelyFish
/SolomonApp/dbo/Stored Procedures/dbo.ARDoc_applbatnbr_applbatseq.sql
UTF-8
331
2.84375
3
[]
no_license
 Create Procedure ARDoc_applbatnbr_applbatseq @parm1 varchar ( 10), @parm2beg int, @parm2end int, @parm3 varchar (10) as Select * from ARDoc where applbatnbr = @parm1 and applbatseq between @parm2beg and @parm2end and refnbr like @parm3 and doctype <> 'SB' order by custid, doctype, ...
true
f715219a82072faa49d920a8d50c0f138b111553
SQL
wangbb13/wangbb13.github.io
/research/generator/version1/mytest/ddl.sql
UTF-8
878
2.984375
3
[]
no_license
create table user ( user_id varchar(16) primary key, tags varchar(21) ); create table role ( role_id varchar(5) primary key ); create table sect ( sect_id varchar(6) primary key, tags varchar(6) ); create table actor ( actor_id varchar(9) primary key, tags ...
true
6da0d16c7d4eb59dc62aa0f55cb7dfa3608cae9f
SQL
KevinClauson/holbertonschool-higher_level_programming
/0x0D-SQL_introduction/15-groups.sql
UTF-8
170
3.265625
3
[]
no_license
-- lists the number of records with the same score in the table SELECT score, COUNT(score) AS number FROM second_table GROUP BY score ORDER BY number DESC;
true
37c1b74284238966b10dcff6429b562920cb8e4a
SQL
b4oshany/asap
/backup/assess.sql
UTF-8
1,573
2.6875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 3.4.5 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Nov 06, 2012 at 04:51 PM -- Server version: 5.5.16 -- PHP Version: 5.3.8 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!...
true
e2aeb828fe58aed22e8144790ca7012b80b871fb
SQL
demianrenzulli/web-almanac-queries-pwa
/workbox-packages-frequency.sql
UTF-8
1,381
3.5625
4
[]
no_license
#standardSQL #Workbox packages by url (detail) CREATE TEMPORARY FUNCTION getWorkboxPackages(workboxInfo STRING) RETURNS ARRAY<STRING> LANGUAGE js AS ''' try { var workboxPackageMethods = Object.values(JSON.parse(workboxInfo)); if (typeof workboxPackageMethods == 'string') { workboxPackageMethods = [workbox...
true
d234bf06af8f4d72c373dfc5727907db49f599d1
SQL
AvishekaviD/PRM
/CoreBriefs/244.sql
UTF-8
6,787
3.375
3
[]
no_license
select 'KKT' as brand , case when lower(b.region) like '%uttar%' then 'Uttar Pradesh' else b.region end as region ,case when option_provided = 1 then 'Male' when option_provided = 2 then 'Female' end as Gender , count(distinct a.best_mobile_number_hash) as counts from PRM.kkt_cdr_contest_trans_ST a join PRM.ref_...
true
37423344b364b953186c354c4adae4555ded72e2
SQL
luroto/holbertonschool-higher_level_programming
/0x0E-SQL_more_queries/14-my_genres.sql
UTF-8
298
3.71875
4
[]
no_license
-- This script lists all the genres that are not linked with any shows SELECT tv_genres.name FROM tv_genres INNER JOIN tv_show_genres ON tv_genres.id = tv_show_genres.genre_id INNER JOIN tv_shows ON tv_show_genres.show_id = tv_shows.id WHERE tv_shows.title = "Dexter" ORDER BY tv_genres.name ASC;
true
f3aac404155ac8abdfd3c06357d1161af18a4b16
SQL
nss-day-cohort-48/chinook-mecrowley
/6-sales_agent_invoices.sql
UTF-8
252
3.65625
4
[]
no_license
SELECT Employee.FirstName || ' ' || Employee.LastName AS FullName, Invoice.InvoiceId FROM Employee JOIN Customer ON Employee.EmployeeId = Customer.SupportRepId JOIN Invoice ON Customer.CustomerId = Invoice.CustomerId ORDER BY Employee.LastName;
true
9daf816d28e705837649b8d5f464b3cd1d560f6b
SQL
open-estuary/appbenchmark
/toolset/data-generator/EC/EC.sql
UTF-8
16,448
3.5625
4
[]
no_license
/* Navicat MySQL Data Transfer Source Server : localhost Source Server Version : 50717 Source Host : localhost:3306 Source Database : ec3 Target Server Type : MYSQL Target Server Version : 50717 File Encoding : 65001 Date: 2017-10-09 14:27:33 */ SET FOREIGN_KEY_CHECKS=0; -- -----...
true
fe4adc1c1f9b658e6268e00e77b95bd5f25277fb
SQL
rainly/scripts-1
/bing/bin/sql/sp_rpt_rcp_recipepublish_dm_init.sql
UTF-8
1,688
3.171875
3
[]
no_license
--菜谱发布日指标(初始化) insert overwrite table bing.rpt_rcp_recipepublish_dm select to_date(nvl(rp.reviewtime,rp.updatetime)) as statis_date, count(rp.recipeid) as recipe_num, count(distinct rp.userid) as user_num, count(case when rp.PostFrom=0 then rp.recipeid end) as web_recipenum, count(case when rp.PostFrom=1 then rp.reci...
true
6e966d6adaeec6949692b866e1d4fa90ae735297
SQL
jan-verm/Design_project
/database/updateClassic_2.sql
UTF-8
2,354
4
4
[]
no_license
SET @A = CAST ((SELECT version FROM "Databaseversion") AS INTEGER); PRINT 'Current databese version = ' + CAST (@A AS STRING); IF @A = 1 BEGIN PRINT 'Updating database'; --Replies CREATE TABLE "Comment_reply" ( "crID" serial NOT NULL, "commentID" integer NOT NULL, "replyID" integer NOT NULL, CONSTRA...
true
43343e852365d4c04d6ef97241e1500d8424ba33
SQL
joeltonluz/challenge-inovaico
/backend/src/database/metdata.sql
UTF-8
424
3.296875
3
[]
no_license
CREATE TABLE "patients" ( "id" SERIAL PRIMARY KEY, "name" text NOT NULL, "phone" text NOT NULL, "email" text NOT NULL, "birth_date" timestamp, "gender" text, "height" float, "weight" float ); CREATE TABLE "schedules" ( "id" SERIAL PRIMARY KEY, "id_patient" int NOT NULL, "date" timestamp NOT NULL,...
true
159233844f3a6fc30e357c77ca7f8d25824a8564
SQL
salvajih/LSC-Grants
/Easygrants_Web_LSC/Easygrants_Web_LSC/DBScripts/Build 2015.x/Build 2015.10a/05_Create_vLSC_SUBGRANT_REQUEST_REVIEWER_TO_ASSIGN.sql
UTF-8
245
2.703125
3
[]
no_license
CREATE VIEW vLSC_SUBGRANT_REQUEST_REVIEWER_TO_ASSIGN AS SELECT wf_task_assignment_id ,dbo.fnLSC_SUBGRANT_REQUEST_OPP_REVIEWER(wf_task_assignment_id) reviewer_to_assign_person_id FROM LSC_WFTA_SUBGRANT WHERE wf_task_assignment_id IS NOT NULL
true
22471100b847c3e64d5f61264f10c263a6a2d0b1
SQL
Fukada9905/pythagora
/sql/archives/queries/master/usp_get_user_information.sql
UTF-8
504
3.265625
3
[]
no_license
DROP PROCEDURE IF EXISTS usp_get_user_information; delimiter // CREATE PROCEDURE usp_get_user_information( IN p_user_id varchar(20) ) BEGIN SELECT US.user_id , US.user_password , US.user_name , US.user_name_kana , UG.user_divide , US.user_group_id , UG.user_group_name , US.management...
true
a89915faf1b31e765ff78e62192aeec12864ba2e
SQL
msvcanton/eVisor
/eVisorPersistence/src/main/sql/3-createSequences.sql
UTF-8
2,709
2.671875
3
[]
no_license
/********************************************************/ /************** SEQUENCE CREATION SCRIPT ******************/ /********************************************************/ /** SEQUENCE FOR THE PRIMARY KEY OF THE RECEIVERS TABLE **/ DROP SEQUENCE SQ_RECEIVERS; CREATE SEQUENCE SQ_RECEIVERS START WITH 1 MAXV...
true
7a22bcbd4b38048ef63c6b3e5005f1a31f2226e6
SQL
narendratreddi/cscripts
/cli 2/cli_odo_delete_sum_day.sql
UTF-8
1,480
3.734375
4
[]
no_license
SET TERM ON HEA ON LIN 2490 PAGES 100 TAB OFF FEED OFF ECHO OFF VER OFF TRIMS ON TRIM ON TI OFF TIMI OFF LONG 240000 LONGC 2400 NUM 20 SERVEROUT OFF; ALTER SESSION SET NLS_DATE_FORMAT = 'YYYY-MM-DD"T"HH24:MI:SS'; ALTER SESSION SET NLS_TIMESTAMP_FORMAT = 'YYYY-MM-DD"T"HH24:MI:SS.FF3'; -- COL begin_date FOR A13 TRUNC; CO...
true
7ee392db223c4c158d10d64bb0f12ce3f63ebabf
SQL
matthew-davis/quizically
/Old/quizzically - production - v1/quizzically Database/quizzcially_base_db_SQL.sql
UTF-8
4,865
3.421875
3
[]
no_license
CREATE TABLE B_QUESTION ( `QUESTION_ID` INT NOT NULL ,PRIMARY KEY (QUESTION_ID) ,`CATEGORY_ID` INT NOT NULL ,`SUB_CATEGORY_ID` INT NULL ,`DIFFICULTY_ID` INT NOT NULL ,`LOCATION_ID` INT NULL ,`ERA_ID` INT NULL ,`QUESTION` VARCHAR(1000) NOT NULL ,`CORRECT_ANSWER` VARCHAR(1000) NOT NULL ,`WRONG_ANSWER...
true
f194e9f6d5a7fdf750f69cc99f1e2c7a045093cf
SQL
sm1hero/sm1heroTestPHP
/Task_2/mydb_book.sql
UTF-8
219
2.6875
3
[]
no_license
DROP TABLE IF EXISTS `book`; CREATE TABLE `book` ( `book_id` int NOT NULL, `book_name` varchar(45) DEFAULT NULL, PRIMARY KEY (`book_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
true
9707e8bca1e16ebc4d0aea7afe83aa9fec2af7de
SQL
SOLA-NIGERIA/database
/utilities/create_document_backup_table.sql
UTF-8
973
2.8125
3
[]
no_license
-- Table: document.document DROP TABLE document.document_backup; CREATE TABLE document.document_backup ( id character varying(40) NOT NULL, nr character varying(15) NOT NULL, extension character varying(5) NOT NULL, body bytea NOT NULL, description character varying(100), rowidentifier character varying(...
true
1de7372f9e72f29c2bb5124d73932acd17b009e0
SQL
geandrol/Treinamento_Tec_Gen
/TreinmentoBancoDeDadosMySQL/ScriptTabelasEComandos/exemplotabelas.sql
UTF-8
603
3.4375
3
[]
no_license
create database Bd_quitanda; use bd_quitanda; create table tb_produtos( id bigint auto_increment, nome varchar (30) not null, preco float not null, descricao varchar (255), primary key (id) ); select * from tb_produtos; insert into tb_produtos (nome,preco,descricao) values ("maca","2.50","melhor maca da região"); ...
true
9db2274ab930eb2f3798e9e27f703c46ecac06de
SQL
WillowRocha/SevenBeauty
/SevenBeauty_Main/database/seven_beauty_2018_06_06.sql
UTF-8
15,384
3.078125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.0 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: 07-Jun-2018 às 03:30 -- Versão do servidor: 10.1.31-MariaDB -- PHP Version: 7.2.4 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
4c32b80570cde9c6ad2a933491679fc317faecf9
SQL
kim123/InventorySystem
/WebRoot/scripts/procedures/WrapperAddRole.sql
UTF-8
423
2.71875
3
[]
no_license
DELIMITER $$ CREATE DEFINER=`root`@`localhost` PROCEDURE `WrapperAddRole`(out p_result varchar(50), in p_role varchar(45), in p_permission varchar(45), in p_createdby varchar(45)) BEGIN set p_result = 'initialwrapper'; insert into rank(rank,permission,created_date,created_by) values(p_ro...
true
cd174f2d953797d009ff42748eedb35f1d395c22
SQL
AnmolTuteja/KnockKnock
/src/main/resources/pre_required_data.sql
UTF-8
5,664
3.53125
4
[]
no_license
SELECT * FROM customer; SELECT * FROM user_role; SELECT * FROM login; SELECT * FROM city; SELECT * FROM service_category; SELECT * FROM service_sub_category; SELECT * FROM service; DESC user_role; DESC service; DROP DATABASE knock_knock; DELETE FROM customer; DELETE FROM user_role; DELETE FROM login; DELETE FROM ser...
true
24285403bb0f03a5e946e6fa2b36c91378c47413
SQL
chaodhib/ICC-reservation
/db/reservations20180424.sql
UTF-8
14,953
3.21875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.5.4.1 -- http://www.phpmyadmin.net -- -- Client : localhost -- Généré le : Mar 24 Avril 2018 à 22:52 -- Version du serveur : 5.7.11 -- Version de PHP : 7.0.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SE...
true
a789b4246157a2296fb98067e08e3803621405a5
SQL
Albert-is-an-undefined-variable/html
/Scripts_create_mysql/good_model_after_meeting.sql
UTF-8
5,990
3.234375
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
fe3af5bc781eeeff86fb1739b1ae4ae575494d4b
SQL
pontakornth/money-manager-backend-rust
/init.sql
UTF-8
539
3.21875
3
[]
no_license
CREATE TABLE users ( id INTEGER PRIMARY KEY AUTOINCREMENT, username TEXT, display_name TEXT, password_hash TEXT, ); CREATE TABLE transactions ( id INTEGER PRIMARY KEY AUTOINCREMENT, user_id INTEGER, type TEXT, category_id INTEGER, amount REAL ); CREATE TABLE categories ( id INTEG...
true
7a9cd6a83a2716cb4dfb49cf3d5785e42f56fc5f
SQL
hsuanweifu/Assignment1
/database/comp4711.sql
UTF-8
9,500
3.15625
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Feb 14, 2016 at 07:28 AM -- Server version: 10.1.9-MariaDB -- PHP Version: 5.6.15 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLI...
true
e31a3f062833a00a3e2c6f48702c3b16d4ba38d2
SQL
bellmit/xqoo-cloud-admin
/xqoo-cloud-gateway/scripts/sys_gateway_route_predicates_config.sql
UTF-8
4,773
3.046875
3
[ "MIT" ]
permissive
/* Navicat Premium Data Transfer Source Server : 孔晓文的数据库 Source Server Type : MySQL Source Server Version : 50725 Source Host : rm-bp15sx5e65i5yd31ano.mysql.rds.aliyuncs.com:3306 Source Schema : xqoo-cloud Target Server Type : MySQL Target Server Version : 50725 File Encoding ...
true
c555e51982db6cd0d803a060486eff1b0dc2a6b6
SQL
NateRCampbell/WritersRoulette
/db/roulette/read_roulette.sql
UTF-8
304
3.234375
3
[]
no_license
SELECT roulette.roulette_id, roulette.prompt_body, roulette.author_id, submission.roulette_id, submission.submit_body, submission.submit_page, submission.submit_id FROM roulette INNER JOIN submission ON roulette.roulette_id = submission.roulette_id WHERE roulette.roulette_id = $1 ORDER BY submit_page;
true
8d2923ef589918f931fb994d6190aaab2bf05728
SQL
htsia/zghr
/db/5001.sql
GB18030
610
2.515625
3
[]
no_license
--ݿ汾 insert into SYS_DB_VERSION values('5000',sysdate); --޸ĸλ delete from SYS_INFO_ITEM_REF t where t.item_id like 'C%' --ù˾logo ִ䣺insert into SYS_PARAMETER (PARA_KEY, PARA_VALUE, PARA_GROUP, PARA_VALUE_CN, PARA_VALUE_TW, PARA_VALUE_EN) values ('SYS_INTERFACE', 'images/logo/kingstar_login_backgroud.jpg,images...
true
ed6ab1dbb04c9dea7a70d97367ffd7c8ac08198c
SQL
vberetti/cassandra-metamodel
/integration-tests/src/main/cql/B.cql
UTF-8
181
2.515625
3
[ "Apache-2.0" ]
permissive
CREATE TABLE B1 ( id int, name varchar, birth_date timestamp, PRIMARY KEY (id), ); CREATE TABLE B2 ( id int, firstname varchar, lastname varchar, PRIMARY KEY (id), );
true
1eb7a1d61a8a4773a391a8b5a652fb3756c082cc
SQL
vkscorpio3/happy
/reqSQL_FO/s2/s2_child_sku.sql
UTF-8
278
2.609375
3
[]
no_license
select sku_id from dcs_prd_chldsku where PRODUCT_ID in ( select child_prd_id from dcs_cat_chldprd where category_id in ('cat300001','cat300002','cat300003','cat300004','cat300005', 'cat300006','cat300007','cat300008','cat300009','cat300010', 'cat300011','cat300000') );
true
66ef6276745ab3785fa2f1055f662bd8f5b7d0f4
SQL
duyangyu/abc-sms-service
/src/main/resources/db-scripts/V1.0.2__add_record_table.sql
UTF-8
414
2.6875
3
[]
no_license
CREATE TABLE record ( id int(11) NOT NULL AUTO_INCREMENT, app_id varchar(50), entry_id varchar(50), data_id varchar(50), error_message varchar(4000), created_on datetime, update_count int(11), updated_on datetime, raw_message_id int(11), PRIMARY KEY (id), ...
true
58ee827aaa97216fce1b0d244dd4de3217a22bcf
SQL
terius-yun/GroupWare_Project
/GroupWareProject/WebContent/WEB-INF/sql/GW_MEMBER.sql
UTF-8
1,987
2.75
3
[]
no_license
drop table GW_MEMBER; CREATE TABLE GW_MEMBER ( EMP_NUM VARCHAR2(20 BYTE) NOT NULL , MEMBER_PW VARCHAR2(20 BYTE) , MEMBER_NAME VARCHAR2(20 BYTE) , MEMBER_BIRTH DATE , MEMBER_PNUM VARCHAR2(20 BYTE) , MEMBER_EMAIL VARCHAR2(20 BYTE) , MEMBER_BANK_ACCOUNT VARCHAR2(20 BYTE) , MEMBER_TEAM VARCHAR2(20 BYTE) , MEMBE...
true
99274e78ffab6ceadb97ec776cf63ed8b23ebac8
SQL
wonhyukc/mssql
/전문가1권 05장 select.sql
UTF-8
2,824
4.03125
4
[]
no_license
--//상관관계의 하위 질의(Correlated subquery) SELECT stor_name, 'Title' = convert(char(30),t.title), qty FROM sales s, titles t, stores st WHERE s.title_id = t.title_id AND s.stor_id = st.stor_id AND qty = ( SELECT MAX(qty) FROM sales s2 WHERE s2.stor_id = s.stor_id ) ORDER BY stor_name, Title SELECT ...
true
5e6c6a8e6b9f46333efe6aa220fb31bc5e6ac785
SQL
EliaMladenova/Databases
/movies_queries4.sql
UTF-8
848
3.8125
4
[]
no_license
--MOVIES - 1: --SELECT title, MOVIEEXEC.NAME --FROM MOVIE INNER JOIN MOVIEEXEC ON MOVIE.PRODUCERC# = MOVIEEXEC.CERT# --WHERE PRODUCERC# = (SELECT PRODUCERC# FROM MOVIE WHERE TITLE = 'Star Wars') --MOVIES - 2: --SELECT DISTINCT MOVIEEXEC.NAME --FROM STARSIN INNER JOIN MOVIE ON MOVIETITLE = TITLE INNER JOIN MOV...
true
ed9d3d675e59b863404a56ec24a4988671a9453d
SQL
steebtom/COMP710A1
/bosscuts.sql
UTF-8
9,416
3.015625
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.8.4 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Oct 10, 2019 at 05:22 AM -- Server version: 10.1.37-MariaDB -- PHP Version: 7.1.26 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
true
cb1fdde6fc87cd19fe747330387527e6b20827f7
SQL
Marc-Raffy/AESTL-Website
/fmmdb.sql
UTF-8
3,949
3.28125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.6.6deb4 -- https://www.phpmyadmin.net/ -- -- Client : localhost:3306 -- Généré le : Mar 07 Janvier 2020 à 09:35 -- Version du serveur : 10.1.26-MariaDB-0+deb9u1 -- Version de PHP : 7.0.27-0+deb9u1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @...
true
a34bb3544c98fc52ce4e6ab037c5f7eb22ad1669
SQL
teemm/axchange
/swap.sql
UTF-8
11,451
3.03125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.5.2 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1:3306 -- Generation Time: Dec 19, 2015 at 08:43 PM -- Server version: 5.7.10 -- PHP Version: 5.5.9-1ubuntu4.14 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; -- -- Database: `geolab_hack` -- -- --------------...
true
6a6408000ca27f21c8df2fcad8a512e4c02e7567
SQL
Jeiner123/ClinicaCristoRedentor
/1. BD_EstructuraBase.sql
UTF-8
9,306
3.515625
4
[]
no_license
DROP DATABASE IF EXISTS clinica; CREATE DATABASE clinica; USE clinica; -- Especialidad -- tipo Servicio -- tipo Telefono -- tipo Personal -- Servicio -- Procedencia -- Usuario -- Area -- cargo -- Persona -- Personal -- TABLES WITH DUMMY DATA -- LOS PARAMETROS NO SE RELACIONAN CON OTRAS TABLAS -- SOLO SE U...
true
2ec1ceeec0784f7706de6b3222e0c5cc835b948a
SQL
zz0733/op-gbsql
/history/v1073/sites/V1.0.1.0165__U_v_sys_role.sql
UTF-8
983
3.265625
3
[]
no_license
-- auto gen by bruce 2016-06-05 15:17:17 DROP VIEW IF EXISTS v_sys_role; CREATE OR REPLACE VIEW v_sys_role AS SELECT sr."id", sr."name", sr.site_id, sr.subsys_code, sr.built_in, COALESCE(user_count, 0) as user_count FROM sys_role sr LEFT JOIN (SELECT role_id, ...
true
46f73c6ead82febc77c0c518b7f88093d82c3d8b
SQL
todenvolkov/World
/http/bitrix/modules/main/install/mysql/install.sql
UTF-8
27,459
3.515625
4
[]
no_license
create table b_lang ( LID char(2) not null, SORT INT(18) not null default '100', DEF char(1) not null default 'N', ACTIVE char(1) not null default 'Y', NAME varchar(50) not null, DIR varchar(50) not null, FORMAT_DATE varchar(50) not null, FORMAT_DATETIME varchar(50) not null, CHARSET varchar(255...
true
8ea56498755355394c296d3bbb3a1f857871a5c9
SQL
BenRKarl/WDI_work
/w10/d03/Dmitry_Shamis/gutenberg.sql
UTF-8
1,535
4.21875
4
[]
no_license
SELECT id FROM authors WHERE name = 'Aldrich, Thomas Bailey'; id=2830 SELECT COUNT(*) FROM books WHERE author_id = (SELECT id FROM authors WHERE name = 'Aldrich, Thomas Bailey'); count = 17 select SUM(count) from word_counts where book_id = (select id from books where title='Secret Societies And Subversive Moveme...
true
1cc28503c3697178bfe3fad7475dcf3292481c3c
SQL
mht15255/Projet_LAMP
/BDD/BDD.sql
UTF-8
4,593
3.609375
4
[]
no_license
#------------------------------------------------------------ # Script MySQL. #------------------------------------------------------------ DROP DATABASE IF EXISTS libautodb; CREATE DATABASE libautodb DEFAULT CHARACTER SET utf8; USE libautodb; #--------------------------------------------------------...
true
9520daa3a3796de2af66916d7dc74f211440bd73
SQL
kkaragiannis/DVG-profiler
/vlib/db/reqPeekOrder.sql
UTF-8
2,506
3.34375
3
[]
no_license
DROP PROCEDURE IF EXISTS `reqPeekOrder`; DELIMITER // CREATE PROCEDURE `reqPeekOrder`(IN lsvcnm char (64), IN lreq bigint, IN lstat int, IN lact int) MODIFIES SQL DATA begin /* * ::718604! * * Copyright(C) November 20, 2014 U.S. Food and Drug Administration * Authors: Dr. Vahan Simonyan (1), Dr. Raja Mazum...
true
1062c7d1a7cddcff96dc16f0f065f65ba0253f71
SQL
carlosromel/i9web
/components/selos/sql/criar.sql
UTF-8
602
2.84375
3
[]
no_license
/* * Copyright (c) 2010, 2011 Carlos Romel <carlos.romel@gmail.com> */ create table tipo ( id_tipo integer not null auto_increment primary key, descricao_tipo varchar (50) not null unique ) engine = 'InnoDB'; create table selos_utilizados ( numero_recibo varch...
true
6683b7cea052434dc9e70205b970d5eebf1bf9e0
SQL
pedrohserrano/anomaly-detection-health-insurance
/queries/Ubicaciones-Poliza.sql
UTF-8
1,360
3.5625
4
[]
no_license
/*======================================== Ubucaciones-Póliza =========================================*/ --Relaciona la póliza con la ubicación registrada con los campos geográficos SELECT POL.ramsubramo AS RAMSUBRAMO_POL, POL.npoliza AS NPOLIZA_POL, POL.colonia AS COLONIA_POL, POL.poblacion AS POBLACI...
true
56a8d2cd65eb502850098c3d6fbf289437740582
SQL
sylastheodor/GG
/express-back-end/db/schema/05_user_game_relationship.sql
UTF-8
369
2.984375
3
[]
no_license
DROP TABLE IF EXISTS user_game_relationships CASCADE; CREATE TABLE user_game_relationships ( id SERIAL PRIMARY KEY NOT NULL, user_id INTEGER REFERENCES users(id) ON DELETE CASCADE, game_id INTEGER REFERENCES games(id) ON DELETE CASCADE, liked BOOLEAN NOT NULL DEFAULT FALSE, played BOOLEAN NOT NULL DEFAULT FAL...
true
f81f50db9443fdefffec6dba5c986f6dc31de33d
SQL
arthurAddamsSiebert/cartridges
/core/release/lib/resources/core/dbinit/scripts/oracle/sp_deleteProcessesByDomain.sql
UTF-8
3,962
3.453125
3
[]
no_license
CREATE OR REPLACE PROCEDURE sp_deleteProcessesByDomain (in_domainid IN VARCHAR2) AS ------------------------------------------------------------------------------------------ -- Name : sp_deleteProcessesByDomain -- History : user date - desc -- : ... -- : Thomas Kob...
true
9a3dd9f8b5a248d59716a894e2ca8a4d13a9878d
SQL
Cikro/finance-app
/db-scripts/maria-db/Tables/2019-8-26_11-38-users.sql
UTF-8
2,069
3.796875
4
[]
no_license
CREATE TABLE IF NOT EXISTS application_accounts ( id int unsigned PRIMARY KEY AUTO_INCREMENT, date_created TIMESTAMP NOT NULL default CURRENT_TIMESTAMP, -- Remove OnUpdate from default Timestamp Behaviour. date_last_edited TIMESTAMP on update CURRENT_TIMESTAMP -- Remove initial default from Timestamp wh...
true
c44a50ad7ce5e13cc41ec066df8c005252814777
SQL
idmitrov/Databases
/SQL Advanced/Problem12.sql
UTF-8
286
4.0625
4
[]
no_license
--Problem 12. Write a SQL query to find all employees along with their managers. SELECT e.FirstName + ' ' + e.LastName AS [Employee], ISNULL(m.FirstName + ' ' + m.LastName, 'no manager') AS [Manager] FROM Employees e LEFT OUTER JOIN Employees m ON e.ManagerID = m.EmployeeID
true
3619a28227e598ab8571b95c65c640126fb5ab9b
SQL
Institut-Mollerussa/cmsfp
/portal.sql
UTF-8
1,383
2.96875
3
[]
no_license
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_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8 */; CREATE DATABASE IF NOT E...
true
8bb4ad8b44d7ae6f6a6212722336c1dd666bdd49
SQL
mehulsoni/starbux-api
/src/test/resources/data/sql/initial_setup.sql
UTF-8
2,099
4.09375
4
[]
no_license
create table product ( id serial not null constraint product_pk primary key, product_name varchar not null, product_code varchar not null, price numeric not null, enabled boolean default true not null ); create unique index product_id_uindex on product (id); create unique index product_product_code_uindex ...
true
3a4b146a3db45437eb8ae3bcc1721eba9fcdb218
SQL
Moussaddak/holbertonschool-web_back_end
/0x0C-MySQL_Advanced/6-bonus.sql
UTF-8
598
3.96875
4
[]
no_license
-- 6. Add bonus -- creates a stored procedure AddBonus (adds a new correction for a student) DELIMITER // DROP PROCEDURE IF EXISTS AddBonus; CREATE PROCEDURE AddBonus (IN user_id INT, IN project_name VARCHAR(255), IN score INT) BEGIN IF (SELECT COUNT(*) FROM projects WHERE projects.name = project_name) = 0 THEN ...
true
6ad3318db90c767361a32ecde0c19886099b8e0e
SQL
nevintrian/Kelompok-4
/Nevin Trian Ade/id/admin.sql
UTF-8
2,285
3.09375
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 13 Nov 2019 pada 02.52 -- Versi server: 10.3.16-MariaDB -- Versi PHP: 7.3.7 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHA...
true
a09efb83a782972dc999b76058be5c4cba0701e5
SQL
alexbartley/SOCO-Test
/104909/SBXTAX/Procedures/DATAX_TB_RULES_153.sql
UTF-8
1,163
3.109375
3
[]
no_license
CREATE OR REPLACE PROCEDURE sbxtax."DATAX_TB_RULES_153" ( taxDataProviderId IN NUMBER, runId IN OUT NUMBER) IS --<data_check id="153" name="Tax Holiday Rules with Rule Qualifiers and Tax Code or Exempt Reason"> dataCheckId NUMBER := -740; BEGIN INSERT INTO datax_records (recorded_message, run_id) V...
true
a418e16ce2c390b3cd5174c8879b6b37d9da63af
SQL
edunzer/MIS275_INTRO_TO_RELATIONAL_DATABASE
/WEEK 7/CHAPTER 6/Question1.sql
UTF-8
119
3
3
[]
no_license
SELECT CategoryName FROM Categories WHERE CategoryID IN (SELECT CategoryID FROM Categories) ORDER BY CategoryName
true
3534a609183b19793d26f953fe47fab2bf864bff
SQL
Kirnic/forumDB_tp
/forumDB.sql
UTF-8
3,416
3.609375
4
[]
no_license
DROP DATABASE IF EXISTS `forumDB`; CREATE DATABASE `forumDB` DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci; USE `forumDB`; SET @PREVIOUS_FOREIGN_KEY_CHECKS = @@FOREIGN_KEY_CHECKS; SET FOREIGN_KEY_CHECKS = 0; DROP TABLE IF EXISTS `user`; DROP TABLE IF EXISTS `thread`; DROP TABLE IF EXISTS `subscriptio...
true
1a254100c2644cb76dc74eeb7102824a640e11eb
SQL
EstevanTn/clident
/bd_clident schema_and_data.sql
UTF-8
37,157
3.453125
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : localhost Source Server Version : 50505 Source Host : 127.0.0.1:3306 Source Database : clident Target Server Type : MYSQL Target Server Version : 50505 File Encoding : 65001 Date: 2017-07-24 15:58:11 */ SET FOREIGN_KEY_CHECKS=0; -- -...
true
84cab35c62a6f582f223fd28f69724d4bb12ee69
SQL
luhm2017/neo4j
/data/sql/version1/onedegree/antiFraudOneDegree_device.sql
UTF-8
30,399
3.5
4
[]
no_license
use knowledge_graph; --根据一度取关联数据,增加时间日期 , 通配符统一替换关联边 --BANKCARD、COMPANYPHONE、CONTACT、DEVICE、EMAIL、EMERGENCY、IDCARD、MYPHONE create table temp_degree1_relation_data_device as SELECT a.order_id_src, a.apply_date_src , a.cert_no_src, a.order_id_dst1, a.apply_date_dst1, a.cert_no_dst1 FROM fqz.fqz_relation_degree1 a jo...
true
fc4a5754aaeffe864c70dd8c8f091366eba7195a
SQL
da0hn/springboot-neo4j-sandbox
/db/student_data.cql
UTF-8
1,734
2.84375
3
[]
no_license
CREATE (student1:Student { name: 'Gabriel', country: 'EUA', birthYear: 1999 }) CREATE (student2:Student { name: 'Ana', country: 'EUA', birthYear: 1999 }) CREATE (student3:Student { name: 'Daniel', country: 'China', birthYear: 1997 }) CREATE (student4:Student { name: 'Beatri...
true
5fd062ce7526d586d810ae9bff336ddcb152ed31
SQL
Legresa/Datebase_2255_Lukicheva_Alena
/Групповые функции №9.sql
UTF-8
126
3.0625
3
[]
no_license
SELECT name, surname FROM student WHERE score = ( SELECT max(score) FROM student WHERE n_group = '2255') AND n_group = '2255'
true
b6a027e0d42f153a531175f2d9f0e9c56ecf1220
SQL
bopopescu/Machine_Learning_Collections
/Kaggle_Challenges/genentech_2016 Cervical Cancer Screening/genentech-py-dmitry/genentech-sql/diagnosis_procedure_link2.sql
UTF-8
538
3.421875
3
[]
no_license
CREATE TABLE diagnosis_procedure_link2 interleaved sortkey(patient_id, diagnosis_primary_practitioner_id, procedure_primary_practitioner_id, diagnosis_code, diagnosis_date, procedure_code) AS SELECT t1.patient_id, t1.diagnosis_date, t1.diagnosis_code, t1.primary_practitioner_id AS diagnosis_primary_practitioner_id, t2...
true
81db1f2e268df0df70e054f83aa94a690033a98e
SQL
gamemake/game.js
/mysql.sql
UTF-8
508
3.609375
4
[]
no_license
CREATE TABLE user_table ( user_id int(11) NOT NULL AUTO_INCREMENT, user_name varchar(200) NOT NULL, PRIMARY KEY (user_id), UNIQUE KEY user_name_index (user_name) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; CREATE TABLE avatar_table ( avatar_id int(11) NOT NULL AUTO_INCREMENT, user_id int(11) NOT NULL, name varchar...
true
7d4bc893a9ad5da4919289a4af9ebfeaa3b630de
SQL
tanbinh123/API-de-filmes-desafio-Spring
/src/main/resources/db/migration/V03__criar_e_registrar_filmes.sql
UTF-8
461
2.734375
3
[]
no_license
CREATE TABLE movie ( id BIGINT(20) PRIMARY KEY AUTO_INCREMENT, title VARCHAR(50) NOT NULL, id_actor BIGINT(20), director VARCHAR(30), actor VARCHAR(50), original_language VARCHAR(30), original_title VARCHAR(50), release_year VARCHAR(15), overview VARCHAR(250), adult BOOLEAN, id_genre BIGINT(20) NOT ...
true
cfd14704d03cb5987fd89ba9ea7a21bfef3f86b4
SQL
Navneet-Tiwari/mylocalgitspace
/e-learning/TABLES/LOGMNR_CDEF_.sql
UTF-8
493
2.546875
3
[]
no_license
-------------------------------------------------------- -- DDL for Table LOGMNR_CDEF$ -------------------------------------------------------- CREATE TABLE "SYSTEM"."LOGMNR_CDEF$" ( "CON#" NUMBER, "COLS" NUMBER, "TYPE#" NUMBER, "ROBJ#" NUMBER, "RCON#" NUMBER, "ENABLED" NUMBER, "DEFER" NUMBER, ...
true
d430abd3954af7c985a8dbf56b652a20f22469b8
SQL
atthletics/feeder
/sql/add_games.sql
UTF-8
101
2.515625
3
[]
no_license
INSERT INTO ud_spreads (game_id) SELECT game_id FROM ud_games WHERE week_id = 6 ORDER BY game_id ;
true
01ab65b1aee536b76521efc27dbc11161ebd62bb
SQL
mtejas88/esh
/Projects_SotS_2017/wifi/SotS_metrics_and_insights/wifi_survey_results.sql
UTF-8
2,734
4.21875
4
[]
no_license
with wifi_status as ( --suffiency as of 7/24 --copy of wifi connectivity informations except only using tags pre-7/24 select ci.postal_cd, ci.parent_entity_name, (select distinct (eb_parent.entity_id) as parent_entity_id), --eb_parent.entity_id as parent_entity_id, using distinct entity id above and commen...
true
62ed446c777b849ca69ae3fdda046164c72fb561
SQL
virtuelabs-io/rapido-db-migrations
/src/migrations/customer/00001_customer_ddl.sql
UTF-8
1,033
3.8125
4
[ "Apache-2.0" ]
permissive
CREATE DATABASE IF NOT EXISTS customer; CREATE TABLE IF NOT EXISTS customer.address_type ( id TINYINT, kind VARCHAR(100), PRIMARY KEY (id) ); -- Contains PII information CREATE TABLE IF NOT EXISTS customer.address ( id MEDIUMINT AUTO_INCREMENT, customer_id BINARY(16), full_name VARCHAR(255) DEF...
true
1182b4611e76a5e6318567689b75ebde86bdf7ff
SQL
mattsalinero/mechanalysis
/db_scripts/db_per_topic.sql
UTF-8
792
4.09375
4
[]
no_license
/* SQL query for pulling per-topic group buy & interest check data - omits no topic_created data, but includes interest check topics */ SELECT tdata.topic_id, CASE WHEN board_id = '70' THEN 'gb' WHEN board_id = '132' THEN 'ic' END as board, icode.info_code, set_name, icode.in...
true
6847e9ef5b27a336304ce5a7df613e09c8bacd57
SQL
niggleslow/CS2102-Group20
/populate.sql
UTF-8
4,224
3.578125
4
[]
no_license
# POPULATE THE TABLES WITH THESE DATA # TESTED WITH POSTGRESQL - ABLE TO INSERT WITHOUT ANY PROBLEMS # ADMINISTRATORS INSERT INTO administrators(username, password) VALUES ('Alex', 'admin1'); INSERT INTO administrators(username, password) VALUES ('Alfred', 'admin2'); INSERT INTO administrators(username, password)...
true
670ba86b1b49c9c05fd5923366c24fa9e5640ae3
SQL
lijinhaun/imageWeb
/imageWeb/target/classes/sql/user.sql
UTF-8
916
2.703125
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : mysql Source Server Version : 50624 Source Host : localhost:3306 Source Database : imageweb Target Server Type : MYSQL Target Server Version : 50624 File Encoding : 65001 Date: 2017-10-10 17:52:23 */ SET FOREIGN_KEY_CHE...
true
320c5b2594553359dc55b61a21165bc005c2495e
SQL
xelese/Ravi_Voleti_DBMS
/Assignment2/5_Updates.sql
UTF-8
703
2.9375
3
[]
no_license
USE cs5200_fall2019_voleti; UPDATE phone SET phone.phone = '333-444-5555' WHERE phone.primary = '1' AND phone.person = 34; USE cs5200_fall2019_voleti; UPDATE widget SET `order` = CASE WHEN `order` = 2 THEN 1 WHEN `order` = 3 THEN 2 WHEN name = 'head345' THEN 3 ...
true
724a320b7dc7299655e9a245590afb0fb8f7c5bb
SQL
AnghelLeonard/tyler
/src/main/webapp/DDL/realm.sql
UTF-8
498
2.515625
3
[]
no_license
CREATE TABLE grouptable (userid VARCHAR(255) NOT NULL, groupid VARCHAR(255), PRIMARY KEY (userid)); CREATE TABLE usertable (userid VARCHAR(255) NOT NULL, password VARCHAR(255), PRIMARY KEY (userid)); INSERT INTO usertable (userid, password) VALUES ('jsfsessions@gmail.com', 'b258f8614815e4157b9eab23d55ac5d0ff77a97ef...
true
8e2bf762394cbb5123e38b61458bf393d1cd8401
SQL
AntenorZapata/Projects
/MySQL - Vocabulary Booster/desafio19.sql
UTF-8
352
3.609375
4
[]
no_license
DELIMITER $$ CREATE FUNCTION exibir_quantidade_pessoas_contratadas_por_mes_e_ano(mes INT, ano INT) RETURNS INT READS SQL DATA BEGIN DECLARE Total_Contratados INT; SELECT COUNT(EMPLOYEE_ID) FROM employees WHERE MONTH(HIRE_DATE) = mes AND YEAR(HIRE_DATE) = ano INTO Total_Contratados ; RETURN Total_Co...
true
d0c0d95fdd802a6aec5dff1792baca6afdbfacf7
SQL
drixman76/php
/iEvent/event_calendar.sql
UTF-8
2,239
3.5
4
[]
no_license
-- phpMyAdmin SQL Dump -- version 3.5.0 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Mar 03, 2013 at 05:52 PM -- Server version: 5.0.95 -- PHP Version: 5.3.3 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!...
true