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
aae161f8f41635a70a76dc5e85277a7706737ecf
SQL
jgarzonext/plsql-testing
/script_plsql/bd_iaxis/script/tables/PDS_SUPL_ACCIONES.sql
ISO-8859-1
2,972
3.21875
3
[]
no_license
-------------------------------------------------------- -- DDL for Table PDS_SUPL_ACCIONES -------------------------------------------------------- CREATE TABLE "AXIS"."PDS_SUPL_ACCIONES" ( "CMOTMOV" NUMBER(3,0), "SPRODUC" NUMBER(6,0), "NORDEN" NUMBER(3,0), "ORDENACC" NUMBER(2,0), "DINACCION" VARCHAR2(...
true
9f5ee380a14f8893209c933f2502f9193f3bf049
SQL
ivancekic/sql-data-analysis
/sql/Stanje/Generisanje v1.sql
UTF-8
524
3.453125
3
[ "MIT" ]
permissive
select d.org_deo, sd.proizvod , sum(kolicina*faktor*k_robe) stanje_dok , z.STANJE, z.REZERVISANA from dokument d, stavka_Dok sd , zalihe z where d.status > 0 and d.godina = sd.godina (+) and d.vrsta_dok = sd.vrsta_dok (+) and d.broj_dok = sd.broj_dok (+) and sd.k_robe <> 0 and...
true
e6711c22e3c7f5866b5c6c121b798c4084765a6b
SQL
peschkaj/CS586-Project
/queries/06.sql
UTF-8
215
3.5625
4
[ "MIT" ]
permissive
-- Movies released by country by year SELECT release_year, country_name, COUNT(*) FROM movies m JOIN countries c ON m.country_id = c.id GROUP BY country_name, release_year ORDER BY country_name, release_year;
true
46322fdaf7714396b10edb98500a118d99f48a20
SQL
samszo/gestedit
/bdd/query/calculerRoyalties.sql
UTF-8
1,326
3.375
3
[]
no_license
SELECT ac.id_auteurxcontrat , ac.id_isbn, ac.pc_papier, ac.pc_ebook , a.prenom, a.nom, la.role, c.type ,i.num , v.id_vente, v.date_vente, v.montant_livre, v.id_boutique , i.id_editeur, i.type , d.base_contrat, d.id_devise, d.taux_livre_dollar, d.taux_livre_euro, d.date_taux, d.date_...
true
7eec3d7711046ce42736f9eebd680d6d418ae345
SQL
monterick/BoletoSicoob
/bancos/sicoob/util/sql/boletos.sql
UTF-8
2,769
3.546875
4
[ "Apache-2.0" ]
permissive
SELECT cp.CartaoPar_id, c.usuario_LOGIN AS login, -- contratante / cedente -- c.contratante_agencia AS agencia_cooperativa, c.contratante_agenciaDV AS dv_prefixo, c.contratante_conta AS conta_corrente, c.contratante_contaDV AS dv_conta_corrente, c.contratante_carteira AS carteira, c.contrat...
true
d64d755dc4279f4b16c09cff074ec262d19ab470
SQL
Wangqhu/JavaWeb
/作业/Web.sql
UTF-8
11,898
3.53125
4
[]
no_license
CREATE DATABASE Web; USER Web; CREATE TABLE teacher( id INT PRIMARY KEY AUTO_INCREMENT, username VARCHAR(10), PASSWORD VARCHAR(30), telnet VARCHAR(30), email VARCHAR(30) )ENGINE=INNODB DEFAULT CHARSET=utf8; INSERT INTO teacher VALUES(1,'teach1','123456',13909700315,'1511056694@qq.com'); INSERT INTO teache...
true
7b0f949a98bb9e279d0a2706fae30ec8bc12cfec
SQL
CarlosGabrielGomez/mysql-example
/script-empleados.sql
UTF-8
2,038
3.75
4
[]
no_license
--ddbb-empleados --1) ¿Cuáles son los nombres y la ocupación de cada uno de los empleados? SELECT nombre,trabajo FROM `empleados` --2) ¿Cuál es el nombre y la edad de cada uno de los empleados? SELECT nombre ,edad FROM `empleados` --3) ¿Cuál es el nombre y la edad de todos los programadores? SELECT nombre,eda...
true
f0b15ea38241c66f34f071a9b8bebc12afc666de
SQL
kkousounnis/Eshop_Smartphones
/DB_PhonePLatformforPostgresql.sql
UTF-8
583
2.515625
3
[]
no_license
create table users( Username varchar(255), Password varchar(255), Idnumber varchar(255), Name varchar(25), Surname varchar(25), Phonenumber varchar(25), Address varchar(25), Primary key (Username,Password) ); create table StatusBuy( Status varchar(25), Username varchar(255), Pass...
true
fde7c949667f9f261dca969dbafb5aa4f45673ce
SQL
ArielEstrada/TBD_12_EXA_PRAC_3_16550441
/trgr_before_insert_empleados.sql
UTF-8
398
2.828125
3
[]
no_license
CREATE DEFINER=`root`@`localhost` TRIGGER `empleados_BEFORE_INSERT` BEFORE INSERT ON `empleados` FOR EACH ROW BEGIN declare fechaReg date; declare fechaNac date; if (new.fecha_reg is null) or(new.fecha_nac is null) then signal sqlstate '45000' set message_text = '¡FALTAN DATOS!'; end if; set fechaReg = new.fecha_reg; s...
true
e2876f5d7c649e57accee94283047a6964a295c5
SQL
SylvioCorrea/ApiTarefas
/tarefas.sql
ISO-8859-1
714
3.484375
3
[]
no_license
create database tarefas; use tarefas; create table clientes ( id int primary key identity(1,1), nome varchar(100) not null ); create table tarefas ( id int primary key identity(1,1), id_cliente int not null foreign key references clientes(id), descricao varchar(200) not null, ); insert into clientes (nome) val...
true
9cb76592b463c1d321f16fbcb26a417c397c775d
SQL
BKmarian/Tema-3-Programare-Web-Java
/lab10/target/classes/schema.sql
UTF-8
913
4.125
4
[]
no_license
CREATE database IF NOT EXISTS lab10; CREATE TABLE IF NOT EXISTS lab10.`orders` ( `id` INT NOT NULL AUTO_INCREMENT, `total_price` DOUBLE NOT NULL, `status` VARCHAR(45) NOT NULL, PRIMARY KEY (`id`)); CREATE TABLE IF NOT EXISTS lab10.`products` ( `id` INT NOT NULL AUTO_INCREMENT, `name` VARCHAR(45) NOT NULL, `price` DOU...
true
8cc9f7bc296b3f929f3b04130990cc318a17840e
SQL
Aaronphilip2003/MOSH-SQL-SCRIPTS
/SCRIPT-3.sql
UTF-8
253
3.140625
3
[]
no_license
-- SELECT * FROM sql_store.customers -- SELECT state -- FROM customers -- in line 3 and 4 duplicate states will also get selected, to remove the duplicate states from getting selected, we use the DISTINCT keyword SELECT DISTINCT state FROM customers
true
184a7cae3d361ea1d5aa83439efeb7660047ebae
SQL
guido-damico/movie-diversity
/movieDiversity.sql
UTF-8
3,402
3.796875
4
[]
no_license
PRAGMA foreign_keys=ON; BEGIN TRANSACTION; -- -- DDL -- CREATE TABLE locations (id integer primary key, name text, language text); CREATE TABLE sites (id integer PRIMARY KEY, name text NOT NULL, url text NOT NULL, ...
true
e0a753136574b46ee21e57a3d7d8d2eb2bc0b66c
SQL
phakphumi/Management-System-Database-Project
/db/db_mgt_sys_design.sql
UTF-8
22,713
3.34375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.6.5.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Apr 30, 2017 at 05:47 PM -- Server version: 10.1.21-MariaDB -- PHP Version: 7.1.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET...
true
92ea76ea6e212dc60885661f59ead1652d400e01
SQL
cschu/mgscryer
/sqlite/create_db.sql
UTF-8
780
2.8125
3
[]
no_license
DROP TABLE IF EXISTS study; CREATE TABLE study( id TEXT PRIMARY KEY, bioproject TEXT, accession TEXT, samples_count INTEGER, secondary_accession TEXT, centre_name TEXT, is_public INTEGER, public_release_date TEXT, abstract TEXT, name TEXT, data_origination TEXT, last_upd...
true
f977d54594e05766ea8cde61b8dc340830504767
SQL
johngieselmann/simple-twitter-connector
/mysql/twitter_connector.sql
UTF-8
254
3.0625
3
[]
no_license
/* CREATE THE TABLE TO STORE THE FEEDS */ CREATE TABLE IF NOT EXISTS tweets ( `id` INT(11) NOT NULL AUTO_INCREMENT, `tweets` LONGTEXT DEFAULT NULL, `created` DATETIME DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
true
426e8d8b8ebd1e8aa58f4e9f306b0a25ad491d18
SQL
pribadiimpy/erp-impy
/database/erp-impy-20200116.sql
UTF-8
3,808
3.015625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.3 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jan 16, 2021 at 03:03 AM -- Server version: 10.4.14-MariaDB -- PHP Version: 7.4.11 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
true
6de70524ff3c74655804b77ca833b48c5220de02
SQL
rxt1077/IT635
/example-project/init.sql
UTF-8
1,591
3.796875
4
[]
no_license
CREATE DATABASE car_parts; CREATE USER car_parts WITH PASSWORD 'testing'; GRANT ALL PRIVILEGES ON DATABASE car_parts to car_parts; \c car_parts CREATE TABLE manufacturers ( manufacturer_id INTEGER NOT NULL, name VARCHAR(128) NOT NULL, street_address VARCHAR(256) NOT NULL, city VARCHAR(64...
true
0be0284f464b03924b48403c7d07d4703f620757
SQL
crcox/aae
/vignettes/data_schema.sql
UTF-8
14,167
3.34375
3
[]
no_license
PRAGMA synchronous = OFF; PRAGMA journal_mode = MEMORY; PRAGMA cache_size = 40000; BEGIN TRANSACTION; CREATE TABLE "corpus" ( "id" INTEGER, "label" TEXT NOT NULL, "description" TEXT DEFAULT NULL, PRIMARY KEY ("id") ); CREATE TABLE "accent" ( "id" INTEGER, "label" TEXT NOT NULL, "description" TEXT DEFAULT ...
true
478eb74097db4ac37fb08165ab21719a6fe37406
SQL
qhit2017/GR1704_01
/④SQLServer数据库/数据库12.25/第三组/陈起航12.25/SQLQuery4.sql
GB18030
901
3.90625
4
[]
no_license
SELECT*FROM EMP --1.ѯǡSALESԱϢ SELECT * from EMP a WHERE a.EMPNO='SALES' --2.ѯ˾нˮߵԱϢ SELECT MAX(b.SAL) from EMP b SELECT * from EMP p WHERE p.SAL=(SELECT MAX(b.SAL) from EMP b) --3.ѯнˮԱţ SELECT MAX(f.SAL) from EMP f GROUP BY f.DEPTNO SELECT t.EMPNO,t.EMPNO from EMP t WHERE t.SAL in(SE...
true
bfdccf9a8bedd1e4482512ffa9723b63e9847d02
SQL
kangqi0421/sql
/DBMS_REDEF/create_log_actions.sql
UTF-8
92,940
3.109375
3
[]
no_license
CREATE TABLE CBL.LOG_ACTIONS_MOJE ( ACTION_ID NUMBER(16) NOT NULL, ACT_CODE_ID NUMBER(3) NOT NULL, RESULT_ID NUMBER(16) NOT NULL, SESSION_CD VARCHAR2(512 BYTE) NOT NULL, CLIENT_ID NUMBER(10), CONTRACT_ID NUM...
true
737e8549a970015a4c217f5ae387b1d7c95c51a2
SQL
suelenveiga/pytho
/virtual/schema.sql
UTF-8
1,551
3.90625
4
[]
no_license
CREATE TABLE "Serie" ( "titulo" varchar(100) NOT NULL, "codigo" serial unique, CONSTRAINT "SeriePK" PRIMARY KEY ("codigo") ) CREATE TABLE "Temporada" ( "descricao" varchar (100) NOT NULL, "codigo" serial unique, "FK_serie_cod" serial unique, "numero" int NOT NULL, CONSTRAINT "Temporad...
true
ed4790f7177950a58cbe1712ce503eea3a47fc84
SQL
liuyinghsc/cms_sys
/src/main/resources/db/migration/V3__create_users_table.sql
UTF-8
213
2.6875
3
[]
no_license
CREATE TABLE users( ID INTEGER (10) NOT NULL auto_increment, USERNAME NVARCHAR(100) NOT NULL UNIQUE , PASSWORD NVARCHAR(100) NOT NULL, ENABLED boolean NOT NULL DEFAULT true, PRIMARY KEY (ID) );
true
58c2ce59ed34d1edd3f820d0fbd79da0ea9fe82a
SQL
Rfretwell1/PhPSecureWeb
/setup_database.sql
UTF-8
1,139
3.453125
3
[]
no_license
/*Creates the database & user*/ CREATE DATABASE coursework_db COLLATE utf8_unicode_ci; GRANT SELECT, INSERT, UPDATE on coursework_db.* TO 'cw_user'@'localhost' IDENTIFIED BY 'cw_password'; /*Creates the table to hold the message info*/ USE coursework_db; DROP TABLE IF EXISTS messages; CREATE TABLE messages ( m...
true
9df6b834cf6b036695d9c0f171a4db855aa52517
SQL
marcomarasca/Synapse-Repository-Services
/lib/jdomodels/src/main/resources/schema/ResourceAccess-ddl.sql
UTF-8
393
3.375
3
[ "Apache-2.0" ]
permissive
CREATE TABLE IF NOT EXISTS `ACL_RESOURCE_ACCESS` ( `ID` BIGINT NOT NULL, `OWNER_ID` BIGINT NOT NULL, `GROUP_ID` BIGINT NOT NULL, PRIMARY KEY (`ID`), CONSTRAINT `RESOURCE_ACCESS_OWNER_FK` FOREIGN KEY (`OWNER_ID`) REFERENCES `ACL` (`ID`) ON DELETE CASCADE, CONSTRAINT `RESOURCE_ACCESS_GROUP_ID_FK` FOREIG...
true
b367fb5396c80078d4034aa723468e13c9063aa2
SQL
aimerChen/Test
/src/user.sql
UTF-8
1,341
3.578125
4
[]
no_license
create database spring DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci; drop table if exists user; create table user( id int(11) auto_increment, name varchar(128) unique not null, password varchar(256) not null, birthday varchar(256), salt varchar(128), locked int(2), createTime timestamp, primary ...
true
9c1e36b115c996d4a08e15e926aabeae2651c3c7
SQL
MidnightBSD/security-advisory
/src/main/resources/db/migration/V1_0__secadv_create.sql
UTF-8
889
3.46875
3
[ "BSD-2-Clause" ]
permissive
CREATE TABLE advisory ( id SERIAL PRIMARY KEY, cve_id VARCHAR(30) NOT NULL, description TEXT NULL, published_date TIMESTAMP, last_modified_date TIMESTAMP, severity VARCHAR(30) ); CREATE TABLE vendor ( id SERIAL PRIMARY KEY, name VARCHAR(200) NOT...
true
9c7f62db4b16ac10787d49fdf70ddde90d29c280
SQL
vt0311/acorn_sql
/관리자2.sql
UHC
384
2.609375
3
[]
no_license
create user oraman identified by oracle account unlock ; alter user oraman default tablespace users ; -- connect : ִ ɷ -- resource : ̺ ִ ɷ grant connect, resource to oraman ; create user gomdori identified by oracle account unlock ; alter user gomdori default tablespace users ; grant connect, resource to gom...
true
bda0721365a453abd7dff1bc764d700d615d0ab1
SQL
Mluckydwyer/Cy.io
/database/Create_User_Table.sql
UTF-8
337
3.296875
3
[]
no_license
create table users ( userid varchar(40) null, userName varchar(20) not null, email varchar(40) not null, gamesOwned int default 0 null ); create unique index users_userName_uindex on users (userName); create unique index users_userid_uindex on users (userid); alter table users add constraint users_pk primar...
true
fc1e7a470f3f4b8df8645d10ab02ad5f21a2f900
SQL
pettywei/examinationSyste
/src/exam.sql
UTF-8
4,648
3.1875
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : ssm Source Server Version : 50638 Source Host : localhost:3306 Source Database : exam Target Server Type : MYSQL Target Server Version : 50638 File Encoding : 65001 Date: 2018-05-27 23:16:07 */ SET FOREIGN_KEY_CHECKS=0;...
true
071ae591198efdf61ccb4d5d900ef6a6a0c5e65d
SQL
jdrew1303/sqlgenerate
/test/spec_sql/official-suite/rowhash-1.sql
UTF-8
357
2.765625
3
[ "MIT" ]
permissive
-- original: rowhash.test -- credit: http://www.sqlite.org/src/tree?ci=trunk&name=test CREATE TABLE t1(id INTEGER PRIMARY KEY, a, b, c); CREATE INDEX i1 ON t1(a); CREATE INDEX i2 ON t1(b); CREATE INDEX i3 ON t1(c) ;DELETE FROM t1 ;INSERT OR IGNORE INTO t1 VALUES(sub_key, 'a', 'b', 'c') ;SELECT id FROM t1...
true
ac5cf4cb8679348581bea86e6f302f35581abc93
SQL
git337512725/htSystem
/htadmin/src/main/resources/myboot.sql
UTF-8
5,275
3.453125
3
[]
no_license
/* SQLyog v12.2.6 (64 bit) MySQL - 5.7.20-log : Database - myboot ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@F...
true
08ca5a0f26d9ed4710f50fdcfa9747e3398148d2
SQL
omarjcm/ssp
/codigo/versiones/v3.0/SSP_Procedure/ssp_insertar_usuario.sql
UTF-8
1,208
3.53125
4
[]
no_license
DELIMITER $$ DROP PROCEDURE IF EXISTS `ssp`.`ssp_insertar_usuario` $$ CREATE DEFINER=`root`@`localhost` PROCEDURE `ssp_insertar_usuario`(nombre_ VARCHAR(50), apellido_ VARCHAR(50), direccion_ VARCHAR(50), sexo_ VARCHAR(50), lugar_nacimiento_ VARCHAR(50), tipo_ VARCHAR(50), cargo_ VARCHAR(50), telefono1_ VARCHAR(50), ...
true
83a994af4f36b80dcde71a81eea4962421a3193f
SQL
chichi-zhu/Campus-Shop
/o2o.sql
UTF-8
13,232
3.59375
4
[]
no_license
/* Navicat MySQL Data Transfer Source Server : localhost_3306 Source Server Version : 50515 Source Host : localhost:3306 Source Database : o2o Target Server Type : MYSQL Target Server Version : 50515 File Encoding : 65001 Date: 2019-01-15 19:53:53 */ SET FOREIGN_KEY_CHECKS=0; -- ...
true
489fc228ace01111640817d6dd5a76b8ba785de5
SQL
Proton4ik/projects
/Mysql/4. Создание структуры, ключей, индексов.sql
UTF-8
5,522
3.765625
4
[]
no_license
USE linkedin; -- Приводим в порядок отображение данных в таблиц select * from users limit 10; update users set updated_at = now() where updated_at < created_at; select * from profiles limit 10; update profiles set updated_at = now() where updated_at < created_at; update profiles set last_login = now() where l...
true
a57d2c83e774501dec870cc56a70acf09ed66e49
SQL
wclipp/Production
/XXWMC_GET_CONV.sql
UTF-8
513
2.84375
3
[]
no_license
create or replace FUNCTION XXWMC_GET_CONV (in_uom IN VARCHAR2, in_part_id IN NUMBER, out_conv OUT NUMBER) RETURN NUMBER AS conv NUMBER; BEGIN SELECT conversion_rate INTO conv FROM mtl_uom_conversions WHERE inventory_item_id = in_part_id AND UPPER(uom_code) = UPPER(in_uom); out_conv := conv; RETURN(0...
true
dd32704e58b81cf894671667f9af80149534d3d2
SQL
amigosdobart/gpp
/scripts/churn_v2.sql
UTF-8
1,652
3.359375
3
[]
no_license
SELECT TO_CHAR (assinante1.activation_date, 'dd/mm/yyyy') AS data_ativacao, (SELECT NVL (COUNT (1), 0) FROM tbl_rec_recargas@prepr_gppuser r WHERE r.idt_msisdn = assinante1.sub_id AND r.id_tipo_recarga = 'R' AND r.dat_origem >= assinante1.activation_date) AS qtde_rec...
true
32919feb00ef22553a8d2e01ebf6b73ef42bf8b3
SQL
BorrisStar/otus-spring-boot
/src/main/resources/data.sql
UTF-8
986
2.546875
3
[]
no_license
INSERT INTO author(firstname, lastname) VALUES ('Andrey', 'Lukyanenko'); INSERT INTO author(firstname, lastname) VALUES ('Aleksey', 'Isaev'); INSERT INTO author(firstname, lastname) VALUES ('University', 'of Oxford'); INSERT INTO genre(genre) VALUES ('Military'); INSERT INTO genre(genre) VALUES ('Fantasy'); INSERT IN...
true
da5a814123ba89d413eccad576e7a44708dd6952
SQL
Vovamzur/university-db
/create.sql
UTF-8
4,288
3.625
4
[]
no_license
CREATE TABLE academic ( id serial PRIMARY KEY, firstname VARCHAR(20) NOT NULL, middlename VARCHAR(20) NOT NULL, lastname VARCHAR(20) NOT NULL, recruitment_date DATE ); CREATE TABLE departmenttype ( id serial PRIMARY KEY, type VARCHAR(15) NOT NULL ); CREATE TABLE department ( id serial PRIMARY KEY, t...
true
e39222009aa88779b610464536360b9da099a5ae
SQL
pavelmiskevich/sql-ex
/SQL/28 (1) Компьютерная фирма.sql
UTF-8
657
2.515625
3
[]
no_license
--Используя таблицу Product, определить количество производителей, выпускающих по одной модели. -- Предложение GROUP BY -- Предложение HAVING -- Подзапросы -- Процесс ------------------------------------------------------------- -- Решение ------------------------------------------------------------- select c...
true
03753b9c80fc2761676a660ad2f92a8c6d1b4614
SQL
Hawk9293/wp-content
/themes/salon/salon.sql
UTF-8
27,634
3.109375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.3 -- https://www.phpmyadmin.net/ -- -- Хост: 127.0.0.1:3306 -- Время создания: Ноя 13 2019 г., 14:52 -- Версия сервера: 5.7.19 -- Версия PHP: 7.1.7 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTE...
true
32ecb2eb5b3985a6a5a7bbe4335002c8dfe8d994
SQL
chardmeier/protest-gui
/AddToDatabase.sql
UTF-8
849
3.046875
3
[]
no_license
ALTER TABLE pro_examples ADD COLUMN sequence_no integer; DROP TABLE IF EXISTS annotators; CREATE TABLE annotators ( id integer primary key autoincrement, name text not null ); ALTER TABLE annotations ADD COLUMN annotator_id integer; ALTER TABLE annotations ADD COLUMN conflict_status text; ALTER TABLE token_annotat...
true
383ec4e231d464db32ef4d160c351731afd451cf
SQL
dwusiq/WeBASE-Node-Manager
/script/upgrade/v151_v152.sql
UTF-8
3,113
2.796875
3
[ "Apache-2.0" ]
permissive
SET NAMES utf8mb4; SET FOREIGN_KEY_CHECKS = 0; -- warehouse asset INSERT INTO `tb_warehouse` (`id`, `warehouse_name`, `warehouse_name_en`, `type`, `warehouse_icon`, `description`, `description_en`, `warehouse_detail`, `warehouse_detail_en`, `create_time`, `modify_time`) VALUES (5, '资产应用', 'Asset', 4, 'pointsId', '一套非同...
true
cc0c928b75be1208ed176e191932afe3e1aa06c1
SQL
radtek/LS
/Delphi/FDC Library/FDC Standard Applications/Standard VERO Application/Server/fdc_Person_Human_Upd.prc
WINDOWS-1251
1,949
2.609375
3
[]
no_license
create or replace procedure fdc_Person_Human_Upd -- - ( pID number, pSurName varchar2, -- pFirstName varchar2, -- pMiddleName varchar2, -- pINN varchar2, -- pBirthDate date, -- pBirthYear ...
true
d74e687b2a7a282088b4ec53b89f06136f640a59
SQL
timo2o1o/dvexamples
/stage/tables/ddl/betreuer.sql
UTF-8
467
3.25
3
[ "MIT" ]
permissive
DECLARE c INT; BEGIN SELECT COUNT(*) INTO c FROM all_tables t WHERE t.owner = UPPER('stage') AND t.table_name = UPPER('betreuer'); if c = 1 then execute immediate 'drop table stage.betreuer'; end if; end; / CREATE TABLE stage.betreuer ( seq NUMBER NOT NULL, ldt DATE NOT NULL, betreuer CHAR(1) NULL, k...
true
d54777f4d383f2d496f63687f30b7856bf545957
SQL
vidm27/Contac-App-Flask
/db/database.sql
UTF-8
1,078
3.53125
4
[]
no_license
CREATE DATABASE contacts; CREATE TABLE usuarios ( id_usuario INT AUTO_INCREMENT, nom_usuario VARCHAR(50) NOT NULL, password VARCHAR(100) NOT NULL, nombre VARCHAR(50) NOT NULL, apellido VARCHAR(50)NOT NULL, PRIMARY KEY(id_usuario) ); CREATE TABLE contactos( id_contact INT AUTO_INCREMENT, ...
true
88cb6eafc5fe29fbf795a67e36f5317bf5eae966
SQL
bartschs/sql_admin
/xsysoenv.sql
UTF-8
2,312
2.921875
3
[]
no_license
rem rem NAME rem sh_sysoenv.sql rem FUNCTION rem lists values of the v$sys_optimizer_env view rem NOTE rem start from sqlplus/sqldba as DBA rem MODIFIED rem 20.06.07 SBartsch - made it rem set trimspool on; set verify off; set heading on; set heading off; set feedback off; set trimspool on; rem set long 2...
true
a0f64077ebba9ca9952e7aac1f3e45d3fdda5daa
SQL
fernando13/Base-de-Datos-2
/practica 5/ejercicio_5/Seguimiento_AceesoPostgres.sql
UTF-8
406
2.90625
3
[]
no_license
DROP TABLE IF EXISTS seguimiento_acceso; CREATE TABLE seguimiento_acceso ( SEGUIMIENTO_ACCESO_ID serial NOT NULL , FECHA_YHORA_ENTRADA timestamp default NULL, FECHA_YHORA_SALIDA timestamp default NULL, HOST varchar(100) default NULL, PERSONA_ID bigint default NULL references persona, RECURSO_ID ...
true
0dd7f3916899b4f36033741c4ac4a3c188f57683
SQL
kwaspek104/Burger_Blogger
/db/schema.sql
UTF-8
196
2.515625
3
[]
no_license
CREATE DATABASE IF NOT EXISTS burgers_db; USE burgers_db; CREATE TABLE burgers ( id INT NOT NULL AUTO_INCREMENT PRIMARY_KEY, burger_name VARCHAR(60) NOT NULL, devoured BOOLEAN DEFAULT false );
true
1089d538e311d2eb8d96f78279dd4f73eb0049ac
SQL
SamarinAnton/TestSystemForStudents
/DataBase/db.sql
UTF-8
4,503
3.625
4
[]
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='TRADITIONAL,ALLOW_INVALID_DATES'; -- ----------------------------------------------------- -- Schema `TestSyst...
true
0c28bbc4a973609c22ad8ee901444d731759295b
SQL
Natt7/JINSHANG
/schema/T_WL_STORE.sql
UTF-8
811
2.921875
3
[]
no_license
CREATE SCHEMA T_WL_STORE_schema SOURCE TYPE CSV FIELDS( "dept_id" type str, "store_short_name" type str, "lng" type doub...
true
4b2cd835b80525de6324d36fe44c740d56f97db0
SQL
juishah14/Hackerrank
/SQL/Medium Level/Binary Tree Nodes.sql
UTF-8
362
3.484375
3
[]
no_license
-- you only know the value of the node and the parent of the node -- determine if node is root, leaf, or inner node -- output: value, classification -- note: if node value appears in Column P (Parent), it will be an Inner Node. Otherwise it will be Leaf. SELECT N, IF (P IS NULL, 'Root', IF(BST.N IN (SELECT P FROM BST...
true
af598e86f5be13fd527731aac5a33032dbbd2237
SQL
juan8510/iscript
/db/iscript-gerent-derby-1.0.sql
UTF-8
1,262
3.5625
4
[]
no_license
CREATE TABLE T_GERENT_TASK ( ID BIGINT NOT NULL GENERATED AlWAYS AS IDENTITY (START WITH 1, INCREMENT BY 1), TASK_ID BIGINT NOT NULL, TASK_URL VARCHAR(1000), TASK_TYPE VARCHAR(120) NOT NULL, TASK_LEVEL INTEGER NOT NULL, TASK_PARAM VARCHAR(1000), PRIMARY KEY (ID) ) CREATE INDEX INDEX_GERENT_T...
true
ec36210c3e6e8c2df9728206400f27cd20859d14
SQL
EdrenEditorialRenacer/appedren
/database/db.sql
UTF-8
2,749
4.0625
4
[]
no_license
CREATE DATABASE database_edren; USE database_edren; CREATE TABLE users( id INT (11) AUTO_INCREMENT, username VARCHAR(20) NOT NULL, email VARCHAR(50) NOT NULL, telefono varchar(100) NOT NULL, password VARCHAR(100) NOT NULL, role VARCHAR(30) NOT NULL, pais VARCHAR(100) NOT NULL, idioma V...
true
9e8d75607ee8bbf52db438bcad8626b1f47c316c
SQL
Velocity-Engineering/airbyte
/airbyte-integrations/bases/base-normalization/integration_tests/normalization_test_output/oracle/test_primary_key_streams/final/airbyte_tables/test_normalization/conflict_stream_array.sql
UTF-8
1,500
3.203125
3
[ "MIT", "Elastic-2.0" ]
permissive
create table test_normalization.conflict_stream_array__dbt_tmp as with dbt__cte__conflict_stream_array_ab1__ as ( -- SQL model to parse JSON blob stored in a single column and extract into separated field columns as described by the JSON Schema select json_value("_AIRBYTE_DATA", '$."id"') as id, ...
true
65179b11916b3c0e46b2ab0ab9bd1c3f76f8622e
SQL
pszyjaciel/perl
/myXalOra/pfadb.sql
UTF-8
1,458
2.5625
3
[]
no_license
--nowa instalacja bazy danych 11g (11:04 21-06-2017) --SQLTools_18b38.zip nie dziala na xp --zainstalowalem tego: InstallSQLTools_16b24.exe --jak nie idze zalogowac z odleglego komputera --to odblokowac port 1521 na firewallu i pojdzie. --byla dodana zmienna TNS_ADMIN c:\XEClient\network\admin --dla clienta XE (buil...
true
dffe098fe7397304b2215c5a919e515b07a5e778
SQL
sheadroad/QUANT
/sql/테이블 생성 쿼리.sql
UTF-8
5,835
3.65625
4
[]
no_license
/********************* 0.각종 코드 테이블 생성 *********************/ DROP TABLE `CODE_INFO`; CREATE TABLE `CODE_INFO` ( `CODE_ID` varchar(10) NOT NULL COMMENT '코드 ID', `CODE_NM` varchar(50) NOT NULL COMMENT '코드 명', `USE_YN` VARCHAR(1) DEFAULT NULL COMMENT '사용여부', PRIMARY KEY (`CODE_ID`) ) ENGINE=InnoDB DEFAULT CHARSET=...
true
6b5a417236737dc33bb8a6a7f90695094cd68cd9
SQL
Prizmer/wui
/prizmer/static/sql_query_template/electric/Query_params_for_period.sql
UTF-8
7,457
3.484375
3
[]
no_license
Select z3.ab_name, z3.factory_number_manual, z3.t0_start, z3.t1_start, z3.t2_start, z3.t3_start, z3.t4_start, z4.t0_end, z4.t1_end, z4.t2_end, z4.t3_end, z4.t4_end, z4.t0_end-z3.t0_start as delta_t0, z4.t1_end-z3.t1_start as delta_t1, z4.t2_end-z3.t2_start as delta_t2, z4.t3_end-z3.t3_start as delta_t3, z4.t4_end-z...
true
06e61d5a57b3174d1fa6228e7d157e3f43da9cd3
SQL
sgjmcgowan/mcgowan_s_cmsAssignment
/db/kurosawa.sql
UTF-8
8,716
3.21875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 3.5.1 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Apr 07, 2018 at 02:28 AM -- Server version: 5.5.24-log -- PHP Version: 5.3.13 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */...
true
cf3d04926c891da094ded6131db2492b0a386f8b
SQL
XiaonaZhou/data_analytics_2
/SQL/hospital_db_exercise.sql
UTF-8
1,519
4.09375
4
[]
no_license
--find general medicine doctors name select a.first_name, a.last_name, b.department, c.name from physician a join affiliated_with b join department c on c.department_id= b.department on b.physician = a.employee_id where c.name='General Medicine'; --find which patient - doctor visit select a.first_name as patient_fi...
true
f8168f8447e6b01b1db9489fa4c60437676ec615
SQL
angel-aleksandrov06/SoftUni-Engineering-CSharp
/Databases Basics - MS SQL Server/Exercises/Data Definition and Datatypes/HotelDatabase.sql
UTF-8
3,610
3.9375
4
[]
no_license
CREATE TABLE Employees( Id INT PRIMARY KEY IDENTITY(1, 1), FirstName NVARCHAR(50) NOT NULL, LastName NVARCHAR(50) NOT NULL, Title NVARCHAR(50) NOT NULL, Notes NVARCHAR(MAX) ) CREATE TABLE Customers( AccountNumber INT PRIMARY KEY NOT NULL, FirstName NVARCHAR(50) NOT NULL, LastName NVARCHAR(50) NOT NULL...
true
0f5a49db7b2acbf43741e9c727c2fab305d43a41
SQL
alifahfathonah/marketplace
/database/final_marketplace.sql
UTF-8
27,385
3.1875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 21 Feb 2021 pada 20.09 -- Versi server: 10.4.17-MariaDB -- Versi PHP: 7.4.13 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@C...
true
65219bb8fbcf5c539f0bd26ad9566272b8c4af0a
SQL
carlosglmt/ProyectoBD
/sql/s-01-usuarios.sql
UTF-8
836
3.09375
3
[]
no_license
--@Autores: Andrés López Martínez y Carlos Gamaliel Morales Téllez --@Fecha creación: 31/05/2019 --@Descripción: Creacion de usuarios, roles, asignacion de permisos Virtual Travel prompt Creando al usuario lm_proy_invitado create user lm_proy_invitado identified by invitado quota unlimited on users; prompt Creand...
true
279916967e42ee164501977a2f617368e0b84343
SQL
haraichi1118/roulette_game_list
/conf/evolutions/default/2.sql
UTF-8
324
2.625
3
[]
no_license
# rouletteList schema # --- !Ups CREATE SEQUENCE roulette_list_id_seq; CREATE TABLE roulette_list ( id integer NOT NULL DEFAULT nextval('roulette_list_id_seq'), roulette_number integer, play_game_id integer, game_count integer ); # --- !Downs DROP TABLE roulette_list; DROP SEQUENCE roulette_list_id_...
true
1bc53b428b63f3dea8398e959624070625dfc46c
SQL
zhaodoublehuan/demo
/src/main/resources/sql/dbdata.sql
UTF-8
17,742
3.59375
4
[]
no_license
/* Navicat Premium Data Transfer Source Server : localhost Source Server Type : MySQL Source Server Version : 50556 Source Host : localhost:3306 Source Schema : zhh_demo Target Server Type : MySQL Target Server Version : 50556 File Encoding : 65001 Date: 17/06/2018 2...
true
42ec25628460741444fda8205e80e921c5e72659
SQL
Ericaso21/full-stack_Gunther-Votteler
/database/database-con-datos/films.sql
UTF-8
8,773
3.125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.4 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 30-04-2021 a las 04:27:22 -- Versión del servidor: 10.4.16-MariaDB -- Versión de PHP: 7.4.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
c932b7101e1f3687fcef168b8f671224bf92b9a5
SQL
TiagoDanin-Forks/database-as-a-service
/dbaas/physical/migrations/migration_0072_up.sql
UTF-8
2,824
2.9375
3
[ "BSD-3-Clause" ]
permissive
delete from physical_databaseinfraparameter where parameter_id in (select id from physical_parameter where name = 'thread_concurrency'); delete from physical_replicationtopology_parameter where parameter_id in (select id from physical_parameter where name = 'thread_concurrency'); delete from physical_parameter where na...
true
0d1458e46bb8cda526fdf45decdd4f9c4632e7c4
SQL
amanjain2251993/assignment
/assignment.sql
UTF-8
1,534
2.984375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jun 18, 2021 at 09:51 AM -- Server version: 10.4.11-MariaDB -- PHP Version: 7.2.30 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
true
81f1e1787beaece4876b1aca7895a09839146e51
SQL
vacay/db
/schema.sql
UTF-8
12,583
3.34375
3
[]
no_license
DROP TABLE IF EXISTS `artists`; CREATE TABLE `artists` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(255) NOT NULL, `artist_city` varchar(100) DEFAULT NULL, `artist_region` varchar(100) DEFAULT NULL, `artist_location` varchar(255) DEFAULT NULL, `artist_country` varchar(100) DEFAULT NULL, ...
true
2b77b4e8821026ad3252824778c146318bc4fd5b
SQL
mpan753/group-diary
/hash_test.sql
UTF-8
1,192
3.671875
4
[]
no_license
create table UserSessions ( username email, loggedIn timestamp, loggedOut timestamp -- etc. etc. ); insert into UserSessions(username,loggedIn,loggedOut) values ('jas@cse.unsw.edu.au','2012-07-01 15:45:55','2012-07-01 15:51:20'), ('jas@cse.unsw.EDU.AU','2012-07-01 15:50:30','2012-07-01 15:53:15'), ('z998...
true
808e73dc7ba175872c6a3ee19700a40ac77bfd79
SQL
AdamMcAdamson/Bamazon
/MySQL/schema.sql
UTF-8
1,422
3.515625
4
[]
no_license
CREATE DATABASE bamazon; USE bamazon; CREATE TABLE products ( item_id INT AUTO_INCREMENT NOT NULL PRIMARY KEY, product_name VARCHAR(100) NOT NULL, department_name VARCHAR(100) NOT NULL, price DECIMAL(11,2) NOT NULL, stock_quantity INT NOT NULL, product_sales DECIMAL(12,2) DEFAULT 0 ); INSERT INT...
true
ad2e4b68f248de78471e65a5e9723cf1198cce5d
SQL
JeremyW1990/dog-co
/database/mysql_dump.sql
UTF-8
5,183
3.265625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.6.6deb5 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: 2019-07-07 19:54:49 -- 服务器版本: 5.7.26-0ubuntu0.18.04.1 -- PHP Version: 7.2.17-0ubuntu0.18.04.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLI...
true
0fa0af4170d7b88c245bb5299885c79e78d63fc2
SQL
slowcoder-fastsleeper/dune-snippets
/search/uniswap_funcSignatures_24hrs.sql
UTF-8
2,624
3.890625
4
[ "MIT" ]
permissive
WITH uniswap_trades AS ( SELECT tx_hash, usd_amount FROM dex."trades" d WHERE project = 'Uniswap' AND version ='2' AND block_time >= (DATE_TRUNC('hour', CURRENT_TIMESTAMP) - '24 hours'::INTERVAL) ), -- transaction hash in UNISWAP v2 dex_trade_type AS ( SELECT "to", CASE WHEN...
true
243caf4280ac7732e52957b686fbb8dae3bb813c
SQL
AvdhootSolutions/connectcomplete
/connectdemo1-2-2021.sql
UTF-8
19,164
2.75
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Feb 01, 2021 at 01:45 PM -- Server version: 10.1.38-MariaDB -- PHP Version: 7.3.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
9519af1074bcfea741d6ec2377726d29c44d5772
SQL
anatole72/sql_scripts
/admin_scripts/scripts/usr_ses.sql
UTF-8
1,560
3.6875
4
[]
no_license
rem rem Show users session information rem Author: Mark Lang, 1998 rem PROMPT PROMPT USER SESSIONS PROMPT ACCEPT usr PROMPT "User name like (ENTER for all): " ACCEPT sts PROMPT "Status like (ENTER for all): " @_BEGIN @_TITLE "S E S S I O N S" COLUMN username FORMAT A12 COLUMN sid FORMAT A8 COLUMN serv_c F...
true
01c5a220fbaacb802afe52bb261884b892381ef2
SQL
houjianjun/RXCloudShop
/RXCloudShop-provider/RXCloudShop-provider-usc/src/docs/data/rxcloudshop_omc.sql
UTF-8
10,479
3.625
4
[]
no_license
/* Navicat Premium Data Transfer Source Server : 127.0.0.1 Source Server Type : MySQL Source Server Version : 50722 Source Host : localhost:3306 Source Schema : rxcloudshop_omc Target Server Type : MySQL Target Server Version : 50722 File Encoding : 65001 Date: 14/05...
true
bbe753193bfb2a56822381aa55a9753db2d61c11
SQL
wout-junius/GIP_2018
/MySQL/SQL met voorbeelden.sql
UTF-8
5,161
2.890625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.0 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Gegenereerd op: 29 mei 2018 om 09:39 -- Serverversie: 10.1.31-MariaDB -- PHP-versie: 7.2.4 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACT...
true
ab82ab10477a7ce501264ac77c5542c4dd38b3d3
SQL
teddyfullstack/phatflower
/ext/phatflower.sql
UTF-8
867
3.453125
3
[]
no_license
drop database if exists phatflower; create database phatflower; use phatflower; create table products ( id int not null auto_increment, name varchar(500), link varchar(500), image varchar(500), price int not null, is_hot boolean default true, primary key (id) ); create table product_contents...
true
46fbbd24c978d6ba95c20505f2ec76409ffeab5e
SQL
NATA-GRECU/turma16java
/mysql/lista1/Lista1Tarefa2.sql
UTF-8
1,157
3.234375
3
[]
no_license
create database db_ecommerce; use db_ecommerce; create table tb_produtos ( id bigint auto_increment, nome varchar(250), preco decimal(10,2), marca varchar(30), cor varchar(30), primary key(id) ); insert into tb_produtos (nome,preco,marca,cor) values ("Tenis",899.99,"Air Jordan","Preto/Branco/Vermelho"); insert into tb...
true
7536d2ffdd00b690d2a3a60ec011aa94a604ba6d
SQL
Neah-Ko/Dahunicorn
/scripts/script_dahunicorn_create_plus.sql
UTF-8
1,533
3.1875
3
[]
no_license
CREATE TABLE IF NOT EXISTS `user` ( `iduser` int(11) NOT NULL AUTO_INCREMENT, `user_mail` varchar(50) DEFAULT NULL, `user_password` varchar(50) DEFAULT NULL, PRIMARY KEY (`iduser`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; CREATE TABLE IF NOT EXISTS `association` ( `idassociation` int...
true
3057222d045f65da02792d863250fcc41da1d528
SQL
demoplan/silver
/Silver.sql
UTF-8
3,249
3.28125
3
[]
no_license
create table CustomerM( ID int identity primary key, Code varchar(50), CustName varchar(100), CustAddress varchar(250), Phone varchar(20), Email varchar(100), PAN varchar(10), CustType varchar(1) ) create table ProductM( ID int identity primary key, ItemCode varchar(250), PName varchar(250) ) create ...
true
9ebea66d356e550a621cf8c113ed3d33decf3bba
SQL
darpanganatra-nbcu/retention_analysis
/SQL/audience_creation.sql
UTF-8
11,669
3.625
4
[]
no_license
DECLARE tenure_threshold_date date DEFAULT DATE_SUB(CURRENT_DATE(), INTERVAL 7 DAY); DECLARE campaign_start_date DATE DEFAULT '2020-07-29'; CREATE OR REPLACE TABLE `res-nbcupea-dev-ds-sandbox-001.weekly_retention_data.all_holdout_groups` AS ( SELECT identity_value, "holdoutgroup_control" AS audiencecohort ...
true
3e06999241689f91b8f43e61c1c0ff943d63fa99
SQL
jgarzonext/packages
/function/FS_POSICION.sql
UTF-8
748
2.890625
3
[]
no_license
-------------------------------------------------------- -- DDL for Function FS_POSICION -------------------------------------------------------- CREATE OR REPLACE EDITIONABLE FUNCTION "AXIS"."FS_POSICION" (mens IN VARCHAR2, segm IN VARCHAR2, ord IN NUMBER) RETURN NUMBER IS pos NUMBER; BEGIN SELECT NVL(su...
true
3d2ffbae80a2ff17d727d16a1df61a36d0416d3d
SQL
jrand0m/delivery
/conf/evolutions/default/20.sql
UTF-8
615
3
3
[]
no_license
# --- !Ups CREATE TABLE vd_attachments ( id varchar(38) NOT NULL PRIMARY KEY, commentText varchar (255) not null, createdAt timestamp not null default now(), fileType varchar(100) not null default 'UNKNOWN', fileExt varchar(10) not null default '' ); ALTER TABLE vd...
true
388bf1834444ec40a79eb079945a15fb9fec949a
SQL
gitter-badger/moab
/moab.sql
UTF-8
11,787
3.0625
3
[ "MIT" ]
permissive
-- -- PostgreSQL database dump -- -- Dumped from database version 9.6.6 -- Dumped by pg_dump version 9.6.6 SET statement_timeout = 0; SET lock_timeout = 0; SET idle_in_transaction_session_timeout = 0; SET client_encoding = 'SQL_ASCII'; SET standard_conforming_strings = on; SET check_function_bodies = false; SET clien...
true
755c40df02faf228bdc5c41f739113784ce2f5f7
SQL
pdahlberg/ark2mail
/src/main/resources/db/prod/V1__init.sql
UTF-8
342
2.609375
3
[ "MIT" ]
permissive
DROP TABLE IF EXISTS ark_address; CREATE TABLE ark_address ( id BIGINT PRIMARY KEY AUTO_INCREMENT NOT NULL, address VARCHAR(34) NOT NULL, password TEXT NULL, balance BIGINT NOT NULL DEFAULT 0, created TIMESTAMP DEFAULT CURRENT_TIMESTAMP, modified TIMESTAMP DEFAULT CURRENT_TIMESTAMP ) CHARACTER SET utf8 COLL...
true
29ee807362953c9a8ef13a0a48c24926bfee7b9e
SQL
sellasaveup/GamificationAPI
/DB/MyPointsQuery.sql
UTF-8
2,353
3.8125
4
[]
no_license
-- getAllMyPointsDetail select ua.ACTION_CODE, ch.STORY, ua.POINTS, ua.DATE from ss_tr_user_action ua, ss_ma_challenge ch where ch.ACTION_CODE=ua.ACTION_CODE and ua.USER_CODE='GBS03146' and ua.GOAL_CODE='HYPE_GOAL' and ua.STATUS='Active' order by ua.date desc --getAllTimePoints select sum(ua.POINTS) from ss_tr_user_a...
true
20c14a61f9c2da6633a91c3ddbf1410c49ab1f22
SQL
MasahikoSawada/pgbin
/sql/read_only_table.sql
UTF-8
1,365
3.015625
3
[]
no_license
DROP SCHEMA readonly cascade; CREATE SCHEMA readonly; CREATE TABLE readonly.aaa (col text); SELECT c.oid, c.relname || '.' || n.nspname, c.relkind, c.relreadonly, c.relfrozenxid FROM pg_class as c, pg_namespace as n WHERE c.relnamespace = n.oid and n.nspname = 'readonly' and relname = 'aaa'; INSERT INTO readonly.aaa se...
true
0e5f9261ae684be9dc4a9be76b8d267a1e0ac951
SQL
rdagumampan/yuniql
/samples/basic-postgresql-sample/v0.01/02-setup-data.sql
UTF-8
3,173
3.140625
3
[ "Apache-2.0" ]
permissive
/*Data for the table jobs */ INSERT INTO jobs(job_id,job_title,min_salary,max_salary) VALUES (1,'Public Accountant',4200.00,9000.00); INSERT INTO jobs(job_id,job_title,min_salary,max_salary) VALUES (2,'Accounting Manager',8200.00,16000.00); INSERT INTO jobs(job_id,job_title,min_salary,max_salary) VALUES (3,'Administ...
true
af6952cb8114a148f3c53de60107fb0a75d1e5be
SQL
andikscript/sistem-penjualan-apotek
/database/farmasi.sql
UTF-8
23,817
2.8125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Dec 08, 2019 at 09:33 PM -- Server version: 10.4.6-MariaDB -- PHP Version: 7.3.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
true
2e1504079cc39f28f23b2f4234d1ca1979103954
SQL
Aleksei741/MySQL_HomeWork
/Отчет 8/lesson 1.sql
UTF-8
2,976
4.40625
4
[]
no_license
/* * 1. В базе данных shop и sample присутствуют одни и те же таблицы, учебной базы данных. Переместите запись id = 1 из таблицы shop.users в таблицу sample.users. Используйте транзакции. */ SELECT * FROM shop.users; SELECT * FROM sample.users; START TRANSACTION; INSERT INTO sample.users SELECT * FROM shop.users WH...
true
c369d64041fd5ef3f4073f62362965f9ad287e28
SQL
silence-do-good/stress-test-Postgres-and-MySQL
/dump/high/day28/select1524.sql
UTF-8
191
2.765625
3
[]
no_license
SELECT timeStamp, temperature FROM ThermometerObservation WHERE timestamp>'2017-11-27T15:24:00Z' AND timestamp<'2017-11-28T15:24:00Z' AND SENSOR_ID='6f2bb567_aa2e_4c66_bfe9_0199697171b8'
true
6029e4b2d76fb1134753259f373328cd88ff75b4
SQL
nguio/SIINCO_web
/FormasOracleForms/Repautw95/SQL/plSinVnt.sql
ISO-8859-2
2,831
3.28125
3
[]
no_license
SET TERMOUT ON set underline = col men heading '|||Generando Listado de SKUs sin Ventas (&&1..csv)|Espere por favor|' format a100 select '....................................' men from dual / SET TERMOUT OFF SET SPACE 0 SET LINESIZE 300 SET PAGESIZE 50000 SET ECHO OFF SET FEEDBACK OFF SET VERIFY OFF SET UNDERLINE OFF...
true
c00d939b0ea6caeb1ea5fb93d23e750d1397a8ae
SQL
MithrandirD/common_schema
/routines/script/states/_match_states.sql
UTF-8
4,797
3.921875
4
[ "MIT", "BSD-3-Clause", "GPL-1.0-or-later" ]
permissive
-- -- Given a state (or optional states), expect a dynamic length comma -- delimited list where each element is given state(s). -- delimiter // drop procedure if exists _match_states // create procedure _match_states( in id_from int unsigned, in id_to int unsigned, in expected_states_list te...
true
a62b5bb0556a565ec2571dc65aa724853a59fdc1
SQL
sharad97/CMPS-182
/lab3/script3.sql
UTF-8
497
2.9375
3
[]
no_license
ALTER TABLE dv_film ADD CONSTRAINT positive_length CHECK (length > 0); UPDATE mg_customers SET address_id = 20 WHERE address_id IS NULL; ALTER TABLE mg_customers ALTER COLUMN address_id SET NOT NULL; ALTER TABLE dv_address ALTER COLUMN address_id SET NOT NULL; UPDATE dv_address SET add...
true
94a4f06751233e772162fb79163fa146bcd3f067
SQL
GhGeani/Phonebook-application-NodeJS-MySQL
/database/contacts_db.sql
UTF-8
2,622
3.359375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Oct 27, 2018 at 05:21 PM -- Server version: 10.1.33-MariaDB -- PHP Version: 7.2.6 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
cb23ae934e25708d7ee1e1892ca57b3b9c0603fd
SQL
pdivve/dbt_demo
/dbt_test/models/info_core/facts/weekly_amazon_all_fact.sql
UTF-8
604
2.796875
3
[]
no_license
{{ config(materialized = 'view') }} with weekly_amazon_all_sat as ( select * from {{ ref('weekly_amazon_all_sat') }} ), final as ( select date ,frequency ,pre_ordered_units ,pre_ordered_revenue ,average_pre_order_sales_price ,ordered_reve...
true
be461c10c26e0008a0c522ca193e970e20afa172
SQL
jensl/critic
/installation/data/dbschema.extensions.sql
UTF-8
5,130
3.78125
4
[ "MIT", "Apache-2.0" ]
permissive
-- -*- mode: sql -*- -- -- Copyright 2012 Jens Lindström, Opera Software ASA -- -- Licensed under the Apache License, Version 2.0 (the "License"); you may not -- use this file except in compliance with the License. You may obtain a copy of -- the License at -- -- http://www.apache.org/licenses/LICENSE-2.0 -- -- Unle...
true
f824b4664233dea3e82eefe7ea8be76d6e017fbc
SQL
mvarhola/Assignments
/[CS425] Database Organization (IIT)/HW1/CREATE.sql
UTF-8
4,088
3.625
4
[]
no_license
CREATE TABLE Orders_status ( orders_status_id int NOT NULL, language_id int NOT NULL, orders_status_name varchar(100), public_flag int NOT NULL, downloads_flag int NOT NULL, PRIMARY KEY (orders_status_id) ); CREATE TABLE Order_billing_address ( orders_billing_address_id int NOT NULL, ...
true
28b1e3fb140fa037983277218e87b81dea6e4f0c
SQL
snorlaxy213/remo-blog
/tools/sql/remo_user.sql
UTF-8
5,392
3.515625
4
[]
no_license
/* Navicat Premium Data Transfer Source Server : vino Source Server Type : MySQL Source Server Version : 80013 Source Host : localhost:3306 Source Schema : remo_user Target Server Type : MySQL Target Server Version : 80013 File Encoding : 65001 Date: 05/03/2020 00:00...
true