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
db986aebfaec7521310e5be2a2c9e5109db5e268
SQL
dingGator/C2540-Database-Management
/C8_EADB_2.sql
UTF-8
1,238
3.953125
4
[]
no_license
use EntertainmentAgencyexample; select distinct eng.customerId, (cust.custfirstname||' ' || cust.custlastname) as customer_FullName, eng.entertainerId, ent.entStageName from ((customers cust join engagements eng on (cust.customerid = eng.customerid)) join entertainers ent on (eng.entertaineri...
true
bb6dd76cc4dea7aa138234b2c99ca0992c313937
SQL
taciochi/Store-Database
/Ciochirca Teodor-Avram.sql
UTF-8
7,429
3.671875
4
[]
no_license
DROP DATABASE CS_STORE; CREATE DATABASE CS_Store; USE CS_Store; CREATE TABLE Customers( birth_day DATE, first_name VARCHAR(20), last_name VARCHAR(20), c_id INT, CONSTRAINT PK_customers PRIMARY KEY (c_id) ); CREATE TABLE Employees( birth_day DATE, first_name VARCHAR(20), last_name VARCHAR(20), e_id INT, CONSTRAINT PK_...
true
1faa260d0aafab1ba9006d9447169ac249e56ec7
SQL
chstudio-mail-ru/yii-test
/canvas.sql
UTF-8
3,518
2.90625
3
[ "BSD-3-Clause" ]
permissive
-- phpMyAdmin SQL Dump -- version 3.5.1 -- http://www.phpmyadmin.net -- -- Хост: 127.0.0.1 -- Время создания: Апр 27 2015 г., 10:11 -- Версия сервера: 5.5.25 -- Версия PHP: 5.4.40 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!4010...
true
bcc3c046f22e54311bf995c1290f47b151e5fdd5
SQL
EdwardAfanador/paradigmas
/final.sql
UTF-8
6,323
3.46875
3
[]
no_license
-- MySQL Workbench Forward Engineering drop database mydb; SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0; SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0; SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_...
true
e0f92488042f2d7fdda1f470dc1a3951da9bf0c9
SQL
cramt/hjem-is
/res/script.sql
UTF-8
2,256
3.765625
4
[]
no_license
CREATE TABLE storage_meta_data ( id INT identity (1,1), percent_inventory_cost FLOAT NOT NULL, primary key (id), ) CREATE TABLE storage_plans ( id INT identity (1,1), name VARCHAR(MAX) NOT NULL, active BIT NOT NULL, ...
true
750b8c307a7e9fd975f831e86a7ee65b2cbc1be9
SQL
bdmlai/analytics_engineering_marts
/models/Redshift/fds_da/aggregate_intermediate/intm_da_kpi_website_union.sql
UTF-8
7,931
2.515625
3
[]
no_license
{{ config({ "schema": 'fds_da', "materialized": 'ephemeral',"tags": 'rpt_da_monthly_wwe_com_website_kpis' }) }} SELECT "t0"."date" AS "date", "t0"."device_category" AS "device_category", "t0"."device_type" AS "device_type", "t0"."geonetwork_us_v_international" AS "geonetwork_us_v_international", "t0"....
true
c6d829f97c8a619eb7526bb98dfcd3e5e89eec43
SQL
VinayagamD/SQLTraining
/SQL Basics/triggers/trigger_example.sql
UTF-8
402
3.15625
3
[]
no_license
-- DDL Trigger use trigger_example; DELIMITER // CREATE TRIGGER before_insert_employee_working_hours BEFORE INSERT ON employee FOR EACH ROW BEGIN IF NEW.working_hours < 0 THEN SET NEW.working_hours = 0; END IF; END // INSERT INTO employee VALUES ('Markus', 'Former', '2020-10-0...
true
e300e40c0a9be4b59c1f67e1f159b9acdb8de50e
SQL
krishnaveni1001/system-tests
/postgres/assets/tmp/1001.sql
UTF-8
16,240
2.875
3
[]
no_license
-- Create QAAUTO environment INSERT INTO cs_environment ( environment_type, client_name, client_short_name, address1, address2, contact_number, client_view_id, deployment_type, association_belong_ids, suds_enabled, gdpr_accepted, allow_contract_export, currency_adj_factor, is_global_deployme...
true
cd7809e4a45870c1c18c45a021d539e35feb79a9
SQL
kajuga/job4j
/chapter_sql/src/main/java/ru/job4j/company/commands.sql
UTF-8
537
4.59375
5
[ "Apache-2.0" ]
permissive
-- 1) Retrieve in a single query: -- - names of all persons that are NOT in the company with id = 5 -- - company name for each person SELECT p.name, c.name FROM tracker.person as p left join tracker.company as c on p.company_id = c.id where p.company_id <> 5; -- 2) Select the name of the company with the maximum...
true
e1c661ccec90ca7fd8f10021d5cfa4ad33465059
SQL
dinhhanh263/kireimo
/mens_Dump20210520/mens_kireimo_contract.sql
UTF-8
4,958
3.046875
3
[]
no_license
-- MySQL dump 10.13 Distrib 8.0.24, for Win64 (x86_64) -- -- Host: kireimo-dev-db.mysql.database.azure.com Database: mens_kireimo -- ------------------------------------------------------ -- Server version 5.6.47.0 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RE...
true
08685632ec085154623dfde65846a1ed8ca872c7
SQL
devtool-sp/bank-api
/target/garant/WEB-INF/classes/database.sql
UTF-8
3,607
3.96875
4
[]
no_license
/*All User's gets stored in APP_USER table*/ create table APP_USER ( id BIGINT NOT NULL AUTO_INCREMENT, sso_id VARCHAR(30) NOT NULL, password VARCHAR(100) NOT NULL, PRIMARY KEY (id), UNIQUE (sso_id) ); /* USER_PROFILE table contains all possible roles */ create table USER_PROFILE( id BIGINT NOT N...
true
20074ff3b444d62bf9dd9f72f5af04d529e4ce9a
SQL
brianzarzuela/MySQL
/Homeworks/HW3/zarzuela_hw3p1.sql
UTF-8
1,519
3.921875
4
[]
no_license
-- --------------------------------------------------------------------------------- -- File : zarzuela_hw3p1.sql -- Author : Brian Zarzuela -- Date : 3 February 2020 -- -- Desciption : -- Set of tasks for selecting data from the country table of the world database. -- Please install a fresh copy...
true
a385c32def842461b6840756694ea8ba3ab6df9d
SQL
likeclem30/GES3-Codes
/ucellulant1~21.sql
UTF-8
98
2.515625
3
[]
no_license
select count(*) tt from g3_farmers_rollout where farmerid not in(select farmerid from g3_farmers);
true
d2a1077dba8d3d91fcb7109783cdf0eaf9616bd8
SQL
kelvinmbwilo/sheknahblog
/public/img/localhost.sql
UTF-8
6,272
2.875
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 3.4.10.1deb1 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Mar 29, 2014 at 02:27 AM -- Server version: 5.5.35 -- PHP Version: 5.3.10-1ubuntu3.10 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTE...
true
a9473d7de4918243cb0b2f1d2bb338e1ae04c225
SQL
SoftTree-Technologies/sa-test
/sa-test/PG_Test/postgres/Views/pg_catalog.pg_stat_archiver.sql
UTF-8
656
3.1875
3
[]
no_license
SET SCHEMA "pg_catalog"; CREATE VIEW pg_stat_archiver AS SELECT s.archived_count, s.last_archived_wal, s.last_archived_time, s.failed_count, s.last_failed_wal, s.last_failed_time, s.stats_reset FROM pg_stat_get_archiver() s(archived_count, last_archived_wal, last_archived_time, failed_count...
true
0a18c271f775f6612f367d9b38bdb528c36a592b
SQL
Ming0033/student_status_management_springboot
/data_student_manager.sql
UTF-8
29,111
3.0625
3
[ "MIT" ]
permissive
/* Navicat MySQL Data Transfer Source Server : Aliyouth Source Server Version : 80018 Source Host : xxxxxx Source Database : data_student_manager Target Server Type : MYSQL Target Server Version : 80018 File Encoding : 65001 Date: 2020-06-22 16:26:33 */ SET FOREIGN_KEY_CHECKS=0; ...
true
c821132f11016dd51880ffe08de297a8b546b67f
SQL
filipefernandes007/ruthphp
/sql/PlanetGetById.sql
UTF-8
434
4.21875
4
[]
no_license
SELECT pl.*, GROUP_CONCAT( DISTINCT CONCAT( sat.id, '#', sat.name, '#', sat.img ) ORDER BY sat.id ASC SEPARATOR '|' ) AS "satellites", GROUP_CONCAT( DISTINCT CONCAT_WS('#' , img.id , img.img , img.text) SEPARATOR '|' ) AS "images" FROM ...
true
d0c531c368cf3983f9f561b814a5c08721616cc1
SQL
DumitriuAdelina/Fmi-DB
/lab3/1-15.sql
UTF-8
2,587
4
4
[]
no_license
--1 select concat(first_name,' ')||last_name||' castiga '||salary||' lunar, dar doreste '||salary*3 "Salariu ideal" from employees; --2 select initcap(first_name) nume ,upper(last_name) prenume , length(first_name) lungime from employees where upper(last_name) like 'J%' or upper(last_name) like 'M%' or upper(last_name...
true
5ae07ae2bd9fb0fc46f37b83c39a2303bead213a
SQL
bellmit/origin
/family_order/sql/TF_B_TRADE_DISCNT/SEL_COMMPARA_BY_TRADEID.sql
UTF-8
551
3.390625
3
[]
no_license
SELECT A.USER_ID, A.DISCNT_CODE, B.PARAM_CODE, B.PARA_CODE1, B.PARA_CODE2, B.PARA_CODE3, B.PARA_CODE4, B.PARA_CODE5 FROM TF_B_TRADE_DISCNT A, TD_S_COMMPARA B WHERE A.DISCNT_CODE = TO_NUMBER(B.PARAM_CODE) AND B.SUBSYS_CODE = 'CSM' AND B.PARAM_ATTR = 1655 AND T...
true
03c6dedd2d2c03e57287cf1e04d930ae173785f2
SQL
suevip/smart-device
/darma/script/dbscript.sql
UTF-8
4,931
2.921875
3
[]
no_license
CREATE TABLE `t_physical_records` ( `member_id` BIGINT(20) NOT NULL, `start_time` INT(10) DEFAULT NULL, `heart_rate` INT(10) DEFAULT NULL, `heart_rate_weight` INT(10) DEFAULT NULL, `respiration_value` INT(10) DEFAULT NULL, `respiration_weight` INT(20) DEFAULT NULL, ...
true
5233d382338bf61bb16a738336968ecb2810fbb3
SQL
radtek/abs3
/sql/mmfo/bars/Table/scale_immobile.sql
UTF-8
3,044
2.96875
3
[]
no_license
PROMPT ===================================================================================== PROMPT *** Run *** ========== Scripts /Sql/BARS/Table/SCALE_IMMOBILE.sql =========*** Run ** PROMPT ===================================================================================== PROMPT *** ALTER_POLICY_INFO...
true
2571a04b0da11fe01b03f835b3cc3191e18ccc8c
SQL
marcosvolpiok/Zend_capacitacion_Softtek
/sql.sql
UTF-8
833
2.78125
3
[]
no_license
CREATE TABLE `empresas` ( `id` int(11) NOT NULL, `nombre` varchar(100) NOT NULL, `descripcion` varchar(255) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; ALTER TABLE `empresas` ADD PRIMARY KEY (`id`); ALTER TABLE `empresas` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; INSERT INTO empresas (nombre, ...
true
2a9f84447c83d14835818155b0ca05d48cc956c3
SQL
JKongman/SQLProjects
/Assignment 2/Pretty Prints II.sql
UTF-8
2,610
4.3125
4
[]
no_license
-- ASSIGNMENT 2 Pretty Prints II -- -- 1. List all customer along with their address, city, state and zip -- SELECT customer_name, customer_add, customer_city, customer_state, customer_zip FROM customers; -- 2. List all customers and their phone numbers that live in GA-- SELECT customer_name, customer_phone FROM cust...
true
bfa4c88684e11f487e69cba60fd9cddc672fdd3d
SQL
JulioAvalos/crud-articulos
/api-articulo/src/main/resources/data.sql
UTF-8
92,375
2.859375
3
[]
no_license
create table oauth_client_details ( client_id VARCHAR(256) PRIMARY KEY, resource_ids VARCHAR(256), client_secret VARCHAR(256), scope VARCHAR(256), authorized_grant_types VARCHAR(256), web_server_redirect_uri VARCHAR(256), authorities VARCHAR(256), access_token_validity INTEGER, refresh_token_validity...
true
8006818c1d3c9473605d97791d1b6e9e01bfeccd
SQL
bmasters86/rottenpotatoes
/rottenpotatoesdatabase/rottenpotatoes_user.sql
UTF-8
2,355
2.703125
3
[]
no_license
-- MySQL dump 10.13 Distrib 8.0.19, for Win64 (x86_64) -- -- Host: localhost Database: rottenpotatoes -- ------------------------------------------------------ -- Server version 8.0.19 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_R...
true
8e358922329898af2c9ed9a65e00284824707aa5
SQL
mrj31/immdonor
/db/autoload/schema/study_pubmed.ddl
UTF-8
1,151
3.375
3
[]
no_license
DROP TABLE IF EXISTS study_pubmed; CREATE TABLE study_pubmed ( study_accession VARCHAR(15) NOT NULL COMMENT "Foreign key reference to the STUDY table", pubmed_id VARCHAR(16) NOT NULL COMMENT "Pubmed identifier for the article", authors VARCHAR(4000) COMMENT "list of authors of the article", ...
true
d102ac45b90b956ea33be982b56322313c371e4c
SQL
jamayfieldjr/iem
/database/init/snet.sql
UTF-8
71,374
3.3125
3
[ "MIT" ]
permissive
-- Boilerplate IEM schema_manager_version, the version gets incremented each -- time we make an upgrade script CREATE TABLE iem_schema_manager_version( version int, updated timestamptz); INSERT into iem_schema_manager_version values (4, now()); CREATE FUNCTION local_date(timestamp with time zone) RETURNS date LA...
true
915b272bdb08c88bcb6af8575886fe19f951ebff
SQL
rpitv/glimpse-api
/prisma/migrations/20230210223529_add_profile_pic/migration.sql
UTF-8
249
2.859375
3
[ "MIT" ]
permissive
-- AlterTable ALTER TABLE "people" ADD COLUMN "profile_picture" INTEGER; -- AddForeignKey ALTER TABLE "people" ADD CONSTRAINT "people_images_id_fk" FOREIGN KEY ("profile_picture") REFERENCES "images"("id") ON DELETE SET NULL ON UPDATE CASCADE;
true
fef12bc4ca4ef9dce294cc2ab80e0ffea19d6bf4
SQL
GutAmanai/TG
/old/br.banco.tg/Backup/Dump20131024_CI.sql
UTF-8
3,893
3.578125
4
[]
no_license
-- -- Table structure for table `Promocao` -- DROP TABLE IF EXISTS `promocao`; CREATE TABLE `promocao` ( `Id` int(11) NOT NULL AUTO_INCREMENT, `Nome` varchar(100) NOT NULL, `DataEntrada` datetime NOT NULL, `Descricao` text NOT NULL, `ImagemUrl` varchar(100) DEFAULT NULL, PRIMARY KEY (`Id`) ) ENGINE=InnoDB ...
true
571e460c741e2d7a2621cd49de612a84f0543cfc
SQL
pwatanabe/sgo
/contas-parcelas.sql
UTF-8
3,965
3.3125
3
[ "Apache-2.0" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.4.14 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: 21-Dez-2015 às 20:05 -- Versão do servidor: 5.6.26 -- PHP Version: 5.6.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;...
true
9c204e84907fdc7e81d1f0a0aa52dd11e0a4c61d
SQL
sprokushev/Delphi
/MASTER/_DATABASE/PackageBodies/FOR_VISIR.sql
UTF-8
4,122
3.703125
4
[]
no_license
-- -- FOR_VISIR (Package Body) -- CREATE OR REPLACE PACKAGE BODY MASTER.FOR_VISIR AS PROCEDURE GLOBAL_TO_LOCAL(AUSER_ID NUMBER,FROM_DATE DATE,TO_DATE DATE) IS BEGIN UPDATE month_visir_loc A SET (prichin) = (SELECT B.prichin FROM master.v_month_ree B WHERE B.date_ree=A.date_ree AND B.dop_ree=A....
true
779ed82c1d41961becfc255eeb6830daf7f479e8
SQL
tracytn0411/Bamazon
/bamazon.sql
UTF-8
1,542
3.96875
4
[]
no_license
DROP DATABASE IF EXISTS bamazon; CREATE DATABASE bamazon; USE bamazon; CREATE TABLE products ( item_id INT UNSIGNED NOT NULL AUTO_INCREMENT, product_name VARCHAR(255) NOT NULL, department_name VARCHAR(255) NOT NULL, price DECIMAL(7,2) NOT NULL, stock_quantity INT UNSIGNED NOT NULL DEFAULT 0...
true
ef38ab8673ea9f7c06fe52ad74ad0a156c5208d6
SQL
intom99/CRUD-Laravel
/pegawai.sql
UTF-8
4,575
3.078125
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: May 19, 2021 at 05:31 PM -- Server version: 10.4.11-MariaDB -- PHP Version: 7.4.4 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIEN...
true
eaf78e129a31c56026415ac1a70e1337db6865ea
SQL
RomaMarchenko/6thSQL-lesson-part1
/src/sql/lesson6-hw/part1/EMOPLOYEES.sql
UTF-8
527
2.59375
3
[]
no_license
CREATE TABLE EMPLOYEES ( EMPLOYEE_ID NUMBER, CONSTRAINT EMPLOYEE_PK PRIMARY KEY (EMPLOYEE_ID), LAST_NAME NVARCHAR2(50), FIRST_NAME NVARCHAR2(50), TITLE NVARCHAR2(100), TITLE_OF_COURTESY NVARCHAR2(100), BIRTH_DATE TIMESTAMP, HIRE_DATE TIMESTAMP, ADDRESS NVARCHAR2(100), CITY NVARCH...
true
fa35a17288ccdaf6ffe92493095ef63acdbae2ba
SQL
AgResearch/brdf
/schema/agrbrdf/tbl.biolibraryconstructionfunction.sql
UTF-8
600
2.84375
3
[]
no_license
-- -- Name: biolibraryconstructionfunction; Type: TABLE; Schema: public; Owner: agrbrdf; Tablespace: -- CREATE TABLE biolibraryconstructionfunction ( biosampleob integer NOT NULL, biolibraryob integer NOT NULL, bioprotocolob integer, labresourcelist integer, labresourceob integer, labbookrefer...
true
bb1c8daba13cf02f394f207e6ea9697dbf08217b
SQL
xintao222/dolphin
/dolphin-web-login/src/main/resources/db/migration/V1__init.sql
UTF-8
868
2.640625
3
[ "Apache-2.0" ]
permissive
/* Navicat MySQL Data Transfer Source Server : localhost_3306 Source Server Version : 50619 Source Host : localhost:3306 Source Database : dolphin-login Target Server Type : MYSQL Target Server Version : 50619 File Encoding : 65001 Date: 2015-05-14 14:58:29 */ SET FOREIGN_KEY_CHEC...
true
0d2c83de1cf67845395efddadbcb32b7e9a0637a
SQL
elZagales/pfc-sql
/sql/agg_week_time.sql
UTF-8
803
3.828125
4
[]
no_license
WITH qualified_act as ( SELECT athlete_hub_seq ,CONCAT(firstname," ", lastname) as athlete , FORMAT_TIMESTAMP("%b %Y", start_date) as event_month , FORMAT_TIMESTAMP("%W", start_date) as event_week , sum(moving_time_s) as total_time_s FROM `strava-int.strava_information_vault.fact_activity` GROUP BY athlete_hub_...
true
a8c55498951ddae3def590c0d78a545ae2575e1f
SQL
Jerling1989/Echo-Chamber
/sql/table-setup.sql
UTF-8
1,577
3.4375
3
[]
no_license
CREATE TABLE users ( id INT AUTO_INCREMENT NOT NULL, first_name VARCHAR (25), last_name VARCHAR (25), username VARCHAR (60), email VARCHAR (60), password VARCHAR (255), signup_date DATE, profile_pic VARCHAR (255), num_posts INT, num_likes INT, user_closed VARCHAR (3), friend_array TEXT, PRIMARY KEY (id) );...
true
4b55b3941665728f1a1788f6ac7ce984db64dbe9
SQL
kukim96/smart-TODO-list
/db/schema/01_users.sql
UTF-8
629
3.53125
4
[]
no_license
-- Drop and recreate Users table (Example) DROP TABLE IF EXISTS users CASCADE; DROP TABLE IF EXISTS category CASCADE; DROP TABLE IF EXISTS todolist CASCADE; CREATE TABLE users ( id SERIAL PRIMARY KEY NOT NULL, name VARCHAR(255) NOT NULL, email VARCHAR(255) NOT NULL, password VARCHAR(255) NOT NULL ); CREATE ...
true
53659f4151853bdaff7efcbe24e8bc4ecb651378
SQL
Kumarchowdhary/Ishop-management-system
/Inventory.sql
UTF-8
6,406
3.328125
3
[]
no_license
/* SQLyog Ultimate v11.11 (64 bit) MySQL - 5.6.24 : Database - ishopmangementsystem ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREI...
true
b27e4e96e588b41e87a01c1926cf95cbc1150d47
SQL
anakdesa088/codemi-loker
/database/sisfo_16_02_2019.sql
UTF-8
8,759
3.578125
4
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
-- MySQL Script generated by MySQL Workbench -- Sat Feb 16 10:16:58 2019 -- Model: New Model Version: 1.0 -- 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='TR...
true
faa842ebd157efb1f1eedfe3b1f87456c85bdcae
SQL
GSIL-Monitor/All-Java
/wechat-dev/src/main/resources/sql/database_20160918.sql
UTF-8
489
2.796875
3
[]
no_license
ALTER TABLE `role` MODIFY COLUMN `creator_id` int(11) NULL COMMENT '创建用户ID' AFTER `created_at`; ALTER TABLE `role_function` MODIFY COLUMN `creator_id` int(11) NULL COMMENT '创建用户ID' AFTER `created_at`; ALTER TABLE `wechat` MODIFY COLUMN `user_id` int(11) NULL COMMENT '用户ID' AFTER `remark`; ALTER TABLE `material` M...
true
cd3806d4bdce5a407cb169fac542778e11510abf
SQL
zhilinIPD19/PhpQuizApp
/FinalProject/database/final_project_teacher.sql
UTF-8
1,487
2.734375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Apr 05, 2020 at 04:23 PM -- Server version: 10.4.11-MariaDB -- PHP Version: 7.4.4 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIEN...
true
3826ef9712474496c8903891438c0894bdc0b85e
SQL
lespinoza1/yablog
/app/v0.1/sql/db_yablog_v0_1.structure.sql
UTF-8
24,411
3.234375
3
[]
no_license
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE */; /*!40101 SET SQL_MODE='' */; /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES */; /*!40103 SET SQL_NOTES='ON' */; DROP TABLE IF EXISTS `tb_admin`; CREATE TABLE `tb_admin` ( `admin_id` smallint(3) unsigned NOT NULL AUTO_INCREMENT COMMENT '自增id', `role_id` tinyint(3) unsigned NOT NU...
true
e6cff644e4703944d36b623cab77181a586f0f64
SQL
leogaona-luizalabs/escriba
/migrations/1.sql
UTF-8
250
3.078125
3
[ "Apache-2.0" ]
permissive
create table drafts ( url varchar(500) not null primary key, approvals int default '0' not null, created_at datetime default CURRENT_TIMESTAMP not null, published_at datetime null, constraint drafts_draft_url_uindex unique (url) ) engine=InnoDB;
true
fb5209cbfe1c55cc3e8986c175124d1d38663c91
SQL
T110E4/Translation_software
/MOOCdb_curation/initial_preprocessing.sql
UTF-8
729
3.78125
4
[]
no_license
-- Set safe update to 0 SET SQL_SAFE_UPDATES=0; -- Create user table DROP TABLE IF EXISTS `moocdb`.`users`; CREATE TABLE `moocdb`.`users` AS ( SELECT user_id FROM observed_events GROUP BY user_id); -- Create time-stamp index set @exist := (select count(*) from information_schema.statistics where table_name = 'submiss...
true
ac7e83262441ac43611408f90bc35cb63dc7254d
SQL
BielSousa/Exercicios-Awari-SQL
/Lista1-exercicio5.sql
UTF-8
188
2.828125
3
[]
no_license
/* Encontre os clientes do estado de SP e que não morem na cidade de São Paulo. */ SELECT * FROM olist_customers_dataset WHERE (customer_state = "SP" and customer_city != "sao paulo");
true
43cc326a4c9f084de8df26f52be41cad7c185172
SQL
silence-do-good/stress-test-Postgres-and-MySQL
/dump/high/day12/select0905.sql
UTF-8
178
2.640625
3
[]
no_license
SELECT timeStamp, temperature FROM ThermometerOBSERVATION o WHERE timestamp>'2017-11-11T09:05:00Z' AND timestamp<'2017-11-12T09:05:00Z' AND temperature>=19 AND temperature<=97
true
1c7a719f8c2fa2a3d3e1e0567ed9d4f12eea12a3
SQL
bellmit/kstar
/sql/订单模块/CRM_T_CONTRACT_RECEIPT_DETAIL-liming.sql
UTF-8
1,367
2.96875
3
[]
no_license
-- Create table create table CRM_T_CONTRACT_RECEIPT_DETAIL ( c_pid VARCHAR2(32) not null, c_contract_code VARCHAR2(300), c_receipts_plan VARCHAR2(300), c_receipts_stage VARCHAR2(300), c_contract_borrow VARCHAR2(300), n_veri_amount NUMBER(16,4), c_receipts_type VARCHAR2(32), c_biz_...
true
912753fc157a7a2830abe602e49c16e10cc36b2a
SQL
Proc3sses/Rennequinepolis
/AlimCB/Procedures/ALIM_NBR.sql
UTF-8
817
3.265625
3
[]
no_license
create or replace PROCEDURE ALIM_NBR (nbr IN NUMBER) AS EX_NBR EXCEPTION; BEGIN DBMS_OUTPUT.PUT_LINE('ALIM_NBR, n=' || nbr); IF (nbr <= 0) THEN RAISE EX_NBR; END IF; FOR movie IN (SELECT ID FROM (SELECT ID FROM movies_ext ORDER BY DBMS_RANDOM.VALUE) WHERE ROWNUM <= nbr) LOOP ...
true
b15a7ef68a05db752c0f5599fce331a027a7991b
SQL
webempoweredchurch/starter_package
/typo3conf/ext/mm_forum/ext_tables.sql
UTF-8
19,844
3.0625
3
[]
no_license
# # Table structure for table 'fe_users' # CREATE TABLE fe_users ( tx_mmforum_avatar blob NOT NULL, tx_mmforum_icq tinytext NOT NULL, tx_mmforum_aim tinytext NOT NULL, tx_mmforum_yim tinytext NOT NULL, tx_mmforum_msn tinytext NOT NULL, tx_mmforum_skype tinytext NOT NULL, tx_mmforum_md5 tinyt...
true
3e0bbad45141d02f33aa1e44b00d2cf5c54e5587
SQL
mebelousov/antlr_psql
/src/test/resources/sql/select/54b02dc6.sql
UTF-8
199
2.828125
3
[ "MIT" ]
permissive
-- file:oidjoins.sql ln:12 expect:true SELECT ctid, aggfinalfn FROM pg_catalog.pg_aggregate fk WHERE aggfinalfn != 0 AND NOT EXISTS(SELECT 1 FROM pg_catalog.pg_proc pk WHERE pk.oid = fk.aggfinalfn)
true
53b6dff8984a42a3f0c176e828a76ce352d8cef7
SQL
vcrfxia/ksql
/ksqldb-functional-tests/src/test/resources/sql-tests/query-upgrades/projections.sql
UTF-8
10,842
3.609375
4
[ "LicenseRef-scancode-proprietary-license", "Apache-2.0" ]
permissive
-- this file tests adding/removing/changing projection columns ---------------------------------------------------------------------------------------------------- --@test: add columns to DDL stream -- this test uses a DML to test because of https://github.com/confluentinc/ksql/issues/6058 ----------------------------...
true
8330c27eb9a7bb3d04dfe53f643eca56b0133d0e
SQL
rupshamukherjee/rupsha-tele-2
/inner join 23 feb.sql
UTF-8
84
2.625
3
[]
no_license
SELECT * FROM country INNER JOIN tblstate1 ON country.countryid=tblstate1.countryid;
true
dd61183fe48ae6f9853b3e12b5387fce4c00c0af
SQL
LOLIV128/AVALIACAO_WTF
/tecnologia_chama.sql
UTF-8
3,295
3.484375
3
[]
no_license
-- Banco de dados: `tecnologia` -- Estrutura para tabela `chamados1` -- CREATE TABLE `chamados1` ( `contador` int(255) NOT NULL, `Local` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `DataHora` varchar(150) COLLATE utf8_unicode_ci NOT NULL, `Técnico` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `Status`...
true
475fcd5d7e8d4ca0b0c16bd99819f004355c24ed
SQL
jonroig/pixelpirate
/db/mdhp.sql
UTF-8
900
3.4375
3
[ "MIT" ]
permissive
CREATE TABLE pixelmap ( id integer PRIMARY KEY, title text NOT NULL, x1 int NOT NULL, x2 int NOT NULL, y1 int NOT NULL, y2 int NOT NULL, href text NOT NULL, domain text NOT NULL, size int NOT NULL ); CREATE INDEX x1_idx ON pixelmap (x1); CREATE INDEX x2_idx ON pixelmap (x2); CREATE INDEX y1_idx ON p...
true
e22294bd636a1368f1efdc3a0e294a5143918a16
SQL
J-Mwaura/Angular-Spring-boot-MySQL
/angular-spring-boot-master/src/app/sql files/create table.sql
UTF-8
972
2.6875
3
[]
no_license
CREATE TABLE IF NOT EXISTS `persondb`.`person` ( `ID` INT(11) NOT NULL AUTO_INCREMENT, `FIRSTNAME` VARCHAR(50) NOT NULL, `LASTNAME` VARCHAR(100) NULL DEFAULT NULL, `EMAIL` VARCHAR(45) NOT NULL, `ADDRESS` VARCHAR(45) NULL DEFAULT NULL, `CITY` VARCHAR(45) NULL DEFAULT NULL, `PASSWORD` VARCHAR(100) NULL DEFA...
true
2858e5ffce9edf89fe5ff9d5610342a7201afb91
SQL
NTXpro/NTXbases_de_datos
/DatabaseNTXpro/ERP/Stored Procedures/Procs1/Usp_Sel_Vehiculo_Borraodor.sql
UTF-8
976
3.390625
3
[]
no_license
CREATE PROC [ERP].[Usp_Sel_Vehiculo_Borraodor] AS BEGIN SELECT VE.ID, ENT.Nombre Chofer, ENTR.Nombre Transporte, TD.Nombre TipoDocumento, VE.IdChofer, VE.IdEmpresaTransporte, VE.IdTipoDocumento, VE.Color, VE.Marca, VE.Placa, VE.Modelo, ...
true
254386daee14b7cff9cacb031594b5a596b4a129
SQL
rmbarnes/cs313-php
/db/movies.sql
UTF-8
1,212
4.28125
4
[]
no_license
CREATE TABLE actors ( id SERIAL PRIMARY KEY, name VARCHAR(100) NOT NULL, birthYear SMALLINT ); CREATE TABLE movies ( id SERIAL PRIMARY KEY, title VARCHAR(100) NOT NULL, runtime SMALLINT, year SMALLINT ); CREATE TABLE actor_movie ( id SERIAL PRIMARY KEY, actors_id INT NOT NULL REFER...
true
fb4e3a3df6b8c93a699e629a45cb278ae08dd6f4
SQL
CUBRID/cubrid-testcases
/sql/_01_object/_01_type/_009_time/cases/1001.sql
UTF-8
367
2.921875
3
[ "BSD-3-Clause" ]
permissive
--create table with time data type and tests a create syntax with time data type and another constraint like unique,not null, shared CREATE CLASS ddl_0001( col1 time, col2 time NOT NULL, col3 time UNIQUE, col4 time UNIQUE NOT NULL, col5 time SHARED NULL, col6 time...
true
a2ebdb3d850e716fc203e31206385a54e950b109
SQL
silence-do-good/stress-test-Postgres-and-MySQL
/dump/low/day11/select0937.sql
UTF-8
177
2.5625
3
[]
no_license
SELECT timeStamp, temperature FROM ThermometerOBSERVATION o WHERE timestamp>'2017-11-10T09:37:00Z' AND timestamp<'2017-11-11T09:37:00Z' AND temperature>=7 AND temperature<=62
true
948c4e99dc07a8d3fa035e501c0e58d46385e466
SQL
tpage000/node-express-pgp-many-to-many
/models/tags/search.sql
UTF-8
126
2.96875
3
[]
no_license
SELECT books.id, books.title, books.author, books.year FROM joinbookstags JOIN books ON books.id = book_id WHERE tag_id = $1;
true
19d23d5cf3ee792ee86e8be4dccab7070b53d270
SQL
nwd3/cs342
/05sql/lab05_1.sql
UTF-8
267
2.921875
3
[]
no_license
--Lab5 --Nathanael Dick --Exercise 5.1 --a. select * from person,household; --optional challenge select count(*) from person,household; --b select firstname, lastname from person where birthdate is not Null Order by TO_CHAR(birthdate,'DDD') asc;
true
47eafb77fb2e7d1d59008c8dc4c320e351391249
SQL
wIksS/Telerik
/Databases/4.AdvancedSQL/13.LastNameFiveCharacters.sql
UTF-8
117
2.578125
3
[]
no_license
use TelerikAcademy; SELECT e.FirstName + ' ' + e.LastName as [Full Name] FROM Employees e WHERE LEN(e.LastName) = 5
true
85623e92ca44014416af538d31287997b818bcef
SQL
fernandor777/spatial-database-functions
/SQLServer/trunk/test/Example_Hex_Grid.sql
UTF-8
1,790
3.640625
4
[]
no_license
create table hex_grid (gid int identity not null primary key, geom geometry not null); INSERT INTO hex_grid (geom) SELECT dbo.ShiftGeometry(one_hex.geom, x_series.IntValue, y_series.IntValue) FROM dbo.generate_series( (select min(geom.STX) from dbo.my_points) - 12800, (select max(geom.STX) ...
true
faca0f30fed2e42f9b1a263b9e585608dd5d487c
SQL
lhocke/burger-sequelize
/db/schema.sql
UTF-8
296
2.671875
3
[ "MIT" ]
permissive
DROP DATABASE IF EXISTS sql_burger; CREATE DATABASE sql_burger; USE sql_burger; -- CREATE TABLE burgers( -- id INT AUTO_INCREMENT NOT NULL, -- burger_name VARCHAR(1000) NOT NULL, -- devoured BOOLEAN DEFAULT FALSE, -- date TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, -- PRIMARY KEY(id) -- );
true
818bf23c863a93d56401b1353ee5d6ca5a281c0a
SQL
scitedotai/research-wikipedia
/Code/get_tallies.sql
UTF-8
183
2.71875
3
[]
no_license
SELECT wiki_data.page_id, citation_tallies.doi, supporting, contradicting, mentioning, unclassified FROM citation_tallies INNER JOIN wiki_data ON citation_tallies.doi = wiki_data.doi;
true
7fd9ede33878197e89181c21b6b2558858033426
SQL
SidAhrend/personal-project
/db/getAllDogs.sql
UTF-8
168
2.875
3
[]
no_license
select * from dogs; -- select d.id, d.breed, d.name, d.animal_age, l.city, l.state from dogs d -- join location l on d.location_id = l.location_id -- where d.id = $1;
true
ceb82131e0628ae4691c5481113d3d230082f701
SQL
marikullom/CISC4900_Portfolio-Projects-for-Business-Analysis
/Project 7/storage.sql
UTF-8
5,124
2.96875
3
[]
no_license
mysql> CREATE TABLE CH7_Storage (Units INT, Revenue INT, Fixed_Cost INT, Variable_Cost INT, Total_Costs INT, Total_Profit INT); Query OK, 0 rows affected (0.00 sec) mysql> INSERT INTO CH7_Storage(Units, Revenue, Fixed_Cost, Variable, Total_Costs, Total_Profit) VALUES (0, 0, 3600, 0, 3600, -3600); ERROR 1054 (42S22): U...
true
2fdd8269ebf04360f66e0b5d97d8f52c7ba739b0
SQL
tyler-simeone/Mastering-SQL
/book-2-queries/chapter-11.sql
UTF-8
992
4.46875
4
[]
no_license
-- Chapter 11 -- States With Most Customers -- 1. What are the top 5 US states with the most customers who have purchased a vehicle from a dealership participating in the Carnival platform? select c.state state, count(s.sale_id) sale_count from customers c join sales s on s.customer_id = c.customer_id group by sta...
true
7bd8bcae0c3d1bcb1b04703dea5d5698c23954fc
SQL
Geodan/geotop-excavator
/import_geotop/geotop.rasters.sql
UTF-8
1,889
3.09375
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 = geotop, pg_catalog; SET default_tablespace = ''; SET default_with_oids = fals...
true
45034bb48dbdc44fd639314ddfafd15012d15f7f
SQL
CBIIT/onedata-mdr
/od-db-sprints/sprint39/S39_NCI_DS.sql
UTF-8
32,249
2.59375
3
[]
no_license
create or replace PACKAGE nci_ds AS procedure spDSRun ( v_data_in in clob, v_data_out out clob, v_user_id in varchar2); procedure spVMMatch ( v_data_in in clob, v_data_out out clob, v_user_id in varchar2); procedure setPrefCDE ( v_data_in in clob, v_data_out out clob, v_user_id in varchar2); proc...
true
73ab1aa066b65608d413b51fe8cc5bf52d2427a2
SQL
KayanoAii/librarySystem
/librarySystem/librarydatabase.sql
UTF-8
14,236
3.390625
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : test Source Server Version : 50506 Source Host : localhost:3306 Source Database : librarydatabase Target Server Type : MYSQL Target Server Version : 50506 File Encoding : 65001 Date: 2017-07-27 22:06:37 */ SET FOREIGN_KEY_CHECKS=0; -...
true
c32d6f24c5af9ebff6d0366884470c0db8a1bba4
SQL
LalitTyagi/New-Onboards-Training-Solution
/SQL/ProblemSet05.sql
UTF-8
15,102
3.3125
3
[]
no_license
-- ProblemSet05, June,7,2018 -- Submission by l.tyagi@accenture.com create table musician (m_no INTEGER NOT NULL PRIMARY KEY,m_name VARCHAR(20),born DATE ,died DATE ,born_in INTEGER,living_in INTEGER); create table place (place_no INTEGER NOT NULL PRIMARY KEY,place_town VARCHAR(20),place_country VARCHAR(20) ); cr...
true
279405f22dcf14ff793b3a337126b563db4a519f
SQL
bellmit/lnvc
/lvmc/openfire_src/src/plugins/kraken/src/database/upgrade/3/gateway_oracle.sql
UTF-8
462
2.671875
3
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
-- Add avatars table CREATE TABLE gatewayAvatars ( jid VARCHAR2(255) NOT NULL, imageData BLOB NOT NULL, xmppHash VARCHAR2(255), legacyIdentifier VARCHAR2(255), createDate INTEGER NOT NULL, lastUpdate INTEGER ); CREATE INDEX gatew...
true
183ed48ae4e2dca2367d621819d78c13c7453568
SQL
Radekj512/sql
/szosty.sql
UTF-8
3,803
3.953125
4
[]
no_license
-- 06.01 Dodaj 250 pracowników do tabeli pracowników -- desktop/bazy/res/employees.sql -- 06.02 Dokonać operacji zmiany płci na kilku pracownikach select * from employees where emp_no < 1000; update employees set gender = "M" where emp_no = 1; update employees set gender = "F" where first_name = "Al" AND last_name = ...
true
a5d8aecbbcfd8af5fbf4b5f9bd29252d42ddddbe
SQL
proyectosinfocons/canvia
/src/main/resources/BD.sql
UTF-8
11,855
2.9375
3
[]
no_license
CREATE DATABASE IF NOT EXISTS `bd_canvia` /*!40100 DEFAULT CHARACTER SET latin1 */; USE `bd_canvia`; -- MySQL dump 10.13 Distrib 5.7.33, for Linux (x86_64) -- -- Host: localhost Database: bd_canvia -- ------------------------------------------------------ -- Server version 5.7.33-0ubuntu0.18.04.1 /*!40101 SET @OL...
true
6efbf186f3cfb002e12281b074791145d27e8482
SQL
Spoukster/DB_Course
/Topic_6/DZ_2_create_view.sql
UTF-8
419
3.71875
4
[]
no_license
/*Создайте представление, которое выводит название name товарной позиции из таблицы products и соответствующее название каталога name из таблицы catalogs.*/ CREATE OR REPLACE VIEW prod AS SELECT p.name, c.name AS catalog FROM products AS p JOIN catalogs AS c ON p.catalog_id = c.id; SELECT * FROM prod;
true
f1bd29ee9ac8e90bb89b7a0f1276d2be4ba87236
SQL
neostreet/poker_session_data
/winning_100_sessions_from_20111012.sql
UTF-8
218
2.546875
3
[]
no_license
use poker select distinct poker_session_date from poker_sessions where poker_session_date >= '2011-10-12' and poker_style = 0 and poker_flavor = 3 and delta > 0 and num_hands >= 100 order by poker_session_date; quit
true
ba212548821b6819c49ac576b2cac1cbda2264a9
SQL
Symplicity/subdivision-list
/data/fr/sqlite/subdivisions_AT.sqlite.sql
UTF-8
861
2.5625
3
[ "MIT" ]
permissive
CREATE TABLE subdivision_AT (id VARCHAR(6) NOT NULL, name VARCHAR(255), level VARCHAR(64) NOT NULL, PRIMARY KEY(id)); INSERT INTO "subdivision_AT" ("id", "name", "level") VALUES ('AT-1', 'Burgenland', 'state'); INSERT INTO "subdivision_AT" ("id", "name", "level") VALUES ('AT-2', 'Carinthie', 'state'); INSERT INTO "sub...
true
c8566fd86cd2d4c12ee35ad5df1f1310007b2157
SQL
douit/cqes_dev
/重庆二师_Dev/MPP/DMK_QX.sql
UTF-8
547
2.5625
3
[]
no_license
CREATE TABLE DMK_QX ( "QXDM" VARCHAR(6 ) NOT NULL COMMENT '区县代码', "QXMC" VARCHAR(64 ) NULL COMMENT '区县名称', "SFPKX" VARCHAR(2 ) NULL COMMENT '是否贫困县(1:是,0:否)' )COMMENT '区县代码表'; CREATE TABLE DMK_MZ ( "MZM" VARCHAR(6 ) NOT NULL COMMENT '民族代码', "MZ" VARCHAR(64 ) NULL COMMENT '民族名称' )COMMENT '民族代码表'; CREATE TABL...
true
9adc951d5720f98b64d94eb9918c0fb0661059f9
SQL
GiriSantosh/docker-sample
/init.sql
UTF-8
423
2.96875
3
[]
no_license
DROP TABLE public.beans; CREATE TABLE public.beans ( id serial NOT NULL, "name" varchar(50) NOT NULL, sku varchar(20) NOT NULL, qty int4 NULL DEFAULT 0, created_on timestamp NULL DEFAULT now(), CONSTRAINT beans_pkey PRIMARY KEY (id) ); INSERT INTO public.beans ("name",sku,qty,created_on) VALUES ('Dark Chocolat...
true
af4e34c2ac031959ad726381376abb39f12acf56
SQL
kuzminal/Spring-Security-Web-App
/src/main/resources/db/migration/V1__InitialSchemaAndData.sql
UTF-8
740
3
3
[]
no_license
CREATE TABLE "user" ( id int primary key NOT NULL , username VARCHAR(45) NOT NULL UNIQUE, password TEXT NOT NULL, algorithm VARCHAR(45) NOT NULL ); CREATE TABLE authority ( id int primary key NOT NULL , name VARCHAR(45) NOT NULL, "user" INT NOT NULL ); CREATE TA...
true
937e0c20d602e744bb4d4ce62831730ba69c1d05
SQL
lbreier-tgm/fussball
/sql/create.sql
UTF-8
2,724
3.578125
4
[]
no_license
# ========================================== # BREIER - PROTOKOLL UND BEFEHLE - FUSSBALL # ========================================== CREATE SEQUENCE pid START WITH 10000 INCREMENT BY 2; #Tabellen kreieren CREATE TABLE person ( persnr SERIAL PRIMARY KEY, vname VARCHAR(30), nname VARCHAR(30), geschlecht VARCHA...
true
40d1640394bf016c399b90acf3b503b3d14c0ba6
SQL
smbassett/music-store-db
/db_testdata.sql
UTF-8
4,026
2.921875
3
[]
no_license
USE AMS; SELECT database(); INSERT INTO Customer(cid, c_password, username, fullname, address, phone) VALUES (0, "password", "Crystal", "Crystal To", "8298 Yellow St", "778-319-9806"), (1, "toocoolforschool", "Chris", "Chris Laporte", "6423 Crazy Ave", "778-382-4893"), (2, "applez", "Vojin", "Vojin Vukman", "2987 S...
true
d85741bcac555710db5b2aacced90c6688cf676f
SQL
AnJian2020/mysql_study
/第8章 用通配符进行过滤/LIKE操作符--下划线(_)通配符.sql
UTF-8
163
2.5625
3
[]
no_license
SELECT prod_id, prod_name FROM products WHERE prod_name LIKE '_ ton anvil'; SELECT prod_id, prod_name FROM products WHERE prod_name LIKE '% ton anvil';
true
dfaa90d4e945d2b7b63fefd410c68a599219d91d
SQL
ggodet-bar/TeamAvatars
/fillTeamAvatarDB.sql
UTF-8
1,401
2.90625
3
[]
no_license
INSERT INTO teams (name) VALUES('EHCI'), ('SIGMA'); INSERT INTO offices (team_id, name) VALUES (1, 'B206'), (1, 'B203'), (1, 'B204'), (1, 'B207'), (1, 'B205'), (1, 'B209') ; INSERT INTO members (id, firstName, lastName, email, office_id, photo_url, position, mentor_id) VALUES (1, 'Re...
true
4c743d05008e9b0fec0079c240ce5c43092a3f51
SQL
EncoreJiang/presto
/presto-product-tests/src/main/resources/sql-tests/testcases/insert/insert_constant_no_from.sql
UTF-8
350
2.6875
3
[ "Apache-2.0" ]
permissive
-- database: presto; groups: insert; mutable_tables: datatype|created -- delimiter: |; ignoreOrder: true; --! insert into ${mutableTables.hive.datatype} select 1, 2.1, 'abc', cast('2014-01-01' as date), cast('2015-01-01 03:15:16 UTC' as timestamp), FALSE; select * from ${mutableTables.hive.datatype} --! 1|2.1|abc|2014...
true
c947fa7744c2ad0c1b7f6c8f8742a6afb3ec4379
SQL
krystofurr/HC-CIS
/2nd year/SEPT-DEC/CIS-2288 Internet Programming 2/Assignments/Assignment2/db/database.sql
UTF-8
4,422
3.09375
3
[]
no_license
-- d888b db db d88888b .d8888. d888888b d8888b. .d88b. .d88b. db dD -- 88' Y8b 88 88 88' 88' YP `~~88~~' 88 `8D .8P Y8. .8P Y8. 88 ,8P' -- 88 88 88 88ooooo `8bo. 88 88oooY' 88 88 88 88 88,8P -- 88 ooo 88 88 88~~~~~ `Y8b. 88 88~~~b. 88 88 88 88 88`8b ...
true
056662a3dbe3d7ec268e30ef5239efdcd1394d73
SQL
khu07c8/gcit-library
/GCIT/SQL_SCRIPTS/show_loans.sql
UTF-8
307
3.59375
4
[]
no_license
DELIMITER $$ CREATE PROCEDURE show_loans(IN card_num INT) BEGIN SELECT concat(tbl_book.title, ' is due ', tbl_book_loans.dueDate) FROM tbl_book_loans JOIN tbl_book ON tbl_book.bookId=tbl_book_loans.bookId WHERE tbl_book_loans.cardNo=card_num ORDER BY tbl_book.title DESC; END $$ DELIMITER ;
true
0ba5da429a9858329095aa4f1095f9945bb37efd
SQL
rspricigo/DevHealth
/Documentação/BDTESTE.sql
UTF-8
9,637
3.34375
3
[]
no_license
-- MySQL Script generated by MySQL Workbench -- Mon Oct 16 20:25:57 2017 -- Model: New Model Version: 1.0 -- 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='TR...
true
6940f2e15730d60786ebfb37220fc9bfe11c504d
SQL
pmirand6/soliris
/base_datos/soliris/FU_NEW_USR.sql
UTF-8
1,677
3.40625
3
[]
no_license
-- -------------------------------------------------------- -- Host: localhost -- Versión del servidor: 5.7.24 - MySQL Community Server (GPL) -- SO del servidor: Win64 -- HeidiSQL Versión: 10.2.0.5599 -- -------------------------------------------------------- /...
true
ea369c0aa92e707aa7aa5abfa74b3220f65ce384
SQL
SathyanandJ/jobcounselservices
/src/main/resources/db/scripts/JobCounsel_DBCreation_Scripts.sql
UTF-8
2,820
3.375
3
[]
no_license
DROP TABLE IF EXISTS Reservation; DROP TABLE IF EXISTS UserProfile; DROP TABLE IF EXISTS Job; DROP TABLE IF EXISTS Branch; DROP TABLE IF EXISTS Organization; DROP TABLE IF EXISTS ReservationTypes; DROP TABLE IF EXISTS Sector; DROP TABLE IF EXISTS Salary; DROP TABLE IF EXISTS States; create table Sector(id INT PRIMARY ...
true
19479adc62c48b51014aa80b50b485b21327cd5e
SQL
seungWon97/2020_WebProgramming_TeamProject
/Model(SQL File)/Seat.sql
UTF-8
2,990
3.28125
3
[]
no_license
-- -------------------------------------------------------- -- 호스트: conative.myds.me -- 서버 버전: 5.7.31 - MySQL Community Server (GPL) -- 서버 OS: Linux -- HeidiSQL 버전: 11.1.0.6116 -- ----------------------------------------------------...
true
68db787c470c4876ee975d21c25b7b968c87e398
SQL
RMLio/rmlmapper-java
/src/test/resources/test-cases/RMLTC0013a-MySQL/resource.sql
UTF-8
292
2.84375
3
[ "MIT", "LGPL-3.0-only", "EPL-1.0", "MPL-2.0", "BSD-3-Clause", "LGPL-2.0-or-later", "GPL-2.0-only", "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
USE test; DROP TABLE IF EXISTS test.Person; CREATE TABLE Person ( ID integer, Name varchar(50), DateOfBirth varchar(50), PRIMARY KEY (ID) ); INSERT INTO Person (ID, Name, DateOfBirth) VALUES (1,'Alice', NULL); INSERT INTO Person (ID, Name, DateOfBirth) VALUES (2,'Bob', 'September, 2010');
true
b81cd7a61045ec2a40b76ed7e92448533ee5fd51
SQL
corsidrive/user-management-system
/__database/create_query.sql
UTF-8
496
3.1875
3
[]
no_license
create database if not exists corso_formarete; /* show databases; */ use corso_formarete; create table if not exists User ( userId int(10) NOT NULL PRIMARY KEY AUTO_INCREMENT, firstName varchar(255) NOT NULL, lastName varchar(255) NOT NULL, email varchar(255) NOT NULL, birthday DATE ); show t...
true
558c0ec339011561c86ef19afc8665b668d31f65
SQL
SnailMann/demo-imooc-seckill
/sql/seckill-2.sql
UTF-8
4,396
3.171875
3
[]
no_license
# Host: localhost (Version 8.0.12) # Date: 2018-12-26 16:14:50 # Generator: MySQL-Front 6.0 (Build 2.20) # # Structure for table "seckill_business_goods" # DROP TABLE IF EXISTS `seckill_business_goods`; CREATE TABLE `seckill_business_goods` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '秒杀的商品表id', `goods_...
true
c0e3dba7013d159c844748d6b592dfd18b0fcfb8
SQL
azhm65ptk/SQL-Querying
/queries_playstore.sql
UTF-8
5,713
3.5
4
[]
no_license
-- Comments in SQL Start with dash-dash -- -- 1. Find the entire record for the app with an ID of `1880`. SELECT * FROM analytics WHERE id=1880; id | app_name | category | rating | reviews | size | min_installs | price | content_rating | genres | last_updated | current_vers...
true
ddbc01051f87d31723300585391bcd617205bb48
SQL
dtpaltz/SDSU_CS-514
/Oracle/cursor_08.sql
UTF-8
1,203
3.6875
4
[]
no_license
-- shows 'cursor variable', which delays binding of cursor to a SELECT, and -- allows binding to various SELECT's; also used in JDBC -- exhibits the fact that %ROWCOUNT tracks number of elements processed so far -- in the active set -- one reason to consider ref cursor is to pass a result set object to an -- applicati...
true
bcc8b9e03daa2f2aa0f37fb51f906559a0afce09
SQL
HannahBBell/Scattegories_backend
/schema.sql
UTF-8
1,211
3.1875
3
[]
no_license
CREATE TABLE categories( id SERIAL PRIMARY KEY, category TEXT ); CREATE TABLE players ( id SERIAL PRIMARY KEY, player TEXT UNIQUE); INSERT INTO categories (category) VALUES ('cities'), ('sports'), ('hobbies'), ('dairy products'), ('insects'), ('countries'), ('summer sports'), ('non-olympic sports'), ('things that hav...
true