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
d327ef969918314b5365c5e774e5097b8bba4211
SQL
1130348/.net-Chouri-os
/tukportodb.sql
UTF-8
3,651
3.1875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.2.5 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1:3306 -- Generation Time: Dec 11, 2016 at 04:03 PM -- Server version: 5.5.44 -- PHP Version: 7.0.11 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT...
true
ca103f7234d5337560adebbaafebff89cdb5c0ce
SQL
nikhatmallick/NikhatGit
/Lab_7.1_REST/target/classes/schema.sql
UTF-8
1,489
3.59375
4
[]
no_license
CREATE TABLE IF NOT EXISTS departments ( department_id INT NOT NULL, department_name CHAR(32) NOT NULL, PRIMARY KEY (department_id) ); CREATE TABLE IF NOT EXISTS courses ( course_id INT NOT NULL, department_id INT NOT NULL, course_code CHAR(32) NOT NULL, ...
true
1b62f35a3b9421ab17f03a38013e6fc2082c2bea
SQL
CUBRID/cubrid-testcases
/sql/_06_manipulation/_01_select/_003_subquery/cases/cubridsus-1158.sql
UTF-8
1,406
3.546875
4
[ "BSD-3-Clause" ]
permissive
---To test a sub query include where, the result wether is correct. create class test1 (id int); create class test2 (id int); create class test3 (id int); insert into test2 values (1); insert into test2 values (2); insert into test2 values (3); insert into test2 values (4); insert into test2 values (5); insert into t...
true
6765c190eec70171beeed505c7e21ac372f6c1bc
SQL
mohora11/spring-ex00
/src/main/webapp/WEB-INF/sql/SQL03.sql
UTF-8
604
3.421875
3
[]
no_license
SELECt * FROM tbl_board order by bno desc; -- 제목 검색 SELECT * FROM tbl_board WHERE title LIKE '%자바%' ORDER BY bno DESC LIMIT 0, 10; -- 제목 검색 SELECT * FROM tbl_board WHERE title LIKE '%자바%' OR content LIKE '%자바%' ORDER BY bno DESC LIMIT 0, 10; -- 제목 본문 작성자 검색 SELECT * FROM tbl_board WHERE title LIKE '%자바%' OR conten...
true
1e831a8687f88c01a335cc16697178891d45b4dc
SQL
thewulf7/BuyMeOrder
/sql/localhost.sql
UTF-8
8,360
3.484375
3
[]
no_license
-- Adminer 4.2.1 MySQL dump SET NAMES utf8; SET time_zone = '+00:00'; SET foreign_key_checks = 0; SET sql_mode = 'NO_AUTO_VALUE_ON_ZERO'; DROP DATABASE IF EXISTS `vkdev_bank`; CREATE DATABASE `vkdev_bank` /*!40100 DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci */; USE `vkdev_bank`; DROP TABLE IF EXISTS `vkdev_ba...
true
4cc02f55f4b675d8c27e8dd56cca447da693189f
SQL
YouPython/taobaocrm
/taobaocrm.sql
UTF-8
219,774
3.078125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 3.3.7 -- http://www.phpmyadmin.net -- -- 主机: localhost -- 生成日期: 2013 年 05 月 12 日 22:58 -- 服务器版本: 5.1.54 -- PHP 版本: 5.2.17 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_R...
true
15d607acbd278cba67ef07340f189ef2a3c071ea
SQL
Altinity/ClickHouse
/tests/queries/0_stateless/02701_non_parametric_function.sql
UTF-8
264
2.9375
3
[ "Apache-2.0" ]
permissive
-- Tags: no-parallel SELECT * FROM system.numbers WHERE number > toUInt64(10)(number) LIMIT 10; -- { serverError 309 } CREATE FUNCTION IF NOT EXISTS sum_udf as (x, y) -> (x + y); SELECT sum_udf(1)(1, 2); -- { serverError 309 } DROP FUNCTION IF EXISTS sum_udf;
true
1e01cb3bdb2ba40af5770d214c311c6bdb20ee3f
SQL
iced-americano/hyundai-marketing-kpis
/models/srt_floodlights.sql
UTF-8
140
2.546875
3
[]
no_license
SELECT placement , ds , SUM(place_iq * 0.20201) as place_iq /* Traffic factor multiplier is added */ FROM general_data GROUP BY 1, 2
true
cbb206a952e3af1a54f2c9ba47c07a0751966f06
SQL
VerySneaky77/project-2
/models/seed.sql
UTF-8
517
3.234375
3
[]
no_license
USE contacts_db; CREATE table contacts ( contactId INT(20) NOT NULL AUTO_INCREMENT, nameFirst VARCHAR(20) NOT NULL, nameLast VARCHAR(20) NOT NULL, nameMiddle VARCHAR(20), numPhone INT(10) NOT NULL, streetAddress VARCHAR(20), cityAddress VARCHAR(20), stateAddress VARCHAR(3), emailAddr...
true
5c1a5aea91014ac0596c572b32c751acb3fddcf6
SQL
FlyingRain/Hellscream
/SQL/translate/error_words.sql
UTF-8
945
2.84375
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : localhost_3306 Source Server Version : 50718 Source Host : localhost:3306 Source Database : translate Target Server Type : MYSQL Target Server Version : 50718 File Encoding : 65001 Date: 2017-04-13 18:11:37 */ SET FOREI...
true
d3dd7936798a6c8fbcefec9b5fe0ab16c762e033
SQL
wcotton229/Inclass-pracitce
/Week12/musicplaylist_db.sql
UTF-8
588
3.40625
3
[]
no_license
CREATE DATABASE IF NOT EXISTS musicplaylist_db; USE musicplaylist_db; CREATE TABLE IF NOT EXISTS playlist( id INTEGER (10) AUTO_INCREMENT NOT NULL, title VARCHAR (100) NOT NULL, artist VARCHAR (30) NOT NULL, genre VARCHAR (30) NOT NULL, PRIMARY KEY (id) ); INSERT INTO playlist (title, artist, genre) VALUES ('Castle ...
true
4ef27ae8241ec01a209a5e90ffea6c7f93b3d53e
SQL
thyagomota/21SCS3810
/activity_06_astronauts/astronauts.sql
UTF-8
1,429
3.484375
3
[]
no_license
-- astronauts database -- created at: <date> -- author: <your name> CREATE DATABASE astronauts; USE astronauts DROP TABLE IF EXISTS Astronauts; -- TODO: create table Astronauts -- TODO: populate table Astronauts -- TODO: a) the total number of astronauts. -- TODO: b) the total number of American astronauts. -- ...
true
3679e65fd0f808c1e41591b34b1092a97b7e205d
SQL
chocopio/zl
/configuration/reports/reportdescriptors/dataexports/sql/vitals.sql
UTF-8
4,899
3.703125
4
[]
no_license
CALL initialize_global_metadata(); -- TODO: this should be replaced with VisitsDataSetManager in PIH Core? SELECT p.patient_id, zl.identifier zlemr, zl_loc.name loc_registered, un.value unknown_patient, pr.gender, ROUND(DATEDIFF(e.encounter_datetime, pr.birthdate)/365.25, 1) age_at_enc, pa.state_province department, ...
true
cb1a3b0b8252ab81e00454728fb66e4818249562
SQL
paw1a/Culinarum
/src/main/resources/db/d8ockcnj24ea5e_public_user_recipe.sql
UTF-8
373
2.515625
3
[]
no_license
create table user_recipe ( user_id bigint not null constraint fk5tvd26p8exkl4gjaimejmy67c references users, recipe_id bigint not null constraint fkd7pcgvgubv5j33m36lnsscriq references recipe, constraint user_recipe_pkey primary key (recipe_id, user_id) ); a...
true
526ef84b2cdc0d78dbee6baec03f3aba24d717cf
SQL
imansawi/BootcampX
/4_queries/assistance-requests-data.sql
UTF-8
315
3.578125
4
[]
no_license
SELECT teachers.name AS teacher, students.name AS student, assignments.name AS assignment, (completed_at - started_at) AS duration FROM assistance_requests JOIN assignments ON assignment_id = assignments.id JOIN students on student_id = students.id JOIN teachers on teacher_id = teachers.id ORDER BY duration;
true
f8ef990b5e90e871954680ec2a7110d0cde95e04
SQL
samurailibs/samurai-dao
/src/test/resources/demo-sql/oracle.sql
UTF-8
2,371
3.28125
3
[ "Apache-2.0" ]
permissive
DROP TABLE EMP; DROP TABLE DEPT; CREATE TABLE EMP (EMPNO NUMERIC(4) NOT NULL PRIMARY KEY, ENAME VARCHAR(10), JOB VARCHAR(9), MGR NUMERIC(4), HIREDATE DATE, SAL NUMERIC(7, 2), COMM NUMERIC(7, 2), DEPTNO NUMERIC(2)); INSERT INTO EMP VALUES (7369, 'SMITH', ...
true
49670277157ee7e024f65304bb17f0a9f6749388
SQL
isw9/341_Project
/retail_management.sql
UTF-8
8,450
3.234375
3
[]
no_license
-- MySQL dump 10.13 Distrib 5.7.24, for Linux (x86_64) -- -- Host: localhost Database: retail_management -- ------------------------------------------------------ -- Server version 5.7.24-0ubuntu0.18.04.1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CH...
true
a14915c932f26574de8eeef70b3db097bb9ac0fb
SQL
aalexandrakis/Kimo
/kimo.sql
UTF-8
8,681
3.03125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.0.10.6 -- http://www.phpmyadmin.net -- -- Host: 127.3.55.130:3306 -- Generation Time: Nov 30, 2014 at 12:15 AM -- Server version: 5.5.40 -- PHP Version: 5.3.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_C...
true
470ed1fc97b079d52656c0507cb6e8c371eaa6cf
SQL
j7ng/CLFY_SA
/SA/Tables/X_OTA_REFILL_TRAINING_LOG.sql
UTF-8
811
3.03125
3
[]
no_license
CREATE TABLE sa.x_ota_refill_training_log ( x_esn VARCHAR2(30 BYTE), x_date_time DATE, x_sourcesystem VARCHAR2(20 BYTE), option_type NUMBER ); ALTER TABLE sa.x_ota_refill_training_log ADD SUPPLEMENTAL LOG GROUP dmtsora493770156_0 (option_type, x_date_time, x_esn, x_sourcesystem) ALWAYS; COMMENT ON TABLE ...
true
bd3903529fc65d942afdb4dc404ccf985f999b01
SQL
museun/kappatan
/sql/db_schema.sql
UTF-8
358
3.1875
3
[]
no_license
CREATE TABLE IF NOT EXISTS 'templates' ( id INTEGER PRIMARY KEY, channel TEXT NOT NULL, command TEXT NOT NULL, template TEXT NOT NULL, UNIQUE(channel, command) ); CREATE TABLE IF NOT EXISTS 'points' ( id INTEGER PRIMARY KEY, channel TEXT NOT NULL, user_id INTEGER NOT NULL, points INTEGER NOT NULL DEF...
true
022728e90cf0d34280c0347a609bb72ddf633b75
SQL
braulioalmonte/SistemaLibreria
/ProyectoFinalAdmin(Libros)/queryofficial.sql
UTF-8
1,002
3.1875
3
[]
no_license
create database nombre; use nombre; delete nombre; create table usuario( idUsuario int primary key identity, nombreUsuario varchar(50), passwordUsuario varchar(50), emailusuario varchar(50) ); create table libros( idLibro int primary key, tituloLibro varchar(50), autorLibro varchar(50), precioLibro in...
true
d521399d5df57d518a49808e11d64d3cece75459
SQL
murari-goswami/bi
/ETL/DataVirtuality/views/ml/ml.cases_idea.sql
UTF-8
2,264
3.734375
4
[]
no_license
-- Name: ml.cases_idea -- Created: 2015-08-18 12:20:10 -- Updated: 2015-08-18 12:40:24 CREATE VIEW ml.cases_idea AS WITH level_0 AS ( SELECT co0.order_id, co0.order_id "origin_order_id", 0 "level" FROM "raw.dim_customer_order" co0 WHERE co0.parent_order_id IS NULL ), level_1 AS ( SELECT co1.order_id, pare...
true
127acec1e64e1a80fe96be0a73b3e2c953c9b71a
SQL
CUBRID/cubrid-testcases
/sql/_13_issues/_10_1h/cases/CUBRIDSUS-2634.sql
UTF-8
126
2.65625
3
[ "BSD-3-Clause" ]
permissive
create table foo(i int); insert into foo values(1),(2),(3),(4); select * from foo where (i!=1) XOR (i=3) order by i; drop foo;
true
16ed5f4973b7817a19a1bcf232d752352418b134
SQL
nmansoorabadi/ETL-Project
/ETL_Project/query.sql
UTF-8
264
2.9375
3
[]
no_license
SELECT * FROM unemployment_rate; SELECT * FROM county_pop; SELECT * FROM annual_rate; -- -- Join tables on county_id -- SELECT premise.id, premise.premise_name, county.county_name -- FROM premise -- INNER JOIN county -- ON premise.county_id = county.county_id;
true
76c70b1d5e779b29c00cb76235cb6451f3e9c4b9
SQL
jefmsmit/gdshowsdb
/empty_shows.sql
UTF-8
203
3.375
3
[ "MIT" ]
permissive
select shows.uuid, shows.year, shows.month, shows.day from shows left outer join show_sets on shows.uuid = show_sets.show_uuid where show_sets.uuid is null order by shows.year, shows.month, shows.day ;
true
104784d4c7ff805c52e3cbcb738c3aeafa87da07
SQL
leona9999/elib
/elib.sql
UTF-8
3,113
3.453125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Хост: 127.0.0.1 -- Время создания: Дек 03 2020 г., 16:23 -- Версия сервера: 10.4.13-MariaDB -- Версия PHP: 7.4.7 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@C...
true
faf144cbbd59468e671a7f496529f5f5012b77b3
SQL
Preoyecto3davidmartinez/proyecto3.davidmartinez
/proyecto2_res.sql
UTF-8
6,302
3.1875
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 17-11-2017 a las 15:29:38 -- Versión del servidor: 10.1.26-MariaDB -- Versión de PHP: 7.1.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; ...
true
f3b8808e7b0aaf029cb6bec3dbb7c350e330865a
SQL
aminaskr/parkmen
/db.sql
UTF-8
2,657
2.9375
3
[]
no_license
-- MySQL dump 10.13 Distrib 8.0.20, for Linux (x86_64) -- -- Host: localhost Database: parkman -- ------------------------------------------------------ -- Server version 8.0.20-0ubuntu0.19.10.1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SE...
true
8f4431f3978a3aba11f42f3a225b37ece0998e04
SQL
bebekiki/archeo
/archeo.sql
UTF-8
8,497
3.3125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.1.14 -- http://www.phpmyadmin.net -- -- Client : 127.0.0.1 -- Généré le : Mar 04 Mai 2021 à 20:07 -- Version du serveur : 5.6.17 -- Version de PHP : 5.5.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_...
true
795767c5014a5ef230b48f4dab790a68196acf50
SQL
iriss22/2020-02-otus-spring-petrova
/L29/src/main/resources/schema.sql
UTF-8
663
3.640625
4
[]
no_license
DROP TABLE IF EXISTS comment; DROP TABLE IF EXISTS book; DROP TABLE IF EXISTS author; DROP TABLE IF EXISTS genre; CREATE TABLE author ( id BIGSERIAL PRIMARY KEY, name VARCHAR(50) NOT NULL UNIQUE ); CREATE TABLE genre ( id BIGSERIAL PRIMARY KEY, name VARCHAR(50) NOT NULL UNIQUE ); CREATE TABLE book ( ...
true
cffb5e09384f351f32e2f0a281648a9115d3af35
SQL
Anastasia326/Data_Base
/Select.sql
UTF-8
2,551
4.4375
4
[]
no_license
--узнаем 10 лучших работников with staff_raiting as ( select rank() over (order by total_salary desc) as number_of_people, staff_name, total_salary from staff inner join hwa h on staff.staff_id = h.staff_id ) select staff_name, total_salary from staff_raiting where number_of_people <= 10; --узнае...
true
ae884b528ec00ba66e9609a952be0c0d0346c3cf
SQL
alldatacenter/alldata
/olap/ClickHouse/tests/queries/0_stateless/01073_show_tables_not_like.sql
UTF-8
722
2.90625
3
[ "Apache-2.0", "BSD-3-Clause", "MIT", "BSL-1.0" ]
permissive
-- Tags: no-parallel SHOW TABLES NOT LIKE '%'; DROP DATABASE IF EXISTS test_01073; CREATE DATABASE test_01073; USE test_01073; SHOW TABLES; SELECT '---'; CREATE TABLE test1 (x UInt8) ENGINE = Memory; CREATE TABLE test2 (x UInt8) ENGINE = Memory; SHOW TABLES; SELECT '--'; SHOW TABLES LIKE 'tes%'; SELECT '--'; SHOW T...
true
6c5ee18b4e7340d33bcf34ce04a4455f455bc71c
SQL
Doc1Ft/07-SQL
/sakila.sql
UTF-8
3,426
4.53125
5
[]
no_license
/* USE sakila; SELECT * FROM actor; SELECT *, CONCAT(first_name, ",", last_name) AS actor_name FROM actor; SELECT actor_id, first_name, last_name FROM actor WHERE first_name = "Joe"; SELECT * FROM actor WHERE last_name like "%GEN%"; SELECT * FROM actor WHERE last_name like "%LI%" ORDER BY last_name, first_name; ...
true
1c372fc529c98cdbb9d76ea6ad3e96b691c4e29f
SQL
boteam-upmc/BDD-Mondiale
/dump.sql
UTF-8
5,688
2.859375
3
[]
no_license
-- MySQL dump 10.13 Distrib 5.7.19, for macos10.12 (x86_64) -- -- Host: 127.0.0.1 Database: global_db -- ------------------------------------------------------ -- Server version 5.7.19 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS ...
true
39ca7665bdb103a676262b80da6021ef7b3dfa6f
SQL
ridorianto/financial
/aiafinancial.sql
UTF-8
9,756
2.9375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 3.1.1 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Aug 23, 2015 at 06:32 PM -- Server version: 5.1.30 -- PHP Version: 5.2.8 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_S...
true
50b2d0306e7a8bc2ca4d5fee4a56dcdd6a22fe8a
SQL
osaiko/atm
/atm-service/src/main/resources/schema.sql
UTF-8
301
2.921875
3
[]
no_license
CREATE SCHEMA `atm`; CREATE TABLE `atm`.`account` ( `id` INT NOT NULL AUTO_INCREMENT, `pin` INT NOT NULL, `balance` DECIMAL(11,4) NULL DEFAULT 0.0, `deposit` DECIMAL(11,4) NULL DEFAULT 0.0, PRIMARY KEY (`id`), UNIQUE INDEX `id_UNIQUE` (`id` ASC), UNIQUE INDEX `pin_UNIQUE` (`pin` ASC));
true
6c7c9b6981c2eb2fe2f041bc0ae417481c13ecac
SQL
Totoro97/database_final_project_scripts
/create_index.sql
UTF-8
493
2.953125
3
[]
no_license
/* CREATE INDEX index_name ON table_name (column_list) */ create index index_model_id on action_main (model_id); create index index_brand on product_main (brand); create index index_a2 on product_main (a2); create index index_a3 on product_main (a3); create index index_date_time on action_main (date_time); create...
true
e1aadef28c06b2b08efedd7443983274e51c418a
SQL
klepaski/RIS-6-sem
/RIS_3/RISLab3.sql
WINDOWS-1251
1,769
3.71875
4
[]
no_license
-- 2 + --system_connection create user CJA1 identified by 12345678; grant all privileges to CJA1; create user CJA2 identified by 12345678; grant all privileges to CJA2; -- connection --lab3_ris1 - CJA1(12345678) --lab3_ris2 - CJA2(12345678) -- 2 2 --lab3_ris1 drop table XXX; create table XXX( x int primary k...
true
6f883103c5cea288d5285e2f8d92bbd9994f9373
SQL
KatherinMaria04/charity-content-ms
/src/main/resources/db/migration/V2__Create_Requestorvideo.sql
UTF-8
353
3.015625
3
[]
no_license
create table requestor_video (id int primary key auto_increment, requested_id int not null, video_id int not null, active boolean not null default 1, created_date timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, modified_date timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE current_timestamp, foreign key (video_id...
true
9261d5b72008a452ceaaa675a1f51752c604d4b1
SQL
kasi-spondias/College_Management_System
/DataBase/college_management_system.sql
UTF-8
11,797
2.875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Feb 27, 2019 at 08:27 AM -- Server version: 10.1.37-MariaDB -- PHP Version: 7.3.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
68ae62ddcb14920a6bab68ae26e24caef9d6d3c1
SQL
salmonofdoubt/TECH
/SQL/Coursera SQL DS capstone.sql
UTF-8
13,454
3.6875
4
[]
no_license
--AB Part 1: Yelp Dataset Profiling and Understanding 1. Profile the data by finding the total number of records for each of the tables below: i. Attribute table = 10000 ii. Business table = 10000 iii. Category table = 10000 iv. Checkin table = 10000 v. elite_years table = 10000 vi. friend table = 10000 vii. hours ...
true
52a988737ca954429f4e03b9276273b42e442da0
SQL
mariana-cristina-santos/projetoModulo-03
/queries/consultas/colors/colors3.sql
UTF-8
211
3.59375
4
[]
no_license
#Quantas peças tem as cores Blue, Green e Dark Pink? select c.name, count(inv.color_id) as "total" from inventory_parts as inv inner join colors as c on inv.color_id = c.id group by id having c.id in (1,2,5);
true
b2c7b6401a28d249552d7c9fb293408d9915d978
SQL
gladiopeace/digital-data-syn
/documents/oms/TB_PUBBU.sql.bak
GB18030
18,454
3.109375
3
[]
no_license
/*CREATE BY SUNDAN ================================================================================ ṹ:TB_PUBBU ṹ:̻ʳ쵥 ṹĿ: ================================================================================ */ drop sequence SEQ_TB_PUBBU; drop index AK_TB_PUBBU; drop table TB_PUBBU; create table TB_PUBBU ( PUBBU_ID...
true
3c35db6decfc995d5e72a11a53a78cc5db5e35fb
SQL
douit/cqes_dev
/重庆二师_Dev/MPP/APP/edu_app_xs_jbxx.sql
UTF-8
1,906
2.703125
3
[]
no_license
DROP TABLE app.edu_app_xs_jbxx; CREATE TABLE app.edu_app_xs_jbxx( "XH" VARCHAR(20 ) NOT NULL COMMENT '学号', "XM" VARCHAR(50 ) NULL COMMENT '姓名', "XB" VARCHAR(2 ) NULL COMMENT '性别', "MZ" VARCHAR(20 ) NULL COMMENT '民族', "ZJXY" VARCHAR(20 ) NULL COMMENT '宗教信仰', "JG_GJ" VARCHAR(50 ) NULL COMMENT '籍贯_国籍', "JG_SF" VARCHA...
true
c4c5ca7107f4e90c58870b34e5720bed95f41ee9
SQL
maosa/codecademy
/sql/key_performance_indicators.sql
UTF-8
8,936
4.5
4
[]
no_license
/* As a data scientist, when youre not investigating spikes or dips in your data, you might be building dashboards of KPIs, or key performance indicators for a company. KPIs are often displayed on TVs on the walls of the office, and serve as high level health metrics for the business. While every companys metrics are...
true
617690059c73a2bbb1b5eec7b2c9dd4d2f5bf56d
SQL
tuanemtv/eibdp
/org.eib.application.ui/Script/Configure/QueryDate.sql
UTF-8
1,288
3.1875
3
[]
no_license
--h_trdt(Ngay query du lieu) --h_startdt (Ngay dau thang) --h_enddt (Ngay cuoi thang truoc) --h_bstartdt(Ngay gdich dau thang nay) --h_predt (Ngay giao dich truoc) --DECODE(LN1.CHK_BRHLDY(brcd, FOM), 'N', -- FOM, -- LN1.GET_BUSDAYCAL(brcd, FOM, 1, '1')) FOM select prebusday h_trdt, decode (LN1.CHK_B...
true
9b18d57302516cf86a72144afc0a9fa02304b9e5
SQL
hi-noikiy/project
/91ns/schemas/web/20151029/pre_red_packet_log红包领取记录表.sql
UTF-8
1,058
3.03125
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : localhost_3306 Source Server Version : 50621 Source Host : localhost:3306 Source Database : 91ns Target Server Type : MYSQL Target Server Version : 50621 File Encoding : 65001 Date: 2015-10-29 11:35:32 */ SET FOREIGN_KEY_CHECKS=0; --...
true
16f68e20774ec47c999f6be1ec33961ef1fbf734
SQL
silence-do-good/stress-test-Postgres-and-MySQL
/dump/high/day13/select1303.sql
UTF-8
178
2.609375
3
[]
no_license
SELECT timeStamp, temperature FROM ThermometerOBSERVATION o WHERE timestamp>'2017-11-12T13:03:00Z' AND timestamp<'2017-11-13T13:03:00Z' AND temperature>=38 AND temperature<=47
true
eabe6c7df19d65159bcb9643b846ca7d53398686
SQL
marianadacunha/cs50
/exercise 12 - sql/movies/6.sql
UTF-8
112
3.140625
3
[]
no_license
SELECT AVG(rating) -- average rating FROM ratings JOIN movies ON movies.id = ratings.movie_id WHERE year = 2012;
true
9337d48a57861b8bb64b28d08fdd541cf1817368
SQL
croscar/001
/database/zxj_cysf.sql
UTF-8
956
2.9375
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : mydb Source Server Version : 50718 Source Host : localhost:3306 Source Database : test Target Server Type : MYSQL Target Server Version : 50718 File Encoding : 65001 Date: 2018-02-09 11:35:28 */ SET FOREIGN_KEY_CHECKS=0; -- ---------...
true
feeb7f003908c27801456c43fe1f4113122f8715
SQL
gxlioper/ecology
/data/Oracle/sql2012124501.sql
GB18030
601
2.6875
3
[]
no_license
delete from HtmlLabelIndex where id=81278 / delete from HtmlLabelInfo where indexid=81278 / INSERT INTO HtmlLabelIndex values(81278,'ÿĿԤδԤ/Ԥ') / INSERT INTO HtmlLabelInfo VALUES(81278,'ÿĿԤδԤ/Ԥ',7) / INSERT INTO HtmlLabelInfo VALUES(81278,'The subjects under the budgeted amount untreated (available budget / approv...
true
7c000e6e21b17366fed98061e654feda201a2d29
SQL
BGCX067/failufc-svn-to-git
/trunk/Distributed_File_System/src/directory.sql
UTF-8
700
3.53125
4
[]
no_license
CREATE DATABASE directory; USE directory; CREATE TABLE users ( id MEDIUMINT NOT NULL AUTO_INCREMENT, name VARCHAR(30) NOT NULL, pass VARCHAR(30) NOT NULL, PRIMARY KEY (id) ) ENGINE=MyISAM; CREATE TABLE files ( id VARCHAR(200) NOT NULL, name VARCHAR(30) NOT NULL, owner INT NOT NULL, father VARCHA...
true
8bb10a4760c19d80ee19cce2ec405c7167956b46
SQL
radtek/Telecommunication
/GSM/DataBase/SCRIPTS_FROM_DB/LONTANA/TRIGGER/TIU_SIM_BALANCE_PHONE_UNDEF.SQL
UTF-8
399
2.890625
3
[]
no_license
CREATE OR REPLACE TRIGGER "LONTANA"."TIU_SIM_BALANCE_PHONE_UNDEF" BEFORE INSERT OR UPDATE ON SIM_BALANCE_PHONE_UNDEF FOR EACH ROW --#Version=1 BEGIN IF INSERTING THEN IF NVL(:NEW.PHONE_UNDEF_ID, 0) = 0 then :NEW.PHONE_UNDEF_ID := NEW_PHONE_UNDEF_ID; END IF; :NEW.DATE_BALANCE_CHECK := SYSDATE; ...
true
1acb8156390c73a56eeb94409d7f5a7036b64013
SQL
rbalsick/fight-churn
/listings/chap3/listing_3_1_event_count.sql
UTF-8
353
4.09375
4
[ "MIT" ]
permissive
with calc_date as ( select 'TOYR-MM-DD'::timestamp as the_date ) select account_id, count(*) as n_EVENT_NAME from event e inner join calc_date d on e.event_time <= d.the_date and e.event_time > d.the_date - interval '28 day' inner join event_type t on t.event_type_id=e.event_type_id where t.event_type_name='E...
true
9dd9578a1ac631032d8870bf5ca3200ec854af3c
SQL
sengeiou/effect_platform
/hive/hive_rpt/lz_rpt_ep_wireless_detail.sql
UTF-8
3,258
3.3125
3
[]
no_license
-- ########################################################################## -- # Owner:nanjia.lj -- # Email:nanjia.lj@taobao.com -- # Date:2012/10/25 -- # ------------------------------------------------------------------------ -- # Description:月光宝盒无线产出详情表 -- # Input:lz_fact_ep_wireless_ownership -- # Onput:lz_rpt_e...
true
893f66c562c314388c3824c26970f2b1e1458ae7
SQL
green-fox-academy/nadasimarci
/Orientation/week-07/day-5/reddit.sql
UTF-8
418
2.96875
3
[]
no_license
CREATE DATABASE reddit USE reddit; Database changed CREATE TABLE IF NOT EXISTS `posts` ( `id` INT(10) NOT NULL AUTO_INCREMENT, `title` VARCHAR(100) NOT NULL, `url` VARCHAR(100) NOT NULL, `timestamp` TIMESTAMP NOT NULL ON UPDATE CURRENT_TIMESTAMP, `score` INT(10), PRIMARY KEY (`id`) ); show tables from reddit; +------...
true
7d1d8e904d1f5f61fdc96469496a531c284e4c0c
SQL
BenRKarl/WDI_work
/w03/d01/Jonathan_Gean/psqlpractice.sql
UTF-8
491
3.46875
3
[]
no_license
CREATE DATABASE hw_db \c hw_db CREATE TABLE people (name varchar(200), age varchar(100)); ALTER TABLE people ADD COLUMN location varchar(50); ALTER TABLE people RENAME COLUMN age TO hair_color; INSERT INTO people (name, hair_color, location) VALUES ('Alan Smith', 'Grey', 'New York City'); UPDATE people set hair_color='...
true
55f725a905d097c8d496151894d22188c2aa75c4
SQL
LuGeorgiev/SoftUniDBBasicMSSQL
/ExamPrep221017ReportService/ReportService/Queries/P11.sql
UTF-8
328
3.875
4
[ "MIT" ]
permissive
SELECT OpenDate,Description, u.Email AS [Reporter Email] FROM Reports AS r JOIN Categories AS c ON c.Id=r.CategoryId JOIN Departments AS d ON d.Id=c.DepartmentId JOIN Users AS u ON u.Id=r.UserId WHERE CloseDate IS NULL AND LEN(Description)>20 AND Description LIKE '%str%' AND d.Id IN(1,4,5) ORDER BY OpenDate, u.Ema...
true
6fc29d47483d454f409c24a55811610dd0ae62bd
SQL
smaheshwari111/HackerRank
/SQL/Aggregations/Population Density Difference.sql
UTF-8
469
3.71875
4
[]
no_license
/* Query the difference between the maximum and minimum populations in CITY. Input Format The CITY table is described as follows: +-------------+--------------+ |FIELD | Type | +-------------+--------------+ | ID | NUMBER | | NAME | VARCHAR(17) | | COUNTRYCODE | VARCHAR(3) | |...
true
024de51a2e893c3588042bec19c318bd1903e1d4
SQL
foxingy/database
/MaNGOS3_Cata_Rev_2/mangos/player_xp_for_level.sql
UTF-8
3,739
2.78125
3
[]
no_license
-- -- Copyright (C) 2005-2012 MaNGOS <http://getmangos.com/> -- -- This program is free software; you can redistribute it and/or modify -- it under the terms of the GNU General Public License as published by -- the Free Software Foundation; either version 2 of the License, or -- (at your option) any later version...
true
3b4f7d96b6d1f33d03f8306bcc5db844b1353e60
SQL
TomsV2/DAW
/Base de Datos/Segundo Trimestre/Tarea 5.2/Tarea5.2.sql
UTF-8
678
3.40625
3
[]
no_license
USE instituto; /*Ejercicio 1*/ SELECT * FROM alumnos; /*Ejercicio 2*/ SELECT nombre, localidad, fecha_nac FROM alumnos; /*Ejercicio 3*/ SELECT nombre AS 'Nombre y apellidos' FROM alumnos; /*Ejercicio 4*/ SELECT nombre, (faltas*2) AS 'Faltas de asistencia' FROM alumnos; /*Ejercicio 5*/ SELECT * FROM alumnos WHERE ...
true
c494702731b354f109789262969fd9dd8f8b7736
SQL
anonymous-oracle/sql_boot
/table_creation2.sql
UTF-8
3,399
4.125
4
[]
no_license
-- create table link( -- id serial primary key, -- url varchar(255) not null, -- name varchar(255) not null, -- description varchar(255), -- rel varchar(50) -- ); -- -- INSERT CLAUSE -- insert into link(url, name) -- values ('www.google.com', 'Google'); -- insert into link (url, name) values -- ('www.yahoo.com', ...
true
f9ed0f31d9b831da695357be28dd03b3a9f5f71d
SQL
huseyinbolt/cord-tester
/src/test/setup/radius-config/freeradius/mods-config/sql/ippool-dhcp/sqlite/schema.sql
UTF-8
1,484
2.71875
3
[ "Apache-2.0" ]
permissive
# Copyright 2017-present Open Networking Foundation # # 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 # # Unless required by applicable law or ag...
true
6ba01102749b71f806714c40abbfffb6798b63a1
SQL
cartodeveloper/eCannab-server
/migrations/003.do.create_products_table.sql
UTF-8
372
2.953125
3
[]
no_license
CREATE TABLE products ( id INTEGER PRIMARY KEY GENERATED BY DEFAULT AS IDENTITY, title TEXT NOT NULL, brand TEXT NOT NULL, p_image TEXT NOT NULL, price DECIMAL(5,2), in_stock INTEGER, p_description TEXT NOT NULL, "site_id" INTEGER REFERENCES "sites"(id) ON DELETE CASCADE NOT NULL, ...
true
cc143c6404cd7d15a33ce7f2da4fec2f17a31632
SQL
mnallamalli97/CS143
/project1/804769644/sql/and.sql
UTF-8
323
3.578125
4
[]
no_license
--and case select sname, A.aname, url from project1.tfidf L inner join project1.song R on L.sid = R.sid inner join project1.artist A on R.aid = A.aid where token = 'girl' or token='on' or token='fire' group by L.sid, sname, A.aid, url having count( distinct token) = 3 order by sum(tfidf) desc;
true
f63a3faa948cb6f84eb28c71e83f6e2fbc61025e
SQL
tdortona/PetFinder
/DBScripts/5.2018-11-22-insert-usuarios.sql
UTF-8
1,415
3.1875
3
[]
no_license
DO $$ BEGIN BEGIN ALTER TABLE public."Usuario" ADD COLUMN "IdUsuarioRedSocial" character varying; EXCEPTION WHEN duplicate_column THEN RAISE NOTICE 'column IdUsuarioRedSocial already exist in table Usuario.'; END; END; $$; INSERT INTO public."Usuario" ("No...
true
885b002eb2cbdfaa053a0f0c068b95b9fb8ee348
SQL
jzeng88/vps-req-bin
/database/schema.sql
UTF-8
312
2.96875
3
[]
no_license
CREATE TABLE identifier ( id int GENERATED BY DEFAULT AS IDENTITY PRIMARY KEY, random_key text ); CREATE TABLE requests ( id int GENERATED BY DEFAULT AS IDENTITY PRIMARY KEY, headers jsonb, random_key_id int REFERENCES identifier (id), body jsonb, date_created timestamp NOT NULL DEFAULT NOW() );
true
73e3aba7bc1f927a80220bb901fffdcb7560c013
SQL
phamthong123/case_182_12
/congcu.sql
UTF-8
4,534
2.890625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Máy chủ: 127.0.0.1 -- Thời gian đã tạo: Th6 28, 2019 lúc 06:24 PM -- Phiên bản máy phục vụ: 10.1.38-MariaDB -- Phiên bản PHP: 7.3.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!...
true
02b731024a449a3cdf52febe2b96dbdbcb237a9a
SQL
wasuken/slack-image-bot
/create.sql
UTF-8
242
3.0625
3
[]
no_license
create table image_filepath(f_id integer,d_id integer, filename varchar(300),primary key(f_id,d_id), foreign key (d_id) references image_dirpath(d_id)); create table image_dirpath(d_id integer primary key,dirname varchar(200));
true
ff9c8c0cf661987221a9c9882051899faef50c26
SQL
silence-do-good/stress-test-Postgres-and-MySQL
/dump/high/day16/select0759.sql
UTF-8
178
2.625
3
[]
no_license
SELECT timeStamp, temperature FROM ThermometerOBSERVATION o WHERE timestamp>'2017-11-15T07:59:00Z' AND timestamp<'2017-11-16T07:59:00Z' AND temperature>=48 AND temperature<=51
true
20bf55a5c5d0f5763b7d5c5319cd9f4bef813791
SQL
bylee5/awesome-dba
/PostgreSQL/queries/tables_with_large_index_size.sql
UTF-8
866
4.15625
4
[ "Apache-2.0" ]
permissive
-- TABLES with_large_index_size SELECT c.oid, s.nspname, c.relname AS table, c.reltuples::int4 AS rows, c.relpages AS pages, pg_size_pretty(pg_relation_size(c.oid)) AS size, (SELECT pg_size_pretty(SUM(pg_relation_size(indexrelid))::INT8) FROM pg_index WHERE indre...
true
fb268c63d98f8bd3cd527fb05f9886ddeae6351d
SQL
RobertMieth/IBA
/archiv/sql_abfrage_installationsdatenv4.sql
UTF-8
1,426
3.390625
3
[]
no_license
SELECT mst.name as name, mst.id as messstelle, sts.id as steuerstelle, mst.komplex_id as komplex, k.kundennummer as kunde, mst.anschrift_plz as mst_plz, mst.anschrift_stadt as mst_stadt, mst.anschrift_strasse as mst_strasse, mst.anschrift_hausnummer as mst_hausnummer, eva.technologie as anla...
true
689f36b3ab21dfa4983711f81281a9c726151b48
SQL
andri000me/okbox
/database/db_okbox.sql
UTF-8
5,035
2.984375
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 22 Jul 2020 pada 12.24 -- Versi server: 10.4.11-MariaDB -- Versi PHP: 7.2.31 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@C...
true
6c4afec71b9909f00218106e58b9916bf2b5acf7
SQL
SevdanurGENC/MsSQL_Sample
/SQLFiles/20112020_OBSSubQuery.sql
UTF-8
1,742
4.03125
4
[ "MIT" ]
permissive
create database altSorgular01 use altSorgular01 create table Bolumler( BolumId int not null, BolumAd varchar(100), primary key(BolumId) ) create table Notlar( NotId int not null, DersId int not null, OgrenciId int not null, Vize int, Final int, primary key(NotId) ) create table Ogrenci( OgrenciI...
true
245705b0cc85d668f5c8d5ae6d5c1e5e419fe2e9
SQL
parsesoft/liquibase-helpers
/tools/gen_procedures.sql
UTF-8
307
3.046875
3
[]
no_license
/*** * Generation of batch for procedure generation script calls. */ set nocount on select 'call gen_object.bat procedures gen_procedure.sql ' + CAST(object_id as varchar) + ' ' + cast(schema_id as varchar) + ' ' + name from sys.objects where type in (N'P', N'PC') and name not like 'dt%' order by name
true
d5d1267ab9d0ceb70597c55fbb147d125e6b2cb4
SQL
adam-ziel/DBMS-Final
/Combined-DDL-DML/Faculty.sql
UTF-8
3,189
3
3
[]
no_license
CREATE TABLE `Faculty` ( `FacultyID` INTEGER PRIMARY KEY, `LName` TEXT, `DepartmentID` INTEGER, `Building` TEXT, `RoomNumber` INTEGER, `Rating` INTEGER, FOREIGN KEY(`DepartmentID`) REFERENCES `Department`(`DepartmentID`) ); INSERT INTO Faculty VALUES (8, "Joseph", "Martel-Foley", 4, "Ira Allen", 310, 3.9); INSE...
true
f14020bc8ec069d9b5800615fbb04b607cc5116d
SQL
Adravilag/BBDD
/PLSQL/Práctica 5/p5_ejer.sql
WINDOWS-1252
2,555
4.0625
4
[]
no_license
create KEYSPACE myecommerce with replication = {'class':'SimpleStrategy','replication_factor':1}; USE myecommerce; create table clientes( nombre text, apellidos text, email text, edad tinyint, zona text, primary key (zona, edad, email) ) with comment = 'Clientes' and CLUSTERING order by (edad asc, email desc); ...
true
966b6017a73120e99d3438d9d81aa8e4880b461f
SQL
AyrtonBayer25/Live_CREAM_Dune_analytics
/Daily_Accrued_Interest.sql
UTF-8
618
3.296875
3
[]
no_license
--Note: code is based off the lending abstraction, refer to duneanalytics github select date_trunc('day', interest.evt_block_time) as day, sum("interestAccumulated"/10^18) as usd_value from ( select evt_block_time, contract_address, "interestAccumulated" from creamfinance."CEther_evt_AccrueInterest"---creamfin...
true
89b705bbc3b9af046c2b635baaac949ae389765d
SQL
mdlefrancois/SQL_Homework
/Sakilia_SQL_Script.sql
UTF-8
8,539
4.625
5
[]
no_license
use sakila; -- Display the first and last names of all actors from the table actor. SELECT first_name, last_name FROM actor; -- Display the first and last name of each actor in a single column in upper case letters. Name the column Actor Name. SELECT first_name AS 'Actor Name' FROM actor UNION SELECT last_name FROM a...
true
a408e5bfbfeaa591fbb693bfe7a3e33da40d2a4b
SQL
CarKe1112/MessageHandler-scripts
/Separate_Files/27_MSGHANDLER_getLogs.sql
UTF-8
1,504
2.828125
3
[]
no_license
/*---------------------------------------------------------------------------- | Routine : get_Logs | Author(s) : (c) BTSi Cardoso Ken | CreateDate : 20.05.2016 | | Description : Outputs a list of log paths to select | | Parameters : | ------------ | | OUT : out_execCode : Error code uppon query | out_execTex...
true
12bc44c831c8622b9553b9ecb694d6a0b2e0ef82
SQL
cornsmith/SQLServer
/Maintenence/SVR_GetLinkedServers.sql
UTF-8
218
2.65625
3
[]
no_license
EXEC sp_helpserver; --OR EXEC sp_linkedservers; --OR SELECT @@SERVERNAME AS SERVER ,Server_Id AS LinkedServerID ,NAME AS LinkedServer ,Product ,Provider ,Data_Source ,Modify_Date FROM sys.servers ORDER BY NAME;
true
e76cae95d0d84569ee50858694e423fbf8f67cd9
SQL
Wimpert/online-tournament-board
/api/data.sql
UTF-8
21,839
3.25
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.4 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Gegenereerd op: 28 apr 2019 om 19:04 -- Serverversie: 5.5.60-MariaDB -- PHP-versie: 7.1.14 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CH...
true
8901e4fce4f1ddd2598527d84981e601353c49a8
SQL
murilopacheco/ProjetoJavaFx
/src/SQL/petshop_veterinarios.sql
UTF-8
2,149
2.921875
3
[]
no_license
-- MySQL dump 10.13 Distrib 5.7.12, for Win64 (x86_64) -- -- Host: localhost Database: petshop -- ------------------------------------------------------ -- Server version 5.5.51-log /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;...
true
6f15e19ed461650d499d13328d69872e7436304d
SQL
skashtanov/sql
/1/1.1.sql
UTF-8
608
2.875
3
[]
no_license
-- CREATE TABLE book( book_id INT PRIMARY KEY AUTO_INCREMENT, title VARCHAR(50), author VARCHAR(30), price DECIMAL(8, 2), amount INT ); -- INSERT INTO book (title, author, price, amount) VALUES ('Мастер и Маргарита', 'Булгаков М.А.', 670.99, 3); -- INSERT INTO book(title, author, price, am...
true
9ad67109d46be2c0dad0813657649e124fbc531d
SQL
NESCent/heliconius-db
/schema/migrate/migrate-from-v28.local.sql
UTF-8
10,113
3.875
4
[ "MIT", "Artistic-2.0" ]
permissive
-- -- SQL script to migrate the data from a v28 schema to the next revision. -- -- NO WARRANTIES OF WHATEVER KIND, NEITHER EXPRESS NOR IMPLIED. This script -- migrates your schema. It may irreparably damage your data. Back up your -- database as you would otherwise, and run the script in its own transaction -- so you c...
true
31621c4d4a4e6d46ac9a38e332f0e2ea0a5b1fc7
SQL
3dlink/purpledash_new
/database/purpledash.sql
UTF-8
18,008
3.328125
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 11-08-2016 a las 17:11:06 -- Versión del servidor: 10.1.10-MariaDB -- Versión de PHP: 5.6.15 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT...
true
ca732946e2aa3a4784e0134035069a700c4b884a
SQL
Anuha/bigdata
/hive.sql
UTF-8
368
2.875
3
[]
no_license
CREATE DATABASE power_rangers; USE power_rangers; CREATE external TABLE users( id BIGINT, age INT, occupation STRING ) comment "Table to store user info." row format delimited fields TERMINATED BY '|' stored AS textfile location '/userinfo/'; SELECT * FROM users; SELECT COUNT(*) FROM users; ...
true
c67f49feb788006572f5dccf9aa0ae16aceff14b
SQL
netmarti/Curso_2013
/premiosNobelEj03.sql
UTF-8
174
3.546875
4
[]
no_license
select n.cod, n.nombre from nominado n where n.cod in (select * from nominado n1, premiado p1 where n1.cod=p1.cod) group by n.cod having sum(n.cod)>1 ;
true
e2e7168a7e8a4bacd57a87b06f4e6c34a27d6998
SQL
renansalvino/-senai-backend-inlock-Renan-Salvino-Gabriel-Silva-Ferreira-
/Scripts/InLock_BD_DML_02.sql
ISO-8859-1
606
2.75
3
[]
no_license
USE Inlock_Games_Tarde INSERT TipoUsuario (Titulo) VALUES ('Cliente'),('Administrador') INSERT Usuario (Email,Senha,IdTipoUsuario) VALUES ('admin@admin.com','admin',2),('cliente@cliente.com','cliente',1) INSERT INTO Estudio (NomeEstudio) VALUES ('Blizzard'),('Rockstar Studios'),('Square Enix') INSERT INTO Jogo (Nom...
true
a2706e034b110ae22214ef41b7a45161d497d7ef
SQL
anahigo/Trybe_Exercise_Back-End_MySQL_MongoDB_NodeJs
/20_04/Class/Exercise_03.sql
UTF-8
740
3.203125
3
[]
no_license
SET SQL_SAFE_UPDATES = 0; -- Exercise 1 SELECT * FROM sakila.actor; UPDATE sakila.actor SET first_name = 'JULES' WHERE first_name = 'JULIA'; SELECT * FROM sakila.actor; -- Exercise 2 SELECT * FROM sakila.category; UPDATE sakila.category SET name = 'Science Fiction' WHERE name = 'Sci-Fi'; SELECT * FROM sakila.category...
true
c3c8604289147ea8dd98fd65e2734d2cf82c6676
SQL
Grupo1-M4U-GamaAcademy/Projeto-Estude-Old
/db_m4u_grupo1.sql
UTF-8
1,948
3.53125
4
[]
no_license
CREATE DATABASE `db_m4u_grupo1`; USE `db_m4u_grupo1`; CREATE TABLE `student` ( `id_student` int NOT NULL AUTO_INCREMENT, `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL, `age` int NOT NULL, `email` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL, `id_course...
true
d391a2eca4b3ec225ee7b8714bc0c09865a1da3d
SQL
pradosh2008/cloudproject
/ProjectWork/gcp-project/gcpconformstaging/transaction_dedup.sql
UTF-8
1,434
2.65625
3
[]
no_license
create or replace table edl_conform.transaction as SELECT transaction_key ,store_id ,transaction_num ,register_num ,transaction_dt ,store_key ,transaction_tm ,channel_cd ,transaction_type_cd ,transaction_entry_type_cd ,cashier_id ,store_manager_id ,layaway_num ,multi_brand_transaction_ind ,domestic_order_ind ,address_c...
true
08739b360f1393977a4f4aa0d69961f242b2033f
SQL
basfl/springboot-h2-graphql
/GraphQLDemo/src/main/resources/data.sql
UTF-8
370
3.109375
3
[]
no_license
DELETE FROM FILM; DELETE FROM ACTOR; INSERT INTO ACTOR (ACTOR_ID,FIRST_NAME,LAST_NAME,DOB,ADDRESS,FILM_ID) VALUES (1,'act1_name','act1_last','2012-09-17 18:47:52.69','USA',1), (2,'act2_name','act2_last','2012-09-17 18:47:52.69','USA',1); INSERT INTO FILM (FILM_ID,NAME,DATE_OF_LAUNCH) VALUES (1,'FILM1','2012-09-17 1...
true
06bedda8f20a7b6c3948cf06fd94debeed3a1bba
SQL
radtek/abs3
/sql/mmfo/bars/Table/pay_alt.sql
WINDOWS-1251
4,438
3.09375
3
[]
no_license
PROMPT ===================================================================================== PROMPT *** Run *** ========== Scripts /Sql/BARS/Table/PAY_ALT.sql =========*** Run *** ===== PROMPT ===================================================================================== PROMPT *** ALTER_POLICY_INFO...
true
c8a67fb3f4840ff5976f0caeaca01fe1308f2aff
SQL
gazanas/FilterMapDemo-Spring
/src/main/resources/data.sql
UTF-8
672
2.96875
3
[]
no_license
INSERT INTO authors (id, name) VALUES (1, 'Stephen King'), (2, 'H. P. Lovecraft'), (3, 'Isaac Asimov'), (4, 'Arthur C. Clarke'), (5, 'Agatha Christie'); INSERT INTO information (id, genre, image, author_id) VALUES (1, 'horror', 'the_outsider.jpg', 1), (2, 'horror', 'at_the_mountains_of_madness.jpg', 2), (3, 'science f...
true
6cad666801e9cf00d3176f8cb4b4f62a9f23999b
SQL
dcmi/foaf
/foafnaut.org/htdocs/foaf/scutter/create.sql
UTF-8
1,579
3.4375
3
[]
no_license
CREATE DATABASE rdf; USE rdf; CREATE TABLE rdf3 ( subj varchar(255) NOT NULL default '', pred varchar(255) NOT NULL default '', obj text NOT NULL, type tinyint(4) NOT NULL default '0', source int(11) NOT NULL default '0', PRIMARY KEY (subj(120),pred(120),obj(120),source), KEY source (source), KEY sub...
true
db6afacc29fd554ddd7823a5c07039c04c396890
SQL
enermaps/enermaps_experiment
/postgis/add_geoserver_db.sql
UTF-8
415
2.765625
3
[ "Apache-2.0" ]
permissive
/* create the database for the toolbox */ CREATE ROLE geoserver WITH UNENCRYPTED PASSWORD 'geoserver'; ALTER ROLE geoserver WITH LOGIN; CREATE DATABASE geoserver OWNER 'geoserver'; REVOKE ALL PRIVILEGES ON DATABASE geoserver FROM public; GRANT ALL PRIVILEGES ON DATABASE geoserver TO geoserver; ALTER DATABASE geoser...
true
30d4ea7d54753f09be8917f8e95f4ae644c35f5e
SQL
DimaKrit/Swivl-Symfony3-API
/swivlSymfony.sql
UTF-8
1,886
3.015625
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.7.7 -- https://www.phpmyadmin.net/ -- -- Хост: 127.0.0.1:3306 -- Время создания: Ноя 26 2018 г., 00:09 -- Версия сервера: 5.6.38 -- Версия PHP: 5.5.38 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACT...
true
24763992a8d12320e567e25e2a28fe5e397545eb
SQL
sneha2245/newspring
/newspring/build/web/sql/tablesName.sql
UTF-8
851
2.703125
3
[]
no_license
/**CREATE TABLE `channels` ( `id` int NOT NULL AUTO_INCREMENT, `name` varchar(50) NOT NULL, `baseurl` varchar(30) NOT NULL, `xml` varchar(30) NOT NULL, `logopath` varchar(30) NOT NULL, `delf` int, PRIMARY KEY (`id`) )**/ /**CREATE TABLE `fav` ( `id` int NOT NULL AUTO_INCREMENT,r `userid` int NOT NULL, `news...
true
6e8479b62463aebe400c47a82cd4d8f815410102
SQL
jmcasaubon/ProjGestSessForm
/sql/projGestSessForm.sql
UTF-8
11,262
3.390625
3
[]
no_license
-- -------------------------------------------------------- -- Hôte : localhost -- Version du serveur: 5.7.24 - MySQL Community Server (GPL) -- SE du serveur: Win64 -- HeidiSQL Version: 10.2.0.5599 -- ------------------------------------------------------...
true