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
2a21f77264dbf8289ed5659eafb202846e9f576e
SQL
user1057/mtst2
/database/transHistory.sql
UTF-8
982
3.109375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Oct 06, 2019 at 12:01 PM -- Server version: 10.3.16-MariaDB -- PHP Version: 7.3.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; -- -- Databas...
true
7e6ad3c263286a3435529a87b4640ab90860db90
SQL
mcquackers/Metis
/week2/day1/prob1.sql
UTF-8
124
2.875
3
[]
no_license
SELECT galleries.name FROM images JOIN galleries ON images.gallery_id = galleries.id WHERE images.name ILIKE '%Grumpy%';
true
0d020ebf83b864803170e9948464014250f3bb27
SQL
vctrmarques/interno-rh-sistema
/rhServer/src/main/resources/db/migration/sprint_1-10/V1_2018_11_29_17_14__CREATE_TABLE_COMPENSACAO.sql
UTF-8
642
3.40625
3
[]
no_license
-- Criação de tabela compensacao -- Davi Queiroz IF NOT EXISTS(SELECT * FROM SYS.TABLES WHERE name = 'compensacao') CREATE TABLE compensacao ( id bigint PRIMARY KEY NOT NULL IDENTITY(1,1), tomador_servico_id BIGINT NOT NULL, competencia datetime2(7) NOT NULL, valor_compensacao FLOAT NOT NULL, data_compensacao_in...
true
1ae7a18a8c517f345ff92577d5d34a174e3852c4
SQL
ihernanor/Bases_de_Datos_II
/PL-SQL.sql
UTF-8
1,111
3.5625
4
[]
no_license
# Bases-de-Datos-II--Mi primer programa bloque PL-SQL: �HolaMundo! --Modo de depuraci�n SET SERVEROUTPUT ON; BEGIN --Aqu� va la l�gica DBMS_OUTPUT.PUT_LINE('Hola Mundo'); END; / -- Segundo bloque PL-SQL usando declaraci�n de variables DECLARE EDAD INTEGER; NOMBRE VARCHAR2(40); DIAS INTEGER; BEGIN -- Asignamos esa...
true
b9f9c3bf007a56392d80b6f2d3a8a034400c8272
SQL
cjmoynihan/taskmaster
/schema.sql
UTF-8
550
3.453125
3
[]
no_license
CREATE TABLE IF NOT EXISTS tasks( task_id integer primary key autoincrement, task_name text not null, duration int not null, due_date text, priority int ); CREATE TABLE IF NOT EXISTS events( event_id integer primary key autoincrement, task_id integer, start_time text not null, end_ti...
true
40a8bd1a68de8c97a08e5db3953adc7eba16534d
SQL
NikolayDobrinski/SoftUni-Java
/src/softuni/mySql/Built_in_Functions/REGEXP-RLIKE.sql
UTF-8
861
3.265625
3
[ "Apache-2.0" ]
permissive
SELECT `id`, `title` FROM `books` WHERE `title` REGEXP '^.*it.*$'; -- As You Like It -- It -- The Hobbit SELECT `id`, `title` FROM `books` WHERE `title` REGEXP '[tT]he'; -- The Mysterious Affair at Styles -- Timon of Athens SELECT `id`, `title` FROM `books` WHERE `title` REGEXP '^.*[tT]he.*$'; -- The Mysterious Affai...
true
9da74762d509ca2fb78649a9b3b65947a6951c7d
SQL
hermsicle/To-Do-
/schema.sql
UTF-8
385
2.78125
3
[]
no_license
DROP DATABASE IF EXISTS todo_db; CREATE DATABASE todo_db; USE todo_db; CREATE TABLE todos ( id INTEGER AUTO_INCREMENT NOT NULL, todo VARCHAR (140) NOT NULL, PRIMARY KEY (id) ); INSERT INTO todos (todo) VALUES ('this is a thing'); INSERT INTO todos (todo) VALUES...
true
c68bfc9b56b5f5c1997e727fccca163446a2ec3f
SQL
MoxiCult/persistence
/setup.sql
UTF-8
358
3.40625
3
[]
no_license
DROP TABLE IF EXISTS students; create table students( id serial PRIMARY KEY, fname VARCHAR(100) not NULL, lname VARCHAR(100) not NULL); create table grades ( id serial primary key, assignment varchar(100) not null, grade integer not null, student_id inte...
true
456be8bd02197587e7c95575a5836f39b22cae8b
SQL
AscenKeeprov/Databases-Advanced
/Exercise1-ADO.NETIntro/MinionsDB/Scripts/CreateTables.sql
UTF-8
1,981
3.96875
4
[ "MIT" ]
permissive
USE MinionsDB IF NOT EXISTS ( SELECT * FROM sys.objects WHERE name = 'Countries' AND type = 'U' ) BEGIN CREATE TABLE Countries ( Id INT IDENTITY CONSTRAINT PK__Country_Id PRIMARY KEY (Id), [Name] VARCHAR(64) NOT NULL ) END IF NOT EXISTS ( SELECT * FROM sys.objects WHERE name = 'Towns' AND type = ...
true
ae85b48acfee12bf6372a53ff753eb20076696c6
SQL
LucasRochefeuille/Situation-Professionnelle-Gestion-Etud
/gestionetudiant (2).sql
UTF-8
7,344
3.234375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.6.5.2 -- https://www.phpmyadmin.net/ -- -- Client : 127.0.0.1 -- Généré le : Mar 06 Juin 2017 à 01:05 -- Version du serveur : 10.1.21-MariaDB -- Version de PHP : 5.6.30 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@C...
true
ff75efec5a4e42bcefe69ff8bdee759bb41cdef2
SQL
anjalbinayak/TimeCounterPhp
/schema/events.sql
UTF-8
1,308
2.953125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.9 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1:3306 -- Generation Time: Jul 22, 2019 at 09:43 AM -- Server version: 5.7.21 -- PHP Version: 7.2.4 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHA...
true
0f7303175344dcba3ac4b89ad81be08f0d6f96ab
SQL
creinsel/bamazon
/schema.sql
UTF-8
767
3.171875
3
[]
no_license
DROP DATABASE IF EXISTS bamazon; CREATE DATABASE bamazon; USE bamazon; CREATE TABLE products ( item_id INT NOT NULL AUTO_INCREMENT, product_name VARCHAR(50) NOT NULL, department_name VARCHAR(50) NOT NULL, price DECIMAL(10,2) NOT NULL, stock_quantity INT(4) NOT NULL, PRIMARY KEY(item_id) ); INSERT INTO products (pr...
true
9dbd50580e5353017aea609d190c34423b710640
SQL
KevinSpurk/lab-sql-2
/solutions.sql
UTF-8
1,945
4.53125
5
[]
no_license
use sakila; -- 1. Select all the actors with the first name ‘Scarlett’. select * from actor where first_name = 'Scarlett'; -- 2. Select all the actors with the last name ‘Johansson’. select * from actor where last_name = 'Johansson'; -- 3. How many films (movies) are available for rent? (Total amount of movies) -- f...
true
4dbba90194d45685c19a063809ab2501f2cb03ea
SQL
xjie1070160377/AppCenter
/doc/appcenter_notice.sql
GB18030
2,814
3.734375
4
[]
no_license
CREATE TABLE t_notice_info ( id INTEGER AUTO_INCREMENT, nodeId INTEGER NULL, title VARCHAR(60) NULL, description VARCHAR(200) NULL, createTime DATETIME NULL, creatorId BIGINT NULL, smallImage VARCHAR(200) NULL, PRIMARY KEY (...
true
3be6d6d29c963fae44916796e6b341e92abfc093
SQL
armbiant/dropbox-hermes
/db/update_to_0511.sql
UTF-8
365
3.09375
3
[ "Apache-2.0" ]
permissive
ALTER TABLE `labors` ADD `closing_fate_id` INT(11) DEFAULT NULL AFTER `fate_id`; ALTER TABLE `labors` ADD INDEX `ix_labors_closing_fate_id` (`closing_fate_id`); UPDATE `labors` SET `closing_fate_id`=4 WHERE `fate_id`=3; UPDATE `labors` SET `closing_fate_id`=5 WHERE `fate_id`=4; ALTER TABLE `labors` ADD FOREIGN KEY (`...
true
634b6fc2fc61c8cb64eec0e361e57001d71375df
SQL
Axelerati0n/StarBooks
/starbooks.sql
UTF-8
7,053
2.890625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Hôte : 127.0.0.1:3306 -- Généré le : jeu. 11 fév. 2021 à 17:14 -- Version du serveur : 5.7.31 -- Version de PHP : 7.3.21 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_C...
true
0184262de8be72e3a9c543efe8ce34e32ba2798f
SQL
crathjen/Quill-Distilled
/DB/derbyDBCreationScript.sql
UTF-8
4,648
3.765625
4
[]
no_license
create schema quotes; set schema quotes; DROP TABLE QUOTE_TAG; DROP TABLE USER_QUOTE_RATING; DROP TABLE QUOTATION; DROP TABLE QUOTE_SOURCE; DROP TABLE USER_AUTHOR_RATING; DROP TABLE AUTHOR_TAG; DROP TABLE USER_INTEREST; DROP TABLE USER_ROLE; DROP TABLE ROLE; DROP TABLE SUBJECT_TAG; DROP TABLE AUTHOR; DROP TABLE REGIST...
true
23549d8813b518ef9bcb48a85ea681050fd715a6
SQL
flowersayo/2021-darass
/backend/src/test/resources/testdb/migration/V20210802223415__init.sql
UTF-8
2,502
3.828125
4
[]
no_license
create table comment ( id bigint not null auto_increment, created_date TIMESTAMP, modified_date TIMESTAMP, content varchar(255), url varchar(255), project_id bigint, user_id bigint, primary key (id) ); create table comment_like ( id bi...
true
7c62b3de4a6eae1938d1666d807b87adecfcf52a
SQL
vichayas/VIR
/SQL/FinPOLANDVAT_V2.sql
UTF-8
1,272
3.84375
4
[]
no_license
select a.referencenumber as appnumber, b.referencenumber as polnumber, f.referencenumber as paymnernumber, party.DescriptionTH as InsuredName from agreement a inner join agreement b on (a.insuranceapplication_id = b.insuranceapplication_id and b.discriminator = 'InsurancePolicy') inner join insuranceapplica...
true
dff92bffba7cea4203345d5d04967325db25613d
SQL
ProyectoIntegrado1DAW/ProyectoIntegrado1DAW
/Base de datos/clicktick.sql
ISO-8859-1
3,733
3.390625
3
[]
no_license
-- Schema: clickntick -- DROP SCHEMA clickntick cascade; CREATE SCHEMA clickntick AUTHORIZATION postgres; set search_path to 'clickntick'; CREATE TABLE clientes ( DNI varchar(10) NOT NULL, Usuario varchar(15) NOT NULL, Password varchar(10) NOT NULL, Puntos integer NOT NULL, Nombre varchar(30) NOT NULL, Apel...
true
a2f933106892eff32f227987cd50d9d90968c278
SQL
Khurram1997/WebDevAug20th
/database/userlogin.sql
UTF-8
5,747
3.21875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Aug 20, 2019 at 05:07 AM -- Server version: 10.3.16-MariaDB -- PHP Version: 7.3.7 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @O...
true
141221862a3739048d61ccd247888f50ddbfb7a9
SQL
rahulpatil5202/MarketData_Analysis
/Scripts/SQL/stock_ind_sector_datewise.sql
UTF-8
455
4.03125
4
[]
no_license
select nse.trade_date, nse.symbol, industryclass.sector_name, industryclass.industry_name, nse.close from nse inner join scrips on nse.isin = scrips.isin left join industryclass on scrips.industry = industryclass.industry_subgroup where industryclass.industry_name = 'Retailing' and nse.trade_date >= '2018-01-01' gr...
true
1e3d6e75efeab5580854ead99fa448f4173057eb
SQL
rikbosma2000/inschrijf
/evenementen.sql
UTF-8
8,107
2.90625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.6.5.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Gegenereerd op: 28 jan 2019 om 09:24 -- Serverversie: 10.1.21-MariaDB -- PHP-versie: 7.1.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT ...
true
0bc7bba0915040328bdded819d7e1bfe04146f72
SQL
BIFWIG/eshop
/建表语句/财务中心.sql
UTF-8
5,810
3.546875
4
[]
no_license
/*==============================================================*/ /* DBMS name: MySQL 5.0 */ /* Created on: 2018/2/23 10:09:34 */ /*==============================================================*/ drop table if exists finance_logistics_settlement_...
true
3fa0f48b2a4479bd060b400fb645a2bd210f6bfc
SQL
ChSadhvi22/EP-Skill
/ep_skill 2.sql
UTF-8
1,018
3.265625
3
[]
no_license
show databases; create database ep_skill; use ep_skill; create table Employee(Ename char(20),id int,age int,department char(5), desig char(15),salary int,date_of_work char(15)); desc Employee; insert into Employee values("Sadhvi",111,26,"CSE","Professor",50000,"01-12-2019"); insert into Employee values("Likhitha",132,2...
true
80c3e0aaa2eb3685096d788d59a30425cffe3190
SQL
tianyideng/sql-leetcode
/569_median_employee_salary.sql
UTF-8
1,039
4.34375
4
[]
no_license
#聪明的方法,运用row_number,比较between -1 + 1 SELECT Id, Company, Salary FROM ( SELECT *, ROW_NUMBER() OVER(PARTITION BY COMPANY ORDER BY Salary ASC, Id ASC) AS RN_ASC, ROW_NUMBER() OVER(PARTITION BY COMPANY ORDER BY Salary DESC, Id DESC) AS RN_DESC FROM Employee ) AS temp WHERE RN_ASC BETWEEN RN_DESC - 1 AND RN_DESC + 1 ORDER ...
true
df30c7913ed75fda2115b1ede08a1a25f4aa6264
SQL
chuanqian/python-learn
/sqlFile/learn-python-mysql.sql
UTF-8
1,462
3.546875
4
[]
no_license
create database if not exists `learn-python-mysql` default charset=`utf8mb4`; use `learn-python-mysql`; drop table if exists `tb_subject`; create table `tb_subject` ( `no` integer auto_increment comment '学科编号', `name` varchar(50) not null comment '学科名称', `intro` varchar(1000) not null default '' comment '学科介绍...
true
0df2a65aad3f49e8d1a57785212305e6c2b5f713
SQL
hansongjing/getName
/crebas.sql
UTF-8
3,213
3.125
3
[]
no_license
/*==============================================================*/ /* DBMS name: MySQL 5.0 */ /* Created on: 2016/1/10 18:44:37 */ /*==============================================================*/ alter table Tb_Comment drop primary key;...
true
107578403a92d3233aab14015004b3c001a31d66
SQL
TakeActionNow/OSM
/Ronin/Database1/contact/Tables/child_details.sql
UTF-8
718
3.03125
3
[]
no_license
CREATE TABLE [contact].[child_details] ( [contact_id] INT NOT NULL, [contact_is_fragile] BIT DEFAULT ((0)) NOT NULL, [contact_has_regular_vaccination_program] BIT DEFAULT ((0)) NOT NULL, [contact_medical_comment] ...
true
41c5423d4412f18a12bce9ef3344092dd77a13cc
SQL
raduvd/instaFollow
/src/main/resources/db/migration/V1_1_14__addResult.sql
UTF-8
224
2.53125
3
[]
no_license
CREATE TABLE IF NOT EXISTS results ( addedAt timestamp , processType VARCHAR(50), followed integer, removed integer, confirmedRemoved integer, confirmedFollowing integer, PRIMARY KEY (addedAt) );
true
603e7964a859ec8054394cb4fd9d07f80495150f
SQL
silence-do-good/stress-test-Postgres-and-MySQL
/dump/low/day16/select1833.sql
UTF-8
264
2.765625
3
[]
no_license
SELECT sen.name FROM SENSOR sen, SENSOR_TYPE st, COVERAGE_INFRASTRUCTURE ci WHERE sen.SENSOR_TYPE_ID=st.id AND st.name='WiFiAP' AND sen.id=ci.SENSOR_ID AND ci.INFRASTRUCTURE_ID=ANY(array['4058','6072','4062','3064','6046','3100_7','5072','5039','6092','4216'])
true
d0f23f4fb6f09217eba368d4f7d069767737e39b
SQL
thezephyrus/Codewars
/SQL/SQL with Harry Potter Sorting Hat Comparators.sql
UTF-8
297
2.703125
3
[]
no_license
select * from students where quality1 in ('evil','cunning') and quality2 in ('evil','cunning') OR quality1 ='brave' and quality2!='evil' OR quality1 in ('studious','intelligent') OR quality2 in ('studious','intelligent') OR quality1 in ('hufflepuff') OR quality2 in ('hufflepuff') order by id asc;
true
49dde6d7ca15b7b09988bc246bc4f7eebced1a77
SQL
Juanpablocede/Scripts
/activo fijo/activo_fijo.sql
UTF-8
857
2.90625
3
[]
no_license
delete from saf_activo01 delete from saf_dta01 delete from saf_depreciacion01 --Inserta registro en la tabla saf_activo01 INSERT INTO saf_activo01 SELECT * FROM saf_activo WHERE codact BETWEEN '000000000013518' AND '000000000013662' --Inserta registro en la tabla saf_dta01 INSERT INTO saf_dta01 SELECT * FROM...
true
b7dadb76bb32c7c49e0e719289245ed088d099ed
SQL
dougsillars/almanac.httparchive.org
/sql/2019/04_Media/04_03.sql
UTF-8
516
3.5
4
[ "Apache-2.0" ]
permissive
#standardSQL # 04_03: SVG usage SELECT client, percentile, APPROX_QUANTILES(requests, 1000)[OFFSET(percentile * 10)] AS requests, ROUND(APPROX_QUANTILES(bytes, 1000)[OFFSET(percentile * 10)] / 1024, 2) AS kbytes FROM ( SELECT _TABLE_SUFFIX AS client, COUNT(0) AS requests, SUM(respSize) AS bytes FROM `httpar...
true
eab46abc611fd438b3549a658ec5d32987bd907e
SQL
siyoung0523/webhosting_20210203
/DBMS/AI2.sql
EUC-JP
17,622
3.953125
4
[]
no_license
select price from buytbl; select sum(price) from buytbl; select cast(avg(price) as number(8,3)) from buytbl; select min(price) from buytbl; select max(price) from buytbl; select cast(stddev(price) as number(8,2)) from buytbl; select cast(variance(price) as number(20,3)) from buytbl; select userid, sum(amount) from buy...
true
4da6d25f52b712b4b93137d6114bc8299aadd7f0
SQL
FASLADODO/Lecture-Multicampus
/인공지능-자연어처리(NLP)-기반-기업-데이터-분석/신윤수 강사님/데이터베이스/[20200608] 01. sql-문자열연산.sql
UTF-8
746
3.1875
3
[]
no_license
/* 문자열 연산 : DBMS 종속적. */ -- SELECT * FROM sample35; # 데이터 스키마: value와 unit을 분리해서 저장. ex)IoT : 온도, 습도 등 한 테이블에 모을 때. # concat : 문자열 합침. -- SELECT price, CONCAT(quantity, unit) AS amount FROM sample35; # substring : 문자열 인덱스를 통해 반환. -- SELECT SUBSTRING('배가너무 아프고 고프고 그렇지만 오늘은폭염주의보...', 1, 10) FROM DUAL; -- S...
true
b56992320c05969723aed70ea1c5aa6425b9476f
SQL
Hacene010/wcs-fiverr-swap-back
/DB/HackathonBaseClean.sql
UTF-8
4,612
3.109375
3
[]
no_license
-- MySQL dump 10.13 Distrib 8.0.23, for Win64 (x86_64) -- -- Host: localhost Database: fiveswap -- ------------------------------------------------------ -- Server version 8.0.23 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*...
true
7588c0c08df34d154ecac8ac5ac9078215c1be69
SQL
NorthWardTop/TicketMaster
/code/MySQL/initDB.sql
UTF-8
7,075
4.3125
4
[]
no_license
use ticketmaster; -- 折扣(选项,金额) create table Discount( dChoose char(9) PRIMARY KEY, dMoney smallint ); -- 用户表(票号, 游览时间, 优惠选项, 票状态) create table UserTicket( uTicketId int PRIMARY KEY, uUseDate date, dChoose char(9), uStatus char(9), FOREIGN KEY(dChoose) REFERENCES Discount(dChoose) ); -- 交易记录表(序号, 票号, 用户名, 交...
true
dfb25594006f3508fc160ca7caff703a44a92409
SQL
n1to-bit/xo-goa-chat
/db/schema.sql
UTF-8
720
3.515625
4
[]
no_license
DROP TABLE IF EXISTS `rooms`; CREATE TABLE `rooms` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(256) NOT NULL, `description` varchar(400) NOT NULL, `created` datetime NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `name_UNIQUE` (`name`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; DROP TABLE IF EXISTS `messag...
true
844ddef274ebceb883bea4175c84e2e717e4ba0d
SQL
akula-srinu/Customization_Test
/custom/apps_grants.sql
UTF-8
1,164
2.65625
3
[]
no_license
-- Title -- apps_grants.sql -- Function -- Providing the grants access on EBS tables to Noetix Schema. -- Description -- This script provides grants on EBS tables to the Noetix Schema during the -- views regeneration process. This is a custom script created for ViaSat while -- working on the views rege...
true
c620d9cdfdf34df9bf9a343fe8bc087d50a6a383
SQL
trln/roi
/MaxYearProviders.sql
UTF-8
214
2.921875
3
[]
no_license
CREATE VIEW MaxYearProviders AS SELECT TotalSummaryConsortium.SERSOL_ProvName, Max(TotalSummaryConsortium.TRLN_Year) AS MaxOfTRLN_Year FROM TotalSummaryConsortium GROUP BY TotalSummaryConsortium.SERSOL_ProvName;
true
439fb1638320892a230e6bd2d1d1b3bcb3b08205
SQL
AlinaSkudnaya/kursovaya
/booking.sql
UTF-8
1,816
3.046875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.4 -- https://www.phpmyadmin.net/ -- -- Хост: 127.0.0.1:3306 -- Время создания: Май 24 2021 г., 21:26 -- Версия сервера: 5.7.29 -- Версия PHP: 7.1.33 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHAR...
true
a1f0f2952b901d1bbe8607e0cb6357d79ef43073
SQL
Praxello/Aloha
/report_queries.sql
UTF-8
8,713
3.6875
4
[ "MIT" ]
permissive
SELECT a.week,a.branchName, sum(case when a.flag = 'patient' then a.count else 0 end) patient, sum(case when a.flag = 'treat' then a.count else 0 end) treat, sum(case when a.flag = 'income' then a.count else 0 end) income From (SELECT week('2020-07-16') week,count(pm.patientId) count,hbm.branchName, 'pa...
true
3326fe98ef58f7a51427eb0932ec2336bb52b58a
SQL
mkorec/Aquaparky_semestralka
/Sql/AQUAPARK_PACKAGE.sql
UTF-8
5,086
2.515625
3
[]
no_license
create or replace PACKAGE AQUAPARK_PACKAGE AS FUNCTION EXIST_AQUAPARK( PID INTEGER) RETURN BOOLEAN; FUNCTION EXIST_AQUAPARK_NAZOV( PNAZOV VARCHAR2) RETURN BOOLEAN; FUNCTION CREATE_AQUAPARK( PNAZOV VARCHAR2, PPREVADZKA_OD INTEGER, PPREVADZKA_DO INTEGER, PULICA ...
true
8f0bbab8fc2a020a41774ad11620a2fef254b3a4
SQL
marceloEndson/DSW-Felipe-Marcelo
/scripts de criação das stored procedures.sql
UTF-8
6,354
3.71875
4
[]
no_license
DROP PROCEDURE IF EXISTS AtualizarResultadoJogo; DELIMITER // CREATE DEFINER=`root`@`localhost` PROCEDURE `AtualizarResultadoJogo`(pIdJogo int, pGolsMandante int, pGolsVisitante int) BEGIN DECLARE lGolsHojeMandante, lGolsHojeVisitante int; SELECT golsMandante, golsVisitante INTO lGolsHojeMandante, lGolsHojeVisitan...
true
94ac5965bfd45d7d26c95c3f0a2f1af5de9ad5c0
SQL
hasura/terrazura
/migrations/migrations/default/1609360872999_set_fk_source_collector_SourceNotes_SourceId/up.sql
UTF-8
238
2.890625
3
[ "Apache-2.0" ]
permissive
alter table "source_collector"."SourceNotes" add constraint "SourceNotes_SourceId_fkey" foreign key ("SourceId") references "source_collector"."Source" ("Id") on update restrict on delete restrict;
true
345129bf14006118f96da85ff444716e0b27db12
SQL
girOly/practiceSql
/sqlZoo/selectFromNobel.sql
UTF-8
944
4.09375
4
[]
no_license
-- https://sqlzoo.net/wiki/SELECT_from_Nobel_Tutorial -- ## Ans 1 SELECT yr, subject, winner FROM nobel WHERE yr = 1950 -- ## Ans 2 SELECT winner FROM nobel WHERE yr = 1962 AND subject = 'Literature' -- ## Ans 3 SELECT yr, subject FROM nobel WHERE winner = 'Albert Einstein' -- ## Ans 4 SELECT winner FROM nobel ...
true
4c1828d50aa78e1ab14923c8b04a0ccee4bbd7f1
SQL
jinxin4u/ShinHyeok_PythonStudy
/db자료/jeju.sql
UTF-8
15,625
3.5625
4
[]
no_license
-- -------------------------------------------------------- -- 호스트: 192.168.1.213 -- 서버 버전: 5.5.64-MariaDB - MariaDB Server -- 서버 OS: Linux -- HeidiSQL 버전: 10.2.0.5599 -- -------------------------------------------------------- /*!...
true
c0df4d7507fbec8ab65f256d3f55c45691765c7d
SQL
AhmedBelhassen2/holbertonschool-higher_level_programming
/0x0E-SQL_more_queries/100-not_my_genres.sql
UTF-8
360
4.125
4
[]
no_license
-- lists all shows, and all genres linked to that show, from the database SELECT title, name FROM tv_shows LEFT JOIN tv_show_genres ON tv_shows.id = tv_show_genres.show_id LEFT JOIN tv_genres ON tv_show_genres.genre_id = tv_genres.id WHERE NOT EXISTS (SELECT title.show_id FROM tv_show_genres WHERE title = 'Dexter') GRO...
true
d91969dbbd3f7cfbc298ccc67caac75e19363c42
SQL
dirkzeng0513/creditcard-fraud-detection-chime-exercise-
/src/chime-sql-exercise.sql
UTF-8
2,913
4.65625
5
[]
no_license
------------------------------------------------------------------------------------------------------------------------------- ------------------ Exercise 1: Report the daily total amount of direct_deposit per user for the past 30 days ------------------ ---- Key Assumption 1: The timestamp is in UTC (no need to conv...
true
0b451df5270e13cba7be4afb4c4c3a037b95403e
SQL
davidandstephens/database-exercises
/functions_exercises.sql
UTF-8
452
3.5
4
[]
no_license
USE employees; # SELECT CONCAT(first_name, ' ', last_name) FROM employees WHERE first_name IN ('Irena', 'Vidya', 'Maya') ORDER BY last_name DESC, first_name DESC; # SELECT * FROM employees WHERE last_name LIKE 'E%' ORDER BY emp_no DESC; SELECT CONCAT(first_name, ' ', last_name), DATEDIFF(curdate(), hire_date) FROM e...
true
dd46b55a56f26e858b7fb48dbeb049265ecac858
SQL
grigoryanaranush/shopping-application
/src/main/resources/data.sql
UTF-8
817
3.5625
4
[]
no_license
INSERT INTO role (name) SELECT 'ADMIN' FROM dual WHERE NOT EXISTS (SELECT 'ADMIN' FROM role WHERE name = 'ADMIN'); INSERT INTO role (name) SELECT 'USER' FROM dual WHERE NOT EXISTS (SELECT 'USER' FROM role WHERE name = 'USER'); -- password is password INSERT INTO user (first_name, last_name, username, password...
true
8ee05b2a6276f22fac3d2936b820326aae3fd981
SQL
giusseppelml/limpia-publica-web
/limpia.sql
UTF-8
13,980
2.875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 22-04-2018 a las 22:00:41 -- Versión del servidor: 10.1.29-MariaDB -- Versión de PHP: 7.2.0 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; ...
true
5777032e1591c6bf3784ecdbc0eb4fed9b16c954
SQL
open-modex/model_Balmorel
/base/addons/REShareEH/RESEHeqns.inc
ISO-8859-15
1,977
2.96875
3
[ "ISC" ]
permissive
* File equations.inc to the addon REShareEH. * Equation QRESHAREEH is with inspiration from equations QEEQ and QHEQ: QRESHAREEH(CCCRESHAREEH).. SUM(C$CCCRESHAREEHC(CCCRESHAREEH,C), * SUM(IR$CCCRRR(C,IR), SUM((IS3,T), IHOURSINST(IS3,T)* ( SUM(IAGK_Y(IA,IGE)$(ICA(C,IA) AND IGNOTETOH(IGE) AN...
true
250e66b2fbf17cd0f48f9bfef684734cb5a9ae4b
SQL
lukslevino/ortholife
/docs/sql_dbortholife.sql
UTF-8
7,077
3.28125
3
[]
no_license
-- MySQL Script generated by MySQL Workbench -- Fri Nov 17 23:58:30 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
a6f1570655a6b0f99e243e57796f8467fe30c091
SQL
lure0xaos/HeartSong
/src/main/resources/schema-h2.sql
UTF-8
4,860
3.578125
4
[]
no_license
-- noinspection SpellCheckingInspectionForFile create table if not exists BANDS ( ID bigint primary key auto_increment, UID varchar_ignorecase(256) unique not null, ALIAS varchar_ignorecase(256) default '' not null, TITLE ...
true
10b37698cc22fff1e66c08201fb5f2c7e800e016
SQL
x2002uwh/phalcon-modular-app
/phalcon-modular-app.sql
UTF-8
1,589
3
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 3.5.2.2 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Oct 08, 2013 at 11:33 PM -- Server version: 5.5.27-log -- PHP Version: 5.4.7 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT *...
true
30c7820fc78d49a376a589d8a739bb1b8f7728b5
SQL
WinningPie/JavaSpringBoot
/practice.sql
UTF-8
19,463
3.234375
3
[]
no_license
/* Navicat Premium Data Transfer Source Server : he Source Server Type : MySQL Source Server Version : 50718 Source Host : localhost:3306 Source Schema : practice Target Server Type : MySQL Target Server Version : 50718 File Encoding : 65001 Date: 19/10/2020 22:50:45...
true
2d86083ff09e03f69705be3cc6f24e51abda4240
SQL
kamal1577/blood-cl
/backup.sql
UTF-8
6,219
3.125
3
[ "MIT" ]
permissive
-- -- PostgreSQL database dump -- -- Dumped from database version 9.6.1 -- Dumped by pg_dump version 9.6.1 SET statement_timeout = 0; SET lock_timeout = 0; SET idle_in_transaction_session_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; SET check_function_bodies = false; SET client_min...
true
bc790cbf23477758d80019b94849305467dbbdfb
SQL
wszolektw/krks02_warsztat_2
/sql/db.sql
UTF-8
276
2.625
3
[]
no_license
CREATE DATABASE krks02_warsztat_2 DEFAULT CHARACTER SET utf8 DETAULT COLATE utf8_general_ci; --Table user schema CREATE TABLE users( id INT AUTO_INCREMENT, username VARCHAR(255) UNIQUE, email VARCHAR(255) UNIQUE, password VARCHAR(255), person_group_id INT, PRIMARY KEY(id) );
true
a5eca73d5b24bd7bacd17015eb3808011cf79b6e
SQL
topdeveloper1001/DriveHud
/DriveHUD.Application/Scripts/backup_old.sql
UTF-8
7,858
3.6875
4
[]
no_license
------------------------------ -- ###Hand Notes### ------------------------------ CREATE TABLE "HandNotes" ( HandNoteId bigserial NOT NULL, HandTag integer, Note text, HandNumber bigint NOT NULL, PokerSiteId smallint NOT NULL, CONSTRAINT HandNotes_PK PRIMARY KEY (HandNoteId) ) WITH ( OIDS=FALSE ); ALT...
true
2b1f0462aa972593f0e29fe102abec18f44ad344
SQL
syjh123/hr
/SqlFiles/CreateSql0.7.sql
UTF-8
6,148
3.34375
3
[]
no_license
-- MySQL Script generated by MySQL Workbench -- 07/29/15 14:37:04 -- 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='TRADITION...
true
8c00f4dfbb81b72b1806986cec344d8d1298aca5
SQL
worgelabolg/notepad
/oracle/研究实验/Expert_Oracle test_data/book/ch11/demo11.sql
UTF-8
431
2.828125
3
[]
no_license
create table t ( x int ); create index t_idx on t( case when x = 42 then 1 end ); set autotrace traceonly explain select /*+ index( t t_idx ) */ * from t where (case when x = 42 then 1 end ) = 1; set autotrace off select column_expression from user_ind_expressions where index_name = 'T_IDX'; set autotr...
true
a6807324b419f1255ebeb94b58b5a8c19985b548
SQL
mkhilari/DatabaseSystems
/Assignment 2/A2Q8.sql
UTF-8
458
3.953125
4
[]
no_license
SELECT * FROM (Select Player.id AS playerID, Player.username, COUNT(DISTINCT Item.id) AS numberDistinctFoodItemsPurchased FROM Purchase INNER JOIN Player ON Purchase.player = Player.id INNER JOIN Item ON Purchase.item = Item.id INNER JOIN Food ON Item.id = Food.id GROUP BY Player.id) AS PlayerDistinctFoods WHE...
true
09a4dafe41f681242301a8d65ae623830c8bd9d3
SQL
dohuuhung211/C0720G1_DoHuuHung_Module3
/03_thao_tac_voi_csdl/bai_tap/01_thiet_ke_cai_dat_csdl_cho_ung_dung_thu_vien.sql
UTF-8
947
3.671875
4
[]
no_license
create database library_book; create table students( student_number int primary key, student_name varchar(50), address varchar(255), email varchar(50), image varchar(200) ); create table categories( id_cg int primary key, name varchar(50) ); create table books( id_book int primary key, name_book varchar(50), type_boo...
true
efe50b0219dbfdd4fcd3ac9c2968e91d7538b92c
SQL
TsvetomirAleksandrov/Software-University
/Databases Basics - MS SQL Server - May 2020/05.DataAggregation/05.DataAggregation/08.DepositCharge.sql
UTF-8
182
2.953125
3
[]
no_license
SELECT wd.DepositGroup, wd.MagicWandCreator, MIN(wd.DepositCharge) AS [MinDepositCharge] FROM WizzardDeposits wd GROUP BY wd.DepositGroup, wd.MagicWandCreator
true
ba016e8bd0f44fee54a4ae1b7fedb434dcc0eafd
SQL
heros79/ACAProject
/src/main/resources/db.sql
UTF-8
1,968
4
4
[]
no_license
/*CREATE DATABASE onlineshop;*/ USE onlineshop; /*CREATE TABLE products ( id INT NOT NULL AUTO_INCREMENT PRIMARY KEY, vendorecode VARCHAR(255) NOT NULL, productname VARCHAR(255) NOT NULL, price DOUBLE NOT NULL, description TEXT ) ENGINE = InnoDB; CREATE TABLE productactions ( id INT NOT NULL AUTO_INCR...
true
8b9e8199e9265d9f60d67f92ce3483413db6236f
SQL
CyberTomB/artistapi
/Example.sql
UTF-8
784
4
4
[]
no_license
CREATE TABLE artists ( id int NOT NULL primary key AUTO_INCREMENT comment 'primary key', name varchar(255) comment 'artist name', birthYear int comment 'artist birth year', deceased TINYINT comment 'artist is deceased' ) default charset utf8 comment ''; -- CREATE INSERT INTO artists ( name, b...
true
456f25069027290a48ed1f2300f4332201fcf56f
SQL
linanqiu/pwas
/queries.sql
UTF-8
457
4.0625
4
[]
no_license
WITH pid_x AS ( SELECT DISTINCT PID FROM patients WHERE ICD=5243 AND SEX=1 AND AGE>=10 AND AGE<20 GROUP BY PID ), pid_y AS ( SELECT DISTINCT PID FROM patients WHERE ICD=7080 AND SEX=1 AND AGE>=10 AND AGE<20 GROUP BY PID ) SELECT (SELECT COUNT(PID) FROM pid_x) AS kx, (SELECT COUNT(PID) from pid_y) as ky, (SELECT COU...
true
d77a3fa797f49dc7f18e224706857f74aea01e82
SQL
btgn/Starbucks-Coffee-Shop-Locator
/WebContent/starbucks.sql
UTF-8
1,041
3.09375
3
[]
no_license
CREATE TABLE starbucks( brand varchar(32) , storenumber varchar(32) , Name1 varchar(50) , Ownership_Type varchar(32) , Facility_ID varchar(100) , Features_Products varchar(200) , Features_Service varchar(200) , Features_Stations varchar(200) , FoodRegion varchar(32) , Venue_Type varchar(32) ...
true
3b25802d7ce89a6255a990b1fb8287721f085d58
SQL
Mitko10343/Database_Assignment-SQL-
/Pl_SQL.sql
UTF-8
584
3.09375
3
[ "MIT" ]
permissive
-- I decided to write a PL/SQL function that would let a user add a new disease to the list of diseases SET serveroutput ON DECLARE v_dname supplier.supplierName%TYPE := '&Enter_Disease_Name'; v_ddesc supplier.supplierAddress%TYPE := '&Enter_Disease_Desc'; BEGIN INSERT INTO disease(diseaseName,di...
true
543a2d21c3fffa0e63f035f629846e612c9cd1eb
SQL
PsychoLogin/the-blog
/SQL/capture_scheme.sql
UTF-8
2,281
3.921875
4
[]
no_license
CREATE TABLE `blog_users` ( `id` int NOT NULL AUTO_INCREMENT, `username` varchar(255) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; CREATE TABLE `sessions` ( `id` int NOT NULL AUTO_INCREMENT, `blog_user_id` int NOT NULL, `start` datetime NOT NULL, `stop` datetime NOT NULL, PRIMARY KEY (`id...
true
bf109e675033386bca811676bd75a959871e7528
SQL
chitreshd/ORM-JDBC-Benchmarking
/Stocks.sql
UTF-8
3,006
3.28125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 3.3.7deb1 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Apr 09, 2011 at 07:03 PM -- Server version: 5.1.49 -- PHP Version: 5.3.3-1ubuntu9 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OL...
true
edc61482f3c6bd23497c784c3fadc4535203f1de
SQL
jylilov/DBManual
/src/main/resources/sql/task16_answer.sql
UTF-8
152
3.0625
3
[]
no_license
SELECT distinct pc1.model, pc2.model, pc1.speed, pc1.ram FROM pc AS pc1, pc AS pc2 WHERE pc1.model>pc2.model AND pc1.speed=pc2.speed AND pc1.ram=pc2.ram
true
12b65835270e2ffd5936bf31c6d7705236fd9d99
SQL
EmployingDGC/scripts_db_postgresql_itixti
/4/ColaboradorEquipamento.sql
UTF-8
820
3.078125
3
[]
no_license
/* create - 4 */ create table colaborador_equipamento ( id_colaborador_equipamento serial primary key, id_colaborador int not null, id_equipamento int not null, dt_atribuicao date not null, foreign key(id_colaborador) references colaborador(id_colaborador), foreign key(id_equ...
true
f59155f340ac78a120071180c9bfa2855ea651ac
SQL
b73201020/EX_uploadFileToDB
/upload.sql
UTF-8
1,033
2.640625
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 3.5.1 -- http://www.phpmyadmin.net -- -- 主機: localhost -- 產生日期: 2015 年 06 月 03 日 00:25 -- 伺服器版本: 5.5.24-log -- PHP 版本: 5.3.13 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+08:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER...
true
6727c6985d62973aebd31dcad3bc6541d5c128f2
SQL
vanminhle/SQLServer-Queries
/Library Queries/insert_capture.sql
UTF-8
3,227
2.890625
3
[]
no_license
SELECT slc.* FROM dbo.StudentsLibraryCard slc ORDER BY slc.StudentID ASC INSERT INTO StudentsLibraryCard (StudentID, FirstName, LastName, Gender, Email , ClassID, DateCreated , ExpirationDate) VALUES (1000001, 'Nguyen', 'Anh Huy', 'Male', 'anhuy@microsoft.com', 21, '2/20/2020', '10/20/2020'); INSERT INTO Students...
true
2c25fc9999bf613628acfc563715fd401e117cf5
SQL
cassiejones9/cs313-php
/web/db/datestable.sql
UTF-8
613
3.90625
4
[]
no_license
Drop TABLE dates; -- SELECT c.lastName, c.firstName, c.email, s.clientId, s.numOfPeople, d.date -- FROM client c -- JOIN session s ON s.clientId=c.clientId -- JOIN dates d ON d.clientId=c.clientId; CREATE TABLE dates ( dateId SERIAL PRIMARY KEY, date VARCHAR(50) NOT NULL, clientId int, constraint fk_...
true
54d5ee6b02519984c0ef0517ded0b8e771b55a3f
SQL
dbtoaster/dbtoaster-backend
/runtime/tpcc/database/create_tables.sql
UTF-8
3,105
3.375
3
[ "Apache-2.0" ]
permissive
SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0; SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0; drop table if exists warehouse; create table warehouse ( w_id smallint not null, w_name varchar(10), w_street_1 varchar(20), w_street_2 varchar(20), w_city varchar(20), w_state char(2),...
true
86e573744533510d951a9c8a0ee6c4ce6efd190f
SQL
fikri-164/uts_pwfl_567
/db/uts_pwfl.sql
UTF-8
3,628
3.203125
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: 06 Nov 2019 pada 10.27 -- Versi Server: 10.1.28-MariaDB -- PHP Version: 5.6.32 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CH...
true
53c78629adb2bb5b96f7c907a86e76bb81fce4fe
SQL
chrisvinsen/CampusProject_CinemaSystemManagement-Cinema88
/uts.sql
UTF-8
7,763
2.90625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Mar 16, 2020 at 05:38 AM -- Server version: 10.4.8-MariaDB -- PHP Version: 7.3.11 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
f634d4b80a5261636248b1ebd125c3330dc1796f
SQL
uGuardian/Crystal-Fire-Reborn
/MP_MODSPACK/Mods/Madoka Magica -- Wish for the World [BNW]/SQL/Shared/Dialog.sql
UTF-8
8,909
2.71875
3
[]
no_license
INSERT INTO Diplomacy_Responses (LeaderType, ResponseType, Response, Bias) SELECT ('LEADER_MADOKA'), ResponseType, REPLACE(Response, '_GENERIC_', '_LEADER_MADOKA_'), 100 FROM Diplomacy_Responses WHERE LeaderType = 'GENERIC' AND Response LIKE ('%GENERIC%'); INSERT OR IGNORE INTO Diplomacy_Responses (...
true
5d84418a855ae7af0ac0c58874c9be5f68cefd38
SQL
complitex/flexpay
/common/etc/sql/update/2009_01_21.sql
UTF-8
837
3.125
3
[]
no_license
create table common_master_index_bounds_tbl ( id bigint not null auto_increment, version integer not null comment 'Optimistic lock version', object_type integer not null comment 'Type of objects index is used for', lower_bound bigint not null comment 'Lower index bound', upper_bound bigint not null comment 'Upper ...
true
06b3002e427924bd46ad239858fb69c78233b16d
SQL
Dog-Foot-Cat-Foot/HW_DFCF
/Eroon/20210625/src/EJ1.sql
UTF-8
621
3.9375
4
[]
no_license
select c.cus_no , c.cus_name , to_number(extract(year from sysdate)) - to_number(case substr(c.jumin_num, 7,1) when '1' then '19' when '2' then '19' else '20' end||substr(c.jumin_num,1,2))+1 ||'세' "고객나이" , nvl(e.emp_no||'','없음') "담당직원번호" from custo...
true
a4ee5749980e5b4abd6058759fb554727609d3a0
SQL
subbucss/customer
/data.sql
UTF-8
280
2.59375
3
[]
no_license
DROP TABLE customer IF EXISTS; CREATE TABLE customer ( id int(10) not null, name varchar(100), email varchar(100), ); insert into customer(id,name,email) values (1, 'Prashanth Munigala', 'pra@hertz.com'), (2, 'Shravan Mulug', 'shravan@hertz.com'), (3, 'Subba Ch', 'subba@hertz.com'), (4, 'Hari U', 'hari@h...
true
5a61f81a44834ecd8869892f813250144ac059c3
SQL
georgeiiister/SQL_3C
/ALL/SET_B61CBNC.SQL
WINDOWS-1251
4,985
2.8125
3
[]
no_license
create or replace PROCEDURE SET_B61CBNC(P_SS IN OUT RMON.fcScriptState) IS v_nCMPC B61.B61CMPC%TYPE; v_nCBNC B61.B61CBNC%TYPE; v_rB61ROW B61%ROWTYPE; v_nJPID T84.T84JPID%TYPE; v_rT84ROW T84%ROWTYPE; P_ERROR VARCHAR2(255):=NULL; P_ERROR_PARAM VARCHAR2(255):=NULL; BEGIN v_nCMPC:=RPARAM.GE...
true
bc2f5c7c5a944680a0acb75178d5d618c86ebd96
SQL
Genskill2/03-bootcamp-sql-NM604
/create.sql
UTF-8
419
3.8125
4
[]
no_license
CREATE TABLE publisher ( id INTEGER PRIMARY KEY, name TEXT, country TEXT ); CREATE TABLE books ( id INTEGER PRIMARY KEY, title TEXT, publisher INTEGER, FOREIGN KEY (publisher) REFERENCES publisher(id) ); CREATE TABLE subjects ( id INTEGER PRIMARY KEY, name TEXT ); CREATE TABLE books_subjects ( book INTEGER, subject ...
true
474a84420e3b5650fed85e5ecb93ce56bb5d941b
SQL
bellmit/flexdb
/2.HOST/3.Procedure/od0051.sql
UTF-8
6,082
3.25
3
[]
no_license
CREATE OR REPLACE PROCEDURE od0051( PV_REFCURSOR IN OUT PKG_REPORT.REF_CURSOR, OPT IN VARCHAR2, BRID IN VARCHAR2, I_DATE IN VARCHAR2 ) IS -- MODIFICATION HISTORY -- KET QUA KHOP LENH CUA KHACH HANG -- PERSON DATE COMMENTS -- HUYNQ 08-SEP-09 CREATED...
true
050cd218a98a9bd0fcfccf71e756de47d25c98b3
SQL
Vitra-Veri-Bilimi-Bootcamp/yilmaz_mert_akin
/Patika/Week1-SQL/odev10.sql
UTF-8
1,921
4.6875
5
[]
no_license
--1. city tablosu ile country tablosunda bulunan şehir (city) ve ülke (country) isimlerini birlikte görebileceğimiz LEFT JOIN sorgusunu yazınız. --In this example city and country tables has country_id column. So this is the column we are going to use as ref --I added WHERE condition to see if any null values. Since i...
true
fa77e685ede5df8bcfd0d45b2f7774f0d0e22b58
SQL
s4ul0bk/insuranceAllCompany
/db/loadFullData.sql
UTF-8
401
2.859375
3
[]
no_license
select i.id, i.previously_insured, i.annual_premium, i.vintage, i.response, u.gender, u.age, u.region_code, u.policy_sales_channel, v.driving_license, v.vehicle_age, v.vehicle_damage from pa004.insurance i ...
true
afa421d74fb901d18c0b0e05a49e8939734a83a1
SQL
danexpc/web-library
/db/dbScripts/script.sql
UTF-8
2,384
3.875
4
[]
no_license
DROP TABLE IF EXISTS cities CASCADE; DROP TABLE IF EXISTS literature_categories CASCADE; DROP TABLE IF EXISTS authors CASCADE; DROP TABLE IF EXISTS publishers CASCADE; DROP TABLE IF EXISTS books CASCADE; DROP TABLE IF EXISTS users CASCADE; DROP TABLE IF EXISTS lending_books CASCADE; DROP TABLE IF EXISTS memberships CAS...
true
f306ca3c92d782654847b92cbe94f2205d73984d
SQL
Matissi/MyBakerySupManagement
/mybakerysup.sql
UTF-8
4,140
3.390625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Hôte : 127.0.0.1:3306 -- Généré le : ven. 16 août 2019 à 06:15 -- Version du serveur : 5.7.26 -- Version de PHP : 7.2.18 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SE...
true
1a978a6435d640ca19e264381fd3811d3534cf8f
SQL
alexrzz/BasiDiDati
/Sql/creaDB.sql
UTF-8
4,264
3.40625
3
[]
no_license
USE aruzzant-PR; DROP TABLE IF EXISTS CompatibileCon; DROP TABLE IF EXISTS Contiene; DROP TABLE IF EXISTS Test; DROP TABLE IF EXISTS RapportiTecnici; DROP TABLE IF EXISTS Apparecchiature; DROP TABLE IF EXISTS Tipi; DROP TABLE IF EXISTS Ospedali; DROP TABLE IF EXISTS Tecnici; DROP TABLE IF EXISTS Referenti; DROP TABLE ...
true
1d82407361f2babce3538336633dc35a8269a1df
SQL
sjohnson31415/thinkfull-data-science
/longtriprain2.sql
UTF-8
263
4.21875
4
[]
no_license
WITH rainy_day AS( SELECT date FROM weather WHERE Events = 'Rain' GROUP BY 1 ) SELECT duration, trip_id, DATE(start_date) trip_date FROM trips JOIN rainy_day ON rainy_day.date = trip_date GROUP BY 1 ORDER BY duration DESC LIMIT 3
true
6c5312e78a878815ff291aa8f45dd6f0f9411f44
SQL
yani-valeva/Databases-Basics-MySQL
/Built-in Functions/17.People Table.sql
UTF-8
644
3.75
4
[ "MIT" ]
permissive
CREATE TABLE `people` ( `id` INT NOT NULL AUTO_INCREMENT, `name` VARCHAR(50) NOT NULL, `birthdate` DATETIME, CONSTRAINT `pk_people` PRIMARY KEY (id) ); INSERT INTO `people` (`name`, `birthdate`) VALUES ('Victor', '2000-12-07 00:00:00'), ('Steven', '1992-09-10 00:00:00'), ('Stephen', '1910-09-19 00:00:0...
true
e2c2852892d2edf1ce8e74bbd4627f5f2719edae
SQL
cckmit/pnlb
/sqlj/oracle/viewsmpc.sql
UTF-8
1,244
3.328125
3
[]
no_license
SELECT obl.AD_Client_ID , obl.AD_Org_ID , obl.CreatedBy , obl.UpdatedBY , obl.Updated , obl.Created , obl.IsActive , obl.MPC_Order_BOM_ID, obl.MPC_Order_BOMLine_ID , obl.MPC_Order_ID , obl.IsCritical , obl.M_Product_ID , (Select p.Name FROM M_Product p Where p.M_Product_ID=o.M_Product_ID) as Name, obl.C_UOM_ID , CAS...
true
6b0a88e1510e1926e3103c1abab39aeaa9a87745
SQL
bfo84/xy-inc
/xy-inc/src/main/resources/db/migration/V1__CreateDDLAndInsertCoordinates.sql
UTF-8
477
3.109375
3
[]
no_license
CREATE SEQUENCE coordinate_seq START WITH 1 INCREMENT BY 1; CREATE TABLE coordinate( id INTEGER NOT NULL, x NUMERIC NOT NULL, y NUMERIC NOT NULL, poiName VARCHAR(50), PRIMARY KEY(id) ); INSERT INTO coordinate(id,x,y,poiName) VALUES (1,27,12,'Lanchonete'), (2,31,18,'Posto'), (3,15,12,'Joalheria'), (4,19,21,'Flor...
true
cf198406a910da183c1a0ce458db0e343cff6b24
SQL
yongjiangbuaa/march3
/WebProject/GameStats/stats/sql/snapshot_tables.sql
UTF-8
7,068
3.046875
3
[]
no_license
CREATE TABLE IF NOT EXISTS `process_offset` ( `process_id` char(32), `name` char(64), `offset` bigint(20), PRIMARY KEY (`process_id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; CREATE TABLE IF NOT EXISTS `process_filemtime` ( `process_id` char(32) NOT NULL DEFAULT '', `name` char(64) DEFAULT NULL, `offset` b...
true
9773acd299353fc9d39ebeab68db86c1e20cd74d
SQL
johntron/johntron
/projects/_playground/fitness/sql/dump.sql
UTF-8
6,007
2.859375
3
[]
no_license
-- -- PostgreSQL database dump -- -- Dumped from database version 12.4 -- Dumped by pg_dump version 12.4 SET statement_timeout = 0; SET lock_timeout = 0; SET idle_in_transaction_session_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; SELECT pg_catalog.set_config('search_path', '', fal...
true
142fadc11e821ad74e42468f659708d0e9aca97a
SQL
intouchsophie/database-evaluation
/sophie_marchand/tp_immo_scripts.sql
UTF-8
4,514
4.21875
4
[]
no_license
Question 2.1 -- Lorsqu'un utilisateur modifie les photos associées à une maison, -- les photos anciennement liées doivent être retirées du serveur. -- Proposez une solution. => PROPOSITION : -- J'ai pensé qu'un script pourrait régulièrement "nettoyer" les données du serveur où sont stockées les photos solitaires. -...
true