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
db8e32ac82604c22b4bf925a016fa839ef35b331
SQL
chrishildebrandt/PNphpBB2
/PNphpBB2/install/schemas/attach_mysql_schema.sql
UTF-8
3,567
3.390625
3
[]
no_license
# # phpBB2 - attach_mod schema # # $Id: attach_mysql_schema.sql,v 1.1 2004/07/13 19:16:08 carls Exp $ # # # Table structure for table 'phpbb_attachments_config' # CREATE TABLE phpbb_attachments_config ( config_name varchar(255) NOT NULL, config_value varchar(255) NOT NULL, PRIMARY KEY (config_name) ...
true
d18634b6ace0d913275a08198e23b59255070c6c
SQL
sihai/matrix
/src/main/resources/sql/igo.sql
UTF-8
2,160
3.59375
4
[]
no_license
-- -- Current Database: `igo` -- DROP DATABASE IF EXISTS `igo`; CREATE DATABASE /*!32312 IF NOT EXISTS*/ `igo` /*!40100 DEFAULT CHARACTER SET utf8 */; GRANT ALL PRIVILEGES ON igo.* TO igo@''%' IDENTIFIED BY '378206'; USE `igo`; -- -- Table structure for table `category` -- DROP TABLE IF EXISTS `category`; CREATE T...
true
4cf886667e311fb497ecb14ddbcb2e5237b8723b
SQL
akbars95/study_250117
/oracle/oracle pl sql/transaction on oracle.sql
UTF-8
491
2.546875
3
[]
no_license
set serveroutput on; begin dbms_output.put_line('begin transaction'); insert into T_ROLES(ROLE_NAME) values('ROLE_NAME20'); dbms_output.put_line('1 insert'); insert into T_ROLES(ROLE_ID, ROLE_NAME) values(5, 'ROLE_NAME21'); dbms_output.put_line('2 insert'); insert into T_ROLES(ROLE_NAME) values('ROLE_NAME15...
true
8c175ed74ea8f7c0d47da8e699bad90ee47d7439
SQL
lvhkhanh/SQL
/0156_partition_prune.sql
UTF-8
284
2.734375
3
[]
no_license
/* CODE: Partition Pruning */ create table sales_temp as select * from sales; select sum(amount_sold) from sales_temp where time_id between '01-JAN-01' and '31-DEC-03'; select sum(amount_sold) from sales where time_id between '01-JAN-01' and '31-DEC-03'; drop table sales_temp;
true
f9c87f87e2ed8acbd0b4b0b77379b45f06198052
SQL
chdonovan/Employee-Tracker
/sql/employee.sql
UTF-8
1,760
3.828125
4
[ "MIT" ]
permissive
DROP DATABASE IF EXISTS employees; CREATE DATABASE employees; USE employees; CREATE TABLE department ( id INT UNSIGNED AUTO_INCREMENT PRIMARY KEY, name VARCHAR(30) UNIQUE NOT NULL ); /* ROLE table */ CREATE TABLE role ( id INT UNSIGNED AUTO_INCREMENT PRIMARY KEY, title VARCHAR(30) UNIQUE NOT NULL, sal...
true
b2b22228467dc957f4204da83bf35a503946dda1
SQL
SharafutdinovDenis/study_projects_ds
/SQL_tasks/departaments_employee.sql
UTF-8
1,250
4.90625
5
[]
no_license
-- task #1 SELECT * FROM employee WHERE salary > 50000; -- task #2 SELECT department_id FROM employee GROUP BY department_id HAVING COUNT (*) = 0; -- task #3 SELECT head.name as head, department.name as department, GROUP_CONCAT(employee.name) as employess FROM employee INNER JOIN employee AS ...
true
ab26441763288ab8a3974e5093c995399a096c91
SQL
rafabart/avaliacao-api
/src/test/resources/load-database.sql
UTF-8
537
2.609375
3
[]
no_license
insert into public.category (description) VALUES ('Comportamental') ,('Programação') ,('Qualidade') ,('Processos') ; insert into public.user_system (name,login,password) VALUES ('Administrador','admin','$2y$12$wZGPK1hI.9Hjff47JzttMevlNCdVBS7ldXPgr9fwciBZvW0zTmWZ2') ; insert into ...
true
b5346baef08e94338885db1d4e44c1a0c228a270
SQL
2XL/u1stereaotype
/sqlQuery/user_files_req.sql
UTF-8
4,338
3.859375
4
[]
no_license
drop table if exists user_files_req; create table user_files_req ( ext string, mime string, type string, node_id bigint, user_id bigint, tstamp timestamp, req_t string ) stored as parquet; insert into user_files_req select ext, mime, type, node_id, user_id, tstamp, req_t from default.ubuntu_one where t = "sto...
true
dfd22dfc9e682a230f51069f9287419bc92bb46f
SQL
BajpaiDeepika/SE-StayBeautiful
/Tables/staybeautiful.sql
UTF-8
36,432
3.25
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Dec 04, 2016 at 07:56 PM -- Server version: 10.1.16-MariaDB -- PHP Version: 7.0.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLI...
true
ad40023965ac5f5ec2f70fbd554c1edcdb950354
SQL
msistrunk/chaht-up
/server/database/schema.sql
UTF-8
855
3.28125
3
[]
no_license
\c chaht; -- USERS DROP TABLE IF EXISTS users cascade; CREATE TABLE users ( user_id serial PRIMARY KEY, username VARCHAR (20) UNIQUE NOT NULL, password VARCHAR (25) NOT NULL ); -- MESSAGES DROP TABLE IF EXISTS messages cascade; CREATE TABLE messages ( message_id serial PRIMARY KEY, message_text ...
true
04d93c22240118c79b8ed4046c44b2c0cf2a3ffe
SQL
PUlanowski/CurrencyCryptoNews
/db/nosql_queries.cql
UTF-8
849
3.078125
3
[ "MIT" ]
permissive
--Connect to Cassandra from docker cli via 'cqlsh' command --Create tablespace CREATE KEYSPACE cnn WITH REPLICATION = { 'class' : 'SimpleStrategy', 'replication_factor' : 1 }; --Use tablespace USE cnn; --Create table example CREATE TABLE commits ( id text, path text, author_email text, author_name text, ...
true
792356ec45ac795d5a9f57fcc819d5e141d7318d
SQL
gpipperr/OraDBASQLScripts
/awr_changed_plans.sql
UTF-8
3,841
3.9375
4
[]
no_license
--============================================================================== -- GPI - Gunther Pippèrr -- Desc : search for changed plans in a time period - parameter 1 - Startdate - parameter 2 end date in DE format --============================================================================== prompt prompt !!!...
true
5d8bb09456bc761c32ea6ea023b75f7e3279d2e7
SQL
the-informants/re-informants
/backend/db/cancel_orderresult.sql
UTF-8
1,226
3.609375
4
[]
no_license
update orderresults set paidflag='canceled' where orderresultsid::integer=${orderresultsid} ; select r.orderresultsid, o.orderid, r.buyerid, o.ordername, o.address, -- o.address1, -- o.address2, -- o.city, -- o.state, -- o.zip, o.ordertype, o.ordernotes, o.ordervaliduntil, o.ord...
true
706de63d00d0934adb2ac2ae54cb608a9af584bd
SQL
trwupeng/secondecommit
/kkdai_report/kkdai_report/trunk/sql/50.wupeng.sql
UTF-8
680
2.5625
3
[]
no_license
use db_kkrpt; CREATE TABLE `tb_umeng_data` ( `ymd` varchar(36) NOT NULL DEFAULT '' COMMENT '日期', `channels` varchar(36) NOT NULL DEFAULT '' COMMENT '渠道id', `ids` varchar(36) NOT NULL DEFAULT '' COMMENT 'ids', `new_user` varchar(36) NOT NULL DEFAULT '' COMMENT '新增用户', `active_user` varchar(36) NOT NULL DEFAULT...
true
0fcce48351b7722e7f8c3169fc25ca21f719ffc1
SQL
mintster/nixmash-blog-wpmigrator
/src/test/resources/db/h2schema.sql
UTF-8
7,585
3.78125
4
[]
no_license
-- ---------------------------- -- Table structure for authorities -- ---------------------------- DROP TABLE IF EXISTS authorities; CREATE TABLE authorities ( authority_id bigint(20) NOT NULL AUTO_INCREMENT, authority varchar(50) NOT NULL, is_locked tinyint(1) NOT NULL, PRIMARY KEY (authority_id) ); -- ----...
true
879d6d2a1902403076dff7edfe0e1d7da9bdd033
SQL
AlvinJian/TMDBApp
/sql commands/old/Import-keyword_name-csv.sql
WINDOWS-1252
865,689
2.6875
3
[]
no_license
SET DEFINE OFF CREATE TABLE KEYWORD_NAMES ( keyword_id VARCHAR2(8), keyword_name VARCHAR2(128), PRIMARY KEY(keyword_id) ); INSERT INTO KEYWORD_NAMES (keyword_id, keyword_name) VALUES ('1463', 'culture clash'); INSERT INTO KEYWORD_NAMES (keyword_id, keyword_name) VALUES ('2964', 'future'); INSER...
true
348eb18072e4b49c64ab2f8f51d5342de3162dc9
SQL
jasoncorpuz/recipe-builder-api
/migrations/004.do.create_contribution.sql
UTF-8
372
2.953125
3
[]
no_license
CREATE TABLE contribution ( id INTEGER PRIMARY KEY GENERATED BY DEFAULT AS IDENTITY, contribution_name TEXT NOT NULL, ingredient_id INTEGER REFERENCES ingredient(id) ON DELETE CASCADE NOT NULL, recipe_id INTEGER REFERENCES recipe(id) ON DELETE CASCADE NOT NULL, user_id INTEGER ...
true
7b185f617df64971c01e51a3f75abe3f478b264e
SQL
italoSilveira/EstudoPLSQL
/procedures_pesquisa_adm.sql
IBM852
808
3.328125
3
[]
no_license
-- Tirar dvida com profs. Gustavo ou Valdete-- CREATE FUNCTION sp_pesquisa_adm_livro (condicao VARCHAR) return tbl_lista_livros%ROWTYPE AS cond VARCHAR(100); CURSOR cur_livro IS SELECT * FROM tbl_livro livro JOIN tbl_autor ON (autor_id = id_autor) JOIN tbl_categoria ON (categoria_...
true
bd65234219e0f8a080e1f6b4363a45766fbb56d0
SQL
NanoAmestk/GestionAlumnos
/Scripts BD/Creacion BD Doremi 21-12-17.sql
UTF-8
7,525
3.34375
3
[]
no_license
create table Parametros( ID int not null auto_increment, Item varchar(30) not null, Codigo varchar(15) not null, Descripcion varchar(40) not null, Opcional_1 varchar(60), Opcional_2 varchar(60), Opcional_3 varchar(60), Primary Key(ID) )engine=innodb; insert into Parametros( Item,Codigo,Descripcion ) values( ...
true
0b5ee59c2855c615c0f92217e2d4b794e405c82a
SQL
npsasiapac/dataload
/DataLoadAreas/HAD/had_dlas.sql
UTF-8
12,297
2.5625
3
[]
no_license
-- -- *********************************************************************** -- DESCRIPTION: -- -- CHANGE CONTROL -- -- VERSION DB Vers WHO WHEN WHY -- -- 1.0 5.15.0 VS 13-JAN-2009 Initial Creation. -- 1.1 6.10 AJ 14-DEC-2015 Control comments section added -- ...
true
2ba4484576a23e26c9347914e7b30ce65efcb986
SQL
boyskylake/denproject
/db/db_book.sql
UTF-8
15,396
3.34375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.6.6 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1:53846 -- Generation Time: Oct 06, 2018 at 03:17 AM -- Server version: 5.7.9 -- PHP Version: 5.6.37 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIE...
true
3d9e0dc3a95618ecbb9a1afcb7fd292eacc10769
SQL
xueyubingsen/palsplitpartition
/ATTRIB_MDAY_NUMBER_VAL_DSOS_2018_alpha.SQL
UTF-8
7,728
3.03125
3
[]
no_license
ALTER TABLE ATTRIB_MDAY_NUMBER_VAL_DSOS SPLIT PARTITION AM_NUM_VAL_DSOS_MAXX AT (2019) INTO (PARTITION AM_NUM_VAL_DSOS_2018 TABLESPACE RDC_DSOS_02, PARTITION AM_NUM_VAL_DSOS_MAXX TABLESPACE RDC_DSOS_01); begin for csr in ( select partition_name, 'ALTER TABLE ATTRIB_MDAY_NUMBER_VAL_DSOS RENAME SUBPARTITION '||...
true
471deb7df7d1b68def56054d36eff28dd943347d
SQL
GonzaloGR43/Tpicos
/BasedeDatos.sql
UTF-8
6,595
3.3125
3
[]
no_license
-- -------------------------------------------------------- -- Host: localhost -- Versión del servidor: 8.0.22 - MySQL Community Server - GPL -- SO del servidor: Win64 -- HeidiSQL Versión: 11.1.0.6116 -- -------------------------------------------------------- /...
true
e540a6a15fb5ef7f01ebd85a155308cf0a2a2bb3
SQL
rameshprasath/FEC_GRAPH
/cql/connected.cql
UTF-8
622
3.234375
3
[]
no_license
// presidential campaign committees 2012 start candidate=node:candidates('CAND_ID:*') match (candidate)<-[:CAMPAIGNS_FOR]-(campaign) where candidate.CAND_OFFICE='P' AND candidate.CAND_ELECTION_YR='2012' return campaign.CMTE_NM, candidate.CAND_NAME; start committee=node:committees('CMTE_ID:*') match p=(committee)<-[:CO...
true
3e61f92b42e6c20a33d546bfde87c84f2d3b032b
SQL
BassJude/Project_BHP
/src/main/java/pl/pierzchala/sql/insert.sql
UTF-8
6,776
3.40625
3
[]
no_license
INSERT INTO questions (answer1,answer2,answer3,answer4,good_answer,question) VALUES ("zgłaszać pracodawcy, przełożonemu lub służbie BHP sytuacje zagrożenia na terenie zakładu pracy;", "dbać o ład i porządek na stanowisku pracy;", "znać przepisy i zasady bhp oraz wykonywać pracę w sposób zgodny z przepisami i zasadami ...
true
9852036d257049ec470a72b2af7dc9ee29ea7ee2
SQL
denilsonluizm/SQL
/12_AS.sql
UTF-8
204
2.9375
3
[]
no_license
SELECT FirstName as Nome, LastName as Sobrenome FROM Person.Person SELECT ProductNumber as "Número do Produto" FROM Production.Product SELECT UnitPrice as "Preço Unitário" FROM Sales.SalesOrderDetail
true
470368686b217d865b5a8f0336fd513a1e7bf6ab
SQL
erjan/coding_exercises
/game_play_analysis_iii.sql
UTF-8
448
3.96875
4
[ "Apache-2.0" ]
permissive
''' Write an SQL query to report for each player and date, how many games played so far by the player. That is, the total number of games played by the player until that date. Check the example for clarity. Return the result table in any order. The query result format is in the following example. ''' select playe...
true
40a33fefb7932c5fac9036429fd4d07a2b58295a
SQL
ShrutiChk/SecurityGuardCompany
/Site/incomeAtSite.sql
UTF-8
1,662
3.28125
3
[]
no_license
set verify off; SET SERVEROUTPUT ON; DECLARE m_total number := 0; rowno number := 0; total_income number := 0; total_income2 number := 0; max_income number := 0; m_income number := 0 ; max_month varchar(30); BEGIN DBMS_OUTPUT.PUT_LINE('Monthly income of year 2020: '); myPackage.paymentMonthlyInfoTable; D...
true
3736cfe0a345b33bbcb97e7812da273225b434d3
SQL
ahmedsof/MSSQL---Problems-SoftUni
/Subqueries and Joins/05. Employees Without Projects.sql
UTF-8
236
3.65625
4
[]
no_license
SELECT TOP(3) E.EmployeeID, E.FirstName FROM Employees AS E LEFT OUTER JOIN EmployeesProjects AS EP ON E.EmployeeID = EP.EmployeeID WHERE EP.ProjectID IS NULL ORDER BY E.EmployeeID ASC --SELECT * FROM EmployeesProjects
true
174eee97e40c477ee2a5cffdd060a520762fb245
SQL
crs2007/ActiveReport
/ActiveReport/SQLFiles/TopQueries.sql
UTF-8
4,092
3.609375
4
[ "LicenseRef-scancode-warranty-disclaimer", "MIT" ]
permissive
-- ============================================= -- Author: Sharon -- Create date: 2013 -- Update date: -- Description: TopTenQueries -- ============================================= SELECT TOP 10 'I/O' AS [CheckType] , qs.execution_count , ( qs.total_physical_reads + qs.total_logica...
true
5953ba28e5924225db0b59c6a715415246fddf8b
SQL
LabKey/OConnorLabModules
/OConnor/resources/queries/lists/active_grants.sql
UTF-8
624
3.25
3
[]
no_license
/* * Copyright (c) 2014 David O'Connor * * Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0 */ /* filters on active grants and calculates a column on the grants list that concatenates the id and title of a grant. this column is displayed in pulldowns where grants are select...
true
057342ff6248390bd70a4805bd00872997097244
SQL
filipeoliveirah/php-default-project
/res/sql/backup/2017-06-02/hcode_tb_carouselsitems.sql
UTF-8
3,732
3.078125
3
[]
no_license
CREATE DATABASE IF NOT EXISTS `hcode` /*!40100 DEFAULT CHARACTER SET utf8 */; USE `hcode`; -- MySQL dump 10.13 Distrib 5.7.17, for Win64 (x86_64) -- -- Host: 104.131.120.158 Database: hcode -- ------------------------------------------------------ -- Server version 5.7.18-0ubuntu0.16.04.1 /*!40101 SET @OLD_CHARAC...
true
1e95db4f5218d517fc6d19c8ececa82fd7a44110
SQL
skgtrx/Stock-Market-Analysis
/Script.sql
UTF-8
6,121
3.75
4
[]
no_license
# Select our working database use sqlassignment; # All CSV Import completed... ## Bajaj ## # formatting date column UPDATE `bajaj` SET `Date` = STR_TO_DATE(`Date`,'%d-%M-%Y'); # Date column type convertion to date from string alter table bajaj modify column `date` date; # Creating bajaj1 table create table bajaj1...
true
e0af87674fdcc99fd3ac3efb1df3a16e5d49fc3a
SQL
daoxuanvinh220898/Railway_10_New
/SQL/DB_1_TE_QS_VN.sql
UTF-8
7,593
3.875
4
[]
no_license
DROP DATABASE IF EXISTS car_sale_management ; CREATE DATABASE IF NOT EXISTS car_sale_management ; USE car_sale_management ; -- CUSTOMER: khach hang -- DROP TABLE IF EXISTS CUSTOMER; CREATE TABLE IF NOT EXISTS CUSTOMER ( CustomerID TINYINT UNSIGNED PRIMARY KEY AUTO_INCREMENT, `Name` VARCHAR(50) N...
true
02249787fd5756899434f9154b00bf5abb2870a8
SQL
fstanchese/corporativo
/corporativo/sql/Matric/Matric_qData.sql
UTF-8
3,444
3.28125
3
[]
no_license
select WPessoa.Nome as Nome, WPessoa_Matric.Matriculado as M, WPessoa_PG.Pago as P, to_char(Matric.Data,'dd/mm/yyyy') as Data, WPessoa.Codigo as RA, substr(TurmaOfe_gsRetCodTurma(TurmaOfe.Id),6,2) as Nucleo, substr(TurmaOfe_gsRetCodTurma(TurmaOfe.Id),1,8) as Turma, WPessoa.FoneRes as Fon...
true
aadf31b357e4de4bb4cd1a636a74daf5b979d095
SQL
jesimielefraimdias/bd-atividades
/3_consultas_1_16.sql
UTF-8
8,442
4.34375
4
[]
no_license
-- 1. Liste a quantidade de vinhos que tem em cada vinícola SELECT vl.vinicola_id, vl.nome_vinicola, COUNT(vi.vinho_id) AS quant_vinho FROM vinho vi, vinicola vl WHERE vi.vinicola_id = vl.vinicola_id GROUP BY vl.vinicola_id; -- O mesmo, porém com INNER JOIN. SELECT vl.vinicola_id, vl.nome_vinicola, COUNT(vi.vinho_id)...
true
31cf1c6aa336b0aa411c6609d07fa325d3bb05e0
SQL
miguelGuillenPaz/upcdsd-20120m1-pluseros
/WS_Mantenimiento_Sistema/WebContent/bd/procedures.sql
WINDOWS-1250
5,350
3.5625
4
[]
no_license
-- -------------------------------------------------------------------------------- -- Routine DDL -- Note: comments before and after the routine body will not be stored by the server -- -------------------------------------------------------------------------------- DELIMITER $$ CREATE DEFINER=`root`@`localhost...
true
b824099c0776d07479b6aa791ca496a988a5f3cd
SQL
vivicai/qss_doc
/07.系统开发/风险事件ETL/客户风险/客户黑名单.sql
GB18030
1,026
3.15625
3
[]
no_license
/** ͻָ꣺ͻе֤ACCOUNT.TQS_KHXXеZJBHƥ+ͻid **/ INSERT INTO hub_fxsj ( bjsj, fxlb, fxzb, fxzbz, yuzhi, cce, jgdm, jgmc, cust_id, khmc, ywcdbm, ywcdmc, ywlx, ywbm, fxsj_id, unit ) SELECT to_char((SELECT now() :: TIMESTAMP),'yyyyMMdd HH24:mm:ss') AS bjsj, --ʱ 'ͻ' AS fxlb, -- 'ͻ' AS fxzb, --ָ ...
true
e62ed0f1c0a8ae18e7799d4c392da491b4997ad4
SQL
GerMarS/gmk-user-role-test
/estructura_base_de_datos.sql
UTF-8
659
3.640625
4
[ "MIT" ]
permissive
--Create users table CREATE TABLE IF NOT EXISTS users ( user_id int(8) NOT NULL AUTO_INCREMENT, name varchar(40) NOT NULL, email varchar(60) NOT NULL, phone int(16), age int(3), PRIMARY KEY (user_id) ); --Create roles table CREATE TABLE IF NOT EXISTS roles ( role_id int(8) NOT NULL AUTO_INCREMENT, role varch...
true
80a2bde2a4c93e1d5ce9413ef6682c30c96bcd20
SQL
Bohbren/drei-backup-from-home
/127_0_0_1.sql
UTF-8
2,024
3.140625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Sep 17, 2019 at 05:22 PM -- Server version: 10.3.15-MariaDB -- PHP Version: 7.3.6 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @O...
true
f9f8a8e56d543c6545cece315924ed1352a01731
SQL
dnpurdy/catalog-app
/sql/RemainingBreakdown.sql
UTF-8
235
3.40625
3
[]
no_license
SELECT p.* FROM (SELECT pp.itemId, pp.per, c.description FROM [siq.ProductPortion] pp LEFT OUTER JOIN [siq.Catalog] c ON pp.itemId = c.upc) a JOIN [views.Product] p ON pp.itemId = p.upc WHERE c.description IS NULL ORDER BY pp.per DESC
true
bc6e8d5ae796ae86328281b7886987ba4b45af36
SQL
michail1988/SesemesDb
/tables/to_send.sql
UTF-8
294
2.953125
3
[]
no_license
CREATE TABLE SMS_TO_SEND( FK_USER INTEGER NOT NULL, MESSAGE VARCHAR(3000) NOT NULL, REQUESTDATE DATETIME NULL, RECEIVERS VARCHAR(3000) NOT NULL, SEND_DATE DATETIME NULL ); ALTER TABLE SMS_TO_SEND add column ID INTEGER NOT NULL AUTO_INCREMENT, ADD PRIMARY KEY (ID);
true
17086ab37f66856f16de457940229eedf81707cd
SQL
berg-adler/attoworld
/ext_tables.sql
UTF-8
73,506
2.875
3
[]
no_license
# # Table structure for table 'tx_attoworld_domain_model_journal' # CREATE TABLE tx_attoworld_domain_model_journal ( uid int(11) NOT NULL auto_increment, pid int(11) DEFAULT '0' NOT NULL, title varchar(255) DEFAULT '' NOT NULL, webcat varchar(255) DEFAULT '' NOT NULL, `showinpubfilter` int(1...
true
42ac3931b63bf8461b7d2f240a36523b1b2858b2
SQL
hayk0096/node_site
/node_site.sql
UTF-8
9,292
2.984375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.4.15.7 -- http://www.phpmyadmin.net -- -- Хост: 127.0.0.1:3306 -- Время создания: Дек 13 2018 г., 00:36 -- Версия сервера: 5.6.31 -- Версия PHP: 5.6.23 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT *...
true
412658997c7c3965a991e4f0787acd81c5ded6a1
SQL
oh-sully/ece656
/addKeys.sql
UTF-8
1,626
3.25
3
[]
no_license
-- ALTER TABLE attribute ADD FOREIGN KEY (business_id) REFERENCES business(id); explain attribute; -- ALTER TABLE category ADD FOREIGN KEY (business_id) REFERENCES business(id); explain category; ALTER TABLE checkin ADD foreign key (business_id) REFERENCES business(id); explain checkin; ALTER TABLE elite_years ADD ...
true
03d24ea0073db56317116c1f162a76a2c58f8d29
SQL
dividez/laravel-vote
/SQL/data_ip.sql
UTF-8
5,691
2.71875
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : vagrant Source Server Version : 50716 Source Host : localhost:3306 Source Database : vote Target Server Type : MYSQL Target Server Version : 50716 File Encoding : 65001 Date: 2016-12-25 21:15:45 */ SET FOREIGN_KEY_CHECKS=0; -- ------...
true
6f497046de046ed1de2546eb3e7226ce09b8daee
SQL
pufm2/basket-ball
/DBScript/3CreateTable.sql
UTF-8
1,389
2.890625
3
[]
no_license
DROP TABLE MATCH CASCADE CONSTRAINT; DROP TABLE SEASON CASCADE CONSTRAINT; DROP TABLE COACH CASCADE CONSTRAINT; DROP TABLE CLUB CASCADE CONSTRAINT; DROP TABLE CATEGORY CASCADE CONSTRAINT; DROP TABLE TEAM CASCADE CONSTRAINT; DROP TABLE PLAYER CASCADE CONSTRAINT; DROP TABLE SECRETARY CASCADE CONSTRAINT; DROP TABL...
true
924823e3f8ab3b7b9ab88a0329cf52da73420747
SQL
obareau/SQLite
/many-to-many.sql
UTF-8
388
3.671875
4
[]
no_license
-- turn on support for foreign keys in SQLite PRAGMA foreign_keys = ON; -- many-to-many: students can attend many courses and courses can be attended by many students CREATE TABLE Attends( AttendsId INTEGER PRIMARY KEY, StudentId INTEGER, CourseId INTEGER, FOREIGN KEY (StudentId) REFERENCES Student(Stu...
true
d553a4470009b41867ee9950ed2ad893b293e20c
SQL
tsvhcci/team1
/TeamUtils/carebundle_tabledata/hccidevdb 20140913 2204_refTables.sql
UTF-8
4,417
2.609375
3
[]
no_license
-- MySQL Administrator dump 1.4 -- -- ------------------------------------------------------ -- Server version 5.5.37-log /*!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 ...
true
0409e2219f463d98e454a80215cefd6ab9dbdd9b
SQL
jonamuen/sql-reduce
/test/sqlsmith/sqlite/9278.sql
UTF-8
377
3.015625
3
[ "MIT" ]
permissive
select subq_0.c1 as c0, cast(nullif((select id from main.t0 limit 1 offset 83) , subq_0.c2) as INT) as c1, subq_0.c1 as c2, subq_0.c2 as c3, subq_0.c1 as c4 from (select ref_0.id as c0, ref_0.name as c1, ref_0.id as c2 from main.t0 as ref_0 w...
true
2dc71c147ff9242b2da9854e644620c76b37744d
SQL
poonix/dhl_mei04
/db_dms_dhl (8).sql
UTF-8
56,165
2.875
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Apr 16, 2018 at 07:22 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
ad639ba1730def92d152175009cf2f59e4678585
SQL
sorokinviacheslav/SamaraEcoProject
/modules/core/db/init/hsql/20.create-db.sql
UTF-8
1,190
2.9375
3
[]
no_license
-- begin ECO_ADDRESS alter table ECO_ADDRESS add constraint FK_ECO_ADDRESS_ON_COORDINATES foreign key (COORDINATES_ID) references ECO_POINT(ID)^ alter table ECO_ADDRESS add constraint FK_ECO_ADDRESS_ON_STREET foreign key (STREET_ID) references ECO_STREET(ID)^ create unique index IDX_ECO_ADDRESS_UNIQ_COORDINATES_ID on E...
true
7056dd7cd315c4c19d1f82d843a9e35eea2422d4
SQL
Rudymil/Route_Computation_Networks
/DataCheck/OSM_geomValidity.sql
UTF-8
111
2.640625
3
[]
no_license
SELECT ST_isValid(geom), COUNT(*), 'OSM the 2 countries' AS type FROM shp.osm_road GROUP BY ST_isValid(geom)
true
c8dd4d2c3c143ca5b703a20d7f10200fe6d96ad5
SQL
madhurivaishnav/SALTWEB
/SALT_NewDesign/Database/Procedure/dbo.prcPolicy_CheckFileName.PRC
UTF-8
842
3.515625
4
[]
no_license
SET ANSI_NULLS OFF GO SET QUOTED_IDENTIFIER OFF GO IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[prcPolicy_CheckFileName]') AND type in (N'P', N'PC')) BEGIN EXEC dbo.sp_executesql @statement = N' /* Summary: Stored procedure to check if a Policy with the same filename as that being uploaded al...
true
a8fa0203dcc965c426b78fd4da3794a619077ae0
SQL
anilpacaci/graph-benchmarking
/snb-interactive-sql/scripts/db_schema.sql
UTF-8
4,989
3.609375
4
[]
no_license
drop table k_weight; drop view country; drop table c_sum; drop table post; drop table forum; drop table forum_person; drop table forum_tag; drop table organisation; drop table person; drop table person_email; drop table person_tag; drop table knows; drop table likes; drop table person_language; drop table person_unive...
true
0686b7374201aa64299d1ad8dbc7e4f0e44d4f8a
SQL
Dianaari/uonline
/ujian.sql
UTF-8
22,074
2.78125
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.2.11 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: May 31, 2017 at 08:16 AM -- Server version: 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 */; ...
true
f63c351388db6a7a761b193a40ef8b03cfe0212c
SQL
feilaoda/easyspider
/bittable/db.sql
UTF-8
3,551
3.75
4
[ "Apache-2.0" ]
permissive
drop table market_rate; CREATE TABLE `market_rate` ( `name` varchar(20) NOT NULL COMMENT '自增主键', `rate` decimal(10,4) NOT NULL, KEY `idx_name` (`name`) USING BTREE, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; drop table market_site; CREATE TABLE `market_site` ( `id` int NOT NULL AUTO_INCREMENT...
true
f68a17f5d59d1257732df9eb0012d57878b18f92
SQL
gulatnaru/mvc_workshop
/SQL.sql
UTF-8
338
3.34375
3
[]
no_license
CREATE TABLE TB_USER ( ID VARCHAR2(20) PRIMARY KEY, PWD VARCHAR2(20), NAME VARCHAR2(20) ); CREATE TABLE TB_ITEM ( ID VARCHAR2(20), NAME VARCHAR2(20), PRICE NUMBER ); ALTER TABLE TB_ITEM ADD FOREIGN KEY(ID) REFERENCES TB_USER(ID); ALTER TABLE TB_ITEM ADD CONSTRAINT TB_USER_ID_NAME_PK PRIMARY ...
true
3d40c00987de0b0f94de84f13da7c4391cd0c8de
SQL
NasibNia/coding-drills
/week-06/day-05/01/schema.sql
UTF-8
335
2.890625
3
[]
no_license
DROP DATABASE IF EXISTS stockDB; CREATE database stockDB; USE stockDB; CREATE TABLE stock ( -- YOUR CODE HERE -- id INTEGER(11) AUTO_INCREMENT NOT NULL, Date DATE, Open FLOAT, High FLOAT, Low FLOAT, Close FLOAT, Volume INTEGER(12), PRIMARY KEY (id) -- END CODE AREA -- ); SELECT * FR...
true
c6b557b9a5e68456d761f0554486f80ac3801c1a
SQL
GUAN-XINGQUAN/LeetCode
/SQL Practice/627. Swap Salary.sql
UTF-8
200
2.96875
3
[]
no_license
/* SQL syntax: UPDATE table_name SET column1 = value1, column2 = value2, ... WHERE condition; */ UPDATE Salary SET sex=( CASE WHEN sex='f' THEN 'm' ELSE 'f' END )
true
b3e818f36187f7e9edac9f993bf2f5304c703e4e
SQL
shaka888/swinstall
/sonar/table.sql
UTF-8
2,652
3.609375
4
[]
no_license
drop table ssm_incre_issues; create table ssm_incre_issues ( department varchar(64) not null, project_name varchar(64) not null, project_version varchar(10) not null, module_name varchar(32) not null, author varchar(32) not null, file_name varchar(255) not null, file_type varchar(8) default 'java' not nul...
true
fb69ef0d8ffbb0ecd1ab2f6a33ca723096b5de06
SQL
ypc8272805/ARDSProjectSummary
/数据提取/4数据合并数据匹配/match_view.sql
UTF-8
21,590
3.09375
3
[]
no_license
/* Author:ypc Date:2018.01.29 Table: Description: 本视图的目的就是对之前的patientvalue表做一个透视图,方便后续分析使用,在patientvalue中,所有变量都是单独存放的,现在要按 照pao2对所有参数进行匹配,以前这部分工作使用matlab进行分析,非常繁琐,现在使用SQL非常方便,不同参数的时间误差在论文中有 明确的定义。 */ CREATE MATERIALIZED VIEW matchvalue_1222 AS --首先是将所有参数从patientvalue中提取出来,每一个参数创建一个临时表,方便后面使用,但是这样写很繁琐,应该有更好的方法, -- ...
true
613911ddb3f0f824439188039b8aadfeeeee6c60
SQL
panzhixuan/cookbook-app-back-
/cookbook.sql
UTF-8
9,923
3.375
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : wocao Source Server Version : 50722 Source Host : localhost:3306 Source Database : cookbook Target Server Type : MYSQL Target Server Version : 50722 File Encoding : 65001 Date: 2019-11-23 00:13:44 */ SET FOREIGN_KEY_CHECKS=0; -- ----...
true
da094c56c5a5c3a2d05146b4d474ff0bcab9a801
SQL
JoaoVKG/lojavirtual
/lojavirtual.sql
UTF-8
515
3.5625
4
[ "MIT" ]
permissive
SET SESSION FOREIGN_KEY_CHECKS=0; /* Drop Tables */ DROP TABLE IF EXISTS produto; DROP TABLE IF EXISTS usuario; /* Create Tables */ CREATE TABLE produto ( id_produto int NOT NULL AUTO_INCREMENT, nome varchar(255) NOT NULL, descricao text NOT NULL, preco double NOT NULL, PRIMARY KEY (id_produto) ); CREATE ...
true
21fdfe554b7b5b4eef629c9c14ffb965c4719c12
SQL
blockspacer/planeshift
/src/server/database/mysql/.svn/text-base/loot_rule_details.sql.svn-base
UTF-8
946
2.890625
3
[]
no_license
# MySQL-Front Dump 1.16 beta # # Host: localhost Database: planeshift #-------------------------------------------------------- # Server version 4.0.18-max-nt # # Table structure for table 'loot_rule_details' # DROP TABLE IF EXISTS `loot_rule_details`; CREATE TABLE loot_rule_details ( id int(10) unsigned NOT NULL au...
true
29c5139806e67d96e97d153adc3d547129bfa1db
SQL
wpsouto/sidagoImport1
/logstash/administracao/auditoria/auditoriaBpk.sql
UTF-8
856
3.765625
4
[]
no_license
select a.id_acesso AS acesso_id, a.ts_entrada AS acesso_entrada, a.nu_ipv4 AS acesso_ip, a.id_pessoa AS acesso_pessoa_id, pe.nome AS acesso_pessoa_nome, lt.id AS acesso_pessoa_lotacao_id, lt.nome AS acesso_pessoa_lotacao_nome, a.ds_brownser A...
true
0e5aa775c72ccb809bce4217f604cf9d5ab56379
SQL
yaxhpal/scripts
/DB/Issued.sql
UTF-8
3,169
3.625
4
[]
no_license
-- Set Home branch to Bangalore which has code as @homebranch set @homebranch := 'BL'; -- Set item type to DVD set @itemtype := 'DVD'; -- Set Set inventory date set @inventoryDate = '2013-12-16'; SELECT items.barcode, biblio.title, biblio.author, items.datelastseen, old_issues.issuedate, old...
true
9bb8e507b7a2a0ed5a17cbd650f3fb645576aae6
SQL
umair-gujjar/test_task
/data/init.sql
UTF-8
2,676
3.609375
4
[]
no_license
CREATE DATABASE shoppingbasket; USE shoppingbasket; CREATE TABLE IF NOT EXISTS `User` ( `id` INT NOT NULL AUTO_INCREMENT, `firstname` VARCHAR(45) NOT NULL, `lastname` VARCHAR(45) NOT NULL, `email` VARCHAR(100) NOT NULL, `status` enum('active','disable','deleted') default 'active', PRIMARY KEY (`id`), UN...
true
672841283be170d53ed877e819fa4149c46ce959
SQL
hakwonband/hakwonband-web
/hakwonband-doc/src/database/function.sql
UTF-8
5,710
4.03125
4
[]
no_license
drop function if exists calc_age; create function calc_age(in_dob date) returns int no sql begin declare l_age int; set l_age=date_format(now(),'%Y')-date_format(in_dob,'%Y')+1; if l_age>100 then set l_age = 0; end if; return(l_age); end; select calc_age('1980-09-29'); -- 코드 이름 -- get_code_name(코드그룹, 코드) DELI...
true
af2712f298da9356748527c8332458c7b4cd41aa
SQL
rmagrys/StudentForumDb
/Procedures/Tag/getAllTagsByPostId.sql
UTF-8
295
3
3
[]
no_license
drop procedure if exists `db`.`getAllTagsByPostId`; delimiter $$ CREATE PROCEDURE `db`.`getAllTagsByPostId`( postId INT ) BEGIN select taggedPost.PostId, tag.name from db.taggedPost join db.tag on taggedPost.TagId = tag.idTag where taggedPost.PostId = postId; END $$
true
56ca29d167d4cba9d0afb21448459dd9b16a4cf0
SQL
ClickHouse/ClickHouse
/tests/queries/0_stateless/02514_null_dictionary_source.sql
UTF-8
1,319
3.140625
3
[ "BSL-1.0", "Apache-2.0" ]
permissive
-- Tags: no-parallel DROP DICTIONARY IF EXISTS null_dict; CREATE DICTIONARY null_dict ( id UInt64, val UInt8, default_val UInt8 DEFAULT 123, nullable_val Nullable(UInt8) ) PRIMARY KEY id SOURCE(NULL()) LAYOUT(FLAT()) LIFETIME(0); SELECT dictGet('null_dict', 'val', 1...
true
4c6d13d5d8c9bbee37b140c55679f037467384cf
SQL
scarbrofair/gogudb
/sql/pathman_gaps.sql
UTF-8
6,211
2.90625
3
[ "PostgreSQL" ]
permissive
\set VERBOSITY terse SET search_path = 'public','_gogu'; CREATE EXTENSION gogudb; CREATE SCHEMA gaps; CREATE TABLE gaps.test_1(val INT8 NOT NULL); SELECT create_range_partitions('gaps.test_1', 'val', 1, 10, 3); DROP TABLE gogudb_partition_table._gaps_2_test_1; CREATE TABLE gaps.test_2(val INT8 NOT NULL); SELECT c...
true
f7f7bfe1466df505220c2bb2b3d1a6809ee9e3d3
SQL
xukangqi/BankCloud
/compose/usersqlscript/database.sql
UTF-8
523
2.9375
3
[]
no_license
DROP database if exists bank; CREATE DATABASE bank DEFAULT CHARACTER SET utf8; USE bank; DROP TABLE IF EXISTS `bank_user`; CREATE TABLE `bank_user` ( `user_id` varchar(32) NOT NULL, `user_name` varchar(32) DEFAULT NULL, `password` varchar(64) DEFAULT NULL, `user_type` varchar(16) DEFAUL...
true
321686a19b4867e18fe55f629198adf0736f89d2
SQL
clair13/SQL_Zoo
/SELF_Join.sql
UTF-8
2,958
4.4375
4
[]
no_license
-- How many stops are in the database. SELECT COUNT(name) FROM stops; -- Find the id value for the stop 'Craiglockhart' SELECT id FROM stops WHERE name = 'Craiglockhart'; -- Give the id and the name for the stops on the '4' 'LRT' service. SELECT id , name FROM stops JOIN route ON stops.id = route.stop WHERE ...
true
c054499e09235113c521619c9d5ce646de016999
SQL
shanenolanwit/fakeyjs
/db_setup.sql
UTF-8
1,700
3.09375
3
[]
no_license
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; -- -- Database: `fakeyjs` -- CREATE TABLE IF NOT EXISTS `product` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(200) DEFAULT NULL, `price` int(11) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=...
true
35c16a07842ca8a11f5ebbf9bfdcfc67d1222d7b
SQL
haotingting/gen_curd
/sql/rule_check.sql
UTF-8
1,013
3.234375
3
[]
no_license
drop table if exists ANT_RULE_CHECK; /*==============================================================*/ /* Table: ANT_RULE_CHECK */ /*==============================================================*/ create table ANT_RULE_CHECK ( ID bigint not null auto_increm...
true
c104e7849f66d27c112a864b0866639a11448121
SQL
estoilkovv/SoftUni
/C# DB/Exams - MS SQL/Databases MSSQL Server Exam - 17 Feb 2019/01.DDL.sql
UTF-8
1,439
4.15625
4
[]
no_license
CREATE TABLE Students ( Id INT PRIMARY KEY IDENTITY, FirstName NVARCHAR (30) NOT NULL, MiddleName NVARCHAR (25), LastName NVARCHAR (30) NOT NULL, Age INT CHECK (Age > 5 AND Age < 100), [Address] NVARCHAR (50), Phone NCHAR (10) ) CREATE TABLE Subjects ( Id INT PRIMARY KEY IDENTITY, [Name] NVARCHAR (20) NOT NUL...
true
11534d839ddf0f3b7ba28858eac1f2d18b6c36be
SQL
minhnguyen287/oopcms
/oopcms.sql
UTF-8
5,253
3.15625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.0 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Aug 03, 2020 at 02:14 AM -- Server version: 10.1.31-MariaDB -- PHP Version: 7.1.16 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
true
9865355bdb34208df01b0afc666bf14aed211299
SQL
xinghuangxu/config-generator
/config/qa-sql-alm.sql
UTF-8
624
3.34375
3
[]
no_license
/****** Script for SelectTopNRows command from SSMS ******/ SELECT ts.TS_USER_05 as 'Type','' as 'Level', cyc.CY_CYCLE as 'Test Set', ts.TS_NAME as 'Test Case', ts.TS_USER_02 as 'Plan Dur', ts.TS_USER_09 as 'TC Type', tscyc.TC_STATUS as 'Status', tscyc.TC_EXEC_DATE as 'Ex Date', tscyc.TC_USER_04 as 'Cur Status', tscy...
true
a8f4ae7d9edb2dcca5cefdfd71d1cb1b0da0123b
SQL
maiasb/SisDiaria
/sql/CADDIARIA.sql
UTF-8
519
2.78125
3
[]
no_license
CREATE PROCEDURE spCadDiaria @MAT VARCHAR(50), @ID_DIARIA INT, @SAIDA VARCHAR(50), @HORAS VARCHAR(50), @DATAS VARCHAR(50), @DESTINO VARCHAR(50), @HORAD VARCHAR(50), @DATAD VARCHAR(50), @VALORD VARCHAR(50), @TIPO VARCHAR(50), @OBJ VARCHAR(50) AS BEGIN --SELECT MAT FROM SERVIDOR WHERE MAT = @MAT INSERT I...
true
cc22ed2b20a94c5eceb87beed9aecea0465b70fe
SQL
whyviidee/BD
/PROJETO BD/3Entrega/schema.sql
UTF-8
6,105
3.5625
4
[]
no_license
DROP TABLE IF EXISTS solicita; DROP TABLE IF EXISTS audita; DROP TABLE IF EXISTS coordenador; DROP TABLE IF EXISTS acciona; DROP TABLE IF EXISTS alocado; DROP TABLE IF EXISTS transporta; DROP TABLE IF EXISTS meioSocorro; DROP TABLE IF EXISTS meioApoio; DROP TABLE IF EXISTS meioCombate; DROP TABLE IF EXISTS meio; DROP T...
true
8ea8511c7f328c61612d4195343075ce4ad30ba3
SQL
FREEKILLER201020/berserk-2.0
/sql/player.sql
UTF-8
2,907
4.09375
4
[]
no_license
CREATE TABLE `Players` ( `timemark` datetime DEFAULT NULL, `id` int(11) DEFAULT NULL, `nick` varchar(100) DEFAULT NULL, `frags` int(11) DEFAULT NULL, `deaths` int(11) DEFAULT NULL, `level` int(11) DEFAULT NULL, `clan_id` int(11) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; ALTER TABLE `Players` A...
true
16d4e54e26b46480f59381f80fadadf4e76b01db
SQL
krauspep/Sabre-EXE
/Data/Scripts/Tools/Change Data to None From DI.sql
UTF-8
488
3.203125
3
[]
no_license
SET TERM ^; EXECUTE BLOCK AS DECLARE L_START_DATE DATE = '2012.01.01'; DECLARE L_END_DATE DATE = '2012.12.31'; DECLARE L_NEW_EVENT INT = 7; DECLARE L_RECORD_STATUS VARCHAR(10) = 'DI'; BEGIN -- Update the Attendance Records UPDATE ATTENDANCE A...
true
a2d10b93d6d1512430d508e85fa583e02996b16c
SQL
Dat0318/Database_core
/ecomerce_v2.sql
UTF-8
5,166
3.265625
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : localhost Source Server Version : 50505 Source Host : localhost:3306 Source Database : ecomerce_v2 Target Server Type : MYSQL Target Server Version : 50505 File Encoding : 65001 Date: 2020-09-17 10:50:13 */ SET FOREIGN_KEY_CHECKS=0; ...
true
9c828488e0e4e5b913a87558afba67ce35afff79
SQL
razanHamzeh/Test2
/TABLES/OT_OPERATION.sql
UTF-8
911
2.546875
3
[]
no_license
-------------------------------------------------------- -- DDL for Table OT_OPERATION -------------------------------------------------------- CREATE TABLE "HISRHAMZEH"."OT_OPERATION" ( "ID" NUMBER, "FACILITY_ID" NUMBER, "ICD_CODE" NUMBER, "CPT_CODE" NUMBER, "DESC_LONG" VARCHAR2(500 BYTE), "DESC_P...
true
e0fe76cb152fa7e66a3125c77ec51461392da1f0
SQL
MapofLife/data-processing
/staging/load_scripts/golarainforest_herps.sql
UTF-8
3,058
3.71875
4
[]
no_license
--------------------------- -- create the species table --------------------------- --upload the xlsx into cartodb --rename if necessary w/in cartodb ui. format should be <place>_<taxa> --example: golarainforest_herps --create the column that will link from the geom table (primary key) to species list (foreign key...
true
0736e1e4f2031768c2d2a4e7b76f7c69bbd6ae99
SQL
angelquin1986/kobra
/web/Solicitud-detenido/aplicacion.sql
UTF-8
22,546
3
3
[ "BSD-3-Clause", "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.0.10deb1 -- http://www.phpmyadmin.net -- -- Servidor: localhost -- Tiempo de generación: 26-01-2015 a las 09:23:50 -- Versión del servidor: 5.5.40-0ubuntu0.14.04.1 -- Versión de PHP: 5.5.9-1ubuntu4.5 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @O...
true
708097cb900a550b192f0c5a6fa3c45ad13189ce
SQL
vvandriichuk/skillfactory_rds
/module_10/SkillFactory_snowflake.sql
UTF-8
1,365
3.203125
3
[]
no_license
CREATE TABLE "nobels_laureates" ( "id" int PRIMARY KEY, "year" varchar NOT NULL, "category" varchar NOT NULL, "prize" varchar NOT NULL, "motivation" varchar, "prize_share" varchar NOT NULL, "laureate_id" int NOT NULL, "laureate_type" varchar NOT NULL, "laureates_full_name" varchar NOT NULL, "laureat...
true
e21e0bff095aa0ce06dea85e22a011b6c2494f73
SQL
orosz-usgs/etl-epa
/src/main/resources/sql/monitoringLocation/calculateGeopoliticalData.sql
UTF-8
439
2.953125
3
[]
no_license
update wqx.monitoring_location_local upd_table set calculated_fips = geoid, cntry_cd = 'US' from wqx.monitoring_location_local src_table join tl_2019_us_county_geopkg on st_covers(tl_2019_us_county_geopkg.wkb_geometry, src_table.geom) where src_table.calculated_fips is null and upd_table.st...
true
5e33b9590397ddbe75a78b7165383489bb64ff55
SQL
emanuelanechei/oracle_ready2run_scripts
/coe_xfr_sql_profile_9j820km30uynd_2069803848.sql
UTF-8
5,315
3.140625
3
[]
no_license
SPO coe_xfr_sql_profile_9j820km30uynd_2069803848.log; SET ECHO ON TERM ON LIN 2000 TRIMS ON NUMF 99999999999999999999; REM REM $Header: 215187.1 coe_xfr_sql_profile_9j820km30uynd_2069803848.sql 11.4.4.4 2013/08/31 carlos.sierra $ REM REM Copyright (c) 2000-2012, Oracle Corporation. All rights reserved. REM REM A...
true
34b7374d791c75afed19c87b673c8da9d1156ac9
SQL
prutha28/University-Students
/studentportal/sql schema/PERSON_INSERTS.sql
UTF-8
5,512
2.625
3
[]
no_license
-- CSC/IS: Ned - 9 INSERT INTO `PERSON` (`unity_id`, `fname`, `lname`, `preferred_name`, `gender`, `dob`, `pwd`) VALUES ('ned', 'Eddard', 'Stark', 'Ned', 'M', '2017-02-01', 'admin'), ('sansa', 'Sansa', 'Stark', 'Little Bird', 'F', '2017-02-01', 'admin'), ('arya', 'Arya', 'Stark', 'Needle', 'F', '2017-02-01', 'admin')...
true
7876f531fad1cafcd38e6ee10edb5ddbdf041c39
SQL
herbinmorn/Bamazon
/bamazon.sql
UTF-8
1,015
3.40625
3
[]
no_license
DROP DATABASE IF EXISTS bamazon_db; create database bamazon_db; use bamazon_db; create table products( item_id integer auto_increment, product_name varchar(200) not null, department_name varchar(200) not null, price decimal(10,4) not null, stock_quantity integer, primary key (item_id) ); in...
true
8c8a5ecade858bd5b8b89db3a5a1f7799a1d6846
SQL
matheusspall/TreinamentoJava
/aula16/exercicio2.sql
UTF-8
124
3.53125
4
[]
no_license
SELECT v.nome as vinho, vi.nome as vinicola FROM vinho v INNER JOIN vinicola vi ON v.fk_vinicola = vi.codigo ORDER BY 2
true
5829cd015ebae6b071004806bfafeab0b863d8f4
SQL
MarielaRodriguez777/Proyecto-Mentaru
/BD/Vistas/VW_LABORATORIOS.sql
UTF-8
355
2.859375
3
[]
no_license
/* Vista: VW_LABORATORIOS * Descripcion vista: Lista de laboratorios * * Datos de Salida: idLaboratorio, codigoLaboratorio, nombreLaboratorio * */ CREATE OR ALTER VIEW VW_LABORATORIOS AS SELECT la.idLaboratorio AS id , la.codigoLaboratio AS codigo , la.nombreLaboratorio AS nombre FROM Laboratorio la --INNER JOIN...
true
9cf42d5d3c7933d0cc1749d207c7d8ce0e93155c
SQL
meuhfunk/portfolio
/sql/portfolio.sql
UTF-8
3,195
3.453125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.1 -- https://www.phpmyadmin.net/ -- -- Hôte : localhost -- Généré le : mer. 01 août 2018 à 15:39 -- Version du serveur : 10.1.33-MariaDB -- Version de PHP : 7.2.6 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101...
true
0209392dcfe8144eb32995760d5044777d48bf42
SQL
Body/cwdb
/Development/game_event_condition.sql
UTF-8
858
2.671875
3
[]
no_license
/* MySQL Data Transfer Source Host: localhost Source Database: mangos Target Host: localhost Target Database: mangos Date: 01.06.2009 18:13:24 */ SET FOREIGN_KEY_CHECKS=0; -- ---------------------------- -- Table structure for game_event_condition -- ---------------------------- DROP TABLE IF EXISTS `game_event_condit...
true
2ac40ee7edc2d9c1b75f78fbe355233eb121703c
SQL
LTLiem/commons
/src/main/database/pkg_reconcile.sql
UTF-8
2,636
3.671875
4
[]
no_license
CREATE OR REPLACE PACKAGE PKG_RECONCILE AS type array_t is table of varchar2(1000) index by PLS_INTEGER; function hashcode_KeyColums(value_For_Hash VARCHAR2) return varchar2; procedure feedData(data_Source VARCHAR2, table_Name_Destination VARCHAR2, key_Columns array_t, ...
true
a47d01272468abc9f71c6b5e40085099b8a53b0c
SQL
mettlesolutions/coverage_determinations
/src/data/NCD/Cat1/LipidTesting/LipidTesting.cql
UTF-8
11,514
2.765625
3
[ "Apache-2.0" ]
permissive
//Lipid Testing library LipidTesting using FHIR version '1.8' include FHIRHelpers version '1.8' called FHIRHelpers //include otherLibrary version 'x.x' called otherLibrary //codesystem codeSystemName : 'OID' version 'x.x' //valueset valuesetName : 'OID' version 'x.x' codesystems{codeSystem1 , codeSystem2, etc} //code...
true
412817f928f4124900e8c8c911dac742c7edc853
SQL
mmondelli/reproduceR
/inst/db_schema.sql
UTF-8
1,859
3.46875
3
[]
no_license
CREATE TABLE "input_output" ( input_output_id INTEGER NOT NULL PRIMARY KEY, name TEXT, type TEXT ); CREATE TABLE os ( os_id INTEGER NOT NULL PRIMARY KEY, name TEXT, platform TEXT, hardware_id INTEGER REFERENCES hardwarw(hardware_id) ON DELETE CASCADE ); CREATE TABLE hardware ( hardware_id INTEGER NOT NULL PRIMA...
true
bff1dcd2e9b5907504abd85b1f2421df28c3f6c0
SQL
edoardoruffoli/Farmhouse_4.0-db
/sql/population.sql
UTF-8
12,819
2.96875
3
[]
no_license
/*Popolamento Animale*/ truncate table Animale; insert into Animale values (001, 'M', 'Bovino', 'Mucca', 'Frisona', '2019-08-10', 140, 1012, 01), (002, 'F', 'Bovino', 'Mucca', 'Frisona', '2019-05-13', 138, 846, 01), (003, 'F', 'Bovino', 'Mucca', 'Hereford', '2019-10-25', 146, 921, 01), (004, 'M', 'Bovino', 'Mucca', 'J...
true