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
b81c4e894781389a1b1f3adda007d745cc5270c0
SQL
vitikevich-landau/parus_test
/distances/pivot_table.sql
WINDOWS-1251
2,084
2.609375
3
[]
no_license
SELECT * FROM ( SELECT from_, to_, distance FROM my_distances ) PIVOT ( AVG ( distance ) FOR to_ IN ( '', '', '', '', '', '', '', '', '', '', ...
true
bf332667c6e98ff5e7f9921ba7a571d733a9ac1e
SQL
ragingo/SQLSamples
/EPL/epl_001.sql
UTF-8
644
3.953125
4
[]
no_license
create schema tbl1(a int, b int, c int); ​ -- 横持ちを縦持ちに変換 -- from 句にサブクエリ書くことができないから仕方ない -- select 一発縛りが無ければ、随時 insert して中間結果を作っておくのもあり select (case when t1.a is not null then "a" when t1.b is not null then "b" when t1.c is not null then "c" else "" end) as name, (case when t1.a ...
true
544a383deb6fe73eb2c8e65478af1c86fce86a1e
SQL
Genskill2/03-bootcamp-sql-aj-lav
/create.sql
UTF-8
397
3.171875
3
[]
no_license
-- creating publisher table create table publisher( id integer primary key, name text, country text ); -- books create table books( id integer primary key, title text, publisher references publisher(id) ); -- subjects create table subjects( id integer primary key, name text ); -- books_subjects create table boo...
true
d28a1d511ff0cf9dc8b73478fecfad8db25f5aac
SQL
Alevitorino/SQL-Exercicios
/transportes.sql
UTF-8
7,380
3.109375
3
[]
no_license
create database transporte; use transporte; create table veiculo( id int not null, placa varchar(45), modelo varchar(45), cor varchar(45), ano int, motorista_id int, primary key (id), foreign key (motorista_id) references motorista(motorista_id) ); create table motorista( motorista_id int not null, nome varchar(45), f...
true
11f08b0b95210c27b0981f2bb4c072db57a518a1
SQL
phplesson/phpacademy
/andrey_kaplunenko/2018_05_25/dz.sql
UTF-8
5,387
4.21875
4
[]
no_license
#выбрать какие есть блюда(название) SELECT d.dish FROM dishes d WHERE 1; # выбрать какие есть поставщики(название) SELECT idSupplier, supplier FROM suppliers WHERE 1; # выбрать продукты(название, калорийность), у которых отсутсвуют жиры SELECT p.product, (p.protein + p.carb) * 4.1 AS 'kcal' FROM products p WHERE p.fa...
true
05fd838aa068928ccd9d70eaeafbffbadb5202de
SQL
Gagan6696/javaprojectx
/GaganSharmaProject/general store 20160918 1256.sql
UTF-8
7,796
3.25
3
[]
no_license
-- MySQL Administrator dump 1.4 -- -- ------------------------------------------------------ -- Server version 5.0.89-community-nt /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CO...
true
209967bacb8c7053fbcecf13936299eeabf6564e
SQL
nehuen871/ingecoop1.1
/db/procedureCertificacion.sql
UTF-8
1,075
3.375
3
[]
no_license
USE ingecoop; DELIMITER $$ USE `ingecoop`$$ CREATE PROCEDURE `certificacionAddOrEdit` ( IN _id INT(10), IN _control_id INT(10), IN _control_cotizacion_id INT(10), IN _numeroDePedido VARCHAR(255), IN _proyecto VARCHAR(255), IN _especialidad VARCHAR(255), IN _fechaDeEmision DATE, IN _moneda VARCHAR(45),...
true
3a99ba4410b1258b153461e27d3823ac6116a7c8
SQL
octav9/Addressbook
/database.sql
UTF-8
2,155
3.234375
3
[]
no_license
-- -------------------------------------------------------- -- Host: localhost -- Server version: 5.7.24 - MySQL Community Server (GPL) -- Server OS: Win64 -- HeidiSQL Version: 10.2.0.5599 -- ------------------------------------------------------...
true
77ee3a1014cb58d3b40d3410a643e670f059222f
SQL
bkiers/sqlite-parser
/src/test/resources/trigger4.test_1.sql
UTF-8
920
3.28125
3
[ "MIT" ]
permissive
-- trigger4.test -- -- execsql { -- create table test1(id integer primary key,a); -- create table test2(id integer,b); -- create view test as -- select test1.id as id,a as a,b as b -- from test1 join test2 on test2.id = test1.id; -- create trigger I_test instead of insert on test -- ...
true
c4fa97c29dc3d2480bff3a873a5f72af0bbb6079
SQL
sunyalonglg/imitate-spring-framework
/sql/t_hehe.sql
UTF-8
1,206
2.78125
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : sunyalong Source Server Version : 50549 Source Host : 192.168.1.102:3306 Source Database : test Target Server Type : MYSQL Target Server Version : 50549 File Encoding : 65001 Date: 2018-08-23 23:50:00 */ SET FOREIGN_KEY_CHECKS=0; -- ...
true
1227317b95fb4f06fb98dd6b9e83b075226f046f
SQL
jcpsantiago/Aiakos
/sql/addFlow.sql
UTF-8
585
2.984375
3
[ "MIT" ]
permissive
-- 1 add study insert into study (study_title, contact_person) values ('soOxy', 'Joao Santiago'); -- 2 add study/task mapping (repeat for each task) insert into study_task values ((select id from study where study_title = 'soOxy'), (Select id from task where task_name = 'OGTT')); -- 3 a...
true
ce485031f457f2860ebc39196ead3a21419daa79
SQL
IlyaLyubashov/SquareLib
/SqlQuery_1.sql
UTF-8
671
3.765625
4
[]
no_license
--В базе данных MS SQL Server есть продукты и категории. Одному продукту может соответствовать много категорий, в одной категории может быть много продуктов. --Напишите SQL запрос для выбора всех пар «Имя продукта – Имя категории». Если у продукта нет категорий, то его имя все равно должно выводиться. select p.name, ...
true
142c8da3b057eb0877085bb8b371857ea3afca14
SQL
Nanonej/piscine_PHP
/j05/ex10/ex10.sql
UTF-8
133
2.671875
3
[]
no_license
USE `db_aridolfi`; SELECT titre AS 'Titre', resum AS 'Resume', annee_prod FROM film WHERE id_genre = 25 ORDER BY annee_prod DESC;
true
6a422fb2426a004abab06f1cafaac238f9a4cf3e
SQL
Alex-Amarandei/LaboratorPA
/Laborator10/Optional/SocialNetwork.sql
UTF-8
601
3.140625
3
[]
no_license
use `SocialNetwork`; DROP TABLE `users`; CREATE TABLE `users` ( username VARCHAR(50) NOT NULL PRIMARY KEY, first_name VARCHAR(100) NOT NULL, last_name VARCHAR(100) NOT NULL ); DROP TABLE `relations`; CREATE TABLE `relations` ( friend1 VARCHAR(50) NOT NULL, friend2 VARCHAR(50) NOT NULL, CHECK(friend1 <> fr...
true
256574c6b55a85faf15d1cc5a8d2cd52a5196d90
SQL
anumshka/SQL-tutorial-practice
/AssessmentTest#2.sql
UTF-8
1,147
3.796875
4
[]
no_license
/*CREATE TABLE students( student_id SERIAL PRIMARY KEY, first_name VARCHAR(10) NOT NULL, last_name VARCHAR(10) NOT NULL, homeroom_number INTEGER, phone VARCHAR(20) UNIQUE NOT NULL, email VARCHAR(20) UNIQUE, graduation_year INTEGER )*/ /*CREATE TABLE teachers( teacher_id SERIAL PRIMARY KEY, first_name VARCHAR(10...
true
79edb0b68ed12d496128d9b5d502cb59d44259f3
SQL
komarshall/Txt
/user-check.sql
UTF-8
730
3.078125
3
[]
no_license
SELECT * FROM tableau.lw_user_marketing_channel WHERE user_id IN () ORDER BY user_id,start_date ; SELECT * FROM analytics.lifecycle WHERE user_id IN () ORDER BY user_id,start_date ; SELECT * FROM analytics.user_detail WHERE id IN () ; SELECT * FROM analytics.billing_period_cycles WHERE user_id IN () ; SELECT * FROM...
true
9b77bce0fffd99e42c85028a025e85ba6f63b00a
SQL
AHariharan/OpenSourceWorkflow
/com.kanopus.workflow.facadeservices/src/main/resources/InsertStatements.sql
UTF-8
2,077
2.703125
3
[]
no_license
INSERT INTO `workflowfacade`.`role_master` (`ROLE_CDE`, `ROLE_DESC`) VALUES ("ADMIN","Administrator"); INSERT INTO `workflowfacade`.`role_master` (`ROLE_CDE`, `ROLE_DESC`) VALUES ("USER","User Rights"); INSERT INTO `workflowfacade`.`role_previlige` (`ROLE_CDE`, `CAN_START_CASE`, `CAN_SEND_MESSAGE`, `CAN_CLAIM_TASK`, ...
true
b9cbb77a652d209610128ab8427d91782201bc86
SQL
syzkii/login-statis
/sppstatis.sql
UTF-8
1,348
2.84375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 3.4.5 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Mar 16, 2021 at 12:35 PM -- Server version: 5.5.16 -- PHP Version: 5.3.8 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!...
true
861df180888c63898e05c30fe42ebf4114689123
SQL
akash-tatti/SQL
/MYSQL1.sql
UTF-8
666
3.0625
3
[]
no_license
CREATE TABLE EBILL (RRNO VARCHAR(3),NAME VARCHAR(5),UNITS INT(4)); INSERT INTO EBILL VALUES ('E21','AKASH','2020-02-02','9123'); INSERT INTO EBILL VALUES ('E22','SURYA','2020-01-01','6758'); INSERT INTO EBILL VALUES ('E23','DHYAN','2020-03-03','8767'); SELECT*FROM EBILL; DESCRIBE EBILL; ALTER TABLE EBILL ADD (BILLAMT I...
true
4f7c3bcf1fd2cfb77c73333c82cb1f326a71f11e
SQL
wsc-sky/web_application_for_gaokao_setence_correction
/question_changes trigger.sql
UTF-8
909
3.375
3
[]
no_license
DELIMITER $$ DROP TRIGGER IF EXISTS `question_updates`$$ CREATE TRIGGER `question_updates` AFTER UPDATE ON `itemrtdb_question` FOR EACH ROW BEGIN SET @changesummary = CONCAT('Question ', NEW.id); INSERT INTO changes (data) VALUES (@changesummary); END$$ DELIMITER ; DELIMITER $$ DROP TRIGGER IF ...
true
c54547042fb5591942674320b8eea6dcfc243097
SQL
DevFoncy/ProjectMetroWeb4.1
/dbmetro.sql
UTF-8
3,072
3.125
3
[]
no_license
 SHOW TABLES; CREATE TABLE `productos` ( `idproducto` int(11) NOT NULL AUTO_INCREMENT, `nombre` varchar(100) DEFAULT NULL, `descripcion` varchar(500) DEFAULT NULL, `precio` double DEFAULT '0', `imagen` varchar(200) DEFAULT 'images/OXO---Homepage_39.jpg', `cantidad` int(11) DEFAULT '0', `fechaCreacion` ...
true
352a81d46ba9b86518621589abfda95a9f64881a
SQL
hansol4412/polytechnics
/database/chapter3/procedureEX2.sql
UTF-8
689
3.328125
3
[]
no_license
drop procedure if exists insert_examtable; delimiter $$ create procedure insert_examtable(_last integer) BEGIN declare _name varchar(20); declare _id integer; declare _cnt integer; set _cnt=0; delete from examtable3 where id > 0 ; _loop: LOOP set _cnt = _cnt+1; set _name = concat("홍길", cast(_cnt as char(4))...
true
3866242c01a7fe5a00e7e011643650ff54ca7420
SQL
yedhink/ktu-cs-lab
/s5/sql/procedures/electricity_bill/electricity.sql
UTF-8
323
2.78125
3
[]
no_license
create table BILL( cnum Number(7) PRIMARY KEY, cur_read Number(5), prev_read Number(5) ); insert into BILL values(1,20,10); insert into BILL values(2,70,10); insert into BILL values(3,120,10); insert into BILL values(4,220,10); --! extra : to add update amount from procedure alter table BILL add amount Number(7...
true
0e760aa75f940a961a817b4f2b4bac6c2cd80ef9
SQL
ChristinaDob/houser
/db/init.sql
UTF-8
421
2.8125
3
[]
no_license
DROP TABLE IF EXISTS houses; create table houses( id SERIAL PRIMARY KEY ,name varchar(30) not null ,address varchar(100) not null ,city varchar(100) not null ,state varchar(2) not null ,zip integer not null ,img text ,mortgage decimal ,rent decimal ); insert into houses (name, address, city, state,...
true
c99b68fdd3a06f3d76fd8eb447a64c1379fc1ce5
SQL
danieluac/sistema-de-cadastro-livro
/__biblioteca.sql
UTF-8
10,471
3.09375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: 03-Mar-2020 às 18:31 -- Versão do servidor: 10.1.38-MariaDB -- versão do PHP: 7.3.4 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @O...
true
61f2f263068ba04cd1c58967120dd4081f364f2c
SQL
Joypham/Maintain-data-new-code
/Trackimage depend on albumimage.sql
UTF-8
1,547
3.828125
4
[]
no_license
-- UPDATE tracks -- Join( Select * from ( SELECT CONCAT('https://aimg.vibbidi-vid.com/',albums.square_image_url) as album_image_url, tracks.ImageURL as image_url, itunes_album_tracks_release.albumname, itunes_album_tracks_release.Artist, albums.TotalTracks, albums.ReleaseDate, itunes_album_track...
true
2d7f1e2a2e6172bea33300a9596b973f988e46aa
SQL
idtazkia/registrasi-mahasiswa
/src/main/resources/db/migration/V1.14.2.2018042401__Update_Skema_Agen.sql
UTF-8
1,480
3.421875
3
[]
no_license
INSERT INTO jenis_biaya VALUES ('010','Agen Pendaftar'); ALTER TABLE agen RENAME nama TO nama_cabang; alter table agen add column penanggung_jawab VARCHAR(255) not NULL; alter table agen add column kode VARCHAR(255) not NULL; --- Tbl Pendaftar_Agen CREATE TABLE pendaftar_agen ( id VARCHAR (36), i...
true
89ccc8407e09020d88c3dc5ead243bd6cfcd2aeb
SQL
kaziomarfaruk/dCloud
/sql-db/dcloud.sql
UTF-8
7,462
2.671875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Sep 08, 2019 at 05:37 AM -- Server version: 10.1.38-MariaDB -- PHP Version: 7.3.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
08d946e6804605f423c54359184784ac5f1e5c60
SQL
zhangfandi/studySpace
/海晟目录/脚本/临时备份脚本/小培土.sql
UTF-8
2,777
3.96875
4
[]
no_license
--小培土 SELECT ORG.ORG_NAME, BC.TOTLE_FRM_QTY, BC.COMP_FRM_QTY, CASE WHEN BC.COMP_FRM_QTY > 0 AND BC.TOTLE_FRM_QTY > 0 THEN CAST(ROUND(CAST(BC.COMP_FRM_QTY * 100 AS FLOAT) / BC.TOTLE_FRM_QTY, 2) AS DECIMAL(10, 2)) ELSE 0 END, BC.CNTRCT_PLNT_AREA, A.PTSX_AREA, CASE WHEN A.PTSX_AREA > 0 ...
true
e23c573dfc1ca558fb1390fe039ec080afd4b294
SQL
MihajloNesic/playermarket
/transfer-service/src/main/resources/db/migration/V1.0/V1_0__init_transfer.sql
UTF-8
581
2.5625
3
[]
no_license
CREATE TABLE transfer ( id BIGSERIAL NOT NULL, player_id BIGINT NOT NULL, team_id BIGINT NOT NULL, transfer_date DATE NOT NULL, transfer_fee NUMERIC(12,2) NOT NULL, commission_percentage NUMERIC(3,2) ...
true
35a1f777f4558db546bf352adfac6cce08351b27
SQL
ClodWingsLWY/sxt-logistics-manager
/logistics-manager-web/target/logistics-manager-web/WEB-INF/classes/logistics.sql
WINDOWS-1252
7,049
3.296875
3
[]
no_license
/*==============================================================*/ /* DBMS name: MySQL 5.0 */ /* Created on: 2018/12/12 10:07:10 */ /*==============================================================*/ drop table if exists t_basicData; drop table if exists...
true
f5b6c233e8e41a0246dc5af31e4b4a426a62b79e
SQL
ptrickk/WebLogin
/SQL/user.sql
UTF-8
338
3.078125
3
[]
no_license
create table user ( userID int auto_increment primary key, username varchar(255) null, firstname varchar(255) null, surname varchar(255) null, email varchar(255) not null, birthday date null, password varchar(255) not null, constraint user_email_uindex unique (email), constraint user_username_uindex uniq...
true
430b8208ccdb79bb134929e6c8fe1e14923b69a8
SQL
avinash431/lucid
/projects/flat file/hql/flat_file_insert_branch_details.sql
UTF-8
389
2.71875
3
[]
no_license
insert into table lucid.branch_details select Institution_Name, CAST(Main_Office as INT), Branch_Name, CAST(Branch_Number as INT), CAST(from_unixtime(unix_timestamp(Established_Date ,'MM/DD/YYYY'), 'YYYY-MM-DD') as DATE), CAST(from_unixtime(unix_timestamp(Acquired_Date ,'MM/DD/YYYY'), 'YYYY-MM-DD') as DATE), Street_A...
true
dbdebe11f7912ed95cc0d3a9fe4fc3f0b9f93acf
SQL
licyun/Mybatis
/05.MybatisPages/mybatis.sql
UTF-8
3,224
2.921875
3
[]
no_license
-- MySQL dump 10.13 Distrib 5.6.24, for Win32 (x86) -- -- Host: localhost Database: mybatis -- ------------------------------------------------------ -- Server version 5.6.24 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;...
true
572661a289a540899b6540cb79ebff68bb15033d
SQL
silence-do-good/stress-test-Postgres-and-MySQL
/dump/high/day24/select0507.sql
UTF-8
178
2.640625
3
[]
no_license
SELECT timeStamp, temperature FROM ThermometerOBSERVATION o WHERE timestamp>'2017-11-23T05:07:00Z' AND timestamp<'2017-11-24T05:07:00Z' AND temperature>=48 AND temperature<=93
true
5ee31c49920f8a1da192521e53a0b133eef51504
SQL
AMILI1999/wipro_pjp21
/RDBMS_SQL_JDBC/Restricting_and_storing_data/H19/assignment11.sql
UTF-8
115
2.9375
3
[]
no_license
select employee_id, last_name, salary, department_id from employees where manager_id = &id order by &column_name;
true
b6fbe899a9a4748b3e521836341ddec13f98da6c
SQL
netvolutionfr/NSI-Bloc-4
/SQL/creer la base perso et importer ce fichier.sql
UTF-8
5,531
3
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.7.0 -- https://www.phpmyadmin.net/ -- -- Hôte : 127.0.0.1 -- Généré le : jeu. 10 oct. 2019 à 10:27 -- Version du serveur : 5.7.17 -- Version de PHP : 5.6.30 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
true
fbc5442d60b3ff89fc9af80d53c65ac12534297d
SQL
gaurab123/DataQuest
/04_WorkingWithDataSources/03_SQL_Intermediate_TableRelationsAndJoins_psql_Advanced/01_JoiningDataInSQL/02_UnderstandingInnerJoins.sql
UTF-8
344
4.09375
4
[]
no_license
/* Write a query that: Joins cities to facts using an INNER JOIN. Uses aliases for table names. Includes, in order: All columns from cities. The name column from facts aliased to country_name. Includes only the first 5 rows. */ SELECT c.*, f.name country_name FROM facts f INNER JOIN cities c ON f.id = c....
true
92fe28576e21f5f7faadb3f22422ef9f14de0e7c
SQL
joaovitorbrandao7/Generation
/MySQL/Lista 1/Exercicio2.sql
UTF-8
1,373
3.5
4
[]
no_license
SET @@global.sql_mode= ''; create database loja; use loja; create table produtos( id bigint(5) auto_increment, nome varchar(20) not null, marca varchar(20) not null, tamanho varchar(2) not null, estoque int(5) not null, preco decimal(8,2) not null, primary key (id) ); INSERT INTO produtos (nome, marca, tamanho, estoq...
true
fe7d459b6670afa44c437b128471bdd70bb24ae1
SQL
handy-web/meibeike
/meibeike/create_table.sql
GB18030
1,547
3.078125
3
[]
no_license
create table `mbk_third_user` ( id int(11) not null auto_increment primary key, uid int(11) not null unique comment 'ûUID', openid varchar (64) not null comment '΢openid', unionid varchar (64) not null comment 'ûΨһʶUID', account_type varchar(2) not null default '' comment '˺7:wx,8:qq,9:weibo', user_source text ...
true
112bc652dc320fc8870a57ad2b9fcb37f79ca0fc
SQL
vovakms/Office-workplace
/СистемаОтчетов/СистемаОтчетов/bin/Debug/SQL/от_АиСВ/АСВ_Спр002.sql
UTF-8
404
2.65625
3
[]
no_license
var @g='2015'; var @k='3'; fix all; select REG_NUM, NAME from RCHKWRK group by REG_NUM ; results table "**_tab1" ; select char(F4INFO.REG_NUM,10), F4INFO.NAME , _tab1.NAME , F4INFO.T7R39C1, F4INFO.YEAR_NUM, F4INFO.QUART_NUM, F4INFO.CRE_DATE from F4INFO, _tab1 where F4INFO.T7R39C1 !=0 and _tab1....
true
6fd1525677ecf999d8b06dfc46a0b759b14434ae
SQL
owezzy/PostgreSQL_In_Application_Dev
/chinookApp/sql/album.sql
UTF-8
377
3.921875
4
[]
no_license
-- name: top-artists-by-artist -- List the album titles and duration of a given artist select albums.title as albums, sum(milliseconds) * interval '1ms' as duration from albums join artists using( artistid) left join tracks using( albumid) wher...
true
b94e77a86a558b18e72418f804499d097500f2bc
SQL
WillZWL/project
/database/change script/eazyelectronics/20110607.sql
UTF-8
448
3.734375
4
[]
no_license
CREATE OR REPLACE VIEW `v_default_converted_price` AS SELECT pbv.selling_platform_id AS platform_id, dp.sku, ROUND(dp.price * er.rate, 2) AS default_platform_converted_price FROM price AS dp LEFT JOIN (platform_biz_var AS pbv, exchange_rate AS er) ON (er.from_currency_id = 'BGN' AND er.to_currency_id = pbv....
true
06f928b24c328f068761474e9bf310366e0dd9fc
SQL
dhasane/admin-bd
/sql/conexionUsuario_4.sql
UTF-8
546
2.71875
3
[]
no_license
DROP TABLE PRIMERATABLAUSUARIO_4; DROP TABLE SEGUNDATABLAUSUARIO_4; DROP TABLE TERCERATABLAUSUARIO_4; create table primeraTablaUsuario_4 ( id number primary key, cedula number NOT NULL, nombre varchar2(100) ) tablespace tablasProyecto; create table segundaTablaUsuario_4 ( id number primary key, ...
true
0688c9133a29cb5cf707c745d61da868723010fb
SQL
TheodoraDimitrova/Database-Basics---MySQL
/6.SUBQUERIES AND JOINS/Subqueries and JOINs - Exercise/08.Employee 24.sql
UTF-8
403
3.9375
4
[]
no_license
SELECT employees.employee_id, employees.first_name, IF(p.start_date >= '2005/01/01', NULL, p.name) AS project_name FROM employees JOIN employees_projects ON employees.employee_id = employees_projects.employee_id JOIN projects p ON p.project_id = employees_projec...
true
17d1a577b0e2ec76e2cca6147edbdb5307d53d5c
SQL
AlexBoeira/MigradorUnicooTotvs
/progress/migracao/_scripts_migracao_gps_JK/monitorar_benef_unicoo_nao_migrado_JK.sql
UTF-8
2,672
3.375
3
[]
no_license
SET MARKUP HTML ON SPOOL ON PREFORMAT OFF ENTMAP ON - HEAD "<TITLE>BENEFICIARIOS UNICOO NAO MIGRADOS</TITLE> - <link rel='stylesheet' type='text/css' href='&2'> - " - TABLE "WIDTH='90%' BORDER='1'" SPOOL &1\BENEFICIARIO\BENEFICIARIOS_UNICOO_NAO_MIGRADOS.html --ATIVOS select count(*) QT_BENEF_ATIVOS_NAO_MIGRADOS from...
true
bf9f48b43d3dfd71780b378e6516e6831add8f3d
SQL
the-weds-meetup/pokequest
/database/database.sql
UTF-8
3,194
3.703125
4
[]
no_license
CREATE TABLE mission ( id SERIAL PRIMARY KEY, start_time numeric NOT NULL, end_time numeric NOT NULL, creation_time numeric NOT NULL ); CREATE TABLE mission_pokemon ( id SERIAL PRIMARY KEY, mission_id integer, pokemon_id integer, UNIQUE (mission_id, pokemon_id) ); CREATE TABLE trainer_...
true
8920f351c8b627f9bb5512925a3d53f903434c2f
SQL
KulovacNedim/city-locator
/db-schema/city-locator.sql
UTF-8
4,126
3.21875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Nov 19, 2019 at 02:42 PM -- Server version: 10.4.8-MariaDB -- PHP Version: 7.2.24 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
4773bc1d7aff01fde8eb7de514b85201673ac596
SQL
llyubenova/CourseCalendar
/config/event.sql
UTF-8
1,792
3.140625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Jan 24, 2016 at 08:31 PM -- Server version: 10.0.17-MariaDB -- PHP Version: 5.6.14 -- SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; -- SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_...
true
c0408bb027d0b68d9274b1469dfff8b18e8121c4
SQL
yuz835/weindex
/weindex.dao/src/main/resources/sql/blog.sql
UTF-8
492
3.171875
3
[]
no_license
CREATE TABLE blog ( id INT NOT NULL AUTO_INCREMENT, shop_id INT NOT NULL, author VARCHAR(512), title VARCHAR(256) NOT NULL, summary VARCHAR(512), label VARCHAR(512), shop_label VARCHAR(512), content MEDIUMTEXT, visible INT default 0, visit_num INT NOT NULL default 0, comment_num INT NOT NULL default 0, pos INT NOT NULL...
true
de792f26de2ad7d3063b053d532401b4d5a1aee0
SQL
yy0827-mengjiang/solr.create
/src/main/resources/T_SOLR_CREATE_CONFIG.sql
UTF-8
1,185
3.015625
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : 192.168.1.91-mysql Source Server Version : 50629 Source Host : 192.168.1.91:3306 Source Database : qbyp-plus Target Server Type : MYSQL Target Server Version : 50629 File Encoding : 65001 Date: 2018-12-05 17:05:28 */ SET FOREIGN_KEY_C...
true
62a60f4ad1ba05ebd0e84d36b9bb14be321b968c
SQL
ushamsuddin/TechspireProject
/TechspireSite/TechspireSite/SQL/Umair/ReportAddedRewardProducts.sql
UTF-8
760
3.984375
4
[]
no_license
--Umair Shamsuddin --Products added to rewards --Client can keep track of the number or type of products that are added for loyalty redemption. --Displays added products starting by name. --Row number, product name, product type, product status name, reward data added, reward status name SELECT ROW_NUMBER() OVER(ORDER...
true
9de5d7503d28c3b661f9bf22b017019c5a33e2c4
SQL
shilohooo/data-dict-build-tool
/src/main/resources/sql/oracle/query_table_metadata.sql
UTF-8
2,163
4.25
4
[ "MIT" ]
permissive
-- 查询指定用户下的所有表信息(包含表名称,表注释) select table_name as tableName, owner as owner, comments as tableComment from all_tab_comments where table_type = 'TABLE' and owner = 'QT_PAS'; -- 查询指定表的字段信息(包含所属表名称、字段名称、字段类型、字段长度、字段注释、是否允许为空、是否为主键、数值精度、是否为外键) select t1.table_name as tableName, t1.column_name as columnName, ...
true
1953cc10b63cc1fdb766e6a646fb9c4a6ebf5035
SQL
translafor/store
/src/main/java/com/wsq/store/common/sql/mysql.sql
UTF-8
2,806
3.421875
3
[]
no_license
-- ---------------------------- -- Table structure for T_AMK_User -- ---------------------------- CREATE TABLE IF NOT EXISTS `T_STORE_User` ( `FId` bigint(20) NOT NULL DEFAULT '0', `FUserName` varchar(100) DEFAULT '' COMMENT '用户名', `FEmail` varchar(50) DEFAULT '邮箱', `FHeadResId` bigint(20) DEFAULT 0 COMMENT '头像...
true
02eac9b473ce4a54e2797aa1275194ffb495af44
SQL
GiovannaMelo/Exercicios-Banco-de-Dados
/Consultas/Consultas_bdEstoque.sql
ISO-8859-1
1,063
3.90625
4
[]
no_license
-- EXERCICIO 1 SELECT codProduto as 'Cdigo', descricaoProduto as 'Produto', nomeFabricante as 'Fabricante' FROM tbProduto INNER JOIN tbFabricante ON tbProduto.codFabricante = tbFabricante.codFabricante WHERE valorProduto = (SELECT MAX (valorProduto)FROM tbProduto) -- EXERCICIO 2 SELECT descricaoProduto as 'Prod...
true
c7759613df42dd48e4bd1de9681484e0fd8b1907
SQL
huduny/python
/class401_dbsql/20210915-01.sql
UHC
491
3.1875
3
[]
no_license
20210915-01 䱸׸(usecase-Ʈ ʿ) ־ 縦 (־, )( ) ĺѴٴ ߰ Ը ľѴ. ȸ(ȸ̵, ̸, ) ⼭ entity ȸ (...) atribute̴. ߿ ȸ̵ primary key ȴ. entity ޵Ǿ ٽ Ǿ 縦 ã´. 'ֹϴ'̰ ̴.
true
4585e4a69a2e019b1a40e58c01773d7430f1ad02
SQL
tuanpnUET/csdl-uet
/Week2/my_classicmodels.sql
UTF-8
3,683
3.265625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Apr 01, 2020 at 03:37 PM -- Server version: 10.4.11-MariaDB -- PHP Version: 7.4.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
634a9896f107d2eb8e99370297b4cea81720aa58
SQL
1van0v/product-shop-services
/product-service/sql_scripts/products_store.sql
UTF-8
1,826
3.765625
4
[]
no_license
create extension if not exists "uuid-ossp"; drop table if exists stocks; drop table if exists products; create table products ( id uuid primary key default uuid_generate_v4(), title text not null, description text, price integer, image_url text not null ); insert into products (title, description, price, i...
true
cece42fb3247aa8d6387559e7cce631e4134a601
SQL
jeongdoc/SQLAssignment
/DDMLworkshop.sql
UTF-8
8,061
3.75
4
[]
no_license
-- 2019.01.16 -- workshop [DDL] ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ -- QUESTION 01 ◈◈◈◈◈◈◈◈◈◈◈◈◈◈◈◈◈◈ CREATE TABLE TB_CATEGORY ( NAME VARCHAR2(10), USE_YN CHAR(1) DEFAULT 'Y' ); -- CONFIRM DESC TB_CATEGORY; -- QUESTION 02 ◈◈◈◈◈◈◈◈◈◈◈◈◈◈◈◈◈◈ CREATE TABLE TB_CLASS_TYPE ( N...
true
ac93fb9fdd181652f3660240358ba535c17ddd20
SQL
basoares/aoc2018-sql
/day01/d01.sql
UTF-8
1,322
3.953125
4
[ "MIT" ]
permissive
/* Advent of Code - 2018 --- Day 1: Chronal Calibration --- Released under the MIT License <http://opensource.org/licenses/mit-license.php> */ ;WITH INPUT_D01 AS ( SELECT REPLACE(F.[ITEM], CHAR(10), '') AS FREQ FROM OPENROWSET(BULK 'D:\repos\aoc2018-sql\input\d01.txt', SINGLE_CLOB) INPUT_FILE(FILE_DATA...
true
7adafa4bb326dc96d560869ad03548d70d2f1327
SQL
humyna/hackathon
/wealthradius/docs/sql/order_info.sql
UTF-8
1,521
3.421875
3
[]
no_license
SET NAMES utf8; SET FOREIGN_KEY_CHECKS = 0; -- ---------------------------- -- Table structure for `order_info` -- ---------------------------- DROP TABLE IF EXISTS `order_info`; CREATE TABLE `order_info` ( `order_id` int(11) NOT NULL AUTO_INCREMENT, `product_id` int(11) NOT NULL COMMENT ' 产品id', `start_date` d...
true
b6274a549fcd970babf71d255d7a8d5f4f9ddee3
SQL
bkjeon1614/java-example-code
/spring-batch-study/spring-batch-study-jpa/src/main/resources/sql/product.sql
UTF-8
575
2.75
3
[]
no_license
create table product ( id bigint not null auto_increment, amount bigint, tx_name varchar(255), tx_date_time datetime, primary key (id) ) engine = InnoDB; insert into product (amount, tx_name, tx_date_time) VALUES (1000, 'trade1', '2018-09-10 00:00:00'); insert into product (amount, tx_name, tx_dat...
true
c3591a188910f173fc4c676d258d10a71c284cc1
SQL
baongoc093254/C1020G1-LePhuocThanhCao
/Module4/casestudy/database/db/furama_management_employee.sql
UTF-8
3,497
3.03125
3
[]
no_license
-- MySQL dump 10.13 Distrib 8.0.22, for Win64 (x86_64) -- -- Host: 127.0.0.1 Database: furama_management -- ------------------------------------------------------ -- Server version 8.0.22 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESUL...
true
e59883c37eb558a4df450c0997ada116d1370eea
SQL
IzaGroombridge/learn-repo
/learn-project/analysis/listings_pivot.sql
UTF-8
452
3.359375
3
[]
no_license
with listings as ( select * from {{ref('stg_airbnb_listings')}} ), pivoted as (select neighbourhood, {%- for property_type in ['Apartment', 'House'] -%} sum(case when property_type = '{{property_type}}' then 1 else 0 end) as {{property_type}}_count {% if n...
true
ca56db6753c1cf2c8fa584a53f23bd8b42edfabc
SQL
fairfield-university-is510-fall2017/deals-db-aagarwal07
/USE DEALS.sql
UTF-8
408
3.640625
4
[]
no_license
USE deals; SELECT * FROM Companies WHERE CompanyName like "%Inc."; SELECT * FROM Companies ORDER BY CompanyID; # Select Deal Parts with Dollar values SELECT DealName, PartNumber, DollarValue FROM Deals,DealParts WHERE Deals.DealID = DealParts.DealID; #Select Deal Parts with Dollar Values using a join SELECT DealNam...
true
5f2f87d50c1f3955407da4a4a0cc63a0ab2a4e90
SQL
lvhkhanh/SQL
/index_range_scan.sql
UTF-8
1,014
3.96875
4
[]
no_license
-- One side bounded searched SELECT * FROM SALES WHERE time_id > to_date('01-NOV-01','DD-MON-RR'); -- Bounded by both sides SELECT * FROM SALES WHERE time_id between to_date('01-NOV-00','DD-MON-RR') and to_date('05-NOV-00','DD-MON-RR'); -- B-Tree index range scan SELECT * FROM employees where employee_id > 190; ...
true
fcc133ec0331a0c3304f3cde3d8076aaf6d40d9c
SQL
OwenKLenz/SQL_fundamentals
/subqueries_and_more/scalar_subqueries.sql
UTF-8
271
3.953125
4
[]
no_license
-- Initial Attempt: SELECT items.name, count(bids.bidder_id) FROM items LEFT OUTER JOIN bids ON bids.item_id = items.id GROUP BY items.id ORDER BY items.id; -- With scalar subquery: SELECT name, (SELECT count(item_id) FROM bids WHERE bids.item_id = items.id) FROM items;
true
731ea6d8045549407569750662e08514ea79c809
SQL
Giorgia-G/Tv-Show-Time
/query_inserimento.sql
UTF-8
31,876
2.828125
3
[]
no_license
-- Inserimento utenti. -- Carico la funzione pgcrypto per criptare la password in md5 nel database. CREATE EXTENSION pgcrypto; INSERT INTO utente VALUES ( 'MATDES86B12I854K', 'mattia.desiderio', 'Mattia', 'Desiderio', '1996-04-05', 'Italia', 'Modena', '230925@studenti.unimore.it', NULL, crypt('miapassword',...
true
2b3c2b53f757fb480be0576a3f15823494d6692e
SQL
xiongyu0523/azure-sphere-combo-cifar10
/rtcore/CMSIS/DSP/Testing/diff.sql
UTF-8
2,122
3.90625
4
[ "MIT" ]
permissive
.headers ON /* Select the core to be used as reference. Only last day of measurements is used. */ CREATE TEMP VIEW if not exists refCore AS select * from Unary where coreid=5 AND DATE BETWEEN datetime('now','localtime','-23 hours') AND datetime('now', 'localtime'); ; /* Select the cores to be benchmarked comp...
true
e714fde43d29612c2ff2c089aa3e664552ad373f
SQL
juliajaca/randomEquipo
/BD.sql
UTF-8
2,240
2.984375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 10-07-2019 a las 16:22:46 -- Versión del servidor: 10.1.38-MariaDB -- Versión de PHP: 7.3.4 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; ...
true
5fb9454b6c857514d35d6b3217e9047febb31fe4
SQL
fajarsyairillah/PostTest
/db_bni.sql
UTF-8
2,134
3.15625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 25 Jan 2021 pada 14.50 -- Versi server: 10.4.17-MariaDB -- Versi PHP: 7.3.26 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@C...
true
578c4a60571f9c9a33a2f103136647ab8ac58ce4
SQL
MauroLucas/BD1
/Listado de vuelos realizados mostrando código, marca, modelo y matrìcula del avión,.sql
UTF-8
468
3.375
3
[]
no_license
#Listado de vuelos realizados mostrando código, marca, modelo y matrìcula del avión, #Código IATA del Aeropuerto origen, Código IATA del Aeropuerto destino, fecha hora partida, #fecha hora llegada y CUIL piloto select vuelo.codigo,matriculaAvion,avion.modelo,marca.nombre as marca,aeropuetoOrigen,aeropuertoDestino,fecha...
true
0d5636f0ec450beefdc8aef4da133a80e7d67896
SQL
J2EEDEV-IMRAN/useful_query
/SMBBO3.sql
UTF-8
176,583
2.796875
3
[]
no_license
-- -- Create Schema Script -- Database Version : 11.2.0.1.0 -- TOAD Version : 9.7.2.5 -- DB Connect String : ORCLG2 -- Schema : SMBBO3 -- Script Created by : SMBBO3 -- Script Created at : 1/14/2019 3:52:38 PM -- Physical Location : -- Notes : -- ...
true
809884e91a10cabfab83492e9f953393a1baa831
SQL
sumabhargav/Fraud-detection-
/DatabaseSQL.sql
UTF-8
20,539
3.515625
4
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.2.11 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Aug 01, 2015 at 12:31 AM -- Server version: 5.6.21 -- PHP Version: 5.6.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; ...
true
cfe7d498714e395122e28c0ceb9f9caaedac4fd1
SQL
beowulf1416/mura
/data/sql/postgres/clients/tables/org_tree.sql
UTF-8
614
3.53125
4
[]
no_license
create table if not exists org_tree ( client_id bigint not null, org_id bigint not null, parent_org_id bigint not null, constraint pk_org_tree primary key (client_id, org_id, parent_org_id), constraint fk_org_tree_1 foreign key (client_id) references clients.clients(id) on delete restrict on...
true
bd3bfc1344713434b46dedfcd1faeaa11775073a
SQL
Jules1/comp3161-project
/schema.sql
UTF-8
7,164
3.546875
4
[]
no_license
DROP DATABASE IF EXISTS hospital; CREATE DATABASE hospital; USE hospital; /* Creating the main tables */ drop table if exists patient; CREATE TABLE patient( patient_id varchar(5) not null, fname varchar(20), lname varchar(20), address varchar(30), dob date, phone varchar(8), primary key(patient_id) ); drop ta...
true
12871237c21e1fb925cb86e312bbec9d2caf6b6c
SQL
nlawstudio/intro-to-prisma
/prisma/migrations/20210702121516_adding_topics_and_resources/migration.sql
UTF-8
628
3.703125
4
[]
no_license
-- CreateEnum CREATE TYPE "ResourceType" AS ENUM ('VIDEO', 'BLOG_POST', 'BOOK'); -- CreateTable CREATE TABLE "Resource" ( "uuid" TEXT NOT NULL, "name" TEXT NOT NULL, "description" TEXT NOT NULL, "url" TEXT NOT NULL, "tags" TEXT[], "type" "ResourceType" NOT NULL, "topicUuid" TEXT, PRIMA...
true
6ba4b54df348f11b899da06fe6177e139075c8d0
SQL
bowwran/ding
/aidian.sql
UTF-8
6,659
2.984375
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : 11 Source Server Version : 50719 Source Host : localhost:3306 Source Database : aidian Target Server Type : MYSQL Target Server Version : 50719 File Encoding : 65001 Date: 2021-05-23 22:27:15 */ SET FOREIGN_KEY_CHECKS=0; -- ---------...
true
af03dcf65c9a5e7ca90832059018c98e7986b7b7
SQL
indyscala/cassandra-demo
/schema.cql
UTF-8
639
3.6875
4
[]
no_license
drop keyspace indyscala; create keyspace indyscala with replication = {'class':'SimpleStrategy', 'replication_factor':3}; use indyscala; create table tweets ( tweet_id bigint primary key, text text, username text, lang map<text, text> ); create index tweet_usernames on tweets(username); create table tweet_te...
true
78d32374fa53d585c7356203e4dc994c2ff99507
SQL
xamgore/learning-sql
/structure.sql
UTF-8
2,404
4.375
4
[]
no_license
-- What can be sold. DROP TABLE IF EXISTS "Products" CASCADE; CREATE TABLE "Products" ( "Id" serial PRIMARY KEY, "Name" text NOT NULL, "Measure" text NOT NULL ); -- Who makes the products. DROP TABLE IF EXISTS "Producers" CASCADE; CREATE TABLE "Producers" ( "Id" serial PRIMARY KEY, "Name" text ...
true
8c700cac65657a8bbfeefcbd958e14619ba01209
SQL
ayato-p/clotter
/resources/migrations/20170719172026-add-tweet-retweet-table.up.sql
UTF-8
530
3.828125
4
[]
no_license
CREATE TABLE IF NOT EXISTS `clotter`.`tweet_retweet` ( `tweet_id` INT UNSIGNED NOT NULL, `user_id` VARCHAR(20) NOT NULL, PRIMARY KEY (`tweet_id`, `user_id`), INDEX `fk_tweet_retweet_user1_idx` (`user_id` ASC), CONSTRAINT `fk_tweet_retweet_tweet1` FOREIGN KEY (`tweet_id`) REFERENCES `clotter`.`tweet` (...
true
016799b661537d234562aa28aa58f3a63fb05994
SQL
odenisova/onlc
/onlc.sql
UTF-8
1,386
3.21875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 2.11.3 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Jun 11, 2014 at 09:17 PM -- Server version: 5.5.37 -- PHP Version: 5.3.10-1ubuntu3.11 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; -- -- Database: `onlc` -- -- ----------------------------------------------------...
true
e171d1c2b55c4a8bfd7faa7794716adb13193daa
SQL
duck57/pogo-nest-lister
/SQL/tables of creation.sql
UTF-8
1,219
3.5
4
[ "MIT" ]
permissive
CREATE TABLE IF NOT EXISTS nest_locations ( nest_id integer PRIMARY KEY, official_name text NOT NULL, short_name text, alternate_names text, location integer, address text, notes text, private integer, permanent_species text, lat real, lon real, size integer, density integer, FOREIGN KEY (location) REFERE...
true
0fd8672d959e2354db42b856c00c1dc53da99021
SQL
apache-spark-on-k8s/spark
/sql/core/src/test/resources/sql-tests/inputs/inner-join.sql
UTF-8
654
3.046875
3
[ "Apache-2.0", "BSD-2-Clause", "MIT", "LicenseRef-scancode-other-permissive", "LicenseRef-scancode-unknown-license-reference", "BSD-3-Clause", "MPL-1.0", "GPL-2.0-only", "LGPL-2.1-only", "LicenseRef-scancode-public-domain", "CDDL-1.1", "GPL-1.0-or-later", "CPL-1.0", "EPL-1.0", "CC-PDDC", ...
permissive
CREATE TEMPORARY VIEW t1 AS SELECT * FROM VALUES (1) AS GROUPING(a); CREATE TEMPORARY VIEW t2 AS SELECT * FROM VALUES (1) AS GROUPING(a); CREATE TEMPORARY VIEW t3 AS SELECT * FROM VALUES (1), (1) AS GROUPING(a); CREATE TEMPORARY VIEW t4 AS SELECT * FROM VALUES (1), (1) AS GROUPING(a); CREATE TEMPORARY VIEW ta AS SELEC...
true
d4993076646abedda5121a7436020463b41d4327
SQL
fleetmack/mines
/me/Alumni Association/ruth/20110203_houston_golf_lists.sql
UTF-8
581
3.1875
3
[]
no_license
/*** Current Houston Parents ***/ select * from a_dw_address_good where record_type_code = 'PA' and p_zipcode BETWEEN '77000-0000' AND '77599-9999'; --note, these zips are wrong, waiting to hear back from Ruth /*** Geology and Geophysics alumni in Houston ***/ select * from a_dw_address_good where record_type_code = ...
true
691ed2d99fdd5921d847f1ced24eb6d065a6c3db
SQL
radtek/abs3
/sql/mmfo/bars/Package/bars_web_sms_ins.sql
WINDOWS-1251
13,462
2.9375
3
[]
no_license
PROMPT ===================================================================================== PROMPT *** Run *** ========== Scripts /Sql/BARS/package/bars_web_sms_ins.sql =========*** Ru PROMPT ===================================================================================== CREATE OR REPLACE PACKAGE BAR...
true
c954701f444c1639fc8fb5149745de70ddd16624
SQL
dgerena/SSL
/practical/ads_2014-06-26.sql
UTF-8
1,816
2.96875
3
[]
no_license
# ************************************************************ # Sequel Pro SQL dump # Version 4096 # # http://www.sequelpro.com/ # http://code.google.com/p/sequel-pro/ # # Host: 127.0.0.1 (MySQL 5.5.29) # Database: ads # Generation Time: 2014-06-26 15:13:00 +0000 # *****************************************************...
true
9ecb97ee10aefe0df76b69a49fd32ad2d381a1b4
SQL
radtek/abs3
/sql/mmfo/bars/View/v_doc_not_visa.sql
UTF-8
1,823
2.984375
3
[]
no_license
PROMPT ===================================================================================== PROMPT *** Run *** ========== Scripts /Sql/BARS/View/V_DOC_NOT_VISA.sql =========*** Run *** PROMPT ===================================================================================== PROMPT *** Create view V_DO...
true
a99bb1e479cc4ebbe56fe98abe689ca8962c8787
SQL
JoeHoHo1/UO-Code-Examples
/Software Methodologies/System/sql/rider_track.sql
UTF-8
912
3.125
3
[]
no_license
CREATE DATABASE db; USE db; CREATE TABLE `rider_track` ( `rider_id` varchar(120) NOT NULL, `track_time` varchar(20) NOT NULL DEFAULT 0, `track_lat` decimal(11,7) NOT NULL, `track_lng` decimal(11,7) NOT NULL, `track_duration` int(11) NOT NULL DEFAULT 0 ) ENGINE=InnoDB DEFAULT CHARSET=latin1; CREATE TABLE `in...
true
245a100060911660e0eb836af938cc684b9fc96b
SQL
Gandalf-the-Tartan/portfolio
/SQL/nanodegree/1_LIKE.sql
UTF-8
232
2.640625
3
[]
no_license
# LIKE, wild card matching # '%google%', 'google%', '%google' (somewhere, starts, ends) # used in WHERE instead of comparison operators # presumably for searching character strings SELECT name FROM accounts WHERE name LIKE 'C%';
true
0e8779f7be1bc498fb7478863387e97d34b41d0f
SQL
dmitry-lipetsk/hobby-dbs
/database/scripts/core/table.type_objects_common_attrs.sql
UTF-8
578
2.625
3
[]
no_license
include(core/inc/common.inc) /* ********************************************************************************************** */ CREATE TABLE CORE.TYPE_OBJECTS_COMMON_ATTRS ( ID CORE.D_ATTR_ID NOT NULL, NAME VARCHAR(64) NOT NULL, CONSTRAINT PK_TYPE_COMMON_OBJ_ATTRS PRIMARY KEY(ID) );/*TABLE CORE.TYPE_OBJECTS_CO...
true
5b9f972a5c07e69576ecf3ca4d59db92ccfbfa45
SQL
Vasilec92/AirBnB_SQL
/scripts.sql
UTF-8
5,141
4.15625
4
[]
no_license
-- Обновляем ссылку на фото UPDATE media SET filename = CONCAT( 'http://dropbox.net/airbnb/', filename, (SELECT last_name FROM users ORDER BY RAND() LIMIT 1), '.', 'jpeg' ); -- у некоторых пользователей нет фотографии на аватаре UPDATE users SET photo_id = NULL WHERE id IN (23,35,76,98,43,12) ; -- показывае...
true
5b10bec1894d6b85be5cac6c5b529ae85bf8fa1d
SQL
orcastellanosh/arbolBinomial_OmarCastellanos
/binomial_db_basico.sql
UTF-8
818
3.203125
3
[]
no_license
CREATE DATABASE IF NOT EXISTS `binomial_db` DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_ci; USE `binomial_db`; CREATE TABLE `nodos` ( `id` int(100) NOT NULL, `padre` int(10) NOT NULL, `hijo` int(10) NOT NULL, `estado` varchar(200) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; INSERT INTO `nodo...
true
580081c70576dd056a9aeaa86b3e7be04664a7e9
SQL
TareqJudehGithub/data_science_udacity
/Lesson7/SELF_JOINS.sql
UTF-8
693
4.34375
4
[]
no_license
-- Quiz: Self JOINs SELECT events1.id AS events1_id, events1.account_id AS events1_account_id, events1.occurred_at AS events1_date, events1.channel AS events1_channel, events2.id AS events2_id, events2.account_id AS events2_account_id, events2.occurred_at AS events2_date, events2.channel AS events2_chann...
true
8ef909d82c8ae433d9b0e452a8e8fc51d4278b0c
SQL
JanCzarnecki/LiMPET
/src/main/resources/uk/ac/bbk/REx/db/bioCycDB/getPathwayNameStmt.sql
UTF-8
119
2.984375
3
[]
no_license
SELECT pat.Name FROM DataSet d, Pathway pat WHERE d.Name=? && d.WID=pat.DataSetWID && pat.WID=?
true
f4f4ed689b304d204f797de1a7812e302f6f3ac4
SQL
silence-do-good/stress-test-Postgres-and-MySQL
/dump/high/day17/select0943.sql
UTF-8
178
2.640625
3
[]
no_license
SELECT timeStamp, temperature FROM ThermometerOBSERVATION o WHERE timestamp>'2017-11-16T09:43:00Z' AND timestamp<'2017-11-17T09:43:00Z' AND temperature>=28 AND temperature<=64
true
f654e780f26353a91823439b35199b96400ea83d
SQL
18215582009/ap_114
/document/数据库备份/fc_project_attach.sql
UTF-8
3,282
2.875
3
[]
no_license
-- MySQL Administrator dump 1.4 -- -- ------------------------------------------------------ -- Server version 5.6.24 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; ...
true
74f57c0c4b85748a07621984b65a76f8d2c45dee
SQL
ilham009/Lia-Wedding
/database/db_lia_db.sql
UTF-8
7,785
2.84375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Nov 23, 2020 at 03:46 PM -- Server version: 10.4.14-MariaDB -- PHP Version: 7.4.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIEN...
true
d2273b85c346f90f4e64b7d4435dffc93b79d339
SQL
JonDadi/SeatChooser
/seatChooser.sql
UTF-8
17,328
3.71875
4
[]
no_license
-- Höfundur: Jón Daði Jónsson 2014. -- Kennari: Sigurður R. Ragnarsson. -- Þetta er algorithmi sem raðar fólki og hópum í sæti með FreshAir_v2 gagnagrunninum. -- TODO listinn er í Bókun Hópa hlutanum. /* *****************************************************************************************************************...
true
bedca23962e648d867df0fc03f2b485dc5c78eb8
SQL
LyuJimmy/projectBBS
/bbs-project/sql/bbs.sql
UTF-8
5,378
3.046875
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : mysql Source Server Version : 50722 Source Host : 10.40.5.1:3306 Source Database : bbs Target Server Type : MYSQL Target Server Version : 50722 File Encoding : 65001 Date: 2020-03-20 11:21:00 */ SET FOREIGN_KEY_CHECKS=0; -- ---------...
true