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
c00588712132235d25cc61b3b7db22eeb8c49daa
SQL
hqottsz/MXI
/assetmanagement-database/src/upgrade/plsql/lib/liquibase/10/0/0/0/sql/OPER-12150.sql
UTF-8
391
2.734375
3
[]
no_license
--liquibase formatted sql -- OPER-12150: Allow filtering of deferral references by status cd in APIs -- In order to optimize performance of searches, an index will be added to -- the fail_defer_ref table. --changeSet OPER-12150:1 stripComments:false BEGIN utl_migr_schema_pkg.index_create(' CREATE INDEX IX_DE...
true
c611f1f65d8b132e10cdf0450601e11dcf14c7fb
SQL
viva-engineering/databases
/content/20200217040245-populate-reference-data/migrate.sql
UTF-8
91,942
2.625
3
[]
no_license
-- -- Data sourced from http://www.unicode.org/emoji/charts/full-emoji-list.html -- insert into emoji (code_sequence, utf8_text, description) values (1, 'U+1F600', '😀', 'grinning face'), (2, 'U+1F603', '😃', 'grinning face with big eyes'), (3, 'U+1F604', '😄', 'grinning face with smiling eyes'), (4, 'U+1...
true
067730e2b9e718b1a22ce13633c3c2fa4d7903f9
SQL
dvavatsioulas/housecat-skgcode-API
/skgDB.sql
UTF-8
11,927
2.921875
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Φιλοξενητής: localhost -- Χρόνος δημιουργίας: 05 Δεκ 2019 στις 09:18:35 -- Έκδοση διακομιστή: 8.0.13-4 -- Έκδοση PHP: 7.2.24-0ubuntu0.18.04.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:...
true
d32cefb7904a42d094c5fdeb515365609b92207e
SQL
brbarmex/dotnet-craftsman
/setup/init.sql
UTF-8
466
2.515625
3
[ "MIT" ]
permissive
CREATE DATABASE crafstman_beer; \c crafstman_beer; CREATE EXTENSION "uuid-ossp"; CREATE TABLE customer_base ( id SERIAL PRIMARY KEY, customer_id uuid DEFAULT uuid_generate_v4(), customner_fullname VARCHAR(50), customer_name VARCHAR(15), customer_document VARCHAR(11), customer_email VARCHAR(100), customer_birt...
true
7957d8b1a93d8e1edf14398630de4dd8e22ead13
SQL
DiazEfra/Programacion-del-lado-del-servidor
/database.sql
UTF-8
3,684
3.78125
4
[]
no_license
CREATE DATABASE artesanias CHARACTER SET utf8mb4 COLLATE utf8mb4_spanish_ci; USE artesanias; GRANT ALL ON artesanias.* TO artesano@'localhost' IDENTIFIED BY '3l4rt3s4n0'; GRANT ALL ON artesanias.* TO artesano@'%' IDENTIFIED BY '3l4rt3s4n0'; CREATE TABLE clasificacion ( id BIGINT AUTO_INCREMENT , descripcion ...
true
15965b5c45b73c02bd771f0060b2f2b2f73fe9c1
SQL
jgoralcz/reddit-chat
/ddl.sql
UTF-8
818
3.9375
4
[ "MIT" ]
permissive
CREATE TABLE public.comments ( parent_id text NOT NULL, comment_id text NOT NULL, comment character varying(256), subreddit_id text NOT NULL, created_utc bigint, score integer NOT NULL, tsv tsvector ); CREATE INDEX idx_comment_id ON public.comments USING btree (comment_id); CREATE INDE...
true
7f0d019c058ab0880b230ed521a5375aa3383ea1
SQL
Iandonmorgan/chinook-iandonmorgan
/top_media_type.sql
UTF-8
290
4.1875
4
[]
no_license
SELECT mt.Name as 'Media Type', SUM(il.Quantity) as 'Total Tracks Sold' FROM Invoice i JOIN InvoiceLine il ON il.InvoiceId = i.InvoiceId JOIN Track t ON t.TrackId = il.TrackId JOIN MediaType mt ON mt.MediaTypeId = t.MediaTypeId GROUP BY mt.MediaTypeId ORDER BY SUM(il.Quantity) DESC LIMIT 1
true
862f34e8c4d2a64730fe3a4ad1a35924d001647d
SQL
diegobroetto/pa_5_periodo_intranet_empresarial
/db/db_intranet.sql
UTF-8
5,732
3.046875
3
[]
permissive
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Tempo de geração: 29-Maio-2020 às 02:35 -- Versão do servidor: 10.4.11-MariaDB -- versão do PHP: 7.4.4 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_C...
true
38bb126f547bf0949b402e85ce0877d268e71429
SQL
jeromanm/kronos
/views/data-provider/rastro_informe.sql
UTF-8
2,417
3.203125
3
[]
no_license
/* * Este programa es software libre; usted puede redistribuirlo y/o modificarlo bajo los terminos * de la licencia "GNU General Public License" publicada por la Fundacion "Free Software Foundation". * Este programa se distribuye con la esperanza de que pueda ser util, pero SIN NINGUNA GARANTIA; * vea la licencia "...
true
3c960aa58b88ebe038851ee3ba078571bac27de8
SQL
hoodinygithub/coke_social
/db/cyloop_data_integrity.sql
UTF-8
12,924
3.703125
4
[]
no_license
SELECT 'Starting data validation script...' AS ' '; SELECT 'Accounts' AS ' '; SET @accounts_count = (SELECT COUNT(*) FROM accounts); SELECT CONCAT(@accounts_count, ' accounts in table. ' ) AS ' '; SELECT type as ' ', count(*) AS ' ' FROM accounts GROUP BY 1; SELECT '/**************************************************...
true
83ce207f5ba8f347cd40e8de9ae5e27bdc33190f
SQL
MimiB2010/SQLHomework
/queries.sql
UTF-8
2,002
4.71875
5
[]
no_license
-- Employee details: employee number, last name, first name, gender and salary. select e.emp_no, e.last_name, e.first_name, e.gender, s.salary from employees as e left join salaries as s on e.emp_no=s.emp_no; -- List employees hired in 1986 select * from employees where hire_date >='1986-01-01' and hire_date <='198...
true
0ffd99c29eb92c6d35a93f0442dc542ba2a91c41
SQL
fabriciodigennaro/shop-cursos
/code_lab.sql
UTF-8
10,415
3.28125
3
[]
no_license
-- MySQL dump 10.13 Distrib 8.0.21, for Linux (x86_64) -- -- Host: localhost Database: code_lab -- ------------------------------------------------------ -- Server version 8.0.21 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*...
true
d176902a06172b1e5a7648d75df3b2e9a76fd8b3
SQL
alchubirka/Booker_22-07-19
/booker (5).sql
UTF-8
5,449
2.984375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Jul 22, 2019 at 12:25 PM -- Server version: 5.7.26-0ubuntu0.18.04.1 -- PHP Version: 7.2.19-0ubuntu0.18.04.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zon...
true
4eff114af818c78ac96d6e2c4e0cad718a7ba867
SQL
NMK2022/Harvard-cs50x
/SQL/movies/1.sql
UTF-8
205
3.09375
3
[]
no_license
--query lists title of movies released in 2008 in a single column table --1:use table movies and read column year to extract column title into a single column SELECT title FROM movies WHERE year = 2008;
true
a7b13798a68b02d3bc8c39431b26f8a47edee253
SQL
vleonov/filer
/sql/000-init.sql
UTF-8
520
3.296875
3
[]
no_license
DROP TABLE IF EXISTS files; DROP TABLE IF EXISTS uploads; CREATE TABLE filer_uploads( id VARCHAR(5) PRIMARY KEY, huid VARCHAR(32) NOT NULL, createdAt TIMESTAMP NOT NULL, finishAt TIMESTAMP NOT NULL ); CREATE TABLE filer_files( id SERIAL PRIMARY KEY, uploadId VARCHAR(5) NOT NULL REFERENCES uplo...
true
9790e6f7dd58e3edc361670d131060daf92f9d77
SQL
rubenmndez/empre
/S&T/BD/formulario.sql
UTF-8
1,883
2.96875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.2 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 27-10-2020 a las 22:30:46 -- Versión del servidor: 10.4.11-MariaDB -- Versión de PHP: 7.2.26 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00";...
true
8ecd6dbb134d4cda12b6ea4e07ca995dbba844bb
SQL
julianflowers/Achilles
/inst/sql/sql_server/analyses/108.sql
UTF-8
980
4.375
4
[ "Apache-2.0" ]
permissive
-- 108 Number of persons by length of observation period, in 30d increments --HINT DISTRIBUTE_ON_KEY(stratum_1) select 108 as analysis_id, CAST(floor(DATEDIFF(dd, op1.observation_period_start_date, op1.observation_period_end_date)/30) AS VARCHAR(255)) as stratum_1, cast(null as varchar(255)) as stratum_2, cast(null ...
true
580eb6d1977b25113fa01171b37ba08bffa72b8c
SQL
Roddasb/ETL2
/Exercise 2 solution.sql
UTF-8
3,426
3.953125
4
[]
no_license
--Consider a scenario where residents (donors) donate to help other people. --Create two tables: Donor and Donation with the following information: --Note, first create a database called TargetedHelp and create the tables in the database CREATE DATABASE TargetedHelp USE TargetedHelp CREATE TABLE Donor ( IdNo I...
true
041ed09de84b5cea1fa09f9dc63907841acc6c94
SQL
radtek/MedicalSystemDemo_anhuixiongke
/安徽省胸科医院/大屏/Client.Screen/Scripts/Oracle/医患协同大屏脚本/MED_SMART_SCREEN_DICT(大屏字典表).sql
UTF-8
919
3.640625
4
[]
no_license
-- Create table create table MEDCOMM.MED_SMART_SCREEN_DICT ( SCREEN_NO VARCHAR2(20) not null, SCREEN_TYPE VARCHAR2(20) not null, SCREEN_LABEL VARCHAR2(100) not null, FULL_SCREEN NUMBER(1) default 1, SCREEN_WIDTH NUMBER(5) default 1024, SCREEN_HEIGHT NUMBER(5) default 768 ) tablespace TSP...
true
23a5dc01b86a79ab7833286a8301867f9aca1ec2
SQL
MonicaLuca/BootcampX
/3_queries_group-by/3_total_assignments_submissions.sql
UTF-8
280
3.921875
4
[]
no_license
SELECT cohorts.name as cohort, COUNT(assignment_submissions.student_id) as total_submissions FROM students JOIN cohorts ON cohorts.id = cohort_id JOIN assignment_submissions ON student_id = students.id GROUP BY cohorts.name ORDER BY COUNT(assignment_submissions.student_id) DESC;
true
e7b7d3941fea3e0bbf3040197f464ffb497fb11f
SQL
Alfraganus/Yii2-chat
/database.sql
UTF-8
21,337
2.84375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.7 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Jul 21, 2021 at 05:16 PM -- Server version: 10.3.27-MariaDB-log-cll-lve -- PHP Version: 7.3.28 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; ...
true
5836ea13b1e8afc6a00d36141fd642bab801a0b2
SQL
rushchel/logplsql
/log4plsql/sql/install_log_user/pb_plog_interface.sql
UTF-8
5,672
3.34375
3
[ "Apache-1.1" ]
permissive
DECLARE --******************************************************************************* -- Anonymous block creating dynamically the body of the package PLOG_INTERFACE. -- This package is an interface between the main log package PLOG and the output packages. -- The block checks which output packages have been i...
true
d820f595129b9326f97510aa7c92f22293675e35
SQL
Taewoong1378/SQL-PROJECT
/SQL 파일/정렬.sql
UTF-8
1,018
3.703125
4
[]
no_license
USE employees; -- 사원의 번호와 급여를 가져온다. 급여를 기준으로 오름차순 정렬한다. select emp_no, salary from salaries order by salary; -- asc를 써도 되고 안써도됨 -- 사원의 번호와 급여를 가져온다. 급여를 기준으로 내림차순 정렬한다. select emp_no, salary from salaries order by salary desc; -- 사원의 번호와 이름을 가져온다. 이름을 기준으로 오름차순 정렬한다. select emp_no, first_name from employees order ...
true
ff6b4860a8b1ee7c6f8b41b03c6c6c8b07f9540b
SQL
Steve237/ToDoList
/todolist.sql
UTF-8
10,443
3.359375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.2 -- https://www.phpmyadmin.net/ -- -- Hôte : 127.0.0.1:3306 -- Généré le : sam. 13 fév. 2021 à 18:11 -- Version du serveur : 10.4.10-MariaDB -- Version de PHP : 7.4.7 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!...
true
50d07f356ffd4b2c53a1e1b0a91b0b8991e24b28
SQL
licuicui159/mysql
/sql问题汇总.sql
UTF-8
10,868
3.765625
4
[]
no_license
-- 8月涨幅大于50% select STOCK_CODE ,case when stat_date = 20190801 then sp end as first_sp ,max(sp) as max_sp ,case when stat_date = 20190830 then sp end as end_sp from hs_tdx_jg_sx where STAT_DATE between 20190801 and 20190831 select --STOCK_CODE -- ,case when stat_date = 20190801 th...
true
09bf74d18a801948de08fff24ba4884b7b5167a8
SQL
MooJhingjit/construction
/server/Database/construction_2018-10-15.sql
UTF-8
2,088
2.9375
3
[]
no_license
# ************************************************************ # Sequel Pro SQL dump # Version 4541 # # http://www.sequelpro.com/ # https://github.com/sequelpro/sequelpro # # Host: 127.0.0.1 (MySQL 5.7.21) # Database: construction # Generation Time: 2018-10-15 09:19:32 +0000 # ******************************************...
true
ee4446aa3cd99d1eb71b2da31b029f036c7466aa
SQL
architkashyap13/Angular-Concrete-Pages
/practice_sql.sql
UTF-8
2,537
4.3125
4
[]
no_license
select e.empid, e.name, p.pname, p.pid, p.pmanager from hcmmaster as e INNER JOIN projectmaster as p on e.manager = p.pmanager where e.manager = 'Mr X'; SELECT `hcmmaster`.`empid`, `hcmmaster`.`name`, `hcmmaster`.`manager` FROM `grms`.`hcmmaster`; SELECT `projectmaster`.`pid`, `projectmaster`.`pname`, ...
true
662f66e40fb9c0679ff9d764c74f8af7da4d34f0
SQL
hackshack1/reservations
/server/database/schema.sql
UTF-8
2,671
3.6875
4
[]
no_license
DROP SCHEMA IF EXISTS hackshack; CREATE SCHEMA IF NOT EXISTS hackshack; CREATE TABLE users ( id SERIAL, username VARCHAR(20) NOT NULL, PRIMARY KEY (id) ); DROP TABLE IF EXISTS listings; CREATE TABLE listings ( id SERIAL, cleaning_fee DECIMAL(18,2) NOT NULL, service_fee DECIMAL(18,2) NOT NU...
true
9fc93747fed71a94cb1361a1b4e0702ffd269715
SQL
carlosvictor/losdbas
/bd_olx_imoveis.sql
UTF-8
4,225
3.5625
4
[]
no_license
--tipo telefone CREATE TYPE tp_fone AS OBJECT( cod INTEGER, numero INTEGER, MEMBER PROCEDURE exibe_fone (SELF tp_fone) ); / --tipo endereço CREATE TYPE tp_endereco AS OBJECT( cep INTEGER, rua VARCHAR(20), numero SMALLINT, complemento VARCHAR(20), bairro VARCHAR(15), cidade varchar(15), estado varchar(2), MEMBER PROCEDU...
true
78eb61a7217f9f09cffbb06a0a1b6cea24a99bd5
SQL
openelections/openelections-data-ga
/2002/code/20020820_ga_primary_state_house.sql
UTF-8
5,118
3.15625
3
[]
no_license
truncate table ga_primary_state_house_20020820_fullnames CREATE TABLE ga_primary_state_house_20020820_fullnames ( name varchar(50), last_name varchar(50), party varchar(50), district_number varchar(50), votes varchar(50), percent varchar(50) ); -- Run Python script here... -- 20020820_ga_p...
true
11c42af28de89ec611e49f7663f060aa69a38aef
SQL
SaraBertse/soundgoodSQLScript
/soundgoodSQLCreationScript.sql
UTF-8
6,990
3.65625
4
[]
no_license
CREATE TABLE "school" ( "school_id" serial PRIMARY KEY, "number_of_vacancies" varchar (5) NOT NULL, "address" varchar(500) NOT NULL, "phone_number" varchar(20) NOT NULL, "email" varchar (200) NOT NULL ); CREATE TABLE "person" ( "person_id" serial PRIMARY KEY, "person_number" varch...
true
3e3a5483a26858fe1f1a36a5476e2477b922ed7a
SQL
michaelwijaya96/maintony
/db/migrations/mg_001.sql
UTF-8
3,357
3.734375
4
[]
no_license
CREATE TABLE "users" ( "id" SERIAL PRIMARY KEY, "username" varchar, "password" varchar, "created_at" timestamptz DEFAULT (now()), "deleted_at" timestamptz DEFAULT null ); CREATE TABLE "students" ( "id" SERIAL PRIMARY KEY, "full_name" varchar, "created_at" timestamptz DEFAULT (now()), "deleted_at" tim...
true
2f884e8dea37dd1c6440011d3e4c18b1b31b498e
SQL
nkuhta/SQL-Bootcamp
/View.sql
UTF-8
596
3.796875
4
[]
no_license
-- View SELECT first_name,last_name,email,address,phone FROM customer JOIN address ON customer.address_id = address.address_id; -- How to save above as a view? CREATE VIEW customer_info AS SELECT first_name,last_name,email,address,phone FROM customer JOIN address ON customer.address_id = address.address_id; -- ...
true
ded8d1d20bbcb19df086c2760ba0938322ba31b1
SQL
pedbir/Framework
/DB/DWH_1_Raw/Script.CreateMdsTables.sql
UTF-8
1,725
3.21875
3
[]
no_license
IF (EXISTS (SELECT * FROM MDS.INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA = 'MDM' AND TABLE_NAME = 'SegmentLeaf')) BEGIN DROP TABLE MDS.mdm.SegmentLeaf END CREATE TABLE #temptable ( [ID] int, [MUID] uniqueidentifier, [VersionName] nvarchar(50), [VersionNumber] int, [Version_ID] int, [VersionFlag] nvarchar(50)...
true
5dd88fced49d4bd0dbfed8c16231f831bd458bd9
SQL
narendratreddi/cscripts
/cli 2/cli_tps_per_pdb.sql
UTF-8
1,027
3.6875
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; -- COL pdb_name FOR A30; COL pdb_tps FOR 999,990; COL cdb_tps FOR 999,990; COL perc FOR 990.0 HEA 'PERC%'; -- WITH xid AS ( SELECT /*+ MATERIALIZE NO_MERGE */ ...
true
4a58947cb997fecc0e618e8a8ac496749afd35ec
SQL
gustavoferrarigranero/adocao
/adocao.sql
UTF-8
5,204
3.28125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.1.12 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: 27-Ago-2014 às 20:04 -- Versão do servidor: 5.6.16 -- PHP Version: 5.5.11 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;...
true
dc8f8ee1226a0cb855af96a9729ec49ef7203dcd
SQL
daonhung97/AppSale
/android/thietbi.sql
UTF-8
11,332
2.875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Máy chủ: 127.0.0.1 -- Thời gian đã tạo: Th4 12, 2019 lúc 10:06 AM -- Phiên bản máy phục vụ: 10.1.37-MariaDB -- Phiên bản PHP: 7.2.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*...
true
d3d0bcab84eec28e141c780a50fafc8616c06199
SQL
w3aewander/banco_de_dados
/criar_tabelas.sql
UTF-8
1,183
3.609375
4
[]
no_license
/* PRATICAR CRIAÇÃO DE BANCOS DE DADOS E TABELAS COM CONSTRAINTS Professor: Wanderlei Silva do Carmo */ CREATE DATABASE IF NOT EXISTS BD_LOJA; USE BD_LOJA; CREATE TABLE IF NOT EXISTS LOJA( CODIGO INT NOT NULL AUTO_INCREMENT, LOCAL VARCHAR(50), PRIMARY KEY(CODIGO) ); CREATE TABLE IF NOT EXISTS VENDEDOR( ...
true
9249add7f6e786e69ddf6cf9cdec600e5ebf43ce
SQL
dadu0699/Eje-del-Mundo
/db/[MIA]CargaDeDatos.sql
UTF-8
6,091
3.796875
4
[]
no_license
LOAD DATA LOCAL INFILE '/home/didier/ProyectosNodejs/Eje-del-Mundo/data/DataCenterData.csv' INTO TABLE Temporal CHARACTER SET latin1 FIELDS TERMINATED BY ';' LINES TERMINATED BY '\r\n' IGNORE 1 LINES (nombreCompania, contactoCompania, correoCompania, telefonoCompania, tipo, nombre, corr...
true
cd7bf5f245986a62315481397987eae82a102233
SQL
topheryun/cs424
/test.sql
UTF-8
1,127
3.109375
3
[ "Apache-2.0" ]
permissive
CREATE TABLE IF NOT EXISTS `t_user` ( `id` int(11) NOT NULL AUTO_INCREMENT, `username` varchar(30) NOT NULL COMMENT '用户名', `firstname` varchar(30) NOT NULL, `lastname` varchar(30) NOT NULL, `birthdate` varchar(12) NOT NULL, `password` varchar(64) NOT NULL COMMENT '密码', `email` varchar(30) NOT NULL COM...
true
966c2f3b502b3e2d5c465d7fdbeed06de4b350a7
SQL
iuliancmoldovanu/cyptech.aws
/sql/ver_1.sql
UTF-8
351
2.90625
3
[ "MIT" ]
permissive
ALTER TABLE games ADD starts_at DATETIME NULL; ALTER TABLE games MODIFY COLUMN starts_at DATETIME AFTER players_unavailable; UPDATE `games` a SET a.starts_at = concat(date(a.updated_at + INTERVAL 4 - weekday(a.updated_at) DAY), ' 20:00:00'), a.created_at = DATE(DATE_SUB(date(a.updated_at + INTERVAL 4 - weekday(a.upda...
true
2710235c9357dc74b75ab4a62aed49ceb3f2c480
SQL
Abhinav-db/toolbox
/oemrep_sessions_past_month.sql
UTF-8
2,098
4.09375
4
[]
no_license
-- for each database in the repository, get the logons and average active sessions for the past month -- summate these per database as well in case of rac databases --- -- run this as sysman user on the OEM repository database -- tested with 12c R1 BP1 set linesize 300 set pages 50000 set tab off set echo off column ...
true
faad198ac5ad04e339260f7e4d3809928de95355
SQL
Mascici/php-crud
/db_bookstore.sql
UTF-8
1,585
3.0625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.1.0 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Aug 25, 2021 at 06:04 AM -- Server version: 10.4.18-MariaDB -- PHP Version: 7.3.27 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
true
c9de82870d50307e5a7c25c74d5fa4c8fb8b6a92
SQL
ramir7887/frontier
/backend/src/main/resources/changelog/changes/create-table-hello.sql
UTF-8
415
3.078125
3
[]
no_license
CREATE TABLE public.hello ( id bigint NOT NULL PRIMARY KEY, name character varying ); ALTER TABLE public.hello OWNER TO fortir; CREATE SEQUENCE public.hello_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; ALTER TABLE public.hello_id_seq OWNER TO fortir; ALTER...
true
3584610d52cf44eee0657fbf4b356c06904e6527
SQL
hirakpatel14/plsql_demo
/INDEXES/OL_SIGNATURE.sql
UTF-8
238
2.515625
3
[]
no_license
-------------------------------------------------------- -- DDL for Index OL$SIGNATURE -------------------------------------------------------- CREATE UNIQUE INDEX "SYSTEM"."OL$SIGNATURE" ON "SYSTEM"."OL$" ("SIGNATURE", "CATEGORY") ;
true
4f1f6cbdeeaf625be59dc553e424c0df8573d3e9
SQL
prasanth260295/mysql
/coresoft-product-database/src/main/resources/oracle/2.0.18/index_1.sql
UTF-8
267
2.671875
3
[]
no_license
CREATE INDEX IND_PARTY_FNAME ON PERSON(FIRST_NAME); CREATE INDEX IND_PARTY_LNAME ON PERSON(LAST_NAME); CREATE INDEX IND_PARTY_MNAME ON PERSON(MIDDLE_NAME); CREATE TABLE PARV_VW AS SELECT * FROM PARTY_ACCOUNT_ROLE_VW ; CREATE INDEX TEMp_IND ON PARV_VW(ACCOUNT_NO);
true
148e0f0d490ec21139d68d83e3424680fa1fbf65
SQL
missingu924/fpf
/sql/FPF日志分析建表语句-V2.0.sql
GB18030
23,998
2.84375
3
[]
no_license
/* Formatted on 2013/1/4 13:30:42 (QP5 v5.114.809.3010) */ DROP TABLE NWOM.FPF_PARSER_MAIN; DROP TABLE NWOM.FPF_PARSER_MIDDLE; DROP TABLE NWOM.FPF_PARSER_SQLLDR; DROP TABLE NWOM.FPF_FTP_CONNECT; DROP TABLE NWOM.FPF_FTP_NESTDL; DROP TABLE NWOM.FPF_FTP_ONEFILEDL; CREATE TABLE NWOM.FPF_PARSER_MAIN ( CITY_NAME ...
true
e596fcf6508e1416892e96fda258722c94617859
SQL
XuJ/paxdelay_xu
/sql/oracle/CreateContinentalAllocationsTable.sql
UTF-8
3,258
3.765625
4
[]
no_license
create table continental_allocations ( year number(4, 0) not null, quarter number(1, 0) not null, month number(2, 0) not null, day_of_month number(2, 0) not null, num_flights number(1, 0) not null, first_carrier char(2) not null, second_carrier char(2), origin char(3) not null, destination c...
true
f4264e3c589253095e5f0f0030f94c04ff5d654b
SQL
dandraden/Database-Scripts
/Oracle/others/Scripts/script_carlos_oracle/conschk.SQL
UTF-8
324
3.421875
3
[]
no_license
select i.constraint_name, i.constraint_type, c.column_name, i.search_condition from sys.user_constraints i, sys.user_cons_columns c where i.table_name = upper('&1') and i.constraint_name = c.constraint_name and i.table_name = c.table_name and i.constraint_type = 'C' order by 3 ...
true
ca9046d77caa45721ee0e59e3e7297d13dd1f4cb
SQL
irahulcse/E-Learning-Application-using-Android-and-JSP
/mainbook.sql
UTF-8
2,014
2.828125
3
[]
no_license
create table mainbook(id int(10) not null auto_increment, bookno varchar(100) not null, bookname varchar(100) not null,author varchar(100) not null,booklink varchar(200) not null,booklink2 varchar(200),bdeleted varchar(1) default "n", added_date timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,p...
true
22c707ef7dd0d6349835d66dcc1aab927b498457
SQL
annisafrida/oelshop
/database/oelshop.sql
UTF-8
6,549
3.203125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Dec 05, 2018 at 08:47 AM -- Server version: 10.1.29-MariaDB -- PHP Version: 7.2.0 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
c150d8cd87fc2a875f399a69e365b1a45a7e15e2
SQL
elizabeth1331/BD_GH
/s-17-lob-carga_imagen.sql
UTF-8
5,514
3.6875
4
[]
no_license
--@Autor(es): GARCIA MENESES JEREMY, MENDOZA DE LA VEGA DULCE ELIZABETH --@Fecha creación: 06/01/2021 --@Descripción: CARGA DE IMAGENES Prompt Conectando con usuario sys connect sys/system as sysdba Prompt Creando Objeto Directory para imagenes de vivienda create or replace directory fotos_dir_viv as '/home/...
true
83c5e84a6703781fb6e636560aa1f5e666bd529f
SQL
dragon-sing/good_management_system
/system_server/good_management_system.sql
UTF-8
5,391
3.390625
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : localhost_3306 Source Server Version : 80020 Source Host : localhost:3306 Source Database : good_management_system Target Server Type : MYSQL Target Server Version : 80020 File Encoding : 65001 Date: 2021-03-03 19:49:02 */ SET FOREIGN...
true
75d9e5f3e4ba382daec072d4a7fbfac7865ed1f9
SQL
SynSzakala/pbd
/views/meals_seafood.sql
UTF-8
312
3.203125
3
[]
no_license
CREATE or alter VIEW pending_seafood AS SELECT order_position.order_id, item.name, [order].ready_time FROM order_position INNER JOIN item ON item.id = order_position.item_id INNER JOIN [order] ON [order].id = order_position.order_id WHERE [order].status = 'Accepted' AND item.is_seafood = 1;
true
4fddad5448f22fa667386284c21cb4a31271f96a
SQL
ramabmtr/inventario
/migration/1565813264_init.up.sql
UTF-8
923
3.578125
4
[]
no_license
create table inventories ( id varchar not null constraint inventories_pk primary key, name varchar not null, created_at timestamp default current_timestamp not null, updated_at timestamp default current_timestamp not null, deleted_at timestamp default null ); creat...
true
521f6b3fc755ab69498e4f1af83ef97e1e6631a0
SQL
ClickHouse/ClickHouse
/tests/queries/0_stateless/00639_startsWith.sql
UTF-8
742
2.984375
3
[ "BSL-1.0", "Apache-2.0" ]
permissive
SELECT startsWith(s, 'He') FROM (SELECT arrayJoin(['', 'H', 'He', 'Hellow', '3434', 'fffffffffdHe']) AS s); SELECT startsWith(s, '') FROM (SELECT arrayJoin(['', 'h', 'hi']) AS s); SELECT startsWith('123', '123'); SELECT startsWith('123', '12'); SELECT startsWith('123', '1234'); SELECT startsWith('123', ''); DROP TABLE...
true
87d2bd0799e4c61663f18f94a18240e1da91c575
SQL
jasarsoft/fit-src
/bp2/vjezbe_pdf/bp2_vj08pdf_zadatak01.sql
UTF-8
569
3.234375
3
[ "MIT" ]
permissive
/* Vjezbe 8 Zadatak 1 Unutar baze podataka kreirane u vjezbi 7 dodati novu tabelu Komisija sa sljedecim poljima: - Ime, polje za unos 30 karaktera (obavezan unos) - Prezime, polje za unos 30 karaktera (obavezan unos) - Titula, polje za unos 15 karaktera, - Telefon, polje za unos 20 karaktera, - Email...
true
d0e7a7d2bb6de82c8682c910eddd84b3be52417f
SQL
mattbryce93/CodeClan-Course
/week_03/day_1/star_wars/star_wars.sql
UTF-8
1,796
4.09375
4
[]
no_license
DROP TABLE lightsabers; DROP TABLE characters; CREATE TABLE characters ( id SERIAL PRIMARY KEY, name VARCHAR(255), darkside BOOLEAN, age INT ); CREATE TABLE lightsabers ( id SERIAL PRIMARY KEY, hilt_metal VARCHAR(255) NOT NULL, colour VARCHAR(255) NOT NULL, character_id INT REFERENCES characters(id) )...
true
870e7931931cb73f80d0c4b16b18959c8cfa4584
SQL
CatalogueOfLife/retired_mysql-integrity-checks
/sql/5.1.1.sql
UTF-8
4,655
3.75
4
[]
no_license
SELECT 'Integrity check', 'Editorial decision ', 'SynID', 'ParentID', 'Genus', 'Subgenus', 'Species', 'Infraspecies', 'Author', 'GSDNameStatus', 'Sp2000Status', 'SpeciesURL' UNION ALL (SELECT '5.1.1 GSD ...
true
953a73cf073b824fc6535744c1e05231c82bb225
SQL
RobertFike/FinalProject
/FrontEnd (React)/NW_Central_Library_Demo/wwwroot/scripts/createJuvenileMember.txt
UTF-8
382
2.59375
3
[]
no_license
CREATE TABLE JuvenileMember ( ID int IDENTITY, AdultID int NOT NULL, FirstName varchar(30) NOT NULL, LastName varchar(30) NOT NULL, MidInit varchar(1), Suffix varchar(2), Birthdate datetime NOT NULL, InActive bit, InActiveDate date, CONSTRAINT PK_JuvenileMember PRIMARY KEY (ID, AdultID), CONSTRAINT FK_JuvenileMember_...
true
0bd3933e1fe2236725b625db1e60695808562b72
SQL
bopopescu/Example-Codes-and-Learning-Tools
/PHP Demo/16/practice.sql
BIG5
1,151
3.171875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 2.7.0-pl1 -- http://www.phpmyadmin.net -- -- D: localhost -- إߤ: Jan 01, 2006, 11:08 PM -- A: 4.0.24 -- PHP : 4.3.11 -- -- Ʈw: `myweb` -- -- -------------------------------------------------------- -- -- ƪ榡G `practice` -- CREATE TABLE `practice` ( `num` tinyint(3) unsigned NO...
true
b0cba6915c23dc1e46def5c870a7fcaaff783fac
SQL
buffalojoe/edX_cs50_2020
/pset7/movies/11.sql
UTF-8
190
3.765625
4
[]
no_license
SELECT title FROM movies m JOIN ratings r ON r.movie_id = m.id JOIN stars s ON s.movie_id = m.id JOIN people p ON p.id = s.person_id WHERE p.name = 'Chadwick Boseman' ORDER BY r.rating DESC LIMIT 5
true
97d607176a01c7e45190c771dd47dc143639b714
SQL
eberdeed/machinetrans
/data/worddata.sql
UTF-8
253,830
2.65625
3
[]
no_license
-- -- PostgreSQL database dump -- SET statement_timeout = 0; SET lock_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; SET check_function_bodies = false; SET client_min_messages = warning; SET search_path = public, pg_catalog; -- -- Data for Name: adjectives; Type: TABLE DATA; Schema:...
true
defe06b65f0a001a19e7e51fb1f0754ec8180db6
SQL
ahmad245/sql
/function/Numeric-Functions.sql
UTF-8
451
3.171875
3
[]
no_license
-- ROUND 1.1 => 1 , 1.5 =>2 , 1.7 =>2 -- SELECT ROUND(1.4) -- SELECT ROUND(1.5) -- SELECT ROUND(1.6) -- ROUND WITH parameter : how many digit will keep -- SELECT ROUND(1.3566,3) -- TRUNCATE the same of ROUND -- SELECT TRUNCATE(1.3654,2) -- CEILING 1.1 => 2 , 1.5 =>2 , 1.7 =>2 -- SELECT CEILING(1.9) -- FLOOR 1.1 =>...
true
615c2d3921a3984e7629dbdd94e5637e90fea248
SQL
yoheia/yoheia
/oracle/tpt_scripts/d2.sql
UTF-8
1,608
3.1875
3
[ "Apache-2.0" ]
permissive
------------------------------------------------------------------------------ -- -- Copyright 2017 Tanel Poder ( tanel@tanelpoder.com | http://tanelpoder.com ) -- -- 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 c...
true
278cf978f72763549228034242559132d0d977e1
SQL
bubdm/Databases
/IntroToSQL/IntroToSql_Ex.sql
UTF-8
2,684
4.34375
4
[ "MIT" ]
permissive
USE TelerikAcademy SELECT * FROM Departments --5. SELECT Name FROM Departments --6. SELECT Salary FROM Employees --7. SELECT FirstName + ' ' + LastName as [Full Name] FROM Employees --8. SELECT FirstName + '.' + LastName + '@telerik.com' AS 'Full Email Addresses' FROM Employees --9. SELECT DISTINCT Salary FROM...
true
94abdf277a62d3bb51bc821bca1237b408bcba48
SQL
Platin21/SQL
/Uebung2.sql
UTF-8
16,917
3.3125
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='TRADITIONAL,ALLOW_INVALID_DATES'; -- ----------------------------------------------------- -- Schema testdb --...
true
81a04312167fad6a787dccc0d8214b215c336188
SQL
Akanbi1005/CMS-School-Website-
/result.sql
UTF-8
11,322
2.859375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: May 24, 2019 at 05:28 AM -- Server version: 10.1.13-MariaDB -- PHP Version: 7.0.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLI...
true
30b4354b2acce30305b31aa106f341b677a3474b
SQL
mark-eva/ACE
/sql/disable_omf.sql
UTF-8
579
2.8125
3
[]
no_license
create spfile from pfile; startup force mount; alter system set "_omf" = disabled scope=spfile; startup force mount; -- shows that OMF has been successfully disabled col name format a25 col value format a10 select x.ksppinm name, y.kspftctxvl value, y.kspftctxdf isdefault, decode(bitand(y.kspftctxvf,7),1,'MODIFIED',4,...
true
3dee24b2d90be9bde879a434cf0cba4a0a87fe9d
SQL
tk0miya/schema2rst
/src/schema2rst/tests/schema/mysql_comments.sql
UTF-8
1,190
4.125
4
[ "Apache-2.0" ]
permissive
CREATE TABLE users ( id int primary key auto_increment comment 'ユーザ ID', login_id varchar(16) default '' not null comment 'ログイン ID', fullname varchar(255) default '' not null comment '氏名', sex int not null default 0 not null comment '性別 0:不明, 1:男性, 2:女性, 9:その他', mailaddr varchar(255) default '' not null uniqu...
true
6f4e89364ae822b7441c6910a15229a48c473169
SQL
sgueck9/Steven-personalProject
/db/total_price.sql
UTF-8
128
3.125
3
[]
no_license
select sum(cart.quantity * products.price) as total_price from cart , products where product_id = products.id and user_id = $1;
true
778781a952359100cc1bede57297509ce3e890ed
SQL
sonjamichelle/store-streamthegalaxy-com
/OLD_SITE/setup.dead/db/upgrade/5.2.0.sql
UTF-8
8,043
2.953125
3
[]
no_license
ALTER TABLE `CubeCart_option_assign` DROP `option_use_stock`, DROP `option_stock`; #EOQ ALTER TABLE `CubeCart_option_assign` ADD `matrix_include` TINYINT( 1 ) NOT NULL DEFAULT '0'; #EOQ ALTER TABLE `CubeCart_order_inventory` ADD `options_identifier` VARCHAR( 32 ) NULL; #EOQ ALTER TABLE `CubeCart_order_inventor...
true
b735fd4f2055f6adef6e1b2a93568b4e59b8f0a8
SQL
DucVuMinh/KBEnglish
/database/knowkledge.sql
UTF-8
4,797
3.15625
3
[]
no_license
-- MySQL dump 10.13 Distrib 5.7.12, for Win64 (x86_64) -- -- Host: localhost Database: knowledgebasedsystem -- ------------------------------------------------------ -- Server version 5.7.16-log /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SE...
true
c33bf171c18a81f2d87832a34029f1cec4ab9a5b
SQL
NitroXy/nxgame
/migration/20140601034352_multiple_answers.sql
UTF-8
205
3.375
3
[]
no_license
CREATE TABLE `questionanswers` ( `id` INT PRIMARY KEY AUTO_INCREMENT, `question_id` INT NOT NULL, `answer` text, CONSTRAINT FOREIGN KEY(question_id) REFERENCES questions(id) ON DELETE cascade);
true
a97731f1760d0e3226803aafc84f0fde6d986b75
SQL
hxf123my/swing_shop
/lai.sql
UTF-8
1,803
2.984375
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : my Source Server Version : 50717 Source Host : 127.0.0.1:3306 Source Database : lai Target Server Type : MYSQL Target Server Version : 50717 File Encoding : 65001 Date: 2020-12-26 17:01:47 */ SET FOREIGN_KEY_CHECKS=0; ...
true
3f737d46a7062e804982c799d67db8cf64bd04e0
SQL
majerzemilia/Databases
/OraclePLSQL/routines/zmien_liczbe_miejsc3.sql
UTF-8
791
3.640625
4
[]
no_license
CREATE OR REPLACE PROCEDURE zmien_liczbe_miejsc3(id_wycieczki NUMBER, liczba_miejsc NUMBER) AS zajete_miejsca NUMBER; czy_istnieje INT; BEGIN SELECT COUNT(*) INTO czy_istnieje FROM WYCIECZKI w where w.ID_WYCIECZKI = zmien_liczbe_miejsc3.id_wycieczki; IF czy_istnieje = 0 THEN raise_application_error(-20002, 'Wycieczk...
true
1d4047854a43a3836507f5a1085c7a2c3994aef1
SQL
CycloneBoy/springclouddemo
/producer-server/src/main/resources/schema.sql
UTF-8
242
2.578125
3
[]
no_license
drop table if exists t_user; create table t_user( id bigint not null auto_increment primary key , username varchar(40), name varchar(20), age int(3) , balance decimal(10,2) ) engine=InnoDB DEFAULT CHARSET=utf8 comment '用户表';
true
372ad15a514fa9175a991e08911b07566f00a2a9
SQL
CrowsFeet/SQL_Stuff
/ChkMemoryPressure2.sql
UTF-8
1,045
3.375
3
[]
no_license
-- may be useless as it reported itself select db_name(sp.dbid),sp.spid,er.wait_type,er.wait_time,er.wait_resource,er.total_elapsed_time,st.text,qp.query_plan ,ec.net_packet_size,ec.client_net_address,es.host_name,es.program_name,es.client_interface_name ,es.status,e...
true
b2be0e2fe0d6bb2b88b910d95f11379113b086bc
SQL
Gelerion/LearingCurve
/src/main/resources/db/migration/V1__Create_tables.sql
UTF-8
6,268
3.53125
4
[]
no_license
CREATE TABLE IF NOT EXISTS udb_process_run ( run_id BIGINT(20) NOT NULL AUTO_INCREMENT, date TIMESTAMP NULL, status VARCHAR(10) NOT NULL, PRIMARY KEY (run_id)) ENGINE = InnoDB DEFAULT CHARACTER SET = utf8; -- ----------------------------------------------------- -- Table udb_process_summary_data -- ----------...
true
18026ba472ef54a86858c439fd2cf43fdd08f09f
SQL
lu4nation/flask-experience
/app/cria_banco.sql
UTF-8
890
3.21875
3
[ "Unlicense" ]
permissive
SET NAMES utf8; SET time_zone = '+00:00'; SET foreign_key_checks = 0; SET sql_mode = 'NO_AUTO_VALUE_ON_ZERO'; CREATE DATABASE `jogoteca` /*!40100 DEFAULT CHARACTER SET utf8 COLLATE utf8_bin */; USE `jogoteca`; CREATE TABLE `jogo` ( `id` int(11) NOT NULL AUTO_INCREMENT, `nome` varchar(50) COLLATE utf8_bin NOT NULL...
true
544b6ba4d1da5ce6cc8ec2fe57118ae5bf60b1d9
SQL
maroinemlis/masama_generator
/SQL/10_tables.sql
UTF-8
1,116
2.734375
3
[]
no_license
drop table if exists InfoA; drop table if exists InfoB; drop table if exists InfoC; drop table if exists InfoD; drop table if exists InfoE; drop table if exists InfoF; drop table if exists InfoG; drop table if exists InfoH; drop table if exists InfoI; drop table if exists InfoJ; CREATE TABLE InfoD ( idD INT PRIMAR...
true
47ed051aa404980a8c9650f736c2ecd0088a4d35
SQL
OlafMd/MedCon1.0
/mm-libs/dbaccess/Level 2/CL2_Supplier/Atomic/Retrieval/SQL/cls_Get_SupplierType_without_Name_for_Tenant.sql
UTF-8
350
2.640625
3
[]
no_license
SELECT cmn_bpt_supplier_types.CMN_BPT_Supplier_TypeID, cmn_bpt_supplier_types.GlobalPropertyMatchingID, cmn_bpt_supplier_types.Creation_Timestamp, cmn_bpt_supplier_types.IsDeleted FROM cmn_bpt_supplier_types WHERE cmn_bpt_supplier_types.Tenant_RefID = @TenantID AND cmn_bpt_s...
true
51540765abd467d7caea01ed1bfda2c8421e1f2f
SQL
ghaidadwi/rekweb2020_183040085_phpmvc
/phpmvc/phpmvc.sql
UTF-8
1,759
3.078125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Sep 30, 2020 at 03:39 PM -- 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
6c8b81ec70ad28cbccf4927242ca60d0952fec51
SQL
fabianaguirre10/Fuente_industrial
/Mardis.Engine.Database/FilterExecutionDetail.sql
UTF-8
540
2.84375
3
[]
no_license
CREATE TABLE [MardisCore].[FilterExecutionDetail] ( [Id] UNIQUEIDENTIFIER NOT NULL PRIMARY KEY, [IdFilterExecution] UNIQUEIDENTIFIER NOT NULL, [IdFilterCriteria] UNIQUEIDENTIFIER NOT NULL, [Value] VARCHAR(2000) NOT NULL, [CreationFilter] DATETIME NOT NULL, CONSTRAINT [FK_FilterExecutionDetail...
true
b61473f00c11ac9de119cb2f3951a7549da0e5c4
SQL
archeocs/procj-sample-app
/database/init-db.sql
UTF-8
290
3.4375
3
[]
no_license
CREATE TABLE books ( id BIGINT PRIMARY KEY AUTO_INCREMENT, title VARCHAR(100) ); DELIMITER %% CREATE PROCEDURE count_books () BEGIN SELECT COUNT(*) FROM books; END%% CREATE PROCEDURE add_book (title VARCHAR(100)) BEGIN INSERT INTO books(title) VALUES (title); END%% DELIMITER ;
true
7336d8e412d6b0c0da9166de3696d533df0ade9f
SQL
mtikoian/km-all-projects
/ECN/ECN_Database/ECN5_Accounts/dbo/Stored Procedures/e_LandingPageAssign_RemoveBaseChannelOverrideForCustomer.sql
UTF-8
281
2.890625
3
[]
no_license
CREATE PROC dbo.e_LandingPageAssign_RemoveBaseChannelOverrideForCustomer ( @BaseChannelID int ) AS BEGIN update LandingPageAssign set CustomerDoesOverride = 0 where CustomerID in (select CustomerID from Customer where BaseChannelID= @BaseChannelID and IsDeleted=0) END
true
f3cab4ec1872d7ee6cf7bcc495fbe750d7b16c90
SQL
matthewAbianco/employee-tracker
/db/seeds.sql
UTF-8
891
2.796875
3
[]
no_license
INSERT INTO department (department_name) values ('Sales'), ('Engineering'), ('Finance'), ('Legal'); INSERT INTO roles (title, salary, department_id) VALUES ("VP Sales", 40000, 1), ("Salesperson", 50000, 2), ("Lead Engineer", 60000, 3), ("Software Engineer", 70000, 4), ("Accounta...
true
935df31f88d86695580fa15792fa36dd7f870310
SQL
cesaroll/VB_Unix
/Queries/xfer_validation_rules_Queries.sql
UTF-8
1,620
3.359375
3
[]
no_license
SELECT * FROM dss.xfer_validation_rules; SELECT * FROM dss.xfer_validation_rules WHERE table_name = 'stg_master_project_po'; SELECT * FROM dss.xfer_validation_rules WHERE table_name = 'stg_mp_task_mapping'; SELECT * FROM dss.xfer_validation_rules WHERE table_name = 'stg_master_project_po' AND column_name = 'primary k...
true
61e1034c87f13fed7dc48dc8eefa67eebb562384
SQL
jgarzonext/plsql-testing
/script_plsql/bd_iaxis/script/indices/MIG_REEMPLAZOS_PK.sql
UTF-8
329
2.53125
3
[]
no_license
-------------------------------------------------------- -- DDL for Index MIG_REEMPLAZOS_PK -------------------------------------------------------- CREATE UNIQUE INDEX "AXIS"."MIG_REEMPLAZOS_PK" ON "AXIS"."MIG_REEMPLAZOS" ("NCARGA", "SSEGURO") PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS TABLESPACE ...
true
89a8aeb47286fb10503d909a08609f7c51eb04cc
SQL
kevindjacobson/magical_interview
/db/test-dumps/dumps/tickets.sql
UTF-8
5,774
2.640625
3
[]
no_license
-- MySQL dump 10.13 Distrib 5.5.32, for Linux (x86_64) -- -- Host: 127.0.0.1 Database: tickets -- ------------------------------------------------------ -- Server version 5.5.32-31.0 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */...
true
23e8d9cb745863e5f7118764818455abf9bf396a
SQL
ejiro1111/STOUPETCARE
/src/ManagementForm/stoupetshop_SQL.sql
UTF-8
7,219
3.03125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.1 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Jun 07, 2021 at 08:11 PM -- Server version: 8.0.17 -- PHP Version: 7.3.10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACT...
true
71918abd2b8e8e2d2dd996723af1ae0a9e4a8a95
SQL
pleak-tools/pleak-backend
/src/main/resources/db/dev.sql
UTF-8
3,085
3.09375
3
[ "MIT" ]
permissive
USE pleak; # email | password # ------------------|--------- # user1@example.com | user1 # user2@example.com | user2 # user3@example.com | user3 # test1@example.com | test1 # test2@example.com | test2 # test3@example.com | test3 # blocked@example.com | blocked INSERT IGNORE INTO users (email, password) VALUES ('us...
true
02d99c7108baecb3a182b56a76fc9dbf547435ae
SQL
atsushikoizumi/sql_syntax
/postgresql/initial_sample.sql
UTF-8
6,602
3.546875
4
[]
no_license
-- -- [はじめに] -- マスターユーザー(masteruser)を置換 -- マスターDB名(masterdb)を置換 -- -- -- login by master user -- -- ユーザー作成 CREATE ROLE xx_adm WITH LOGIN PASSWORD 'xx_adm_pass'; CREATE ROLE xx_apl1 WITH LOGIN PASSWORD 'xx_apl1_pass'; CREATE ROLE xx_bat1 WITH LOGIN PASSWORD 'xx_bat1_pass' NOINHERIT; CREATE ROLE xx_ipls WITH LOGIN P...
true
894ae5a430a524cbe9f5df67b9baa6b4d120d948
SQL
liuthomas725/JAVA-000
/Week_08/src/main/sql/t_store_order.sql
UTF-8
15,493
3.03125
3
[]
no_license
CREATE TABLE `t_store_order0` ( `store_order_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '主键id', `user_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '用户id', `store_name` varchar(255) COLLATE utf8_bin NOT NULL DEFAULT '' COMMENT '商家名字', `store_id` decimal(10,2) unsigned NOT NULL DEFAULT '0.00' CO...
true
8e4f25a21ec8cf66c32edc035bb16ebc73a6562b
SQL
barrettanderson/sql-library-lab-onl01-seng-ft-052620
/lib/update.sql
UTF-8
264
3
3
[ "LicenseRef-scancode-unknown-license-reference", "LicenseRef-scancode-public-domain" ]
permissive
-- Update the species of the last character in the database to "Martian" by writing an update statement in update.sql. -- UPDATE table_name -- SET column1 = value1, column2 = value2, ... -- WHERE condition; UPDATE characters SET species = 'Martian' WHERE id = 8;
true
38fd636293b3580b6e904a9ad424b5d56680e09d
SQL
kono94/music_quiz
/music_quiz.sql
UTF-8
332,797
3.03125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.2.12 -- http://www.phpmyadmin.net -- -- Host: rdbms -- Erstellungszeit: 29. Feb 2016 um 15:00 -- Server Version: 5.5.47-log -- PHP-Version: 5.5.29 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*...
true
17fda352d1a3bee976c499024498fd888196568e
SQL
qushaoye2009/service-backend
/database/test.sql
UTF-8
6,035
3.53125
4
[]
no_license
/* Source Server : localhost Source Server Type : MySQL Source Server Version : 50721 Source Host : localhost:3306 Source Schema : test Target Server Type : MySQL Target Server Version : 50721 File Encoding : 65001 */ SET NAMES utf8mb4; SET FOREIGN_KEY_CHECKS = 0; --...
true
89f716fd2013301142bd845e6cb6c5b77210533f
SQL
wwjiang007/yugabyte-db
/src/postgres/src/test/regress/sql/yb_pg_create_table.sql
UTF-8
3,071
2.71875
3
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0", "OpenSSL", "PostgreSQL" ]
permissive
-- -- CREATE_TABLE -- -- -- CLASS DEFINITIONS -- CREATE TABLE hobbies_r ( name text, person text ); CREATE TABLE equipment_r ( name text, hobby text ); CREATE TABLE onek ( unique1 int4, unique2 int4, two int4, four int4, ten int4, twenty int4, hundred int4, thousand int4, twothousand int4...
true
7dcae647835994612007d425d6537ff9638f3879
SQL
vorellan/horas_medicas
/clinica.sql
UTF-8
16,799
2.65625
3
[]
no_license
-- MySQL dump 10.13 Distrib 5.1.36, for Win32 (ia32) -- -- Host: localhost Database: clinica -- ------------------------------------------------------ -- Server version 5.1.36-community-log /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RES...
true
ac160af60b1839b57bd0e8004bb31edf05ca04f6
SQL
rafaelq80/projeto_spring
/src/main/resources/data.sql
UTF-8
2,161
2.5625
3
[ "MIT" ]
permissive
-- Participante INSERT INTO participantes ( data_criacao, data_atualizacao, email, nome, observacoes ) VALUES ( CURRENT_TIMESTAMP(), CURRENT_TIMESTAMP(), 'joao@email.com.br', 'João', 'Aluno interessado' ); INSERT INTO participantes...
true